From 5dc001badf6f13b38c728446d47e23940079c1a2 Mon Sep 17 00:00:00 2001 From: sadmin Date: Mon, 2 Feb 2026 10:44:31 +0300 Subject: [PATCH] MaterialMarkaKO --- .gitignore | 2 +- dist/css/chunk-734bbfda.dc406172.css | 1 - dist/index.html | 2 +- dist/js/app.55390a2c.js | 23 --- dist/js/chunk-099daac5.c28109f0.js | 1 - dist/js/chunk-187a5f3f.ee7cdd2d.js | 1 - dist/js/chunk-1b4ec2a7.b7f134e1.js | 1 - dist/js/chunk-28dc4aef.cc37e5bd.js | 1 - dist/js/chunk-2ae756f5.91f0a819.js | 1 - dist/js/chunk-2f415156.f4b6eefa.js | 1 - dist/js/chunk-33abae75.368c0797.js | 1 - dist/js/chunk-36308615.be588984.js | 1 - dist/js/chunk-366d1341.60ad46d2.js | 1 - dist/js/chunk-39ed1a08.6b3cc6ce.js | 1 - dist/js/chunk-3ac51e83.c08ba508.js | 1 - dist/js/chunk-4348ccc7.eb526444.js | 1 - dist/js/chunk-461f6ae6.5efb84dc.js | 1 - dist/js/chunk-56216674.5f78e65f.js | 1 - dist/js/chunk-5cee169e.c118c4b3.js | 22 -- dist/js/chunk-5e54c849.c683cc4a.js | 1 - dist/js/chunk-732e6f1b.a7b23949.js | 1 - dist/js/chunk-734bbfda.c59614dc.js | 1 - dist/js/chunk-75bd6bd9.c2951c11.js | 1 - dist/js/chunk-dfddc2f4.c193d093.js | 1 - dist/js/chunk-e2532de8.bf4beafa.js | 289 --------------------------- dist/js/chunk-fecca1e4.d65cf610.js | 1 - dist/js/chunk-vendors.da4d4d19.js | 18 -- dist/js/index.45537b27.js | 1 - src/components/MaterialMarkaKO.vue | 169 ++++++++++++++++ src/components/PRB_FileControl.vue | 4 +- src/routes.js | 5 + src/store/index.js | 3 +- src/store/modules/MaterialMarkaKO.js | 87 ++++++++ 33 files changed, 267 insertions(+), 379 deletions(-) delete mode 100644 dist/css/chunk-734bbfda.dc406172.css delete mode 100644 dist/js/app.55390a2c.js delete mode 100644 dist/js/chunk-099daac5.c28109f0.js delete mode 100644 dist/js/chunk-187a5f3f.ee7cdd2d.js delete mode 100644 dist/js/chunk-1b4ec2a7.b7f134e1.js delete mode 100644 dist/js/chunk-28dc4aef.cc37e5bd.js delete mode 100644 dist/js/chunk-2ae756f5.91f0a819.js delete mode 100644 dist/js/chunk-2f415156.f4b6eefa.js delete mode 100644 dist/js/chunk-33abae75.368c0797.js delete mode 100644 dist/js/chunk-36308615.be588984.js delete mode 100644 dist/js/chunk-366d1341.60ad46d2.js delete mode 100644 dist/js/chunk-39ed1a08.6b3cc6ce.js delete mode 100644 dist/js/chunk-3ac51e83.c08ba508.js delete mode 100644 dist/js/chunk-4348ccc7.eb526444.js delete mode 100644 dist/js/chunk-461f6ae6.5efb84dc.js delete mode 100644 dist/js/chunk-56216674.5f78e65f.js delete mode 100644 dist/js/chunk-5cee169e.c118c4b3.js delete mode 100644 dist/js/chunk-5e54c849.c683cc4a.js delete mode 100644 dist/js/chunk-732e6f1b.a7b23949.js delete mode 100644 dist/js/chunk-734bbfda.c59614dc.js delete mode 100644 dist/js/chunk-75bd6bd9.c2951c11.js delete mode 100644 dist/js/chunk-dfddc2f4.c193d093.js delete mode 100644 dist/js/chunk-e2532de8.bf4beafa.js delete mode 100644 dist/js/chunk-fecca1e4.d65cf610.js delete mode 100644 dist/js/chunk-vendors.da4d4d19.js delete mode 100644 dist/js/index.45537b27.js create mode 100644 src/components/MaterialMarkaKO.vue create mode 100644 src/store/modules/MaterialMarkaKO.js diff --git a/.gitignore b/.gitignore index b109761..0fee5a5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ .DS_Store -node_modules dist +node_modules # local env files .env.local diff --git a/dist/css/chunk-734bbfda.dc406172.css b/dist/css/chunk-734bbfda.dc406172.css deleted file mode 100644 index d68fa30..0000000 --- a/dist/css/chunk-734bbfda.dc406172.css +++ /dev/null @@ -1 +0,0 @@ -.theme--light.v-toolbar.v-sheet{background-color:#fff}.theme--dark.v-toolbar.v-sheet{background-color:#272727}.v-sheet.v-toolbar{border-radius:0}.v-sheet.v-toolbar:not(.v-sheet--outlined){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.v-sheet.v-toolbar.v-sheet--shaped{border-radius:16px 0}.v-toolbar{contain:layout;display:block;flex:1 1 auto;max-width:100%;transition:transform .2s cubic-bezier(.4,0,.2,1),background-color .2s cubic-bezier(.4,0,.2,1),left .2s cubic-bezier(.4,0,.2,1),right .2s cubic-bezier(.4,0,.2,1),box-shadow .28s cubic-bezier(.4,0,.2,1),max-width .25s cubic-bezier(.4,0,.2,1),width .25s cubic-bezier(.4,0,.2,1);position:relative;box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.v-toolbar .v-input{padding-top:0;margin-top:0}.v-toolbar__content,.v-toolbar__extension{padding:4px 16px}.v-toolbar__content .v-btn.v-btn--icon.v-size--default,.v-toolbar__extension .v-btn.v-btn--icon.v-size--default{height:48px;width:48px}.v-application--is-ltr .v-toolbar__content>.v-btn.v-btn--icon:first-child,.v-application--is-ltr .v-toolbar__extension>.v-btn.v-btn--icon:first-child{margin-left:-12px}.v-application--is-rtl .v-toolbar__content>.v-btn.v-btn--icon:first-child,.v-application--is-rtl .v-toolbar__extension>.v-btn.v-btn--icon:first-child{margin-right:-12px}.v-application--is-ltr .v-toolbar__content>.v-btn.v-btn--icon:first-child+.v-toolbar__title,.v-application--is-ltr .v-toolbar__extension>.v-btn.v-btn--icon:first-child+.v-toolbar__title{padding-left:20px}.v-application--is-rtl .v-toolbar__content>.v-btn.v-btn--icon:first-child+.v-toolbar__title,.v-application--is-rtl .v-toolbar__extension>.v-btn.v-btn--icon:first-child+.v-toolbar__title{padding-right:20px}.v-application--is-ltr .v-toolbar__content>.v-btn.v-btn--icon:last-child,.v-application--is-ltr .v-toolbar__extension>.v-btn.v-btn--icon:last-child{margin-right:-12px}.v-application--is-rtl .v-toolbar__content>.v-btn.v-btn--icon:last-child,.v-application--is-rtl .v-toolbar__extension>.v-btn.v-btn--icon:last-child{margin-left:-12px}.v-toolbar__content>.v-tabs,.v-toolbar__extension>.v-tabs{height:inherit;margin-top:-4px;margin-bottom:-4px}.v-toolbar__content>.v-tabs>.v-slide-group.v-tabs-bar,.v-toolbar__extension>.v-tabs>.v-slide-group.v-tabs-bar{background-color:inherit;height:inherit}.v-toolbar__content>.v-tabs:first-child,.v-toolbar__extension>.v-tabs:first-child{margin-left:-16px}.v-toolbar__content>.v-tabs:last-child,.v-toolbar__extension>.v-tabs:last-child{margin-right:-16px}.v-toolbar__content,.v-toolbar__extension{align-items:center;display:flex;position:relative;z-index:0}.v-toolbar__image{position:absolute;top:0;bottom:0;width:100%;z-index:0;contain:strict}.v-toolbar__image,.v-toolbar__image .v-image{border-radius:inherit}.v-toolbar__items{display:flex;height:inherit}.v-toolbar__items>.v-btn{border-radius:0;height:100%!important;max-height:none}.v-toolbar__title{font-size:1.25rem;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-toolbar.v-toolbar--absolute{position:absolute;top:0;z-index:1}.v-toolbar.v-toolbar--bottom{top:auto;bottom:0}.v-toolbar.v-toolbar--collapse .v-toolbar__title{white-space:nowrap}.v-toolbar.v-toolbar--collapsed{max-width:112px;overflow:hidden}.v-application--is-ltr .v-toolbar.v-toolbar--collapsed{border-bottom-right-radius:24px}.v-application--is-rtl .v-toolbar.v-toolbar--collapsed{border-bottom-left-radius:24px}.v-toolbar.v-toolbar--collapsed .v-toolbar__extension,.v-toolbar.v-toolbar--collapsed .v-toolbar__title{display:none}.v-toolbar--dense .v-toolbar__content,.v-toolbar--dense .v-toolbar__extension{padding-top:0;padding-bottom:0}.v-toolbar--flat{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)!important}.v-toolbar--floating{display:inline-flex}.v-toolbar--prominent .v-toolbar__content{align-items:flex-start}.v-toolbar--prominent .v-toolbar__title{font-size:1.5rem;padding-top:6px}.v-toolbar--prominent:not(.v-toolbar--bottom) .v-toolbar__title{align-self:flex-end;padding-bottom:6px;padding-top:0}.theme--light.v-image{color:rgba(0,0,0,.87)}.theme--dark.v-image{color:#fff}.v-image{z-index:0}.v-image__image,.v-image__placeholder{z-index:-1;position:absolute;top:0;left:0;width:100%;height:100%}.v-image__image{background-repeat:no-repeat}.v-image__image--preload{filter:blur(2px)}.v-image__image--contain{background-size:contain}.v-image__image--cover{background-size:cover}.v-responsive{position:relative;overflow:hidden;flex:1 0 auto;max-width:100%;display:flex}.v-responsive__content{flex:1 0 0px;max-width:100%}.v-application--is-ltr .v-responsive__sizer~.v-responsive__content{margin-left:-100%}.v-application--is-rtl .v-responsive__sizer~.v-responsive__content{margin-right:-100%}.v-responsive__sizer{transition:padding-bottom .2s cubic-bezier(.25,.8,.5,1);flex:1 0 0px}.v-dialog{border-radius:4px;margin:24px;overflow-y:auto;pointer-events:auto;transition:.3s cubic-bezier(.25,.8,.25,1);width:100%;z-index:inherit;outline:none;box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.v-dialog:not(.v-dialog--fullscreen){max-height:90%}.v-dialog>*{width:100%}.v-dialog>.v-card>.v-card__title{font-size:1.25rem;font-weight:500;letter-spacing:.0125em;padding:16px 24px 10px}.v-dialog>.v-card>.v-card__subtitle,.v-dialog>.v-card>.v-card__text{padding:0 24px 20px}.v-dialog>.v-card>.v-card__actions{padding:8px 16px}.v-dialog__content{align-items:center;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:fixed;top:0;transition:.2s cubic-bezier(.25,.8,.25,1),z-index 1ms;width:100%;z-index:6}.v-dialog__container{display:none}.v-dialog__container--attached{display:inline}.v-dialog--animated{animation-duration:.15s;animation-name:animate-dialog;animation-timing-function:cubic-bezier(.25,.8,.25,1)}.v-dialog--fullscreen{border-radius:0;margin:0;height:100%;position:fixed;overflow-y:auto;top:0;left:0}.v-dialog--fullscreen>.v-card{min-height:100%;min-width:100%;margin:0!important;padding:0!important}.v-dialog--scrollable,.v-dialog--scrollable>form{display:flex}.v-dialog--scrollable>.v-card,.v-dialog--scrollable>form>.v-card{display:flex;flex:1 1 100%;flex-direction:column;max-height:100%;max-width:100%}.v-dialog--scrollable>.v-card>.v-card__actions,.v-dialog--scrollable>.v-card>.v-card__title,.v-dialog--scrollable>form>.v-card>.v-card__actions,.v-dialog--scrollable>form>.v-card>.v-card__title{flex:0 0 auto}.v-dialog--scrollable>.v-card>.v-card__text,.v-dialog--scrollable>form>.v-card>.v-card__text{-webkit-backface-visibility:hidden;backface-visibility:hidden;flex:1 1 auto;overflow-y:auto}@keyframes animate-dialog{0%{transform:scale(1)}50%{transform:scale(1.03)}to{transform:scale(1)}}.theme--light.v-overlay{color:rgba(0,0,0,.87)}.theme--dark.v-overlay{color:#fff}.v-overlay{align-items:center;border-radius:inherit;display:flex;justify-content:center;position:fixed;top:0;left:0;right:0;bottom:0;pointer-events:none;transition:.3s cubic-bezier(.25,.8,.5,1),z-index 1ms}.v-overlay__content{position:relative}.v-overlay__scrim{border-radius:inherit;bottom:0;height:100%;left:0;position:absolute;right:0;top:0;transition:inherit;width:100%;will-change:opacity}.v-overlay--absolute{position:absolute}.v-overlay--active{pointer-events:auto}.theme--light.v-otp-input .v-input .v-input__control .v-input__slot{background:#fff}.theme--dark.v-otp-input .v-input .v-input__control .v-input__slot{background:#303030}.v-otp-input{display:flex;flex-wrap:wrap;flex:1 1 auto;margin-right:-4px;margin-left:-4px}.v-otp-input input{text-align:center}.v-otp-input .v-input{margin:0;flex:1 0 32px;max-width:100%;width:100%;padding:4px}.v-otp-input .v-input.v-otp-input--plain fieldset{display:none}.v-otp-input .v-input input[type=number]::-webkit-inner-spin-button,.v-otp-input .v-input input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.v-otp-input .v-input input[type=number]{-moz-appearance:textfield}.v-input--checkbox.v-input--indeterminate.v-input--is-disabled{opacity:.6}.v-input--checkbox.v-input--dense{margin-top:4px}.v-input--selection-controls{margin-top:16px;padding-top:4px}.v-input--selection-controls>.v-input__append-outer,.v-input--selection-controls>.v-input__prepend-outer{margin-top:0;margin-bottom:0}.v-input--selection-controls:not(.v-input--hide-details)>.v-input__slot{margin-bottom:12px}.v-input--selection-controls .v-input__slot,.v-input--selection-controls .v-radio{cursor:pointer}.v-input--selection-controls .v-input__slot>.v-label,.v-input--selection-controls .v-radio>.v-label{align-items:center;display:inline-flex;flex:1 1 auto;height:auto}.v-input--selection-controls__input{color:inherit;display:inline-flex;flex:0 0 auto;height:24px;position:relative;transition:.3s cubic-bezier(.25,.8,.5,1);transition-property:transform;width:24px;-webkit-user-select:none;user-select:none}.v-input--selection-controls__input .v-icon{width:100%}.v-application--is-ltr .v-input--selection-controls__input{margin-right:8px}.v-application--is-rtl .v-input--selection-controls__input{margin-left:8px}.v-input--selection-controls__input input[role=checkbox],.v-input--selection-controls__input input[role=radio],.v-input--selection-controls__input input[role=switch]{position:absolute;opacity:0;width:100%;height:100%;cursor:pointer;-webkit-user-select:none;user-select:none}.v-input--selection-controls__input+.v-label{cursor:pointer;-webkit-user-select:none;user-select:none}.v-input--selection-controls__ripple{border-radius:50%;cursor:pointer;height:34px;position:absolute;transition:inherit;width:34px;left:-12px;top:calc(50% - 24px);margin:7px}.v-input--selection-controls__ripple:before{border-radius:inherit;bottom:0;content:"";position:absolute;opacity:.2;left:0;right:0;top:0;transform-origin:center center;transform:scale(.2);transition:inherit}.v-input--selection-controls__ripple>.v-ripple__container{transform:scale(1.2)}.v-input--selection-controls.v-input--dense .v-input--selection-controls__ripple{width:28px;height:28px;left:-9px}.v-input--selection-controls.v-input--dense:not(.v-input--switch) .v-input--selection-controls__ripple{top:calc(50% - 21px)}.v-input--selection-controls.v-input{flex:0 1 auto}.v-input--selection-controls.v-input--is-focused .v-input--selection-controls__ripple:before,.v-input--selection-controls .v-radio--is-focused .v-input--selection-controls__ripple:before{background:currentColor;transform:scale(1.2)}.v-input--selection-controls.v-input--is-disabled:not(.v-input--indeterminate) .v-icon{color:inherit}.v-input--selection-controls.v-input--is-disabled:not(.v-input--is-readonly){pointer-events:none}.v-input--selection-controls__input:hover .v-input--selection-controls__ripple:before{background:currentColor;transform:scale(1.2);transition:none}.theme--light.v-file-input .v-file-input__text{color:rgba(0,0,0,.87)}.theme--light.v-file-input .v-file-input__text--placeholder{color:rgba(0,0,0,.6)}.theme--light.v-file-input.v-input--is-disabled .v-file-input__text,.theme--light.v-file-input.v-input--is-disabled .v-file-input__text .v-file-input__text--placeholder{color:rgba(0,0,0,.38)}.theme--dark.v-file-input .v-file-input__text{color:#fff}.theme--dark.v-file-input .v-file-input__text--placeholder{color:hsla(0,0%,100%,.7)}.theme--dark.v-file-input.v-input--is-disabled .v-file-input__text,.theme--dark.v-file-input.v-input--is-disabled .v-file-input__text .v-file-input__text--placeholder{color:hsla(0,0%,100%,.5)}.v-file-input input[type=file]{left:0;opacity:0;pointer-events:none;position:absolute;max-width:0;width:0}.v-file-input .v-file-input__text{align-items:center;align-self:stretch;display:flex;flex-wrap:wrap;width:100%}.v-file-input .v-file-input__text.v-file-input__text--chips{flex-wrap:wrap}.v-file-input .v-file-input__text .v-chip{margin:4px}.v-file-input .v-text-field__slot{min-height:32px}.v-file-input.v-input--dense .v-text-field__slot{min-height:26px}.v-file-input.v-text-field--filled:not(.v-text-field--single-line) .v-file-input__text{padding-top:22px}.v-file-input.v-text-field--outlined .v-text-field__slot{padding:6px 0}.v-file-input.v-text-field--outlined.v-input--dense .v-text-field__slot{padding:3px 0}.theme--light.v-snack__wrapper{color:rgba(0,0,0,.87)}.theme--dark.v-snack__wrapper{color:#fff}.v-sheet.v-snack__wrapper{border-radius:4px}.v-sheet.v-snack__wrapper:not(.v-sheet--outlined){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.v-sheet.v-snack__wrapper.v-sheet--shaped{border-radius:16px 4px}.v-snack{bottom:0;display:flex;font-size:.875rem;justify-content:center;left:0;pointer-events:none;right:0;top:0;width:100%}.v-snack:not(.v-snack--absolute){height:100vh;position:fixed;z-index:1000}.v-snack:not(.v-snack--centered):not(.v-snack--top){align-items:flex-end}.v-snack__wrapper{align-items:center;border-color:currentColor!important;display:flex;margin:8px;max-width:672px;min-height:48px;min-width:344px;padding:0;pointer-events:auto;position:relative;transition-duration:.15s;transition-property:opacity,transform;transition-timing-function:cubic-bezier(0,0,.2,1);z-index:1}.v-snack__wrapper.theme--dark{background-color:#333;color:hsla(0,0%,100%,.87)}.v-snack__content{flex-grow:1;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;line-height:1.25rem;margin-right:auto;padding:14px 16px;text-align:initial}.v-snack__action{align-items:center;align-self:center;display:flex}.v-snack__action .v-ripple__container{display:none}.v-application--is-ltr .v-snack__action{margin-right:8px}.v-application--is-rtl .v-snack__action{margin-left:8px}.v-snack__action>.v-snack__btn.v-btn{padding:0 8px}.v-snack__btn{margin-left:0;margin-right:0;margin:0;min-width:auto}.v-snack--absolute{height:100%;position:absolute;z-index:1}.v-snack--centered{align-items:center}.v-snack--left{justify-content:flex-start;right:auto}.v-snack--multi-line .v-snack__wrapper{min-height:68px}.v-snack--right{justify-content:flex-end;left:auto}.v-snack:not(.v-snack--has-background) .v-snack__wrapper{box-shadow:none}.v-snack--bottom{top:auto}.v-snack--text .v-snack__wrapper:before{background-color:currentColor;border-radius:inherit;bottom:0;content:"";left:0;opacity:.12;pointer-events:none;position:absolute;right:0;top:0;z-index:-1}.v-snack--top{align-items:flex-start;bottom:auto}.v-snack--vertical .v-snack__wrapper{flex-direction:column}.v-snack--vertical .v-snack__wrapper .v-snack__action{align-self:flex-end;margin-bottom:8px}.v-snack-transition-enter.v-snack__wrapper{transform:scale(.8)}.v-snack-transition-enter.v-snack__wrapper,.v-snack-transition-leave-to.v-snack__wrapper{opacity:0}.datePicker input{text-align:center;cursor:pointer}#PRB_FileControl .divider{border-right:1px solid rgba(0,0,0,.12)}#PRB_FileControl .v-data-table{border:thin solid rgba(0,0,0,.12);border-radius:0}#PRB_FileControl .v-data-table-header{background-color:#fafafa!important}#PRB_FileControl #datePicker{text-align:center}.theme--light.v-data-table tbody tr.v-data-table__selected{background:rgba(245,193,125,.4392156862745098)!important}.theme--dark.v-data-table tbody tr.v-data-table__selected{background:rgba(161,123,73,.4392156862745098)!important}.theme--dark.v-data-table tbody tr.v-data-table__selected:hover{background:rgba(161,123,73,.7607843137254902)!important}.theme--light.v-data-table tbody tr.v-data-table__selected:hover{background:rgba(255,210,150,.8235294117647058)!important} \ No newline at end of file diff --git a/dist/index.html b/dist/index.html index eaf201a..2797f69 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/dist/js/app.55390a2c.js b/dist/js/app.55390a2c.js deleted file mode 100644 index 6580d31..0000000 --- a/dist/js/app.55390a2c.js +++ /dev/null @@ -1,23 +0,0 @@ -(function(e){function t(t){for(var n,a,o=t[0],l=t[1],u=t[2],c=0,h=[];c0&&void 0!==arguments[0]?arguments[0]:{};this.nativeCol=e.nativeCol||0,this.nativeColOff=e.nativeColOff||0,this.nativeRow=e.nativeRow||0,this.nativeRowOff=e.nativeRowOff||0,e.col&&(this.col=e.col),e.row&&(this.row=e.row)};n.asInstance=function(e){return e instanceof n||null==e?e:new n(e)},n.prototype={worksheet:null,get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth},set col(e){e!==this.col&&(this.nativeCol=Math.floor(e),this.nativeColOff=Math.floor((e-this.nativeCol)*this.colWidth))},get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight},set row(e){e!==this.row&&(this.nativeRow=Math.floor(e),this.nativeRowOff=Math.floor((e-this.nativeRow)*this.rowHeight))},get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4},get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}}},{}],4:[function(e,t,r){"use strict";var n=e("../utils/col-cache"),a=e("../utils/under-dash"),i=e("./enums"),s=e("../utils/shared-formula"),o=s.slideFormula,l=t.exports=function(e,t,r){if(!e||!t)throw new Error("A Cell needs a Row");this._row=e,this._column=t,n.validateAddress(r),this._address=r,this._value=w.create(l.Types.Null,this),this.style=this._mergeStyle(e.style,t.style,{}),this._mergeCount=0};l.Types=i.ValueType,l.prototype={get worksheet(){return this._row.worksheet},get workbook(){return this._row.worksheet.workbook},destroy:function(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address},get numFmt(){return this.style.numFmt},set numFmt(e){this.style.numFmt=e},get font(){return this.style.font},set font(e){this.style.font=e},get alignment(){return this.style.alignment},set alignment(e){this.style.alignment=e},get border(){return this.style.border},set border(e){this.style.border=e},get fill(){return this.style.fill},set fill(e){this.style.fill=e},_mergeStyle:function(e,t,r){var n=e&&e.numFmt||t&&t.numFmt;n&&(r.numFmt=n);var a=e&&e.font||t&&t.font;a&&(r.font=a);var i=e&&e.alignment||t&&t.alignment;i&&(r.alignment=i);var s=e&&e.border||t&&t.border;s&&(r.border=s);var o=e&&e.fill||t&&t.fill;return o&&(r.fill=o),r},get address(){return this._address},get row(){return this._row.number},get col(){return this._column.number},get $col$row(){return"$"+this._column.letter+"$"+this.row},get type(){return this._value.type},get effectiveType(){return this._value.effectiveType},toCsvString:function(){return this._value.toCsvString()},addMergeRef:function(){this._mergeCount++},releaseMergeRef:function(){this._mergeCount--},get isMerged(){return this._mergeCount>0||this.type===l.Types.Merge},merge:function(e){this._value.release(),this._value=w.create(l.Types.Merge,this,e),this.style=e.style},unmerge:function(){this.type===l.Types.Merge&&(this._value.release(),this._value=w.create(l.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))},isMergedTo:function(e){return this._value.type===l.Types.Merge&&this._value.isMergedTo(e)},get master(){return this.type===l.Types.Merge?this._value.master:this},get isHyperlink(){return this._value.type===l.Types.Hyperlink},get hyperlink(){return this._value.hyperlink},get value(){return this._value.value},set value(e){this.type!==l.Types.Merge?(this._value.release(),this._value=w.create(w.getType(e),this,e)):this._value.master.value=e},get text(){return this._value.toString()},get html(){return a.escapeHtml(this.text)},toString:function(){return this.text},_upgradeToHyperlink:function(e){this.type===l.Types.String&&(this._value=w.create(l.Types.Hyperlink,this,{text:this._value.value,hyperlink:e}))},get formula(){return this._value.formula},get result(){return this._value.result},get formulaType(){return this._value.formulaType},get fullAddress(){var e=this._row.worksheet;return{sheetName:e.name,address:this.address,row:this.row,col:this.col}},get name(){return this.names[0]},set name(e){this.names=[e]},get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)},set names(e){var t=this,r=this.workbook.definedNames;this.workbook.definedNames.removeAllNames(t.fullAddress),e.forEach((function(e){r.addEx(t.fullAddress,e)}))},addName:function(e){this.workbook.definedNames.addEx(this.fullAddress,e)},removeName:function(e){this.workbook.definedNames.removeEx(this.fullAddress,e)},removeAllNames:function(){this.workbook.definedNames.removeAllNames(this.fullAddress)},get _dataValidations(){return this.worksheet.dataValidations},get dataValidation(){return this._dataValidations.find(this.address)},set dataValidation(e){this._dataValidations.add(this.address,e)},get model(){var e=this._value.model;return e.style=this.style,e},set model(e){this._value.release(),this._value=w.create(e.type,this),this._value.model=e,e.style?this.style=e.style:this.style={}}};var u=function(e){this.model={address:e.address,type:l.Types.Null}};u.prototype={get value(){return null},set value(e){},get type(){return l.Types.Null},get effectiveType(){return l.Types.Null},get address(){return this.model.address},set address(e){this.model.address=e},toCsvString:function(){return""},release:function(){},toString:function(){return""}};var c=function(e,t){this.model={address:e.address,type:l.Types.Number,value:t}};c.prototype={get value(){return this.model.value},set value(e){this.model.value=e},get type(){return l.Types.Number},get effectiveType(){return l.Types.Number},get address(){return this.model.address},set address(e){this.model.address=e},toCsvString:function(){return""+this.model.value},release:function(){},toString:function(){return this.model.value.toString()}};var h=function(e,t){this.model={address:e.address,type:l.Types.String,value:t}};h.prototype={get value(){return this.model.value},set value(e){this.model.value=e},get type(){return l.Types.String},get effectiveType(){return l.Types.String},get address(){return this.model.address},set address(e){this.model.address=e},toCsvString:function(){return'"'+this.model.value.replace(/"/g,'""')+'"'},release:function(){},toString:function(){return this.model.value}};var d=function(e,t){this.model={address:e.address,type:l.Types.String,value:t}};d.prototype={get value(){return this.model.value},set value(e){this.model.value=e},toString:function(){return this.model.value.richText.map((function(e){return e.text})).join("")},get type(){return l.Types.RichText},get effectiveType(){return l.Types.RichText},get address(){return this.model.address},set address(e){this.model.address=e},toCsvString:function(){return'"'+this.text.replace(/"/g,'""')+'"'},release:function(){}};var f=function(e,t){this.model={address:e.address,type:l.Types.Date,value:t}};f.prototype={get value(){return this.model.value},set value(e){this.model.value=e},get type(){return l.Types.Date},get effectiveType(){return l.Types.Date},get address(){return this.model.address},set address(e){this.model.address=e},toCsvString:function(){return this.model.value.toISOString()},release:function(){},toString:function(){return this.model.value.toString()}};var p=function(e,t){this.model=Object.assign({address:e.address,type:l.Types.Hyperlink,text:t?t.text:void 0,hyperlink:t?t.hyperlink:void 0},t&&t.tooltip?{tooltip:t.tooltip}:{})};p.prototype={get value(){return Object.assign({text:this.model.text,hyperlink:this.model.hyperlink},this.model.tooltip?{tooltip:this.model.tooltip}:{})},set value(e){this.model=Object.assign({text:e.text,hyperlink:e.hyperlink},e&&e.tooltip?{tooltip:e.tooltip}:{})},get text(){return this.model.text},set text(e){this.model.text=e},get hyperlink(){return this.model.hyperlink},set hyperlink(e){this.model.hyperlink=e},get type(){return l.Types.Hyperlink},get effectiveType(){return l.Types.Hyperlink},get address(){return this.model.address},set address(e){this.model.address=e},toCsvString:function(){return this.model.hyperlink},release:function(){},toString:function(){return this.model.text}};var m=function(e,t){this.model={address:e.address,type:l.Types.Merge,master:t?t.address:void 0},this._master=t,t&&t.addMergeRef()};m.prototype={get value(){return this._master.value},set value(e){e instanceof l?(this._master&&this._master.releaseMergeRef(),e.addMergeRef(),this._master=e):this._master.value=e},isMergedTo:function(e){return e===this._master},get master(){return this._master},get type(){return l.Types.Merge},get effectiveType(){return this._master.effectiveType},get address(){return this.model.address},set address(e){this.model.address=e},toCsvString:function(){return""},release:function(){this._master.releaseMergeRef()},toString:function(){return this.value.toString()}};var g=function(e,t){this.cell=e,this.model={address:e.address,type:l.Types.Formula,formula:t?t.formula:void 0,sharedFormula:t?t.sharedFormula:void 0,result:t?t.result:void 0}};g.prototype={get value(){return this.model.formula?{formula:this.model.formula,result:this.model.result}:{sharedFormula:this.model.sharedFormula,result:this.model.result}},set value(e){this.model.formula=e.formula,this.model.sharedFormula=e.sharedFormula,this.model.result=e.result},validate:function(e){switch(w.getType(e)){case l.Types.Null:case l.Types.String:case l.Types.Number:case l.Types.Date:break;case l.Types.Hyperlink:case l.Types.Formula:default:throw new Error("Cannot process that type of result value")}},get dependencies(){var e=this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),t=this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g);return{ranges:e,cells:t}},get formula(){return this.model.formula||this._getTranslatedFormula()},set formula(e){this.model.formula=e},get formulaType(){return this.model.formula?i.FormulaType.Master:this.model.sharedFormula?i.FormulaType.Shared:i.FormulaType.None},get result(){return this.model.result},set result(e){this.model.result=e},get type(){return l.Types.Formula},get effectiveType(){var e=this.model.result;return null===e||void 0===e?i.ValueType.Null:e instanceof String||"string"===typeof e?i.ValueType.String:"number"===typeof e?i.ValueType.Number:e instanceof Date?i.ValueType.Date:e.text&&e.hyperlink?i.ValueType.Hyperlink:e.formula?i.ValueType.Formula:i.ValueType.Null},get address(){return this.model.address},set address(e){this.model.address=e},_getTranslatedFormula:function(){if(!this._translatedFormula&&this.model.sharedFormula){var e=this.cell.worksheet,t=e.findCell(this.model.sharedFormula);this._translatedFormula=t&&o(t.formula,t.address,this.model.address)}return this._translatedFormula},toCsvString:function(){return""+(this.model.result||"")},release:function(){},toString:function(){return this.model.result?this.model.result.toString():""}};var _=function(e,t){this.model={address:e.address,type:l.Types.SharedString,value:t}};_.prototype={get value(){return this.model.value},set value(e){this.model.value=e},get type(){return l.Types.SharedString},get effectiveType(){return l.Types.SharedString},get address(){return this.model.address},set address(e){this.model.address=e},toCsvString:function(){return""+this.model.value},release:function(){},toString:function(){return this.model.value.toString()}};var y=function(e,t){this.model={address:e.address,type:l.Types.Boolean,value:t}};y.prototype={get value(){return this.model.value},set value(e){this.model.value=e},get type(){return l.Types.Boolean},get effectiveType(){return l.Types.Boolean},get address(){return this.model.address},set address(e){this.model.address=e},toCsvString:function(){return this.model.value?1:0},release:function(){},toString:function(){return this.model.value.toString()}};var v=function(e,t){this.model={address:e.address,type:l.Types.Error,value:t}};v.prototype={get value(){return this.model.value},set value(e){this.model.value=e},get type(){return l.Types.Error},get effectiveType(){return l.Types.Error},get address(){return this.model.address},set address(e){this.model.address=e},toCsvString:function(){return this.toString()},release:function(){},toString:function(){return this.model.value.error.toString()}};var b=function(e,t){this.model={address:e.address,type:l.Types.String,value:JSON.stringify(t),rawValue:t}};b.prototype={get value(){return this.model.rawValue},set value(e){this.model.rawValue=e,this.model.value=JSON.stringify(e)},get type(){return l.Types.String},get effectiveType(){return l.Types.String},get address(){return this.model.address},set address(e){this.model.address=e},toCsvString:function(){return this.model.value},release:function(){},toString:function(){return this.model.value}};var w={getType:function(e){return null===e||void 0===e?l.Types.Null:e instanceof String||"string"===typeof e?l.Types.String:"number"===typeof e?l.Types.Number:"boolean"===typeof e?l.Types.Boolean:e instanceof Date?l.Types.Date:e.text&&e.hyperlink?l.Types.Hyperlink:e.formula||e.sharedFormula?l.Types.Formula:e.richText?l.Types.RichText:e.sharedString?l.Types.SharedString:e.error?l.Types.Error:l.Types.JSON},types:[{t:l.Types.Null,f:u},{t:l.Types.Number,f:c},{t:l.Types.String,f:h},{t:l.Types.Date,f:f},{t:l.Types.Hyperlink,f:p},{t:l.Types.Formula,f:g},{t:l.Types.Merge,f:m},{t:l.Types.JSON,f:b},{t:l.Types.SharedString,f:_},{t:l.Types.RichText,f:d},{t:l.Types.Boolean,f:y},{t:l.Types.Error,f:v}].reduce((function(e,t){return e[t.t]=t.f,e}),[]),create:function(e,t,r){var n=this.types[e];if(!n)throw new Error("Could not create Value of type "+e);return new n(t,r)}}},{"../utils/col-cache":15,"../utils/shared-formula":17,"../utils/under-dash":20,"./enums":8}],5:[function(e,t,r){"use strict";var n=e("../utils/under-dash"),a=e("./enums"),i=e("../utils/col-cache"),s=t.exports=function(e,t,r){this._worksheet=e,this._number=t,!1!==r&&(this.defn=r)};s.prototype={get number(){return this._number},get worksheet(){return this._worksheet},get letter(){return i.n2l(this._number)},get isCustomWidth(){return void 0!==this.width&&8!==this.width},get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}},set defn(e){e?(this.key=e.key,this.width=e.width,this.outlineLevel=e.outlineLevel,e.style?this.style=e.style:this.style={},this.header=e.header,this._hidden=!!e.hidden):(delete this._header,delete this.key,delete this.width,this.style={},this.outlineLevel=0)},get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]},get header(){return this._header},set header(e){var t=this;void 0!==e?(this._header=e,this.headers.forEach((function(e,r){t._worksheet.getCell(r+1,t.number).value=e}))):this._header=void 0},get key(){return this._key},set key(e){var t=this._key&&this._worksheet.getColumnKey(this._key);t===this&&this._worksheet.deleteColumnKey(this._key),this._key=e,e&&this._worksheet.setColumnKey(this._key,this)},get hidden(){return!!this._hidden},set hidden(e){this._hidden=e},get outlineLevel(){return this._outlineLevel||0},set outlineLevel(e){this._outlineLevel=e},get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)},toString:function(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})},equivalentTo:function(e){return this.width===e.width&&this.hidden===e.hidden&&this.outlineLevel===e.outlineLevel&&n.isEqual(this.style,e.style)},get isDefault(){if(this.isCustomWidth)return!1;if(this.hidden)return!1;if(this.outlineLevel)return!1;var e=this.style;return!e||!(e.font||e.numFmt||e.alignment||e.border||e.fill)},get headerCount(){return this.headers.length},eachCell:function(e,t){var r=this.number;t||(t=e,e=null),this._worksheet.eachRow(e,(function(e,n){t(e.getCell(r),n)}))},get values(){var e=[];return this.eachCell((function(t,r){t&&t.type!==a.ValueType.Null&&(e[r]=t.value)})),e},set values(e){var t=this;if(e){var r=this.number,n=0;e.hasOwnProperty("0")&&(n=1),e.forEach((function(e,a){t._worksheet.getCell(a+n,r).value=e}))}},_applyStyle:function(e,t){return this.style[e]=t,this.eachCell((function(r){r[e]=t})),t},get numFmt(){return this.style.numFmt},set numFmt(e){this._applyStyle("numFmt",e)},get font(){return this.style.font},set font(e){this._applyStyle("font",e)},get alignment(){return this.style.alignment},set alignment(e){this._applyStyle("alignment",e)},get border(){return this.style.border},set border(e){this._applyStyle("border",e)},get fill(){return this.style.fill},set fill(e){this._applyStyle("fill",e)}},s.toModel=function(e){var t=[],r=null;return e&&e.forEach((function(e,n){e.isDefault?r&&(r=null):r&&e.equivalentTo(r)?r.max=n+1:(r={min:n+1,max:n+1,width:e.width,style:e.style,isCustomWidth:e.isCustomWidth,hidden:e.hidden,outlineLevel:e.outlineLevel,collapsed:e.collapsed},t.push(r))})),t.length?t:void 0},s.fromModel=function(e,t){t=t||[];var r=[],n=1,a=0;while(athis.bottom)&&(this.bottom=r),(!this.model.right||n>this.right)&&(this.right=n)},expandRow:function(e){if(e){var t=e.dimensions;t&&this.expand(e.number,t.min,e.number,t.max)}},expandToAddress:function(e){var t=n.decodeEx(e);this.expand(t.row,t.col,t.row,t.col)},get tl(){return n.n2l(this.left)+this.top},get $t$l(){return"$"+n.n2l(this.left)+"$"+this.top},get br(){return n.n2l(this.right)+this.bottom},get $b$r(){return"$"+n.n2l(this.right)+"$"+this.bottom},get range(){return this._serialisedSheetName+this.tl+":"+this.br},get $range(){return this._serialisedSheetName+this.$t$l+":"+this.$b$r},get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl},get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l},get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)},toString:function(){return this.range},intersects:function(e){return(!e.sheetName||!this.sheetName||e.sheetName===this.sheetName)&&(!(e.bottomthis.bottom)&&(!(e.rightthis.right))))},contains:function(e){var t=n.decodeEx(e);return this.containsEx(t)},containsEx:function(e){return(!e.sheetName||!this.sheetName||e.sheetName===this.sheetName)&&(e.row>=this.top&&e.row<=this.bottom&&e.col>=this.left&&e.col<=this.right)}}},{"./../utils/col-cache":15}],10:[function(e,t,r){"use strict";var n=e("../utils/under-dash"),a=e("./enums"),i=e("./../utils/col-cache"),s=e("./cell"),o=t.exports=function(e,t){this._worksheet=e,this._number=t,this._cells=[],this.style={},this.outlineLevel=0};o.prototype={get number(){return this._number},get worksheet(){return this._worksheet},commit:function(){this._worksheet._commitRow(this)},destroy:function(){delete this._worksheet,delete this._cells,delete this.style},findCell:function(e){return this._cells[e-1]},getCellEx:function(e){var t=this._cells[e.col-1];if(!t){var r=this._worksheet.getColumn(e.col);t=new s(this,r,e.address),this._cells[e.col-1]=t}return t},getCell:function(e){if("string"===typeof e){var t=this._worksheet.getColumnKey(e);e=t?t.number:i.l2n(e)}return this._cells[e-1]||this.getCellEx({address:i.encodeAddress(this._number,e),row:this._number,col:e})},splice:function(e,t){var r=Array.prototype.slice.call(arguments,2),n=e+t,a=r.length-t,i=this._cells.length,s=void 0,o=void 0,l=void 0;if(a<0)for(s=e+r.length;s<=i;s++)l=this._cells[s-1],o=this._cells[s-a-1],o?(l=this.getCell(s),l.value=o.value,l.style=o.style):l&&(l.value=null,l.style={});else if(a>0)for(s=i;s>=n;s--)o=this._cells[s-1],o?(l=this.getCell(s+a),l.value=o.value,l.style=o.style):this._cells[s+a-1]=void 0;for(s=0;sr.col)&&(e=r.col),t0?{min:e,max:t}:null},_applyStyle:function(e,t){return this.style[e]=t,this._cells.forEach((function(r){r&&(r[e]=t)})),t},get numFmt(){return this.style.numFmt},set numFmt(e){this._applyStyle("numFmt",e)},get font(){return this.style.font},set font(e){this._applyStyle("font",e)},get alignment(){return this.style.alignment},set alignment(e){this._applyStyle("alignment",e)},get border(){return this.style.border},set border(e){this._applyStyle("border",e)},get fill(){return this.style.fill},set fill(e){this._applyStyle("fill",e)},get hidden(){return!!this._hidden},set hidden(e){this._hidden=e},get outlineLevel(){return this._outlineLevel||0},set outlineLevel(e){this._outlineLevel=e},get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)},get model(){var e=[],t=0,r=0;return this._cells.forEach((function(n){if(n){var a=n.model;a&&((!t||t>n.col)&&(t=n.col),re?t.orderNo:e}),0),i=Object.assign({},t,{id:r,name:e,orderNo:a+1,workbook:this}),s=new n(i);return this._worksheets[r]=s,s},removeWorksheetEx:function(e){delete this._worksheets[e.id]},removeWorksheet:function(e){var t=this.getWorksheet(e);t&&t.destroy()},getWorksheet:function(e){return void 0===e?this._worksheets.find((function(e){return e})):"number"===typeof e?this._worksheets[e]:"string"===typeof e?this._worksheets.find((function(t){return t&&t.name===e})):void 0},get worksheets(){return this._worksheets.slice(1).sort((function(e,t){return e.orderNo-t.orderNo})).filter(Boolean)},eachSheet:function(e){this.worksheets.forEach((function(t){e(t,t.id)}))},get definedNames(){return this._definedNames},clearThemes:function(){this._themes=void 0},addImage:function(e){var t=this.media.length;return this.media.push(Object.assign({},e,{type:"image"})),t},getImage:function(e){return this.media[e]},get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map((function(e){return e.model})),sheets:this.worksheets.map((function(e){return e.model})).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media}},set model(e){var t=this;this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.lastPrinted=e.lastPrinted,this.created=e.created,this.modified=e.modified,this.company=e.company,this.manager=e.manager,this.title=e.title,this.subject=e.subject,this.keywords=e.keywords,this.category=e.category,this.description=e.description,this.language=e.language,this.revision=e.revision,this.contentStatus=e.contentStatus,this.properties=e.properties,this._worksheets=[],e.worksheets.forEach((function(r){var a=r.id,i=r.name,s=e.sheets.findIndex((function(e){return e.id===a})),o=r.state,l=t._worksheets[a]=new n({id:a,name:i,orderNo:s,state:o,workbook:t});l.model=r})),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}},{"./../csv/csv":2,"./../xlsx/xlsx":89,"./defined-names":7,"./worksheet":12}],12:[function(e,t,r){"use strict";var n=e("../utils/under-dash"),a=e("./../utils/col-cache"),i=e("./range"),s=e("./row"),o=e("./column"),l=e("./enums"),u=e("./anchor"),c=e("./data-validations"),h=function(e){e=e||{},this.id=e.id,this.orderNo=e.orderNo,this.name=e.name||"Sheet"+this.id,this.state=e.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this._workbook=e.workbook,this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},e.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!e.pageSetup||!e.pageSetup.fitToWidth&&!e.pageSetup.fitToHeight||e.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},e.pageSetup),this.dataValidations=new c,this.views=e.views||[],this.autoFilter=e.autoFilter||null,this._media=[]};h.prototype={get workbook(){return this._workbook},destroy:function(){this._workbook.removeWorksheetEx(this)},get dimensions(){var e=new i;return this._rows.forEach((function(t){if(t){var r=t.dimensions;r&&e.expand(t.number,r.min,t.number,r.max)}})),e},get columns(){return this._columns},set columns(e){var t=this;this._headerRowCount=e.reduce((function(e,t){var r=(t.header?1:t.headers&&t.headers.length)||0;return Math.max(e,r)}),0);var r=1,n=this._columns=[];e.forEach((function(e){var a=new o(t,r++,!1);n.push(a),a.defn=e}))},getColumnKey:function(e){return this._keys[e]},setColumnKey:function(e,t){this._keys[e]=t},deleteColumnKey:function(e){delete this._keys[e]},eachColumnKey:function(e){n.each(this._keys,e)},getColumn:function(e){if("string"===typeof e){var t=this._keys[e];if(t)return t;e=a.l2n(e)}if(this._columns||(this._columns=[]),e>this._columns.length){var r=this._columns.length+1;while(r<=e)this._columns.push(new o(this,r++))}return this._columns[e-1]},spliceColumns:function(e,t){var r=this,n=void 0,a=Array.prototype.slice.call(arguments,2),i=this._rows,s=i.length;if(a.length>0){var o=function(){var i=[e,t];a.forEach((function(e){i.push(e[n]||null)}));var s=r.getRow(n+1);s.splice.apply(s,i)};for(n=0;n0)for(n=c;n>=u;n--)this.getColumn(n+l).defn=this.getColumn(n).defn;for(n=e;n0&&void 0===e[t-1])t--;return t},get _nextRow(){return this._lastRowNumber+1},get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]},findRow:function(e){return this._rows[e-1]},get rowCount(){return this._lastRowNumber},get actualRowCount(){var e=0;return this.eachRow((function(){e++})),e},getRow:function(e){var t=this._rows[e-1];return t||(t=this._rows[e-1]=new s(this,e)),t},addRow:function(e){var t=this.getRow(this._nextRow);return t.values=e,t},addRows:function(e){var t=this;e.forEach((function(e){t.addRow(e)}))},spliceRows:function(e,t){var r=this,n=Array.prototype.slice.call(arguments,2),a=e+t,i=n.length-t,s=this._rows.length,o=void 0,l=void 0;if(i<0)for(o=a;o<=s;o++)l=this._rows[o-1],l?function(){var e=r.getRow(o+i);e.values=l.values,e.style=l.style,l.eachCell({includeEmpty:!0},(function(t,r){e.getCell(r).style=t.style})),r._rows[o-1]=void 0}():this._rows[o+i-1]=void 0;else if(i>0)for(o=s;o>=a;o--)l=this._rows[o-1],l?function(){var e=r.getRow(o+i);e.values=l.values,e.style=l.style,l.eachCell({includeEmpty:!0},(function(t,r){e.getCell(r).style=t.style}))}():this._rows[o+i-1]=void 0;for(o=0;oe.top||a>e.left)&&this.getCell(r,a).merge(t);this._merges[t.address]=e},_unMergeMaster:function(e){var t=this._merges[e.address];if(t){for(var r=t.top;r<=t.bottom;r++)for(var n=t.left;n<=t.right;n++)this.getCell(r,n).unmerge();delete this._merges[e.address]}},get hasMerges(){return n.some(this._merges,(function(){return!0}))},unMergeCells:function(){for(var e=new i(Array.prototype.slice.call(arguments,0)),t=e.top;t<=e.bottom;t++)for(var r=e.left;r<=e.right;r++){var n=this.findCell(t,r);n&&(n.type===l.ValueType.Merge?this._unMergeMaster(n.master):this._merges[n.address]&&this._unMergeMaster(n))}},fillFormula:function(e,t,r){var n=a.decode(e),i=n.top,s=n.left,o=n.bottom,l=n.right,u=l-s+1,c=a.encodeAddress(i,s),h=void 0;h="function"===typeof r?r:Array.isArray(r)?Array.isArray(r[0])?function(e,t){return r[e-i][t-s]}:function(e,t){return r[(e-i)*u+(t-s)]}:function(){};for(var d=!0,f=i;f<=o;f++)for(var p=s;p<=l;p++)d?(this.getCell(f,p).value={formula:t,result:h(f,p)},d=!1):this.getCell(f,p).value={sharedFormula:c,result:h(f,p)}},addImage:function(e,t){!t.tl||t.tl instanceof u||(t.tl=new u(t.tl),t.tl.worksheet=this),!t.br||t.br instanceof u||(t.br=new u(t.br),t.br.worksheet=this),this._media.push({type:"image",imageId:e,range:t})},getImages:function(){return this._media.filter((function(e){return"image"===e.type}))},addBackgroundImage:function(e){this._media.push({type:"background",imageId:e})},getBackgroundImageId:function(){return this._media.filter((function(e){return"background"===e.type})).map((function(e){return e.imageId}))[0]},get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor},set tabColor(e){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=e},get model(){var e={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media};e.cols=o.toModel(this.columns);var t=e.rows=[],r=e.dimensions=new i;return this._rows.forEach((function(e){var n=e&&e.model;n&&(r.expand(n.number,n.min,n.number,n.max),t.push(n))})),e.merges=[],n.each(this._merges,(function(t){e.merges.push(t.range)})),e},_parseRows:function(e){var t=this;this._rows=[],e.rows.forEach((function(e){var r=new s(t,e.number);t._rows[r.number-1]=r,r.model=e}))},_parseMergeCells:function(e){var t=this;n.each(e.mergeCells,(function(e){t.mergeCells(e)}))},set model(e){var t=this;this.name=e.name,this._columns=o.fromModel(this,e.cols),this._parseRows(e),this._parseMergeCells(e),this.dataValidations=new c(e.dataValidations),this.properties=e.properties,this.pageSetup=e.pageSetup,this.views=e.views,this.autoFilter=e.autoFilter,this._media=e.media,this._media.filter((function(e){return"image"===e.type&&"string"!==typeof e.range})).forEach((function(e){e.range.tl.worksheet=t,e.range.br.worksheet=t}))}},t.exports=h},{"../utils/under-dash":20,"./../utils/col-cache":15,"./anchor":3,"./column":5,"./data-validations":6,"./enums":8,"./range":9,"./row":10}],13:[function(e,t,r){"use strict";var n=e("./config/set-value");n("promise",e("promish/dist/promish-node"),!1);var a={Workbook:e("./doc/workbook")},i=e("./doc/enums");Object.keys(i).forEach((function(e){a[e]=i[e]})),t.exports=a},{"./config/set-value":1,"./doc/enums":8,"./doc/workbook":11,"promish/dist/promish-node":200}],14:[function(e,t,r){"use strict";var n=e("./under-dash"),a=e("./col-cache"),i=function(e){this.template=e,this.sheets={}};i.prototype={addCell:function(e){this.addCellEx(a.decodeEx(e))},getCell:function(e){return this.findCellEx(a.decodeEx(e),!0)},findCell:function(e){return this.findCellEx(a.decodeEx(e),!1)},findCellAt:function(e,t,r){var n=this.sheets[e],a=n&&n[t];return a&&a[r]},addCellEx:function(e){if(e.top)for(var t=e.top;t<=e.bottom;t++)for(var r=e.left;r<=e.right;r++)this.getCellAt(e.sheetName,t,r);else this.findCellEx(e,!0)},getCellEx:function(e){return this.findCellEx(e,!0)},findCellEx:function(e,t){var r=this.findSheet(e,t),n=this.findSheetRow(r,e,t);return this.findRowCell(n,e,t)},getCellAt:function(e,t,r){var n=this.sheets[e]||(this.sheets[e]=[]),i=n[t]||(n[t]=[]);return i[r]||(i[r]={sheetName:e,address:a.n2l(r)+t,row:t,col:r})},removeCellEx:function(e){var t=this.findSheet(e);if(t){var r=this.findSheetRow(t,e);r&&delete r[e.col]}},forEach:function(e){n.each(this.sheets,(function(t){t&&t.forEach((function(t){t&&t.forEach((function(t){t&&e(t)}))}))}))},map:function(e){var t=[];return this.forEach((function(r){t.push(e(r))})),t},findSheet:function(e,t){var r=e.sheetName;return this.sheets[r]?this.sheets[r]:t?this.sheets[r]=[]:void 0},findSheetRow:function(e,t,r){var n=t.row;return e&&e[n]?e[n]:r?e[n]=[]:void 0},findRowCell:function(e,t,r){var n=t.col;return e&&e[n]?e[n]:r?e[n]=this.template?Object.assign(t,JSON.parse(JSON.stringify(this.template))):t:void 0}},t.exports=i},{"./col-cache":15,"./under-dash":20}],15:[function(e,t,r){"use strict";var n=t.exports={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2n:{},_n2l:[],_level:function(e){return e<=26?1:e<=676?2:3},_fill:function(e){var t,r,n,a,i,s=1;if(e>=1)while(s<=26)t=this._dictionary[s-1],this._n2l[s]=t,this._l2n[t]=s,s++;if(e>=2)while(s<=702)r=s-27,n=r%26,a=Math.floor(r/26),t=this._dictionary[a]+this._dictionary[n],this._n2l[s]=t,this._l2n[t]=s,s++;if(e>=3)while(s<=16384)r=s-703,n=r%26,a=Math.floor(r/26)%26,i=Math.floor(r/676),t=this._dictionary[i]+this._dictionary[a]+this._dictionary[n],this._n2l[s]=t,this._l2n[t]=s,s++},l2n:function(e){if(this._l2n[e]||this._fill(e.length),!this._l2n[e])throw new Error("Out of bounds. Invalid column letter: "+e);return this._l2n[e]},n2l:function(e){if(e<1||e>16384)throw new Error(e+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[e]||this._fill(this._level(e)),this._n2l[e]},_hash:{},validateAddress:function(e){if(!e.match(/^[A-Z]+\d+$/))throw new Error("Invalid Address: "+e);return!0},decodeAddress:function(e){var t=this._hash[e];if(t)return t;var r,n,a=e.match(/[A-Z]+/);a&&(r=a[0],n=this.l2n(r));var i,s,o=e.match(/\d+/);o&&(i=o[0],s=parseInt(i,10)),e=(r||"")+(i||"");var l={address:e,col:n,row:s,$col$row:"$"+(r||"")+"$"+(i||"")};return n<=100&&s<=100&&(this._hash[e]=l,this._hash[l.$col$row]=l),l},getAddress:function(e,t){if(t){var r=this.n2l(t)+e;return this.decodeAddress(r)}return this.decodeAddress(e)},decode:function(e){var t=e.split(":");if(2===t.length){var r=this.decodeAddress(t[0]),n=this.decodeAddress(t[1]),a={top:Math.min(r.row,n.row),left:Math.min(r.col,n.col),bottom:Math.max(r.row,n.row),right:Math.max(r.col,n.col)};return a.tl=this.n2l(a.left)+a.top,a.br=this.n2l(a.right)+a.bottom,a.dimensions=a.tl+":"+a.br,a}return this.decodeAddress(e)},decodeEx:function(e){var t=e.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),r=t[1]||t[2],n=t[3],a=n.split(":");if(a.length>1){var i=this.decodeAddress(a[0]),s=this.decodeAddress(a[1]),o=Math.min(i.row,s.row),l=Math.min(i.col,s.col),u=Math.max(i.row,s.row),c=Math.max(i.col,s.col);return i=this.n2l(l)+o,s=this.n2l(c)+u,{top:o,left:l,bottom:u,right:c,sheetName:r,tl:{address:i,col:l,row:o,$col$row:"$"+this.n2l(l)+"$"+o,sheetName:r},br:{address:s,col:c,row:u,$col$row:"$"+this.n2l(c)+"$"+u,sheetName:r},dimensions:i+":"+s}}if(n.startsWith("#"))return r?{sheetName:r,error:n}:{error:n};var h=this.decodeAddress(n);return r?Object.assign({sheetName:r},h):h},encodeAddress:function(e,t){return n.n2l(t)+e},encode:function(){switch(arguments.length){case 2:return n.encodeAddress(arguments[0],arguments[1]);case 4:return n.encodeAddress(arguments[0],arguments[1])+":"+n.encodeAddress(arguments[2],arguments[3]);default:throw new Error("Can only encode with 2 or 4 arguments")}}}},{}],16:[function(e,t,r){"use strict";t.exports={Promish:null}},{}],17:[function(e,t,r){"use strict";var n=e("./col-cache"),a=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,i=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i,s=function(e,t,r){var s=n.decode(t),o=n.decode(r);return e.replace(a,(function(e,t,r,a,l){if(l)return e;var u=i.exec(a);if(u){var c=u[1],h=u[2].toUpperCase(),d=u[3],f=u[4];if(h.length>3||3===h.length&&h>"XFD")return e;var p=n.l2n(h),m=parseInt(f,10);c||(p+=o.col-s.col),d||(m+=o.row-s.row);var g=(t||"")+(c||"")+n.n2l(p)+(d||"")+m;return g}return e}))};t.exports={slideFormula:s}},{"./col-cache":15}],18:[function(e,t,r){(function(r,n){"use strict";var a=e("stream"),i=e("./promish"),s=e("./utils"),o=e("./string-buf"),l=function(e,t){this._data=e,this._encoding=t};l.prototype={get length(){return this.toBuffer().length},copy:function(e,t,r,n){return this.toBuffer().copy(e,t,r,n)},toBuffer:function(){return this._buffer||(this._buffer=new n(this._data,this._encoding)),this._buffer}};var u=function(e){this._data=e};u.prototype={get length(){return this._data.length},copy:function(e,t,r,n){return this._data._buf.copy(e,t,r,n)},toBuffer:function(){return this._data.toBuffer()}};var c=function(e){this._data=e};c.prototype={get length(){return this._data.length},copy:function(e,t,r,n){this._data.copy(e,t,r,n)},toBuffer:function(){return this._data}};var h=function(e){this.size=e,this.buffer=new n(e),this.iRead=0,this.iWrite=0};h.prototype={toBuffer:function(){if(0===this.iRead&&this.iWrite===this.size)return this.buffer;var e=new n(this.iWrite-this.iRead);return this.buffer.copy(e,0,this.iRead,this.iWrite),e},get length(){return this.iWrite-this.iRead},get eod(){return this.iRead===this.iWrite},get full(){return this.iWrite===this.size},read:function(e){var t;return 0===e?null:void 0===e||e>=this.length?(t=this.toBuffer(),this.iRead=this.iWrite,t):(t=new n(e),this.buffer.copy(t,0,this.iRead,e),this.iRead+=e,t)},write:function(e,t,r){var n=Math.min(r,this.size-this.iWrite);return e.copy(this.buffer,this.iWrite,t,t+n),this.iWrite+=n,n}};var d=t.exports=function(e){e=e||{},this.bufSize=e.bufSize||1048576,this.buffers=[],this.batch=e.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};s.inherits(d,a.Duplex,{toBuffer:function(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return n.concat(this.buffers.map((function(e){return e.toBuffer()})))}},_getWritableBuffer:function(){if(this.buffers.length){var e=this.buffers[this.buffers.length-1];if(!e.full)return e}var t=new h(this.bufSize);return this.buffers.push(t),t},_pipe:function(e){var t=function(t){return new i.Promish((function(r){t.write(e.toBuffer(),(function(){r()}))}))},r=this.pipes.map(t);return r.length?i.Promish.all(r).then(s.nop):i.Promish.resolve()},_writeToBuffers:function(e){var t=0,r=e.length;while(t1)this._pipe(this.buffers.shift())}else this.corked?(this._writeToBuffers(i),r.nextTick(a)):this._pipe(i).then(a);else this.paused||this.emit("data",i.toBuffer()),this._writeToBuffers(i),this.emit("readable");return!0},cork:function(){this.corked=!0},_flush:function(){if(this.pipes.length)while(this.buffers.length)this._pipe(this.buffers.shift())},uncork:function(){this.corked=!1,this._flush()},end:function(e,t,r){var n=this,a=function(e){e?r(e):(n._flush(),n.pipes.forEach((function(e){e.end()})),n.emit("finish"))};e?this.write(e,t,a):a()},read:function(e){var t;if(e){t=[];while(e&&this.buffers.length&&!this.buffers[0].eod){var r=this.buffers[0],a=r.read(e);e-=a.length,t.push(a),r.eod&&r.full&&this.buffers.shift()}return n.concat(t)}return t=this.buffers.map((function(e){return e.toBuffer()})).filter(Boolean),this.buffers=[],n.concat(t)},setEncoding:function(e){this.encoding=e},pause:function(){this.paused=!0},resume:function(){this.paused=!1},isPaused:function(){return!!this.paused},pipe:function(e){this.pipes.push(e),!this.paused&&this.buffers.length&&this.end()},unpipe:function(e){this.pipes=this.pipes.filter((function(t){return t!==e}))},unshift:function(){throw new Error("Not Implemented")},wrap:function(){throw new Error("Not Implemented")}})}).call(this,e("_process"),e("buffer").Buffer)},{"./promish":16,"./string-buf":19,"./utils":21,_process:198,buffer:96,stream:216}],19:[function(e,t,r){(function(e){"use strict";var r=t.exports=function(t){this._buf=new e(t&&t.size||16384),this._encoding=t&&t.encoding||"utf8",this._inPos=0,this._buffer=void 0};r.prototype={get length(){return this._inPos},get capacity(){return this._buf.length},get buffer(){return this._buf},toBuffer:function(){return this._buffer||(this._buffer=new e(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer},reset:function(e){e=e||0,this._buffer=void 0,this._inPos=e},_grow:function(t){var r=2*this._buf.length;while(r=this._buf.length-4)this._grow(this._inPos+e.length),t=this._inPos+this._buf.write(e,this._inPos,this._encoding);this._inPos=t},addStringBuf:function(e){e.length&&(this._buffer=void 0,this.length+e.length>this.capacity&&this._grow(this.length+e.length),e._buf.copy(this._buf,this._inPos,0,e.length),this._inPos+=e.length)}}}).call(this,e("buffer").Buffer)},{buffer:96}],20:[function(e,t,r){"use strict";var n="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},a={each:function(e,t){e&&(Array.isArray(e)?e.forEach(t):Object.keys(e).forEach((function(r){t(e[r],r)})))},some:function(e,t){return!!e&&(Array.isArray(e)?e.some(t):Object.keys(e).some((function(r){return t(e[r],r)})))},every:function(e,t){return!e||(Array.isArray(e)?e.every(t):Object.keys(e).every((function(r){return t(e[r],r)})))},map:function(e,t){return e?Array.isArray(e)?e.map(t):Object.keys(e).map((function(r){return t(e[r],r)})):[]},isEqual:function(e,t){var r="undefined"===typeof e?"undefined":n(e),i="undefined"===typeof t?"undefined":n(t),s=Array.isArray(e),o=Array.isArray(t);if(r!==i)return!1;switch("undefined"===typeof e?"undefined":n(e)){case"object":return s||o?!(!s||!o)&&(e.length===t.length&&e.every((function(e,r){var n=t[r];return a.isEqual(e,n)}))):a.every(e,(function(e,r){var n=t[r];return a.isEqual(e,n)}));default:return e===t}},escapeHtml:function(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}};t.exports=a},{}],21:[function(e,r,n){(function(t,n){"use strict";var a=e("fs"),i=e("./promish"),s=function(e,t,r,n){e.super_=t,n||(n=r,r=null),r&&Object.keys(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}));var a={constructor:{value:e,enumerable:!1,writable:!1,configurable:!0}};n&&Object.keys(n).forEach((function(e){a[e]=Object.getOwnPropertyDescriptor(n,e)})),e.prototype=Object.create(t.prototype,a)},o=r.exports={nop:function(){},promiseImmediate:function(e){return new i.Promish((function(r){t.setImmediate?n((function(){r(e)})):setTimeout((function(){r(e)}),1)}))},inherits:s,dateToExcel:function(e,t){return 25569+e.getTime()/864e5-(t?1462:0)},excelToDate:function(e,t){var r=Math.round(24*(e-25569+(t?1462:0))*3600*1e3);return new Date(r)},parsePath:function(e){var t=e.lastIndexOf("/");return{path:e.substring(0,t),name:e.substring(t+1)}},getRelsPath:function(e){var t=o.parsePath(e);return t.path+"/_rels/"+t.name+".rels"},xmlEncode:function(e){return e.replace(/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case'"':return""";default:return""}}))},xmlDecode:function(e){return e.replace(/&([a-z]*);/,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return e}}))},validInt:function(e){var t=parseInt(e,10);return isNaN(t)?0:t},isDateFmt:function(e){if(!e)return!1;e=e.replace(/\[[^\]]*]/g,""),e=e.replace(/"[^"]*"/g,"");var t=null!==e.match(/[ymdhMsb]+/);return t},fs:{exists:function(e){return new i.Promish((function(t){a.exists(e,(function(e){t(e)}))}))}},toIsoDateString:function(e){return e.toIsoString().subsstr(0,10)}}}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("timers").setImmediate)},{"./promish":16,fs:95,timers:219}],22:[function(e,t,r){"use strict";var n=e("./under-dash"),a=e("./utils"),i="<",s=">",o="",u='="',c='"',h=" ";function d(e,t,r){e.push(h),e.push(t),e.push(u),e.push(a.xmlEncode(r.toString())),e.push(c)}function f(e,t){t&&n.each(t,(function(t,r){void 0!==t&&d(e,r,t)}))}var p=t.exports=function(){this._xml=[],this._stack=[],this._rollbacks=[]};p.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},p.prototype={get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0},openXml:function(e){var t=this._xml;t.push("\n")},openNode:function(e,t){var r=this.tos,n=this._xml;r&&this.open&&n.push(s),this._stack.push(e),n.push(i),n.push(e),f(n,t),this.leaf=!0,this.open=!0},addAttribute:function(e,t){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");d(this._xml,e,t)},addAttributes:function(e){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");f(this._xml,e)},writeText:function(e){var t=this._xml;this.open&&(t.push(s),this.open=!1),this.leaf=!1,t.push(a.xmlEncode(e.toString()))},writeXml:function(e){this.open&&(this._xml.push(s),this.open=!1),this.leaf=!1,this._xml.push(e)},closeNode:function(){var e=this._stack.pop(),t=this._xml;this.leaf?t.push(l):(t.push(o),t.push(e),t.push(s)),this.open=!1,this.leaf=!1},leafNode:function(e,t,r){this.openNode(e,t),void 0!==r&&this.writeText(r),this.closeNode()},closeAll:function(){while(this._stack.length)this.closeNode()},addRollback:function(){this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open})},commit:function(){this._rollbacks.pop()},rollback:function(){var e=this._rollbacks.pop();this._xml.length>e.xml&&this._xml.splice(e.xml,this._xml.length-e.xml),this._stack.length>e.stack&&this._stack.splice(e.stack,this._stack.length-e.stack),this.leaf=e.leaf,this.open=e.open},get xml(){return this.closeAll(),this._xml.join("")}}},{"./under-dash":20,"./utils":21}],23:[function(e,t,r){"use strict";var n=e("events"),a=e("./promish"),i=e("jszip"),s=e("./utils"),o=e("./stream-buf"),l=function(e){var t=this;this.count=0,this.jsZip=new i,this.stream=new o,this.stream.on("finish",(function(){t._process()})),this.getEntryType=e.getEntryType||function(){return"string"}};s.inherits(l,n.EventEmitter,{_finished:function(){var e=this;--this.count||a.Promish.resolve().then((function(){e.emit("finished")}))},_process:function(){var e=this,t=this.stream.read();this.jsZip.loadAsync(t).then((function(t){t.forEach((function(t,r){r.dir||(e.count++,r.async(e.getEntryType(t)).then((function(r){var n=new o;n.path=t,n.write(r),n.autodrain=function(){e._finished()},n.on("finish",(function(){e._finished()})),e.emit("entry",n)})).catch((function(t){e.emit("error",t)})))}))})).catch((function(t){e.emit("error",t)}))},write:function(e,t,r){if(this.error)throw r&&r(error),error;return this.stream.write(e,t,r)},cork:function(){return this.stream.cork()},uncork:function(){return this.stream.uncork()},end:function(){return this.stream.end()},destroy:function(e){this.emit("finished"),this.error=e}});var u=function(){this.zip=new i,this.stream=new o};s.inherits(u,n.EventEmitter,{append:function(e,t){t.hasOwnProperty("base64")&&t.base64?this.zip.file(t.name,e,{base64:!0}):this.zip.file(t.name,e)},finalize:function(){var e=this,t={type:"nodebuffer",compression:"DEFLATE"};return this.zip.generateAsync(t).then((function(t){e.stream.end(t),e.emit("finish")}))},read:function(e){return this.stream.read(e)},setEncoding:function(e){return this.stream.setEncoding(e)},pause:function(){return this.stream.pause()},resume:function(){return this.stream.resume()},isPaused:function(){return this.stream.isPaused()},pipe:function(e,t){return this.stream.pipe(e,t)},unpipe:function(e){return this.stream.unpipe(e)},unshift:function(e){return this.stream.unshift(e)},wrap:function(e){return this.stream.wrap(e)}}),t.exports={ZipReader:l,ZipWriter:u}},{"./promish":16,"./stream-buf":18,"./utils":21,events:123,jszip:151}],24:[function(e,t,r){"use strict";t.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],25:[function(e,t,r){"use strict";t.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties"}},{}],26:[function(e,t,r){"use strict";var n=e("sax"),a=e("../../utils/promish"),i=e("../../utils/xml-stream"),s=t.exports=function(){};s.prototype={prepare:function(){},render:function(){},parseOpen:function(){},parseText:function(){},parseClose:function(){},reconcile:function(){},reset:function(){if(this.model=null,this.map)for(var e=Object.keys(this.map),t=0;tthis.maxItems))throw new Error("Max "+this.childXform.tag+" count exceeded");return!0}return!1},reconcile:function(e,t){if(e){var r=this.childXform;e.forEach((function(e){r.reconcile(e,t)}))}}})},{"../../utils/utils":21,"./base-xform":26}],48:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../../../utils/col-cache"),i=e("../base-xform"),s=t.exports=function(){};n.inherits(s,i,{get tag(){return"autoFilter"},render:function(e,t){if(t)if("string"===typeof t)e.leafNode("autoFilter",{ref:t});else{var r=function(e){return"string"===typeof e?e:a.getAddress(e.row,e.column).address},n=r(t.from),i=r(t.to);n&&i&&e.leafNode("autoFilter",{ref:n+":"+i})}},parseOpen:function(e){"autoFilter"===e.name&&(this.model=e.attributes.ref)}})},{"../../../utils/col-cache":15,"../../../utils/utils":21,"../base-xform":26}],49:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../base-xform"),i=e("../../../doc/enums"),s=e("../../../doc/range"),o=e("../strings/rich-text-xform");function l(e){if(null===e||void 0===e)return i.ValueType.Null;if(e instanceof String||"string"===typeof e)return i.ValueType.String;if("number"===typeof e)return i.ValueType.Number;if("boolean"===typeof e)return i.ValueType.Boolean;if(e instanceof Date)return i.ValueType.Date;if(e.text&&e.hyperlink)return i.ValueType.Hyperlink;if(e.formula)return i.ValueType.Formula;if(e.error)return i.ValueType.Error;throw new Error("I could not understand type of value")}function u(e){switch(e.type){case i.ValueType.Formula:return l(e.result);default:return e.type}}var c=t.exports=function(){this.richTextXForm=new o};n.inherits(c,a,{get tag(){return"c"},prepare:function(e,t){var r=t.styles.addStyleModel(e.style||{},u(e));switch(r&&(e.styleId=r),e.type){case i.ValueType.String:t.sharedStrings&&(e.ssId=t.sharedStrings.add(e.value));break;case i.ValueType.Date:t.date1904&&(e.date1904=!0);break;case i.ValueType.Hyperlink:t.sharedStrings&&(e.ssId=t.sharedStrings.add(e.text)),t.hyperlinks.push(Object.assign({address:e.address,target:e.hyperlink},e.tooltip?{tooltip:e.tooltip}:{}));break;case i.ValueType.Merge:t.merges.add(e);break;case i.ValueType.Formula:if(t.date1904&&(e.date1904=!0),e.formula)t.formulae[e.address]=e;else if(e.sharedFormula){var n=t.formulae[e.sharedFormula];if(!n)throw new Error("Shared Formula master must exist above and or left of clone");void 0!==n.si?(e.si=n.si,n.ref.expandToAddress(e.address)):(e.si=n.si=t.siFormulae++,n.ref=new s(n.address,e.address))}break;default:break}},renderFormula:function(e,t){var r=null;switch(t.ref?r={t:"shared",ref:t.ref.range,si:t.si}:void 0!==t.si&&(r={t:"shared",si:t.si}),l(t.result)){case i.ValueType.Null:e.leafNode("f",r,t.formula);break;case i.ValueType.String:e.addAttribute("t","str"),e.leafNode("f",r,t.formula),e.leafNode("v",null,t.result);break;case i.ValueType.Number:e.leafNode("f",r,t.formula),e.leafNode("v",null,t.result);break;case i.ValueType.Boolean:e.addAttribute("t","b"),e.leafNode("f",r,t.formula),e.leafNode("v",null,t.result?1:0);break;case i.ValueType.Error:e.addAttribute("t","e"),e.leafNode("f",r,t.formula),e.leafNode("v",null,t.result.error);break;case i.ValueType.Date:e.leafNode("f",r,t.formula),e.leafNode("v",null,n.dateToExcel(t.result,t.date1904));break;default:throw new Error("I could not understand type of value")}},render:function(e,t){if(t.type!==i.ValueType.Null||t.styleId){switch(e.openNode("c"),e.addAttribute("r",t.address),t.styleId&&e.addAttribute("s",t.styleId),t.type){case i.ValueType.Null:break;case i.ValueType.Number:e.leafNode("v",null,t.value);break;case i.ValueType.Boolean:e.addAttribute("t","b"),e.leafNode("v",null,t.value?"1":"0");break;case i.ValueType.Error:e.addAttribute("t","e"),e.leafNode("v",null,t.value.error);break;case i.ValueType.String:if(void 0!==t.ssId)e.addAttribute("t","s"),e.leafNode("v",null,t.ssId);else if(t.value&&t.value.richText){e.addAttribute("t","inlineStr"),e.openNode("is");var r=this;t.value.richText.forEach((function(t){r.richTextXForm.render(e,t)})),e.closeNode("is")}else e.addAttribute("t","str"),e.leafNode("v",null,t.value);break;case i.ValueType.Date:e.leafNode("v",null,n.dateToExcel(t.value,t.date1904));break;case i.ValueType.Hyperlink:void 0!==t.ssId?(e.addAttribute("t","s"),e.leafNode("v",null,t.ssId)):(e.addAttribute("t","str"),e.leafNode("v",null,t.text));break;case i.ValueType.Formula:this.renderFormula(e,t);break;case i.ValueType.Merge:break;default:break}e.closeNode()}},parseOpen:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"c":var t=this.model={address:e.attributes.r};return this.t=e.attributes.t,e.attributes.s&&(t.styleId=parseInt(e.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=e.attributes.si,"shared"===e.attributes.t&&(this.model.sharedFormula=!0),this.model.ref=e.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(e),!0;default:return!1}},parseText:function(e){if(this.parser)this.parser.parseText(e);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+e:e;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+e:e:this.model.value=this.model.value?this.model.value+e:e;break;default:break}},parseClose:function(e){switch(e){case"c":var t=this.model;if(t.formula||t.sharedFormula)t.type=i.ValueType.Formula,t.value&&("str"===this.t?t.result=n.xmlDecode(t.value):"b"===this.t?t.result=0!==parseInt(t.value,10):"e"===this.t?t.result={error:t.value}:t.result=parseFloat(t.value),t.value=void 0);else if(void 0!==t.value)switch(this.t){case"s":t.type=i.ValueType.String,t.value=parseInt(t.value,10);break;case"str":t.type=i.ValueType.String,t.value=n.xmlDecode(t.value);break;case"inlineStr":t.type=i.ValueType.String;break;case"b":t.type=i.ValueType.Boolean,t.value=0!==parseInt(t.value,10);break;case"e":t.type=i.ValueType.Error,t.value={error:t.value};break;default:t.type=i.ValueType.Number,t.value=parseFloat(t.value);break}else t.styleId?t.type=i.ValueType.Null:t.type=i.ValueType.Merge;return!1;case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(e),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(e),!0)}},reconcile:function(e,t){var r=e.styleId&&t.styles.getStyleModel(e.styleId);switch(r&&(e.style=r),void 0!==e.styleId&&(e.styleId=void 0),e.type){case i.ValueType.String:"number"===typeof e.value&&(e.value=t.sharedStrings.getString(e.value)),e.value.richText&&(e.type=i.ValueType.RichText);break;case i.ValueType.Number:r&&n.isDateFmt(r.numFmt)&&(e.type=i.ValueType.Date,e.value=n.excelToDate(e.value,t.date1904));break;case i.ValueType.Formula:void 0!==e.result&&r&&n.isDateFmt(r.numFmt)&&(e.result=n.excelToDate(e.result,t.date1904)),e.sharedFormula&&(e.formula?(t.formulae[e.si]=e,delete e.sharedFormula):e.sharedFormula=t.formulae[e.si].address,delete e.si);break;default:break}var a=t.hyperlinkMap[e.address];a&&(e.type===i.ValueType.Formula?(e.text=e.result,e.result=void 0):(e.text=e.value,e.value=void 0),e.type=i.ValueType.Hyperlink,e.hyperlink=a)}})},{"../../../doc/enums":8,"../../../doc/range":9,"../../../utils/utils":21,"../base-xform":26,"../strings/rich-text-xform":76}],50:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../base-xform"),i=t.exports=function(){};n.inherits(i,a,{get tag(){return"col"},prepare:function(e,t){var r=t.styles.addStyleModel(e.style||{});r&&(e.styleId=r)},render:function(e,t){e.openNode("col"),e.addAttribute("min",t.min),e.addAttribute("max",t.max),t.width&&e.addAttribute("width",t.width),t.styleId&&e.addAttribute("style",t.styleId),t.hidden&&e.addAttribute("hidden","1"),t.bestFit&&e.addAttribute("bestFit","1"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1"),e.addAttribute("customWidth","1"),e.closeNode()},parseOpen:function(e){if("col"===e.name){var t=this.model={min:parseInt(e.attributes.min||"0",10),max:parseInt(e.attributes.max||"0",10),width:void 0===e.attributes.width?void 0:parseFloat(e.attributes.width||"0")};return e.attributes.style&&(t.styleId=parseInt(e.attributes.style,10)),e.attributes.hidden&&(t.hidden=!0),e.attributes.bestFit&&(t.bestFit=!0),e.attributes.outlineLevel&&(t.outlineLevel=parseInt(e.attributes.outlineLevel,10)),e.attributes.collapsed&&(t.collapsed=!0),!0}return!1},parseText:function(){},parseClose:function(){return!1},reconcile:function(e,t){e.styleId&&(e.style=t.styles.getStyleModel(e.styleId))}})},{"../../../utils/utils":21,"../base-xform":26}],51:[function(e,t,r){"use strict";var n=e("../../../utils/under-dash"),a=e("../../../utils/utils"),i=e("../base-xform");function s(e,t,r,n){var a=t[r];void 0!==a?e[r]=a:void 0!==n&&(e[r]=n)}function o(e){switch(e){case"1":case"true":return!0;default:return!1}}function l(e,t,r,n){var a=t[r];void 0!==a?e[r]=o(a):void 0!==n&&(e[r]=n)}var u=t.exports=function(){};a.inherits(u,i,{get tag(){return"dataValidations"},render:function(e,t){var r=t&&Object.keys(t).length;r&&(e.openNode("dataValidations",{count:r}),n.each(t,(function(t,r){e.openNode("dataValidation"),"any"!==t.type&&(e.addAttribute("type",t.type),t.operator&&"list"!==t.type&&"between"!==t.operator&&e.addAttribute("operator",t.operator),t.allowBlank&&e.addAttribute("allowBlank","1")),t.showInputMessage&&e.addAttribute("showInputMessage","1"),t.promptTitle&&e.addAttribute("promptTitle",t.promptTitle),t.prompt&&e.addAttribute("prompt",t.prompt),t.showErrorMessage&&e.addAttribute("showErrorMessage","1"),t.errorStyle&&e.addAttribute("errorStyle",t.errorStyle),t.errorTitle&&e.addAttribute("errorTitle",t.errorTitle),t.error&&e.addAttribute("error",t.error),e.addAttribute("sqref",r),(t.formulae||[]).forEach((function(r,n){e.openNode("formula"+(n+1)),"date"===t.type?e.writeText(a.dateToExcel(r)):e.writeText(r),e.closeNode()})),e.closeNode()})),e.closeNode())},parseOpen:function(e){switch(e.name){case"dataValidations":return this.model={},!0;case"dataValidation":this._address=e.attributes.sqref;var t=this._definedName=e.attributes.type?{type:e.attributes.type,formulae:[]}:{type:"any"};switch(e.attributes.type&&l(t,e.attributes,"allowBlank"),l(t,e.attributes,"showInputMessage"),l(t,e.attributes,"showErrorMessage"),t.type){case"any":case"list":case"custom":break;default:s(t,e.attributes,"operator","between");break}return s(t,e.attributes,"promptTitle"),s(t,e.attributes,"prompt"),s(t,e.attributes,"errorStyle"),s(t,e.attributes,"errorTitle"),s(t,e.attributes,"error"),!0;case"formula1":case"formula2":return this._formula=[],!0;default:return!1}},parseText:function(e){this._formula.push(e)},parseClose:function(e){switch(e){case"dataValidations":return!1;case"dataValidation":return this._definedName.formulae&&this._definedName.formulae.length||(delete this._definedName.formulae,delete this._definedName.operator),this.model[this._address]=this._definedName,!0;case"formula1":case"formula2":var t=this._formula.join("");switch(this._definedName.type){case"whole":case"textLength":t=parseInt(t,10);break;case"decimal":t=parseFloat(t);break;case"date":t=a.excelToDate(parseFloat(t));break;default:break}return this._definedName.formulae.push(t),!0;default:return!0}}})},{"../../../utils/under-dash":20,"../../../utils/utils":21,"../base-xform":26}],52:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../base-xform"),i=t.exports=function(){};n.inherits(i,a,{get tag(){return"dimension"},render:function(e,t){t&&e.leafNode("dimension",{ref:t})},parseOpen:function(e){return"dimension"===e.name&&(this.model=e.attributes.ref,!0)},parseText:function(){},parseClose:function(){return!1}})},{"../../../utils/utils":21,"../base-xform":26}],53:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../base-xform"),i=t.exports=function(){};n.inherits(i,a,{get tag(){return"drawing"},render:function(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})},parseOpen:function(e){switch(e.name){case this.tag:return this.model={rId:e.attributes["r:id"]},!0;default:return!1}},parseText:function(){},parseClose:function(){return!1}})},{"../../../utils/utils":21,"../base-xform":26}],54:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../base-xform"),i=t.exports=function(){};n.inherits(i,a,{get tag(){return"hyperlink"},render:function(e,t){e.leafNode("hyperlink",Object.assign({ref:t.address,"r:id":t.rId},t.tooltip?{tooltip:t.tooltip}:{}))},parseOpen:function(e){return"hyperlink"===e.name&&(this.model=Object.assign({address:e.attributes.ref,rId:e.attributes["r:id"]},e.attributes.tooltip?{tooltip:e.attributes.tooltip}:{}),!0)},parseText:function(){},parseClose:function(){return!1}})},{"../../../utils/utils":21,"../base-xform":26}],55:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../base-xform"),i=t.exports=function(){};n.inherits(i,a,{get tag(){return"mergeCell"},render:function(e,t){e.leafNode("mergeCell",{ref:t})},parseOpen:function(e){return"mergeCell"===e.name&&(this.model=e.attributes.ref,!0)},parseText:function(){},parseClose:function(){return!1}})},{"../../../utils/utils":21,"../base-xform":26}],56:[function(e,t,r){"use strict";var n=e("../../../utils/under-dash"),a=e("../../../doc/range"),i=e("../../../utils/col-cache"),s=e("../../../doc/enums"),o=t.exports=function(){this.merges={}};o.prototype={add:function(e){if(this.merges[e.master])this.merges[e.master].expandToAddress(e.address);else{var t=e.master+":"+e.address;this.merges[e.master]=new a(t)}},get mergeCells(){return n.map(this.merges,(function(e){return e.range}))},reconcile:function(e,t){n.each(e,(function(e){for(var r=i.decode(e),n=r.top;n<=r.bottom;n++)for(var a=t[n-1],o=r.left;o<=r.right;o++){var l=a.cells[o-1];l?l.type===s.ValueType.Merge&&(l.master=r.tl):a.cells[o]={type:s.ValueType.Null,address:i.encodeAddress(n,o)}}}))},getMasterAddress:function(e){var t=this.hash[e];return t&&t.tl}}},{"../../../doc/enums":8,"../../../doc/range":9,"../../../utils/col-cache":15,"../../../utils/under-dash":20}],57:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../base-xform"),i=t.exports=function(){},s=function(e){return"undefined"!==typeof e};n.inherits(i,a,{get tag(){return"outlinePr"},render:function(e,t){return!(!t||!s(t.summaryBelow)&&!s(t.summaryRight))&&(e.leafNode(this.tag,{summaryBelow:s(t.summaryBelow)?Number(t.summaryBelow):void 0,summaryRight:s(t.summaryRight)?Number(t.summaryRight):void 0}),!0)},parseOpen:function(e){return e.name===this.tag&&(this.model={summaryBelow:s(e.attributes.summaryBelow)?Boolean(Number(e.attributes.summaryBelow)):void 0,summaryRight:s(e.attributes.summaryRight)?Boolean(Number(e.attributes.summaryRight)):void 0},!0)},parseText:function(){},parseClose:function(){return!1}})},{"../../../utils/utils":21,"../base-xform":26}],58:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../base-xform"),i=t.exports=function(){};n.inherits(i,a,{get tag(){return"brk"},render:function(e,t){e.leafNode("brk",t)},parseOpen:function(e){return"brk"===e.name&&(this.model=e.attributes.ref,!0)},parseText:function(){},parseClose:function(){return!1}})},{"../../../utils/utils":21,"../base-xform":26}],59:[function(e,t,r){"use strict";var n=e("../../../utils/under-dash"),a=e("../../../utils/utils"),i=e("../base-xform"),s=t.exports=function(){};a.inherits(s,i,{get tag(){return"pageMargins"},render:function(e,t){if(t){var r={left:t.left,right:t.right,top:t.top,bottom:t.bottom,header:t.header,footer:t.footer};n.some(r,(function(e){return void 0!==e}))&&e.leafNode(this.tag,r)}},parseOpen:function(e){switch(e.name){case this.tag:return this.model={left:parseFloat(e.attributes.left||.7),right:parseFloat(e.attributes.right||.7),top:parseFloat(e.attributes.top||.75),bottom:parseFloat(e.attributes.bottom||.75),header:parseFloat(e.attributes.header||.3),footer:parseFloat(e.attributes.footer||.3)},!0;default:return!1}},parseText:function(){},parseClose:function(){return!1}})},{"../../../utils/under-dash":20,"../../../utils/utils":21,"../base-xform":26}],60:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../base-xform"),i=t.exports=function(){};n.inherits(i,a,{get tag(){return"pageSetUpPr"},render:function(e,t){return!(!t||!t.fitToPage)&&(e.leafNode(this.tag,{fitToPage:t.fitToPage?"1":void 0}),!0)},parseOpen:function(e){return e.name===this.tag&&(this.model={fitToPage:"1"===e.attributes.fitToPage},!0)},parseText:function(){},parseClose:function(){return!1}})},{"../../../utils/utils":21,"../base-xform":26}],61:[function(e,t,r){"use strict";var n=e("../../../utils/under-dash"),a=e("../../../utils/utils"),i=e("../base-xform");function s(e){return e?"1":void 0}function o(e){switch(e){case"overThenDown":return e;default:return}}function l(e){switch(e){case"atEnd":case"asDisplyed":return e;default:return}}function u(e){switch(e){case"dash":case"blank":case"NA":return e;default:return}}function c(e){return void 0!==e?parseInt(e,10):void 0}var h=t.exports=function(){};a.inherits(h,i,{get tag(){return"pageSetup"},render:function(e,t){if(t){var r={paperSize:t.paperSize,orientation:t.orientation,horizontalDpi:t.horizontalDpi,verticalDpi:t.verticalDpi,pageOrder:o(t.pageOrder),blackAndWhite:s(t.blackAndWhite),draft:s(t.draft),cellComments:l(t.cellComments),errors:u(t.errors),scale:t.scale,fitToWidth:t.fitToWidth,fitToHeight:t.fitToHeight,firstPageNumber:t.firstPageNumber,useFirstPageNumber:s(t.firstPageNumber),usePrinterDefaults:s(t.usePrinterDefaults),copies:t.copies};n.some(r,(function(e){return void 0!==e}))&&e.leafNode(this.tag,r)}},parseOpen:function(e){switch(e.name){case this.tag:return this.model={paperSize:c(e.attributes.paperSize),orientation:e.attributes.orientation||"portrait",horizontalDpi:parseInt(e.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(e.attributes.verticalDpi||"4294967295",10),pageOrder:e.attributes.pageOrder||"downThenOver",blackAndWhite:"1"===e.attributes.blackAndWhite,draft:"1"===e.attributes.draft,cellComments:e.attributes.cellComments||"None",errors:e.attributes.errors||"displayed",scale:parseInt(e.attributes.scale||"100",10),fitToWidth:parseInt(e.attributes.fitToWidth||"1",10),fitToHeight:parseInt(e.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(e.attributes.firstPageNumber||"1",10),useFirstPageNumber:"1"===e.attributes.useFirstPageNumber,usePrinterDefaults:"1"===e.attributes.usePrinterDefaults,copies:parseInt(e.attributes.copies||"1",10)},!0;default:return!1}},parseText:function(){},parseClose:function(){return!1}})},{"../../../utils/under-dash":20,"../../../utils/utils":21,"../base-xform":26}],62:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../base-xform"),i=t.exports=function(){};n.inherits(i,a,{get tag(){return"picture"},render:function(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})},parseOpen:function(e){switch(e.name){case this.tag:return this.model={rId:e.attributes["r:id"]},!0;default:return!1}},parseText:function(){},parseClose:function(){return!1}})},{"../../../utils/utils":21,"../base-xform":26}],63:[function(e,t,r){"use strict";var n=e("../../../utils/under-dash"),a=e("../../../utils/utils"),i=e("../base-xform");function s(e){return e?"1":void 0}var o=t.exports=function(){};a.inherits(o,i,{get tag(){return"printOptions"},render:function(e,t){if(t){var r={headings:s(t.showRowColHeaders),gridLines:s(t.showGridLines),horizontalCentered:s(t.horizontalCentered),verticalCentered:s(t.verticalCentered)};n.some(r,(function(e){return void 0!==e}))&&e.leafNode(this.tag,r)}},parseOpen:function(e){switch(e.name){case this.tag:return this.model={showRowColHeaders:"1"===e.attributes.headings,showGridLines:"1"===e.attributes.gridLines,horizontalCentered:"1"===e.attributes.horizontalCentered,verticalCentered:"1"===e.attributes.verticalCentered},!0;default:return!1}},parseText:function(){},parseClose:function(){return!1}})},{"../../../utils/under-dash":20,"../../../utils/utils":21,"../base-xform":26}],64:[function(e,t,r){"use strict";var n=e("./page-breaks-xform"),a=e("../../../utils/utils"),i=e("../list-xform"),s=t.exports=function(){var e={tag:"rowBreaks",count:!0,childXform:new n};i.call(this,e)};a.inherits(s,i,{render:function(e,t){if(t&&t.length){e.openNode(this.tag,this.$),this.count&&(e.addAttribute(this.$count,t.length),e.addAttribute("manualBreakCount",t.length));var r=this.childXform;t.forEach((function(t){r.render(e,t)})),e.closeNode()}else this.empty&&e.leafNode(this.tag)}})},{"../../../utils/utils":21,"../list-xform":47,"./page-breaks-xform":58}],65:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../base-xform"),i=e("./cell-xform"),s=t.exports=function(){this.map={c:new i}};n.inherits(s,a,{get tag(){return"row"},prepare:function(e,t){var r=t.styles.addStyleModel(e.style);r&&(e.styleId=r);var n=this.map.c;e.cells.forEach((function(e){n.prepare(e,t)}))},render:function(e,t,r){e.openNode("row"),e.addAttribute("r",t.number),t.height&&(e.addAttribute("ht",t.height),e.addAttribute("customHeight","1")),t.hidden&&e.addAttribute("hidden","1"),t.min>0&&t.max>0&&t.min<=t.max&&e.addAttribute("spans",t.min+":"+t.max),t.styleId&&(e.addAttribute("s",t.styleId),e.addAttribute("customFormat","1")),e.addAttribute("x14ac:dyDescent","0.25"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1");var n=this.map.c;t.cells.forEach((function(t){n.render(e,t,r)})),e.closeNode()},parseOpen:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if("row"===e.name){this.numRowsSeen+=1;var t=e.attributes.spans?e.attributes.spans.split(":").map((function(e){return parseInt(e,10)})):[void 0,void 0],r=this.model={number:parseInt(e.attributes.r,10),min:t[0],max:t[1],cells:[]};return e.attributes.s&&(r.styleId=parseInt(e.attributes.s,10)),e.attributes.hidden&&(r.hidden=!0),e.attributes.bestFit&&(r.bestFit=!0),e.attributes.ht&&(r.height=parseFloat(e.attributes.ht)),e.attributes.outlineLevel&&(r.outlineLevel=parseInt(e.attributes.outlineLevel,10)),e.attributes.collapsed&&(r.collapsed=!0),!0}return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.cells.push(this.parser.model),this.parser=void 0),!0)},reconcile:function(e,t){e.style=e.styleId?t.styles.getStyleModel(e.styleId):{},void 0!==e.styleId&&(e.styleId=void 0);var r=this.map.c;e.cells.forEach((function(e){r.reconcile(e,t)}))}})},{"../../../utils/utils":21,"../base-xform":26,"./cell-xform":49}],66:[function(e,t,r){"use strict";var n=e("../../../utils/under-dash"),a=e("../../../utils/utils"),i=e("../base-xform"),s=t.exports=function(){};a.inherits(s,i,{get tag(){return"sheetFormatPr"},render:function(e,t){if(t){var r={defaultRowHeight:t.defaultRowHeight,outlineLevelRow:t.outlineLevelRow,outlineLevelCol:t.outlineLevelCol,"x14ac:dyDescent":t.dyDescent};n.some(r,(function(e){return void 0!==e}))&&e.leafNode("sheetFormatPr",r)}},parseOpen:function(e){return"sheetFormatPr"===e.name&&(this.model={defaultRowHeight:parseFloat(e.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(e.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(e.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(e.attributes.outlineLevelCol||"0",10)},!0)},parseText:function(){},parseClose:function(){return!1}})},{"../../../utils/under-dash":20,"../../../utils/utils":21,"../base-xform":26}],67:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../base-xform"),i=e("../style/color-xform"),s=e("./page-setup-properties-xform"),o=e("./outline-properties-xform"),l=t.exports=function(){this.map={tabColor:new i("tabColor"),pageSetUpPr:new s,outlinePr:new o}};n.inherits(l,a,{get tag(){return"sheetPr"},render:function(e,t){if(t){e.addRollback(),e.openNode("sheetPr");var r=!1;r=this.map.tabColor.render(e,t.tabColor)||r,r=this.map.pageSetUpPr.render(e,t.pageSetup)||r,r=this.map.outlinePr.render(e,t.outlineProperties)||r,r?(e.closeNode(),e.commit()):e.rollback()}},parseOpen:function(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):!!this.map[e.name]&&(this.parser=this.map[e.name],this.parser.parseOpen(e),!0)},parseText:function(e){return!!this.parser&&(this.parser.parseText(e),!0)},parseClose:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}})},{"../../../utils/utils":21,"../base-xform":26,"../style/color-xform":82,"./outline-properties-xform":57,"./page-setup-properties-xform":60}],68:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../../../utils/col-cache"),i=e("../base-xform"),s={frozen:"frozen",frozenSplit:"frozen",split:"split"},o=t.exports=function(){};n.inherits(o,i,{get tag(){return"sheetView"},prepare:function(e){switch(e.state){case"frozen":case"split":break;default:e.state="normal";break}},render:function(e,t){e.openNode("sheetView",{workbookViewId:t.workbookViewId||0});var r,n,i,s,o=function(t,r,n){n&&e.addAttribute(t,r)};switch(o("rightToLeft","1",!0===t.rightToLeft),o("tabSelected","1",t.tabSelected),o("showRuler","0",!1===t.showRuler),o("showRowColHeaders","0",!1===t.showRowColHeaders),o("showGridLines","0",!1===t.showGridLines),o("zoomScale",t.zoomScale,t.zoomScale),o("zoomScaleNormal",t.zoomScaleNormal,t.zoomScaleNormal),o("view",t.style,t.style),t.state){case"frozen":n=t.xSplit||0,i=t.ySplit||0,r=t.topLeftCell||a.getAddress(i+1,n+1).address,s=(t.xSplit&&t.ySplit?"bottomRight":t.xSplit&&"topRight")||"bottomLeft",e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:r,activePane:s,state:"frozen"}),e.leafNode("selection",{pane:s,activeCell:t.activeCell,sqref:t.activeCell});break;case"split":"topLeft"===t.activePane&&(t.activePane=void 0),e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:t.topLeftCell,activePane:t.activePane}),e.leafNode("selection",{pane:t.activePane,activeCell:t.activeCell,sqref:t.activeCell});break;case"normal":t.activeCell&&e.leafNode("selection",{activeCell:t.activeCell,sqref:t.activeCell});break;default:break}e.closeNode()},parseOpen:function(e){switch(e.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(e.attributes.workbookViewId,10),rightToLeft:"1"===e.attributes.rightToLeft,tabSelected:"1"===e.attributes.tabSelected,showRuler:!("0"===e.attributes.showRuler),showRowColHeaders:!("0"===e.attributes.showRowColHeaders),showGridLines:!("0"===e.attributes.showGridLines),zoomScale:parseInt(e.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(e.attributes.zoomScaleNormal||"100",10),style:e.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(e.attributes.xSplit||"0",10),ySplit:parseInt(e.attributes.ySplit||"0",10),topLeftCell:e.attributes.topLeftCell,activePane:e.attributes.activePane||"topLeft",state:e.attributes.state},!0;case"selection":var t=e.attributes.pane||"topLeft";return this.selections[t]={pane:t,activeCell:e.attributes.activeCell},!0;default:return!1}},parseText:function(){},parseClose:function(e){var t,r;switch(e){case"sheetView":return this.sheetView&&this.pane?(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:s[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},"split"===this.model.state&&(t.activePane=this.pane.activePane),r=this.selections[this.pane.activePane],r&&r.activeCell&&(t.activeCell=r.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)):(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},r=this.selections.topLeft,r&&r.activeCell&&(t.activeCell=r.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)),!1;default:return!0}},reconcile:function(){}})},{"../../../utils/col-cache":15,"../../../utils/utils":21,"../base-xform":26}],69:[function(e,t,r){"use strict";var n=e("../../../utils/under-dash"),a=e("../../../utils/utils"),i=e("../../../utils/xml-stream"),s=e("../../rel-type"),o=e("./merges"),l=e("../base-xform"),u=e("../list-xform"),c=e("./row-xform"),h=e("./col-xform"),d=e("./dimension-xform"),f=e("./hyperlink-xform"),p=e("./merge-cell-xform"),m=e("./data-validations-xform"),g=e("./sheet-properties-xform"),_=e("./sheet-format-properties-xform"),y=e("./sheet-view-xform"),v=e("./page-margins-xform"),b=e("./page-setup-xform"),w=e("./print-options-xform"),x=e("./auto-filter-xform"),k=e("./picture-xform"),T=e("./drawing-xform"),S=e("./row-breaks-xform"),E=t.exports=function(e){var t=e&&e.maxRows;this.map={sheetPr:new g,dimension:new d,sheetViews:new u({tag:"sheetViews",count:!1,childXform:new y}),sheetFormatPr:new _,cols:new u({tag:"cols",count:!1,childXform:new h}),sheetData:new u({tag:"sheetData",count:!1,empty:!0,childXform:new c,maxItems:t}),autoFilter:new x,mergeCells:new u({tag:"mergeCells",count:!0,childXform:new p}),rowBreaks:new S,hyperlinks:new u({tag:"hyperlinks",count:!1,childXform:new f}),pageMargins:new v,dataValidations:new m,pageSetup:new b,printOptions:new w,picture:new k,drawing:new T}};a.inherits(E,l,{WORKSHEET_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"}},{prepare:function(e,t){t.merges=new o,e.hyperlinks=t.hyperlinks=[],t.formulae={},t.siFormulae=0,this.map.cols.prepare(e.cols,t),this.map.sheetData.prepare(e.rows,t),e.mergeCells=t.merges.mergeCells;var r,n=e.rels=[];function a(e){return"rId"+(e.length+1)}e.hyperlinks.forEach((function(e){r=a(n),e.rId=r,n.push({Id:r,Type:s.Hyperlink,Target:e.target,TargetMode:"External"})}));var i,l=[];e.media.forEach((function(o){if("background"===o.type)r=a(n),i=t.media[o.imageId],n.push({Id:r,Type:s.Image,Target:"../media/"+i.name+"."+i.extension}),e.background={rId:r},e.image=t.media[o.imageId];else if("image"===o.type){var u=e.drawing;i=t.media[o.imageId],u||(u=e.drawing={rId:a(n),name:"drawing"+ ++t.drawingsCount,anchors:[],rels:[]},t.drawings.push(u),n.push({Id:u.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:"../drawings/"+u.name+".xml"}));var c=l[o.imageId];c||(c=a(u.rels),l[o.imageId]=c,u.rels.push({Id:c,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:"../media/"+i.name+"."+i.extension})),u.anchors.push({picture:{rId:c},range:o.range})}}))},render:function(e,t){e.openXml(i.StdDocAttributes),e.openNode("worksheet",E.WORKSHEET_ATTRIBUTES);var r=t.properties?{defaultRowHeight:t.properties.defaultRowHeight,dyDescent:t.properties.dyDescent,outlineLevelCol:t.properties.outlineLevelCol,outlineLevelRow:t.properties.outlineLevelRow}:void 0,n={outlineProperties:t.properties&&t.properties.outlineProperties,tabColor:t.properties&&t.properties.tabColor,pageSetup:t.pageSetup&&t.pageSetup.fitToPage?{fitToPage:t.pageSetup.fitToPage}:void 0},a=t.pageSetup&&t.pageSetup.margins,s={showRowColHeaders:t.showRowColHeaders,showGridLines:t.showGridLines,horizontalCentered:t.horizontalCentered,verticalCentered:t.verticalCentered};this.map.sheetPr.render(e,n),this.map.dimension.render(e,t.dimensions),this.map.sheetViews.render(e,t.views),this.map.sheetFormatPr.render(e,r),this.map.cols.render(e,t.cols),this.map.sheetData.render(e,t.rows),this.map.autoFilter.render(e,t.autoFilter),this.map.mergeCells.render(e,t.mergeCells),this.map.dataValidations.render(e,t.dataValidations),this.map.hyperlinks.render(e,t.hyperlinks),this.map.pageMargins.render(e,a),this.map.printOptions.render(e,s),this.map.pageSetup.render(e,t.pageSetup),this.map.rowBreaks.render(e,t.rowBreaks),this.map.drawing.render(e,t.drawing),this.map.picture.render(e,t.background),e.closeNode()},parseOpen:function(e){return this.parser?(this.parser.parseOpen(e),!0):"worksheet"===e.name?(n.each(this.map,(function(e){e.reset()})),!0):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0)},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"worksheet":var t=this.map.sheetFormatPr.model;this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(t.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(t.outlineProperties=this.map.sheetPr.model.outlinePropertiesx);var r={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},n=Object.assign(r,this.map.pageSetup.model,this.map.printOptions.model);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:t,views:this.map.sheetViews.model,pageSetup:n,background:this.map.picture.model,drawing:this.map.drawing.model},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),!1;default:return!0}},reconcile:function(e,t){var r=(e.relationships||[]).reduce((function(e,t){return e[t.Id]=t,e}),{});if(t.hyperlinkMap=(e.hyperlinks||[]).reduce((function(e,t){return t.rId&&(e[t.address]=r[t.rId].Target),e}),{}),t.formulae={},e.rows=e.rows&&e.rows.filter(Boolean)||[],e.rows.forEach((function(e){e.cells=e.cells&&e.cells.filter(Boolean)||[]})),this.map.cols.reconcile(e.cols,t),this.map.sheetData.reconcile(e.rows,t),e.media=[],e.drawing){var n=r[e.drawing.rId],a=n.Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(a){var i=a[1],s=t.drawings[i];s.anchors.forEach((function(t){if(t.medium){var r={type:"image",imageId:t.medium.index,range:t.range};e.media.push(r)}}))}}var o=e.background&&r[e.background.rId];if(o){var l=o.Target.split("/media/")[1],u=t.mediaIndex&&t.mediaIndex[l];void 0!==u&&e.media.push({type:"background",imageId:u})}delete e.relationships,delete e.hyperlinks}})},{"../../../utils/under-dash":20,"../../../utils/utils":21,"../../../utils/xml-stream":22,"../../rel-type":25,"../base-xform":26,"../list-xform":47,"./auto-filter-xform":48,"./col-xform":50,"./data-validations-xform":51,"./dimension-xform":52,"./drawing-xform":53,"./hyperlink-xform":54,"./merge-cell-xform":55,"./merges":56,"./page-margins-xform":59,"./page-setup-xform":61,"./picture-xform":62,"./print-options-xform":63,"./row-breaks-xform":64,"./row-xform":65,"./sheet-format-properties-xform":66,"./sheet-properties-xform":67,"./sheet-view-xform":68}],70:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../base-xform"),i=t.exports=function(e){this.tag=e.tag,this.attr=e.attr};n.inherits(i,a,{render:function(e,t){t&&(e.openNode(this.tag),e.closeNode())},parseOpen:function(e){e.name===this.tag&&(this.model=!0)},parseText:function(){},parseClose:function(){return!1}})},{"../../../utils/utils":21,"../base-xform":26}],71:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../base-xform"),i=t.exports=function(e){this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs,this._format=e.format||function(e){try{return isNaN(e.getTime())?"":e.toISOString()}catch(t){return""}},this._parse=e.parse||function(e){return new Date(e)}};n.inherits(i,a,{render:function(e,t){t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,this._format(t)):e.writeText(this._format(t)),e.closeNode())},parseOpen:function(e){e.name===this.tag&&(this.attr?this.model=this._parse(e.attributes[this.attr]):this.text=[])},parseText:function(e){this.attr||this.text.push(e)},parseClose:function(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}})},{"../../../utils/utils":21,"../base-xform":26}],72:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../base-xform"),i=t.exports=function(e){this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs,this.zero=e.zero};n.inherits(i,a,{render:function(e,t){(t||this.zero)&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())},parseOpen:function(e){return e.name===this.tag&&(this.attr?this.model=parseInt(e.attributes[this.attr],10):this.text=[],!0)},parseText:function(e){this.attr||this.text.push(e)},parseClose:function(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}})},{"../../../utils/utils":21,"../base-xform":26}],73:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../base-xform"),i=t.exports=function(e){this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs};n.inherits(i,a,{render:function(e,t){void 0!==t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())},parseOpen:function(e){e.name===this.tag&&(this.attr?this.model=e.attributes[this.attr]:this.text=[])},parseText:function(e){this.attr||this.text.push(e)},parseClose:function(){return this.attr||(this.model=this.text.join("")),!1}})},{"../../../utils/utils":21,"../base-xform":26}],74:[function(e,t,r){"use strict";var n=e("../../utils/utils"),a=e("./base-xform"),i=e("../../utils/xml-stream");function s(e,t){e.openNode(t.tag,t.$),t.c&&t.c.forEach((function(t){s(e,t)})),t.t&&e.writeText(t.t),e.closeNode()}var o=t.exports=function(e){this._model=e};n.inherits(o,a,{render:function(e){if(!this._xml){var t=new i;s(t,this._model),this._xml=t.xml}e.writeXml(this._xml)},parseOpen:function(){return!0},parseText:function(){},parseClose:function(e){switch(e){case this._model.tag:return!1;default:return!0}}})},{"../../utils/utils":21,"../../utils/xml-stream":22,"./base-xform":26}],75:[function(e,t,r){"use strict";var n=e("./text-xform"),a=e("./rich-text-xform"),i=e("../../../utils/utils"),s=e("../base-xform"),o=t.exports=function(){this.map={r:new a,t:new n}};i.inherits(o,s,{get tag(){return"rPh"},render:function(e,t){if(e.openNode(this.tag,{sb:t.sb||0,eb:t.eb||0}),t&&t.hasOwnProperty("richText")&&t.richText){var r=this.map.r;t.richText.forEach((function(t){r.render(e,t)}))}else t&&this.map.t.render(e,t.text);e.closeNode()},parseOpen:function(e){var t=e.name;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={sb:parseInt(e.attributes.sb,10),eb:parseInt(e.attributes.eb,10)},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":var t=this.model.richText;t||(t=this.model.richText=[]),t.push(this.parser.model);break;case"t":this.model.text=this.parser.model;break;default:break}this.parser=void 0}return!0}switch(e){case this.tag:return!1;default:return!0}}})},{"../../../utils/utils":21,"../base-xform":26,"./rich-text-xform":76,"./text-xform":79}],76:[function(e,t,r){"use strict";var n=e("./text-xform"),a=e("../style/font-xform"),i=e("../../../utils/utils"),s=e("../base-xform"),o=t.exports=function(e){this.model=e};o.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},i.inherits(o,s,{get tag(){return"r"},get textXform(){return this._textXform||(this._textXform=new n)},get fontXform(){return this._fontXform||(this._fontXform=new a(o.FONT_OPTIONS))},render:function(e,t){t=t||this.model,e.openNode("r"),t.font&&this.fontXform.render(e,t.font),this.textXform.render(e,t.text),e.closeNode()},parseOpen:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(e),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(e),!0;default:return!1}},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){switch(e){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":21,"../base-xform":26,"../style/font-xform":84,"./text-xform":79}],77:[function(e,t,r){"use strict";var n=e("./text-xform"),a=e("./rich-text-xform"),i=e("./phonetic-text-xform"),s=e("../../../utils/utils"),o=e("../base-xform"),l=t.exports=function(e){this.model=e,this.map={r:new a,t:new n,rPh:new i}};s.inherits(l,o,{get tag(){return"si"},render:function(e,t){if(e.openNode(this.tag),t&&t.hasOwnProperty("richText")&&t.richText){var r=this.map.r;t.richText.forEach((function(t){r.render(e,t)}))}else void 0!==t&&null!==t&&this.map.t.render(e,t);e.closeNode()},parseOpen:function(e){var t=e.name;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":var t=this.model.richText;t||(t=this.model.richText=[]),t.push(this.parser.model);break;case"t":this.model=this.parser.model;break;default:break}this.parser=void 0}return!0}switch(e){case this.tag:return!1;default:return!0}}})},{"../../../utils/utils":21,"../base-xform":26,"./phonetic-text-xform":75,"./rich-text-xform":76,"./text-xform":79}],78:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../../../utils/xml-stream"),i=e("../base-xform"),s=e("./shared-string-xform"),o=t.exports=function(e){this.model=e||{values:[],count:0},this.hash={},this.rich={}};n.inherits(o,i,{get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new s)},get values(){return this.model.values},get uniqueCount(){return this.model.values.length},get count(){return this.model.count},getString:function(e){return this.model.values[e]},add:function(e){return e.richText?this.addRichText(e):this.addText(e)},addText:function(e){var t=this.hash[e];return void 0===t&&(t=this.hash[e]=this.model.values.length,this.model.values.push(e)),this.model.count++,t},addRichText:function(e){var t=this.sharedStringXform.toXml(e),r=this.rich[t];return void 0===r&&(r=this.rich[t]=this.model.values.length,this.model.values.push(e)),this.model.count++,r},render:function(e,t){t=t||this._values,e.openXml(a.StdDocAttributes),e.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:t.count,uniqueCount:t.values.length});var r=this.sharedStringXform;t.values.forEach((function(t){r.render(e,t)})),e.closeNode()},parseOpen:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(e),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){if(this.parser)return this.parser.parseClose(e)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(e){case"sst":return!1;default:throw new Error("Unexpected xml node in parseClose: "+e)}}})},{"../../../utils/utils":21,"../../../utils/xml-stream":22,"../base-xform":26,"./shared-string-xform":77}],79:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../base-xform"),i=t.exports=function(){};n.inherits(i,a,{get tag(){return"t"},render:function(e,t){e.openNode("t")," "!==t[0]&&" "!==t[t.length-1]||e.addAttribute("xml:space","preserve"),e.writeText(t),e.closeNode()},get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(function(e,t){return String.fromCharCode(parseInt(t,16))}))},parseOpen:function(e){switch(e.name){case"t":return this._text=[],!0;default:return!1}},parseText:function(e){this._text.push(e)},parseClose:function(){return!1}})},{"../../../utils/utils":21,"../base-xform":26}],80:[function(e,t,r){"use strict";var n=e("../../../doc/enums"),a=e("../../../utils/utils"),i=e("../base-xform"),s={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((function(e,t){return e[t]=!0,e}),{}),horizontal:function(e){return this.horizontalValues[e]?e:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((function(e,t){return e[t]=!0,e}),{}),vertical:function(e){return"middle"===e?"center":this.verticalValues[e]?e:void 0},wrapText:function(e){return!!e||void 0},shrinkToFit:function(e){return!!e||void 0},textRotation:function(e){switch(e){case"vertical":return e;default:return e=a.validInt(e),e>=-90&&e<=90?e:void 0}},indent:function(e){return e=a.validInt(e),Math.max(0,e)},readingOrder:function(e){switch(e){case"ltr":return n.ReadingOrder.LeftToRight;case"rtl":return n.ReadingOrder.RightToLeft;default:return}}},o={toXml:function(e){if(e=s.textRotation(e),e){if("vertical"===e)return 255;var t=Math.round(e);if(t>=0&&t<=90)return t;if(t<0&&t>=-90)return 90-t}},toModel:function(e){var t=a.validInt(e);if(void 0!==t){if(255===t)return"vertical";if(t>=0&&t<=90)return t;if(t>90&&t<=180)return 90-t}}},l=t.exports=function(){};a.inherits(l,i,{get tag(){return"alignment"},render:function(e,t){e.addRollback(),e.openNode("alignment");var r=!1;function n(t,n){n&&(e.addAttribute(t,n),r=!0)}n("horizontal",s.horizontal(t.horizontal)),n("vertical",s.vertical(t.vertical)),n("wrapText",!!s.wrapText(t.wrapText)&&"1"),n("shrinkToFit",!!s.shrinkToFit(t.shrinkToFit)&&"1"),n("indent",s.indent(t.indent)),n("textRotation",o.toXml(t.textRotation)),n("readingOrder",s.readingOrder(t.readingOrder)),e.closeNode(),r?e.commit():e.rollback()},parseOpen:function(e){var t={},r=!1;function n(e,n,a){e&&(t[n]=a,r=!0)}n(e.attributes.horizontal,"horizontal",e.attributes.horizontal),n(e.attributes.vertical,"vertical","center"===e.attributes.vertical?"middle":e.attributes.vertical),n(e.attributes.wrapText,"wrapText",!!e.attributes.wrapText),n(e.attributes.shrinkToFit,"shrinkToFit",!!e.attributes.shrinkToFit),n(e.attributes.indent,"indent",parseInt(e.attributes.indent,10)),n(e.attributes.textRotation,"textRotation",o.toModel(e.attributes.textRotation)),n(e.attributes.readingOrder,"readingOrder","2"===e.attributes.readingOrder?"rtl":"ltr"),this.model=r?t:null},parseText:function(){},parseClose:function(){return!1}})},{"../../../doc/enums":8,"../../../utils/utils":21,"../base-xform":26}],81:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../base-xform"),i=e("./color-xform"),s=function(e){this.name=e,this.map={color:new i}};n.inherits(s,a,{get tag(){return this.name},render:function(e,t,r){var n=t&&t.color||r||this.defaultColor;e.openNode(this.name),t&&t.style&&(e.addAttribute("style",t.style),n&&this.map.color.render(e,n)),e.closeNode()},parseOpen:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.name:var t=e.attributes.style;return this.model=t?{style:t}:void 0,!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(e===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)},validStyleValues:["thin","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((function(e,t){return e[t]=!0,e}),{}),validStyle:function(e){return this.validStyleValues[e]}});var o=t.exports=function(){this.map={top:new s("top"),left:new s("left"),bottom:new s("bottom"),right:new s("right"),diagonal:new s("diagonal")}};n.inherits(o,a,{render:function(e,t){var r=t.color;function n(n,a){n&&!n.color&&t.color&&(n=Object.assign({},n,{color:t.color})),a.render(e,n,r)}e.openNode("border"),t.diagonal&&t.diagonal.style&&(t.diagonal.up&&e.addAttribute("diagonalUp","1"),t.diagonal.down&&e.addAttribute("diagonalDown","1")),n(t.left,this.map.left),n(t.right,this.map.right),n(t.top,this.map.top),n(t.bottom,this.map.bottom),n(t.diagonal,this.map.diagonal),e.closeNode()},parseOpen:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"border":return this.reset(),this.diagonalUp=!!e.attributes.diagonalUp,this.diagonalDown=!!e.attributes.diagonalDown,!0;default:return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("border"===e){var t=this.model={},r=function(e,r,n){r&&(n&&Object.assign(r,n),t[e]=r)};r("left",this.map.left.model),r("right",this.map.right.model),r("top",this.map.top.model),r("bottom",this.map.bottom.model),r("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}})},{"../../../utils/utils":21,"../base-xform":26,"./color-xform":82}],82:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../base-xform"),i=t.exports=function(e){this.name=e||"color"};n.inherits(i,a,{get tag(){return this.name},render:function(e,t){return!!t&&(e.openNode(this.name),t.argb?e.addAttribute("rgb",t.argb):void 0!==t.theme?(e.addAttribute("theme",t.theme),void 0!==t.tint&&e.addAttribute("tint",t.tint)):void 0!==t.indexed?e.addAttribute("indexed",t.indexed):e.addAttribute("auto","1"),e.closeNode(),!0)},parseOpen:function(e){return e.name===this.name&&(e.attributes.rgb?this.model={argb:e.attributes.rgb}:e.attributes.theme?(this.model={theme:parseInt(e.attributes.theme,10)},e.attributes.tint&&(this.model.tint=parseFloat(e.attributes.tint))):e.attributes.indexed?this.model={indexed:parseInt(e.attributes.indexed,10)}:this.model=void 0,!0)},parseText:function(){},parseClose:function(){return!1}})},{"../../../utils/utils":21,"../base-xform":26}],83:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../base-xform"),i=e("./color-xform"),s=function(){this.map={color:new i}};n.inherits(s,a,{get tag(){return"stop"},render:function(e,t){e.openNode("stop"),e.addAttribute("position",t.position),this.map.color.render(e,t.color),e.closeNode()},parseOpen:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"stop":return this.model={position:parseFloat(e.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}},parseText:function(){},parseClose:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.color=this.parser.model,this.parser=void 0),!0)}});var o=function(){this.map={fgColor:new i("fgColor"),bgColor:new i("bgColor")}};n.inherits(o,a,{get name(){return"pattern"},get tag(){return"patternFill"},render:function(e,t){e.openNode("patternFill"),e.addAttribute("patternType",t.pattern),t.fgColor&&this.map.fgColor.render(e,t.fgColor),t.bgColor&&this.map.bgColor.render(e,t.bgColor),e.closeNode()},parseOpen:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"patternFill":return this.model={type:"pattern",pattern:e.attributes.patternType},!0;default:return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.parser.model&&(this.model[e]=this.parser.model),this.parser=void 0),!0)}});var l=function(){this.map={stop:new s}};n.inherits(l,a,{get name(){return"gradient"},get tag(){return"gradientFill"},render:function(e,t){switch(e.openNode("gradientFill"),t.gradient){case"angle":e.addAttribute("degree",t.degree);break;case"path":e.addAttribute("type","path"),t.center.left&&(e.addAttribute("left",t.center.left),void 0===t.center.right&&e.addAttribute("right",t.center.left)),t.center.right&&e.addAttribute("right",t.center.right),t.center.top&&(e.addAttribute("top",t.center.top),void 0===t.center.bottom&&e.addAttribute("bottom",t.center.top)),t.center.bottom&&e.addAttribute("bottom",t.center.bottom);break;default:break}var r=this.map.stop;t.stops.forEach((function(t){r.render(e,t)})),e.closeNode()},parseOpen:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"gradientFill":var t=this.model={stops:[]};return e.attributes.degree?(t.gradient="angle",t.degree=parseInt(e.attributes.degree,10)):"path"===e.attributes.type&&(t.gradient="path",t.center={left:e.attributes.left?parseFloat(e.attributes.left):0,top:e.attributes.top?parseFloat(e.attributes.top):0},e.attributes.right!==e.attributes.left&&(t.center.right=e.attributes.right?parseFloat(e.attributes.right):0),e.attributes.bottom!==e.attributes.top&&(t.center.bottom=e.attributes.bottom?parseFloat(e.attributes.bottom):0)),!0;case"stop":return this.parser=this.map.stop,this.parser.parseOpen(e),!0;default:return!1}},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}});var u=t.exports=function(){this.map={patternFill:new o,gradientFill:new l}};n.inherits(u,a,{StopXform:s,PatternFillXform:o,GradientFillXform:l},{get tag(){return"fill"},render:function(e,t){switch(e.addRollback(),e.openNode("fill"),t.type){case"pattern":this.map.patternFill.render(e,t);break;case"gradient":this.map.gradientFill.render(e,t);break;default:return void e.rollback()}e.closeNode(),e.commit()},parseOpen:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"fill":return this.model={},!0;default:return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)},validPatternValues:["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((function(e,t){return e[t]=!0,e}),{}),validStyle:function(e){return this.validStyleValues[e]}})},{"../../../utils/utils":21,"../base-xform":26,"./color-xform":82}],84:[function(e,t,r){"use strict";var n=e("./color-xform"),a=e("../simple/boolean-xform"),i=e("../simple/integer-xform"),s=e("../simple/string-xform"),o=e("./underline-xform"),l=e("../../../utils/under-dash"),u=e("../../../utils/utils"),c=e("../base-xform"),h=t.exports=function(e){this.options=e||h.OPTIONS,this.map={b:{prop:"bold",xform:new a({tag:"b",attr:"val"})},i:{prop:"italic",xform:new a({tag:"i",attr:"val"})},u:{prop:"underline",xform:new o},charset:{prop:"charset",xform:new i({tag:"charset",attr:"val"})},color:{prop:"color",xform:new n},condense:{prop:"condense",xform:new a({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new a({tag:"extend",attr:"val"})},family:{prop:"family",xform:new i({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new a({tag:"outline",attr:"val"})},scheme:{prop:"scheme",xform:new s({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new a({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new a({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new i({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new s({tag:this.options.fontNameTag,attr:"val"})}};h.OPTIONS={tagName:"font",fontNameTag:"name"},u.inherits(h,c,{get tag(){return this.options.tagName},render:function(e,t){var r=this.map;e.openNode(this.options.tagName),l.each(this.map,(function(n,a){r[a].xform.render(e,t[n.prop])})),e.closeNode()},parseOpen:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if(this.map[e.name])return this.parser=this.map[e.name].xform,this.parser.parseOpen(e);switch(e.name){case this.options.tagName:return this.model={},!0;default:return!1}},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){if(this.parser&&!this.parser.parseClose(e)){var t=this.map[e];return this.parser.model&&(this.model[t.prop]=this.parser.model),this.parser=void 0,!0}switch(e){case this.options.tagName:return!1;default:return!0}}})},{"../../../utils/under-dash":20,"../../../utils/utils":21,"../base-xform":26,"../simple/boolean-xform":70,"../simple/integer-xform":72,"../simple/string-xform":73,"./color-xform":82,"./underline-xform":88}],85:[function(e,t,r){"use strict";var n=e("../../../utils/under-dash"),a=e("../../../utils/utils"),i=e("../../defaultnumformats"),s=e("../base-xform");function o(){var e={};return n.each(i,(function(t,r){t.f&&(e[t.f]=parseInt(r,10))})),e}var l=o(),u=t.exports=function(e,t){this.id=e,this.formatCode=t};a.inherits(u,s,{get tag(){return"numFmt"},getDefaultFmtId:function(e){return l[e]},getDefaultFmtCode:function(e){return i[e]&&i[e].f}},{render:function(e,t){e.leafNode("numFmt",{numFmtId:t.id,formatCode:t.formatCode})},parseOpen:function(e){switch(e.name){case"numFmt":return this.model={id:parseInt(e.attributes.numFmtId,10),formatCode:e.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}},parseText:function(){},parseClose:function(){return!1}})},{"../../../utils/under-dash":20,"../../../utils/utils":21,"../../defaultnumformats":24,"../base-xform":26}],86:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../base-xform"),i=e("./alignment-xform"),s=t.exports=function(e){this.xfId=!(!e||!e.xfId),this.map={alignment:new i}};n.inherits(s,a,{get tag(){return"xf"},render:function(e,t){e.openNode("xf",{numFmtId:t.numFmtId||0,fontId:t.fontId||0,fillId:t.fillId||0,borderId:t.borderId||0}),this.xfId&&e.addAttribute("xfId",t.xfId||0),t.numFmtId&&e.addAttribute("applyNumberFormat","1"),t.fontId&&e.addAttribute("applyFont","1"),t.fillId&&e.addAttribute("applyFill","1"),t.borderId&&e.addAttribute("applyBorder","1"),t.alignment&&(e.addAttribute("applyAlignment","1"),this.map.alignment.render(e,t.alignment)),e.closeNode()},parseOpen:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"xf":return this.model={numFmtId:parseInt(e.attributes.numFmtId,10),fontId:parseInt(e.attributes.fontId,10),fillId:parseInt(e.attributes.fillId,10),borderId:parseInt(e.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(e.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(e),!0;default:return!1}},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){return this.parser?(this.parser.parseClose(e)||(this.model.alignment=this.parser.model,this.parser=void 0),!0):"xf"!==e}})},{"../../../utils/utils":21,"../base-xform":26,"./alignment-xform":80}],87:[function(e,t,r){"use strict";var n=e("../../../utils/promish"),a=e("../../../utils/utils"),i=e("../../../doc/enums"),s=e("../../../utils/xml-stream"),o=e("../base-xform"),l=e("../static-xform"),u=e("../list-xform"),c=e("./font-xform"),h=e("./fill-xform"),d=e("./border-xform"),f=e("./numfmt-xform"),p=e("./style-xform"),m=164,g=t.exports=function(e){this.map={numFmts:new u({tag:"numFmts",count:!0,childXform:new f}),fonts:new u({tag:"fonts",count:!0,childXform:new c,$:{"x14ac:knownFonts":1}}),fills:new u({tag:"fills",count:!0,childXform:new h}),borders:new u({tag:"borders",count:!0,childXform:new d}),cellStyleXfs:new u({tag:"cellStyleXfs",count:!0,childXform:new p}),cellXfs:new u({tag:"cellXfs",count:!0,childXform:new p({xfId:!0})}),numFmt:new f,font:new c,fill:new h,border:new d,style:new p({xfId:!0}),cellStyles:g.STATIC_XFORMS.cellStyles,dxfs:g.STATIC_XFORMS.dxfs,tableStyles:g.STATIC_XFORMS.tableStyles,extLst:g.STATIC_XFORMS.extLst},e&&this.init()};a.inherits(g,o,{STYLESHEET_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},STATIC_XFORMS:{cellStyles:new l({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new l({tag:"dxfs",$:{count:0}}),tableStyles:new l({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new l({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})}},{initIndex:function(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}},init:function(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[]},this.initIndex(),this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"})},render:function(e,t){t=t||this.model,e.openXml(s.StdDocAttributes),e.openNode("styleSheet",g.STYLESHEET_ATTRIBUTES),this.index?(t.numFmts&&t.numFmts.length&&(e.openNode("numFmts",{count:t.numFmts.length}),t.numFmts.forEach((function(t){e.writeXml(t)})),e.closeNode()),e.openNode("fonts",{count:t.fonts.length}),t.fonts.forEach((function(t){e.writeXml(t)})),e.closeNode(),e.openNode("fills",{count:t.fills.length}),t.fills.forEach((function(t){e.writeXml(t)})),e.closeNode(),e.openNode("borders",{count:t.borders.length}),t.borders.forEach((function(t){e.writeXml(t)})),e.closeNode(),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),e.openNode("cellXfs",{count:t.styles.length}),t.styles.forEach((function(t){e.writeXml(t)})),e.closeNode()):(this.map.numFmts.render(e,t.numFmts),this.map.fonts.render(e,t.fonts),this.map.fills.render(e,t.fills),this.map.borders.render(e,t.borders),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(e,t.styles)),g.STATIC_XFORMS.cellStyles.render(e),g.STATIC_XFORMS.dxfs.render(e),g.STATIC_XFORMS.tableStyles.render(e),g.STATIC_XFORMS.extLst.render(e),e.closeNode()},parseOpen:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0}},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"styleSheet":var t=this.model={},r=function(e,r){r.model&&r.model.length&&(t[e]=r.model)};if(r("numFmts",this.map.numFmts),r("fonts",this.map.fonts),r("fills",this.map.fills),r("borders",this.map.borders),r("styles",this.map.cellXfs),this.index={model:[],numFmt:[]},t.numFmts){var n=this.index.numFmt;t.numFmts.forEach((function(e){n[e.id]=e.formatCode}))}return!1;default:return!0}},addStyleModel:function(e,t){if(!e)return 0;if(this.weakMap&&this.weakMap.has(e))return this.weakMap.get(e);var r={};if(t=t||i.ValueType.Number,e.numFmt)r.numFmtId=this._addNumFmtStr(e.numFmt);else switch(t){case i.ValueType.Number:r.numFmtId=this._addNumFmtStr("General");break;case i.ValueType.Date:r.numFmtId=this._addNumFmtStr("mm-dd-yy");break;default:break}e.font&&(r.fontId=this._addFont(e.font)),e.border&&(r.borderId=this._addBorder(e.border)),e.fill&&(r.fillId=this._addFill(e.fill)),e.alignment&&(r.alignment=e.alignment);var n=this._addStyle(r);return this.weakMap&&this.weakMap.set(e,n),n},getStyleModel:function(e){var t=this.model.styles[e];if(!t)return null;var r=this.index.model[e];if(r)return r;if(r=this.index.model[e]={},t.numFmtId){var n=this.index.numFmt[t.numFmtId]||f.getDefaultFmtCode(t.numFmtId);n&&(r.numFmt=n)}function a(e,t,n){if(n){var a=t[n];a&&(r[e]=a)}}return a("font",this.model.fonts,t.fontId),a("border",this.model.borders,t.borderId),a("fill",this.model.fills,t.fillId),t.alignment&&(r.alignment=t.alignment),r},_addStyle:function(e){var t=this.map.style.toXml(e),r=this.index.style[t];return void 0===r&&(r=this.index.style[t]=this.model.styles.length,this.model.styles.push(t)),r},_addNumFmtStr:function(e){var t=f.getDefaultFmtId(e);if(void 0!==t)return t;if(t=this.index.numFmt[e],void 0!==t)return t;t=this.index.numFmt[e]=m+this.model.numFmts.length;var r=this.map.numFmt.toXml({id:t,formatCode:e});return this.model.numFmts.push(r),t},_addFont:function(e){var t=this.map.font.toXml(e),r=this.index.font[t];return void 0===r&&(r=this.index.font[t]=this.model.fonts.length,this.model.fonts.push(t)),r},_addBorder:function(e){var t=this.map.border.toXml(e),r=this.index.border[t];return void 0===r&&(r=this.index.border[t]=this.model.borders.length,this.model.borders.push(t)),r},_addFill:function(e){var t=this.map.fill.toXml(e),r=this.index.fill[t];return void 0===r&&(r=this.index.fill[t]=this.model.fills.length,this.model.fills.push(t)),r}}),g.Mock=function(){g.call(this),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}},a.inherits(g.Mock,g,{parseStream:function(e){return e.autodrain(),n.Promish.resolve()},addStyleModel:function(e,t){switch(t){case i.ValueType.Date:return this.dateStyleId;default:return 0}},get dateStyleId(){if(!this._dateStyleId){var e={numFmtId:f.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(e)}return this._dateStyleId},getStyleModel:function(){return{}}})},{"../../../doc/enums":8,"../../../utils/promish":16,"../../../utils/utils":21,"../../../utils/xml-stream":22,"../base-xform":26,"../list-xform":47,"../static-xform":74,"./border-xform":81,"./fill-xform":83,"./font-xform":84,"./numfmt-xform":85,"./style-xform":86}],88:[function(e,t,r){"use strict";var n=e("../../../utils/utils"),a=e("../base-xform"),i=t.exports=function(e){this.model=e};i.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},n.inherits(i,a,{get tag(){return"u"},render:function(e,t){if(t=t||this.model,!0===t)e.leafNode("u");else{var r=i.Attributes[t];r&&e.leafNode("u",r)}},parseOpen:function(e){"u"===e.name&&(this.model=e.attributes.val||!0)},parseText:function(){},parseClose:function(){return!1}})},{"../../../utils/utils":21,"../base-xform":26}],89:[function(e,t,r){(function(r){"use strict";var n=e("fs"),a=e("../utils/zip-stream"),i=e("../utils/stream-buf"),s=e("../utils/promish"),o=e("../utils/utils"),l=e("../utils/xml-stream"),u=e("./xform/style/styles-xform"),c=e("./xform/core/core-xform"),h=e("./xform/strings/shared-strings-xform"),d=e("./xform/core/relationships-xform"),f=e("./xform/core/content-types-xform"),p=e("./xform/core/app-xform"),m=e("./xform/book/workbook-xform"),g=e("./xform/sheet/worksheet-xform"),_=e("./xform/drawing/drawing-xform"),y=e("./xml/theme1.js"),v=t.exports=function(e){this.workbook=e};function b(e,t){return new s.Promish((function(r,a){n.readFile(e,t,(function(e,t){e?a(e):r(t)}))}))}v.RelType=e("./rel-type"),v.prototype={readFile:function(e,t){var r,a=this;return o.fs.exists(e).then((function(i){if(!i)throw new Error("File not found: "+e);return r=n.createReadStream(e),a.read(r,t).catch((function(e){throw r.close(),e}))})).then((function(e){return r.close(),e}))},parseRels:function(e){var t=new d;return t.parseStream(e)},parseWorkbook:function(e){var t=new m;return t.parseStream(e)},parseSharedStrings:function(e){var t=new h;return t.parseStream(e)},reconcile:function(e,t){var r=new m,n=new g(t),a=new _;r.reconcile(e);var i={media:e.media,mediaIndex:e.mediaIndex};Object.keys(e.drawings).forEach((function(t){var r=e.drawings[t],n=e.drawingRels[t];n&&(i.rels=n.reduce((function(e,t){return e[t.Id]=t,e}),{}),a.reconcile(r,i))}));var s={styles:e.styles,sharedStrings:e.sharedStrings,media:e.media,mediaIndex:e.mediaIndex,date1904:e.properties&&e.properties.date1904,drawings:e.drawings};e.worksheets.forEach((function(t){t.relationships=e.worksheetRels[t.sheetNo],n.reconcile(t,s)})),delete e.worksheetHash,delete e.worksheetRels,delete e.globalRels,delete e.sharedStrings,delete e.workbookRels,delete e.sheetDefs,delete e.styles,delete e.mediaIndex,delete e.drawings,delete e.drawingRels},processWorksheetEntry:function(e,t,r){var n=e.path.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(n){var a=n[1],i=new g(r);return i.parseStream(e).then((function(r){r.sheetNo=a,t.worksheetHash[e.path]=r,t.worksheets.push(r)}))}},processWorksheetRelsEntry:function(e,t){var r=e.path.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/);if(r){var n=r[1],a=new d;return a.parseStream(e).then((function(e){t.worksheetRels[n]=e}))}},processMediaEntry:function(e,t){var r=e.path.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/);if(r){var n=r[1],a=n.lastIndexOf(".");if(-1===a)return;var o=n.substr(a+1),l=n.substr(0,a);return new s.Promish((function(r,a){var s=new i;s.on("finish",(function(){t.mediaIndex[n]=t.media.length,t.mediaIndex[l]=t.media.length;var e={type:"image",name:l,extension:o,buffer:s.toBuffer()};t.media.push(e),r()})),e.on("error",(function(e){a(e)})),e.pipe(s)}))}},processDrawingEntry:function(e,t){var r=e.path.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/);if(r){var n=r[1],a=new _;return a.parseStream(e).then((function(e){t.drawings[n]=e}))}},processDrawingRelsEntry:function(e,t){var r=e.path.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/);if(r){var n=r[1],a=new d;return a.parseStream(e).then((function(e){t.drawingRels[n]=e}))}},processThemeEntry:function(e,t){var r=e.path.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/);if(r)return new s.Promish((function(n,a){var s=r[1],o=new i;e.on("error",a),o.on("error",a),o.on("finish",(function(){t.themes[s]=o.read().toString(),n()})),e.pipe(o)}))},processIgnoreEntry:function(e){e.autodrain()},createInputStream:function(e){var t=this,r={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{}},n=[],i=new a.ZipReader({getEntryType:function(e){return e.match(/xl\/media\//)?"nodebuffer":"string"}});return i.on("entry",(function(a){var s=null,o=a.path;switch("/"===o[0]&&(o=o.substr(1)),o){case"_rels/.rels":s=t.parseRels(a).then((function(e){r.globalRels=e}));break;case"xl/workbook.xml":s=t.parseWorkbook(a).then((function(e){r.sheets=e.sheets,r.definedNames=e.definedNames,r.views=e.views,r.properties=e.properties}));break;case"xl/_rels/workbook.xml.rels":s=t.parseRels(a).then((function(e){r.workbookRels=e}));break;case"xl/sharedStrings.xml":r.sharedStrings=new h,s=r.sharedStrings.parseStream(a);break;case"xl/styles.xml":r.styles=new u,s=r.styles.parseStream(a);break;case"docProps/app.xml":var l=new p;s=l.parseStream(a).then((function(e){Object.assign(r,{company:e.company,manager:e.manager})}));break;case"docProps/core.xml":var d=new c;s=d.parseStream(a).then((function(e){Object.assign(r,e)}));break;default:s=t.processWorksheetEntry(a,r,e)||t.processWorksheetRelsEntry(a,r)||t.processThemeEntry(a,r)||t.processMediaEntry(a,r)||t.processDrawingEntry(a,r)||t.processDrawingRelsEntry(a,r)||t.processIgnoreEntry(a);break}s&&(s=s.catch((function(e){throw i.destroy(e),e})),n.push(s),s=null)})),i.on("finished",(function(){s.Promish.all(n).then((function(){t.reconcile(r,e),t.workbook.model=r})).then((function(){i.emit("done")})).catch((function(e){i.emit("error",e)}))})),i},read:function(e,t){t=t||{};var r=this,n=this.createInputStream(t);return new s.Promish((function(t,a){n.on("done",(function(){t(r.workbook)})).on("error",(function(e){a(e)})),e.pipe(n)}))},load:function(e,t){var n=this;void 0===t&&(t={});var a=this.createInputStream();return new s.Promish((function(i,s){if(a.on("done",(function(){i(n.workbook)})).on("error",(function(e){s(e)})),t.base64){var o=new r(e.toString(),"base64");a.write(o)}else a.write(e);a.end()}))},addMedia:function(e,t){return s.Promish.all(t.media.map((function(t){if("image"===t.type){var r="xl/media/"+t.name+"."+t.extension;if(t.filename)return b(t.filename).then((function(t){e.append(t,{name:r})}));if(t.buffer)return new s.Promish((function(n){e.append(t.buffer,{name:r}),n()}));if(t.base64)return new s.Promish((function(n){var a=t.base64,i=a.substring(a.indexOf(",")+1);e.append(i,{name:r,base64:!0}),n()}))}return s.Promish.reject(new Error("Unsupported media"))})))},addDrawings:function(e,t){var r=new _,n=new d,a=[];return t.worksheets.forEach((function(t){var i=t.drawing;i&&a.push(new s.Promish((function(t){r.prepare(i,{});var a=r.toXml(i);e.append(a,{name:"xl/drawings/"+i.name+".xml"}),a=n.toXml(i.rels),e.append(a,{name:"xl/drawings/_rels/"+i.name+".xml.rels"}),t()})))})),s.Promish.all(a)},addContentTypes:function(e,t){return new s.Promish((function(r){var n=new f,a=n.toXml(t);e.append(a,{name:"[Content_Types].xml"}),r()}))},addApp:function(e,t){return new s.Promish((function(r){var n=new p,a=n.toXml(t);e.append(a,{name:"docProps/app.xml"}),r()}))},addCore:function(e,t){return new s.Promish((function(r){var n=new c;e.append(n.toXml(t),{name:"docProps/core.xml"}),r()}))},addThemes:function(e,t){return new s.Promish((function(r){var n=t.themes||{theme1:y};Object.keys(n).forEach((function(t){var r=n[t],a="xl/theme/"+t+".xml";e.append(r,{name:a})})),r()}))},addOfficeRels:function(e){return new s.Promish((function(t){var r=new d,n=r.toXml([{Id:"rId1",Type:v.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:v.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:v.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);e.append(n,{name:"_rels/.rels"}),t()}))},addWorkbookRels:function(e,t){var r=1,n=[{Id:"rId"+r++,Type:v.RelType.Styles,Target:"styles.xml"},{Id:"rId"+r++,Type:v.RelType.Theme,Target:"theme/theme1.xml"}];return t.sharedStrings.count&&n.push({Id:"rId"+r++,Type:v.RelType.SharedStrings,Target:"sharedStrings.xml"}),t.worksheets.forEach((function(e){e.rId="rId"+r++,n.push({Id:e.rId,Type:v.RelType.Worksheet,Target:"worksheets/sheet"+e.id+".xml"})})),new s.Promish((function(t){var r=new d,a=r.toXml(n);e.append(a,{name:"xl/_rels/workbook.xml.rels"}),t()}))},addSharedStrings:function(e,t){return t.sharedStrings&&t.sharedStrings.count?new s.Promish((function(r){e.append(t.sharedStrings.xml,{name:"xl/sharedStrings.xml"}),r()})):s.Promish.resolve()},addStyles:function(e,t){return new s.Promish((function(r){var n=t.styles.xml;n&&e.append(n,{name:"xl/styles.xml"}),r()}))},addWorkbook:function(e,t){return new s.Promish((function(r){var n=new m;e.append(n.toXml(t),{name:"xl/workbook.xml"}),r()}))},addWorksheets:function(e,t){return new s.Promish((function(r){var n=new g,a=new d;t.worksheets.forEach((function(t){var r=new l;n.render(r,t),e.append(r.xml,{name:"xl/worksheets/sheet"+t.id+".xml"}),t.rels&&t.rels.length&&(r=new l,a.render(r,t.rels),e.append(r.xml,{name:"xl/worksheets/_rels/sheet"+t.id+".xml.rels"}))})),r()}))},_finalize:function(e){var t=this;return new s.Promish((function(r,n){e.on("finish",(function(){r(t)})),e.on("error",n),e.finalize()}))},prepareModel:function(e,t){e.creator=e.creator||"ExcelJS",e.lastModifiedBy=e.lastModifiedBy||"ExcelJS",e.created=e.created||new Date,e.modified=e.modified||new Date,e.useSharedStrings=void 0===t.useSharedStrings||t.useSharedStrings,e.useStyles=void 0===t.useStyles||t.useStyles,e.sharedStrings=new h,e.styles=e.useStyles?new u(!0):new u.Mock;var r=new m,n=new g;r.prepare(e);var a={sharedStrings:e.sharedStrings,styles:e.styles,date1904:e.properties.date1904,drawingsCount:0,media:e.media};a.drawings=e.drawings=[],e.worksheets.forEach((function(e){n.prepare(e,a)}))},write:function(e,t){var r=this;t=t||{};var n=this.workbook.model,i=new a.ZipWriter;return i.pipe(e),this.prepareModel(n,t),s.Promish.resolve().then((function(){return r.addContentTypes(i,n)})).then((function(){return r.addOfficeRels(i,n)})).then((function(){return r.addWorkbookRels(i,n)})).then((function(){return r.addWorksheets(i,n)})).then((function(){return r.addSharedStrings(i,n)})).then((function(){return r.addDrawings(i,n)})).then((function(){var e=[r.addThemes(i,n),r.addStyles(i,n)];return s.Promish.all(e)})).then((function(){return r.addMedia(i,n)})).then((function(){var e=[r.addApp(i,n),r.addCore(i,n)];return s.Promish.all(e)})).then((function(){return r.addWorkbook(i,n)})).then((function(){return r._finalize(i)}))},writeFile:function(e,t){var r=this,a=n.createWriteStream(e);return new s.Promish((function(e,n){a.on("finish",(function(){e()})),a.on("error",(function(e){n(e)})),r.write(a,t).then((function(){a.end()})).catch((function(e){n(e)}))}))},writeBuffer:function(e){var t=this,r=new i;return t.write(r,e).then((function(){return r.read()}))}}}).call(this,e("buffer").Buffer)},{"../utils/promish":16,"../utils/stream-buf":18,"../utils/utils":21,"../utils/xml-stream":22,"../utils/zip-stream":23,"./rel-type":25,"./xform/book/workbook-xform":31,"./xform/core/app-xform":34,"./xform/core/content-types-xform":35,"./xform/core/core-xform":36,"./xform/core/relationships-xform":38,"./xform/drawing/drawing-xform":42,"./xform/sheet/worksheet-xform":69,"./xform/strings/shared-strings-xform":78,"./xform/style/styles-xform":87,"./xml/theme1.js":90,buffer:96,fs:95}],90:[function(e,t,r){"use strict";t.exports='\n '},{}],91:[function(t,r,n){(function(){"use strict";function a(e,t){Array.prototype.slice;var r=t.isArguments;function n(e,t){var r=-1,n=0,a=e.length,i=[];t=t||0,r+=t;while(++ra?1:r>>0;if(0===i)return-1;var u=i;arguments.length>2&&(u=Number(arguments[2]),u!==u?u=0:0!==u&&u!==1/0&&u!==-1/0&&(u=(u>0||-1)*s(o(u))));for(var c=u>=0?l(u,i-1):i-o(u);c>=0;c--)if(c in n&&n[c]===t)return c;return-1}function T(e,t,r){if(e&&p&&p===e.filter)return e.filter(t,r);if(!a(e)||"function"!==typeof t)throw new TypeError;for(var n=Object(e),i=n.length>>>0,s=[],o=0;o>>0,s=0;s>>0,s=0;s>>0,s=[],o=0;o2;if(e&&d&&d===e.reduce)return n?e.reduce(t,r):e.reduce(t);if(!a(e)||"function"!==typeof t)throw new TypeError;var i=0,s=e.length>>0;if(arguments.length<3){if(0===s)throw new TypeError("Array length is 0 and no second argument");r=e[0],i=1}else r=arguments[2];while(i2;if(e&&f&&f===e.reduceRight)return n?e.reduceRight(t,r):e.reduceRight(t);if(!a(e)||"function"!==typeof t)throw new TypeError;var i=Object(e),s=i.length>>>0;if(0===s&&2===arguments.length)throw new TypeError;var o=s-1;if(arguments.length>=3)r=arguments[2];else do{if(o in e){r=e[o--];break}}while(1);while(o>=0)o in i&&(r=t.call(void 0,r,i[o],o,i)),o--;return r}function N(e){var r=[];if(null!==e){var n=_(arguments);if(1===n.length)if(a(e))r=e;else if(t.isHash(e))for(var i in e)e.hasOwnProperty(i)&&r.push([i,e[i]]);else r.push(e);else S(n,(function(e){r=r.concat(N(e))}))}return r}function R(e){return e=e||[],e.length?A(e,(function(e,t){return e+t})):0}function I(e){if(e=e||[],e.length){var r=R(e);if(t.isNumber(r))return r/e.length;throw new Error("Cannot average an array of non numbers.")}return 0}function M(e,t){return w(e,t)}function P(e,t){return w(e,t)[0]}function F(e,t){return w(e,t)[e.length-1]}function L(e){var t=e,r=q(_(arguments,1));return a(e)&&(t=T(e,(function(e){return-1===x(r,e)}))),t}function B(e){var t,r=[],n=-1,a=0;if(e){t=e.length;while(++n0?(r.push(r.shift()),t--):(r.unshift(r.pop()),t++),j(r,t)):r}function z(e,t){var r=[];if(a(e)){var n=e.slice(0);"number"!==typeof t&&(t=e.length),t?t<=e.length&&(r=A(e,(function(e,r,a){var i;return i=t>1?v(r,j(n,a).slice(1),t):[[r]],e.concat(i)}),[])):r=[[]]}return r}function H(){var e=[],r=_(arguments);if(r.length>1){var n=r.shift();a(n)&&(e=A(n,(function(e,n,i){for(var s=[n],o=0;o1){for(var r=0,n=t.length;r1?_(arguments):arguments[0],a(e)){r=e[0],n=0,t=e.length;while(++n1?r:N(e),A(t,(function(e,t){return e.concat(t)}),[])}function K(e,t){t=t.split(".");var r=e.slice(0);return S(t,(function(e){var t=e.match(/(\w+)\(\)$/);r=O(r,(function(r){return t?r[t[1]]():r[e]}))})),r}function Q(e,t,r){return r=_(arguments,2),O(e,(function(e){var a=n(t)?e[t]:t;return a.apply(e,r)}))}var ee={toArray:N,sum:R,avg:I,sort:M,min:P,max:F,difference:L,removeDuplicates:B,unique:U,rotate:j,permutations:z,zip:H,transpose:W,valuesAt:V,union:Y,intersect:G,powerSet:Z,cartesian:X,compact:$,multiply:J,flatten:q,pluck:K,invoke:Q,forEach:S,map:O,filter:T,reduce:A,reduceRight:D,some:C,every:E,indexOf:x,lastIndexOf:k};return e.define(a,ee).expose(ee)}"undefined"!==typeof n?"undefined"!==typeof r&&r.exports&&(r.exports=a(t("extended"),t("is-extended"),t("arguments-extended"))):"function"===typeof e&&e.amd?e(["extended","is-extended","arguments-extended"],(function(e,t,r){return a(e,t,r)})):this.arrayExtended=a(this.extended,this.isExtended,this.argumentsExtended)}).call(this)},{"arguments-extended":91,extended:124,"is-extended":140}],93:[function(e,t,r){"use strict";r.byteLength=c,r.toByteArray=d,r.fromByteArray=m;for(var n=[],a=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,l=s.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function c(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n}function h(e,t,r){return 3*(t+r)/4-r}function d(e){for(var t,r=u(e),n=r[0],s=r[1],o=new i(h(e,n,s)),l=0,c=s>0?n-4:n,d=0;d>16&255,o[l++]=t>>8&255,o[l++]=255&t;return 2===s&&(t=a[e.charCodeAt(d)]<<2|a[e.charCodeAt(d+1)]>>4,o[l++]=255&t),1===s&&(t=a[e.charCodeAt(d)]<<10|a[e.charCodeAt(d+1)]<<4|a[e.charCodeAt(d+2)]>>2,o[l++]=t>>8&255,o[l++]=255&t),o}function f(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function p(e,t,r){for(var n,a=[],i=t;il?l:o+s));return 1===a?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},{}],94:[function(e,t,r){},{}],95:[function(e,t,r){arguments[4][94][0].apply(r,arguments)},{dup:94}],96:[function(e,t,r){(function(t){ -/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */"use strict";var n=e("base64-js"),a=e("ieee754");r.Buffer=t,r.SlowBuffer=_,r.INSPECT_MAX_BYTES=50;var i=2147483647;function s(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}function o(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return r.__proto__=t.prototype,r}function t(e,t,r){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return h(e)}return l(e,t,r)}function l(e,r,n){if("string"===typeof e)return d(e,r);if(ArrayBuffer.isView(e))return f(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return p(e,r,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var a=e.valueOf&&e.valueOf();if(null!=a&&a!==e)return t.from(a,r,n);var i=m(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return t.from(e[Symbol.toPrimitive]("string"),r,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e,t,r){return u(e),e<=0?o(e):void 0!==t?"string"===typeof r?o(e).fill(t,r):o(e).fill(t):o(e)}function h(e){return u(e),o(e<0?0:0|g(e))}function d(e,r){if("string"===typeof r&&""!==r||(r="utf8"),!t.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var n=0|y(e,r),a=o(n),i=a.write(e,r);return i!==n&&(a=a.slice(0,i)),a}function f(e){for(var t=e.length<0?0:0|g(e.length),r=o(t),n=0;n=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function _(e){return+e!=e&&(e=0),t.alloc(+e)}function y(e,r){if(t.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,a=arguments.length>2&&!0===arguments[2];if(!a&&0===n)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(e).length;default:if(i)return a?-1:Y(e).length;r=(""+r).toLowerCase(),i=!0}}function v(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return P(this,t,r);case"utf8":case"utf-8":return D(this,t,r);case"ascii":return I(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function b(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function w(e,r,n,a,i){if(0===e.length)return-1;if("string"===typeof n?(a=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,q(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof r&&(r=t.from(r,a)),t.isBuffer(r))return 0===r.length?-1:x(e,r,n,a,i);if("number"===typeof r)return r&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,r,n):Uint8Array.prototype.lastIndexOf.call(e,r,n):x(e,[r],n,a,i);throw new TypeError("val must be string, number or Buffer")}function x(e,t,r,n,a){var i,s=1,o=e.length,l=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,o/=2,l/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(a){var c=-1;for(i=r;io&&(r=o-l),i=r;i>=0;i--){for(var h=!0,d=0;da&&(n=a)):n=a;var i=t.length;n>i/2&&(n=i/2);for(var s=0;s239?4:u>223?3:u>191?2:1;if(a+h<=r)switch(h){case 1:u<128&&(c=u);break;case 2:i=e[a+1],128===(192&i)&&(l=(31&u)<<6|63&i,l>127&&(c=l));break;case 3:i=e[a+1],s=e[a+2],128===(192&i)&&128===(192&s)&&(l=(15&u)<<12|(63&i)<<6|63&s,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:i=e[a+1],s=e[a+2],o=e[a+3],128===(192&i)&&128===(192&s)&&128===(192&o)&&(l=(15&u)<<18|(63&i)<<12|(63&s)<<6|63&o,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),a+=h}return R(n)}r.kMaxLength=i,t.TYPED_ARRAY_SUPPORT=s(),t.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(t.prototype,"parent",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.buffer}}),Object.defineProperty(t.prototype,"offset",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.byteOffset}}),"undefined"!==typeof Symbol&&null!=Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),t.poolSize=8192,t.from=function(e,t,r){return l(e,t,r)},t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,t.alloc=function(e,t,r){return c(e,t,r)},t.allocUnsafe=function(e){return h(e)},t.allocUnsafeSlow=function(e){return h(e)},t.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==t.prototype},t.compare=function(e,r){if(J(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),J(r,Uint8Array)&&(r=t.from(r,r.offset,r.byteLength)),!t.isBuffer(e)||!t.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,a=r.length,i=0,s=Math.min(n,a);it&&(e+=" ... "),""},t.prototype.compare=function(e,r,n,a,i){if(J(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),!t.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===r&&(r=0),void 0===n&&(n=e?e.length:0),void 0===a&&(a=0),void 0===i&&(i=this.length),r<0||n>e.length||a<0||i>this.length)throw new RangeError("out of range index");if(a>=i&&r>=n)return 0;if(a>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,a>>>=0,i>>>=0,this===e)return 0;for(var s=i-a,o=n-r,l=Math.min(s,o),u=this.slice(a,i),c=e.slice(r,n),h=0;h>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var a=this.length-t;if((void 0===r||r>a)&&(r=a),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return k(this,e,t,r);case"utf8":case"utf-8":return T(this,e,t,r);case"ascii":return S(this,e,t,r);case"latin1":case"binary":return E(this,e,t,r);case"base64":return C(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var N=4096;function R(e){var t=e.length;if(t<=N)return String.fromCharCode.apply(String,e);var r="",n=0;while(nn)&&(r=n);for(var a="",i=t;ir)throw new RangeError("Trying to access beyond buffer length")}function B(e,r,n,a,i,s){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||re.length)throw new RangeError("Index out of range")}function U(e,t,r,n,a,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j(e,t,r,n,i){return t=+t,r>>>=0,i||U(e,t,r,4,34028234663852886e22,-34028234663852886e22),a.write(e,t,r,n,23,4),r+4}function z(e,t,r,n,i){return t=+t,r>>>=0,i||U(e,t,r,8,17976931348623157e292,-17976931348623157e292),a.write(e,t,r,n,52,8),r+8}t.prototype.slice=function(e,r){var n=this.length;e=~~e,r=void 0===r?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r>>=0,t>>>=0,r||L(e,t,this.length);var n=this[e],a=1,i=0;while(++i>>=0,t>>>=0,r||L(e,t,this.length);var n=this[e+--t],a=1;while(t>0&&(a*=256))n+=this[e+--t]*a;return n},t.prototype.readUInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]},t.prototype.readUInt16LE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]|this[e+1]<<8},t.prototype.readUInt16BE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]<<8|this[e+1]},t.prototype.readUInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},t.prototype.readUInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},t.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||L(e,t,this.length);var n=this[e],a=1,i=0;while(++i=a&&(n-=Math.pow(2,8*t)),n},t.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||L(e,t,this.length);var n=t,a=1,i=this[e+--n];while(n>0&&(a*=256))i+=this[e+--n]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*t)),i},t.prototype.readInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},t.prototype.readInt16LE=function(e,t){e>>>=0,t||L(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt16BE=function(e,t){e>>>=0,t||L(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},t.prototype.readInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},t.prototype.readFloatLE=function(e,t){return e>>>=0,t||L(e,4,this.length),a.read(this,e,!0,23,4)},t.prototype.readFloatBE=function(e,t){return e>>>=0,t||L(e,4,this.length),a.read(this,e,!1,23,4)},t.prototype.readDoubleLE=function(e,t){return e>>>=0,t||L(e,8,this.length),a.read(this,e,!0,52,8)},t.prototype.readDoubleBE=function(e,t){return e>>>=0,t||L(e,8,this.length),a.read(this,e,!1,52,8)},t.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var a=Math.pow(2,8*r)-1;B(this,e,t,r,a,0)}var i=1,s=0;this[t]=255&e;while(++s>>=0,r>>>=0,!n){var a=Math.pow(2,8*r)-1;B(this,e,t,r,a,0)}var i=r-1,s=1;this[t+i]=255&e;while(--i>=0&&(s*=256))this[t+i]=e/s&255;return t+r},t.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,1,255,0),this[t]=255&e,t+1},t.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},t.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var a=Math.pow(2,8*r-1);B(this,e,t,r,a-1,-a)}var i=0,s=1,o=0;this[t]=255&e;while(++i>0)-o&255;return t+r},t.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var a=Math.pow(2,8*r-1);B(this,e,t,r,a-1,-a)}var i=r-1,s=1,o=0;this[t+i]=255&e;while(--i>=0&&(s*=256))e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/s>>0)-o&255;return t+r},t.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},t.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},t.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},t.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},t.prototype.writeDoubleLE=function(e,t,r){return z(this,e,t,!0,r)},t.prototype.writeDoubleBE=function(e,t,r){return z(this,e,t,!1,r)},t.prototype.copy=function(e,r,n,a){if(!t.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),a||0===a||(a=this.length),r>=e.length&&(r=e.length),r||(r=0),a>0&&a=this.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-r=0;--s)e[s+r]=this[s+n];else Uint8Array.prototype.set.call(e,this.subarray(n,a),r);return i},t.prototype.fill=function(e,r,n,a){if("string"===typeof e){if("string"===typeof r?(a=r,r=0,n=this.length):"string"===typeof n&&(a=n,n=this.length),void 0!==a&&"string"!==typeof a)throw new TypeError("encoding must be a string");if("string"===typeof a&&!t.isEncoding(a))throw new TypeError("Unknown encoding: "+a);if(1===e.length){var i=e.charCodeAt(0);("utf8"===a&&i<128||"latin1"===a)&&(e=i)}}else"number"===typeof e&&(e&=255);if(r<0||this.length>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(s=r;s55295&&r<57344){if(!a){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function G(e){for(var t=[],r=0;r>8,a=r%256,i.push(a),i.push(n)}return i}function X(e){return n.toByteArray(W(e))}function $(e,t,r,n){for(var a=0;a=t.length||a>=e.length)break;t[a+r]=e[a]}return a}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function q(e){return e!==e}}).call(this,e("buffer").Buffer)},{"base64-js":93,buffer:96,ieee754:136}],97:[function(e,t,r){e("../modules/web.immediate"),t.exports=e("../modules/_core").setImmediate},{"../modules/_core":101,"../modules/web.immediate":117}],98:[function(e,t,r){t.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},{}],99:[function(e,t,r){var n=e("./_is-object");t.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},{"./_is-object":112}],100:[function(e,t,r){var n={}.toString;t.exports=function(e){return n.call(e).slice(8,-1)}},{}],101:[function(e,t,r){var n=t.exports={version:"2.3.0"};"number"==typeof __e&&(__e=n)},{}],102:[function(e,t,r){var n=e("./_a-function");t.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,a){return e.call(t,r,n,a)}}return function(){return e.apply(t,arguments)}}},{"./_a-function":98}],103:[function(e,t,r){t.exports=!e("./_fails")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},{"./_fails":106}],104:[function(e,t,r){var n=e("./_is-object"),a=e("./_global").document,i=n(a)&&n(a.createElement);t.exports=function(e){return i?a.createElement(e):{}}},{"./_global":107,"./_is-object":112}],105:[function(e,t,r){var n=e("./_global"),a=e("./_core"),i=e("./_ctx"),s=e("./_hide"),o="prototype",l=function(e,t,r){var u,c,h,d=e&l.F,f=e&l.G,p=e&l.S,m=e&l.P,g=e&l.B,_=e&l.W,y=f?a:a[t]||(a[t]={}),v=y[o],b=f?n:p?n[t]:(n[t]||{})[o];for(u in f&&(r=t),r)c=!d&&b&&void 0!==b[u],c&&u in y||(h=c?b[u]:r[u],y[u]=f&&"function"!=typeof b[u]?r[u]:g&&c?i(h,n):_&&b[u]==h?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t[o]=e[o],t}(h):m&&"function"==typeof h?i(Function.call,h):h,m&&((y.virtual||(y.virtual={}))[u]=h,e&l.R&&v&&!v[u]&&s(v,u,h)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},{"./_core":101,"./_ctx":102,"./_global":107,"./_hide":108}],106:[function(e,t,r){t.exports=function(e){try{return!!e()}catch(t){return!0}}},{}],107:[function(e,t,r){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},{}],108:[function(e,t,r){var n=e("./_object-dp"),a=e("./_property-desc");t.exports=e("./_descriptors")?function(e,t,r){return n.f(e,t,a(1,r))}:function(e,t,r){return e[t]=r,e}},{"./_descriptors":103,"./_object-dp":113,"./_property-desc":114}],109:[function(e,t,r){t.exports=e("./_global").document&&document.documentElement},{"./_global":107}],110:[function(e,t,r){t.exports=!e("./_descriptors")&&!e("./_fails")((function(){return 7!=Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a}))},{"./_descriptors":103,"./_dom-create":104,"./_fails":106}],111:[function(e,t,r){t.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},{}],112:[function(e,t,r){t.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},{}],113:[function(e,t,r){var n=e("./_an-object"),a=e("./_ie8-dom-define"),i=e("./_to-primitive"),s=Object.defineProperty;r.f=e("./_descriptors")?Object.defineProperty:function(e,t,r){if(n(e),t=i(t,!0),n(r),a)try{return s(e,t,r)}catch(o){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},{"./_an-object":99,"./_descriptors":103,"./_ie8-dom-define":110,"./_to-primitive":116}],114:[function(e,t,r){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],115:[function(e,t,r){var n,a,i,s=e("./_ctx"),o=e("./_invoke"),l=e("./_html"),u=e("./_dom-create"),c=e("./_global"),h=c.process,d=c.setImmediate,f=c.clearImmediate,p=c.MessageChannel,m=0,g={},_="onreadystatechange",y=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},v=function(e){y.call(e.data)};d&&f||(d=function(e){var t=[],r=1;while(arguments.length>r)t.push(arguments[r++]);return g[++m]=function(){o("function"==typeof e?e:Function(e),t)},n(m),m},f=function(e){delete g[e]},"process"==e("./_cof")(h)?n=function(e){h.nextTick(s(y,e,1))}:p?(a=new p,i=a.port2,a.port1.onmessage=v,n=s(i.postMessage,i,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(e){c.postMessage(e+"","*")},c.addEventListener("message",v,!1)):n=_ in u("script")?function(e){l.appendChild(u("script"))[_]=function(){l.removeChild(this),y.call(e)}}:function(e){setTimeout(s(y,e,1),0)}),t.exports={set:d,clear:f}},{"./_cof":100,"./_ctx":102,"./_dom-create":104,"./_global":107,"./_html":109,"./_invoke":111}],116:[function(e,t,r){var n=e("./_is-object");t.exports=function(e,t){if(!n(e))return e;var r,a;if(t&&"function"==typeof(r=e.toString)&&!n(a=r.call(e)))return a;if("function"==typeof(r=e.valueOf)&&!n(a=r.call(e)))return a;if(!t&&"function"==typeof(r=e.toString)&&!n(a=r.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":112}],117:[function(e,t,r){var n=e("./_export"),a=e("./_task");n(n.G+n.B,{setImmediate:a.set,clearImmediate:a.clear})},{"./_export":105,"./_task":115}],118:[function(e,t,r){(function(e){function t(e){return Array.isArray?Array.isArray(e):"[object Array]"===g(e)}function n(e){return"boolean"===typeof e}function a(e){return null===e}function i(e){return null==e}function s(e){return"number"===typeof e}function o(e){return"string"===typeof e}function l(e){return"symbol"===typeof e}function u(e){return void 0===e}function c(e){return"[object RegExp]"===g(e)}function h(e){return"object"===typeof e&&null!==e}function d(e){return"[object Date]"===g(e)}function f(e){return"[object Error]"===g(e)||e instanceof Error}function p(e){return"function"===typeof e}function m(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function g(e){return Object.prototype.toString.call(e)}r.isArray=t,r.isBoolean=n,r.isNull=a,r.isNullOrUndefined=i,r.isNumber=s,r.isString=o,r.isSymbol=l,r.isUndefined=u,r.isRegExp=c,r.isObject=h,r.isDate=d,r.isError=f,r.isFunction=p,r.isPrimitive=m,r.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":139}],119:[function(t,r,n){(function(){"use strict";function a(e,t,r){function n(e,t,r,n){e=""+e,r=r||" ";var a=e.length;while(ar)if(n){var s=e.length;i=e.substring(s-r,s)}else i=e.substring(0,r)}else i=a(""+i,r);return i}function i(e,r,n){if(!t.isArray(e)||"function"!==typeof r)throw new TypeError;for(var a=Object(e),i=a.length>>>0,s=0;s0?5:-5,n=t>0?(t-5)/5:(t+5)/5),6===i&&t>0?s=1:0===i&&t<0&&(s=-1);var o=i+r;return 0!==o&&6!==o||(s=t>0?2:-2),[7*n+r+s,"Date",!1]},year:function(e,t){return[t,"FullYear",!0]},week:function(e,t){return[7*t,"Date",!1]},quarter:function(e,t){return[3*t,"Month",!0]},month:function(e,t){return[t,"Month",!0]}};function n(e,t,n){return e=e.replace(/s$/,""),r.hasOwnProperty(e)?r[e](t,n):[n,"UTC"+e.charAt(0).toUpperCase()+e.substring(1)+"s",!1]}var a={quarter:function(t,r,n){var a=r.getFullYear()-t.getFullYear(),i=t[n?"getUTCMonth":"getMonth"](),s=r[n?"getUTCMonth":"getMonth"](),o=e(i/3)+1,l=e(s/3)+1;return l+=4*a,l-o},weekday:function(e,t,r){var n,a=i("day",e,t,r),s=a%7;if(0===s)a=5*i("week",e,t,r);else{var o=0,l=e[r?"getUTCDay":"getDay"](),u=t[r?"getUTCDay":"getDay"]();n=parseInt(a/7,10);var c=new Date(+e);c.setDate(c[r?"getUTCDate":"getDate"]()+7*n);var h=c[r?"getUTCDay":"getDay"]();a>0?6===l||6===u?o=-1:0===l?o=0:(0===u||h+s>5)&&(o=-2):a<0&&(6===l?o=0:0===l||0===u?o=1:(6===u||h+s<0)&&(o=2)),a+=o,a-=2*n}return a},year:function(e,t){return t.getFullYear()-e.getFullYear()},month:function(e,t,r){var n=e[r?"getUTCMonth":"getMonth"](),a=t[r?"getUTCMonth":"getMonth"]();return a-n+12*(t.getFullYear()-e.getFullYear())},week:function(e,r,n){return t(i("day",e,r,n)/7)},day:function(e,t){return 1.1574074074074074e-8*(t.getTime()-e.getTime())},hour:function(e,t){return 2.7777777777777776e-7*(t.getTime()-e.getTime())},minute:function(e,t){return 16666666666666667e-21*(t.getTime()-e.getTime())},second:function(e,t){return.001*(t.getTime()-e.getTime())},millisecond:function(e,t){return t.getTime()-e.getTime()}};function i(e,r,n,i){return e=e.replace(/s$/,""),t(a[e](r,n,i))}return{addTransform:n,differenceTransform:i}}(),o=s.addTransform,l=s.differenceTransform,u=Math.floor,c=Math.round,h=Math.min,d=Math.pow,f=Math.ceil,p=Math.abs,m=["January","February","March","April","May","June","July","August","September","October","November","December"],g=["Jan.","Feb.","Mar.","Apr.","May.","Jun.","Jul.","Aug.","Sep.","Oct.","Nov.","Dec."],_=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],y=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],v=["Before Christ","Anno Domini"],b=["BC","AD"];function w(e,t){return S.difference(new Date(e.getFullYear(),0,1,e.getHours()),e,null,t)+1}function x(e,t,r){t=t||0;var n=e[r?"getUTCFullYear":"getFullYear"](),a=new Date(n,0,1).getDay(),i=(a-t+7)%7,s=u((w(e)+i-1)/7);return a===t&&s++,s}function k(e){var t=e.toString(),r="",n=t.indexOf("(");return n>-1&&(r=t.substring(++n,t.indexOf(")"))),r}function T(e,t){return e.replace(/([a-z])\1*/gi,(function(e){var r,n=e.charAt(0),a=e.length,i="0?",s="0{0,2}";if("y"===n)r="\\d{2,4}";else if("M"===n)r=a>2?"\\S+?":"1[0-2]|"+i+"[1-9]";else if("D"===n)r="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+s+"[1-9][0-9]|"+i+"[1-9]";else if("d"===n)r="3[01]|[12]\\d|"+i+"[1-9]";else if("w"===n)r="[1-4][0-9]|5[0-3]|"+i+"[1-9]";else if("E"===n)r="\\S+";else if("h"===n)r="1[0-2]|"+i+"[1-9]";else if("K"===n)r="1[01]|"+i+"\\d";else if("H"===n)r="1\\d|2[0-3]|"+i+"\\d";else if("k"===n)r="1\\d|2[0-4]|"+i+"[1-9]";else if("m"===n||"s"===n)r="[0-5]\\d";else if("S"===n)r="\\d{"+a+"}";else if("a"===n){var o="AM",l="PM";r=o+"|"+l,o!==o.toLowerCase()&&(r+="|"+o.toLowerCase()),l!==l.toLowerCase()&&(r+="|"+l.toLowerCase()),r=r.replace(/\./g,"\\.")}else r="v"===n||"z"===n||"Z"===n||"G"===n||"q"===n||"Q"===n?".*":" "===n?"\\s*":n+"*";return t&&t.push(e),"("+r+")"})).replace(/[\xa0 ]/g,"[\\s\\xa0]")}var S={getDaysInMonth:function(e){var t=e.getMonth(),r=[31,28,31,30,31,30,31,31,30,31,30,31];return 1===t&&S.isLeapYear(e)?29:r[t]},isLeapYear:function(e,t){var r=e[t?"getUTCFullYear":"getFullYear"]();return r%400===0||r%4===0&&r%100!==0},isWeekend:function(e,t){var r=(e||new Date)[t?"getUTCDay":"getDay"]();return 0===r||6===r},getTimezoneName:k,compare:function(e,t,r){return e=new Date(+e),t=new Date(+(t||new Date)),"date"===r?(e.setHours(0,0,0,0),t.setHours(0,0,0,0)):"time"===r&&(e.setFullYear(0,0,0),t.setFullYear(0,0,0)),e>t?1:e1&&(2===D?C=a(""+C,2,!0):O=!0);else if("Q"===A.toUpperCase())C=f((s+1)/3),O=!0;else if("M"===A)D<3?(C=s+1,O=!0):C=(3===D?g:m)[s];else if("w"===A)C=x(e,0,r),O=!0;else if("D"===A)C=w(e,r),O=!0;else if("E"===A)D<3?(C=o+1,O=!0):C=(-3===D?y:_)[o];else if("a"===A)C=h<12?"AM":"PM";else if("h"===A)C=h%12||12,O=!0;else if("K"===A)C=h%12,O=!0;else if("k"===A)C=h||24,O=!0;else if("S"===A)C=c(E*d(10,D-3)),O=!0;else if("z"===A||"v"===A||"Z"===A){if(C=k(e),"z"!==A&&"v"!==A||C||(D=4),!C||"Z"===A){var N=e.getTimezoneOffset(),R=[N>=0?"-":"+",n(u(p(N)/60),2,"0"),n(p(N)%60,2,"0")];4===D&&(R.splice(0,0,"GMT"),R.splice(3,0,":")),C=R.join("")}}else C=t;else C=""+T,O=!0;else C=""+h,O=!0;return O&&(C=n(C,D,"0")),C}))}},E={};function C(e){E[e+"sFromNow"]=function(t){return S.add(new Date,e,t)},E[e+"sAgo"]=function(t){return S.add(new Date,e,-t)}}for(var O=["year","month","day","hour","minute","second"],A=0,D=O.length;A2){var f,p,v=m;3===i&&(v=g),e=e.replace(".","").toLowerCase();var b=!1;for(f=0,p=v.length;fx.length)return!1}else e=k}else if("D"===s||"d"===s)"D"===s&&(l[1]=0),l[2]=e;else if("a"===s){var T="am",S="pm",E=/\./g;e=e.replace(E,"").toLowerCase(),u=e===S?"p":e===T?"a":""}else"k"===s||"h"===s||"H"===s||"K"===s?("k"===s&&24===+e&&(e=0),l[3]=e):"m"===s?l[4]=e:"s"===s?l[5]=e:"S"===s&&(l[6]=e)}return!0}));if(c){var d=+l[3];"p"===u&&d<12?l[3]=d+12:"a"===u&&12===d&&(l[3]=0);var f=new Date(l[0],l[1],l[2],l[3],l[4],l[5],l[6]),p=-1!==r.indexOf(n,"d"),v=-1!==r.indexOf(n,"M"),b=l[1],w=l[2],x=f.getMonth(),k=f.getDate();return v&&x>b||p&&k>w?null:f}return null}},R=e.define(t.isDate,S).define(t.isString,N).define(t.isNumber,E);for(A in S)S.hasOwnProperty(A)&&(R[A]=S[A]);for(A in N)N.hasOwnProperty(A)&&(R[A]=N[A]);for(A in E)E.hasOwnProperty(A)&&(R[A]=E[A]);return R}"undefined"!==typeof n?"undefined"!==typeof r&&r.exports&&(r.exports=a(t("extended"),t("is-extended"),t("array-extended"))):"function"===typeof e&&e.amd?e(["extended","is-extended","array-extended"],(function(e,t,r){return a(e,t,r)})):this.dateExtended=a(this.extended,this.isExtended,this.arrayExtended)}).call(this)},{"array-extended":92,extended:124,"is-extended":140}],120:[function(t,r,n){(function(){function t(){var e,t=Array.prototype.slice,r=0,n=new Function,a=/(super)/g;function i(e,r){return r=r||0,t.call(e,r)}function s(e){return"[object Array]"===Object.prototype.toString.call(e)}function o(e){var t;return null!==e&&e!==t&&"object"===typeof e}function l(e){var t=o(e);return t&&e.constructor===Object}var u=function(e){return"[object Arguments]"===Object.prototype.toString.call(e)};function c(e,t){if(e&&e.length)for(var r=0,n=e.length;ro){e=e?u(e)||s(e)?e:[e]:[];var l,c=i.name,h=i.f;do{if(l=n[o][c],"function"===typeof l&&(l=l._f||l)!==h)return i.pos=1+o,l.apply(this,e)}while(a>++o)}return null}function f(){var e=this.__meta,t=e.supers,r=t.length,n=e.superMeta,a=n.pos;if(r>a){var i,s=n.name,o=n.f;do{if(i=t[a][s],"function"===typeof i&&(i=i._f||i)!==o)return n.pos=1+a,i.bind(this)}while(r>++a)}return null}function p(e){var t=this.__getters__;return t.hasOwnProperty(e)?t[e].apply(this):this[e]}function m(e,t){var r=this.__setters__;if(!l(e))return r.hasOwnProperty(e)?r[e].apply(this,i(arguments,1)):this[e]=t;for(var n in e){var a=e[n];r.hasOwnProperty(n)?r[e].call(this,a):this[n]=a}}function g(){var e=this.__meta||{},t=e.supers,r=t.length,n=e.superMeta,a=n.pos;if(r>a){var i,s=n.name,o=n.f;do{if(i=t[a][s],"function"===typeof i&&(i=i._f||i)!==o)return n.pos=1+a,i.apply(this,arguments)}while(r>++a)}return null}function _(e,t){if(e.toString().match(a)){var r=function(){var r,n=this.__meta||{},a=n.superMeta;switch(n.superMeta={f:e,pos:0,name:t},arguments.length){case 0:r=e.call(this);break;case 1:r=e.call(this,arguments[0]);break;case 2:r=e.call(this,arguments[0],arguments[1]);break;case 3:r=e.call(this,arguments[0],arguments[1],arguments[2]);break;default:r=e.apply(this,arguments)}return n.superMeta=a,r};return r._f=e,r}return e._f=e,e}function y(e,t){var r=t.setters||{},n=e.__setters__,a=e.__getters__;for(var i in r)n.hasOwnProperty(i)||(n[i]=r[i]);for(i in r=t.getters||{},r)a.hasOwnProperty(i)||(a[i]=r[i]);for(var s in t)if("getters"!==s&&"setters"!==s){var o=t[s];"function"===typeof o?e.hasOwnProperty(s)||(e[s]=_(g,s)):e[s]=o}}function v(){for(var e=i(arguments),t=e.length,r=this.prototype,n=r.__meta,a=this.__meta,s=r.__meta.bases,o=s.slice(),l=a.supers||[],u=n.supers||[],c=0;c=0)b(s[o--],t,n);t.unshift(e)}}function w(e,t){var r=t.setters,n=e.__setters__,a=e.__getters__;if(r)for(var i in r)n[i]=r[i];if(r=t.getters||{},r)for(i in r)a[i]=r[i];for(i in t)if("getters"!=i&&"setters"!=i){var s=t[i];if("function"===typeof s){var o=s.__meta||{};o.isConstructor?e[i]=s:e[i]=_(s,i)}else e[i]=s}}function x(e,t){return e&&t?e[t]=this:e.exports=e=this,this}function k(e){return E(this,e)}function T(e){n.prototype=e.prototype;var t=new n;return n.prototype=null,t}function S(t,n,a){var i={},o=[],u="declare"+ ++r,c=[],p=[],m=[],y=[],x={supers:m,unique:u,bases:c,superMeta:{f:null,pos:0,name:null}},k={supers:y,unique:u,bases:p,isConstructor:!0,superMeta:{f:null,pos:0,name:null}};if(l(n)&&!a&&(a=n,n=e),"function"===typeof n||s(n)?(o=s(n)?n:[n],n=o.shift(),t.__meta=k,i=T(n),i.__meta=x,i.__getters__=h({},i.__getters__||{}),i.__setters__=h({},i.__setters__||{}),t.__getters__=h({},t.__getters__||{}),t.__setters__=h({},t.__setters__||{}),b(n.prototype,m,c),b(n,y,p)):(t.__meta=k,i.__meta=x,i.__getters__=i.__getters__||{},i.__setters__=i.__setters__||{},t.__getters__=t.__getters__||{},t.__setters__=t.__setters__||{}),t.prototype=i,a){var S=x.proto=a.instance||{},E=k.proto=a.static||{};E.init=E.init||g,w(i,S),w(t,E),S.hasOwnProperty("constructor")?i.constructor=_(S.constructor,"constructor"):i.constructor=S.constructor=_(g,"constructor")}else x.proto={},k.proto={},t.init=_(g,"init"),i.constructor=_(g,"constructor");o.length&&v.apply(t,o),n&&h(t,h(h({},n),t)),i._super=t._super=d,i._getSuper=t._getSuper=f,i._static=t}function E(e,t){function r(){switch(arguments.length){case 0:this.constructor.call(this);break;case 1:this.constructor.call(this,arguments[0]);break;case 2:this.constructor.call(this,arguments[0],arguments[1]);break;case 3:this.constructor.call(this,arguments[0],arguments[1],arguments[2]);break;default:this.constructor.apply(this,arguments)}}return S(r,e,t),r.init()||r}function C(e,t){var r;function n(){return r||(this.constructor.apply(this,arguments),r=this),r}return S(n,e,t),n.init()||n}return u(arguments)||(u=function(e){return!(!e||!e.hasOwnProperty("callee"))}),e=E({instance:{get:p,set:m},static:{get:p,set:m,mixin:v,extend:k,as:x}}),E.singleton=C,E}"undefined"!==typeof n?"undefined"!==typeof r&&r.exports&&(r.exports=t()):"function"===typeof e&&e.amd?e(t):this.declare=t()})()},{}],121:[function(e,t,r){t.exports=e("./declare.js")},{"./declare.js":120}],122:[function(r,n,a){(function(t,a){ -/*! - * @overview es6-promise - a tiny implementation of Promises/A+. - * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) - * @license Licensed under MIT license - * See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE - * @version 3.0.2 - */ -(function(){"use strict";function i(e){return"function"===typeof e||"object"===typeof e&&null!==e}function s(e){return"function"===typeof e}function o(e){return"object"===typeof e&&null!==e}var l;l=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var u,c,h=l,d=0,f=function(e,t){C[d]=e,C[d+1]=t,d+=2,2===d&&(c?c(O):E())};function p(e){c=e}function m(e){f=e}var g="undefined"!==typeof window?window:void 0,_=g||{},y=_.MutationObserver||_.WebKitMutationObserver,v="undefined"!==typeof t&&"[object process]"==={}.toString.call(t),b="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel;function w(){return function(){t.nextTick(O)}}function x(){return function(){u(O)}}function k(){var e=0,t=new y(O),r=document.createTextNode("");return t.observe(r,{characterData:!0}),function(){r.data=e=++e%2}}function T(){var e=new MessageChannel;return e.port1.onmessage=O,function(){e.port2.postMessage(0)}}function S(){return function(){setTimeout(O,1)}}var E,C=new Array(1e3);function O(){for(var e=0;e0&&o.length>i)){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,"object"===typeof console&&console.warn&&console.warn("%s: %s",l.name,l.message)}}else o=s[t]=r,++e._eventsCount;return e}function _(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t1&&(t=arguments[1]),t instanceof Error)throw t;var l=new Error('Unhandled "error" event. ('+t+")");throw l.context=t,l}if(r=s[e],!r)return!1;var u="function"===typeof r;switch(n=arguments.length,n){case 1:h(r,u,this);break;case 2:d(r,u,this,arguments[1]);break;case 3:f(r,u,this,arguments[1],arguments[2]);break;case 4:p(r,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(a=new Array(n-1),i=1;i=0;s--)if(r[s]===t||r[s].listener===t){o=r[s].listener,i=s;break}if(i<0)return this;0===i?r.shift():w(r,i),1===r.length&&(a[e]=r[0]),a.removeListener&&this.emit("removeListener",e,o||t)}return this},s.prototype.removeAllListeners=function(e){var t,r,i;if(r=this._events,!r)return this;if(!r.removeListener)return 0===arguments.length?(this._events=n(null),this._eventsCount=0):r[e]&&(0===--this._eventsCount?this._events=n(null):delete r[e]),this;if(0===arguments.length){var s,o=a(r);for(i=0;i=0;i--)this.removeListener(e,t[i]);return this},s.prototype.listeners=function(e){return v(this,e,!0)},s.prototype.rawListeners=function(e){return v(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):b.call(e,t)},s.prototype.listenerCount=b,s.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],124:[function(t,r,n){(function(){"use strict";function a(e){(function(){function e(e,t){var r,n;for(r in t)t.hasOwnProperty(r)&&(n=t[r],r in e&&e[r]===n||(e[r]=n));return e}})();function t(){var t=e.define();return t.expose({register:function(e,r){r||(r=e,e=null);var n=typeof r;if(e)t[e]=r;else if(r&&"function"===n)t.extend(r);else{if("object"!==n)throw new TypeError("extended.register must be called with an extender function");t.expose(r)}return t},define:function(){return e.define.apply(e,arguments)}}),t}function r(){return t()}return r.define=function(){return e.define.apply(e,arguments)},r}"undefined"!==typeof n?"undefined"!==typeof r&&r.exports&&(r.exports=a(t("extender"))):"function"===typeof e&&e.amd?e(["extender"],(function(e){return a(e)})):this.extended=a(this.extender)}).call(this)},{extender:126}],125:[function(t,r,n){(function(){function a(e){var t,r=Array.prototype.slice;function n(e,t){if(e&&e.length)for(var r=0,n=e.length;r=c?r=null:r++;else if(s&&!g){if(!a)throw new Error("Parse Error: expected: '"+d+"' got: '"+g+"'. at '"+e.substr(r).replace(/[r\n]/g,"\\n'"));r=null}else{if(!s&&g&&-1===g.search(p))throw new Error("Parse Error: expected: '"+d+"' got: '"+g+"'. at '"+e.substr(r,10).replace(/[\r\n]/g,"\\n'"));!a||g&&_.test(g)||(r=null)}return null!==r&&t.push(v(o)),r}function w(e,t,r){var n=e.substr(t).search(_);return n=-1===n?r?null:e.length+1:t+n+1,n}function x(t,r,a,i){var s=t.substr(a),o=s.search(p);if(-1===o){if(!f.test(s))throw new Error("Parse Error: delimiter '"+n+"' not found at '"+s.replace(/\n/g,"\\n'"));o=s.length}var l=s.charAt(o);if(-1!==l.search(n))if(i&&a+(o+1)>=t.length)a=null;else{r.push(v(s.substr(0,o))),a+=o+1;var u=t.charAt(a);!e.strictColumnHandling&&(_.test(u)||a>=t.length)&&r.push(""),e.strictColumnHandling||!y.test(u)||i||r.push(u)}else _.test(l)?(r.push(v(s.substr(0,o))),a+=o):i?a=null:(r.push(v(s.substr(0,o))),a+=o+1);return a}function k(e,t){var r,n,a,i=e.substr(t);return-1!==(a=i.search(g))&&(n=i.match(g)[1].length,r=e.substr(t+a,n),t+=a+n-1),{token:r,cursor:t}}return a(e,"comment")&&(t=e.comment,r=!0),function(e,n){var a,s,o,l=0,u=e.length,c=[],h=[],f=0;while(l1)throw new Error("delimiter option must be one character long");t=n.escape(t)}else t=u;return e.delimiter=t,this.parser=c(e),this._headers=e.headers,this._renameHeaders=e.renameHeaders,this._ignoreEmpty=e.ignoreEmpty,this._discardUnmappedColumns=e.discardUnmappedColumns,this._strictColumnHandling=e.strictColumnHandling,this.__objectMode=e.objectMode,this.__buffered=[],this}s.inherits(f,o.Transform);var p=f.prototype.on,m=f.prototype.emit;n(f).extend({__pausedDone:null,__endEmitted:!1,__emittedData:!1,__handleLine:function(e,t,r,a){var i=this._ignoreEmpty,s=this;return n.isBoolean(i)&&i&&(!e||l.test(e.join("")))?a(null,null):r?a(null,e):void this.__transform(e,(function(e,r){e?a(e):s.__validate(r,(function(e,n,i){e?a(e):n?a(null,r):(s.emit("data-invalid",r,t,i),a(null,null))}))}))},__processRows:function(e,t,r){var a,i=this;n.asyncEach(e,(function(e,t){e&&i.__handleLine(e,a=++i._rowCount,!1,(function(e,r){e?t(e):(r?i.isStreamPaused()?i.__buffered.push([r,a]):i.__emitRecord(r,a):a=--i._rowCount,t())}))}),(function(e){e?r(e):r(null,t.line)}))},__processHeaders:function(e,t){var r=this._headers,i=this._renameHeaders,s=this._discardUnmappedColumns,o=this._strictColumnHandling,l=this;function u(e,r){if(e)t(e);else if(n.isArray(r)){var i=r.length,u=l.__transform;l.__transform=function(e,t){var n,c={},h=-1;if(e.length>i){if(!s)return o?(l.emit("data-invalid",e),u(null,t)):(l.emit("error",new Error("Unexpected Error: column header mismatch expected: "+i+" columns got: "+e.length)),u(null,t));e.splice(i)}else if(o&&e.length1?(a=this.__removeBOM(a),this._parse(a,!0,(function(e,t){e?r(e):(i.lines=t,i.isStreamPaused()?i.__pausedDone=r:r())}))):(this.lines=a,this.isStreamPaused()?this.__pausedDone=r:r())},__doFlush:function(e){try{e()}catch(t){e(t)}},_flush:function(e){var t=this;this.lines?this._parse(this.lines,!1,(function(r){r?e(r):t.isStreamPaused()?t.__pausedDone=function(){t.__doFlush(e)}:t.__doFlush(e)})):this.isStreamPaused()?this.__pausedDone=function(){t.__doFlush(e)}:this.__doFlush(e)},__validate:function(e,t){return t(null,!0)},__transform:function(e,t){return t(null,e)},__flushPausedBuffer:function(){var e=this.__buffered,t=e.length;if(t){var r;while(e.length)if(r=e.shift(),this.__emitRecord(r[0],r[1]),this.isStreamPaused())return;e.length=0}if(this.__pausedDone){var n=this.__pausedDone;this.__pausedDone=null,n()}},isStreamPaused:function(){return this.__paused},emit:function(e){"end"===e?this.__endEmitted||(this.__endEmitted=!0,i(m,["end",++this._rowCount],this)):(d||("pause"===e?this.__paused=!0:"resume"===e&&(this.__paused=!1,this.__flushPausedBuffer())),i(m,arguments,this))},on:function(e){return"data"!==e&&"readable"!==e||(this._emitData=!0),i(p,arguments,this),this},validate:function(e){return n.isFunction(e)||this.emit("error",new TypeError("fast-csv.Parser#validate requires a function")),2===e.length?this.__validate=e:this.__validate=function(t,r){return r(null,e(t))},this},transform:function(e){return n.isFunction(e)||this.emit("error",new TypeError("fast-csv.Parser#transform requires a function")),2===e.length?this.__transform=e:this.__transform=function(t,r){return r(null,e(t))},this}}),t.exports=f}).call(this,e("_process"))},{"../extended":128,"./parser":134,_process:198,fs:95,stream:216,string_decoder:218,util:222}],136:[function(e,t,r){r.read=function(e,t,r,n,a){var i,s,o=8*a-n-1,l=(1<>1,c=-7,h=r?a-1:0,d=r?-1:1,f=e[t+h];for(h+=d,i=f&(1<<-c)-1,f>>=-c,c+=o;c>0;i=256*i+e[t+h],h+=d,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=n;c>0;s=256*s+e[t+h],h+=d,c-=8);if(0===i)i=1-u;else{if(i===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),i-=u}return(f?-1:1)*s*Math.pow(2,i-n)},r.write=function(e,t,r,n,a,i){var s,o,l,u=8*i-a-1,c=(1<>1,d=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:i-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),t+=s+h>=1?d/l:d*Math.pow(2,1-h),t*l>=2&&(s++,l/=2),s+h>=c?(o=0,s=c):s+h>=1?(o=(t*l-1)*Math.pow(2,a),s+=h):(o=t*Math.pow(2,h-1)*Math.pow(2,a),s=0));a>=8;e[r+f]=255&o,f+=p,o/=256,a-=8);for(s=s<0;e[r+f]=255&s,f+=p,s/=256,u-=8);e[r+f-p]|=128*m}},{}],137:[function(e,r,n){(function(e){"use strict";var t,n,a=e.MutationObserver||e.WebKitMutationObserver;if(a){var i=0,s=new a(c),o=e.document.createTextNode("");s.observe(o,{characterData:!0}),t=function(){o.data=i=++i%2}}else if(e.setImmediate||"undefined"===typeof e.MessageChannel)t="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)};else{var l=new e.MessageChannel;l.port1.onmessage=c,t=function(){l.port2.postMessage(0)}}var u=[];function c(){var e,t;n=!0;var r=u.length;while(r){t=u,u=[],e=-1;while(++e - * @license MIT - */ -t.exports=function(e){return null!=e&&(n(e)||a(e)||!!e._isBuffer)}},{}],140:[function(t,r,n){(function(a){(function(){"use strict";function i(e){var t=Array.prototype.slice,r=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function i(e,t){var r=-1,n=0,a=e.length,i=[];t=t||0,r+=t;while(++r=0;a--)if(i[a]!==l[a])return!1;for(a=i.length-1;a>=0;a--)if(n=i[a],!o(e[n],r[n]))return!1}catch(u){return!1}return!0}var u=function(e){return"[object Function]"===n.call(e)};function c(e){return null!==e&&"object"===typeof e}function h(e){var t=c(e);return t&&e.constructor===Object&&!e.nodeType&&!e.setInterval}function d(e){return y(e)?0===e.length:c(e)?0===s(e).length:!k(e)&&!w(e)||0===e.length}function f(e){return!0===e||!1===e||"[object Boolean]"===n.call(e)}function p(e){return"undefined"===typeof e}function m(e){return!p(e)}function g(e){return p(e)||_(e)}function _(e){return null===e}"undefined"===typeof window||u(window.alert)||function(e){u=function(t){return"[object Function]"===n.call(t)||t===e}}(window.alert);var y=function(e){return"[object Arguments]"===n.call(e)};function v(e,t){return!!u(t)&&e instanceof t}function b(e){return"[object RegExp]"===n.call(e)}y(arguments)||(y=function(e){return!(!e||!r.call(e,"callee"))});var w=Array.isArray||function(e){return"[object Array]"===n.call(e)};function x(e){return"[object Date]"===n.call(e)}function k(e){return"[object String]"===n.call(e)}function T(e){return"[object Number]"===n.call(e)}function S(e){return!0===e}function E(e){return!1===e}function C(e){return!_(e)}function O(e,t){return e==t}function A(e,t){return e!=t}function D(e,t){return e===t}function N(e,t){return e!==t}function R(e,t){if(w(t)&&Array.prototype.indexOf||k(t))return t.indexOf(e)>-1;if(w(t))for(var r=0,n=t.length;rt}function L(e,t){return e>=t}function B(e,t){return k(t)?null!==(""+e).match(t):!!b(t)&&t.test(e)}function U(e,t){return!B(e,t)}function j(e,t){return R(t,e)}function z(e,t){return!R(t,e)}function H(e,t,r){return!!(w(e)&&e.length>r)&&O(e[r],t)}function W(e,t,r){return!!w(e)&&!O(e[r],t)}function V(e,t){return r.call(e,t)}function Y(e,t){return!V(e,t)}function G(e,t){return!!V(e,"length")&&e.length===t}function Z(e,t){return!!V(e,"length")&&e.length!==t}var X={isFunction:u,isObject:c,isEmpty:d,isHash:h,isNumber:T,isString:k,isDate:x,isArray:w,isBoolean:f,isUndefined:p,isDefined:m,isUndefinedOrNull:g,isNull:_,isArguments:y,instanceOf:v,isRegExp:b,deepEqual:o,isTrue:S,isFalse:E,isNotNull:C,isEq:O,isNeq:A,isSeq:D,isSneq:N,isIn:R,isNotIn:I,isLt:M,isLte:P,isGt:F,isGte:L,isLike:B,isNotLike:U,contains:j,notContains:z,has:V,notHas:Y,isLength:G,isNotLength:Z,containsAt:H,notContainsAt:W},$={constructor:function(){this._testers=[]},noWrap:{tester:function(){var e=this._testers;return function(t){for(var r=!1,n=0,a=e.length;n1&&(r[1]||r[0]))return r[1];if(!n&&t)return t.apply(this,a)}}}};function q(e){$[e]=function(){this._testers.push(X[e])}}function K(e){J[e]=function(){var t,r=i(arguments,1),n=X[e],a=!0;if(r.length<=n.length-1)throw new TypeError("A handler must be defined when calling using switch");if(t=r.pop(),f(t)&&(a=t,t=r.pop()),!u(t))throw new TypeError("handler must be defined");this._cases.push((function(e){return n.apply(X,e.concat(r))?[a,t.apply(this,e)]:[!1]}))}}for(var Q in X)r.call(X,Q)&&(K(Q),q(Q));var ee=e.define(X).expose(X);return ee.tester=e.define($),ee.switcher=e.define(J),ee}"undefined"!==typeof n?"undefined"!==typeof r&&r.exports&&(r.exports=i(t("extended"))):"function"===typeof e&&e.amd?e(["extended"],(function(e){return i(e)})):this.isExtended=i(this.extended)}).call(this)}).call(this,t("buffer").Buffer)},{buffer:96,extended:124}],141:[function(e,t,r){var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}],142:[function(e,t,r){"use strict";var n=e("./utils"),a=e("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){var t,r,a,s,o,l,u,c=[],h=0,d=e.length,f=d,p="string"!==n.getTypeOf(e);while(h>2,o=(3&t)<<4|r>>4,l=f>1?(15&r)<<2|a>>6:64,u=f>2?63&a:64,c.push(i.charAt(s)+i.charAt(o)+i.charAt(l)+i.charAt(u));return c.join("")},r.decode=function(e){var t,r,n,s,o,l,u,c=0,h=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");var f,p=3*e.length/4;if(e.charAt(e.length-1)===i.charAt(64)&&p--,e.charAt(e.length-2)===i.charAt(64)&&p--,p%1!==0)throw new Error("Invalid base64 input, bad content length.");f=a.uint8array?new Uint8Array(0|p):new Array(0|p);while(c>4,r=(15&o)<<4|l>>2,n=(3&l)<<6|u,f[h++]=t,64!==l&&(f[h++]=r),64!==u&&(f[h++]=n);return f}},{"./support":171,"./utils":173}],143:[function(e,t,r){"use strict";var n=e("./external"),a=e("./stream/DataWorker"),i=e("./stream/DataLengthProbe"),s=e("./stream/Crc32Probe");i=e("./stream/DataLengthProbe");function o(e,t,r,n,a){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=a}o.prototype={getContentWorker:function(){var e=new a(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new i("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo["data_length"]!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new a(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(e,t,r){return e.pipe(new s).pipe(new i("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new i("compressedSize")).withStreamInfo("compression",t)},t.exports=o},{"./external":147,"./stream/Crc32Probe":166,"./stream/DataLengthProbe":167,"./stream/DataWorker":168}],144:[function(e,t,r){"use strict";var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(e){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":148,"./stream/GenericWorker":169}],145:[function(e,t,r){"use strict";var n=e("./utils");function a(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}var i=a();function s(e,t,r,n){var a=i,s=n+r;e^=-1;for(var o=n;o>>8^a[255&(e^t[o])];return-1^e}function o(e,t,r,n){var a=i,s=n+r;e^=-1;for(var o=n;o>>8^a[255&(e^t.charCodeAt(o))];return-1^e}t.exports=function(e,t){if("undefined"===typeof e||!e.length)return 0;var r="string"!==n.getTypeOf(e);return r?s(0|t,e,e.length,0):o(0|t,e,e.length,0)}},{"./utils":173}],146:[function(e,t,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],147:[function(e,t,r){"use strict";var n=null;n="undefined"!==typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:177}],148:[function(e,t,r){"use strict";var n="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array,a=e("pako"),i=e("./utils"),s=e("./stream/GenericWorker"),o=n?"uint8array":"array";function l(e,t){s.call(this,"FlateWorker/"+e),this._pako=new a[e]({raw:!0,level:t.level||-1}),this.meta={};var r=this;this._pako.onData=function(e){r.push({data:e,meta:r.meta})}}r.magic="\b\0",i.inherits(l,s),l.prototype.processChunk=function(e){this.meta=e.meta,this._pako.push(i.transformTo(o,e.data),!1)},l.prototype.flush=function(){s.prototype.flush.call(this),this._pako.push([],!0)},l.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},r.compressWorker=function(e){return new l("Deflate",e)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":169,"./utils":173,pako:181}],149:[function(e,t,r){"use strict";var n=e("../utils"),a=e("../stream/GenericWorker"),i=e("../utf8"),s=e("../crc32"),o=e("../signature"),l=function(e,t){var r,n="";for(r=0;r>>=8;return n},u=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16},c=function(e,t){return 63&(e||0)},h=function(e,t,r,a,h,d){var f,p,m=e["file"],g=e["compression"],_=d!==i.utf8encode,y=n.transformTo("string",d(m.name)),v=n.transformTo("string",i.utf8encode(m.name)),b=m.comment,w=n.transformTo("string",d(b)),x=n.transformTo("string",i.utf8encode(b)),k=v.length!==m.name.length,T=x.length!==b.length,S="",E="",C="",O=m.dir,A=m.date,D={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(D.crc32=e["crc32"],D.compressedSize=e["compressedSize"],D.uncompressedSize=e["uncompressedSize"]);var N=0;t&&(N|=8),_||!k&&!T||(N|=2048);var R=0,I=0;O&&(R|=16),"UNIX"===h?(I=798,R|=u(m.unixPermissions,O)):(I=20,R|=c(m.dosPermissions,O)),f=A.getUTCHours(),f<<=6,f|=A.getUTCMinutes(),f<<=5,f|=A.getUTCSeconds()/2,p=A.getUTCFullYear()-1980,p<<=4,p|=A.getUTCMonth()+1,p<<=5,p|=A.getUTCDate(),k&&(E=l(1,1)+l(s(y),4)+v,S+="up"+l(E.length,2)+E),T&&(C=l(1,1)+l(s(w),4)+x,S+="uc"+l(C.length,2)+C);var M="";M+="\n\0",M+=l(N,2),M+=g.magic,M+=l(f,2),M+=l(p,2),M+=l(D.crc32,4),M+=l(D.compressedSize,4),M+=l(D.uncompressedSize,4),M+=l(y.length,2),M+=l(S.length,2);var P=o.LOCAL_FILE_HEADER+M+y+S,F=o.CENTRAL_FILE_HEADER+l(I,2)+M+l(w.length,2)+"\0\0\0\0"+l(R,4)+l(a,4)+y+S+w;return{fileRecord:P,dirRecord:F}},d=function(e,t,r,a,i){var s="",u=n.transformTo("string",i(a));return s=o.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(e,2)+l(e,2)+l(t,4)+l(r,4)+l(u.length,2)+u,s},f=function(e){var t="";return t=o.DATA_DESCRIPTOR+l(e["crc32"],4)+l(e["compressedSize"],4)+l(e["uncompressedSize"],4),t};function p(e,t,r,n){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(p,a),p.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},p.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e["file"].name;var t=this.streamFiles&&!e["file"].dir;if(t){var r=h(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},p.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e["file"].dir,r=h(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:f(e),meta:{percent:100}});else{this.push({data:r.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null},p.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t0?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t="undefined"!==typeof t?t:o.createFolders,e=m(e),this.files[e]||f.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function _(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)this.files.hasOwnProperty(t)&&(n=this.files[t],r=t.slice(this.root.length,t.length),r&&t.slice(0,this.root.length)===this.root&&e(r,n))},filter:function(e){var t=[];return this.forEach((function(r,n){e(r,n)&&t.push(n)})),t},file:function(e,t,r){if(1===arguments.length){if(_(e)){var n=e;return this.filter((function(e,t){return!t.dir&&n.test(e)}))}var a=this.files[this.root+e];return a&&!a.dir?a:null}return e=this.root+e,f.call(this,e,t,r),this},folder:function(e){if(!e)return this;if(_(e))return this.filter((function(t,r){return r.dir&&e.test(t)}));var t=this.root+e,r=g.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter((function(t,r){return r.name.slice(0,e.length)===e})),n=0;n=0;--i)if(this.data[i]===t&&this.data[i+1]===r&&this.data[i+2]===n&&this.data[i+3]===a)return i-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),a=e.charCodeAt(3),i=this.readData(4);return t===i[0]&&r===i[1]&&n===i[2]&&a===i[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":173,"./DataReader":159}],159:[function(e,t,r){"use strict";var n=e("../utils");function a(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=a},{"../utils":173}],160:[function(e,t,r){"use strict";var n=e("./Uint8ArrayReader"),a=e("../utils");function i(e){n.call(this,e)}a.inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":173,"./Uint8ArrayReader":162}],161:[function(e,t,r){"use strict";var n=e("./DataReader"),a=e("../utils");function i(e){n.call(this,e)}a.inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":173,"./DataReader":159}],162:[function(e,t,r){"use strict";var n=e("./ArrayReader"),a=e("../utils");function i(e){n.call(this,e)}a.inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":173,"./ArrayReader":158}],163:[function(e,t,r){"use strict";var n=e("../utils"),a=e("../support"),i=e("./ArrayReader"),s=e("./StringReader"),o=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||a.uint8array?"nodebuffer"===t?new o(e):a.uint8array?new l(n.transformTo("uint8array",e)):new i(n.transformTo("array",e)):new s(e)}},{"../support":171,"../utils":173,"./ArrayReader":158,"./NodeBufferReader":160,"./StringReader":161,"./Uint8ArrayReader":162}],164:[function(e,t,r){"use strict";r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],165:[function(e,t,r){"use strict";var n=e("./GenericWorker"),a=e("../utils");function i(e){n.call(this,"ConvertWorker to "+e),this.destType=e}a.inherits(i,n),i.prototype.processChunk=function(e){this.push({data:a.transformTo(this.destType,e.data),meta:e.meta})},t.exports=i},{"../utils":173,"./GenericWorker":169}],166:[function(e,t,r){"use strict";var n=e("./GenericWorker"),a=e("../crc32"),i=e("../utils");function s(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}i.inherits(s,n),s.prototype.processChunk=function(e){this.streamInfo.crc32=a(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=s},{"../crc32":145,"../utils":173,"./GenericWorker":169}],167:[function(e,t,r){"use strict";var n=e("../utils"),a=e("./GenericWorker");function i(e){a.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(i,a),i.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}a.prototype.processChunk.call(this,e)},t.exports=i},{"../utils":173,"./GenericWorker":169}],168:[function(e,t,r){"use strict";var n=e("../utils"),a=e("./GenericWorker"),i=16384;function s(e){a.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}n.inherits(s,a),s.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=i,t=null,r=Math.min(this.max,this.index+e);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,r);break;case"uint8array":t=this.data.subarray(this.index,r);break;case"array":case"nodebuffer":t=this.data.slice(this.index,r);break}return this.index=r,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=s},{"../utils":173,"./GenericWorker":169}],169:[function(e,t,r){"use strict";function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r "+e:e}},t.exports=n},{}],170:[function(e,t,r){(function(r){"use strict";var n=e("../utils"),a=e("./ConvertWorker"),i=e("./GenericWorker"),s=e("../base64"),o=e("../support"),l=e("../external"),u=null;if(o.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(p){}function c(e,t,r,a){var i=null;switch(e){case"blob":return n.newBlob(r,a);case"base64":return i=h(t,r),s.encode(i);default:return i=h(t,r),n.transformTo(e,i)}}function h(e,t){var n,a=0,i=null,s=0;for(n=0;n=252?6:l>=248?5:l>=240?4:l>=224?3:l>=192?2:1;o[254]=o[254]=1;var u=function(e){var t,r,n,i,s,o=e.length,l=0;for(i=0;i>>6,t[s++]=128|63&r):r<65536?(t[s++]=224|r>>>12,t[s++]=128|r>>>6&63,t[s++]=128|63&r):(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63,t[s++]=128|r>>>6&63,t[s++]=128|63&r);return t},c=function(e,t){var r;t=t||e.length,t>e.length&&(t=e.length),r=t-1;while(r>=0&&128===(192&e[r]))r--;return r<0||0===r?t:r+o[e[r]]>t?r:t},h=function(e){var t,r,a,i,s=e.length,l=new Array(2*s);for(r=0,t=0;t4)l[r++]=65533,t+=i-1;else{a&=2===i?31:3===i?15:7;while(i>1&&t1?l[r++]=65533:a<65536?l[r++]=a:(a-=65536,l[r++]=55296|a>>10&1023,l[r++]=56320|1023&a)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),n.applyFromCharCode(l)};function d(){s.call(this,"utf-8 decode"),this.leftOver=null}function f(){s.call(this,"utf-8 encode")}r.utf8encode=function(e){return a.nodebuffer?i.newBuffer(e,"utf-8"):u(e)},r.utf8decode=function(e){return a.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):(e=n.transformTo(a.uint8array?"uint8array":"array",e),h(e))},n.inherits(d,s),d.prototype.processChunk=function(e){var t=n.transformTo(a.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var i=t;t=new Uint8Array(i.length+this.leftOver.length),t.set(this.leftOver,0),t.set(i,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var s=c(t),o=t;s!==t.length&&(a.uint8array?(o=t.subarray(0,s),this.leftOver=t.subarray(s,t.length)):(o=t.slice(0,s),this.leftOver=t.slice(s,t.length))),this.push({data:r.utf8decode(o),meta:e.meta})},d.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=d,n.inherits(f,s),f.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=f},{"./nodejsUtils":155,"./stream/GenericWorker":169,"./support":171,"./utils":173}],173:[function(e,t,r){"use strict";var n=e("./support"),a=e("./base64"),i=e("./nodejsUtils"),s=e("core-js/library/fn/set-immediate"),o=e("./external");function l(e){var t=null;return t=n.uint8array?new Uint8Array(e.length):new Array(e.length),c(e,t)}function u(e){return e}function c(e,t){for(var r=0;r1)try{return h.stringifyByChunk(e,n,t)}catch(i){t=Math.floor(t/2)}return h.stringifyByChar(e)}function f(e,t){for(var r=0;r1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e0)this.isSignature(r,i.CENTRAL_FILE_HEADER)||(this.reader.zero=s);else if(s<0)throw new Error("Corrupted zip: missing "+Math.abs(s)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":163,"./signature":164,"./support":171,"./utf8":172,"./utils":173,"./zipEntry":175}],175:[function(e,t,r){"use strict";var n=e("./reader/readerFor"),a=e("./utils"),i=e("./compressedObject"),s=e("./crc32"),o=e("./utf8"),l=e("./compressions"),u=e("./support"),c=0,h=3,d=function(e){for(var t in l)if(l.hasOwnProperty(t)&&l[t].magic===e)return l[t];return null};function f(e,t){this.options=e,this.loadOptions=t}f.prototype={isEncrypted:function(){return 1===(1&this.bitFlag)},useUTF8:function(){return 2048===(2048&this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(t=d(this.compressionMethod),null===t)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new i(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),e===c&&(this.dosPermissions=63&this.externalFileAttributes),e===h&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=n(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,r,n,a=e.index+this.extraFieldsLength;this.extraFields||(this.extraFields={});while(e.index>>0,n=0;n0)for(r=0;r0?"future":"past"];return I(r)?r(t):r.replace(/%s/i,t)}var $={};function J(e,t){var r=e.toLowerCase();$[r]=$[r+"s"]=$[t]=e}function q(e){return"string"===typeof e?$[e]||$[e.toLowerCase()]:void 0}function K(e){var t,r,n={};for(r in e)f(e,r)&&(t=q(r),t&&(n[t]=e[r]));return n}var Q={};function ee(e,t){Q[e]=t}function te(e){var t=[];for(var r in e)t.push({unit:r,priority:Q[r]});return t.sort((function(e,t){return e.priority-t.priority})),t}function re(e,t,r){var n=""+Math.abs(e),a=t-n.length,i=e>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var ne=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ae=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ie={},se={};function oe(e,t,r,n){var a=n;"string"===typeof n&&(a=function(){return this[n]()}),e&&(se[e]=a),t&&(se[t[0]]=function(){return re(a.apply(this,arguments),t[1],t[2])}),r&&(se[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function le(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function ue(e){var t,r,n=e.match(ne);for(t=0,r=n.length;t=0&&ae.test(e))e=e.replace(ae,n),ae.lastIndex=0,r-=1;return e}var de=/\d/,fe=/\d\d/,pe=/\d{3}/,me=/\d{4}/,ge=/[+-]?\d{6}/,_e=/\d\d?/,ye=/\d\d\d\d?/,ve=/\d\d\d\d\d\d?/,be=/\d{1,3}/,we=/\d{1,4}/,xe=/[+-]?\d{1,6}/,ke=/\d+/,Te=/[+-]?\d+/,Se=/Z|[+-]\d\d:?\d\d/gi,Ee=/Z|[+-]\d\d(?::?\d\d)?/gi,Ce=/[+-]?\d+(\.\d{1,3})?/,Oe=/[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,Ae={};function De(e,t,r){Ae[e]=I(t)?t:function(e,n){return e&&r?r:t}}function Ne(e,t){return f(Ae,e)?Ae[e](t._strict,t._locale):new RegExp(Re(e))}function Re(e){return Ie(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,r,n,a){return t||r||n||a})))}function Ie(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Me={};function Pe(e,t){var r,n=t;for("string"===typeof e&&(e=[e]),c(t)&&(n=function(e,r){r[t]=E(e)}),r=0;r68?1900:2e3)};var $e,Je=Ke("FullYear",!0);function qe(){return Xe(this.year())}function Ke(e,t){return function(r){return null!=r?(et(this,e,r),a.updateOffset(this,t),this):Qe(this,e)}}function Qe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function et(e,t,r){e.isValid()&&!isNaN(r)&&("FullYear"===t&&Xe(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),at(r,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](r))}function tt(e){return e=q(e),I(this[e])?this[e]():this}function rt(e,t){if("object"===typeof e){e=K(e);for(var r=te(e),n=0;n=0?(o=new Date(e+400,t,r,n,a,i,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,r,n,a,i,s),o}function wt(e){var t;if(e<100&&e>=0){var r=Array.prototype.slice.call(arguments);r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function xt(e,t,r){var n=7+t-r,a=(7+wt(e,0,n).getUTCDay()-t)%7;return-a+n-1}function kt(e,t,r,n,a){var i,s,o=(7+r-n)%7,l=xt(e,n,a),u=1+7*(t-1)+o+l;return u<=0?(i=e-1,s=Ze(i)+u):u>Ze(e)?(i=e+1,s=u-Ze(e)):(i=e,s=u),{year:i,dayOfYear:s}}function Tt(e,t,r){var n,a,i=xt(e.year(),t,r),s=Math.floor((e.dayOfYear()-i-1)/7)+1;return s<1?(a=e.year()-1,n=s+St(a,t,r)):s>St(e.year(),t,r)?(n=s-St(e.year(),t,r),a=e.year()+1):(a=e.year(),n=s),{week:n,year:a}}function St(e,t,r){var n=xt(e,t,r),a=xt(e+1,t,r);return(Ze(e)-n+a)/7}function Et(e){return Tt(e,this._week.dow,this._week.doy).week}oe("w",["ww",2],"wo","week"),oe("W",["WW",2],"Wo","isoWeek"),J("week","w"),J("isoWeek","W"),ee("week",5),ee("isoWeek",5),De("w",_e),De("ww",_e,fe),De("W",_e),De("WW",_e,fe),Fe(["w","ww","W","WW"],(function(e,t,r,n){t[n.substr(0,1)]=E(e)}));var Ct={dow:0,doy:6};function Ot(){return this._week.dow}function At(){return this._week.doy}function Dt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Nt(e){var t=Tt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Rt(e,t){return"string"!==typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"===typeof e?e:null):parseInt(e,10)}function It(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Mt(e,t){return e.slice(t,7).concat(e.slice(0,t))}oe("d",0,"do","day"),oe("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),oe("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),oe("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),oe("e",0,0,"weekday"),oe("E",0,0,"isoWeekday"),J("day","d"),J("weekday","e"),J("isoWeekday","E"),ee("day",11),ee("weekday",11),ee("isoWeekday",11),De("d",_e),De("e",_e),De("E",_e),De("dd",(function(e,t){return t.weekdaysMinRegex(e)})),De("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),De("dddd",(function(e,t){return t.weekdaysRegex(e)})),Fe(["dd","ddd","dddd"],(function(e,t,r,n){var a=r._locale.weekdaysParse(e,n,r._strict);null!=a?t.d=a:_(r).invalidWeekday=e})),Fe(["d","e","E"],(function(e,t,r,n){t[n]=E(e)}));var Pt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");function Ft(e,t){var r=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Mt(r,this._week.dow):e?r[e.day()]:r}var Lt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function Bt(e){return!0===e?Mt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}var Ut="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function jt(e){return!0===e?Mt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function zt(e,t,r){var n,a,i,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=m([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?"dddd"===t?(a=$e.call(this._weekdaysParse,s),-1!==a?a:null):"ddd"===t?(a=$e.call(this._shortWeekdaysParse,s),-1!==a?a:null):(a=$e.call(this._minWeekdaysParse,s),-1!==a?a:null):"dddd"===t?(a=$e.call(this._weekdaysParse,s),-1!==a?a:(a=$e.call(this._shortWeekdaysParse,s),-1!==a?a:(a=$e.call(this._minWeekdaysParse,s),-1!==a?a:null))):"ddd"===t?(a=$e.call(this._shortWeekdaysParse,s),-1!==a?a:(a=$e.call(this._weekdaysParse,s),-1!==a?a:(a=$e.call(this._minWeekdaysParse,s),-1!==a?a:null))):(a=$e.call(this._minWeekdaysParse,s),-1!==a?a:(a=$e.call(this._weekdaysParse,s),-1!==a?a:(a=$e.call(this._shortWeekdaysParse,s),-1!==a?a:null)))}function Ht(e,t,r){var n,a,i;if(this._weekdaysParseExact)return zt.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=m([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(r&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(r&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Rt(e,this.localeData()),this.add(e-t,"d")):t}function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Yt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=It(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}var Gt=Oe;function Zt(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=Gt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}var Xt=Oe;function $t(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Xt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}var Jt=Oe;function qt(e){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Jt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Kt(){function e(e,t){return t.length-e.length}var t,r,n,a,i,s=[],o=[],l=[],u=[];for(t=0;t<7;t++)r=m([2e3,1]).day(t),n=this.weekdaysMin(r,""),a=this.weekdaysShort(r,""),i=this.weekdays(r,""),s.push(n),o.push(a),l.push(i),u.push(n),u.push(a),u.push(i);for(s.sort(e),o.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)o[t]=Ie(o[t]),l[t]=Ie(l[t]),u[t]=Ie(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Qt(){return this.hours()%12||12}function er(){return this.hours()||24}function tr(e,t){oe(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function rr(e,t){return t._meridiemParse}function nr(e){return"p"===(e+"").toLowerCase().charAt(0)}oe("H",["HH",2],0,"hour"),oe("h",["hh",2],0,Qt),oe("k",["kk",2],0,er),oe("hmm",0,0,(function(){return""+Qt.apply(this)+re(this.minutes(),2)})),oe("hmmss",0,0,(function(){return""+Qt.apply(this)+re(this.minutes(),2)+re(this.seconds(),2)})),oe("Hmm",0,0,(function(){return""+this.hours()+re(this.minutes(),2)})),oe("Hmmss",0,0,(function(){return""+this.hours()+re(this.minutes(),2)+re(this.seconds(),2)})),tr("a",!0),tr("A",!1),J("hour","h"),ee("hour",13),De("a",rr),De("A",rr),De("H",_e),De("h",_e),De("k",_e),De("HH",_e,fe),De("hh",_e,fe),De("kk",_e,fe),De("hmm",ye),De("hmmss",ve),De("Hmm",ye),De("Hmmss",ve),Pe(["H","HH"],ze),Pe(["k","kk"],(function(e,t,r){var n=E(e);t[ze]=24===n?0:n})),Pe(["a","A"],(function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e})),Pe(["h","hh"],(function(e,t,r){t[ze]=E(e),_(r).bigHour=!0})),Pe("hmm",(function(e,t,r){var n=e.length-2;t[ze]=E(e.substr(0,n)),t[He]=E(e.substr(n)),_(r).bigHour=!0})),Pe("hmmss",(function(e,t,r){var n=e.length-4,a=e.length-2;t[ze]=E(e.substr(0,n)),t[He]=E(e.substr(n,2)),t[We]=E(e.substr(a)),_(r).bigHour=!0})),Pe("Hmm",(function(e,t,r){var n=e.length-2;t[ze]=E(e.substr(0,n)),t[He]=E(e.substr(n))})),Pe("Hmmss",(function(e,t,r){var n=e.length-4,a=e.length-2;t[ze]=E(e.substr(0,n)),t[He]=E(e.substr(n,2)),t[We]=E(e.substr(a))}));var ar=/[ap]\.?m?\.?/i;function ir(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var sr,or=Ke("Hours",!0),lr={calendar:L,longDateFormat:U,invalidDate:z,ordinal:W,dayOfMonthOrdinalParse:V,relativeTime:G,months:st,monthsShort:lt,week:Ct,weekdays:Pt,weekdaysMin:Ut,weekdaysShort:Lt,meridiemParse:ar},ur={},cr={};function hr(e){return e?e.toLowerCase().replace("_","-"):e}function dr(e){var t,r,n,a,i=0;while(i0){if(n=fr(a.slice(0,t).join("-")),n)return n;if(r&&r.length>=t&&C(a,r,!0)>=t-1)break;t--}i++}return sr}function fr(e){var n=null;if(!ur[e]&&"undefined"!==typeof r&&r&&r.exports)try{n=sr._abbr;var a=t;a("./locale/"+e),pr(n)}catch(i){}return ur[e]}function pr(e,t){var r;return e&&(r=u(t)?_r(e):mr(e,t),r?sr=r:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),sr._abbr}function mr(e,t){if(null!==t){var r,n=lr;if(t.abbr=e,null!=ur[e])R("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."),n=ur[e]._config;else if(null!=t.parentLocale)if(null!=ur[t.parentLocale])n=ur[t.parentLocale]._config;else{if(r=fr(t.parentLocale),null==r)return cr[t.parentLocale]||(cr[t.parentLocale]=[]),cr[t.parentLocale].push({name:e,config:t}),null;n=r._config}return ur[e]=new F(P(n,t)),cr[e]&&cr[e].forEach((function(e){mr(e.name,e.config)})),pr(e),ur[e]}return delete ur[e],null}function gr(e,t){if(null!=t){var r,n,a=lr;n=fr(e),null!=n&&(a=n._config),t=P(a,t),r=new F(t),r.parentLocale=ur[e],ur[e]=r,pr(e)}else null!=ur[e]&&(null!=ur[e].parentLocale?ur[e]=ur[e].parentLocale:null!=ur[e]&&delete ur[e]);return ur[e]}function _r(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return sr;if(!s(e)){if(t=fr(e),t)return t;e=[e]}return dr(e)}function yr(){return D(ur)}function vr(e){var t,r=e._a;return r&&-2===_(e).overflow&&(t=r[Ue]<0||r[Ue]>11?Ue:r[je]<1||r[je]>at(r[Be],r[Ue])?je:r[ze]<0||r[ze]>24||24===r[ze]&&(0!==r[He]||0!==r[We]||0!==r[Ve])?ze:r[He]<0||r[He]>59?He:r[We]<0||r[We]>59?We:r[Ve]<0||r[Ve]>999?Ve:-1,_(e)._overflowDayOfYear&&(tje)&&(t=je),_(e)._overflowWeeks&&-1===t&&(t=Ye),_(e)._overflowWeekday&&-1===t&&(t=Ge),_(e).overflow=t),e}function br(e,t,r){return null!=e?e:null!=t?t:r}function wr(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function xr(e){var t,r,n,a,i,s=[];if(!e._d){for(n=wr(e),e._w&&null==e._a[je]&&null==e._a[Ue]&&kr(e),null!=e._dayOfYear&&(i=br(e._a[Be],n[Be]),(e._dayOfYear>Ze(i)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),r=wt(i,0,e._dayOfYear),e._a[Ue]=r.getUTCMonth(),e._a[je]=r.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=n[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ze]&&0===e._a[He]&&0===e._a[We]&&0===e._a[Ve]&&(e._nextDay=!0,e._a[ze]=0),e._d=(e._useUTC?wt:bt).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ze]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==a&&(_(e).weekdayMismatch=!0)}}function kr(e){var t,r,n,a,i,s,o,l;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)i=1,s=4,r=br(t.GG,e._a[Be],Tt(Xr(),1,4).year),n=br(t.W,1),a=br(t.E,1),(a<1||a>7)&&(l=!0);else{i=e._locale._week.dow,s=e._locale._week.doy;var u=Tt(Xr(),i,s);r=br(t.gg,e._a[Be],u.year),n=br(t.w,u.week),null!=t.d?(a=t.d,(a<0||a>6)&&(l=!0)):null!=t.e?(a=t.e+i,(t.e<0||t.e>6)&&(l=!0)):a=i}n<1||n>St(r,i,s)?_(e)._overflowWeeks=!0:null!=l?_(e)._overflowWeekday=!0:(o=kt(r,n,a,i,s),e._a[Be]=o.year,e._dayOfYear=o.dayOfYear)}var Tr=/^\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)?)?$/,Sr=/^\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)?)?$/,Er=/Z|[+-]\d\d(?::?\d\d)?/,Cr=[["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/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Or=[["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/]],Ar=/^\/?Date\((\-?\d+)/i;function Dr(e){var t,r,n,a,i,s,o=e._i,l=Tr.exec(o)||Sr.exec(o);if(l){for(_(e).iso=!0,t=0,r=Cr.length;t0&&_(e).unusedInput.push(s),o=o.slice(o.indexOf(r)+r.length),u+=r.length),se[i]?(r?_(e).empty=!1:_(e).unusedTokens.push(i),Le(i,r,e)):e._strict&&!r&&_(e).unusedTokens.push(i);_(e).charsLeftOver=l-u,o.length>0&&_(e).unusedInput.push(o),e._a[ze]<=12&&!0===_(e).bigHour&&e._a[ze]>0&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[ze]=zr(e._locale,e._a[ze],e._meridiem),xr(e),vr(e)}else Br(e);else Dr(e)}function zr(e,t,r){var n;return null==r?t:null!=e.meridiemHour?e.meridiemHour(t,r):null!=e.isPM?(n=e.isPM(r),n&&t<12&&(t+=12),n||12!==t||(t=0),t):t}function Hr(e){var t,r,n,a,i;if(0===e._f.length)return _(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;athis?this:e:v()}));function qr(e,t){var r,n;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return Xr();for(r=t[0],n=1;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function wn(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e={};if(w(e,this),e=Yr(e),e._a){var t=e._isUTC?m(e._a):Xr(e._a);this._isDSTShifted=this.isValid()&&C(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function xn(){return!!this.isValid()&&!this._isUTC}function kn(){return!!this.isValid()&&this._isUTC}function Tn(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}a.updateOffset=function(){};var Sn=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,En=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Cn(e,t){var r,n,a,i=e,s=null;return on(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:c(e)?(i={},t?i[t]=e:i.milliseconds=e):(s=Sn.exec(e))?(r="-"===s[1]?-1:1,i={y:0,d:E(s[je])*r,h:E(s[ze])*r,m:E(s[He])*r,s:E(s[We])*r,ms:E(ln(1e3*s[Ve]))*r}):(s=En.exec(e))?(r="-"===s[1]?-1:1,i={y:On(s[2],r),M:On(s[3],r),w:On(s[4],r),d:On(s[5],r),h:On(s[6],r),m:On(s[7],r),s:On(s[8],r)}):null==i?i={}:"object"===typeof i&&("from"in i||"to"in i)&&(a=Dn(Xr(i.from),Xr(i.to)),i={},i.ms=a.milliseconds,i.M=a.months),n=new sn(i),on(e)&&f(e,"_locale")&&(n._locale=e._locale),n}function On(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function An(e,t){var r={};return r.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Dn(e,t){var r;return e.isValid()&&t.isValid()?(t=dn(t,e),e.isBefore(t)?r=An(e,t):(r=An(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function Nn(e,t){return function(r,n){var a,i;return null===n||isNaN(+n)||(R(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),r="string"===typeof r?+r:r,a=Cn(r,n),Rn(this,a,e),this}}function Rn(e,t,r,n){var i=t._milliseconds,s=ln(t._days),o=ln(t._months);e.isValid()&&(n=null==n||n,o&&dt(e,Qe(e,"Month")+o*r),s&&et(e,"Date",Qe(e,"Date")+s*r),i&&e._d.setTime(e._d.valueOf()+i*r),n&&a.updateOffset(e,s||o))}Cn.fn=sn.prototype,Cn.invalid=an;var In=Nn(1,"add"),Mn=Nn(-1,"subtract");function Pn(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function Fn(e,t){var r=e||Xr(),n=dn(r,this).startOf("day"),i=a.calendarFormat(this,n)||"sameElse",s=t&&(I(t[i])?t[i].call(this,r):t[i]);return this.format(s||this.localeData().calendar(i,this,Xr(r)))}function Ln(){return new k(this)}function Bn(e,t){var r=T(e)?e:Xr(e);return!(!this.isValid()||!r.isValid())&&(t=q(t)||"millisecond","millisecond"===t?this.valueOf()>r.valueOf():r.valueOf()9999?ce(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):I(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",ce(r,"Z")):ce(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Xn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]';return this.format(r+n+a+i)}function $n(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=ce(this,e);return this.localeData().postformat(t)}function Jn(e,t){return this.isValid()&&(T(e)&&e.isValid()||Xr(e).isValid())?Cn({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function qn(e){return this.from(Xr(),e)}function Kn(e,t){return this.isValid()&&(T(e)&&e.isValid()||Xr(e).isValid())?Cn({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Qn(e){return this.to(Xr(),e)}function ea(e){var t;return void 0===e?this._locale._abbr:(t=_r(e),null!=t&&(this._locale=t),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ta=A("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ra(){return this._locale}var na=1e3,aa=60*na,ia=60*aa,sa=3506328*ia;function oa(e,t){return(e%t+t)%t}function la(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-sa:new Date(e,t,r).valueOf()}function ua(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-sa:Date.UTC(e,t,r)}function ca(e){var t;if(e=q(e),void 0===e||"millisecond"===e||!this.isValid())return this;var r=this._isUTC?ua:la;switch(e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=oa(t+(this._isUTC?0:this.utcOffset()*aa),ia);break;case"minute":t=this._d.valueOf(),t-=oa(t,aa);break;case"second":t=this._d.valueOf(),t-=oa(t,na);break}return this._d.setTime(t),a.updateOffset(this,!0),this}function ha(e){var t;if(e=q(e),void 0===e||"millisecond"===e||!this.isValid())return this;var r=this._isUTC?ua:la;switch(e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=ia-oa(t+(this._isUTC?0:this.utcOffset()*aa),ia)-1;break;case"minute":t=this._d.valueOf(),t+=aa-oa(t,aa)-1;break;case"second":t=this._d.valueOf(),t+=na-oa(t,na)-1;break}return this._d.setTime(t),a.updateOffset(this,!0),this}function da(){return this._d.valueOf()-6e4*(this._offset||0)}function fa(){return Math.floor(this.valueOf()/1e3)}function pa(){return new Date(this.valueOf())}function ma(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ga(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function _a(){return this.isValid()?this.toISOString():null}function ya(){return y(this)}function va(){return p({},_(this))}function ba(){return _(this).overflow}function wa(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function xa(e,t){oe(0,[e,e.length],0,t)}function ka(e){return Ca.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Ta(e){return Ca.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Sa(){return St(this.year(),1,4)}function Ea(){var e=this.localeData()._week;return St(this.year(),e.dow,e.doy)}function Ca(e,t,r,n,a){var i;return null==e?Tt(this,n,a).year:(i=St(e,n,a),t>i&&(t=i),Oa.call(this,e,t,r,n,a))}function Oa(e,t,r,n,a){var i=kt(e,t,r,n,a),s=wt(i.year,0,i.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Aa(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}oe(0,["gg",2],0,(function(){return this.weekYear()%100})),oe(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),xa("gggg","weekYear"),xa("ggggg","weekYear"),xa("GGGG","isoWeekYear"),xa("GGGGG","isoWeekYear"),J("weekYear","gg"),J("isoWeekYear","GG"),ee("weekYear",1),ee("isoWeekYear",1),De("G",Te),De("g",Te),De("GG",_e,fe),De("gg",_e,fe),De("GGGG",we,me),De("gggg",we,me),De("GGGGG",xe,ge),De("ggggg",xe,ge),Fe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,r,n){t[n.substr(0,2)]=E(e)})),Fe(["gg","GG"],(function(e,t,r,n){t[n]=a.parseTwoDigitYear(e)})),oe("Q",0,"Qo","quarter"),J("quarter","Q"),ee("quarter",7),De("Q",de),Pe("Q",(function(e,t){t[Ue]=3*(E(e)-1)})),oe("D",["DD",2],"Do","date"),J("date","D"),ee("date",9),De("D",_e),De("DD",_e,fe),De("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Pe(["D","DD"],je),Pe("Do",(function(e,t){t[je]=E(e.match(_e)[0])}));var Da=Ke("Date",!0);function Na(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}oe("DDD",["DDDD",3],"DDDo","dayOfYear"),J("dayOfYear","DDD"),ee("dayOfYear",4),De("DDD",be),De("DDDD",pe),Pe(["DDD","DDDD"],(function(e,t,r){r._dayOfYear=E(e)})),oe("m",["mm",2],0,"minute"),J("minute","m"),ee("minute",14),De("m",_e),De("mm",_e,fe),Pe(["m","mm"],He);var Ra=Ke("Minutes",!1);oe("s",["ss",2],0,"second"),J("second","s"),ee("second",15),De("s",_e),De("ss",_e,fe),Pe(["s","ss"],We);var Ia,Ma=Ke("Seconds",!1);for(oe("S",0,0,(function(){return~~(this.millisecond()/100)})),oe(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),oe(0,["SSS",3],0,"millisecond"),oe(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),oe(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),oe(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),oe(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),oe(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),oe(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),J("millisecond","ms"),ee("millisecond",16),De("S",be,de),De("SS",be,fe),De("SSS",be,pe),Ia="SSSS";Ia.length<=9;Ia+="S")De(Ia,ke);function Pa(e,t){t[Ve]=E(1e3*("0."+e))}for(Ia="S";Ia.length<=9;Ia+="S")Pe(Ia,Pa);var Fa=Ke("Milliseconds",!1);function La(){return this._isUTC?"UTC":""}function Ba(){return this._isUTC?"Coordinated Universal Time":""}oe("z",0,0,"zoneAbbr"),oe("zz",0,0,"zoneName");var Ua=k.prototype;function ja(e){return Xr(1e3*e)}function za(){return Xr.apply(null,arguments).parseZone()}function Ha(e){return e}Ua.add=In,Ua.calendar=Fn,Ua.clone=Ln,Ua.diff=Vn,Ua.endOf=ha,Ua.format=$n,Ua.from=Jn,Ua.fromNow=qn,Ua.to=Kn,Ua.toNow=Qn,Ua.get=tt,Ua.invalidAt=ba,Ua.isAfter=Bn,Ua.isBefore=Un,Ua.isBetween=jn,Ua.isSame=zn,Ua.isSameOrAfter=Hn,Ua.isSameOrBefore=Wn,Ua.isValid=ya,Ua.lang=ta,Ua.locale=ea,Ua.localeData=ra,Ua.max=Jr,Ua.min=$r,Ua.parsingFlags=va,Ua.set=rt,Ua.startOf=ca,Ua.subtract=Mn,Ua.toArray=ma,Ua.toObject=ga,Ua.toDate=pa,Ua.toISOString=Zn,Ua.inspect=Xn,Ua.toJSON=_a,Ua.toString=Gn,Ua.unix=fa,Ua.valueOf=da,Ua.creationData=wa,Ua.year=Je,Ua.isLeapYear=qe,Ua.weekYear=ka,Ua.isoWeekYear=Ta,Ua.quarter=Ua.quarters=Aa,Ua.month=ft,Ua.daysInMonth=pt,Ua.week=Ua.weeks=Dt,Ua.isoWeek=Ua.isoWeeks=Nt,Ua.weeksInYear=Ea,Ua.isoWeeksInYear=Sa,Ua.date=Da,Ua.day=Ua.days=Wt,Ua.weekday=Vt,Ua.isoWeekday=Yt,Ua.dayOfYear=Na,Ua.hour=Ua.hours=or,Ua.minute=Ua.minutes=Ra,Ua.second=Ua.seconds=Ma,Ua.millisecond=Ua.milliseconds=Fa,Ua.utcOffset=pn,Ua.utc=gn,Ua.local=_n,Ua.parseZone=yn,Ua.hasAlignedHourOffset=vn,Ua.isDST=bn,Ua.isLocal=xn,Ua.isUtcOffset=kn,Ua.isUtc=Tn,Ua.isUTC=Tn,Ua.zoneAbbr=La,Ua.zoneName=Ba,Ua.dates=A("dates accessor is deprecated. Use date instead.",Da),Ua.months=A("months accessor is deprecated. Use month instead",ft),Ua.years=A("years accessor is deprecated. Use year instead",Je),Ua.zone=A("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",mn),Ua.isDSTShifted=A("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",wn);var Wa=F.prototype;function Va(e,t,r,n){var a=_r(),i=m().set(n,t);return a[r](i,e)}function Ya(e,t,r){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return Va(e,t,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=Va(e,n,r,"month");return a}function Ga(e,t,r,n){"boolean"===typeof e?(c(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,c(t)&&(r=t,t=void 0),t=t||"");var a,i=_r(),s=e?i._week.dow:0;if(null!=r)return Va(t,(r+s)%7,n,"day");var o=[];for(a=0;a<7;a++)o[a]=Va(t,(a+s)%7,n,"day");return o}function Za(e,t){return Ya(e,t,"months")}function Xa(e,t){return Ya(e,t,"monthsShort")}function $a(e,t,r){return Ga(e,t,r,"weekdays")}function Ja(e,t,r){return Ga(e,t,r,"weekdaysShort")}function qa(e,t,r){return Ga(e,t,r,"weekdaysMin")}Wa.calendar=B,Wa.longDateFormat=j,Wa.invalidDate=H,Wa.ordinal=Y,Wa.preparse=Ha,Wa.postformat=Ha,Wa.relativeTime=Z,Wa.pastFuture=X,Wa.set=M,Wa.months=ot,Wa.monthsShort=ut,Wa.monthsParse=ht,Wa.monthsRegex=yt,Wa.monthsShortRegex=gt,Wa.week=Et,Wa.firstDayOfYear=At,Wa.firstDayOfWeek=Ot,Wa.weekdays=Ft,Wa.weekdaysMin=jt,Wa.weekdaysShort=Bt,Wa.weekdaysParse=Ht,Wa.weekdaysRegex=Zt,Wa.weekdaysShortRegex=$t,Wa.weekdaysMinRegex=qt,Wa.isPM=nr,Wa.meridiem=ir,pr("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=1===E(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+r}}),a.lang=A("moment.lang is deprecated. Use moment.locale instead.",pr),a.langData=A("moment.langData is deprecated. Use moment.localeData instead.",_r);var Ka=Math.abs;function Qa(){var e=this._data;return this._milliseconds=Ka(this._milliseconds),this._days=Ka(this._days),this._months=Ka(this._months),e.milliseconds=Ka(e.milliseconds),e.seconds=Ka(e.seconds),e.minutes=Ka(e.minutes),e.hours=Ka(e.hours),e.months=Ka(e.months),e.years=Ka(e.years),this}function ei(e,t,r,n){var a=Cn(t,r);return e._milliseconds+=n*a._milliseconds,e._days+=n*a._days,e._months+=n*a._months,e._bubble()}function ti(e,t){return ei(this,e,t,1)}function ri(e,t){return ei(this,e,t,-1)}function ni(e){return e<0?Math.floor(e):Math.ceil(e)}function ai(){var e,t,r,n,a,i=this._milliseconds,s=this._days,o=this._months,l=this._data;return i>=0&&s>=0&&o>=0||i<=0&&s<=0&&o<=0||(i+=864e5*ni(si(o)+s),s=0,o=0),l.milliseconds=i%1e3,e=S(i/1e3),l.seconds=e%60,t=S(e/60),l.minutes=t%60,r=S(t/60),l.hours=r%24,s+=S(r/24),a=S(ii(s)),o+=a,s-=ni(si(a)),n=S(o/12),o%=12,l.days=s,l.months=o,l.years=n,this}function ii(e){return 4800*e/146097}function si(e){return 146097*e/4800}function oi(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=q(e),"month"===e||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+ii(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(si(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}}function li(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*E(this._months/12):NaN}function ui(e){return function(){return this.as(e)}}var ci=ui("ms"),hi=ui("s"),di=ui("m"),fi=ui("h"),pi=ui("d"),mi=ui("w"),gi=ui("M"),_i=ui("Q"),yi=ui("y");function vi(){return Cn(this)}function bi(e){return e=q(e),this.isValid()?this[e+"s"]():NaN}function wi(e){return function(){return this.isValid()?this._data[e]:NaN}}var xi=wi("milliseconds"),ki=wi("seconds"),Ti=wi("minutes"),Si=wi("hours"),Ei=wi("days"),Ci=wi("months"),Oi=wi("years");function Ai(){return S(this.days()/7)}var Di=Math.round,Ni={ss:44,s:45,m:45,h:22,d:26,M:11};function Ri(e,t,r,n,a){return a.relativeTime(t||1,!!r,e,n)}function Ii(e,t,r){var n=Cn(e).abs(),a=Di(n.as("s")),i=Di(n.as("m")),s=Di(n.as("h")),o=Di(n.as("d")),l=Di(n.as("M")),u=Di(n.as("y")),c=a<=Ni.ss&&["s",a]||a0,c[4]=r,Ri.apply(null,c)}function Mi(e){return void 0===e?Di:"function"===typeof e&&(Di=e,!0)}function Pi(e,t){return void 0!==Ni[e]&&(void 0===t?Ni[e]:(Ni[e]=t,"s"===e&&(Ni.ss=t-1),!0))}function Fi(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),r=Ii(this,!e,t);return e&&(r=t.pastFuture(+this,r)),t.postformat(r)}var Li=Math.abs;function Bi(e){return(e>0)-(e<0)||+e}function Ui(){if(!this.isValid())return this.localeData().invalidDate();var e,t,r,n=Li(this._milliseconds)/1e3,a=Li(this._days),i=Li(this._months);e=S(n/60),t=S(e/60),n%=60,e%=60,r=S(i/12),i%=12;var s=r,o=i,l=a,u=t,c=e,h=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var f=d<0?"-":"",p=Bi(this._months)!==Bi(d)?"-":"",m=Bi(this._days)!==Bi(d)?"-":"",g=Bi(this._milliseconds)!==Bi(d)?"-":"";return f+"P"+(s?p+s+"Y":"")+(o?p+o+"M":"")+(l?m+l+"D":"")+(u||c||h?"T":"")+(u?g+u+"H":"")+(c?g+c+"M":"")+(h?g+h+"S":"")}var ji=sn.prototype;return ji.isValid=nn,ji.abs=Qa,ji.add=ti,ji.subtract=ri,ji.as=oi,ji.asMilliseconds=ci,ji.asSeconds=hi,ji.asMinutes=di,ji.asHours=fi,ji.asDays=pi,ji.asWeeks=mi,ji.asMonths=gi,ji.asQuarters=_i,ji.asYears=yi,ji.valueOf=li,ji._bubble=ai,ji.clone=vi,ji.get=bi,ji.milliseconds=xi,ji.seconds=ki,ji.minutes=Ti,ji.hours=Si,ji.days=Ei,ji.weeks=Ai,ji.months=Ci,ji.years=Oi,ji.humanize=Fi,ji.toISOString=Ui,ji.toString=Ui,ji.toJSON=Ui,ji.locale=ea,ji.localeData=ra,ji.toIsoString=A("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ui),ji.lang=ta,oe("X",0,0,"unix"),oe("x",0,0,"valueOf"),De("x",Te),De("X",Ce),Pe("X",(function(e,t,r){r._d=new Date(1e3*parseFloat(e,10))})),Pe("x",(function(e,t,r){r._d=new Date(E(e))})),a.version="2.24.0",i(Xr),a.fn=Ua,a.min=Kr,a.max=Qr,a.now=en,a.utc=m,a.unix=ja,a.months=Za,a.isDate=h,a.locale=pr,a.invalid=v,a.duration=Cn,a.isMoment=T,a.weekdays=$a,a.parseZone=za,a.localeData=_r,a.isDuration=on,a.monthsShort=Xa,a.weekdaysMin=qa,a.defineLocale=mr,a.updateLocale=gr,a.locales=yr,a.weekdaysShort=Ja,a.normalizeUnits=q,a.relativeTimeRounding=Mi,a.relativeTimeThreshold=Pi,a.calendarFormat=Pn,a.prototype=Ua,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}))},{}],179:[function(t,r,n){(function(){"use strict";function a(e,t,r){var n=t.deepEqual,a=t.isString,i=t.isHash,s=r.difference,o=Object.prototype.hasOwnProperty,l=t.isFunction;function u(e,t){var r,n;for(r in t)o.call(t,r)&&(n=t[r],r in e&&e[r]===n||(e[r]=n));return e}function c(e,t){var r,a,s;for(r in t)o.call(t,r)&&(a=t[r],s=e[r],n(s,a)||(i(s)&&i(a)?e[r]=c(s,a):i(a)?e[r]=c({},a):e[r]=a));return e}function h(e){e||(e={});for(var t=1,r=arguments.length;t0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==h)throw new Error(s[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var u;if(u="string"===typeof t.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,r=n.deflateSetDictionary(this.strm,u),r!==h)throw new Error(s[r]);this._dict_set=!0}}function y(e,t){var r=new _(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}function v(e,t){return t=t||{},t.raw=!0,y(e,t)}function b(e,t){return t=t||{},t.gzip=!0,y(e,t)}_.prototype.push=function(e,t){var r,s,o=this.strm,p=this.options.chunkSize;if(this.ended)return!1;s=t===~~t?t:!0===t?c:u,"string"===typeof e?o.input=i.string2buf(e):"[object ArrayBuffer]"===l.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new a.Buf8(p),o.next_out=0,o.avail_out=p),r=n.deflate(o,s),r!==d&&r!==h)return this.onEnd(r),this.ended=!0,!1;0!==o.avail_out&&(0!==o.avail_in||s!==c&&s!==f)||("string"===this.options.to?this.onData(i.buf2binstring(a.shrinkBuf(o.output,o.next_out))):this.onData(a.shrinkBuf(o.output,o.next_out)))}while((o.avail_in>0||0===o.avail_out)&&r!==d);return s===c?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===h):s!==f||(this.onEnd(h),o.avail_out=0,!0)},_.prototype.onData=function(e){this.chunks.push(e)},_.prototype.onEnd=function(e){e===h&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=_,r.deflate=y,r.deflateRaw=v,r.gzip=b},{"./utils/common":184,"./utils/strings":185,"./zlib/deflate":189,"./zlib/messages":194,"./zlib/zstream":196}],183:[function(e,t,r){"use strict";var n=e("./zlib/inflate"),a=e("./utils/common"),i=e("./utils/strings"),s=e("./zlib/constants"),o=e("./zlib/messages"),l=e("./zlib/zstream"),u=e("./zlib/gzheader"),c=Object.prototype.toString;function h(e){if(!(this instanceof h))return new h(e);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0===(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==s.Z_OK)throw new Error(o[r]);if(this.header=new u,n.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"===typeof t.dictionary?t.dictionary=i.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=n.inflateSetDictionary(this.strm,t.dictionary),r!==s.Z_OK)))throw new Error(o[r])}function d(e,t){var r=new h(t);if(r.push(e,!0),r.err)throw r.msg||o[r.err];return r.result}function f(e,t){return t=t||{},t.raw=!0,d(e,t)}h.prototype.push=function(e,t){var r,o,l,u,h,d=this.strm,f=this.options.chunkSize,p=this.options.dictionary,m=!1;if(this.ended)return!1;o=t===~~t?t:!0===t?s.Z_FINISH:s.Z_NO_FLUSH,"string"===typeof e?d.input=i.binstring2buf(e):"[object ArrayBuffer]"===c.call(e)?d.input=new Uint8Array(e):d.input=e,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new a.Buf8(f),d.next_out=0,d.avail_out=f),r=n.inflate(d,s.Z_NO_FLUSH),r===s.Z_NEED_DICT&&p&&(r=n.inflateSetDictionary(this.strm,p)),r===s.Z_BUF_ERROR&&!0===m&&(r=s.Z_OK,m=!1),r!==s.Z_STREAM_END&&r!==s.Z_OK)return this.onEnd(r),this.ended=!0,!1;d.next_out&&(0!==d.avail_out&&r!==s.Z_STREAM_END&&(0!==d.avail_in||o!==s.Z_FINISH&&o!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(l=i.utf8border(d.output,d.next_out),u=d.next_out-l,h=i.buf2string(d.output,l),d.next_out=u,d.avail_out=f-u,u&&a.arraySet(d.output,d.output,l,u,0),this.onData(h)):this.onData(a.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(m=!0)}while((d.avail_in>0||0===d.avail_out)&&r!==s.Z_STREAM_END);return r===s.Z_STREAM_END&&(o=s.Z_FINISH),o===s.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===s.Z_OK):o!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),d.avail_out=0,!0)},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=h,r.inflate=d,r.inflateRaw=f,r.ungzip=d},{"./utils/common":184,"./utils/strings":185,"./zlib/constants":187,"./zlib/gzheader":190,"./zlib/inflate":192,"./zlib/messages":194,"./zlib/zstream":196}],184:[function(e,t,r){"use strict";var n="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.assign=function(e){var t=Array.prototype.slice.call(arguments,1);while(t.length){var r=t.shift();if(r){if("object"!==typeof r)throw new TypeError(r+"must be non-object");for(var n in r)a(r,n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,a){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),a);else for(var i=0;i=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;function l(e,t){if(t<65534&&(e.subarray&&i||!e.subarray&&a))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",s=0;s>>6,t[s++]=128|63&r):r<65536?(t[s++]=224|r>>>12,t[s++]=128|r>>>6&63,t[s++]=128|63&r):(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63,t[s++]=128|r>>>6&63,t[s++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,a=t.length;r4)u[n++]=65533,r+=i-1;else{a&=2===i?31:3===i?15:7;while(i>1&&r1?u[n++]=65533:a<65536?u[n++]=a:(a-=65536,u[n++]=55296|a>>10&1023,u[n++]=56320|1023&a)}return l(u,n)},r.utf8border=function(e,t){var r;t=t||e.length,t>e.length&&(t=e.length),r=t-1;while(r>=0&&128===(192&e[r]))r--;return r<0||0===r?t:r+s[e[r]]>t?r:t}},{"./common":184}],186:[function(e,t,r){"use strict";function n(e,t,r,n){var a=65535&e|0,i=e>>>16&65535|0,s=0;while(0!==r){s=r>2e3?2e3:r,r-=s;do{a=a+t[n++]|0,i=i+a|0}while(--s);a%=65521,i%=65521}return a|i<<16|0}t.exports=n},{}],187:[function(e,t,r){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],188:[function(e,t,r){"use strict";function n(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}var a=n();function i(e,t,r,n){var i=a,s=n+r;e^=-1;for(var o=n;o>>8^i[255&(e^t[o])];return-1^e}t.exports=i},{}],189:[function(e,t,r){"use strict";var n,a=e("../utils/common"),i=e("./trees"),s=e("./adler32"),o=e("./crc32"),l=e("./messages"),u=0,c=1,h=3,d=4,f=5,p=0,m=1,g=-2,_=-3,y=-5,v=-1,b=1,w=2,x=3,k=4,T=0,S=2,E=8,C=9,O=15,A=8,D=29,N=256,R=N+1+D,I=30,M=19,P=2*R+1,F=15,L=3,B=258,U=B+L+1,j=32,z=42,H=69,W=73,V=91,Y=103,G=113,Z=666,X=1,$=2,J=3,q=4,K=3;function Q(e,t){return e.msg=l[t],t}function ee(e){return(e<<1)-(e>4?9:0)}function te(e){var t=e.length;while(--t>=0)e[t]=0}function re(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(a.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function ne(e,t){i._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,re(e.strm)}function ae(e,t){e.pending_buf[e.pending++]=t}function ie(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function se(e,t,r,n){var i=e.avail_in;return i>n&&(i=n),0===i?0:(e.avail_in-=i,a.arraySet(t,e.input,e.next_in,i,r),1===e.state.wrap?e.adler=s(e.adler,t,i,r):2===e.state.wrap&&(e.adler=o(e.adler,t,i,r)),e.next_in+=i,e.total_in+=i,i)}function oe(e,t){var r,n,a=e.max_chain_length,i=e.strstart,s=e.prev_length,o=e.nice_match,l=e.strstart>e.w_size-U?e.strstart-(e.w_size-U):0,u=e.window,c=e.w_mask,h=e.prev,d=e.strstart+B,f=u[i+s-1],p=u[i+s];e.prev_length>=e.good_match&&(a>>=2),o>e.lookahead&&(o=e.lookahead);do{if(r=t,u[r+s]===p&&u[r+s-1]===f&&u[r]===u[i]&&u[++r]===u[i+1]){i+=2,r++;do{}while(u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&is){if(e.match_start=t,s=n,n>=o)break;f=u[i+s-1],p=u[i+s]}}}while((t=h[t&c])>l&&0!==--a);return s<=e.lookahead?s:e.lookahead}function le(e){var t,r,n,i,s,o=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=o+(o-U)){a.arraySet(e.window,e.window,o,o,0),e.match_start-=o,e.strstart-=o,e.block_start-=o,r=e.hash_size,t=r;do{n=e.head[--t],e.head[t]=n>=o?n-o:0}while(--r);r=o,t=r;do{n=e.prev[--t],e.prev[t]=n>=o?n-o:0}while(--r);i+=o}if(0===e.strm.avail_in)break;if(r=se(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=r,e.lookahead+e.insert>=L){s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(le(e),0===e.lookahead&&t===u)return X;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,ne(e,!1),0===e.strm.avail_out))return X;if(e.strstart-e.block_start>=e.w_size-U&&(ne(e,!1),0===e.strm.avail_out))return X}return e.insert=0,t===d?(ne(e,!0),0===e.strm.avail_out?J:q):(e.strstart>e.block_start&&(ne(e,!1),e.strm.avail_out),X)}function ce(e,t){for(var r,n;;){if(e.lookahead=L&&(e.ins_h=(e.ins_h<=L)if(n=i._tr_tally(e,e.strstart-e.match_start,e.match_length-L),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=L){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=L&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=L-1)),e.prev_length>=L&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-L,n=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-L),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=a&&(e.ins_h=(e.ins_h<=L&&e.strstart>0&&(a=e.strstart-1,n=o[a],n===o[++a]&&n===o[++a]&&n===o[++a])){s=e.strstart+B;do{}while(n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&n===o[++a]&&ae.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=L?(r=i._tr_tally(e,1,e.match_length-L),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(ne(e,!1),0===e.strm.avail_out))return X}return e.insert=0,t===d?(ne(e,!0),0===e.strm.avail_out?J:q):e.last_lit&&(ne(e,!1),0===e.strm.avail_out)?X:$}function fe(e,t){for(var r;;){if(0===e.lookahead&&(le(e),0===e.lookahead)){if(t===u)return X;break}if(e.match_length=0,r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(ne(e,!1),0===e.strm.avail_out))return X}return e.insert=0,t===d?(ne(e,!0),0===e.strm.avail_out?J:q):e.last_lit&&(ne(e,!1),0===e.strm.avail_out)?X:$}function pe(e,t,r,n,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=a}function me(e){e.window_size=2*e.w_size,te(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=L-1,e.match_available=0,e.ins_h=0}function ge(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=E,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new a.Buf16(2*P),this.dyn_dtree=new a.Buf16(2*(2*I+1)),this.bl_tree=new a.Buf16(2*(2*M+1)),te(this.dyn_ltree),te(this.dyn_dtree),te(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(F+1),this.heap=new a.Buf16(2*R+1),te(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*R+1),te(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function _e(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=S,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?z:G,e.adler=2===t.wrap?0:1,t.last_flush=u,i._tr_init(t),p):Q(e,g)}function ye(e){var t=_e(e);return t===p&&me(e.state),t}function ve(e,t){return e&&e.state?2!==e.state.wrap?g:(e.state.gzhead=t,p):g}function be(e,t,r,n,i,s){if(!e)return g;var o=1;if(t===v&&(t=6),n<0?(o=0,n=-n):n>15&&(o=2,n-=16),i<1||i>C||r!==E||n<8||n>15||t<0||t>9||s<0||s>k)return Q(e,g);8===n&&(n=9);var l=new ge;return e.state=l,l.strm=e,l.wrap=o,l.gzhead=null,l.w_bits=n,l.w_size=1<f||t<0)return e?Q(e,g):g;if(a=e.state,!e.output||!e.input&&0!==e.avail_in||a.status===Z&&t!==d)return Q(e,0===e.avail_out?y:g);if(a.strm=e,r=a.last_flush,a.last_flush=t,a.status===z)if(2===a.wrap)e.adler=0,ae(a,31),ae(a,139),ae(a,8),a.gzhead?(ae(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),ae(a,255&a.gzhead.time),ae(a,a.gzhead.time>>8&255),ae(a,a.gzhead.time>>16&255),ae(a,a.gzhead.time>>24&255),ae(a,9===a.level?2:a.strategy>=w||a.level<2?4:0),ae(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(ae(a,255&a.gzhead.extra.length),ae(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=o(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=H):(ae(a,0),ae(a,0),ae(a,0),ae(a,0),ae(a,0),ae(a,9===a.level?2:a.strategy>=w||a.level<2?4:0),ae(a,K),a.status=G);else{var _=E+(a.w_bits-8<<4)<<8,v=-1;v=a.strategy>=w||a.level<2?0:a.level<6?1:6===a.level?2:3,_|=v<<6,0!==a.strstart&&(_|=j),_+=31-_%31,a.status=G,ie(a,_),0!==a.strstart&&(ie(a,e.adler>>>16),ie(a,65535&e.adler)),e.adler=1}if(a.status===H)if(a.gzhead.extra){s=a.pending;while(a.gzindex<(65535&a.gzhead.extra.length)){if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>s&&(e.adler=o(e.adler,a.pending_buf,a.pending-s,s)),re(e),s=a.pending,a.pending===a.pending_buf_size))break;ae(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++}a.gzhead.hcrc&&a.pending>s&&(e.adler=o(e.adler,a.pending_buf,a.pending-s,s)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=W)}else a.status=W;if(a.status===W)if(a.gzhead.name){s=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>s&&(e.adler=o(e.adler,a.pending_buf,a.pending-s,s)),re(e),s=a.pending,a.pending===a.pending_buf_size)){l=1;break}l=a.gzindexs&&(e.adler=o(e.adler,a.pending_buf,a.pending-s,s)),0===l&&(a.gzindex=0,a.status=V)}else a.status=V;if(a.status===V)if(a.gzhead.comment){s=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>s&&(e.adler=o(e.adler,a.pending_buf,a.pending-s,s)),re(e),s=a.pending,a.pending===a.pending_buf_size)){l=1;break}l=a.gzindexs&&(e.adler=o(e.adler,a.pending_buf,a.pending-s,s)),0===l&&(a.status=Y)}else a.status=Y;if(a.status===Y&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&re(e),a.pending+2<=a.pending_buf_size&&(ae(a,255&e.adler),ae(a,e.adler>>8&255),e.adler=0,a.status=G)):a.status=G),0!==a.pending){if(re(e),0===e.avail_out)return a.last_flush=-1,p}else if(0===e.avail_in&&ee(t)<=ee(r)&&t!==d)return Q(e,y);if(a.status===Z&&0!==e.avail_in)return Q(e,y);if(0!==e.avail_in||0!==a.lookahead||t!==u&&a.status!==Z){var b=a.strategy===w?fe(a,t):a.strategy===x?de(a,t):n[a.level].func(a,t);if(b!==J&&b!==q||(a.status=Z),b===X||b===J)return 0===e.avail_out&&(a.last_flush=-1),p;if(b===$&&(t===c?i._tr_align(a):t!==f&&(i._tr_stored_block(a,0,0,!1),t===h&&(te(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),re(e),0===e.avail_out))return a.last_flush=-1,p}return t!==d?p:a.wrap<=0?m:(2===a.wrap?(ae(a,255&e.adler),ae(a,e.adler>>8&255),ae(a,e.adler>>16&255),ae(a,e.adler>>24&255),ae(a,255&e.total_in),ae(a,e.total_in>>8&255),ae(a,e.total_in>>16&255),ae(a,e.total_in>>24&255)):(ie(a,e.adler>>>16),ie(a,65535&e.adler)),re(e),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?p:m)}function ke(e){var t;return e&&e.state?(t=e.state.status,t!==z&&t!==H&&t!==W&&t!==V&&t!==Y&&t!==G&&t!==Z?Q(e,g):(e.state=null,t===G?Q(e,_):p)):g}function Te(e,t){var r,n,i,o,l,u,c,h,d=t.length;if(!e||!e.state)return g;if(r=e.state,o=r.wrap,2===o||1===o&&r.status!==z||r.lookahead)return g;1===o&&(e.adler=s(e.adler,t,d,0)),r.wrap=0,d>=r.w_size&&(0===o&&(te(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=new a.Buf8(r.w_size),a.arraySet(h,t,d-r.w_size,r.w_size,0),t=h,d=r.w_size),l=e.avail_in,u=e.next_in,c=e.input,e.avail_in=d,e.next_in=0,e.input=t,le(r);while(r.lookahead>=L){n=r.strstart,i=r.lookahead-(L-1);do{r.ins_h=(r.ins_h<>>24,m>>>=x,g-=x,x=w>>>16&255,0===x)O[o++]=65535&w;else{if(!(16&x)){if(0===(64&x)){w=_[(65535&w)+(m&(1<>>=x,g-=x),g<15&&(m+=C[i++]<>>24,m>>>=x,g-=x,x=w>>>16&255,!(16&x)){if(0===(64&x)){w=y[(65535&w)+(m&(1<c){e.msg="invalid distance too far back",r.mode=n;break e}if(m>>>=x,g-=x,x=o-l,T>x){if(x=T-x,x>d&&r.sane){e.msg="invalid distance too far back",r.mode=n;break e}if(S=0,E=p,0===f){if(S+=h-x,x2)O[o++]=E[S++],O[o++]=E[S++],O[o++]=E[S++],k-=3;k&&(O[o++]=E[S++],k>1&&(O[o++]=E[S++]))}else{S=o-T;do{O[o++]=O[S++],O[o++]=O[S++],O[o++]=O[S++],k-=3}while(k>2);k&&(O[o++]=O[S++],k>1&&(O[o++]=O[S++]))}break}}break}}while(i>3,i-=k,g-=k<<3,m&=(1<>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function ie(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function se(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=x,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(ee),t.distcode=t.distdyn=new n.Buf32(te),t.sane=1,t.back=-1,p):_}function oe(e){var t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,se(e)):_}function le(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?_:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,oe(e))):_}function ue(e,t){var r,n;return e?(n=new ie,e.state=n,n.window=null,r=le(e,t),r!==p&&(e.state=null),r):_}function ce(e){return ue(e,ne)}var he,de,fe=!0;function pe(e){if(fe){var t;he=new n.Buf32(512),de=new n.Buf32(32),t=0;while(t<144)e.lens[t++]=8;while(t<256)e.lens[t++]=9;while(t<280)e.lens[t++]=7;while(t<288)e.lens[t++]=8;o(u,e.lens,0,288,he,0,e.work,{bits:9}),t=0;while(t<32)e.lens[t++]=5;o(c,e.lens,0,32,de,0,e.work,{bits:5}),fe=!1}e.lencode=he,e.lenbits=9,e.distcode=de,e.distbits=5}function me(e,t,r,a){var i,s=e.state;return null===s.window&&(s.wsize=1<=s.wsize?(n.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(i=s.wsize-s.wnext,i>a&&(i=a),n.arraySet(s.window,t,r-a,i,s.wnext),a-=i,a?(n.arraySet(s.window,t,r-a,a,0),s.wnext=a,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave>>8&255,r.check=i(r.check,Ce,2,0),oe=0,le=0,r.mode=k;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&oe)<<8)+(oe>>8))%31){e.msg="incorrect header check",r.mode=q;break}if((15&oe)!==w){e.msg="unknown compression method",r.mode=q;break}if(oe>>>=4,le-=4,xe=8+(15&oe),0===r.wbits)r.wbits=xe;else if(xe>r.wbits){e.msg="invalid window size",r.mode=q;break}r.dmax=1<>8&1),512&r.flags&&(Ce[0]=255&oe,Ce[1]=oe>>>8&255,r.check=i(r.check,Ce,2,0)),oe=0,le=0,r.mode=T;case T:while(le<32){if(0===ie)break e;ie--,oe+=ee[re++]<>>8&255,Ce[2]=oe>>>16&255,Ce[3]=oe>>>24&255,r.check=i(r.check,Ce,4,0)),oe=0,le=0,r.mode=S;case S:while(le<16){if(0===ie)break e;ie--,oe+=ee[re++]<>8),512&r.flags&&(Ce[0]=255&oe,Ce[1]=oe>>>8&255,r.check=i(r.check,Ce,2,0)),oe=0,le=0,r.mode=E;case E:if(1024&r.flags){while(le<16){if(0===ie)break e;ie--,oe+=ee[re++]<>>8&255,r.check=i(r.check,Ce,2,0)),oe=0,le=0}else r.head&&(r.head.extra=null);r.mode=C;case C:if(1024&r.flags&&(he=r.length,he>ie&&(he=ie),he&&(r.head&&(xe=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,ee,re,he,xe)),512&r.flags&&(r.check=i(r.check,ee,he,re)),ie-=he,re+=he,r.length-=he),r.length))break e;r.length=0,r.mode=O;case O:if(2048&r.flags){if(0===ie)break e;he=0;do{xe=ee[re+he++],r.head&&xe&&r.length<65536&&(r.head.name+=String.fromCharCode(xe))}while(xe&&he>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=I;break;case N:while(le<32){if(0===ie)break e;ie--,oe+=ee[re++]<>>=7&le,le-=7&le,r.mode=X;break}while(le<3){if(0===ie)break e;ie--,oe+=ee[re++]<>>=1,le-=1,3&oe){case 0:r.mode=P;break;case 1:if(pe(r),r.mode=z,t===f){oe>>>=2,le-=2;break e}break;case 2:r.mode=B;break;case 3:e.msg="invalid block type",r.mode=q}oe>>>=2,le-=2;break;case P:oe>>>=7&le,le-=7≤while(le<32){if(0===ie)break e;ie--,oe+=ee[re++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=q;break}if(r.length=65535&oe,oe=0,le=0,r.mode=F,t===f)break e;case F:r.mode=L;case L:if(he=r.length,he){if(he>ie&&(he=ie),he>se&&(he=se),0===he)break e;n.arraySet(te,ee,re,he,ne),ie-=he,re+=he,se-=he,ne+=he,r.length-=he;break}r.mode=I;break;case B:while(le<14){if(0===ie)break e;ie--,oe+=ee[re++]<>>=5,le-=5,r.ndist=1+(31&oe),oe>>>=5,le-=5,r.ncode=4+(15&oe),oe>>>=4,le-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=q;break}r.have=0,r.mode=U;case U:while(r.have>>=3,le-=3}while(r.have<19)r.lens[Oe[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,Te={bits:r.lenbits},ke=o(l,r.lens,0,19,r.lencode,0,r.work,Te),r.lenbits=Te.bits,ke){e.msg="invalid code lengths set",r.mode=q;break}r.have=0,r.mode=j;case j:while(r.have>>24,_e=Ee>>>16&255,ye=65535&Ee,ge<=le)break;if(0===ie)break e;ie--,oe+=ee[re++]<>>=ge,le-=ge,r.lens[r.have++]=ye;else{if(16===ye){Se=ge+2;while(le>>=ge,le-=ge,0===r.have){e.msg="invalid bit length repeat",r.mode=q;break}xe=r.lens[r.have-1],he=3+(3&oe),oe>>>=2,le-=2}else if(17===ye){Se=ge+3;while(le>>=ge,le-=ge,xe=0,he=3+(7&oe),oe>>>=3,le-=3}else{Se=ge+7;while(le>>=ge,le-=ge,xe=0,he=11+(127&oe),oe>>>=7,le-=7}if(r.have+he>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=q;break}while(he--)r.lens[r.have++]=xe}}if(r.mode===q)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=q;break}if(r.lenbits=9,Te={bits:r.lenbits},ke=o(u,r.lens,0,r.nlen,r.lencode,0,r.work,Te),r.lenbits=Te.bits,ke){e.msg="invalid literal/lengths set",r.mode=q;break}if(r.distbits=6,r.distcode=r.distdyn,Te={bits:r.distbits},ke=o(c,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,Te),r.distbits=Te.bits,ke){e.msg="invalid distances set",r.mode=q;break}if(r.mode=z,t===f)break e;case z:r.mode=H;case H:if(ie>=6&&se>=258){e.next_out=ne,e.avail_out=se,e.next_in=re,e.avail_in=ie,r.hold=oe,r.bits=le,s(e,ce),ne=e.next_out,te=e.output,se=e.avail_out,re=e.next_in,ee=e.input,ie=e.avail_in,oe=r.hold,le=r.bits,r.mode===I&&(r.back=-1);break}for(r.back=0;;){if(Ee=r.lencode[oe&(1<>>24,_e=Ee>>>16&255,ye=65535&Ee,ge<=le)break;if(0===ie)break e;ie--,oe+=ee[re++]<>ve)],ge=Ee>>>24,_e=Ee>>>16&255,ye=65535&Ee,ve+ge<=le)break;if(0===ie)break e;ie--,oe+=ee[re++]<>>=ve,le-=ve,r.back+=ve}if(oe>>>=ge,le-=ge,r.back+=ge,r.length=ye,0===_e){r.mode=Z;break}if(32&_e){r.back=-1,r.mode=I;break}if(64&_e){e.msg="invalid literal/length code",r.mode=q;break}r.extra=15&_e,r.mode=W;case W:if(r.extra){Se=r.extra;while(le>>=r.extra,le-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=V;case V:for(;;){if(Ee=r.distcode[oe&(1<>>24,_e=Ee>>>16&255,ye=65535&Ee,ge<=le)break;if(0===ie)break e;ie--,oe+=ee[re++]<>ve)],ge=Ee>>>24,_e=Ee>>>16&255,ye=65535&Ee,ve+ge<=le)break;if(0===ie)break e;ie--,oe+=ee[re++]<>>=ve,le-=ve,r.back+=ve}if(oe>>>=ge,le-=ge,r.back+=ge,64&_e){e.msg="invalid distance code",r.mode=q;break}r.offset=ye,r.extra=15&_e,r.mode=Y;case Y:if(r.extra){Se=r.extra;while(le>>=r.extra,le-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=q;break}r.mode=G;case G:if(0===se)break e;if(he=ce-se,r.offset>he){if(he=r.offset-he,he>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=q;break}he>r.wnext?(he-=r.wnext,de=r.wsize-he):de=r.wnext-he,he>r.length&&(he=r.length),fe=r.window}else fe=te,de=ne-r.offset,he=r.length;he>se&&(he=se),se-=he,r.length-=he;do{te[ne++]=fe[de++]}while(--he);0===r.length&&(r.mode=H);break;case Z:if(0===se)break e;te[ne++]=r.length,se--,r.mode=H;break;case X:if(r.wrap){while(le<32){if(0===ie)break e;ie--,oe|=ee[re++]<=1;R--)if(0!==z[R])break;if(I>R&&(I=R),0===R)return m[g++]=20971520,m[g++]=20971520,y.bits=1,0;for(N=1;N0&&(e===o||1!==R))return-1;for(H[1]=0,A=1;Ai||e===u&&L>s)return 1;for(;;){S=A-P,_[D]T?(E=W[V+_[D]],C=U[j+_[D]]):(E=96,C=0),v=1<>P)+b]=S<<24|E<<16|C|0}while(0!==b);v=1<>=1;if(0!==v?(B&=v-1,B+=v):B=0,D++,0===--z[A]){if(A===R)break;A=t[r+_[D]]}if(A>I&&(B&x)!==w){0===P&&(P=I),k+=N,M=A-P,F=1<i||e===u&&L>s)return 1;w=B&x,m[w]=I<<24|M<<16|k-g|0}}return 0!==B&&(m[k+B]=A-P<<24|64<<16|0),y.bits=I,0}},{"../utils/common":184}],194:[function(e,t,r){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],195:[function(e,t,r){"use strict";var n=e("../utils/common"),a=4,i=0,s=1,o=2;function l(e){var t=e.length;while(--t>=0)e[t]=0}var u=0,c=1,h=2,d=3,f=258,p=29,m=256,g=m+1+p,_=30,y=19,v=2*g+1,b=15,w=16,x=7,k=256,T=16,S=17,E=18,C=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],O=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],N=512,R=new Array(2*(g+2));l(R);var I=new Array(2*_);l(I);var M=new Array(N);l(M);var P=new Array(f-d+1);l(P);var F=new Array(p);l(F);var L,B,U,j=new Array(_);function z(e,t,r,n,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=a,this.has_stree=e&&e.length}function H(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function W(e){return e<256?M[e]:M[256+(e>>>7)]}function V(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Y(e,t,r){e.bi_valid>w-r?(e.bi_buf|=t<>w-e.bi_valid,e.bi_valid+=r-w):(e.bi_buf|=t<>>=1,r<<=1}while(--t>0);return r>>>1}function X(e){16===e.bi_valid?(V(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}function $(e,t){var r,n,a,i,s,o,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,h=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(i=0;i<=b;i++)e.bl_count[i]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;rp&&(i=p,m++),l[2*n+1]=i,n>u||(e.bl_count[i]++,s=0,n>=f&&(s=d[n-f]),o=l[2*n],e.opt_len+=o*(i+s),h&&(e.static_len+=o*(c[2*n+1]+s)));if(0!==m){do{i=p-1;while(0===e.bl_count[i])i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(i=p;0!==i;i--){n=e.bl_count[i];while(0!==n)a=e.heap[--r],a>u||(l[2*a+1]!==i&&(e.opt_len+=(i-l[2*a+1])*l[2*a],l[2*a+1]=i),n--)}}}function J(e,t,r){var n,a,i=new Array(b+1),s=0;for(n=1;n<=b;n++)i[n]=s=s+r[n-1]<<1;for(a=0;a<=t;a++){var o=e[2*a+1];0!==o&&(e[2*a]=Z(i[o]++,o))}}function q(){var e,t,r,n,a,i=new Array(b+1);for(r=0,n=0;n>=7;n<_;n++)for(j[n]=a<<7,e=0;e<1<8?V(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function ee(e,t,r,a){Q(e),a&&(V(e,r),V(e,~r)),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function te(e,t,r,n){var a=2*t,i=2*r;return e[a]>1;r>=1;r--)re(e,i,r);a=l;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],re(e,i,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,i[2*a]=i[2*r]+i[2*n],e.depth[a]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,i[2*r+1]=i[2*n+1]=a,e.heap[1]=a++,re(e,i,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],$(e,t),J(i,u,e.bl_count)}function ie(e,t,r){var n,a,i=-1,s=t[1],o=0,l=7,u=4;for(0===s&&(l=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)a=s,s=t[2*(n+1)+1],++o=3;t--)if(0!==e.bl_tree[2*D[t]+1])break;return e.opt_len+=3*(t+1)+5+5+4,t}function le(e,t,r,n){var a;for(Y(e,t-257,5),Y(e,r-1,5),Y(e,n-4,4),a=0;a>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return i;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return s;for(t=32;t0?(e.strm.data_type===o&&(e.strm.data_type=ue(e)),ae(e,e.l_desc),ae(e,e.d_desc),l=oe(e),i=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=i&&(i=s)):i=s=r+5,r+4<=i&&-1!==t?de(e,t,r,n):e.strategy===a||s===i?(Y(e,(c<<1)+(n?1:0),3),ne(e,R,I)):(Y(e,(h<<1)+(n?1:0),3),le(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),ne(e,e.dyn_ltree,e.dyn_dtree)),K(e),n&&Q(e)}function me(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(P[r]+m+1)]++,e.dyn_dtree[2*W(t)]++),e.last_lit===e.lit_bufsize-1}r._tr_init=he,r._tr_stored_block=de,r._tr_flush_block=pe,r._tr_tally=me,r._tr_align=fe},{"../utils/common":184}],196:[function(e,t,r){"use strict";function n(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}t.exports=n},{}],197:[function(e,t,r){(function(e){"use strict";function r(t,r,n,a){if("function"!==typeof t)throw new TypeError('"callback" argument must be a function');var i,s,o=arguments.length;switch(o){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,r)}));case 3:return e.nextTick((function(){t.call(null,r,n)}));case 4:return e.nextTick((function(){t.call(null,r,n,a)}));default:i=new Array(o-1),s=0;while(s1)for(var r=1;r1))return r.resolve(e[0]);a=r.resolve(e[i++])}while(i=t&&r(a)})).catch((function(r){i.push(r),i.length>e.length-t&&n(i)}))}))}))}},{key:"any",value:function(e){return r.some(e,1).then((function(e){return e[0]}))}},{key:"defer",value:function(){var e={};return e.promise=new r((function(t,r){e.resolve=t,e.reject=r})),e}},{key:"spread",value:function(e,t){return t.apply(void 0,e)}}]),r}(e);return r}t.exports=o},{}],200:[function(e,t,r){"use strict";var n=e("es6-promise").Promise,a=e("./promish-class");t.exports=a(n)},{"./promish-class":199,"es6-promise":122}],201:[function(e,t,r){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":202}],202:[function(e,t,r){"use strict";var n=e("process-nextick-args"),a=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=h;var i=e("core-util-is");i.inherits=e("inherits");var s=e("./_stream_readable"),o=e("./_stream_writable");i.inherits(h,s);for(var l=a(o.prototype),u=0;u0?("string"===typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=h(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):T(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?T(e,s,t,!1):I(e,s)):T(e,s,t,!1))):n||(s.reading=!1));return E(s)}function T(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&N(e)),I(e,t)}function S(e,t){var r;return d(t)||"string"===typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function E(e){return!e.ended&&(e.needReadable||e.length=C?e=C:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function A(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=O(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function D(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,N(e)}}function N(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(m("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?a.nextTick(R,e):R(e))}function R(e){m("emit readable"),e.emit("readable"),U(e)}function I(e,t){t.readingMore||(t.readingMore=!0,a.nextTick(M,e,t))}function M(e,t){var r=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=z(e,t.buffer,t.decoder),r);var r}function z(e,t,r){var n;return ei.length?i.length:e;if(s===i.length?a+=i:a+=i.slice(0,e),e-=s,0===e){s===i.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(s));break}++n}return t.length-=n,a}function W(e,t){var r=u.allocUnsafe(e),n=t.head,a=1;n.data.copy(r),e-=n.data.length;while(n=n.next){var i=n.data,s=e>i.length?i.length:e;if(i.copy(r,r.length-e,0,s),e-=s,0===e){s===i.length?(++a,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(s));break}++a}return t.length-=a,r}function V(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,a.nextTick(Y,t,e))}function Y(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function G(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return m("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?V(this):N(this),null;if(e=A(e,t),0===e&&t.ended)return 0===t.length&&V(this),null;var n,a=t.needReadable;return m("need readable",a),(0===t.length||t.length-e0?j(e,t):null,null===n?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&V(this)),null!==n&&this.emit("data",n),n},x.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},x.prototype.pipe=function(e,r){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,m("pipe count=%d opts=%j",i.pipesCount,r);var s=(!r||!1!==r.end)&&e!==t.stdout&&e!==t.stderr,l=s?c:w;function u(e,t){m("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,f())}function c(){m("onend"),e.end()}i.endEmitted?a.nextTick(l):n.once("end",l),e.on("unpipe",u);var h=P(n);e.on("drain",h);var d=!1;function f(){m("cleanup"),e.removeListener("close",y),e.removeListener("finish",v),e.removeListener("drain",h),e.removeListener("error",_),e.removeListener("unpipe",u),n.removeListener("end",c),n.removeListener("end",w),n.removeListener("data",g),d=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||h()}var p=!1;function g(t){m("ondata"),p=!1;var r=e.write(t);!1!==r||p||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==G(i.pipes,e))&&!d&&(m("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function _(t){m("onerror",t),w(),e.removeListener("error",_),0===o(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",v),w()}function v(){m("onfinish"),e.removeListener("close",y),w()}function w(){m("unpipe"),n.unpipe(e)}return n.on("data",g),b(e,"error",_),e.once("close",y),e.once("finish",v),e.emit("pipe",n),i.flowing||(m("pipe resume"),n.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i-1?a:i.nextTick;b.WritableState=v;var u=e("core-util-is");u.inherits=e("inherits");var c={deprecate:e("util-deprecate")},h=e("./internal/streams/stream"),d=e("safe-buffer").Buffer,f=n.Uint8Array||function(){};function p(e){return d.from(e)}function m(e){return d.isBuffer(e)||e instanceof f}var g,_=e("./internal/streams/destroy");function y(){}function v(t,r){o=o||e("./_stream_duplex"),t=t||{};var n=r instanceof o;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var a=t.highWaterMark,i=t.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:n&&(i||0===i)?i:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===t.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){O(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function b(t){if(o=o||e("./_stream_duplex"),!g.call(b,this)&&!(this instanceof o))return new b(t);this._writableState=new v(t,this),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),h.call(this)}function w(e,t){var r=new Error("write after end");e.emit("error",r),i.nextTick(t,r)}function x(e,t,r,n){var a=!0,s=!1;return null===r?s=new TypeError("May not write null values to stream"):"string"===typeof r||void 0===r||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),i.nextTick(n,s),a=!1),a}function k(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=d.from(t,r)),t}function T(e,t,r,n,a,i){if(!r){var s=k(t,n,a);n!==s&&(r=!0,a="buffer",n=s)}var o=t.objectMode?1:n.length;t.length+=o;var l=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,r){var n=this._writableState;"function"===typeof e?(r=e,e=null,t=null):"function"===typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||F(this,n,r)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=_.destroy,b.prototype._undestroy=_.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,e("_process"),"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":202,"./internal/streams/destroy":208,"./internal/streams/stream":209,_process:198,"core-util-is":118,inherits:138,"process-nextick-args":197,"safe-buffer":214,timers:219,"util-deprecate":220}],207:[function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=e("safe-buffer").Buffer,i=e("util");function s(e,t,r){e.copy(t,r)}t.exports=function(){function e(){n(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";var t=this.head,r=""+t.data;while(t=t.next)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return a.alloc(0);if(1===this.length)return this.head.data;var t=a.allocUnsafe(e>>>0),r=this.head,n=0;while(r)s(r.data,t,n),n+=r.data.length,r=r.next;return t},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":214,util:94}],208:[function(e,t,r){"use strict";var n=e("process-nextick-args");function a(e,t){var r=this,a=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return a||i?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(s,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(n.nextTick(s,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this)}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(e,t){e.emit("error",t)}t.exports={destroy:a,undestroy:i}},{"process-nextick-args":197}],209:[function(e,t,r){t.exports=e("events").EventEmitter},{events:123}],210:[function(e,t,r){t.exports=e("./readable").PassThrough},{"./readable":211}],211:[function(e,t,r){r=t.exports=e("./lib/_stream_readable.js"),r.Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":202,"./lib/_stream_passthrough.js":203,"./lib/_stream_readable.js":204,"./lib/_stream_transform.js":205,"./lib/_stream_writable.js":206}],212:[function(e,t,r){t.exports=e("./readable").Transform},{"./readable":211}],213:[function(e,t,r){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":206}],214:[function(e,t,r){var n=e("buffer"),a=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return a(e,t,r)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?t.exports=n:(i(n,r),r.Buffer=s),i(a,s),s.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},s.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=a(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return a(e)},s.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:96}],215:[function(e,t,r){(function(t){(function(r){r.parser=function(e,t){return new i(e,t)},r.SAXParser=i,r.SAXStream=h,r.createStream=c,r.MAX_BUFFER_LENGTH=65536;var n,a=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function i(e,t){if(!(this instanceof i))return new i(e,t);var n=this;o(n),n.q=n.c="",n.bufferCheckPosition=r.MAX_BUFFER_LENGTH,n.opt=t||{},n.opt.lowercase=n.opt.lowercase||n.opt.lowercasetags,n.looseCase=n.opt.lowercase?"toLowerCase":"toUpperCase",n.tags=[],n.closed=n.closedRoot=n.sawRoot=!1,n.tag=n.error=null,n.strict=!!e,n.noscript=!(!e&&!n.opt.noscript),n.state=E.BEGIN,n.strictEntities=n.opt.strictEntities,n.ENTITIES=n.strictEntities?Object.create(r.XML_ENTITIES):Object.create(r.ENTITIES),n.attribList=[],n.opt.xmlns&&(n.ns=Object.create(g)),n.trackPosition=!1!==n.opt.position,n.trackPosition&&(n.position=n.line=n.column=0),O(n,"onready")}function s(e){for(var t=Math.max(r.MAX_BUFFER_LENGTH,10),n=0,i=0,s=a.length;it)switch(a[i]){case"textNode":D(e);break;case"cdata":A(e,"oncdata",e.cdata),e.cdata="";break;case"script":A(e,"onscript",e.script),e.script="";break;default:R(e,"Max buffer length exceeded: "+a[i])}n=Math.max(n,o)}var l=r.MAX_BUFFER_LENGTH-n;e.bufferCheckPosition=l+e.position}function o(e){for(var t=0,r=a.length;t"===e||w(e)}function T(e,t){return e.test(t)}function S(e,t){return!T(e,t)}var E=0;for(var C in r.STATE={BEGIN:E++,BEGIN_WHITESPACE:E++,TEXT:E++,TEXT_ENTITY:E++,OPEN_WAKA:E++,SGML_DECL:E++,SGML_DECL_QUOTED:E++,DOCTYPE:E++,DOCTYPE_QUOTED:E++,DOCTYPE_DTD:E++,DOCTYPE_DTD_QUOTED:E++,COMMENT_STARTING:E++,COMMENT:E++,COMMENT_ENDING:E++,COMMENT_ENDED:E++,CDATA:E++,CDATA_ENDING:E++,CDATA_ENDING_2:E++,PROC_INST:E++,PROC_INST_BODY:E++,PROC_INST_ENDING:E++,OPEN_TAG:E++,OPEN_TAG_SLASH:E++,ATTRIB:E++,ATTRIB_NAME:E++,ATTRIB_NAME_SAW_WHITE:E++,ATTRIB_VALUE:E++,ATTRIB_VALUE_QUOTED:E++,ATTRIB_VALUE_CLOSED:E++,ATTRIB_VALUE_UNQUOTED:E++,ATTRIB_VALUE_ENTITY_Q:E++,ATTRIB_VALUE_ENTITY_U:E++,CLOSE_TAG:E++,CLOSE_TAG_SAW_WHITE:E++,SCRIPT:E++,SCRIPT_ENDING:E++},r.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},r.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(r.ENTITIES).forEach((function(e){var t=r.ENTITIES[e],n="number"===typeof t?String.fromCharCode(t):t;r.ENTITIES[e]=n})),r.STATE)r.STATE[r.STATE[C]]=C;function O(e,t,r){e[t]&&e[t](r)}function A(e,t,r){e.textNode&&D(e),O(e,t,r)}function D(e){e.textNode=N(e.opt,e.textNode),e.textNode&&O(e,"ontext",e.textNode),e.textNode=""}function N(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function R(e,t){return D(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,O(e,"onerror",t),e}function I(e){return e.sawRoot&&!e.closedRoot&&M(e,"Unclosed root tag"),e.state!==E.BEGIN&&e.state!==E.BEGIN_WHITESPACE&&e.state!==E.TEXT&&R(e,"Unexpected end"),D(e),e.c="",e.closed=!0,O(e,"onend"),i.call(e,e.strict,e.opt),e}function M(e,t){if("object"!==typeof e||!(e instanceof i))throw new Error("bad call to strictFail");e.strict&&R(e,t)}function P(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,r=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(r.ns=t.ns),e.attribList.length=0,A(e,"onopentagstart",r)}function F(e,t){var r=e.indexOf(":"),n=r<0?["",e]:e.split(":"),a=n[0],i=n[1];return t&&"xmlns"===e&&(a="xmlns",i=""),{prefix:a,local:i}}function L(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=F(e.attribName,!0),r=t.prefix,n=t.local;if("xmlns"===r)if("xml"===n&&e.attribValue!==p)M(e,"xml: prefix must be bound to "+p+"\nActual: "+e.attribValue);else if("xmlns"===n&&e.attribValue!==m)M(e,"xmlns: prefix must be bound to "+m+"\nActual: "+e.attribValue);else{var a=e.tag,i=e.tags[e.tags.length-1]||e;a.ns===i.ns&&(a.ns=Object.create(i.ns)),a.ns[n]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,A(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function B(e,t){if(e.opt.xmlns){var r=e.tag,n=F(e.tagName);r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(M(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),r.uri=n.prefix);var a=e.tags[e.tags.length-1]||e;r.ns&&a.ns!==r.ns&&Object.keys(r.ns).forEach((function(t){A(e,"onopennamespace",{prefix:t,uri:r.ns[t]})}));for(var i=0,s=e.attribList.length;i",e.tagName="",void(e.state=E.SCRIPT);A(e,"onscript",e.script),e.script=""}var t=e.tags.length,r=e.tagName;e.strict||(r=r[e.looseCase]());var n=r;while(t--){var a=e.tags[t];if(a.name===n)break;M(e,"Unexpected close tag")}if(t<0)return M(e,"Unmatched closing tag: "+e.tagName),e.textNode+="",void(e.state=E.TEXT);e.tagName=r;var i=e.tags.length;while(i-- >t){var s=e.tag=e.tags.pop();e.tagName=e.tag.name,A(e,"onclosetag",e.tagName);var o={};for(var l in s.ns)o[l]=s.ns[l];var u=e.tags[e.tags.length-1]||e;e.opt.xmlns&&s.ns!==u.ns&&Object.keys(s.ns).forEach((function(t){var r=s.ns[t];A(e,"onclosenamespace",{prefix:t,uri:r})}))}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=E.TEXT}function j(e){var t,r=e.entity,n=r.toLowerCase(),a="";return e.ENTITIES[r]?e.ENTITIES[r]:e.ENTITIES[n]?e.ENTITIES[n]:(r=n,"#"===r.charAt(0)&&("x"===r.charAt(1)?(r=r.slice(2),t=parseInt(r,16),a=t.toString(16)):(r=r.slice(1),t=parseInt(r,10),a=t.toString(10))),r=r.replace(/^0+/,""),isNaN(t)||a.toLowerCase()!==r?(M(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function z(e,t){"<"===t?(e.state=E.OPEN_WAKA,e.startTagPosition=e.position):w(t)||(M(e,"Non-whitespace before first tag."),e.textNode=t,e.state=E.TEXT)}function H(e,t){var r="";return t"===n?(A(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=E.TEXT):x(n)?(t.state=E.SGML_DECL_QUOTED,t.sgmlDecl+=n):t.sgmlDecl+=n;continue;case E.SGML_DECL_QUOTED:n===t.q&&(t.state=E.SGML_DECL,t.q=""),t.sgmlDecl+=n;continue;case E.DOCTYPE:">"===n?(t.state=E.TEXT,A(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=n,"["===n?t.state=E.DOCTYPE_DTD:x(n)&&(t.state=E.DOCTYPE_QUOTED,t.q=n));continue;case E.DOCTYPE_QUOTED:t.doctype+=n,n===t.q&&(t.q="",t.state=E.DOCTYPE);continue;case E.DOCTYPE_DTD:t.doctype+=n,"]"===n?t.state=E.DOCTYPE:x(n)&&(t.state=E.DOCTYPE_DTD_QUOTED,t.q=n);continue;case E.DOCTYPE_DTD_QUOTED:t.doctype+=n,n===t.q&&(t.state=E.DOCTYPE_DTD,t.q="");continue;case E.COMMENT:"-"===n?t.state=E.COMMENT_ENDING:t.comment+=n;continue;case E.COMMENT_ENDING:"-"===n?(t.state=E.COMMENT_ENDED,t.comment=N(t.opt,t.comment),t.comment&&A(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+n,t.state=E.COMMENT);continue;case E.COMMENT_ENDED:">"!==n?(M(t,"Malformed comment"),t.comment+="--"+n,t.state=E.COMMENT):t.state=E.TEXT;continue;case E.CDATA:"]"===n?t.state=E.CDATA_ENDING:t.cdata+=n;continue;case E.CDATA_ENDING:"]"===n?t.state=E.CDATA_ENDING_2:(t.cdata+="]"+n,t.state=E.CDATA);continue;case E.CDATA_ENDING_2:">"===n?(t.cdata&&A(t,"oncdata",t.cdata),A(t,"onclosecdata"),t.cdata="",t.state=E.TEXT):"]"===n?t.cdata+="]":(t.cdata+="]]"+n,t.state=E.CDATA);continue;case E.PROC_INST:"?"===n?t.state=E.PROC_INST_ENDING:w(n)?t.state=E.PROC_INST_BODY:t.procInstName+=n;continue;case E.PROC_INST_BODY:if(!t.procInstBody&&w(n))continue;"?"===n?t.state=E.PROC_INST_ENDING:t.procInstBody+=n;continue;case E.PROC_INST_ENDING:">"===n?(A(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=E.TEXT):(t.procInstBody+="?"+n,t.state=E.PROC_INST_BODY);continue;case E.OPEN_TAG:T(y,n)?t.tagName+=n:(P(t),">"===n?B(t):"/"===n?t.state=E.OPEN_TAG_SLASH:(w(n)||M(t,"Invalid character in tag name"),t.state=E.ATTRIB));continue;case E.OPEN_TAG_SLASH:">"===n?(B(t,!0),U(t)):(M(t,"Forward-slash in opening tag not followed by >"),t.state=E.ATTRIB);continue;case E.ATTRIB:if(w(n))continue;">"===n?B(t):"/"===n?t.state=E.OPEN_TAG_SLASH:T(_,n)?(t.attribName=n,t.attribValue="",t.state=E.ATTRIB_NAME):M(t,"Invalid attribute name");continue;case E.ATTRIB_NAME:"="===n?t.state=E.ATTRIB_VALUE:">"===n?(M(t,"Attribute without value"),t.attribValue=t.attribName,L(t),B(t)):w(n)?t.state=E.ATTRIB_NAME_SAW_WHITE:T(y,n)?t.attribName+=n:M(t,"Invalid attribute name");continue;case E.ATTRIB_NAME_SAW_WHITE:if("="===n)t.state=E.ATTRIB_VALUE;else{if(w(n))continue;M(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",A(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",">"===n?B(t):T(_,n)?(t.attribName=n,t.state=E.ATTRIB_NAME):(M(t,"Invalid attribute name"),t.state=E.ATTRIB)}continue;case E.ATTRIB_VALUE:if(w(n))continue;x(n)?(t.q=n,t.state=E.ATTRIB_VALUE_QUOTED):(M(t,"Unquoted attribute value"),t.state=E.ATTRIB_VALUE_UNQUOTED,t.attribValue=n);continue;case E.ATTRIB_VALUE_QUOTED:if(n!==t.q){"&"===n?t.state=E.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=n;continue}L(t),t.q="",t.state=E.ATTRIB_VALUE_CLOSED;continue;case E.ATTRIB_VALUE_CLOSED:w(n)?t.state=E.ATTRIB:">"===n?B(t):"/"===n?t.state=E.OPEN_TAG_SLASH:T(_,n)?(M(t,"No whitespace between attributes"),t.attribName=n,t.attribValue="",t.state=E.ATTRIB_NAME):M(t,"Invalid attribute name");continue;case E.ATTRIB_VALUE_UNQUOTED:if(!k(n)){"&"===n?t.state=E.ATTRIB_VALUE_ENTITY_U:t.attribValue+=n;continue}L(t),">"===n?B(t):t.state=E.ATTRIB;continue;case E.CLOSE_TAG:if(t.tagName)">"===n?U(t):T(y,n)?t.tagName+=n:t.script?(t.script+=""===n?U(t):M(t,"Invalid characters in closing tag");continue;case E.TEXT_ENTITY:case E.ATTRIB_VALUE_ENTITY_Q:case E.ATTRIB_VALUE_ENTITY_U:var o,l;switch(t.state){case E.TEXT_ENTITY:o=E.TEXT,l="textNode";break;case E.ATTRIB_VALUE_ENTITY_Q:o=E.ATTRIB_VALUE_QUOTED,l="attribValue";break;case E.ATTRIB_VALUE_ENTITY_U:o=E.ATTRIB_VALUE_UNQUOTED,l="attribValue";break}";"===n?(t[l]+=j(t),t.entity="",t.state=o):T(t.entity.length?b:v,n)?t.entity+=n:(M(t,"Invalid character in entity name"),t[l]+="&"+t.entity+n,t.entity="",t.state=o);continue;default:throw new Error(t,"Unknown state: "+t.state)}}return t.position>=t.bufferCheckPosition&&s(t),t}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */E=r.STATE,String.fromCodePoint||function(){var e=String.fromCharCode,t=Math.floor,r=function(){var r,n,a=16384,i=[],s=-1,o=arguments.length;if(!o)return"";var l="";while(++s1114111||t(u)!==u)throw RangeError("Invalid code point: "+u);u<=65535?i.push(u):(u-=65536,r=55296+(u>>10),n=u%1024+56320,i.push(r,n)),(s+1===o||i.length>a)&&(l+=e.apply(null,i),i.length=0)}return l};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:r,configurable:!0,writable:!0}):String.fromCodePoint=r}()})("undefined"===typeof r?this.sax={}:r)}).call(this,e("buffer").Buffer)},{buffer:96,stream:216,string_decoder:218}],216:[function(e,t,r){t.exports=i;var n=e("events").EventEmitter,a=e("inherits");function i(){n.call(this)}a(i,n),i.Readable=e("readable-stream/readable.js"),i.Writable=e("readable-stream/writable.js"),i.Duplex=e("readable-stream/duplex.js"),i.Transform=e("readable-stream/transform.js"),i.PassThrough=e("readable-stream/passthrough.js"),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function a(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",a),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",o),r.on("close",l));var s=!1;function o(){s||(s=!0,e.end())}function l(){s||(s=!0,"function"===typeof e.destroy&&e.destroy())}function u(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",a),e.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",l),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",u),e.on("error",u),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},{events:123,inherits:138,"readable-stream/duplex.js":201,"readable-stream/passthrough.js":210,"readable-stream/readable.js":211,"readable-stream/transform.js":212,"readable-stream/writable.js":213}],217:[function(t,r,n){(function(){"use strict";function a(e,t,r,n){var a;"undefined"===typeof JSON?function(){function e(e){return e<10?"0"+e:e}var r=t.tester().isString().isNumber().isBoolean().tester();function n(n){return t.isDate(n)?isFinite(n.valueOf())?n.getUTCFullYear()+"-"+e(n.getUTCMonth()+1)+"-"+e(n.getUTCDate())+"T"+e(n.getUTCHours())+":"+e(n.getUTCMinutes())+":"+e(n.getUTCSeconds())+"Z":null:r(n)?n.valueOf():n}var i,s,o,l=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,u={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function c(e){return l.lastIndex=0,l.test(e)?'"'+e.replace(l,(function(e){var t=u[e];return"string"===typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function h(e,t){var r,a,l,u,d,f=i,p=t[e];switch(p&&(p=n(p)),"function"===typeof o&&(p=o.call(t,e,p)),typeof p){case"string":return c(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(i+=s,d=[],"[object Array]"===Object.prototype.toString.apply(p)){for(u=p.length,r=0;r0?"+":"")+n),l&&(l=parseInt(l,10),n=n.lengthr)if(n){var i=e.length;a=e.substring(i-r,i)}else a=e.substring(0,r)}else a=_(""+a,r);return a}function y(e,n){if(n instanceof Array){var u=0,c=n.length;return e.replace(o,(function(e,t,i){var s,o;if(!(u0?r=e.replace(/\s+/g,"").split(t):r.push(e)),r}function b(e,t){var r=[];if(t)for(var n=0;n>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function u(e,t,r){var n=t.length-1;if(n=0?(a>0&&(e.lastNeed=a-1),a):--n=0?(a>0&&(e.lastNeed=a-2),a):--n=0?(a>0&&(2===a?a=0:e.lastNeed=a-3),a):0))}function c(e,t,r){if(128!==(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"�"}}function h(e){var t=this.lastTotal-this.lastNeed,r=c(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function d(e,t){var r=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function _(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}r.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r.setImmediate="function"===typeof t?t:function(e){var t=l++,n=!(arguments.length<2)&&s.call(arguments,1);return o[t]=!0,a((function(){o[t]&&(n?e.apply(null,n):e.call(null),r.clearImmediate(t))})),t},r.clearImmediate="function"===typeof n?n:function(e){delete o[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":198,timers:219}],220:[function(e,r,n){(function(e){function t(e,t){if(n("noDeprecation"))return e;var r=!1;function a(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return a}function n(t){try{if(!e.localStorage)return!1}catch(n){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}r.exports=t}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],221:[function(e,t,r){t.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},{}],222:[function(e,r,n){(function(t,r){var a=/%[sdj%]/g;n.format=function(e){if(!x(e)){for(var t=[],r=0;r=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return e}})),l=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(t)?r.showHidden=t:t&&n._extend(r,t),T(r.showHidden)&&(r.showHidden=!1),T(r.depth)&&(r.depth=2),T(r.colors)&&(r.colors=!1),T(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),h(r,e,r.depth)}function l(e,t){var r=o.styles[t];return r?"["+o.colors[r][0]+"m"+e+"["+o.colors[r][1]+"m":e}function u(e,t){return e}function c(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}function h(e,t,r){if(e.customInspect&&t&&A(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var a=t.inspect(r,e);return x(a)||(a=h(e,a,r)),a}var i=d(e,t);if(i)return i;var s=Object.keys(t),o=c(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),O(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(t);if(0===s.length){if(A(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(S(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(C(t))return e.stylize(Date.prototype.toString.call(t),"date");if(O(t))return f(t)}var u,y="",v=!1,b=["{","}"];if(_(t)&&(v=!0,b=["[","]"]),A(t)){var w=t.name?": "+t.name:"";y=" [Function"+w+"]"}return S(t)&&(y=" "+RegExp.prototype.toString.call(t)),C(t)&&(y=" "+Date.prototype.toUTCString.call(t)),O(t)&&(y=" "+f(t)),0!==s.length||v&&0!=t.length?r<0?S(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=v?p(e,t,r,o,s):s.map((function(n){return m(e,t,r,o,n,v)})),e.seen.pop(),g(u,y,b)):b[0]+y+b[1]}function d(e,t){if(T(t))return e.stylize("undefined","undefined");if(x(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return w(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,r,n,a){for(var i=[],s=0,o=t.length;s-1&&(o=i?o.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+o.split("\n").map((function(e){return" "+e})).join("\n"))):o=e.stylize("[Circular]","special")),T(s)){if(i&&a.match(/^\d+$/))return o;s=JSON.stringify(""+a),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+o}function g(e,t,r){var n=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return n>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function _(e){return Array.isArray(e)}function y(e){return"boolean"===typeof e}function v(e){return null===e}function b(e){return null==e}function w(e){return"number"===typeof e}function x(e){return"string"===typeof e}function k(e){return"symbol"===typeof e}function T(e){return void 0===e}function S(e){return E(e)&&"[object RegExp]"===N(e)}function E(e){return"object"===typeof e&&null!==e}function C(e){return E(e)&&"[object Date]"===N(e)}function O(e){return E(e)&&("[object Error]"===N(e)||e instanceof Error)}function A(e){return"function"===typeof e}function D(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function N(e){return Object.prototype.toString.call(e)}function R(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(T(i)&&(i=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var r=t.pid;s[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else s[e]=function(){};return s[e]},n.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=_,n.isBoolean=y,n.isNull=v,n.isNullOrUndefined=b,n.isNumber=w,n.isString=x,n.isSymbol=k,n.isUndefined=T,n.isRegExp=S,n.isObject=E,n.isDate=C,n.isError=O,n.isFunction=A,n.isPrimitive=D,n.isBuffer=e("./support/isBuffer");var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function M(){var e=new Date,t=[R(e.getHours()),R(e.getMinutes()),R(e.getSeconds())].join(":");return[e.getDate(),I[e.getMonth()],t].join(" ")}function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){console.log("%s - %s",M(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!E(t))return e;var r=Object.keys(t),n=r.length;while(n--)e[r[n]]=t[r[n]];return e}}).call(this,e("_process"),"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./support/isBuffer":221,_process:198,inherits:138}]},{},[13])(13)}))}).call(this,r("c8ba"))},"294b":function(e,t,r){(function(t){r("ac1f"),r("5319");var n="object"===typeof window&&window.window===window?window:"object"===typeof self&&self.self===self?self:"object"===typeof t&&t.global===t?t:this;function a(e,t){return"undefined"===typeof t?t={autoBom:!1}:"object"!==typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}function i(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){l(n.response,t,r)},n.onerror=function(){console.error("could not download file")},n.send()}function s(e){var t=new XMLHttpRequest;return t.open("HEAD",e,!1),t.send(),t.status>=200&&t.status<=299}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var l=n.saveAs||("object"!==typeof window||window!==n?function(){}:"download"in HTMLAnchorElement.prototype?function(e,t,r){var a=n.URL||n.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"===typeof e?(l.href=e,l.origin!==location.origin?s(l.href)?i(e,t,r):o(l,l.target="_blank"):o(l)):(l.href=a.createObjectURL(e),setTimeout((function(){a.revokeObjectURL(l.href)}),4e4),setTimeout((function(){o(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download","string"===typeof e)if(s(e))i(e,t,r);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout((function(){o(n)}))}else navigator.msSaveOrOpenBlob(a(e,r),t)}:function(e,t,r,a){if(a=a||open("","_blank"),a&&(a.document.title=a.document.body.innerText="downloading..."),"string"===typeof e)return i(e,t,r);var s="application/octet-stream"===e.type,o=/constructor/i.test(n.HTMLElement)||n.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||s&&o)&&"object"===typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=e:location=e,a=null},u.readAsDataURL(e)}else{var c=n.URL||n.webkitURL,h=c.createObjectURL(e);a?a.location=h:location.href=h,a=null,setTimeout((function(){c.revokeObjectURL(h)}),4e4)}});n.saveAs=l.saveAs=l,e.exports=l}).call(this,r("c8ba"))},"56d7":function(e,t,r){"use strict";r.r(t);var n=r("2b0e"),a=r("a7fe"),i=r.n(a),s=r("bc3a"),o=r.n(s);switch("production"){case"development":o.a.defaults.baseURL="http://192.168.76.112//_api_server_vue/index.php";break;case"production":o.a.defaults.baseURL="http://192.168.76.100:81//_api_server_vue/index.php";break}o.a.defaults.method="POST",o.a.defaults.headers.common["Authorization"]="*",n["a"].use(i.a,o.a);var l=r("7496"),u=r("f6c4"),c=function(){var e=this,t=e._self._c;return t(l["a"],[t(u["a"],[t("router-view")],1)],1)},h=[],d={name:"App",data:()=>({}),mounted(){}},f=d,p=(r("e686"),r("2877")),m=Object(p["a"])(f,c,h,!1,null,null,null),g=m.exports,_=r("2f62"),y=(r("4d63"),r("ac1f"),r("5319"),r("f2ef"));function v(e,t){let r=[];return"expand"===t&&r.push({text:"",value:"data-table-expand",divider:!0}),y["a"].each(y["a"].keys(y["a"].first(e)),(function(e){r.push({text:e,value:e})})),r}function b(e,t){const r=7.5;var n=document.createElement("canvas"),a=n.getContext("2d");if(a){var i=[];e.eachRow((function(e,r){re.data,loading:e=>e.loading},mutations:{set_data(e,t){e.data.stat=t},set_data_info(e,t){e.data.statInfo=t,e.data.headers=v(e.data.statInfo)},set_loading(e,t){e.loading=t},resetState(e){Object.assign(e,JSON.parse(JSON.stringify(w)))}},actions:{addData(e,t){return o()({data:{params:{flag:"statAdd",data:t}}}).then(()=>{}).catch(e=>{console.log(e)}).finally(()=>{})},getData(e){return e.commit("set_loading",!0),o()({data:{params:{flag:"statGet"}}}).then(t=>{const r=t.data;0!==r.length?e.commit("set_data",r):e.commit("resetState")}).catch(t=>{e.commit("set_loading",!1),console.log(t)}).finally(()=>{e.commit("set_loading",!1)})},getDataInfo(e,t){return e.commit("set_loading",!0),o()({data:{params:{flag:"statGetInfo",data:t}}}).then(t=>{const r=t.data;0!==r.length?e.commit("set_data_info",r):e.commit("resetState")}).catch(t=>{e.commit("set_loading",!1),console.log(t)}).finally(()=>{e.commit("set_loading",!1)})}}};const T={services:{all:[],filter:[],count:[],current:[],default:[],id:1},departments:{all:[],current:[],default:[],count:[],show_all:!1},crews:{all:[],current:[],default:[],count:[],show_all:!1},persons:{all:[],current:[],count:[],show_all:!1},defaultFilters:{service:1,department:1,crew:1},filters:[],loading:!1},S=JSON.parse(JSON.stringify(T));var E={namespaced:!0,state:S,getters:{services:e=>(y["a"].each(e.services.all,(function(t,r){e.services.all[r].disabled=!1,y["a"].isUndefined(y["a"].values(y["a"].pick(e.services.count,t.SERVICE))[0])?y["a"].extend(e.services.all[r],{disabled:!0,COUNT:"0"}):y["a"].extend(e.services.all[r],{COUNT:y["a"].values(y["a"].pick(e.services.count,t.SERVICE))[0]})})),e.services),departments:e=>e.departments,crews:e=>e.crews,persons:e=>e.persons,loading:e=>e.loading},mutations:{set_services(e,t){e.services.id=e.filters.service,e.services.all=t,e.services.default=y["a"].indexOf(y["a"].pluck(e.services.all,"ID_SERVICE"),e.services.id)},set_departments(e,t){e.departments.default=e.filters.department,e.departments.show_all=e.filters.all_departments,e.departments.all=t,e.departments.current=y["a"].where(e.departments.all,{ID_SERVICE:e.services.id})},set_crews(e,t){e.crews.default=e.filters.crew,e.crews.show_all=e.filters.all_crews,e.crews.all=t,e.crews.current=y["a"].where(e.crews.all,{ID_DEPARTMENT:e.departments.default})},set_persons(e,t){const r=y["a"].countBy(t,(function(e){return y["a"].isNull(e.DATE_IN)?"out":"in"}));e.persons.count=r,e.persons.all=t,e.services.count=y["a"].countBy(e.persons.all,"SERVICE"),e.persons.show_all=e.filters.all_persons,e.persons.show_all?(e.departments.show_all=!0,e.crews.show_all=!0,this.commit("prohodnaya/get_persons","persons")):e.departments.show_all&!e.crews.show_all?(e.crews.count=y["a"].countBy(y["a"].where(e.persons.all,{SERVICE:y["a"].where(e.services.all,{ID_SERVICE:e.services.id})[0].SERVICE}),"CREW"),y["a"].each(e.crews.all,(function(t,r){e.crews.all[r].disabled=!1,y["a"].isUndefined(y["a"].values(y["a"].pick(e.crews.count,t.CREW_DESC))[0])?y["a"].extend(e.crews.all[r],{disabled:!0,COUNT:"0"}):y["a"].extend(e.crews.all[r],{COUNT:y["a"].values(y["a"].pick(e.crews.count,t.CREW_DESC))[0]})})),this.commit("prohodnaya/get_persons","service_crew")):!e.departments.show_all&e.crews.show_all?(this.commit("prohodnaya/get_all_counts"),this.commit("prohodnaya/get_persons","service_department")):e.departments.show_all&e.crews.show_all?this.commit("prohodnaya/get_persons","service"):(this.commit("prohodnaya/get_all_counts"),e.crews.default=y["a"].first(y["a"].where(e.crews.current,{disabled:!1})).CREW,this.commit("prohodnaya/get_persons"))},set_loading(e,t){e.loading=t},change_service(e,t){e.services.id=t,this.commit("prohodnaya/get_departments"),this.commit("prohodnaya/get_crews"),e.crews.show_all&&!e.departments.show_all?this.commit("prohodnaya/all_departments"):!e.crews.show_all&&e.departments.show_all?this.commit("prohodnaya/all_crews"):e.departments.show_all&&e.crews.show_all?this.commit("prohodnaya/get_persons","service"):e.departments.show_all||e.crews.show_all||(this.commit("prohodnaya/get_departments"),this.commit("prohodnaya/get_crews"),this.commit("prohodnaya/get_persons")),this.commit("prohodnaya/save_filters")},change_department(e,t){e.departments.default=t,e.crews.show_all?this.commit("prohodnaya/all_departments"):(this.commit("prohodnaya/get_crews"),this.commit("prohodnaya/get_persons"),this.commit("prohodnaya/save_filters"))},change_crew(e,t){e.crews.default=t,e.departments.show_all?this.commit("prohodnaya/all_crews"):(this.commit("prohodnaya/get_persons"),this.commit("prohodnaya/save_filters"))},all_departments(e,t){e.departments.show_all=t,e.persons.show_all=!1,this.commit("prohodnaya/save_filters"),e.crews.current=y["a"].where(e.crews.all,{SERVICE:y["a"].where(e.services.all,{ID_SERVICE:e.services.id})[0].SERVICE}),e.departments.current=y["a"].where(e.departments.all,{ID_SERVICE:e.services.id}),e.departments.show_all&!e.crews.show_all?(e.crews.count=y["a"].countBy(y["a"].where(e.persons.all,{SERVICE:y["a"].where(e.services.all,{ID_SERVICE:e.services.id})[0].SERVICE}),"CREW"),y["a"].each(e.crews.all,(function(t,r){e.crews.all[r].disabled=!1,y["a"].isUndefined(y["a"].values(y["a"].pick(e.crews.count,t.CREW_DESC))[0])?y["a"].extend(e.crews.all[r],{disabled:!0,COUNT:"0"}):y["a"].extend(e.crews.all[r],{COUNT:y["a"].values(y["a"].pick(e.crews.count,t.CREW_DESC))[0]})})),e.crews.default=y["a"].first(y["a"].where(e.crews.current,{disabled:!1})).CREW,this.commit("prohodnaya/get_persons","service_crew")):!e.departments.show_all&e.crews.show_all?(this.commit("prohodnaya/get_all_counts"),this.commit("prohodnaya/get_persons","service_department")):e.departments.show_all&e.crews.show_all?this.commit("prohodnaya/get_persons","service"):(this.commit("prohodnaya/get_all_counts"),e.crews.default=y["a"].first(y["a"].where(e.crews.current,{disabled:!1})).CREW,this.commit("prohodnaya/get_persons"))},all_crews(e,t){e.crews.show_all=t,e.persons.show_all=!1,this.commit("prohodnaya/save_filters"),e.crews.current=y["a"].where(e.crews.all,{SERVICE:y["a"].where(e.services.all,{ID_SERVICE:e.services.id})[0].SERVICE}),e.departments.show_all&!e.crews.show_all?(e.crews.count=y["a"].countBy(y["a"].where(e.persons.all,{SERVICE:y["a"].where(e.services.all,{ID_SERVICE:e.services.id})[0].SERVICE}),"CREW"),y["a"].each(e.crews.all,(function(t,r){e.crews.all[r].disabled=!1,y["a"].isUndefined(y["a"].values(y["a"].pick(e.crews.count,t.CREW_DESC))[0])?y["a"].extend(e.crews.all[r],{disabled:!0,COUNT:"0"}):y["a"].extend(e.crews.all[r],{COUNT:y["a"].values(y["a"].pick(e.crews.count,t.CREW_DESC))[0]})})),this.commit("prohodnaya/get_persons","service_crew")):!e.departments.show_all&e.crews.show_all?this.commit("prohodnaya/get_persons","service_department"):e.departments.show_all&e.crews.show_all?(console.log("all_crew_3"),this.commit("prohodnaya/get_persons","service")):(this.commit("prohodnaya/get_all_counts"),e.crews.default=y["a"].first(y["a"].where(e.crews.current,{disabled:!1})).CREW,this.commit("prohodnaya/get_persons"))},all_persons(e,t){e.persons.show_all=t,e.services.default=y["a"].indexOf(y["a"].pluck(e.services.all,"ID_SERVICE"),e.services.id),e.persons.show_all?(e.departments.show_all=!0,e.crews.show_all=!0,this.commit("prohodnaya/get_persons","persons")):(e.departments.show_all=!1,e.crews.show_all=!1,this.commit("prohodnaya/all_departments")),this.commit("prohodnaya/save_filters")},get_departments(e){this.commit("prohodnaya/get_all_counts"),e.departments.current=y["a"].where(e.departments.all,{ID_SERVICE:e.services.id}),e.departments.default=y["a"].first(y["a"].where(e.departments.current,{disabled:!1})).ID_DEPARTMENT},get_crews(e){this.commit("prohodnaya/get_all_counts"),e.crews.current=y["a"].where(e.crews.all,{ID_DEPARTMENT:e.departments.default}),e.crews.default=y["a"].first(y["a"].where(e.crews.current,{disabled:!1})).CREW},get_all_counts(e){e.departments.count=y["a"].countBy(y["a"].where(e.persons.all,{SERVICE:y["a"].where(e.services.all,{ID_SERVICE:e.services.id})[0].SERVICE}),"DEPARTMENT"),y["a"].each(e.departments.all,(function(t,r){e.departments.all[r].disabled=!1,y["a"].isUndefined(y["a"].values(y["a"].pick(e.departments.count,t.DEPARTMENT))[0])?y["a"].extend(e.departments.all[r],{disabled:!0,COUNT:"0"}):y["a"].extend(e.departments.all[r],{COUNT:y["a"].values(y["a"].pick(e.departments.count,t.DEPARTMENT))[0]})})),e.crews.count=y["a"].countBy(y["a"].where(e.persons.all,{SERVICE:y["a"].where(e.services.all,{ID_SERVICE:e.services.id})[0].SERVICE,DEPARTMENT:y["a"].where(e.departments.all,{ID_DEPARTMENT:e.departments.default})[0].DEPARTMENT}),"CREW"),y["a"].each(e.crews.all,(function(t,r){e.crews.all[r].disabled=!1,y["a"].isUndefined(y["a"].values(y["a"].pick(e.crews.count,t.CREW_DESC))[0])?y["a"].extend(e.crews.all[r],{disabled:!0,COUNT:"0"}):y["a"].extend(e.crews.all[r],{COUNT:y["a"].values(y["a"].pick(e.crews.count,t.CREW_DESC))[0]})}))},get_persons(e,t){switch(t){case"service_crew":e.persons.current=y["a"].where(e.persons.all,{SERVICE:y["a"].where(e.services.all,{ID_SERVICE:e.services.id})[0].SERVICE,ID_CREW:e.crews.default});break;case"service_department":e.persons.current=y["a"].where(e.persons.all,{SERVICE:y["a"].where(e.services.all,{ID_SERVICE:e.services.id})[0].SERVICE,DEPARTMENT:y["a"].where(e.departments.all,{ID_DEPARTMENT:e.departments.default})[0].DEPARTMENT});break;case"service":e.persons.current=y["a"].where(e.persons.all,{SERVICE:y["a"].where(e.services.all,{ID_SERVICE:e.services.id})[0].SERVICE});break;case"persons":e.persons.current=e.persons.all;break;default:e.persons.current=y["a"].where(e.persons.all,{SERVICE:y["a"].where(e.services.all,{ID_SERVICE:e.services.id})[0].SERVICE,DEPARTMENT:y["a"].where(e.departments.all,{ID_DEPARTMENT:e.departments.default})[0].DEPARTMENT,ID_CREW:e.crews.default});break}},save_filters(e){const t={service:parseInt(e.services.id),department:parseInt(e.departments.default),crew:parseInt(e.crews.default),all_departments:e.departments.show_all,all_crews:e.crews.show_all,all_persons:e.persons.show_all};localStorage.setItem("prohodnaya",JSON.stringify(t))},load_filters(e){localStorage.getItem("prohodnaya")?e.filters=JSON.parse(localStorage.getItem("prohodnaya")):e.filters=e.defaultFilters},resetState(e){Object.assign(e,JSON.parse(JSON.stringify(T)))}},actions:{get_allData(e,t){e.commit("set_loading",!0);const r=o()({data:{params:{flag:"get_services"}}}),n=o()({data:{params:{flag:"get_departments"}}}),a=o()({data:{params:{flag:"get_crews"}}}),i=o()({data:{params:{flag:"get_persons",date:t}}});o.a.all([r,n,a,i]).then(o.a.spread((...t)=>{const r=t[0].data,n=t[1].data,a=t[2].data,i=t[3].data;e.commit("load_filters"),0!==i.length?(e.commit("set_services",r),e.commit("set_departments",n),e.commit("set_crews",a),e.commit("set_persons",i)):e.commit("resetState")})).catch(t=>{e.commit("set_loading",!1),console.log(t)}).finally(()=>{e.commit("set_loading",!1)})},get_persons(e,t){e.commit("set_loading",!0),o()({data:{params:{flag:"get_persons",date:t}}}).then(t=>{const r=t.data;0!==r.length?e.commit("set_persons",r):e.commit("resetState")}).catch(t=>{e.commit("set_loading",!1),console.log(t)}).finally(()=>{e.commit("set_loading",!1)})}}};const C={data:{temperature:[]},loading:!1},O=JSON.parse(JSON.stringify(C));var A={namespaced:!0,state:O,getters:{data:e=>e.data,loading:e=>e.loading},mutations:{set_data(e,t){e.data.temperature=t},set_loading(e,t){e.loading=t},resetState(e){Object.assign(e,JSON.parse(JSON.stringify(C)))}},actions:{getData(e,t){e.commit("set_loading",!0),o()({data:{params:{flag:"getData",dateStart:t[0],dateEnd:t[1]}}}).then(t=>{const r=t.data;0!==r.length?e.commit("set_data",r):e.commit("resetState")}).catch(t=>{e.commit("set_loading",!1),console.log(t)}).finally(()=>{e.commit("set_loading",!1)})}}};const D={data:{tundishHeats:{headers:[],items:[]},tundishValues:{headers:[],items:[]}},loading:!1},N=JSON.parse(JSON.stringify(D));var R={namespaced:!0,state:N,getters:{data:e=>e.data,loading:e=>e.loading},mutations:{set_data(e,t){e.data.tundishHeats.items=t.tundishHeats,e.data.tundishHeats.headers=v(e.data.tundishHeats.items,"expand"),e.data.tundishValues.items=t.tundishValues,e.data.tundishValues.headers=v(e.data.tundishValues.items),e.data.tundishHeats.headers.forEach(e=>{"HEAT_NAME"===e.text&&(e.text="№ Плавки"),"OPEN_TIME"===e.text&&(e.text="Время открытия"),"CLOSE_TIME"===e.text&&(e.text="Время закрытия")})},set_loading(e,t){e.loading=t},resetState(e){Object.assign(e,JSON.parse(JSON.stringify(D)))}},actions:{getData({commit:e},t){e("set_loading",!0);const r=o()({data:{params:{flag:"getDataHeats",dateStart:t[0],dateEnd:t[1]}}}),n=o()({data:{params:{flag:"getDataValues",dateStart:t[0],dateEnd:t[1]}}});o.a.all([r,n]).then(o.a.spread((...t)=>{const r=t[0].data,n=t[1].data;0!==r.length?e("set_data",{tundishHeats:r,tundishValues:n}):e("resetState")})).catch(()=>{e("set_loading",!1)}).finally(()=>{e("set_loading",!1)})}}},I=r("2176"),M=r.n(I),P=r("294b"),F=r.n(P);const L={data:{headers:[],items:[]},loading:!1},B=JSON.parse(JSON.stringify(L));var U={namespaced:!0,state:B,getters:{data:e=>e.data,loading:e=>e.loading},mutations:{set_data(e,t){e.data.items=Object.assign(t[0],t[1]),e.data.items.forEach(e=>{e.cycle=e.cycle.date.substr(10,9)}),e.data.headers=v(e.data.items),e.data.headers.forEach(e=>{switch(e.text){case"date":e.text="Дата";break;case"heat_number":e.text="Номер плавки";break;case"MARKA":e.text="Марка стали";break;case"cycle":e.text="Цикл плавки";break;case"SCRAP_Weight":e.text="Лом, тн.";break;case"BOF_HM_Weight":e.text="Чугун, тн.";break;case"HEAT_Weight":e.text="Налив, тн.";break;case"hmCoefficient":e.text="Коэф. по чугуну";break;case"hmP":e.text="P";break;case"hmSBeforeDS":e.text="S до дес.";break;case"hmS":e.text="S";break;case"hmSi":e.text="Si";break;case"BOF_HM_Temp":e.text="T";break;case"CaOPolysiusHeat":e.text="CaO";break;case"CaODolomitedHeat":e.text="CaO дол.";break;case"CaCO3Heat":e.text="CaCO3";break;case"CaCO3Dolomited":e.text="CaCO3 дол.";break;case"okatishiHeat":e.text="Окатыши";break;case"ACHeat":e.text="Уголь";break;case"MgBrickHeat":e.text="Mg брик.";break;case"Bricks":e.text="Бой кирпича";break;case"HEAT_Temp":e.text="T";break;case"c_pov":e.text="C";break;case"mn_pov":e.text="Mn";break;case"s_pov":e.text="S";break;case"p_pov":e.text="P";break;case"CaOShlag":e.text="CaO";break;case"MgOShlag":e.text="MgO";break;case"FeOShlag":e.text="FeO";break;case"Bass":e.text="Основность";break;case"reblow_reason":e.text="Причина";break;case"reblow_O2":e.text="O2";break;case"reblow_N2":e.text="N2";break;case"N2":e.text="Ошлаковки (расход азота)";break;case"N2_reason":e.text="Примечание";break}})},set_loading(e,t){e.loading=t},getExcel(e,t){var r=[],n=new M.a.Workbook,a=n.addWorksheet("Документ создан\r\n"+new Date(Date.now()).print("%d.%m.%Y"),{properties:{showGridLines:!1}}),i=y["a"].pluck(e.data.headers,"text");i=y["a"].rest(i),i=y["a"].rest(i),y["a"].each(y["a"].keys(y["a"].first(e.data.items)),(function(e){r.push(y["a"].object(["key"],[e]))})),r=y["a"].rest(r),r=y["a"].rest(r),a.mergeCells("A1","AA"),a.getCell("C1").value=""+("Показатели по работе КО (поплавочно) за период с "+t[0]+" по "+t[1]+"\r\n"),a.getCell("C1").font={bold:!0,family:2,size:12},a.getCell("C1").alignment={vertical:"center",horizontal:"left",wrapText:!0};var s=a.getRow(1);s.height=20,a.getRow(2).values=i,a.columns=r,a.addRows(e.data.items),a.eachRow({includeEmpty:!0},(function(e,t){e.eachCell({includeEmpty:!0},(function(e){2===t?(a.getCell(e._address).fill={type:"pattern",pattern:"solid",fgColor:{argb:"e0e0e0"}},a.getCell(e._address).font={bold:!0},a.getCell(e._address).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},a.getCell(e._address).alignment={vertical:"center",horizontal:"center"}):t>2&&(a.getCell(e._address).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}))})),b(a,2),n.xlsx.writeBuffer().then(e=>F.a.saveAs(new Blob([e]),new Date(Date.now()).print("%d.%m.%Y")+".xlsx")).catch(e=>console.log("Error writing excel export",e)).finally(()=>{})},resetState(e){Object.assign(e,JSON.parse(JSON.stringify(L)))}},actions:{getData({commit:e},t){e("set_loading",!0);const r=o()({data:{params:{flag:"getData_BOFReportSample_A1",dateStart:t[0],dateEnd:t[1],aggID:t[2]}}});return o.a.all([r]).then(o.a.spread((...t)=>{const r=t[0].data;r.length?e("set_data",[r]):e("resetState")})).catch(t=>{e("set_loading",!1),e("resetState"),console.log(t)}).finally(()=>{e("set_loading",!1)})}}};const j={data:{headers:[],items:[]},loading:!1},z=JSON.parse(JSON.stringify(j));var H={namespaced:!0,state:z,getters:{data:e=>e.data,loading:e=>e.loading},mutations:{set_data(e,t){e.data.items=t,e.data.items.forEach(e=>{e.cycle=e.cycle.date.substr(10,9)}),e.data.headers=v(e.data.items),e.data.headers.forEach(e=>{switch(e.text){case"day":e.text="День";break;case"heatCount":e.text="Кол-во";break;case"date":e.text="Дата";break;case"heat_number":e.text="Номер плавки";break;case"MARKA":e.text="Марка стали";break;case"cycle":e.text="Цикл плавки";break;case"Scrap":e.text="Лом, тн.";break;case"hm":e.text="Чугун, тн.";break;case"heatWeight":e.text="Налив, тн.";break;case"hmCoefficient":e.text="Коэф. по чугуну";break;case"hmP":e.text="P";break;case"hmSBeforeDS":e.text="S до дес.";break;case"hmS":e.text="S";break;case"hmSi":e.text="Si";break;case"hmT":e.text="T";break;case"CaOPolysiusHeat":e.text="CaO";break;case"CaODolomitedHeat":e.text="CaO дол.";break;case"CaCO3Heat":e.text="CaCO3";break;case"CaCO3Dolomited":e.text="CaCO3 дол.";break;case"okatishiHeat":e.text="Окатыши";break;case"ACHeat":e.text="Уголь";break;case"MgBrickHeat":e.text="Mg брик.";break;case"Bricks":e.text="Бой кирпича";break;case"heatT":e.text="T";break;case"c_pov":e.text="C";break;case"mn_pov":e.text="Mn";break;case"s_pov":e.text="S";break;case"p_pov":e.text="P";break;case"CaOShlag":e.text="CaO";break;case"MgOShlag":e.text="MgO";break;case"FeOShlag":e.text="FeO";break;case"Bass":e.text="Основность";break;case"reblowCount":e.text="Кол-во";break;case"reblowO2Count":e.text="O2";break;case"reblowN2Count":e.text="N2";break;case"N2":e.text="Ошлаковки (расход азота)";break;case"N2_reason":e.text="Примечание";break;case"NadopalCaO":e.text="Недопал CaO, %";break;case"Otcev":e.text="Отсев, тн.";break;case"N2Count":e.text="Кол-во ошлаковок";break}})},set_loading(e,t){e.loading=t},getExcel(e,t){var r=[],n=new M.a.Workbook,a=n.addWorksheet("Документ создан\r\n"+new Date(Date.now()).print("%d.%m.%Y"),{properties:{showGridLines:!1}}),i=y["a"].pluck(e.data.headers,"text");i=y["a"].rest(i),i=y["a"].rest(i),y["a"].each(y["a"].keys(y["a"].first(e.data.items)),(function(e){r.push(y["a"].object(["key"],[e]))})),r=y["a"].rest(r),r=y["a"].rest(r),a.mergeCells("A1","AA"),a.getCell("C1").value=""+("Показатели по работе КО (посуточно) за период с "+t[0]+" по "+t[1]+"\r\n"),a.getCell("C1").font={bold:!0,family:2,size:12},a.getCell("C1").alignment={vertical:"center",horizontal:"left",wrapText:!0};var s=a.getRow(1);s.height=20,a.getRow(2).values=i,a.columns=r,a.addRows(e.data.items),a.eachRow({includeEmpty:!0},(function(e,t){e.eachCell({includeEmpty:!0},(function(e){2===t?(a.getCell(e._address).fill={type:"pattern",pattern:"solid",fgColor:{argb:"e0e0e0"}},a.getCell(e._address).font={bold:!0},a.getCell(e._address).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},a.getCell(e._address).alignment={vertical:"center",horizontal:"center"}):t>2&&(a.getCell(e._address).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}))})),b(a,2),n.xlsx.writeBuffer().then(e=>F.a.saveAs(new Blob([e]),new Date(Date.now()).print("%d.%m.%Y")+".xlsx")).catch(e=>console.log("Error writing excel export",e)).finally(()=>{})},resetState(e){Object.assign(e,JSON.parse(JSON.stringify(j)))}},actions:{getData(e,t){e.commit("set_loading",!0),o()({data:{params:{flag:"getData_BOFReportSample_A2",dateStart:t[0],dateEnd:t[1],aggID:t[2]}}}).then(t=>{const r=t.data;0!==r.length?e.commit("set_data",r):e.commit("resetState")}).catch(t=>{e.commit("set_loading",!1),console.log(t),e.commit("resetState")}).finally(()=>{e.commit("set_loading",!1)})}}};const W={data:{headers:[],items:[]},loading:!1},V=JSON.parse(JSON.stringify(W));var Y={namespaced:!0,state:V,getters:{data:e=>e.data,loading:e=>e.loading},mutations:{set_data(e,t){e.data.items=t,e.data.headers=v(e.data.items);for(let r=0;r2&&(a.getCell(e._address).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}))})),b(a,2),n.xlsx.writeBuffer().then(e=>F.a.saveAs(new Blob([e]),new Date(Date.now()).print("%d.%m.%Y")+".xlsx")).catch(e=>console.log("Error writing excel export",e)).finally(()=>{})},resetState(e){Object.assign(e,JSON.parse(JSON.stringify(W)))}},actions:{getData(e,t){e.commit("set_loading",!0),o()({data:{params:{flag:"getData_BOFReportSample_B1",dateStart:t[0],dateEnd:t[1]}}}).then(t=>{const r=t.data;0!==r.length?e.commit("set_data",r):e.commit("resetState")}).catch(t=>{e.commit("set_loading",!1),e.commit("resetState"),console.log(t)}).finally(()=>{e.commit("set_loading",!1)})}}};const G={data:{headers:[],items:[]},loading:!1},Z=JSON.parse(JSON.stringify(G));var X={namespaced:!0,state:Z,getters:{data:e=>e.data,loading:e=>e.loading},mutations:{set_data(e,t){e.data.items=t,e.data.items.forEach(e=>{try{null!=e.cycle&&(e.cycle=e.cycle.date.substr(10,9)),null!=e.Charge&&(e.Charge=e.Charge.date.substr(10,9)),null!=e.HMCharge&&(e.HMCharge=e.HMCharge.date.substr(10,9)),null!=e.Blow&&(e.Blow=e.Blow.date.substr(10,9)),null!=e.Tap&&(e.Tap=e.Tap.date.substr(10,9)),null!=e.Slspl&&(e.Slspl=e.Slspl.date.substr(10,9)),null!=e.Sltap&&(e.Sltap=e.Sltap.date.substr(10,9)),null!=e.upk_HEATSTARTDATE&&(e.upk_HEATSTARTDATE=e.upk_HEATSTARTDATE.date.substr(0,19)),null!=e.upk_HEATENDDATE&&(e.upk_HEATENDDATE=e.upk_HEATENDDATE.date.substr(0,19)),null!=e.upk_cycle&&(e.upk_cycle=e.upk_cycle.date.substr(10,9)),null!=e.vd_HEATSTARTDATE&&(e.vd_HEATSTARTDATE=e.vd_HEATSTARTDATE.date.substr(0,19)),null!=e.vd_HEATENDDATE&&(e.vd_HEATENDDATE=e.vd_HEATENDDATE.date.substr(0,19)),null!=e.vd_cycleHEat&&(e.vd_cycleHEat=e.vd_cycleHEat.date.substr(10,9)),null!=e.vd_cycleVacuum&&(e.vd_cycleVacuum=e.vd_cycleVacuum.date.substr(10,9)),null!=e.vd_cycleHardVacuum&&(e.vd_cycleHardVacuum=e.vd_cycleHardVacuum.date.substr(10,9)),null!=e.BLOW_ARGON_TIME&&(e.BLOW_ARGON_TIME=e.BLOW_ARGON_TIME.date.substr(10,9)),null!=e.CASTHEAT_START&&(e.CASTHEAT_START=e.CASTHEAT_START.date.substr(0,19)),null!=e.CASTHEAT_END&&(e.CASTHEAT_END=e.CASTHEAT_END.date.substr(0,19)),null!=e.RAILWAYCOMP_SET&&(e.RAILWAYCOMP_SET=e.RAILWAYCOMP_SET.date.substr(0,19)),null!=e.RAILWAYCOMP_REM&&(e.RAILWAYCOMP_REM=e.RAILWAYCOMP_REM.date.substr(0,19)),null!=e.Reblow&&(e.Reblow=e.Reblow.date.substr(10,9)),null!=e.Reblow2&&(e.Reblow2=e.Reblow2.date.substr(10,9)),null!=e.Reblow3&&(e.Reblow3=e.Reblow3.date.substr(10,9)),null!=e.COMP_MOULDSTREP_DUR&&(e.COMP_MOULDSTREP_DUR=e.COMP_MOULDSTREP_DUR.date.substr(10,9)),null!=e.COMP_MOULDSTREP_START&&(e.COMP_MOULDSTREP_START=e.COMP_MOULDSTREP_START.date.substr(0,19)),null!=e.COMP_MOULDSTREP_END&&(e.COMP_MOULDSTREP_END=e.COMP_MOULDSTREP_END.date.substr(0,19))}catch(error){console.log(error)}}),e.data.headers=v(e.data.items),e.data.headers.forEach(e=>{switch(e.text){case"data":e.text="Дата";break;case"heatNumber":e.text="Номер плавки";break;case"grade_name":e.text="Марка стали";break;case"br_number":e.text="№ бригады";break;case"master":e.text="Мастер";break;case"distributor":e.text="Машинист дистрибутор";break;case"cycle":e.text="Цикл плавки";break;case"heat_delay":e.text="Длительность стали в ковше";break;case"Scrap":e.text="Лом, тн.";break;case"mold_scrap":e.text="Бой изложниц";break;case"OLP":e.text="ОЛП";break;case"Scrap_CPSH":e.text="Скрап ЦПШ";break;case"Scrap_light":e.text="Легковесный лом";break;case"blum":e.text="Блюминг";break;case"cold_iron":e.text="Холодный чугун";break;case"ST600":e.text="СТ600";break;case"crop_st3000":e.text="Обрезь ст. 3000";break;case"scale":e.text="Окалина";break;case"rollers":e.text="Валки";break;case"ovveral_crop":e.text="Габаритная обрезь";break;case"amort_scrap":e.text="Амортизационный лом";break;case"iron_scrap2":e.text="Лом чугуна";break;case"heavy_scrap":e.text="Тяжелый лом";break;case"mos5":e.text="МОС5";break;case"mos3":e.text="МОС3";break;case"mos":e.text="МОС";break;case"crop_overall":e.text="Рядовая габаритная обрезь";break;case"crop1":e.text="Обрезь";break;case"scrap1":e.text="Скрап";break;case"scrapBof":e.text="Скрап ККЦ";break;case"scrapIron":e.text="Скрап чугунный";break;case"boring":e.text="Стружка";break;case"metall_scrap":e.text="Металлический лом";break;case"steel_scrap":e.text="Скрап стальной";break;case"packet":e.text="Пакеты";break;case"underfilling":e.text="Недоливки";break;case"HM_WEIGHT":e.text="Чугун, тн.";break;case"weight_heat":e.text="Налив, тн.";break;case"coefHM":e.text="Коэф. по чугуну";break;case"hm_p":e.text="P";break;case"hm_s_before_ds":e.text="S до";break;case"hm_s":e.text="S";break;case"hm_si":e.text="Si";break;case"hm_mn":e.text="Mn";break;case"hm_t":e.text="T";break;case"Des_CaO":e.text="CaO";break;case"Des_Mn":e.text="Mn";break;case"Charge":e.text="Завалка";break;case"HMCharge":e.text="Заливка";break;case"Blow":e.text="Продувка";break;case"Reblow":e.text="1 Додувка";break;case"Reblow2":e.text="2 Додувка";break;case"Reblow3":e.text="3 Додувка";break;case"Tap":e.text="Слив м.";break;case"Slspl":e.text="Азотирование";break;case"Sltap":e.text="Слив ш.";break;case"CaOPolysiusHeat":e.text="CaO";break;case"CaODolomitedHeat":e.text="CaO дол.";break;case"CaCO3Heat":e.text="CaCO3";break;case"CaCO3Dol":e.text="CaCO3 дол.";break;case"okatishi":e.text="Окатыши";break;case"CHeat":e.text="Уголь";break;case"MgBrick":e.text="Mg";break;case"heat_temp":e.text="T";break;case"c_pov":e.text="C";break;case"mn_pov":e.text="Mn";break;case"s_pov":e.text="S";break;case"p_pov":e.text="P";break;case"CaOShlag":e.text="CaO";break;case"SiO2Shlag":e.text="SiO2";break;case"MgOShlag":e.text="MgO";break;case"FeOShlag":e.text="Fe";break;case"Bass":e.text="Основность";break;case"reblow_reason":e.text="Причина";break;case"reblowO2":e.text="O2";break;case"reblowN2":e.text="N2";break;case"N2oshlack":e.text="Ошлаковки (расход азота)";break;case"UVOS_T":e.text="T";break;case"UVOS_C":e.text="C";break;case"UVOS_Si":e.text="Si";break;case"UVOS_Mn":e.text="Mn";break;case"UVOS_S":e.text="S";break;case"UVOS_P":e.text="P";break;case"OXYGEN_TOT":e.text="O2";break;case"NITROGEN_TOT":e.text="N2";break;case"ARGON_TUY_TOT":e.text="Ar";break;case"upk_LADLENO":e.text="№ ковша";break;case"upk_MRESISTANCELADLE":e.text="Стойкоcть ковша";break;case"upk_MEMPTYLADLEWEIGHT":e.text="Вес ковша";break;case"upk_STEELWEIGHTIN":e.text="Вес стали";break;case"upk_HEATSTARTDATE":e.text="Начало обработки";break;case"upk_HEATENDDATE":e.text="Конец обработки";break;case"upk_cycle":e.text="Длительность обработки";break;case"upk_FIRSTMEASTEMP":e.text="Начальная температура";break;case"upk_LASTMEASTEMP":e.text="Конечная температура";break;case"upk_LFFirstSteelC":e.text="C";break;case"upk_LFFirstSteelMn":e.text="Mn";break;case"upk_LFFirstSteelSi":e.text="Si";break;case"upk_LFFirstSteelS":e.text="S";break;case"upk_LFFirstSteelP":e.text="P";break;case"upk_LFFirstSteelAl":e.text="Al";break;case"upk_LFFirstSteelCa":e.text="Ca";break;case"upk_LFFirstSteelTi":e.text="Ti";break;case"upk_LFFirstSteelV":e.text="V";break;case"upk_LFFirstSteelNb":e.text="Nb";break;case"upk_LFLastSteelC":e.text="C";break;case"upk_LFLastSteelMn":e.text="Mn";break;case"upk_LFLastSteelSi":e.text="Si";break;case"upk_LFLastSteelS":e.text="S";break;case"upk_LFLastSteelP":e.text="P";break;case"upk_LFLastSteelAl":e.text="Al";break;case"upk_LFLastSteelCa":e.text="Ca";break;case"upk_LFLastSteelTi":e.text="Ti";break;case"upk_LFLastSteelV":e.text="V";break;case"upk_LFLastSteelNb":e.text="Nb";break;case"upk_CaO":e.text="CaO";break;case"upk_SiO2":e.text="SiO2";break;case"upk_MgO":e.text="MgO";break;case"upk_FeO":e.text="FeO";break;case"upk_Al2O3":e.text="Al2O3";break;case"upk_MnO":e.text="MnO";break;case"upk_P2O5":e.text="P2O5";break;case"upk_S":e.text="S";break;case"vd_HEATSTARTDATE":e.text="Начало вакуумирования";break;case"vd_HEATENDDATE":e.text="Конец вакуумирования";break;case"vd_cycleHEat":e.text="Длительность вакуумирования";break;case"vd_cycleVacuum":e.text="Длительность вакуумирования";break;case"vd_cycleHardVacuum":e.text="Длительность глубокого вакуумирования";break;case"vd_FIRSTMEASTEMP":e.text="Начальная температура";break;case"vd_LASTMEASTEMP":e.text="Конечная температура";break;case"vd_First_H2":e.text="В начале H2";break;case"vd_Last_H2":e.text="В концее H2";break;case"vd_VD_F_C":e.text="C";break;case"vd_VD_F_Mn":e.text="Mn";break;case"vd_VD_F_Si":e.text="Si";break;case"vd_VD_F_S":e.text="S";break;case"vd_VD_F_P":e.text="P";break;case"vd_VD_L_C":e.text="C";break;case"vd_VD_LMn":e.text="Mn";break;case"vd_VD_LSi":e.text="Si";break;case"vd_VD_LS":e.text="S";break;case"vd_VD_LP":e.text="P";break;case"orss_C":e.text="C";break;case"orss_Mn":e.text="Mn";break;case"orss_Si":e.text="Si";break;case"orss_S":e.text="S";break;case"orss_P":e.text="P";break;case"LADLE_ARRIVMEAS_TEMP":e.text="Замер температуры, С";break;case"MEAS_TEMP":e.text="Доводка по температуре, С";break;case"BLOW_ARGON_TIME":e.text="Продувка аргоном, мин";break;case"CASTHEAT_START":e.text="Начало разливки";break;case"CASTHEAT_END":e.text="Конец разливки";break;case"RAILWAYCOMP_SET":e.text="Подача состава";break;case"RAILWAYCOMP_REM":e.text="Снятие состава";break;case"COMP_MOULDSTREP_START":e.text="Начало";break;case"COMP_MOULDSTREP_END":e.text="Конец";break;case"COMP_MOULDSTREP_DUR":e.text="Продолж.";break;case"LOSSES_GROUP":e.text="Группа потерь";break;case"LOSSES_KIND":e.text="Причина";break;case"WEIGHT_LOSSES":e.text="Вес, т";break;case"SPARKLING_TIME":e.text="Искрение, c";break;case"MENISCUS":e.text="Мениск";break;case"SPARKLING_INPUT_AL":e.text="Ввод Al, гр./слиток";break;case"FISTULAS_COUNT":e.text="Свищи, шт";break;case"MOULD_COUNT":e.text="Шт.";break;case"INGOTS_WEIGHT":e.text="Вес, т.";break;case"VIOLATION_NAME":e.text="Нарушение технологии разливки";break}})},set_loading(e,t){e.loading=t},getExcel(e,t){var r=[],n=new M.a.Workbook,a=n.addWorksheet("Документ создан\r\n"+new Date(Date.now()).print("%d.%m.%Y"),{properties:{showGridLines:!1}}),i=y["a"].pluck(e.data.headers,"text");i=y["a"].rest(i),y["a"].each(y["a"].keys(y["a"].first(e.data.items)),(function(e){r.push(y["a"].object(["key"],[e]))})),r=y["a"].rest(r),a.mergeCells("A1","AA"),a.getCell("C1").value=""+("Показатели по работе конвертеров за период с "+t[0]+" по "+t[1]+"\r\n"),a.getCell("C1").font={bold:!0,family:2,size:12},a.getCell("C1").alignment={vertical:"center",horizontal:"left",wrapText:!0};var s=a.getRow(1);s.height=20,a.getRow(2).values=i,a.columns=r,a.addRows(e.data.items),a.eachRow({includeEmpty:!0},(function(e,t){e.eachCell({includeEmpty:!0},(function(e){2===t?(a.getCell(e._address).fill={type:"pattern",pattern:"solid",fgColor:{argb:"e0e0e0"}},a.getCell(e._address).font={bold:!0},a.getCell(e._address).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},a.getCell(e._address).alignment={vertical:"center",horizontal:"center"}):t>2&&(a.getCell(e._address).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}))})),b(a,2),n.xlsx.writeBuffer().then(e=>F.a.saveAs(new Blob([e]),new Date(Date.now()).print("%d.%m.%Y")+".xlsx")).catch(e=>console.log("Error writing excel export",e)).finally(()=>{})},resetState(e){Object.assign(e,JSON.parse(JSON.stringify(G)))}},actions:{getData(e,t){e.commit("set_loading",!0),o()({data:{params:{flag:"getData_BOFReportSample_C1",dateStart:t[0],dateEnd:t[1]}}}).then(t=>{const r=t.data;0!==r.length&&2!==r.length?e.commit("set_data",r):e.commit("resetState")}).catch(t=>{e.commit("set_loading",!1),e.commit("resetState"),console.log(t)}).finally(()=>{e.commit("set_loading",!1)})}}};const $={data:{headers:[],items:[],countHeats:[],sampleCounts:[],master:[],operator:[],shift:[],avgData:[]},loading:!1},J=JSON.parse(JSON.stringify($));var q={namespaced:!0,state:J,getters:{data:e=>e.data,loading:e=>e.loading},mutations:{set_data(e,t){e.data.items=t[0],e.data.items.forEach(e=>{try{null!=e.cycle&&(e.cycle=e.cycle.date.substr(10,9))}catch(error){console.log(error)}}),e.data.headers=v(e.data.items),e.data.headers.forEach(e=>{switch(e.text){case"Date":e.text="Дата";break;case"heat_number":e.text="№ плавки";break;case"grade_name":e.text="Марка стали";break;case"cycle":e.text="Цикл плавки";break;case"c_pov":e.text="C% на пов.";break;case"C_result":e.text="C гот., %";break;case"FerroCount":e.text="Кол-во ферроспл., т";break;case"t_pov":e.text="T повалки";break;case"FeOShlag":e.text="FeO %";break;case"CaOPolysiusHeat":e.text="CaO тн.";break;case"CaODolomitedHeat":e.text="CaO дол. тн.";break;case"CaCO3Common":e.text="CaCO3 д/з тн.";break;case"Coal":e.text="Уголь, тн";break;case"Scrap":e.text="Лом, тн";break;case"HM_WEIGHT":e.text="Чугун, тн";break;case"hm_t":e.text="T чугуна";break;case"hm_si":e.text="% Si чуг.";break;case"bofmaster":e.text="Мастер";break;case"bofoperator":e.text="Дистрибутор";break;case"CHARGE_SHIFTTEAM_NO":e.text="№ бригады";break}}),e.data.countHeats=y["a"].first(t[1]),e.data.sampleCounts=y["a"].first(t[2]),e.data.master=t[3],e.data.operator=t[4],e.data.shift=t[5],e.data.avgData=t[6],e.data.avgData.forEach(e=>{try{null!=e.avg_cycle&&(e.avg_cycle=e.avg_cycle.date.substr(10,9))}catch(error){console.log(error)}}),e.data.avgData=y["a"].first(e.data.avgData)},set_loading(e,t){e.loading=t},resetState(e){Object.assign(e,JSON.parse(JSON.stringify($)))}},actions:{getData({commit:e},t){e("set_loading",!0);const r=o()({data:{params:{flag:"getData_BOFReportSample_D1",dateStart:t[0],dateEnd:t[1]}}}),n=o()({data:{params:{flag:"getData_BOFReportSample_D1_countHets",dateStart:t[0],dateEnd:t[1]}}}),a=o()({data:{params:{flag:"getData_BOFReportSample_D1_sampleCounts",dateStart:t[0],dateEnd:t[1]}}}),i=o()({data:{params:{flag:"getData_BOFReportSample_D1_master",dateStart:t[0],dateEnd:t[1]}}}),s=o()({data:{params:{flag:"getData_BOFReportSample_D1_operator",dateStart:t[0],dateEnd:t[1]}}}),l=o()({data:{params:{flag:"getData_BOFReportSample_D1_shift",dateStart:t[0],dateEnd:t[1]}}}),u=o()({data:{params:{flag:"getData_BOFReportSample_D1_avgData",dateStart:t[0],dateEnd:t[1]}}});return o.a.all([r,n,a,i,s,l,u]).then(o.a.spread((...t)=>{const r=t[0].data,n=t[1].data,a=t[2].data,i=t[3].data,s=t[4].data,o=t[5].data,l=t[6].data;0!==r.length?e("set_data",[r,n,a,i,s,o,l]):e("resetState")})).catch(t=>{e("set_loading",!1),e("resetState"),console.log(t)}).finally(()=>{e("set_loading",!1)})}}};const K={data:{headers:[],items:[]},loading:!1},Q=JSON.parse(JSON.stringify(K));var ee={namespaced:!0,state:Q,getters:{data:e=>e.data,loading:e=>e.loading},mutations:{getExcel(e,t){var r=[],n=new M.a.Workbook,a=n.addWorksheet("Документ создан\r\n"+new Date(Date.now()).print("%d.%m.%Y"),{properties:{showGridLines:!1}}),i=y["a"].keys(y["a"].first(e.data.items));y["a"].each(i,(function(e){r.push(y["a"].object(["key"],[e]))})),a.mergeCells("A1","AA"),a.getCell("C1").value=""+("Ежесуточный отчет по основным эксплуатационным характеристикам конверторов АМК с "+t[0]+" по "+t[1]+"\r\n"),a.getCell("C1").font={bold:!0,family:2,size:12},a.getCell("C1").alignment={vertical:"center",horizontal:"left",wrapText:!0};var s=a.getRow(1);s.height=20,a.getRow(2).values=i,a.columns=r,a.addRows(e.data.items),a.eachRow({includeEmpty:!0},(function(e,t){e.eachCell({includeEmpty:!0},(function(e){2===t?(a.getCell(e._address).fill={type:"pattern",pattern:"solid",fgColor:{argb:"e0e0e0"}},a.getCell(e._address).font={bold:!0},a.getCell(e._address).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},a.getCell(e._address).alignment={vertical:"center",horizontal:"center"}):t>2&&(a.getCell(e._address).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}))})),b(a,2),n.xlsx.writeBuffer().then(e=>F.a.saveAs(new Blob([e]),new Date(Date.now()).print("%d.%m.%Y")+".xlsx")).catch(e=>console.log("Error writing excel export",e)).finally(()=>{})},set_data(e,t){e.data.items=t,e.data.headers=v(e.data.items),e.data.headers.forEach(e=>{switch(e.text){case"CAPTION":e.text="Дата";break}})},set_loading(e,t){e.loading=t},resetState(e){Object.assign(e,JSON.parse(JSON.stringify(K)))}},actions:{getData(e,t){e.commit("set_loading",!0),o()({data:{params:{flag:"getData_BOFMainUseConfig",dateStart:t[0],dateEnd:t[1],aggID:t[2]}}}).then(t=>{const r=t.data;0!==r.length?e.commit("set_data",r):e.commit("resetState")}).catch(t=>{e.commit("set_loading",!1),e.commit("resetState"),console.log(t)}).finally(()=>{e.commit("set_loading",!1)})}}};const te={data:{headers:[],headersSetpoints:[],itemsSetpoints:[],items:[],avgData:[],sumData:[],sumDataBrigada1:[],sumDataBrigada2:[],sumDataBrigada3:[],sumDataBrigada4:[],avgDataBrigada1:[],avgDataBrigada2:[],avgDataBrigada3:[],avgDataBrigada4:[],items_readOnly:[],crewList:[],label:"",chart:{chartDataset:{setpoints:[]},chartLabel:[],setpoints:[],currentPoints:[]},allChart:{chartDataset:{setpoints:[]},chartLabel:[],setpoints:[],currentPoints:[]}},loading:!1},re=JSON.parse(JSON.stringify(te));var ne={namespaced:!0,state:re,getters:{data:e=>e.data,loading:e=>e.loading},mutations:{refreshChart(e,t){var r=t;switch(t.replaceAll("\r\n","")){case"Химия, чугуна Si, %":r="Si";break;case"Химия, чугуна P, %":r="P";break;case"Температура, чугуна":r="T";break;case"Добавочные CaO, кг/т":r="CaO, кг/т";break;case"Добавочные CaOд, кг/т":r="CaO дол., кг/т";break;case"Добавочные СaCO3, кг/т":r="CaCO3, кг/т";break;case"Темпер. Пов.°С":r="T ";break;case"Хим. ан.стали С, %":r="C ";break;case"Хим. ан.стали P, %":r="P ";break;case"Хим.ан.шлака СаО,%":r="CaO ";break;case"Хим.ан.шлака МgO,%":r="MgO ";break;case"Хим.ан.шлака FeO,%":r="FeO ";break;case"Додувки, штук O2/N2, C":r="C, шт";break;case"Додувки, штук O2/N2, P":r="P, шт";break;case"Додувки, штук O2/N2, Cr":r="Cr, шт";break;case"Выход годного, тн":r="Налив, тн";break;case"Ошлаковка, м3":r="Ошлаковка";break}e.data.chart.dataset=[],e.data.chart.label=[],e.data.chart.setpoints=[],e.data.chart.currentPoints=[],y["a"].isEmpty(e.data.avgDataBrigada1)||e.data.chart.label.push("Бригада: 1"),y["a"].isEmpty(e.data.avgDataBrigada2)||e.data.chart.label.push("Бригада: 2"),y["a"].isEmpty(e.data.avgDataBrigada3)||e.data.chart.label.push("Бригада: 3"),y["a"].isEmpty(e.data.avgDataBrigada4)||e.data.chart.label.push("Бригада: 4");try{e.data.chart.currentPoints=y["a"].where(e.data.itemsSetpoints,{desc:t})[0].value}catch(error){console.log(error)}"C, шт"===r||"P, шт"===r||"Cr, шт"===r?e.data.chart.dataset.push({label:t,backgroundColor:"#848484",data:[y["a"].values(y["a"].pick(e.data.sumDataBrigada1,r.replaceAll("\r\n",""))),y["a"].values(y["a"].pick(e.data.sumDataBrigada2,r.replaceAll("\r\n",""))),y["a"].values(y["a"].pick(e.data.sumDataBrigada3,r.replaceAll("\r\n",""))),y["a"].values(y["a"].pick(e.data.sumDataBrigada4,r.replaceAll("\r\n","")))]}):e.data.chart.dataset.push({label:t,backgroundColor:"#848484",data:[y["a"].values(y["a"].pick(e.data.avgDataBrigada1,r.replaceAll("\r\n",""))),y["a"].values(y["a"].pick(e.data.avgDataBrigada2,r.replaceAll("\r\n",""))),y["a"].values(y["a"].pick(e.data.avgDataBrigada3,r.replaceAll("\r\n",""))),y["a"].values(y["a"].pick(e.data.avgDataBrigada4,r.replaceAll("\r\n","")))]}),e.data.chart.dataset[0].setpoints=y["a"].where(e.data.itemsSetpoints,{desc:t}),e.data.chart.dataset[0].data=y["a"].flatten(e.data.chart.dataset[0].data)},buildAllChart(e,t){t.forEach(t=>{this.commit("BOFReportAvgData_Marka/refreshChart",t.desc),e.data.allChart.dataset.push(e.data.chart.dataset)})},getExcel(e,t){var r=[];let n=[],a=[];var i=new M.a.Workbook,s=i.addWorksheet("Документ создан\r\n"+new Date(Date.now()).print("%d.%m.%Y"),{properties:{showGridLines:!1}});s.mergeCells("A2","BD16"),s.mergeCells("A17","BD32");let o=0,l=5,u=0,c=5,h=5;t[3]=y["a"].flatten(t[3]),t[3].forEach((e,t)=>{if(h=0===t||10===t?0:5,t<10){o+=h,l+=h;let t=i.addImage({base64:e,extension:"png"});s.addImage(t,{tl:{col:o,row:1},br:{col:l,row:16}})}else{u+=h,c+=h;let t=i.addImage({base64:e,extension:"png"});s.addImage(t,{tl:{col:u,row:16},br:{col:c,row:32}})}});var d=y["a"].keys(y["a"].omit(y["a"].first(e.data.items),"Бригада"));y["a"].each(d,(function(e){r.push(y["a"].object(["key"],[e]))})),e.data.avgDataBrigada1=y["a"].mapObject(e.data.avgDataBrigada1,(function(t,r){switch(r){case"Кол. плавок, шт":return y["a"].first(y["a"].pluck([e.data.sumDataBrigada1],"Кол. плавок, шт"));case"C, шт":return y["a"].first(y["a"].pluck([e.data.sumDataBrigada1],"C, шт"));case"P, шт":return y["a"].first(y["a"].pluck([e.data.sumDataBrigada1],"P, шт"));case"Cr, шт":return y["a"].first(y["a"].pluck([e.data.sumDataBrigada1],"Cr, шт"));default:return t}})),e.data.avgDataBrigada2=y["a"].mapObject(e.data.avgDataBrigada2,(function(t,r){switch(r){case"Кол. плавок, шт":return y["a"].first(y["a"].pluck([e.data.sumDataBrigada2],"Кол. плавок, шт"));case"C, шт":return y["a"].first(y["a"].pluck([e.data.sumDataBrigada2],"C, шт"));case"P, шт":return y["a"].first(y["a"].pluck([e.data.sumDataBrigada2],"P, шт"));case"Cr, шт":return y["a"].first(y["a"].pluck([e.data.sumDataBrigada2],"Cr, шт"));default:return t}})),e.data.avgDataBrigada3=y["a"].mapObject(e.data.avgDataBrigada3,(function(t,r){switch(r){case"Кол. плавок, шт":return y["a"].first(y["a"].pluck([e.data.sumDataBrigada3],"Кол. плавок, шт"));case"C, шт":return y["a"].first(y["a"].pluck([e.data.sumDataBrigada3],"C, шт"));case"P, шт":return y["a"].first(y["a"].pluck([e.data.sumDataBrigada3],"P, шт"));case"Cr, шт":return y["a"].first(y["a"].pluck([e.data.sumDataBrigada3],"Cr, шт"));default:return t}})),e.data.avgDataBrigada4=y["a"].mapObject(e.data.avgDataBrigada4,(function(t,r){switch(r){case"Кол. плавок, шт":return y["a"].first(y["a"].pluck([e.data.sumDataBrigada4],"Кол. плавок, шт"));case"C, шт":return y["a"].first(y["a"].pluck([e.data.sumDataBrigada4],"C, шт"));case"P, шт":return y["a"].first(y["a"].pluck([e.data.sumDataBrigada4],"P, шт"));case"Cr, шт":return y["a"].first(y["a"].pluck([e.data.sumDataBrigada4],"Cr, шт"));default:return t}})),e.data.avgDataBrigada4=y["a"].mapObject(e.data.avgDataBrigada4,(function(t,r){switch(r){case"Кол. плавок, шт":return y["a"].first(y["a"].pluck([e.data.sumDataBrigada4],"Кол. плавок, шт"));case"C, шт":return y["a"].first(y["a"].pluck([e.data.sumDataBrigada4],"C, шт"));case"P, шт":return y["a"].first(y["a"].pluck([e.data.sumDataBrigada4],"P, шт"));case"Cr, шт":return y["a"].first(y["a"].pluck([e.data.sumDataBrigada4],"Cr, шт"));default:return t}}));let f=y["a"].flatten(y["a"].union([e.data.avgDataBrigada1],[y["a"].where(e.data.items,{"Бригада":1})],[e.data.avgDataBrigada2],[y["a"].where(e.data.items,{"Бригада":2})],[e.data.avgDataBrigada3],[y["a"].where(e.data.items,{"Бригада":3})],[e.data.avgDataBrigada4],[y["a"].where(e.data.items,{"Бригада":4})]));f=y["a"].map(f,(function(e){return y["a"].omit(e,"Бригада")})),s.mergeCells("A1","BD"),s.getCell("C1").value=""+("Показатели по работе КО (побригадно) с "+t[0]+" по "+t[1]+"\r\n"),s.getCell("C1").font={bold:!0,family:2,size:12},s.getCell("C1").alignment={vertical:"center",horizontal:"center",wrapText:!0},s.getCell("C2").font={bold:!0,family:2,size:12},s.getCell("C2").alignment={vertical:"center",horizontal:"center",wrapText:!0},s.mergeCells("A35","H35"),s.mergeCells("I35","M35"),s.getCell("I35").value="Чугун",s.getCell("I35").font={bold:!0,family:2,size:12},s.mergeCells("N35","U35"),s.getCell("N35").value="Материалы",s.getCell("N35").font={bold:!0,family:2,size:12},s.mergeCells("V35","AA35"),s.getCell("V35").value="Повалка",s.getCell("V35").font={bold:!0,family:2,size:12},s.mergeCells("AB35","AD35"),s.getCell("AB35").value="Шлак",s.getCell("AB35").font={bold:!0,family:2,size:12},s.mergeCells("AE35","AG35"),s.getCell("AE35").value="Додувки",s.getCell("AE35").font={bold:!0,family:2,size:12},s.getCell("AH35").font={bold:!0,family:2,size:12},s.mergeCells("AI35","BD35"),s.getCell("AI35").value="РСС",s.getCell("AI35").font={bold:!0,family:2,size:12},s.getRow(36).values=d,s.columns=r,s.addRows(f),s.eachRow({includeEmpty:!0},(function(e,t){e.eachCell({includeEmpty:!0},(function(e){35===t||36===t?(s.getCell(e._address).fill={type:"pattern",pattern:"solid",fgColor:{argb:"e0e0e0"}},s.getCell(e._address).font={bold:!0},s.getCell(e._address).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},s.getCell(e._address).alignment={vertical:"center",horizontal:"center"}):t>2&&(s.getCell(e._address).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}),"Дата"===e._column.key&&null===e._value.value&&(n.push(t),a.push(e._address)),y["a"].each(n,(function(r){t===r&&(s.getCell(e._address).fill={type:"pattern",pattern:"solid",fgColor:{argb:"e0e0e0"}})}))}))}));try{let t=y["a"].uniq(y["a"].pluck(e.data.items,"Бригада"));y["a"].each(a,(function(e,r){s.mergeCells(e,"B"+e.substr(1,5)),s.getCell(e).value="Бригада: "+t[r],s.getCell(e).font={bold:!0,family:2,size:12}}))}catch(error){console.log(error)}i.xlsx.writeBuffer().then(e=>F.a.saveAs(new Blob([e]),new Date(Date.now()).print("%d.%m.%Y")+".xlsx")).catch(e=>console.log("Error writing excel export",e)).finally(()=>{})},dataFilter(e,t){e.data.items=e.data.items_readOnly;var r=[];t.forEach(t=>{r.push(y["a"].filter(e.data.items,(function(e){return e["Бригада"]==t})))}),e.data.items=y["a"].flatten(r),this.commit("BOFReportAvgData_Marka/set_sumData",e.data.items),this.commit("BOFReportAvgData_Marka/set_avgData",e.data.items)},set_sumData(e,t){t=y["a"].map(t,(function(e){return y["a"].omit(e,"Марка","Дата")})),e.data.sumData=y["a"].reduce(t,(function(e,t){for(var r in t)e[r]=Math.round((r in e?e[r]:0)+t[r],2);return e}),{}),e.data.sumDataBrigada1=y["a"].reduce(y["a"].where(t,{"Бригада":1}),(function(e,t){for(var r in t)e[r]=Math.round((r in e?e[r]:0)+t[r],2);return e}),{}),e.data.sumDataBrigada2=y["a"].reduce(y["a"].where(t,{"Бригада":2}),(function(e,t){for(var r in t)e[r]=Math.round((r in e?e[r]:0)+t[r],2);return e}),{}),e.data.sumDataBrigada3=y["a"].reduce(y["a"].where(t,{"Бригада":3}),(function(e,t){for(var r in t)e[r]=Math.round((r in e?e[r]:0)+t[r],2);return e}),{}),e.data.sumDataBrigada4=y["a"].reduce(y["a"].where(t,{"Бригада":4}),(function(e,t){for(var r in t)e[r]=Math.round((r in e?e[r]:0)+t[r],2);return e}),{}),e.data.sumDataBrigada1=y["a"].pick(e.data.sumDataBrigada1,y["a"].identity),e.data.sumDataBrigada2=y["a"].pick(e.data.sumDataBrigada2,y["a"].identity),e.data.sumDataBrigada3=y["a"].pick(e.data.sumDataBrigada3,y["a"].identity),e.data.sumDataBrigada4=y["a"].pick(e.data.sumDataBrigada4,y["a"].identity)},set_avgData(e,t){e.data.avgData=y["a"].reduce(t,(function(e,r){for(var n in r)e[n]=Math.round((n in e?e[n]:0)+r[n]/t.length,3);return e}),{}),t=y["a"].map(t,(function(e){return y["a"].omit(e,"Марка","Дата")})),e.data.avgDataBrigada1=y["a"].reduce(y["a"].where(t,{"Бригада":1}),(function(e,r){for(var n in r)e[n]=Math.round((n in e?e[n]:0)+r[n]/y["a"].where(t,{"Бригада":1}).length,3);return e}),{}),e.data.avgDataBrigada2=y["a"].reduce(y["a"].where(t,{"Бригада":2}),(function(e,r){for(var n in r)e[n]=Math.round((n in e?e[n]:0)+r[n]/y["a"].where(t,{"Бригада":2}).length,3);return e}),{}),e.data.avgDataBrigada3=y["a"].reduce(y["a"].where(t,{"Бригада":3}),(function(e,r){for(var n in r)e[n]=Math.round((n in e?e[n]:0)+r[n]/y["a"].where(t,{"Бригада":3}).length,3);return e}),{}),e.data.avgDataBrigada4=y["a"].reduce(y["a"].where(t,{"Бригада":4}),(function(e,r){for(var n in r)e[n]=Math.round((n in e?e[n]:0)+r[n]/y["a"].where(t,{"Бригада":4}).length,3);return e}),{}),e.data.avgDataBrigada1=y["a"].pick(e.data.avgDataBrigada1,y["a"].identity),e.data.avgDataBrigada2=y["a"].pick(e.data.avgDataBrigada2,y["a"].identity),e.data.avgDataBrigada3=y["a"].pick(e.data.avgDataBrigada3,y["a"].identity),e.data.avgDataBrigada4=y["a"].pick(e.data.avgDataBrigada4,y["a"].identity)},set_data(e,t){e.data.items=t[0],e.data.allChart.dataset=[];for(let r=0;r{const r=t[0].data,n=t[1].data;r.length?e("set_data",[r,n]):e("resetState")})).catch(t=>{e("set_loading",!1),e("resetState"),console.log(t)}).finally(()=>{e("set_loading",!1)})}}};const ae={data:{headers:[],items:[]},loading:!1},ie=JSON.parse(JSON.stringify(ae));var se={namespaced:!0,state:ie,getters:{data:e=>e.data,loading:e=>e.loading},mutations:{getExcel(e,t){var r=[],n=new M.a.Workbook,a=n.addWorksheet("Документ создан\r\n"+new Date(Date.now()).print("%d.%m.%Y"),{properties:{showGridLines:!1}});let i=y["a"].map(e.data.items,(function(e){return y["a"].omit(e,"BOFHR_ID","HEATNO","Heat","ID","NEWNUMBER1")}));var s=y["a"].keys(y["a"].first(i));y["a"].each(s,(function(e){r.push(y["a"].object(["key"],[e]))})),a.mergeCells("A1","DB"),a.getCell("C1").value=""+("Отчет КРО с "+t[0]+" по "+t[1]+"\r\n"),a.getCell("C1").font={bold:!0,family:2,size:12},a.getCell("C1").alignment={vertical:"center",horizontal:"center",wrapText:!0};var o=a.getRow(1);o.height=20,a.getRow(2).values=s,a.columns=r,a.addRows(i),a.eachRow({includeEmpty:!0},(function(e,t){e.eachCell({includeEmpty:!0},(function(e){2===t?(a.getCell(e._address).fill={type:"pattern",pattern:"solid",fgColor:{argb:"e0e0e0"}},a.getCell(e._address).font={bold:!0},a.getCell(e._address).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},a.getCell(e._address).alignment={vertical:"center",horizontal:"center"}):t>2&&(a.getCell(e._address).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}))})),b(a,3),n.xlsx.writeBuffer().then(e=>F.a.saveAs(new Blob([e]),new Date(Date.now()).print("%d.%m.%Y")+".xlsx")).catch(e=>console.log("Error writing excel export",e)).finally(()=>{})},set_data(e,t){e.data.items=t,e.data.headers=v(e.data.items);for(let r=0;r{const r=t.data;0!==r.length?e.commit("set_data",r):e.commit("resetState")}).catch(t=>{e.commit("set_loading",!1),e.commit("resetState"),console.log(t)}).finally(()=>{e.commit("set_loading",!1)})}}};const oe={data:{headers:[],items:[]},loading:!1},le=JSON.parse(JSON.stringify(oe));var ue={namespaced:!0,state:le,getters:{data:e=>e.data,loading:e=>e.loading},mutations:{getExcel(e,t){var r=[],n=new M.a.Workbook,a=n.addWorksheet("Документ создан\r\n"+new Date(Date.now()).print("%d.%m.%Y"),{properties:{showGridLines:!1}}),i=y["a"].keys(y["a"].first(e.data.items));y["a"].each(i,(function(e){r.push(y["a"].object(["key"],[e]))})),a.mergeCells("A1","AA"),a.getCell("C1").value=""+("Эксплуатации стальковшей с "+t[0]+" по "+t[1]+"\r\n"),a.getCell("C1").font={bold:!0,family:2,size:12},a.getCell("C1").alignment={vertical:"center",horizontal:"center",wrapText:!0};var s=a.getRow(1);s.height=20,a.getRow(2).values=i,a.columns=r,a.addRows(e.data.items),a.eachRow({includeEmpty:!0},(function(e,t){e.eachCell({includeEmpty:!0},(function(e){2===t?(a.getCell(e._address).fill={type:"pattern",pattern:"solid",fgColor:{argb:"e0e0e0"}},a.getCell(e._address).font={bold:!0},a.getCell(e._address).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},a.getCell(e._address).alignment={vertical:"center",horizontal:"center"}):t>2&&(a.getCell(e._address).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}))})),b(a,2),n.xlsx.writeBuffer().then(e=>F.a.saveAs(new Blob([e]),new Date(Date.now()).print("%d.%m.%Y")+".xlsx")).catch(e=>console.log("Error writing excel export",e)).finally(()=>{})},set_data(e,t){e.data.items=t,e.data.headers=v(e.data.items);for(let r=0;r{const r=t.data;0!==r.length?e.commit("set_data",r):e.commit("resetState")}).catch(t=>{e.commit("set_loading",!1),e.commit("resetState"),console.log(t)}).finally(()=>{e.commit("set_loading",!1)})}}};r("13d5");const ce={data:{headers:[],items:[],items_readOnly:[],items__:[],avgData:[],sumData:[],listHeatNumber:[]},loading:!1},he=JSON.parse(JSON.stringify(ce));var de=Math.round;Math.round=function(e,t){if(1==arguments.length)return de(e);var r=Math.pow(10,t);return de(e*r)/r};var fe={namespaced:!0,state:he,getters:{data:e=>e.data,loading:e=>e.loading},mutations:{getExcel(e,t){var r=[],n=new M.a.Workbook,a=n.addWorksheet("Документ создан\r\n"+new Date(Date.now()).print("%d.%m.%Y"),{properties:{showGridLines:!1}});let i=y["a"].map(e.data.items,(function(e){return y["a"].omit(e,"HEAT_START")}));var s=y["a"].keys(y["a"].first(i));y["a"].each(s,(function(e){r.push(y["a"].object(["key"],[e]))})),i.push(e.data.sumData),i.push(e.data.avgData),a.mergeCells("A1","M"),a.getCell("C1").value=""+("Баланс чугуна с "+t[0]+" по "+t[1]+"\r\n"),a.getCell("C1").font={bold:!0,family:2,size:12},a.getCell("C1").alignment={vertical:"center",horizontal:"center",wrapText:!0};var o=a.getRow(1);o.height=20,a.mergeCells("A2","D2"),a.getCell("C2").font={bold:!0,family:2,size:12},a.getCell("C2").alignment={vertical:"center",horizontal:"center",wrapText:!0},a.mergeCells("E2","I2"),a.getCell("E2").value="Вес чугуна на чугуновозе",a.getCell("E2").font={bold:!0,family:2,size:12},a.getCell("E2").alignment={vertical:"center",horizontal:"center",wrapText:!0},a.mergeCells("J2","M2"),a.getCell("J2").value="Вес чугуна на кране",a.getCell("J2").font={bold:!0,family:2,size:12},a.getCell("J2").alignment={vertical:"center",horizontal:"center",wrapText:!0},a.getRow(3).values=s,a.columns=r,a.addRows(i);let l=0,u=0;a.eachRow({includeEmpty:!0},(function(e,t){e.eachCell({includeEmpty:!0},(function(e){3===t||2===t?(a.getCell(e._address).fill={type:"pattern",pattern:"solid",fgColor:{argb:"e0e0e0"}},a.getCell(e._address).font={bold:!0},a.getCell(e._address).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},a.getCell(e._address).alignment={vertical:"center",horizontal:"center"}):t>2&&(a.getCell(e._address).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}),t!==i.length+2&&t!==i.length+3||(a.getCell(e._address).fill={type:"pattern",pattern:"solid",fgColor:{argb:"e0e0e0"}},l=t-1,u=l+1)}))})),a.mergeCells("A"+l,"D"+l),a.getCell("D"+l).value="Сумма:",a.getCell("D"+l).font={bold:!0,family:2,size:12},a.mergeCells("A"+u,"D"+u),a.getCell("D"+u).value="Среднее:",a.getCell("D"+u).font={bold:!0,family:2,size:12},b(a,3),n.xlsx.writeBuffer().then(e=>F.a.saveAs(new Blob([e]),new Date(Date.now()).print("%d.%m.%Y")+".xlsx")).catch(e=>console.log("Error writing excel export",e)).finally(()=>{})},dataFilter(e,t){e.data.items=e.data.items_readOnly;var r=[];t.forEach(t=>{r.push(y["a"].first(y["a"].filter(e.data.items,(function(e){return e["Номер плавки ККЦ"]==t.substr(0,8)}))))}),e.data.items=r,this.commit("HMCarReport/set_sumData",e.data.items),this.commit("HMCarReport/set_avgData",e.data.items)},set_sumData(e,t){e.data.sumData=y["a"].reduce(t,(function(e,t){for(var r in t)e[r]=Math.round((r in e?e[r]:0)+t[r],2);return e}),{})},set_avgData(e,t){e.data.avgData=y["a"].reduce(t,(function(e,r){for(var n in r)e[n]=Math.round((n in e?e[n]:0)+r[n]/t.length,2);return e}),{})},set_data(e,t){e.data.items=t[0],e.data.items.forEach(e=>{e.HEAT_START=e.HEAT_START.date.substr(0,19)}),e.data.items_readOnly=t[0],e.data.listHeatNumber=y["a"].map(e.data.items,(function(e){return y["a"].values(y["a"].pick(e,"Номер плавки ККЦ"))+" - ("+y["a"].values(y["a"].pick(e,"HEAT_START"))+")"}));let r=y["a"].map(e.data.items,(function(e){return y["a"].omit(e,"КЧ","МП350 №","Номер выпуска ДЦ","Номер плавки ККЦ","Снятие, %")}));this.commit("HMCarReport/set_sumData",r),this.commit("HMCarReport/set_avgData",r),e.data.headers=v(e.data.items)},set_loading(e,t){e.loading=t},resetState(e){Object.assign(e,JSON.parse(JSON.stringify(ce)))}},actions:{getData({commit:e},t){e("set_loading",!0);const r=o()({data:{params:{flag:"getData_HMCarReport",dateStart:t[0],dateEnd:t[1]}}});return o.a.all([r]).then(o.a.spread((...t)=>{const r=t[0].data;0!==r.length?e("set_data",[r]):e("resetState")})).catch(t=>{e("set_loading",!1),e("resetState"),console.log(t)}).finally(()=>{e("set_loading",!1)})}}};const pe={data:{headers:[],items:[],avgData:[],sumData:[]},loading:!1},me=JSON.parse(JSON.stringify(pe));var ge=Math.round;Math.round=function(e,t){if(1==arguments.length)return ge(e);var r=Math.pow(10,t);return ge(e*r)/r};var _e={namespaced:!0,state:me,getters:{data:e=>e.data,loading:e=>e.loading},mutations:{set_sumData(e,t){e.data.sumData=y["a"].reduce(t,(function(e,t){for(var r in t)e[r]=Math.round((r in e?e[r]:0)+t[r],2);return e}),{})},set_avgData(e,t){e.data.avgData=y["a"].reduce(t,(function(e,r){for(var n in r)e[n]=Math.round((n in e?e[n]:0)+r[n]/t.length,2);return e}),{})},set_data(e,t){e.data.items=t[0],e.data.items.forEach(e=>{const t=new Date(e.Date.date);e.Date=`${t.getDate(e.Date)}.${t.getMonth(e.Date)+1}.${t.getFullYear(e.Date)}`}),e.data.headers=v(e.data.items),e.data.headers.forEach(e=>{switch(e.text){case"Date":e.text="Дата";break}}),this.commit("HM_DC/set_sumData",e.data.items),this.commit("HM_DC/set_avgData",e.data.items)},set_loading(e,t){e.loading=t},resetState(e){Object.assign(e,JSON.parse(JSON.stringify(pe)))}},actions:{getData({commit:e},t){e("set_loading",!0);const r=o()({data:{params:{flag:"getData",dateStart:t[0],dateEnd:t[1]}}});return o.a.all([r]).then(o.a.spread((...t)=>{const r=t[0].data;0!==r.length?e("set_data",[r]):e("resetState")})).catch(t=>{e("set_loading",!1),e("resetState"),console.log(t)}).finally(()=>{e("set_loading",!1)})}}};const ye={data:{headers:[],items:[]},loading:!1},ve=JSON.parse(JSON.stringify(ye));var be={namespaced:!0,state:ve,getters:{data:e=>e.data,loading:e=>e.loading},mutations:{getExcel(e,t){var r=[],n=new M.a.Workbook,a=n.addWorksheet("Документ создан\r\n"+new Date(Date.now()).print("%d.%m.%Y"),{properties:{showGridLines:!1}}),i=y["a"].keys(y["a"].first(e.data.items));y["a"].each(i,(function(e){r.push(y["a"].object(["key"],[e]))})),a.mergeCells("A1","AA"),a.getCell("C1").value=""+("Эксплуатации стальковшей с "+t[0]+" по "+t[1]+"\r\n"),a.getCell("C1").font={bold:!0,family:2,size:12},a.getCell("C1").alignment={vertical:"center",horizontal:"center",wrapText:!0};var s=a.getRow(1);s.height=20,a.getRow(2).values=i,a.columns=r,a.addRows(e.data.items),a.eachRow({includeEmpty:!0},(function(e,t){e.eachCell({includeEmpty:!0},(function(e){2===t?(a.getCell(e._address).fill={type:"pattern",pattern:"solid",fgColor:{argb:"e0e0e0"}},a.getCell(e._address).font={bold:!0},a.getCell(e._address).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},a.getCell(e._address).alignment={vertical:"center",horizontal:"center"}):t>2&&(a.getCell(e._address).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}))})),b(a,2),n.xlsx.writeBuffer().then(e=>F.a.saveAs(new Blob([e]),new Date(Date.now()).print("%d.%m.%Y")+".xlsx")).catch(e=>console.log("Error writing excel export",e)).finally(()=>{})},set_data(e,t){e.data.items=t,e.data.headers=v(e.data.items),e.data.headers.forEach(e=>{switch(e.text){case"crew":e.text="Бригада";break;case"bof1_plan":e.text="План, т";break;case"bof2_plan":e.text="План, т";break;case"bof1_fact":e.text="Факт, т";break;case"bof2_fact":e.text="Факт, т";break;case"ccm1_plan":e.text="План, т";break;case"ccm2_plan":e.text="План, т";break;case"ccm1_fact":e.text="Факт, т";break;case"ccm2_fact":e.text="Факт, т";break;case"lf_plan":e.text="План, т";break;case"lf_fact":e.text="Факт, т";break}})},set_loading(e,t){e.loading=t},resetState(e){Object.assign(e,JSON.parse(JSON.stringify(ye)))}},actions:{getData(e,t){e.commit("set_loading",!0),o()({data:{params:{flag:"getData_crewAggregateWeight",dateStart:t[0],dateEnd:t[1]}}}).then(t=>{const r=t.data;0!==r.length?e.commit("set_data",r):e.commit("resetState")}).catch(t=>{e.commit("set_loading",!1),e.commit("resetState"),console.log(t)}).finally(()=>{e.commit("set_loading",!1)})}}};const we={data:{headers:[],table:[],prostoiSelected:[],items:[],chart:{},label:[],originalDataset:[],originalDataItems:[],originalDataTable:[],minDate:[],maxDate:[]},loading:!1},xe=JSON.parse(JSON.stringify(we));var ke={namespaced:!0,state:xe,getters:{data:e=>e.data,loading:e=>e.loading},mutations:{getExcel(e,t){var r=new M.a.Workbook,n=r.addWorksheet("Документ создан\r\n"+new Date(Date.now()).print("%d.%m.%Y"),{properties:{showGridLines:!1}});n.mergeCells("A1","AA"),n.getCell("C1").value=""+("Эксплуатации стальковшей с "+t[0]+" по "+t[1]+"\r\n");var a=r.addImage({base64:t[2],extension:"png"});n.addImage(a,{br:{col:5,row:60},ext:{width:150,height:100},editAs:"oneCell"}),r.xlsx.writeBuffer().then(e=>F.a.saveAs(new Blob([e]),new Date(Date.now()).print("%d.%m.%Y")+".xlsx")).catch(e=>console.log("Error writing excel export",e)).finally(()=>{})},changeAggregate(e,t){this.commit("BOFHeatPhase/buildChartDataset",t)},refreshChart(e,t){let r=t[0];e.data.chart.dataset=e.data.originalDataset;let n=[];y["a"].pluck(r,"id").forEach(t=>{n.push(y["a"].where(e.data.table,{id:t}))}),e.data.prostoiSelected=y["a"].compact(y["a"].uniq(y["a"].flatten(n))).map(t=>({...t,heat_number:y["a"].first(y["a"].pluck(y["a"].where(e.data.items,{id:t.id}),"HEAT_NUMBER")),phase_duration:y["a"].first(y["a"].pluck(y["a"].where(e.data.items,{id:t.id}),"PROSTOI_DURATION")),prostoi_descr:y["a"].first(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{id:t.id}),{PROSTOI_DESC:"Простой"}),"PP_Descr"))}));var a=[];r.forEach(t=>{a.push(y["a"].first(y["a"].filter(e.data.chart.dataset,(function(e){return e.id==t.id}))))}),e.data.chart.dataset=y["a"].reject(e.data.chart.dataset,{aggregate:"prostoy"}),y["a"].compact(y["a"].uniq(a)).forEach(t=>{e.data.chart.dataset.push(t)})},buildChartDataset(e,t){switch(e.data.items=e.data.originalDataItems,e.data.table=e.data.originalDataTable,t){case"K1":e.data.items=y["a"].where(e.data.items,{AGGREGATE_ID:1}),e.data.table=y["a"].where(e.data.table,{Agregat:"К1"});break;case"K2":e.data.items=y["a"].where(e.data.items,{AGGREGATE_ID:2}),e.data.table=y["a"].where(e.data.table,{Agregat:"К2"});break}let r=y["a"].reject(y["a"].where(e.data.table,{Descr:"Простой"}),{DescrPrichin:"Прочие"});e.data.prostoiSelected=y["a"].reject(r,{DescrPrichin:null}),e.data.prostoiSelected=e.data.prostoiSelected.map(t=>({...t,heat_number:y["a"].first(y["a"].pluck(y["a"].where(e.data.items,{id:t.id}),"HEAT_NUMBER")),phase_duration:y["a"].first(y["a"].pluck(y["a"].where(e.data.items,{id:t.id}),"PROSTOI_DURATION")),prostoi_descr:y["a"].first(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{id:t.id}),{PROSTOI_DESC:"Простой"}),"PP_Descr"))})),e.data.chart.label=[],e.data.chart.dataset=[];let n=y["a"].uniq(y["a"].pluck(y["a"].where(e.data.items,{AGGREGATE_ID:1}),"HEAT_NUMBER")),a=y["a"].uniq(y["a"].pluck(y["a"].where(e.data.items,{AGGREGATE_ID:2}),"HEAT_NUMBER"));0!=y["a"].size(n)&&(e.data.chart.label.push("K1"),e.data.chart.label.push(n)),0!=y["a"].size(a)&&(e.data.chart.label.push("K2"),e.data.chart.label.push(a)),e.data.chart.label=y["a"].flatten(e.data.chart.label);let i=function(e,t){let r=new Date(e),n=new Date(t),a=n-r;return Math.round(a/1e3/60)};e.data.chart.label.forEach(t=>{let r=new Date(y["a"].first(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{PHASE_NAME:"Завалка"}),"DATE_START"))),n=null===y["a"].first(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{PHASE_NAME:"Слив шлака"}),"DATE_END"))?new Date(y["a"].first(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{PHASE_NAME:"Слив металла"}),"DATE_END"))):new Date(y["a"].first(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{PHASE_NAME:"Слив шлака"}),"DATE_END")));e.data.chart.dataset.push({aggregate:"bof",backgroundColor:"#51C27F",date_start:y["a"].first(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{PHASE_NAME:"Завалка"}),"DATE_START")),date_end:null===y["a"].first(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{PHASE_NAME:"Слив шлака"}),"DATE_END"))?y["a"].first(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{PHASE_NAME:"Слив металла"}),"DATE_END")):y["a"].first(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{PHASE_NAME:"Слив шлака"}),"DATE_END")),data:[{x:[r,n],y:t,PHASE_DURATION:n.getTime()>=new Date(e.data.date_start_hidden).getTime()&&n.getTime()<=new Date(e.data.date_end_hidden).getTime()?i(r,n):""}]})}),e.data.chart.label.forEach(t=>{let r=y["a"].first(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{PROSTOI_DESC:"Простой"}),"P_START")),n=y["a"].first(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{PROSTOI_DESC:"Простой"}),"P_END"));e.data.chart.dataset.push({aggregate:"prostoy",id:y["a"].first(y["a"].uniq(y["a"].compact(y["a"].pluck(y["a"].where(e.data.items,{HEAT_NUMBER:t}),"id")))),backgroundColor:"#C2CBD1",p_start:r,p_end:n,data:[{x:[r,n],y:t,PHASE_DURATION:y["a"].first(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{PROSTOI_DESC:"Простой"}),"PROSTOI_DURATION")),prostoi_name:y["a"].first(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{PROSTOI_DESC:"Простой"}),"PP_Descr"))}]})}),e.data.chart.label.forEach(t=>{let r=y["a"].first(y["a"].pluck(y["a"].where(e.data.items,{HEAT_NUMBER:t}),"LF_START")),n=y["a"].first(y["a"].pluck(y["a"].where(e.data.items,{HEAT_NUMBER:t}),"LF_END"));e.data.chart.dataset.push({aggregate:"lf",backgroundColor:"#FF6F4D",lf_start:r,lf_end:n,data:[{x:[r,y["a"].isNull(n)?r:n],y:t,PHASE_DURATION:new Date(n).getTime()>=new Date(e.data.date_start_hidden).getTime()&&new Date(n).getTime()<=new Date(e.data.date_end_hidden).getTime()?y["a"].first(y["a"].pluck(y["a"].where(e.data.items,{HEAT_NUMBER:t}),"LF_DURATION")):""}]})}),e.data.chart.label.forEach(t=>{let r=new Date(y["a"].first(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{CCM_STATUS:1}),"CCM_STATUS_TIME"))),n=new Date(y["a"].last(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{CCM_STATUS:2}),"CCM_STATUS_TIME")));"Invalid Date"!=n&&e.data.chart.dataset.push({aggregate:"ccm_status2",backgroundColor:"#00eeff",ccm_status2_start:y["a"].first(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{CCM_STATUS:1}),"CCM_STATUS_TIME")),ccm_status2_end:y["a"].last(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{CCM_STATUS:2}),"CCM_STATUS_TIME")),data:[{x:[r,n],y:t,PHASE_DURATION:n.getTime()>=new Date(e.data.date_start_hidden).getTime()&&n.getTime()<=new Date(e.data.date_end_hidden).getTime()?i(r,n):""}]})}),e.data.chart.label.forEach(t=>{let r=new Date(y["a"].last(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{CCM_STATUS:2}),"CCM_STATUS_TIME"))),n=new Date(y["a"].last(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{CCM_STATUS:3}),"CCM_STATUS_TIME")));"Invalid Date"!=n&&e.data.chart.dataset.push({aggregate:"ccm_status3",backgroundColor:"#01d5e4",ccm_status3_start:y["a"].last(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{CCM_STATUS:2}),"CCM_STATUS_TIME")),ccm_status3_end:y["a"].last(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{CCM_STATUS:3}),"CCM_STATUS_TIME")),data:[{x:[r,n],y:t,PHASE_DURATION:n.getTime()>=new Date(e.data.date_start_hidden).getTime()&&n.getTime()<=new Date(e.data.date_end_hidden).getTime()?i(r,n):""}]})}),e.data.chart.label.forEach(t=>{let r=new Date(y["a"].last(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{CCM_STATUS:3}),"CCM_STATUS_TIME"))),n=new Date(y["a"].last(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{CCM_STATUS:7}),"CCM_STATUS_TIME")));"Invalid Date"!=n&&e.data.chart.dataset.push({aggregate:"ccm_status4",backgroundColor:"#03a2ad",ccm_status4_start:y["a"].last(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{CCM_STATUS:3}),"CCM_STATUS_TIME")),ccm_status4_end:y["a"].last(y["a"].pluck(y["a"].where(y["a"].where(e.data.items,{HEAT_NUMBER:t}),{CCM_STATUS:7}),"CCM_STATUS_TIME")),data:[{x:[r,n],y:t,PHASE_DURATION:n.getTime()>=new Date(e.data.date_start_hidden).getTime()&&n.getTime()<=new Date(e.data.date_end_hidden).getTime()?i(r,n):""}]})}),e.data.originalDataset=e.data.chart.dataset},set_data(e,t){e.data.items=t[0],e.data.originalDataItems=e.data.items,e.data.table=t[1],e.data.originalDataTable=e.data.table,e.data.headers=v(e.data.table);let r=t[2][2];e.data.date_start_hidden=new Date(new Date(r).getFullYear(),new Date(r).getMonth(),new Date(r).getDate()).toISOString().substr(0,10)+" 23:30:00",e.data.date_end_hidden=new Date(new Date(r).getFullYear(),new Date(r).getMonth(),new Date(r).getDate()+1).toISOString().substr(0,10)+" 23:00:00",e.data.headers.forEach(e=>{switch(e.text){case"Agregat":e.text="Агрегат";break;case"Descr":e.text="Этапы";break;case"Br":e.text="Бригада";break;case"DtB":e.text="Начало";break;case"DtE":e.text="Конец";break;case"Cikl":e.text="Длительность";break;case"RashDtB":e.text="Начало";break;case"RashDtE":e.text="Конец";break;case"Cikl2":e.text="Длительность";break;case"DescrGroup":e.text="Группа";break;case"DescrPrichin":e.text="Причина";break;case"Prim":e.text="Примечание";break}}),this.commit("BOFHeatPhase/buildChartDataset")},set_loading(e,t){e.loading=t},resetState(e){Object.assign(e,JSON.parse(JSON.stringify(we)))}},actions:{changeAggregate({commit:e},t){e("changeAggregate",t)},refreshChart({commit:e},t){e("refreshChart",t)},getData({commit:e},t){e("set_loading",!0);const r=o()({data:{params:{flag:"getData_BOFHeatPhase",dateStart:t[0],dateEnd:t[1]}}}),n=o()({data:{params:{flag:"getData_BOFHeatPhaseProstoi",dateStart:t[0],dateEnd:t[1]}}});return o.a.all([r,n]).then(o.a.spread((...r)=>{const n=r[0].data,a=r[1].data;n.length?e("set_data",[n,a,t]):e("resetState")})).catch(t=>{e("set_loading",!1),e("resetState"),console.log(t)}).finally(()=>{e("set_loading",!1)})}}};const Te={data:{headers:[],items:[]},history:{headers:[],items:[]},loading:!1,loading_file:!1,loading_history:!1,isLogging:!1,uploadText:"",uploadStatus:""},Se=JSON.parse(JSON.stringify(Te));var Ee={namespaced:!0,state:Se,getters:{data:e=>e.data,history:e=>e.history,loading:e=>e.loading,loading_file:e=>e.loading_file,loading_history:e=>e.loading_history,isLogging:e=>e.isLogging,uploadText:e=>e.uploadText,uploadStatus:e=>e.uploadStatus},mutations:{set_data(e,t){e.isLogging?e.data.items=t:e.data.items=y["a"].where(t,{isCompleted:1}),e.data.headers=v(e.data.items),e.data.headers.forEach(e=>{switch(e.text){case"id":e.text="История";break;case"isCompleted":e.text="Выверен";break;case"file_name":e.text="Имя файла";break}})},set_history(e,t){e.history.items=t,e.history.headers=v(e.history.items),e.history.headers.forEach(e=>{switch(e.text){case"IP_Author":e.text="IP Автора";break;case"IP_Client":e.text="IP Клиента";break;case"download_date":e.text="Дата загрузки";break}})},setCompleted(e,t){y["a"].findWhere(e.data.items,{id:t.id}).isCompleted=t.value},set_loading(e,t){e.loading=t},set_loading_file(e,t){e.loading_file=t},set_loading_history(e,t){e.loading_history=t},set_logging(e,t){e.isLogging=t},set_uploadText(e,t){e.uploadText=t},set_uploadStatus(e,t){e.uploadStatus=t},setStorage(e,t){"prbamk"===t&&localStorage.setItem("PRBpass",t)},resetState(e){Object.assign(e,JSON.parse(JSON.stringify(Te)))}},actions:{logout({commit:e}){delete localStorage.PRBpass,e("set_logging",!1)},logging({commit:e},t){"prbamk"===t&&e("set_logging",!0)},getStorage({commit:e}){let t=localStorage.getItem("PRBpass");"prbamk"===t&&e("set_logging",!0)},File_Upload(e,t){return console.log(t),e.commit("set_loading_file",!0),o.a.post("http://192.168.76.100:81//_api_server_vue//modules/PRB_FileControl/File_Upload.php",t.file,{headers:{"Content-Type":"multipart/form-data"}}).then(r=>o()({data:{params:{flag:"insertFileInfo",data:{item:r.data.item,date:t.date}}}}).then(()=>{e.commit("set_uploadText",r.data.item.success),e.commit("set_uploadStatus",!0),e.commit("set_loading_file",!1)}).catch(()=>{e.commit("set_loading_file",!1)}).finally(()=>{e.commit("set_loading_file",!1)})).catch(()=>{e.commit("set_loading",!1),e.commit("set_loading_file",!1),e.commit("set_uploadText","Не удалось загрузить файл."),e.commit("set_uploadStatus",!1)}).finally(()=>{})},getData({commit:e},t){return e("set_loading",!0),o()({data:{params:{flag:"getFiles",data:t}}}).then(t=>{const r=t.data;e("set_data",r),e("set_loading",!1)}).catch(()=>{e("set_loading",!1)}).finally(()=>{e("set_loading",!1)})},getHistory({commit:e},t){return e("set_loading_history",!0),o()({data:{params:{flag:"getHistory",data:t}}}).then(t=>{const r=t.data;e("set_history",r),e("set_loading_history",!1)}).catch(()=>{e("set_loading_history",!1)}).finally(()=>{e("set_loading_history",!1)})},setCompleted({commit:e},t){return e("set_loading",!0),o()({data:{params:{flag:"setCompleted",data:t}}}).then(()=>{e("setCompleted",t),e("set_loading",!1)}).catch(()=>{e("set_loading",!1)}).finally(()=>{e("set_loading",!1)})},setHistory({commit:e},t){return e("set_loading",!0),o()({data:{params:{flag:"setHistory",id:t}}}).then(()=>{e("set_loading",!1)}).catch(()=>{e("set_loading",!1)}).finally(()=>{e("set_loading",!1)})},deleteData({commit:e},t){return e("set_loading",!0),o()({data:{params:{flag:"deleteData",data:t}}}).then(()=>{e("set_loading",!1)}).catch(()=>{e("set_loading",!1)}).finally(()=>{e("set_loading",!1)})}}};n["a"].use(_["a"]);const Ce=new _["a"].Store({modules:{stat:k,prohodnaya:E,weatherAvg:A,tundishSample:R,BOFReportSample_A1:U,BOFReportSample_A2:H,BOFReportSample_B1:Y,BOFReportSample_C1:X,BOFReportSample_D1:q,BOFMainUseConfig:ee,BOFReportAvgData_Marka:ne,Pasport_KRO:se,LadleUse:ue,HMCarReport:fe,HM_DC:_e,crewAggregateWeight:be,BOFHeatPhase:ke,PRB_FileControl:Ee},strict:!1});var Oe=Ce,Ae=r("8c4f");n["a"].use(Ae["a"]);const De=[{path:"/",name:"index",component:()=>Promise.all([r.e("chunk-3ac51e83"),r.e("index")]).then(r.bind(null,"6e78"))},{path:"/prohodnaya",name:"prohodnaya",component:()=>Promise.all([r.e("chunk-3ac51e83"),r.e("chunk-dfddc2f4"),r.e("chunk-fecca1e4"),r.e("chunk-187a5f3f")]).then(r.bind(null,"ae80"))},{path:"/weatherAvg",name:"weatherAvg",component:()=>Promise.all([r.e("chunk-3ac51e83"),r.e("chunk-dfddc2f4"),r.e("chunk-fecca1e4"),r.e("chunk-28dc4aef")]).then(r.bind(null,"6045"))},{path:"/tundishSample",name:"tundishSample",component:()=>Promise.all([r.e("chunk-3ac51e83"),r.e("chunk-dfddc2f4"),r.e("chunk-fecca1e4"),r.e("chunk-1b4ec2a7")]).then(r.bind(null,"3e69"))},{path:"/BOFReport/BOFReportSample_A1",name:"BOFReportSample_A1",component:()=>Promise.all([r.e("chunk-3ac51e83"),r.e("chunk-dfddc2f4"),r.e("chunk-fecca1e4"),r.e("chunk-2ae756f5")]).then(r.bind(null,"6593")),beforeEnter(e,t,r){o.a.defaults.headers.post["project"]="BOFReport",r()}},{path:"/BOFReport/BOFReportSample_A2",name:"BOFReportSample_A2",component:()=>Promise.all([r.e("chunk-3ac51e83"),r.e("chunk-dfddc2f4"),r.e("chunk-fecca1e4"),r.e("chunk-75bd6bd9")]).then(r.bind(null,"5631")),beforeEnter(e,t,r){o.a.defaults.headers.post["project"]="BOFReport",r()}},{path:"/BOFReport/BOFReportSample_B1",name:"BOFReportSample_B1",component:()=>Promise.all([r.e("chunk-3ac51e83"),r.e("chunk-dfddc2f4"),r.e("chunk-fecca1e4"),r.e("chunk-4348ccc7")]).then(r.bind(null,"1324")),beforeEnter(e,t,r){o.a.defaults.headers.post["project"]="BOFReport",r()}},{path:"/BOFReport/BOFReportSample_C1",name:"BOFReportSample_C1",component:()=>Promise.all([r.e("chunk-3ac51e83"),r.e("chunk-dfddc2f4"),r.e("chunk-fecca1e4"),r.e("chunk-39ed1a08")]).then(r.bind(null,"e1f6")),beforeEnter(e,t,r){o.a.defaults.headers.post["project"]="BOFReport",r()}},{path:"/BOFReport/BOFReportSample_D1",name:"BOFReportSample_D1",component:()=>Promise.all([r.e("chunk-3ac51e83"),r.e("chunk-dfddc2f4"),r.e("chunk-fecca1e4"),r.e("chunk-33abae75")]).then(r.bind(null,"76ed")),beforeEnter(e,t,r){o.a.defaults.headers.post["project"]="BOFReport",r()}},{path:"/BOFReport/BOFMainUseConfig",name:"BOFMainUseConfig",component:()=>Promise.all([r.e("chunk-3ac51e83"),r.e("chunk-dfddc2f4"),r.e("chunk-fecca1e4"),r.e("chunk-2f415156")]).then(r.bind(null,"2703")),beforeEnter(e,t,r){o.a.defaults.headers.post["project"]="BOFReport",r()}},{path:"/BOFReport/BOFReportAvgData_Marka",name:"BOFReportAvgData_Marka",component:()=>Promise.all([r.e("chunk-3ac51e83"),r.e("chunk-dfddc2f4"),r.e("chunk-fecca1e4"),r.e("chunk-5cee169e"),r.e("chunk-56216674")]).then(r.bind(null,"a2a2")),beforeEnter(e,t,r){o.a.defaults.headers.post["project"]="BOFReport",r()}},{path:"/Pasport_KRO",name:"Pasport_KRO",component:()=>Promise.all([r.e("chunk-3ac51e83"),r.e("chunk-dfddc2f4"),r.e("chunk-fecca1e4"),r.e("chunk-461f6ae6")]).then(r.bind(null,"b2d1"))},{path:"/LadleUse",name:"LadleUse",component:()=>Promise.all([r.e("chunk-3ac51e83"),r.e("chunk-dfddc2f4"),r.e("chunk-fecca1e4"),r.e("chunk-5e54c849")]).then(r.bind(null,"7b3c"))},{path:"/HMCarReport",name:"HMCarReport",component:()=>Promise.all([r.e("chunk-3ac51e83"),r.e("chunk-dfddc2f4"),r.e("chunk-fecca1e4"),r.e("chunk-36308615")]).then(r.bind(null,"66e9"))},{path:"/HM_DC",name:"HM_DC",component:()=>Promise.all([r.e("chunk-3ac51e83"),r.e("chunk-dfddc2f4"),r.e("chunk-fecca1e4"),r.e("chunk-099daac5")]).then(r.bind(null,"01a6"))},{path:"/crewAggregateWeight",name:"crewAggregateWeight",component:()=>Promise.all([r.e("chunk-3ac51e83"),r.e("chunk-dfddc2f4"),r.e("chunk-fecca1e4"),r.e("chunk-366d1341")]).then(r.bind(null,"1247"))},{path:"/BOFHeatPhase",name:"BOFHeatPhase",component:()=>Promise.all([r.e("chunk-3ac51e83"),r.e("chunk-dfddc2f4"),r.e("chunk-fecca1e4"),r.e("chunk-5cee169e"),r.e("chunk-e2532de8")]).then(r.bind(null,"4848"))},{path:"/PRB_FileControl",name:"PRB_FileControl",component:()=>Promise.all([r.e("chunk-3ac51e83"),r.e("chunk-dfddc2f4"),r.e("chunk-fecca1e4"),r.e("chunk-734bbfda")]).then(r.bind(null,"b688"))},{path:"/stat",name:"Stat",component:()=>Promise.all([r.e("chunk-3ac51e83"),r.e("chunk-dfddc2f4"),r.e("chunk-732e6f1b")]).then(r.bind(null,"7e0a"))}],Ne=new Ae["a"]({routes:De,mode:"hash"});Ne.beforeEach((e,t,r)=>{"index"===e.name?o.a.defaults.headers.post["project"]="stat":(o.a.defaults.headers.post["project"]="stat",Oe.dispatch("stat/addData",e.name),o.a.defaults.headers.post["project"]=e.name),r()});var Re=Ne,Ie=(r("5363"),r("d1e78"),r("f309")),Me=r("2992"),Pe=r.n(Me);n["a"].use(Ie["a"]);var Fe=new Ie["a"]({icons:{iconfont:"mdi"},lang:{locales:{ru:Pe.a},current:"ru"}});n["a"].config.productionTip=!1,n["a"].use(y["b"]),new n["a"]({store:Oe,router:Re,vuetify:Fe,render:e=>e(g)}).$mount("#app")},"70ad":function(e,t,r){},e686:function(e,t,r){"use strict";r("70ad")}}); \ No newline at end of file diff --git a/dist/js/chunk-099daac5.c28109f0.js b/dist/js/chunk-099daac5.c28109f0.js deleted file mode 100644 index ef45949..0000000 --- a/dist/js/chunk-099daac5.c28109f0.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-099daac5"],{"01a6":function(t,e,a){"use strict";a.r(e);var s=a("99d9"),i=a("62ad"),n=a("a523"),d=a("8fea"),l=a("2e4b"),r=a("ce7e"),c=a("e449"),o=a("0fd9"),u=a("2fa4"),h=a("8654"),m=(a("ac1f"),function(){var t=this,e=t._self._c;return e(n["a"],{attrs:{fluid:"",id:"HM_DC"}},[e(s["b"],{staticClass:"text-center headline black--text"},[t._v("Баланс чугуна (Доменный цех) за период "+t._s(t.computedDateFormatted))]),e(r["a"],{staticClass:"mx-0"}),e(o["a"],[e(i["a"],{staticStyle:{"min-width":"250px","max-width":"250px"},attrs:{cols:"12"}},[e(c["a"],{attrs:{"close-on-content-click":!1,"nudge-right":40,"nudge-top":-5,transition:"scale-transition","offset-y":"","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function({on:a}){return[e(h["a"],t._g({staticClass:"datePicker",attrs:{id:"datePicker","prepend-icon":"event",readonly:"","single-line":"",disabled:t.loading},model:{value:t.computedDateFormatted,callback:function(e){t.computedDateFormatted=e},expression:"computedDateFormatted"}},a))]}}]),model:{value:t.datePickerMenu,callback:function(e){t.datePickerMenu=e},expression:"datePickerMenu"}},[e(l["a"],{attrs:{"no-title":"",scrollable:"","popover-align":"center",range:""},on:{input:function(e){t.input(e)&&t.datePickerMenu},change:function(e){return t.refreshData()}},model:{value:t.dates,callback:function(e){t.dates=e},expression:"dates"}})],1)],1),e(u["a"]),e(i["a"],{attrs:{cols:"12",sm:"2",md:"2",lg:"2",xl:"2"}},[e(h["a"],{attrs:{"append-icon":"mdi-magnify",label:"Поиск","single-line":"","hide-details":"",clearable:"",disabled:t.loading},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1)],1),e(d["a"],{attrs:{"item-key":"id",headers:t.headers,items:t.data.items,loading:t.loading,search:t.search,"disable-pagination":"","hide-default-footer":"",dense:""},on:{"click:row":t.rowClick}},[e("template",{slot:"body.append"},[t.data.items.length?e("tr",{staticClass:"font-weight-bold"},[e("th",{staticClass:"text-right divider d-sm-table-cell",attrs:{colspan:6}},[t._v("Сумма:")]),e("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.sumData["Вес"]))]),e("th",{staticClass:"text-center divider d-sm-table-cell",attrs:{colspan:12}})]):t._e()]),e("template",{slot:"body.append"},[t.data.items.length?e("tr",{staticClass:"font-weight-bold"},[e("th",{staticClass:"text-right divider d-sm-table-cell",attrs:{colspan:6}},[t._v("Среднее:")]),e("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgData["Вес"]))]),e("th",{staticClass:"text-center divider d-sm-table-cell",attrs:{colspan:12}})]):t._e()])],2)],1)}),p=[],f=a("2f62");let g=new Date;var b={data:()=>({value:[],search:"",dates:[new Date(g.getFullYear(),g.getMonth(),g.getDate()+1).toISOString().substr(0,10),(new Date).toISOString().substr(0,10)],datePickerMenu:!1}),computed:{...Object(f["c"])("HM_DC",{loading:"loading",data:"data"}),computedDateFormatted(){let t=[];return t.push(this.formatDate(this.dates[0])),t.push(this.formatDate(this.dates[1])),t.join(" ~ ")},headers(){var t=document.createElement("canvas"),e=t.getContext("2d");return e.font="12px Roboto, sans-serif",this.data.headers.forEach(t=>{var a=e.measureText(t.text),s=a.width;t.width=s+65,t.align="center",t.divider=!0,"id"===t.value&&(t.align=" d-none")}),this.data.headers}},methods:{...Object(f["b"])("HM_DC",{getData:"getData"}),rowClick:function(t,e){let a=!e.isSelected;e.select(a)},input(t){2==t.length&&(this.datePickerMenu=!1)},formatDate(t){if(!t)return null;const[e,a,s]=t.split("-");return`${s}.${a}.${e}`},refreshData(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},mounted(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},v=b,D=(a("50d7"),a("ec86"),a("2877")),x=Object(D["a"])(v,m,p,!1,null,null,null);e["default"]=x.exports},"2fa4":function(t,e,a){"use strict";a("20f6");var s=a("80d2");e["a"]=Object(s["j"])("spacer","div","v-spacer")},"50d7":function(t,e,a){"use strict";a("d6ab")},"67e4":function(t,e,a){},d6ab:function(t,e,a){},ec86:function(t,e,a){"use strict";a("67e4")}}]); \ No newline at end of file diff --git a/dist/js/chunk-187a5f3f.ee7cdd2d.js b/dist/js/chunk-187a5f3f.ee7cdd2d.js deleted file mode 100644 index 1b6cd3c..0000000 --- a/dist/js/chunk-187a5f3f.ee7cdd2d.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-187a5f3f"],{"0a5a":function(t,e,s){},"13b3":function(t,e,s){},"1bfb":function(t,e,s){},"2fa4":function(t,e,s){"use strict";s("20f6");var i=s("80d2");e["a"]=Object(i["j"])("spacer","div","v-spacer")},"608c":function(t,e,s){},"9d01":function(t,e,s){},ae80:function(t,e,s){"use strict";s.r(e);s("ff44");var i=s("132d"),r=s("a9ad"),n=s("7560"),a=s("f2e7"),o=s("2b0e"),l=o["a"].extend({name:"transitionable",props:{mode:String,origin:String,transition:String}}),h=s("fe6c"),c=s("58df"),d=s("80d2"),u=Object(c["a"])(r["a"],Object(h["b"])(["left","bottom"]),n["a"],a["a"],l).extend({name:"v-badge",props:{avatar:Boolean,bordered:Boolean,color:{type:String,default:"primary"},content:{required:!1},dot:Boolean,label:{type:String,default:"$vuetify.badge"},icon:String,inline:Boolean,offsetX:[Number,String],offsetY:[Number,String],overlap:Boolean,tile:Boolean,transition:{type:String,default:"scale-rotate-transition"},value:{default:!0}},computed:{classes(){return{"v-badge--avatar":this.avatar,"v-badge--bordered":this.bordered,"v-badge--bottom":this.bottom,"v-badge--dot":this.dot,"v-badge--icon":null!=this.icon,"v-badge--inline":this.inline,"v-badge--left":this.left,"v-badge--overlap":this.overlap,"v-badge--tile":this.tile,...this.themeClasses}},computedBottom(){return this.bottom?"auto":this.computedYOffset},computedLeft(){return this.isRtl?this.left?this.computedXOffset:"auto":this.left?"auto":this.computedXOffset},computedRight(){return this.isRtl?this.left?"auto":this.computedXOffset:this.left?this.computedXOffset:"auto"},computedTop(){return this.bottom?this.computedYOffset:"auto"},computedXOffset(){return this.calcPosition(this.offsetX)},computedYOffset(){return this.calcPosition(this.offsetY)},isRtl(){return this.$vuetify.rtl},offset(){return this.overlap?this.dot?8:12:this.dot?2:4},styles(){return this.inline?{}:{bottom:this.computedBottom,left:this.computedLeft,right:this.computedRight,top:this.computedTop}}},methods:{calcPosition(t){return`calc(100% - ${Object(d["h"])(t||this.offset)})`},genBadge(){const t=this.$vuetify.lang,e=this.$attrs["aria-label"]||t.t(this.label),s=this.setBackgroundColor(this.color,{staticClass:"v-badge__badge",style:this.styles,attrs:{"aria-atomic":this.$attrs["aria-atomic"]||"true","aria-label":e,"aria-live":this.$attrs["aria-live"]||"polite",title:this.$attrs.title,role:this.$attrs.role||"status"},directives:[{name:"show",value:this.isActive}]}),i=this.$createElement("span",s,[this.genBadgeContent()]);return this.transition?this.$createElement("transition",{props:{name:this.transition,origin:this.origin,mode:this.mode}},[i]):i},genBadgeContent(){if(this.dot)return;const t=Object(d["s"])(this,"badge");return t||(this.content?String(this.content):this.icon?this.$createElement(i["a"],this.icon):void 0)},genBadgeWrapper(){return this.$createElement("span",{staticClass:"v-badge__wrapper"},[this.genBadge()])}},render(t){const e=[this.genBadgeWrapper()],s=[Object(d["s"])(this)],{"aria-atomic":i,"aria-label":r,"aria-live":n,role:a,title:o,...l}=this.$attrs;return this.inline&&this.left?s.unshift(e):s.push(e),t("span",{staticClass:"v-badge",attrs:l,class:this.classes},s)}}),p=s("b0af"),v=s("99d9"),f=s("62ad"),g=s("a523"),m=s("8fea"),w=s("2e4b"),b=s("e449"),y=s("8e36"),x=s("0fd9"),$=s("b974"),C=s("8dd9"),_=s("2fa4"),S=(s("ec29"),s("9d01"),s("fe09")),O=s("c37a"),k=s("c3f0"),I=s("0789"),T=s("490a"),B=S["a"].extend({name:"v-switch",directives:{Touch:k["a"]},props:{inset:Boolean,loading:{type:[Boolean,String],default:!1},flat:{type:Boolean,default:!1}},computed:{classes(){return{...O["a"].options.computed.classes.call(this),"v-input--selection-controls v-input--switch":!0,"v-input--switch--flat":this.flat,"v-input--switch--inset":this.inset}},attrs(){return{"aria-checked":String(this.isActive),"aria-disabled":String(this.isDisabled),role:"switch"}},validationState(){return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":null!==this.hasColor?this.computedColor:void 0},switchData(){return this.setTextColor(this.loading?void 0:this.validationState,{class:this.themeClasses})}},methods:{genDefaultSlot(){return[this.genSwitch(),this.genLabel()]},genSwitch(){const{title:t,...e}=this.attrs$;return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.genInput("checkbox",{...this.attrs,...e}),this.genRipple(this.setTextColor(this.validationState,{directives:[{name:"touch",value:{left:this.onSwipeLeft,right:this.onSwipeRight}}]})),this.$createElement("div",{staticClass:"v-input--switch__track",...this.switchData}),this.$createElement("div",{staticClass:"v-input--switch__thumb",...this.switchData},[this.genProgress()])])},genProgress(){return this.$createElement(I["c"],{},[!1===this.loading?null:Object(d["s"])(this,"progress")||this.$createElement(T["a"],{props:{color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,size:16,width:2,indeterminate:!0}})])},onSwipeLeft(){this.isActive&&this.onChange()},onSwipeRight(){this.isActive||this.onChange()},onKeydown(t){(t.keyCode===d["y"].left&&this.isActive||t.keyCode===d["y"].right&&!this.isActive)&&this.onChange()}}}),A=(s("ac1f"),s("5319"),s("4e82")),E=s("1c87");const D=Object(c["a"])(E["a"],Object(A["a"])("tabsBar"),n["a"]);var R=D.extend().extend().extend({name:"v-tab",props:{ripple:{type:[Boolean,Object],default:!0},tabValue:{required:!1}},data:()=>({proxyClass:"v-tab--active"}),computed:{classes(){return{"v-tab":!0,...E["a"].options.computed.classes.call(this),"v-tab--disabled":this.disabled,...this.groupClasses}},value(){if(null!=this.tabValue)return this.tabValue;let t=this.to||this.href;if(null==t)return t;if(this.$router&&this.to===Object(this.to)){const e=this.$router.resolve(this.to,this.$route,this.append);t=e.href}return t.replace("#","")}},methods:{click(t){this.disabled?t.preventDefault():(this.href&&this.href.indexOf("#")>-1&&t.preventDefault(),t.detail&&this.$el.blur(),this.$emit("click",t),this.to||this.toggle())},toggle(){this.isActive&&(this.tabsBar.mandatory||this.to)||this.$emit("change")}},render(t){const{tag:e,data:s}=this.generateRouteLink();return s.attrs={...s.attrs,"aria-selected":String(this.isActive),role:"tab",tabindex:this.disabled?-1:0},s.on={...s.on,keydown:t=>{t.keyCode===d["y"].enter&&this.click(t),this.$emit("keydown",t)}},t(e,s,Object(d["s"])(this))}}),V=(s("1bfb"),s("caad"),s("608c"),s("9d26")),N=s("604c"),j=s("e4cd"),P=s("dc22");function M(t){const e=.501,s=Math.abs(t);return Math.sign(t)*(s/((1/e-2)*(1-s)+1))}function z(t,e,s,i){const r=t.clientWidth,n=s?e.content-t.offsetLeft-r:t.offsetLeft;s&&(i=-i);const a=e.wrapper+i,o=r+n,l=.4*r;return n<=i?i=Math.max(n-l,0):a<=o&&(i=Math.min(i-(a-o-l),e.content-e.wrapper)),s?-i:i}function W(t,e,s){const{offsetLeft:i,clientWidth:r}=t;if(s){const t=e.content-i-r/2-e.wrapper/2;return-Math.min(e.content-e.wrapper,Math.max(0,t))}{const t=i+r/2-e.wrapper/2;return Math.min(e.content-e.wrapper,Math.max(0,t))}}const F=Object(c["a"])(N["a"],j["a"]).extend({name:"base-slide-group",directives:{Resize:P["a"],Touch:k["a"]},props:{activeClass:{type:String,default:"v-slide-item--active"},centerActive:Boolean,nextIcon:{type:String,default:"$next"},prevIcon:{type:String,default:"$prev"},showArrows:{type:[Boolean,String],validator:t=>"boolean"===typeof t||["always","never","desktop","mobile"].includes(t)}},data:()=>({isOverflowing:!1,resizeTimeout:0,startX:0,isSwipingHorizontal:!1,isSwiping:!1,scrollOffset:0,widths:{content:0,wrapper:0}}),computed:{canTouch(){return"undefined"!==typeof window},__cachedNext(){return this.genTransition("next")},__cachedPrev(){return this.genTransition("prev")},classes(){return{...N["a"].options.computed.classes.call(this),"v-slide-group":!0,"v-slide-group--has-affixes":this.hasAffixes,"v-slide-group--is-overflowing":this.isOverflowing}},hasAffixes(){switch(this.showArrows){case"always":return!0;case"desktop":return!this.isMobile;case!0:return this.isOverflowing||Math.abs(this.scrollOffset)>0;case"mobile":return this.isMobile||this.isOverflowing||Math.abs(this.scrollOffset)>0;case"never":return!1;default:return!this.isMobile&&(this.isOverflowing||Math.abs(this.scrollOffset)>0)}},hasNext(){if(!this.hasAffixes)return!1;const{content:t,wrapper:e}=this.widths;return t>Math.abs(this.scrollOffset)+e},hasPrev(){return this.hasAffixes&&0!==this.scrollOffset}},watch:{internalValue:"setWidths",isOverflowing:"setWidths",scrollOffset(t){this.$vuetify.rtl&&(t=-t);let e=t<=0?M(-t):t>this.widths.content-this.widths.wrapper?-(this.widths.content-this.widths.wrapper)+M(this.widths.content-this.widths.wrapper-t):-t;this.$vuetify.rtl&&(e=-e),this.$refs.content.style.transform=`translateX(${e}px)`}},mounted(){if("undefined"!==typeof ResizeObserver){const t=new ResizeObserver(()=>{this.onResize()});t.observe(this.$el),t.observe(this.$refs.content),this.$on("hook:destroyed",()=>{t.disconnect()})}else{let t=0;this.$on("hook:beforeUpdate",()=>{var e;t=((null===(e=this.$refs.content)||void 0===e?void 0:e.children)||[]).length}),this.$on("hook:updated",()=>{var e;t!==((null===(e=this.$refs.content)||void 0===e?void 0:e.children)||[]).length&&this.setWidths()})}},methods:{onScroll(){this.$refs.wrapper.scrollLeft=0},onFocusin(t){if(this.isOverflowing)for(const e of Object(d["g"])(t))for(const t of this.items)if(t.$el===e)return void(this.scrollOffset=z(t.$el,this.widths,this.$vuetify.rtl,this.scrollOffset))},genNext(){const t=this.$scopedSlots.next?this.$scopedSlots.next({}):Object(d["s"])(this,"next")||this.__cachedNext;return this.$createElement("div",{staticClass:"v-slide-group__next",class:{"v-slide-group__next--disabled":!this.hasNext},on:{click:()=>this.onAffixClick("next")},key:"next"},[t])},genContent(){return this.$createElement("div",{staticClass:"v-slide-group__content",ref:"content",on:{focusin:this.onFocusin}},Object(d["s"])(this))},genData(){return{class:this.classes,directives:[{name:"resize",value:this.onResize}]}},genIcon(t){let e=t;this.$vuetify.rtl&&"prev"===t?e="next":this.$vuetify.rtl&&"next"===t&&(e="prev");const s=`${t[0].toUpperCase()}${t.slice(1)}`,i=this["has"+s];return this.showArrows||i?this.$createElement(V["a"],{props:{disabled:!i}},this[e+"Icon"]):null},genPrev(){const t=this.$scopedSlots.prev?this.$scopedSlots.prev({}):Object(d["s"])(this,"prev")||this.__cachedPrev;return this.$createElement("div",{staticClass:"v-slide-group__prev",class:{"v-slide-group__prev--disabled":!this.hasPrev},on:{click:()=>this.onAffixClick("prev")},key:"prev"},[t])},genTransition(t){return this.$createElement(I["d"],[this.genIcon(t)])},genWrapper(){return this.$createElement("div",{staticClass:"v-slide-group__wrapper",directives:[{name:"touch",value:{start:t=>this.overflowCheck(t,this.onTouchStart),move:t=>this.overflowCheck(t,this.onTouchMove),end:t=>this.overflowCheck(t,this.onTouchEnd)}}],ref:"wrapper",on:{scroll:this.onScroll}},[this.genContent()])},calculateNewOffset(t,e,s,i){const r=s?-1:1,n=r*i+("prev"===t?-1:1)*e.wrapper;return r*Math.max(Math.min(n,e.content-e.wrapper),0)},onAffixClick(t){this.$emit("click:"+t),this.scrollTo(t)},onResize(){this._isDestroyed||this.setWidths()},onTouchStart(t){const{content:e}=this.$refs;this.startX=this.scrollOffset+t.touchstartX,e.style.setProperty("transition","none"),e.style.setProperty("willChange","transform")},onTouchMove(t){if(this.canTouch){if(!this.isSwiping){const e=t.touchmoveX-t.touchstartX,s=t.touchmoveY-t.touchstartY;this.isSwipingHorizontal=Math.abs(e)>Math.abs(s),this.isSwiping=!0}this.isSwipingHorizontal&&(this.scrollOffset=this.startX-t.touchmoveX,document.documentElement.style.overflowY="hidden")}},onTouchEnd(){if(!this.canTouch)return;const{content:t,wrapper:e}=this.$refs,s=t.clientWidth-e.clientWidth;t.style.setProperty("transition",null),t.style.setProperty("willChange",null),this.$vuetify.rtl?this.scrollOffset>0||!this.isOverflowing?this.scrollOffset=0:this.scrollOffset<=-s&&(this.scrollOffset=-s):this.scrollOffset<0||!this.isOverflowing?this.scrollOffset=0:this.scrollOffset>=s&&(this.scrollOffset=s),this.isSwiping=!1,document.documentElement.style.removeProperty("overflow-y")},overflowCheck(t,e){t.stopPropagation(),this.isOverflowing&&e(t)},scrollIntoView(){if(!this.selectedItem&&this.items.length){const t=this.items[this.items.length-1].$el.getBoundingClientRect(),e=this.$refs.wrapper.getBoundingClientRect();(this.$vuetify.rtl&&e.rightt.left)&&this.scrollTo("prev")}this.selectedItem&&(0===this.selectedIndex||!this.centerActive&&!this.isOverflowing?this.scrollOffset=0:this.centerActive?this.scrollOffset=W(this.selectedItem.$el,this.widths,this.$vuetify.rtl):this.isOverflowing&&(this.scrollOffset=z(this.selectedItem.$el,this.widths,this.$vuetify.rtl,this.scrollOffset)))},scrollTo(t){this.scrollOffset=this.calculateNewOffset(t,{content:this.$refs.content?this.$refs.content.clientWidth:0,wrapper:this.$refs.wrapper?this.$refs.wrapper.clientWidth:0},this.$vuetify.rtl,this.scrollOffset)},setWidths(){window.requestAnimationFrame(()=>{if(this._isDestroyed)return;const{content:t,wrapper:e}=this.$refs;this.widths={content:t?t.clientWidth:0,wrapper:e?e.clientWidth:0},this.isOverflowing=this.widths.wrapper+10},classes(){return{...N["a"].options.computed.classes.call(this),"v-window--show-arrows-on-hover":this.showArrowsOnHover}},computedTransition(){if(!this.isBooted)return"";const t=this.vertical?"y":"x",e=this.internalReverse?!this.isReverse:this.isReverse,s=e?"-reverse":"";return`v-window-${t}${s}-transition`},hasActiveItems(){return Boolean(this.items.find(t=>!t.disabled))},hasNext(){return this.continuous||this.internalIndex0},internalIndex(){return this.items.findIndex((t,e)=>this.internalValue===this.getValue(t,e))},internalReverse(){return this.$vuetify.rtl?!this.reverse:this.reverse}},watch:{internalIndex(t,e){this.isReverse=this.updateReverse(t,e)}},mounted(){window.requestAnimationFrame(()=>this.isBooted=!0)},methods:{genDefaultSlot(){return Object(d["s"])(this)},genContainer(){const t=[this.genDefaultSlot()];return this.showArrows&&t.push(this.genControlIcons()),this.$createElement("div",{staticClass:"v-window__container",class:{"v-window__container--is-active":this.isActive},style:{height:this.internalHeight||this.transitionHeight}},t)},genIcon(t,e,s){var i,r,n;const a={click:t=>{t.stopPropagation(),this.changedByDelimiters=!0,s()}},o={"aria-label":this.$vuetify.lang.t("$vuetify.carousel."+t)},l=null!==(n=null===(r=(i=this.$scopedSlots)[t])||void 0===r?void 0:r.call(i,{on:a,attrs:o}))&&void 0!==n?n:[this.$createElement(U["a"],{props:{icon:!0},attrs:o,on:a},[this.$createElement(V["a"],{props:{large:!0}},e)])];return this.$createElement("div",{staticClass:"v-window__"+t},l)},genControlIcons(){const t=[],e=this.$vuetify.rtl?this.nextIcon:this.prevIcon;if(this.hasPrev&&e&&"string"===typeof e){const s=this.genIcon("prev",e,this.prev);s&&t.push(s)}const s=this.$vuetify.rtl?this.prevIcon:this.nextIcon;if(this.hasNext&&s&&"string"===typeof s){const e=this.genIcon("next",s,this.next);e&&t.push(e)}return t},getNextIndex(t){const e=(t+1)%this.items.length,s=this.items[e];return s.disabled?this.getNextIndex(e):e},getPrevIndex(t){const e=(t+this.items.length-1)%this.items.length,s=this.items[e];return s.disabled?this.getPrevIndex(e):e},next(){if(!this.hasActiveItems||!this.hasNext)return;const t=this.getNextIndex(this.internalIndex),e=this.items[t];this.internalValue=this.getValue(e,t)},prev(){if(!this.hasActiveItems||!this.hasPrev)return;const t=this.getPrevIndex(this.internalIndex),e=this.items[t];this.internalValue=this.getValue(e,t)},updateReverse(t,e){const s=this.items.length,i=s-1;return s<=2?t{this.$vuetify.rtl?this.prev():this.next()},right:()=>{this.$vuetify.rtl?this.next():this.prev()},end:t=>{t.stopPropagation()},start:t=>{t.stopPropagation()}};e.directives.push({name:"touch",value:t})}return t("div",e,[this.genContainer()])}}),Y=H.extend({name:"v-tabs-items",props:{mandatory:{type:Boolean,default:!1}},computed:{classes(){return{...H.options.computed.classes.call(this),"v-tabs-items":!0}},isDark(){return this.rootIsDark}},methods:{getValue(t,e){return t.id||N["a"].options.methods.getValue.call(this,t,e)}}}),q=Object(c["a"])(r["a"]).extend({name:"v-tabs-slider",render(t){return t("div",this.setBackgroundColor(this.color,{staticClass:"v-tabs-slider"}))}}),K=s("a452");const G=Object(c["a"])(r["a"],K["a"],n["a"]);var J=G.extend().extend({name:"v-tabs",directives:{Resize:P["a"]},props:{activeClass:{type:String,default:""},alignWithTitle:Boolean,backgroundColor:String,centerActive:Boolean,centered:Boolean,fixedTabs:Boolean,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,iconsAndText:Boolean,mobileBreakpoint:[String,Number],nextIcon:{type:String,default:"$next"},optional:Boolean,prevIcon:{type:String,default:"$prev"},right:Boolean,showArrows:[Boolean,String],sliderColor:String,sliderSize:{type:[Number,String],default:2},vertical:Boolean},data(){return{resizeTimeout:0,slider:{height:null,left:null,right:null,top:null,width:null},transitionTime:300}},computed:{classes(){return{"v-tabs--align-with-title":this.alignWithTitle,"v-tabs--centered":this.centered,"v-tabs--fixed-tabs":this.fixedTabs,"v-tabs--grow":this.grow,"v-tabs--icons-and-text":this.iconsAndText,"v-tabs--right":this.right,"v-tabs--vertical":this.vertical,...this.themeClasses}},isReversed(){return this.$vuetify.rtl&&this.vertical},sliderStyles(){return{height:Object(d["h"])(this.slider.height),left:this.isReversed?void 0:Object(d["h"])(this.slider.left),right:this.isReversed?Object(d["h"])(this.slider.right):void 0,top:this.vertical?Object(d["h"])(this.slider.top):void 0,transition:null!=this.slider.left?null:"none",width:Object(d["h"])(this.slider.width)}},computedColor(){return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"}},watch:{alignWithTitle:"callSlider",centered:"callSlider",centerActive:"callSlider",fixedTabs:"callSlider",grow:"callSlider",iconsAndText:"callSlider",right:"callSlider",showArrows:"callSlider",vertical:"callSlider","$vuetify.application.left":"onResize","$vuetify.application.right":"onResize","$vuetify.rtl":"onResize"},mounted(){if("undefined"!==typeof ResizeObserver){const t=new ResizeObserver(()=>{this.onResize()});t.observe(this.$el),this.$on("hook:destroyed",()=>{t.disconnect()})}this.$nextTick(()=>{window.setTimeout(this.callSlider,30)})},methods:{callSlider(){return!this.hideSlider&&this.$refs.items&&this.$refs.items.selectedItems.length?(this.$nextTick(()=>{const t=this.$refs.items.selectedItems[0];if(!t||!t.$el)return this.slider.width=0,void(this.slider.left=0);const e=t.$el;this.slider={height:this.vertical?e.scrollHeight:Number(this.sliderSize),left:this.vertical?0:e.offsetLeft,right:this.vertical?0:e.offsetLeft+e.offsetWidth,top:e.offsetTop,width:this.vertical?Number(this.sliderSize):e.scrollWidth}}),!0):(this.slider.width=0,!1)},genBar(t,e){const s={style:{height:Object(d["h"])(this.height)},props:{activeClass:this.activeClass,centerActive:this.centerActive,dark:this.dark,light:this.light,mandatory:!this.optional,mobileBreakpoint:this.mobileBreakpoint,nextIcon:this.nextIcon,prevIcon:this.prevIcon,showArrows:this.showArrows,value:this.internalValue},on:{"call:slider":this.callSlider,change:t=>{this.internalValue=t}},ref:"items"};return this.setTextColor(this.computedColor,s),this.setBackgroundColor(this.backgroundColor,s),this.$createElement(L,s,[this.genSlider(e),t])},genItems(t,e){return t||(e.length?this.$createElement(Y,{props:{value:this.internalValue},on:{change:t=>{this.internalValue=t}}},e):null)},genSlider(t){return this.hideSlider?null:(t||(t=this.$createElement(q,{props:{color:this.sliderColor}})),this.$createElement("div",{staticClass:"v-tabs-slider-wrapper",style:this.sliderStyles},[t]))},onResize(){this._isDestroyed||(clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.callSlider,0))},parseNodes(){let t=null,e=null;const s=[],i=[],r=Object(d["s"])(this)||[],n=r.length;for(let a=0;a({progress:100,timerID:null,search:"",headers:[{text:"Таб №",value:"TAB",width:90},{text:"ФИО",value:"FIO",divider:!0},{text:"Бригада",value:"CREW",width:100},{text:"Служба",value:"SERVICE",width:100},{text:"Подразделение",value:"DEPARTMENT",divider:!0},{text:"Время входа",value:"DATE_IN",width:140},{text:"Время выхода",value:"DATE_OUT",width:140}],date:(new Date).toISOString().substr(0,10),dateFormatted:t.formatDate((new Date).toISOString().substr(0,10)),datePickerMenu:!1}),computed:{...Object(et["c"])("prohodnaya",{loading:"loading",services:"services",departments:"departments",crews:"crews",persons:"persons"}),computedDateFormatted(){return this.formatDate(this.date)}},watch:{progress(){}},methods:{...Object(et["b"])("prohodnaya",{get_allData:"get_allData"}),...Object(et["d"])("prohodnaya",{change_service:"change_service",change_department:"change_department",change_crew:"change_crew",all_departments:"all_departments",all_crews:"all_crews",all_persons:"all_persons"}),formatDate(t){if(!t)return null;const[e,s,i]=t.split("-");return`${i}.${s}.${e}`},progressValue(){this.timerID=setInterval(()=>{this.progress=(this.progress-.02).toFixed(2),this.progress<0&&(this.progress=101,this.get_allData(this.formatDate(this.date)))},60)}},mounted(){this.progressValue(),this.get_allData(this.formatDate(this.date))},beforeDestroy(){clearInterval(this.timerID)}},it=st,rt=(s("c2fc"),s("2877")),nt=Object(rt["a"])(it,Z,tt,!1,null,null,null);e["default"]=nt.exports},c2fc:function(t,e,s){"use strict";s("0a5a")},ec29:function(t,e,s){},fe09:function(t,e,s){"use strict";var i=s("c37a"),r=s("5607"),n=s("2b0e"),a=n["a"].extend({name:"rippleable",directives:{ripple:r["a"]},props:{ripple:{type:[Boolean,Object],default:!0}},methods:{genRipple(t={}){return this.ripple?(t.staticClass="v-input--selection-controls__ripple",t.directives=t.directives||[],t.directives.push({name:"ripple",value:{center:!0}}),this.$createElement("div",t)):null}}}),o=s("8547"),l=s("58df");function h(t){t.preventDefault()}e["a"]=Object(l["a"])(i["a"],a,o["a"]).extend({name:"selectable",model:{prop:"inputValue",event:"change"},props:{id:String,inputValue:null,falseValue:null,trueValue:null,multiple:{type:Boolean,default:null},label:String},data(){return{hasColor:this.inputValue,lazyValue:this.inputValue}},computed:{computedColor(){if(this.isActive)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},isMultiple(){return!0===this.multiple||null===this.multiple&&Array.isArray(this.internalValue)},isActive(){const t=this.value,e=this.internalValue;return this.isMultiple?!!Array.isArray(e)&&e.some(e=>this.valueComparator(e,t)):void 0===this.trueValue||void 0===this.falseValue?t?this.valueComparator(t,e):Boolean(e):this.valueComparator(e,this.trueValue)},isDirty(){return this.isActive},rippleState(){return this.isDisabled||this.validationState?this.validationState:void 0}},watch:{inputValue(t){this.lazyValue=t,this.hasColor=t}},methods:{genLabel(){const t=i["a"].options.methods.genLabel.call(this);return t?(t.data.on={click:h},t):t},genInput(t,e){return this.$createElement("input",{attrs:Object.assign({"aria-checked":this.isActive.toString(),disabled:this.isDisabled,id:this.computedId,role:t,type:t},e),domProps:{value:this.value,checked:this.isActive},on:{blur:this.onBlur,change:this.onChange,focus:this.onFocus,keydown:this.onKeydown,click:h},ref:"input"})},onClick(t){this.onChange(),this.$emit("click",t)},onChange(){if(!this.isInteractive)return;const t=this.value;let e=this.internalValue;if(this.isMultiple){Array.isArray(e)||(e=[]);const s=e.length;e=e.filter(e=>!this.valueComparator(e,t)),e.length===s&&e.push(t)}else e=void 0!==this.trueValue&&void 0!==this.falseValue?this.valueComparator(e,this.trueValue)?this.falseValue:this.trueValue:t?this.valueComparator(e,t)?null:t:!e;this.validate(!0,e),this.internalValue=e,this.hasColor=e},onFocus(t){this.isFocused=!0,this.$emit("focus",t)},onBlur(t){this.isFocused=!1,this.$emit("blur",t)},onKeydown(t){}}})},ff44:function(t,e,s){}}]); \ No newline at end of file diff --git a/dist/js/chunk-1b4ec2a7.b7f134e1.js b/dist/js/chunk-1b4ec2a7.b7f134e1.js deleted file mode 100644 index 7ac1da6..0000000 --- a/dist/js/chunk-1b4ec2a7.b7f134e1.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1b4ec2a7"],{"33eb":function(t,e,a){},"3e69":function(t,e,a){"use strict";a.r(e);var i=a("8336"),n=a("b0af"),s=a("99d9"),d=a("62ad"),r=a("a523"),o=a("8fea"),l=a("2e4b"),u=a("132d"),c=a("e449"),h=a("0fd9"),p=a("9e88"),f=a("1f4f"),m=a("8654"),v=function(){var t=this,e=t._self._c;return e(r["a"],{attrs:{fluid:"",id:"myContainer"}},[e(h["a"],{attrs:{justify:"center"}},[e(d["a"],{attrs:{cols:"12",md:"10",sm:"8",lg:"8",xl:"6"}},[e(n["a"],{attrs:{outlined:"",tile:""}},[e(s["c"],[e(u["a"],{attrs:{large:"",left:""}},[t._v("mdi-database")]),e("span",[t._v(t._s("Замеры температуры промковша МНЛЗ 1"))]),e(d["a"],{staticClass:"mx-4",staticStyle:{"min-width":"290px","max-width":"260px"},attrs:{cols:"12"}},[e(c["a"],{attrs:{"close-on-content-click":!1,"nudge-right":40,"nudge-top":-5,transition:"scale-transition","offset-y":"","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function({on:a}){return[e(m["a"],t._g({staticClass:"datePicker",attrs:{id:"datePicker","prepend-icon":"event",readonly:"","single-line":"","hide-details":"",disabled:t.loading,filled:"",rounded:"",dense:""},model:{value:t.computedDateFormatted,callback:function(e){t.computedDateFormatted=e},expression:"computedDateFormatted"}},a))]}}]),model:{value:t.datePickerMenu,callback:function(e){t.datePickerMenu=e},expression:"datePickerMenu"}},[e(l["a"],{attrs:{"no-title":"",scrollable:"","popover-align":"center",range:""},on:{input:function(e){t.input(e)&&t.datePickerMenu},change:function(e){return t.refreshData()}},model:{value:t.dates,callback:function(e){t.dates=e},expression:"dates"}})],1)],1)],1),e(o["a"],{attrs:{headers:t.heatHeaders,items:t.data.tundishHeats.items,loading:t.loading,"single-expand":!1,"item-key":"HEAT_NAME","show-expand":""},scopedSlots:t._u([{key:"item.data-table-expand",fn:function({item:a,expand:n,isExpanded:s}){return[!s&&t.needExpand(a.HEAT_NAME)?e(i["a"],{attrs:{small:"",icon:""},on:{click:function(t){return n(!0)}}},[e(u["a"],[t._v("mdi-chevron-down")])],1):s?e(i["a"],{attrs:{small:"",icon:""},on:{click:function(t){return n(!1)}}},[e(u["a"],[t._v("mdi-chevron-up")])],1):e(u["a"],[t._v("mdi-lock")])]}},t.data.tundishHeats.items.length?{key:"expanded-item",fn:function({headers:a,item:i}){return[e("td",{staticClass:"pa-5",attrs:{colspan:5}},[e(f["a"],{staticStyle:{display:"inline-grid"},attrs:{id:"mySimpleTable",dense:""},scopedSlots:t._u([{key:"default",fn:function(){return[e("thead",[e("tr",{staticClass:"v-data-table-header"},t._l(t.tundishHeaders,(function(a,i){return e("th",{key:i,class:[a.visibility,a.divider]},[t._v(t._s(a.text))])})),0)]),t._l(t.data.tundishValues.items,(function(a,n){return e("tbody",{key:n},[a.HEAT_NAME===i.HEAT_NAME?e("tr",t._l(t.tundishHeaders,(function(i,n){return e("td",{key:n,class:[i.visibility,i.divider]},[1==n?e(p["a"],{attrs:{ripple:!1,value:0!==a.button_all}}):e("tr",[t._v(t._s(a[i.value]))])],1)})),0):t._e()])}))]},proxy:!0}],null,!0)})],1)]}}:null],null,!0)})],1)],1)],1)],1)},b=[],_=(a("ac1f"),a("2f62"));const k={data(){return{breakpoint:0,top:0,footer:0}},methods:{smartHeight(t){return this.footer=this.$vuetify.application.footer,this.breakpoint=this.$vuetify.breakpoint.height,this.breakpoint-this.top-this.footer-t}}};var g=a("f2ef"),x={mixins:[k],data:()=>({dates:[(new Date).toISOString().substr(0,10),(new Date).toISOString().substr(0,10)],datePickerMenu:!1}),computed:{...Object(_["c"])("tundishSample",{loading:"loading",data:"data"}),heatHeaders(){return this.data.tundishHeats.headers},tundishHeaders(){return this.data.tundishValues.headers.forEach(t=>{"HEAT_NAME"===t.text&&(t.visibility="d-none"),"button_all"===t.value&&(t.text="Кнопка: да/нет"),"opc_T_sample_value"===t.value&&(t.text="Температура"),"count"===t.value&&(t.text="Счетчик"),"datetime"===t.value&&(t.text="Дата/время")}),this.data.tundishValues.headers},computedDateFormatted(){let t=[];return t.push(this.formatDate(this.dates[0])),t.push(this.formatDate(this.dates[1])),t.join(" ~ ")}},methods:{...Object(_["b"])("tundishSample",{getData:"getData"}),needExpand(t){return g["a"].where(this.data.tundishValues.items,{HEAT_NAME:t}).length},input(t){2==t.length&&(this.datePickerMenu=!1)},formatDate(t){if(!t)return null;const[e,a,i]=t.split("-");return`${i}.${a}.${e}`},refreshData(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},mounted(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},y=x,D=(a("a8a4"),a("2877")),E=Object(D["a"])(y,v,b,!1,null,null,null);e["default"]=E.exports},a8a4:function(t,e,a){"use strict";a("33eb")}}]); \ No newline at end of file diff --git a/dist/js/chunk-28dc4aef.cc37e5bd.js b/dist/js/chunk-28dc4aef.cc37e5bd.js deleted file mode 100644 index a3e44f7..0000000 --- a/dist/js/chunk-28dc4aef.cc37e5bd.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28dc4aef"],{"31e9":function(t,e,a){"use strict";a("e910")},6045:function(t,e,a){"use strict";a.r(e);var n=a("b0af"),s=a("99d9"),i=a("62ad"),r=a("a523"),o=a("8fea"),d=a("2e4b"),c=a("132d"),l=a("e449"),u=a("0fd9"),h=a("8654"),f=function(){var t=this,e=t._self._c;return e(r["a"],{attrs:{id:"myContainer"}},[e(u["a"],{attrs:{justify:"center"}},[e(i["a"],{attrs:{cols:"12",sm:"8"}},[e(n["a"],{attrs:{outlined:"",tile:""}},[e(s["c"],[e(c["a"],{attrs:{color:"primary",large:"",left:""}},[t._v("mdi-thermometer")]),e("span",[t._v(t._s("Среднестатистическая температура окружающей среды"))])],1),e(u["a"],{attrs:{justify:"end"}},[e(i["a"],{staticClass:"mx-4",staticStyle:{"min-width":"290px","max-width":"260px"},attrs:{cols:"12"}},[e(l["a"],{attrs:{"close-on-content-click":!1,"nudge-right":40,"nudge-top":-5,transition:"scale-transition","offset-y":"","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function({on:a}){return[e(h["a"],t._g({staticClass:"datePicker",attrs:{id:"datePicker","prepend-icon":"event",readonly:"","single-line":"","hide-details":"",disabled:t.loading,filled:"",rounded:"",dense:""},model:{value:t.computedDateFormatted,callback:function(e){t.computedDateFormatted=e},expression:"computedDateFormatted"}},a))]}}]),model:{value:t.datePickerMenu,callback:function(e){t.datePickerMenu=e},expression:"datePickerMenu"}},[e(d["a"],{attrs:{"no-title":"",scrollable:"","popover-align":"center",range:""},on:{input:function(e){t.input(e)&&t.datePickerMenu},change:function(e){return t.refreshData()}},model:{value:t.dates,callback:function(e){t.dates=e},expression:"dates"}})],1)],1)],1),e(o["a"],{attrs:{headers:t.headers,items:t.data.temperature,loading:t.loading}})],1)],1)],1)],1)},m=[],p=(a("ac1f"),a("2f62")),g={data:()=>({headers:[{text:"Дата",sortable:!0,align:"center",value:"dt"},{text:"Средняя температура °С",align:"center",sortable:!0,value:"value"}],dates:[(new Date).toISOString().substr(0,10),(new Date).toISOString().substr(0,10)],datePickerMenu:!1}),computed:{...Object(p["c"])("weatherAvg",{loading:"loading",data:"data"}),computedDateFormatted(){let t=[];return t.push(this.formatDate(this.dates[0])),t.push(this.formatDate(this.dates[1])),t.join(" ~ ")}},methods:{...Object(p["b"])("weatherAvg",{getData:"getData"}),input(t){2==t.length&&(this.datePickerMenu=!1)},formatDate(t){if(!t)return null;const[e,a,n]=t.split("-");return`${n}.${a}.${e}`},refreshData(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},mounted(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},D=g,b=(a("31e9"),a("2877")),k=Object(b["a"])(D,f,m,!1,null,null,null);e["default"]=k.exports},e910:function(t,e,a){}}]); \ No newline at end of file diff --git a/dist/js/chunk-2ae756f5.91f0a819.js b/dist/js/chunk-2ae756f5.91f0a819.js deleted file mode 100644 index 67c770c..0000000 --- a/dist/js/chunk-2ae756f5.91f0a819.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2ae756f5"],{"2fa4":function(t,e,a){"use strict";a("20f6");var s=a("80d2");e["a"]=Object(s["j"])("spacer","div","v-spacer")},"58ea":function(t,e,a){},6593:function(t,e,a){"use strict";a.r(e);var s=a("8336"),n=a("99d9"),i=a("62ad"),l=a("a523"),r=a("8fea"),c=a("2e4b"),d=a("ce7e"),o=a("132d"),h=a("e449"),u=a("0fd9"),m=a("b974"),f=a("2fa4"),p=a("8654"),x=function(){var t=this,e=t._self._c;return e(l["a"],{attrs:{fluid:"",id:"BOFReport"}},[e(n["b"],{staticClass:"text-center headline black--text"},[t._v("Показатели по работе КО (поплавочно) за период "+t._s(t.computedDateFormatted))]),e(d["a"],{staticClass:"mx-0"}),e(u["a"],[e(i["a"],{staticStyle:{"min-width":"250px","max-width":"250px"},attrs:{cols:"12"}},[e(h["a"],{attrs:{"close-on-content-click":!1,"nudge-right":40,"nudge-top":-5,transition:"scale-transition","offset-y":"","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function({on:a}){return[e(p["a"],t._g({staticClass:"datePicker",attrs:{id:"datePicker","prepend-icon":"event",readonly:"","single-line":"",disabled:t.loading},model:{value:t.computedDateFormatted,callback:function(e){t.computedDateFormatted=e},expression:"computedDateFormatted"}},a))]}}]),model:{value:t.datePickerMenu,callback:function(e){t.datePickerMenu=e},expression:"datePickerMenu"}},[e(c["a"],{attrs:{"no-title":"",scrollable:"","popover-align":"center",range:""},on:{input:function(e){t.input(e)&&t.datePickerMenu},change:function(e){return t.refreshData()}},model:{value:t.dates,callback:function(e){t.dates=e},expression:"dates"}})],1)],1),e(d["a"],{staticClass:"d-none d-md-flex mx-2 my-7",attrs:{inset:"",vertical:""}}),e(i["a"],{staticStyle:{"min-width":"105px","max-width":"105px"},attrs:{cols:"12"}},[e(m["a"],{attrs:{items:t.listBof,hint:"№ конвертера","persistent-hint":"",disabled:t.loading,"single-line":"","return-object":""},on:{input:function(e){return t.dataFilter(e)}},model:{value:t.BofSelect,callback:function(e){t.BofSelect=e},expression:"BofSelect"}})],1),e(d["a"],{staticClass:"d-none d-md-flex mx-2 my-7",attrs:{inset:"",vertical:""}}),e(i["a"],{staticClass:"text-center my-4",attrs:{cols:"1",sm:"1"}},[e(s["a"],{attrs:{disabled:t.loading||!t.data.items.length,tile:"",outlined:"",color:"success"},on:{click:function(e){t.loader=t.Excel()}}},[e(o["a"],{attrs:{left:"",size:"35"}},[t._v("mdi-file-excel")]),t._v("Excel ")],1)],1),e(f["a"]),e(i["a"],{attrs:{cols:"12",sm:"4",md:"4",lg:"4",xl:"3"}},[e(p["a"],{attrs:{"append-icon":"mdi-magnify",label:"Поиск","single-line":"","hide-details":"",clearable:"",disabled:t.loading},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1)],1),e(r["a"],{attrs:{headers:t.headers,items:t.data.items,loading:t.loading,search:t.search,dense:""},scopedSlots:t._u([t.data.items.length?{key:"header",fn:function(){return[e("thead",{staticClass:"grey lighten-5 text-center"},[e("tr",[e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:8}}),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:5}},[t._v("Чугун")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:8}},[t._v("Повалка")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:5}},[t._v("Повалка")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:4}},[t._v("Шлак")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:3}},[t._v("Додувки")]),e("th",{staticClass:"text-center d-none d-sm-table-cell",attrs:{colspan:2}})])])]},proxy:!0}:null],null,!0)})],1)},g=[],b=a("2f62");let v=new Date;var D={data:()=>({search:"",BofSelect:"K1",listBof:["K1","K2"],dates:[new Date(v.getFullYear(),v.getMonth(),v.getDate()-0).toISOString().substr(0,10),(new Date).toISOString().substr(0,10)],datePickerMenu:!1}),computed:{...Object(b["c"])("BOFReportSample_A1",{loading:"loading",data:"data"}),computedDateFormatted(){let t=[];return t.push(this.formatDate(this.dates[0])),t.push(this.formatDate(this.dates[1])),t.join(" ~ ")},headers(){var t=document.createElement("canvas"),e=t.getContext("2d");return e.font="12px Roboto, sans-serif",this.data.headers.forEach(t=>{var a=e.measureText(t.text),s=a.width;t.width=s+65,t.align="center",t.divider=!0,"dateForSort"!==t.value&&"idGroup"!==t.value||(t.align=" d-none")}),this.data.headers}},methods:{...Object(b["d"])("BOFReportSample_A1",{getExcel:"getExcel"}),...Object(b["b"])("BOFReportSample_A1",{getData:"getData"}),dataFilter(){this.refreshData()},input(t){2==t.length&&(this.datePickerMenu=!1)},formatDate(t){if(!t)return null;const[e,a,s]=t.split("-");return`${s}.${a}.${e}`},refreshData(){switch(this.BofSelect){case"K1":this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1]),"1"]);break;case"K2":this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1]),"2"]);break}},Excel(){this.getExcel([this.formatDate(this.dates[0]),this.formatDate(this.dates[1]),this.model])}},mounted(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1]),"1"]).then(()=>{})}},k=D,w=(a("b4a7"),a("a9814"),a("2877")),S=Object(w["a"])(k,x,g,!1,null,null,null);e["default"]=S.exports},a9814:function(t,e,a){"use strict";a("58ea")},b4a7:function(t,e,a){"use strict";a("fa27")},fa27:function(t,e,a){}}]); \ No newline at end of file diff --git a/dist/js/chunk-2f415156.f4b6eefa.js b/dist/js/chunk-2f415156.f4b6eefa.js deleted file mode 100644 index 185f06d..0000000 --- a/dist/js/chunk-2f415156.f4b6eefa.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2f415156"],{"05e5":function(t,e,a){"use strict";a("3a16")},2703:function(t,e,a){"use strict";a.r(e);var s=a("8336"),i=a("99d9"),n=a("62ad"),o=a("a523"),d=a("8fea"),r=a("2e4b"),c=a("ce7e"),l=a("132d"),u=a("e449"),m=a("8e36"),h=a("0fd9"),f=a("b974"),p=a("2fa4"),g=a("8654"),x=(a("ac1f"),function(){var t=this,e=t._self._c;return e(o["a"],{attrs:{fluid:"",id:"BOFMainUseConfig"}},[e(i["b"],{staticClass:"text-center headline black--text"},[t._v("Ежесуточный отчет по основным эксплуатационным характеристикам конверторов АМК "+t._s(t.computedDateFormatted))]),e(c["a"],{staticClass:"mx-0"}),e(h["a"],[e(n["a"],{staticStyle:{"min-width":"250px","max-width":"250px"},attrs:{cols:"12"}},[e(u["a"],{attrs:{"close-on-content-click":!1,"nudge-right":40,"nudge-top":-5,transition:"scale-transition","offset-y":"","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function({on:a}){return[e(g["a"],t._g({staticClass:"datePicker",attrs:{id:"datePicker","prepend-icon":"event",readonly:"","single-line":"",disabled:t.loading},model:{value:t.computedDateFormatted,callback:function(e){t.computedDateFormatted=e},expression:"computedDateFormatted"}},a))]}}]),model:{value:t.datePickerMenu,callback:function(e){t.datePickerMenu=e},expression:"datePickerMenu"}},[e(r["a"],{attrs:{"no-title":"",scrollable:"","popover-align":"center",range:""},on:{input:function(e){t.input(e)&&t.datePickerMenu},change:function(e){return t.refreshData()}},model:{value:t.dates,callback:function(e){t.dates=e},expression:"dates"}})],1)],1),e(c["a"],{staticClass:"d-none d-md-flex mx-2 my-7",attrs:{inset:"",vertical:""}}),e(n["a"],{staticStyle:{"min-width":"180px","max-width":"180px"},attrs:{cols:"12"}},[e(f["a"],{attrs:{items:t.items,"persistent-hint":"",density:"compact",disabled:t.loading,active:""},on:{change:function(e){return t.dataFilter(e)}},scopedSlots:t._u([{key:"selection",fn:function({index:a}){return[0===a?e("span",[t._v(t._s("№ конвертера: "+t.model))]):t._e()]}}]),model:{value:t.model,callback:function(e){t.model=e},expression:"model"}})],1),e(c["a"],{staticClass:"d-none d-md-flex mx-2 my-7",attrs:{inset:"",vertical:""}}),e(n["a"],{staticClass:"text-center my-4",attrs:{cols:"1",sm:"1"}},[e(s["a"],{attrs:{disabled:t.loading||!t.data.items.length,tile:"",outlined:"",color:"success"},on:{click:function(e){t.loader=t.Excel()}}},[e(l["a"],{attrs:{left:"",size:"35"}},[t._v("mdi-file-excel")]),t._v("Excel ")],1)],1),e(p["a"]),e(n["a"],{attrs:{cols:"12",sm:"4",md:"4",lg:"4",xl:"3"}},[e(g["a"],{attrs:{"append-icon":"mdi-magnify",label:"Поиск","single-line":"","hide-details":"",clearable:"",disabled:t.loading},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1)],1),e(d["a"],{attrs:{headers:t.headers,items:t.data.items,search:t.search,"item-key":"Дата","disable-pagination":"","hide-default-footer":"",dense:""},on:{"click:row":t.rowClick},scopedSlots:t._u([{key:"top",fn:function(){return[t.loading?e(m["a"],{attrs:{indeterminate:""}}):t._e()]},proxy:!0}])},[t._v(" > ")])],1)}),b=[],D=a("2f62");let k=new Date;var v={data:()=>({search:"",items:[1,2],model:1,dates:[new Date(k.getFullYear(),k.getMonth(),k.getDate()-0).toISOString().substr(0,10),(new Date).toISOString().substr(0,10)],datePickerMenu:!1}),computed:{...Object(D["c"])("BOFMainUseConfig",{loading:"loading",data:"data"}),computedDateFormatted(){let t=[];return t.push(this.formatDate(this.dates[0])),t.push(this.formatDate(this.dates[1])),t.join(" ~ ")},headers(){var t=document.createElement("canvas"),e=t.getContext("2d");return e.font="12px Roboto, sans-serif",this.data.headers.forEach(t=>{t.divider=!0,"Дата"==t.text&&(t.width=1e3)}),this.data.headers}},methods:{...Object(D["d"])("BOFMainUseConfig",{getExcel:"getExcel"}),...Object(D["b"])("BOFMainUseConfig",{getData:"getData"}),dataFilter(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1]),this.model])},Excel(){this.getExcel([this.formatDate(this.dates[0]),this.formatDate(this.dates[1]),this.model])},rowClick:function(t,e){let a=!e.isSelected;e.select(a)},input(t){2==t.length&&(this.datePickerMenu=!1)},formatDate(t){if(!t)return null;const[e,a,s]=t.split("-");return`${s}.${a}.${e}`},refreshData(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1]),this.model])}},mounted(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1]),this.model])}},w=v,_=(a("05e5"),a("2877")),y=Object(_["a"])(w,x,b,!1,null,null,null);e["default"]=y.exports},"2fa4":function(t,e,a){"use strict";a("20f6");var s=a("80d2");e["a"]=Object(s["j"])("spacer","div","v-spacer")},"3a16":function(t,e,a){}}]); \ No newline at end of file diff --git a/dist/js/chunk-33abae75.368c0797.js b/dist/js/chunk-33abae75.368c0797.js deleted file mode 100644 index 8b560e5..0000000 --- a/dist/js/chunk-33abae75.368c0797.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-33abae75"],{"2c3b":function(t,a,e){"use strict";e("b745")},"2fa4":function(t,a,e){"use strict";e("20f6");var s=e("80d2");a["a"]=Object(s["j"])("spacer","div","v-spacer")},"4fcd":function(t,a,e){},"76ed":function(t,a,e){"use strict";e.r(a);var s=e("b0af"),i=e("99d9"),n=e("62ad"),l=e("a523"),c=e("8fea"),r=e("2e4b"),d=e("ce7e"),o=e("e449"),u=e("0fd9"),p=e("2fa4"),m=e("8654"),v=(e("ac1f"),function(){var t=this,a=t._self._c;return a(l["a"],{attrs:{fluid:"",id:"BOFReport"}},[a(i["b"],{staticClass:"text-center headline black--text"},[t._v("Анализ передутых плавок за период "+t._s(t.computedDateFormatted))]),a(d["a"],{staticClass:"mx-0"}),a(u["a"],[a(n["a"],{staticStyle:{"min-width":"250px","max-width":"250px"},attrs:{cols:"12"}},[a(o["a"],{attrs:{"close-on-content-click":!1,"nudge-right":40,"nudge-top":-5,transition:"scale-transition","offset-y":"","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function({on:e}){return[a(m["a"],t._g({staticClass:"datePicker",attrs:{id:"datePicker","prepend-icon":"event",readonly:"","single-line":"",disabled:t.loading},model:{value:t.computedDateFormatted,callback:function(a){t.computedDateFormatted=a},expression:"computedDateFormatted"}},e))]}}]),model:{value:t.datePickerMenu,callback:function(a){t.datePickerMenu=a},expression:"datePickerMenu"}},[a(r["a"],{attrs:{"no-title":"",scrollable:"","popover-align":"center",range:""},on:{input:function(a){t.input(a)&&t.datePickerMenu},change:function(a){return t.refreshData()}},model:{value:t.dates,callback:function(a){t.dates=a},expression:"dates"}})],1)],1),a(p["a"]),a(n["a"],{attrs:{cols:"12",sm:"4",md:"4",lg:"4",xl:"3"}},[a(m["a"],{attrs:{"append-icon":"mdi-magnify",label:"Поиск","single-line":"","hide-details":"",clearable:"",disabled:t.loading},model:{value:t.search,callback:function(a){t.search=a},expression:"search"}})],1)],1),a(u["a"],{attrs:{justify:"center"}},[t._v(" "+t._s(`Кол-во передутых плавок составило - ${t.data.countHeats.HeatsCheckedCount} (${t.data.countHeats.PercentChecked}% от общего кол-ва)`)+" ")]),a(u["a"],{attrs:{justify:"center"}},[a(n["a"],{attrs:{cols:"auto"}},[a(s["a"],{attrs:{outlined:"",tile:"","max-width":"250",loading:t.loading}},[a(i["c"],{staticClass:"subtitle-1 pb-0"},[t._v("Плавок:")]),a(i["b"],{staticClass:"caption py-1"},[a("span",{staticClass:"text--primary"},[t._v(" "+t._s(`Т чуг. меньше 1320ºС - ${t.data.sampleCounts.TIronLessCount} (${t.data.sampleCounts.TIronLessPercent}%)`)+" ")])]),a(i["b"],{staticClass:"caption py-1"},[a("span",{staticClass:"text--primary"},[t._v(" "+t._s(`Si чуг. меньше 0,4% - ${t.data.sampleCounts.hm_SiLessCount} (${t.data.sampleCounts.hm_SiLessPercent}%)`)+" ")])]),a(i["b"],{staticClass:"caption py-1"},[a("span",{staticClass:"text--primary"},[t._v(" "+t._s(`Лом больше 65тн. - ${t.data.sampleCounts.ScrapAnymoreCount} (${t.data.sampleCounts.ScrapAnymorePercent}%)`)+" ")])]),a(i["b"],{staticClass:"caption py-1"},[a("span",{staticClass:"text--primary"},[t._v(" "+t._s(`Si чуг. больше >0,9% - ${t.data.sampleCounts.hm_SiAnymoreCount} (${t.data.sampleCounts.hm_SiAnymorePercent}%)`)+" ")])])],1)],1),a(n["a"],{attrs:{cols:"auto"}},[a(s["a"],{attrs:{outlined:"",tile:"","max-width":"250",loading:t.loading}},[a(i["c"],{staticClass:"subtitle-1 pb-0"},[t._v("Мастера:")]),t._l(t.data.master,(function(e,s){return a(i["b"],{key:s,staticClass:"caption py-1"},[a("span",{staticClass:"text--primary"},[t._v(t._s(`${e.BOFMaster} - ${e.Count} (${e.Percent}%)`))])])}))],2)],1),a(n["a"],{attrs:{cols:"auto"}},[a(s["a"],{attrs:{outlined:"",tile:"","max-width":"250",loading:t.loading}},[a(i["c"],{staticClass:"subtitle-1 pb-0"},[t._v("Маш. дистрибутора 8р.:")]),t._l(t.data.operator,(function(e,s){return a(i["b"],{key:s,staticClass:"caption py-1"},[a("span",{staticClass:"text--primary"},[t._v(t._s(`${e.BOFOperator} - ${e.Count} (${e.Percent}%)`))])])}))],2)],1),a(n["a"],{attrs:{cols:"auto"}},[a(s["a"],{attrs:{outlined:"",tile:"","max-width":"250",loading:t.loading}},[a(i["c"],{staticClass:"subtitle-1 pb-0"},[t._v("Бригада:")]),t._l(t.data.shift,(function(e,s){return a(i["b"],{key:s,staticClass:"caption py-1"},[a("span",{staticClass:"text--primary"},[t._v(t._s(`№${e.ShiftTeamNo} - ${e.Count} (${e.Percent}%)`))])])}))],2)],1)],1),a(c["a"],{staticClass:"mt-5",attrs:{headers:t.headers,items:t.data.items,loading:t.loading,search:t.search,"group-by":"Date","item-key":"bofhr_id",dense:""},on:{"click:row":t.rowClick}},[a("template",{slot:"body.append"},[t.data.items.length?a("tr",{staticClass:"pink--text"},[a("th",{staticClass:"text-center divider d-sm-table-cell",attrs:{colspan:2}},[t._v("Cредние значения:")]),a("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgData.avg_cycle))]),a("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgData.avg_c_pov))]),a("th",{staticClass:"text-center divider d-sm-table-cell"}),a("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgData.avg_FerroCount))]),a("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgData.avg_t_pov))]),a("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgData.avg_FeOShlag))]),a("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgData.avg_CaOPolysiusHeat))]),a("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgData.avg_CaODolomitedHeat))]),a("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgData.avg_CaCO3Common))]),a("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgData.avg_Coal))]),a("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgData.avg_Scrap))]),a("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgData.avg_HM_WEIGHT))]),a("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgData.avg_hm_t))]),a("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgData.avg_hm_si))])]):t._e()])],2)],1)}),_=[],h=e("2f62");let g=new Date;var C={data:()=>({search:"",dates:[new Date(g.getFullYear(),g.getMonth(),g.getDate()-0).toISOString().substr(0,10),(new Date).toISOString().substr(0,10)],datePickerMenu:!1}),computed:{...Object(h["c"])("BOFReportSample_D1",{loading:"loading",data:"data"}),computedDateFormatted(){let t=[];return t.push(this.formatDate(this.dates[0])),t.push(this.formatDate(this.dates[1])),t.join(" ~ ")},headers(){var t=document.createElement("canvas"),a=t.getContext("2d");return a.font="12px Roboto, sans-serif",this.data.headers.forEach(t=>{var e=a.measureText(t.text),s=e.width;t.width=s+65,t.align="center",t.divider=!0,"bofhr_id"===t.value&&(t.align=" d-none")}),this.data.headers}},methods:{...Object(h["b"])("BOFReportSample_D1",{getData:"getData"}),rowClick:function(t,a){let e=!a.isSelected;a.select(e)},input(t){2==t.length&&(this.datePickerMenu=!1)},formatDate(t){if(!t)return null;const[a,e,s]=t.split("-");return`${s}.${e}.${a}`},refreshData(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},mounted(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},b=C,f=(e("affa"),e("2c3b"),e("2877")),x=Object(f["a"])(b,v,_,!1,null,null,null);a["default"]=x.exports},affa:function(t,a,e){"use strict";e("4fcd")},b745:function(t,a,e){}}]); \ No newline at end of file diff --git a/dist/js/chunk-36308615.be588984.js b/dist/js/chunk-36308615.be588984.js deleted file mode 100644 index 1251718..0000000 --- a/dist/js/chunk-36308615.be588984.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-36308615"],{"2d3f":function(t,e,a){"use strict";a("97f8")},"2fa4":function(t,e,a){"use strict";a("20f6");var s=a("80d2");e["a"]=Object(s["j"])("spacer","div","v-spacer")},"3dbf":function(t,e,a){},"66e9":function(t,e,a){"use strict";a.r(e);var s=a("8336"),l=a("99d9"),i=a("62ad"),d=a("a523"),c=a("8fea"),n=a("2e4b"),r=a("ce7e"),o=a("132d"),u=a("e449"),h=a("0fd9"),m=a("b974"),v=a("2fa4"),p=a("8654"),f=(a("ac1f"),function(){var t=this,e=t._self._c;return e(d["a"],{attrs:{fluid:"",id:"HMCarReport"}},[e(l["b"],{staticClass:"text-center headline black--text"},[t._v("Баланс чугуна (поплавочно) за период "+t._s(t.computedDateFormatted))]),e(r["a"],{staticClass:"mx-0"}),e(h["a"],[e(i["a"],{staticStyle:{"min-width":"250px","max-width":"250px"},attrs:{cols:"12"}},[e(u["a"],{attrs:{"close-on-content-click":!1,"nudge-right":40,"nudge-top":-5,transition:"scale-transition","offset-y":"","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function({on:a}){return[e(p["a"],t._g({staticClass:"datePicker",attrs:{id:"datePicker","prepend-icon":"event",readonly:"","single-line":"",disabled:t.loading},model:{value:t.computedDateFormatted,callback:function(e){t.computedDateFormatted=e},expression:"computedDateFormatted"}},a))]}}]),model:{value:t.datePickerMenu,callback:function(e){t.datePickerMenu=e},expression:"datePickerMenu"}},[e(n["a"],{attrs:{"no-title":"",scrollable:"","popover-align":"center",range:""},on:{input:function(e){t.input(e)&&t.datePickerMenu},change:function(e){return t.refreshData()}},model:{value:t.dates,callback:function(e){t.dates=e},expression:"dates"}})],1)],1),e(r["a"],{staticClass:"d-none d-md-flex mx-2 my-7",attrs:{inset:"",vertical:""}}),e(i["a"],{staticStyle:{"min-width":"250px","max-width":"250px"},attrs:{cols:"12"}},[e(m["a"],{attrs:{items:t.data.listHeatNumber,label:"Номера плавок",multiple:"","persistent-hint":"",density:"compact",disabled:t.loading,active:""},on:{change:function(e){return t.dataFilter(e)}},scopedSlots:t._u([{key:"selection",fn:function({index:a}){return[0===a?e("span",[t._v(t._s("Выбрано плавок: ("+t.value.length+")"))]):t._e()]}}]),model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})],1),e(r["a"],{staticClass:"d-none d-md-flex mx-2 my-7",attrs:{inset:"",vertical:""}}),e(i["a"],{staticClass:"text-center my-4",attrs:{cols:"1",sm:"1"}},[e(s["a"],{attrs:{disabled:t.loading||!t.value.length,tile:"",outlined:"",color:"success"},on:{click:function(e){t.loader=t.Excel()}}},[e(o["a"],{attrs:{left:"",size:"35"}},[t._v("mdi-file-excel")]),t._v("Excel ")],1)],1),e(v["a"]),e(i["a"],{attrs:{cols:"12",sm:"3",md:"3",lg:"3",xl:"3"}},[e(p["a"],{attrs:{"append-icon":"mdi-magnify",label:"Поиск","single-line":"","hide-details":"",clearable:"",disabled:t.loading},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1)],1),e(c["a"],{attrs:{"item-key":"Номер плавки ККЦ",headers:t.headers,items:t.data.items,loading:t.loading,search:t.search,"disable-pagination":"","hide-default-footer":"",dense:""},on:{"click:row":t.rowClick},scopedSlots:t._u([t.data.items.length?{key:"header",fn:function(){return[e("thead",{staticClass:"grey lighten-5 text-center"},[e("tr",[e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:4}}),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:5}},[t._v("Вес чугуна на чугуновозе")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:3}},[t._v("Вес чугуна на кране")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:2}})])])]},proxy:!0}:null],null,!0)},[e("template",{slot:"body.append"},[t.data.items.length?e("tr",{staticClass:"pink--text"},[e("th",{staticClass:"text-center divider d-sm-table-cell",attrs:{colspan:4}},[t._v("Сумма:")]),e("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.sumData["Тара, т"]))]),e("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.sumData["Брутто, т"]))]),e("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.sumData["Нетто, т"]))]),e("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.sumData["Вес со снятием, т"]))]),e("th",{staticClass:"text-center divider d-sm-table-cell"}),e("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.sumData["Тара, т "]))]),e("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.sumData["Брутто, т "]))]),e("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.sumData["Нетто, т "]))]),e("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.sumData["Снятие на десульфурации, т"]))])]):t._e()]),e("template",{slot:"body.append"},[t.data.items.length?e("tr",{staticClass:"pink--text"},[e("th",{staticClass:"text-center divider d-sm-table-cell",attrs:{colspan:4}},[t._v("Среднее:")]),e("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgData["Тара, т"]))]),e("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgData["Брутто, т"]))]),e("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgData["Нетто, т"]))]),e("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgData["Вес со снятием, т"]))]),e("th",{staticClass:"text-center divider d-sm-table-cell"}),e("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgData["Тара, т "]))]),e("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgData["Брутто, т "]))]),e("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgData["Нетто, т "]))]),e("th",{staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgData["Снятие на десульфурации, т"]))])]):t._e()])],2)],1)}),b=[],x=a("2f62");let g=new Date;var _={data:()=>({value:[],search:"",dates:[new Date(g.getFullYear(),g.getMonth(),g.getDate()-0).toISOString().substr(0,10),(new Date).toISOString().substr(0,10)],datePickerMenu:!1}),computed:{...Object(x["c"])("HMCarReport",{loading:"loading",data:"data"}),computedDateFormatted(){let t=[];return t.push(this.formatDate(this.dates[0])),t.push(this.formatDate(this.dates[1])),t.join(" ~ ")},headers(){var t=document.createElement("canvas"),e=t.getContext("2d");return e.font="12px Roboto, sans-serif",this.data.headers.forEach(t=>{t.align="center",t.divider=!0,"HEAT_START"===t.value&&(t.align=" d-none")}),this.data.headers}},methods:{...Object(x["b"])("HMCarReport",{getData:"getData",selectHeat:"selectHeat"}),...Object(x["d"])("HMCarReport",{dataFilter:"dataFilter",getExcel:"getExcel"}),Excel(){this.getExcel([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])},rowClick:function(t,e){let a=!e.isSelected;e.select(a)},input(t){2==t.length&&(this.datePickerMenu=!1)},formatDate(t){if(!t)return null;const[e,a,s]=t.split("-");return`${s}.${a}.${e}`},refreshData(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])]).then(()=>{this.value=this.data.listHeatNumber})}},mounted(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])]).then(()=>{this.value=this.data.listHeatNumber})}},C=_,D=(a("2d3f"),a("e2e1"),a("2877")),k=Object(D["a"])(C,f,b,!1,null,null,null);e["default"]=k.exports},"97f8":function(t,e,a){},e2e1:function(t,e,a){"use strict";a("3dbf")}}]); \ No newline at end of file diff --git a/dist/js/chunk-366d1341.60ad46d2.js b/dist/js/chunk-366d1341.60ad46d2.js deleted file mode 100644 index 9897482..0000000 --- a/dist/js/chunk-366d1341.60ad46d2.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-366d1341"],{1247:function(t,e,a){"use strict";a.r(e);var s=a("99d9"),n=a("62ad"),i=a("a523"),r=a("8fea"),c=a("2e4b"),d=a("ce7e"),l=a("e449"),o=a("8e36"),u=a("0fd9"),h=a("2fa4"),f=a("8654"),g=(a("ac1f"),function(){var t=this,e=t._self._c;return e(i["a"],{attrs:{id:"crewAggregateWeight"}},[e(s["b"],{staticClass:"text-center headline black--text"},[t._v("Вес стали по агрегатам за период "+t._s(t.computedDateFormatted))]),e(d["a"],{staticClass:"mx-0"}),e(u["a"],[e(n["a"],{staticStyle:{"min-width":"250px","max-width":"250px"},attrs:{cols:"12"}},[e(l["a"],{attrs:{"close-on-content-click":!1,"nudge-right":40,"nudge-top":-5,transition:"scale-transition","offset-y":"","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function({on:a}){return[e(f["a"],t._g({staticClass:"datePicker",attrs:{id:"datePicker","prepend-icon":"event",readonly:"","single-line":"",disabled:t.loading},model:{value:t.computedDateFormatted,callback:function(e){t.computedDateFormatted=e},expression:"computedDateFormatted"}},a))]}}]),model:{value:t.datePickerMenu,callback:function(e){t.datePickerMenu=e},expression:"datePickerMenu"}},[e(c["a"],{attrs:{"no-title":"",scrollable:"","popover-align":"center",range:""},on:{input:function(e){t.input(e)&&t.datePickerMenu},change:function(e){return t.refreshData()}},model:{value:t.dates,callback:function(e){t.dates=e},expression:"dates"}})],1)],1),e(h["a"]),e(n["a"],{attrs:{cols:"12",sm:"4",md:"4",lg:"4",xl:"3"}},[e(f["a"],{attrs:{"append-icon":"mdi-magnify",label:"Поиск","single-line":"","hide-details":"",clearable:"",disabled:t.loading},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1)],1),e(r["a"],{attrs:{headers:t.headers,items:t.data.items,search:t.search,"item-key":"crew","disable-pagination":"","hide-default-footer":"",dense:""},on:{"click:row":t.rowClick},scopedSlots:t._u([{key:"top",fn:function(){return[t.loading?e(o["a"],{attrs:{indeterminate:""}}):t._e()]},proxy:!0},t.data.items.length?{key:"header",fn:function(){return[e("thead",{staticClass:"grey lighten-5 text-center"},[e("tr",[e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:1}}),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:2}},[t._v("К1")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:2}},[t._v("К2")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:2}},[t._v("Печь-ковш")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:2}},[t._v("МНЛЗ-1")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:2}},[t._v("МНЛЗ-2")])])])]},proxy:!0}:null],null,!0)})],1)}),m=[],p=a("2f62");let b=new Date;var v={data:()=>({search:"",dates:[new Date(b.getFullYear(),b.getMonth(),b.getDate()-0).toISOString().substr(0,10),(new Date).toISOString().substr(0,10)],datePickerMenu:!1}),computed:{...Object(p["c"])("crewAggregateWeight",{loading:"loading",data:"data"}),computedDateFormatted(){let t=[];return t.push(this.formatDate(this.dates[0])),t.push(this.formatDate(this.dates[1])),t.join(" ~ ")},headers(){var t=document.createElement("canvas"),e=t.getContext("2d");return e.font="12px Roboto, sans-serif",this.data.headers.forEach(t=>{t.divider=!0,t.align="center"}),this.data.headers}},methods:{...Object(p["d"])("LadleUse",{getExcel:"getExcel"}),...Object(p["b"])("crewAggregateWeight",{getData:"getData"}),Excel(){this.getExcel([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])},rowClick:function(t,e){let a=!e.isSelected;e.select(a)},input(t){2==t.length&&(this.datePickerMenu=!1)},formatDate(t){if(!t)return null;const[e,a,s]=t.split("-");return`${s}.${a}.${e}`},refreshData(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},mounted(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},x=v,k=(a("5637"),a("2877")),D=Object(k["a"])(x,g,m,!1,null,null,null);e["default"]=D.exports},"2fa4":function(t,e,a){"use strict";a("20f6");var s=a("80d2");e["a"]=Object(s["j"])("spacer","div","v-spacer")},5637:function(t,e,a){"use strict";a("7f04")},"7f04":function(t,e,a){}}]); \ No newline at end of file diff --git a/dist/js/chunk-39ed1a08.6b3cc6ce.js b/dist/js/chunk-39ed1a08.6b3cc6ce.js deleted file mode 100644 index 7fe8de9..0000000 --- a/dist/js/chunk-39ed1a08.6b3cc6ce.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-39ed1a08"],{"0a7d":function(t,e,a){},"2fa4":function(t,e,a){"use strict";a("20f6");var s=a("80d2");e["a"]=Object(s["j"])("spacer","div","v-spacer")},"72d1":function(t,e,a){"use strict";a("7d1b")},"7d1b":function(t,e,a){},bd71:function(t,e,a){"use strict";a("0a7d")},e1f6:function(t,e,a){"use strict";a.r(e);var s=a("8336"),l=a("99d9"),n=a("62ad"),c=a("a523"),d=a("8fea"),i=a("2e4b"),r=a("ce7e"),o=a("132d"),h=a("e449"),m=a("0fd9"),p=a("2fa4"),u=a("8654"),v=function(){var t=this,e=t._self._c;return e(c["a"],{attrs:{fluid:"",id:"BOFReport"}},[e(l["b"],{staticClass:"text-center headline black--text"},[t._v("Показатели по работе конвертеров за период "+t._s(t.computedDateFormatted))]),e(r["a"],{staticClass:"mx-0"}),e(m["a"],[e(n["a"],{staticStyle:{"min-width":"250px","max-width":"250px"},attrs:{cols:"12"}},[e(h["a"],{attrs:{"close-on-content-click":!1,"nudge-right":40,"nudge-top":-5,transition:"scale-transition","offset-y":"","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function({on:a}){return[e(u["a"],t._g({staticClass:"datePicker",attrs:{id:"datePicker","prepend-icon":"event",readonly:"","single-line":"",disabled:t.loading},model:{value:t.computedDateFormatted,callback:function(e){t.computedDateFormatted=e},expression:"computedDateFormatted"}},a))]}}]),model:{value:t.datePickerMenu,callback:function(e){t.datePickerMenu=e},expression:"datePickerMenu"}},[e(i["a"],{attrs:{"no-title":"",scrollable:"","popover-align":"center",range:""},on:{input:function(e){t.input(e)&&t.datePickerMenu},change:function(e){return t.refreshData()}},model:{value:t.dates,callback:function(e){t.dates=e},expression:"dates"}})],1)],1),e(r["a"],{staticClass:"d-none d-md-flex mx-2 my-7",attrs:{inset:"",vertical:""}}),e(n["a"],{staticClass:"text-center my-4",attrs:{cols:"1",sm:"1"}},[e(s["a"],{attrs:{disabled:t.loading||!t.data.items.length,tile:"",outlined:"",color:"success"},on:{click:function(e){t.loader=t.Excel()}}},[e(o["a"],{attrs:{left:"",size:"35"}},[t._v("mdi-file-excel")]),t._v("Excel ")],1)],1),e(p["a"]),e(n["a"],{attrs:{cols:"12",sm:"4",md:"4",lg:"4",xl:"3"}},[e(u["a"],{attrs:{"append-icon":"mdi-magnify",label:"Поиск","single-line":"","hide-details":"",clearable:"",disabled:t.loading},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1)],1),e(d["a"],{attrs:{headers:t.headers,items:t.data.items,loading:t.loading,search:t.search,dense:""},scopedSlots:t._u([t.data.items.length?{key:"header",fn:function(){return[e("thead",{staticClass:"grey lighten-5 text-center"},[e("tr",[e("th",{staticClass:"text-center divider d-sm-table-cell",attrs:{colspan:86}},[t._v("Конвертер")]),e("th",{staticClass:"text-center divider d-sm-table-cell",attrs:{colspan:37}},[t._v("УКП")]),e("th",{staticClass:"text-center divider d-sm-table-cell",attrs:{colspan:19}},[t._v("УВК")]),e("th",{staticClass:"text-center d-sm-table-cell",attrs:{colspan:25}},[t._v("ОРСС")])])]),e("thead",{staticClass:"grey lighten-5 text-center"},[e("tr",[e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:39}}),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:6}},[t._v("Чугун")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:2}},[t._v("Обработка Чугуна")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:9}},[t._v("Периоды плавки")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:7}},[t._v("Плавка")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:5}},[t._v("Повалка")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:5}},[t._v("Шлак")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:3}},[t._v("Додувки")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:1}}),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:6}},[t._v("Химичевский состав УВОС")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:3}},[t._v("Расход газа на плавку")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:4}},[t._v("Данные по ковшу")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:5}}),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:10}},[t._v("Химический состав УКП - первая проба ")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:10}},[t._v("Химический состав УКП - последняя проба ")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:8}},[t._v("Химический состав шлака")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:9}}),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:5}},[t._v("Химический состав УВК - первая проба ")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:5}},[t._v("Химический состав УВК - последняя проба ")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:5}},[t._v("Химический состав ОРСС")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:7}}),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:3}},[t._v("Стрипперован")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:7}}),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:2}},[t._v("Налито годного")]),e("th",{staticClass:"text-center d-none d-sm-table-cell",attrs:{colspan:1}})])])]},proxy:!0}:null],null,!0)})],1)},x=[],b=a("2f62");let f=new Date;var g={data:()=>({search:"",dates:[new Date(f.getFullYear(),f.getMonth(),f.getDate()-0).toISOString().substr(0,10),(new Date).toISOString().substr(0,10)],datePickerMenu:!1}),computed:{...Object(b["c"])("BOFReportSample_C1",{loading:"loading",data:"data"}),computedDateFormatted(){let t=[];return t.push(this.formatDate(this.dates[0])),t.push(this.formatDate(this.dates[1])),t.join(" ~ ")},headers(){var t=document.createElement("canvas"),e=t.getContext("2d");return e.font="12px Roboto, sans-serif",this.data.headers.forEach(t=>{var a=e.measureText(t.text),s=a.width;t.width=s+65,t.align="center",t.divider=!0,"sortNumber"===t.value&&(t.align=" d-none")}),this.data.headers}},methods:{...Object(b["d"])("BOFReportSample_C1",{getExcel:"getExcel"}),...Object(b["b"])("BOFReportSample_C1",{getData:"getData"}),input(t){2==t.length&&(this.datePickerMenu=!1)},formatDate(t){if(!t)return null;const[e,a,s]=t.split("-");return`${s}.${a}.${e}`},refreshData(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])},Excel(){this.getExcel([this.formatDate(this.dates[0]),this.formatDate(this.dates[1]),this.model])}},mounted(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},C=g,_=(a("72d1"),a("bd71"),a("2877")),D=Object(_["a"])(C,v,x,!1,null,null,null);e["default"]=D.exports}}]); \ No newline at end of file diff --git a/dist/js/chunk-3ac51e83.c08ba508.js b/dist/js/chunk-3ac51e83.c08ba508.js deleted file mode 100644 index 93122c4..0000000 --- a/dist/js/chunk-3ac51e83.c08ba508.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3ac51e83"],{"0789":function(t,e,i){"use strict";i.d(e,"c",(function(){return c})),i.d(e,"d",(function(){return h})),i.d(e,"e",(function(){return d})),i.d(e,"a",(function(){return u})),i.d(e,"b",(function(){return p}));var s=i("d9f7");function n(t=[],...e){return Array().concat(t,...e)}function a(t,e="top center 0",i){return{name:t,functional:!0,props:{group:{type:Boolean,default:!1},hideOnLeave:{type:Boolean,default:!1},leaveAbsolute:{type:Boolean,default:!1},mode:{type:String,default:i},origin:{type:String,default:e}},render(e,i){const a="transition"+(i.props.group?"-group":""),r={props:{name:t,mode:i.props.mode},on:{beforeEnter(t){t.style.transformOrigin=i.props.origin,t.style.webkitTransformOrigin=i.props.origin}}};return i.props.leaveAbsolute&&(r.on.leave=n(r.on.leave,t=>{const{offsetTop:e,offsetLeft:i,offsetWidth:s,offsetHeight:n}=t;t._transitionInitialStyles={position:t.style.position,top:t.style.top,left:t.style.left,width:t.style.width,height:t.style.height},t.style.position="absolute",t.style.top=e+"px",t.style.left=i+"px",t.style.width=s+"px",t.style.height=n+"px"}),r.on.afterLeave=n(r.on.afterLeave,t=>{if(t&&t._transitionInitialStyles){const{position:e,top:i,left:s,width:n,height:a}=t._transitionInitialStyles;delete t._transitionInitialStyles,t.style.position=e||"",t.style.top=i||"",t.style.left=s||"",t.style.width=n||"",t.style.height=a||""}})),i.props.hideOnLeave&&(r.on.leave=n(r.on.leave,t=>{t.style.setProperty("display","none","important")})),e(a,Object(s["a"])(i.data,r),i.children)}}}function r(t,e,i="in-out"){return{name:t,functional:!0,props:{mode:{type:String,default:i}},render(i,n){return i("transition",Object(s["a"])(n.data,{props:{name:t},on:e}),n.children)}}}var o=i("80d2"),l=function(t="",e=!1){const i=e?"width":"height",s="offset"+Object(o["G"])(i);return{beforeEnter(t){t._parent=t.parentNode,t._initialStyle={transition:t.style.transition,overflow:t.style.overflow,[i]:t.style[i]}},enter(e){const n=e._initialStyle;e.style.setProperty("transition","none","important"),e.style.overflow="hidden";const a=e[s]+"px";e.style[i]="0",e.offsetHeight,e.style.transition=n.transition,t&&e._parent&&e._parent.classList.add(t),requestAnimationFrame(()=>{e.style[i]=a})},afterEnter:a,enterCancelled:a,leave(t){t._initialStyle={transition:"",overflow:t.style.overflow,[i]:t.style[i]},t.style.overflow="hidden",t.style[i]=t[s]+"px",t.offsetHeight,requestAnimationFrame(()=>t.style[i]="0")},afterLeave:n,leaveCancelled:n};function n(e){t&&e._parent&&e._parent.classList.remove(t),a(e)}function a(t){const e=t._initialStyle[i];t.style.overflow=t._initialStyle.overflow,null!=e&&(t.style[i]=e),delete t._initialStyle}};a("carousel-transition"),a("carousel-reverse-transition"),a("tab-transition"),a("tab-reverse-transition"),a("menu-transition");const c=a("fab-transition","center center","out-in"),h=(a("dialog-transition"),a("dialog-bottom-transition"),a("dialog-top-transition"),a("fade-transition")),d=(a("scale-transition"),a("scroll-x-transition"),a("scroll-x-reverse-transition"),a("scroll-y-transition"),a("scroll-y-reverse-transition"),a("slide-x-transition")),u=(a("slide-x-reverse-transition"),a("slide-y-transition"),a("slide-y-reverse-transition"),r("expand-transition",l())),p=r("expand-x-transition",l("",!0))},"0bc6":function(t,e,i){},"10d2":function(t,e,i){"use strict";var s=i("8dd9");e["a"]=s["a"]},"132d":function(t,e,i){"use strict";i("caad"),i("4804");var s,n=i("7e2b"),a=i("a9ad"),r=i("af2b"),o=i("7560"),l=i("80d2"),c=i("2b0e"),h=i("58df");function d(t){return["fas","far","fal","fab","fad","fak"].some(e=>t.includes(e))}function u(t){return/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4}(function(t){t["xSmall"]="12px",t["small"]="16px",t["default"]="24px",t["medium"]="28px",t["large"]="36px",t["xLarge"]="40px"})(s||(s={}));const p=Object(h["a"])(n["a"],a["a"],r["a"],o["a"]).extend({name:"v-icon",props:{dense:Boolean,disabled:Boolean,left:Boolean,right:Boolean,size:[Number,String],tag:{type:String,required:!1,default:"i"}},computed:{medium(){return!1},hasClickListener(){return Boolean(this.listeners$.click||this.listeners$["!click"])}},methods:{getIcon(){let t="";return this.$slots.default&&(t=this.$slots.default[0].text.trim()),Object(l["C"])(this,t)},getSize(){const t={xSmall:this.xSmall,small:this.small,medium:this.medium,large:this.large,xLarge:this.xLarge},e=Object(l["z"])(t).find(e=>t[e]);return e&&s[e]||Object(l["h"])(this.size)},getDefaultData(){return{staticClass:"v-icon notranslate",class:{"v-icon--disabled":this.disabled,"v-icon--left":this.left,"v-icon--link":this.hasClickListener,"v-icon--right":this.right,"v-icon--dense":this.dense},attrs:{"aria-hidden":!this.hasClickListener,disabled:this.hasClickListener&&this.disabled,type:this.hasClickListener?"button":void 0,...this.attrs$},on:this.listeners$}},getSvgWrapperData(){const t=this.getSize(),e={...this.getDefaultData(),style:t?{fontSize:t,height:t,width:t}:void 0};return this.applyColors(e),e},applyColors(t){t.class={...t.class,...this.themeClasses},this.setTextColor(this.color,t)},renderFontIcon(t,e){const i=[],s=this.getDefaultData();let n="material-icons";const a=t.indexOf("-"),r=a<=-1;r?i.push(t):(n=t.slice(0,a),d(n)&&(n="")),s.class[n]=!0,s.class[t]=!r;const o=this.getSize();return o&&(s.style={fontSize:o}),this.applyColors(s),e(this.hasClickListener?"button":this.tag,s,i)},renderSvgIcon(t,e){const i={class:"v-icon__svg",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":!0}},s=this.getSize();return s&&(i.style={fontSize:s,height:s,width:s}),e(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[e("svg",i,[e("path",{attrs:{d:t}})])])},renderSvgIconComponent(t,e){const i={class:{"v-icon__component":!0}},s=this.getSize();s&&(i.style={fontSize:s,height:s,width:s}),this.applyColors(i);const n=t.component;return i.props=t.props,i.nativeOn=i.on,e(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[e(n,i)])}},render(t){const e=this.getIcon();return"string"===typeof e?u(e)?this.renderSvgIcon(e,t):this.renderFontIcon(e,t):this.renderSvgIconComponent(e,t)}});e["a"]=c["a"].extend({name:"v-icon",$_wrapperFor:p,functional:!0,render(t,{data:e,children:i}){let s="";return e.domProps&&(s=e.domProps.textContent||e.domProps.innerHTML||s,delete e.domProps.textContent,delete e.domProps.innerHTML),t(p,e,s?[s]:i)}})},"166a":function(t,e,i){},1800:function(t,e,i){"use strict";var s=i("2b0e");e["a"]=s["a"].extend({name:"v-list-item-action",functional:!0,render(t,{data:e,children:i=[]}){e.staticClass=e.staticClass?"v-list-item__action "+e.staticClass:"v-list-item__action";const s=i.filter(t=>!1===t.isComment&&" "!==t.text);return s.length>1&&(e.staticClass+=" v-list-item__action--stack"),t("div",e,i)}})},"1baa":function(t,e,i){"use strict";i("899c");var s=i("604c"),n=i("a9ad"),a=i("58df");e["a"]=Object(a["a"])(s["a"],n["a"]).extend({name:"v-list-item-group",provide(){return{isInGroup:!0,listItemGroup:this}},computed:{classes(){return{...s["a"].options.computed.classes.call(this),"v-list-item-group":!0}}},methods:{genData(){return this.setTextColor(this.color,{...s["a"].options.methods.genData.call(this),attrs:{role:"listbox"}})}}})},"1c87":function(t,e,i){"use strict";i("ac1f"),i("5319");var s=i("2b0e"),n=i("5607"),a=i("80d2");e["a"]=s["a"].extend({name:"routable",directives:{Ripple:n["a"]},props:{activeClass:String,append:Boolean,disabled:Boolean,exact:{type:Boolean,default:void 0},exactPath:Boolean,exactActiveClass:String,link:Boolean,href:[String,Object],to:[String,Object],nuxt:Boolean,replace:Boolean,ripple:{type:[Boolean,Object],default:null},tag:String,target:String},data:()=>({isActive:!1,proxyClass:""}),computed:{classes(){const t={};return this.to||(this.activeClass&&(t[this.activeClass]=this.isActive),this.proxyClass&&(t[this.proxyClass]=this.isActive)),t},computedRipple(){var t;return null!==(t=this.ripple)&&void 0!==t?t:!this.disabled&&this.isClickable},isClickable(){return!this.disabled&&Boolean(this.isLink||this.$listeners.click||this.$listeners["!click"]||this.$attrs.tabindex)},isLink(){return this.to||this.href||this.link},styles:()=>({})},watch:{$route:"onRouteChange"},mounted(){this.onRouteChange()},methods:{generateRouteLink(){let t,e=this.exact;const i={attrs:{tabindex:"tabindex"in this.$attrs?this.$attrs.tabindex:void 0},class:this.classes,style:this.styles,props:{},directives:[{name:"ripple",value:this.computedRipple}],[this.to?"nativeOn":"on"]:{...this.$listeners,..."click"in this?{click:this.click}:void 0},ref:"link"};if("undefined"===typeof this.exact&&(e="/"===this.to||this.to===Object(this.to)&&"/"===this.to.path),this.to){let s=this.activeClass,n=this.exactActiveClass||s;this.proxyClass&&(s=`${s} ${this.proxyClass}`.trim(),n=`${n} ${this.proxyClass}`.trim()),t=this.nuxt?"nuxt-link":"router-link",Object.assign(i.props,{to:this.to,exact:e,exactPath:this.exactPath,activeClass:s,exactActiveClass:n,append:this.append,replace:this.replace})}else t=(this.href?"a":this.tag)||"div","a"===t&&this.href&&(i.attrs.href=this.href);return this.target&&(i.attrs.target=this.target),{tag:t,data:i}},onRouteChange(){if(!this.to||!this.$refs.link||!this.$route)return;const t=`${this.activeClass||""} ${this.proxyClass||""}`.trim(),e=`${this.exactActiveClass||""} ${this.proxyClass||""}`.trim()||t,i="_vnode.data.class."+(this.exact?e:t);this.$nextTick(()=>{!Object(a["p"])(this.$refs.link,i)===this.isActive&&this.toggle()})},toggle(){this.isActive=!this.isActive}}})},"20f6":function(t,e,i){},"24b2":function(t,e,i){"use strict";var s=i("80d2"),n=i("2b0e");e["a"]=n["a"].extend({name:"measurable",props:{height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},computed:{measurableStyles(){const t={},e=Object(s["h"])(this.height),i=Object(s["h"])(this.minHeight),n=Object(s["h"])(this.minWidth),a=Object(s["h"])(this.maxHeight),r=Object(s["h"])(this.maxWidth),o=Object(s["h"])(this.width);return e&&(t.height=e),i&&(t.minHeight=i),n&&(t.minWidth=n),a&&(t.maxHeight=a),r&&(t.maxWidth=r),o&&(t.width=o),t}}})},"25a8":function(t,e,i){},"297c":function(t,e,i){"use strict";var s=i("2b0e"),n=i("37c6"),a=i("80d2");e["a"]=s["a"].extend().extend({name:"loadable",props:{loading:{type:[Boolean,String],default:!1},loaderHeight:{type:[Number,String],default:2}},methods:{genProgress(){return!1===this.loading?null:Object(a["s"])(this,"progress")||this.$createElement(n["a"],{props:{absolute:!0,color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,height:this.loaderHeight,indeterminate:!0}})}}})},3206:function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return o}));var s=i("2b0e"),n=i("d9bd");function a(t,e){return()=>Object(n["c"])(`The ${t} component must be used inside a ${e}`)}function r(t,e,i){const n=e&&i?{register:a(e,i),unregister:a(e,i)}:null;return s["a"].extend({name:"registrable-inject",inject:{[t]:{default:n}}})}function o(t,e=!1){return s["a"].extend({name:"registrable-provide",provide(){return{[t]:e?this:{register:this.register,unregister:this.unregister}}}})}},3408:function(t,e,i){},"37c6":function(t,e,i){"use strict";var s=i("8e36");e["a"]=s["a"]},"3ad0":function(t,e,i){},4804:function(t,e,i){},"490a":function(t,e,i){"use strict";i("8d4f");var s=i("90a2"),n=i("a9ad"),a=i("80d2");e["a"]=n["a"].extend({name:"v-progress-circular",directives:{intersect:s["a"]},props:{button:Boolean,indeterminate:Boolean,rotate:{type:[Number,String],default:0},size:{type:[Number,String],default:32},width:{type:[Number,String],default:4},value:{type:[Number,String],default:0}},data:()=>({radius:20,isVisible:!0}),computed:{calculatedSize(){return Number(this.size)+(this.button?8:0)},circumference(){return 2*Math.PI*this.radius},classes(){return{"v-progress-circular--visible":this.isVisible,"v-progress-circular--indeterminate":this.indeterminate,"v-progress-circular--button":this.button}},normalizedValue(){return this.value<0?0:this.value>100?100:parseFloat(this.value)},strokeDashArray(){return Math.round(1e3*this.circumference)/1e3},strokeDashOffset(){return(100-this.normalizedValue)/100*this.circumference+"px"},strokeWidth(){return Number(this.width)/+this.size*this.viewBoxSize*2},styles(){return{height:Object(a["h"])(this.calculatedSize),width:Object(a["h"])(this.calculatedSize)}},svgStyles(){return{transform:`rotate(${Number(this.rotate)}deg)`}},viewBoxSize(){return this.radius/(1-Number(this.width)/+this.size)}},methods:{genCircle(t,e){return this.$createElement("circle",{class:"v-progress-circular__"+t,attrs:{fill:"transparent",cx:2*this.viewBoxSize,cy:2*this.viewBoxSize,r:this.radius,"stroke-width":this.strokeWidth,"stroke-dasharray":this.strokeDashArray,"stroke-dashoffset":e}})},genSvg(){const t=[this.indeterminate||this.genCircle("underlay",0),this.genCircle("overlay",this.strokeDashOffset)];return this.$createElement("svg",{style:this.svgStyles,attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:`${this.viewBoxSize} ${this.viewBoxSize} ${2*this.viewBoxSize} ${2*this.viewBoxSize}`}},t)},genInfo(){return this.$createElement("div",{staticClass:"v-progress-circular__info"},Object(a["s"])(this))},onObserve(t,e,i){this.isVisible=i}},render(t){return t("div",this.setTextColor(this.color,{staticClass:"v-progress-circular",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,directives:[{name:"intersect",value:this.onObserve}],style:this.styles,on:this.$listeners}),[this.genSvg(),this.genInfo()])}})},"4b85":function(t,e,i){},"4e82":function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var s=i("3206");function n(t,e,i){return Object(s["a"])(t,e,i).extend({name:"groupable",props:{activeClass:{type:String,default(){if(this[t])return this[t].activeClass}},disabled:Boolean},data(){return{isActive:!1}},computed:{groupClasses(){return this.activeClass?{[this.activeClass]:this.isActive}:{}}},created(){this[t]&&this[t].register(this)},beforeDestroy(){this[t]&&this[t].unregister(this)},methods:{toggle(t){this.disabled&&t?t.preventDefault():this.$emit("change")}}})}n("itemGroup")},5607:function(t,e,i){"use strict";i("7435");var s=i("80d2");const n=80;function a(t,e){t.style.transform=e,t.style.webkitTransform=e}function r(t){return"TouchEvent"===t.constructor.name}function o(t){return"KeyboardEvent"===t.constructor.name}const l=(t,e,i={})=>{let s=0,n=0;if(!o(t)){const i=e.getBoundingClientRect(),a=r(t)?t.touches[t.touches.length-1]:t;s=a.clientX-i.left,n=a.clientY-i.top}let a=0,l=.3;e._ripple&&e._ripple.circle?(l=.15,a=e.clientWidth/2,a=i.center?a:a+Math.sqrt((s-a)**2+(n-a)**2)/4):a=Math.sqrt(e.clientWidth**2+e.clientHeight**2)/2;const c=(e.clientWidth-2*a)/2+"px",h=(e.clientHeight-2*a)/2+"px",d=i.center?c:s-a+"px",u=i.center?h:n-a+"px";return{radius:a,scale:l,x:d,y:u,centerX:c,centerY:h}},c={show(t,e,i={}){if(!e._ripple||!e._ripple.enabled)return;const s=document.createElement("span"),n=document.createElement("span");s.appendChild(n),s.className="v-ripple__container",i.class&&(s.className+=" "+i.class);const{radius:r,scale:o,x:c,y:h,centerX:d,centerY:u}=l(t,e,i),p=2*r+"px";n.className="v-ripple__animation",n.style.width=p,n.style.height=p,e.appendChild(s);const v=window.getComputedStyle(e);v&&"static"===v.position&&(e.style.position="relative",e.dataset.previousPosition="static"),n.classList.add("v-ripple__animation--enter"),n.classList.add("v-ripple__animation--visible"),a(n,`translate(${c}, ${h}) scale3d(${o},${o},${o})`),n.dataset.activated=String(performance.now()),setTimeout(()=>{n.classList.remove("v-ripple__animation--enter"),n.classList.add("v-ripple__animation--in"),a(n,`translate(${d}, ${u}) scale3d(1,1,1)`)},0)},hide(t){if(!t||!t._ripple||!t._ripple.enabled)return;const e=t.getElementsByClassName("v-ripple__animation");if(0===e.length)return;const i=e[e.length-1];if(i.dataset.isHiding)return;i.dataset.isHiding="true";const s=performance.now()-Number(i.dataset.activated),n=Math.max(250-s,0);setTimeout(()=>{i.classList.remove("v-ripple__animation--in"),i.classList.add("v-ripple__animation--out"),setTimeout(()=>{var e;const s=t.getElementsByClassName("v-ripple__animation");1===s.length&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),(null===(e=i.parentNode)||void 0===e?void 0:e.parentNode)===t&&t.removeChild(i.parentNode)},300)},n)}};function h(t){return"undefined"===typeof t||!!t}function d(t){const e={},i=t.currentTarget;if(i&&i._ripple&&!i._ripple.touched&&!t.rippleStop){if(t.rippleStop=!0,r(t))i._ripple.touched=!0,i._ripple.isTouch=!0;else if(i._ripple.isTouch)return;if(e.center=i._ripple.centered||o(t),i._ripple.class&&(e.class=i._ripple.class),r(t)){if(i._ripple.showTimerCommit)return;i._ripple.showTimerCommit=()=>{c.show(t,i,e)},i._ripple.showTimer=window.setTimeout(()=>{i&&i._ripple&&i._ripple.showTimerCommit&&(i._ripple.showTimerCommit(),i._ripple.showTimerCommit=null)},n)}else c.show(t,i,e)}}function u(t){const e=t.currentTarget;if(e&&e._ripple){if(window.clearTimeout(e._ripple.showTimer),"touchend"===t.type&&e._ripple.showTimerCommit)return e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null,void(e._ripple.showTimer=setTimeout(()=>{u(t)}));window.setTimeout(()=>{e._ripple&&(e._ripple.touched=!1)}),c.hide(e)}}function p(t){const e=t.currentTarget;e&&e._ripple&&(e._ripple.showTimerCommit&&(e._ripple.showTimerCommit=null),window.clearTimeout(e._ripple.showTimer))}let v=!1;function m(t){v||t.keyCode!==s["y"].enter&&t.keyCode!==s["y"].space||(v=!0,d(t))}function g(t){v=!1,u(t)}function f(t){!0===v&&(v=!1,u(t))}function b(t,e,i){const s=h(e.value);s||c.hide(t),t._ripple=t._ripple||{},t._ripple.enabled=s;const n=e.value||{};n.center&&(t._ripple.centered=!0),n.class&&(t._ripple.class=e.value.class),n.circle&&(t._ripple.circle=n.circle),s&&!i?(t.addEventListener("touchstart",d,{passive:!0}),t.addEventListener("touchend",u,{passive:!0}),t.addEventListener("touchmove",p,{passive:!0}),t.addEventListener("touchcancel",u),t.addEventListener("mousedown",d),t.addEventListener("mouseup",u),t.addEventListener("mouseleave",u),t.addEventListener("keydown",m),t.addEventListener("keyup",g),t.addEventListener("blur",f),t.addEventListener("dragstart",u,{passive:!0})):!s&&i&&y(t)}function y(t){t.removeEventListener("mousedown",d),t.removeEventListener("touchstart",d),t.removeEventListener("touchend",u),t.removeEventListener("touchmove",p),t.removeEventListener("touchcancel",u),t.removeEventListener("mouseup",u),t.removeEventListener("mouseleave",u),t.removeEventListener("keydown",m),t.removeEventListener("keyup",g),t.removeEventListener("dragstart",u),t.removeEventListener("blur",f)}function C(t,e,i){b(t,e,!1)}function x(t){delete t._ripple,y(t)}function _(t,e){if(e.value===e.oldValue)return;const i=h(e.oldValue);b(t,e,i)}const B={bind:C,unbind:x,update:_};e["a"]=B},"5d23":function(t,e,i){"use strict";i.d(e,"a",(function(){return k})),i.d(e,"c",(function(){return O})),i.d(e,"b",(function(){return S}));var s=i("80d2"),n=i("8860"),a=(i("4d63"),i("ac1f"),i("db42"),i("9d26")),r=i("da13"),o=i("2b0e"),l=o["a"].extend({name:"v-list-item-icon",functional:!0,render(t,{data:e,children:i}){return e.staticClass=("v-list-item__icon "+(e.staticClass||"")).trim(),t("div",e,i)}}),c=i("7e2b"),h=i("9d65"),d=i("a9ad"),u=i("f2e7"),p=i("3206"),v=i("5607"),m=i("0789"),g=i("58df");const f=Object(g["a"])(c["a"],h["a"],d["a"],Object(p["a"])("list"),u["a"]);var b=f.extend().extend({name:"v-list-group",directives:{ripple:v["a"]},props:{activeClass:{type:String,default:""},appendIcon:{type:String,default:"$expand"},color:{type:String,default:"primary"},disabled:Boolean,group:[String,RegExp],noAction:Boolean,prependIcon:String,ripple:{type:[Boolean,Object],default:!0},subGroup:Boolean},computed:{classes(){return{"v-list-group--active":this.isActive,"v-list-group--disabled":this.disabled,"v-list-group--no-action":this.noAction,"v-list-group--sub-group":this.subGroup}}},watch:{isActive(t){!this.subGroup&&t&&this.list&&this.list.listClick(this._uid)},$route:"onRouteChange"},created(){this.list&&this.list.register(this),this.group&&this.$route&&null==this.value&&(this.isActive=this.matchRoute(this.$route.path))},beforeDestroy(){this.list&&this.list.unregister(this)},methods:{click(t){this.disabled||(this.isBooted=!0,this.$emit("click",t),this.$nextTick(()=>this.isActive=!this.isActive))},genIcon(t){return this.$createElement(a["a"],t)},genAppendIcon(){const t=!this.subGroup&&this.appendIcon,e=Object(s["s"])(this,"appendIcon");return t||e?this.$createElement(l,{staticClass:"v-list-group__header__append-icon"},[e||this.genIcon(t)]):null},genHeader(){return this.$createElement(r["a"],{staticClass:"v-list-group__header",attrs:{"aria-expanded":String(this.isActive),role:"button"},class:{[this.activeClass]:this.isActive},props:{inputValue:this.isActive},directives:[{name:"ripple",value:this.ripple}],on:{...this.listeners$,click:this.click}},[this.genPrependIcon(),Object(s["s"])(this,"activator"),this.genAppendIcon()])},genItems(){return this.showLazyContent(()=>[this.$createElement("div",{staticClass:"v-list-group__items",directives:[{name:"show",value:this.isActive}]},Object(s["s"])(this))])},genPrependIcon(){const t=this.subGroup&&null==this.prependIcon?"$subgroup":this.prependIcon,e=Object(s["s"])(this,"prependIcon");return t||e?this.$createElement(l,{staticClass:"v-list-group__header__prepend-icon"},[e||this.genIcon(t)]):null},onRouteChange(t){if(!this.group)return;const e=this.matchRoute(t.path);e&&this.isActive!==e&&this.list&&this.list.listClick(this._uid),this.isActive=e},toggle(t){const e=this._uid===t;e&&(this.isBooted=!0),this.$nextTick(()=>this.isActive=e)},matchRoute(t){return null!==t.match(this.group)}},render(t){return t("div",this.setTextColor(this.isActive&&this.color,{staticClass:"v-list-group",class:this.classes}),[this.genHeader(),t(m["a"],this.genItems())])}}),y=i("1baa"),C=i("1800"),x=i("713a"),_=x["a"].extend({name:"v-list-item-avatar",props:{horizontal:Boolean,size:{type:[Number,String],default:40}},computed:{classes(){return{"v-list-item__avatar--horizontal":this.horizontal,...x["a"].options.computed.classes.call(this),"v-avatar--tile":this.tile||this.horizontal}}},render(t){const e=x["a"].options.render.call(this,t);return e.data=e.data||{},e.data.staticClass+=" v-list-item__avatar",e}});const B=Object(s["j"])("v-list-item__action-text","span"),k=Object(s["j"])("v-list-item__content","div"),O=Object(s["j"])("v-list-item__title","div"),S=Object(s["j"])("v-list-item__subtitle","div");n["a"],r["a"],C["a"],y["a"]},"604c":function(t,e,i){"use strict";i.d(e,"a",(function(){return c}));i("166a");var s=i("8547"),n=i("a452"),a=i("7560"),r=i("58df"),o=i("d9bd"),l=i("80d2");const c=Object(r["a"])(s["a"],n["a"],a["a"]).extend({name:"base-item-group",props:{activeClass:{type:String,default:"v-item--active"},mandatory:Boolean,max:{type:[Number,String],default:null},multiple:Boolean,tag:{type:String,default:"div"}},data(){return{internalLazyValue:void 0!==this.value?this.value:this.multiple?[]:void 0,items:[]}},computed:{classes(){return{"v-item-group":!0,...this.themeClasses}},selectedIndex(){return this.selectedItem&&this.items.indexOf(this.selectedItem)||-1},selectedItem(){if(!this.multiple)return this.selectedItems[0]},selectedItems(){return this.items.filter((t,e)=>this.toggleMethod(this.getValue(t,e)))},selectedValues(){return null==this.internalValue?[]:Array.isArray(this.internalValue)?this.internalValue:[this.internalValue]},toggleMethod(){if(!this.multiple)return t=>this.valueComparator(this.internalValue,t);const t=this.internalValue;return Array.isArray(t)?e=>t.some(t=>this.valueComparator(t,e)):()=>!1}},watch:{internalValue:"updateItemsState",items:"updateItemsState"},created(){this.multiple&&!Array.isArray(this.internalValue)&&Object(o["c"])("Model must be bound to an array if the multiple property is true.",this)},methods:{genData(){return{class:this.classes}},getValue(t,e){return void 0===t.value?e:t.value},onClick(t){this.updateInternalValue(this.getValue(t,this.items.indexOf(t)))},register(t){const e=this.items.push(t)-1;t.$on("change",()=>this.onClick(t)),this.mandatory&&!this.selectedValues.length&&this.updateMandatory(),this.updateItem(t,e)},unregister(t){if(this._isDestroyed)return;const e=this.items.indexOf(t),i=this.getValue(t,e);this.items.splice(e,1);const s=this.selectedValues.indexOf(i);if(!(s<0)){if(!this.mandatory)return this.updateInternalValue(i);this.multiple&&Array.isArray(this.internalValue)?this.internalValue=this.internalValue.filter(t=>t!==i):this.internalValue=void 0,this.selectedItems.length||this.updateMandatory(!0)}},updateItem(t,e){const i=this.getValue(t,e);t.isActive=this.toggleMethod(i)},updateItemsState(){this.$nextTick(()=>{if(this.mandatory&&!this.selectedItems.length)return this.updateMandatory();this.items.forEach(this.updateItem)})},updateInternalValue(t){this.multiple?this.updateMultiple(t):this.updateSingle(t)},updateMandatory(t){if(!this.items.length)return;const e=this.items.slice();t&&e.reverse();const i=e.find(t=>!t.disabled);if(!i)return;const s=this.items.indexOf(i);this.updateInternalValue(this.getValue(i,s))},updateMultiple(t){const e=Array.isArray(this.internalValue)?this.internalValue:[],i=e.slice(),s=i.findIndex(e=>this.valueComparator(e,t));this.mandatory&&s>-1&&i.length-1<1||null!=this.max&&s<0&&i.length+1>this.max||(s>-1?i.splice(s,1):i.push(t),this.internalValue=i)},updateSingle(t){const e=this.valueComparator(this.internalValue,t);this.mandatory&&e||(this.internalValue=e?void 0:t)}},render(t){return t(this.tag,this.genData(),Object(l["s"])(this))}});c.extend({name:"v-item-group",provide(){return{itemGroup:this}}})},"615b":function(t,e,i){},"61d2":function(t,e,i){},"6ece":function(t,e,i){},"713a":function(t,e,i){"use strict";var s=i("8212");e["a"]=s["a"]},7435:function(t,e,i){},"7e2b":function(t,e,i){"use strict";var s=i("2b0e");function n(t){return function(e,i){for(const s in i)Object.prototype.hasOwnProperty.call(e,s)||this.$delete(this.$data[t],s);for(const s in e)this.$set(this.$data[t],s,e[s])}}e["a"]=s["a"].extend({data:()=>({attrs$:{},listeners$:{}}),created(){this.$watch("$attrs",n("attrs$"),{immediate:!0}),this.$watch("$listeners",n("listeners$"),{immediate:!0})}})},8212:function(t,e,i){"use strict";i("3408");var s=i("a9ad"),n=i("24b2"),a=i("a236"),r=i("80d2"),o=i("58df");e["a"]=Object(o["a"])(s["a"],n["a"],a["a"]).extend({name:"v-avatar",props:{left:Boolean,right:Boolean,size:{type:[Number,String],default:48}},computed:{classes(){return{"v-avatar--left":this.left,"v-avatar--right":this.right,...this.roundedClasses}},styles(){return{height:Object(r["h"])(this.size),minWidth:Object(r["h"])(this.size),width:Object(r["h"])(this.size),...this.measurableStyles}}},render(t){const e={staticClass:"v-avatar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,e),Object(r["s"])(this))}})},8336:function(t,e,i){"use strict";i("caad"),i("86cc");var s=i("10d2"),n=i("490a"),a=n["a"],r=i("4e82"),o=i("f2e7"),l=i("c995"),c=i("fe6c"),h=i("1c87"),d=i("af2b"),u=i("58df"),p=i("d9bd"),v=i("80d2");const m=Object(u["a"])(s["a"],h["a"],c["a"],d["a"],Object(r["a"])("btnToggle"),Object(o["b"])("inputValue"));e["a"]=m.extend().extend({name:"v-btn",props:{activeClass:{type:String,default(){return this.btnToggle?this.btnToggle.activeClass:""}},block:Boolean,depressed:Boolean,fab:Boolean,icon:Boolean,loading:Boolean,outlined:Boolean,plain:Boolean,retainFocusOnClick:Boolean,rounded:Boolean,tag:{type:String,default:"button"},text:Boolean,tile:Boolean,type:{type:String,default:"button"},value:null},data:()=>({proxyClass:"v-btn--active"}),computed:{classes(){return{"v-btn":!0,...h["a"].options.computed.classes.call(this),"v-btn--absolute":this.absolute,"v-btn--block":this.block,"v-btn--bottom":this.bottom,"v-btn--disabled":this.disabled,"v-btn--is-elevated":this.isElevated,"v-btn--fab":this.fab,"v-btn--fixed":this.fixed,"v-btn--has-bg":this.hasBg,"v-btn--icon":this.icon,"v-btn--left":this.left,"v-btn--loading":this.loading,"v-btn--outlined":this.outlined,"v-btn--plain":this.plain,"v-btn--right":this.right,"v-btn--round":this.isRound,"v-btn--rounded":this.rounded,"v-btn--router":this.to,"v-btn--text":this.text,"v-btn--tile":this.tile,"v-btn--top":this.top,...this.themeClasses,...this.groupClasses,...this.elevationClasses,...this.sizeableClasses}},computedElevation(){if(!this.disabled)return l["a"].options.computed.computedElevation.call(this)},computedRipple(){var t;const e=!this.icon&&!this.fab||{circle:!0};return!this.disabled&&(null!==(t=this.ripple)&&void 0!==t?t:e)},hasBg(){return!this.text&&!this.plain&&!this.outlined&&!this.icon},isElevated(){return Boolean(!this.icon&&!this.text&&!this.outlined&&!this.depressed&&!this.disabled&&!this.plain&&(null==this.elevation||Number(this.elevation)>0))},isRound(){return Boolean(this.icon||this.fab)},styles(){return{...this.measurableStyles}}},created(){const t=[["flat","text"],["outline","outlined"],["round","rounded"]];t.forEach(([t,e])=>{this.$attrs.hasOwnProperty(t)&&Object(p["a"])(t,e,this)})},methods:{click(t){!this.retainFocusOnClick&&!this.fab&&t.detail&&this.$el.blur(),this.$emit("click",t),this.btnToggle&&this.toggle()},genContent(){return this.$createElement("span",{staticClass:"v-btn__content"},Object(v["s"])(this))},genLoader(){return this.$createElement("span",{class:"v-btn__loader"},Object(v["s"])(this,"loader")||[this.$createElement(a,{props:{indeterminate:!0,size:23,width:2}})])}},render(t){const e=[this.genContent(),this.loading&&this.genLoader()],{tag:i,data:s}=this.generateRouteLink(),n=this.hasBg?this.setBackgroundColor:this.setTextColor;return"button"===i&&(s.attrs.type=this.type,s.attrs.disabled=this.disabled),s.attrs.value=["string","number"].includes(typeof this.value)?this.value:JSON.stringify(this.value),t(i,this.disabled?s:n(this.color,s),e)}})},8547:function(t,e,i){"use strict";var s=i("2b0e"),n=i("80d2");e["a"]=s["a"].extend({name:"comparable",props:{valueComparator:{type:Function,default:n["k"]}}})},"86cc":function(t,e,i){},8860:function(t,e,i){"use strict";i("3ad0");var s=i("8dd9"),n=i("80d2");e["a"]=s["a"].extend().extend({name:"v-list",provide(){return{isInList:!0,list:this}},inject:{isInMenu:{default:!1},isInNav:{default:!1}},props:{dense:Boolean,disabled:Boolean,expand:Boolean,flat:Boolean,nav:Boolean,rounded:Boolean,subheader:Boolean,threeLine:Boolean,twoLine:Boolean},data:()=>({groups:[]}),computed:{classes(){return{...s["a"].options.computed.classes.call(this),"v-list--dense":this.dense,"v-list--disabled":this.disabled,"v-list--flat":this.flat,"v-list--nav":this.nav,"v-list--rounded":this.rounded,"v-list--subheader":this.subheader,"v-list--two-line":this.twoLine,"v-list--three-line":this.threeLine}}},methods:{register(t){this.groups.push(t)},unregister(t){const e=this.groups.findIndex(e=>e._uid===t._uid);e>-1&&this.groups.splice(e,1)},listClick(t){if(!this.expand)for(const e of this.groups)e.toggle(t)}},render(t){const e={staticClass:"v-list",class:this.classes,style:this.styles,attrs:{role:this.isInNav||this.isInMenu?void 0:"list",...this.attrs$},on:this.listeners$};return t(this.tag,this.setBackgroundColor(this.color,e),Object(n["s"])(this))}})},"899c":function(t,e,i){},"8adc":function(t,e,i){},"8ce9":function(t,e,i){},"8d4f":function(t,e,i){},"8dd9":function(t,e,i){"use strict";i("25a8");var s=i("7e2b"),n=i("a9ad"),a=i("c995"),r=i("24b2"),o=i("a236"),l=i("7560"),c=i("58df");e["a"]=Object(c["a"])(s["a"],n["a"],a["a"],r["a"],o["a"],l["a"]).extend({name:"v-sheet",props:{outlined:Boolean,shaped:Boolean,tag:{type:String,default:"div"}},computed:{classes(){return{"v-sheet":!0,"v-sheet--outlined":this.outlined,"v-sheet--shaped":this.shaped,...this.themeClasses,...this.elevationClasses,...this.roundedClasses}},styles(){return this.measurableStyles}},render(t){const e={class:this.classes,style:this.styles,on:this.listeners$};return t(this.tag,this.setBackgroundColor(this.color,e),this.$slots.default)}})},"8e36":function(t,e,i){"use strict";i("6ece");var s=i("0789"),n=i("90a2"),a=i("a9ad"),r=i("fe6c"),o=i("a452"),l=i("7560"),c=i("80d2"),h=i("58df");const d=Object(h["a"])(a["a"],Object(r["b"])(["absolute","fixed","top","bottom"]),o["a"],l["a"]);e["a"]=d.extend({name:"v-progress-linear",directives:{intersect:n["a"]},props:{active:{type:Boolean,default:!0},backgroundColor:{type:String,default:null},backgroundOpacity:{type:[Number,String],default:null},bufferValue:{type:[Number,String],default:100},color:{type:String,default:"primary"},height:{type:[Number,String],default:4},indeterminate:Boolean,query:Boolean,reverse:Boolean,rounded:Boolean,stream:Boolean,striped:Boolean,value:{type:[Number,String],default:0}},data(){return{internalLazyValue:this.value||0,isVisible:!0}},computed:{__cachedBackground(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor||this.color,{staticClass:"v-progress-linear__background",style:this.backgroundStyle}))},__cachedBar(){return this.$createElement(this.computedTransition,[this.__cachedBarType])},__cachedBarType(){return this.indeterminate?this.__cachedIndeterminate:this.__cachedDeterminate},__cachedBuffer(){return this.$createElement("div",{staticClass:"v-progress-linear__buffer",style:this.styles})},__cachedDeterminate(){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__determinate",style:{width:Object(c["h"])(this.normalizedValue,"%")}}))},__cachedIndeterminate(){return this.$createElement("div",{staticClass:"v-progress-linear__indeterminate",class:{"v-progress-linear__indeterminate--active":this.active}},[this.genProgressBar("long"),this.genProgressBar("short")])},__cachedStream(){return this.stream?this.$createElement("div",this.setTextColor(this.color,{staticClass:"v-progress-linear__stream",style:{width:Object(c["h"])(100-this.normalizedBuffer,"%")}})):null},backgroundStyle(){const t=null==this.backgroundOpacity?this.backgroundColor?1:.3:parseFloat(this.backgroundOpacity);return{opacity:t,[this.isReversed?"right":"left"]:Object(c["h"])(this.normalizedValue,"%"),width:Object(c["h"])(Math.max(0,this.normalizedBuffer-this.normalizedValue),"%")}},classes(){return{"v-progress-linear--absolute":this.absolute,"v-progress-linear--fixed":this.fixed,"v-progress-linear--query":this.query,"v-progress-linear--reactive":this.reactive,"v-progress-linear--reverse":this.isReversed,"v-progress-linear--rounded":this.rounded,"v-progress-linear--striped":this.striped,"v-progress-linear--visible":this.isVisible,...this.themeClasses}},computedTransition(){return this.indeterminate?s["d"]:s["e"]},isReversed(){return this.$vuetify.rtl!==this.reverse},normalizedBuffer(){return this.normalize(this.bufferValue)},normalizedValue(){return this.normalize(this.internalLazyValue)},reactive(){return Boolean(this.$listeners.change)},styles(){const t={};return this.active||(t.height=0),this.indeterminate||100===parseFloat(this.normalizedBuffer)||(t.width=Object(c["h"])(this.normalizedBuffer,"%")),t}},methods:{genContent(){const t=Object(c["s"])(this,"default",{value:this.internalLazyValue});return t?this.$createElement("div",{staticClass:"v-progress-linear__content"},t):null},genListeners(){const t=this.$listeners;return this.reactive&&(t.click=this.onClick),t},genProgressBar(t){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__indeterminate",class:{[t]:!0}}))},onClick(t){if(!this.reactive)return;const{width:e}=this.$el.getBoundingClientRect();this.internalValue=t.offsetX/e*100},onObserve(t,e,i){this.isVisible=i},normalize(t){return t<0?0:t>100?100:parseFloat(t)}},render(t){const e={staticClass:"v-progress-linear",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":this.normalizedBuffer,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,directives:[{name:"intersect",value:this.onObserve}],style:{bottom:this.bottom?0:void 0,height:this.active?Object(c["h"])(this.height):0,top:this.top?0:void 0},on:this.genListeners()};return t("div",e,[this.__cachedStream,this.__cachedBackground,this.__cachedBuffer,this.__cachedBar,this.genContent()])}})},"90a2":function(t,e,i){"use strict";function s(t,e,i){if("undefined"===typeof window||!("IntersectionObserver"in window))return;const s=e.modifiers||{},a=e.value,{handler:r,options:o}="object"===typeof a?a:{handler:a,options:{}},l=new IntersectionObserver((a=[],o)=>{var l;const c=null===(l=t._observe)||void 0===l?void 0:l[i.context._uid];if(!c)return;const h=a.some(t=>t.isIntersecting);!r||s.quiet&&!c.init||s.once&&!h&&!c.init||r(a,o,h),h&&s.once?n(t,e,i):c.init=!0},o);t._observe=Object(t._observe),t._observe[i.context._uid]={init:!1,observer:l},l.observe(t)}function n(t,e,i){var s;const n=null===(s=t._observe)||void 0===s?void 0:s[i.context._uid];n&&(n.observer.unobserve(t),delete t._observe[i.context._uid])}const a={inserted:s,unbind:n};e["a"]=a},"99d9":function(t,e,i){"use strict";i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return l}));var s=i("b0af"),n=i("80d2");const a=Object(n["j"])("v-card__actions"),r=Object(n["j"])("v-card__subtitle"),o=Object(n["j"])("v-card__text"),l=Object(n["j"])("v-card__title");s["a"]},"9d26":function(t,e,i){"use strict";var s=i("132d");e["a"]=s["a"]},"9d65":function(t,e,i){"use strict";var s=i("d9bd"),n=i("2b0e");e["a"]=n["a"].extend().extend({name:"bootable",props:{eager:Boolean},data:()=>({isBooted:!1}),computed:{hasContent(){return this.isBooted||this.eager||this.isActive}},watch:{isActive(){this.isBooted=!0}},created(){"lazy"in this.$attrs&&Object(s["e"])("lazy",this)},methods:{showLazyContent(t){return this.hasContent&&t?t():[this.$createElement()]}}})},a236:function(t,e,i){"use strict";i("ac1f");var s=i("2b0e");e["a"]=s["a"].extend({name:"roundable",props:{rounded:[Boolean,String],tile:Boolean},computed:{roundedClasses(){const t=[],e="string"===typeof this.rounded?String(this.rounded):!0===this.rounded;if(this.tile)t.push("rounded-0");else if("string"===typeof e){const i=e.split(" ");for(const e of i)t.push("rounded-"+e)}else e&&t.push("rounded");return t.length>0?{[t.join(" ")]:!0}:{}}}})},a452:function(t,e,i){"use strict";var s=i("2b0e");function n(t="value",e="change"){return s["a"].extend({name:"proxyable",model:{prop:t,event:e},props:{[t]:{required:!1}},data(){return{internalLazyValue:this[t]}},computed:{internalValue:{get(){return this.internalLazyValue},set(t){t!==this.internalLazyValue&&(this.internalLazyValue=t,this.$emit(e,t))}}},watch:{[t](t){this.internalLazyValue=t}}})}const a=n();e["a"]=a},a523:function(t,e,i){"use strict";i("20f6"),i("4b85");var s=i("2b0e");function n(t){return s["a"].extend({name:"v-"+t,functional:!0,props:{id:String,tag:{type:String,default:"div"}},render(e,{props:i,data:s,children:n}){s.staticClass=`${t} ${s.staticClass||""}`.trim();const{attrs:a}=s;if(a){s.attrs={};const t=Object.keys(a).filter(t=>{if("slot"===t)return!1;const e=a[t];return t.startsWith("data-")?(s.attrs[t]=e,!1):e||"string"===typeof e});t.length&&(s.staticClass+=" "+t.join(" "))}return i.id&&(s.domProps=s.domProps||{},s.domProps.id=i.id),e(i.tag,s,n)}})}var a=i("d9f7");e["a"]=n("container").extend({name:"v-container",functional:!0,props:{id:String,tag:{type:String,default:"div"},fluid:{type:Boolean,default:!1}},render(t,{props:e,data:i,children:s}){let n;const{attrs:r}=i;return r&&(i.attrs={},n=Object.keys(r).filter(t=>{if("slot"===t)return!1;const e=r[t];return t.startsWith("data-")?(i.attrs[t]=e,!1):e||"string"===typeof e})),e.id&&(i.domProps=i.domProps||{},i.domProps.id=e.id),t(e.tag,Object(a["a"])(i,{staticClass:"container",class:Array({"container--fluid":e.fluid}).concat(n||[])}),s)}})},a9ad:function(t,e,i){"use strict";i("ac1f");var s=i("2b0e"),n=i("d9bd"),a=i("7bc6");e["a"]=s["a"].extend({name:"colorable",props:{color:String},methods:{setBackgroundColor(t,e={}){return"string"===typeof e.style?(Object(n["b"])("style must be an object",this),e):"string"===typeof e.class?(Object(n["b"])("class must be an object",this),e):(Object(a["d"])(t)?e.style={...e.style,"background-color":""+t,"border-color":""+t}:t&&(e.class={...e.class,[t]:!0}),e)},setTextColor(t,e={}){if("string"===typeof e.style)return Object(n["b"])("style must be an object",this),e;if("string"===typeof e.class)return Object(n["b"])("class must be an object",this),e;if(Object(a["d"])(t))e.style={...e.style,color:""+t,"caret-color":""+t};else if(t){const[i,s]=t.toString().trim().split(" ",2);e.class={...e.class,[i+"--text"]:!0},s&&(e.class["text--"+s]=!0)}return e}}})},af2b:function(t,e,i){"use strict";var s=i("2b0e");e["a"]=s["a"].extend({name:"sizeable",props:{large:Boolean,small:Boolean,xLarge:Boolean,xSmall:Boolean},computed:{medium(){return Boolean(!this.xSmall&&!this.small&&!this.large&&!this.xLarge)},sizeableClasses(){return{"v-size--x-small":this.xSmall,"v-size--small":this.small,"v-size--default":this.medium,"v-size--large":this.large,"v-size--x-large":this.xLarge}}}})},b0af:function(t,e,i){"use strict";i("615b");var s=i("10d2"),n=i("297c"),a=i("1c87"),r=i("58df"),o=i("80d2");e["a"]=Object(r["a"])(n["a"],a["a"],s["a"]).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,link:Boolean,loaderHeight:{type:[Number,String],default:4},raised:Boolean},computed:{classes(){return{"v-card":!0,...a["a"].options.computed.classes.call(this),"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised,...s["a"].options.computed.classes.call(this)}},styles(){const t={...s["a"].options.computed.styles.call(this)};return this.img&&(t.background=`url("${this.img}") center center / cover no-repeat`),t}},methods:{genProgress(){const t=n["a"].options.methods.genProgress.call(this);return t?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[t]):null}},render(t){const{tag:e,data:i}=this.generateRouteLink();return i.style=this.styles,this.isClickable&&(i.attrs=i.attrs||{},i.attrs.tabindex=0),t(e,this.setBackgroundColor(this.color,i),[this.genProgress(),Object(o["s"])(this)])}})},c995:function(t,e,i){"use strict";var s=i("2b0e");e["a"]=s["a"].extend({name:"elevatable",props:{elevation:[Number,String]},computed:{computedElevation(){return this.elevation},elevationClasses(){const t=this.computedElevation;return null==t||isNaN(parseInt(t))?{}:{["elevation-"+this.elevation]:!0}}}})},cc20:function(t,e,i){"use strict";i("8adc");var s=i("58df"),n=i("0789"),a=i("9d26"),r=i("a9ad"),o=i("4e82"),l=i("7560"),c=i("f2e7"),h=i("1c87"),d=i("af2b"),u=i("d9bd"),p=i("80d2");e["a"]=Object(s["a"])(r["a"],d["a"],h["a"],l["a"],Object(o["a"])("chipGroup"),Object(c["b"])("inputValue")).extend({name:"v-chip",props:{active:{type:Boolean,default:!0},activeClass:{type:String,default(){return this.chipGroup?this.chipGroup.activeClass:""}},close:Boolean,closeIcon:{type:String,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},disabled:Boolean,draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:Boolean,outlined:Boolean,pill:Boolean,tag:{type:String,default:"span"},textColor:String,value:null},data:()=>({proxyClass:"v-chip--active"}),computed:{classes(){return{"v-chip":!0,...h["a"].options.computed.classes.call(this),"v-chip--clickable":this.isClickable,"v-chip--disabled":this.disabled,"v-chip--draggable":this.draggable,"v-chip--label":this.label,"v-chip--link":this.isLink,"v-chip--no-color":!this.color,"v-chip--outlined":this.outlined,"v-chip--pill":this.pill,"v-chip--removable":this.hasClose,...this.themeClasses,...this.sizeableClasses,...this.groupClasses}},hasClose(){return Boolean(this.close)},isClickable(){return Boolean(h["a"].options.computed.isClickable.call(this)||this.chipGroup)}},created(){const t=[["outline","outlined"],["selected","input-value"],["value","active"],["@input","@active.sync"]];t.forEach(([t,e])=>{this.$attrs.hasOwnProperty(t)&&Object(u["a"])(t,e,this)})},methods:{click(t){this.$emit("click",t),this.chipGroup&&this.toggle()},genFilter(){const t=[];return this.isActive&&t.push(this.$createElement(a["a"],{staticClass:"v-chip__filter",props:{left:!0}},this.filterIcon)),this.$createElement(n["b"],t)},genClose(){return this.$createElement(a["a"],{staticClass:"v-chip__close",props:{right:!0,size:18},attrs:{"aria-label":this.$vuetify.lang.t(this.closeLabel)},on:{click:t=>{t.stopPropagation(),t.preventDefault(),this.$emit("click:close"),this.$emit("update:active",!1)}}},this.closeIcon)},genContent(){return this.$createElement("span",{staticClass:"v-chip__content"},[this.filter&&this.genFilter(),Object(p["s"])(this),this.hasClose&&this.genClose()])}},render(t){const e=[this.genContent()];let{tag:i,data:s}=this.generateRouteLink();s.attrs={...s.attrs,draggable:this.draggable?"true":void 0,tabindex:this.chipGroup&&!this.disabled?0:s.attrs.tabindex},s.directives.push({name:"show",value:this.active}),s=this.setBackgroundColor(this.color,s);const n=this.textColor||this.outlined&&this.color;return t(i,this.setTextColor(n,s),e)}})},ce7e:function(t,e,i){"use strict";i("8ce9");var s=i("7560");e["a"]=s["a"].extend({name:"v-divider",props:{inset:Boolean,vertical:Boolean},render(t){let e;return this.$attrs.role&&"separator"!==this.$attrs.role||(e=this.vertical?"vertical":"horizontal"),t("hr",{class:{"v-divider":!0,"v-divider--inset":this.inset,"v-divider--vertical":this.vertical,...this.themeClasses},attrs:{role:"separator","aria-orientation":e,...this.$attrs},on:this.$listeners})}})},d9f7:function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"d",(function(){return o})),i.d(e,"b",(function(){return l})),i.d(e,"c",(function(){return c}));i("ac1f");var s=i("80d2");const n={styleList:/;(?![^(]*\))/g,styleProp:/:(.*)/};function a(t){const e={};for(const i of t.split(n.styleList)){let[t,a]=i.split(n.styleProp);t=t.trim(),t&&("string"===typeof a&&(a=a.trim()),e[Object(s["c"])(t)]=a)}return e}function r(){const t={};let e,i=arguments.length;while(i--)for(e of Object.keys(arguments[i]))switch(e){case"class":case"directives":arguments[i][e]&&(t[e]=l(t[e],arguments[i][e]));break;case"style":arguments[i][e]&&(t[e]=o(t[e],arguments[i][e]));break;case"staticClass":if(!arguments[i][e])break;void 0===t[e]&&(t[e]=""),t[e]&&(t[e]+=" "),t[e]+=arguments[i][e].trim();break;case"on":case"nativeOn":arguments[i][e]&&(t[e]=c(t[e],arguments[i][e]));break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":if(!arguments[i][e])break;t[e]||(t[e]={}),t[e]={...arguments[i][e],...t[e]};break;default:t[e]||(t[e]=arguments[i][e])}return t}function o(t,e){return t?e?(t=Object(s["H"])("string"===typeof t?a(t):t),t.concat("string"===typeof e?a(e):e)):t:e}function l(t,e){return e?t&&t?Object(s["H"])(t).concat(e):e:t}function c(...t){if(!t[0])return t[1];if(!t[1])return t[0];const e={};for(let i=2;i--;){const s=t[i];for(const t in s)s[t]&&(e[t]?e[t]=[].concat(s[t],e[t]):e[t]=s[t])}return e}},da13:function(t,e,i){"use strict";i("61d2");var s=i("a9ad"),n=i("1c87"),a=i("4e82"),r=i("7560"),o=i("f2e7"),l=i("5607"),c=i("80d2"),h=i("d9bd"),d=i("58df");const u=Object(d["a"])(s["a"],n["a"],r["a"],Object(a["a"])("listItemGroup"),Object(o["b"])("inputValue"));e["a"]=u.extend().extend({name:"v-list-item",directives:{Ripple:l["a"]},inject:{isInGroup:{default:!1},isInList:{default:!1},isInMenu:{default:!1},isInNav:{default:!1}},inheritAttrs:!1,props:{activeClass:{type:String,default(){return this.listItemGroup?this.listItemGroup.activeClass:""}},dense:Boolean,inactive:Boolean,link:Boolean,selectable:{type:Boolean},tag:{type:String,default:"div"},threeLine:Boolean,twoLine:Boolean,value:null},data:()=>({proxyClass:"v-list-item--active"}),computed:{classes(){return{"v-list-item":!0,...n["a"].options.computed.classes.call(this),"v-list-item--dense":this.dense,"v-list-item--disabled":this.disabled,"v-list-item--link":this.isClickable&&!this.inactive,"v-list-item--selectable":this.selectable,"v-list-item--three-line":this.threeLine,"v-list-item--two-line":this.twoLine,...this.themeClasses}},isClickable(){return Boolean(n["a"].options.computed.isClickable.call(this)||this.listItemGroup)}},created(){this.$attrs.hasOwnProperty("avatar")&&Object(h["e"])("avatar",this)},methods:{click(t){t.detail&&this.$el.blur(),this.$emit("click",t),this.to||this.toggle()},genAttrs(){const t={"aria-disabled":!!this.disabled||void 0,tabindex:this.isClickable&&!this.disabled?0:-1,...this.$attrs};return this.$attrs.hasOwnProperty("role")||this.isInNav||(this.isInGroup?(t.role="option",t["aria-selected"]=String(this.isActive)):this.isInMenu?(t.role=this.isClickable?"menuitem":void 0,t.id=t.id||"list-item-"+this._uid):this.isInList&&(t.role="listitem")),t},toggle(){this.to&&void 0===this.inputValue&&(this.isActive=!this.isActive),this.$emit("change")}},render(t){let{tag:e,data:i}=this.generateRouteLink();i.attrs={...i.attrs,...this.genAttrs()},i[this.to?"nativeOn":"on"]={...i[this.to?"nativeOn":"on"],keydown:t=>{this.disabled||(t.keyCode===c["y"].enter&&this.click(t),this.$emit("keydown",t))}},this.inactive&&(e="div"),this.inactive&&this.to&&(i.on=i.nativeOn,delete i.nativeOn);const s=Object(c["s"])(this,"default",{active:this.isActive,toggle:this.toggle});return t(e,this.isActive?this.setTextColor(this.color,i):i,s)}})},db42:function(t,e,i){},e0c7:function(t,e,i){"use strict";i("0bc6");var s=i("7560"),n=i("58df"),a=i("80d2");e["a"]=Object(n["a"])(s["a"]).extend({name:"v-subheader",props:{inset:Boolean},render(t){return t("div",{staticClass:"v-subheader",class:{"v-subheader--inset":this.inset,...this.themeClasses},attrs:this.$attrs,on:this.$listeners},Object(a["s"])(this))}})},f2e7:function(t,e,i){"use strict";i.d(e,"b",(function(){return n}));var s=i("2b0e");function n(t="value",e="input"){return s["a"].extend({name:"toggleable",model:{prop:t,event:e},props:{[t]:{required:!1}},data(){return{isActive:!!this[t]}},watch:{[t](t){this.isActive=!!t},isActive(i){!!i!==this[t]&&this.$emit(e,i)}}})}const a=n();e["a"]=a},fe6c:function(t,e,i){"use strict";i.d(e,"b",(function(){return r}));var s=i("2b0e"),n=i("80d2");const a={absolute:Boolean,bottom:Boolean,fixed:Boolean,left:Boolean,right:Boolean,top:Boolean};function r(t=[]){return s["a"].extend({name:"positionable",props:t.length?Object(n["n"])(a,t):a})}e["a"]=r()}}]); \ No newline at end of file diff --git a/dist/js/chunk-4348ccc7.eb526444.js b/dist/js/chunk-4348ccc7.eb526444.js deleted file mode 100644 index 20a0404..0000000 --- a/dist/js/chunk-4348ccc7.eb526444.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4348ccc7"],{1324:function(t,e,a){"use strict";a.r(e);var s=a("8336"),n=a("99d9"),l=a("62ad"),i=a("a523"),c=a("8fea"),d=a("2e4b"),r=a("ce7e"),o=a("132d"),h=a("e449"),u=a("0fd9"),m=a("2fa4"),p=a("8654"),f=function(){var t=this,e=t._self._c;return e(i["a"],{attrs:{fluid:"",id:"BOFReport"}},[e(n["b"],{staticClass:"text-center headline black--text"},[t._v("Показатели по работе ККЦ за период "+t._s(t.computedDateFormatted))]),e(r["a"],{staticClass:"mx-0"}),e(u["a"],[e(l["a"],{staticStyle:{"min-width":"250px","max-width":"250px"},attrs:{cols:"12"}},[e(h["a"],{attrs:{"close-on-content-click":!1,"nudge-right":40,"nudge-top":-5,transition:"scale-transition","offset-y":"","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function({on:a}){return[e(p["a"],t._g({staticClass:"datePicker",attrs:{id:"datePicker","prepend-icon":"event",readonly:"","single-line":"",disabled:t.loading},model:{value:t.computedDateFormatted,callback:function(e){t.computedDateFormatted=e},expression:"computedDateFormatted"}},a))]}}]),model:{value:t.datePickerMenu,callback:function(e){t.datePickerMenu=e},expression:"datePickerMenu"}},[e(d["a"],{attrs:{"no-title":"",scrollable:"","popover-align":"center",range:""},on:{input:function(e){t.input(e)&&t.datePickerMenu},change:function(e){return t.refreshData()}},model:{value:t.dates,callback:function(e){t.dates=e},expression:"dates"}})],1)],1),e(r["a"],{staticClass:"d-none d-md-flex mx-2 my-7",attrs:{inset:"",vertical:""}}),e(l["a"],{staticClass:"text-center my-4",attrs:{cols:"1",sm:"1"}},[e(s["a"],{attrs:{disabled:t.loading||!t.data.items.length,tile:"",outlined:"",color:"success"},on:{click:function(e){t.loader=t.Excel()}}},[e(o["a"],{attrs:{left:"",size:"35"}},[t._v("mdi-file-excel")]),t._v("Excel ")],1)],1),e(m["a"]),e(l["a"],{attrs:{cols:"12",sm:"4",md:"4",lg:"4",xl:"3"}},[e(p["a"],{attrs:{"append-icon":"mdi-magnify",label:"Поиск","single-line":"","hide-details":"",clearable:"",disabled:t.loading},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1)],1),e(c["a"],{attrs:{headers:t.headers,items:t.data.items,loading:t.loading,search:t.search,dense:""},scopedSlots:t._u([t.data.items.length?{key:"header",fn:function(){return[e("thead",{staticClass:"grey lighten-5 text-center"},[e("tr",[e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:4}}),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:6}},[t._v("Чугун")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:5}},[t._v("Шлак конвертерный")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:1}}),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:5}},[t._v("Химический состав УКП - первая проба ")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:5}},[t._v("Химический состав УКП - последняя проба ")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:2}}),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:8}},[t._v("Конвертер")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:4}}),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:8}},[t._v("Первый шлак УКП")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:8}},[t._v("Последний шлак УКП")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:7}}),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:11}},[t._v("УКП, кг")])])])]},proxy:!0}:null],null,!0)})],1)},v=[],x=a("2f62");let b=new Date;var g={data:()=>({search:"",dates:[new Date(b.getFullYear(),b.getMonth(),b.getDate()-0).toISOString().substr(0,10),(new Date).toISOString().substr(0,10)],datePickerMenu:!1}),computed:{...Object(x["c"])("BOFReportSample_B1",{loading:"loading",data:"data"}),computedDateFormatted(){let t=[];return t.push(this.formatDate(this.dates[0])),t.push(this.formatDate(this.dates[1])),t.join(" ~ ")},headers(){var t=document.createElement("canvas"),e=t.getContext("2d");return e.font="12px Roboto, sans-serif",this.data.headers.forEach(t=>{var a=e.measureText(t.text),s=a.width;t.width=s+65,t.align="center",t.divider=!0,"heatNumber"===t.value&&(t.align=" d-none")}),this.data.headers}},methods:{...Object(x["d"])("BOFReportSample_B1",{getExcel:"getExcel"}),...Object(x["b"])("BOFReportSample_B1",{getData:"getData"}),input(t){2==t.length&&(this.datePickerMenu=!1)},formatDate(t){if(!t)return null;const[e,a,s]=t.split("-");return`${s}.${a}.${e}`},refreshData(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])},Excel(){this.getExcel([this.formatDate(this.dates[0]),this.formatDate(this.dates[1]),this.model])}},mounted(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},D=g,k=(a("ecab"),a("f94d"),a("2877")),C=Object(k["a"])(D,f,v,!1,null,null,null);e["default"]=C.exports},1879:function(t,e,a){},"2fa4":function(t,e,a){"use strict";a("20f6");var s=a("80d2");e["a"]=Object(s["j"])("spacer","div","v-spacer")},c423:function(t,e,a){},ecab:function(t,e,a){"use strict";a("c423")},f94d:function(t,e,a){"use strict";a("1879")}}]); \ No newline at end of file diff --git a/dist/js/chunk-461f6ae6.5efb84dc.js b/dist/js/chunk-461f6ae6.5efb84dc.js deleted file mode 100644 index b9a1978..0000000 --- a/dist/js/chunk-461f6ae6.5efb84dc.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-461f6ae6"],{"2fa4":function(e,t,a){"use strict";a("20f6");var s=a("80d2");t["a"]=Object(s["j"])("spacer","div","v-spacer")},5546:function(e,t,a){},b2d1:function(e,t,a){"use strict";a.r(t);var s=a("8336"),n=a("99d9"),l=a("62ad"),i=a("a523"),d=a("8fea"),c=a("2e4b"),r=a("ce7e"),o=a("132d"),u=a("e449"),m=a("0fd9"),h=a("2fa4"),f=a("8654"),g=(a("ac1f"),function(){var e=this,t=e._self._c;return t(i["a"],{attrs:{id:"KRO"}},[t(n["b"],{staticClass:"text-center headline black--text"},[e._v(" Отчет КРО за период "+e._s(e.computedDateFormatted)+" ")]),t(r["a"],{staticClass:"mx-0"}),t(m["a"],[t(l["a"],{staticStyle:{"min-width":"250px","max-width":"250px"},attrs:{cols:"12"}},[t(u["a"],{attrs:{"close-on-content-click":!1,"nudge-right":40,"nudge-top":-5,transition:"scale-transition","offset-y":"","min-width":"290px"},scopedSlots:e._u([{key:"activator",fn:function({on:a}){return[t(f["a"],e._g({staticClass:"datePicker",attrs:{id:"datePicker","prepend-icon":"event",readonly:"","single-line":"",disabled:e.loading},model:{value:e.computedDateFormatted,callback:function(t){e.computedDateFormatted=t},expression:"computedDateFormatted"}},a))]}}]),model:{value:e.datePickerMenu,callback:function(t){e.datePickerMenu=t},expression:"datePickerMenu"}},[t(c["a"],{attrs:{"no-title":"",scrollable:"","popover-align":"center",range:""},on:{input:function(t){e.input(t)&&e.datePickerMenu},change:function(t){return e.refreshData()}},model:{value:e.dates,callback:function(t){e.dates=t},expression:"dates"}})],1)],1),t(r["a"],{staticClass:"d-none d-md-flex mx-2 my-7",attrs:{inset:"",vertical:""}}),t(l["a"],{staticClass:"text-center my-4",attrs:{cols:"1",sm:"1"}},[t(s["a"],{attrs:{disabled:e.loading,tile:"",outlined:"",color:"success"},on:{click:function(t){e.loader=e.Excel()}}},[t(o["a"],{attrs:{left:"",size:"35"}},[e._v("mdi-file-excel")]),e._v("Excel ")],1)],1),t(h["a"]),t(l["a"],{attrs:{cols:"12",sm:"4",md:"4",lg:"4",xl:"3"}},[t(f["a"],{attrs:{"append-icon":"mdi-magnify",label:"Поиск","single-line":"","hide-details":"",clearable:"",disabled:e.loading},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1)],1),t(d["a"],{attrs:{headers:e.headers,items:e.data.items,loading:e.loading,search:e.search,"item-key":"№ плавки",dense:""},on:{"click:row":e.rowClick},scopedSlots:e._u([e.data.items.length?{key:"header",fn:function(){return[t("thead",{staticClass:"grey lighten-5 text-center"},[t("tr",[t("th",{staticClass:"text-center divider d-sm-table-cell",attrs:{id:"header",colspan:1}}),t("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:e.getIndexByName("Вес слябов")}}),t("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:e.getIndexByName("C")-e.getIndexByName("Вес слябов")-2}},[e._v("Материалы конвертер")]),t("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:e.getIndexByName("Бригада шихтовала")-e.getIndexByName("C")-1}},[e._v("Итоговая химия конвертер")]),t("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:e.getIndexByName("номер обработки")-e.getIndexByName("Бригада шихтовала")-1}},[e._v("Персонал")]),t("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:e.getIndexByName("температура с мнлз")-e.getIndexByName("номер обработки")+1}},[e._v("УКДС")]),t("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:e.getIndexByName("Al ")-e.getIndexByName("температура с мнлз")-2}},[e._v("Материалы УКДС")]),t("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:e.getIndexByName("Мастер УКП")-e.getIndexByName("Al ")}},[e._v("Итоговая химия УКДС")]),t("th",{staticClass:"text-center d-none d-sm-table-cell",attrs:{colspan:4}},[e._v("Персонал")])])])]},proxy:!0}:null],null,!0)})],1)}),x=[],p=a("2f62"),v=a("f2ef");let b=new Date;var D={data:()=>({search:"",dates:[new Date(b.getFullYear(),b.getMonth(),b.getDate()-0).toISOString().substr(0,10),(new Date).toISOString().substr(0,10)],datePickerMenu:!1}),computed:{...Object(p["c"])("Pasport_KRO",{loading:"loading",data:"data"}),computedDateFormatted(){let e=[];return e.push(this.formatDate(this.dates[0])),e.push(this.formatDate(this.dates[1])),e.join(" ~ ")},headers(){var e=document.createElement("canvas"),t=e.getContext("2d");return t.font="12px Roboto, sans-serif",this.data.headers.forEach(e=>{e.divider=!0,e.align="center","ID"!==e.value&&"BOFHR_ID"!==e.value&&"NEWNUMBER1"!==e.value&&"HEATNO"!==e.value&&"Heat"!==e.value||(e.align=" d-none")}),this.data.headers}},methods:{...Object(p["d"])("Pasport_KRO",{getExcel:"getExcel"}),...Object(p["b"])("Pasport_KRO",{getData:"getData"}),Excel(){this.getExcel([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])},rowClick:function(e,t){let a=!t.isSelected;t.select(a)},getIndexByName(e){return v["a"].findIndex(this.headers,{value:e})},input(e){2==e.length&&(this.datePickerMenu=!1)},formatDate(e){if(!e)return null;const[t,a,s]=e.split("-");return`${s}.${a}.${t}`},refreshData(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},mounted(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},y=D,k=(a("f8a7"),a("2877")),C=Object(k["a"])(y,g,x,!1,null,null,null);t["default"]=C.exports},f8a7:function(e,t,a){"use strict";a("5546")}}]); \ No newline at end of file diff --git a/dist/js/chunk-56216674.5f78e65f.js b/dist/js/chunk-56216674.5f78e65f.js deleted file mode 100644 index 3ccc57d..0000000 --- a/dist/js/chunk-56216674.5f78e65f.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-56216674"],{"2fa4":function(t,e,a){"use strict";a("20f6");var s=a("80d2");e["a"]=Object(s["j"])("spacer","div","v-spacer")},"42b0":function(t,e,a){},5632:function(t,e,a){},a2a2:function(t,e,a){"use strict";a.r(e);var s=a("8336"),i=a("b0af"),l=a("99d9"),r=a("62ad"),n=a("a523"),c=a("8fea"),d=a("2e4b"),o=a("ce7e"),h=a("132d"),u=a("e449"),p=a("0fd9"),f=a("b974"),m=a("2fa4"),x=a("8654"),v=(a("ac1f"),function(){var t=this,e=t._self._c;return e(n["a"],{attrs:{fluid:"",id:"BOFReportAvgData_Marka"}},[t._l(t.allChartData,(function(a,s){return e("div",{key:s,staticClass:"chart"},[e("Bar",{ref:"allBar",refInFor:!0,staticClass:"d-none",attrs:{data:a,options:t.allChartOptions[s]}})],1)})),e(l["b"],{staticClass:"text-center headline black--text"},[t._v("Показатели по работе КО (побригадно) за период "+t._s(t.computedDateFormatted))]),e(o["a"],{staticClass:"mx-0 elevation-4"}),e(p["a"],[e(r["a"],{staticStyle:{"min-width":"250px","max-width":"250px"},attrs:{cols:"12"}},[e(u["a"],{attrs:{"close-on-content-click":!1,"nudge-right":40,"nudge-top":-5,transition:"scale-transition","offset-y":"","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function({on:a}){return[e(x["a"],t._g({staticClass:"datePicker",attrs:{id:"datePicker","prepend-icon":"event",readonly:"","single-line":"",disabled:t.loading},model:{value:t.computedDateFormatted,callback:function(e){t.computedDateFormatted=e},expression:"computedDateFormatted"}},a))]}}]),model:{value:t.datePickerMenu,callback:function(e){t.datePickerMenu=e},expression:"datePickerMenu"}},[e(d["a"],{attrs:{"no-title":"",scrollable:"","popover-align":"center",range:""},on:{input:function(e){t.input(e)&&t.datePickerMenu},change:function(e){return t.refreshData()}},model:{value:t.dates,callback:function(e){t.dates=e},expression:"dates"}})],1)],1),e(o["a"],{staticClass:"d-none d-md-flex mx-2 my-7",attrs:{inset:"",vertical:""}}),e(r["a"],{staticStyle:{"min-width":"180px","max-width":"180px"},attrs:{cols:"12"}},[e(f["a"],{attrs:{items:t.listBof,"persistent-hint":"",density:"compact",disabled:t.loading,active:""},on:{change:function(e){return t.refreshData()}},scopedSlots:t._u([{key:"selection",fn:function({index:a}){return[0===a?e("span",[t._v(t._s("№ конвертера: "+t.BofSelect))]):t._e()]}}]),model:{value:t.BofSelect,callback:function(e){t.BofSelect=e},expression:"BofSelect"}})],1),e(o["a"],{staticClass:"d-none d-md-flex mx-2 my-7",attrs:{inset:"",vertical:""}}),e(r["a"],{staticStyle:{"min-width":"210px","max-width":"210px"},attrs:{cols:"12"}},[e(f["a"],{attrs:{items:t.data.crewList,multiple:"",label:t.data.label,"persistent-hint":"",density:"compact",disabled:t.loading,active:""},on:{change:function(e){return t.dataFilter(e)}},scopedSlots:t._u([{key:"selection",fn:function({index:a}){return[0===a?e("span",[t._v(t._s("Выбрано бригад: ("+t.CrewSelect.length+")"))]):t._e()]}}]),model:{value:t.CrewSelect,callback:function(e){t.CrewSelect=e},expression:"CrewSelect"}})],1),e(o["a"],{staticClass:"d-none d-md-flex mx-2 my-7",attrs:{inset:"",vertical:""}}),e(r["a"],{staticStyle:{"min-width":"300px","max-width":"300px"},attrs:{cols:"12"}},[e(f["a"],{attrs:{items:t.data.itemsSetpoints,"item-value":"desc","item-text":"desc","persistent-hint":"","hide-details":"",active:"",disabled:t.loading},on:{change:function(e){return t.chartSetpoints(e)}},scopedSlots:t._u([{key:"selection",fn:function(e){return[t._v(t._s(`${e.item.desc}- (${e.item.value})`))]}},{key:"item",fn:function(a){return[a.item.isHeader?e("div",{staticClass:"overline"},[t._v(" "+t._s(a.item.desc)+" ")]):e("div",[t._v(" "+t._s(`${a.item.desc} - (${a.item.value})`)+" ")])]}}]),model:{value:t.defaultSetpoints,callback:function(e){t.defaultSetpoints=e},expression:"defaultSetpoints"}})],1),e(o["a"],{staticClass:"d-none d-md-flex mx-2 my-7",attrs:{inset:"",vertical:""}}),e(r["a"],{staticClass:"text-center my-4",attrs:{cols:"1",sm:"1"}},[e(s["a"],{attrs:{tile:"",outlined:"",color:"success",disabled:t.loading},on:{click:function(e){t.loader=t.Excel()}}},[e(h["a"],{attrs:{left:"",size:"35"}},[t._v("mdi-file-excel")]),t._v("Excel ")],1)],1)],1),e(o["a"],{staticClass:"elevation-0 py-4"}),t.data.items.length?e(p["a"],[e(r["a"],[e(i["a"],{attrs:{width:360,height:300,outlined:"",tile:""}},[[e("div",[t.chartData.datasets.length?e("Bar",{ref:"bar",attrs:{data:t.chartData,options:t.chartOptions,width:350,height:300}}):t._e()],1)]],2)],1)],1):t._e(),e(m["a"]),e(c["a"],{attrs:{headers:t.headers,items:t.data.items,loading:t.loading,search:t.search,dense:"","disable-pagination":"","hide-default-footer":"","group-by":"Бригада","group-expand":"true"},scopedSlots:t._u([t.data.items.length?{key:"header",fn:function(){return[e("thead",{staticClass:"grey lighten-5 text-center"},[e("tr",[e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:8}}),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:5}},[t._v("Чугун")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:8}},[t._v("Материалы")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:5}},[t._v("Повалка")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:4}},[t._v("Шлак")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:3}},[t._v("Додувки")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:1}}),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:23}},[t._v("ОРСС")])])])]},proxy:!0}:null,{key:"group.header",fn:function({group:a,headers:i,toggle:l,remove:r,items:n,isOpen:c}){return[e("th",{staticClass:"text-center divider d-sm-table-cell",attrs:{colspan:2}},[e("td",{attrs:{colspan:i.length}},[e(s["a"],{ref:a,attrs:{small:"",icon:"","data-open":c},on:{click:l}},[e(h["a"],c?[t._v("mdi-minus")]:[t._v("mdi-plus")])],1),e("span",{staticClass:"mx-5 font-weight-bold"},[t._v(t._s("Бригада:"+a))])],1)]),1===a?[t._l(i,(function(a,s,i){return["Кол. плавок, шт"===a.text||"C, шт"===a.text||"P, шт"===a.text||"Cr, шт"===a.text?e("th",{key:i,staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.sumDataBrigada1[a.text]))]):"Дата"!=a.text&&"Марка"!=a.text?e("th",{key:i,staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgDataBrigada1[a.text]))]):t._e()]}))]:t._e(),2===a?[t._l(i,(function(a,s,i){return["Кол. плавок, шт"===a.text||"C, шт"===a.text||"P, шт"===a.text||"Cr, шт"===a.text?e("th",{key:i,staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.sumDataBrigada2[a.text]))]):"Дата"!=a.text&&"Марка"!=a.text?e("th",{key:i,staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgDataBrigada2[a.text]))]):t._e()]}))]:t._e(),3===a?[t._l(i,(function(a,s,i){return["Кол. плавок, шт"===a.text||"C, шт"===a.text||"P, шт"===a.text||"Cr, шт"===a.text?e("th",{key:i,staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.sumDataBrigada3[a.text]))]):"Дата"!=a.text&&"Марка"!=a.text?e("th",{key:i,staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgDataBrigada3[a.text]))]):t._e()]}))]:t._e(),4===a?[t._l(i,(function(a,s,i){return["Кол. плавок, шт"===a.text||"C, шт"===a.text||"P, шт"===a.text||"Cr, шт"===a.text?e("th",{key:i,staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.sumDataBrigada4[a.text]))]):"Дата"!=a.text&&"Марка"!=a.text?e("th",{key:i,staticClass:"text-center divider d-sm-table-cell"},[t._v(t._s(t.data.avgDataBrigada4[a.text]))]):t._e()]}))]:t._e()]}}],null,!0)})],2)}),g=[],b=a("f2ef"),_=a("2f62"),C=a("dd61"),D=a("368d"),k=a("d9fa");let y=new Date;C["f"].register(C["e"],C["j"],C["c"],C["q"],C["r"],C["h"],k["a"]);var S={components:{Bar:D["a"]},data:()=>({allChartData:[],chartData:{labels:[],datasets:[]},allChartOptions:[],chartOptions:{scale:{y:{type:"linear",grace:"1%"}},responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},title:{display:!0,text:""},datalabels:{labels:{name:{anchor:"end",align:"top",color:"black",display:!1,font:{size:12},formatter:function(t,e){return e.dataset.label}},value:{color:"black",display:"auto",padding:2}}}}},refsArr:[],search:"",listBof:[1,2],BofSelect:1,listCrew:[1,2,3,4],CrewSelect:[],defaultSetpoints:"Цикл плавки, мин\r\n",dates:[new Date(y.getFullYear(),y.getMonth(),y.getDate()-0).toISOString().substr(0,10),(new Date).toISOString().substr(0,10)],datePickerMenu:!1}),computed:{...Object(_["c"])("BOFReportAvgData_Marka",{loading:"loading",data:"data"}),computedDateFormatted(){let t=[];return t.push(this.formatDate(this.dates[0])),t.push(this.formatDate(this.dates[1])),t.join(" ~ ")},groupHeders(t){return b["a"].map(t,(function(t){return b["a"].omit(t,"Марка","Дата")}))},headers(){var t=document.createElement("canvas"),e=t.getContext("2d");return e.font="12px Roboto, sans-serif",this.data.headers.forEach(t=>{var a=e.measureText(t.text),s=a.width;t.width=s+65,t.align="center",t.divider=!0}),this.data.headers},headersSetpoints(){var t=document.createElement("canvas"),e=t.getContext("2d");return e.font="12px Roboto, sans-serif",this.data.headersSetpoints.forEach(t=>{var a=e.measureText(t.text),s=a.width;t.width=s+65,t.align="center",t.divider=!0}),this.data.headersSetpoints}},methods:{...Object(_["b"])("BOFReportAvgData_Marka",{getData:"getData",refreshChart:"refreshChart",buildAllChart:"buildAllChart"}),...Object(_["d"])("BOFReportAvgData_Marka",{dataFilter:"dataFilter",getExcel:"getExcel",chartSetpoints:"chartSetpoints"}),chartSetpoints(t){this.defaultSetpoints=t,this.chartOptions.plugins.title.text=t,this.chartData.datasets=[],this.refreshChart(t).then(()=>{this.chartData.datasets=this.data.chart.dataset,this.chartData.labels=this.data.chart.label,this.chartOptions.plugins.title.text=this.defaultSetpoints+"/ План: "+this.data.chart.currentPoints})},xlsCharts(){return new Promise(t=>{this.allChartData=[],this.allChartOptions=[],this.buildAllChart(this.data.itemsSetpoints).then(()=>{this.data.allChart.dataset.forEach(t=>{this.allChartOptions.push({responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},title:{display:!0,text:t[0].label+"/ План: "+t[0].setpoints[0].value},datalabels:{labels:{name:{anchor:"end",align:"top",color:"black",display:!1,font:{size:12},formatter:function(t,e){return e.dataset.label}},value:{color:"black",display:"auto",padding:2}}}}}),this.allChartData.push({datasets:t,labels:this.data.chart.label})})}),t()})},Excel(){let t=[];this.$refs.allBar.forEach(e=>{t.push(e.$el.toDataURL("image/png"))}),this.getExcel([this.formatDate(this.dates[0]),this.formatDate(this.dates[1]),this.BofSelect,t])},input(t){2==t.length&&(this.datePickerMenu=!1)},formatDate(t){if(!t)return null;const[e,a,s]=t.split("-");return`${s}.${a}.${e}`},refreshData(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1]),this.BofSelect]).then(()=>{this.CrewSelect=this.data.crewList,this.chartData.datasets=[],this.chartData.labels=[],this.refreshChart(this.defaultSetpoints).then(()=>{this.chartData.labels=this.data.chart.label,this.chartData.datasets=this.data.chart.dataset,this.chartOptions.plugins.title.text=this.defaultSetpoints+"/ План: "+this.data.chart.currentPoints,this.xlsCharts()});try{this.closeAll()}catch(t){console.log(t)}})},closeAll(){Object.keys(this.$refs).forEach(t=>{this.$refs[t]&&this.$refs[t].$attrs["data-open"]&&this.$refs[t].$el.click()})}},mounted(){this.refreshData()}},w=S,B=(a("c938"),a("a69c"),a("2877")),O=Object(B["a"])(w,v,g,!1,null,null,null);e["default"]=O.exports},a69c:function(t,e,a){"use strict";a("5632")},c938:function(t,e,a){"use strict";a("42b0")}}]); \ No newline at end of file diff --git a/dist/js/chunk-5cee169e.c118c4b3.js b/dist/js/chunk-5cee169e.c118c4b3.js deleted file mode 100644 index 9dfe876..0000000 --- a/dist/js/chunk-5cee169e.c118c4b3.js +++ /dev/null @@ -1,22 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5cee169e"],{"368d":function(t,e,i){"use strict";i.d(e,"a",(function(){return m}));i("caad");var n=i("dd61"),s=i("2b0e");const o={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},r={ariaLabel:{type:String},ariaDescribedby:{type:String}},a={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...o,...r},h="2"===s["k"][0]?(t,e)=>Object.assign(t,{attrs:e}):(t,e)=>Object.assign(t,e);function l(t){return Object(s["d"])(t)?Object(s["j"])(t):t}function c(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return Object(s["d"])(e)?new Proxy(t,{}):t}function d(t,e){const i=t.options;i&&e&&Object.assign(i,e)}function u(t,e){t.labels=e}function f(t,e,i){const n=[];t.datasets=e.map(e=>{const s=t.datasets.find(t=>t[i]===e[i]);return s&&e.data&&!n.includes(s)?(n.push(s),Object.assign(s,e),s):{...e}})}function b(t,e){const i={labels:[],datasets:[]};return u(i,t.labels),f(i,t.datasets,e),i}const g=Object(s["b"])({props:a,setup(t,e){let{expose:i,slots:o}=e;const r=Object(s["h"])(null),a=Object(s["i"])(null);i({chart:a});const h=()=>{if(!r.value)return;const{type:e,data:i,options:s,plugins:o,datasetIdKey:h}=t,l=b(i,h),d=c(l,i);a.value=new n["f"](r.value,{type:e,data:d,options:{...s},plugins:o})},g=()=>{const e=Object(s["j"])(a.value);e&&(t.destroyDelay>0?setTimeout(()=>{e.destroy(),a.value=null},t.destroyDelay):(e.destroy(),a.value=null))},p=e=>{e.update(t.updateMode)};return Object(s["f"])(h),Object(s["g"])(g),Object(s["l"])([()=>t.options,()=>t.data],(e,i)=>{let[n,o]=e,[r,h]=i;const c=Object(s["j"])(a.value);if(!c)return;let b=!1;if(n){const t=l(n),e=l(r);t&&t!==e&&(d(c,t),b=!0)}if(o){const e=l(o.labels),i=l(h.labels),n=l(o.datasets),s=l(h.datasets);e!==i&&(u(c.config.data,e),b=!0),n&&n!==s&&(f(c.config.data,n,t.datasetIdKey),b=!0)}b&&Object(s["e"])(()=>{p(c)})},{deep:!0}),()=>Object(s["c"])("canvas",{role:"img",ariaLabel:t.ariaLabel,ariaDescribedby:t.ariaDescribedby,ref:r},[Object(s["c"])("p",{},[o.default?o.default():""])])}});function p(t,e){return n["f"].register(e),Object(s["b"])({props:o,setup(e,i){let{expose:n}=i;const o=Object(s["i"])(null),r=t=>{o.value=null===t||void 0===t?void 0:t.chart};return n({chart:o}),()=>Object(s["c"])(g,h({ref:r},{type:t,...e}))}})}const m=p("bar",n["b"]);n["g"],n["i"],n["k"],n["m"],n["n"],n["d"],n["o"]},d9fa:function(t,e,i){"use strict";i.d(e,"a",(function(){return X}));i("13d5"),i("ac1f");var n=i("e369"),s=i("dd61"),o=function(){if("undefined"!==typeof window){if(window.devicePixelRatio)return window.devicePixelRatio;var t=window.screen;if(t)return(t.deviceXDPI||1)/(t.logicalXDPI||1)}return 1}(),r={toTextLines:function(t){var e,i=[];t=[].concat(t);while(t.length)e=t.pop(),"string"===typeof e?i.unshift.apply(i,e.split("\n")):Array.isArray(e)?t.push.apply(t,e):Object(n["Lb"])(t)||i.unshift(""+e);return i},textSize:function(t,e,i){var n,s=[].concat(e),o=s.length,r=t.font,a=0;for(t.font=i.string,n=0;ni.right&&(n|=d),ei.bottom&&(n|=u),n}function g(t,e){var i,n,s,o=t.x0,r=t.y0,a=t.x1,h=t.y1,l=b(o,r,e),g=b(a,h,e);while(1){if(!(l|g)||l&g)break;i=l||g,i&f?(n=o+(a-o)*(e.top-r)/(h-r),s=e.top):i&u?(n=o+(a-o)*(e.bottom-r)/(h-r),s=e.bottom):i&d?(s=r+(h-r)*(e.right-o)/(a-o),n=e.right):i&c&&(s=r+(h-r)*(e.left-o)/(a-o),n=e.left),i===l?(o=n,r=s,l=b(o,r,e)):(a=n,h=s,g=b(a,h,e))}return{x0:o,x1:a,y0:r,y1:h}}function p(t,e){var i,n,s=e.anchor,o=t;return e.clamp&&(o=g(o,e.area)),"start"===s?(i=o.x0,n=o.y0):"end"===s?(i=o.x1,n=o.y1):(i=(o.x0+o.x1)/2,n=(o.y0+o.y1)/2),h(i,n,t.vx,t.vy,e.align)}var m={arc:function(t,e){var i=(t.startAngle+t.endAngle)/2,n=Math.cos(i),s=Math.sin(i),o=t.innerRadius,r=t.outerRadius;return p({x0:t.x+n*o,y0:t.y+s*o,x1:t.x+n*r,y1:t.y+s*r,vx:n,vy:s},e)},point:function(t,e){var i=a(t,e.origin),n=i.x*t.options.radius,s=i.y*t.options.radius;return p({x0:t.x-n,y0:t.y-s,x1:t.x+n,y1:t.y+s,vx:i.x,vy:i.y},e)},bar:function(t,e){var i=a(t,e.origin),n=t.x,s=t.y,o=0,r=0;return t.horizontal?(n=Math.min(t.x,t.base),o=Math.abs(t.base-t.x)):(s=Math.min(t.y,t.base),r=Math.abs(t.base-t.y)),p({x0:n,y0:s+r,x1:n+o,y1:s,vx:i.x,vy:i.y},e)},fallback:function(t,e){var i=a(t,e.origin);return p({x0:t.x,y0:t.y,x1:t.x+(t.width||0),y1:t.y+(t.height||0),vx:i.x,vy:i.y},e)}},x=r.rasterize;function _(t){var e=t.borderWidth||0,i=t.padding,n=t.size.height,s=t.size.width,o=-s/2,r=-n/2;return{frame:{x:o-i.left-e,y:r-i.top-e,w:s+i.width+2*e,h:n+i.height+2*e},text:{x:o,y:r,w:s,h:n}}}function y(t,e){var i=e.chart.getDatasetMeta(e.datasetIndex).vScale;if(!i)return null;if(void 0!==i.xCenter&&void 0!==i.yCenter)return{x:i.xCenter,y:i.yCenter};var n=i.getBasePixel();return t.horizontal?{x:n,y:null}:{x:null,y:n}}function v(t){return t instanceof s["a"]?m.arc:t instanceof s["l"]?m.point:t instanceof s["c"]?m.bar:m.fallback}function O(t,e,i,n,s,o){var r=Math.PI/2;if(o){var a=Math.min(o,s/2,n/2),h=e+a,l=i+a,c=e+n-a,d=i+s-a;t.moveTo(e,l),h=0;--i)for(s=t[i].$layout,n=i-1;n>=0&&s._visible;--n)o=t[n].$layout,o._visible&&s._box.intersects(o._box)&&e(s,o);return t}function I(t){var e,i,n,s,o,r,a;for(e=0,i=t.length;et.getProps([e],!0)[e]}),o=n.geometry(),r=T(a,n.model(),o),s._box.update(r,o,n.rotation()));return R(t,(function(t,e){var i=t._hidable,n=e._hidable;i&&n||n?e._visible=!1:i&&(t._visible=!1)}))}Object(n["w"])(E.prototype,{center:function(){var t=this._rect;return{x:t.x+t.w/2,y:t.y+t.h/2}},update:function(t,e,i){this._rotation=i,this._rect={x:e.x+t.x,y:e.y+t.y,w:e.w,h:e.h}},contains:function(t){var e=this,i=1,n=e._rect;return t=D(t,e.center(),-e._rotation),!(t.xn.x+n.w+2*i||t.y>n.y+n.h+2*i)},intersects:function(t){var e,i,n,s=this._points(),o=t._points(),r=[L(s[0],s[1]),L(s[0],s[3])];for(this._rotation!==t._rotation&&r.push(L(o[0],o[1]),L(o[0],o[3])),e=0;e=0;--i)if(n=t[i].$layout,n&&n._visible&&n._box.contains(e))return t[i];return null},draw:function(t,e){var i,n,s,o,r,a;for(i=0,n=e.length;in({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=n["Sb"].call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((i,n)=>{if(!i.running||!i.items.length)return;const s=i.items;let o,r=s.length-1,a=!1;for(;r>=0;--r)o=s[r],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),a=!0):(s[r]=s[s.length-1],s.pop());a&&(n.draw(),this._notify(n,i,t,"progress")),s.length||(i.running=!1,this._notify(n,i,t,"complete"),i.initial=!1),e+=s.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let n=i.length-1;for(;n>=0;--n)i[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var o=new s;const r="transparent",a={boolean(t,e,i){return i>.5?e:t},color(t,e,i){const s=Object(n["Db"])(t||r),o=s.valid&&Object(n["Db"])(e||r);return o&&o.valid?o.mix(s,i).hexString():e},number(t,e,i){return t+(e-t)*i}};class h{constructor(t,e,i,s){const o=e[i];s=Object(n["C"])([t.to,s,o,t.from]);const r=Object(n["C"])([t.from,o,s]);this._active=!0,this._fn=t.fn||a[t.type||typeof r],this._easing=n["Fb"][t.easing]||n["Fb"].linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=r,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const s=this._target[this._prop],o=i-this._start,r=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Object(n["C"])([t.to,e,s,t.from]),this._from=Object(n["C"])([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,n=this._prop,s=this._from,o=this._loop,r=this._to;let a;if(this._active=s!==r&&(o||e1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[n]=this._fn(s,r,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let n=0;n"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),n["Eb"].set("animations",{colors:{type:"color",properties:c},numbers:{type:"number",properties:l}}),n["Eb"].describe("animations",{_fallback:"animation"}),n["Eb"].set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class u{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Object(n["Jb"])(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const s=t[i];if(!Object(n["Jb"])(s))return;const o={};for(const t of d)o[t]=s[t];(Object(n["Cb"])(s.properties)&&s.properties||[i]).forEach(t=>{t!==i&&e.has(t)||e.set(t,o)})})}_animateOptions(t,e){const i=e.options,n=b(t,i);if(!n)return[];const s=this._createAnimations(n,i);return i.$shared&&f(t.options.$animations,i).then(()=>{t.options=i},()=>{}),s}_createAnimations(t,e){const i=this._properties,n=[],s=t.$animations||(t.$animations={}),o=Object.keys(e),r=Date.now();let a;for(a=o.length-1;a>=0;--a){const l=o[a];if("$"===l.charAt(0))continue;if("options"===l){n.push(...this._animateOptions(t,e));continue}const c=e[l];let d=s[l];const u=i.get(l);if(d){if(u&&d.active()){d.update(u,c,r);continue}d.cancel()}u&&u.duration?(s[l]=d=new h(u,t,l,c),n.push(d)):t[l]=c}return n}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(o.add(this._chart,i),!0):void 0}}function f(t,e){const i=[],n=Object.keys(e);for(let s=0;s0||!i&&e<0)return s.index}return null}function k(t,e){const{chart:i,_cachedMeta:n}=t,s=i._stacks||(i._stacks={}),{iScale:o,vScale:r,index:a}=n,h=o.axis,l=r.axis,c=O(o,r,n),d=e.length;let u;for(let f=0;fi[t].axis===e).shift()}function P(t,e){return Object(n["Ib"])(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function C(t,e,i){return Object(n["Ib"])(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}function D(t,e){const i=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[n]||void 0===e[n][i])return;delete e[n][i]}}}const A=t=>"reset"===t||"none"===t,L=(t,e)=>e?t:Object.assign({},t),E=(t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:x(i,!0),values:null};class T{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=v(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&D(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),s=(t,e,i,n)=>"x"===t?e:"r"===t?n:i,o=e.xAxisID=Object(n["Wb"])(i.xAxisID,S(t,"x")),r=e.yAxisID=Object(n["Wb"])(i.yAxisID,S(t,"y")),a=e.rAxisID=Object(n["Wb"])(i.rAxisID,S(t,"r")),h=e.indexAxis,l=e.iAxisID=s(h,o,r,a),c=e.vAxisID=s(h,r,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Object(n["Vb"])(this._data,this),t._stacked&&D(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(Object(n["Jb"])(e))this._data=y(e);else if(i!==e){if(i){Object(n["Vb"])(i,this);const t=this._cachedMeta;D(t),t._parsed=[]}e&&Object.isExtensible(e)&&Object(n["Mb"])(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let n=!1;this._dataCheck();const s=e._stacked;e._stacked=v(e.vScale,e),e.stack!==i.stack&&(n=!0,D(e),e.stack=i.stack),this._resyncElements(t),(n||s!==e._stacked)&&k(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:s}=this,{iScale:o,_stacked:r}=i,a=o.axis;let h,l,c,d=0===t&&e===s.length||i._sorted,u=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=s,i._sorted=!0,c=s;else{c=Object(n["Cb"])(s[t])?this.parseArrayData(i,s,t,e):Object(n["Jb"])(s[t])?this.parseObjectData(i,s,t,e):this.parsePrimitiveData(i,s,t,e);const o=()=>null===l[a]||u&&l[a]e||d=0;--u)if(!b()){this.updateRangeFromParsed(l,t,f,h);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let s,o,r;for(s=0,o=e.length;s=0&&tthis.getContext(i,s),g=l.resolveNamedOptions(u,f,b,d);return g.$shared&&(g.$shared=h,o[r]=Object.freeze(L(g,h))),g}_resolveAnimations(t,e,i){const n=this.chart,s=this._cachedDataOpts,o="animation-"+e,r=s[o];if(r)return r;let a;if(!1!==n.options.animation){const n=this.chart.config,s=n.datasetAnimationScopeKeys(this._type,e),o=n.getOptionScopes(this.getDataset(),s);a=n.createResolver(o,this.getContext(t,i,e))}const h=new u(n,a&&a.animations);return a&&a._cacheable&&(s[o]=Object.freeze(h)),h}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||A(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),n=this._sharedOptions,s=this.getSharedOptions(i),o=this.includeOptions(e,s)||s!==n;return this.updateSharedOptions(s,e,i),{sharedOptions:s,includeOptions:o}}updateElement(t,e,i,n){A(n)?Object.assign(t,i):this._resolveAnimations(e,n).update(t,i)}updateSharedOptions(t,e,i){t&&!A(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,n){t.active=n;const s=this.getStyle(e,n);this._resolveAnimations(e,i,n).update(t,{options:!n&&this.getSharedOptions(s)||s})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[r,a,h]of this._syncList)this[r](a,h);this._syncList=[];const n=i.length,s=e.length,o=Math.min(s,n);o&&this.parse(0,o),s>n?this._insertElements(n,s-n,t):s{for(t.length+=e,r=t.length-1;r>=o;r--)t[r]=t[r-e]};for(a(s),r=t;rt-e))}return t._cache.$bar}function I(t){const e=t.iScale,i=R(e,t.type);let s,o,r,a,h=e._length;const l=()=>{32767!==r&&-32768!==r&&(Object(n["Kb"])(a)&&(h=Math.min(h,Math.abs(r-a)||h)),a=r)};for(s=0,o=i.length;s0?s[t-1]:null,a=tMath.abs(a)&&(h=a,l=r),e[i.axis]=l,e._custom={barStart:h,barEnd:l,start:s,end:o,min:r,max:a}}function B(t,e,i,s){return Object(n["Cb"])(t)?W(t,e,i,s):e[i.axis]=i.parse(t,s),e}function V(t,e,i,n){const s=t.iScale,o=t.vScale,r=s.getLabels(),a=s===o,h=[];let l,c,d,u;for(l=i,c=i+n;l=i?1:-1)}function $(t){let e,i,n,s,o;return t.horizontal?(e=t.base>t.x,i="left",n="right"):(e=t.baset.controller.options.grouped),o=i.options.stacked,r=[],a=t=>{const i=t.controller.getParsed(e),s=i&&i[t.vScale.axis];if(Object(n["Lb"])(s)||isNaN(s))return!0};for(const n of s)if((void 0===e||!a(n))&&((!1===o||-1===r.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&r.push(n.stack),n.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const n=this._getStacks(t,i),s=void 0!==e?n.indexOf(e):-1;return-1===s?n.length-1:s}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,n=[];let s,o;for(s=0,o=e.data.length;s=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:n}=e,s=this.getParsed(t),o=i.getLabelForValue(s.x),r=n.getLabelForValue(s.y),a=s._custom;return{label:e.label,value:"("+o+", "+r+(a?", "+a:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,n){const s="reset"===n,{iScale:o,vScale:r}=this._cachedMeta,{sharedOptions:a,includeOptions:h}=this._getSharedOptions(e,n),l=o.axis,c=r.axis;for(let d=e;dObject(n["Qb"])(t,h,l,!0)?1:Math.max(e,e*i,s,s*i),g=(t,e,s)=>Object(n["Qb"])(t,h,l,!0)?-1:Math.min(e,e*i,s,s*i),p=b(0,c,u),m=b(n["i"],d,f),x=g(n["q"],c,u),_=g(n["q"]+n["i"],d,f);s=(p-x)/2,o=(m-_)/2,r=-(p+x)/2,a=-(m+_)/2}return{ratioX:s,ratioY:o,offsetX:r,offsetY:a}}G.id="bubble",G.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},G.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title(){return""}}}}};class Q extends T{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=i;else{let o,r,a=t=>+i[t];if(Object(n["Jb"])(i[t])){const{key:t="value"}=this._parsing;a=e=>+Object(n["Gb"])(i[e],t)}for(o=t,r=t+e;o0&&!isNaN(t)?n["u"]*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],o=Object(n["Pb"])(e._parsed[t],i.options.locale);return{label:s[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const i=this.chart;let n,s,o,r,a;if(!t)for(n=0,s=i.data.datasets.length;n"spacing"!==t,_indexable:t=>"spacing"!==t},Q.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map((e,n)=>{const s=t.getDatasetMeta(0),o=s.controller.getStyle(n);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title(){return""},label(t){let e=t.label;const i=": "+t.formattedValue;return Object(n["Cb"])(e)?(e=e.slice(),e[0]+=i):e+=i,e}}}}};class tt extends T{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:s=[],_dataset:o}=e,r=this.chart._animationsDisabled;let{start:a,count:h}=Object(n["Rb"])(e,s,r);this._drawStart=a,this._drawCount=h,Object(n["Xb"])(e)&&(a=0,h=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=s;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!r,options:l},t),this.updateElements(s,a,h,t)}updateElements(t,e,i,s){const o="reset"===s,{iScale:r,vScale:a,_stacked:h,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(e,s),u=r.axis,f=a.axis,{spanGaps:b,segment:g}=this.options,p=Object(n["Yb"])(b)?b:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||o||"none"===s;let x=e>0&&this.getParsed(e-1);for(let _=e;_0&&Math.abs(i[u]-x[u])>p,g&&(b.parsed=i,b.raw=l.data[_]),d&&(b.options=c||this.resolveDataElementOptions(_,e.active?"active":s)),m||this.updateElement(e,_,b,s),x=i}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,n=t.data||[];if(!n.length)return i;const s=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,s,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}tt.id="line",tt.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},tt.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class et extends T{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],o=Object(n["Pb"])(e._parsed[t].r,i.options.locale);return{label:s[t]||"",value:o}}parseObjectData(t,e,i,s){return n["Zb"].bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((t,i)=>{const n=this.getParsed(i).r;!isNaN(n)&&this.chart.getDataVisibility(i)&&(ne.max&&(e.max=n))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,n=Math.min(e.right-e.left,e.bottom-e.top),s=Math.max(n/2,0),o=Math.max(i.cutoutPercentage?s/100*i.cutoutPercentage:1,0),r=(s-o)/t.getVisibleDatasetCount();this.outerRadius=s-r*this.index,this.innerRadius=this.outerRadius-r}updateElements(t,e,i,s){const o="reset"===s,r=this.chart,a=r.options,h=a.animation,l=this._cachedMeta.rScale,c=l.xCenter,d=l.yCenter,u=l.getIndexAngle(0)-.5*n["q"];let f,b=u;const g=360/this.countVisibleElements();for(f=0;f{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++}),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?Object(n["Ub"])(this.resolveDataElementOptions(t,e).angle||i):0}}et.id="polarArea",et.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},et.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i}}=t.legend.options;return e.labels.map((e,n)=>{const s=t.getDatasetMeta(0),o=s.controller.getStyle(n);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title(){return""},label(t){return t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class it extends Q{}it.id="pie",it.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class nt extends T{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,s){return n["Zb"].bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta,i=e.dataset,n=e.data||[],s=e.iScale.getLabels();if(i.points=n,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:s.length===n.length,options:e};this.updateElement(i,void 0,o,t)}this.updateElements(n,0,n.length,t)}updateElements(t,e,i,n){const s=this._cachedMeta.rScale,o="reset"===n;for(let r=e;r{n[t]=i[t]&&i[t].active()?i[t]._to:this[t]}),n}}st.defaults={},st.defaultRoutes=void 0;const ot={values(t){return Object(n["Cb"])(t)?t:""+t},numeric(t,e,i){if(0===t)return"0";const s=this.chart.options.locale;let o,r=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),r=rt(t,i)}const a=Object(n["ac"])(Math.abs(r)),h=Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:o,minimumFractionDigits:h,maximumFractionDigits:h};return Object.assign(l,this.options.ticks.format),Object(n["Pb"])(t,s,l)},logarithmic(t,e,i){if(0===t)return"0";const s=t/Math.pow(10,Math.floor(Object(n["ac"])(t)));return 1===s||2===s||5===s?ot.numeric.call(this,t,e,i):""}};function rt(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t)),i}var at={formatters:ot};function ht(t,e){const i=t.options.ticks,s=i.maxTicksLimit||lt(t),o=i.major.enabled?dt(e):[],r=o.length,a=o[0],h=o[r-1],l=[];if(r>s)return ut(e,l,o,r/s),l;const c=ct(o,e,s);if(r>0){let t,i;const s=r>1?Math.round((h-a)/(r-1)):null;for(ft(e,l,c,Object(n["Lb"])(s)?0:a-s,a),t=0,i=r-1;to)return t}return Math.max(o,1)}function dt(t){const e=[];let i,n;for(i=0,n=t.length;ie.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:at.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),n["Eb"].route("scale.ticks","color","","color"),n["Eb"].route("scale.grid","color","","borderColor"),n["Eb"].route("scale.grid","borderColor","","borderColor"),n["Eb"].route("scale.title","color","","color"),n["Eb"].describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),n["Eb"].describe("scales",{_fallback:"scale"}),n["Eb"].describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const gt=t=>"left"===t?"right":"right"===t?"left":t,pt=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function mt(t,e){const i=[],n=t.length/e,s=t.length;let o=0;for(;or+a)))return l}function _t(t,e){Object(n["r"])(t,t=>{const i=t.gc,n=i.length/2;let s;if(n>e){for(s=0;ss?s:i,s=o&&i>s?i:s,{min:Object(n["c"])(i,Object(n["c"])(s,i)),max:Object(n["c"])(s,Object(n["c"])(i,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Object(n["d"])(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:s,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Object(n["e"])(this,o,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const h=a=o||i<=1||!this.isHorizontal())return void(this.labelRotation=s);const c=this._getLabelSizes(),d=c.widest.width,u=c.highest.height,f=Object(n["f"])(this.chart.width-d,0,this.maxWidth);r=t.offset?this.maxWidth/i:f/(i-1),d+6>r&&(r=f/(i-(t.offset?.5:1)),a=this.maxHeight-yt(t.grid)-e.padding-vt(t.title,this.chart.options.font),h=Math.sqrt(d*d+u*u),l=Object(n["g"])(Math.min(Math.asin(Object(n["f"])((c.highest.height+6)/r,-1,1)),Math.asin(Object(n["f"])(a/h,-1,1))-Math.asin(Object(n["f"])(u/h,-1,1)))),l=Math.max(s,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){Object(n["d"])(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Object(n["d"])(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:s,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const r=vt(s,e.options.font);if(a?(t.width=this.maxWidth,t.height=yt(o)+r):(t.height=this.maxHeight,t.width=yt(o)+r),i.display&&this.ticks.length){const{first:e,last:s,widest:o,highest:r}=this._getLabelSizes(),h=2*i.padding,l=Object(n["Ub"])(this.labelRotation),c=Math.cos(l),d=Math.sin(l);if(a){const e=i.mirror?0:d*o.width+c*r.height;t.height=Math.min(this.maxHeight,t.height+e+h)}else{const e=i.mirror?0:c*o.width+d*r.height;t.width=Math.min(this.maxWidth,t.width+e+h)}this._calculatePadding(e,s,d,c)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,n){const{ticks:{align:s,padding:o},position:r}=this.options,a=0!==this.labelRotation,h="top"!==r&&"x"===this.axis;if(this.isHorizontal()){const r=this.getPixelForTick(0)-this.left,l=this.right-this.getPixelForTick(this.ticks.length-1);let c=0,d=0;a?h?(c=n*t.width,d=i*e.height):(c=i*t.height,d=n*e.width):"start"===s?d=e.width:"end"===s?c=t.width:"inner"!==s&&(c=t.width/2,d=e.width/2),this.paddingLeft=Math.max((c-r+o)*this.width/(this.width-r),0),this.paddingRight=Math.max((d-l+o)*this.width/(this.width-l),0)}else{let i=e.height/2,n=t.height/2;"start"===s?(i=0,n=t.height):"end"===s&&(i=e.height,n=0),this.paddingTop=i+o,this.paddingBottom=n+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Object(n["d"])(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e({width:o[t]||0,height:r[t]||0});return{first:O(0),last:O(e-1),widest:O(y),highest:O(v),widths:o,heights:r}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return Object(n["j"])(this._alignToPixels?Object(n["k"])(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&ta*s?a/i:h/s:h*s0}_computeGridLineItems(t){const e=this.axis,i=this.chart,s=this.options,{grid:o,position:r}=s,a=o.offset,h=this.isHorizontal(),l=this.ticks,c=l.length+(a?1:0),d=yt(o),u=[],f=o.setContext(this.getContext()),b=f.drawBorder?f.borderWidth:0,g=b/2,p=function(t){return Object(n["k"])(i,t,b)};let m,x,_,y,v,O,w,j,M,k,S,P;if("top"===r)m=p(this.bottom),O=this.bottom-d,j=m-g,k=p(t.top)+g,P=t.bottom;else if("bottom"===r)m=p(this.top),k=t.top,P=p(t.bottom)-g,O=m+g,j=this.top+d;else if("left"===r)m=p(this.right),v=this.right-d,w=m-g,M=p(t.left)+g,S=t.right;else if("right"===r)m=p(this.left),M=t.left,S=p(t.right)-g,v=m+g,w=this.left+d;else if("x"===e){if("center"===r)m=p((t.top+t.bottom)/2+.5);else if(Object(n["Jb"])(r)){const t=Object.keys(r)[0],e=r[t];m=p(this.chart.scales[t].getPixelForValue(e))}k=t.top,P=t.bottom,O=m+g,j=O+d}else if("y"===e){if("center"===r)m=p((t.left+t.right)/2);else if(Object(n["Jb"])(r)){const t=Object.keys(r)[0],e=r[t];m=p(this.chart.scales[t].getPixelForValue(e))}v=m-g,w=v-d,M=t.left,S=t.right}const C=Object(n["Wb"])(s.ticks.maxTicksLimit,c),D=Math.max(1,Math.ceil(c/C));for(x=0;xe.value===t);if(n>=0){const t=e.setContext(this.getContext(n));return t.lineWidth}return 0}drawGrid(t){const e=this.options.grid,i=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,o;const r=(t,e,n)=>{n.width&&n.color&&(i.save(),i.lineWidth=n.width,i.strokeStyle=n.color,i.setLineDash(n.borderDash||[]),i.lineDashOffset=n.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(s=0,o=n.length;s{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",n=[];let s,o;for(s=0,o=e.length;s{const s=i.split("."),o=s.pop(),r=[t].concat(s).join("."),a=e[i].split("."),h=a.pop(),l=a.join(".");n["Eb"].route(r,o,l,h)})}function Dt(t){return"id"in t&&"defaults"in t}class At{constructor(){this.controllers=new St(T,"datasets",!0),this.elements=new St(st,"elements"),this.plugins=new St(Object,"plugins"),this.scales=new St(kt,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach(e=>{const s=i||this._getRegistryForType(e);i||s.isForType(e)||s===this.plugins&&e.id?this._exec(t,s,e):Object(n["r"])(e,e=>{const n=i||this._getRegistryForType(e);this._exec(t,n,e)})})}_exec(t,e,i){const s=Object(n["x"])(t);Object(n["d"])(i["before"+s],[],i),e[t](i),Object(n["d"])(i["after"+s],[],i)}_getRegistryForType(t){for(let e=0;e0&&this.getParsed(e-1);for(let y=e;y0&&Math.abs(i[f]-_[f])>m,p&&(c.parsed=i,c.raw=l.data[y]),u&&(c.options=d||this.resolveDataElementOptions(y,e.active?"active":s)),x||this.updateElement(e,y,c,s),_=i}this.updateSharedOptions(d,s,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,n=i.options&&i.options.borderWidth||0;if(!e.length)return n;const s=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(n,s,o)/2}}Et.id="scatter",Et.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},Et.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title(){return""},label(t){return"("+t.label+", "+t.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};function Tt(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Rt{constructor(t){this.options=t||{}}init(t){}formats(){return Tt()}parse(t,e){return Tt()}format(t,e){return Tt()}add(t,e,i){return Tt()}diff(t,e,i){return Tt()}startOf(t,e,i){return Tt()}endOf(t,e){return Tt()}}Rt.override=function(t){Object.assign(Rt.prototype,t)};var It={_date:Rt};function zt(t,e,i,s){const{controller:o,data:r,_sorted:a}=t,h=o._cachedMeta.iScale;if(h&&e===h.axis&&"r"!==e&&a&&r.length){const t=h._reversePixels?n["z"]:n["A"];if(!s)return t(r,e,i);if(o._sharedOptions){const n=r[0],s="function"===typeof n.getRange&&n.getRange(e);if(s){const n=t(r,e,i-s),o=t(r,e,i+s);return{lo:n.lo,hi:o.hi}}}}return{lo:0,hi:r.length-1}}function Ft(t,e,i,n,s){const o=t.getSortedVisibleDatasetMetas(),r=i[e];for(let a=0,h=o.length;a{t[r](e[i],s)&&(o.push({element:t,datasetIndex:n,index:h}),a=a||t.inRange(e.x,e.y,s))}),n&&!a?[]:o}var Yt={evaluateInteractionItems:Ft,modes:{index(t,e,i,s){const o=Object(n["y"])(e,t),r=i.axis||"x",a=i.includeInvisible||!1,h=i.intersect?Bt(t,o,r,s,a):Ht(t,o,r,!1,s,a),l=[];return h.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=h[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})}),l):[]},dataset(t,e,i,s){const o=Object(n["y"])(e,t),r=i.axis||"xy",a=i.includeInvisible||!1;let h=i.intersect?Bt(t,o,r,s,a):Ht(t,o,r,!1,s,a);if(h.length>0){const e=h[0].datasetIndex,i=t.getDatasetMeta(e).data;h=[];for(let t=0;tt.pos===e)}function qt(t,e){return t.filter(t=>-1===Ut.indexOf(t.pos)&&t.box.axis===e)}function Jt(t,e){return t.sort((t,i)=>{const n=e?i:t,s=e?t:i;return n.weight===s.weight?n.index-s.index:n.weight-s.weight})}function Kt(t){const e=[];let i,n,s,o,r,a;for(i=0,n=(t||[]).length;it.box.fullSize),!0),n=Jt(Xt(e,"left"),!0),s=Jt(Xt(e,"right")),o=Jt(Xt(e,"top"),!0),r=Jt(Xt(e,"bottom")),a=qt(e,"x"),h=qt(e,"y");return{fullSize:i,leftAndTop:n.concat(o),rightAndBottom:s.concat(h).concat(r).concat(a),chartArea:Xt(e,"chartArea"),vertical:n.concat(s).concat(h),horizontal:o.concat(r).concat(a)}}function te(t,e,i,n){return Math.max(t[i],e[i])+Math.max(t[n],e[n])}function ee(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function ie(t,e,i,s){const{pos:o,box:r}=i,a=t.maxPadding;if(!Object(n["Jb"])(o)){i.size&&(t[o]-=i.size);const e=s[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?r.height:r.width),i.size=e.size/e.count,t[o]+=i.size}r.getPadding&&ee(a,r.getPadding());const h=Math.max(0,e.outerWidth-te(a,t,"left","right")),l=Math.max(0,e.outerHeight-te(a,t,"top","bottom")),c=h!==t.w,d=l!==t.h;return t.w=h,t.h=l,i.horizontal?{same:c,other:d}:{same:d,other:c}}function ne(t){const e=t.maxPadding;function i(i){const n=Math.max(e[i]-t[i],0);return t[i]+=n,n}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}function se(t,e){const i=e.maxPadding;function n(t){const n={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{n[t]=Math.max(e[t],i[t])}),n}return n(t?["left","right"]:["top","bottom"])}function oe(t,e,i,n){const s=[];let o,r,a,h,l,c;for(o=0,r=t.length,l=0;o{"function"===typeof t.beforeLayout&&t.beforeLayout()});const d=l.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,u=Object.freeze({outerWidth:e,outerHeight:i,padding:o,availableWidth:r,availableHeight:a,vBoxMaxWidth:r/2/d,hBoxMaxHeight:a/2}),f=Object.assign({},o);ee(f,Object(n["l"])(s));const b=Object.assign({maxPadding:f,w:r,h:a,x:o.left,y:o.top},o),g=Zt(l.concat(c),u);oe(h.fullSize,b,u,g),oe(l,b,u,g),oe(c,b,u,g)&&oe(l,b,u,g),ne(b),ae(h.leftAndTop,b,u,g),b.x+=b.w,b.y+=b.h,ae(h.rightAndBottom,b,u,g),t.chartArea={left:b.left,top:b.top,right:b.left+b.w,bottom:b.top+b.h,height:b.h,width:b.w},Object(n["r"])(h.chartArea,e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(b.w,b.h,{left:0,top:0,right:0,bottom:0})})}};class le{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,n){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):i)}}isAttached(t){return!0}updateConfig(t){}}class ce extends le{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const de="$chartjs",ue={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},fe=t=>null===t||""===t;function be(t,e){const i=t.style,s=t.getAttribute("height"),o=t.getAttribute("width");if(t[de]={initial:{height:s,width:o,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",fe(o)){const e=Object(n["G"])(t,"width");void 0!==e&&(t.width=e)}if(fe(s))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Object(n["G"])(t,"height");void 0!==e&&(t.height=e)}return t}const ge=!!n["I"]&&{passive:!0};function pe(t,e,i){t.addEventListener(e,i,ge)}function me(t,e,i){t.canvas.removeEventListener(e,i,ge)}function xe(t,e){const i=ue[t.type]||t.type,{x:s,y:o}=Object(n["y"])(t,e);return{type:i,chart:e,native:t,x:void 0!==s?s:null,y:void 0!==o?o:null}}function _e(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function ye(t,e,i){const n=t.canvas,s=new MutationObserver(t=>{let e=!1;for(const i of t)e=e||_e(i.addedNodes,n),e=e&&!_e(i.removedNodes,n);e&&i()});return s.observe(document,{childList:!0,subtree:!0}),s}function ve(t,e,i){const n=t.canvas,s=new MutationObserver(t=>{let e=!1;for(const i of t)e=e||_e(i.removedNodes,n),e=e&&!_e(i.addedNodes,n);e&&i()});return s.observe(document,{childList:!0,subtree:!0}),s}const Oe=new Map;let we=0;function je(){const t=window.devicePixelRatio;t!==we&&(we=t,Oe.forEach((e,i)=>{i.currentDevicePixelRatio!==t&&e()}))}function Me(t,e){Oe.size||window.addEventListener("resize",je),Oe.set(t,e)}function ke(t){Oe.delete(t),Oe.size||window.removeEventListener("resize",je)}function Se(t,e,i){const s=t.canvas,o=s&&Object(n["F"])(s);if(!o)return;const r=Object(n["H"])((t,e)=>{const n=o.clientWidth;i(t,e),n{const e=t[0],i=e.contentRect.width,n=e.contentRect.height;0===i&&0===n||r(i,n)});return a.observe(o),Me(t,r),a}function Pe(t,e,i){i&&i.disconnect(),"resize"===e&&ke(t)}function Ce(t,e,i){const s=t.canvas,o=Object(n["H"])(e=>{null!==t.ctx&&i(xe(e,t))},t,t=>{const e=t[0];return[e,e.offsetX,e.offsetY]});return pe(s,e,o),o}class De extends le{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(be(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[de])return!1;const i=e[de].initial;["height","width"].forEach(t=>{const s=i[t];Object(n["Lb"])(s)?e.removeAttribute(t):e.setAttribute(t,s)});const s=i.style||{};return Object.keys(s).forEach(t=>{e.style[t]=s[t]}),e.width=e.width,delete e[de],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),s={attach:ye,detach:ve,resize:Se},o=s[e]||Ce;n[e]=o(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),n=i[e];if(!n)return;const s={attach:Pe,detach:Pe,resize:Pe},o=s[e]||me;o(t,e,n),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,s){return Object(n["E"])(t,e,i,s)}isAttached(t){const e=Object(n["F"])(t);return!(!e||!e.isConnected)}}function Ae(t){return!Object(n["J"])()||"undefined"!==typeof OffscreenCanvas&&t instanceof OffscreenCanvas?ce:De}class Le{constructor(){this._init=[]}notify(t,e,i,n){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const s=n?this._descriptors(t).filter(n):this._descriptors(t),o=this._notify(s,t,e,i);return"afterDestroy"===e&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,i,s){s=s||{};for(const o of t){const t=o.plugin,r=t[i],a=[e,s,o.options];if(!1===Object(n["d"])(r,a,t)&&s.cancelable)return!1}return!0}invalidate(){Object(n["Lb"])(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,s=Object(n["Wb"])(i.options&&i.options.plugins,{}),o=Ee(i);return!1!==s||e?Re(t,o,s,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,n=(t,e)=>t.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(n(e,i),t,"stop"),this._notify(n(i,e),t,"start")}}function Ee(t){const e={},i=[],n=Object.keys(Lt.plugins.items);for(let o=0;o{const e=s[t];if(!Object(n["Jb"])(e))return console.error("Invalid scale configuration for scale: "+t);if(e._proxy)return console.warn("Ignoring resolver passed as options for scale: "+t);const h=Ve(t,e),l=We(h,o),c=i.scales||{};r[h]=r[h]||t,a[t]=Object(n["eb"])(Object.create(null),[{axis:h},e,c[h],c[l]])}),t.data.datasets.forEach(i=>{const o=i.type||t.type,h=i.indexAxis||ze(o,e),l=n["v"][o]||{},c=l.scales||{};Object.keys(c).forEach(t=>{const e=Fe(t,h),o=i[e+"AxisID"]||r[e]||e;a[o]=a[o]||Object.create(null),Object(n["eb"])(a[o],[{axis:e},s[o],c[t]])})}),Object.keys(a).forEach(t=>{const e=a[t];Object(n["eb"])(e,[n["Eb"].scales[e.type],n["Eb"].scale])}),a}function He(t){const e=t.options||(t.options={});e.plugins=Object(n["Wb"])(e.plugins,{}),e.scales=Ne(t,e)}function $e(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function Ye(t){return t=t||{},t.data=$e(t.data),He(t),t}const Ue=new Map,Xe=new Set;function qe(t,e){let i=Ue.get(t);return i||(i=e(),Ue.set(t,i),Xe.add(i)),i}const Je=(t,e,i)=>{const s=Object(n["Gb"])(e,i);void 0!==s&&t.add(s)};class Ke{constructor(t){this._config=Ye(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=$e(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),He(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return qe(t,()=>[["datasets."+t,""]])}datasetAnimationScopeKeys(t,e){return qe(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,"transitions."+e],["datasets."+t,""]])}datasetElementScopeKeys(t,e){return qe(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,"datasets."+t,"elements."+e,""]])}pluginScopeKeys(t){const e=t.id,i=this.type;return qe(`${i}-plugin-${e}`,()=>[["plugins."+e,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const i=this._scopeCache;let n=i.get(t);return n&&!e||(n=new Map,i.set(t,n)),n}getOptionScopes(t,e,i){const{options:s,type:o}=this,r=this._cachedScopes(t,i),a=r.get(e);if(a)return a;const h=new Set;e.forEach(e=>{t&&(h.add(t),e.forEach(e=>Je(h,t,e))),e.forEach(t=>Je(h,s,t)),e.forEach(t=>Je(h,n["v"][o]||{},t)),e.forEach(t=>Je(h,n["Eb"],t)),e.forEach(t=>Je(h,n["K"],t))});const l=Array.from(h);return 0===l.length&&l.push(Object.create(null)),Xe.has(e)&&r.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,n["v"][e]||{},n["Eb"].datasets[e]||{},{type:e},n["Eb"],n["K"]]}resolveNamedOptions(t,e,i,s=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=Ge(this._resolverCache,t,s);let h=r;if(Qe(r,e)){o.$shared=!1,i=Object(n["L"])(i)?i():i;const e=this.createResolver(t,i,a);h=Object(n["M"])(r,i,e)}for(const n of e)o[n]=h[n];return o}createResolver(t,e,i=[""],s){const{resolver:o}=Ge(this._resolverCache,t,i);return Object(n["Jb"])(e)?Object(n["M"])(o,e,void 0,s):o}}function Ge(t,e,i){let s=t.get(e);s||(s=new Map,t.set(e,s));const o=i.join();let r=s.get(o);if(!r){const t=Object(n["cb"])(e,i);r={resolver:t,subPrefixes:i.filter(t=>!t.toLowerCase().includes("hover"))},s.set(o,r)}return r}const Ze=t=>Object(n["Jb"])(t)&&Object.getOwnPropertyNames(t).reduce((e,i)=>e||Object(n["L"])(t[i]),!1);function Qe(t,e){const{isScriptable:i,isIndexable:s}=Object(n["db"])(t);for(const o of e){const e=i(o),r=s(o),a=(r||e)&&t[o];if(e&&(Object(n["L"])(a)||Ze(a))||r&&Object(n["Cb"])(a))return!0}return!1}var ti="3.9.1";const ei=["top","bottom","left","right","chartArea"];function ii(t,e){return"top"===t||"bottom"===t||-1===ei.indexOf(t)&&"x"===e}function ni(t,e){return function(i,n){return i[t]===n[t]?i[e]-n[e]:i[t]-n[t]}}function si(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),Object(n["d"])(i&&i.onComplete,[t],e)}function oi(t){const e=t.chart,i=e.options.animation;Object(n["d"])(i&&i.onProgress,[t],e)}function ri(t){return Object(n["J"])()&&"string"===typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const ai={},hi=t=>{const e=ri(t);return Object.values(ai).filter(t=>t.canvas===e).pop()};function li(t,e,i){const n=Object.keys(t);for(const s of n){const n=+s;if(n>=e){const o=t[s];delete t[s],(i>0||n>e)&&(t[n+i]=o)}}}function ci(t,e,i,n){return i&&"mouseout"!==t.type?n?e:t:null}class di{constructor(t,e){const i=this.config=new Ke(e),s=ri(t),r=hi(s);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const a=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||Ae(s)),this.platform.updateConfig(i);const h=this.platform.acquireContext(s,a.aspectRatio),l=h&&h.canvas,c=l&&l.height,d=l&&l.width;this.id=Object(n["fb"])(),this.ctx=h,this.canvas=l,this.width=d,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Le,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Object(n["gb"])(t=>this.update(t),a.resizeDelay||0),this._dataChanges=[],ai[this.id]=this,h&&l?(o.listen(this,"complete",si),o.listen(this,"progress",oi),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:s,_aspectRatio:o}=this;return Object(n["Lb"])(t)?e&&o?o:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Object(n["hb"])(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Object(n["ib"])(this.canvas,this.ctx),this}stop(){return o.stop(this),this}resize(t,e){o.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,s=this.canvas,o=i.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(s,t,e,o),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),h=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,Object(n["hb"])(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),Object(n["d"])(i.onResize,[this,r],this),this.attached&&this._doResize(h)&&this.render())}ensureScalesHaveIDs(){const t=this.options,e=t.scales||{};Object(n["r"])(e,(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,s=Object.keys(i).reduce((t,e)=>(t[e]=!1,t),{});let o=[];e&&(o=o.concat(Object.keys(e).map(t=>{const i=e[t],n=Ve(t,i),s="r"===n,o="x"===n;return{options:i,dposition:s?"chartArea":o?"bottom":"left",dtype:s?"radialLinear":o?"category":"linear"}}))),Object(n["r"])(o,e=>{const o=e.options,r=o.id,a=Ve(r,o),h=Object(n["Wb"])(o.type,e.dtype);void 0!==o.position&&ii(o.position,a)===ii(e.dposition)||(o.position=e.dposition),s[r]=!0;let l=null;if(r in i&&i[r].type===h)l=i[r];else{const t=Lt.getScale(h);l=new t({id:r,type:h,ctx:this.ctx,chart:this}),i[l.id]=l}l.init(o,t)}),Object(n["r"])(s,(t,e)=>{t||delete i[e]}),Object(n["r"])(i,t=>{he.configure(this,t,t.options),he.addBox(this,t)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((t,e)=>t.index-e.index),i>e){for(let t=e;te.length&&delete this._stacks,t.forEach((t,i)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=e.length;i{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let n=0,l=this.data.datasets.length;n{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ni("z","_idx"));const{_active:a,_lastEvent:h}=this;h?this._eventHandler(h,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Object(n["r"])(this.scales,t=>{he.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);Object(n["jb"])(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:n,count:s}of e){const e="_removeElements"===i?-s:s;li(t,n,e)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),s=i(0);for(let o=1;ot.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;he.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],Object(n["r"])(this.boxes,t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,s=!i.disabled,o=this.chartArea,r={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(s&&Object(n["m"])(e,{left:!1===i.left?0:o.left-i.left,right:!1===i.right?this.width:o.right+i.right,top:!1===i.top?0:o.top-i.top,bottom:!1===i.bottom?this.height:o.bottom+i.bottom}),t.controller.draw(),s&&Object(n["o"])(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return Object(n["a"])(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,n){const s=Yt.modes[e];return"function"===typeof s?s(this,t,i,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let n=i.filter(t=>t&&t._dataset===e).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(n)),n}getContext(){return this.$context||(this.$context=Object(n["Ib"])(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"===typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){const i=this.getDatasetMeta(t);i.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const s=i?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,s);Object(n["Kb"])(e)?(o.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),r.update(o,{visible:i}),this.update(e=>e.datasetIndex===t?s:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),o.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,i,n),t[i]=n},s=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};Object(n["r"])(this.options.events,t=>i(t,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,n)=>{e.addEventListener(this,i,n),t[i]=n},n=(i,n)=>{t[i]&&(e.removeEventListener(this,i,n),delete t[i])},s=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const r=()=>{n("attach",r),this.attached=!0,this.resize(),i("resize",s),i("detach",o)};o=()=>{this.attached=!1,n("resize",s),this._stop(),this._resize(0,0),i("attach",r)},e.isAttached(this.canvas)?r():o()}unbindEvents(){Object(n["r"])(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},Object(n["r"])(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const n=i?"set":"remove";let s,o,r,a;for("dataset"===e&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+n+"DatasetHoverStyle"]()),r=0,a=t.length;r{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}),s=!Object(n["kb"])(i,e);s&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){const n=this.options.hover,s=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),o=s(e,t),r=i?t:s(t,e);o.length&&this.updateHoverStyle(o,n.mode,!1),r.length&&n.mode&&this.updateHoverStyle(r,n.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,n))return;const s=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,n),(s||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:s=[],options:o}=this,r=e,a=this._getActiveElements(t,s,i,r),h=Object(n["lb"])(t),l=ci(t,this._lastEvent,i,h);i&&(this._lastEvent=null,Object(n["d"])(o.onHover,[t,a,this],this),h&&Object(n["d"])(o.onClick,[t,a,this],this));const c=!Object(n["kb"])(a,s);return(c||e)&&(this._active=a,this._updateHoverStyles(a,s,e)),this._lastEvent=l,c}_getActiveElements(t,e,i,n){if("mouseout"===t.type)return[];if(!i)return e;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,n)}}const ui=()=>Object(n["r"])(di.instances,t=>t._plugins.invalidate()),fi=!0;function bi(t,e,i){const{startAngle:s,pixelMargin:o,x:r,y:a,outerRadius:h,innerRadius:l}=e;let c=o/h;t.beginPath(),t.arc(r,a,h,s-c,i+c),l>o?(c=o/l,t.arc(r,a,l,i+c,s-c,!0)):t.arc(r,a,o,i+n["i"],s-n["i"]),t.closePath(),t.clip()}function gi(t){return Object(n["nb"])(t,["outerStart","outerEnd","innerStart","innerEnd"])}function pi(t,e,i,s){const o=gi(t.options.borderRadius),r=(i-e)/2,a=Math.min(r,s*e/2),h=t=>{const e=(i-Math.min(r,t))*s/2;return Object(n["f"])(t,0,Math.min(r,e))};return{outerStart:h(o.outerStart),outerEnd:h(o.outerEnd),innerStart:Object(n["f"])(o.innerStart,0,a),innerEnd:Object(n["f"])(o.innerEnd,0,a)}}function mi(t,e,i,n){return{x:i+t*Math.cos(e),y:n+t*Math.sin(e)}}function xi(t,e,i,s,o,r){const{x:a,y:h,startAngle:l,pixelMargin:c,innerRadius:d}=e,u=Math.max(e.outerRadius+s+i-c,0),f=d>0?d+s+i+c:0;let b=0;const g=o-l;if(s){const t=d>0?d-s:0,e=u>0?u-s:0,i=(t+e)/2,n=0!==i?g*i/(i+s):g;b=(g-n)/2}const p=Math.max(.001,g*u-i/n["q"])/u,m=(g-p)/2,x=l+m+b,_=o-m-b,{outerStart:y,outerEnd:v,innerStart:O,innerEnd:w}=pi(e,f,u,_-x),j=u-y,M=u-v,k=x+y/j,S=_-v/M,P=f+O,C=f+w,D=x+O/P,A=_-w/C;if(t.beginPath(),r){if(t.arc(a,h,u,k,S),v>0){const e=mi(M,S,a,h);t.arc(e.x,e.y,v,S,_+n["i"])}const e=mi(C,_,a,h);if(t.lineTo(e.x,e.y),w>0){const e=mi(C,A,a,h);t.arc(e.x,e.y,w,_+n["i"],A+Math.PI)}if(t.arc(a,h,f,_-w/f,x+O/f,!0),O>0){const e=mi(P,D,a,h);t.arc(e.x,e.y,O,D+Math.PI,x-n["i"])}const i=mi(j,x,a,h);if(t.lineTo(i.x,i.y),y>0){const e=mi(j,k,a,h);t.arc(e.x,e.y,y,x-n["i"],k)}}else{t.moveTo(a,h);const e=Math.cos(k)*u+a,i=Math.sin(k)*u+h;t.lineTo(e,i);const n=Math.cos(S)*u+a,s=Math.sin(S)*u+h;t.lineTo(n,s)}t.closePath()}function _i(t,e,i,s,o){const{fullCircles:r,startAngle:a,circumference:h}=e;let l=e.endAngle;if(r){xi(t,e,i,s,a+n["u"],o);for(let e=0;e{Lt.add(...t),ui()}},unregister:{enumerable:fi,value:(...t)=>{Lt.remove(...t),ui()}}});class Oi extends st{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){const s=this.getProps(["x","y"],i),{angle:o,distance:r}=Object(n["D"])(s,{x:t,y:e}),{startAngle:a,endAngle:h,innerRadius:l,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),u=this.options.spacing/2,f=Object(n["Wb"])(d,h-a),b=f>=n["u"]||Object(n["Qb"])(o,a,h),g=Object(n["mb"])(r,l+u,c+u);return b&&g}getCenterPoint(t){const{x:e,y:i,startAngle:n,endAngle:s,innerRadius:o,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:a,spacing:h}=this.options,l=(n+s)/2,c=(o+r+h+a)/2;return{x:e+Math.cos(l)*c,y:i+Math.sin(l)*c}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,s=(e.offset||0)/2,o=(e.spacing||0)/2,r=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>n["u"]?Math.floor(i/n["u"]):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(s){a=s/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*a,Math.sin(e)*a),this.circumference>=n["q"]&&(a=s)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const h=_i(t,this,a,o,r);vi(t,this,a,o,h,r),t.restore()}}function wi(t,e,i=e){t.lineCap=Object(n["Wb"])(i.borderCapStyle,e.borderCapStyle),t.setLineDash(Object(n["Wb"])(i.borderDash,e.borderDash)),t.lineDashOffset=Object(n["Wb"])(i.borderDashOffset,e.borderDashOffset),t.lineJoin=Object(n["Wb"])(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Object(n["Wb"])(i.borderWidth,e.borderWidth),t.strokeStyle=Object(n["Wb"])(i.borderColor,e.borderColor)}function ji(t,e,i){t.lineTo(i.x,i.y)}function Mi(t){return t.stepped?n["ub"]:t.tension||"monotone"===t.cubicInterpolationMode?n["vb"]:ji}function ki(t,e,i={}){const n=t.length,{start:s=0,end:o=n-1}=i,{start:r,end:a}=e,h=Math.max(s,r),l=Math.min(o,a),c=sa&&o>a;return{count:n,start:h,loop:e.loop,ilen:l(r+(l?a-t:t))%o,_=()=>{f!==b&&(t.lineTo(p,b),t.lineTo(p,f),t.lineTo(p,g))};for(h&&(d=s[x(0)],t.moveTo(d.x,d.y)),c=0;c<=a;++c){if(d=s[x(c)],d.skip)continue;const e=d.x,i=d.y,n=0|e;n===u?(ib&&(b=i),p=(m*p+e)/++m):(_(),t.lineTo(e,i),u=n,m=0,f=b=i),g=i}_()}function Ci(t){const e=t.options,i=e.borderDash&&e.borderDash.length,n=!t._decimated&&!t._loop&&!e.tension&&"monotone"!==e.cubicInterpolationMode&&!e.stepped&&!i;return n?Pi:Si}function Di(t){return t.stepped?n["rb"]:t.tension||"monotone"===t.cubicInterpolationMode?n["sb"]:n["tb"]}function Ai(t,e,i,n){let s=e._path;s||(s=e._path=new Path2D,e.path(s,i,n)&&s.closePath()),wi(t,e.options),t.stroke(s)}function Li(t,e,i,n){const{segments:s,options:o}=e,r=Ci(e);for(const a of s)wi(t,o,a.style),t.beginPath(),r(t,e,a,{start:i,end:i+n-1})&&t.closePath(),t.stroke()}Oi.id="arc",Oi.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Oi.defaultRoutes={backgroundColor:"backgroundColor"};const Ei="function"===typeof Path2D;function Ti(t,e,i,n){Ei&&!e.options.segment?Ai(t,e,i,n):Li(t,e,i,n)}class Ri extends st{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;Object(n["ob"])(this._points,i,t,s,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Object(n["pb"])(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,s=t[e],o=this.points,r=Object(n["qb"])(this,{property:e,start:s,end:s});if(!r.length)return;const a=[],h=Di(i);let l,c;for(l=0,c=r.length;l"borderDash"!==t&&"fill"!==t};class zi extends st{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.options,{x:s,y:o}=this.getProps(["x","y"],i);return Math.pow(t-s,2)+Math.pow(e-o,2){let{boxHeight:i=e,boxWidth:n=e}=t;return t.usePointStyle&&(i=Math.min(i,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:i,itemHeight:Math.max(e,i)}},Ji=(t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class Ki extends st{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=Object(n["d"])(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,i)=>t.sort(e,i,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,s=Object(n["p"])(i.font),o=s.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:h}=qi(i,o);let l,c;e.font=s.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(r,o,a,h)+10):(c=this.maxHeight,l=this._fitCols(r,o,a,h)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,n){const{ctx:s,maxWidth:o,options:{labels:{padding:r}}}=this,a=this.legendHitBoxes=[],h=this.lineWidths=[0],l=n+r;let c=t;s.textAlign="left",s.textBaseline="middle";let d=-1,u=-l;return this.legendItems.forEach((t,f)=>{const b=i+e/2+s.measureText(t.text).width;(0===f||h[h.length-1]+b+2*r>o)&&(c+=l,h[h.length-(f>0?0:1)]=0,u+=l,d++),a[f]={left:0,top:u,row:d,width:b,height:n},h[h.length-1]+=b+r}),c}_fitCols(t,e,i,n){const{ctx:s,maxHeight:o,options:{labels:{padding:r}}}=this,a=this.legendHitBoxes=[],h=this.columnSizes=[],l=o-t;let c=r,d=0,u=0,f=0,b=0;return this.legendItems.forEach((t,o)=>{const g=i+e/2+s.measureText(t.text).width;o>0&&u+n+2*r>l&&(c+=d+r,h.push({width:d,height:u}),f+=d+r,b++,d=u=0),a[o]={left:f,top:u,col:b,width:g,height:n},d=Math.max(d,g),u+=n+r}),c+=d,h.push({width:d,height:u}),c}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:s},rtl:o}}=this,r=Object(n["N"])(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=Object(n["t"])(i,this.left+s,this.right-this.lineWidths[o]);for(const h of e)o!==h.row&&(o=h.row,a=Object(n["t"])(i,this.left+s,this.right-this.lineWidths[o])),h.top+=this.top+t+s,h.left=r.leftForLtr(r.x(a),h.width),a+=h.width+s}else{let o=0,a=Object(n["t"])(i,this.top+t+s,this.bottom-this.columnSizes[o].height);for(const h of e)h.col!==o&&(o=h.col,a=Object(n["t"])(i,this.top+t+s,this.bottom-this.columnSizes[o].height)),h.top=a,h.left+=this.left+s,h.left=r.leftForLtr(r.x(h.left),h.width),a+=h.height+s}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Object(n["m"])(t,this),this._draw(),Object(n["o"])(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:s}=this,{align:o,labels:r}=t,a=n["Eb"].color,h=Object(n["N"])(t.rtl,this.left,this.width),l=Object(n["p"])(r.font),{color:c,padding:d}=r,u=l.size,f=u/2;let b;this.drawTitle(),s.textAlign=h.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=l.string;const{boxWidth:g,boxHeight:p,itemHeight:m}=qi(r,u),x=function(t,e,i){if(isNaN(g)||g<=0||isNaN(p)||p<0)return;s.save();const o=Object(n["Wb"])(i.lineWidth,1);if(s.fillStyle=Object(n["Wb"])(i.fillStyle,a),s.lineCap=Object(n["Wb"])(i.lineCap,"butt"),s.lineDashOffset=Object(n["Wb"])(i.lineDashOffset,0),s.lineJoin=Object(n["Wb"])(i.lineJoin,"miter"),s.lineWidth=o,s.strokeStyle=Object(n["Wb"])(i.strokeStyle,a),s.setLineDash(Object(n["Wb"])(i.lineDash,[])),r.usePointStyle){const a={radius:p*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:o},l=h.xPlus(t,g/2),c=e+f;Object(n["R"])(s,a,l,c,r.pointStyleWidth&&g)}else{const r=e+Math.max((u-p)/2,0),a=h.leftForLtr(t,g),l=Object(n["zb"])(i.borderRadius);s.beginPath(),Object.values(l).some(t=>0!==t)?Object(n["xb"])(s,{x:a,y:r,w:g,h:p,radius:l}):s.rect(a,r,g,p),s.fill(),0!==o&&s.stroke()}s.restore()},_=function(t,e,i){Object(n["n"])(s,i.text,t,e+m/2,l,{strikethrough:i.hidden,textAlign:h.textAlign(i.textAlign)})},y=this.isHorizontal(),v=this._computeTitleHeight();b=y?{x:Object(n["t"])(o,this.left+d,this.right-i[0]),y:this.top+d+v,line:0}:{x:this.left+d,y:Object(n["t"])(o,this.top+v+d,this.bottom-e[0].height),line:0},Object(n["O"])(this.ctx,t.textDirection);const O=m+d;this.legendItems.forEach((a,l)=>{s.strokeStyle=a.fontColor||c,s.fillStyle=a.fontColor||c;const u=s.measureText(a.text).width,p=h.textAlign(a.textAlign||(a.textAlign=r.textAlign)),m=g+f+u;let w=b.x,j=b.y;h.setWidth(this.width),y?l>0&&w+m+d>this.right&&(j=b.y+=O,b.line++,w=b.x=Object(n["t"])(o,this.left+d,this.right-i[b.line])):l>0&&j+O>this.bottom&&(w=b.x=w+e[b.line].width+d,b.line++,j=b.y=Object(n["t"])(o,this.top+v+d,this.bottom-e[b.line].height));const M=h.x(w);x(M,j,a),w=Object(n["P"])(p,w+g+f,y?w+m:this.right,t.rtl),_(h.x(w),j,a),y?b.x+=m+d:b.y+=O}),Object(n["Q"])(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=Object(n["p"])(e.font),s=Object(n["l"])(e.padding);if(!e.display)return;const o=Object(n["N"])(t.rtl,this.left,this.width),r=this.ctx,a=e.position,h=i.size/2,l=s.top+h;let c,d=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),c=this.top+l,d=Object(n["t"])(t.align,d,this.right-u);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);c=l+Object(n["t"])(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const f=Object(n["t"])(a,d,d+u);r.textAlign=o.textAlign(Object(n["s"])(a)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=i.string,Object(n["n"])(r,e.text,f,c,i)}_computeTitleHeight(){const t=this.options.title,e=Object(n["p"])(t.font),i=Object(n["l"])(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,s,o;if(Object(n["mb"])(t,this.left,this.right)&&Object(n["mb"])(e,this.top,this.bottom))for(o=this.legendHitBoxes,i=0;it.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:s,textAlign:o,color:r}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{const a=t.controller.getStyle(i?0:void 0),h=Object(n["l"])(a.borderWidth);return{text:e[t.index].label,fillStyle:a.backgroundColor,fontColor:r,hidden:!t.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:a.borderColor,pointStyle:s||a.pointStyle,rotation:a.rotation,textAlign:o||a.textAlign,borderRadius:0,datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Qi extends st{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const s=Object(n["Cb"])(i.text)?i.text.length:1;this._padding=Object(n["l"])(i.padding);const o=s*Object(n["p"])(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:s,right:o,options:r}=this,a=r.align;let h,l,c,d=0;return this.isHorizontal()?(l=Object(n["t"])(a,i,o),c=e+t,h=o-i):("left"===r.position?(l=i+t,c=Object(n["t"])(a,s,e),d=-.5*n["q"]):(l=o-t,c=Object(n["t"])(a,e,s),d=.5*n["q"]),h=s-e),{titleX:l,titleY:c,maxWidth:h,rotation:d}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=Object(n["p"])(e.font),s=i.lineHeight,o=s/2+this._padding.top,{titleX:r,titleY:a,maxWidth:h,rotation:l}=this._drawArgs(o);Object(n["n"])(t,e.text,0,0,i,{color:e.color,maxWidth:h,rotation:l,textAlign:Object(n["s"])(e.align),textBaseline:"middle",translation:[r,a]})}}function tn(t,e){const i=new Qi({ctx:t.ctx,options:e,chart:t});he.configure(t,i,e),he.addBox(t,i),t.titleBlock=i}var en={id:"title",_element:Qi,start(t,e,i){tn(t,i)},stop(t){const e=t.titleBlock;he.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const n=t.titleBlock;he.configure(t,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};new WeakMap;const nn={average(t){if(!t.length)return!1;let e,i,n=0,s=0,o=0;for(e=0,i=t.length;e-1?t.split("\n"):t}function rn(t,e){const{element:i,datasetIndex:n,index:s}=e,o=t.getDatasetMeta(n).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:t,label:r,parsed:o.getParsed(s),raw:t.data.datasets[n].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:n,element:i}}function an(t,e){const i=t.chart.ctx,{body:s,footer:o,title:r}=t,{boxWidth:a,boxHeight:h}=e,l=Object(n["p"])(e.bodyFont),c=Object(n["p"])(e.titleFont),d=Object(n["p"])(e.footerFont),u=r.length,f=o.length,b=s.length,g=Object(n["l"])(e.padding);let p=g.height,m=0,x=s.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);if(x+=t.beforeBody.length+t.afterBody.length,u&&(p+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),x){const t=e.displayColors?Math.max(h,l.lineHeight):l.lineHeight;p+=b*t+(x-b)*l.lineHeight+(x-1)*e.bodySpacing}f&&(p+=e.footerMarginTop+f*d.lineHeight+(f-1)*e.footerSpacing);let _=0;const y=function(t){m=Math.max(m,i.measureText(t).width+_)};return i.save(),i.font=c.string,Object(n["r"])(t.title,y),i.font=l.string,Object(n["r"])(t.beforeBody.concat(t.afterBody),y),_=e.displayColors?a+2+e.boxPadding:0,Object(n["r"])(s,t=>{Object(n["r"])(t.before,y),Object(n["r"])(t.lines,y),Object(n["r"])(t.after,y)}),_=0,i.font=d.string,Object(n["r"])(t.footer,y),i.restore(),m+=g.width,{width:m,height:p}}function hn(t,e){const{y:i,height:n}=e;return it.height-n/2?"bottom":"center"}function ln(t,e,i,n){const{x:s,width:o}=n,r=i.caretSize+i.caretPadding;return"left"===t&&s+o+r>e.width||("right"===t&&s-o-r<0||void 0)}function cn(t,e,i,n){const{x:s,width:o}=i,{width:r,chartArea:{left:a,right:h}}=t;let l="center";return"center"===n?l=s<=(a+h)/2?"left":"right":s<=o/2?l="left":s>=r-o/2&&(l="right"),ln(l,t,e,i)&&(l="center"),l}function dn(t,e,i){const n=i.yAlign||e.yAlign||hn(t,i);return{xAlign:i.xAlign||e.xAlign||cn(t,e,i,n),yAlign:n}}function un(t,e){let{x:i,width:n}=t;return"right"===e?i-=n:"center"===e&&(i-=n/2),i}function fn(t,e,i){let{y:n,height:s}=t;return"top"===e?n+=i:n-="bottom"===e?s+i:s/2,n}function bn(t,e,i,s){const{caretSize:o,caretPadding:r,cornerRadius:a}=t,{xAlign:h,yAlign:l}=i,c=o+r,{topLeft:d,topRight:u,bottomLeft:f,bottomRight:b}=Object(n["zb"])(a);let g=un(e,h);const p=fn(e,l,c);return"center"===l?"left"===h?g+=c:"right"===h&&(g-=c):"left"===h?g-=Math.max(d,f)+o:"right"===h&&(g+=Math.max(u,b)+o),{x:Object(n["f"])(g,0,s.width-e.width),y:Object(n["f"])(p,0,s.height-e.height)}}function gn(t,e,i){const s=Object(n["l"])(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-s.right:t.x+s.left}function pn(t){return sn([],on(t))}function mn(t,e,i){return Object(n["Ib"])(t,{tooltip:e,tooltipItems:i,type:"tooltip"})}function xn(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}class _n extends st{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),n=i.enabled&&e.options.animation&&i.animations,s=new u(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=mn(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:i}=e,n=i.beforeTitle.apply(this,[t]),s=i.title.apply(this,[t]),o=i.afterTitle.apply(this,[t]);let r=[];return r=sn(r,on(n)),r=sn(r,on(s)),r=sn(r,on(o)),r}getBeforeBody(t,e){return pn(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:i}=e,s=[];return Object(n["r"])(t,t=>{const e={before:[],lines:[],after:[]},n=xn(i,t);sn(e.before,on(n.beforeLabel.call(this,t))),sn(e.lines,n.label.call(this,t)),sn(e.after,on(n.afterLabel.call(this,t))),s.push(e)}),s}getAfterBody(t,e){return pn(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:i}=e,n=i.beforeFooter.apply(this,[t]),s=i.footer.apply(this,[t]),o=i.afterFooter.apply(this,[t]);let r=[];return r=sn(r,on(n)),r=sn(r,on(s)),r=sn(r,on(o)),r}_createItems(t){const e=this._active,i=this.chart.data,s=[],o=[],r=[];let a,h,l=[];for(a=0,h=e.length;at.filter(e,n,s,i))),t.itemSort&&(l=l.sort((e,n)=>t.itemSort(e,n,i))),Object(n["r"])(l,e=>{const i=xn(t.callbacks,e);s.push(i.labelColor.call(this,e)),o.push(i.labelPointStyle.call(this,e)),r.push(i.labelTextColor.call(this,e))}),this.labelColors=s,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),n=this._active;let s,o=[];if(n.length){const t=nn[i.position].call(this,n,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const e=this._size=an(this,i),r=Object.assign({},t,e),a=dn(this.chart,i,r),h=bn(i,r,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,s={opacity:1,x:h.x,y:h.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(s={opacity:0});this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,n){const s=this.getCaretPosition(t,i,n);e.lineTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.lineTo(s.x3,s.y3)}getCaretPosition(t,e,i){const{xAlign:s,yAlign:o}=this,{caretSize:r,cornerRadius:a}=i,{topLeft:h,topRight:l,bottomLeft:c,bottomRight:d}=Object(n["zb"])(a),{x:u,y:f}=t,{width:b,height:g}=e;let p,m,x,_,y,v;return"center"===o?(y=f+g/2,"left"===s?(p=u,m=p-r,_=y+r,v=y-r):(p=u+b,m=p+r,_=y-r,v=y+r),x=p):(m="left"===s?u+Math.max(h,c)+r:"right"===s?u+b-Math.max(l,d)-r:this.caretX,"top"===o?(_=f,y=_-r,p=m-r,x=m+r):(_=f+g,y=_+r,p=m+r,x=m-r),v=_),{x1:p,x2:m,x3:x,y1:_,y2:y,y3:v}}drawTitle(t,e,i){const s=this.title,o=s.length;let r,a,h;if(o){const l=Object(n["N"])(i.rtl,this.x,this.width);for(t.x=gn(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",r=Object(n["p"])(i.titleFont),a=i.titleSpacing,e.fillStyle=i.titleColor,e.font=r.string,h=0;h0!==t)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Object(n["xb"])(t,{x:e,y:g,w:l,h:h,radius:a}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),Object(n["xb"])(t,{x:i,y:g+1,w:l-2,h:h-2,radius:a}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,g,l,h),t.strokeRect(e,g,l,h),t.fillStyle=r.backgroundColor,t.fillRect(i,g+1,l-2,h-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:s}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:h,boxWidth:l,boxPadding:c}=i,d=Object(n["p"])(i.bodyFont);let u=d.lineHeight,f=0;const b=Object(n["N"])(i.rtl,this.x,this.width),g=function(i){e.fillText(i,b.x(t.x+f),t.y+u/2),t.y+=u+o},p=b.textAlign(r);let m,x,_,y,v,O,w;for(e.textAlign=r,e.textBaseline="middle",e.font=d.string,t.x=gn(this,p,i),e.fillStyle=i.bodyColor,Object(n["r"])(this.beforeBody,g),f=a&&"right"!==p?"center"===r?l/2+c:l+2+c:0,y=0,O=s.length;y0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,n=i&&i.x,s=i&&i.y;if(n||s){const i=nn[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=an(this,t),r=Object.assign({},i,this._size),a=dn(e,t,r),h=bn(t,r,a,e);n._to===h.x&&s._to===h.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const s={width:this.width,height:this.height},o={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const r=Object(n["l"])(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(o,t,s,e),Object(n["O"])(t,e.textDirection),o.y+=r.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),Object(n["Q"])(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,s=t.map(({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}),o=!Object(n["kb"])(i,s),r=this._positionChanged(s,e);(o||r)&&(this._active=s,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,o=this._active||[],r=this._getActiveElements(t,o,e,i),a=this._positionChanged(r,t),h=e||!Object(n["kb"])(r,o)||a;return h&&(this._active=r,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),h}_getActiveElements(t,e,i,n){const s=this.options;if("mouseout"===t.type)return[];if(!n)return e;const o=this.chart.getElementsAtEventForMode(t,s.mode,s,i);return s.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:i,caretY:n,options:s}=this,o=nn[s.position].call(this,t,e);return!1!==o&&(i!==o.x||n!==o.y)}}_n.positioners=nn;var yn={id:"tooltip",_element:_n,positioners:nn,afterInit(t,e,i){i&&(t.tooltip=new _n({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",i))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:n["S"],title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,n=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const vn=(t,e,i,n)=>("string"===typeof e?(i=t.push(e)-1,n.unshift({index:i,label:e})):isNaN(e)&&(i=null),i);function On(t,e,i,n){const s=t.indexOf(e);if(-1===s)return vn(t,e,i,n);const o=t.lastIndexOf(e);return s!==o?i:s}const wn=(t,e)=>null===t?null:Object(n["f"])(Math.round(t),0,e);class jn extends kt{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:i,label:n}of e)t[i]===n&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Object(n["Lb"])(t))return null;const i=this.getLabels();return e=isFinite(e)&&i[e]===t?e:On(i,t,Object(n["Wb"])(e,t),this._addedLabels),wn(e,i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:n}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(n=this.getLabels().length-1)),this.min=i,this.max=n}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,n=[];let s=this.getLabels();s=0===t&&e===s.length-1?s:s.slice(t,e+1),this._valueRange=Math.max(s.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let o=t;o<=e;o++)n.push({value:o});return n}getLabelForValue(t){const e=this.getLabels();return t>=0&&te.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Mn(t,e){const i=[],s=1e-14,{bounds:o,step:r,min:a,max:h,precision:l,count:c,maxTicks:d,maxDigits:u,includeBounds:f}=t,b=r||1,g=d-1,{min:p,max:m}=e,x=!Object(n["Lb"])(a),_=!Object(n["Lb"])(h),y=!Object(n["Lb"])(c),v=(m-p)/(u+1);let O,w,j,M,k=Object(n["V"])((m-p)/g/b)*b;if(kg&&(k=Object(n["V"])(M*k/g/b)*b),Object(n["Lb"])(l)||(O=Math.pow(10,l),k=Math.ceil(k*O)/O),"ticks"===o?(w=Math.floor(p/k)*k,j=Math.ceil(m/k)*k):(w=p,j=m),x&&_&&r&&Object(n["W"])((h-a)/r,k/1e3)?(M=Math.round(Math.min((h-a)/k,d)),k=(h-a)/M,w=a,j=h):y?(w=x?a:w,j=_?h:j,M=c-1,k=(j-w)/M):(M=(j-w)/k,M=Object(n["X"])(M,Math.round(M),k/1e3)?Math.round(M):Math.ceil(M));const S=Math.max(Object(n["Y"])(k),Object(n["Y"])(w));O=Math.pow(10,Object(n["Lb"])(l)?S:l),w=Math.round(w*O)/O,j=Math.round(j*O)/O;let P=0;for(x&&(f&&w!==a?(i.push({value:a}),ws=e?s:t,a=t=>o=i?o:t;if(t){const t=Object(n["Tb"])(s),e=Object(n["Tb"])(o);t<0&&e<0?a(0):t>0&&e>0&&r(0)}if(s===o){let e=1;(o>=Number.MAX_SAFE_INTEGER||s<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*o)),a(o+e),t||r(s-e)}this.min=s,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:n}=t;return n?(e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},o=this._range||this,r=Mn(s,o);return"ticks"===t.bounds&&Object(n["U"])(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const n=(i-e)/Math.max(t.length-1,1)/2;e-=n,i+=n}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return Object(n["Pb"])(t,this.chart.options.locale,this.options.ticks.format)}}class Pn extends Sn{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Object(n["Hb"])(t)?t:0,this.max=Object(n["Hb"])(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=Object(n["Ub"])(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/s))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function Cn(t){const e=t/Math.pow(10,Math.floor(Object(n["ac"])(t)));return 1===e}function Dn(t,e){const i=Math.floor(Object(n["ac"])(e.max)),s=Math.ceil(e.max/Math.pow(10,i)),o=[];let r=Object(n["c"])(t.min,Math.pow(10,Math.floor(Object(n["ac"])(e.min)))),a=Math.floor(Object(n["ac"])(r)),h=Math.floor(r/Math.pow(10,a)),l=a<0?Math.pow(10,Math.abs(a)):1;do{o.push({value:r,major:Cn(r)}),++h,10===h&&(h=1,++a,l=a>=0?1:l),r=Math.round(h*Math.pow(10,a)*l)/l}while(a0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Object(n["Hb"])(t)?Math.max(0,t):null,this.max=Object(n["Hb"])(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,s=this.max;const o=e=>i=t?i:e,r=t=>s=e?s:t,a=(t,e)=>Math.pow(10,Math.floor(Object(n["ac"])(t))+e);i===s&&(i<=0?(o(1),r(10)):(o(a(i,-1)),r(a(s,1)))),i<=0&&o(a(s,-1)),s<=0&&r(a(i,1)),this._zero&&this.min!==this._suggestedMin&&i===a(this.min,0)&&o(a(i,-1)),this.min=i,this.max=s}buildTicks(){const t=this.options,e={min:this._userMin,max:this._userMax},i=Dn(e,this);return"ticks"===t.bounds&&Object(n["U"])(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(t){return void 0===t?"0":Object(n["Pb"])(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Object(n["ac"])(t),this._valueRange=Object(n["ac"])(this.max)-Object(n["ac"])(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Object(n["ac"])(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Ln(t){const e=t.ticks;if(e.display&&t.display){const t=Object(n["l"])(e.backdropPadding);return Object(n["Wb"])(e.font&&e.font.size,n["Eb"].font.size)+t.height}return 0}function En(t,e,i){return i=Object(n["Cb"])(i)?i:[i],{w:Object(n["Z"])(t,e.string,i),h:i.length*e.lineHeight}}function Tn(t,e,i,n,s){return t===n||t===s?{start:e-i/2,end:e+i/2}:ts?{start:e-i,end:e}:{start:e,end:e+i}}function Rn(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),s=[],o=[],r=t._pointLabels.length,a=t.options.pointLabels,h=a.centerPointLabels?n["q"]/r:0;for(let l=0;le.r&&(a=(n.end-e.r)/o,t.r=Math.max(t.r,e.r+a)),s.starte.b&&(h=(s.end-e.b)/r,t.b=Math.max(t.b,e.b+h))}function zn(t,e,i){const s=[],o=t._pointLabels.length,r=t.options,a=Ln(r)/2,h=t.drawingArea,l=r.pointLabels.centerPointLabels?n["q"]/o:0;for(let c=0;c270||i<90)&&(t-=e),t}function Vn(t,e){const{ctx:i,options:{pointLabels:s}}=t;for(let o=e-1;o>=0;o--){const e=s.setContext(t.getPointLabelContext(o)),r=Object(n["p"])(e.font),{x:a,y:h,textAlign:l,left:c,top:d,right:u,bottom:f}=t._pointLabelItems[o],{backdropColor:b}=e;if(!Object(n["Lb"])(b)){const t=Object(n["zb"])(e.borderRadius),s=Object(n["l"])(e.backdropPadding);i.fillStyle=b;const o=c-s.left,r=d-s.top,a=u-c+s.width,h=f-d+s.height;Object.values(t).some(t=>0!==t)?(i.beginPath(),Object(n["xb"])(i,{x:o,y:r,w:a,h:h,radius:t}),i.fill()):i.fillRect(o,r,a,h)}Object(n["n"])(i,t._pointLabels[o],a,h+r.lineHeight/2,r,{color:e.color,textAlign:l,textBaseline:"middle"})}}function Nn(t,e,i,s){const{ctx:o}=t;if(i)o.arc(t.xCenter,t.yCenter,e,0,n["u"]);else{let i=t.getPointPosition(0,e);o.moveTo(i.x,i.y);for(let n=1;n{const i=Object(n["d"])(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){const t=this.options;t.display&&t.pointLabels.display?Rn(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,n){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,n))}getIndexAngle(t){const e=n["u"]/(this._pointLabels.length||1),i=this.options.startAngle||0;return Object(n["Bb"])(t*e+Object(n["Ub"])(i))}getDistanceFromCenterForValue(t){if(Object(n["Lb"])(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(Object(n["Lb"])(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t{if(0!==e){r=this.getDistanceFromCenterForValue(t.value);const i=n.setContext(this.getContext(e-1));Hn(this,i,r,s)}}),i.display){for(t.save(),o=s-1;o>=0;o--){const n=i.setContext(this.getPointLabelContext(o)),{color:s,lineWidth:h}=n;h&&s&&(t.lineWidth=h,t.strokeStyle=s,t.setLineDash(n.borderDash),t.lineDashOffset=n.borderDashOffset,r=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),a=this.getPointPosition(o,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(a.x,a.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const s=this.getIndexAngle(0);let o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(s),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((s,a)=>{if(0===a&&!e.reverse)return;const h=i.setContext(this.getContext(a)),l=Object(n["p"])(h.font);if(o=this.getDistanceFromCenterForValue(this.ticks[a].value),h.showLabelBackdrop){t.font=l.string,r=t.measureText(s.label).width,t.fillStyle=h.backdropColor;const e=Object(n["l"])(h.backdropPadding);t.fillRect(-r/2-e.left,-o-l.size/2-e.top,r+e.width,l.size+e.height)}Object(n["n"])(t,s.label,0,-o,l,{color:h.color})}),t.restore()}drawTitle(){}}Yn.id="radialLinear",Yn.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:at.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}},Yn.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Yn.descriptors={angleLines:{_fallback:"grid"}};const Un={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Xn=Object.keys(Un);function qn(t,e){return t-e}function Jn(t,e){if(Object(n["Lb"])(e))return null;const i=t._adapter,{parser:s,round:o,isoWeekday:r}=t._parseOpts;let a=e;return"function"===typeof s&&(a=s(a)),Object(n["Hb"])(a)||(a="string"===typeof s?i.parse(a,s):i.parse(a)),null===a?null:(o&&(a="week"!==o||!Object(n["Yb"])(r)&&!0!==r?i.startOf(a,o):i.startOf(a,"isoWeek",r)),+a)}function Kn(t,e,i,n){const s=Xn.length;for(let o=Xn.indexOf(t);o=Xn.indexOf(i);o--){const i=Xn[o];if(Un[i].common&&t._adapter.diff(s,n,i)>=e-1)return i}return Xn[i?Xn.indexOf(i):0]}function Zn(t){for(let e=Xn.indexOf(t)+1,i=Xn.length;e=e?i[s]:i[o];t[r]=!0}}else t[e]=!0}function ts(t,e,i,n){const s=t._adapter,o=+s.startOf(e[0].value,n),r=e[e.length-1].value;let a,h;for(a=o;a<=r;a=+s.add(a,1,n))h=i[a],h>=0&&(e[h].major=!0);return e}function es(t,e,i){const n=[],s={},o=e.length;let r,a;for(r=0;r+t.value))}initOffsets(t){let e,i,s=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),s=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),o=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;s=Object(n["f"])(s,0,r),o=Object(n["f"])(o,0,r),this._offsets={start:s,end:o,factor:1/(s+1+o)}}_generate(){const t=this._adapter,e=this.min,i=this.max,s=this.options,o=s.time,r=o.unit||Kn(o.minUnit,e,i,this._getLabelCapacity(e)),a=Object(n["Wb"])(o.stepSize,1),h="week"===r&&o.isoWeekday,l=Object(n["Yb"])(h)||!0===h,c={};let d,u,f=e;if(l&&(f=+t.startOf(f,"isoWeek",h)),f=+t.startOf(f,l?"day":r),t.diff(i,e,r)>1e5*a)throw new Error(e+" and "+i+" are too far apart with stepSize of "+a+" "+r);const b="data"===s.ticks.source&&this.getDataTimestamps();for(d=f,u=0;dt-e).map(t=>+t)}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,s){const o=this.options,r=o.time.displayFormats,a=this._unit,h=this._majorUnit,l=a&&r[a],c=h&&r[h],d=i[e],u=h&&c&&d&&d.major,f=this._adapter.format(t,s||(u?c:l)),b=o.ticks.callback;return b?Object(n["d"])(b,[f,e,i],this):f}generateTickLabels(t){let e,i,n;for(e=0,i=t.length;e0?r:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(t=0,e=n.length;t=t[h].pos&&e<=t[l].pos&&({lo:h,hi:l}=Object(n["A"])(t,"pos",e)),({pos:s,time:r}=t[h]),({pos:o,time:a}=t[l])):(e>=t[h].time&&e<=t[l].time&&({lo:h,hi:l}=Object(n["A"])(t,"time",e)),({time:s,pos:r}=t[h]),({time:o,pos:a}=t[l]));const c=o-s;return c?r+(a-r)*(e-s)/c:r}is.id="time",is.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class ss extends is{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=ns(e,this.min),this._tableRange=ns(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,n=[],s=[];let o,r,a,h,l;for(o=0,r=t.length;o=e&&h<=i&&n.push(h);if(n.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,r=n.length;o("number"===typeof t||t instanceof Number)&&isFinite(+t);function l(t,e){return h(t)?t:e}function c(t,e){return"undefined"===typeof t?e:t}const d=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,u=(t,e)=>"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function f(t,e,i){if(t&&"function"===typeof t.call)return t.apply(i,e)}function b(t,e,i,n){let s,o,h;if(r(t))if(o=t.length,n)for(s=o-1;s>=0;s--)e.call(i,t[s],s);else for(s=0;st,x:t=>t.x,y:t=>t.y};function w(t,e){const i=O[e]||(O[e]=j(e));return i(t)}function j(t){const e=M(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}function M(t){const e=t.split("."),i=[];let n="";for(const s of e)n+=s,n.endsWith("\\")?n=n.slice(0,-1)+".":(i.push(n),n="");return i}function k(t){return t.charAt(0).toUpperCase()+t.slice(1)}const S=t=>"undefined"!==typeof t,P=t=>"function"===typeof t,C=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};function D(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const A=Math.PI,L=2*A,E=L+A,T=Number.POSITIVE_INFINITY,R=A/180,I=A/2,z=A/4,F=2*A/3,W=Math.log10,B=Math.sign;function V(t){const e=Math.round(t);t=$(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(W(t))),n=t/i,s=n<=1?1:n<=2?2:n<=5?5:10;return s*i}function N(t){const e=[],i=Math.sqrt(t);let n;for(n=1;nt-e).pop(),e}function H(t){return!isNaN(parseFloat(t))&&isFinite(t)}function $(t,e,i){return Math.abs(t-e)=t}function U(t,e,i){let n,s,o;for(n=0,s=t.length;nh&&l=Math.min(e,i)-n&&t<=Math.max(e,i)+n}function st(t,e,i){i=i||(i=>t[i]1)n=o+s>>1,i(n)?o=n:s=n;return{lo:o,hi:s}}const ot=(t,e,i,n)=>st(t,i,n?n=>t[n][e]<=i:n=>t[n][e]st(t,i,n=>t[n][e]>=i);function at(t,e,i){let n=0,s=t.length;while(nn&&t[s-1]>i)s--;return n>0||s{const i="_onData"+k(e),n=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const s=n.apply(this,e);return t._chartjs.listeners.forEach(t=>{"function"===typeof t[i]&&t[i](...e)}),s}})}))}function ct(t,e){const i=t._chartjs;if(!i)return;const n=i.listeners,s=n.indexOf(e);-1!==s&&n.splice(s,1),n.length>0||(ht.forEach(e=>{delete t[e]}),delete t._chartjs)}function dt(t){const e=new Set;let i,n;for(i=0,n=t.length;iArray.prototype.slice.call(t));let s=!1,o=[];return function(...i){o=n(i),s||(s=!0,ut.call(window,()=>{s=!1,t.apply(e,o)}))}}function bt(t,e){let i;return function(...n){return e?(clearTimeout(i),i=setTimeout(t,e,n)):t.apply(this,n),e}}const gt=t=>"start"===t?"left":"end"===t?"right":"center",pt=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2,mt=(t,e,i,n)=>{const s=n?"left":"right";return t===s?i:"center"===t?(e+i)/2:e};function xt(t,e,i){const n=e.length;let s=0,o=n;if(t._sorted){const{iScale:r,_parsed:a}=t,h=r.axis,{min:l,max:c,minDefined:d,maxDefined:u}=r.getUserBounds();d&&(s=et(Math.min(ot(a,r.axis,l).lo,i?n:ot(e,h,r.getPixelForValue(l)).lo),0,n-1)),o=u?et(Math.max(ot(a,r.axis,c,!0).hi+1,i?0:ot(e,h,r.getPixelForValue(c),!0).hi+1),s,n)-s:n-s}return{start:s,count:o}}function _t(t){const{xScale:e,yScale:i,_scaleRanges:n}=t,s={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!n)return t._scaleRanges=s,!0;const o=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,s),o}const yt=t=>0===t||1===t,vt=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*L/i),Ot=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*L/i)+1,wt={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*I),easeOutSine:t=>Math.sin(t*I),easeInOutSine:t=>-.5*(Math.cos(A*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>yt(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>yt(t)?t:vt(t,.075,.3),easeOutElastic:t=>yt(t)?t:Ot(t,.075,.3),easeInOutElastic(t){const e=.1125,i=.45;return yt(t)?t:t<.5?.5*vt(2*t,e,i):.5+.5*Ot(2*t-1,e,i)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-wt.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*wt.easeInBounce(2*t):.5*wt.easeOutBounce(2*t-1)+.5}; -/*! - * @kurkle/color v0.2.1 - * https://github.com/kurkle/color#readme - * (c) 2022 Jukka Kurkela - * Released under the MIT License - */ -function jt(t){return t+.5|0}const Mt=(t,e,i)=>Math.max(Math.min(t,i),e);function kt(t){return Mt(jt(2.55*t),0,255)}function St(t){return Mt(jt(255*t),0,255)}function Pt(t){return Mt(jt(t/2.55)/100,0,1)}function Ct(t){return Mt(jt(100*t),0,100)}const Dt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},At=[..."0123456789ABCDEF"],Lt=t=>At[15&t],Et=t=>At[(240&t)>>4]+At[15&t],Tt=t=>(240&t)>>4===(15&t),Rt=t=>Tt(t.r)&&Tt(t.g)&&Tt(t.b)&&Tt(t.a);function It(t){var e,i=t.length;return"#"===t[0]&&(4===i||5===i?e={r:255&17*Dt[t[1]],g:255&17*Dt[t[2]],b:255&17*Dt[t[3]],a:5===i?17*Dt[t[4]]:255}:7!==i&&9!==i||(e={r:Dt[t[1]]<<4|Dt[t[2]],g:Dt[t[3]]<<4|Dt[t[4]],b:Dt[t[5]]<<4|Dt[t[6]],a:9===i?Dt[t[7]]<<4|Dt[t[8]]:255})),e}const zt=(t,e)=>t<255?e(t):"";function Ft(t){var e=Rt(t)?Lt:Et;return t?"#"+e(t.r)+e(t.g)+e(t.b)+zt(t.a,e):void 0}const Wt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Bt(t,e,i){const n=e*Math.min(i,1-i),s=(e,s=(e+t/30)%12)=>i-n*Math.max(Math.min(s-3,9-s,1),-1);return[s(0),s(8),s(4)]}function Vt(t,e,i){const n=(n,s=(n+t/60)%6)=>i-i*e*Math.max(Math.min(s,4-s,1),0);return[n(5),n(3),n(1)]}function Nt(t,e,i){const n=Bt(t,1,.5);let s;for(e+i>1&&(s=1/(e+i),e*=s,i*=s),s=0;s<3;s++)n[s]*=1-e-i,n[s]+=e;return n}function Ht(t,e,i,n,s){return t===s?(e-i)/n+(e.5?c/(2-o-r):c/(o+r),h=Ht(i,n,s,c,o),h=60*h+.5),[0|h,l||0,a]}function Yt(t,e,i,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,n)).map(St)}function Ut(t,e,i){return Yt(Bt,t,e,i)}function Xt(t,e,i){return Yt(Nt,t,e,i)}function qt(t,e,i){return Yt(Vt,t,e,i)}function Jt(t){return(t%360+360)%360}function Kt(t){const e=Wt.exec(t);let i,n=255;if(!e)return;e[5]!==i&&(n=e[6]?kt(+e[5]):St(+e[5]));const s=Jt(+e[2]),o=+e[3]/100,r=+e[4]/100;return i="hwb"===e[1]?Xt(s,o,r):"hsv"===e[1]?qt(s,o,r):Ut(s,o,r),{r:i[0],g:i[1],b:i[2],a:n}}function Gt(t,e){var i=$t(t);i[0]=Jt(i[0]+e),i=Ut(i),t.r=i[0],t.g=i[1],t.b=i[2]}function Zt(t){if(!t)return;const e=$t(t),i=e[0],n=Ct(e[1]),s=Ct(e[2]);return t.a<255?`hsla(${i}, ${n}%, ${s}%, ${Pt(t.a)})`:`hsl(${i}, ${n}%, ${s}%)`}const Qt={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},te={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function ee(){const t={},e=Object.keys(te),i=Object.keys(Qt);let n,s,o,r,a;for(n=0;n>16&255,o>>8&255,255&o]}return t}let ie;function ne(t){ie||(ie=ee(),ie.transparent=[0,0,0,0]);const e=ie[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const se=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function oe(t){const e=se.exec(t);let i,n,s,o=255;if(e){if(e[7]!==i){const t=+e[7];o=e[8]?kt(t):Mt(255*t,0,255)}return i=+e[1],n=+e[3],s=+e[5],i=255&(e[2]?kt(i):Mt(i,0,255)),n=255&(e[4]?kt(n):Mt(n,0,255)),s=255&(e[6]?kt(s):Mt(s,0,255)),{r:i,g:n,b:s,a:o}}}function re(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Pt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const ae=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,he=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function le(t,e,i){const n=he(Pt(t.r)),s=he(Pt(t.g)),o=he(Pt(t.b));return{r:St(ae(n+i*(he(Pt(e.r))-n))),g:St(ae(s+i*(he(Pt(e.g))-s))),b:St(ae(o+i*(he(Pt(e.b))-o))),a:t.a+i*(e.a-t.a)}}function ce(t,e,i){if(t){let n=$t(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*i,0===e?360:1)),n=Ut(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function de(t,e){return t?Object.assign(e||{},t):t}function ue(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=St(t[3]))):(e=de(t,{r:0,g:0,b:0,a:1}),e.a=St(e.a)),e}function fe(t){return"r"===t.charAt(0)?oe(t):Kt(t)}class be{constructor(t){if(t instanceof be)return t;const e=typeof t;let i;"object"===e?i=ue(t):"string"===e&&(i=It(t)||ne(t)||fe(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=de(this._rgb);return t&&(t.a=Pt(t.a)),t}set rgb(t){this._rgb=ue(t)}rgbString(){return this._valid?re(this._rgb):void 0}hexString(){return this._valid?Ft(this._rgb):void 0}hslString(){return this._valid?Zt(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,n=t.rgb;let s;const o=e===s?.5:e,r=2*o-1,a=i.a-n.a,h=((r*a===-1?r:(r+a)/(1+r*a))+1)/2;s=1-h,i.r=255&h*i.r+s*n.r+.5,i.g=255&h*i.g+s*n.g+.5,i.b=255&h*i.b+s*n.b+.5,i.a=o*i.a+(1-o)*n.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=le(this._rgb,t._rgb,e)),this}clone(){return new be(this.rgb)}alpha(t){return this._rgb.a=St(t),this}clearer(t){const e=this._rgb;return e.a*=1-t,this}greyscale(){const t=this._rgb,e=jt(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){const e=this._rgb;return e.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return ce(this._rgb,2,t),this}darken(t){return ce(this._rgb,2,-t),this}saturate(t){return ce(this._rgb,1,t),this}desaturate(t){return ce(this._rgb,1,-t),this}rotate(t){return Gt(this._rgb,t),this}}function ge(t){return new be(t)}function pe(t){if(t&&"object"===typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function me(t){return pe(t)?t:ge(t)}function xe(t){return pe(t)?t:ge(t).saturate(.5).darken(.1).hexString()}const _e=Object.create(null),ye=Object.create(null);function ve(t,e){if(!e)return t;const i=e.split(".");for(let n=0,s=i.length;nt.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>xe(e.backgroundColor),this.hoverBorderColor=(t,e)=>xe(e.borderColor),this.hoverColor=(t,e)=>xe(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return Oe(this,t,e)}get(t){return ve(this,t)}describe(t,e){return Oe(ye,t,e)}override(t,e){return Oe(_e,t,e)}route(t,e,i,n){const s=ve(this,t),o=ve(this,i),r="_"+e;Object.defineProperties(s,{[r]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[r],e=o[n];return a(t)?Object.assign({},e,t):c(t,e)},set(t){this[r]=t}}})}}var je=new we({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Me(t){return!t||o(t.size)||o(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function ke(t,e,i,n,s){let o=e[s];return o||(o=e[s]=t.measureText(s).width,i.push(s)),o>n&&(n=o),n}function Se(t,e,i,n){n=n||{};let s=n.data=n.data||{},o=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(s=n.data={},o=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let a=0;const h=i.length;let l,c,d,u,f;for(l=0;li.length){for(l=0;l0&&t.stroke()}}function Le(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.xe.top-i&&t.y0&&""!==a.strokeColor;let c,d;for(t.save(),t.font=s.string,Fe(t,a),c=0;c+t||0;function Ye(t,e){const i={},n=a(e),s=n?Object.keys(e):e,o=a(t)?n?i=>c(t[i],t[e[i]]):e=>t[e]:()=>t;for(const r of s)i[r]=$e(o(r));return i}function Ue(t){return Ye(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Xe(t){return Ye(t,["topLeft","topRight","bottomLeft","bottomRight"])}function qe(t){const e=Ue(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Je(t,e){t=t||{},e=e||je.font;let i=c(t.size,e.size);"string"===typeof i&&(i=parseInt(i,10));let n=c(t.style,e.style);n&&!(""+n).match(Ne)&&(console.warn('Invalid font style specified: "'+n+'"'),n="");const s={family:c(t.family,e.family),lineHeight:He(c(t.lineHeight,e.lineHeight),i),size:i,style:n,weight:c(t.weight,e.weight),string:""};return s.string=Me(s),s}function Ke(t,e,i,n){let s,o,a,h=!0;for(s=0,o=t.length;si&&0===t?0:t+e;return{min:r(n,-Math.abs(o)),max:r(s,o)}}function Ze(t,e){return Object.assign(Object.create(t),e)}function Qe(t,e=[""],i=t,n,s=(()=>t[0])){S(n)||(n=gi("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:n,_getTarget:s,override:s=>Qe([s,...t],e,i,n)};return new Proxy(o,{deleteProperty(e,i){return delete e[i],delete e._keys,delete t[0][i],!0},get(i,n){return si(i,n,()=>bi(n,e,t,i))},getOwnPropertyDescriptor(t,e){return Reflect.getOwnPropertyDescriptor(t._scopes[0],e)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(t,e){return pi(t).includes(e)},ownKeys(t){return pi(t)},set(t,e,i){const n=t._storage||(t._storage=s());return t[e]=n[e]=i,delete t._keys,!0}})}function ti(t,e,i,n){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:ei(t,n),setContext:e=>ti(t,e,i,n),override:s=>ti(t.override(s),e,i,n)};return new Proxy(s,{deleteProperty(e,i){return delete e[i],delete t[i],!0},get(t,e,i){return si(t,e,()=>oi(t,e,i))},getOwnPropertyDescriptor(e,i){return e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(e,i){return Reflect.has(t,i)},ownKeys(){return Reflect.ownKeys(t)},set(e,i,n){return t[i]=n,delete e[i],!0}})}function ei(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:n=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:i,indexable:n,isScriptable:P(i)?i:()=>i,isIndexable:P(n)?n:()=>n}}const ii=(t,e)=>t?t+k(e):e,ni=(t,e)=>a(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function si(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const n=i();return t[e]=n,n}function oi(t,e,i){const{_proxy:n,_context:s,_subProxy:o,_descriptors:a}=t;let h=n[e];return P(h)&&a.isScriptable(e)&&(h=ri(e,h,t,i)),r(h)&&h.length&&(h=ai(e,h,t,a.isIndexable)),ni(e,h)&&(h=ti(h,s,o&&o[e],a)),h}function ri(t,e,i,n){const{_proxy:s,_context:o,_subProxy:r,_stack:a}=i;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);return a.add(t),e=e(o,r||n),a.delete(t),ni(t,e)&&(e=di(s._scopes,s,t,e)),e}function ai(t,e,i,n){const{_proxy:s,_context:o,_subProxy:r,_descriptors:h}=i;if(S(o.index)&&n(t))e=e[o.index%e.length];else if(a(e[0])){const i=e,n=s._scopes.filter(t=>t!==i);e=[];for(const a of i){const i=di(n,s,t,a);e.push(ti(i,o,r&&r[t],h))}}return e}function hi(t,e,i){return P(t)?t(e,i):t}const li=(t,e)=>!0===t?e:"string"===typeof t?w(e,t):void 0;function ci(t,e,i,n,s){for(const o of e){const e=li(i,o);if(e){t.add(e);const o=hi(e._fallback,i,s);if(S(o)&&o!==i&&o!==n)return o}else if(!1===e&&S(n)&&i!==n)return null}return!1}function di(t,e,i,n){const s=e._rootScopes,o=hi(e._fallback,i,n),r=[...t,...s],a=new Set;a.add(n);let h=ui(a,r,i,o||i,n);return null!==h&&((!S(o)||o===i||(h=ui(a,r,o,h,n),null!==h))&&Qe(Array.from(a),[""],s,o,()=>fi(e,i,n)))}function ui(t,e,i,n,s){while(i)i=ci(t,e,i,n,s);return i}function fi(t,e,i){const n=t._getTarget();e in n||(n[e]={});const s=n[e];return r(s)&&a(i)?i:s}function bi(t,e,i,n){let s;for(const o of e)if(s=gi(ii(o,t),i),S(s))return ni(t,s)?di(i,n,t,s):s}function gi(t,e){for(const i of e){if(!i)continue;const e=i[t];if(S(e))return e}}function pi(t){let e=t._keys;return e||(e=t._keys=mi(t._scopes)),e}function mi(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}function xi(t,e,i,n){const{iScale:s}=t,{key:o="r"}=this._parsing,r=new Array(n);let a,h,l,c;for(a=0,h=n;ae"x"===t?"y":"x";function Oi(t,e,i,n){const s=t.skip?e:t,o=e,r=i.skip?e:i,a=G(o,s),h=G(r,o);let l=a/(a+h),c=h/(a+h);l=isNaN(l)?0:l,c=isNaN(c)?0:c;const d=n*l,u=n*c;return{previous:{x:o.x-d*(r.x-s.x),y:o.y-d*(r.y-s.y)},next:{x:o.x+u*(r.x-s.x),y:o.y+u*(r.y-s.y)}}}function wi(t,e,i){const n=t.length;let s,o,r,a,h,l=yi(t,0);for(let c=0;c!t.skip)),"monotone"===e.cubicInterpolationMode)Mi(t,s);else{let i=n?t[t.length-1]:t[0];for(o=0,r=t.length;owindow.getComputedStyle(t,null);function Ei(t,e){return Li(t).getPropertyValue(e)}const Ti=["top","right","bottom","left"];function Ri(t,e,i){const n={};i=i?"-"+i:"";for(let s=0;s<4;s++){const o=Ti[s];n[o]=parseFloat(t[e+"-"+o+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const Ii=(t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot);function zi(t,e){const i=t.touches,n=i&&i.length?i[0]:t,{offsetX:s,offsetY:o}=n;let r,a,h=!1;if(Ii(s,o,t.target))r=s,a=o;else{const t=e.getBoundingClientRect();r=n.clientX-t.left,a=n.clientY-t.top,h=!0}return{x:r,y:a,box:h}}function Fi(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:n}=e,s=Li(i),o="border-box"===s.boxSizing,r=Ri(s,"padding"),a=Ri(s,"border","width"),{x:h,y:l,box:c}=zi(t,i),d=r.left+(c&&a.left),u=r.top+(c&&a.top);let{width:f,height:b}=e;return o&&(f-=r.width+a.width,b-=r.height+a.height),{x:Math.round((h-d)/f*i.width/n),y:Math.round((l-u)/b*i.height/n)}}function Wi(t,e,i){let n,s;if(void 0===e||void 0===i){const o=Di(t);if(o){const t=o.getBoundingClientRect(),r=Li(o),a=Ri(r,"border","width"),h=Ri(r,"padding");e=t.width-h.width-a.width,i=t.height-h.height-a.height,n=Ai(r.maxWidth,o,"clientWidth"),s=Ai(r.maxHeight,o,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:n||T,maxHeight:s||T}}const Bi=t=>Math.round(10*t)/10;function Vi(t,e,i,n){const s=Li(t),o=Ri(s,"margin"),r=Ai(s.maxWidth,t,"clientWidth")||T,a=Ai(s.maxHeight,t,"clientHeight")||T,h=Wi(t,e,i);let{width:l,height:c}=h;if("content-box"===s.boxSizing){const t=Ri(s,"border","width"),e=Ri(s,"padding");l-=e.width+t.width,c-=e.height+t.height}return l=Math.max(0,l-o.width),c=Math.max(0,n?Math.floor(l/n):c-o.height),l=Bi(Math.min(l,r,h.maxWidth)),c=Bi(Math.min(c,a,h.maxHeight)),l&&!c&&(c=Bi(l/2)),{width:l,height:c}}function Ni(t,e,i){const n=e||1,s=Math.floor(t.height*n),o=Math.floor(t.width*n);t.height=s/n,t.width=o/n;const r=t.canvas;return r.style&&(i||!r.style.height&&!r.style.width)&&(r.style.height=t.height+"px",r.style.width=t.width+"px"),(t.currentDevicePixelRatio!==n||r.height!==s||r.width!==o)&&(t.currentDevicePixelRatio=n,r.height=s,r.width=o,t.ctx.setTransform(n,0,0,n,0,0),!0)}const Hi=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}return t}();function $i(t,e){const i=Ei(t,e),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Yi(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function Ui(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:"middle"===n?i<.5?t.y:e.y:"after"===n?i<1?t.y:e.y:i>0?e.y:t.y}}function Xi(t,e,i,n){const s={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},r=Yi(t,s,i),a=Yi(s,o,i),h=Yi(o,e,i),l=Yi(r,a,i),c=Yi(a,h,i);return Yi(l,c,i)}const qi=new Map;function Ji(t,e){e=e||{};const i=t+JSON.stringify(e);let n=qi.get(i);return n||(n=new Intl.NumberFormat(t,e),qi.set(i,n)),n}function Ki(t,e,i){return Ji(e,i).format(t)}const Gi=function(t,e){return{x(i){return t+t+e-i},setWidth(t){e=t},textAlign(t){return"center"===t?t:"right"===t?"left":"right"},xPlus(t,e){return t-e},leftForLtr(t,e){return t-e}}},Zi=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Qi(t,e,i){return t?Gi(e,i):Zi()}function tn(t,e){let i,n;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,n=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=n)}function en(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function nn(t){return"angle"===t?{between:tt,compare:Z,normalize:Q}:{between:nt,compare:(t,e)=>t-e,normalize:t=>t}}function sn({start:t,end:e,count:i,loop:n,style:s}){return{start:t%i,end:e%i,loop:n&&(e-t+1)%i===0,style:s}}function on(t,e,i){const{property:n,start:s,end:o}=i,{between:r,normalize:a}=nn(n),h=e.length;let l,c,{start:d,end:u,loop:f}=t;if(f){for(d+=h,u+=h,l=0,c=h;lh(s,m,g)&&0!==a(s,m),v=()=>0===a(o,g)||h(o,m,g),O=()=>x||y(),w=()=>!x||v();for(let j=c,M=c;j<=d;++j)p=e[j%r],p.skip||(g=l(p[n]),g!==m&&(x=h(g,s,o),null===_&&O()&&(_=0===a(g,s)?j:M),null!==_&&w()&&(b.push(sn({start:_,end:j,loop:u,count:r,style:f})),_=null),M=j,m=g));return null!==_&&b.push(sn({start:_,end:d,loop:u,count:r,style:f})),b}function an(t,e){const i=[],n=t.segments;for(let s=0;ss&&t[o%e].skip)o--;return o%=e,{start:s,end:o}}function ln(t,e,i,n){const s=t.length,o=[];let r,a=e,h=t[e];for(r=e+1;r<=i;++r){const i=t[r%s];i.skip||i.stop?h.skip||(n=!1,o.push({start:e%s,end:(r-1)%s,loop:n}),e=a=i.stop?r:null):(a=r,h.skip&&(e=r)),h=i}return null!==a&&o.push({start:e%s,end:a%s,loop:n}),o}function cn(t,e){const i=t.points,n=t.options.spanGaps,s=i.length;if(!s)return[];const o=!!t._loop,{start:r,end:a}=hn(i,s,o,n);if(!0===n)return dn(t,[{start:r,end:a,loop:o}],i,e);const h=a({search:"",dates:[new Date(k.getFullYear(),k.getMonth(),k.getDate()-0).toISOString().substr(0,10),(new Date).toISOString().substr(0,10)],datePickerMenu:!1}),computed:{...Object(x["c"])("LadleUse",{loading:"loading",data:"data"}),computedDateFormatted(){let t=[];return t.push(this.formatDate(this.dates[0])),t.push(this.formatDate(this.dates[1])),t.join(" ~ ")},headers(){var t=document.createElement("canvas"),e=t.getContext("2d");return e.font="12px Roboto, sans-serif",this.data.headers.forEach(t=>{t.divider=!0,t.align="center"}),this.data.headers}},methods:{...Object(x["d"])("LadleUse",{getExcel:"getExcel"}),...Object(x["b"])("LadleUse",{getData:"getData"}),Excel(){this.getExcel([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])},rowClick:function(t,e){let a=!e.isSelected;e.select(a)},input(t){2==t.length&&(this.datePickerMenu=!1)},formatDate(t){if(!t)return null;const[e,a,s]=t.split("-");return`${s}.${a}.${e}`},refreshData(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},mounted(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1])])}},v=D,w=(a("0b0d"),a("2877")),y=Object(w["a"])(v,g,b,!1,null,null,null);e["default"]=y.exports}}]); \ No newline at end of file diff --git a/dist/js/chunk-732e6f1b.a7b23949.js b/dist/js/chunk-732e6f1b.a7b23949.js deleted file mode 100644 index 4d89b76..0000000 --- a/dist/js/chunk-732e6f1b.a7b23949.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-732e6f1b"],{"2f4f":function(t,a,e){"use strict";e("9ff0")},"7e0a":function(t,a,e){"use strict";e.r(a);var s=e("8336"),i=e("b0af"),n=e("99d9"),o=e("a523"),d=e("8fea"),f=e("ce7e"),l=e("132d"),r=e("8860"),c=e("8e36"),h=function(){var t=this,a=t._self._c;return a(o["a"],{attrs:{id:"stat","fill-height":""}},[a(i["a"],{staticClass:"mx-auto",attrs:{tile:"",elevation:"5"}},[a(s["a"],{attrs:{icon:"",to:{path:"/"}}},[a(l["a"],[t._v("mdi-arrow-left")])],1),a(n["c"],[t.data.statInfo.length?a("span",{staticClass:"font-weight-black"},[t._v(t._s(t.$router.props)+" - "+t._s(t.data.statInfo.length)+" visits")]):t._e()]),t.loading?a(c["a"],{attrs:{indeterminate:""}}):t._e(),a(f["a"]),a(r["a"],{staticClass:"overflow-y-auto",attrs:{"two-line":"",id:"scrolling-techniques-7",height:"500",width:"1000","max-height":"500","max-width":"1000"}},[a(d["a"],{attrs:{headers:t.data.headers,items:t.data.statInfo,"disable-pagination":"","hide-default-footer":""}})],1)],1)],1)},u=[],g=e("2f62"),p={data:()=>({}),computed:{...Object(g["c"])("stat",{loading:"loading",data:"data"})},methods:{...Object(g["b"])("stat",{getData:"getDataInfo"})},mounted(){this.getData(this.$router.props).then(()=>{})}},w=p,b=(e("2f4f"),e("2877")),m=Object(b["a"])(w,h,u,!1,null,null,null);a["default"]=m.exports},"9ff0":function(t,a,e){}}]); \ No newline at end of file diff --git a/dist/js/chunk-734bbfda.c59614dc.js b/dist/js/chunk-734bbfda.c59614dc.js deleted file mode 100644 index fe15379..0000000 --- a/dist/js/chunk-734bbfda.c59614dc.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-734bbfda"],{"1ac7":function(t,e,i){"use strict";i("355a")},2677:function(t,e,i){"use strict";var s=i("8654");e["a"]=s["a"]},"2fa4":function(t,e,i){"use strict";i("20f6");var s=i("80d2");e["a"]=Object(s["j"])("spacer","div","v-spacer")},"355a":function(t,e,i){},"368e":function(t,e,i){},"36a7":function(t,e,i){},"3c93":function(t,e,i){},5803:function(t,e,i){},"5e23":function(t,e,i){},"627d":function(t,e,i){},"6ca7":function(t,e,i){},"8efc":function(t,e,i){},ac7c:function(t,e,i){"use strict";i("6ca7"),i("ec29");var s=i("9d26"),a=i("c37a"),n=i("fe09");e["a"]=n["a"].extend({name:"v-checkbox",props:{indeterminate:Boolean,indeterminateIcon:{type:String,default:"$checkboxIndeterminate"},offIcon:{type:String,default:"$checkboxOff"},onIcon:{type:String,default:"$checkboxOn"}},data(){return{inputIndeterminate:this.indeterminate}},computed:{classes(){return{...a["a"].options.computed.classes.call(this),"v-input--selection-controls":!0,"v-input--checkbox":!0,"v-input--indeterminate":this.inputIndeterminate}},computedIcon(){return this.inputIndeterminate?this.indeterminateIcon:this.isActive?this.onIcon:this.offIcon},validationState(){if(!this.isDisabled||this.inputIndeterminate)return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":null!==this.hasColor?this.computedColor:void 0}},watch:{indeterminate(t){this.$nextTick(()=>this.inputIndeterminate=t)},inputIndeterminate(t){this.$emit("update:indeterminate",t)},isActive(){this.indeterminate&&(this.inputIndeterminate=!1)}},methods:{genCheckbox(){const{title:t,...e}=this.attrs$;return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.$createElement(s["a"],this.setTextColor(this.validationState,{props:{dense:this.dense,dark:this.dark,light:this.light}}),this.computedIcon),this.genInput("checkbox",{...e,"aria-checked":this.inputIndeterminate?"mixed":this.isActive.toString()}),this.genRipple(this.setTextColor(this.rippleState))])},genDefaultSlot(){return[this.genCheckbox(),this.genLabel()]}}})},adda:function(t,e,i){"use strict";i("8efc");var s=i("90a2"),a=(i("36a7"),i("24b2")),n=i("58df"),o=i("80d2"),l=Object(n["a"])(a["a"]).extend({name:"v-responsive",props:{aspectRatio:[String,Number],contentClass:String},computed:{computedAspectRatio(){return Number(this.aspectRatio)},aspectStyle(){return this.computedAspectRatio?{paddingBottom:1/this.computedAspectRatio*100+"%"}:void 0},__cachedSizer(){return this.aspectStyle?this.$createElement("div",{style:this.aspectStyle,staticClass:"v-responsive__sizer"}):[]}},methods:{genContent(){return this.$createElement("div",{staticClass:"v-responsive__content",class:this.contentClass},Object(o["s"])(this))}},render(t){return t("div",{staticClass:"v-responsive",style:this.measurableStyles,on:this.$listeners},[this.__cachedSizer,this.genContent()])}}),r=l,c=i("7560"),h=i("d9f7"),d=i("d9bd");const u="undefined"!==typeof window&&"IntersectionObserver"in window;e["a"]=Object(n["a"])(r,c["a"]).extend({name:"v-img",directives:{intersect:s["a"]},props:{alt:String,contain:Boolean,eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},position:{type:String,default:"center center"},sizes:String,src:{type:[String,Object],default:""},srcset:String,transition:{type:[Boolean,String],default:"fade-transition"}},data(){return{currentSrc:"",image:null,isLoading:!0,calculatedAspectRatio:void 0,naturalWidth:void 0,hasError:!1}},computed:{computedAspectRatio(){return Number(this.normalisedSrc.aspect||this.calculatedAspectRatio)},normalisedSrc(){return this.src&&"object"===typeof this.src?{src:this.src.src,srcset:this.srcset||this.src.srcset,lazySrc:this.lazySrc||this.src.lazySrc,aspect:Number(this.aspectRatio||this.src.aspect)}:{src:this.src,srcset:this.srcset,lazySrc:this.lazySrc,aspect:Number(this.aspectRatio||0)}},__cachedImage(){if(!(this.normalisedSrc.src||this.normalisedSrc.lazySrc||this.gradient))return[];const t=[],e=this.isLoading?this.normalisedSrc.lazySrc:this.currentSrc;this.gradient&&t.push(`linear-gradient(${this.gradient})`),e&&t.push(`url("${e}")`);const i=this.$createElement("div",{staticClass:"v-image__image",class:{"v-image__image--preload":this.isLoading,"v-image__image--contain":this.contain,"v-image__image--cover":!this.contain},style:{backgroundImage:t.join(", "),backgroundPosition:this.position},key:+this.isLoading});return this.transition?this.$createElement("transition",{attrs:{name:this.transition,mode:"in-out"}},[i]):i}},watch:{src(){this.isLoading?this.loadImage():this.init(void 0,void 0,!0)},"$vuetify.breakpoint.width":"getSrc"},mounted(){this.init()},methods:{init(t,e,i){if(!u||i||this.eager){if(this.normalisedSrc.lazySrc){const t=new Image;t.src=this.normalisedSrc.lazySrc,this.pollForSize(t,null)}this.normalisedSrc.src&&this.loadImage()}},onLoad(){this.getSrc(),this.isLoading=!1,this.$emit("load",this.src),this.image&&(this.normalisedSrc.src.endsWith(".svg")||this.normalisedSrc.src.startsWith("data:image/svg+xml"))&&(this.image.naturalHeight&&this.image.naturalWidth?(this.naturalWidth=this.image.naturalWidth,this.calculatedAspectRatio=this.image.naturalWidth/this.image.naturalHeight):this.calculatedAspectRatio=1)},onError(){this.hasError=!0,this.$emit("error",this.src)},getSrc(){this.image&&(this.currentSrc=this.image.currentSrc||this.image.src)},loadImage(){const t=new Image;this.image=t,t.onload=()=>{t.decode?t.decode().catch(t=>{Object(d["c"])("Failed to decode image, trying to render anyway\n\nsrc: "+this.normalisedSrc.src+(t.message?"\nOriginal error: "+t.message:""),this)}).then(this.onLoad):this.onLoad()},t.onerror=this.onError,this.hasError=!1,this.sizes&&(t.sizes=this.sizes),this.normalisedSrc.srcset&&(t.srcset=this.normalisedSrc.srcset),t.src=this.normalisedSrc.src,this.$emit("loadstart",this.normalisedSrc.src),this.aspectRatio||this.pollForSize(t),this.getSrc()},pollForSize(t,e=100){const i=()=>{const{naturalHeight:s,naturalWidth:a}=t;s||a?(this.naturalWidth=a,this.calculatedAspectRatio=a/s):t.complete||!this.isLoading||this.hasError||null==e||setTimeout(i,e)};i()},genContent(){const t=r.options.methods.genContent.call(this);return this.naturalWidth&&this._b(t.data,"div",{style:{width:this.naturalWidth+"px"}}),t},__genPlaceholder(){const t=Object(o["s"])(this,"placeholder");if(t){const e=this.isLoading?[this.$createElement("div",{staticClass:"v-image__placeholder"},t)]:[];return this.transition?this.$createElement("transition",{props:{appear:!0,name:this.transition}},e):e[0]}}},render(t){const e=r.options.render.call(this,t),i=Object(h["a"])(e.data,{staticClass:"v-image",attrs:{"aria-label":this.alt,role:this.alt?"img":void 0},class:this.themeClasses,directives:u?[{name:"intersect",modifiers:{once:!0},value:{handler:this.init,options:this.options}}]:void 0});return e.children=[this.__cachedSizer,this.__cachedImage,this.__genPlaceholder(),this.genContent()],t(e.tag,i,e.children)}})},b688:function(t,e,i){"use strict";i.r(e);var s=i("8212"),a=i("8336"),n=i("b0af"),o=i("99d9"),l=i("ac7c"),r=i("62ad"),c=i("a523"),h=i("8fea"),d=i("2e4b"),u=(i("caad"),i("368e"),i("480e")),p=i("4ad4"),g=i("b848"),m=i("75eb"),v=(i("3c93"),i("a9ad")),f=i("7560"),y=i("f2e7"),b=i("58df"),S=i("80d2"),k=Object(b["a"])(v["a"],f["a"],y["a"]).extend({name:"v-overlay",props:{absolute:Boolean,color:{type:String,default:"#212121"},dark:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.46},value:{default:!0},zIndex:{type:[Number,String],default:5}},computed:{__scrim(){const t=this.setBackgroundColor(this.color,{staticClass:"v-overlay__scrim",style:{opacity:this.computedOpacity}});return this.$createElement("div",t)},classes(){return{"v-overlay--absolute":this.absolute,"v-overlay--active":this.isActive,...this.themeClasses}},computedOpacity(){return Number(this.isActive?this.opacity:0)},styles(){return{zIndex:this.zIndex}}},methods:{genContent(){return this.$createElement("div",{staticClass:"v-overlay__content"},Object(S["s"])(this))}},render(t){const e=[this.__scrim];return this.isActive&&e.push(this.genContent()),t("div",{staticClass:"v-overlay",on:this.$listeners,class:this.classes,style:this.styles},e)}}),C=k,x=i("2b0e"),w=x["a"].extend().extend({name:"overlayable",props:{hideOverlay:Boolean,overlayColor:String,overlayOpacity:[Number,String]},data(){return{animationFrame:0,overlay:null}},watch:{hideOverlay(t){this.isActive&&(t?this.removeOverlay():this.genOverlay())}},beforeDestroy(){this.removeOverlay()},methods:{createOverlay(){const t=new C({propsData:{absolute:this.absolute,value:!1,color:this.overlayColor,opacity:this.overlayOpacity}});t.$mount();const e=this.absolute?this.$el.parentNode:document.querySelector("[data-app]");e&&e.insertBefore(t.$el,e.firstChild),this.overlay=t},genOverlay(){if(this.hideScroll(),!this.hideOverlay)return this.overlay||this.createOverlay(),this.animationFrame=requestAnimationFrame(()=>{this.overlay&&(void 0!==this.activeZIndex?this.overlay.zIndex=String(this.activeZIndex-1):this.$el&&(this.overlay.zIndex=Object(S["u"])(this.$el)),this.overlay.value=!0)}),!0},removeOverlay(t=!0){this.overlay&&(Object(S["a"])(this.overlay.$el,"transitionend",()=>{this.overlay&&this.overlay.$el&&this.overlay.$el.parentNode&&!this.overlay.value&&!this.isActive&&(this.overlay.$el.parentNode.removeChild(this.overlay.$el),this.overlay.$destroy(),this.overlay=null)}),cancelAnimationFrame(this.animationFrame),this.overlay.value=!1),t&&this.showScroll()},scrollListener(t){if("key"in t){if(["INPUT","TEXTAREA","SELECT"].includes(t.target.tagName)||t.target.isContentEditable)return;const e=[S["y"].up,S["y"].pageup],i=[S["y"].down,S["y"].pagedown];if(e.includes(t.keyCode))t.deltaY=-1;else{if(!i.includes(t.keyCode))return;t.deltaY=1}}(t.target===this.overlay||"keydown"!==t.type&&t.target===document.body||this.checkPath(t))&&t.preventDefault()},hasScrollbar(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return(["auto","scroll"].includes(e.overflowY)||"SELECT"===t.tagName)&&t.scrollHeight>t.clientHeight||["auto","scroll"].includes(e.overflowX)&&t.scrollWidth>t.clientWidth},shouldScroll(t,e){if(t.hasAttribute("data-app"))return!1;const i=e.shiftKey||e.deltaX?"x":"y",s="y"===i?e.deltaY:e.deltaX||e.deltaY;let a,n;"y"===i?(a=0===t.scrollTop,n=t.scrollTop+t.clientHeight===t.scrollHeight):(a=0===t.scrollLeft,n=t.scrollLeft+t.clientWidth===t.scrollWidth);const o=s<0,l=s>0;return!(a||!o)||(!(n||!l)||!(!a&&!n||!t.parentNode)&&this.shouldScroll(t.parentNode,e))},isInside(t,e){return t===e||null!==t&&t!==document.body&&this.isInside(t.parentNode,e)},checkPath(t){const e=Object(S["g"])(t);if("keydown"===t.type&&e[0]===document.body){const e=this.$refs.dialog,i=window.getSelection().anchorNode;return!(e&&this.hasScrollbar(e)&&this.isInside(i,e))||!this.shouldScroll(e,t)}for(let i=0;i{this.isBooted=this.isActive,this.isActive&&this.show()})},beforeDestroy(){"undefined"!==typeof window&&this.unbind()},methods:{animateClick(){this.animate=!1,this.$nextTick(()=>{this.animate=!0,window.clearTimeout(this.animateTimeout),this.animateTimeout=window.setTimeout(()=>this.animate=!1,150)})},closeConditional(t){const e=t.target;return!(this._isDestroyed||!this.isActive||this.$refs.content.contains(e)||this.overlay&&e&&!this.overlay.$el.contains(e))&&this.activeZIndex>=this.getMaxZIndex()},hideScroll(){this.fullscreen?document.documentElement.classList.add("overflow-y-hidden"):w.options.methods.hideScroll.call(this)},show(){!this.fullscreen&&!this.hideOverlay&&this.genOverlay(),this.$nextTick(()=>{this.$nextTick(()=>{var t,e;(null===(t=this.$refs.dialog)||void 0===t?void 0:t.contains(document.activeElement))||(this.previousActiveElement=document.activeElement,null===(e=this.$refs.dialog)||void 0===e||e.focus()),this.bind()})})},bind(){window.addEventListener("focusin",this.onFocusin)},unbind(){window.removeEventListener("focusin",this.onFocusin)},onClickOutside(t){this.$emit("click:outside",t),this.persistent?this.noClickAnimation||this.animateClick():this.isActive=!1},onKeydown(t){if(t.keyCode===S["y"].esc&&!this.getOpenDependents().length)if(this.persistent)this.noClickAnimation||this.animateClick();else{this.isActive=!1;const t=this.getActivator();this.$nextTick(()=>t&&t.focus())}this.$emit("keydown",t)},onFocusin(t){if(!t||!this.retainFocus)return;const e=t.target;if(e&&this.$refs.dialog&&![document,this.$refs.dialog].includes(e)&&!this.$refs.dialog.contains(e)&&this.activeZIndex>=this.getMaxZIndex()&&!this.getOpenDependentElements().some(t=>t.contains(e))){const t=this.$refs.dialog.querySelectorAll('button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])'),e=[...t].find(t=>!t.hasAttribute("disabled")&&!t.matches('[tabindex="-1"]'));e&&e.focus()}},genContent(){return this.showLazyContent(()=>[this.$createElement(u["a"],{props:{root:!0,light:this.light,dark:this.dark}},[this.$createElement("div",{class:this.contentClasses,attrs:{role:"dialog","aria-modal":this.hideOverlay?void 0:"true",...this.getScopeIdAttrs()},on:{keydown:this.onKeydown},style:{zIndex:this.activeZIndex},ref:"content"},[this.genTransition()])])])},genTransition(){const t=this.genInnerContent();return this.transition?this.$createElement("transition",{props:{name:this.transition,origin:this.origin,appear:!0}},[t]):t},genInnerContent(){const t={class:this.classes,attrs:{tabindex:this.isActive?0:void 0},ref:"dialog",directives:[{name:"click-outside",value:{handler:this.onClickOutside,closeConditional:this.closeConditional,include:this.getOpenDependentElements}},{name:"show",value:this.isActive}],style:{transformOrigin:this.origin}};return this.fullscreen||(t.style={...t.style,maxWidth:Object(S["h"])(this.maxWidth),width:Object(S["h"])(this.width)}),this.$createElement("div",t,this.getContentSlot())}},render(t){return t("div",{staticClass:"v-dialog__container",class:{"v-dialog__container--attached":""===this.attach||!0===this.attach||"attach"===this.attach}},[this.genActivator(),this.genContent()])}}),B=i("ce7e"),F=(i("13d5"),i("5803"),i("2677")),j=i("cc20"),L=i("d9f7"),D=F["a"].extend({name:"v-file-input",model:{prop:"value",event:"change"},props:{chips:Boolean,clearable:{type:Boolean,default:!0},counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,placeholder:String,prependIcon:{type:String,default:"$file"},readonly:{type:Boolean,default:!1},showSize:{type:[Boolean,Number],default:!1,validator:t=>"boolean"===typeof t||[1e3,1024].includes(t)},smallChips:Boolean,truncateLength:{type:[Number,String],default:22},type:{type:String,default:"file"},value:{default:void 0,validator:t=>Object(S["H"])(t).every(t=>null!=t&&"object"===typeof t)}},computed:{classes(){return{...F["a"].options.computed.classes.call(this),"v-file-input":!0}},computedCounterValue(){const t=this.multiple&&this.lazyValue?this.lazyValue.length:this.lazyValue instanceof File?1:0;if(!this.showSize)return this.$vuetify.lang.t(this.counterString,t);const e=this.internalArrayValue.reduce((t,{size:e=0})=>t+e,0);return this.$vuetify.lang.t(this.counterSizeString,t,Object(S["w"])(e,1024===this.base))},internalArrayValue(){return Object(S["H"])(this.internalValue)},internalValue:{get(){return this.lazyValue},set(t){this.lazyValue=t,this.$emit("change",this.lazyValue)}},isDirty(){return this.internalArrayValue.length>0},isLabelActive(){return this.isDirty},text(){return this.isDirty||!this.persistentPlaceholder&&!this.isFocused&&this.hasLabel?this.internalArrayValue.map(t=>{const{name:e="",size:i=0}=t,s=this.truncateText(e);return this.showSize?`${s} (${Object(S["w"])(i,1024===this.base)})`:s}):[this.placeholder]},base(){return"boolean"!==typeof this.showSize?this.showSize:void 0},hasChips(){return this.chips||this.smallChips}},watch:{readonly:{handler(t){!0===t&&Object(A["b"])("readonly is not supported on ",this)},immediate:!0},value(t){const e=this.multiple?t:t?[t]:[];Object(S["k"])(e,this.$refs.input.files)||(this.$refs.input.value="")}},methods:{clearableCallback(){this.internalValue=this.multiple?[]:null,this.$refs.input.value=""},genChips(){return this.isDirty?this.text.map((t,e)=>this.$createElement(j["a"],{props:{small:this.smallChips},on:{"click:close":()=>{const t=this.internalValue;t.splice(e,1),this.internalValue=t}}},[t])):[]},genControl(){const t=F["a"].options.methods.genControl.call(this);return this.hideInput&&(t.data.style=Object(L["d"])(t.data.style,{display:"none"})),t},genInput(){const t=F["a"].options.methods.genInput.call(this);return t.data.attrs.multiple=this.multiple,delete t.data.domProps.value,delete t.data.on.input,t.data.on.change=this.onInput,[this.genSelections(),t]},genPrependSlot(){if(!this.prependIcon)return null;const t=this.genIcon("prepend",()=>{this.$refs.input.click()});return this.genSlot("prepend","outer",[t])},genSelectionText(){const t=this.text.length;return t<2?this.text:this.showSize&&!this.counter?[this.computedCounterValue]:[this.$vuetify.lang.t(this.counterString,t)]},genSelections(){const t=[];return this.isDirty&&this.$scopedSlots.selection?this.internalArrayValue.forEach((e,i)=>{this.$scopedSlots.selection&&t.push(this.$scopedSlots.selection({text:this.text[i],file:e,index:i}))}):t.push(this.hasChips&&this.isDirty?this.genChips():this.genSelectionText()),this.$createElement("div",{staticClass:"v-file-input__text",class:{"v-file-input__text--placeholder":this.placeholder&&!this.isDirty,"v-file-input__text--chips":this.hasChips&&!this.$scopedSlots.selection}},t)},genTextFieldSlot(){const t=F["a"].options.methods.genTextFieldSlot.call(this);return t.data.on={...t.data.on||{},click:t=>{t.target&&"LABEL"===t.target.nodeName||this.$refs.input.click()}},t},onInput(t){const e=[...t.target.files||[]];this.internalValue=this.multiple?e:e[0],this.initialValue=this.internalValue},onKeyDown(t){this.$emit("keydown",t)},truncateText(t){if(t.length({initialValue:null,isBooted:!1,otp:[]}),computed:{outlined(){return!this.plain},classes(){return{...P["a"].options.computed.classes.call(this),...R["a"].options.computed.classes.call(this),"v-otp-input--plain":this.plain}}},watch:{isFocused:"updateValue",value(t){this.lazyValue=t,this.otp=(null===t||void 0===t?void 0:t.split(""))||[]}},created(){var t;this.$attrs.hasOwnProperty("browser-autocomplete")&&Object(A["a"])("browser-autocomplete","autocomplete",this),this.otp=(null===(t=this.internalValue)||void 0===t?void 0:t.split(""))||[]},mounted(){requestAnimationFrame(()=>this.isBooted=!0)},methods:{focus(t,e){this.onFocus(t,e||0)},genInputSlot(t){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor,{staticClass:"v-input__slot",style:{height:Object(S["h"])(this.height)},on:{click:()=>this.onClick(t),mousedown:e=>this.onMouseDown(e,t),mouseup:e=>this.onMouseUp(e,t)}}),[this.genDefaultSlot(t)])},genControl(t){return this.$createElement("div",{staticClass:"v-input__control"},[this.genInputSlot(t)])},genDefaultSlot(t){return[this.genFieldset(),this.genTextFieldSlot(t)]},genContent(){return Array.from({length:+this.length},(t,e)=>this.$createElement("div",this.setTextColor(this.validationState,{staticClass:"v-input",class:this.classes}),[this.genControl(e)]))},genFieldset(){return this.$createElement("fieldset",{attrs:{"aria-hidden":!0}},[this.genLegend()])},genLegend(){const t=this.$createElement("span",{domProps:{innerHTML:"​"}});return this.$createElement("legend",{style:{width:"0px"}},[t])},genInput(t){const e=Object.assign({},this.listeners$);return delete e.change,this.$createElement("input",{style:{},domProps:{value:this.otp[t],min:"number"===this.type?0:null},attrs:{...this.attrs$,autocomplete:"one-time-code",disabled:this.isDisabled,readonly:this.isReadonly,type:this.type,id:`${this.computedId}--${t}`,class:"otp-field-box--"+t},on:Object.assign(e,{blur:this.onBlur,input:e=>this.onInput(e,t),focus:e=>this.onFocus(e,t),keydown:this.onKeyDown,keyup:e=>this.onKeyUp(e,t)}),ref:"input",refInFor:!0})},genTextFieldSlot(t){return this.$createElement("div",{staticClass:"v-text-field__slot"},[this.genInput(t)])},onBlur(t){this.isFocused=!1,t&&this.$nextTick(()=>this.$emit("blur",t))},onClick(t){this.isFocused||this.isDisabled||!this.$refs.input[t]||this.onFocus(void 0,t)},onFocus(t,e){null===t||void 0===t||t.preventDefault(),null===t||void 0===t||t.stopPropagation();const i=this.$refs.input,s=this.$refs.input&&i[e||0];if(s)return document.activeElement!==s?(s.focus(),s.select()):void(this.isFocused||(this.isFocused=!0,s.select(),t&&this.$emit("focus",t)))},onInput(t,e){const i=+this.length-1,s=t.target,a=s.value,n=(null===a||void 0===a?void 0:a.split(""))||[],o=[...this.otp];for(let l=0;li)break;o[t]=n[l].toString()}n.length||o.splice(e,1),this.otp=o,this.internalValue=this.otp.join(""),e+n.length>=+this.length?(this.onCompleted(),this.clearFocus(e)):n.length&&this.changeFocus(e+n.length)},clearFocus(t){const e=this.$refs.input[t];e.blur()},onKeyDown(t){t.keyCode===S["y"].enter&&this.$emit("change",this.internalValue),this.$emit("keydown",t)},onMouseDown(t,e){t.target!==this.$refs.input[e]&&(t.preventDefault(),t.stopPropagation()),P["a"].options.methods.onMouseDown.call(this,t)},onMouseUp(t,e){this.hasMouseDown&&this.focus(t,e),P["a"].options.methods.onMouseUp.call(this,t)},changeFocus(t){this.onFocus(void 0,t||0)},updateValue(t){this.hasColor=t,t?this.initialValue=this.lazyValue:this.initialValue!==this.lazyValue&&this.$emit("change",this.lazyValue)},onKeyUp(t,e){t.preventDefault();const i=t.key;if(!["Tab","Shift","Meta","Control","Alt"].includes(i)&&!["Delete"].includes(i))return"ArrowLeft"===i||"Backspace"===i&&!this.otp[e]?e>0&&this.changeFocus(e-1):"ArrowRight"===i?e+1<+this.length&&this.changeFocus(e+1):void 0},onCompleted(){const t=this.otp.join("");t.length===+this.length&&this.$emit("finish",t)}},render(t){return t("div",{staticClass:"v-otp-input",class:this.themeClasses},this.genContent())}}),U=i("0fd9"),K=i("9e88"),Z=(i("ca71"),i("8dd9")),Y=i("fe6c"),q=Object(b["a"])(Z["a"],v["a"],y["a"],Object(Y["b"])(["absolute","bottom","left","right","top"])).extend({name:"v-snackbar",props:{app:Boolean,centered:Boolean,contentClass:{type:String,default:""},multiLine:Boolean,text:Boolean,timeout:{type:[Number,String],default:5e3},transition:{type:[Boolean,String],default:"v-snack-transition",validator:t=>"string"===typeof t||!1===t},vertical:Boolean},data:()=>({activeTimeout:-1}),computed:{classes(){return{"v-snack--absolute":this.absolute,"v-snack--active":this.isActive,"v-snack--bottom":this.bottom||!this.top,"v-snack--centered":this.centered,"v-snack--has-background":this.hasBackground,"v-snack--left":this.left,"v-snack--multi-line":this.multiLine&&!this.vertical,"v-snack--right":this.right,"v-snack--text":this.text,"v-snack--top":this.top,"v-snack--vertical":this.vertical}},hasBackground(){return!this.text&&!this.outlined},isDark(){return this.hasBackground?!this.light:f["a"].options.computed.isDark.call(this)},styles(){if(this.absolute||!this.app)return{};const{bar:t,bottom:e,footer:i,insetFooter:s,left:a,right:n,top:o}=this.$vuetify.application;return{paddingBottom:Object(S["h"])(e+i+s),paddingLeft:Object(S["h"])(a),paddingRight:Object(S["h"])(n),paddingTop:Object(S["h"])(t+o)}}},watch:{isActive:"setTimeout",timeout:"setTimeout"},mounted(){this.isActive&&this.setTimeout()},created(){this.$attrs.hasOwnProperty("auto-height")&&Object(A["e"])("auto-height",this),0==this.timeout&&Object(A["d"])('timeout="0"',"-1",this)},methods:{genActions(){return this.$createElement("div",{staticClass:"v-snack__action "},[Object(S["s"])(this,"action",{attrs:{class:"v-snack__btn"}})])},genContent(){return this.$createElement("div",{staticClass:"v-snack__content",class:{[this.contentClass]:!0},attrs:{role:"status","aria-live":"polite"}},[Object(S["s"])(this)])},genWrapper(){const t=this.hasBackground?this.setBackgroundColor:this.setTextColor,e=t(this.color,{staticClass:"v-snack__wrapper",class:Z["a"].options.computed.classes.call(this),style:Z["a"].options.computed.styles.call(this),directives:[{name:"show",value:this.isActive}],on:{pointerenter:()=>window.clearTimeout(this.activeTimeout),pointerleave:this.setTimeout}});return this.$createElement("div",e,[this.genContent(),this.genActions()])},genTransition(){return this.$createElement("transition",{props:{name:this.transition}},[this.genWrapper()])},setTimeout(){window.clearTimeout(this.activeTimeout);const t=Number(this.timeout);this.isActive&&![0,-1].includes(t)&&(this.activeTimeout=window.setTimeout(()=>{this.isActive=!1},t))}},render(t){return t("div",{staticClass:"v-snack",class:this.classes,style:this.styles},[!1!==this.transition?this.genTransition():this.genWrapper()])}}),X=i("2fa4"),J=(i("5e23"),i("adda")),G=Z["a"].extend({name:"v-toolbar",props:{absolute:Boolean,bottom:Boolean,collapse:Boolean,dense:Boolean,extended:Boolean,extensionHeight:{default:48,type:[Number,String]},flat:Boolean,floating:Boolean,prominent:Boolean,short:Boolean,src:{type:[String,Object],default:""},tag:{type:String,default:"header"}},data:()=>({isExtended:!1}),computed:{computedHeight(){const t=this.computedContentHeight;if(!this.isExtended)return t;const e=parseInt(this.extensionHeight);return this.isCollapsed?t:t+(isNaN(e)?0:e)},computedContentHeight(){return this.height?parseInt(this.height):this.isProminent&&this.dense?96:this.isProminent&&this.short?112:this.isProminent?128:this.dense?48:this.short||this.$vuetify.breakpoint.smAndDown?56:64},classes(){return{...Z["a"].options.computed.classes.call(this),"v-toolbar":!0,"v-toolbar--absolute":this.absolute,"v-toolbar--bottom":this.bottom,"v-toolbar--collapse":this.collapse,"v-toolbar--collapsed":this.isCollapsed,"v-toolbar--dense":this.dense,"v-toolbar--extended":this.isExtended,"v-toolbar--flat":this.flat,"v-toolbar--floating":this.floating,"v-toolbar--prominent":this.isProminent}},isCollapsed(){return this.collapse},isProminent(){return this.prominent},styles(){return{...this.measurableStyles,height:Object(S["h"])(this.computedHeight)}}},created(){const t=[["app",""],["manual-scroll",''],["clipped-left",""],["clipped-right",""],["inverted-scroll",""],["scroll-off-screen",""],["scroll-target",""],["scroll-threshold",""],["card",""]];t.forEach(([t,e])=>{this.$attrs.hasOwnProperty(t)&&Object(A["a"])(t,e,this)})},methods:{genBackground(){const t={height:Object(S["h"])(this.computedHeight),src:this.src},e=this.$scopedSlots.img?this.$scopedSlots.img({props:t}):this.$createElement(J["a"],{props:t});return this.$createElement("div",{staticClass:"v-toolbar__image"},[e])},genContent(){return this.$createElement("div",{staticClass:"v-toolbar__content",style:{height:Object(S["h"])(this.computedContentHeight)}},Object(S["s"])(this))},genExtension(){return this.$createElement("div",{staticClass:"v-toolbar__extension",style:{height:Object(S["h"])(this.extensionHeight)}},Object(S["s"])(this,"extension"))}},render(t){this.isExtended=this.extended||!!this.$scopedSlots.extension;const e=[this.genContent()],i=this.setBackgroundColor(this.color,{class:this.classes,style:this.styles,on:this.$listeners});return this.isExtended&&e.push(this.genExtension()),(this.src||this.$scopedSlots.img)&&e.unshift(this.genBackground()),t(this.tag,i,e)}});const Q=Object(S["j"])("v-toolbar__title");Object(S["j"])("v-toolbar__items");var tt=function(){var t=this,e=t._self._c;return e(c["a"],{staticClass:"pa-10",attrs:{fluid:"",id:"PRB_FileControl"}},[e(n["a"],{staticClass:"mx-auto",attrs:{"max-width":"1000",tile:""}},[e(G,{attrs:{elevation:"2",color:"purple darken-2",dark:""}},[e(Q,[e(V["a"],{staticClass:"pa-0"},[e(s["a"],[e(T["a"],{attrs:{"x-large":"",color:"purple accent-1"}},[t._v(" mdi-file-check ")])],1),e(z["a"],{staticClass:"pa-4"},[e(z["c"],{staticClass:"text-h6"},[t._v(" ПРБ ")]),e(z["b"],[t._v(" файловый менеджер ")])],1)],1)],1),e(X["a"]),e(a["a"],{attrs:{icon:""},on:{click:function(e){e.stopPropagation(),t.dialog.log=!0}}},[e(T["a"],[t._v(t._s(t.accountIcon))])],1),e(I,{attrs:{"max-width":"350"},model:{value:t.dialog.log,callback:function(e){t.$set(t.dialog,"log",e)},expression:"dialog.log"}},[e(n["a"],{directives:[{name:"show",rawName:"v-show",value:t.isLogging,expression:"isLogging"}]},[e(o["c"],{staticClass:"text-h5 grey lighten-2"},[t._v(" Администратор ")]),e(B["a"]),e(o["a"],[e(X["a"]),e(a["a"],{attrs:{color:"purple darken-2",dark:""},on:{click:t.loggingOFF}},[t._v(" Выйти ")])],1)],1),e(n["a"],{directives:[{name:"show",rawName:"v-show",value:!t.isLogging,expression:"!isLogging"}],staticStyle:{height:"250px"}},[e(o["c"],{staticClass:"text-h5 grey lighten-2"},[t._v(" Введите пароль ")]),e(o["b"],[e(W,{staticClass:"pt-4",attrs:{type:"password",length:"6"},on:{finish:t.passCheck},model:{value:t.pass.val,callback:function(e){t.$set(t.pass,"val",e)},expression:"pass.val"}})],1),e(B["a"]),e(o["a"],[e(U["a"],[e(X["a"]),e(r["a"],{attrs:{cols:"8"}},[e(l["a"],{attrs:{label:"запомнить пароль",color:"purple darken-2","hide-details":""},model:{value:t.pass.select,callback:function(e){t.$set(t.pass,"select",e)},expression:"pass.select"}})],1)],1)],1)],1)],1)],1),e(c["a"],[e(G,{attrs:{flat:""}},[e(r["a"],{staticStyle:{"min-width":"200px","max-width":"100px"}},[e(N["a"],{attrs:{"close-on-content-click":!1,"nudge-right":40,"nudge-top":-5,transition:"scale-transition","offset-y":"","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function({on:i}){return[e(R["a"],t._g({staticClass:"datePicker",attrs:{"prepend-icon":"event",readonly:"",outlined:"","hide-details":"",dense:"",disabled:t.loading},model:{value:t.computedDateFormatted,callback:function(e){t.computedDateFormatted=e},expression:"computedDateFormatted"}},i))]}}]),model:{value:t.datePickerMenu,callback:function(e){t.datePickerMenu=e},expression:"datePickerMenu"}},[e(d["a"],{attrs:{"popover-align":"center"},on:{input:function(e){t.datePickerMenu=!1},change:function(e){return t.getData(t.computedDateFormatted)}},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}})],1)],1),e(r["a"],{directives:[{name:"show",rawName:"v-show",value:t.isLogging,expression:"isLogging"}],staticStyle:{"min-width":"295px"}},[e(D,{staticClass:"pt-7",attrs:{label:"Выберите файл (doc, xls)",outlined:"",dense:"",accept:".xlsx, .docx, .xls, .doc"},on:{change:t.getFile},model:{value:t.file.input,callback:function(e){t.$set(t.file,"input",e)},expression:"file.input"}})],1),e(a["a"],{directives:[{name:"show",rawName:"v-show",value:t.isLogging,expression:"isLogging"}],staticClass:"ma-2 white--text",attrs:{loading:t.loading_file,disabled:!t.file.input,color:"success"},on:{click:t.fileUpload}},[t._v(" Загрузить "),e(T["a"],{attrs:{right:"",dark:""}},[t._v(" mdi-cloud-upload ")])],1),e(X["a"]),e(a["a"],{attrs:{icon:"",disabled:!t.selectState||t.loading,href:t.baseURL+t.file.name,download:""},on:{click:function(e){return t.setHistory(t.file.id)}}},[e(T["a"],[t._v("mdi-download")])],1),e(a["a"],{directives:[{name:"show",rawName:"v-show",value:t.isLogging,expression:"isLogging"}],attrs:{icon:"",color:"red lighten-1",disabled:!t.selectState||t.loading},on:{click:t.deleteFile}},[e(T["a"],[t._v("mdi-delete")])],1)],1),e(h["a"],{attrs:{headers:t.headers,items:t.data.items,loading:t.loading,"selectable-key":"id","single-select":"","fixed-header":"","disable-pagination":"","hide-default-footer":"",dense:""},on:{"click:row":t.rowClick},scopedSlots:t._u([{key:"item.file_name",fn:function({item:i}){return[e(T["a"],[t._v(" "+t._s(t.getIcon(i.file_name))+" ")]),t._v(" "+t._s(i.file_name)+" ")]}},{key:"item.isCompleted",fn:function({item:i}){return[e(K["a"],{attrs:{color:"purple darken-2",ripple:!1,value:0!==i.isCompleted},on:{input:function(e){return t.inputCompleted({id:i.id,value:!0===e?1:0})}}})]}},{key:"item.id",fn:function({item:i}){return[e(a["a"],{staticClass:"ml-2",attrs:{text:"",icon:""},on:{click:function(e){e.stopPropagation(),t.dialog.history=!0,t.file.name=i.file_name,t.getHistory({date:t.date,id:i.id})}}},[e(T["a"],[t._v("mdi-information")])],1)]}}])})],1)],1),e(I,{attrs:{transition:"dialog-bottom-transition","max-width":"700"},model:{value:t.dialog.history,callback:function(e){t.$set(t.dialog,"history",e)},expression:"dialog.history"}},[e(n["a"],{attrs:{elevation:""}},[e(G,{attrs:{color:"purple darken-2",dark:""}},[e(T["a"],{staticClass:"ma-2"},[t._v(" "+t._s(t.getIcon(t.file.name))+" ")]),t._v(" "+t._s(t.file.name))],1),e(o["b"],{staticClass:"pa-4"},[e(h["a"],{attrs:{headers:t.history.headers,items:t.history.items,loading:t.loading_history,"disable-pagination":"","hide-default-footer":"",dense:""}})],1),e(o["a"],{staticClass:"justify-end"},[e(a["a"],{attrs:{text:""},on:{click:function(e){t.dialog.history=!1}}},[t._v("Закрыть")])],1)],1)],1),e(q,{attrs:{vertical:"",top:"",right:"",color:t.snackbarColor},scopedSlots:t._u([{key:"action",fn:function({attrs:i}){return[e(a["a"],t._b({attrs:{text:""},on:{click:function(e){t.snackbar=!1}}},"v-btn",i,!1),[t._v(" ok ")])]}}]),model:{value:t.snackbar,callback:function(e){t.snackbar=e},expression:"snackbar"}},[t._v(" "+t._s(t.uploadText)+" ")])],1)},et=[],it=i("2f62"),st={data:t=>({file:{name:null,id:null,input:null,data:null},dialog:{log:!1,history:!1},pass:{val:null,select:!0},selectState:!1,snackbar:!1,date:(new Date).toISOString().substr(0,10),dateFormatted:t.formatDate((new Date).toISOString().substr(0,10)),datePickerMenu:!1,extensionsList:[{value:"mdi-file-excel",extension:["xlsx"]},{value:"mdi-file-word",extension:["docx"]}]}),computed:{...Object(it["c"])("PRB_FileControl",{loading:"loading",loading_file:"loading_file",loading_history:"loading_history",isLogging:"isLogging",uploadText:"uploadText",uploadStatus:"uploadStatus",data:"data",history:"history"}),baseURL(){return"http://192.168.76.100:81//_api_server_vue/modules/PRB_FileControl/uploads/"},headers(){var t=document.createElement("canvas"),e=t.getContext("2d");return e.font="12px Roboto, sans-serif",this.data.headers.forEach(t=>{this.isLogging?t.align=" visible":"isCompleted"===t.value&&(t.align=" d-none"),this.isLogging?t.align=" visible":"id"===t.value&&(t.align=" d-none"),"file_path"===t.value&&(t.align=" d-none"),"isCompleted"===t.value&&(t.width="11%"),this.isLogging?"file_name"===t.value&&(t.width="60%"):"file_name"===t.value&&(t.width="80%")}),this.data.headers},computedDateFormatted(){return this.formatDate(this.date)},accountIcon(){return this.isLogging?"mdi-account-check":"mdi-account-off"},snackbarColor(){return this.uploadStatus?"green darken-4":"red darken-4"}},methods:{...Object(it["d"])("PRB_FileControl",{setStorage:"setStorage"}),...Object(it["b"])("PRB_FileControl",{File_Upload:"File_Upload",getData:"getData",getStorage:"getStorage",logging:"logging",logout:"logout",setCompleted:"setCompleted",setHistory:"setHistory",getHistory:"getHistory",deleteData:"deleteData"}),getIcon(t){if(t){let e=this.extensionsList.find(e=>{let{extension:i}=e;return Array.isArray(i)?i.includes(t.split(".").pop()):"string"===typeof i?i===t:void 0})||{};return e.value||"mdi-file"}},inputCompleted(t){this.setCompleted(t)},rowClick(t,e){this.selectState=!e.isSelected,this.file.name=t.file_name,this.file.id=t.id,e.select(this.selectState)},formatDate(t){if(!t)return null;const[e,i,s]=t.split("-");return`${s}.${i}.${e}`},passCheck(){this.logging(this.pass.val),this.pass.select&&this.setStorage(this.pass.val),this.dialog.log=!1,this.pass.val="",this.reload()},loggingOFF(){this.logout(),this.dialog.log=!1,this.pass.val="",this.reload()},getFile(t){const e=new FormData;e.append("file",t),this.file.data=e},fileUpload(){this.File_Upload({file:this.file.data,date:this.formatDate(this.date)}).then(()=>{this.file.input=null,this.getData(this.formatDate(this.date))}).catch(()=>{this.file.input=null}).finally(()=>{this.snackbar=!0})},deleteFile(){this.deleteData({id:this.file.id,name:this.file.name}).then(()=>{this.reload()})},reload(){this.getStorage(),this.getData(this.formatDate(this.date))}},mounted(){this.reload()}},at=st,nt=(i("1ac7"),i("2877")),ot=Object(nt["a"])(at,tt,et,!1,null,null,null);e["default"]=ot.exports},ca71:function(t,e,i){},ec29:function(t,e,i){},fe09:function(t,e,i){"use strict";var s=i("c37a"),a=i("5607"),n=i("2b0e"),o=n["a"].extend({name:"rippleable",directives:{ripple:a["a"]},props:{ripple:{type:[Boolean,Object],default:!0}},methods:{genRipple(t={}){return this.ripple?(t.staticClass="v-input--selection-controls__ripple",t.directives=t.directives||[],t.directives.push({name:"ripple",value:{center:!0}}),this.$createElement("div",t)):null}}}),l=i("8547"),r=i("58df");function c(t){t.preventDefault()}e["a"]=Object(r["a"])(s["a"],o,l["a"]).extend({name:"selectable",model:{prop:"inputValue",event:"change"},props:{id:String,inputValue:null,falseValue:null,trueValue:null,multiple:{type:Boolean,default:null},label:String},data(){return{hasColor:this.inputValue,lazyValue:this.inputValue}},computed:{computedColor(){if(this.isActive)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},isMultiple(){return!0===this.multiple||null===this.multiple&&Array.isArray(this.internalValue)},isActive(){const t=this.value,e=this.internalValue;return this.isMultiple?!!Array.isArray(e)&&e.some(e=>this.valueComparator(e,t)):void 0===this.trueValue||void 0===this.falseValue?t?this.valueComparator(t,e):Boolean(e):this.valueComparator(e,this.trueValue)},isDirty(){return this.isActive},rippleState(){return this.isDisabled||this.validationState?this.validationState:void 0}},watch:{inputValue(t){this.lazyValue=t,this.hasColor=t}},methods:{genLabel(){const t=s["a"].options.methods.genLabel.call(this);return t?(t.data.on={click:c},t):t},genInput(t,e){return this.$createElement("input",{attrs:Object.assign({"aria-checked":this.isActive.toString(),disabled:this.isDisabled,id:this.computedId,role:t,type:t},e),domProps:{value:this.value,checked:this.isActive},on:{blur:this.onBlur,change:this.onChange,focus:this.onFocus,keydown:this.onKeydown,click:c},ref:"input"})},onClick(t){this.onChange(),this.$emit("click",t)},onChange(){if(!this.isInteractive)return;const t=this.value;let e=this.internalValue;if(this.isMultiple){Array.isArray(e)||(e=[]);const i=e.length;e=e.filter(e=>!this.valueComparator(e,t)),e.length===i&&e.push(t)}else e=void 0!==this.trueValue&&void 0!==this.falseValue?this.valueComparator(e,this.trueValue)?this.falseValue:this.trueValue:t?this.valueComparator(e,t)?null:t:!e;this.validate(!0,e),this.internalValue=e,this.hasColor=e},onFocus(t){this.isFocused=!0,this.$emit("focus",t)},onBlur(t){this.isFocused=!1,this.$emit("blur",t)},onKeydown(t){}}})}}]); \ No newline at end of file diff --git a/dist/js/chunk-75bd6bd9.c2951c11.js b/dist/js/chunk-75bd6bd9.c2951c11.js deleted file mode 100644 index f02e445..0000000 --- a/dist/js/chunk-75bd6bd9.c2951c11.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-75bd6bd9"],{"2fa4":function(t,e,a){"use strict";a("20f6");var s=a("80d2");e["a"]=Object(s["j"])("spacer","div","v-spacer")},5631:function(t,e,a){"use strict";a.r(e);var s=a("8336"),n=a("99d9"),i=a("62ad"),l=a("a523"),c=a("8fea"),r=a("2e4b"),d=a("ce7e"),o=a("132d"),h=a("e449"),u=a("0fd9"),m=a("b974"),f=a("2fa4"),p=a("8654"),x=function(){var t=this,e=t._self._c;return e(l["a"],{attrs:{fluid:"",id:"BOFReport"}},[e(n["b"],{staticClass:"text-center headline black--text"},[t._v("Показатели по работе КО (посуточно) за период "+t._s(t.computedDateFormatted))]),e(d["a"],{staticClass:"mx-0"}),e(u["a"],[e(i["a"],{staticStyle:{"min-width":"250px","max-width":"250px"},attrs:{cols:"12"}},[e(h["a"],{attrs:{"close-on-content-click":!1,"nudge-right":40,"nudge-top":-5,transition:"scale-transition","offset-y":"","min-width":"290px"},scopedSlots:t._u([{key:"activator",fn:function({on:a}){return[e(p["a"],t._g({staticClass:"datePicker",attrs:{id:"datePicker","prepend-icon":"event",readonly:"","single-line":"",disabled:t.loading},model:{value:t.computedDateFormatted,callback:function(e){t.computedDateFormatted=e},expression:"computedDateFormatted"}},a))]}}]),model:{value:t.datePickerMenu,callback:function(e){t.datePickerMenu=e},expression:"datePickerMenu"}},[e(r["a"],{attrs:{"no-title":"",scrollable:"","popover-align":"center",range:""},on:{input:function(e){t.input(e)&&t.datePickerMenu},change:function(e){return t.refreshData()}},model:{value:t.dates,callback:function(e){t.dates=e},expression:"dates"}})],1)],1),e(d["a"],{staticClass:"d-none d-md-flex mx-2 my-7",attrs:{inset:"",vertical:""}}),e(i["a"],{staticStyle:{"min-width":"105px","max-width":"105px"},attrs:{cols:"12"}},[e(m["a"],{attrs:{items:t.listBof,hint:"№ конвертера","persistent-hint":"",disabled:t.loading,"single-line":"","return-object":""},on:{input:function(e){return t.dataFilter(e)}},model:{value:t.BofSelect,callback:function(e){t.BofSelect=e},expression:"BofSelect"}})],1),e(d["a"],{staticClass:"d-none d-md-flex mx-2 my-7",attrs:{inset:"",vertical:""}}),e(i["a"],{staticClass:"text-center my-4",attrs:{cols:"1",sm:"1"}},[e(s["a"],{attrs:{disabled:t.loading||!t.data.items.length,tile:"",outlined:"",color:"success"},on:{click:function(e){t.loader=t.Excel()}}},[e(o["a"],{attrs:{left:"",size:"35"}},[t._v("mdi-file-excel")]),t._v("Excel ")],1)],1),e(f["a"]),e(i["a"],{attrs:{cols:"12",sm:"4",md:"4",lg:"4",xl:"3"}},[e(p["a"],{attrs:{"append-icon":"mdi-magnify",label:"Поиск","single-line":"","hide-details":"",clearable:"",disabled:t.loading},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1)],1),e(c["a"],{attrs:{headers:t.headers,items:t.data.items,loading:t.loading,search:t.search,dense:""},scopedSlots:t._u([t.data.items.length>1?{key:"header",fn:function(){return[e("thead",{staticClass:"grey lighten-5 text-center"},[e("tr",[e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:7}}),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:5}},[t._v("Чугун")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:8}},[t._v("Повалка")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:5}},[t._v("Повалка")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:4}},[t._v("Шлак")]),e("th",{staticClass:"text-center divider d-none d-sm-table-cell",attrs:{colspan:3}},[t._v("Додувки")]),e("th",{staticClass:"text-center d-none d-sm-table-cell",attrs:{colspan:5}})])])]},proxy:!0}:null],null,!0)})],1)},b=[],g=a("2f62");let v=new Date;var D={data:()=>({search:"",BofSelect:"K1",listBof:["K1","K2"],dates:[new Date(v.getFullYear(),v.getMonth(),v.getDate()-0).toISOString().substr(0,10),(new Date).toISOString().substr(0,10)],datePickerMenu:!1}),computed:{...Object(g["c"])("BOFReportSample_A2",{loading:"loading",data:"data"}),computedDateFormatted(){let t=[];return t.push(this.formatDate(this.dates[0])),t.push(this.formatDate(this.dates[1])),t.join(" ~ ")},headers(){var t=document.createElement("canvas"),e=t.getContext("2d");return e.font="12px Roboto, sans-serif",this.data.headers.forEach(t=>{var a=e.measureText(t.text),s=a.width;t.width=s+65,t.align="center",t.divider=!0,"dateForSort"!==t.value&&"idGroup"!==t.value||(t.align=" d-none")}),this.data.headers}},methods:{...Object(g["d"])("BOFReportSample_A2",{getExcel:"getExcel"}),...Object(g["b"])("BOFReportSample_A2",{getData:"getData"}),dataFilter(){this.refreshData()},input(t){2==t.length&&(this.datePickerMenu=!1)},formatDate(t){if(!t)return null;const[e,a,s]=t.split("-");return`${s}.${a}.${e}`},refreshData(){switch(this.BofSelect){case"K1":this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1]),"1"]);break;case"K2":this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1]),"2"]);break}},Excel(){this.getExcel([this.formatDate(this.dates[0]),this.formatDate(this.dates[1]),this.model])}},mounted(){this.getData([this.formatDate(this.dates[0]),this.formatDate(this.dates[1]),"1"]).then(()=>{})}},k=D,w=(a("74e1"),a("c3fc"),a("2877")),S=Object(w["a"])(k,x,b,!1,null,null,null);e["default"]=S.exports},"74e1":function(t,e,a){"use strict";a("fb5c")},c3fc:function(t,e,a){"use strict";a("cac3")},cac3:function(t,e,a){},fb5c:function(t,e,a){}}]); \ No newline at end of file diff --git a/dist/js/chunk-dfddc2f4.c193d093.js b/dist/js/chunk-dfddc2f4.c193d093.js deleted file mode 100644 index fa04ea4..0000000 --- a/dist/js/chunk-dfddc2f4.c193d093.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-dfddc2f4"],{"16b7":function(t,e,s){"use strict";var i=s("2b0e");e["a"]=i["a"].extend().extend({name:"delayable",props:{openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0}},data:()=>({openTimeout:void 0,closeTimeout:void 0}),methods:{clearDelay(){clearTimeout(this.openTimeout),clearTimeout(this.closeTimeout)},runDelay(t,e){this.clearDelay();const s=parseInt(this[t+"Delay"],10);this[t+"Timeout"]=setTimeout(e||(()=>{this.isActive={open:!0,close:!1}[t]}),s)}}})},"1b2c":function(t,e,s){},"1f4f":function(t,e,s){"use strict";s("8b37");var i=s("80d2"),n=s("7560"),a=s("58df");e["a"]=Object(a["a"])(n["a"]).extend({name:"v-simple-table",props:{dense:Boolean,fixedHeader:Boolean,height:[Number,String]},computed:{classes(){return{"v-data-table--dense":this.dense,"v-data-table--fixed-height":!!this.height&&!this.fixedHeader,"v-data-table--fixed-header":this.fixedHeader,"v-data-table--has-top":!!this.$slots.top,"v-data-table--has-bottom":!!this.$slots.bottom,...this.themeClasses}}},methods:{genWrapper(){return this.$slots.wrapper||this.$createElement("div",{staticClass:"v-data-table__wrapper",style:{height:Object(i["h"])(this.height)}},[this.$createElement("table",Object(i["s"])(this))])}},render(t){return t("div",{staticClass:"v-data-table",class:this.classes},[Object(i["s"])(this,"top"),this.genWrapper(),Object(i["s"])(this,"bottom")])}})},"21be":function(t,e,s){"use strict";s("caad");var i=s("2b0e"),n=s("80d2");e["a"]=i["a"].extend().extend({name:"stackable",data(){return{stackElement:null,stackExclude:null,stackMinZIndex:0,isActive:!1}},computed:{activeZIndex(){if("undefined"===typeof window)return 0;const t=this.stackElement||this.$refs.content,e=this.isActive?this.getMaxZIndex(this.stackExclude||[t])+2:Object(n["u"])(t);return null==e?e:parseInt(e)}},methods:{getMaxZIndex(t=[]){const e=this.$el,s=[this.stackMinZIndex,Object(n["u"])(e)],i=[...document.getElementsByClassName("v-menu__content--active"),...document.getElementsByClassName("v-dialog__content--active")];for(let a=0;a[]},messages:{type:[String,Array],default:()=>[]},readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},success:Boolean,successMessages:{type:[String,Array],default:()=>[]},validateOnBlur:Boolean,value:{required:!1}},data(){return{errorBucket:[],hasColor:!1,hasFocused:!1,hasInput:!1,isFocused:!1,isResetting:!1,lazyValue:this.value,valid:!1}},computed:{computedColor(){if(!this.isDisabled)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},hasError(){return this.internalErrorMessages.length>0||this.errorBucket.length>0||this.error},hasSuccess(){return this.internalSuccessMessages.length>0||this.success},externalError(){return this.internalErrorMessages.length>0||this.error},hasMessages(){return this.validationTarget.length>0},hasState(){return!this.isDisabled&&(this.hasSuccess||this.shouldValidate&&this.hasError)},internalErrorMessages(){return this.genInternalMessages(this.errorMessages)},internalMessages(){return this.genInternalMessages(this.messages)},internalSuccessMessages(){return this.genInternalMessages(this.successMessages)},internalValue:{get(){return this.lazyValue},set(t){this.lazyValue=t,this.$emit("input",t)}},isDisabled(){var t;return null!==(t=this.disabled)&&void 0!==t?t:!!this.form&&this.form.disabled},isInteractive(){return!this.isDisabled&&!this.isReadonly},isReadonly(){var t;return null!==(t=this.readonly)&&void 0!==t?t:!!this.form&&this.form.readonly},shouldValidate(){return!!this.externalError||!this.isResetting&&(this.validateOnBlur?this.hasFocused&&!this.isFocused:this.hasInput||this.hasFocused)},validations(){return this.validationTarget.slice(0,Number(this.errorCount))},validationState(){if(!this.isDisabled)return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":this.hasColor?this.computedColor:void 0},validationTarget(){return this.internalErrorMessages.length>0?this.internalErrorMessages:this.successMessages&&this.successMessages.length>0?this.internalSuccessMessages:this.messages&&this.messages.length>0?this.internalMessages:this.shouldValidate?this.errorBucket:[]}},watch:{rules:{handler(t,e){Object(o["k"])(t,e)||this.validate()},deep:!0},internalValue(){this.hasInput=!0,this.validateOnBlur||this.$nextTick(this.validate)},isFocused(t){t||this.isDisabled||(this.hasFocused=!0,this.validateOnBlur&&this.$nextTick(this.validate))},isResetting(){setTimeout(()=>{this.hasInput=!1,this.hasFocused=!1,this.isResetting=!1,this.validate()},0)},hasError(t){this.shouldValidate&&this.$emit("update:error",t)},value(t){this.lazyValue=t}},beforeMount(){this.validate()},created(){this.form&&this.form.register(this)},beforeDestroy(){this.form&&this.form.unregister(this)},methods:{genInternalMessages(t){return t?Array.isArray(t)?t:[t]:[]},reset(){this.isResetting=!0,this.internalValue=Array.isArray(this.internalValue)?[]:null},resetValidation(){this.isResetting=!0},validate(t=!1,e){const s=[];e=e||this.internalValue,t&&(this.hasInput=this.hasFocused=!0);for(let i=0;i!t.isComment&&" "!==t.text)}})},"495d":function(t,e,s){},"4ad4":function(t,e,s){"use strict";s("caad");var i=s("16b7"),n=s("f2e7"),a=s("58df"),o=s("80d2"),r=s("d9bd");const l=Object(a["a"])(i["a"],n["a"]);e["a"]=l.extend({name:"activatable",props:{activator:{default:null,validator:t=>["string","object"].includes(typeof t)},disabled:Boolean,internalActivator:Boolean,openOnClick:{type:Boolean,default:!0},openOnHover:Boolean,openOnFocus:Boolean},data:()=>({activatorElement:null,activatorNode:[],events:["click","mouseenter","mouseleave","focus"],listeners:{}}),watch:{activator:"resetActivator",openOnFocus:"resetActivator",openOnHover:"resetActivator"},mounted(){const t=Object(o["t"])(this,"activator",!0);t&&["v-slot","normal"].includes(t)&&Object(r["b"])('The activator slot must be bound, try \'