diff --git a/dist/dnm-react-video-cut.es.js b/dist/dnm-react-video-cut.es.js index dc075b9..32970fb 100644 --- a/dist/dnm-react-video-cut.es.js +++ b/dist/dnm-react-video-cut.es.js @@ -11205,7 +11205,7 @@ Slider$1.Handle = Handle; Slider$1.createSliderWithTooltip = createSliderWithTooltip; function _templateObject() { - var data = _taggedTemplateLiteral(["\n .rc-slider {\n position: relative;\n height: 14px;\n padding: 5px 0;\n width: 100%;\n border-radius: 6px;\n -ms-touch-action: none;\n touch-action: none;\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n }\n .rc-slider * {\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n }\n .rc-slider-rail {\n position: absolute;\n width: 100%;\n background-color: #e9e9e9;\n height: 4px;\n border-radius: 6px;\n }\n .rc-slider-track {\n position: absolute;\n left: 0;\n height: 4px;\n border-radius: 6px;\n background: linear-gradient(45deg,#46be8a 0,#92d275 100%);\n }\n .rc-slider-handle {\n position: absolute;\n width: 14px;\n height: 14px;\n cursor: pointer;\n cursor: -webkit-grab;\n margin-top: -5px;\n cursor: grab;\n border-radius: 50%;\n border: solid 2px #46be8a;\n background-color: #fff;\n -ms-touch-action: pan-x;\n touch-action: pan-x;\n }\n .rc-slider-handle-dragging.rc-slider-handle-dragging.rc-slider-handle-dragging {\n border-color: #92d275;\n box-shadow: 0 0 0 5px #92d275;\n }\n .rc-slider-handle:focus {\n outline: none;\n }\n .rc-slider-handle-click-focused:focus {\n border-color: #46be8a;\n box-shadow: unset;\n }\n .rc-slider-handle:hover {\n border-color: #92d275;\n }\n .rc-slider-handle:active {\n border-color: #92d275;\n box-shadow: 0 0 5px #92d275;\n cursor: -webkit-grabbing;\n cursor: grabbing;\n }\n .rc-slider-mark {\n position: absolute;\n top: 18px;\n left: 0;\n width: 100%;\n font-size: 12px;\n }\n .rc-slider-mark-text {\n position: absolute;\n display: inline-block;\n vertical-align: middle;\n text-align: center;\n cursor: pointer;\n color: #999;\n }\n .rc-slider-mark-text-active {\n color: #666;\n }\n .rc-slider-step {\n position: absolute;\n width: 100%;\n height: 4px;\n background: transparent;\n }\n .rc-slider-dot {\n position: absolute;\n bottom: -2px;\n margin-left: -4px;\n width: 8px;\n height: 8px;\n border: 2px solid #e9e9e9;\n background-color: #fff;\n cursor: pointer;\n border-radius: 50%;\n vertical-align: middle;\n }\n .rc-slider-dot-active {\n border-color: #46be8a;\n }\n .rc-slider-dot-reverse {\n margin-left: 0;\n margin-right: -4px;\n }\n .rc-slider-disabled {\n background-color: #e9e9e9;\n }\n .rc-slider-disabled .rc-slider-track {\n background-color: rgb(197, 203, 212);\n }\n .rc-slider-disabled .rc-slider-handle,\n .rc-slider-disabled .rc-slider-dot {\n border-color: rgb(197, 203, 212);\n box-shadow: none;\n background-color: #fff;\n cursor: not-allowed;\n }\n .rc-slider-disabled .rc-slider-mark-text,\n .rc-slider-disabled .rc-slider-dot {\n cursor: not-allowed !important;\n }\n .rc-slider-vertical {\n width: 14px;\n height: 100%;\n padding: 0 5px;\n }\n .rc-slider-vertical .rc-slider-rail {\n height: 100%;\n width: 4px;\n }\n .rc-slider-vertical .rc-slider-track {\n left: 5px;\n bottom: 0;\n width: 4px;\n }\n .rc-slider-vertical .rc-slider-handle {\n margin-left: -5px;\n -ms-touch-action: pan-y;\n touch-action: pan-y;\n }\n .rc-slider-vertical .rc-slider-mark {\n top: 0;\n left: 18px;\n height: 100%;\n }\n .rc-slider-vertical .rc-slider-step {\n height: 100%;\n width: 4px;\n }\n .rc-slider-vertical .rc-slider-dot {\n left: 2px;\n margin-bottom: -4px;\n }\n .rc-slider-vertical .rc-slider-dot:first-of-type {\n margin-bottom: -4px;\n }\n .rc-slider-vertical .rc-slider-dot:last-of-type {\n margin-bottom: -4px;\n }\n .rc-slider-tooltip-zoom-down-enter,\n .rc-slider-tooltip-zoom-down-appear {\n animation-duration: 0.3s;\n animation-fill-mode: both;\n display: block !important;\n animation-play-state: paused;\n }\n .rc-slider-tooltip-zoom-down-leave {\n animation-duration: 0.3s;\n animation-fill-mode: both;\n display: block !important;\n animation-play-state: paused;\n }\n .rc-slider-tooltip-zoom-down-enter.rc-slider-tooltip-zoom-down-enter-active,\n .rc-slider-tooltip-zoom-down-appear.rc-slider-tooltip-zoom-down-appear-active {\n animation-name: rcSliderTooltipZoomDownIn;\n animation-play-state: running;\n }\n .rc-slider-tooltip-zoom-down-leave.rc-slider-tooltip-zoom-down-leave-active {\n animation-name: rcSliderTooltipZoomDownOut;\n animation-play-state: running;\n }\n .rc-slider-tooltip-zoom-down-enter,\n .rc-slider-tooltip-zoom-down-appear {\n transform: scale(0, 0);\n animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\n }\n .rc-slider-tooltip-zoom-down-leave {\n animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n }\n @keyframes rcSliderTooltipZoomDownIn {\n 0% {\n opacity: 0;\n transform-origin: 50% 100%;\n transform: scale(0, 0);\n }\n 100% {\n transform-origin: 50% 100%;\n transform: scale(1, 1);\n }\n }\n @keyframes rcSliderTooltipZoomDownOut {\n 0% {\n transform-origin: 50% 100%;\n transform: scale(1, 1);\n }\n 100% {\n opacity: 0;\n transform-origin: 50% 100%;\n transform: scale(0, 0);\n }\n }\n .rc-slider-tooltip {\n position: absolute;\n left: -9999px;\n top: -9999px;\n visibility: visible;\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n }\n .rc-slider-tooltip * {\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n }\n .rc-slider-tooltip-hidden {\n display: none;\n }\n .rc-slider-tooltip-placement-top {\n padding: 4px 0 8px 0;\n }\n .rc-slider-tooltip-inner {\n padding: 6px 2px;\n min-width: 24px;\n height: 24px;\n font-size: 12px;\n line-height: 1;\n color: #fff;\n text-align: center;\n text-decoration: none;\n background-color: #6c6c6c;\n border-radius: 6px;\n box-shadow: 0 0 4px #d9d9d9;\n }\n .rc-slider-tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n }\n .rc-slider-tooltip-placement-top .rc-slider-tooltip-arrow {\n bottom: 4px;\n left: 50%;\n margin-left: -4px;\n border-width: 4px 4px 0;\n border-top-color: #6c6c6c;\n }\n \n .dnm-video-cut-player {\n transform: scale(1);\n opacity: 1;\n width: 100%;\n transition: all 0.2s ease-in-out;\n }\n \n .dnm-video-cut-root.is-editing .dnm-video-cut-player {\n transform: scale(0.9);\n opacity: 0.8;\n box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.5);\n }\n \n .dnm-video-cut-range {\n width: 100%;\n position: relative;\n bottom: 17px;\n }\n \n .dnm-video-cut-playing-cursor {\n height: 20px;\n width: 10px;\n background-color: white;\n border-radius: 10px;\n margin-top: -3px;\n box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.5);\n }\n \n .dnm-video-cut-playing-cursor-draggable-item {\n width: 10px;\n z-index: 2;\n position: relative;\n }\n \n .dnm-video-cut-playing-cursor-draggable-item:hover {\n cursor: grab;\n }\n \n .dnm-video-cut-playing-cursor-draggable-item:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n }\n \n .dnm-video-cut-playing-cursor {\n transform: scale(1);\n transition: all 0.2s ease-in-out;\n }\n \n .dnm-video-cut-playing-cursor:hover {\n transform: scale(1.3);\n }\n\n .dnm-video-cut-progress-scrollable-parent {\n width: calc(100% - 45px);\n display: inline-block;\n margin-left: 15px;\n margin-top: 5px;\n padding-top: 10px;\n overflow-x: scroll;\n }\n\n .dnm-video-cut-progress-container {\n width: calc(500% - 20px);\n margin-left: 10px;\n padding-right: 10px;\n height: 28px;\n }\n \n .dnm-video-cut-play-icon {\n width: 30px;\n height: 30px;\n display: inline-block;\n position: relative;\n bottom: 20px;\n transform: scale(1);\n transition: all 0.2s ease-in-out;\n background: linear-gradient(45deg,#46be8a 0,#92d275 100%);\n border-radius: 100px;\n }\n \n .dnm-video-cut-play-icon svg {\n color: white;\n width: 12px;\n position: relative;\n }\n \n .dnm-video-cut-root.is-playing .dnm-video-cut-play-icon svg {\n left: 9px;\n top: 8px; \n }\n \n .dnm-video-cut-root.is-paused .dnm-video-cut-play-icon svg {\n left: 10px;\n top: 8px;\n }\n \n .dnm-video-cut-play-icon:hover {\n cursor: pointer;\n transform: scale(1.2);\n box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.2);\n }\n\n .clearfix::after {\n content: \"\";\n clear: both;\n display: table;\n }\n\n .dnm-video-cut-tools {\n margin-top: 5px;\n }\n\n .dnm-video-cut-zoom-icon {\n width: 17px;\n }\n \n .dnm-video-cut-zoom {\n float: right;\n width: 30%;\n max-width: 200px;\n display: inline-block;\n }\n\n .dnm-video-cut-zoom-icon {\n width: 18px;\n display: inline-block;\n margin-left: 10px;\n }\n\n .dnm-video-cut-zoom-range {\n width: calc(100% - 28px);\n display: inline-block;\n }\n\n .dnm-video-cut-zoom-icon svg {\n color: rgb(168, 173, 181);\n }\n\n .dnm-video-cut-mute {\n display: inline-block;\n float: left;\n }\n\n .dnm-video-cut-checkbox-container {\n display: block;\n position: relative;\n padding-left: 35px;\n padding-top: 3px;\n margin-bottom: 12px;\n cursor: pointer;\n font-size: 18px;\n color: rgb(158 162 169);\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .dnm-video-cut-checkbox-container input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n }\n\n .dnm-video-cut-checkmark {\n position: absolute;\n top: 0;\n left: 0;\n height: 25px;\n width: 25px;\n background-color: rgb(229, 233, 240);\n border-radius: 5px;\n }\n\n .dnm-video-cut-checkbox-container:hover input ~ .dnm-video-cut-checkmark {\n background-color: rgb(197, 203, 212);\n }\n\n .dnm-video-cut-checkbox-container input:checked ~ .dnm-video-cut-checkmark {\n background-color: #92d275;\n }\n\n .dnm-video-cut-checkmark:after {\n content: \"\";\n position: absolute;\n display: none;\n }\n\n .dnm-video-cut-checkbox-container input:checked ~ .dnm-video-cut-checkmark:after {\n display: block;\n }\n\n .dnm-video-cut-checkbox-container .dnm-video-cut-checkmark:after {\n left: 9px;\n top: 5px;\n width: 5px;\n height: 10px;\n border: solid white;\n border-width: 0 3px 3px 0;\n -webkit-transform: rotate(45deg);\n -ms-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n"]); + var data = _taggedTemplateLiteral(["\n .rc-slider {\n position: relative;\n height: 14px;\n padding: 5px 0;\n width: 100%;\n border-radius: 6px;\n -ms-touch-action: none;\n touch-action: none;\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n }\n .rc-slider * {\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n }\n .rc-slider-rail {\n position: absolute;\n width: 100%;\n background-color: #e9e9e9;\n height: 4px;\n border-radius: 6px;\n }\n .rc-slider-track {\n position: absolute;\n left: 0;\n height: 4px;\n border-radius: 6px;\n background: linear-gradient(45deg,#46be8a 0,#92d275 100%);\n }\n .rc-slider-handle {\n position: absolute;\n width: 14px;\n height: 14px;\n cursor: pointer;\n cursor: -webkit-grab;\n margin-top: -5px;\n cursor: grab;\n border-radius: 50%;\n border: solid 2px #46be8a;\n background-color: #fff;\n -ms-touch-action: pan-x;\n touch-action: pan-x;\n }\n .rc-slider-handle-dragging.rc-slider-handle-dragging.rc-slider-handle-dragging {\n border-color: #92d275;\n box-shadow: 0 0 0 5px #92d275;\n }\n .rc-slider-handle:focus {\n outline: none;\n }\n .rc-slider-handle-click-focused:focus {\n border-color: #46be8a;\n box-shadow: unset;\n }\n .rc-slider-handle:hover {\n border-color: #92d275;\n }\n .rc-slider-handle:active {\n border-color: #92d275;\n box-shadow: 0 0 5px #92d275;\n cursor: -webkit-grabbing;\n cursor: grabbing;\n }\n .rc-slider-mark {\n position: absolute;\n top: 18px;\n left: 0;\n width: 100%;\n font-size: 12px;\n }\n .rc-slider-mark-text {\n position: absolute;\n display: inline-block;\n vertical-align: middle;\n text-align: center;\n cursor: pointer;\n color: #999;\n }\n .rc-slider-mark-text-active {\n color: #666;\n }\n .rc-slider-step {\n position: absolute;\n width: 100%;\n height: 4px;\n background: transparent;\n }\n .rc-slider-dot {\n position: absolute;\n bottom: -2px;\n margin-left: -4px;\n width: 8px;\n height: 8px;\n border: 2px solid #e9e9e9;\n background-color: #fff;\n cursor: pointer;\n border-radius: 50%;\n vertical-align: middle;\n }\n .rc-slider-dot-active {\n border-color: #46be8a;\n }\n .rc-slider-dot-reverse {\n margin-left: 0;\n margin-right: -4px;\n }\n .rc-slider-disabled {\n background-color: #e9e9e9;\n }\n .rc-slider-disabled .rc-slider-track {\n background-color: rgb(197, 203, 212);\n }\n .rc-slider-disabled .rc-slider-handle,\n .rc-slider-disabled .rc-slider-dot {\n border-color: rgb(197, 203, 212);\n box-shadow: none;\n background-color: #fff;\n cursor: not-allowed;\n }\n .rc-slider-disabled .rc-slider-mark-text,\n .rc-slider-disabled .rc-slider-dot {\n cursor: not-allowed !important;\n }\n .rc-slider-vertical {\n width: 14px;\n height: 100%;\n padding: 0 5px;\n }\n .rc-slider-vertical .rc-slider-rail {\n height: 100%;\n width: 4px;\n }\n .rc-slider-vertical .rc-slider-track {\n left: 5px;\n bottom: 0;\n width: 4px;\n }\n .rc-slider-vertical .rc-slider-handle {\n margin-left: -5px;\n -ms-touch-action: pan-y;\n touch-action: pan-y;\n }\n .rc-slider-vertical .rc-slider-mark {\n top: 0;\n left: 18px;\n height: 100%;\n }\n .rc-slider-vertical .rc-slider-step {\n height: 100%;\n width: 4px;\n }\n .rc-slider-vertical .rc-slider-dot {\n left: 2px;\n margin-bottom: -4px;\n }\n .rc-slider-vertical .rc-slider-dot:first-of-type {\n margin-bottom: -4px;\n }\n .rc-slider-vertical .rc-slider-dot:last-of-type {\n margin-bottom: -4px;\n }\n .rc-slider-tooltip-zoom-down-enter,\n .rc-slider-tooltip-zoom-down-appear {\n animation-duration: 0.3s;\n animation-fill-mode: both;\n display: block !important;\n animation-play-state: paused;\n }\n .rc-slider-tooltip-zoom-down-leave {\n animation-duration: 0.3s;\n animation-fill-mode: both;\n display: block !important;\n animation-play-state: paused;\n }\n .rc-slider-tooltip-zoom-down-enter.rc-slider-tooltip-zoom-down-enter-active,\n .rc-slider-tooltip-zoom-down-appear.rc-slider-tooltip-zoom-down-appear-active {\n animation-name: rcSliderTooltipZoomDownIn;\n animation-play-state: running;\n }\n .rc-slider-tooltip-zoom-down-leave.rc-slider-tooltip-zoom-down-leave-active {\n animation-name: rcSliderTooltipZoomDownOut;\n animation-play-state: running;\n }\n .rc-slider-tooltip-zoom-down-enter,\n .rc-slider-tooltip-zoom-down-appear {\n transform: scale(0, 0);\n animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\n }\n .rc-slider-tooltip-zoom-down-leave {\n animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n }\n @keyframes rcSliderTooltipZoomDownIn {\n 0% {\n opacity: 0;\n transform-origin: 50% 100%;\n transform: scale(0, 0);\n }\n 100% {\n transform-origin: 50% 100%;\n transform: scale(1, 1);\n }\n }\n @keyframes rcSliderTooltipZoomDownOut {\n 0% {\n transform-origin: 50% 100%;\n transform: scale(1, 1);\n }\n 100% {\n opacity: 0;\n transform-origin: 50% 100%;\n transform: scale(0, 0);\n }\n }\n .rc-slider-tooltip {\n position: absolute;\n left: -9999px;\n top: -9999px;\n visibility: visible;\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n }\n .rc-slider-tooltip * {\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n }\n .rc-slider-tooltip-hidden {\n display: none;\n }\n .rc-slider-tooltip-placement-top {\n padding: 4px 0 8px 0;\n }\n .rc-slider-tooltip-inner {\n padding: 6px 2px;\n min-width: 24px;\n height: 24px;\n font-size: 12px;\n line-height: 1;\n color: #fff;\n text-align: center;\n text-decoration: none;\n background-color: #6c6c6c;\n border-radius: 6px;\n box-shadow: 0 0 4px #d9d9d9;\n }\n .rc-slider-tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n }\n .rc-slider-tooltip-placement-top .rc-slider-tooltip-arrow {\n bottom: 4px;\n left: 50%;\n margin-left: -4px;\n border-width: 4px 4px 0;\n border-top-color: #6c6c6c;\n }\n \n .dnm-video-cut-player {\n opacity: 1;\n width: 100%;\n max-height: 60vh;\n transition: all 0.2s ease-in-out;\n }\n \n .dnm-video-cut-range {\n width: 100%;\n position: relative;\n bottom: 17px;\n }\n \n .dnm-video-cut-playing-cursor {\n height: 20px;\n width: 10px;\n background-color: white;\n border-radius: 10px;\n margin-top: -3px;\n box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.5);\n }\n \n .dnm-video-cut-playing-cursor-draggable-item {\n width: 10px;\n z-index: 2;\n position: relative;\n }\n \n .dnm-video-cut-playing-cursor-draggable-item:hover {\n cursor: grab;\n }\n \n .dnm-video-cut-playing-cursor-draggable-item:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n }\n \n .dnm-video-cut-playing-cursor {\n transform: scale(1);\n transition: all 0.2s ease-in-out;\n }\n \n .dnm-video-cut-playing-cursor:hover {\n transform: scale(1.3);\n }\n\n .dnm-video-cut-progress-scrollable-parent {\n width: calc(100% - 45px);\n display: inline-block;\n margin-left: 15px;\n margin-top: 5px;\n padding-top: 10px;\n overflow-x: scroll;\n }\n\n .dnm-video-cut-progress-container {\n width: calc(500% - 20px);\n margin-left: 10px;\n padding-right: 10px;\n height: 28px;\n }\n \n .dnm-video-cut-play-icon {\n width: 30px;\n height: 30px;\n display: inline-block;\n position: relative;\n bottom: 20px;\n transform: scale(1);\n transition: all 0.2s ease-in-out;\n background: linear-gradient(45deg,#46be8a 0,#92d275 100%);\n border-radius: 100px;\n }\n \n .dnm-video-cut-play-icon svg {\n color: white;\n width: 12px;\n position: relative;\n }\n \n .dnm-video-cut-root.is-playing .dnm-video-cut-play-icon svg {\n left: 9px;\n top: 8px; \n }\n \n .dnm-video-cut-root.is-paused .dnm-video-cut-play-icon svg {\n left: 10px;\n top: 8px;\n }\n \n .dnm-video-cut-play-icon:hover {\n cursor: pointer;\n transform: scale(1.2);\n box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.2);\n }\n\n .clearfix::after {\n content: \"\";\n clear: both;\n display: table;\n }\n\n .dnm-video-cut-tools {\n margin-top: 5px;\n }\n\n .dnm-video-cut-zoom-icon {\n width: 17px;\n }\n \n .dnm-video-cut-zoom {\n float: right;\n width: 30%;\n max-width: 200px;\n display: inline-block;\n }\n\n .dnm-video-cut-zoom-icon {\n width: 18px;\n display: inline-block;\n margin-left: 10px;\n }\n\n .dnm-video-cut-zoom-range {\n width: calc(100% - 28px);\n display: inline-block;\n }\n\n .dnm-video-cut-zoom-icon svg {\n color: rgb(168, 173, 181);\n }\n\n .dnm-video-cut-mute {\n display: inline-block;\n float: left;\n }\n\n .dnm-video-cut-checkbox-container {\n display: block;\n position: relative;\n padding-left: 35px;\n padding-top: 3px;\n margin-bottom: 12px;\n cursor: pointer;\n font-size: 18px;\n color: rgb(158 162 169);\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .dnm-video-cut-checkbox-container input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n }\n\n .dnm-video-cut-checkmark {\n position: absolute;\n top: 0;\n left: 0;\n height: 25px;\n width: 25px;\n background-color: rgb(229, 233, 240);\n border-radius: 5px;\n }\n\n .dnm-video-cut-checkbox-container:hover input ~ .dnm-video-cut-checkmark {\n background-color: rgb(197, 203, 212);\n }\n\n .dnm-video-cut-checkbox-container input:checked ~ .dnm-video-cut-checkmark {\n background-color: #92d275;\n }\n\n .dnm-video-cut-checkmark:after {\n content: \"\";\n position: absolute;\n display: none;\n }\n\n .dnm-video-cut-checkbox-container input:checked ~ .dnm-video-cut-checkmark:after {\n display: block;\n }\n\n .dnm-video-cut-checkbox-container .dnm-video-cut-checkmark:after {\n left: 9px;\n top: 5px;\n width: 5px;\n height: 10px;\n border: solid white;\n border-width: 0 3px 3px 0;\n -webkit-transform: rotate(45deg);\n -ms-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n"]); _templateObject = function _templateObject() { return data; @@ -29824,13 +29824,16 @@ var DnmVideoCut = /*#__PURE__*/function (_React$Component) { _defineProperty(_assertThisInitialized(_this), "handleContainerMouseDown", function (ev) { ev.stopPropagation(); var target = ev.target; + var _this$state3 = _this.state, + rangeDisabled = _this$state3.rangeDisabled, + forceCursorDragging = _this$state3.forceCursorDragging; if (!target.classList.contains("rc-slider-handle") && !target.classList.contains("dnm-video-cut-playing-cursor")) { - _this.setState({ + if (!rangeDisabled || !forceCursorDragging) _this.setState({ rangeDisabled: true, forceCursorDragging: true }); - } else _this.setState({ + } else if (rangeDisabled || forceCursorDragging) _this.setState({ rangeDisabled: false, forceCursorDragging: false }); @@ -29865,7 +29868,7 @@ var DnmVideoCut = /*#__PURE__*/function (_React$Component) { _this.scrollable = React.createRef(); _this.draggable = React.createRef(); _this.draggableApi = null; - _this.seekVideoTo = throttle$1(_this._seekVideoTo, 50); + _this.seekVideoTo = throttle$1(_this._seekVideoTo, 20); return _this; } @@ -29877,9 +29880,9 @@ var DnmVideoCut = /*#__PURE__*/function (_React$Component) { }, { key: "componentDidUpdate", value: function componentDidUpdate(prevProps, prevState) { - var _this$state3 = this.state, - videoDuration = _this$state3.videoDuration, - isEditing = _this$state3.isEditing; + var _this$state4 = this.state, + videoDuration = _this$state4.videoDuration, + isEditing = _this$state4.isEditing; var _this$props3 = this.props, inPoint = _this$props3.inPoint, outPoint = _this$props3.outPoint, @@ -29925,13 +29928,12 @@ var DnmVideoCut = /*#__PURE__*/function (_React$Component) { inValue = _this$getFormatedValu3.inValue, outValue = _this$getFormatedValu3.outValue; - var _this$state4 = this.state, - videoDuration = _this$state4.videoDuration, - isEditing = _this$state4.isEditing, - playCursorPosition = _this$state4.playCursorPosition, - isPlaying = _this$state4.isPlaying, - forceCursorDragging = _this$state4.forceCursorDragging, - zoomFactor = _this$state4.zoomFactor; + var _this$state5 = this.state, + videoDuration = _this$state5.videoDuration, + playCursorPosition = _this$state5.playCursorPosition, + isPlaying = _this$state5.isPlaying, + forceCursorDragging = _this$state5.forceCursorDragging, + zoomFactor = _this$state5.zoomFactor; var _this$props4 = this.props, src = _this$props4.src, catalogue = _this$props4.catalogue, @@ -29942,7 +29944,7 @@ var DnmVideoCut = /*#__PURE__*/function (_React$Component) { return jsx("div", { css: css(_templateObject$1(), styles) }, jsx("div", { - className: "dnm-video-cut-root ".concat(classes.root || "", " ").concat(isEditing ? "is-editing" : "", " ").concat(isPlaying ? "is-playing" : "is-paused") + className: "dnm-video-cut-root ".concat(classes.root || "", " ").concat(isPlaying ? "is-playing" : "is-paused") }, jsx("video", { className: "dnm-video-cut-player ".concat(classes.player || ""), src: "".concat(src), @@ -29952,7 +29954,8 @@ var DnmVideoCut = /*#__PURE__*/function (_React$Component) { controls: false, onLoadedData: this.handleLoadedData, onLoad: this.handleVideoLoad, - onError: this.handleVideoPlayerError + onError: this.handleVideoPlayerError, + preload: "auto" }), jsx("div", null, jsx("div", { className: "dnm-video-cut-play-icon", onClick: this.handleFreePlayClick @@ -29964,7 +29967,7 @@ var DnmVideoCut = /*#__PURE__*/function (_React$Component) { style: { width: "calc(".concat(zoomFactor[0] + 100, "% - 20px)") }, - onTouchStart: this.handleContainerMouseDown, + onTouchMove: this.handleContainerMouseDown, onTouchEnd: this.handleContainerMouseUp, onMouseDown: this.handleContainerMouseDown, onMouseUp: this.handleContainerMouseUp diff --git a/dist/dnm-react-video-cut.es.min.js b/dist/dnm-react-video-cut.es.min.js index 25ae1b4..7f0ca59 100644 --- a/dist/dnm-react-video-cut.es.min.js +++ b/dist/dnm-react-video-cut.es.min.js @@ -18,7 +18,7 @@ var qo=Object.getOwnPropertySymbols,Xo=Object.prototype.hasOwnProperty,Go=Object Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ -!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r0,"`Slider[step]` should be a positive number in order to make Slider[dots] work.");var a=Object.keys(t).map(parseFloat).sort((function(e,t){return e-t}));if(n&&r)for(var u=o;u<=i;u+=r)-1===a.indexOf(u)&&a.push(u);return a}(0,i,a,u,p,f).map((function(t){var i,a=Math.abs(t-p)/v*100+"%",u=!s&&t===l||s&&t<=l&&t>=c,f=$n({},d,Lo({},r?o?"top":"bottom":o?"right":"left",a));u&&(f=$n({},f,h));var y=ni((Lo(i={},n+"-dot",!0),Lo(i,n+"-dot-active",u),Lo(i,n+"-dot-reverse",o),i));return e.createElement("span",{className:y,style:f,key:t})}));return e.createElement("div",{className:n+"-step"},y)};ri.propTypes={prefixCls:p.string,activeDotStyle:p.object,dotStyle:p.object,min:p.number,max:p.number,upperBound:p.number,lowerBound:p.number,included:p.bool,dots:p.bool,step:p.number,marks:p.object,vertical:p.bool,reverse:p.bool};var oi=function(t){var n=t.className,r=t.vertical,o=t.reverse,i=t.marks,a=t.included,u=t.upperBound,s=t.lowerBound,c=t.max,l=t.min,f=t.onClickLabel,p=Object.keys(i),d=c-l,h=p.map(parseFloat).sort((function(e,t){return e-t})).map((function(t){var c,p=i[t],h="object"==typeof p&&!e.isValidElement(p),v=h?p.label:p;if(!v&&0!==v)return null;var y=!a&&t===u||a&&t<=u&&t>=s,m=ni((Lo(c={},n+"-text",!0),Lo(c,n+"-text-active",y),c)),g=Lo({marginBottom:"-50%"},o?"top":"bottom",(t-l)/d*100+"%"),b=Lo({transform:"translateX(-50%)",msTransform:"translateX(-50%)"},o?"right":"left",o?(t-l/4)/d*100+"%":(t-l)/d*100+"%"),_=r?g:b,w=h?$n({},_,p.style):_;return e.createElement("span",{className:m,style:w,key:t,onMouseDown:function(e){return f(e,t)},onTouchStart:function(e){return f(e,t)}},v)}));return e.createElement("div",{className:n},h)};oi.propTypes={className:p.string,vertical:p.bool,reverse:p.bool,marks:p.object,included:p.bool,upperBound:p.number,lowerBound:p.number,max:p.number,min:p.number,onClickLabel:p.func};var ii=function(t){function n(){var e,t,r;Yn(this,n);for(var o=arguments.length,i=Array(o),a=0;a1?arguments[1]:void 0,c=void 0!==s,l=0,f=hi(i);if(c&&(s=Xt(s,u>2?arguments[2]:void 0,2)),null==f||a==Array&&ci(f))for(n=new a(t=En(i.length));t>l;l++)li(n,l,c?s(i[l],l):i[l]);else for(o=f.call(i),n=new a;!(r=o.next()).done;l++)li(n,l,c?ai(o,s,[r.value,l],!0):r.value);return n.length=l,n}});var gi=qt.Array.from,bi=Te((function(e){e.exports={default:gi,__esModule:!0}}));Ae(bi);var _i=Ae(Te((function(e,t){t.__esModule=!0;var n,r=(n=bi)&&n.__esModule?n:{default:n};t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=wi.F1&&t<=wi.F12)return!1;switch(t){case wi.ALT:case wi.CAPS_LOCK:case wi.CONTEXT_MENU:case wi.CTRL:case wi.DOWN:case wi.END:case wi.ESC:case wi.HOME:case wi.INSERT:case wi.LEFT:case wi.MAC_FF_META:case wi.META:case wi.NUMLOCK:case wi.NUM_CENTER:case wi.PAGE_DOWN:case wi.PAGE_UP:case wi.PAUSE:case wi.PRINT_SCREEN:case wi.RIGHT:case wi.SHIFT:case wi.UP:case wi.WIN_KEY:case wi.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=wi.ZERO&&e<=wi.NINE)return!0;if(e>=wi.NUM_ZERO&&e<=wi.NUM_MULTIPLY)return!0;if(e>=wi.A&&e<=wi.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case wi.SPACE:case wi.QUESTION_MARK:case wi.NUM_PLUS:case wi.NUM_MINUS:case wi.NUM_PERIOD:case wi.NUM_DIVISION:case wi.SEMICOLON:case wi.DASH:case wi.EQUALS:case wi.COMMA:case wi.PERIOD:case wi.SLASH:case wi.APOSTROPHE:case wi.SINGLE_QUOTE:case wi.OPEN_SQUARE_BRACKET:case wi.BACKSLASH:case wi.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};function Oi(e,t){try{return Object.keys(t).some((function(n){return e.target===f(t[n])}))}catch(e){return!1}}function xi(e,t){var n=t.min,r=t.max;return er}function Ei(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function Si(e,t){var n=t.marks,r=t.step,o=t.min,i=t.max,a=Object.keys(n).map(parseFloat);if(null!==r){var u=Math.floor((i-o)/r),s=Math.min((e-o)/r,u),c=Math.round(s)*r+o;a.push(c)}var l=a.map((function(t){return Math.abs(e-t)}));return a[l.indexOf(Math.min.apply(Math,_i(l)))]}function ji(e,t){return e?t.clientY:t.pageX}function ki(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function Mi(e,t){var n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.pageXOffset+n.left+.5*n.width}function Ci(e,t){var n=t.max,r=t.min;return e<=r?r:e>=n?n:e}function Pi(e,t){var n=t.step,r=isFinite(Si(e,t))?Si(e,t):0;return null===n?r:parseFloat(r.toFixed(function(e){var t=e.toString(),n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}(n)))}function Ai(e){e.stopPropagation(),e.preventDefault()}function Ti(e,t,n){var r="increase",o="decrease",i=r;switch(e.keyCode){case wi.UP:i=t&&n?o:r;break;case wi.RIGHT:i=!t&&n?o:r;break;case wi.DOWN:i=t&&n?r:o;break;case wi.LEFT:i=!t&&n?r:o;break;case wi.END:return function(e,t){return t.max};case wi.HOME:return function(e,t){return t.min};case wi.PAGE_UP:return function(e,t){return e+2*t.step};case wi.PAGE_DOWN:return function(e,t){return e-2*t.step};default:return}return function(e,t){return function(e,t,n){var r={increase:function(e,t){return e+t},decrease:function(e,t){return e-t}},o=r[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),i=Object.keys(n.marks)[o];return n.step?r[e](t,n.step):Object.keys(n.marks).length&&n.marks[i]?n.marks[i]:t}(i,e,t)}}function Di(){}function Ni(t){var n,r;return r=n=function(t){function n(e){Yn(this,n);var t=Eo(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));t.onMouseDown=function(e){if(0===e.button){var n=t.props.vertical,r=ji(n,e);if(Oi(e,t.handlesRefs)){var o=Mi(n,e.target);t.dragOffset=r-o,r=o}else t.dragOffset=0;t.removeDocumentEvents(),t.onStart(r),t.addDocumentMouseEvents()}},t.onTouchStart=function(e){if(!Ei(e)){var n=t.props.vertical,r=ki(n,e);if(Oi(e,t.handlesRefs)){var o=Mi(n,e.target);t.dragOffset=r-o,r=o}else t.dragOffset=0;t.onStart(r),t.addDocumentTouchEvents(),Ai(e)}},t.onFocus=function(e){var n=t.props,r=n.onFocus,o=n.vertical;if(Oi(e,t.handlesRefs)){var i=Mi(o,e.target);t.dragOffset=0,t.onStart(i),Ai(e),r&&r(e)}},t.onBlur=function(e){var n=t.props.onBlur;t.onEnd(),n&&n(e)},t.onMouseUp=function(){t.handlesRefs[t.prevMovedHandleIndex]&&t.handlesRefs[t.prevMovedHandleIndex].clickFocus()},t.onMouseMove=function(e){if(t.sliderRef){var n=ji(t.props.vertical,e);t.onMove(e,n-t.dragOffset)}else t.onEnd()},t.onTouchMove=function(e){if(!Ei(e)&&t.sliderRef){var n=ki(t.props.vertical,e);t.onMove(e,n-t.dragOffset)}else t.onEnd()},t.onKeyDown=function(e){t.sliderRef&&Oi(e,t.handlesRefs)&&t.onKeyboard(e)},t.onClickMarkLabel=function(e,n){e.stopPropagation(),t.onChange({value:n}),t.setState({value:n},(function(){return t.onEnd(!0)}))},t.saveSlider=function(e){t.sliderRef=e};var r=e.step,o=e.max,i=e.min,a=!isFinite(o-i)||(o-i)%r==0;return Ro(!r||Math.floor(r)!==r||a,"Slider[max] - Slider[min] (%s) should be a multiple of Slider[step] (%s)",o-i,r),t.handlesRefs={},t}return To(n,t),Gn(n,[{key:"componentDidMount",value:function(){this.document=this.sliderRef&&this.sliderRef.ownerDocument;var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()}},{key:"componentWillUnmount",value:function(){Yo(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"componentWillUnmount",this)&&Yo(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"componentWillUnmount",this).call(this),this.removeDocumentEvents()}},{key:"getSliderStart",value:function(){var e=this.sliderRef,t=this.props,n=t.vertical,r=t.reverse,o=e.getBoundingClientRect();return n?r?o.bottom:o.top:window.pageXOffset+(r?o.right:o.left)}},{key:"getSliderLength",value:function(){var e=this.sliderRef;if(!e)return 0;var t=e.getBoundingClientRect();return this.props.vertical?t.height:t.width}},{key:"addDocumentTouchEvents",value:function(){this.onTouchMoveListener=ti(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=ti(this.document,"touchend",this.onEnd)}},{key:"addDocumentMouseEvents",value:function(){this.onMouseMoveListener=ti(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=ti(this.document,"mouseup",this.onEnd)}},{key:"removeDocumentEvents",value:function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"focus",value:function(){this.props.disabled||this.handlesRefs[0].focus()}},{key:"blur",value:function(){var e=this;this.props.disabled||Object.keys(this.handlesRefs).forEach((function(t){e.handlesRefs[t]&&e.handlesRefs[t].blur&&e.handlesRefs[t].blur()}))}},{key:"calcValue",value:function(e){var t=this.props,n=t.vertical,r=t.min,o=t.max,i=Math.abs(Math.max(e,0)/this.getSliderLength());return n?(1-i)*(o-r)+r:i*(o-r)+r}},{key:"calcValueByPos",value:function(e){var t=(this.props.reverse?-1:1)*(e-this.getSliderStart());return this.trimAlignValue(this.calcValue(t))}},{key:"calcOffset",value:function(e){var t=this.props,n=t.min;return 100*((e-n)/(t.max-n))}},{key:"saveHandle",value:function(e,t){this.handlesRefs[e]=t}},{key:"render",value:function(){var t,r=this.props,o=r.prefixCls,i=r.className,a=r.marks,u=r.dots,s=r.step,c=r.included,l=r.disabled,f=r.vertical,p=r.reverse,d=r.min,h=r.max,v=r.children,y=r.maximumTrackStyle,m=r.style,g=r.railStyle,b=r.dotStyle,_=r.activeDotStyle,w=Yo(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"render",this).call(this),O=w.tracks,x=w.handles,E=ni(o,(Lo(t={},o+"-with-marks",Object.keys(a).length),Lo(t,o+"-disabled",l),Lo(t,o+"-vertical",f),Lo(t,i,i),t));return e.createElement("div",{ref:this.saveSlider,className:E,onTouchStart:l?Di:this.onTouchStart,onMouseDown:l?Di:this.onMouseDown,onMouseUp:l?Di:this.onMouseUp,onKeyDown:l?Di:this.onKeyDown,onFocus:l?Di:this.onFocus,onBlur:l?Di:this.onBlur,style:m},e.createElement("div",{className:o+"-rail",style:$n({},y,g)}),O,e.createElement(ri,{prefixCls:o,vertical:f,reverse:p,marks:a,dots:u,step:s,included:c,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:h,min:d,dotStyle:b,activeDotStyle:_}),x,e.createElement(oi,{className:o+"-mark",onClickLabel:l?Di:this.onClickMarkLabel,vertical:f,marks:a,included:c,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:h,min:d,reverse:p}),v)}}]),n}(t),n.displayName="ComponentEnhancer("+t.displayName+")",n.propTypes=$n({},t.propTypes,{min:p.number,max:p.number,startPoint:p.number,step:p.number,marks:p.object,included:p.bool,className:p.string,prefixCls:p.string,disabled:p.bool,children:p.any,onBeforeChange:p.func,onChange:p.func,onAfterChange:p.func,handle:p.func,dots:p.bool,vertical:p.bool,style:p.object,reverse:p.bool,minimumTrackStyle:p.object,maximumTrackStyle:p.object,handleStyle:p.oneOfType([p.object,p.arrayOf(p.object)]),trackStyle:p.oneOfType([p.object,p.arrayOf(p.object)]),railStyle:p.object,dotStyle:p.object,activeDotStyle:p.object,autoFocus:p.bool,onFocus:p.func,onBlur:p.func}),n.defaultProps=$n({},t.defaultProps,{prefixCls:"rc-slider",className:"",min:0,max:100,step:1,marks:{},handle:function(t){var n=t.index,r=Fo(t,["index"]);return delete r.dragging,null===r.value?null:e.createElement(ii,$n({},r,{key:n}))},onBeforeChange:Di,onChange:Di,onAfterChange:Di,included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),r}var Ri=function(t){function n(e){Yn(this,n);var t=Eo(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));t.onEnd=function(e){var n=t.state.dragging;t.removeDocumentEvents(),(n||e)&&t.props.onAfterChange(t.getValue()),t.setState({dragging:!1})};var r=void 0!==e.defaultValue?e.defaultValue:e.min,o=void 0!==e.value?e.value:r;return t.state={value:t.trimAlignValue(o),dragging:!1},Ro(!("minimumTrackStyle"in e),"minimumTrackStyle will be deprecated, please use trackStyle instead."),Ro(!("maximumTrackStyle"in e),"maximumTrackStyle will be deprecated, please use railStyle instead."),t}return To(n,t),Gn(n,[{key:"componentDidUpdate",value:function(e,t){if("value"in this.props||"min"in this.props||"max"in this.props){var n=this.props,r=n.value,o=n.onChange,i=void 0!==r?r:t.value,a=this.trimAlignValue(i,this.props);a!==t.value&&(this.setState({value:a}),xi(i,this.props)&&o(a))}}},{key:"onChange",value:function(e){var t=this.props,n=!("value"in t),r=e.value>this.props.max?$n({},e,{value:this.props.max}):e;n&&this.setState(r);var o=r.value;t.onChange(o)}},{key:"onStart",value:function(e){this.setState({dragging:!0});var t=this.props,n=this.getValue();t.onBeforeChange(n);var r=this.calcValueByPos(e);this.startValue=r,this.startPosition=e,r!==n&&(this.prevMovedHandleIndex=0,this.onChange({value:r}))}},{key:"onMove",value:function(e,t){Ai(e);var n=this.state.value,r=this.calcValueByPos(t);r!==n&&this.onChange({value:r})}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,r=Ti(e,t.vertical,n);if(r){Ai(e);var o=this.state.value,i=r(o,this.props),a=this.trimAlignValue(i);if(a===o)return;this.onChange({value:a}),this.props.onAfterChange(a),this.onEnd()}}},{key:"getValue",value:function(){return this.state.value}},{key:"getLowerBound",value:function(){return this.props.min}},{key:"getUpperBound",value:function(){return this.state.value}},{key:"trimAlignValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return null;var n=$n({},this.props,t),r=Ci(e,n);return Pi(r,n)}},{key:"render",value:function(){var t=this,n=this.props,r=n.prefixCls,o=n.vertical,i=n.included,a=n.disabled,u=n.minimumTrackStyle,s=n.trackStyle,c=n.handleStyle,l=n.tabIndex,f=n.ariaLabelForHandle,p=n.ariaLabelledByForHandle,d=n.ariaValueTextFormatterForHandle,h=n.min,v=n.max,y=n.startPoint,m=n.reverse,g=n.handle,b=this.state,_=b.value,w=b.dragging,O=this.calcOffset(_),x=g({className:r+"-handle",prefixCls:r,vertical:o,offset:O,value:_,dragging:w,disabled:a,min:h,max:v,reverse:m,index:0,tabIndex:l,ariaLabel:f,ariaLabelledBy:p,ariaValueTextFormatter:d,style:c[0]||c,ref:function(e){return t.saveHandle(0,e)}}),E=void 0!==y?this.calcOffset(y):0,S=s[0]||s;return{tracks:e.createElement(Io,{className:r+"-track",vertical:o,included:i,offset:E,reverse:m,length:O-E,style:$n({},u,S)}),handles:x}}}]),n}(e.Component);Ri.propTypes={defaultValue:p.number,value:p.number,disabled:p.bool,autoFocus:p.bool,tabIndex:p.number,reverse:p.bool,min:p.number,max:p.number,startPoint:p.number,ariaLabelForHandle:p.string,ariaLabelledByForHandle:p.string,ariaValueTextFormatterForHandle:p.func};var Li=Ni(Ri),Ii=function(e){var t=e.value,n=e.handle,r=e.bounds,o=e.props,i=o.allowCross,a=o.pushable,u=Number(a),s=Ci(t,o),c=s;return i||null==n||void 0===r||(n>0&&s<=r[n-1]+u&&(c=r[n-1]+u),n=r[n+1]-u&&(c=r[n+1]-u)),Pi(c,o)},Fi=function(t){function n(e){Yn(this,n);var t=Eo(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));t.onEnd=function(e){var n=t.state.handle;t.removeDocumentEvents(),(null!==n||e)&&t.props.onAfterChange(t.getValue()),t.setState({handle:null})};var r=e.count,o=e.min,i=e.max,a=Array.apply(void 0,_i(Array(r+1))).map((function(){return o})),u="defaultValue"in e?e.defaultValue:a,s=(void 0!==e.value?e.value:u).map((function(t,n){return Ii({value:t,handle:n,props:e})})),c=s[0]===i?0:s.length-1;return t.state={handle:null,recent:c,bounds:s},t}return To(n,t),Gn(n,[{key:"componentDidUpdate",value:function(e,t){var n=this;if(("value"in this.props||"min"in this.props||"max"in this.props)&&(this.props.min!==e.min||this.props.max!==e.max||!function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(t),s=0;s=t[r]&&(n=r);return Math.abs(t[n+1]-e)=r.length||o<0)return!1;var i=t+n,a=r[o],u=this.props.pushable,s=n*(e[i]-a);return!!this.pushHandle(e,i,n,u-s)&&(e[t]=a,!0)}},{key:"trimAlignValue",value:function(e){var t=this.state,n=t.handle,r=t.bounds;return Ii({value:e,handle:n,bounds:r,props:this.props})}},{key:"render",value:function(){var t=this,n=this.state,r=n.handle,o=n.bounds,i=this.props,a=i.prefixCls,u=i.vertical,s=i.included,c=i.disabled,l=i.min,f=i.max,p=i.reverse,d=i.handle,h=i.trackStyle,v=i.handleStyle,y=i.tabIndex,m=i.ariaLabelGroupForHandles,g=i.ariaLabelledByGroupForHandles,b=i.ariaValueTextFormatterGroupForHandles,_=o.map((function(e){return t.calcOffset(e)})),w=a+"-handle",O=o.map((function(e,n){var o,i=y[n]||0;(c||null===y[n])&&(i=null);var s=r===n;return d({className:ni((o={},Lo(o,w,!0),Lo(o,w+"-"+(n+1),!0),Lo(o,w+"-dragging",s),o)),prefixCls:a,vertical:u,dragging:s,offset:_[n],value:e,index:n,tabIndex:i,min:l,max:f,reverse:p,disabled:c,style:v[n],ref:function(e){return t.saveHandle(n,e)},ariaLabel:m[n],ariaLabelledBy:g[n],ariaValueTextFormatter:b[n]})}));return{tracks:o.slice(0,-1).map((function(t,n){var r,o=n+1,i=ni((Lo(r={},a+"-track",!0),Lo(r,a+"-track-"+o,!0),r));return e.createElement(Io,{className:i,vertical:u,reverse:p,included:s,offset:_[o-1],length:_[o]-_[o-1],style:h[n],key:o})})),handles:O}}}],[{key:"getDerivedStateFromProps",value:function(e,t){if("value"in e||"min"in e||"max"in e){var n=(e.value||t.bounds).map((function(n,r){return Ii({value:n,handle:r,bounds:t.bounds,props:e})}));return n.length===t.bounds.length&&n.every((function(e,n){return e===t.bounds[n]}))?null:$n({},t,{bounds:n})}return null}}]),n}(e.Component);Fi.displayName="Range",Fi.propTypes={autoFocus:p.bool,defaultValue:p.arrayOf(p.number),value:p.arrayOf(p.number),count:p.number,pushable:p.oneOfType([p.bool,p.number]),allowCross:p.bool,disabled:p.bool,reverse:p.bool,tabIndex:p.arrayOf(p.number),min:p.number,max:p.number,ariaLabelGroupForHandles:p.arrayOf(p.string),ariaLabelledByGroupForHandles:p.arrayOf(p.string),ariaValueTextFormatterGroupForHandles:p.arrayOf(p.func)},Fi.defaultProps={count:1,allowCross:!0,pushable:!1,tabIndex:[],ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]};var Wi=Ni(Fi);function Vi(e,t){for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}function Bi(e){return e instanceof HTMLElement?e:l.findDOMNode(e)}function Ui(e){return(Ui="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})(e)}function zi(e,t){"function"==typeof e?e(t):"object"===Ui(e)&&e&&"current"in e&&(e.current=t)}function Hi(){for(var e=arguments.length,t=new Array(e),n=0;n=0&&t.left>=0&&t.bottom>t.top&&t.right>t.left?t:null}function tu(e){var t,n,r;if(Ga.isWindow(e)||9===e.nodeType){var o=Ga.getWindow(e);t={left:Ga.getWindowScrollLeft(o),top:Ga.getWindowScrollTop(o)},n=Ga.viewportWidth(o),r=Ga.viewportHeight(o)}else t=Ga.offset(e),n=Ga.outerWidth(e),r=Ga.outerHeight(e);return t.width=n,t.height=r,t}function nu(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,u=e.top;return"c"===n?u+=i/2:"b"===n&&(u+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:u}}function ru(e,t,n,r,o){var i=nu(t,n[1]),a=nu(e,n[0]),u=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-u[0]+r[0]-o[0]),top:Math.round(e.top-u[1]+r[1]-o[1])}}function ou(e,t,n){return e.leftn.right}function iu(e,t,n){return e.topn.bottom}function au(e,t,n){var r=[];return Ga.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function uu(e,t){return e[t]=-e[t],e}function su(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function cu(e,t){e[0]=su(e[0],t.width),e[1]=su(e[1],t.height)}function lu(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,s=n.source||e;i=[].concat(i),a=[].concat(a),u=u||{};var c={},l=0,f=eu(s),p=tu(s);cu(i,p),cu(a,t);var d=ru(p,t,o,i,a),h=Ga.merge(p,d);if(f&&(u.adjustX||u.adjustY)&&r){if(u.adjustX&&ou(d,p,f)){var v=au(o,/[lr]/gi,{l:"r",r:"l"}),y=uu(i,0),m=uu(a,0);(function(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),Ga.mix(o,i)}(d,p,f,c))}return h.width!==p.width&&Ga.css(s,"width",Ga.width(s)+h.width-p.width),h.height!==p.height&&Ga.css(s,"height",Ga.height(s)+h.height-p.height),Ga.offset(s,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:c}}function fu(e,t,n){var r=n.target||t;return lu(e,tu(r),n,!function(e){var t=eu(e),n=tu(e);return!t||n.left+n.width<=t.left||n.top+n.height<=t.top||n.left>=t.right||n.top>=t.bottom}(r))}function pu(e,t,n){var r,o,i=Ga.getDocument(e),a=i.defaultView||i.parentWindow,u=Ga.getWindowScrollLeft(a),s=Ga.getWindowScrollTop(a),c=Ga.viewportWidth(a),l=Ga.viewportHeight(a);r="pageX"in t?t.pageX:u+t.clientX,o="pageY"in t?t.pageY:s+t.clientY;var f=r>=0&&r<=u+c&&o>=0&&o<=s+l;return lu(e,{left:r,top:o,width:0,height:0},function(e){for(var t=1;t0},e.prototype.connect_=function(){hu&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),gu?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){hu&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;mu.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),_u=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),Tu="undefined"!=typeof WeakMap?new WeakMap:new du,Du=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=bu.getInstance(),r=new Au(t,n,this);Tu.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Du.prototype[e]=function(){var t;return(t=Tu.get(this))[e].apply(t,arguments)}}));var Nu=void 0!==vu.ResizeObserver?vu.ResizeObserver:Du;function Ru(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Lu(e,t){var n=null,r=null;var o=new Nu((function(e){var o=Ru(e,1)[0].target.getBoundingClientRect(),i=o.width,a=o.height,u=Math.floor(i),s=Math.floor(a);n===u&&r===s||t({width:u,height:s}),n=u,r=s}));return e&&o.observe(e),function(){o.disconnect()}}function Iu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Fu(e){return(Fu="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})(e)}function Wu(e){return"function"!=typeof e?null:e()}function Vu(e){return"object"===Fu(e)&&e?e:null}var Bu=e.forwardRef((function(t,n){var r=t.children,o=t.disabled,i=t.target,a=t.align,u=t.onAlign,s=t.monitorWindowResize,c=t.monitorBufferTime,l=void 0===c?0:c,f=e.useRef({}),p=e.useRef(),d=e.Children.only(r),h=e.useRef({});h.current.disabled=o,h.current.target=i,h.current.onAlign=u;var v=Iu(function(t,n){var r=e.useRef(!1),o=e.useRef(null);function i(){window.clearTimeout(o.current)}return[function e(a){if(r.current&&!0!==a)i(),o.current=window.setTimeout((function(){r.current=!1,e()}),n);else{if(!1===t())return;r.current=!0,i(),o.current=window.setTimeout((function(){r.current=!1}),n)}},function(){r.current=!1,i()}]}((function(){var e=h.current,t=e.disabled,n=e.target;if(!t&&n){var r,o=p.current,i=Wu(n),s=Vu(n);f.current.element=i,f.current.point=s;var c=document.activeElement;return i?r=fu(o,i,a):s&&(r=pu(o,s,a)),function(e,t){e!==document.activeElement&&Vi(t,e)&&e.focus()}(c,o),u&&u(o,r),!0}return!1}),l),2),y=v[0],m=v[1],g=e.useRef({cancel:function(){}}),b=e.useRef({cancel:function(){}});e.useEffect((function(){var e,t,n=Wu(i),r=Vu(i);p.current!==b.current.element&&(b.current.cancel(),b.current.element=p.current,b.current.cancel=Lu(p.current,y)),f.current.element===n&&((e=f.current.point)===(t=r)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))||(y(),g.current.element!==n&&(g.current.cancel(),g.current.element=n,g.current.cancel=Lu(n,y)))})),e.useEffect((function(){o?m():y()}),[o]);var _=e.useRef(null);return e.useEffect((function(){s?_.current||(_.current=ti(window,"resize",y)):_.current&&(_.current.remove(),_.current=null)}),[s]),e.useEffect((function(){return function(){g.current.cancel(),b.current.cancel(),_.current&&_.current.remove(),m()}}),[]),e.useImperativeHandle(n,(function(){return{forceAlign:function(){return y(!0)}}})),e.isValidElement(d)&&(d=e.cloneElement(d,{ref:Hi(d.ref,p)})),d}));function Uu(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function zu(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function Hu(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}Bu.displayName="Align",Uu.__suppressDeprecationWarning=!0,zu.__suppressDeprecationWarning=!0,Hu.__suppressDeprecationWarning=!0;var $u=!("undefined"==typeof window||!window.document||!window.document.createElement);function Yu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}var Ku,qu,Xu,Gu=(Ku=$u,qu="undefined"!=typeof window?window:{},Xu={animationend:Yu("Animation","AnimationEnd"),transitionend:Yu("Transition","TransitionEnd")},Ku&&("AnimationEvent"in qu||delete Xu.animationend.animation,"TransitionEvent"in qu||delete Xu.transitionend.transition),Xu),Zu={};$u&&(Zu=document.createElement("div").style);var Ju={};function Qu(e){if(Ju[e])return Ju[e];var t=Gu[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&(p=e.createElement("div",{className:"".concat(r,"-content")},u)),e.createElement("div",{ref:n,className:ni(o,!i&&"".concat(t.hiddenClassName)),onMouseEnter:s,onMouseLeave:c,onMouseDown:l,onTouchStart:f,style:a},p)}));function us(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function ss(e){return(ss="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})(e)}function cs(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fs(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Bs=i((function(t,n){var r=t.overlayClassName,o=t.trigger,i=void 0===o?["hover"]:o,u=t.mouseEnterDelay,s=void 0===u?0:u,l=t.mouseLeaveDelay,f=void 0===l?.1:l,p=t.overlayStyle,d=t.prefixCls,h=void 0===d?"rc-tooltip":d,v=t.children,y=t.onVisibleChange,m=t.afterVisibleChange,g=t.transitionName,b=t.animation,_=t.placement,w=void 0===_?"right":_,O=t.align,x=void 0===O?{}:O,E=t.destroyTooltipOnHide,S=void 0!==E&&E,j=t.defaultVisible,k=t.getTooltipContainer,M=Vs(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer"]),C=a(null);c(n,(function(){return C.current}));var P=function(e){for(var t=1;t0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var sl=ul(Ic),cl=/\{\n\/\* \[wrapped with (.+)\] \*/,ll=/,? & /;var fl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function pl(e){return function(){return e}}var dl=function(){try{var e=Nc(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),hl=ul(dl?function(e,t){return dl(e,"toString",{configurable:!0,enumerable:!1,value:pl(t),writable:!0})}:_c);function vl(e,t){for(var n=-1,r=null==e?0:e.length;++n-1}var _l=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function wl(e,t,n){var r=t+"";return hl(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(fl,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return vl(_l,(function(n){var r="_."+n[0];t&n[1]&&!bl(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(cl);return t?t[1].split(ll):[]}(r),n)))}function Ol(e,t,n,r,o,i,a,u,s,c){var l=8&t;t|=l?32:64,4&(t&=~(l?64:32))||(t&=-4);var f=[e,t,o,l?i:void 0,l?a:void 0,l?void 0:i,l?void 0:a,u,s,c],p=n.apply(void 0,f);return il(e)&&sl(p,f),p.placeholder=r,wl(p,e,t)}function xl(e){return e.placeholder}var El=/^(?:0|[1-9]\d*)$/;function Sl(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&El.test(e))&&e>-1&&e%1==0&&e1&&g.reverse(),l&&s-1&&e%1==0&&e<=9007199254740991}function zl(e){return null!=e&&Ul(e.length)&&!wc(e)}function Hl(e,t,n){if(!fc(n))return!1;var r=typeof t;return!!("number"==r?zl(n)&&Sl(t,n.length):"string"==r&&t in n)&&Rl(n[t],e)}function $l(e){return Bl((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&Hl(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1},Ff.prototype.set=function(e,t){var n=this.__data__,r=Lf(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var Wf=Nc(Ys,"Map");function Vf(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Bf(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t0&&n(u)?t>1?tp(u,t-1,n,r,o):Jf(o,u):r||(o[o.length]=u)}return o}function np(e){return(null==e?0:e.length)?tp(e,1):[]}function rp(e){return hl(Vl(e,void 0,np),e+"")}var op=rp(Zf),ip=yf(Object.getPrototypeOf,Object),ap=Function.prototype,up=Object.prototype,sp=ap.toString,cp=up.hasOwnProperty,lp=sp.call(Object);function fp(e){if(!tc(e)||"[object Object]"!=ec(e))return!1;var t=ip(e);if(null===t)return!0;var n=cp.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&sp.call(n)==lp}function pp(e){if(!tc(e))return!1;var t=ec(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!fp(e)}var dp=Bl((function(e,t){try{return Bc(e,void 0,t)}catch(e){return pp(e)?e:new Error(e)}}));function hp(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=bc(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var vp=Bl((function(e,t,n){var r=1;if(n.length){var o=Ml(n,xl(vp));r|=32}return Tl(e,r,t,n,o)}));vp.placeholder={};var yp=rp((function(e,t){return vl(t,(function(t){t=qf(t),Nl(e,t,vp(e[t],e))})),e})),mp=Bl((function(e,t,n){var r=3;if(n.length){var o=Ml(n,xl(mp));r|=32}return Tl(t,r,e,n,o)}));function gp(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:gp(e,t,n)}mp.placeholder={};var _p=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function wp(e){return _p.test(e)}var Op="[\\ud800-\\udfff]",xp="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ep="\\ud83c[\\udffb-\\udfff]",Sp="[^\\ud800-\\udfff]",jp="(?:\\ud83c[\\udde6-\\uddff]){2}",kp="[\\ud800-\\udbff][\\udc00-\\udfff]",Mp="(?:"+xp+"|"+Ep+")"+"?",Cp="[\\ufe0e\\ufe0f]?"+Mp+("(?:\\u200d(?:"+[Sp,jp,kp].join("|")+")[\\ufe0e\\ufe0f]?"+Mp+")*"),Pp="(?:"+[Sp+xp+"?",xp,jp,kp,Op].join("|")+")",Ap=RegExp(Ep+"(?="+Ep+")|"+Pp+Cp,"g");function Tp(e){return wp(e)?function(e){return e.match(Ap)||[]}(e):function(e){return e.split("")}(e)}function Dp(e){return function(t){var n=wp(t=Yf(t))?Tp(t):void 0,r=n?n[0]:t.charAt(0),o=n?bp(n,1).join(""):t.slice(1);return r[e]()+o}}var Np=Dp("toUpperCase");function Rp(e){return Np(Yf(e).toLowerCase())}function Lp(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o=t?e:t)),e}function md(e){var t=this.__data__=new Ff(e);this.size=t.size}function gd(e,t){return e&&Fl(t,_f(t),e)}md.prototype.clear=function(){this.__data__=new Ff,this.size=0},md.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},md.prototype.get=function(e){return this.__data__.get(e)},md.prototype.has=function(e){return this.__data__.has(e)},md.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ff){var r=n.__data__;if(!Wf||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Bf(r)}return n.set(e,t),this.size=n.size,this};var bd="object"==typeof exports&&exports&&!exports.nodeType&&exports,_d=bd&&"object"==typeof module&&module&&!module.nodeType&&module,wd=_d&&_d.exports===bd?Ys.Buffer:void 0,Od=wd?wd.allocUnsafe:void 0;function xd(e,t){if(t)return e.slice();var n=e.length,r=Od?Od(n):new e.constructor(n);return e.copy(r),r}function Ed(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++nu))return!1;var c=i.get(e),l=i.get(t);if(c&&l)return c==t&&l==e;var f=-1,p=!0,d=2&n?new oh:void 0;for(i.set(e,t),i.set(t,e);++f=t||n<0||f&&e-c>=i}function y(){var e=Bh();if(v(e))return m(e);u=setTimeout(y,function(e){var n=t-(e-s);return f?zh(n,i-(e-c)):n}(e))}function m(e){return u=void 0,p&&r?d(e):(r=o=void 0,a)}function g(){var e=Bh(),n=v(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return clearTimeout(u),u=setTimeout(y,t),d(s)}return void 0===u&&(u=setTimeout(y,t)),a}return t=mc(t)||0,fc(n)&&(l=!!n.leading,i=(f="maxWait"in n)?Uh(mc(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),g.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=s=o=u=void 0},g.flush=function(){return void 0===u?a:m(Bh())},g}var $h=Object.prototype,Yh=$h.hasOwnProperty,Kh=Bl((function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&Hl(t[0],t[1],o)&&(r=1);++n=200&&(i=ah,a=!1,t=new oh(t));e:for(;++o":">",'"':""","'":"'"}),Ev=/[&<>"']/g,Sv=RegExp(Ev.source);function jv(e){return(e=Yf(e))&&Sv.test(e)?e.replace(Ev,xv):e}var kv=/[\\^$.*+?()[\]{}|]/g,Mv=RegExp(kv.source);function Cv(e,t){for(var n=-1,r=null==e?0:e.length;++n-1?o[i?t[a]:a]:void 0}}var Nv=Math.max;function Rv(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:bc(n);return o<0&&(o=Nv(r+o,0)),yl(e,kh(t),o)}var Lv=Dv(Rv);function Iv(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}var Fv=Math.max,Wv=Math.min;function Vv(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=bc(n),o=n<0?Fv(r+o,0):Wv(o,r-1)),yl(e,kh(t),o,!0)}var Bv=Dv(Vv);function Uv(e){return e&&e.length?e[0]:void 0}function zv(e,t){var n=-1,r=zl(e)?Array(e.length):[];return Nh(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function Hv(e,t){return(ic(e)?oc:zv)(e,kh(t))}var $v=fd("floor");function Yv(e){return rp((function(t){var n=t.length,r=n,o=el.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new TypeError("Expected a function");if(o&&!a&&"wrapper"==Qc(i))var a=new el([],!0)}for(r=a?r:n;++rt}function Qv(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=mc(t),n=mc(n)),e(t,n)}}var ey=Qv(Jv),ty=Qv((function(e,t){return e>=t})),ny=Object.prototype.hasOwnProperty;function ry(e,t){return null!=e&&ny.call(e,t)}var oy=Math.max,iy=Math.min;function ay(e){return"string"==typeof e||!ic(e)&&tc(e)&&"[object String]"==ec(e)}function uy(e,t){return oc(t,(function(t){return e[t]}))}function sy(e){return null==e?[]:uy(e,_f(e))}var cy=Math.max;var ly=Math.max;var fy=Math.min;function py(e,t,n){for(var r=n?iv:bl,o=e[0].length,i=e.length,a=i,u=Array(i),s=1/0,c=[];a--;){var l=e[a];a&&t&&(l=oc(l,uf(t))),s=fy(l.length,s),u[a]=!n&&(t||o>=120&&l.length>=120)?new oh(a&&l):void 0}l=e[0];var f=-1,p=u[0];e:for(;++f1),t})),Fl(e,Td(e),n),r&&(n=rh(n,7,sm));for(var o=t.length;o--;)um(n,t[o]);return n}));function lm(e,t,n,r){if(!fc(e))return e;for(var o=-1,i=(t=Kf(t,e)).length,a=i-1,u=e;null!=u&&++ot||i&&a&&s&&!u&&!c||r&&a&&s||!n&&s||!o)return 1;if(!r&&!i&&!c&&e=u?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function vm(e){return rp((function(t){return t=oc(t,uf(kh)),Bl((function(n){var r=this;return e(t,(function(e){return Bc(e,r,n)}))}))}))}var ym=vm(oc),mm=Bl,gm=Math.min,bm=mm((function(e,t){var n=(t=1==t.length&&ic(t[0])?oc(t[0],uf(kh)):oc(tp(t,1),uf(kh))).length;return Bl((function(r){for(var o=-1,i=gm(r.length,n);++o9007199254740991)return n;do{t%2&&(n+=e),(t=Om(t/2))&&(e+=e)}while(t);return n}var Em=Sh("length"),Sm="[\\ud800-\\udfff]",jm="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",km="\\ud83c[\\udffb-\\udfff]",Mm="[^\\ud800-\\udfff]",Cm="(?:\\ud83c[\\udde6-\\uddff]){2}",Pm="[\\ud800-\\udbff][\\udc00-\\udfff]",Am="(?:"+jm+"|"+km+")"+"?",Tm="[\\ufe0e\\ufe0f]?"+Am+("(?:\\u200d(?:"+[Mm,Cm,Pm].join("|")+")[\\ufe0e\\ufe0f]?"+Am+")*"),Dm="(?:"+[Mm+jm+"?",jm,Cm,Pm,Sm].join("|")+")",Nm=RegExp(km+"(?="+km+")|"+Dm+Tm,"g");function Rm(e){return wp(e)?function(e){for(var t=Nm.lastIndex=0;Nm.test(e);)++t;return t}(e):Em(e)}var Lm=Math.ceil;function Im(e,t){var n=(t=void 0===t?" ":sc(t)).length;if(n<2)return n?xm(t,e):t;var r=xm(t,Lm(e/Rm(t)));return wp(t)?bp(Tp(r),0,e).join(""):r.slice(0,e)}var Fm=Math.ceil,Wm=Math.floor;var Vm=/^\s+/,Bm=Ys.parseInt;var Um=Bl((function(e,t){return Tl(e,32,void 0,t,Ml(t,xl(Um)))}));Um.placeholder={};var zm=Bl((function(e,t){return Tl(e,64,void 0,t,Ml(t,xl(zm)))}));zm.placeholder={};var Hm=Lh((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var $m=rp((function(e,t){return null==e?{}:function(e,t){return fm(e,t,(function(t,n){return xh(e,n)}))}(e,t)}));function Ym(e,t,n,r){for(var o=n-1,i=e.length;++o-1;)u!==e&&Km.call(u,s,1),Km.call(e,s,1);return e}function Xm(e,t){return e&&e.length&&t&&t.length?qm(e,t):e}var Gm=Bl(Xm);var Zm=Array.prototype.splice;function Jm(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Sl(o)?Zm.call(e,o,1):um(e,o)}}return e}var Qm=rp((function(e,t){var n=null==e?0:e.length,r=Zf(e,t);return Jm(e,oc(t,(function(e){return Sl(e,n)?+e:e})).sort(dm)),r})),eg=Math.floor,tg=Math.random;function ng(e,t){return e+eg(tg()*(t-e+1))}var rg=parseFloat,og=Math.min,ig=Math.random;var ag=Math.ceil,ug=Math.max;function sg(e){return function(t,n,r){return r&&"number"!=typeof r&&Hl(t,n,r)&&(n=r=void 0),t=gc(t),void 0===n?(n=t,t=0):n=gc(n),function(e,t,n,r){for(var o=-1,i=ug(ag((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,n,r=void 0===r?t1&&Hl(e,t[0],t[1])?t=[]:n>2&&Hl(t[0],t[1],t[2])&&(t=[t[0]]),hm(e,tp(t,1),[])})),kg=Math.floor,Mg=Math.min;function Cg(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,u=null===t,s=nc(t),c=void 0===t;o>>1,a=e[i];null!==a&&!nc(a)&&(n?a<=t:a/g,Bg={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Vg,variable:"",imports:{_:{escape:jv}}},Ug=/\b__p \+= '';/g,zg=/\b(__p \+=) '' \+/g,Hg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$g=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yg=/($^)/,Kg=/['\n\r\u2028\u2029\\]/g,qg=Object.prototype.hasOwnProperty;function Xg(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return fc(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Hh(e,t,{leading:r,maxWait:t,trailing:o})}function Gg(e,t){return t(e)}var Zg=Math.min;function Jg(e,t){var n=e;return n instanceof qc&&(n=n.value()),Lp(t,(function(e,t){return t.func.apply(t.thisArg,Jf([e],t.args))}),n)}function Qg(){return Jg(this.__wrapped__,this.__actions__)}function eb(e,t){for(var n=e.length;n--&&gl(t,e[n],0)>-1;);return n}function tb(e,t){for(var n=-1,r=e.length;++n-1;);return n}var nb=/^\s+|\s+$/g;var rb=/\s+$/;var ob=/^\s+/;var ib=/\w*$/;var ab=Ip({"&":"&","<":"<",">":">",""":'"',"'":"'"}),ub=/&(?:amp|lt|gt|quot|#39);/g,sb=RegExp(ub.source);var cb=Rd&&1/ch(new Rd([,-0]))[1]==1/0?function(e){return new Rd(e)}:Xc;function lb(e,t,n){var r=-1,o=bl,i=e.length,a=!0,u=[],s=u;if(n)a=!1,o=iv;else if(i>=200){var c=t?null:cb(e);if(c)return ch(c);a=!1,o=ah,s=new oh}else s=t?[]:u;e:for(;++r1||this.__actions__.length)&&r instanceof qc&&Sl(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Gg,args:[o],thisArg:void 0}),new el(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));function Ob(e,t,n){var r=e.length;if(r<2)return r?lb(e[0]):[];for(var o=-1,i=Array(r);++o1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,mb(e,n)})),Cb={chunk:function(e,t,n){t=(n?Hl(e,t,n):void 0===t)?1:vd(bc(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=Array(hd(r/t));oo?0:o+n),(r=void 0===r||r>o?o:bc(r))<0&&(r+=o),r=n>r?0:Av(r);n-1:!!o&&gl(e,t,n)>-1},invokeMap:ky,keyBy:By,map:Hv,orderBy:function(e,t,n,r){return null==e?[]:(ic(t)||(t=null==t?[]:[t]),ic(n=r?void 0:n)||(n=null==n?[]:[n]),hm(e,t,n))},partition:Hm,reduce:function(e,t,n){var r=ic(e)?Lp:pg,o=arguments.length<3;return r(e,kh(t),n,o,Nh)},reduceRight:function(e,t,n){var r=ic(e)?dg:pg,o=arguments.length<3;return r(e,kh(t),n,o,gv)},reject:function(e,t){return(ic(e)?Ed:Tv)(e,rm(kh(t)))},sample:function(e){return(ic(e)?mg:gg)(e)},sampleSize:function(e,t,n){return t=(n?Hl(e,t,n):void 0===t)?1:bc(t),(ic(e)?_g:wg)(e,t)},shuffle:function(e){return(ic(e)?Og:xg)(e)},size:function(e){if(null==e)return 0;if(zl(e))return ay(e)?Rm(e):e.length;var t=Ud(e);return"[object Map]"==t||"[object Set]"==t?e.size:bf(e).length},some:function(e,t,n){var r=ic(e)?ih:Sg;return n&&Hl(e,t,n)&&(t=void 0),r(e,kh(t))},sortBy:jg},Ab=Bh,Tb={after:function(e,t){if("function"!=typeof t)throw new TypeError("Expected a function");return e=bc(e),function(){if(--e<1)return t.apply(this,arguments)}},ary:Dl,before:hp,bind:vp,bindKey:mp,curry:Wh,curryRight:Vh,debounce:Hh,defer:rv,delay:ov,flip:function(e){return Tl(e,512)},memoize:Uf,negate:rm,once:function(e){return hp(2,e)},overArgs:bm,partial:Um,partialRight:zm,rearg:fg,rest:function(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return Bl(e,t=void 0===t?t:bc(t))},spread:function(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return t=null==t?0:Tg(bc(t),0),Bl((function(n){var r=n[t],o=bp(n,0,t);return r&&Jf(o,r),Bc(e,this,o)}))},throttle:Xg,unary:function(e){return Dl(e,1)},wrap:function(e,t){return Um(dv(t),e)}},Db={castArray:function(){if(!arguments.length)return[];var e=arguments[0];return ic(e)?e:[e]},clone:function(e){return rh(e,4)},cloneDeep:function(e){return rh(e,5)},cloneDeepWith:function(e,t){return rh(e,5,t="function"==typeof t?t:void 0)},cloneWith:function(e,t){return rh(e,4,t="function"==typeof t?t:void 0)},conformsTo:function(e,t){return null==t||Mh(e,t,_f(t))},eq:Rl,gt:ey,gte:ty,isArguments:Ql,isArray:ic,isArrayBuffer:Cy,isArrayLike:zl,isArrayLikeObject:Xh,isBoolean:function(e){return!0===e||!1===e||tc(e)&&"[object Boolean]"==ec(e)},isBuffer:of,isDate:Ay,isElement:function(e){return tc(e)&&1===e.nodeType&&!fp(e)},isEmpty:function(e){if(null==e)return!0;if(zl(e)&&(ic(e)||"string"==typeof e||"function"==typeof e.splice||of(e)||df(e)||Ql(e)))return!e.length;var t=Ud(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(Kl(e))return!bf(e).length;for(var n in e)if(Ty.call(e,n))return!1;return!0},isEqual:function(e,t){return vh(e,t)},isEqualWith:function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?vh(e,t,void 0,n):!!r},isError:pp,isFinite:function(e){return"number"==typeof e&&Dy(e)},isFunction:wc,isInteger:Ny,isLength:Ul,isMap:Qd,isMatch:function(e,t){return e===t||yh(e,t,gh(t))},isMatchWith:function(e,t,n){return n="function"==typeof n?n:void 0,yh(e,t,gh(t),n)},isNaN:function(e){return Ry(e)&&e!=+e},isNative:function(e){if(Ly(e))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dc(e)},isNil:function(e){return null==e},isNull:function(e){return null===e},isNumber:Ry,isObject:fc,isObjectLike:tc,isPlainObject:fp,isRegExp:Fy,isSafeInteger:function(e){return Ny(e)&&e>=-9007199254740991&&e<=9007199254740991},isSet:th,isString:ay,isSymbol:nc,isTypedArray:df,isUndefined:function(e){return void 0===e},isWeakMap:function(e){return tc(e)&&"[object WeakMap]"==Ud(e)},isWeakSet:function(e){return tc(e)&&"[object WeakSet]"==ec(e)},lt:Ky,lte:qy,toArray:im,toFinite:gc,toInteger:bc,toLength:Av,toNumber:mc,toPlainObject:Zh,toSafeInteger:function(e){return e?yd(bc(e),-9007199254740991,9007199254740991):0===e?e:0},toString:Yf},Nb={add:lc,ceil:pd,divide:fv,floor:$v,max:function(e){return e&&e.length?Xy(e,_c,Jv):void 0},maxBy:function(e,t){return e&&e.length?Xy(e,kh(t),Jv):void 0},mean:function(e){return Zy(e,_c)},meanBy:function(e,t){return Zy(e,kh(t))},min:function(e){return e&&e.length?Xy(e,_c,Yy):void 0},minBy:function(e,t){return e&&e.length?Xy(e,kh(t),Yy):void 0},multiply:nm,round:yg,subtract:Ng,sum:function(e){return e&&e.length?Gy(e,_c):0},sumBy:function(e,t){return e&&e.length?Gy(e,kh(t)):0}},Rb=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=mc(n))==n?n:0),void 0!==t&&(t=(t=mc(t))==t?t:0),yd(mc(e),t,n)},Lb=function(e,t,n){return t=gc(t),void 0===n?(n=t,t=0):n=gc(n),function(e,t,n){return e>=iy(t,n)&&et){var r=e;e=t,t=r}if(n||e%1||t%1){var o=ig();return og(e+o*(t-e+rg("1e-"+((o+"").length-1))),t)}return ng(e,t)},Fb={assign:Of,assignIn:jf,assignInWith:kf,assignWith:Mf,at:op,create:function(e,t){var n=Wc(e);return null==t?n:gd(n,t)},defaults:Kh,defaultsDeep:tv,entries:wv,entriesIn:Ov,extend:jf,extendWith:kf,findKey:function(e,t){return Iv(e,kh(t),Th)},findLastKey:function(e,t){return Iv(e,kh(t),mv)},forIn:function(e,t){return null==e?e:Ah(e,dv(t),Sf)},forInRight:function(e,t){return null==e?e:yv(e,dv(t),Sf)},forOwn:function(e,t){return e&&Th(e,dv(t))},forOwnRight:function(e,t){return e&&mv(e,dv(t))},functions:function(e){return null==e?[]:Xv(e,_f(e))},functionsIn:function(e){return null==e?[]:Xv(e,Sf(e))},get:Gf,has:function(e,t){return null!=e&&Oh(e,t,ry)},hasIn:xh,invert:by,invertBy:xy,invoke:jy,keys:_f,keysIn:Sf,mapKeys:function(e,t){var n={};return t=kh(t),Th(e,(function(e,r,o){Nl(n,t(e,r,o),e)})),n},mapValues:function(e,t){var n={};return t=kh(t),Th(e,(function(e,r,o){Nl(n,r,t(e,r,o))})),n},merge:Jy,mergeWith:ev,omit:cm,omitBy:function(e,t){return pm(e,rm(kh(t)))},pick:$m,pickBy:pm,result:function(e,t,n){var r=-1,o=(t=Kf(t,e)).length;for(o||(o=1,e=void 0);++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},plant:function(e){for(var t,n=this;n instanceof Kc;){var r=nl(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},reverse:function(){var e=this.__wrapped__;if(e instanceof qc){var t=e;return this.__actions__.length&&(t=new qc(this)),(t=t.reverse()).__actions__.push({func:Gg,args:[vg],thisArg:void 0}),new el(t,this.__chain__)}return this.thru(vg)},tap:function(e,t){return t(e),e},thru:Gg,toIterator:function(){return this},toJSON:Qg,value:Qg,valueOf:Qg,wrapperChain:function(){return dd(this)}},Vb={camelCase:sd,capitalize:Rp,deburr:Bp,endsWith:function(e,t,n){e=Yf(e),t=sc(t);var r=e.length,o=n=void 0===n?r:yd(bc(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},escape:jv,escapeRegExp:function(e){return(e=Yf(e))&&Mv.test(e)?e.replace(kv,"\\$&"):e},kebabCase:Vy,lowerCase:Hy,lowerFirst:$y,pad:function(e,t,n){e=Yf(e);var r=(t=bc(t))?Rm(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Im(Wm(o),n)+e+Im(Fm(o),n)},padEnd:function(e,t,n){e=Yf(e);var r=(t=bc(t))?Rm(e):0;return t&&r>>0)?(e=Yf(e))&&("string"==typeof t||null!=t&&!Fy(t))&&!(t=sc(t))&&wp(e)?bp(Tp(e),0,n):e.split(t,n):[]},startCase:Dg,startsWith:function(e,t,n){return e=Yf(e),n=null==n?0:yd(bc(n),0,e.length),t=sc(t),e.slice(n,n+t.length)==t},template:function(e,t,n){var r=Bg.imports._.templateSettings||Bg;n&&Hl(e,t,n)&&(t=void 0),e=Yf(e),t=kf({},t,r,Ig);var o,i,a=kf({},t.imports,r.imports,Ig),u=_f(a),s=uy(a,u),c=0,l=t.interpolate||Yg,f="__p += '",p=RegExp((t.escape||Yg).source+"|"+l.source+"|"+(l===Vg?$g:Yg).source+"|"+(t.evaluate||Yg).source+"|$","g"),d=qg.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(p,(function(t,n,r,a,u,s){return r||(r=a),f+=e.slice(c,s).replace(Kg,Wg),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),u&&(i=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+t.length,t})),f+="';\n";var h=qg.call(t,"variable")&&t.variable;h||(f="with (obj) {\n"+f+"\n}\n"),f=(i?f.replace(Ug,""):f).replace(zg,"$1").replace(Hg,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=dp((function(){return Function(u,d+"return "+f).apply(void 0,s)}));if(v.source=f,pp(v))throw v;return v},templateSettings:Bg,toLower:function(e){return Yf(e).toLowerCase()},toUpper:function(e){return Yf(e).toUpperCase()},trim:function(e,t,n){if((e=Yf(e))&&(n||void 0===t))return e.replace(nb,"");if(!e||!(t=sc(t)))return e;var r=Tp(e),o=Tp(t);return bp(r,tb(r,o),eb(r,o)+1).join("")},trimEnd:function(e,t,n){if((e=Yf(e))&&(n||void 0===t))return e.replace(rb,"");if(!e||!(t=sc(t)))return e;var r=Tp(e);return bp(r,0,eb(r,Tp(t))+1).join("")},trimStart:function(e,t,n){if((e=Yf(e))&&(n||void 0===t))return e.replace(ob,"");if(!e||!(t=sc(t)))return e;var r=Tp(e);return bp(r,tb(r,Tp(t))).join("")},truncate:function(e,t){var n=30,r="...";if(fc(t)){var o="separator"in t?t.separator:o;n="length"in t?bc(t.length):n,r="omission"in t?sc(t.omission):r}var i=(e=Yf(e)).length;if(wp(e)){var a=Tp(e);i=a.length}if(n>=i)return e;var u=n-Rm(r);if(u<1)return r;var s=a?bp(a,0,u).join(""):e.slice(0,u);if(void 0===o)return s+r;if(a&&(u+=s.length-u),Fy(o)){if(e.slice(u).search(o)){var c,l=s;for(o.global||(o=RegExp(o.source,Yf(ib.exec(o))+"g")),o.lastIndex=0;c=o.exec(l);)var f=c.index;s=s.slice(0,void 0===f?u:f)}}else if(e.indexOf(sc(o),u)!=u){var p=s.lastIndexOf(o);p>-1&&(s=s.slice(0,p))}return s+r},unescape:function(e){return(e=Yf(e))&&sb.test(e)?e.replace(ub,ab):e},upperCase:bb,upperFirst:Np,words:id},Bb={attempt:dp,bindAll:yp,cond:function(e){var t=null==e?0:e.length,n=kh;return e=t?oc(e,(function(e){if("function"!=typeof e[1])throw new TypeError("Expected a function");return[n(e[0]),e[1]]})):[],Bl((function(n){for(var r=-1;++r9007199254740991)return[];var n=4294967295,r=Zg(e,4294967295);e-=4294967295;for(var o=ql(r,t=dv(t));++n0,"`Slider[step]` should be a positive number in order to make Slider[dots] work.");var a=Object.keys(t).map(parseFloat).sort((function(e,t){return e-t}));if(n&&r)for(var u=o;u<=i;u+=r)-1===a.indexOf(u)&&a.push(u);return a}(0,i,a,u,p,f).map((function(t){var i,a=Math.abs(t-p)/v*100+"%",u=!s&&t===l||s&&t<=l&&t>=c,f=$n({},d,Lo({},r?o?"top":"bottom":o?"right":"left",a));u&&(f=$n({},f,h));var y=ni((Lo(i={},n+"-dot",!0),Lo(i,n+"-dot-active",u),Lo(i,n+"-dot-reverse",o),i));return e.createElement("span",{className:y,style:f,key:t})}));return e.createElement("div",{className:n+"-step"},y)};ri.propTypes={prefixCls:p.string,activeDotStyle:p.object,dotStyle:p.object,min:p.number,max:p.number,upperBound:p.number,lowerBound:p.number,included:p.bool,dots:p.bool,step:p.number,marks:p.object,vertical:p.bool,reverse:p.bool};var oi=function(t){var n=t.className,r=t.vertical,o=t.reverse,i=t.marks,a=t.included,u=t.upperBound,s=t.lowerBound,c=t.max,l=t.min,f=t.onClickLabel,p=Object.keys(i),d=c-l,h=p.map(parseFloat).sort((function(e,t){return e-t})).map((function(t){var c,p=i[t],h="object"==typeof p&&!e.isValidElement(p),v=h?p.label:p;if(!v&&0!==v)return null;var y=!a&&t===u||a&&t<=u&&t>=s,m=ni((Lo(c={},n+"-text",!0),Lo(c,n+"-text-active",y),c)),g=Lo({marginBottom:"-50%"},o?"top":"bottom",(t-l)/d*100+"%"),b=Lo({transform:"translateX(-50%)",msTransform:"translateX(-50%)"},o?"right":"left",o?(t-l/4)/d*100+"%":(t-l)/d*100+"%"),_=r?g:b,w=h?$n({},_,p.style):_;return e.createElement("span",{className:m,style:w,key:t,onMouseDown:function(e){return f(e,t)},onTouchStart:function(e){return f(e,t)}},v)}));return e.createElement("div",{className:n},h)};oi.propTypes={className:p.string,vertical:p.bool,reverse:p.bool,marks:p.object,included:p.bool,upperBound:p.number,lowerBound:p.number,max:p.number,min:p.number,onClickLabel:p.func};var ii=function(t){function n(){var e,t,r;Yn(this,n);for(var o=arguments.length,i=Array(o),a=0;a1?arguments[1]:void 0,c=void 0!==s,l=0,f=hi(i);if(c&&(s=Xt(s,u>2?arguments[2]:void 0,2)),null==f||a==Array&&ci(f))for(n=new a(t=En(i.length));t>l;l++)li(n,l,c?s(i[l],l):i[l]);else for(o=f.call(i),n=new a;!(r=o.next()).done;l++)li(n,l,c?ai(o,s,[r.value,l],!0):r.value);return n.length=l,n}});var gi=qt.Array.from,bi=Te((function(e){e.exports={default:gi,__esModule:!0}}));Ae(bi);var _i=Ae(Te((function(e,t){t.__esModule=!0;var n,r=(n=bi)&&n.__esModule?n:{default:n};t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=wi.F1&&t<=wi.F12)return!1;switch(t){case wi.ALT:case wi.CAPS_LOCK:case wi.CONTEXT_MENU:case wi.CTRL:case wi.DOWN:case wi.END:case wi.ESC:case wi.HOME:case wi.INSERT:case wi.LEFT:case wi.MAC_FF_META:case wi.META:case wi.NUMLOCK:case wi.NUM_CENTER:case wi.PAGE_DOWN:case wi.PAGE_UP:case wi.PAUSE:case wi.PRINT_SCREEN:case wi.RIGHT:case wi.SHIFT:case wi.UP:case wi.WIN_KEY:case wi.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=wi.ZERO&&e<=wi.NINE)return!0;if(e>=wi.NUM_ZERO&&e<=wi.NUM_MULTIPLY)return!0;if(e>=wi.A&&e<=wi.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case wi.SPACE:case wi.QUESTION_MARK:case wi.NUM_PLUS:case wi.NUM_MINUS:case wi.NUM_PERIOD:case wi.NUM_DIVISION:case wi.SEMICOLON:case wi.DASH:case wi.EQUALS:case wi.COMMA:case wi.PERIOD:case wi.SLASH:case wi.APOSTROPHE:case wi.SINGLE_QUOTE:case wi.OPEN_SQUARE_BRACKET:case wi.BACKSLASH:case wi.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};function Oi(e,t){try{return Object.keys(t).some((function(n){return e.target===f(t[n])}))}catch(e){return!1}}function xi(e,t){var n=t.min,r=t.max;return er}function Ei(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function Si(e,t){var n=t.marks,r=t.step,o=t.min,i=t.max,a=Object.keys(n).map(parseFloat);if(null!==r){var u=Math.floor((i-o)/r),s=Math.min((e-o)/r,u),c=Math.round(s)*r+o;a.push(c)}var l=a.map((function(t){return Math.abs(e-t)}));return a[l.indexOf(Math.min.apply(Math,_i(l)))]}function ji(e,t){return e?t.clientY:t.pageX}function ki(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function Mi(e,t){var n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.pageXOffset+n.left+.5*n.width}function Ci(e,t){var n=t.max,r=t.min;return e<=r?r:e>=n?n:e}function Pi(e,t){var n=t.step,r=isFinite(Si(e,t))?Si(e,t):0;return null===n?r:parseFloat(r.toFixed(function(e){var t=e.toString(),n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}(n)))}function Ai(e){e.stopPropagation(),e.preventDefault()}function Ti(e,t,n){var r="increase",o="decrease",i=r;switch(e.keyCode){case wi.UP:i=t&&n?o:r;break;case wi.RIGHT:i=!t&&n?o:r;break;case wi.DOWN:i=t&&n?r:o;break;case wi.LEFT:i=!t&&n?r:o;break;case wi.END:return function(e,t){return t.max};case wi.HOME:return function(e,t){return t.min};case wi.PAGE_UP:return function(e,t){return e+2*t.step};case wi.PAGE_DOWN:return function(e,t){return e-2*t.step};default:return}return function(e,t){return function(e,t,n){var r={increase:function(e,t){return e+t},decrease:function(e,t){return e-t}},o=r[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),i=Object.keys(n.marks)[o];return n.step?r[e](t,n.step):Object.keys(n.marks).length&&n.marks[i]?n.marks[i]:t}(i,e,t)}}function Di(){}function Ni(t){var n,r;return r=n=function(t){function n(e){Yn(this,n);var t=Eo(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));t.onMouseDown=function(e){if(0===e.button){var n=t.props.vertical,r=ji(n,e);if(Oi(e,t.handlesRefs)){var o=Mi(n,e.target);t.dragOffset=r-o,r=o}else t.dragOffset=0;t.removeDocumentEvents(),t.onStart(r),t.addDocumentMouseEvents()}},t.onTouchStart=function(e){if(!Ei(e)){var n=t.props.vertical,r=ki(n,e);if(Oi(e,t.handlesRefs)){var o=Mi(n,e.target);t.dragOffset=r-o,r=o}else t.dragOffset=0;t.onStart(r),t.addDocumentTouchEvents(),Ai(e)}},t.onFocus=function(e){var n=t.props,r=n.onFocus,o=n.vertical;if(Oi(e,t.handlesRefs)){var i=Mi(o,e.target);t.dragOffset=0,t.onStart(i),Ai(e),r&&r(e)}},t.onBlur=function(e){var n=t.props.onBlur;t.onEnd(),n&&n(e)},t.onMouseUp=function(){t.handlesRefs[t.prevMovedHandleIndex]&&t.handlesRefs[t.prevMovedHandleIndex].clickFocus()},t.onMouseMove=function(e){if(t.sliderRef){var n=ji(t.props.vertical,e);t.onMove(e,n-t.dragOffset)}else t.onEnd()},t.onTouchMove=function(e){if(!Ei(e)&&t.sliderRef){var n=ki(t.props.vertical,e);t.onMove(e,n-t.dragOffset)}else t.onEnd()},t.onKeyDown=function(e){t.sliderRef&&Oi(e,t.handlesRefs)&&t.onKeyboard(e)},t.onClickMarkLabel=function(e,n){e.stopPropagation(),t.onChange({value:n}),t.setState({value:n},(function(){return t.onEnd(!0)}))},t.saveSlider=function(e){t.sliderRef=e};var r=e.step,o=e.max,i=e.min,a=!isFinite(o-i)||(o-i)%r==0;return Ro(!r||Math.floor(r)!==r||a,"Slider[max] - Slider[min] (%s) should be a multiple of Slider[step] (%s)",o-i,r),t.handlesRefs={},t}return To(n,t),Gn(n,[{key:"componentDidMount",value:function(){this.document=this.sliderRef&&this.sliderRef.ownerDocument;var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()}},{key:"componentWillUnmount",value:function(){Yo(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"componentWillUnmount",this)&&Yo(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"componentWillUnmount",this).call(this),this.removeDocumentEvents()}},{key:"getSliderStart",value:function(){var e=this.sliderRef,t=this.props,n=t.vertical,r=t.reverse,o=e.getBoundingClientRect();return n?r?o.bottom:o.top:window.pageXOffset+(r?o.right:o.left)}},{key:"getSliderLength",value:function(){var e=this.sliderRef;if(!e)return 0;var t=e.getBoundingClientRect();return this.props.vertical?t.height:t.width}},{key:"addDocumentTouchEvents",value:function(){this.onTouchMoveListener=ti(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=ti(this.document,"touchend",this.onEnd)}},{key:"addDocumentMouseEvents",value:function(){this.onMouseMoveListener=ti(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=ti(this.document,"mouseup",this.onEnd)}},{key:"removeDocumentEvents",value:function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"focus",value:function(){this.props.disabled||this.handlesRefs[0].focus()}},{key:"blur",value:function(){var e=this;this.props.disabled||Object.keys(this.handlesRefs).forEach((function(t){e.handlesRefs[t]&&e.handlesRefs[t].blur&&e.handlesRefs[t].blur()}))}},{key:"calcValue",value:function(e){var t=this.props,n=t.vertical,r=t.min,o=t.max,i=Math.abs(Math.max(e,0)/this.getSliderLength());return n?(1-i)*(o-r)+r:i*(o-r)+r}},{key:"calcValueByPos",value:function(e){var t=(this.props.reverse?-1:1)*(e-this.getSliderStart());return this.trimAlignValue(this.calcValue(t))}},{key:"calcOffset",value:function(e){var t=this.props,n=t.min;return 100*((e-n)/(t.max-n))}},{key:"saveHandle",value:function(e,t){this.handlesRefs[e]=t}},{key:"render",value:function(){var t,r=this.props,o=r.prefixCls,i=r.className,a=r.marks,u=r.dots,s=r.step,c=r.included,l=r.disabled,f=r.vertical,p=r.reverse,d=r.min,h=r.max,v=r.children,y=r.maximumTrackStyle,m=r.style,g=r.railStyle,b=r.dotStyle,_=r.activeDotStyle,w=Yo(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"render",this).call(this),O=w.tracks,x=w.handles,E=ni(o,(Lo(t={},o+"-with-marks",Object.keys(a).length),Lo(t,o+"-disabled",l),Lo(t,o+"-vertical",f),Lo(t,i,i),t));return e.createElement("div",{ref:this.saveSlider,className:E,onTouchStart:l?Di:this.onTouchStart,onMouseDown:l?Di:this.onMouseDown,onMouseUp:l?Di:this.onMouseUp,onKeyDown:l?Di:this.onKeyDown,onFocus:l?Di:this.onFocus,onBlur:l?Di:this.onBlur,style:m},e.createElement("div",{className:o+"-rail",style:$n({},y,g)}),O,e.createElement(ri,{prefixCls:o,vertical:f,reverse:p,marks:a,dots:u,step:s,included:c,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:h,min:d,dotStyle:b,activeDotStyle:_}),x,e.createElement(oi,{className:o+"-mark",onClickLabel:l?Di:this.onClickMarkLabel,vertical:f,marks:a,included:c,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:h,min:d,reverse:p}),v)}}]),n}(t),n.displayName="ComponentEnhancer("+t.displayName+")",n.propTypes=$n({},t.propTypes,{min:p.number,max:p.number,startPoint:p.number,step:p.number,marks:p.object,included:p.bool,className:p.string,prefixCls:p.string,disabled:p.bool,children:p.any,onBeforeChange:p.func,onChange:p.func,onAfterChange:p.func,handle:p.func,dots:p.bool,vertical:p.bool,style:p.object,reverse:p.bool,minimumTrackStyle:p.object,maximumTrackStyle:p.object,handleStyle:p.oneOfType([p.object,p.arrayOf(p.object)]),trackStyle:p.oneOfType([p.object,p.arrayOf(p.object)]),railStyle:p.object,dotStyle:p.object,activeDotStyle:p.object,autoFocus:p.bool,onFocus:p.func,onBlur:p.func}),n.defaultProps=$n({},t.defaultProps,{prefixCls:"rc-slider",className:"",min:0,max:100,step:1,marks:{},handle:function(t){var n=t.index,r=Fo(t,["index"]);return delete r.dragging,null===r.value?null:e.createElement(ii,$n({},r,{key:n}))},onBeforeChange:Di,onChange:Di,onAfterChange:Di,included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),r}var Ri=function(t){function n(e){Yn(this,n);var t=Eo(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));t.onEnd=function(e){var n=t.state.dragging;t.removeDocumentEvents(),(n||e)&&t.props.onAfterChange(t.getValue()),t.setState({dragging:!1})};var r=void 0!==e.defaultValue?e.defaultValue:e.min,o=void 0!==e.value?e.value:r;return t.state={value:t.trimAlignValue(o),dragging:!1},Ro(!("minimumTrackStyle"in e),"minimumTrackStyle will be deprecated, please use trackStyle instead."),Ro(!("maximumTrackStyle"in e),"maximumTrackStyle will be deprecated, please use railStyle instead."),t}return To(n,t),Gn(n,[{key:"componentDidUpdate",value:function(e,t){if("value"in this.props||"min"in this.props||"max"in this.props){var n=this.props,r=n.value,o=n.onChange,i=void 0!==r?r:t.value,a=this.trimAlignValue(i,this.props);a!==t.value&&(this.setState({value:a}),xi(i,this.props)&&o(a))}}},{key:"onChange",value:function(e){var t=this.props,n=!("value"in t),r=e.value>this.props.max?$n({},e,{value:this.props.max}):e;n&&this.setState(r);var o=r.value;t.onChange(o)}},{key:"onStart",value:function(e){this.setState({dragging:!0});var t=this.props,n=this.getValue();t.onBeforeChange(n);var r=this.calcValueByPos(e);this.startValue=r,this.startPosition=e,r!==n&&(this.prevMovedHandleIndex=0,this.onChange({value:r}))}},{key:"onMove",value:function(e,t){Ai(e);var n=this.state.value,r=this.calcValueByPos(t);r!==n&&this.onChange({value:r})}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,r=Ti(e,t.vertical,n);if(r){Ai(e);var o=this.state.value,i=r(o,this.props),a=this.trimAlignValue(i);if(a===o)return;this.onChange({value:a}),this.props.onAfterChange(a),this.onEnd()}}},{key:"getValue",value:function(){return this.state.value}},{key:"getLowerBound",value:function(){return this.props.min}},{key:"getUpperBound",value:function(){return this.state.value}},{key:"trimAlignValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return null;var n=$n({},this.props,t),r=Ci(e,n);return Pi(r,n)}},{key:"render",value:function(){var t=this,n=this.props,r=n.prefixCls,o=n.vertical,i=n.included,a=n.disabled,u=n.minimumTrackStyle,s=n.trackStyle,c=n.handleStyle,l=n.tabIndex,f=n.ariaLabelForHandle,p=n.ariaLabelledByForHandle,d=n.ariaValueTextFormatterForHandle,h=n.min,v=n.max,y=n.startPoint,m=n.reverse,g=n.handle,b=this.state,_=b.value,w=b.dragging,O=this.calcOffset(_),x=g({className:r+"-handle",prefixCls:r,vertical:o,offset:O,value:_,dragging:w,disabled:a,min:h,max:v,reverse:m,index:0,tabIndex:l,ariaLabel:f,ariaLabelledBy:p,ariaValueTextFormatter:d,style:c[0]||c,ref:function(e){return t.saveHandle(0,e)}}),E=void 0!==y?this.calcOffset(y):0,S=s[0]||s;return{tracks:e.createElement(Io,{className:r+"-track",vertical:o,included:i,offset:E,reverse:m,length:O-E,style:$n({},u,S)}),handles:x}}}]),n}(e.Component);Ri.propTypes={defaultValue:p.number,value:p.number,disabled:p.bool,autoFocus:p.bool,tabIndex:p.number,reverse:p.bool,min:p.number,max:p.number,startPoint:p.number,ariaLabelForHandle:p.string,ariaLabelledByForHandle:p.string,ariaValueTextFormatterForHandle:p.func};var Li=Ni(Ri),Ii=function(e){var t=e.value,n=e.handle,r=e.bounds,o=e.props,i=o.allowCross,a=o.pushable,u=Number(a),s=Ci(t,o),c=s;return i||null==n||void 0===r||(n>0&&s<=r[n-1]+u&&(c=r[n-1]+u),n=r[n+1]-u&&(c=r[n+1]-u)),Pi(c,o)},Fi=function(t){function n(e){Yn(this,n);var t=Eo(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));t.onEnd=function(e){var n=t.state.handle;t.removeDocumentEvents(),(null!==n||e)&&t.props.onAfterChange(t.getValue()),t.setState({handle:null})};var r=e.count,o=e.min,i=e.max,a=Array.apply(void 0,_i(Array(r+1))).map((function(){return o})),u="defaultValue"in e?e.defaultValue:a,s=(void 0!==e.value?e.value:u).map((function(t,n){return Ii({value:t,handle:n,props:e})})),c=s[0]===i?0:s.length-1;return t.state={handle:null,recent:c,bounds:s},t}return To(n,t),Gn(n,[{key:"componentDidUpdate",value:function(e,t){var n=this;if(("value"in this.props||"min"in this.props||"max"in this.props)&&(this.props.min!==e.min||this.props.max!==e.max||!function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(t),s=0;s=t[r]&&(n=r);return Math.abs(t[n+1]-e)=r.length||o<0)return!1;var i=t+n,a=r[o],u=this.props.pushable,s=n*(e[i]-a);return!!this.pushHandle(e,i,n,u-s)&&(e[t]=a,!0)}},{key:"trimAlignValue",value:function(e){var t=this.state,n=t.handle,r=t.bounds;return Ii({value:e,handle:n,bounds:r,props:this.props})}},{key:"render",value:function(){var t=this,n=this.state,r=n.handle,o=n.bounds,i=this.props,a=i.prefixCls,u=i.vertical,s=i.included,c=i.disabled,l=i.min,f=i.max,p=i.reverse,d=i.handle,h=i.trackStyle,v=i.handleStyle,y=i.tabIndex,m=i.ariaLabelGroupForHandles,g=i.ariaLabelledByGroupForHandles,b=i.ariaValueTextFormatterGroupForHandles,_=o.map((function(e){return t.calcOffset(e)})),w=a+"-handle",O=o.map((function(e,n){var o,i=y[n]||0;(c||null===y[n])&&(i=null);var s=r===n;return d({className:ni((o={},Lo(o,w,!0),Lo(o,w+"-"+(n+1),!0),Lo(o,w+"-dragging",s),o)),prefixCls:a,vertical:u,dragging:s,offset:_[n],value:e,index:n,tabIndex:i,min:l,max:f,reverse:p,disabled:c,style:v[n],ref:function(e){return t.saveHandle(n,e)},ariaLabel:m[n],ariaLabelledBy:g[n],ariaValueTextFormatter:b[n]})}));return{tracks:o.slice(0,-1).map((function(t,n){var r,o=n+1,i=ni((Lo(r={},a+"-track",!0),Lo(r,a+"-track-"+o,!0),r));return e.createElement(Io,{className:i,vertical:u,reverse:p,included:s,offset:_[o-1],length:_[o]-_[o-1],style:h[n],key:o})})),handles:O}}}],[{key:"getDerivedStateFromProps",value:function(e,t){if("value"in e||"min"in e||"max"in e){var n=(e.value||t.bounds).map((function(n,r){return Ii({value:n,handle:r,bounds:t.bounds,props:e})}));return n.length===t.bounds.length&&n.every((function(e,n){return e===t.bounds[n]}))?null:$n({},t,{bounds:n})}return null}}]),n}(e.Component);Fi.displayName="Range",Fi.propTypes={autoFocus:p.bool,defaultValue:p.arrayOf(p.number),value:p.arrayOf(p.number),count:p.number,pushable:p.oneOfType([p.bool,p.number]),allowCross:p.bool,disabled:p.bool,reverse:p.bool,tabIndex:p.arrayOf(p.number),min:p.number,max:p.number,ariaLabelGroupForHandles:p.arrayOf(p.string),ariaLabelledByGroupForHandles:p.arrayOf(p.string),ariaValueTextFormatterGroupForHandles:p.arrayOf(p.func)},Fi.defaultProps={count:1,allowCross:!0,pushable:!1,tabIndex:[],ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]};var Wi=Ni(Fi);function Vi(e,t){for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}function Bi(e){return e instanceof HTMLElement?e:l.findDOMNode(e)}function Ui(e){return(Ui="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})(e)}function zi(e,t){"function"==typeof e?e(t):"object"===Ui(e)&&e&&"current"in e&&(e.current=t)}function Hi(){for(var e=arguments.length,t=new Array(e),n=0;n=0&&t.left>=0&&t.bottom>t.top&&t.right>t.left?t:null}function tu(e){var t,n,r;if(Ga.isWindow(e)||9===e.nodeType){var o=Ga.getWindow(e);t={left:Ga.getWindowScrollLeft(o),top:Ga.getWindowScrollTop(o)},n=Ga.viewportWidth(o),r=Ga.viewportHeight(o)}else t=Ga.offset(e),n=Ga.outerWidth(e),r=Ga.outerHeight(e);return t.width=n,t.height=r,t}function nu(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,u=e.top;return"c"===n?u+=i/2:"b"===n&&(u+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:u}}function ru(e,t,n,r,o){var i=nu(t,n[1]),a=nu(e,n[0]),u=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-u[0]+r[0]-o[0]),top:Math.round(e.top-u[1]+r[1]-o[1])}}function ou(e,t,n){return e.leftn.right}function iu(e,t,n){return e.topn.bottom}function au(e,t,n){var r=[];return Ga.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function uu(e,t){return e[t]=-e[t],e}function su(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function cu(e,t){e[0]=su(e[0],t.width),e[1]=su(e[1],t.height)}function lu(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,s=n.source||e;i=[].concat(i),a=[].concat(a),u=u||{};var c={},l=0,f=eu(s),p=tu(s);cu(i,p),cu(a,t);var d=ru(p,t,o,i,a),h=Ga.merge(p,d);if(f&&(u.adjustX||u.adjustY)&&r){if(u.adjustX&&ou(d,p,f)){var v=au(o,/[lr]/gi,{l:"r",r:"l"}),y=uu(i,0),m=uu(a,0);(function(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),Ga.mix(o,i)}(d,p,f,c))}return h.width!==p.width&&Ga.css(s,"width",Ga.width(s)+h.width-p.width),h.height!==p.height&&Ga.css(s,"height",Ga.height(s)+h.height-p.height),Ga.offset(s,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:c}}function fu(e,t,n){var r=n.target||t;return lu(e,tu(r),n,!function(e){var t=eu(e),n=tu(e);return!t||n.left+n.width<=t.left||n.top+n.height<=t.top||n.left>=t.right||n.top>=t.bottom}(r))}function pu(e,t,n){var r,o,i=Ga.getDocument(e),a=i.defaultView||i.parentWindow,u=Ga.getWindowScrollLeft(a),s=Ga.getWindowScrollTop(a),c=Ga.viewportWidth(a),l=Ga.viewportHeight(a);r="pageX"in t?t.pageX:u+t.clientX,o="pageY"in t?t.pageY:s+t.clientY;var f=r>=0&&r<=u+c&&o>=0&&o<=s+l;return lu(e,{left:r,top:o,width:0,height:0},function(e){for(var t=1;t0},e.prototype.connect_=function(){hu&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),gu?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){hu&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;mu.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),_u=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),Tu="undefined"!=typeof WeakMap?new WeakMap:new du,Du=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=bu.getInstance(),r=new Au(t,n,this);Tu.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Du.prototype[e]=function(){var t;return(t=Tu.get(this))[e].apply(t,arguments)}}));var Nu=void 0!==vu.ResizeObserver?vu.ResizeObserver:Du;function Ru(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Lu(e,t){var n=null,r=null;var o=new Nu((function(e){var o=Ru(e,1)[0].target.getBoundingClientRect(),i=o.width,a=o.height,u=Math.floor(i),s=Math.floor(a);n===u&&r===s||t({width:u,height:s}),n=u,r=s}));return e&&o.observe(e),function(){o.disconnect()}}function Iu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Fu(e){return(Fu="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})(e)}function Wu(e){return"function"!=typeof e?null:e()}function Vu(e){return"object"===Fu(e)&&e?e:null}var Bu=e.forwardRef((function(t,n){var r=t.children,o=t.disabled,i=t.target,a=t.align,u=t.onAlign,s=t.monitorWindowResize,c=t.monitorBufferTime,l=void 0===c?0:c,f=e.useRef({}),p=e.useRef(),d=e.Children.only(r),h=e.useRef({});h.current.disabled=o,h.current.target=i,h.current.onAlign=u;var v=Iu(function(t,n){var r=e.useRef(!1),o=e.useRef(null);function i(){window.clearTimeout(o.current)}return[function e(a){if(r.current&&!0!==a)i(),o.current=window.setTimeout((function(){r.current=!1,e()}),n);else{if(!1===t())return;r.current=!0,i(),o.current=window.setTimeout((function(){r.current=!1}),n)}},function(){r.current=!1,i()}]}((function(){var e=h.current,t=e.disabled,n=e.target;if(!t&&n){var r,o=p.current,i=Wu(n),s=Vu(n);f.current.element=i,f.current.point=s;var c=document.activeElement;return i?r=fu(o,i,a):s&&(r=pu(o,s,a)),function(e,t){e!==document.activeElement&&Vi(t,e)&&e.focus()}(c,o),u&&u(o,r),!0}return!1}),l),2),y=v[0],m=v[1],g=e.useRef({cancel:function(){}}),b=e.useRef({cancel:function(){}});e.useEffect((function(){var e,t,n=Wu(i),r=Vu(i);p.current!==b.current.element&&(b.current.cancel(),b.current.element=p.current,b.current.cancel=Lu(p.current,y)),f.current.element===n&&((e=f.current.point)===(t=r)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))||(y(),g.current.element!==n&&(g.current.cancel(),g.current.element=n,g.current.cancel=Lu(n,y)))})),e.useEffect((function(){o?m():y()}),[o]);var _=e.useRef(null);return e.useEffect((function(){s?_.current||(_.current=ti(window,"resize",y)):_.current&&(_.current.remove(),_.current=null)}),[s]),e.useEffect((function(){return function(){g.current.cancel(),b.current.cancel(),_.current&&_.current.remove(),m()}}),[]),e.useImperativeHandle(n,(function(){return{forceAlign:function(){return y(!0)}}})),e.isValidElement(d)&&(d=e.cloneElement(d,{ref:Hi(d.ref,p)})),d}));function Uu(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function zu(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function Hu(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}Bu.displayName="Align",Uu.__suppressDeprecationWarning=!0,zu.__suppressDeprecationWarning=!0,Hu.__suppressDeprecationWarning=!0;var $u=!("undefined"==typeof window||!window.document||!window.document.createElement);function Yu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}var Ku,qu,Xu,Gu=(Ku=$u,qu="undefined"!=typeof window?window:{},Xu={animationend:Yu("Animation","AnimationEnd"),transitionend:Yu("Transition","TransitionEnd")},Ku&&("AnimationEvent"in qu||delete Xu.animationend.animation,"TransitionEvent"in qu||delete Xu.transitionend.transition),Xu),Zu={};$u&&(Zu=document.createElement("div").style);var Ju={};function Qu(e){if(Ju[e])return Ju[e];var t=Gu[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&(p=e.createElement("div",{className:"".concat(r,"-content")},u)),e.createElement("div",{ref:n,className:ni(o,!i&&"".concat(t.hiddenClassName)),onMouseEnter:s,onMouseLeave:c,onMouseDown:l,onTouchStart:f,style:a},p)}));function us(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function ss(e){return(ss="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})(e)}function cs(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fs(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Bs=i((function(t,n){var r=t.overlayClassName,o=t.trigger,i=void 0===o?["hover"]:o,u=t.mouseEnterDelay,s=void 0===u?0:u,l=t.mouseLeaveDelay,f=void 0===l?.1:l,p=t.overlayStyle,d=t.prefixCls,h=void 0===d?"rc-tooltip":d,v=t.children,y=t.onVisibleChange,m=t.afterVisibleChange,g=t.transitionName,b=t.animation,_=t.placement,w=void 0===_?"right":_,O=t.align,x=void 0===O?{}:O,E=t.destroyTooltipOnHide,S=void 0!==E&&E,j=t.defaultVisible,k=t.getTooltipContainer,M=Vs(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer"]),C=a(null);c(n,(function(){return C.current}));var P=function(e){for(var t=1;t0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var sl=ul(Ic),cl=/\{\n\/\* \[wrapped with (.+)\] \*/,ll=/,? & /;var fl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function pl(e){return function(){return e}}var dl=function(){try{var e=Nc(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),hl=ul(dl?function(e,t){return dl(e,"toString",{configurable:!0,enumerable:!1,value:pl(t),writable:!0})}:_c);function vl(e,t){for(var n=-1,r=null==e?0:e.length;++n-1}var _l=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function wl(e,t,n){var r=t+"";return hl(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(fl,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return vl(_l,(function(n){var r="_."+n[0];t&n[1]&&!bl(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(cl);return t?t[1].split(ll):[]}(r),n)))}function Ol(e,t,n,r,o,i,a,u,s,c){var l=8&t;t|=l?32:64,4&(t&=~(l?64:32))||(t&=-4);var f=[e,t,o,l?i:void 0,l?a:void 0,l?void 0:i,l?void 0:a,u,s,c],p=n.apply(void 0,f);return il(e)&&sl(p,f),p.placeholder=r,wl(p,e,t)}function xl(e){return e.placeholder}var El=/^(?:0|[1-9]\d*)$/;function Sl(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&El.test(e))&&e>-1&&e%1==0&&e1&&g.reverse(),l&&s-1&&e%1==0&&e<=9007199254740991}function zl(e){return null!=e&&Ul(e.length)&&!wc(e)}function Hl(e,t,n){if(!fc(n))return!1;var r=typeof t;return!!("number"==r?zl(n)&&Sl(t,n.length):"string"==r&&t in n)&&Rl(n[t],e)}function $l(e){return Bl((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&Hl(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1},Ff.prototype.set=function(e,t){var n=this.__data__,r=Lf(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var Wf=Nc(Ys,"Map");function Vf(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Bf(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t0&&n(u)?t>1?tp(u,t-1,n,r,o):Jf(o,u):r||(o[o.length]=u)}return o}function np(e){return(null==e?0:e.length)?tp(e,1):[]}function rp(e){return hl(Vl(e,void 0,np),e+"")}var op=rp(Zf),ip=yf(Object.getPrototypeOf,Object),ap=Function.prototype,up=Object.prototype,sp=ap.toString,cp=up.hasOwnProperty,lp=sp.call(Object);function fp(e){if(!tc(e)||"[object Object]"!=ec(e))return!1;var t=ip(e);if(null===t)return!0;var n=cp.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&sp.call(n)==lp}function pp(e){if(!tc(e))return!1;var t=ec(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!fp(e)}var dp=Bl((function(e,t){try{return Bc(e,void 0,t)}catch(e){return pp(e)?e:new Error(e)}}));function hp(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=bc(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var vp=Bl((function(e,t,n){var r=1;if(n.length){var o=Ml(n,xl(vp));r|=32}return Tl(e,r,t,n,o)}));vp.placeholder={};var yp=rp((function(e,t){return vl(t,(function(t){t=qf(t),Nl(e,t,vp(e[t],e))})),e})),mp=Bl((function(e,t,n){var r=3;if(n.length){var o=Ml(n,xl(mp));r|=32}return Tl(t,r,e,n,o)}));function gp(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:gp(e,t,n)}mp.placeholder={};var _p=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function wp(e){return _p.test(e)}var Op="[\\ud800-\\udfff]",xp="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ep="\\ud83c[\\udffb-\\udfff]",Sp="[^\\ud800-\\udfff]",jp="(?:\\ud83c[\\udde6-\\uddff]){2}",kp="[\\ud800-\\udbff][\\udc00-\\udfff]",Mp="(?:"+xp+"|"+Ep+")"+"?",Cp="[\\ufe0e\\ufe0f]?"+Mp+("(?:\\u200d(?:"+[Sp,jp,kp].join("|")+")[\\ufe0e\\ufe0f]?"+Mp+")*"),Pp="(?:"+[Sp+xp+"?",xp,jp,kp,Op].join("|")+")",Ap=RegExp(Ep+"(?="+Ep+")|"+Pp+Cp,"g");function Tp(e){return wp(e)?function(e){return e.match(Ap)||[]}(e):function(e){return e.split("")}(e)}function Dp(e){return function(t){var n=wp(t=Yf(t))?Tp(t):void 0,r=n?n[0]:t.charAt(0),o=n?bp(n,1).join(""):t.slice(1);return r[e]()+o}}var Np=Dp("toUpperCase");function Rp(e){return Np(Yf(e).toLowerCase())}function Lp(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o=t?e:t)),e}function md(e){var t=this.__data__=new Ff(e);this.size=t.size}function gd(e,t){return e&&Fl(t,_f(t),e)}md.prototype.clear=function(){this.__data__=new Ff,this.size=0},md.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},md.prototype.get=function(e){return this.__data__.get(e)},md.prototype.has=function(e){return this.__data__.has(e)},md.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ff){var r=n.__data__;if(!Wf||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Bf(r)}return n.set(e,t),this.size=n.size,this};var bd="object"==typeof exports&&exports&&!exports.nodeType&&exports,_d=bd&&"object"==typeof module&&module&&!module.nodeType&&module,wd=_d&&_d.exports===bd?Ys.Buffer:void 0,Od=wd?wd.allocUnsafe:void 0;function xd(e,t){if(t)return e.slice();var n=e.length,r=Od?Od(n):new e.constructor(n);return e.copy(r),r}function Ed(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++nu))return!1;var c=i.get(e),l=i.get(t);if(c&&l)return c==t&&l==e;var f=-1,p=!0,d=2&n?new oh:void 0;for(i.set(e,t),i.set(t,e);++f=t||n<0||f&&e-c>=i}function y(){var e=Bh();if(v(e))return m(e);u=setTimeout(y,function(e){var n=t-(e-s);return f?zh(n,i-(e-c)):n}(e))}function m(e){return u=void 0,p&&r?d(e):(r=o=void 0,a)}function g(){var e=Bh(),n=v(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return clearTimeout(u),u=setTimeout(y,t),d(s)}return void 0===u&&(u=setTimeout(y,t)),a}return t=mc(t)||0,fc(n)&&(l=!!n.leading,i=(f="maxWait"in n)?Uh(mc(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),g.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=s=o=u=void 0},g.flush=function(){return void 0===u?a:m(Bh())},g}var $h=Object.prototype,Yh=$h.hasOwnProperty,Kh=Bl((function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&Hl(t[0],t[1],o)&&(r=1);++n=200&&(i=ah,a=!1,t=new oh(t));e:for(;++o":">",'"':""","'":"'"}),Ev=/[&<>"']/g,Sv=RegExp(Ev.source);function jv(e){return(e=Yf(e))&&Sv.test(e)?e.replace(Ev,xv):e}var kv=/[\\^$.*+?()[\]{}|]/g,Mv=RegExp(kv.source);function Cv(e,t){for(var n=-1,r=null==e?0:e.length;++n-1?o[i?t[a]:a]:void 0}}var Nv=Math.max;function Rv(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:bc(n);return o<0&&(o=Nv(r+o,0)),yl(e,kh(t),o)}var Lv=Dv(Rv);function Iv(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}var Fv=Math.max,Wv=Math.min;function Vv(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=bc(n),o=n<0?Fv(r+o,0):Wv(o,r-1)),yl(e,kh(t),o,!0)}var Bv=Dv(Vv);function Uv(e){return e&&e.length?e[0]:void 0}function zv(e,t){var n=-1,r=zl(e)?Array(e.length):[];return Nh(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function Hv(e,t){return(ic(e)?oc:zv)(e,kh(t))}var $v=fd("floor");function Yv(e){return rp((function(t){var n=t.length,r=n,o=el.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new TypeError("Expected a function");if(o&&!a&&"wrapper"==Qc(i))var a=new el([],!0)}for(r=a?r:n;++rt}function Qv(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=mc(t),n=mc(n)),e(t,n)}}var ey=Qv(Jv),ty=Qv((function(e,t){return e>=t})),ny=Object.prototype.hasOwnProperty;function ry(e,t){return null!=e&&ny.call(e,t)}var oy=Math.max,iy=Math.min;function ay(e){return"string"==typeof e||!ic(e)&&tc(e)&&"[object String]"==ec(e)}function uy(e,t){return oc(t,(function(t){return e[t]}))}function sy(e){return null==e?[]:uy(e,_f(e))}var cy=Math.max;var ly=Math.max;var fy=Math.min;function py(e,t,n){for(var r=n?iv:bl,o=e[0].length,i=e.length,a=i,u=Array(i),s=1/0,c=[];a--;){var l=e[a];a&&t&&(l=oc(l,uf(t))),s=fy(l.length,s),u[a]=!n&&(t||o>=120&&l.length>=120)?new oh(a&&l):void 0}l=e[0];var f=-1,p=u[0];e:for(;++f1),t})),Fl(e,Td(e),n),r&&(n=rh(n,7,sm));for(var o=t.length;o--;)um(n,t[o]);return n}));function lm(e,t,n,r){if(!fc(e))return e;for(var o=-1,i=(t=Kf(t,e)).length,a=i-1,u=e;null!=u&&++ot||i&&a&&s&&!u&&!c||r&&a&&s||!n&&s||!o)return 1;if(!r&&!i&&!c&&e=u?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function vm(e){return rp((function(t){return t=oc(t,uf(kh)),Bl((function(n){var r=this;return e(t,(function(e){return Bc(e,r,n)}))}))}))}var ym=vm(oc),mm=Bl,gm=Math.min,bm=mm((function(e,t){var n=(t=1==t.length&&ic(t[0])?oc(t[0],uf(kh)):oc(tp(t,1),uf(kh))).length;return Bl((function(r){for(var o=-1,i=gm(r.length,n);++o9007199254740991)return n;do{t%2&&(n+=e),(t=Om(t/2))&&(e+=e)}while(t);return n}var Em=Sh("length"),Sm="[\\ud800-\\udfff]",jm="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",km="\\ud83c[\\udffb-\\udfff]",Mm="[^\\ud800-\\udfff]",Cm="(?:\\ud83c[\\udde6-\\uddff]){2}",Pm="[\\ud800-\\udbff][\\udc00-\\udfff]",Am="(?:"+jm+"|"+km+")"+"?",Tm="[\\ufe0e\\ufe0f]?"+Am+("(?:\\u200d(?:"+[Mm,Cm,Pm].join("|")+")[\\ufe0e\\ufe0f]?"+Am+")*"),Dm="(?:"+[Mm+jm+"?",jm,Cm,Pm,Sm].join("|")+")",Nm=RegExp(km+"(?="+km+")|"+Dm+Tm,"g");function Rm(e){return wp(e)?function(e){for(var t=Nm.lastIndex=0;Nm.test(e);)++t;return t}(e):Em(e)}var Lm=Math.ceil;function Im(e,t){var n=(t=void 0===t?" ":sc(t)).length;if(n<2)return n?xm(t,e):t;var r=xm(t,Lm(e/Rm(t)));return wp(t)?bp(Tp(r),0,e).join(""):r.slice(0,e)}var Fm=Math.ceil,Wm=Math.floor;var Vm=/^\s+/,Bm=Ys.parseInt;var Um=Bl((function(e,t){return Tl(e,32,void 0,t,Ml(t,xl(Um)))}));Um.placeholder={};var zm=Bl((function(e,t){return Tl(e,64,void 0,t,Ml(t,xl(zm)))}));zm.placeholder={};var Hm=Lh((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var $m=rp((function(e,t){return null==e?{}:function(e,t){return fm(e,t,(function(t,n){return xh(e,n)}))}(e,t)}));function Ym(e,t,n,r){for(var o=n-1,i=e.length;++o-1;)u!==e&&Km.call(u,s,1),Km.call(e,s,1);return e}function Xm(e,t){return e&&e.length&&t&&t.length?qm(e,t):e}var Gm=Bl(Xm);var Zm=Array.prototype.splice;function Jm(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Sl(o)?Zm.call(e,o,1):um(e,o)}}return e}var Qm=rp((function(e,t){var n=null==e?0:e.length,r=Zf(e,t);return Jm(e,oc(t,(function(e){return Sl(e,n)?+e:e})).sort(dm)),r})),eg=Math.floor,tg=Math.random;function ng(e,t){return e+eg(tg()*(t-e+1))}var rg=parseFloat,og=Math.min,ig=Math.random;var ag=Math.ceil,ug=Math.max;function sg(e){return function(t,n,r){return r&&"number"!=typeof r&&Hl(t,n,r)&&(n=r=void 0),t=gc(t),void 0===n?(n=t,t=0):n=gc(n),function(e,t,n,r){for(var o=-1,i=ug(ag((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,n,r=void 0===r?t1&&Hl(e,t[0],t[1])?t=[]:n>2&&Hl(t[0],t[1],t[2])&&(t=[t[0]]),hm(e,tp(t,1),[])})),kg=Math.floor,Mg=Math.min;function Cg(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,u=null===t,s=nc(t),c=void 0===t;o>>1,a=e[i];null!==a&&!nc(a)&&(n?a<=t:a/g,Bg={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Vg,variable:"",imports:{_:{escape:jv}}},Ug=/\b__p \+= '';/g,zg=/\b(__p \+=) '' \+/g,Hg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$g=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yg=/($^)/,Kg=/['\n\r\u2028\u2029\\]/g,qg=Object.prototype.hasOwnProperty;function Xg(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return fc(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Hh(e,t,{leading:r,maxWait:t,trailing:o})}function Gg(e,t){return t(e)}var Zg=Math.min;function Jg(e,t){var n=e;return n instanceof qc&&(n=n.value()),Lp(t,(function(e,t){return t.func.apply(t.thisArg,Jf([e],t.args))}),n)}function Qg(){return Jg(this.__wrapped__,this.__actions__)}function eb(e,t){for(var n=e.length;n--&&gl(t,e[n],0)>-1;);return n}function tb(e,t){for(var n=-1,r=e.length;++n-1;);return n}var nb=/^\s+|\s+$/g;var rb=/\s+$/;var ob=/^\s+/;var ib=/\w*$/;var ab=Ip({"&":"&","<":"<",">":">",""":'"',"'":"'"}),ub=/&(?:amp|lt|gt|quot|#39);/g,sb=RegExp(ub.source);var cb=Rd&&1/ch(new Rd([,-0]))[1]==1/0?function(e){return new Rd(e)}:Xc;function lb(e,t,n){var r=-1,o=bl,i=e.length,a=!0,u=[],s=u;if(n)a=!1,o=iv;else if(i>=200){var c=t?null:cb(e);if(c)return ch(c);a=!1,o=ah,s=new oh}else s=t?[]:u;e:for(;++r1||this.__actions__.length)&&r instanceof qc&&Sl(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Gg,args:[o],thisArg:void 0}),new el(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));function Ob(e,t,n){var r=e.length;if(r<2)return r?lb(e[0]):[];for(var o=-1,i=Array(r);++o1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,mb(e,n)})),Cb={chunk:function(e,t,n){t=(n?Hl(e,t,n):void 0===t)?1:vd(bc(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=Array(hd(r/t));oo?0:o+n),(r=void 0===r||r>o?o:bc(r))<0&&(r+=o),r=n>r?0:Av(r);n-1:!!o&&gl(e,t,n)>-1},invokeMap:ky,keyBy:By,map:Hv,orderBy:function(e,t,n,r){return null==e?[]:(ic(t)||(t=null==t?[]:[t]),ic(n=r?void 0:n)||(n=null==n?[]:[n]),hm(e,t,n))},partition:Hm,reduce:function(e,t,n){var r=ic(e)?Lp:pg,o=arguments.length<3;return r(e,kh(t),n,o,Nh)},reduceRight:function(e,t,n){var r=ic(e)?dg:pg,o=arguments.length<3;return r(e,kh(t),n,o,gv)},reject:function(e,t){return(ic(e)?Ed:Tv)(e,rm(kh(t)))},sample:function(e){return(ic(e)?mg:gg)(e)},sampleSize:function(e,t,n){return t=(n?Hl(e,t,n):void 0===t)?1:bc(t),(ic(e)?_g:wg)(e,t)},shuffle:function(e){return(ic(e)?Og:xg)(e)},size:function(e){if(null==e)return 0;if(zl(e))return ay(e)?Rm(e):e.length;var t=Ud(e);return"[object Map]"==t||"[object Set]"==t?e.size:bf(e).length},some:function(e,t,n){var r=ic(e)?ih:Sg;return n&&Hl(e,t,n)&&(t=void 0),r(e,kh(t))},sortBy:jg},Ab=Bh,Tb={after:function(e,t){if("function"!=typeof t)throw new TypeError("Expected a function");return e=bc(e),function(){if(--e<1)return t.apply(this,arguments)}},ary:Dl,before:hp,bind:vp,bindKey:mp,curry:Wh,curryRight:Vh,debounce:Hh,defer:rv,delay:ov,flip:function(e){return Tl(e,512)},memoize:Uf,negate:rm,once:function(e){return hp(2,e)},overArgs:bm,partial:Um,partialRight:zm,rearg:fg,rest:function(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return Bl(e,t=void 0===t?t:bc(t))},spread:function(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return t=null==t?0:Tg(bc(t),0),Bl((function(n){var r=n[t],o=bp(n,0,t);return r&&Jf(o,r),Bc(e,this,o)}))},throttle:Xg,unary:function(e){return Dl(e,1)},wrap:function(e,t){return Um(dv(t),e)}},Db={castArray:function(){if(!arguments.length)return[];var e=arguments[0];return ic(e)?e:[e]},clone:function(e){return rh(e,4)},cloneDeep:function(e){return rh(e,5)},cloneDeepWith:function(e,t){return rh(e,5,t="function"==typeof t?t:void 0)},cloneWith:function(e,t){return rh(e,4,t="function"==typeof t?t:void 0)},conformsTo:function(e,t){return null==t||Mh(e,t,_f(t))},eq:Rl,gt:ey,gte:ty,isArguments:Ql,isArray:ic,isArrayBuffer:Cy,isArrayLike:zl,isArrayLikeObject:Xh,isBoolean:function(e){return!0===e||!1===e||tc(e)&&"[object Boolean]"==ec(e)},isBuffer:of,isDate:Ay,isElement:function(e){return tc(e)&&1===e.nodeType&&!fp(e)},isEmpty:function(e){if(null==e)return!0;if(zl(e)&&(ic(e)||"string"==typeof e||"function"==typeof e.splice||of(e)||df(e)||Ql(e)))return!e.length;var t=Ud(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(Kl(e))return!bf(e).length;for(var n in e)if(Ty.call(e,n))return!1;return!0},isEqual:function(e,t){return vh(e,t)},isEqualWith:function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?vh(e,t,void 0,n):!!r},isError:pp,isFinite:function(e){return"number"==typeof e&&Dy(e)},isFunction:wc,isInteger:Ny,isLength:Ul,isMap:Qd,isMatch:function(e,t){return e===t||yh(e,t,gh(t))},isMatchWith:function(e,t,n){return n="function"==typeof n?n:void 0,yh(e,t,gh(t),n)},isNaN:function(e){return Ry(e)&&e!=+e},isNative:function(e){if(Ly(e))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dc(e)},isNil:function(e){return null==e},isNull:function(e){return null===e},isNumber:Ry,isObject:fc,isObjectLike:tc,isPlainObject:fp,isRegExp:Fy,isSafeInteger:function(e){return Ny(e)&&e>=-9007199254740991&&e<=9007199254740991},isSet:th,isString:ay,isSymbol:nc,isTypedArray:df,isUndefined:function(e){return void 0===e},isWeakMap:function(e){return tc(e)&&"[object WeakMap]"==Ud(e)},isWeakSet:function(e){return tc(e)&&"[object WeakSet]"==ec(e)},lt:Ky,lte:qy,toArray:im,toFinite:gc,toInteger:bc,toLength:Av,toNumber:mc,toPlainObject:Zh,toSafeInteger:function(e){return e?yd(bc(e),-9007199254740991,9007199254740991):0===e?e:0},toString:Yf},Nb={add:lc,ceil:pd,divide:fv,floor:$v,max:function(e){return e&&e.length?Xy(e,_c,Jv):void 0},maxBy:function(e,t){return e&&e.length?Xy(e,kh(t),Jv):void 0},mean:function(e){return Zy(e,_c)},meanBy:function(e,t){return Zy(e,kh(t))},min:function(e){return e&&e.length?Xy(e,_c,Yy):void 0},minBy:function(e,t){return e&&e.length?Xy(e,kh(t),Yy):void 0},multiply:nm,round:yg,subtract:Ng,sum:function(e){return e&&e.length?Gy(e,_c):0},sumBy:function(e,t){return e&&e.length?Gy(e,kh(t)):0}},Rb=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=mc(n))==n?n:0),void 0!==t&&(t=(t=mc(t))==t?t:0),yd(mc(e),t,n)},Lb=function(e,t,n){return t=gc(t),void 0===n?(n=t,t=0):n=gc(n),function(e,t,n){return e>=iy(t,n)&&et){var r=e;e=t,t=r}if(n||e%1||t%1){var o=ig();return og(e+o*(t-e+rg("1e-"+((o+"").length-1))),t)}return ng(e,t)},Fb={assign:Of,assignIn:jf,assignInWith:kf,assignWith:Mf,at:op,create:function(e,t){var n=Wc(e);return null==t?n:gd(n,t)},defaults:Kh,defaultsDeep:tv,entries:wv,entriesIn:Ov,extend:jf,extendWith:kf,findKey:function(e,t){return Iv(e,kh(t),Th)},findLastKey:function(e,t){return Iv(e,kh(t),mv)},forIn:function(e,t){return null==e?e:Ah(e,dv(t),Sf)},forInRight:function(e,t){return null==e?e:yv(e,dv(t),Sf)},forOwn:function(e,t){return e&&Th(e,dv(t))},forOwnRight:function(e,t){return e&&mv(e,dv(t))},functions:function(e){return null==e?[]:Xv(e,_f(e))},functionsIn:function(e){return null==e?[]:Xv(e,Sf(e))},get:Gf,has:function(e,t){return null!=e&&Oh(e,t,ry)},hasIn:xh,invert:by,invertBy:xy,invoke:jy,keys:_f,keysIn:Sf,mapKeys:function(e,t){var n={};return t=kh(t),Th(e,(function(e,r,o){Nl(n,t(e,r,o),e)})),n},mapValues:function(e,t){var n={};return t=kh(t),Th(e,(function(e,r,o){Nl(n,r,t(e,r,o))})),n},merge:Jy,mergeWith:ev,omit:cm,omitBy:function(e,t){return pm(e,rm(kh(t)))},pick:$m,pickBy:pm,result:function(e,t,n){var r=-1,o=(t=Kf(t,e)).length;for(o||(o=1,e=void 0);++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},plant:function(e){for(var t,n=this;n instanceof Kc;){var r=nl(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},reverse:function(){var e=this.__wrapped__;if(e instanceof qc){var t=e;return this.__actions__.length&&(t=new qc(this)),(t=t.reverse()).__actions__.push({func:Gg,args:[vg],thisArg:void 0}),new el(t,this.__chain__)}return this.thru(vg)},tap:function(e,t){return t(e),e},thru:Gg,toIterator:function(){return this},toJSON:Qg,value:Qg,valueOf:Qg,wrapperChain:function(){return dd(this)}},Vb={camelCase:sd,capitalize:Rp,deburr:Bp,endsWith:function(e,t,n){e=Yf(e),t=sc(t);var r=e.length,o=n=void 0===n?r:yd(bc(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},escape:jv,escapeRegExp:function(e){return(e=Yf(e))&&Mv.test(e)?e.replace(kv,"\\$&"):e},kebabCase:Vy,lowerCase:Hy,lowerFirst:$y,pad:function(e,t,n){e=Yf(e);var r=(t=bc(t))?Rm(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Im(Wm(o),n)+e+Im(Fm(o),n)},padEnd:function(e,t,n){e=Yf(e);var r=(t=bc(t))?Rm(e):0;return t&&r>>0)?(e=Yf(e))&&("string"==typeof t||null!=t&&!Fy(t))&&!(t=sc(t))&&wp(e)?bp(Tp(e),0,n):e.split(t,n):[]},startCase:Dg,startsWith:function(e,t,n){return e=Yf(e),n=null==n?0:yd(bc(n),0,e.length),t=sc(t),e.slice(n,n+t.length)==t},template:function(e,t,n){var r=Bg.imports._.templateSettings||Bg;n&&Hl(e,t,n)&&(t=void 0),e=Yf(e),t=kf({},t,r,Ig);var o,i,a=kf({},t.imports,r.imports,Ig),u=_f(a),s=uy(a,u),c=0,l=t.interpolate||Yg,f="__p += '",p=RegExp((t.escape||Yg).source+"|"+l.source+"|"+(l===Vg?$g:Yg).source+"|"+(t.evaluate||Yg).source+"|$","g"),d=qg.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(p,(function(t,n,r,a,u,s){return r||(r=a),f+=e.slice(c,s).replace(Kg,Wg),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),u&&(i=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+t.length,t})),f+="';\n";var h=qg.call(t,"variable")&&t.variable;h||(f="with (obj) {\n"+f+"\n}\n"),f=(i?f.replace(Ug,""):f).replace(zg,"$1").replace(Hg,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=dp((function(){return Function(u,d+"return "+f).apply(void 0,s)}));if(v.source=f,pp(v))throw v;return v},templateSettings:Bg,toLower:function(e){return Yf(e).toLowerCase()},toUpper:function(e){return Yf(e).toUpperCase()},trim:function(e,t,n){if((e=Yf(e))&&(n||void 0===t))return e.replace(nb,"");if(!e||!(t=sc(t)))return e;var r=Tp(e),o=Tp(t);return bp(r,tb(r,o),eb(r,o)+1).join("")},trimEnd:function(e,t,n){if((e=Yf(e))&&(n||void 0===t))return e.replace(rb,"");if(!e||!(t=sc(t)))return e;var r=Tp(e);return bp(r,0,eb(r,Tp(t))+1).join("")},trimStart:function(e,t,n){if((e=Yf(e))&&(n||void 0===t))return e.replace(ob,"");if(!e||!(t=sc(t)))return e;var r=Tp(e);return bp(r,tb(r,Tp(t))).join("")},truncate:function(e,t){var n=30,r="...";if(fc(t)){var o="separator"in t?t.separator:o;n="length"in t?bc(t.length):n,r="omission"in t?sc(t.omission):r}var i=(e=Yf(e)).length;if(wp(e)){var a=Tp(e);i=a.length}if(n>=i)return e;var u=n-Rm(r);if(u<1)return r;var s=a?bp(a,0,u).join(""):e.slice(0,u);if(void 0===o)return s+r;if(a&&(u+=s.length-u),Fy(o)){if(e.slice(u).search(o)){var c,l=s;for(o.global||(o=RegExp(o.source,Yf(ib.exec(o))+"g")),o.lastIndex=0;c=o.exec(l);)var f=c.index;s=s.slice(0,void 0===f?u:f)}}else if(e.indexOf(sc(o),u)!=u){var p=s.lastIndexOf(o);p>-1&&(s=s.slice(0,p))}return s+r},unescape:function(e){return(e=Yf(e))&&sb.test(e)?e.replace(ub,ab):e},upperCase:bb,upperFirst:Np,words:id},Bb={attempt:dp,bindAll:yp,cond:function(e){var t=null==e?0:e.length,n=kh;return e=t?oc(e,(function(e){if("function"!=typeof e[1])throw new TypeError("Expected a function");return[n(e[0]),e[1]]})):[],Bl((function(n){for(var r=-1;++r9007199254740991)return[];var n=4294967295,r=Zg(e,4294967295);e-=4294967295;for(var o=ql(r,t=dv(t));++n @@ -28,4 +28,4 @@ var qo=Object.getOwnPropertySymbols,Xo=Object.prototype.hasOwnProperty,Go=Object * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */ -var $b,Yb=Array.prototype,Kb=Object.prototype.hasOwnProperty,qb=Ks?Ks.iterator:void 0,Xb=Math.max,Gb=Math.min,Zb=function(e){return function(t,n,r){if(null==r){var o=fc(n),i=o&&_f(n),a=i&&i.length&&Xv(n,i);(a?a.length:o)||(r=n,n=t,t=this)}return e(t,n,r)}}(tm);ol.after=Tb.after,ol.ary=Tb.ary,ol.assign=Fb.assign,ol.assignIn=Fb.assignIn,ol.assignInWith=Fb.assignInWith,ol.assignWith=Fb.assignWith,ol.at=Fb.at,ol.before=Tb.before,ol.bind=Tb.bind,ol.bindAll=Bb.bindAll,ol.bindKey=Tb.bindKey,ol.castArray=Db.castArray,ol.chain=Wb.chain,ol.chunk=Cb.chunk,ol.compact=Cb.compact,ol.concat=Cb.concat,ol.cond=Bb.cond,ol.conforms=Bb.conforms,ol.constant=Bb.constant,ol.countBy=Pb.countBy,ol.create=Fb.create,ol.curry=Tb.curry,ol.curryRight=Tb.curryRight,ol.debounce=Tb.debounce,ol.defaults=Fb.defaults,ol.defaultsDeep=Fb.defaultsDeep,ol.defer=Tb.defer,ol.delay=Tb.delay,ol.difference=Cb.difference,ol.differenceBy=Cb.differenceBy,ol.differenceWith=Cb.differenceWith,ol.drop=Cb.drop,ol.dropRight=Cb.dropRight,ol.dropRightWhile=Cb.dropRightWhile,ol.dropWhile=Cb.dropWhile,ol.fill=Cb.fill,ol.filter=Pb.filter,ol.flatMap=Pb.flatMap,ol.flatMapDeep=Pb.flatMapDeep,ol.flatMapDepth=Pb.flatMapDepth,ol.flatten=Cb.flatten,ol.flattenDeep=Cb.flattenDeep,ol.flattenDepth=Cb.flattenDepth,ol.flip=Tb.flip,ol.flow=Bb.flow,ol.flowRight=Bb.flowRight,ol.fromPairs=Cb.fromPairs,ol.functions=Fb.functions,ol.functionsIn=Fb.functionsIn,ol.groupBy=Pb.groupBy,ol.initial=Cb.initial,ol.intersection=Cb.intersection,ol.intersectionBy=Cb.intersectionBy,ol.intersectionWith=Cb.intersectionWith,ol.invert=Fb.invert,ol.invertBy=Fb.invertBy,ol.invokeMap=Pb.invokeMap,ol.iteratee=Bb.iteratee,ol.keyBy=Pb.keyBy,ol.keys=_f,ol.keysIn=Fb.keysIn,ol.map=Pb.map,ol.mapKeys=Fb.mapKeys,ol.mapValues=Fb.mapValues,ol.matches=Bb.matches,ol.matchesProperty=Bb.matchesProperty,ol.memoize=Tb.memoize,ol.merge=Fb.merge,ol.mergeWith=Fb.mergeWith,ol.method=Bb.method,ol.methodOf=Bb.methodOf,ol.mixin=Zb,ol.negate=rm,ol.nthArg=Bb.nthArg,ol.omit=Fb.omit,ol.omitBy=Fb.omitBy,ol.once=Tb.once,ol.orderBy=Pb.orderBy,ol.over=Bb.over,ol.overArgs=Tb.overArgs,ol.overEvery=Bb.overEvery,ol.overSome=Bb.overSome,ol.partial=Tb.partial,ol.partialRight=Tb.partialRight,ol.partition=Pb.partition,ol.pick=Fb.pick,ol.pickBy=Fb.pickBy,ol.property=Bb.property,ol.propertyOf=Bb.propertyOf,ol.pull=Cb.pull,ol.pullAll=Cb.pullAll,ol.pullAllBy=Cb.pullAllBy,ol.pullAllWith=Cb.pullAllWith,ol.pullAt=Cb.pullAt,ol.range=Bb.range,ol.rangeRight=Bb.rangeRight,ol.rearg=Tb.rearg,ol.reject=Pb.reject,ol.remove=Cb.remove,ol.rest=Tb.rest,ol.reverse=Cb.reverse,ol.sampleSize=Pb.sampleSize,ol.set=Fb.set,ol.setWith=Fb.setWith,ol.shuffle=Pb.shuffle,ol.slice=Cb.slice,ol.sortBy=Pb.sortBy,ol.sortedUniq=Cb.sortedUniq,ol.sortedUniqBy=Cb.sortedUniqBy,ol.split=Vb.split,ol.spread=Tb.spread,ol.tail=Cb.tail,ol.take=Cb.take,ol.takeRight=Cb.takeRight,ol.takeRightWhile=Cb.takeRightWhile,ol.takeWhile=Cb.takeWhile,ol.tap=Wb.tap,ol.throttle=Tb.throttle,ol.thru=Gg,ol.toArray=Db.toArray,ol.toPairs=Fb.toPairs,ol.toPairsIn=Fb.toPairsIn,ol.toPath=Bb.toPath,ol.toPlainObject=Db.toPlainObject,ol.transform=Fb.transform,ol.unary=Tb.unary,ol.union=Cb.union,ol.unionBy=Cb.unionBy,ol.unionWith=Cb.unionWith,ol.uniq=Cb.uniq,ol.uniqBy=Cb.uniqBy,ol.uniqWith=Cb.uniqWith,ol.unset=Fb.unset,ol.unzip=Cb.unzip,ol.unzipWith=Cb.unzipWith,ol.update=Fb.update,ol.updateWith=Fb.updateWith,ol.values=Fb.values,ol.valuesIn=Fb.valuesIn,ol.without=Cb.without,ol.words=Vb.words,ol.wrap=Tb.wrap,ol.xor=Cb.xor,ol.xorBy=Cb.xorBy,ol.xorWith=Cb.xorWith,ol.zip=Cb.zip,ol.zipObject=Cb.zipObject,ol.zipObjectDeep=Cb.zipObjectDeep,ol.zipWith=Cb.zipWith,ol.entries=Fb.toPairs,ol.entriesIn=Fb.toPairsIn,ol.extend=Fb.assignIn,ol.extendWith=Fb.assignInWith,Zb(ol,ol),ol.add=Nb.add,ol.attempt=Bb.attempt,ol.camelCase=Vb.camelCase,ol.capitalize=Vb.capitalize,ol.ceil=Nb.ceil,ol.clamp=Rb,ol.clone=Db.clone,ol.cloneDeep=Db.cloneDeep,ol.cloneDeepWith=Db.cloneDeepWith,ol.cloneWith=Db.cloneWith,ol.conformsTo=Db.conformsTo,ol.deburr=Vb.deburr,ol.defaultTo=Bb.defaultTo,ol.divide=Nb.divide,ol.endsWith=Vb.endsWith,ol.eq=Db.eq,ol.escape=Vb.escape,ol.escapeRegExp=Vb.escapeRegExp,ol.every=Pb.every,ol.find=Pb.find,ol.findIndex=Cb.findIndex,ol.findKey=Fb.findKey,ol.findLast=Pb.findLast,ol.findLastIndex=Cb.findLastIndex,ol.findLastKey=Fb.findLastKey,ol.floor=Nb.floor,ol.forEach=Pb.forEach,ol.forEachRight=Pb.forEachRight,ol.forIn=Fb.forIn,ol.forInRight=Fb.forInRight,ol.forOwn=Fb.forOwn,ol.forOwnRight=Fb.forOwnRight,ol.get=Fb.get,ol.gt=Db.gt,ol.gte=Db.gte,ol.has=Fb.has,ol.hasIn=Fb.hasIn,ol.head=Cb.head,ol.identity=_c,ol.includes=Pb.includes,ol.indexOf=Cb.indexOf,ol.inRange=Lb,ol.invoke=Fb.invoke,ol.isArguments=Db.isArguments,ol.isArray=ic,ol.isArrayBuffer=Db.isArrayBuffer,ol.isArrayLike=Db.isArrayLike,ol.isArrayLikeObject=Db.isArrayLikeObject,ol.isBoolean=Db.isBoolean,ol.isBuffer=Db.isBuffer,ol.isDate=Db.isDate,ol.isElement=Db.isElement,ol.isEmpty=Db.isEmpty,ol.isEqual=Db.isEqual,ol.isEqualWith=Db.isEqualWith,ol.isError=Db.isError,ol.isFinite=Db.isFinite,ol.isFunction=Db.isFunction,ol.isInteger=Db.isInteger,ol.isLength=Db.isLength,ol.isMap=Db.isMap,ol.isMatch=Db.isMatch,ol.isMatchWith=Db.isMatchWith,ol.isNaN=Db.isNaN,ol.isNative=Db.isNative,ol.isNil=Db.isNil,ol.isNull=Db.isNull,ol.isNumber=Db.isNumber,ol.isObject=fc,ol.isObjectLike=Db.isObjectLike,ol.isPlainObject=Db.isPlainObject,ol.isRegExp=Db.isRegExp,ol.isSafeInteger=Db.isSafeInteger,ol.isSet=Db.isSet,ol.isString=Db.isString,ol.isSymbol=Db.isSymbol,ol.isTypedArray=Db.isTypedArray,ol.isUndefined=Db.isUndefined,ol.isWeakMap=Db.isWeakMap,ol.isWeakSet=Db.isWeakSet,ol.join=Cb.join,ol.kebabCase=Vb.kebabCase,ol.last=sv,ol.lastIndexOf=Cb.lastIndexOf,ol.lowerCase=Vb.lowerCase,ol.lowerFirst=Vb.lowerFirst,ol.lt=Db.lt,ol.lte=Db.lte,ol.max=Nb.max,ol.maxBy=Nb.maxBy,ol.mean=Nb.mean,ol.meanBy=Nb.meanBy,ol.min=Nb.min,ol.minBy=Nb.minBy,ol.stubArray=Bb.stubArray,ol.stubFalse=Bb.stubFalse,ol.stubObject=Bb.stubObject,ol.stubString=Bb.stubString,ol.stubTrue=Bb.stubTrue,ol.multiply=Nb.multiply,ol.nth=Cb.nth,ol.noop=Bb.noop,ol.now=Ab,ol.pad=Vb.pad,ol.padEnd=Vb.padEnd,ol.padStart=Vb.padStart,ol.parseInt=Vb.parseInt,ol.random=Ib,ol.reduce=Pb.reduce,ol.reduceRight=Pb.reduceRight,ol.repeat=Vb.repeat,ol.replace=Vb.replace,ol.result=Fb.result,ol.round=Nb.round,ol.sample=Pb.sample,ol.size=Pb.size,ol.snakeCase=Vb.snakeCase,ol.some=Pb.some,ol.sortedIndex=Cb.sortedIndex,ol.sortedIndexBy=Cb.sortedIndexBy,ol.sortedIndexOf=Cb.sortedIndexOf,ol.sortedLastIndex=Cb.sortedLastIndex,ol.sortedLastIndexBy=Cb.sortedLastIndexBy,ol.sortedLastIndexOf=Cb.sortedLastIndexOf,ol.startCase=Vb.startCase,ol.startsWith=Vb.startsWith,ol.subtract=Nb.subtract,ol.sum=Nb.sum,ol.sumBy=Nb.sumBy,ol.template=Vb.template,ol.times=Bb.times,ol.toFinite=Db.toFinite,ol.toInteger=bc,ol.toLength=Db.toLength,ol.toLower=Vb.toLower,ol.toNumber=Db.toNumber,ol.toSafeInteger=Db.toSafeInteger,ol.toString=Db.toString,ol.toUpper=Vb.toUpper,ol.trim=Vb.trim,ol.trimEnd=Vb.trimEnd,ol.trimStart=Vb.trimStart,ol.truncate=Vb.truncate,ol.unescape=Vb.unescape,ol.uniqueId=Bb.uniqueId,ol.upperCase=Vb.upperCase,ol.upperFirst=Vb.upperFirst,ol.each=Pb.forEach,ol.eachRight=Pb.forEachRight,ol.first=Cb.head,Zb(ol,($b={},Th(ol,(function(e,t){Kb.call(ol.prototype,t)||($b[t]=e)})),$b),{chain:!1}),ol.VERSION="4.17.20",(ol.templateSettings=Vb.templateSettings).imports._=ol,vl(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){ol[e].placeholder=ol})),vl(["drop","take"],(function(e,t){qc.prototype[e]=function(n){n=void 0===n?1:Xb(bc(n),0);var r=this.__filtered__&&!t?new qc(this):this.clone();return r.__filtered__?r.__takeCount__=Gb(n,r.__takeCount__):r.__views__.push({size:Gb(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},qc.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),vl(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;qc.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:kh(e),type:n}),t.__filtered__=t.__filtered__||r,t}})),vl(["head","last"],(function(e,t){var n="take"+(t?"Right":"");qc.prototype[e]=function(){return this[n](1).value()[0]}})),vl(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");qc.prototype[e]=function(){return this.__filtered__?new qc(this):this[n](1)}})),qc.prototype.compact=function(){return this.filter(_c)},qc.prototype.find=function(e){return this.filter(e).head()},qc.prototype.findLast=function(e){return this.reverse().find(e)},qc.prototype.invokeMap=Bl((function(e,t){return"function"==typeof e?new qc(this):this.map((function(n){return Sy(n,e,t)}))})),qc.prototype.reject=function(e){return this.filter(rm(kh(e)))},qc.prototype.slice=function(e,t){e=bc(e);var n=this;return n.__filtered__&&(e>0||t<0)?new qc(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=bc(t))<0?n.dropRight(-t):n.take(t-e)),n)},qc.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qc.prototype.toArray=function(){return this.take(4294967295)},Th(qc.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=ol[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(ol.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof qc,s=a[0],c=u||ic(t),l=function(e){var t=o.apply(ol,Jf([e],a));return r&&f?t[0]:t};c&&n&&"function"==typeof s&&1!=s.length&&(u=c=!1);var f=this.__chain__,p=!!this.__actions__.length,d=i&&!f,h=u&&!p;if(!i&&c){t=h?t:new qc(this);var v=e.apply(t,a);return v.__actions__.push({func:Gg,args:[l],thisArg:void 0}),new el(v,f)}return d&&h?e.apply(this,a):(v=this.thru(l),d?r?v.value()[0]:v.value():v)})})),vl(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Yb[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);ol.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(ic(o)?o:[],e)}return this[n]((function(n){return t.apply(ic(n)?n:[],e)}))}})),Th(qc.prototype,(function(e,t){var n=ol[t];if(n){var r=n.name+"";Kb.call(Zc,r)||(Zc[r]=[]),Zc[r].push({name:t,func:n})}})),Zc[Cl(void 0,2).name]=[{name:"wrapper",func:void 0}],qc.prototype.clone=function(){var e=new qc(this.__wrapped__);return e.__actions__=tl(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=tl(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=tl(this.__views__),e},qc.prototype.reverse=function(){if(this.__filtered__){var e=new qc(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qc.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ic(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r1&&void 0!==arguments[1]&&arguments[1],n=r.props.forceDragging;if(r.active||n||!0===t){var o,i;e.preventDefault(),"touchmove"===e.type?(o=e.touches[0].clientX-r.initialX,i=e.touches[0].clientY-r.initialY):(o=e.clientX-r.initialX,i=e.clientY-r.initialY);var a=!1,u=5,s=50,c=r.getContainerDimensions(),l=c.containerWidth,f=c.containerHeight,p=r.getAxis(),d=p.xAxis,h=p.yAxis;o>l?(d&&o+u>l&&(a=!0),o=l):o<0&&(d&&o<-u&&(a=!0),o=0),i>f?(h&&i+s>f&&(a=!0),i=f):i<0&&(h&&i<-s&&(a=!0),i=0),!0===a&&r.handleDragEnd(),r.updateState({xRatio:o/l,yRatio:i/f})}})),y(O(r),"handleDragEnd",(function(e){r.active=!1;var t=r.props.onDragEnd;t&&t(),(new Date).getTime()-r.lastMouseDown<300&&r.handleDrag(e,!0)})),y(O(r),"_handleWindowResize",(function(){var e=r.state.render_key;r.updateState({render_key:e})})),y(O(r),"getContainerDimensions",(function(){var e=0,t=0;if(r.container){var n=["paddingLeft","paddingRight","paddingTop","paddingBottom"].map((function(e){return Math.round(getComputedStyle(r.container)[e].replace("px","")||0)}));e=r.container.clientWidth-(n[0]+n[1])-r.draggableRef.current.clientWidth,t=r.container.clientHeight-(n[2]+n[3])-r.draggableRef.current.clientHeight}return{containerWidth:e,containerHeight:t}})),y(O(r),"getCurrentPositionWithPercent",(function(){var e=r.getCurrentPosition(),t=e.xRatio,n=e.yRatio,o=r.getContainerDimensions();return{currentX:t*o.containerWidth,currentY:n*o.containerHeight}})),y(O(r),"getAxis",(function(){var e=r.props.axis;return{xAxis:"y"!==e,yAxis:"x"!==e}})),y(O(r),"getCurrentPosition",(function(){var e=r.props.position;if(e){var t=e.xRatio,n=e.yRatio;return g({xRatio:t,yRatio:n},r.calculateCurrentPositionFromRatios(t,n))}return r.state})),y(O(r),"calculateCurrentPositionFromRatios",(function(e,t){var n=r.getContainerDimensions();return{currentX:e*n.containerWidth,currentY:t*n.containerHeight}})),y(O(r),"updateState",(function(e){r.lastMove=(new Date).getTime();var t=r.props,n=t.position,o=t.onDrag;n?o(g({},n,{},e)):r.setState(e)})),r.state={xRatio:0,yRatio:0,render_key:0},r.active=!1,r.initialX=0,r.initialY=0,r.ghostContainerDimensions=r.getContainerDimensions(),r.draggableRef=e.createRef(),r.handleWindowResize=Xg(r._handleWindowResize,200),r}return b(n,e.Component),v(n,[{key:"componentDidMount",value:function(){var e=this.props.onMount;this.container=l.findDOMNode(this).parentNode,this.container.addEventListener("touchstart",this.handleDragStart,!1),this.container.addEventListener("touchend",this.handleDragEnd,!1),this.container.addEventListener("touchmove",this.handleDrag,!1),this.container.addEventListener("mousedown",this.handleDragStart,!1),this.container.addEventListener("mouseup",this.handleDragEnd,!1),this.container.addEventListener("mousemove",this.handleDrag,!1),window.addEventListener("resize",this.handleWindowResize,!1),e&&e(this)}},{key:"componentDidUpdate",value:function(){var e=this.ghostContainerDimensions,t=e.containerWidth,n=e.containerHeight;this.ghostContainerDimensions=this.getContainerDimensions(),t===this.ghostContainerDimensions.containerWidth&&n===this.ghostContainerDimensions.containerHeight||this._handleWindowResize()}},{key:"componentWillUnmount",value:function(){this.container.removeEventListener("touchstart",this.handleDragStart),this.container.removeEventListener("touchend",this.handleDragEnd),this.container.removeEventListener("touchmove",this.handleDrag),this.container.removeEventListener("mousedown",this.handleDragStart),this.container.removeEventListener("mouseup",this.handleDragEnd),this.container.removeEventListener("mousemove",this.handleDrag),window.removeEventListener("resize",this.handleWindowResize,!1)}},{key:"render",value:function(){var t=this.getCurrentPosition(),n=t.currentX,r=t.currentY,o=this.props.className,i=this.getAxis(),a=i.xAxis,u=i.yAxis;return e.createElement("div",{ref:this.draggableRef,style:{transform:"translate3d(".concat(a?n:0,"px, ").concat(u?r:0,"px, 0)")},className:"react-draggable ".concat(o||"")},this.props.children)}}]),n}();Jb.propTypes={className:p.string,axis:p.oneOf(["x","y"]),position:p.shape({xRatio:p.number,yRatio:p.number}),onDragStart:p.func,onDrag:p.func,onDragEnd:p.func,draggableWidth:p.number,draggableHeight:p.number};var Qb=function(t){function n(){return d(this,n),x(this,_(n).apply(this,arguments))}return b(n,e.Component),v(n,[{key:"render",value:function(){return e.createElement("svg",{viewBox:"0 0 448 512"},e.createElement("path",{fill:"currentColor",d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"}))}}]),n}(),e_=function(t){function n(){return d(this,n),x(this,_(n).apply(this,arguments))}return b(n,e.Component),v(n,[{key:"render",value:function(){return e.createElement("svg",{viewBox:"0 0 448 512"},e.createElement("path",{fill:"currentColor",d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"}))}}]),n}(),t_=function(t){function n(){return d(this,n),x(this,_(n).apply(this,arguments))}return b(n,e.Component),v(n,[{key:"render",value:function(){return e.createElement("svg",{viewBox:"0 0 512 512"},e.createElement("path",{fill:"currentColor",d:"M304 192v32c0 6.6-5.4 12-12 12h-56v56c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-56h-56c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h56v-56c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v56h56c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"}))}}]),n}();function n_(){var e=E(["",""]);return n_=function(){return e},e}var r_=Li.Range,o_=function(t){function n(t){var r;return d(this,n),y(O(r=x(this,_(n).call(this,t))),"componentWillUnmount",(function(){window.removeEventListener("keydown",r.handleKeyPress)})),y(O(r),"getAcceptedDuration",(function(){var e=r.props,t=e.minDuration,n=e.maxDuration,o=r.state.videoDuration,i=parseFloat(t)||0;i<0&&(i=0);var a=parseFloat(n)||o;return a>o&&(a=o),i>a?{min:a,max:i}:{min:i,max:a}})),y(O(r),"getFormatedValues",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"in";e||(e=r.props.inPoint),t||(t=r.props.outPoint);var o=r.getAcceptedDuration(),i=o.min,a=o.max,u=r.state.videoDuration,s=e||0,c=t||u,l=function(e){c-s>a?"in"===e?c=s+a:s=c-a:c-su&&(c=u,l("out")),{inValue:s,outValue:c}})),y(O(r),"toggleVideoAutoPlay",(function(e){var t=r.videoRef.current;t&&(t.paused?(r.playVideo(),r.monitorAutoplay(e)):r.pauseVideo())})),y(O(r),"monitorAutoplay",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=r.videoRef.current;if(t&&!t.paused){if(!0===e){var n=r.getFormatedValues(),o=n.inValue,i=n.outValue,a=t.currentTime;(ai)&&(t.currentTime=o)}r.updatePlayCursorPosition(null,!0),setTimeout((function(){return r.monitorAutoplay(e)}),100)}})),y(O(r),"playVideo",(function(){var e=r.videoRef.current;e&&e.play(),r.setState({isPlaying:!0})})),y(O(r),"pauseVideo",(function(){var e=r.videoRef.current;e&&e.pause(),r.setState({isPlaying:!1})})),y(O(r),"updatePlayerVolume",(function(){var e=r.props.muted,t=r.videoRef.current;t&&(t.volume=e?0:.5)})),y(O(r),"scrollToCursor",(function(){var e=r.state,t=e.playCursorPosition,n=(e.zoomFactor,e.forceCursorDragging),o=t.xRatio,i=t.yRatio,a=r.draggableApi.calculateCurrentPositionFromRatios(o,i).currentX,u=r.scrollable.current,s=u.scrollLeft,c=u.clientWidth;(n||as+c)&&(r.scrollable.current.scrollLeft=a)})),y(O(r),"updatePlayCursorPosition",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===e){var n=r.videoRef.current,o=r.state.videoDuration;e=n&&o?n.currentTime/o:0}var i={xRatio:e,yRatio:0};r.setState({playCursorPosition:i},(function(){!0===t&&r.scrollToCursor()}))})),y(O(r),"handleVideoPlayerError",(function(e){var t=e.target.error;if(t&&4===t.code){var n=r.props.onNotSupportedVideoLoad;n&&n(t.message)}})),y(O(r),"handleDraggableApiMount",(function(e){return r.draggableApi=e})),y(O(r),"handleKeyPress",(function(e){32===e.keyCode&&(e.preventDefault(),r.toggleVideoAutoPlay())})),y(O(r),"handleLoadedData",(function(){var e=r.props.onVideoLoadedData,t=r.videoRef.current;if(t){var n=r.props.inPoint;void 0!==n&&r.seekVideoTo(n),r.updatePlayerVolume(),r.setState({videoDuration:t.duration},(function(){return r.updatePlayCursorPosition()})),e&&e(t)}})),y(O(r),"handleRangeChange",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=r.state.rangeDisabled;if(!n||t){var o=r.props,i=o.onRangeChange,a=o.outPoint,u=e[1]!==a?"out":"in",s=r.getFormatedValues(e[0],e[1],u),c=s.inValue,l=s.outValue;i([c,l])}})),y(O(r),"handleBeforeRangeChange",(function(e,t){r.pauseVideo(),r.setState({isEditing:!0})})),y(O(r),"handleAfterRangeChange",(function(){var e=r.state,t=e.playCursorPosition,n=e.videoDuration;r.seekVideoTo(t.xRatio*n),r.setState({isEditing:!1})})),y(O(r),"handleFreePlayClick",(function(){r.toggleVideoAutoPlay(!1)})),y(O(r),"handlePlayCursorDrag",(function(e){var t=e.xRatio,n=r.state.videoDuration;r.seekVideoTo(n*t),r.setState({playCursorPosition:e})})),y(O(r),"handleZoomFactorDragStart",(function(){return r.setState({forceCursorDragging:!0})})),y(O(r),"handleZoomFactorDragEnd",(function(){return r.setState({forceCursorDragging:!1})})),y(O(r),"handleZoomFactorChange",(function(e){r.state.zoomFactor;r.setState({zoomFactor:e},r.scrollToCursor)})),y(O(r),"handleContainerMouseDown",(function(e){e.stopPropagation();var t=e.target;t.classList.contains("rc-slider-handle")||t.classList.contains("dnm-video-cut-playing-cursor")?r.setState({rangeDisabled:!1,forceCursorDragging:!1}):r.setState({rangeDisabled:!0,forceCursorDragging:!0})})),y(O(r),"handleContainerMouseUp",(function(){return r.setState({rangeDisabled:!0,forceCursorDragging:!1})})),y(O(r),"handleMuteChange",(function(e){var t=r.props.onMuteChange;t&&t(!e.target.checked)})),r.state={videoDuration:0,isEditing:!1,isPlaying:!1,rangeDisabled:!0,forceCursorDragging:!1,forceScrollToCursor:!1,zoomFactor:[0],playCursorPosition:{xRatio:0,yRatio:0}},r.videoRef=e.createRef(),r.scrollable=e.createRef(),r.draggable=e.createRef(),r.draggableApi=null,r.seekVideoTo=Xg(r._seekVideoTo,50),r}return b(n,e.Component),v(n,[{key:"componentDidMount",value:function(){window.addEventListener("keydown",this.handleKeyPress)}},{key:"componentDidUpdate",value:function(e,t){var n=this.state,r=n.videoDuration,o=n.isEditing,i=this.props,a=i.inPoint,u=i.outPoint,s=i.src,c=i.muted;if(isNaN(r)||r===t.videoDuration||this.handleRangeChange([a,u],!0),s!==e.src&&this.pauseVideo(),o&&(e.inPoint!==a||e.outPoint!==u)){var l;if(e.inPoint!==a&&e.outPoint!==u){var f=this.getAcceptedDuration(),p=f.min,d=f.max;l=Math.abs(u-a-p)a?a:u}else l=e.outPoint!==u?u:a;this.seekVideoTo(l)}c!==e.muted&&this.updatePlayerVolume()}},{key:"_seekVideoTo",value:function(e){if(!isNaN(e)){var t=this.videoRef.current;t&&(t.currentTime=e)}}},{key:"render",value:function(){var e=this.getFormatedValues(),t=e.inValue,n=e.outValue,r=this.state,o=r.videoDuration,i=r.isEditing,a=r.playCursorPosition,u=r.isPlaying,s=r.forceCursorDragging,c=r.zoomFactor,l=this.props,f=l.src,p=l.catalogue,d=l.classes,h=l.playerCursorWidth,v=l.muted,y=l.onMuteChange;return Lt("div",{css:Wt(n_(),zs)},Lt("div",{className:"dnm-video-cut-root ".concat(d.root||""," ").concat(i?"is-editing":""," ").concat(u?"is-playing":"is-paused")},Lt("video",{className:"dnm-video-cut-player ".concat(d.player||""),src:"".concat(f),ref:this.videoRef,loop:!0,muted:v,controls:!1,onLoadedData:this.handleLoadedData,onLoad:this.handleVideoLoad,onError:this.handleVideoPlayerError}),Lt("div",null,Lt("div",{className:"dnm-video-cut-play-icon",onClick:this.handleFreePlayClick},Lt(u?e_:Qb,null)),Lt("div",{className:"dnm-video-cut-progress-scrollable-parent",ref:this.scrollable},Lt("div",{className:"dnm-video-cut-progress-container",style:{width:"calc(".concat(c[0]+100,"% - 20px)")},onTouchStart:this.handleContainerMouseDown,onTouchEnd:this.handleContainerMouseUp,onMouseDown:this.handleContainerMouseDown,onMouseUp:this.handleContainerMouseUp},Lt(Jb,{className:"dnm-video-cut-playing-cursor-draggable-item",axis:"x",forceDragging:s,onMount:this.handleDraggableApiMount,onDrag:this.handlePlayCursorDrag,onDragStart:this.pauseVideo,position:a,draggableWidth:h,rerenderKey:c[0]},Lt("div",{className:"dnm-video-cut-playing-cursor",ref:this.draggable})),Lt(r_,{className:"dnm-video-cut-range ".concat(d.range||""),min:0,max:o||0,step:.05,value:[t,n],onChange:this.handleRangeChange,onBeforeChange:this.handleBeforeRangeChange,onAfterChange:this.handleAfterRangeChange}))),Lt("div",{className:"dnm-video-cut-tools"},Lt("div",{className:"dnm-video-cut-mute"},y&&Lt("label",{className:"dnm-video-cut-checkbox-container"},p.unmute,Lt("input",{type:"checkbox",checked:!v,onChange:this.handleMuteChange}),Lt("span",{className:"dnm-video-cut-checkmark"}))),Lt("div",{className:"dnm-video-cut-zoom"},Lt(r_,{className:"dnm-video-cut-zoom-range ".concat(d.zoomRange||""),min:0,max:900,step:.05,value:c,onBeforeChange:this.handleZoomFactorDragStart,onAfterChange:this.handleZoomFactorDragEnd,onChange:this.handleZoomFactorChange}),Lt("div",{className:"dnm-video-cut-zoom-icon"},Lt(t_,null))),Lt("div",{className:"clearfix"})))))}}]),n}();o_.propTypes={catalogue:p.object,classes:p.shape({root:p.string,player:p.string,range:p.string}),onRangeChange:p.func.isRequired,onNotSupportedVideoLoad:p.func,onVideoLoadedData:p.func,src:p.string.isRequired,inPoint:p.number,outPoint:p.number,draggableWidth:p.number,maxDuration:p.number,minDuration:p.number,muted:p.bool,onMuteChange:p.func,playerCursorWidth:p.oneOfType([p.func,p.number])},o_.defaultProps={catalogue:{unmute:"Enable sound"},classes:{},onRangeChange:function(e){return null},onNotSupportedVideoLoad:function(e){return null},onVideoLoadedData:function(e){return null},inPoint:0,outPoint:0,draggableWidth:null,maxDuration:0,minDuration:0,muted:!1,playerCursorWidth:14};export default o_; +var $b,Yb=Array.prototype,Kb=Object.prototype.hasOwnProperty,qb=Ks?Ks.iterator:void 0,Xb=Math.max,Gb=Math.min,Zb=function(e){return function(t,n,r){if(null==r){var o=fc(n),i=o&&_f(n),a=i&&i.length&&Xv(n,i);(a?a.length:o)||(r=n,n=t,t=this)}return e(t,n,r)}}(tm);ol.after=Tb.after,ol.ary=Tb.ary,ol.assign=Fb.assign,ol.assignIn=Fb.assignIn,ol.assignInWith=Fb.assignInWith,ol.assignWith=Fb.assignWith,ol.at=Fb.at,ol.before=Tb.before,ol.bind=Tb.bind,ol.bindAll=Bb.bindAll,ol.bindKey=Tb.bindKey,ol.castArray=Db.castArray,ol.chain=Wb.chain,ol.chunk=Cb.chunk,ol.compact=Cb.compact,ol.concat=Cb.concat,ol.cond=Bb.cond,ol.conforms=Bb.conforms,ol.constant=Bb.constant,ol.countBy=Pb.countBy,ol.create=Fb.create,ol.curry=Tb.curry,ol.curryRight=Tb.curryRight,ol.debounce=Tb.debounce,ol.defaults=Fb.defaults,ol.defaultsDeep=Fb.defaultsDeep,ol.defer=Tb.defer,ol.delay=Tb.delay,ol.difference=Cb.difference,ol.differenceBy=Cb.differenceBy,ol.differenceWith=Cb.differenceWith,ol.drop=Cb.drop,ol.dropRight=Cb.dropRight,ol.dropRightWhile=Cb.dropRightWhile,ol.dropWhile=Cb.dropWhile,ol.fill=Cb.fill,ol.filter=Pb.filter,ol.flatMap=Pb.flatMap,ol.flatMapDeep=Pb.flatMapDeep,ol.flatMapDepth=Pb.flatMapDepth,ol.flatten=Cb.flatten,ol.flattenDeep=Cb.flattenDeep,ol.flattenDepth=Cb.flattenDepth,ol.flip=Tb.flip,ol.flow=Bb.flow,ol.flowRight=Bb.flowRight,ol.fromPairs=Cb.fromPairs,ol.functions=Fb.functions,ol.functionsIn=Fb.functionsIn,ol.groupBy=Pb.groupBy,ol.initial=Cb.initial,ol.intersection=Cb.intersection,ol.intersectionBy=Cb.intersectionBy,ol.intersectionWith=Cb.intersectionWith,ol.invert=Fb.invert,ol.invertBy=Fb.invertBy,ol.invokeMap=Pb.invokeMap,ol.iteratee=Bb.iteratee,ol.keyBy=Pb.keyBy,ol.keys=_f,ol.keysIn=Fb.keysIn,ol.map=Pb.map,ol.mapKeys=Fb.mapKeys,ol.mapValues=Fb.mapValues,ol.matches=Bb.matches,ol.matchesProperty=Bb.matchesProperty,ol.memoize=Tb.memoize,ol.merge=Fb.merge,ol.mergeWith=Fb.mergeWith,ol.method=Bb.method,ol.methodOf=Bb.methodOf,ol.mixin=Zb,ol.negate=rm,ol.nthArg=Bb.nthArg,ol.omit=Fb.omit,ol.omitBy=Fb.omitBy,ol.once=Tb.once,ol.orderBy=Pb.orderBy,ol.over=Bb.over,ol.overArgs=Tb.overArgs,ol.overEvery=Bb.overEvery,ol.overSome=Bb.overSome,ol.partial=Tb.partial,ol.partialRight=Tb.partialRight,ol.partition=Pb.partition,ol.pick=Fb.pick,ol.pickBy=Fb.pickBy,ol.property=Bb.property,ol.propertyOf=Bb.propertyOf,ol.pull=Cb.pull,ol.pullAll=Cb.pullAll,ol.pullAllBy=Cb.pullAllBy,ol.pullAllWith=Cb.pullAllWith,ol.pullAt=Cb.pullAt,ol.range=Bb.range,ol.rangeRight=Bb.rangeRight,ol.rearg=Tb.rearg,ol.reject=Pb.reject,ol.remove=Cb.remove,ol.rest=Tb.rest,ol.reverse=Cb.reverse,ol.sampleSize=Pb.sampleSize,ol.set=Fb.set,ol.setWith=Fb.setWith,ol.shuffle=Pb.shuffle,ol.slice=Cb.slice,ol.sortBy=Pb.sortBy,ol.sortedUniq=Cb.sortedUniq,ol.sortedUniqBy=Cb.sortedUniqBy,ol.split=Vb.split,ol.spread=Tb.spread,ol.tail=Cb.tail,ol.take=Cb.take,ol.takeRight=Cb.takeRight,ol.takeRightWhile=Cb.takeRightWhile,ol.takeWhile=Cb.takeWhile,ol.tap=Wb.tap,ol.throttle=Tb.throttle,ol.thru=Gg,ol.toArray=Db.toArray,ol.toPairs=Fb.toPairs,ol.toPairsIn=Fb.toPairsIn,ol.toPath=Bb.toPath,ol.toPlainObject=Db.toPlainObject,ol.transform=Fb.transform,ol.unary=Tb.unary,ol.union=Cb.union,ol.unionBy=Cb.unionBy,ol.unionWith=Cb.unionWith,ol.uniq=Cb.uniq,ol.uniqBy=Cb.uniqBy,ol.uniqWith=Cb.uniqWith,ol.unset=Fb.unset,ol.unzip=Cb.unzip,ol.unzipWith=Cb.unzipWith,ol.update=Fb.update,ol.updateWith=Fb.updateWith,ol.values=Fb.values,ol.valuesIn=Fb.valuesIn,ol.without=Cb.without,ol.words=Vb.words,ol.wrap=Tb.wrap,ol.xor=Cb.xor,ol.xorBy=Cb.xorBy,ol.xorWith=Cb.xorWith,ol.zip=Cb.zip,ol.zipObject=Cb.zipObject,ol.zipObjectDeep=Cb.zipObjectDeep,ol.zipWith=Cb.zipWith,ol.entries=Fb.toPairs,ol.entriesIn=Fb.toPairsIn,ol.extend=Fb.assignIn,ol.extendWith=Fb.assignInWith,Zb(ol,ol),ol.add=Nb.add,ol.attempt=Bb.attempt,ol.camelCase=Vb.camelCase,ol.capitalize=Vb.capitalize,ol.ceil=Nb.ceil,ol.clamp=Rb,ol.clone=Db.clone,ol.cloneDeep=Db.cloneDeep,ol.cloneDeepWith=Db.cloneDeepWith,ol.cloneWith=Db.cloneWith,ol.conformsTo=Db.conformsTo,ol.deburr=Vb.deburr,ol.defaultTo=Bb.defaultTo,ol.divide=Nb.divide,ol.endsWith=Vb.endsWith,ol.eq=Db.eq,ol.escape=Vb.escape,ol.escapeRegExp=Vb.escapeRegExp,ol.every=Pb.every,ol.find=Pb.find,ol.findIndex=Cb.findIndex,ol.findKey=Fb.findKey,ol.findLast=Pb.findLast,ol.findLastIndex=Cb.findLastIndex,ol.findLastKey=Fb.findLastKey,ol.floor=Nb.floor,ol.forEach=Pb.forEach,ol.forEachRight=Pb.forEachRight,ol.forIn=Fb.forIn,ol.forInRight=Fb.forInRight,ol.forOwn=Fb.forOwn,ol.forOwnRight=Fb.forOwnRight,ol.get=Fb.get,ol.gt=Db.gt,ol.gte=Db.gte,ol.has=Fb.has,ol.hasIn=Fb.hasIn,ol.head=Cb.head,ol.identity=_c,ol.includes=Pb.includes,ol.indexOf=Cb.indexOf,ol.inRange=Lb,ol.invoke=Fb.invoke,ol.isArguments=Db.isArguments,ol.isArray=ic,ol.isArrayBuffer=Db.isArrayBuffer,ol.isArrayLike=Db.isArrayLike,ol.isArrayLikeObject=Db.isArrayLikeObject,ol.isBoolean=Db.isBoolean,ol.isBuffer=Db.isBuffer,ol.isDate=Db.isDate,ol.isElement=Db.isElement,ol.isEmpty=Db.isEmpty,ol.isEqual=Db.isEqual,ol.isEqualWith=Db.isEqualWith,ol.isError=Db.isError,ol.isFinite=Db.isFinite,ol.isFunction=Db.isFunction,ol.isInteger=Db.isInteger,ol.isLength=Db.isLength,ol.isMap=Db.isMap,ol.isMatch=Db.isMatch,ol.isMatchWith=Db.isMatchWith,ol.isNaN=Db.isNaN,ol.isNative=Db.isNative,ol.isNil=Db.isNil,ol.isNull=Db.isNull,ol.isNumber=Db.isNumber,ol.isObject=fc,ol.isObjectLike=Db.isObjectLike,ol.isPlainObject=Db.isPlainObject,ol.isRegExp=Db.isRegExp,ol.isSafeInteger=Db.isSafeInteger,ol.isSet=Db.isSet,ol.isString=Db.isString,ol.isSymbol=Db.isSymbol,ol.isTypedArray=Db.isTypedArray,ol.isUndefined=Db.isUndefined,ol.isWeakMap=Db.isWeakMap,ol.isWeakSet=Db.isWeakSet,ol.join=Cb.join,ol.kebabCase=Vb.kebabCase,ol.last=sv,ol.lastIndexOf=Cb.lastIndexOf,ol.lowerCase=Vb.lowerCase,ol.lowerFirst=Vb.lowerFirst,ol.lt=Db.lt,ol.lte=Db.lte,ol.max=Nb.max,ol.maxBy=Nb.maxBy,ol.mean=Nb.mean,ol.meanBy=Nb.meanBy,ol.min=Nb.min,ol.minBy=Nb.minBy,ol.stubArray=Bb.stubArray,ol.stubFalse=Bb.stubFalse,ol.stubObject=Bb.stubObject,ol.stubString=Bb.stubString,ol.stubTrue=Bb.stubTrue,ol.multiply=Nb.multiply,ol.nth=Cb.nth,ol.noop=Bb.noop,ol.now=Ab,ol.pad=Vb.pad,ol.padEnd=Vb.padEnd,ol.padStart=Vb.padStart,ol.parseInt=Vb.parseInt,ol.random=Ib,ol.reduce=Pb.reduce,ol.reduceRight=Pb.reduceRight,ol.repeat=Vb.repeat,ol.replace=Vb.replace,ol.result=Fb.result,ol.round=Nb.round,ol.sample=Pb.sample,ol.size=Pb.size,ol.snakeCase=Vb.snakeCase,ol.some=Pb.some,ol.sortedIndex=Cb.sortedIndex,ol.sortedIndexBy=Cb.sortedIndexBy,ol.sortedIndexOf=Cb.sortedIndexOf,ol.sortedLastIndex=Cb.sortedLastIndex,ol.sortedLastIndexBy=Cb.sortedLastIndexBy,ol.sortedLastIndexOf=Cb.sortedLastIndexOf,ol.startCase=Vb.startCase,ol.startsWith=Vb.startsWith,ol.subtract=Nb.subtract,ol.sum=Nb.sum,ol.sumBy=Nb.sumBy,ol.template=Vb.template,ol.times=Bb.times,ol.toFinite=Db.toFinite,ol.toInteger=bc,ol.toLength=Db.toLength,ol.toLower=Vb.toLower,ol.toNumber=Db.toNumber,ol.toSafeInteger=Db.toSafeInteger,ol.toString=Db.toString,ol.toUpper=Vb.toUpper,ol.trim=Vb.trim,ol.trimEnd=Vb.trimEnd,ol.trimStart=Vb.trimStart,ol.truncate=Vb.truncate,ol.unescape=Vb.unescape,ol.uniqueId=Bb.uniqueId,ol.upperCase=Vb.upperCase,ol.upperFirst=Vb.upperFirst,ol.each=Pb.forEach,ol.eachRight=Pb.forEachRight,ol.first=Cb.head,Zb(ol,($b={},Th(ol,(function(e,t){Kb.call(ol.prototype,t)||($b[t]=e)})),$b),{chain:!1}),ol.VERSION="4.17.20",(ol.templateSettings=Vb.templateSettings).imports._=ol,vl(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){ol[e].placeholder=ol})),vl(["drop","take"],(function(e,t){qc.prototype[e]=function(n){n=void 0===n?1:Xb(bc(n),0);var r=this.__filtered__&&!t?new qc(this):this.clone();return r.__filtered__?r.__takeCount__=Gb(n,r.__takeCount__):r.__views__.push({size:Gb(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},qc.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),vl(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;qc.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:kh(e),type:n}),t.__filtered__=t.__filtered__||r,t}})),vl(["head","last"],(function(e,t){var n="take"+(t?"Right":"");qc.prototype[e]=function(){return this[n](1).value()[0]}})),vl(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");qc.prototype[e]=function(){return this.__filtered__?new qc(this):this[n](1)}})),qc.prototype.compact=function(){return this.filter(_c)},qc.prototype.find=function(e){return this.filter(e).head()},qc.prototype.findLast=function(e){return this.reverse().find(e)},qc.prototype.invokeMap=Bl((function(e,t){return"function"==typeof e?new qc(this):this.map((function(n){return Sy(n,e,t)}))})),qc.prototype.reject=function(e){return this.filter(rm(kh(e)))},qc.prototype.slice=function(e,t){e=bc(e);var n=this;return n.__filtered__&&(e>0||t<0)?new qc(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=bc(t))<0?n.dropRight(-t):n.take(t-e)),n)},qc.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qc.prototype.toArray=function(){return this.take(4294967295)},Th(qc.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=ol[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(ol.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof qc,s=a[0],c=u||ic(t),l=function(e){var t=o.apply(ol,Jf([e],a));return r&&f?t[0]:t};c&&n&&"function"==typeof s&&1!=s.length&&(u=c=!1);var f=this.__chain__,p=!!this.__actions__.length,d=i&&!f,h=u&&!p;if(!i&&c){t=h?t:new qc(this);var v=e.apply(t,a);return v.__actions__.push({func:Gg,args:[l],thisArg:void 0}),new el(v,f)}return d&&h?e.apply(this,a):(v=this.thru(l),d?r?v.value()[0]:v.value():v)})})),vl(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Yb[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);ol.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(ic(o)?o:[],e)}return this[n]((function(n){return t.apply(ic(n)?n:[],e)}))}})),Th(qc.prototype,(function(e,t){var n=ol[t];if(n){var r=n.name+"";Kb.call(Zc,r)||(Zc[r]=[]),Zc[r].push({name:t,func:n})}})),Zc[Cl(void 0,2).name]=[{name:"wrapper",func:void 0}],qc.prototype.clone=function(){var e=new qc(this.__wrapped__);return e.__actions__=tl(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=tl(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=tl(this.__views__),e},qc.prototype.reverse=function(){if(this.__filtered__){var e=new qc(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qc.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ic(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r1&&void 0!==arguments[1]&&arguments[1],n=r.props.forceDragging;if(r.active||n||!0===t){var o,i;e.preventDefault(),"touchmove"===e.type?(o=e.touches[0].clientX-r.initialX,i=e.touches[0].clientY-r.initialY):(o=e.clientX-r.initialX,i=e.clientY-r.initialY);var a=!1,u=5,s=50,c=r.getContainerDimensions(),l=c.containerWidth,f=c.containerHeight,p=r.getAxis(),d=p.xAxis,h=p.yAxis;o>l?(d&&o+u>l&&(a=!0),o=l):o<0&&(d&&o<-u&&(a=!0),o=0),i>f?(h&&i+s>f&&(a=!0),i=f):i<0&&(h&&i<-s&&(a=!0),i=0),!0===a&&r.handleDragEnd(),r.updateState({xRatio:o/l,yRatio:i/f})}})),y(O(r),"handleDragEnd",(function(e){r.active=!1;var t=r.props.onDragEnd;t&&t(),(new Date).getTime()-r.lastMouseDown<300&&r.handleDrag(e,!0)})),y(O(r),"_handleWindowResize",(function(){var e=r.state.render_key;r.updateState({render_key:e})})),y(O(r),"getContainerDimensions",(function(){var e=0,t=0;if(r.container){var n=["paddingLeft","paddingRight","paddingTop","paddingBottom"].map((function(e){return Math.round(getComputedStyle(r.container)[e].replace("px","")||0)}));e=r.container.clientWidth-(n[0]+n[1])-r.draggableRef.current.clientWidth,t=r.container.clientHeight-(n[2]+n[3])-r.draggableRef.current.clientHeight}return{containerWidth:e,containerHeight:t}})),y(O(r),"getCurrentPositionWithPercent",(function(){var e=r.getCurrentPosition(),t=e.xRatio,n=e.yRatio,o=r.getContainerDimensions();return{currentX:t*o.containerWidth,currentY:n*o.containerHeight}})),y(O(r),"getAxis",(function(){var e=r.props.axis;return{xAxis:"y"!==e,yAxis:"x"!==e}})),y(O(r),"getCurrentPosition",(function(){var e=r.props.position;if(e){var t=e.xRatio,n=e.yRatio;return g({xRatio:t,yRatio:n},r.calculateCurrentPositionFromRatios(t,n))}return r.state})),y(O(r),"calculateCurrentPositionFromRatios",(function(e,t){var n=r.getContainerDimensions();return{currentX:e*n.containerWidth,currentY:t*n.containerHeight}})),y(O(r),"updateState",(function(e){r.lastMove=(new Date).getTime();var t=r.props,n=t.position,o=t.onDrag;n?o(g({},n,{},e)):r.setState(e)})),r.state={xRatio:0,yRatio:0,render_key:0},r.active=!1,r.initialX=0,r.initialY=0,r.ghostContainerDimensions=r.getContainerDimensions(),r.draggableRef=e.createRef(),r.handleWindowResize=Xg(r._handleWindowResize,200),r}return b(n,e.Component),v(n,[{key:"componentDidMount",value:function(){var e=this.props.onMount;this.container=l.findDOMNode(this).parentNode,this.container.addEventListener("touchstart",this.handleDragStart,!1),this.container.addEventListener("touchend",this.handleDragEnd,!1),this.container.addEventListener("touchmove",this.handleDrag,!1),this.container.addEventListener("mousedown",this.handleDragStart,!1),this.container.addEventListener("mouseup",this.handleDragEnd,!1),this.container.addEventListener("mousemove",this.handleDrag,!1),window.addEventListener("resize",this.handleWindowResize,!1),e&&e(this)}},{key:"componentDidUpdate",value:function(){var e=this.ghostContainerDimensions,t=e.containerWidth,n=e.containerHeight;this.ghostContainerDimensions=this.getContainerDimensions(),t===this.ghostContainerDimensions.containerWidth&&n===this.ghostContainerDimensions.containerHeight||this._handleWindowResize()}},{key:"componentWillUnmount",value:function(){this.container.removeEventListener("touchstart",this.handleDragStart),this.container.removeEventListener("touchend",this.handleDragEnd),this.container.removeEventListener("touchmove",this.handleDrag),this.container.removeEventListener("mousedown",this.handleDragStart),this.container.removeEventListener("mouseup",this.handleDragEnd),this.container.removeEventListener("mousemove",this.handleDrag),window.removeEventListener("resize",this.handleWindowResize,!1)}},{key:"render",value:function(){var t=this.getCurrentPosition(),n=t.currentX,r=t.currentY,o=this.props.className,i=this.getAxis(),a=i.xAxis,u=i.yAxis;return e.createElement("div",{ref:this.draggableRef,style:{transform:"translate3d(".concat(a?n:0,"px, ").concat(u?r:0,"px, 0)")},className:"react-draggable ".concat(o||"")},this.props.children)}}]),n}();Jb.propTypes={className:p.string,axis:p.oneOf(["x","y"]),position:p.shape({xRatio:p.number,yRatio:p.number}),onDragStart:p.func,onDrag:p.func,onDragEnd:p.func,draggableWidth:p.number,draggableHeight:p.number};var Qb=function(t){function n(){return d(this,n),x(this,_(n).apply(this,arguments))}return b(n,e.Component),v(n,[{key:"render",value:function(){return e.createElement("svg",{viewBox:"0 0 448 512"},e.createElement("path",{fill:"currentColor",d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"}))}}]),n}(),e_=function(t){function n(){return d(this,n),x(this,_(n).apply(this,arguments))}return b(n,e.Component),v(n,[{key:"render",value:function(){return e.createElement("svg",{viewBox:"0 0 448 512"},e.createElement("path",{fill:"currentColor",d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"}))}}]),n}(),t_=function(t){function n(){return d(this,n),x(this,_(n).apply(this,arguments))}return b(n,e.Component),v(n,[{key:"render",value:function(){return e.createElement("svg",{viewBox:"0 0 512 512"},e.createElement("path",{fill:"currentColor",d:"M304 192v32c0 6.6-5.4 12-12 12h-56v56c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-56h-56c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h56v-56c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v56h56c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"}))}}]),n}();function n_(){var e=E(["",""]);return n_=function(){return e},e}var r_=Li.Range,o_=function(t){function n(t){var r;return d(this,n),y(O(r=x(this,_(n).call(this,t))),"componentWillUnmount",(function(){window.removeEventListener("keydown",r.handleKeyPress)})),y(O(r),"getAcceptedDuration",(function(){var e=r.props,t=e.minDuration,n=e.maxDuration,o=r.state.videoDuration,i=parseFloat(t)||0;i<0&&(i=0);var a=parseFloat(n)||o;return a>o&&(a=o),i>a?{min:a,max:i}:{min:i,max:a}})),y(O(r),"getFormatedValues",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"in";e||(e=r.props.inPoint),t||(t=r.props.outPoint);var o=r.getAcceptedDuration(),i=o.min,a=o.max,u=r.state.videoDuration,s=e||0,c=t||u,l=function(e){c-s>a?"in"===e?c=s+a:s=c-a:c-su&&(c=u,l("out")),{inValue:s,outValue:c}})),y(O(r),"toggleVideoAutoPlay",(function(e){var t=r.videoRef.current;t&&(t.paused?(r.playVideo(),r.monitorAutoplay(e)):r.pauseVideo())})),y(O(r),"monitorAutoplay",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=r.videoRef.current;if(t&&!t.paused){if(!0===e){var n=r.getFormatedValues(),o=n.inValue,i=n.outValue,a=t.currentTime;(ai)&&(t.currentTime=o)}r.updatePlayCursorPosition(null,!0),setTimeout((function(){return r.monitorAutoplay(e)}),100)}})),y(O(r),"playVideo",(function(){var e=r.videoRef.current;e&&e.play(),r.setState({isPlaying:!0})})),y(O(r),"pauseVideo",(function(){var e=r.videoRef.current;e&&e.pause(),r.setState({isPlaying:!1})})),y(O(r),"updatePlayerVolume",(function(){var e=r.props.muted,t=r.videoRef.current;t&&(t.volume=e?0:.5)})),y(O(r),"scrollToCursor",(function(){var e=r.state,t=e.playCursorPosition,n=(e.zoomFactor,e.forceCursorDragging),o=t.xRatio,i=t.yRatio,a=r.draggableApi.calculateCurrentPositionFromRatios(o,i).currentX,u=r.scrollable.current,s=u.scrollLeft,c=u.clientWidth;(n||as+c)&&(r.scrollable.current.scrollLeft=a)})),y(O(r),"updatePlayCursorPosition",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===e){var n=r.videoRef.current,o=r.state.videoDuration;e=n&&o?n.currentTime/o:0}var i={xRatio:e,yRatio:0};r.setState({playCursorPosition:i},(function(){!0===t&&r.scrollToCursor()}))})),y(O(r),"handleVideoPlayerError",(function(e){var t=e.target.error;if(t&&4===t.code){var n=r.props.onNotSupportedVideoLoad;n&&n(t.message)}})),y(O(r),"handleDraggableApiMount",(function(e){return r.draggableApi=e})),y(O(r),"handleKeyPress",(function(e){32===e.keyCode&&(e.preventDefault(),r.toggleVideoAutoPlay())})),y(O(r),"handleLoadedData",(function(){var e=r.props.onVideoLoadedData,t=r.videoRef.current;if(t){var n=r.props.inPoint;void 0!==n&&r.seekVideoTo(n),r.updatePlayerVolume(),r.setState({videoDuration:t.duration},(function(){return r.updatePlayCursorPosition()})),e&&e(t)}})),y(O(r),"handleRangeChange",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=r.state.rangeDisabled;if(!n||t){var o=r.props,i=o.onRangeChange,a=o.outPoint,u=e[1]!==a?"out":"in",s=r.getFormatedValues(e[0],e[1],u),c=s.inValue,l=s.outValue;i([c,l])}})),y(O(r),"handleBeforeRangeChange",(function(e,t){r.pauseVideo(),r.setState({isEditing:!0})})),y(O(r),"handleAfterRangeChange",(function(){var e=r.state,t=e.playCursorPosition,n=e.videoDuration;r.seekVideoTo(t.xRatio*n),r.setState({isEditing:!1})})),y(O(r),"handleFreePlayClick",(function(){r.toggleVideoAutoPlay(!1)})),y(O(r),"handlePlayCursorDrag",(function(e){var t=e.xRatio,n=r.state.videoDuration;r.seekVideoTo(n*t),r.setState({playCursorPosition:e})})),y(O(r),"handleZoomFactorDragStart",(function(){return r.setState({forceCursorDragging:!0})})),y(O(r),"handleZoomFactorDragEnd",(function(){return r.setState({forceCursorDragging:!1})})),y(O(r),"handleZoomFactorChange",(function(e){r.state.zoomFactor;r.setState({zoomFactor:e},r.scrollToCursor)})),y(O(r),"handleContainerMouseDown",(function(e){e.stopPropagation();var t=e.target,n=r.state,o=n.rangeDisabled,i=n.forceCursorDragging;t.classList.contains("rc-slider-handle")||t.classList.contains("dnm-video-cut-playing-cursor")?(o||i)&&r.setState({rangeDisabled:!1,forceCursorDragging:!1}):o&&i||r.setState({rangeDisabled:!0,forceCursorDragging:!0})})),y(O(r),"handleContainerMouseUp",(function(){return r.setState({rangeDisabled:!0,forceCursorDragging:!1})})),y(O(r),"handleMuteChange",(function(e){var t=r.props.onMuteChange;t&&t(!e.target.checked)})),r.state={videoDuration:0,isEditing:!1,isPlaying:!1,rangeDisabled:!0,forceCursorDragging:!1,forceScrollToCursor:!1,zoomFactor:[0],playCursorPosition:{xRatio:0,yRatio:0}},r.videoRef=e.createRef(),r.scrollable=e.createRef(),r.draggable=e.createRef(),r.draggableApi=null,r.seekVideoTo=Xg(r._seekVideoTo,20),r}return b(n,e.Component),v(n,[{key:"componentDidMount",value:function(){window.addEventListener("keydown",this.handleKeyPress)}},{key:"componentDidUpdate",value:function(e,t){var n=this.state,r=n.videoDuration,o=n.isEditing,i=this.props,a=i.inPoint,u=i.outPoint,s=i.src,c=i.muted;if(isNaN(r)||r===t.videoDuration||this.handleRangeChange([a,u],!0),s!==e.src&&this.pauseVideo(),o&&(e.inPoint!==a||e.outPoint!==u)){var l;if(e.inPoint!==a&&e.outPoint!==u){var f=this.getAcceptedDuration(),p=f.min,d=f.max;l=Math.abs(u-a-p)a?a:u}else l=e.outPoint!==u?u:a;this.seekVideoTo(l)}c!==e.muted&&this.updatePlayerVolume()}},{key:"_seekVideoTo",value:function(e){if(!isNaN(e)){var t=this.videoRef.current;t&&(t.currentTime=e)}}},{key:"render",value:function(){var e=this.getFormatedValues(),t=e.inValue,n=e.outValue,r=this.state,o=r.videoDuration,i=r.playCursorPosition,a=r.isPlaying,u=r.forceCursorDragging,s=r.zoomFactor,c=this.props,l=c.src,f=c.catalogue,p=c.classes,d=c.playerCursorWidth,h=c.muted,v=c.onMuteChange;return Lt("div",{css:Wt(n_(),zs)},Lt("div",{className:"dnm-video-cut-root ".concat(p.root||""," ").concat(a?"is-playing":"is-paused")},Lt("video",{className:"dnm-video-cut-player ".concat(p.player||""),src:"".concat(l),ref:this.videoRef,loop:!0,muted:h,controls:!1,onLoadedData:this.handleLoadedData,onLoad:this.handleVideoLoad,onError:this.handleVideoPlayerError,preload:"auto"}),Lt("div",null,Lt("div",{className:"dnm-video-cut-play-icon",onClick:this.handleFreePlayClick},Lt(a?e_:Qb,null)),Lt("div",{className:"dnm-video-cut-progress-scrollable-parent",ref:this.scrollable},Lt("div",{className:"dnm-video-cut-progress-container",style:{width:"calc(".concat(s[0]+100,"% - 20px)")},onTouchMove:this.handleContainerMouseDown,onTouchEnd:this.handleContainerMouseUp,onMouseDown:this.handleContainerMouseDown,onMouseUp:this.handleContainerMouseUp},Lt(Jb,{className:"dnm-video-cut-playing-cursor-draggable-item",axis:"x",forceDragging:u,onMount:this.handleDraggableApiMount,onDrag:this.handlePlayCursorDrag,onDragStart:this.pauseVideo,position:i,draggableWidth:d,rerenderKey:s[0]},Lt("div",{className:"dnm-video-cut-playing-cursor",ref:this.draggable})),Lt(r_,{className:"dnm-video-cut-range ".concat(p.range||""),min:0,max:o||0,step:.05,value:[t,n],onChange:this.handleRangeChange,onBeforeChange:this.handleBeforeRangeChange,onAfterChange:this.handleAfterRangeChange}))),Lt("div",{className:"dnm-video-cut-tools"},Lt("div",{className:"dnm-video-cut-mute"},v&&Lt("label",{className:"dnm-video-cut-checkbox-container"},f.unmute,Lt("input",{type:"checkbox",checked:!h,onChange:this.handleMuteChange}),Lt("span",{className:"dnm-video-cut-checkmark"}))),Lt("div",{className:"dnm-video-cut-zoom"},Lt(r_,{className:"dnm-video-cut-zoom-range ".concat(p.zoomRange||""),min:0,max:900,step:.05,value:s,onBeforeChange:this.handleZoomFactorDragStart,onAfterChange:this.handleZoomFactorDragEnd,onChange:this.handleZoomFactorChange}),Lt("div",{className:"dnm-video-cut-zoom-icon"},Lt(t_,null))),Lt("div",{className:"clearfix"})))))}}]),n}();o_.propTypes={catalogue:p.object,classes:p.shape({root:p.string,player:p.string,range:p.string}),onRangeChange:p.func.isRequired,onNotSupportedVideoLoad:p.func,onVideoLoadedData:p.func,src:p.string.isRequired,inPoint:p.number,outPoint:p.number,draggableWidth:p.number,maxDuration:p.number,minDuration:p.number,muted:p.bool,onMuteChange:p.func,playerCursorWidth:p.oneOfType([p.func,p.number])},o_.defaultProps={catalogue:{unmute:"Enable sound"},classes:{},onRangeChange:function(e){return null},onNotSupportedVideoLoad:function(e){return null},onVideoLoadedData:function(e){return null},inPoint:0,outPoint:0,draggableWidth:null,maxDuration:0,minDuration:0,muted:!1,playerCursorWidth:14};export default o_; diff --git a/dist/dnm-react-video-cut.umd.js b/dist/dnm-react-video-cut.umd.js index 53b87a0..f991e60 100644 --- a/dist/dnm-react-video-cut.umd.js +++ b/dist/dnm-react-video-cut.umd.js @@ -11223,7 +11223,7 @@ Slider$1.createSliderWithTooltip = createSliderWithTooltip; function _templateObject() { - var data = _taggedTemplateLiteral(["\n .rc-slider {\n position: relative;\n height: 14px;\n padding: 5px 0;\n width: 100%;\n border-radius: 6px;\n -ms-touch-action: none;\n touch-action: none;\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n }\n .rc-slider * {\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n }\n .rc-slider-rail {\n position: absolute;\n width: 100%;\n background-color: #e9e9e9;\n height: 4px;\n border-radius: 6px;\n }\n .rc-slider-track {\n position: absolute;\n left: 0;\n height: 4px;\n border-radius: 6px;\n background: linear-gradient(45deg,#46be8a 0,#92d275 100%);\n }\n .rc-slider-handle {\n position: absolute;\n width: 14px;\n height: 14px;\n cursor: pointer;\n cursor: -webkit-grab;\n margin-top: -5px;\n cursor: grab;\n border-radius: 50%;\n border: solid 2px #46be8a;\n background-color: #fff;\n -ms-touch-action: pan-x;\n touch-action: pan-x;\n }\n .rc-slider-handle-dragging.rc-slider-handle-dragging.rc-slider-handle-dragging {\n border-color: #92d275;\n box-shadow: 0 0 0 5px #92d275;\n }\n .rc-slider-handle:focus {\n outline: none;\n }\n .rc-slider-handle-click-focused:focus {\n border-color: #46be8a;\n box-shadow: unset;\n }\n .rc-slider-handle:hover {\n border-color: #92d275;\n }\n .rc-slider-handle:active {\n border-color: #92d275;\n box-shadow: 0 0 5px #92d275;\n cursor: -webkit-grabbing;\n cursor: grabbing;\n }\n .rc-slider-mark {\n position: absolute;\n top: 18px;\n left: 0;\n width: 100%;\n font-size: 12px;\n }\n .rc-slider-mark-text {\n position: absolute;\n display: inline-block;\n vertical-align: middle;\n text-align: center;\n cursor: pointer;\n color: #999;\n }\n .rc-slider-mark-text-active {\n color: #666;\n }\n .rc-slider-step {\n position: absolute;\n width: 100%;\n height: 4px;\n background: transparent;\n }\n .rc-slider-dot {\n position: absolute;\n bottom: -2px;\n margin-left: -4px;\n width: 8px;\n height: 8px;\n border: 2px solid #e9e9e9;\n background-color: #fff;\n cursor: pointer;\n border-radius: 50%;\n vertical-align: middle;\n }\n .rc-slider-dot-active {\n border-color: #46be8a;\n }\n .rc-slider-dot-reverse {\n margin-left: 0;\n margin-right: -4px;\n }\n .rc-slider-disabled {\n background-color: #e9e9e9;\n }\n .rc-slider-disabled .rc-slider-track {\n background-color: rgb(197, 203, 212);\n }\n .rc-slider-disabled .rc-slider-handle,\n .rc-slider-disabled .rc-slider-dot {\n border-color: rgb(197, 203, 212);\n box-shadow: none;\n background-color: #fff;\n cursor: not-allowed;\n }\n .rc-slider-disabled .rc-slider-mark-text,\n .rc-slider-disabled .rc-slider-dot {\n cursor: not-allowed !important;\n }\n .rc-slider-vertical {\n width: 14px;\n height: 100%;\n padding: 0 5px;\n }\n .rc-slider-vertical .rc-slider-rail {\n height: 100%;\n width: 4px;\n }\n .rc-slider-vertical .rc-slider-track {\n left: 5px;\n bottom: 0;\n width: 4px;\n }\n .rc-slider-vertical .rc-slider-handle {\n margin-left: -5px;\n -ms-touch-action: pan-y;\n touch-action: pan-y;\n }\n .rc-slider-vertical .rc-slider-mark {\n top: 0;\n left: 18px;\n height: 100%;\n }\n .rc-slider-vertical .rc-slider-step {\n height: 100%;\n width: 4px;\n }\n .rc-slider-vertical .rc-slider-dot {\n left: 2px;\n margin-bottom: -4px;\n }\n .rc-slider-vertical .rc-slider-dot:first-of-type {\n margin-bottom: -4px;\n }\n .rc-slider-vertical .rc-slider-dot:last-of-type {\n margin-bottom: -4px;\n }\n .rc-slider-tooltip-zoom-down-enter,\n .rc-slider-tooltip-zoom-down-appear {\n animation-duration: 0.3s;\n animation-fill-mode: both;\n display: block !important;\n animation-play-state: paused;\n }\n .rc-slider-tooltip-zoom-down-leave {\n animation-duration: 0.3s;\n animation-fill-mode: both;\n display: block !important;\n animation-play-state: paused;\n }\n .rc-slider-tooltip-zoom-down-enter.rc-slider-tooltip-zoom-down-enter-active,\n .rc-slider-tooltip-zoom-down-appear.rc-slider-tooltip-zoom-down-appear-active {\n animation-name: rcSliderTooltipZoomDownIn;\n animation-play-state: running;\n }\n .rc-slider-tooltip-zoom-down-leave.rc-slider-tooltip-zoom-down-leave-active {\n animation-name: rcSliderTooltipZoomDownOut;\n animation-play-state: running;\n }\n .rc-slider-tooltip-zoom-down-enter,\n .rc-slider-tooltip-zoom-down-appear {\n transform: scale(0, 0);\n animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\n }\n .rc-slider-tooltip-zoom-down-leave {\n animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n }\n @keyframes rcSliderTooltipZoomDownIn {\n 0% {\n opacity: 0;\n transform-origin: 50% 100%;\n transform: scale(0, 0);\n }\n 100% {\n transform-origin: 50% 100%;\n transform: scale(1, 1);\n }\n }\n @keyframes rcSliderTooltipZoomDownOut {\n 0% {\n transform-origin: 50% 100%;\n transform: scale(1, 1);\n }\n 100% {\n opacity: 0;\n transform-origin: 50% 100%;\n transform: scale(0, 0);\n }\n }\n .rc-slider-tooltip {\n position: absolute;\n left: -9999px;\n top: -9999px;\n visibility: visible;\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n }\n .rc-slider-tooltip * {\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n }\n .rc-slider-tooltip-hidden {\n display: none;\n }\n .rc-slider-tooltip-placement-top {\n padding: 4px 0 8px 0;\n }\n .rc-slider-tooltip-inner {\n padding: 6px 2px;\n min-width: 24px;\n height: 24px;\n font-size: 12px;\n line-height: 1;\n color: #fff;\n text-align: center;\n text-decoration: none;\n background-color: #6c6c6c;\n border-radius: 6px;\n box-shadow: 0 0 4px #d9d9d9;\n }\n .rc-slider-tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n }\n .rc-slider-tooltip-placement-top .rc-slider-tooltip-arrow {\n bottom: 4px;\n left: 50%;\n margin-left: -4px;\n border-width: 4px 4px 0;\n border-top-color: #6c6c6c;\n }\n \n .dnm-video-cut-player {\n transform: scale(1);\n opacity: 1;\n width: 100%;\n transition: all 0.2s ease-in-out;\n }\n \n .dnm-video-cut-root.is-editing .dnm-video-cut-player {\n transform: scale(0.9);\n opacity: 0.8;\n box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.5);\n }\n \n .dnm-video-cut-range {\n width: 100%;\n position: relative;\n bottom: 17px;\n }\n \n .dnm-video-cut-playing-cursor {\n height: 20px;\n width: 10px;\n background-color: white;\n border-radius: 10px;\n margin-top: -3px;\n box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.5);\n }\n \n .dnm-video-cut-playing-cursor-draggable-item {\n width: 10px;\n z-index: 2;\n position: relative;\n }\n \n .dnm-video-cut-playing-cursor-draggable-item:hover {\n cursor: grab;\n }\n \n .dnm-video-cut-playing-cursor-draggable-item:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n }\n \n .dnm-video-cut-playing-cursor {\n transform: scale(1);\n transition: all 0.2s ease-in-out;\n }\n \n .dnm-video-cut-playing-cursor:hover {\n transform: scale(1.3);\n }\n\n .dnm-video-cut-progress-scrollable-parent {\n width: calc(100% - 45px);\n display: inline-block;\n margin-left: 15px;\n margin-top: 5px;\n padding-top: 10px;\n overflow-x: scroll;\n }\n\n .dnm-video-cut-progress-container {\n width: calc(500% - 20px);\n margin-left: 10px;\n padding-right: 10px;\n height: 28px;\n }\n \n .dnm-video-cut-play-icon {\n width: 30px;\n height: 30px;\n display: inline-block;\n position: relative;\n bottom: 20px;\n transform: scale(1);\n transition: all 0.2s ease-in-out;\n background: linear-gradient(45deg,#46be8a 0,#92d275 100%);\n border-radius: 100px;\n }\n \n .dnm-video-cut-play-icon svg {\n color: white;\n width: 12px;\n position: relative;\n }\n \n .dnm-video-cut-root.is-playing .dnm-video-cut-play-icon svg {\n left: 9px;\n top: 8px; \n }\n \n .dnm-video-cut-root.is-paused .dnm-video-cut-play-icon svg {\n left: 10px;\n top: 8px;\n }\n \n .dnm-video-cut-play-icon:hover {\n cursor: pointer;\n transform: scale(1.2);\n box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.2);\n }\n\n .clearfix::after {\n content: \"\";\n clear: both;\n display: table;\n }\n\n .dnm-video-cut-tools {\n margin-top: 5px;\n }\n\n .dnm-video-cut-zoom-icon {\n width: 17px;\n }\n \n .dnm-video-cut-zoom {\n float: right;\n width: 30%;\n max-width: 200px;\n display: inline-block;\n }\n\n .dnm-video-cut-zoom-icon {\n width: 18px;\n display: inline-block;\n margin-left: 10px;\n }\n\n .dnm-video-cut-zoom-range {\n width: calc(100% - 28px);\n display: inline-block;\n }\n\n .dnm-video-cut-zoom-icon svg {\n color: rgb(168, 173, 181);\n }\n\n .dnm-video-cut-mute {\n display: inline-block;\n float: left;\n }\n\n .dnm-video-cut-checkbox-container {\n display: block;\n position: relative;\n padding-left: 35px;\n padding-top: 3px;\n margin-bottom: 12px;\n cursor: pointer;\n font-size: 18px;\n color: rgb(158 162 169);\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .dnm-video-cut-checkbox-container input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n }\n\n .dnm-video-cut-checkmark {\n position: absolute;\n top: 0;\n left: 0;\n height: 25px;\n width: 25px;\n background-color: rgb(229, 233, 240);\n border-radius: 5px;\n }\n\n .dnm-video-cut-checkbox-container:hover input ~ .dnm-video-cut-checkmark {\n background-color: rgb(197, 203, 212);\n }\n\n .dnm-video-cut-checkbox-container input:checked ~ .dnm-video-cut-checkmark {\n background-color: #92d275;\n }\n\n .dnm-video-cut-checkmark:after {\n content: \"\";\n position: absolute;\n display: none;\n }\n\n .dnm-video-cut-checkbox-container input:checked ~ .dnm-video-cut-checkmark:after {\n display: block;\n }\n\n .dnm-video-cut-checkbox-container .dnm-video-cut-checkmark:after {\n left: 9px;\n top: 5px;\n width: 5px;\n height: 10px;\n border: solid white;\n border-width: 0 3px 3px 0;\n -webkit-transform: rotate(45deg);\n -ms-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n"]); + var data = _taggedTemplateLiteral(["\n .rc-slider {\n position: relative;\n height: 14px;\n padding: 5px 0;\n width: 100%;\n border-radius: 6px;\n -ms-touch-action: none;\n touch-action: none;\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n }\n .rc-slider * {\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n }\n .rc-slider-rail {\n position: absolute;\n width: 100%;\n background-color: #e9e9e9;\n height: 4px;\n border-radius: 6px;\n }\n .rc-slider-track {\n position: absolute;\n left: 0;\n height: 4px;\n border-radius: 6px;\n background: linear-gradient(45deg,#46be8a 0,#92d275 100%);\n }\n .rc-slider-handle {\n position: absolute;\n width: 14px;\n height: 14px;\n cursor: pointer;\n cursor: -webkit-grab;\n margin-top: -5px;\n cursor: grab;\n border-radius: 50%;\n border: solid 2px #46be8a;\n background-color: #fff;\n -ms-touch-action: pan-x;\n touch-action: pan-x;\n }\n .rc-slider-handle-dragging.rc-slider-handle-dragging.rc-slider-handle-dragging {\n border-color: #92d275;\n box-shadow: 0 0 0 5px #92d275;\n }\n .rc-slider-handle:focus {\n outline: none;\n }\n .rc-slider-handle-click-focused:focus {\n border-color: #46be8a;\n box-shadow: unset;\n }\n .rc-slider-handle:hover {\n border-color: #92d275;\n }\n .rc-slider-handle:active {\n border-color: #92d275;\n box-shadow: 0 0 5px #92d275;\n cursor: -webkit-grabbing;\n cursor: grabbing;\n }\n .rc-slider-mark {\n position: absolute;\n top: 18px;\n left: 0;\n width: 100%;\n font-size: 12px;\n }\n .rc-slider-mark-text {\n position: absolute;\n display: inline-block;\n vertical-align: middle;\n text-align: center;\n cursor: pointer;\n color: #999;\n }\n .rc-slider-mark-text-active {\n color: #666;\n }\n .rc-slider-step {\n position: absolute;\n width: 100%;\n height: 4px;\n background: transparent;\n }\n .rc-slider-dot {\n position: absolute;\n bottom: -2px;\n margin-left: -4px;\n width: 8px;\n height: 8px;\n border: 2px solid #e9e9e9;\n background-color: #fff;\n cursor: pointer;\n border-radius: 50%;\n vertical-align: middle;\n }\n .rc-slider-dot-active {\n border-color: #46be8a;\n }\n .rc-slider-dot-reverse {\n margin-left: 0;\n margin-right: -4px;\n }\n .rc-slider-disabled {\n background-color: #e9e9e9;\n }\n .rc-slider-disabled .rc-slider-track {\n background-color: rgb(197, 203, 212);\n }\n .rc-slider-disabled .rc-slider-handle,\n .rc-slider-disabled .rc-slider-dot {\n border-color: rgb(197, 203, 212);\n box-shadow: none;\n background-color: #fff;\n cursor: not-allowed;\n }\n .rc-slider-disabled .rc-slider-mark-text,\n .rc-slider-disabled .rc-slider-dot {\n cursor: not-allowed !important;\n }\n .rc-slider-vertical {\n width: 14px;\n height: 100%;\n padding: 0 5px;\n }\n .rc-slider-vertical .rc-slider-rail {\n height: 100%;\n width: 4px;\n }\n .rc-slider-vertical .rc-slider-track {\n left: 5px;\n bottom: 0;\n width: 4px;\n }\n .rc-slider-vertical .rc-slider-handle {\n margin-left: -5px;\n -ms-touch-action: pan-y;\n touch-action: pan-y;\n }\n .rc-slider-vertical .rc-slider-mark {\n top: 0;\n left: 18px;\n height: 100%;\n }\n .rc-slider-vertical .rc-slider-step {\n height: 100%;\n width: 4px;\n }\n .rc-slider-vertical .rc-slider-dot {\n left: 2px;\n margin-bottom: -4px;\n }\n .rc-slider-vertical .rc-slider-dot:first-of-type {\n margin-bottom: -4px;\n }\n .rc-slider-vertical .rc-slider-dot:last-of-type {\n margin-bottom: -4px;\n }\n .rc-slider-tooltip-zoom-down-enter,\n .rc-slider-tooltip-zoom-down-appear {\n animation-duration: 0.3s;\n animation-fill-mode: both;\n display: block !important;\n animation-play-state: paused;\n }\n .rc-slider-tooltip-zoom-down-leave {\n animation-duration: 0.3s;\n animation-fill-mode: both;\n display: block !important;\n animation-play-state: paused;\n }\n .rc-slider-tooltip-zoom-down-enter.rc-slider-tooltip-zoom-down-enter-active,\n .rc-slider-tooltip-zoom-down-appear.rc-slider-tooltip-zoom-down-appear-active {\n animation-name: rcSliderTooltipZoomDownIn;\n animation-play-state: running;\n }\n .rc-slider-tooltip-zoom-down-leave.rc-slider-tooltip-zoom-down-leave-active {\n animation-name: rcSliderTooltipZoomDownOut;\n animation-play-state: running;\n }\n .rc-slider-tooltip-zoom-down-enter,\n .rc-slider-tooltip-zoom-down-appear {\n transform: scale(0, 0);\n animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\n }\n .rc-slider-tooltip-zoom-down-leave {\n animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n }\n @keyframes rcSliderTooltipZoomDownIn {\n 0% {\n opacity: 0;\n transform-origin: 50% 100%;\n transform: scale(0, 0);\n }\n 100% {\n transform-origin: 50% 100%;\n transform: scale(1, 1);\n }\n }\n @keyframes rcSliderTooltipZoomDownOut {\n 0% {\n transform-origin: 50% 100%;\n transform: scale(1, 1);\n }\n 100% {\n opacity: 0;\n transform-origin: 50% 100%;\n transform: scale(0, 0);\n }\n }\n .rc-slider-tooltip {\n position: absolute;\n left: -9999px;\n top: -9999px;\n visibility: visible;\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n }\n .rc-slider-tooltip * {\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n }\n .rc-slider-tooltip-hidden {\n display: none;\n }\n .rc-slider-tooltip-placement-top {\n padding: 4px 0 8px 0;\n }\n .rc-slider-tooltip-inner {\n padding: 6px 2px;\n min-width: 24px;\n height: 24px;\n font-size: 12px;\n line-height: 1;\n color: #fff;\n text-align: center;\n text-decoration: none;\n background-color: #6c6c6c;\n border-radius: 6px;\n box-shadow: 0 0 4px #d9d9d9;\n }\n .rc-slider-tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n }\n .rc-slider-tooltip-placement-top .rc-slider-tooltip-arrow {\n bottom: 4px;\n left: 50%;\n margin-left: -4px;\n border-width: 4px 4px 0;\n border-top-color: #6c6c6c;\n }\n \n .dnm-video-cut-player {\n opacity: 1;\n width: 100%;\n max-height: 60vh;\n transition: all 0.2s ease-in-out;\n }\n \n .dnm-video-cut-range {\n width: 100%;\n position: relative;\n bottom: 17px;\n }\n \n .dnm-video-cut-playing-cursor {\n height: 20px;\n width: 10px;\n background-color: white;\n border-radius: 10px;\n margin-top: -3px;\n box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.5);\n }\n \n .dnm-video-cut-playing-cursor-draggable-item {\n width: 10px;\n z-index: 2;\n position: relative;\n }\n \n .dnm-video-cut-playing-cursor-draggable-item:hover {\n cursor: grab;\n }\n \n .dnm-video-cut-playing-cursor-draggable-item:active {\n cursor: -webkit-grabbing;\n cursor: grabbing;\n }\n \n .dnm-video-cut-playing-cursor {\n transform: scale(1);\n transition: all 0.2s ease-in-out;\n }\n \n .dnm-video-cut-playing-cursor:hover {\n transform: scale(1.3);\n }\n\n .dnm-video-cut-progress-scrollable-parent {\n width: calc(100% - 45px);\n display: inline-block;\n margin-left: 15px;\n margin-top: 5px;\n padding-top: 10px;\n overflow-x: scroll;\n }\n\n .dnm-video-cut-progress-container {\n width: calc(500% - 20px);\n margin-left: 10px;\n padding-right: 10px;\n height: 28px;\n }\n \n .dnm-video-cut-play-icon {\n width: 30px;\n height: 30px;\n display: inline-block;\n position: relative;\n bottom: 20px;\n transform: scale(1);\n transition: all 0.2s ease-in-out;\n background: linear-gradient(45deg,#46be8a 0,#92d275 100%);\n border-radius: 100px;\n }\n \n .dnm-video-cut-play-icon svg {\n color: white;\n width: 12px;\n position: relative;\n }\n \n .dnm-video-cut-root.is-playing .dnm-video-cut-play-icon svg {\n left: 9px;\n top: 8px; \n }\n \n .dnm-video-cut-root.is-paused .dnm-video-cut-play-icon svg {\n left: 10px;\n top: 8px;\n }\n \n .dnm-video-cut-play-icon:hover {\n cursor: pointer;\n transform: scale(1.2);\n box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.2);\n }\n\n .clearfix::after {\n content: \"\";\n clear: both;\n display: table;\n }\n\n .dnm-video-cut-tools {\n margin-top: 5px;\n }\n\n .dnm-video-cut-zoom-icon {\n width: 17px;\n }\n \n .dnm-video-cut-zoom {\n float: right;\n width: 30%;\n max-width: 200px;\n display: inline-block;\n }\n\n .dnm-video-cut-zoom-icon {\n width: 18px;\n display: inline-block;\n margin-left: 10px;\n }\n\n .dnm-video-cut-zoom-range {\n width: calc(100% - 28px);\n display: inline-block;\n }\n\n .dnm-video-cut-zoom-icon svg {\n color: rgb(168, 173, 181);\n }\n\n .dnm-video-cut-mute {\n display: inline-block;\n float: left;\n }\n\n .dnm-video-cut-checkbox-container {\n display: block;\n position: relative;\n padding-left: 35px;\n padding-top: 3px;\n margin-bottom: 12px;\n cursor: pointer;\n font-size: 18px;\n color: rgb(158 162 169);\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .dnm-video-cut-checkbox-container input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n }\n\n .dnm-video-cut-checkmark {\n position: absolute;\n top: 0;\n left: 0;\n height: 25px;\n width: 25px;\n background-color: rgb(229, 233, 240);\n border-radius: 5px;\n }\n\n .dnm-video-cut-checkbox-container:hover input ~ .dnm-video-cut-checkmark {\n background-color: rgb(197, 203, 212);\n }\n\n .dnm-video-cut-checkbox-container input:checked ~ .dnm-video-cut-checkmark {\n background-color: #92d275;\n }\n\n .dnm-video-cut-checkmark:after {\n content: \"\";\n position: absolute;\n display: none;\n }\n\n .dnm-video-cut-checkbox-container input:checked ~ .dnm-video-cut-checkmark:after {\n display: block;\n }\n\n .dnm-video-cut-checkbox-container .dnm-video-cut-checkmark:after {\n left: 9px;\n top: 5px;\n width: 5px;\n height: 10px;\n border: solid white;\n border-width: 0 3px 3px 0;\n -webkit-transform: rotate(45deg);\n -ms-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n"]); _templateObject = function _templateObject() { return data; @@ -29842,13 +29842,16 @@ _defineProperty(_assertThisInitialized(_this), "handleContainerMouseDown", function (ev) { ev.stopPropagation(); var target = ev.target; + var _this$state3 = _this.state, + rangeDisabled = _this$state3.rangeDisabled, + forceCursorDragging = _this$state3.forceCursorDragging; if (!target.classList.contains("rc-slider-handle") && !target.classList.contains("dnm-video-cut-playing-cursor")) { - _this.setState({ + if (!rangeDisabled || !forceCursorDragging) _this.setState({ rangeDisabled: true, forceCursorDragging: true }); - } else _this.setState({ + } else if (rangeDisabled || forceCursorDragging) _this.setState({ rangeDisabled: false, forceCursorDragging: false }); @@ -29883,7 +29886,7 @@ _this.scrollable = React__default.createRef(); _this.draggable = React__default.createRef(); _this.draggableApi = null; - _this.seekVideoTo = throttle$1(_this._seekVideoTo, 50); + _this.seekVideoTo = throttle$1(_this._seekVideoTo, 20); return _this; } @@ -29895,9 +29898,9 @@ }, { key: "componentDidUpdate", value: function componentDidUpdate(prevProps, prevState) { - var _this$state3 = this.state, - videoDuration = _this$state3.videoDuration, - isEditing = _this$state3.isEditing; + var _this$state4 = this.state, + videoDuration = _this$state4.videoDuration, + isEditing = _this$state4.isEditing; var _this$props3 = this.props, inPoint = _this$props3.inPoint, outPoint = _this$props3.outPoint, @@ -29943,13 +29946,12 @@ inValue = _this$getFormatedValu3.inValue, outValue = _this$getFormatedValu3.outValue; - var _this$state4 = this.state, - videoDuration = _this$state4.videoDuration, - isEditing = _this$state4.isEditing, - playCursorPosition = _this$state4.playCursorPosition, - isPlaying = _this$state4.isPlaying, - forceCursorDragging = _this$state4.forceCursorDragging, - zoomFactor = _this$state4.zoomFactor; + var _this$state5 = this.state, + videoDuration = _this$state5.videoDuration, + playCursorPosition = _this$state5.playCursorPosition, + isPlaying = _this$state5.isPlaying, + forceCursorDragging = _this$state5.forceCursorDragging, + zoomFactor = _this$state5.zoomFactor; var _this$props4 = this.props, src = _this$props4.src, catalogue = _this$props4.catalogue, @@ -29960,7 +29962,7 @@ return jsx("div", { css: css(_templateObject$1(), styles) }, jsx("div", { - className: "dnm-video-cut-root ".concat(classes.root || "", " ").concat(isEditing ? "is-editing" : "", " ").concat(isPlaying ? "is-playing" : "is-paused") + className: "dnm-video-cut-root ".concat(classes.root || "", " ").concat(isPlaying ? "is-playing" : "is-paused") }, jsx("video", { className: "dnm-video-cut-player ".concat(classes.player || ""), src: "".concat(src), @@ -29970,7 +29972,8 @@ controls: false, onLoadedData: this.handleLoadedData, onLoad: this.handleVideoLoad, - onError: this.handleVideoPlayerError + onError: this.handleVideoPlayerError, + preload: "auto" }), jsx("div", null, jsx("div", { className: "dnm-video-cut-play-icon", onClick: this.handleFreePlayClick @@ -29982,7 +29985,7 @@ style: { width: "calc(".concat(zoomFactor[0] + 100, "% - 20px)") }, - onTouchStart: this.handleContainerMouseDown, + onTouchMove: this.handleContainerMouseDown, onTouchEnd: this.handleContainerMouseUp, onMouseDown: this.handleContainerMouseDown, onMouseUp: this.handleContainerMouseUp diff --git a/dist/dnm-react-video-cut.umd.min.js b/dist/dnm-react-video-cut.umd.min.js index 73ecaa7..6b8b2e3 100644 --- a/dist/dnm-react-video-cut.umd.min.js +++ b/dist/dnm-react-video-cut.umd.min.js @@ -19,7 +19,7 @@ var zo=Object.getOwnPropertySymbols,Ho=Object.prototype.hasOwnProperty,$o=Object Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ -!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r0,"`Slider[step]` should be a positive number in order to make Slider[dots] work.");var a=Object.keys(t).map(parseFloat).sort((function(e,t){return e-t}));if(n&&r)for(var u=o;u<=i;u+=r)-1===a.indexOf(u)&&a.push(u);return a}(0,i,a,u,p,f).map((function(e){var i,a=Math.abs(e-p)/v*100+"%",u=!s&&e===l||s&&e<=l&&e>=c,f=In({},d,Ao({},n?o?"top":"bottom":o?"right":"left",a));u&&(f=In({},f,h));var y=Zo((Ao(i={},t+"-dot",!0),Ao(i,t+"-dot-active",u),Ao(i,t+"-dot-reverse",o),i));return r.createElement("span",{className:y,style:f,key:e})}));return r.createElement("div",{className:t+"-step"},y)};Jo.propTypes={prefixCls:n.string,activeDotStyle:n.object,dotStyle:n.object,min:n.number,max:n.number,upperBound:n.number,lowerBound:n.number,included:n.bool,dots:n.bool,step:n.number,marks:n.object,vertical:n.bool,reverse:n.bool};var Qo=function(e){var t=e.className,n=e.vertical,o=e.reverse,i=e.marks,a=e.included,u=e.upperBound,s=e.lowerBound,c=e.max,l=e.min,f=e.onClickLabel,p=Object.keys(i),d=c-l,h=p.map(parseFloat).sort((function(e,t){return e-t})).map((function(e){var c,p=i[e],h="object"==typeof p&&!r.isValidElement(p),v=h?p.label:p;if(!v&&0!==v)return null;var y=!a&&e===u||a&&e<=u&&e>=s,m=Zo((Ao(c={},t+"-text",!0),Ao(c,t+"-text-active",y),c)),g=Ao({marginBottom:"-50%"},o?"top":"bottom",(e-l)/d*100+"%"),b=Ao({transform:"translateX(-50%)",msTransform:"translateX(-50%)"},o?"right":"left",o?(e-l/4)/d*100+"%":(e-l)/d*100+"%"),_=n?g:b,w=h?In({},_,p.style):_;return r.createElement("span",{className:m,style:w,key:e,onMouseDown:function(t){return f(t,e)},onTouchStart:function(t){return f(t,e)}},v)}));return r.createElement("div",{className:t},h)};Qo.propTypes={className:n.string,vertical:n.bool,reverse:n.bool,marks:n.object,included:n.bool,upperBound:n.number,lowerBound:n.number,max:n.number,min:n.number,onClickLabel:n.func};var ei=function(e){function t(){var e,n,r;Fn(this,t);for(var o=arguments.length,i=Array(o),a=0;a1?arguments[1]:void 0,c=void 0!==s,l=0,f=ci(i);if(c&&(s=Bt(s,u>2?arguments[2]:void 0,2)),null==f||a==Array&&oi(f))for(n=new a(t=yn(i.length));t>l;l++)ii(n,l,c?s(i[l],l):i[l]);else for(o=f.call(i),n=new a;!(r=o.next()).done;l++)ii(n,l,c?ti(o,s,[r.value,l],!0):r.value);return n.length=l,n}});var di=Vt.Array.from,hi=Ee((function(e){e.exports={default:di,__esModule:!0}}));xe(hi);var vi=xe(Ee((function(e,t){t.__esModule=!0;var n,r=(n=hi)&&n.__esModule?n:{default:n};t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=yi.F1&&t<=yi.F12)return!1;switch(t){case yi.ALT:case yi.CAPS_LOCK:case yi.CONTEXT_MENU:case yi.CTRL:case yi.DOWN:case yi.END:case yi.ESC:case yi.HOME:case yi.INSERT:case yi.LEFT:case yi.MAC_FF_META:case yi.META:case yi.NUMLOCK:case yi.NUM_CENTER:case yi.PAGE_DOWN:case yi.PAGE_UP:case yi.PAUSE:case yi.PRINT_SCREEN:case yi.RIGHT:case yi.SHIFT:case yi.UP:case yi.WIN_KEY:case yi.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=yi.ZERO&&e<=yi.NINE)return!0;if(e>=yi.NUM_ZERO&&e<=yi.NUM_MULTIPLY)return!0;if(e>=yi.A&&e<=yi.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case yi.SPACE:case yi.QUESTION_MARK:case yi.NUM_PLUS:case yi.NUM_MINUS:case yi.NUM_PERIOD:case yi.NUM_DIVISION:case yi.SEMICOLON:case yi.DASH:case yi.EQUALS:case yi.COMMA:case yi.PERIOD:case yi.SLASH:case yi.APOSTROPHE:case yi.SINGLE_QUOTE:case yi.OPEN_SQUARE_BRACKET:case yi.BACKSLASH:case yi.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};function mi(e,n){try{return Object.keys(n).some((function(r){return e.target===t.findDOMNode(n[r])}))}catch(e){return!1}}function gi(e,t){var n=t.min,r=t.max;return er}function bi(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function _i(e,t){var n=t.marks,r=t.step,o=t.min,i=t.max,a=Object.keys(n).map(parseFloat);if(null!==r){var u=Math.floor((i-o)/r),s=Math.min((e-o)/r,u),c=Math.round(s)*r+o;a.push(c)}var l=a.map((function(t){return Math.abs(e-t)}));return a[l.indexOf(Math.min.apply(Math,vi(l)))]}function wi(e,t){return e?t.clientY:t.pageX}function Oi(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function xi(e,t){var n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.pageXOffset+n.left+.5*n.width}function Ei(e,t){var n=t.max,r=t.min;return e<=r?r:e>=n?n:e}function Si(e,t){var n=t.step,r=isFinite(_i(e,t))?_i(e,t):0;return null===n?r:parseFloat(r.toFixed(function(e){var t=e.toString(),n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}(n)))}function ki(e){e.stopPropagation(),e.preventDefault()}function ji(e,t,n){var r="increase",o="decrease",i=r;switch(e.keyCode){case yi.UP:i=t&&n?o:r;break;case yi.RIGHT:i=!t&&n?o:r;break;case yi.DOWN:i=t&&n?r:o;break;case yi.LEFT:i=!t&&n?r:o;break;case yi.END:return function(e,t){return t.max};case yi.HOME:return function(e,t){return t.min};case yi.PAGE_UP:return function(e,t){return e+2*t.step};case yi.PAGE_DOWN:return function(e,t){return e-2*t.step};default:return}return function(e,t){return function(e,t,n){var r={increase:function(e,t){return e+t},decrease:function(e,t){return e-t}},o=r[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),i=Object.keys(n.marks)[o];return n.step?r[e](t,n.step):Object.keys(n.marks).length&&n.marks[i]?n.marks[i]:t}(i,e,t)}}function Ci(){}function Mi(e){var t,o;return o=t=function(e){function t(e){Fn(this,t);var n=bo(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.onMouseDown=function(e){if(0===e.button){var t=n.props.vertical,r=wi(t,e);if(mi(e,n.handlesRefs)){var o=xi(t,e.target);n.dragOffset=r-o,r=o}else n.dragOffset=0;n.removeDocumentEvents(),n.onStart(r),n.addDocumentMouseEvents()}},n.onTouchStart=function(e){if(!bi(e)){var t=n.props.vertical,r=Oi(t,e);if(mi(e,n.handlesRefs)){var o=xi(t,e.target);n.dragOffset=r-o,r=o}else n.dragOffset=0;n.onStart(r),n.addDocumentTouchEvents(),ki(e)}},n.onFocus=function(e){var t=n.props,r=t.onFocus,o=t.vertical;if(mi(e,n.handlesRefs)){var i=xi(o,e.target);n.dragOffset=0,n.onStart(i),ki(e),r&&r(e)}},n.onBlur=function(e){var t=n.props.onBlur;n.onEnd(),t&&t(e)},n.onMouseUp=function(){n.handlesRefs[n.prevMovedHandleIndex]&&n.handlesRefs[n.prevMovedHandleIndex].clickFocus()},n.onMouseMove=function(e){if(n.sliderRef){var t=wi(n.props.vertical,e);n.onMove(e,t-n.dragOffset)}else n.onEnd()},n.onTouchMove=function(e){if(!bi(e)&&n.sliderRef){var t=Oi(n.props.vertical,e);n.onMove(e,t-n.dragOffset)}else n.onEnd()},n.onKeyDown=function(e){n.sliderRef&&mi(e,n.handlesRefs)&&n.onKeyboard(e)},n.onClickMarkLabel=function(e,t){e.stopPropagation(),n.onChange({value:t}),n.setState({value:t},(function(){return n.onEnd(!0)}))},n.saveSlider=function(e){n.sliderRef=e};var r=e.step,o=e.max,i=e.min,a=!isFinite(o-i)||(o-i)%r==0;return Po(!r||Math.floor(r)!==r||a,"Slider[max] - Slider[min] (%s) should be a multiple of Slider[step] (%s)",o-i,r),n.handlesRefs={},n}return jo(t,e),Un(t,[{key:"componentDidMount",value:function(){this.document=this.sliderRef&&this.sliderRef.ownerDocument;var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()}},{key:"componentWillUnmount",value:function(){Bo(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"componentWillUnmount",this)&&Bo(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"componentWillUnmount",this).call(this),this.removeDocumentEvents()}},{key:"getSliderStart",value:function(){var e=this.sliderRef,t=this.props,n=t.vertical,r=t.reverse,o=e.getBoundingClientRect();return n?r?o.bottom:o.top:window.pageXOffset+(r?o.right:o.left)}},{key:"getSliderLength",value:function(){var e=this.sliderRef;if(!e)return 0;var t=e.getBoundingClientRect();return this.props.vertical?t.height:t.width}},{key:"addDocumentTouchEvents",value:function(){this.onTouchMoveListener=Go(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=Go(this.document,"touchend",this.onEnd)}},{key:"addDocumentMouseEvents",value:function(){this.onMouseMoveListener=Go(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=Go(this.document,"mouseup",this.onEnd)}},{key:"removeDocumentEvents",value:function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"focus",value:function(){this.props.disabled||this.handlesRefs[0].focus()}},{key:"blur",value:function(){var e=this;this.props.disabled||Object.keys(this.handlesRefs).forEach((function(t){e.handlesRefs[t]&&e.handlesRefs[t].blur&&e.handlesRefs[t].blur()}))}},{key:"calcValue",value:function(e){var t=this.props,n=t.vertical,r=t.min,o=t.max,i=Math.abs(Math.max(e,0)/this.getSliderLength());return n?(1-i)*(o-r)+r:i*(o-r)+r}},{key:"calcValueByPos",value:function(e){var t=(this.props.reverse?-1:1)*(e-this.getSliderStart());return this.trimAlignValue(this.calcValue(t))}},{key:"calcOffset",value:function(e){var t=this.props,n=t.min;return 100*((e-n)/(t.max-n))}},{key:"saveHandle",value:function(e,t){this.handlesRefs[e]=t}},{key:"render",value:function(){var e,n=this.props,o=n.prefixCls,i=n.className,a=n.marks,u=n.dots,s=n.step,c=n.included,l=n.disabled,f=n.vertical,p=n.reverse,d=n.min,h=n.max,v=n.children,y=n.maximumTrackStyle,m=n.style,g=n.railStyle,b=n.dotStyle,_=n.activeDotStyle,w=Bo(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"render",this).call(this),O=w.tracks,x=w.handles,E=Zo(o,(Ao(e={},o+"-with-marks",Object.keys(a).length),Ao(e,o+"-disabled",l),Ao(e,o+"-vertical",f),Ao(e,i,i),e));return r.createElement("div",{ref:this.saveSlider,className:E,onTouchStart:l?Ci:this.onTouchStart,onMouseDown:l?Ci:this.onMouseDown,onMouseUp:l?Ci:this.onMouseUp,onKeyDown:l?Ci:this.onKeyDown,onFocus:l?Ci:this.onFocus,onBlur:l?Ci:this.onBlur,style:m},r.createElement("div",{className:o+"-rail",style:In({},y,g)}),O,r.createElement(Jo,{prefixCls:o,vertical:f,reverse:p,marks:a,dots:u,step:s,included:c,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:h,min:d,dotStyle:b,activeDotStyle:_}),x,r.createElement(Qo,{className:o+"-mark",onClickLabel:l?Ci:this.onClickMarkLabel,vertical:f,marks:a,included:c,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:h,min:d,reverse:p}),v)}}]),t}(e),t.displayName="ComponentEnhancer("+e.displayName+")",t.propTypes=In({},e.propTypes,{min:n.number,max:n.number,startPoint:n.number,step:n.number,marks:n.object,included:n.bool,className:n.string,prefixCls:n.string,disabled:n.bool,children:n.any,onBeforeChange:n.func,onChange:n.func,onAfterChange:n.func,handle:n.func,dots:n.bool,vertical:n.bool,style:n.object,reverse:n.bool,minimumTrackStyle:n.object,maximumTrackStyle:n.object,handleStyle:n.oneOfType([n.object,n.arrayOf(n.object)]),trackStyle:n.oneOfType([n.object,n.arrayOf(n.object)]),railStyle:n.object,dotStyle:n.object,activeDotStyle:n.object,autoFocus:n.bool,onFocus:n.func,onBlur:n.func}),t.defaultProps=In({},e.defaultProps,{prefixCls:"rc-slider",className:"",min:0,max:100,step:1,marks:{},handle:function(e){var t=e.index,n=Do(e,["index"]);return delete n.dragging,null===n.value?null:r.createElement(ei,In({},n,{key:t}))},onBeforeChange:Ci,onChange:Ci,onAfterChange:Ci,included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),o}var Pi=function(e){function t(e){Fn(this,t);var n=bo(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.onEnd=function(e){var t=n.state.dragging;n.removeDocumentEvents(),(t||e)&&n.props.onAfterChange(n.getValue()),n.setState({dragging:!1})};var r=void 0!==e.defaultValue?e.defaultValue:e.min,o=void 0!==e.value?e.value:r;return n.state={value:n.trimAlignValue(o),dragging:!1},Po(!("minimumTrackStyle"in e),"minimumTrackStyle will be deprecated, please use trackStyle instead."),Po(!("maximumTrackStyle"in e),"maximumTrackStyle will be deprecated, please use railStyle instead."),n}return jo(t,e),Un(t,[{key:"componentDidUpdate",value:function(e,t){if("value"in this.props||"min"in this.props||"max"in this.props){var n=this.props,r=n.value,o=n.onChange,i=void 0!==r?r:t.value,a=this.trimAlignValue(i,this.props);a!==t.value&&(this.setState({value:a}),gi(i,this.props)&&o(a))}}},{key:"onChange",value:function(e){var t=this.props,n=!("value"in t),r=e.value>this.props.max?In({},e,{value:this.props.max}):e;n&&this.setState(r);var o=r.value;t.onChange(o)}},{key:"onStart",value:function(e){this.setState({dragging:!0});var t=this.props,n=this.getValue();t.onBeforeChange(n);var r=this.calcValueByPos(e);this.startValue=r,this.startPosition=e,r!==n&&(this.prevMovedHandleIndex=0,this.onChange({value:r}))}},{key:"onMove",value:function(e,t){ki(e);var n=this.state.value,r=this.calcValueByPos(t);r!==n&&this.onChange({value:r})}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,r=ji(e,t.vertical,n);if(r){ki(e);var o=this.state.value,i=r(o,this.props),a=this.trimAlignValue(i);if(a===o)return;this.onChange({value:a}),this.props.onAfterChange(a),this.onEnd()}}},{key:"getValue",value:function(){return this.state.value}},{key:"getLowerBound",value:function(){return this.props.min}},{key:"getUpperBound",value:function(){return this.state.value}},{key:"trimAlignValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return null;var n=In({},this.props,t),r=Ei(e,n);return Si(r,n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,o=t.vertical,i=t.included,a=t.disabled,u=t.minimumTrackStyle,s=t.trackStyle,c=t.handleStyle,l=t.tabIndex,f=t.ariaLabelForHandle,p=t.ariaLabelledByForHandle,d=t.ariaValueTextFormatterForHandle,h=t.min,v=t.max,y=t.startPoint,m=t.reverse,g=t.handle,b=this.state,_=b.value,w=b.dragging,O=this.calcOffset(_),x=g({className:n+"-handle",prefixCls:n,vertical:o,offset:O,value:_,dragging:w,disabled:a,min:h,max:v,reverse:m,index:0,tabIndex:l,ariaLabel:f,ariaLabelledBy:p,ariaValueTextFormatter:d,style:c[0]||c,ref:function(t){return e.saveHandle(0,t)}}),E=void 0!==y?this.calcOffset(y):0,S=s[0]||s;return{tracks:r.createElement(To,{className:n+"-track",vertical:o,included:i,offset:E,reverse:m,length:O-E,style:In({},u,S)}),handles:x}}}]),t}(r.Component);Pi.propTypes={defaultValue:n.number,value:n.number,disabled:n.bool,autoFocus:n.bool,tabIndex:n.number,reverse:n.bool,min:n.number,max:n.number,startPoint:n.number,ariaLabelForHandle:n.string,ariaLabelledByForHandle:n.string,ariaValueTextFormatterForHandle:n.func};var Ai=Mi(Pi),Ti=function(e){var t=e.value,n=e.handle,r=e.bounds,o=e.props,i=o.allowCross,a=o.pushable,u=Number(a),s=Ei(t,o),c=s;return i||null==n||void 0===r||(n>0&&s<=r[n-1]+u&&(c=r[n-1]+u),n=r[n+1]-u&&(c=r[n+1]-u)),Si(c,o)},Di=function(e){function t(e){Fn(this,t);var n=bo(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.onEnd=function(e){var t=n.state.handle;n.removeDocumentEvents(),(null!==t||e)&&n.props.onAfterChange(n.getValue()),n.setState({handle:null})};var r=e.count,o=e.min,i=e.max,a=Array.apply(void 0,vi(Array(r+1))).map((function(){return o})),u="defaultValue"in e?e.defaultValue:a,s=(void 0!==e.value?e.value:u).map((function(t,n){return Ti({value:t,handle:n,props:e})})),c=s[0]===i?0:s.length-1;return n.state={handle:null,recent:c,bounds:s},n}return jo(t,e),Un(t,[{key:"componentDidUpdate",value:function(e,t){var n=this;if(("value"in this.props||"min"in this.props||"max"in this.props)&&(this.props.min!==e.min||this.props.max!==e.max||!function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(t),s=0;s=t[r]&&(n=r);return Math.abs(t[n+1]-e)=r.length||o<0)return!1;var i=t+n,a=r[o],u=this.props.pushable,s=n*(e[i]-a);return!!this.pushHandle(e,i,n,u-s)&&(e[t]=a,!0)}},{key:"trimAlignValue",value:function(e){var t=this.state,n=t.handle,r=t.bounds;return Ti({value:e,handle:n,bounds:r,props:this.props})}},{key:"render",value:function(){var e=this,t=this.state,n=t.handle,o=t.bounds,i=this.props,a=i.prefixCls,u=i.vertical,s=i.included,c=i.disabled,l=i.min,f=i.max,p=i.reverse,d=i.handle,h=i.trackStyle,v=i.handleStyle,y=i.tabIndex,m=i.ariaLabelGroupForHandles,g=i.ariaLabelledByGroupForHandles,b=i.ariaValueTextFormatterGroupForHandles,_=o.map((function(t){return e.calcOffset(t)})),w=a+"-handle",O=o.map((function(t,r){var o,i=y[r]||0;(c||null===y[r])&&(i=null);var s=n===r;return d({className:Zo((o={},Ao(o,w,!0),Ao(o,w+"-"+(r+1),!0),Ao(o,w+"-dragging",s),o)),prefixCls:a,vertical:u,dragging:s,offset:_[r],value:t,index:r,tabIndex:i,min:l,max:f,reverse:p,disabled:c,style:v[r],ref:function(t){return e.saveHandle(r,t)},ariaLabel:m[r],ariaLabelledBy:g[r],ariaValueTextFormatter:b[r]})}));return{tracks:o.slice(0,-1).map((function(e,t){var n,o=t+1,i=Zo((Ao(n={},a+"-track",!0),Ao(n,a+"-track-"+o,!0),n));return r.createElement(To,{className:i,vertical:u,reverse:p,included:s,offset:_[o-1],length:_[o]-_[o-1],style:h[t],key:o})})),handles:O}}}],[{key:"getDerivedStateFromProps",value:function(e,t){if("value"in e||"min"in e||"max"in e){var n=(e.value||t.bounds).map((function(n,r){return Ti({value:n,handle:r,bounds:t.bounds,props:e})}));return n.length===t.bounds.length&&n.every((function(e,n){return e===t.bounds[n]}))?null:In({},t,{bounds:n})}return null}}]),t}(r.Component);Di.displayName="Range",Di.propTypes={autoFocus:n.bool,defaultValue:n.arrayOf(n.number),value:n.arrayOf(n.number),count:n.number,pushable:n.oneOfType([n.bool,n.number]),allowCross:n.bool,disabled:n.bool,reverse:n.bool,tabIndex:n.arrayOf(n.number),min:n.number,max:n.number,ariaLabelGroupForHandles:n.arrayOf(n.string),ariaLabelledByGroupForHandles:n.arrayOf(n.string),ariaValueTextFormatterGroupForHandles:n.arrayOf(n.func)},Di.defaultProps={count:1,allowCross:!0,pushable:!1,tabIndex:[],ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]};var Ni=Mi(Di);function Ri(e,t){for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}function Li(e){return e instanceof HTMLElement?e:o.findDOMNode(e)}function Ii(e){return(Ii="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})(e)}function Fi(e,t){"function"==typeof e?e(t):"object"===Ii(e)&&e&&"current"in e&&(e.current=t)}function Wi(){for(var e=arguments.length,t=new Array(e),n=0;n=0&&t.left>=0&&t.bottom>t.top&&t.right>t.left?t:null}function Ga(e){var t,n,r;if($a.isWindow(e)||9===e.nodeType){var o=$a.getWindow(e);t={left:$a.getWindowScrollLeft(o),top:$a.getWindowScrollTop(o)},n=$a.viewportWidth(o),r=$a.viewportHeight(o)}else t=$a.offset(e),n=$a.outerWidth(e),r=$a.outerHeight(e);return t.width=n,t.height=r,t}function Za(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,u=e.top;return"c"===n?u+=i/2:"b"===n&&(u+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:u}}function Ja(e,t,n,r,o){var i=Za(t,n[1]),a=Za(e,n[0]),u=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-u[0]+r[0]-o[0]),top:Math.round(e.top-u[1]+r[1]-o[1])}}function Qa(e,t,n){return e.leftn.right}function eu(e,t,n){return e.topn.bottom}function tu(e,t,n){var r=[];return $a.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function nu(e,t){return e[t]=-e[t],e}function ru(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function ou(e,t){e[0]=ru(e[0],t.width),e[1]=ru(e[1],t.height)}function iu(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,s=n.source||e;i=[].concat(i),a=[].concat(a),u=u||{};var c={},l=0,f=Xa(s),p=Ga(s);ou(i,p),ou(a,t);var d=Ja(p,t,o,i,a),h=$a.merge(p,d);if(f&&(u.adjustX||u.adjustY)&&r){if(u.adjustX&&Qa(d,p,f)){var v=tu(o,/[lr]/gi,{l:"r",r:"l"}),y=nu(i,0),m=nu(a,0);(function(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),$a.mix(o,i)}(d,p,f,c))}return h.width!==p.width&&$a.css(s,"width",$a.width(s)+h.width-p.width),h.height!==p.height&&$a.css(s,"height",$a.height(s)+h.height-p.height),$a.offset(s,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:c}}function au(e,t,n){var r=n.target||t;return iu(e,Ga(r),n,!function(e){var t=Xa(e),n=Ga(e);return!t||n.left+n.width<=t.left||n.top+n.height<=t.top||n.left>=t.right||n.top>=t.bottom}(r))}function uu(e,t,n){var r,o,i=$a.getDocument(e),a=i.defaultView||i.parentWindow,u=$a.getWindowScrollLeft(a),s=$a.getWindowScrollTop(a),c=$a.viewportWidth(a),l=$a.viewportHeight(a);r="pageX"in t?t.pageX:u+t.clientX,o="pageY"in t?t.pageY:s+t.clientY;var f=r>=0&&r<=u+c&&o>=0&&o<=s+l;return iu(e,{left:r,top:o,width:0,height:0},function(e){for(var t=1;t0},e.prototype.connect_=function(){cu&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),du?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){cu&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;pu.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),vu=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),ju="undefined"!=typeof WeakMap?new WeakMap:new su,Cu=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=hu.getInstance(),r=new ku(t,n,this);ju.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Cu.prototype[e]=function(){var t;return(t=ju.get(this))[e].apply(t,arguments)}}));var Mu=void 0!==lu.ResizeObserver?lu.ResizeObserver:Cu;function Pu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Au(e,t){var n=null,r=null;var o=new Mu((function(e){var o=Pu(e,1)[0].target.getBoundingClientRect(),i=o.width,a=o.height,u=Math.floor(i),s=Math.floor(a);n===u&&r===s||t({width:u,height:s}),n=u,r=s}));return e&&o.observe(e),function(){o.disconnect()}}function Tu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Du(e){return(Du="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})(e)}function Nu(e){return"function"!=typeof e?null:e()}function Ru(e){return"object"===Du(e)&&e?e:null}var Lu=r.forwardRef((function(e,t){var n=e.children,o=e.disabled,i=e.target,a=e.align,u=e.onAlign,s=e.monitorWindowResize,c=e.monitorBufferTime,l=void 0===c?0:c,f=r.useRef({}),p=r.useRef(),d=r.Children.only(n),h=r.useRef({});h.current.disabled=o,h.current.target=i,h.current.onAlign=u;var v=Tu(function(e,t){var n=r.useRef(!1),o=r.useRef(null);function i(){window.clearTimeout(o.current)}return[function r(a){if(n.current&&!0!==a)i(),o.current=window.setTimeout((function(){n.current=!1,r()}),t);else{if(!1===e())return;n.current=!0,i(),o.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,i()}]}((function(){var e=h.current,t=e.disabled,n=e.target;if(!t&&n){var r,o=p.current,i=Nu(n),s=Ru(n);f.current.element=i,f.current.point=s;var c=document.activeElement;return i?r=au(o,i,a):s&&(r=uu(o,s,a)),function(e,t){e!==document.activeElement&&Ri(t,e)&&e.focus()}(c,o),u&&u(o,r),!0}return!1}),l),2),y=v[0],m=v[1],g=r.useRef({cancel:function(){}}),b=r.useRef({cancel:function(){}});r.useEffect((function(){var e,t,n=Nu(i),r=Ru(i);p.current!==b.current.element&&(b.current.cancel(),b.current.element=p.current,b.current.cancel=Au(p.current,y)),f.current.element===n&&((e=f.current.point)===(t=r)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))||(y(),g.current.element!==n&&(g.current.cancel(),g.current.element=n,g.current.cancel=Au(n,y)))})),r.useEffect((function(){o?m():y()}),[o]);var _=r.useRef(null);return r.useEffect((function(){s?_.current||(_.current=Go(window,"resize",y)):_.current&&(_.current.remove(),_.current=null)}),[s]),r.useEffect((function(){return function(){g.current.cancel(),b.current.cancel(),_.current&&_.current.remove(),m()}}),[]),r.useImperativeHandle(t,(function(){return{forceAlign:function(){return y(!0)}}})),r.isValidElement(d)&&(d=r.cloneElement(d,{ref:Wi(d.ref,p)})),d}));function Iu(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function Fu(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function Wu(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}Lu.displayName="Align",Iu.__suppressDeprecationWarning=!0,Fu.__suppressDeprecationWarning=!0,Wu.__suppressDeprecationWarning=!0;var Vu=!("undefined"==typeof window||!window.document||!window.document.createElement);function Bu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}var Uu,zu,Hu,$u=(Uu=Vu,zu="undefined"!=typeof window?window:{},Hu={animationend:Bu("Animation","AnimationEnd"),transitionend:Bu("Transition","TransitionEnd")},Uu&&("AnimationEvent"in zu||delete Hu.animationend.animation,"TransitionEvent"in zu||delete Hu.transitionend.transition),Hu),Yu={};Vu&&(Yu=document.createElement("div").style);var qu={};function Ku(e){if(qu[e])return qu[e];var t=$u[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&(p=r.createElement("div",{className:"".concat(n,"-content")},u)),r.createElement("div",{ref:t,className:Zo(o,!i&&"".concat(e.hiddenClassName)),onMouseEnter:s,onMouseLeave:c,onMouseDown:l,onTouchStart:f,style:a},p)}));function as(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function us(e){return(us="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})(e)}function ss(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ls(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Vs=e.forwardRef((function(t,n){var o=t.overlayClassName,i=t.trigger,a=void 0===i?["hover"]:i,u=t.mouseEnterDelay,s=void 0===u?0:u,c=t.mouseLeaveDelay,l=void 0===c?.1:c,f=t.overlayStyle,p=t.prefixCls,d=void 0===p?"rc-tooltip":p,h=t.children,v=t.onVisibleChange,y=t.afterVisibleChange,m=t.transitionName,g=t.animation,b=t.placement,_=void 0===b?"right":b,w=t.align,O=void 0===w?{}:w,x=t.destroyTooltipOnHide,E=void 0!==x&&x,S=t.defaultVisible,k=t.getTooltipContainer,j=Ws(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer"]),C=e.useRef(null);e.useImperativeHandle(n,(function(){return C.current}));var M=function(e){for(var t=1;t0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var sl=ul(Ic),cl=/\{\n\/\* \[wrapped with (.+)\] \*/,ll=/,? & /;var fl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function pl(e){return function(){return e}}var dl=function(){try{var e=Nc(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),hl=ul(dl?function(e,t){return dl(e,"toString",{configurable:!0,enumerable:!1,value:pl(t),writable:!0})}:_c);function vl(e,t){for(var n=-1,r=null==e?0:e.length;++n-1}var _l=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function wl(e,t,n){var r=t+"";return hl(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(fl,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return vl(_l,(function(n){var r="_."+n[0];t&n[1]&&!bl(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(cl);return t?t[1].split(ll):[]}(r),n)))}function Ol(e,t,n,r,o,i,a,u,s,c){var l=8&t;t|=l?32:64,4&(t&=~(l?64:32))||(t&=-4);var f=[e,t,o,l?i:void 0,l?a:void 0,l?void 0:i,l?void 0:a,u,s,c],p=n.apply(void 0,f);return il(e)&&sl(p,f),p.placeholder=r,wl(p,e,t)}function xl(e){return e.placeholder}var El=/^(?:0|[1-9]\d*)$/;function Sl(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&El.test(e))&&e>-1&&e%1==0&&e1&&g.reverse(),l&&s-1&&e%1==0&&e<=9007199254740991}function Yl(e){return null!=e&&$l(e.length)&&!wc(e)}function ql(e,t,n){if(!lc(n))return!1;var r=typeof t;return!!("number"==r?Yl(n)&&Sl(t,n.length):"string"==r&&t in n)&&Fl(n[t],e)}function Kl(e){return Hl((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&ql(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1},Bf.prototype.set=function(e,t){var n=this.__data__,r=Wf(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var Uf=Nc($s,"Map");function zf(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Hf(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t0&&n(u)?t>1?op(u,t-1,n,r,o):tp(o,u):r||(o[o.length]=u)}return o}function ip(e){return(null==e?0:e.length)?op(e,1):[]}function ap(e){return hl(zl(e,void 0,ip),e+"")}var up=ap(ep),sp=bf(Object.getPrototypeOf,Object),cp=Function.prototype,lp=Object.prototype,fp=cp.toString,pp=lp.hasOwnProperty,dp=fp.call(Object);function hp(e){if(!ec(e)||"[object Object]"!=Qs(e))return!1;var t=sp(e);if(null===t)return!0;var n=pp.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&fp.call(n)==dp}function vp(e){if(!ec(e))return!1;var t=Qs(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!hp(e)}var yp=Hl((function(e,t){try{return Bc(e,void 0,t)}catch(e){return vp(e)?e:new Error(e)}}));function mp(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=bc(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var gp=Hl((function(e,t,n){var r=1;if(n.length){var o=Ml(n,xl(gp));r|=32}return Rl(e,r,t,n,o)}));gp.placeholder={};var bp=ap((function(e,t){return vl(t,(function(t){t=Zf(t),Il(e,t,gp(e[t],e))})),e})),_p=Hl((function(e,t,n){var r=3;if(n.length){var o=Ml(n,xl(_p));r|=32}return Rl(t,r,e,n,o)}));function wp(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:wp(e,t,n)}_p.placeholder={};var xp=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Ep(e){return xp.test(e)}var Sp="[\\ud800-\\udfff]",kp="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",jp="\\ud83c[\\udffb-\\udfff]",Cp="[^\\ud800-\\udfff]",Mp="(?:\\ud83c[\\udde6-\\uddff]){2}",Pp="[\\ud800-\\udbff][\\udc00-\\udfff]",Ap="(?:"+kp+"|"+jp+")"+"?",Tp="[\\ufe0e\\ufe0f]?",Dp=Tp+Ap+("(?:\\u200d(?:"+[Cp,Mp,Pp].join("|")+")"+Tp+Ap+")*"),Np="(?:"+[Cp+kp+"?",kp,Mp,Pp,Sp].join("|")+")",Rp=RegExp(jp+"(?="+jp+")|"+Np+Dp,"g");function Lp(e){return Ep(e)?function(e){return e.match(Rp)||[]}(e):function(e){return e.split("")}(e)}function Ip(e){return function(t){var n=Ep(t=Xf(t))?Lp(t):void 0,r=n?n[0]:t.charAt(0),o=n?Op(n,1).join(""):t.slice(1);return r[e]()+o}}var Fp=Ip("toUpperCase");function Wp(e){return Fp(Xf(e).toLowerCase())}function Vp(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o=t?e:t)),e}function jd(e){var t=this.__data__=new Bf(e);this.size=t.size}function Cd(e,t){return e&&Bl(t,xf(t),e)}jd.prototype.clear=function(){this.__data__=new Bf,this.size=0},jd.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},jd.prototype.get=function(e){return this.__data__.get(e)},jd.prototype.has=function(e){return this.__data__.has(e)},jd.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Bf){var r=n.__data__;if(!Uf||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hf(r)}return n.set(e,t),this.size=n.size,this};var Md="object"==typeof exports&&exports&&!exports.nodeType&&exports,Pd=Md&&"object"==typeof module&&module&&!module.nodeType&&module,Ad=Pd&&Pd.exports===Md?$s.Buffer:void 0,Td=Ad?Ad.allocUnsafe:void 0;function Dd(e,t){if(t)return e.slice();var n=e.length,r=Td?Td(n):new e.constructor(n);return e.copy(r),r}function Nd(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++nu))return!1;var c=i.get(e),l=i.get(t);if(c&&l)return c==t&&l==e;var f=-1,p=!0,d=2&n?new Oh:void 0;for(i.set(e,t),i.set(t,e);++f=t||n<0||f&&e-c>=i}function y(){var e=sv();if(v(e))return m(e);u=setTimeout(y,function(e){var n=t-(e-s);return f?lv(n,i-(e-c)):n}(e))}function m(e){return u=void 0,p&&r?d(e):(r=o=void 0,a)}function g(){var e=sv(),n=v(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return clearTimeout(u),u=setTimeout(y,t),d(s)}return void 0===u&&(u=setTimeout(y,t)),a}return t=yc(t)||0,lc(n)&&(l=!!n.leading,i=(f="maxWait"in n)?cv(yc(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),g.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=s=o=u=void 0},g.flush=function(){return void 0===u?a:m(sv())},g}var pv=Object.prototype,dv=pv.hasOwnProperty,hv=Hl((function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&ql(t[0],t[1],o)&&(r=1);++n=200&&(i=Eh,a=!1,t=new Oh(t));e:for(;++o":">",'"':""","'":"'"}),$v=/[&<>"']/g,Yv=RegExp($v.source);function qv(e){return(e=Xf(e))&&Yv.test(e)?e.replace($v,Hv):e}var Kv=/[\\^$.*+?()[\]{}|]/g,Xv=RegExp(Kv.source);function Gv(e,t){for(var n=-1,r=null==e?0:e.length;++n-1?o[i?t[a]:a]:void 0}}var ty=Math.max;function ny(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:bc(n);return o<0&&(o=ty(r+o,0)),yl(e,Kh(t),o)}var ry=ey(ny);function oy(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}var iy=Math.max,ay=Math.min;function uy(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=bc(n),o=n<0?iy(r+o,0):ay(o,r-1)),yl(e,Kh(t),o,!0)}var sy=ey(uy);function cy(e){return e&&e.length?e[0]:void 0}function ly(e,t){var n=-1,r=Yl(e)?Array(e.length):[];return tv(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function fy(e,t){return(oc(e)?rc:ly)(e,Kh(t))}var py=wd("floor");function dy(e){return ap((function(t){var n=t.length,r=n,o=el.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new TypeError("Expected a function");if(o&&!a&&"wrapper"==Qc(i))var a=new el([],!0)}for(r=a?r:n;++rt}function _y(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=yc(t),n=yc(n)),e(t,n)}}var wy=_y(by),Oy=_y((function(e,t){return e>=t})),xy=Object.prototype.hasOwnProperty;function Ey(e,t){return null!=e&&xy.call(e,t)}var Sy=Math.max,ky=Math.min;function jy(e){return"string"==typeof e||!oc(e)&&ec(e)&&"[object String]"==Qs(e)}function Cy(e,t){return rc(t,(function(t){return e[t]}))}function My(e){return null==e?[]:Cy(e,xf(e))}var Py=Math.max;var Ay=Math.max;var Ty=Math.min;function Dy(e,t,n){for(var r=n?kv:bl,o=e[0].length,i=e.length,a=i,u=Array(i),s=1/0,c=[];a--;){var l=e[a];a&&t&&(l=rc(l,lf(t))),s=Ty(l.length,s),u[a]=!n&&(t||o>=120&&l.length>=120)?new Oh(a&&l):void 0}l=e[0];var f=-1,p=u[0];e:for(;++f1),t})),Bl(e,Ud(e),n),r&&(n=wh(n,7,Pm));for(var o=t.length;o--;)Mm(n,t[o]);return n}));function Tm(e,t,n,r){if(!lc(e))return e;for(var o=-1,i=(t=Gf(t,e)).length,a=i-1,u=e;null!=u&&++ot||i&&a&&s&&!u&&!c||r&&a&&s||!n&&s||!o)return 1;if(!r&&!i&&!c&&e=u?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Im(e){return ap((function(t){return t=rc(t,lf(Kh)),Hl((function(n){var r=this;return e(t,(function(e){return Bc(e,r,n)}))}))}))}var Fm=Im(rc),Wm=Hl,Vm=Math.min,Bm=Wm((function(e,t){var n=(t=1==t.length&&oc(t[0])?rc(t[0],lf(Kh)):rc(op(t,1),lf(Kh))).length;return Hl((function(r){for(var o=-1,i=Vm(r.length,n);++o9007199254740991)return n;do{t%2&&(n+=e),(t=Hm(t/2))&&(e+=e)}while(t);return n}var Ym=Yh("length"),qm="[\\ud800-\\udfff]",Km="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Xm="\\ud83c[\\udffb-\\udfff]",Gm="[^\\ud800-\\udfff]",Zm="(?:\\ud83c[\\udde6-\\uddff]){2}",Jm="[\\ud800-\\udbff][\\udc00-\\udfff]",Qm="(?:"+Km+"|"+Xm+")"+"?",eg="[\\ufe0e\\ufe0f]?",tg=eg+Qm+("(?:\\u200d(?:"+[Gm,Zm,Jm].join("|")+")"+eg+Qm+")*"),ng="(?:"+[Gm+Km+"?",Km,Zm,Jm,qm].join("|")+")",rg=RegExp(Xm+"(?="+Xm+")|"+ng+tg,"g");function og(e){return Ep(e)?function(e){for(var t=rg.lastIndex=0;rg.test(e);)++t;return t}(e):Ym(e)}var ig=Math.ceil;function ag(e,t){var n=(t=void 0===t?" ":uc(t)).length;if(n<2)return n?$m(t,e):t;var r=$m(t,ig(e/og(t)));return Ep(t)?Op(Lp(r),0,e).join(""):r.slice(0,e)}var ug=Math.ceil,sg=Math.floor;var cg=/^\s+/,lg=$s.parseInt;var fg=Hl((function(e,t){return Rl(e,32,void 0,t,Ml(t,xl(fg)))}));fg.placeholder={};var pg=Hl((function(e,t){return Rl(e,64,void 0,t,Ml(t,xl(pg)))}));pg.placeholder={};var dg=rv((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var hg=ap((function(e,t){return null==e?{}:function(e,t){return Dm(e,t,(function(t,n){return Hh(e,n)}))}(e,t)}));function vg(e,t,n,r){for(var o=n-1,i=e.length;++o-1;)u!==e&&yg.call(u,s,1),yg.call(e,s,1);return e}function gg(e,t){return e&&e.length&&t&&t.length?mg(e,t):e}var bg=Hl(gg);var _g=Array.prototype.splice;function wg(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Sl(o)?_g.call(e,o,1):Mm(e,o)}}return e}var Og=ap((function(e,t){var n=null==e?0:e.length,r=ep(e,t);return wg(e,rc(t,(function(e){return Sl(e,n)?+e:e})).sort(Rm)),r})),xg=Math.floor,Eg=Math.random;function Sg(e,t){return e+xg(Eg()*(t-e+1))}var kg=parseFloat,jg=Math.min,Cg=Math.random;var Mg=Math.ceil,Pg=Math.max;function Ag(e){return function(t,n,r){return r&&"number"!=typeof r&&ql(t,n,r)&&(n=r=void 0),t=gc(t),void 0===n?(n=t,t=0):n=gc(n),function(e,t,n,r){for(var o=-1,i=Pg(Mg((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,n,r=void 0===r?t1&&ql(e,t[0],t[1])?t=[]:n>2&&ql(t[0],t[1],t[2])&&(t=[t[0]]),Lm(e,op(t,1),[])})),Gg=Math.floor,Zg=Math.min;function Jg(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,u=null===t,s=tc(t),c=void 0===t;o>>1,a=e[i];null!==a&&!tc(a)&&(n?a<=t:a/g,lb={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:cb,variable:"",imports:{_:{escape:qv}}},fb=/\b__p \+= '';/g,pb=/\b(__p \+=) '' \+/g,db=/(__e\(.*?\)|\b__t\)) \+\n'';/g,hb=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vb=/($^)/,yb=/['\n\r\u2028\u2029\\]/g,mb=Object.prototype.hasOwnProperty;function gb(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return lc(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),fv(e,t,{leading:r,maxWait:t,trailing:o})}function bb(e,t){return t(e)}var _b=4294967295,wb=Math.min;function Ob(e,t){var n=e;return n instanceof Kc&&(n=n.value()),Vp(t,(function(e,t){return t.func.apply(t.thisArg,tp([e],t.args))}),n)}function xb(){return Ob(this.__wrapped__,this.__actions__)}var Eb=9007199254740991;function Sb(e,t){for(var n=e.length;n--&&gl(t,e[n],0)>-1;);return n}function kb(e,t){for(var n=-1,r=e.length;++n-1;);return n}var jb=/^\s+|\s+$/g;var Cb=/\s+$/;var Mb=/^\s+/;var Pb=/\w*$/;var Ab=Bp({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Tb=/&(?:amp|lt|gt|quot|#39);/g,Db=RegExp(Tb.source);var Nb=$d&&1/jh(new $d([,-0]))[1]==1/0?function(e){return new $d(e)}:Xc;function Rb(e,t,n){var r=-1,o=bl,i=e.length,a=!0,u=[],s=u;if(n)a=!1,o=kv;else if(i>=200){var c=t?null:Nb(e);if(c)return jh(c);a=!1,o=Eh,s=new Oh}else s=t?[]:u;e:for(;++r1||this.__actions__.length)&&r instanceof Kc&&Sl(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:bb,args:[o],thisArg:void 0}),new el(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));function qb(e,t,n){var r=e.length;if(r<2)return r?Rb(e[0]):[];for(var o=-1,i=Array(r);++o1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Ub(e,n)})),e_={chunk:function(e,t,n){t=(n?ql(e,t,n):void 0===t)?1:Sd(bc(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=Array(Ed(r/t));oo?0:o+n),(r=void 0===r||r>o?o:bc(r))<0&&(r+=o),r=n>r?0:Jv(r);n-1:!!o&&gl(e,t,n)>-1},invokeMap:Ky,keyBy:cm,map:fy,orderBy:function(e,t,n,r){return null==e?[]:(oc(t)||(t=null==t?[]:[t]),oc(n=r?void 0:n)||(n=null==n?[]:[n]),Lm(e,t,n))},partition:dg,reduce:function(e,t,n){var r=oc(e)?Vp:Rg,o=arguments.length<3;return r(e,Kh(t),n,o,tv)},reduceRight:function(e,t,n){var r=oc(e)?Lg:Rg,o=arguments.length<3;return r(e,Kh(t),n,o,Wv)},reject:function(e,t){return(oc(e)?Nd:Qv)(e,Sm(Kh(t)))},sample:function(e){return(oc(e)?Vg:Bg)(e)},sampleSize:function(e,t,n){return t=(n?ql(e,t,n):void 0===t)?1:bc(t),(oc(e)?zg:Hg)(e,t)},shuffle:function(e){return(oc(e)?$g:Yg)(e)},size:function(e){if(null==e)return 0;if(Yl(e))return jy(e)?og(e):e.length;var t=rh(e);return"[object Map]"==t||"[object Set]"==t?e.size:Of(e).length},some:function(e,t,n){var r=oc(e)?xh:Kg;return n&&ql(e,t,n)&&(t=void 0),r(e,Kh(t))},sortBy:Xg},n_=sv,r_={after:function(e,t){if("function"!=typeof t)throw new TypeError("Expected a function");return e=bc(e),function(){if(--e<1)return t.apply(this,arguments)}},ary:Ll,before:mp,bind:gp,bindKey:_p,curry:av,curryRight:uv,debounce:fv,defer:Ev,delay:Sv,flip:function(e){return Rl(e,512)},memoize:$f,negate:Sm,once:function(e){return mp(2,e)},overArgs:Bm,partial:fg,partialRight:pg,rearg:Ng,rest:function(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return Hl(e,t=void 0===t?t:bc(t))},spread:function(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return t=null==t?0:tb(bc(t),0),Hl((function(n){var r=n[t],o=Op(n,0,t);return r&&tp(o,r),Bc(e,this,o)}))},throttle:gb,unary:function(e){return Ll(e,1)},wrap:function(e,t){return fg(Nv(t),e)}},o_={castArray:function(){if(!arguments.length)return[];var e=arguments[0];return oc(e)?e:[e]},clone:function(e){return wh(e,4)},cloneDeep:function(e){return wh(e,5)},cloneDeepWith:function(e,t){return wh(e,5,t="function"==typeof t?t:void 0)},cloneWith:function(e,t){return wh(e,4,t="function"==typeof t?t:void 0)},conformsTo:function(e,t){return null==t||Xh(e,t,xf(t))},eq:Fl,gt:wy,gte:Oy,isArguments:nf,isArray:oc,isArrayBuffer:Gy,isArrayLike:Yl,isArrayLikeObject:yv,isBoolean:function(e){return!0===e||!1===e||ec(e)&&"[object Boolean]"==Qs(e)},isBuffer:sf,isDate:Jy,isElement:function(e){return ec(e)&&1===e.nodeType&&!hp(e)},isEmpty:function(e){if(null==e)return!0;if(Yl(e)&&(oc(e)||"string"==typeof e||"function"==typeof e.splice||sf(e)||yf(e)||nf(e)))return!e.length;var t=rh(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(Gl(e))return!Of(e).length;for(var n in e)if(Qy.call(e,n))return!1;return!0},isEqual:function(e,t){return Lh(e,t)},isEqualWith:function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?Lh(e,t,void 0,n):!!r},isError:vp,isFinite:function(e){return"number"==typeof e&&em(e)},isFunction:wc,isInteger:tm,isLength:$l,isMap:hh,isMatch:function(e,t){return e===t||Ih(e,t,Wh(t))},isMatchWith:function(e,t,n){return n="function"==typeof n?n:void 0,Ih(e,t,Wh(t),n)},isNaN:function(e){return nm(e)&&e!=+e},isNative:function(e){if(rm(e))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dc(e)},isNil:function(e){return null==e},isNull:function(e){return null===e},isNumber:nm,isObject:lc,isObjectLike:ec,isPlainObject:hp,isRegExp:im,isSafeInteger:function(e){return tm(e)&&e>=-9007199254740991&&e<=am},isSet:yh,isString:jy,isSymbol:tc,isTypedArray:yf,isUndefined:function(e){return void 0===e},isWeakMap:function(e){return ec(e)&&"[object WeakMap]"==rh(e)},isWeakSet:function(e){return ec(e)&&"[object WeakSet]"==Qs(e)},lt:vm,lte:ym,toArray:jm,toFinite:gc,toInteger:bc,toLength:Jv,toNumber:yc,toPlainObject:gv,toSafeInteger:function(e){return e?kd(bc(e),-9007199254740991,Eb):0===e?e:0},toString:Xf},i_={add:cc,ceil:Od,divide:Tv,floor:py,max:function(e){return e&&e.length?mm(e,_c,by):void 0},maxBy:function(e,t){return e&&e.length?mm(e,Kh(t),by):void 0},mean:function(e){return bm(e,_c)},meanBy:function(e,t){return bm(e,Kh(t))},min:function(e){return e&&e.length?mm(e,_c,hm):void 0},minBy:function(e,t){return e&&e.length?mm(e,Kh(t),hm):void 0},multiply:Em,round:Wg,subtract:rb,sum:function(e){return e&&e.length?gm(e,_c):0},sumBy:function(e,t){return e&&e.length?gm(e,Kh(t)):0}},a_=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=yc(n))==n?n:0),void 0!==t&&(t=(t=yc(t))==t?t:0),kd(yc(e),t,n)},u_=function(e,t,n){return t=gc(t),void 0===n?(n=t,t=0):n=gc(n),function(e,t,n){return e>=ky(t,n)&&et){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Cg();return jg(e+o*(t-e+kg("1e-"+((o+"").length-1))),t)}return Sg(e,t)},c_={assign:Sf,assignIn:Mf,assignInWith:Pf,assignWith:Af,at:up,create:function(e,t){var n=Wc(e);return null==t?n:Cd(n,t)},defaults:hv,defaultsDeep:Ov,entries:Uv,entriesIn:zv,extend:Mf,extendWith:Pf,findKey:function(e,t){return oy(e,Kh(t),Qh)},findLastKey:function(e,t){return oy(e,Kh(t),Fv)},forIn:function(e,t){return null==e?e:Jh(e,Nv(t),Cf)},forInRight:function(e,t){return null==e?e:Iv(e,Nv(t),Cf)},forOwn:function(e,t){return e&&Qh(e,Nv(t))},forOwnRight:function(e,t){return e&&Fv(e,Nv(t))},functions:function(e){return null==e?[]:yy(e,xf(e))},functionsIn:function(e){return null==e?[]:yy(e,Cf(e))},get:Qf,has:function(e,t){return null!=e&&zh(e,t,Ey)},hasIn:Hh,invert:Vy,invertBy:Hy,invoke:qy,keys:xf,keysIn:Cf,mapKeys:function(e,t){var n={};return t=Kh(t),Qh(e,(function(e,r,o){Il(n,t(e,r,o),e)})),n},mapValues:function(e,t){var n={};return t=Kh(t),Qh(e,(function(e,r,o){Il(n,r,t(e,r,o))})),n},merge:_m,mergeWith:wv,omit:Am,omitBy:function(e,t){return Nm(e,Sm(Kh(t)))},pick:hg,pickBy:Nm,result:function(e,t,n){var r=-1,o=(t=Gf(t,e)).length;for(o||(o=1,e=void 0);++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},plant:function(e){for(var t,n=this;n instanceof qc;){var r=nl(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},reverse:function(){var e=this.__wrapped__;if(e instanceof Kc){var t=e;return this.__actions__.length&&(t=new Kc(this)),(t=t.reverse()).__actions__.push({func:bb,args:[Fg],thisArg:void 0}),new el(t,this.__chain__)}return this.thru(Fg)},tap:function(e,t){return t(e),e},thru:bb,toIterator:function(){return this},toJSON:xb,value:xb,valueOf:xb,wrapperChain:function(){return xd(this)}},f_={camelCase:gd,capitalize:Wp,deburr:$p,endsWith:function(e,t,n){e=Xf(e),t=uc(t);var r=e.length,o=n=void 0===n?r:kd(bc(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},escape:qv,escapeRegExp:function(e){return(e=Xf(e))&&Xv.test(e)?e.replace(Kv,"\\$&"):e},kebabCase:sm,lowerCase:pm,lowerFirst:dm,pad:function(e,t,n){e=Xf(e);var r=(t=bc(t))?og(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return ag(sg(o),n)+e+ag(ug(o),n)},padEnd:function(e,t,n){e=Xf(e);var r=(t=bc(t))?og(e):0;return t&&r>>0)?(e=Xf(e))&&("string"==typeof t||null!=t&&!im(t))&&!(t=uc(t))&&Ep(e)?Op(Lp(e),0,n):e.split(t,n):[]},startCase:nb,startsWith:function(e,t,n){return e=Xf(e),n=null==n?0:kd(bc(n),0,e.length),t=uc(t),e.slice(n,n+t.length)==t},template:function(e,t,n){var r=lb.imports._.templateSettings||lb;n&&ql(e,t,n)&&(t=void 0),e=Xf(e),t=Pf({},t,r,ab);var o,i,a=Pf({},t.imports,r.imports,ab),u=xf(a),s=Cy(a,u),c=0,l=t.interpolate||vb,f="__p += '",p=RegExp((t.escape||vb).source+"|"+l.source+"|"+(l===cb?hb:vb).source+"|"+(t.evaluate||vb).source+"|$","g"),d=mb.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(p,(function(t,n,r,a,u,s){return r||(r=a),f+=e.slice(c,s).replace(yb,sb),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),u&&(i=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+t.length,t})),f+="';\n";var h=mb.call(t,"variable")&&t.variable;h||(f="with (obj) {\n"+f+"\n}\n"),f=(i?f.replace(fb,""):f).replace(pb,"$1").replace(db,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=yp((function(){return Function(u,d+"return "+f).apply(void 0,s)}));if(v.source=f,vp(v))throw v;return v},templateSettings:lb,toLower:function(e){return Xf(e).toLowerCase()},toUpper:function(e){return Xf(e).toUpperCase()},trim:function(e,t,n){if((e=Xf(e))&&(n||void 0===t))return e.replace(jb,"");if(!e||!(t=uc(t)))return e;var r=Lp(e),o=Lp(t);return Op(r,kb(r,o),Sb(r,o)+1).join("")},trimEnd:function(e,t,n){if((e=Xf(e))&&(n||void 0===t))return e.replace(Cb,"");if(!e||!(t=uc(t)))return e;var r=Lp(e);return Op(r,0,Sb(r,Lp(t))+1).join("")},trimStart:function(e,t,n){if((e=Xf(e))&&(n||void 0===t))return e.replace(Mb,"");if(!e||!(t=uc(t)))return e;var r=Lp(e);return Op(r,kb(r,Lp(t))).join("")},truncate:function(e,t){var n=30,r="...";if(lc(t)){var o="separator"in t?t.separator:o;n="length"in t?bc(t.length):n,r="omission"in t?uc(t.omission):r}var i=(e=Xf(e)).length;if(Ep(e)){var a=Lp(e);i=a.length}if(n>=i)return e;var u=n-og(r);if(u<1)return r;var s=a?Op(a,0,u).join(""):e.slice(0,u);if(void 0===o)return s+r;if(a&&(u+=s.length-u),im(o)){if(e.slice(u).search(o)){var c,l=s;for(o.global||(o=RegExp(o.source,Xf(Pb.exec(o))+"g")),o.lastIndex=0;c=o.exec(l);)var f=c.index;s=s.slice(0,void 0===f?u:f)}}else if(e.indexOf(uc(o),u)!=u){var p=s.lastIndexOf(o);p>-1&&(s=s.slice(0,p))}return s+r},unescape:function(e){return(e=Xf(e))&&Db.test(e)?e.replace(Tb,Ab):e},upperCase:Hb,upperFirst:Fp,words:vd},p_={attempt:yp,bindAll:bp,cond:function(e){var t=null==e?0:e.length,n=Kh;return e=t?rc(e,(function(e){if("function"!=typeof e[1])throw new TypeError("Expected a function");return[n(e[0]),e[1]]})):[],Hl((function(n){for(var r=-1;++r9007199254740991)return[];var n=_b,r=wb(e,_b);t=Nv(t),e-=_b;for(var o=Zl(r,t);++n0,"`Slider[step]` should be a positive number in order to make Slider[dots] work.");var a=Object.keys(t).map(parseFloat).sort((function(e,t){return e-t}));if(n&&r)for(var u=o;u<=i;u+=r)-1===a.indexOf(u)&&a.push(u);return a}(0,i,a,u,p,f).map((function(e){var i,a=Math.abs(e-p)/v*100+"%",u=!s&&e===l||s&&e<=l&&e>=c,f=In({},d,Ao({},n?o?"top":"bottom":o?"right":"left",a));u&&(f=In({},f,h));var y=Zo((Ao(i={},t+"-dot",!0),Ao(i,t+"-dot-active",u),Ao(i,t+"-dot-reverse",o),i));return r.createElement("span",{className:y,style:f,key:e})}));return r.createElement("div",{className:t+"-step"},y)};Jo.propTypes={prefixCls:n.string,activeDotStyle:n.object,dotStyle:n.object,min:n.number,max:n.number,upperBound:n.number,lowerBound:n.number,included:n.bool,dots:n.bool,step:n.number,marks:n.object,vertical:n.bool,reverse:n.bool};var Qo=function(e){var t=e.className,n=e.vertical,o=e.reverse,i=e.marks,a=e.included,u=e.upperBound,s=e.lowerBound,c=e.max,l=e.min,f=e.onClickLabel,p=Object.keys(i),d=c-l,h=p.map(parseFloat).sort((function(e,t){return e-t})).map((function(e){var c,p=i[e],h="object"==typeof p&&!r.isValidElement(p),v=h?p.label:p;if(!v&&0!==v)return null;var y=!a&&e===u||a&&e<=u&&e>=s,m=Zo((Ao(c={},t+"-text",!0),Ao(c,t+"-text-active",y),c)),g=Ao({marginBottom:"-50%"},o?"top":"bottom",(e-l)/d*100+"%"),b=Ao({transform:"translateX(-50%)",msTransform:"translateX(-50%)"},o?"right":"left",o?(e-l/4)/d*100+"%":(e-l)/d*100+"%"),_=n?g:b,w=h?In({},_,p.style):_;return r.createElement("span",{className:m,style:w,key:e,onMouseDown:function(t){return f(t,e)},onTouchStart:function(t){return f(t,e)}},v)}));return r.createElement("div",{className:t},h)};Qo.propTypes={className:n.string,vertical:n.bool,reverse:n.bool,marks:n.object,included:n.bool,upperBound:n.number,lowerBound:n.number,max:n.number,min:n.number,onClickLabel:n.func};var ei=function(e){function t(){var e,n,r;Fn(this,t);for(var o=arguments.length,i=Array(o),a=0;a1?arguments[1]:void 0,c=void 0!==s,l=0,f=ci(i);if(c&&(s=Bt(s,u>2?arguments[2]:void 0,2)),null==f||a==Array&&oi(f))for(n=new a(t=yn(i.length));t>l;l++)ii(n,l,c?s(i[l],l):i[l]);else for(o=f.call(i),n=new a;!(r=o.next()).done;l++)ii(n,l,c?ti(o,s,[r.value,l],!0):r.value);return n.length=l,n}});var di=Vt.Array.from,hi=Ee((function(e){e.exports={default:di,__esModule:!0}}));xe(hi);var vi=xe(Ee((function(e,t){t.__esModule=!0;var n,r=(n=hi)&&n.__esModule?n:{default:n};t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=yi.F1&&t<=yi.F12)return!1;switch(t){case yi.ALT:case yi.CAPS_LOCK:case yi.CONTEXT_MENU:case yi.CTRL:case yi.DOWN:case yi.END:case yi.ESC:case yi.HOME:case yi.INSERT:case yi.LEFT:case yi.MAC_FF_META:case yi.META:case yi.NUMLOCK:case yi.NUM_CENTER:case yi.PAGE_DOWN:case yi.PAGE_UP:case yi.PAUSE:case yi.PRINT_SCREEN:case yi.RIGHT:case yi.SHIFT:case yi.UP:case yi.WIN_KEY:case yi.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=yi.ZERO&&e<=yi.NINE)return!0;if(e>=yi.NUM_ZERO&&e<=yi.NUM_MULTIPLY)return!0;if(e>=yi.A&&e<=yi.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case yi.SPACE:case yi.QUESTION_MARK:case yi.NUM_PLUS:case yi.NUM_MINUS:case yi.NUM_PERIOD:case yi.NUM_DIVISION:case yi.SEMICOLON:case yi.DASH:case yi.EQUALS:case yi.COMMA:case yi.PERIOD:case yi.SLASH:case yi.APOSTROPHE:case yi.SINGLE_QUOTE:case yi.OPEN_SQUARE_BRACKET:case yi.BACKSLASH:case yi.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};function mi(e,n){try{return Object.keys(n).some((function(r){return e.target===t.findDOMNode(n[r])}))}catch(e){return!1}}function gi(e,t){var n=t.min,r=t.max;return er}function bi(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function _i(e,t){var n=t.marks,r=t.step,o=t.min,i=t.max,a=Object.keys(n).map(parseFloat);if(null!==r){var u=Math.floor((i-o)/r),s=Math.min((e-o)/r,u),c=Math.round(s)*r+o;a.push(c)}var l=a.map((function(t){return Math.abs(e-t)}));return a[l.indexOf(Math.min.apply(Math,vi(l)))]}function wi(e,t){return e?t.clientY:t.pageX}function Oi(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function xi(e,t){var n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.pageXOffset+n.left+.5*n.width}function Ei(e,t){var n=t.max,r=t.min;return e<=r?r:e>=n?n:e}function Si(e,t){var n=t.step,r=isFinite(_i(e,t))?_i(e,t):0;return null===n?r:parseFloat(r.toFixed(function(e){var t=e.toString(),n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}(n)))}function ki(e){e.stopPropagation(),e.preventDefault()}function ji(e,t,n){var r="increase",o="decrease",i=r;switch(e.keyCode){case yi.UP:i=t&&n?o:r;break;case yi.RIGHT:i=!t&&n?o:r;break;case yi.DOWN:i=t&&n?r:o;break;case yi.LEFT:i=!t&&n?r:o;break;case yi.END:return function(e,t){return t.max};case yi.HOME:return function(e,t){return t.min};case yi.PAGE_UP:return function(e,t){return e+2*t.step};case yi.PAGE_DOWN:return function(e,t){return e-2*t.step};default:return}return function(e,t){return function(e,t,n){var r={increase:function(e,t){return e+t},decrease:function(e,t){return e-t}},o=r[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),i=Object.keys(n.marks)[o];return n.step?r[e](t,n.step):Object.keys(n.marks).length&&n.marks[i]?n.marks[i]:t}(i,e,t)}}function Ci(){}function Mi(e){var t,o;return o=t=function(e){function t(e){Fn(this,t);var n=bo(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.onMouseDown=function(e){if(0===e.button){var t=n.props.vertical,r=wi(t,e);if(mi(e,n.handlesRefs)){var o=xi(t,e.target);n.dragOffset=r-o,r=o}else n.dragOffset=0;n.removeDocumentEvents(),n.onStart(r),n.addDocumentMouseEvents()}},n.onTouchStart=function(e){if(!bi(e)){var t=n.props.vertical,r=Oi(t,e);if(mi(e,n.handlesRefs)){var o=xi(t,e.target);n.dragOffset=r-o,r=o}else n.dragOffset=0;n.onStart(r),n.addDocumentTouchEvents(),ki(e)}},n.onFocus=function(e){var t=n.props,r=t.onFocus,o=t.vertical;if(mi(e,n.handlesRefs)){var i=xi(o,e.target);n.dragOffset=0,n.onStart(i),ki(e),r&&r(e)}},n.onBlur=function(e){var t=n.props.onBlur;n.onEnd(),t&&t(e)},n.onMouseUp=function(){n.handlesRefs[n.prevMovedHandleIndex]&&n.handlesRefs[n.prevMovedHandleIndex].clickFocus()},n.onMouseMove=function(e){if(n.sliderRef){var t=wi(n.props.vertical,e);n.onMove(e,t-n.dragOffset)}else n.onEnd()},n.onTouchMove=function(e){if(!bi(e)&&n.sliderRef){var t=Oi(n.props.vertical,e);n.onMove(e,t-n.dragOffset)}else n.onEnd()},n.onKeyDown=function(e){n.sliderRef&&mi(e,n.handlesRefs)&&n.onKeyboard(e)},n.onClickMarkLabel=function(e,t){e.stopPropagation(),n.onChange({value:t}),n.setState({value:t},(function(){return n.onEnd(!0)}))},n.saveSlider=function(e){n.sliderRef=e};var r=e.step,o=e.max,i=e.min,a=!isFinite(o-i)||(o-i)%r==0;return Po(!r||Math.floor(r)!==r||a,"Slider[max] - Slider[min] (%s) should be a multiple of Slider[step] (%s)",o-i,r),n.handlesRefs={},n}return jo(t,e),Un(t,[{key:"componentDidMount",value:function(){this.document=this.sliderRef&&this.sliderRef.ownerDocument;var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()}},{key:"componentWillUnmount",value:function(){Bo(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"componentWillUnmount",this)&&Bo(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"componentWillUnmount",this).call(this),this.removeDocumentEvents()}},{key:"getSliderStart",value:function(){var e=this.sliderRef,t=this.props,n=t.vertical,r=t.reverse,o=e.getBoundingClientRect();return n?r?o.bottom:o.top:window.pageXOffset+(r?o.right:o.left)}},{key:"getSliderLength",value:function(){var e=this.sliderRef;if(!e)return 0;var t=e.getBoundingClientRect();return this.props.vertical?t.height:t.width}},{key:"addDocumentTouchEvents",value:function(){this.onTouchMoveListener=Go(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=Go(this.document,"touchend",this.onEnd)}},{key:"addDocumentMouseEvents",value:function(){this.onMouseMoveListener=Go(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=Go(this.document,"mouseup",this.onEnd)}},{key:"removeDocumentEvents",value:function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"focus",value:function(){this.props.disabled||this.handlesRefs[0].focus()}},{key:"blur",value:function(){var e=this;this.props.disabled||Object.keys(this.handlesRefs).forEach((function(t){e.handlesRefs[t]&&e.handlesRefs[t].blur&&e.handlesRefs[t].blur()}))}},{key:"calcValue",value:function(e){var t=this.props,n=t.vertical,r=t.min,o=t.max,i=Math.abs(Math.max(e,0)/this.getSliderLength());return n?(1-i)*(o-r)+r:i*(o-r)+r}},{key:"calcValueByPos",value:function(e){var t=(this.props.reverse?-1:1)*(e-this.getSliderStart());return this.trimAlignValue(this.calcValue(t))}},{key:"calcOffset",value:function(e){var t=this.props,n=t.min;return 100*((e-n)/(t.max-n))}},{key:"saveHandle",value:function(e,t){this.handlesRefs[e]=t}},{key:"render",value:function(){var e,n=this.props,o=n.prefixCls,i=n.className,a=n.marks,u=n.dots,s=n.step,c=n.included,l=n.disabled,f=n.vertical,p=n.reverse,d=n.min,h=n.max,v=n.children,y=n.maximumTrackStyle,m=n.style,g=n.railStyle,b=n.dotStyle,_=n.activeDotStyle,w=Bo(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"render",this).call(this),O=w.tracks,x=w.handles,E=Zo(o,(Ao(e={},o+"-with-marks",Object.keys(a).length),Ao(e,o+"-disabled",l),Ao(e,o+"-vertical",f),Ao(e,i,i),e));return r.createElement("div",{ref:this.saveSlider,className:E,onTouchStart:l?Ci:this.onTouchStart,onMouseDown:l?Ci:this.onMouseDown,onMouseUp:l?Ci:this.onMouseUp,onKeyDown:l?Ci:this.onKeyDown,onFocus:l?Ci:this.onFocus,onBlur:l?Ci:this.onBlur,style:m},r.createElement("div",{className:o+"-rail",style:In({},y,g)}),O,r.createElement(Jo,{prefixCls:o,vertical:f,reverse:p,marks:a,dots:u,step:s,included:c,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:h,min:d,dotStyle:b,activeDotStyle:_}),x,r.createElement(Qo,{className:o+"-mark",onClickLabel:l?Ci:this.onClickMarkLabel,vertical:f,marks:a,included:c,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:h,min:d,reverse:p}),v)}}]),t}(e),t.displayName="ComponentEnhancer("+e.displayName+")",t.propTypes=In({},e.propTypes,{min:n.number,max:n.number,startPoint:n.number,step:n.number,marks:n.object,included:n.bool,className:n.string,prefixCls:n.string,disabled:n.bool,children:n.any,onBeforeChange:n.func,onChange:n.func,onAfterChange:n.func,handle:n.func,dots:n.bool,vertical:n.bool,style:n.object,reverse:n.bool,minimumTrackStyle:n.object,maximumTrackStyle:n.object,handleStyle:n.oneOfType([n.object,n.arrayOf(n.object)]),trackStyle:n.oneOfType([n.object,n.arrayOf(n.object)]),railStyle:n.object,dotStyle:n.object,activeDotStyle:n.object,autoFocus:n.bool,onFocus:n.func,onBlur:n.func}),t.defaultProps=In({},e.defaultProps,{prefixCls:"rc-slider",className:"",min:0,max:100,step:1,marks:{},handle:function(e){var t=e.index,n=Do(e,["index"]);return delete n.dragging,null===n.value?null:r.createElement(ei,In({},n,{key:t}))},onBeforeChange:Ci,onChange:Ci,onAfterChange:Ci,included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),o}var Pi=function(e){function t(e){Fn(this,t);var n=bo(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.onEnd=function(e){var t=n.state.dragging;n.removeDocumentEvents(),(t||e)&&n.props.onAfterChange(n.getValue()),n.setState({dragging:!1})};var r=void 0!==e.defaultValue?e.defaultValue:e.min,o=void 0!==e.value?e.value:r;return n.state={value:n.trimAlignValue(o),dragging:!1},Po(!("minimumTrackStyle"in e),"minimumTrackStyle will be deprecated, please use trackStyle instead."),Po(!("maximumTrackStyle"in e),"maximumTrackStyle will be deprecated, please use railStyle instead."),n}return jo(t,e),Un(t,[{key:"componentDidUpdate",value:function(e,t){if("value"in this.props||"min"in this.props||"max"in this.props){var n=this.props,r=n.value,o=n.onChange,i=void 0!==r?r:t.value,a=this.trimAlignValue(i,this.props);a!==t.value&&(this.setState({value:a}),gi(i,this.props)&&o(a))}}},{key:"onChange",value:function(e){var t=this.props,n=!("value"in t),r=e.value>this.props.max?In({},e,{value:this.props.max}):e;n&&this.setState(r);var o=r.value;t.onChange(o)}},{key:"onStart",value:function(e){this.setState({dragging:!0});var t=this.props,n=this.getValue();t.onBeforeChange(n);var r=this.calcValueByPos(e);this.startValue=r,this.startPosition=e,r!==n&&(this.prevMovedHandleIndex=0,this.onChange({value:r}))}},{key:"onMove",value:function(e,t){ki(e);var n=this.state.value,r=this.calcValueByPos(t);r!==n&&this.onChange({value:r})}},{key:"onKeyboard",value:function(e){var t=this.props,n=t.reverse,r=ji(e,t.vertical,n);if(r){ki(e);var o=this.state.value,i=r(o,this.props),a=this.trimAlignValue(i);if(a===o)return;this.onChange({value:a}),this.props.onAfterChange(a),this.onEnd()}}},{key:"getValue",value:function(){return this.state.value}},{key:"getLowerBound",value:function(){return this.props.min}},{key:"getUpperBound",value:function(){return this.state.value}},{key:"trimAlignValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return null;var n=In({},this.props,t),r=Ei(e,n);return Si(r,n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,o=t.vertical,i=t.included,a=t.disabled,u=t.minimumTrackStyle,s=t.trackStyle,c=t.handleStyle,l=t.tabIndex,f=t.ariaLabelForHandle,p=t.ariaLabelledByForHandle,d=t.ariaValueTextFormatterForHandle,h=t.min,v=t.max,y=t.startPoint,m=t.reverse,g=t.handle,b=this.state,_=b.value,w=b.dragging,O=this.calcOffset(_),x=g({className:n+"-handle",prefixCls:n,vertical:o,offset:O,value:_,dragging:w,disabled:a,min:h,max:v,reverse:m,index:0,tabIndex:l,ariaLabel:f,ariaLabelledBy:p,ariaValueTextFormatter:d,style:c[0]||c,ref:function(t){return e.saveHandle(0,t)}}),E=void 0!==y?this.calcOffset(y):0,S=s[0]||s;return{tracks:r.createElement(To,{className:n+"-track",vertical:o,included:i,offset:E,reverse:m,length:O-E,style:In({},u,S)}),handles:x}}}]),t}(r.Component);Pi.propTypes={defaultValue:n.number,value:n.number,disabled:n.bool,autoFocus:n.bool,tabIndex:n.number,reverse:n.bool,min:n.number,max:n.number,startPoint:n.number,ariaLabelForHandle:n.string,ariaLabelledByForHandle:n.string,ariaValueTextFormatterForHandle:n.func};var Ai=Mi(Pi),Ti=function(e){var t=e.value,n=e.handle,r=e.bounds,o=e.props,i=o.allowCross,a=o.pushable,u=Number(a),s=Ei(t,o),c=s;return i||null==n||void 0===r||(n>0&&s<=r[n-1]+u&&(c=r[n-1]+u),n=r[n+1]-u&&(c=r[n+1]-u)),Si(c,o)},Di=function(e){function t(e){Fn(this,t);var n=bo(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.onEnd=function(e){var t=n.state.handle;n.removeDocumentEvents(),(null!==t||e)&&n.props.onAfterChange(n.getValue()),n.setState({handle:null})};var r=e.count,o=e.min,i=e.max,a=Array.apply(void 0,vi(Array(r+1))).map((function(){return o})),u="defaultValue"in e?e.defaultValue:a,s=(void 0!==e.value?e.value:u).map((function(t,n){return Ti({value:t,handle:n,props:e})})),c=s[0]===i?0:s.length-1;return n.state={handle:null,recent:c,bounds:s},n}return jo(t,e),Un(t,[{key:"componentDidUpdate",value:function(e,t){var n=this;if(("value"in this.props||"min"in this.props||"max"in this.props)&&(this.props.min!==e.min||this.props.max!==e.max||!function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(t),s=0;s=t[r]&&(n=r);return Math.abs(t[n+1]-e)=r.length||o<0)return!1;var i=t+n,a=r[o],u=this.props.pushable,s=n*(e[i]-a);return!!this.pushHandle(e,i,n,u-s)&&(e[t]=a,!0)}},{key:"trimAlignValue",value:function(e){var t=this.state,n=t.handle,r=t.bounds;return Ti({value:e,handle:n,bounds:r,props:this.props})}},{key:"render",value:function(){var e=this,t=this.state,n=t.handle,o=t.bounds,i=this.props,a=i.prefixCls,u=i.vertical,s=i.included,c=i.disabled,l=i.min,f=i.max,p=i.reverse,d=i.handle,h=i.trackStyle,v=i.handleStyle,y=i.tabIndex,m=i.ariaLabelGroupForHandles,g=i.ariaLabelledByGroupForHandles,b=i.ariaValueTextFormatterGroupForHandles,_=o.map((function(t){return e.calcOffset(t)})),w=a+"-handle",O=o.map((function(t,r){var o,i=y[r]||0;(c||null===y[r])&&(i=null);var s=n===r;return d({className:Zo((o={},Ao(o,w,!0),Ao(o,w+"-"+(r+1),!0),Ao(o,w+"-dragging",s),o)),prefixCls:a,vertical:u,dragging:s,offset:_[r],value:t,index:r,tabIndex:i,min:l,max:f,reverse:p,disabled:c,style:v[r],ref:function(t){return e.saveHandle(r,t)},ariaLabel:m[r],ariaLabelledBy:g[r],ariaValueTextFormatter:b[r]})}));return{tracks:o.slice(0,-1).map((function(e,t){var n,o=t+1,i=Zo((Ao(n={},a+"-track",!0),Ao(n,a+"-track-"+o,!0),n));return r.createElement(To,{className:i,vertical:u,reverse:p,included:s,offset:_[o-1],length:_[o]-_[o-1],style:h[t],key:o})})),handles:O}}}],[{key:"getDerivedStateFromProps",value:function(e,t){if("value"in e||"min"in e||"max"in e){var n=(e.value||t.bounds).map((function(n,r){return Ti({value:n,handle:r,bounds:t.bounds,props:e})}));return n.length===t.bounds.length&&n.every((function(e,n){return e===t.bounds[n]}))?null:In({},t,{bounds:n})}return null}}]),t}(r.Component);Di.displayName="Range",Di.propTypes={autoFocus:n.bool,defaultValue:n.arrayOf(n.number),value:n.arrayOf(n.number),count:n.number,pushable:n.oneOfType([n.bool,n.number]),allowCross:n.bool,disabled:n.bool,reverse:n.bool,tabIndex:n.arrayOf(n.number),min:n.number,max:n.number,ariaLabelGroupForHandles:n.arrayOf(n.string),ariaLabelledByGroupForHandles:n.arrayOf(n.string),ariaValueTextFormatterGroupForHandles:n.arrayOf(n.func)},Di.defaultProps={count:1,allowCross:!0,pushable:!1,tabIndex:[],ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]};var Ni=Mi(Di);function Ri(e,t){for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}function Li(e){return e instanceof HTMLElement?e:o.findDOMNode(e)}function Ii(e){return(Ii="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})(e)}function Fi(e,t){"function"==typeof e?e(t):"object"===Ii(e)&&e&&"current"in e&&(e.current=t)}function Wi(){for(var e=arguments.length,t=new Array(e),n=0;n=0&&t.left>=0&&t.bottom>t.top&&t.right>t.left?t:null}function Ga(e){var t,n,r;if($a.isWindow(e)||9===e.nodeType){var o=$a.getWindow(e);t={left:$a.getWindowScrollLeft(o),top:$a.getWindowScrollTop(o)},n=$a.viewportWidth(o),r=$a.viewportHeight(o)}else t=$a.offset(e),n=$a.outerWidth(e),r=$a.outerHeight(e);return t.width=n,t.height=r,t}function Za(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,u=e.top;return"c"===n?u+=i/2:"b"===n&&(u+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:u}}function Ja(e,t,n,r,o){var i=Za(t,n[1]),a=Za(e,n[0]),u=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-u[0]+r[0]-o[0]),top:Math.round(e.top-u[1]+r[1]-o[1])}}function Qa(e,t,n){return e.leftn.right}function eu(e,t,n){return e.topn.bottom}function tu(e,t,n){var r=[];return $a.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function nu(e,t){return e[t]=-e[t],e}function ru(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function ou(e,t){e[0]=ru(e[0],t.width),e[1]=ru(e[1],t.height)}function iu(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],u=n.overflow,s=n.source||e;i=[].concat(i),a=[].concat(a),u=u||{};var c={},l=0,f=Xa(s),p=Ga(s);ou(i,p),ou(a,t);var d=Ja(p,t,o,i,a),h=$a.merge(p,d);if(f&&(u.adjustX||u.adjustY)&&r){if(u.adjustX&&Qa(d,p,f)){var v=tu(o,/[lr]/gi,{l:"r",r:"l"}),y=nu(i,0),m=nu(a,0);(function(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),$a.mix(o,i)}(d,p,f,c))}return h.width!==p.width&&$a.css(s,"width",$a.width(s)+h.width-p.width),h.height!==p.height&&$a.css(s,"height",$a.height(s)+h.height-p.height),$a.offset(s,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:c}}function au(e,t,n){var r=n.target||t;return iu(e,Ga(r),n,!function(e){var t=Xa(e),n=Ga(e);return!t||n.left+n.width<=t.left||n.top+n.height<=t.top||n.left>=t.right||n.top>=t.bottom}(r))}function uu(e,t,n){var r,o,i=$a.getDocument(e),a=i.defaultView||i.parentWindow,u=$a.getWindowScrollLeft(a),s=$a.getWindowScrollTop(a),c=$a.viewportWidth(a),l=$a.viewportHeight(a);r="pageX"in t?t.pageX:u+t.clientX,o="pageY"in t?t.pageY:s+t.clientY;var f=r>=0&&r<=u+c&&o>=0&&o<=s+l;return iu(e,{left:r,top:o,width:0,height:0},function(e){for(var t=1;t0},e.prototype.connect_=function(){cu&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),du?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){cu&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;pu.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),vu=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),ju="undefined"!=typeof WeakMap?new WeakMap:new su,Cu=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=hu.getInstance(),r=new ku(t,n,this);ju.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Cu.prototype[e]=function(){var t;return(t=ju.get(this))[e].apply(t,arguments)}}));var Mu=void 0!==lu.ResizeObserver?lu.ResizeObserver:Cu;function Pu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Au(e,t){var n=null,r=null;var o=new Mu((function(e){var o=Pu(e,1)[0].target.getBoundingClientRect(),i=o.width,a=o.height,u=Math.floor(i),s=Math.floor(a);n===u&&r===s||t({width:u,height:s}),n=u,r=s}));return e&&o.observe(e),function(){o.disconnect()}}function Tu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Du(e){return(Du="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})(e)}function Nu(e){return"function"!=typeof e?null:e()}function Ru(e){return"object"===Du(e)&&e?e:null}var Lu=r.forwardRef((function(e,t){var n=e.children,o=e.disabled,i=e.target,a=e.align,u=e.onAlign,s=e.monitorWindowResize,c=e.monitorBufferTime,l=void 0===c?0:c,f=r.useRef({}),p=r.useRef(),d=r.Children.only(n),h=r.useRef({});h.current.disabled=o,h.current.target=i,h.current.onAlign=u;var v=Tu(function(e,t){var n=r.useRef(!1),o=r.useRef(null);function i(){window.clearTimeout(o.current)}return[function r(a){if(n.current&&!0!==a)i(),o.current=window.setTimeout((function(){n.current=!1,r()}),t);else{if(!1===e())return;n.current=!0,i(),o.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,i()}]}((function(){var e=h.current,t=e.disabled,n=e.target;if(!t&&n){var r,o=p.current,i=Nu(n),s=Ru(n);f.current.element=i,f.current.point=s;var c=document.activeElement;return i?r=au(o,i,a):s&&(r=uu(o,s,a)),function(e,t){e!==document.activeElement&&Ri(t,e)&&e.focus()}(c,o),u&&u(o,r),!0}return!1}),l),2),y=v[0],m=v[1],g=r.useRef({cancel:function(){}}),b=r.useRef({cancel:function(){}});r.useEffect((function(){var e,t,n=Nu(i),r=Ru(i);p.current!==b.current.element&&(b.current.cancel(),b.current.element=p.current,b.current.cancel=Au(p.current,y)),f.current.element===n&&((e=f.current.point)===(t=r)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))||(y(),g.current.element!==n&&(g.current.cancel(),g.current.element=n,g.current.cancel=Au(n,y)))})),r.useEffect((function(){o?m():y()}),[o]);var _=r.useRef(null);return r.useEffect((function(){s?_.current||(_.current=Go(window,"resize",y)):_.current&&(_.current.remove(),_.current=null)}),[s]),r.useEffect((function(){return function(){g.current.cancel(),b.current.cancel(),_.current&&_.current.remove(),m()}}),[]),r.useImperativeHandle(t,(function(){return{forceAlign:function(){return y(!0)}}})),r.isValidElement(d)&&(d=r.cloneElement(d,{ref:Wi(d.ref,p)})),d}));function Iu(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function Fu(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function Wu(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}Lu.displayName="Align",Iu.__suppressDeprecationWarning=!0,Fu.__suppressDeprecationWarning=!0,Wu.__suppressDeprecationWarning=!0;var Vu=!("undefined"==typeof window||!window.document||!window.document.createElement);function Bu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}var Uu,zu,Hu,$u=(Uu=Vu,zu="undefined"!=typeof window?window:{},Hu={animationend:Bu("Animation","AnimationEnd"),transitionend:Bu("Transition","TransitionEnd")},Uu&&("AnimationEvent"in zu||delete Hu.animationend.animation,"TransitionEvent"in zu||delete Hu.transitionend.transition),Hu),Yu={};Vu&&(Yu=document.createElement("div").style);var qu={};function Ku(e){if(qu[e])return qu[e];var t=$u[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&(p=r.createElement("div",{className:"".concat(n,"-content")},u)),r.createElement("div",{ref:t,className:Zo(o,!i&&"".concat(e.hiddenClassName)),onMouseEnter:s,onMouseLeave:c,onMouseDown:l,onTouchStart:f,style:a},p)}));function as(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function us(e){return(us="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})(e)}function ss(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ls(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Vs=e.forwardRef((function(t,n){var o=t.overlayClassName,i=t.trigger,a=void 0===i?["hover"]:i,u=t.mouseEnterDelay,s=void 0===u?0:u,c=t.mouseLeaveDelay,l=void 0===c?.1:c,f=t.overlayStyle,p=t.prefixCls,d=void 0===p?"rc-tooltip":p,h=t.children,v=t.onVisibleChange,y=t.afterVisibleChange,m=t.transitionName,g=t.animation,b=t.placement,_=void 0===b?"right":b,w=t.align,O=void 0===w?{}:w,x=t.destroyTooltipOnHide,E=void 0!==x&&x,S=t.defaultVisible,k=t.getTooltipContainer,j=Ws(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer"]),C=e.useRef(null);e.useImperativeHandle(n,(function(){return C.current}));var M=function(e){for(var t=1;t0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var sl=ul(Ic),cl=/\{\n\/\* \[wrapped with (.+)\] \*/,ll=/,? & /;var fl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function pl(e){return function(){return e}}var dl=function(){try{var e=Nc(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),hl=ul(dl?function(e,t){return dl(e,"toString",{configurable:!0,enumerable:!1,value:pl(t),writable:!0})}:_c);function vl(e,t){for(var n=-1,r=null==e?0:e.length;++n-1}var _l=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function wl(e,t,n){var r=t+"";return hl(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(fl,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return vl(_l,(function(n){var r="_."+n[0];t&n[1]&&!bl(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(cl);return t?t[1].split(ll):[]}(r),n)))}function Ol(e,t,n,r,o,i,a,u,s,c){var l=8&t;t|=l?32:64,4&(t&=~(l?64:32))||(t&=-4);var f=[e,t,o,l?i:void 0,l?a:void 0,l?void 0:i,l?void 0:a,u,s,c],p=n.apply(void 0,f);return il(e)&&sl(p,f),p.placeholder=r,wl(p,e,t)}function xl(e){return e.placeholder}var El=/^(?:0|[1-9]\d*)$/;function Sl(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&El.test(e))&&e>-1&&e%1==0&&e1&&g.reverse(),l&&s-1&&e%1==0&&e<=9007199254740991}function Yl(e){return null!=e&&$l(e.length)&&!wc(e)}function ql(e,t,n){if(!lc(n))return!1;var r=typeof t;return!!("number"==r?Yl(n)&&Sl(t,n.length):"string"==r&&t in n)&&Fl(n[t],e)}function Kl(e){return Hl((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&ql(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1},Bf.prototype.set=function(e,t){var n=this.__data__,r=Wf(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var Uf=Nc($s,"Map");function zf(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Hf(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t0&&n(u)?t>1?op(u,t-1,n,r,o):tp(o,u):r||(o[o.length]=u)}return o}function ip(e){return(null==e?0:e.length)?op(e,1):[]}function ap(e){return hl(zl(e,void 0,ip),e+"")}var up=ap(ep),sp=bf(Object.getPrototypeOf,Object),cp=Function.prototype,lp=Object.prototype,fp=cp.toString,pp=lp.hasOwnProperty,dp=fp.call(Object);function hp(e){if(!ec(e)||"[object Object]"!=Qs(e))return!1;var t=sp(e);if(null===t)return!0;var n=pp.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&fp.call(n)==dp}function vp(e){if(!ec(e))return!1;var t=Qs(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!hp(e)}var yp=Hl((function(e,t){try{return Bc(e,void 0,t)}catch(e){return vp(e)?e:new Error(e)}}));function mp(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=bc(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var gp=Hl((function(e,t,n){var r=1;if(n.length){var o=Ml(n,xl(gp));r|=32}return Rl(e,r,t,n,o)}));gp.placeholder={};var bp=ap((function(e,t){return vl(t,(function(t){t=Zf(t),Il(e,t,gp(e[t],e))})),e})),_p=Hl((function(e,t,n){var r=3;if(n.length){var o=Ml(n,xl(_p));r|=32}return Rl(t,r,e,n,o)}));function wp(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:wp(e,t,n)}_p.placeholder={};var xp=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Ep(e){return xp.test(e)}var Sp="[\\ud800-\\udfff]",kp="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",jp="\\ud83c[\\udffb-\\udfff]",Cp="[^\\ud800-\\udfff]",Mp="(?:\\ud83c[\\udde6-\\uddff]){2}",Pp="[\\ud800-\\udbff][\\udc00-\\udfff]",Ap="(?:"+kp+"|"+jp+")"+"?",Tp="[\\ufe0e\\ufe0f]?",Dp=Tp+Ap+("(?:\\u200d(?:"+[Cp,Mp,Pp].join("|")+")"+Tp+Ap+")*"),Np="(?:"+[Cp+kp+"?",kp,Mp,Pp,Sp].join("|")+")",Rp=RegExp(jp+"(?="+jp+")|"+Np+Dp,"g");function Lp(e){return Ep(e)?function(e){return e.match(Rp)||[]}(e):function(e){return e.split("")}(e)}function Ip(e){return function(t){var n=Ep(t=Xf(t))?Lp(t):void 0,r=n?n[0]:t.charAt(0),o=n?Op(n,1).join(""):t.slice(1);return r[e]()+o}}var Fp=Ip("toUpperCase");function Wp(e){return Fp(Xf(e).toLowerCase())}function Vp(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o=t?e:t)),e}function jd(e){var t=this.__data__=new Bf(e);this.size=t.size}function Cd(e,t){return e&&Bl(t,xf(t),e)}jd.prototype.clear=function(){this.__data__=new Bf,this.size=0},jd.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},jd.prototype.get=function(e){return this.__data__.get(e)},jd.prototype.has=function(e){return this.__data__.has(e)},jd.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Bf){var r=n.__data__;if(!Uf||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hf(r)}return n.set(e,t),this.size=n.size,this};var Md="object"==typeof exports&&exports&&!exports.nodeType&&exports,Pd=Md&&"object"==typeof module&&module&&!module.nodeType&&module,Ad=Pd&&Pd.exports===Md?$s.Buffer:void 0,Td=Ad?Ad.allocUnsafe:void 0;function Dd(e,t){if(t)return e.slice();var n=e.length,r=Td?Td(n):new e.constructor(n);return e.copy(r),r}function Nd(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++nu))return!1;var c=i.get(e),l=i.get(t);if(c&&l)return c==t&&l==e;var f=-1,p=!0,d=2&n?new Oh:void 0;for(i.set(e,t),i.set(t,e);++f=t||n<0||f&&e-c>=i}function y(){var e=sv();if(v(e))return m(e);u=setTimeout(y,function(e){var n=t-(e-s);return f?lv(n,i-(e-c)):n}(e))}function m(e){return u=void 0,p&&r?d(e):(r=o=void 0,a)}function g(){var e=sv(),n=v(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return clearTimeout(u),u=setTimeout(y,t),d(s)}return void 0===u&&(u=setTimeout(y,t)),a}return t=yc(t)||0,lc(n)&&(l=!!n.leading,i=(f="maxWait"in n)?cv(yc(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),g.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=s=o=u=void 0},g.flush=function(){return void 0===u?a:m(sv())},g}var pv=Object.prototype,dv=pv.hasOwnProperty,hv=Hl((function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&ql(t[0],t[1],o)&&(r=1);++n=200&&(i=Eh,a=!1,t=new Oh(t));e:for(;++o":">",'"':""","'":"'"}),$v=/[&<>"']/g,Yv=RegExp($v.source);function qv(e){return(e=Xf(e))&&Yv.test(e)?e.replace($v,Hv):e}var Kv=/[\\^$.*+?()[\]{}|]/g,Xv=RegExp(Kv.source);function Gv(e,t){for(var n=-1,r=null==e?0:e.length;++n-1?o[i?t[a]:a]:void 0}}var ty=Math.max;function ny(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:bc(n);return o<0&&(o=ty(r+o,0)),yl(e,Kh(t),o)}var ry=ey(ny);function oy(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}var iy=Math.max,ay=Math.min;function uy(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=bc(n),o=n<0?iy(r+o,0):ay(o,r-1)),yl(e,Kh(t),o,!0)}var sy=ey(uy);function cy(e){return e&&e.length?e[0]:void 0}function ly(e,t){var n=-1,r=Yl(e)?Array(e.length):[];return tv(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function fy(e,t){return(oc(e)?rc:ly)(e,Kh(t))}var py=wd("floor");function dy(e){return ap((function(t){var n=t.length,r=n,o=el.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new TypeError("Expected a function");if(o&&!a&&"wrapper"==Qc(i))var a=new el([],!0)}for(r=a?r:n;++rt}function _y(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=yc(t),n=yc(n)),e(t,n)}}var wy=_y(by),Oy=_y((function(e,t){return e>=t})),xy=Object.prototype.hasOwnProperty;function Ey(e,t){return null!=e&&xy.call(e,t)}var Sy=Math.max,ky=Math.min;function jy(e){return"string"==typeof e||!oc(e)&&ec(e)&&"[object String]"==Qs(e)}function Cy(e,t){return rc(t,(function(t){return e[t]}))}function My(e){return null==e?[]:Cy(e,xf(e))}var Py=Math.max;var Ay=Math.max;var Ty=Math.min;function Dy(e,t,n){for(var r=n?kv:bl,o=e[0].length,i=e.length,a=i,u=Array(i),s=1/0,c=[];a--;){var l=e[a];a&&t&&(l=rc(l,lf(t))),s=Ty(l.length,s),u[a]=!n&&(t||o>=120&&l.length>=120)?new Oh(a&&l):void 0}l=e[0];var f=-1,p=u[0];e:for(;++f1),t})),Bl(e,Ud(e),n),r&&(n=wh(n,7,Pm));for(var o=t.length;o--;)Mm(n,t[o]);return n}));function Tm(e,t,n,r){if(!lc(e))return e;for(var o=-1,i=(t=Gf(t,e)).length,a=i-1,u=e;null!=u&&++ot||i&&a&&s&&!u&&!c||r&&a&&s||!n&&s||!o)return 1;if(!r&&!i&&!c&&e=u?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Im(e){return ap((function(t){return t=rc(t,lf(Kh)),Hl((function(n){var r=this;return e(t,(function(e){return Bc(e,r,n)}))}))}))}var Fm=Im(rc),Wm=Hl,Vm=Math.min,Bm=Wm((function(e,t){var n=(t=1==t.length&&oc(t[0])?rc(t[0],lf(Kh)):rc(op(t,1),lf(Kh))).length;return Hl((function(r){for(var o=-1,i=Vm(r.length,n);++o9007199254740991)return n;do{t%2&&(n+=e),(t=Hm(t/2))&&(e+=e)}while(t);return n}var Ym=Yh("length"),qm="[\\ud800-\\udfff]",Km="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Xm="\\ud83c[\\udffb-\\udfff]",Gm="[^\\ud800-\\udfff]",Zm="(?:\\ud83c[\\udde6-\\uddff]){2}",Jm="[\\ud800-\\udbff][\\udc00-\\udfff]",Qm="(?:"+Km+"|"+Xm+")"+"?",eg="[\\ufe0e\\ufe0f]?",tg=eg+Qm+("(?:\\u200d(?:"+[Gm,Zm,Jm].join("|")+")"+eg+Qm+")*"),ng="(?:"+[Gm+Km+"?",Km,Zm,Jm,qm].join("|")+")",rg=RegExp(Xm+"(?="+Xm+")|"+ng+tg,"g");function og(e){return Ep(e)?function(e){for(var t=rg.lastIndex=0;rg.test(e);)++t;return t}(e):Ym(e)}var ig=Math.ceil;function ag(e,t){var n=(t=void 0===t?" ":uc(t)).length;if(n<2)return n?$m(t,e):t;var r=$m(t,ig(e/og(t)));return Ep(t)?Op(Lp(r),0,e).join(""):r.slice(0,e)}var ug=Math.ceil,sg=Math.floor;var cg=/^\s+/,lg=$s.parseInt;var fg=Hl((function(e,t){return Rl(e,32,void 0,t,Ml(t,xl(fg)))}));fg.placeholder={};var pg=Hl((function(e,t){return Rl(e,64,void 0,t,Ml(t,xl(pg)))}));pg.placeholder={};var dg=rv((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var hg=ap((function(e,t){return null==e?{}:function(e,t){return Dm(e,t,(function(t,n){return Hh(e,n)}))}(e,t)}));function vg(e,t,n,r){for(var o=n-1,i=e.length;++o-1;)u!==e&&yg.call(u,s,1),yg.call(e,s,1);return e}function gg(e,t){return e&&e.length&&t&&t.length?mg(e,t):e}var bg=Hl(gg);var _g=Array.prototype.splice;function wg(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Sl(o)?_g.call(e,o,1):Mm(e,o)}}return e}var Og=ap((function(e,t){var n=null==e?0:e.length,r=ep(e,t);return wg(e,rc(t,(function(e){return Sl(e,n)?+e:e})).sort(Rm)),r})),xg=Math.floor,Eg=Math.random;function Sg(e,t){return e+xg(Eg()*(t-e+1))}var kg=parseFloat,jg=Math.min,Cg=Math.random;var Mg=Math.ceil,Pg=Math.max;function Ag(e){return function(t,n,r){return r&&"number"!=typeof r&&ql(t,n,r)&&(n=r=void 0),t=gc(t),void 0===n?(n=t,t=0):n=gc(n),function(e,t,n,r){for(var o=-1,i=Pg(Mg((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,n,r=void 0===r?t1&&ql(e,t[0],t[1])?t=[]:n>2&&ql(t[0],t[1],t[2])&&(t=[t[0]]),Lm(e,op(t,1),[])})),Gg=Math.floor,Zg=Math.min;function Jg(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,u=null===t,s=tc(t),c=void 0===t;o>>1,a=e[i];null!==a&&!tc(a)&&(n?a<=t:a/g,lb={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:cb,variable:"",imports:{_:{escape:qv}}},fb=/\b__p \+= '';/g,pb=/\b(__p \+=) '' \+/g,db=/(__e\(.*?\)|\b__t\)) \+\n'';/g,hb=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vb=/($^)/,yb=/['\n\r\u2028\u2029\\]/g,mb=Object.prototype.hasOwnProperty;function gb(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return lc(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),fv(e,t,{leading:r,maxWait:t,trailing:o})}function bb(e,t){return t(e)}var _b=4294967295,wb=Math.min;function Ob(e,t){var n=e;return n instanceof Kc&&(n=n.value()),Vp(t,(function(e,t){return t.func.apply(t.thisArg,tp([e],t.args))}),n)}function xb(){return Ob(this.__wrapped__,this.__actions__)}var Eb=9007199254740991;function Sb(e,t){for(var n=e.length;n--&&gl(t,e[n],0)>-1;);return n}function kb(e,t){for(var n=-1,r=e.length;++n-1;);return n}var jb=/^\s+|\s+$/g;var Cb=/\s+$/;var Mb=/^\s+/;var Pb=/\w*$/;var Ab=Bp({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Tb=/&(?:amp|lt|gt|quot|#39);/g,Db=RegExp(Tb.source);var Nb=$d&&1/jh(new $d([,-0]))[1]==1/0?function(e){return new $d(e)}:Xc;function Rb(e,t,n){var r=-1,o=bl,i=e.length,a=!0,u=[],s=u;if(n)a=!1,o=kv;else if(i>=200){var c=t?null:Nb(e);if(c)return jh(c);a=!1,o=Eh,s=new Oh}else s=t?[]:u;e:for(;++r1||this.__actions__.length)&&r instanceof Kc&&Sl(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:bb,args:[o],thisArg:void 0}),new el(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));function qb(e,t,n){var r=e.length;if(r<2)return r?Rb(e[0]):[];for(var o=-1,i=Array(r);++o1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Ub(e,n)})),e_={chunk:function(e,t,n){t=(n?ql(e,t,n):void 0===t)?1:Sd(bc(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=Array(Ed(r/t));oo?0:o+n),(r=void 0===r||r>o?o:bc(r))<0&&(r+=o),r=n>r?0:Jv(r);n-1:!!o&&gl(e,t,n)>-1},invokeMap:Ky,keyBy:cm,map:fy,orderBy:function(e,t,n,r){return null==e?[]:(oc(t)||(t=null==t?[]:[t]),oc(n=r?void 0:n)||(n=null==n?[]:[n]),Lm(e,t,n))},partition:dg,reduce:function(e,t,n){var r=oc(e)?Vp:Rg,o=arguments.length<3;return r(e,Kh(t),n,o,tv)},reduceRight:function(e,t,n){var r=oc(e)?Lg:Rg,o=arguments.length<3;return r(e,Kh(t),n,o,Wv)},reject:function(e,t){return(oc(e)?Nd:Qv)(e,Sm(Kh(t)))},sample:function(e){return(oc(e)?Vg:Bg)(e)},sampleSize:function(e,t,n){return t=(n?ql(e,t,n):void 0===t)?1:bc(t),(oc(e)?zg:Hg)(e,t)},shuffle:function(e){return(oc(e)?$g:Yg)(e)},size:function(e){if(null==e)return 0;if(Yl(e))return jy(e)?og(e):e.length;var t=rh(e);return"[object Map]"==t||"[object Set]"==t?e.size:Of(e).length},some:function(e,t,n){var r=oc(e)?xh:Kg;return n&&ql(e,t,n)&&(t=void 0),r(e,Kh(t))},sortBy:Xg},n_=sv,r_={after:function(e,t){if("function"!=typeof t)throw new TypeError("Expected a function");return e=bc(e),function(){if(--e<1)return t.apply(this,arguments)}},ary:Ll,before:mp,bind:gp,bindKey:_p,curry:av,curryRight:uv,debounce:fv,defer:Ev,delay:Sv,flip:function(e){return Rl(e,512)},memoize:$f,negate:Sm,once:function(e){return mp(2,e)},overArgs:Bm,partial:fg,partialRight:pg,rearg:Ng,rest:function(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return Hl(e,t=void 0===t?t:bc(t))},spread:function(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return t=null==t?0:tb(bc(t),0),Hl((function(n){var r=n[t],o=Op(n,0,t);return r&&tp(o,r),Bc(e,this,o)}))},throttle:gb,unary:function(e){return Ll(e,1)},wrap:function(e,t){return fg(Nv(t),e)}},o_={castArray:function(){if(!arguments.length)return[];var e=arguments[0];return oc(e)?e:[e]},clone:function(e){return wh(e,4)},cloneDeep:function(e){return wh(e,5)},cloneDeepWith:function(e,t){return wh(e,5,t="function"==typeof t?t:void 0)},cloneWith:function(e,t){return wh(e,4,t="function"==typeof t?t:void 0)},conformsTo:function(e,t){return null==t||Xh(e,t,xf(t))},eq:Fl,gt:wy,gte:Oy,isArguments:nf,isArray:oc,isArrayBuffer:Gy,isArrayLike:Yl,isArrayLikeObject:yv,isBoolean:function(e){return!0===e||!1===e||ec(e)&&"[object Boolean]"==Qs(e)},isBuffer:sf,isDate:Jy,isElement:function(e){return ec(e)&&1===e.nodeType&&!hp(e)},isEmpty:function(e){if(null==e)return!0;if(Yl(e)&&(oc(e)||"string"==typeof e||"function"==typeof e.splice||sf(e)||yf(e)||nf(e)))return!e.length;var t=rh(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(Gl(e))return!Of(e).length;for(var n in e)if(Qy.call(e,n))return!1;return!0},isEqual:function(e,t){return Lh(e,t)},isEqualWith:function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?Lh(e,t,void 0,n):!!r},isError:vp,isFinite:function(e){return"number"==typeof e&&em(e)},isFunction:wc,isInteger:tm,isLength:$l,isMap:hh,isMatch:function(e,t){return e===t||Ih(e,t,Wh(t))},isMatchWith:function(e,t,n){return n="function"==typeof n?n:void 0,Ih(e,t,Wh(t),n)},isNaN:function(e){return nm(e)&&e!=+e},isNative:function(e){if(rm(e))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dc(e)},isNil:function(e){return null==e},isNull:function(e){return null===e},isNumber:nm,isObject:lc,isObjectLike:ec,isPlainObject:hp,isRegExp:im,isSafeInteger:function(e){return tm(e)&&e>=-9007199254740991&&e<=am},isSet:yh,isString:jy,isSymbol:tc,isTypedArray:yf,isUndefined:function(e){return void 0===e},isWeakMap:function(e){return ec(e)&&"[object WeakMap]"==rh(e)},isWeakSet:function(e){return ec(e)&&"[object WeakSet]"==Qs(e)},lt:vm,lte:ym,toArray:jm,toFinite:gc,toInteger:bc,toLength:Jv,toNumber:yc,toPlainObject:gv,toSafeInteger:function(e){return e?kd(bc(e),-9007199254740991,Eb):0===e?e:0},toString:Xf},i_={add:cc,ceil:Od,divide:Tv,floor:py,max:function(e){return e&&e.length?mm(e,_c,by):void 0},maxBy:function(e,t){return e&&e.length?mm(e,Kh(t),by):void 0},mean:function(e){return bm(e,_c)},meanBy:function(e,t){return bm(e,Kh(t))},min:function(e){return e&&e.length?mm(e,_c,hm):void 0},minBy:function(e,t){return e&&e.length?mm(e,Kh(t),hm):void 0},multiply:Em,round:Wg,subtract:rb,sum:function(e){return e&&e.length?gm(e,_c):0},sumBy:function(e,t){return e&&e.length?gm(e,Kh(t)):0}},a_=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=yc(n))==n?n:0),void 0!==t&&(t=(t=yc(t))==t?t:0),kd(yc(e),t,n)},u_=function(e,t,n){return t=gc(t),void 0===n?(n=t,t=0):n=gc(n),function(e,t,n){return e>=ky(t,n)&&et){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Cg();return jg(e+o*(t-e+kg("1e-"+((o+"").length-1))),t)}return Sg(e,t)},c_={assign:Sf,assignIn:Mf,assignInWith:Pf,assignWith:Af,at:up,create:function(e,t){var n=Wc(e);return null==t?n:Cd(n,t)},defaults:hv,defaultsDeep:Ov,entries:Uv,entriesIn:zv,extend:Mf,extendWith:Pf,findKey:function(e,t){return oy(e,Kh(t),Qh)},findLastKey:function(e,t){return oy(e,Kh(t),Fv)},forIn:function(e,t){return null==e?e:Jh(e,Nv(t),Cf)},forInRight:function(e,t){return null==e?e:Iv(e,Nv(t),Cf)},forOwn:function(e,t){return e&&Qh(e,Nv(t))},forOwnRight:function(e,t){return e&&Fv(e,Nv(t))},functions:function(e){return null==e?[]:yy(e,xf(e))},functionsIn:function(e){return null==e?[]:yy(e,Cf(e))},get:Qf,has:function(e,t){return null!=e&&zh(e,t,Ey)},hasIn:Hh,invert:Vy,invertBy:Hy,invoke:qy,keys:xf,keysIn:Cf,mapKeys:function(e,t){var n={};return t=Kh(t),Qh(e,(function(e,r,o){Il(n,t(e,r,o),e)})),n},mapValues:function(e,t){var n={};return t=Kh(t),Qh(e,(function(e,r,o){Il(n,r,t(e,r,o))})),n},merge:_m,mergeWith:wv,omit:Am,omitBy:function(e,t){return Nm(e,Sm(Kh(t)))},pick:hg,pickBy:Nm,result:function(e,t,n){var r=-1,o=(t=Gf(t,e)).length;for(o||(o=1,e=void 0);++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},plant:function(e){for(var t,n=this;n instanceof qc;){var r=nl(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},reverse:function(){var e=this.__wrapped__;if(e instanceof Kc){var t=e;return this.__actions__.length&&(t=new Kc(this)),(t=t.reverse()).__actions__.push({func:bb,args:[Fg],thisArg:void 0}),new el(t,this.__chain__)}return this.thru(Fg)},tap:function(e,t){return t(e),e},thru:bb,toIterator:function(){return this},toJSON:xb,value:xb,valueOf:xb,wrapperChain:function(){return xd(this)}},f_={camelCase:gd,capitalize:Wp,deburr:$p,endsWith:function(e,t,n){e=Xf(e),t=uc(t);var r=e.length,o=n=void 0===n?r:kd(bc(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},escape:qv,escapeRegExp:function(e){return(e=Xf(e))&&Xv.test(e)?e.replace(Kv,"\\$&"):e},kebabCase:sm,lowerCase:pm,lowerFirst:dm,pad:function(e,t,n){e=Xf(e);var r=(t=bc(t))?og(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return ag(sg(o),n)+e+ag(ug(o),n)},padEnd:function(e,t,n){e=Xf(e);var r=(t=bc(t))?og(e):0;return t&&r>>0)?(e=Xf(e))&&("string"==typeof t||null!=t&&!im(t))&&!(t=uc(t))&&Ep(e)?Op(Lp(e),0,n):e.split(t,n):[]},startCase:nb,startsWith:function(e,t,n){return e=Xf(e),n=null==n?0:kd(bc(n),0,e.length),t=uc(t),e.slice(n,n+t.length)==t},template:function(e,t,n){var r=lb.imports._.templateSettings||lb;n&&ql(e,t,n)&&(t=void 0),e=Xf(e),t=Pf({},t,r,ab);var o,i,a=Pf({},t.imports,r.imports,ab),u=xf(a),s=Cy(a,u),c=0,l=t.interpolate||vb,f="__p += '",p=RegExp((t.escape||vb).source+"|"+l.source+"|"+(l===cb?hb:vb).source+"|"+(t.evaluate||vb).source+"|$","g"),d=mb.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(p,(function(t,n,r,a,u,s){return r||(r=a),f+=e.slice(c,s).replace(yb,sb),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),u&&(i=!0,f+="';\n"+u+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+t.length,t})),f+="';\n";var h=mb.call(t,"variable")&&t.variable;h||(f="with (obj) {\n"+f+"\n}\n"),f=(i?f.replace(fb,""):f).replace(pb,"$1").replace(db,"$1;"),f="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=yp((function(){return Function(u,d+"return "+f).apply(void 0,s)}));if(v.source=f,vp(v))throw v;return v},templateSettings:lb,toLower:function(e){return Xf(e).toLowerCase()},toUpper:function(e){return Xf(e).toUpperCase()},trim:function(e,t,n){if((e=Xf(e))&&(n||void 0===t))return e.replace(jb,"");if(!e||!(t=uc(t)))return e;var r=Lp(e),o=Lp(t);return Op(r,kb(r,o),Sb(r,o)+1).join("")},trimEnd:function(e,t,n){if((e=Xf(e))&&(n||void 0===t))return e.replace(Cb,"");if(!e||!(t=uc(t)))return e;var r=Lp(e);return Op(r,0,Sb(r,Lp(t))+1).join("")},trimStart:function(e,t,n){if((e=Xf(e))&&(n||void 0===t))return e.replace(Mb,"");if(!e||!(t=uc(t)))return e;var r=Lp(e);return Op(r,kb(r,Lp(t))).join("")},truncate:function(e,t){var n=30,r="...";if(lc(t)){var o="separator"in t?t.separator:o;n="length"in t?bc(t.length):n,r="omission"in t?uc(t.omission):r}var i=(e=Xf(e)).length;if(Ep(e)){var a=Lp(e);i=a.length}if(n>=i)return e;var u=n-og(r);if(u<1)return r;var s=a?Op(a,0,u).join(""):e.slice(0,u);if(void 0===o)return s+r;if(a&&(u+=s.length-u),im(o)){if(e.slice(u).search(o)){var c,l=s;for(o.global||(o=RegExp(o.source,Xf(Pb.exec(o))+"g")),o.lastIndex=0;c=o.exec(l);)var f=c.index;s=s.slice(0,void 0===f?u:f)}}else if(e.indexOf(uc(o),u)!=u){var p=s.lastIndexOf(o);p>-1&&(s=s.slice(0,p))}return s+r},unescape:function(e){return(e=Xf(e))&&Db.test(e)?e.replace(Tb,Ab):e},upperCase:Hb,upperFirst:Fp,words:vd},p_={attempt:yp,bindAll:bp,cond:function(e){var t=null==e?0:e.length,n=Kh;return e=t?rc(e,(function(e){if("function"!=typeof e[1])throw new TypeError("Expected a function");return[n(e[0]),e[1]]})):[],Hl((function(n){for(var r=-1;++r9007199254740991)return[];var n=_b,r=wb(e,_b);t=Nv(t),e-=_b;for(var o=Zl(r,t);++n @@ -29,4 +29,4 @@ var zo=Object.getOwnPropertySymbols,Ho=Object.prototype.hasOwnProperty,$o=Object * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */ -var y_,m_=4294967295,g_=Array.prototype,b_=Object.prototype.hasOwnProperty,__=Ys?Ys.iterator:void 0,w_=Math.max,O_=Math.min,x_=function(e){return function(t,n,r){if(null==r){var o=lc(n),i=o&&xf(n),a=i&&i.length&&yy(n,i);(a?a.length:o)||(r=n,n=t,t=this)}return e(t,n,r)}}(xm);ol.after=r_.after,ol.ary=r_.ary,ol.assign=c_.assign,ol.assignIn=c_.assignIn,ol.assignInWith=c_.assignInWith,ol.assignWith=c_.assignWith,ol.at=c_.at,ol.before=r_.before,ol.bind=r_.bind,ol.bindAll=p_.bindAll,ol.bindKey=r_.bindKey,ol.castArray=o_.castArray,ol.chain=l_.chain,ol.chunk=e_.chunk,ol.compact=e_.compact,ol.concat=e_.concat,ol.cond=p_.cond,ol.conforms=p_.conforms,ol.constant=p_.constant,ol.countBy=t_.countBy,ol.create=c_.create,ol.curry=r_.curry,ol.curryRight=r_.curryRight,ol.debounce=r_.debounce,ol.defaults=c_.defaults,ol.defaultsDeep=c_.defaultsDeep,ol.defer=r_.defer,ol.delay=r_.delay,ol.difference=e_.difference,ol.differenceBy=e_.differenceBy,ol.differenceWith=e_.differenceWith,ol.drop=e_.drop,ol.dropRight=e_.dropRight,ol.dropRightWhile=e_.dropRightWhile,ol.dropWhile=e_.dropWhile,ol.fill=e_.fill,ol.filter=t_.filter,ol.flatMap=t_.flatMap,ol.flatMapDeep=t_.flatMapDeep,ol.flatMapDepth=t_.flatMapDepth,ol.flatten=e_.flatten,ol.flattenDeep=e_.flattenDeep,ol.flattenDepth=e_.flattenDepth,ol.flip=r_.flip,ol.flow=p_.flow,ol.flowRight=p_.flowRight,ol.fromPairs=e_.fromPairs,ol.functions=c_.functions,ol.functionsIn=c_.functionsIn,ol.groupBy=t_.groupBy,ol.initial=e_.initial,ol.intersection=e_.intersection,ol.intersectionBy=e_.intersectionBy,ol.intersectionWith=e_.intersectionWith,ol.invert=c_.invert,ol.invertBy=c_.invertBy,ol.invokeMap=t_.invokeMap,ol.iteratee=p_.iteratee,ol.keyBy=t_.keyBy,ol.keys=xf,ol.keysIn=c_.keysIn,ol.map=t_.map,ol.mapKeys=c_.mapKeys,ol.mapValues=c_.mapValues,ol.matches=p_.matches,ol.matchesProperty=p_.matchesProperty,ol.memoize=r_.memoize,ol.merge=c_.merge,ol.mergeWith=c_.mergeWith,ol.method=p_.method,ol.methodOf=p_.methodOf,ol.mixin=x_,ol.negate=Sm,ol.nthArg=p_.nthArg,ol.omit=c_.omit,ol.omitBy=c_.omitBy,ol.once=r_.once,ol.orderBy=t_.orderBy,ol.over=p_.over,ol.overArgs=r_.overArgs,ol.overEvery=p_.overEvery,ol.overSome=p_.overSome,ol.partial=r_.partial,ol.partialRight=r_.partialRight,ol.partition=t_.partition,ol.pick=c_.pick,ol.pickBy=c_.pickBy,ol.property=p_.property,ol.propertyOf=p_.propertyOf,ol.pull=e_.pull,ol.pullAll=e_.pullAll,ol.pullAllBy=e_.pullAllBy,ol.pullAllWith=e_.pullAllWith,ol.pullAt=e_.pullAt,ol.range=p_.range,ol.rangeRight=p_.rangeRight,ol.rearg=r_.rearg,ol.reject=t_.reject,ol.remove=e_.remove,ol.rest=r_.rest,ol.reverse=e_.reverse,ol.sampleSize=t_.sampleSize,ol.set=c_.set,ol.setWith=c_.setWith,ol.shuffle=t_.shuffle,ol.slice=e_.slice,ol.sortBy=t_.sortBy,ol.sortedUniq=e_.sortedUniq,ol.sortedUniqBy=e_.sortedUniqBy,ol.split=f_.split,ol.spread=r_.spread,ol.tail=e_.tail,ol.take=e_.take,ol.takeRight=e_.takeRight,ol.takeRightWhile=e_.takeRightWhile,ol.takeWhile=e_.takeWhile,ol.tap=l_.tap,ol.throttle=r_.throttle,ol.thru=bb,ol.toArray=o_.toArray,ol.toPairs=c_.toPairs,ol.toPairsIn=c_.toPairsIn,ol.toPath=p_.toPath,ol.toPlainObject=o_.toPlainObject,ol.transform=c_.transform,ol.unary=r_.unary,ol.union=e_.union,ol.unionBy=e_.unionBy,ol.unionWith=e_.unionWith,ol.uniq=e_.uniq,ol.uniqBy=e_.uniqBy,ol.uniqWith=e_.uniqWith,ol.unset=c_.unset,ol.unzip=e_.unzip,ol.unzipWith=e_.unzipWith,ol.update=c_.update,ol.updateWith=c_.updateWith,ol.values=c_.values,ol.valuesIn=c_.valuesIn,ol.without=e_.without,ol.words=f_.words,ol.wrap=r_.wrap,ol.xor=e_.xor,ol.xorBy=e_.xorBy,ol.xorWith=e_.xorWith,ol.zip=e_.zip,ol.zipObject=e_.zipObject,ol.zipObjectDeep=e_.zipObjectDeep,ol.zipWith=e_.zipWith,ol.entries=c_.toPairs,ol.entriesIn=c_.toPairsIn,ol.extend=c_.assignIn,ol.extendWith=c_.assignInWith,x_(ol,ol),ol.add=i_.add,ol.attempt=p_.attempt,ol.camelCase=f_.camelCase,ol.capitalize=f_.capitalize,ol.ceil=i_.ceil,ol.clamp=a_,ol.clone=o_.clone,ol.cloneDeep=o_.cloneDeep,ol.cloneDeepWith=o_.cloneDeepWith,ol.cloneWith=o_.cloneWith,ol.conformsTo=o_.conformsTo,ol.deburr=f_.deburr,ol.defaultTo=p_.defaultTo,ol.divide=i_.divide,ol.endsWith=f_.endsWith,ol.eq=o_.eq,ol.escape=f_.escape,ol.escapeRegExp=f_.escapeRegExp,ol.every=t_.every,ol.find=t_.find,ol.findIndex=e_.findIndex,ol.findKey=c_.findKey,ol.findLast=t_.findLast,ol.findLastIndex=e_.findLastIndex,ol.findLastKey=c_.findLastKey,ol.floor=i_.floor,ol.forEach=t_.forEach,ol.forEachRight=t_.forEachRight,ol.forIn=c_.forIn,ol.forInRight=c_.forInRight,ol.forOwn=c_.forOwn,ol.forOwnRight=c_.forOwnRight,ol.get=c_.get,ol.gt=o_.gt,ol.gte=o_.gte,ol.has=c_.has,ol.hasIn=c_.hasIn,ol.head=e_.head,ol.identity=_c,ol.includes=t_.includes,ol.indexOf=e_.indexOf,ol.inRange=u_,ol.invoke=c_.invoke,ol.isArguments=o_.isArguments,ol.isArray=oc,ol.isArrayBuffer=o_.isArrayBuffer,ol.isArrayLike=o_.isArrayLike,ol.isArrayLikeObject=o_.isArrayLikeObject,ol.isBoolean=o_.isBoolean,ol.isBuffer=o_.isBuffer,ol.isDate=o_.isDate,ol.isElement=o_.isElement,ol.isEmpty=o_.isEmpty,ol.isEqual=o_.isEqual,ol.isEqualWith=o_.isEqualWith,ol.isError=o_.isError,ol.isFinite=o_.isFinite,ol.isFunction=o_.isFunction,ol.isInteger=o_.isInteger,ol.isLength=o_.isLength,ol.isMap=o_.isMap,ol.isMatch=o_.isMatch,ol.isMatchWith=o_.isMatchWith,ol.isNaN=o_.isNaN,ol.isNative=o_.isNative,ol.isNil=o_.isNil,ol.isNull=o_.isNull,ol.isNumber=o_.isNumber,ol.isObject=lc,ol.isObjectLike=o_.isObjectLike,ol.isPlainObject=o_.isPlainObject,ol.isRegExp=o_.isRegExp,ol.isSafeInteger=o_.isSafeInteger,ol.isSet=o_.isSet,ol.isString=o_.isString,ol.isSymbol=o_.isSymbol,ol.isTypedArray=o_.isTypedArray,ol.isUndefined=o_.isUndefined,ol.isWeakMap=o_.isWeakMap,ol.isWeakSet=o_.isWeakSet,ol.join=e_.join,ol.kebabCase=f_.kebabCase,ol.last=Mv,ol.lastIndexOf=e_.lastIndexOf,ol.lowerCase=f_.lowerCase,ol.lowerFirst=f_.lowerFirst,ol.lt=o_.lt,ol.lte=o_.lte,ol.max=i_.max,ol.maxBy=i_.maxBy,ol.mean=i_.mean,ol.meanBy=i_.meanBy,ol.min=i_.min,ol.minBy=i_.minBy,ol.stubArray=p_.stubArray,ol.stubFalse=p_.stubFalse,ol.stubObject=p_.stubObject,ol.stubString=p_.stubString,ol.stubTrue=p_.stubTrue,ol.multiply=i_.multiply,ol.nth=e_.nth,ol.noop=p_.noop,ol.now=n_,ol.pad=f_.pad,ol.padEnd=f_.padEnd,ol.padStart=f_.padStart,ol.parseInt=f_.parseInt,ol.random=s_,ol.reduce=t_.reduce,ol.reduceRight=t_.reduceRight,ol.repeat=f_.repeat,ol.replace=f_.replace,ol.result=c_.result,ol.round=i_.round,ol.sample=t_.sample,ol.size=t_.size,ol.snakeCase=f_.snakeCase,ol.some=t_.some,ol.sortedIndex=e_.sortedIndex,ol.sortedIndexBy=e_.sortedIndexBy,ol.sortedIndexOf=e_.sortedIndexOf,ol.sortedLastIndex=e_.sortedLastIndex,ol.sortedLastIndexBy=e_.sortedLastIndexBy,ol.sortedLastIndexOf=e_.sortedLastIndexOf,ol.startCase=f_.startCase,ol.startsWith=f_.startsWith,ol.subtract=i_.subtract,ol.sum=i_.sum,ol.sumBy=i_.sumBy,ol.template=f_.template,ol.times=p_.times,ol.toFinite=o_.toFinite,ol.toInteger=bc,ol.toLength=o_.toLength,ol.toLower=f_.toLower,ol.toNumber=o_.toNumber,ol.toSafeInteger=o_.toSafeInteger,ol.toString=o_.toString,ol.toUpper=f_.toUpper,ol.trim=f_.trim,ol.trimEnd=f_.trimEnd,ol.trimStart=f_.trimStart,ol.truncate=f_.truncate,ol.unescape=f_.unescape,ol.uniqueId=p_.uniqueId,ol.upperCase=f_.upperCase,ol.upperFirst=f_.upperFirst,ol.each=t_.forEach,ol.eachRight=t_.forEachRight,ol.first=e_.head,x_(ol,(y_={},Qh(ol,(function(e,t){b_.call(ol.prototype,t)||(y_[t]=e)})),y_),{chain:!1}),ol.VERSION="4.17.20",(ol.templateSettings=f_.templateSettings).imports._=ol,vl(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){ol[e].placeholder=ol})),vl(["drop","take"],(function(e,t){Kc.prototype[e]=function(n){n=void 0===n?1:w_(bc(n),0);var r=this.__filtered__&&!t?new Kc(this):this.clone();return r.__filtered__?r.__takeCount__=O_(n,r.__takeCount__):r.__views__.push({size:O_(n,m_),type:e+(r.__dir__<0?"Right":"")}),r},Kc.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),vl(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Kc.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Kh(e),type:n}),t.__filtered__=t.__filtered__||r,t}})),vl(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Kc.prototype[e]=function(){return this[n](1).value()[0]}})),vl(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Kc.prototype[e]=function(){return this.__filtered__?new Kc(this):this[n](1)}})),Kc.prototype.compact=function(){return this.filter(_c)},Kc.prototype.find=function(e){return this.filter(e).head()},Kc.prototype.findLast=function(e){return this.reverse().find(e)},Kc.prototype.invokeMap=Hl((function(e,t){return"function"==typeof e?new Kc(this):this.map((function(n){return Yy(n,e,t)}))})),Kc.prototype.reject=function(e){return this.filter(Sm(Kh(e)))},Kc.prototype.slice=function(e,t){e=bc(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Kc(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=bc(t))<0?n.dropRight(-t):n.take(t-e)),n)},Kc.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Kc.prototype.toArray=function(){return this.take(m_)},Qh(Kc.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=ol[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(ol.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof Kc,s=a[0],c=u||oc(t),l=function(e){var t=o.apply(ol,tp([e],a));return r&&f?t[0]:t};c&&n&&"function"==typeof s&&1!=s.length&&(u=c=!1);var f=this.__chain__,p=!!this.__actions__.length,d=i&&!f,h=u&&!p;if(!i&&c){t=h?t:new Kc(this);var v=e.apply(t,a);return v.__actions__.push({func:bb,args:[l],thisArg:void 0}),new el(v,f)}return d&&h?e.apply(this,a):(v=this.thru(l),d?r?v.value()[0]:v.value():v)})})),vl(["pop","push","shift","sort","splice","unshift"],(function(e){var t=g_[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);ol.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(oc(o)?o:[],e)}return this[n]((function(n){return t.apply(oc(n)?n:[],e)}))}})),Qh(Kc.prototype,(function(e,t){var n=ol[t];if(n){var r=n.name+"";b_.call(Zc,r)||(Zc[r]=[]),Zc[r].push({name:t,func:n})}})),Zc[Pl(void 0,2).name]=[{name:"wrapper",func:void 0}],Kc.prototype.clone=function(){var e=new Kc(this.__wrapped__);return e.__actions__=tl(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=tl(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=tl(this.__views__),e},Kc.prototype.reverse=function(){if(this.__filtered__){var e=new Kc(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Kc.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=oc(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r1&&void 0!==arguments[1]&&arguments[1],r=n.props.forceDragging;if(n.active||r||!0===t){var o,i;e.preventDefault(),"touchmove"===e.type?(o=e.touches[0].clientX-n.initialX,i=e.touches[0].clientY-n.initialY):(o=e.clientX-n.initialX,i=e.clientY-n.initialY);var a=!1,u=5,s=50,c=n.getContainerDimensions(),l=c.containerWidth,f=c.containerHeight,p=n.getAxis(),d=p.xAxis,h=p.yAxis;o>l?(d&&o+u>l&&(a=!0),o=l):o<0&&(d&&o<-u&&(a=!0),o=0),i>f?(h&&i+s>f&&(a=!0),i=f):i<0&&(h&&i<-s&&(a=!0),i=0),!0===a&&n.handleDragEnd(),n.updateState({xRatio:o/l,yRatio:i/f})}})),s(h(n),"handleDragEnd",(function(e){n.active=!1;var t=n.props.onDragEnd;t&&t(),(new Date).getTime()-n.lastMouseDown<300&&n.handleDrag(e,!0)})),s(h(n),"_handleWindowResize",(function(){var e=n.state.render_key;n.updateState({render_key:e})})),s(h(n),"getContainerDimensions",(function(){var e=0,t=0;if(n.container){var r=["paddingLeft","paddingRight","paddingTop","paddingBottom"].map((function(e){return Math.round(getComputedStyle(n.container)[e].replace("px","")||0)}));e=n.container.clientWidth-(r[0]+r[1])-n.draggableRef.current.clientWidth,t=n.container.clientHeight-(r[2]+r[3])-n.draggableRef.current.clientHeight}return{containerWidth:e,containerHeight:t}})),s(h(n),"getCurrentPositionWithPercent",(function(){var e=n.getCurrentPosition(),t=e.xRatio,r=e.yRatio,o=n.getContainerDimensions();return{currentX:t*o.containerWidth,currentY:r*o.containerHeight}})),s(h(n),"getAxis",(function(){var e=n.props.axis;return{xAxis:"y"!==e,yAxis:"x"!==e}})),s(h(n),"getCurrentPosition",(function(){var e=n.props.position;if(e){var t=e.xRatio,r=e.yRatio;return l({xRatio:t,yRatio:r},n.calculateCurrentPositionFromRatios(t,r))}return n.state})),s(h(n),"calculateCurrentPositionFromRatios",(function(e,t){var r=n.getContainerDimensions();return{currentX:e*r.containerWidth,currentY:t*r.containerHeight}})),s(h(n),"updateState",(function(e){n.lastMove=(new Date).getTime();var t=n.props,r=t.position,o=t.onDrag;r?o(l({},r,{},e)):n.setState(e)})),n.state={xRatio:0,yRatio:0,render_key:0},n.active=!1,n.initialX=0,n.initialY=0,n.ghostContainerDimensions=n.getContainerDimensions(),n.draggableRef=r.createRef(),n.handleWindowResize=gb(n._handleWindowResize,200),n}return f(t,e),u(t,[{key:"componentDidMount",value:function(){var e=this.props.onMount;this.container=o.findDOMNode(this).parentNode,this.container.addEventListener("touchstart",this.handleDragStart,!1),this.container.addEventListener("touchend",this.handleDragEnd,!1),this.container.addEventListener("touchmove",this.handleDrag,!1),this.container.addEventListener("mousedown",this.handleDragStart,!1),this.container.addEventListener("mouseup",this.handleDragEnd,!1),this.container.addEventListener("mousemove",this.handleDrag,!1),window.addEventListener("resize",this.handleWindowResize,!1),e&&e(this)}},{key:"componentDidUpdate",value:function(){var e=this.ghostContainerDimensions,t=e.containerWidth,n=e.containerHeight;this.ghostContainerDimensions=this.getContainerDimensions(),t===this.ghostContainerDimensions.containerWidth&&n===this.ghostContainerDimensions.containerHeight||this._handleWindowResize()}},{key:"componentWillUnmount",value:function(){this.container.removeEventListener("touchstart",this.handleDragStart),this.container.removeEventListener("touchend",this.handleDragEnd),this.container.removeEventListener("touchmove",this.handleDrag),this.container.removeEventListener("mousedown",this.handleDragStart),this.container.removeEventListener("mouseup",this.handleDragEnd),this.container.removeEventListener("mousemove",this.handleDrag),window.removeEventListener("resize",this.handleWindowResize,!1)}},{key:"render",value:function(){var e=this.getCurrentPosition(),t=e.currentX,n=e.currentY,o=this.props.className,i=this.getAxis(),a=i.xAxis,u=i.yAxis;return r.createElement("div",{ref:this.draggableRef,style:{transform:"translate3d(".concat(a?t:0,"px, ").concat(u?n:0,"px, 0)")},className:"react-draggable ".concat(o||"")},this.props.children)}}]),t}(r.Component);E_.propTypes={className:n.string,axis:n.oneOf(["x","y"]),position:n.shape({xRatio:n.number,yRatio:n.number}),onDragStart:n.func,onDrag:n.func,onDragEnd:n.func,draggableWidth:n.number,draggableHeight:n.number};var S_=function(e){function t(){return i(this,t),v(this,p(t).apply(this,arguments))}return f(t,e),u(t,[{key:"render",value:function(){return r.createElement("svg",{viewBox:"0 0 448 512"},r.createElement("path",{fill:"currentColor",d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"}))}}]),t}(r.Component),k_=function(e){function t(){return i(this,t),v(this,p(t).apply(this,arguments))}return f(t,e),u(t,[{key:"render",value:function(){return r.createElement("svg",{viewBox:"0 0 448 512"},r.createElement("path",{fill:"currentColor",d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"}))}}]),t}(r.Component),j_=function(e){function t(){return i(this,t),v(this,p(t).apply(this,arguments))}return f(t,e),u(t,[{key:"render",value:function(){return r.createElement("svg",{viewBox:"0 0 512 512"},r.createElement("path",{fill:"currentColor",d:"M304 192v32c0 6.6-5.4 12-12 12h-56v56c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-56h-56c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h56v-56c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v56h56c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"}))}}]),t}(r.Component);function C_(){var e=y(["",""]);return C_=function(){return e},e}var M_=Ai.Range,P_=function(e){function t(e){var n;return i(this,t),s(h(n=v(this,p(t).call(this,e))),"componentWillUnmount",(function(){window.removeEventListener("keydown",n.handleKeyPress)})),s(h(n),"getAcceptedDuration",(function(){var e=n.props,t=e.minDuration,r=e.maxDuration,o=n.state.videoDuration,i=parseFloat(t)||0;i<0&&(i=0);var a=parseFloat(r)||o;return a>o&&(a=o),i>a?{min:a,max:i}:{min:i,max:a}})),s(h(n),"getFormatedValues",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"in";e||(e=n.props.inPoint),t||(t=n.props.outPoint);var o=n.getAcceptedDuration(),i=o.min,a=o.max,u=n.state.videoDuration,s=e||0,c=t||u,l=function(e){c-s>a?"in"===e?c=s+a:s=c-a:c-su&&(c=u,l("out")),{inValue:s,outValue:c}})),s(h(n),"toggleVideoAutoPlay",(function(e){var t=n.videoRef.current;t&&(t.paused?(n.playVideo(),n.monitorAutoplay(e)):n.pauseVideo())})),s(h(n),"monitorAutoplay",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=n.videoRef.current;if(t&&!t.paused){if(!0===e){var r=n.getFormatedValues(),o=r.inValue,i=r.outValue,a=t.currentTime;(ai)&&(t.currentTime=o)}n.updatePlayCursorPosition(null,!0),setTimeout((function(){return n.monitorAutoplay(e)}),100)}})),s(h(n),"playVideo",(function(){var e=n.videoRef.current;e&&e.play(),n.setState({isPlaying:!0})})),s(h(n),"pauseVideo",(function(){var e=n.videoRef.current;e&&e.pause(),n.setState({isPlaying:!1})})),s(h(n),"updatePlayerVolume",(function(){var e=n.props.muted,t=n.videoRef.current;t&&(t.volume=e?0:.5)})),s(h(n),"scrollToCursor",(function(){var e=n.state,t=e.playCursorPosition,r=(e.zoomFactor,e.forceCursorDragging),o=t.xRatio,i=t.yRatio,a=n.draggableApi.calculateCurrentPositionFromRatios(o,i).currentX,u=n.scrollable.current,s=u.scrollLeft,c=u.clientWidth;(r||as+c)&&(n.scrollable.current.scrollLeft=a)})),s(h(n),"updatePlayCursorPosition",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===e){var r=n.videoRef.current,o=n.state.videoDuration;e=r&&o?r.currentTime/o:0}var i={xRatio:e,yRatio:0};n.setState({playCursorPosition:i},(function(){!0===t&&n.scrollToCursor()}))})),s(h(n),"handleVideoPlayerError",(function(e){var t=e.target.error;if(t&&4===t.code){var r=n.props.onNotSupportedVideoLoad;r&&r(t.message)}})),s(h(n),"handleDraggableApiMount",(function(e){return n.draggableApi=e})),s(h(n),"handleKeyPress",(function(e){32===e.keyCode&&(e.preventDefault(),n.toggleVideoAutoPlay())})),s(h(n),"handleLoadedData",(function(){var e=n.props.onVideoLoadedData,t=n.videoRef.current;if(t){var r=n.props.inPoint;void 0!==r&&n.seekVideoTo(r),n.updatePlayerVolume(),n.setState({videoDuration:t.duration},(function(){return n.updatePlayCursorPosition()})),e&&e(t)}})),s(h(n),"handleRangeChange",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=n.state.rangeDisabled;if(!r||t){var o=n.props,i=o.onRangeChange,a=o.outPoint,u=e[1]!==a?"out":"in",s=n.getFormatedValues(e[0],e[1],u),c=s.inValue,l=s.outValue;i([c,l])}})),s(h(n),"handleBeforeRangeChange",(function(e,t){n.pauseVideo(),n.setState({isEditing:!0})})),s(h(n),"handleAfterRangeChange",(function(){var e=n.state,t=e.playCursorPosition,r=e.videoDuration;n.seekVideoTo(t.xRatio*r),n.setState({isEditing:!1})})),s(h(n),"handleFreePlayClick",(function(){n.toggleVideoAutoPlay(!1)})),s(h(n),"handlePlayCursorDrag",(function(e){var t=e.xRatio,r=n.state.videoDuration;n.seekVideoTo(r*t),n.setState({playCursorPosition:e})})),s(h(n),"handleZoomFactorDragStart",(function(){return n.setState({forceCursorDragging:!0})})),s(h(n),"handleZoomFactorDragEnd",(function(){return n.setState({forceCursorDragging:!1})})),s(h(n),"handleZoomFactorChange",(function(e){n.state.zoomFactor;n.setState({zoomFactor:e},n.scrollToCursor)})),s(h(n),"handleContainerMouseDown",(function(e){e.stopPropagation();var t=e.target;t.classList.contains("rc-slider-handle")||t.classList.contains("dnm-video-cut-playing-cursor")?n.setState({rangeDisabled:!1,forceCursorDragging:!1}):n.setState({rangeDisabled:!0,forceCursorDragging:!0})})),s(h(n),"handleContainerMouseUp",(function(){return n.setState({rangeDisabled:!0,forceCursorDragging:!1})})),s(h(n),"handleMuteChange",(function(e){var t=n.props.onMuteChange;t&&t(!e.target.checked)})),n.state={videoDuration:0,isEditing:!1,isPlaying:!1,rangeDisabled:!0,forceCursorDragging:!1,forceScrollToCursor:!1,zoomFactor:[0],playCursorPosition:{xRatio:0,yRatio:0}},n.videoRef=r.createRef(),n.scrollable=r.createRef(),n.draggable=r.createRef(),n.draggableApi=null,n.seekVideoTo=gb(n._seekVideoTo,50),n}return f(t,e),u(t,[{key:"componentDidMount",value:function(){window.addEventListener("keydown",this.handleKeyPress)}},{key:"componentDidUpdate",value:function(e,t){var n=this.state,r=n.videoDuration,o=n.isEditing,i=this.props,a=i.inPoint,u=i.outPoint,s=i.src,c=i.muted;if(isNaN(r)||r===t.videoDuration||this.handleRangeChange([a,u],!0),s!==e.src&&this.pauseVideo(),o&&(e.inPoint!==a||e.outPoint!==u)){var l;if(e.inPoint!==a&&e.outPoint!==u){var f=this.getAcceptedDuration(),p=f.min,d=f.max;l=Math.abs(u-a-p)a?a:u}else l=e.outPoint!==u?u:a;this.seekVideoTo(l)}c!==e.muted&&this.updatePlayerVolume()}},{key:"_seekVideoTo",value:function(e){if(!isNaN(e)){var t=this.videoRef.current;t&&(t.currentTime=e)}}},{key:"render",value:function(){var e=this.getFormatedValues(),t=e.inValue,n=e.outValue,r=this.state,o=r.videoDuration,i=r.isEditing,a=r.playCursorPosition,u=r.isPlaying,s=r.forceCursorDragging,c=r.zoomFactor,l=this.props,f=l.src,p=l.catalogue,d=l.classes,h=l.playerCursorWidth,v=l.muted,y=l.onMuteChange;return Ct("div",{css:At(C_(),Us)},Ct("div",{className:"dnm-video-cut-root ".concat(d.root||""," ").concat(i?"is-editing":""," ").concat(u?"is-playing":"is-paused")},Ct("video",{className:"dnm-video-cut-player ".concat(d.player||""),src:"".concat(f),ref:this.videoRef,loop:!0,muted:v,controls:!1,onLoadedData:this.handleLoadedData,onLoad:this.handleVideoLoad,onError:this.handleVideoPlayerError}),Ct("div",null,Ct("div",{className:"dnm-video-cut-play-icon",onClick:this.handleFreePlayClick},Ct(u?k_:S_,null)),Ct("div",{className:"dnm-video-cut-progress-scrollable-parent",ref:this.scrollable},Ct("div",{className:"dnm-video-cut-progress-container",style:{width:"calc(".concat(c[0]+100,"% - 20px)")},onTouchStart:this.handleContainerMouseDown,onTouchEnd:this.handleContainerMouseUp,onMouseDown:this.handleContainerMouseDown,onMouseUp:this.handleContainerMouseUp},Ct(E_,{className:"dnm-video-cut-playing-cursor-draggable-item",axis:"x",forceDragging:s,onMount:this.handleDraggableApiMount,onDrag:this.handlePlayCursorDrag,onDragStart:this.pauseVideo,position:a,draggableWidth:h,rerenderKey:c[0]},Ct("div",{className:"dnm-video-cut-playing-cursor",ref:this.draggable})),Ct(M_,{className:"dnm-video-cut-range ".concat(d.range||""),min:0,max:o||0,step:.05,value:[t,n],onChange:this.handleRangeChange,onBeforeChange:this.handleBeforeRangeChange,onAfterChange:this.handleAfterRangeChange}))),Ct("div",{className:"dnm-video-cut-tools"},Ct("div",{className:"dnm-video-cut-mute"},y&&Ct("label",{className:"dnm-video-cut-checkbox-container"},p.unmute,Ct("input",{type:"checkbox",checked:!v,onChange:this.handleMuteChange}),Ct("span",{className:"dnm-video-cut-checkmark"}))),Ct("div",{className:"dnm-video-cut-zoom"},Ct(M_,{className:"dnm-video-cut-zoom-range ".concat(d.zoomRange||""),min:0,max:900,step:.05,value:c,onBeforeChange:this.handleZoomFactorDragStart,onAfterChange:this.handleZoomFactorDragEnd,onChange:this.handleZoomFactorChange}),Ct("div",{className:"dnm-video-cut-zoom-icon"},Ct(j_,null))),Ct("div",{className:"clearfix"})))))}}]),t}(r.Component);return P_.propTypes={catalogue:n.object,classes:n.shape({root:n.string,player:n.string,range:n.string}),onRangeChange:n.func.isRequired,onNotSupportedVideoLoad:n.func,onVideoLoadedData:n.func,src:n.string.isRequired,inPoint:n.number,outPoint:n.number,draggableWidth:n.number,maxDuration:n.number,minDuration:n.number,muted:n.bool,onMuteChange:n.func,playerCursorWidth:n.oneOfType([n.func,n.number])},P_.defaultProps={catalogue:{unmute:"Enable sound"},classes:{},onRangeChange:function(e){return null},onNotSupportedVideoLoad:function(e){return null},onVideoLoadedData:function(e){return null},inPoint:0,outPoint:0,draggableWidth:null,maxDuration:0,minDuration:0,muted:!1,playerCursorWidth:14},P_})); +var y_,m_=4294967295,g_=Array.prototype,b_=Object.prototype.hasOwnProperty,__=Ys?Ys.iterator:void 0,w_=Math.max,O_=Math.min,x_=function(e){return function(t,n,r){if(null==r){var o=lc(n),i=o&&xf(n),a=i&&i.length&&yy(n,i);(a?a.length:o)||(r=n,n=t,t=this)}return e(t,n,r)}}(xm);ol.after=r_.after,ol.ary=r_.ary,ol.assign=c_.assign,ol.assignIn=c_.assignIn,ol.assignInWith=c_.assignInWith,ol.assignWith=c_.assignWith,ol.at=c_.at,ol.before=r_.before,ol.bind=r_.bind,ol.bindAll=p_.bindAll,ol.bindKey=r_.bindKey,ol.castArray=o_.castArray,ol.chain=l_.chain,ol.chunk=e_.chunk,ol.compact=e_.compact,ol.concat=e_.concat,ol.cond=p_.cond,ol.conforms=p_.conforms,ol.constant=p_.constant,ol.countBy=t_.countBy,ol.create=c_.create,ol.curry=r_.curry,ol.curryRight=r_.curryRight,ol.debounce=r_.debounce,ol.defaults=c_.defaults,ol.defaultsDeep=c_.defaultsDeep,ol.defer=r_.defer,ol.delay=r_.delay,ol.difference=e_.difference,ol.differenceBy=e_.differenceBy,ol.differenceWith=e_.differenceWith,ol.drop=e_.drop,ol.dropRight=e_.dropRight,ol.dropRightWhile=e_.dropRightWhile,ol.dropWhile=e_.dropWhile,ol.fill=e_.fill,ol.filter=t_.filter,ol.flatMap=t_.flatMap,ol.flatMapDeep=t_.flatMapDeep,ol.flatMapDepth=t_.flatMapDepth,ol.flatten=e_.flatten,ol.flattenDeep=e_.flattenDeep,ol.flattenDepth=e_.flattenDepth,ol.flip=r_.flip,ol.flow=p_.flow,ol.flowRight=p_.flowRight,ol.fromPairs=e_.fromPairs,ol.functions=c_.functions,ol.functionsIn=c_.functionsIn,ol.groupBy=t_.groupBy,ol.initial=e_.initial,ol.intersection=e_.intersection,ol.intersectionBy=e_.intersectionBy,ol.intersectionWith=e_.intersectionWith,ol.invert=c_.invert,ol.invertBy=c_.invertBy,ol.invokeMap=t_.invokeMap,ol.iteratee=p_.iteratee,ol.keyBy=t_.keyBy,ol.keys=xf,ol.keysIn=c_.keysIn,ol.map=t_.map,ol.mapKeys=c_.mapKeys,ol.mapValues=c_.mapValues,ol.matches=p_.matches,ol.matchesProperty=p_.matchesProperty,ol.memoize=r_.memoize,ol.merge=c_.merge,ol.mergeWith=c_.mergeWith,ol.method=p_.method,ol.methodOf=p_.methodOf,ol.mixin=x_,ol.negate=Sm,ol.nthArg=p_.nthArg,ol.omit=c_.omit,ol.omitBy=c_.omitBy,ol.once=r_.once,ol.orderBy=t_.orderBy,ol.over=p_.over,ol.overArgs=r_.overArgs,ol.overEvery=p_.overEvery,ol.overSome=p_.overSome,ol.partial=r_.partial,ol.partialRight=r_.partialRight,ol.partition=t_.partition,ol.pick=c_.pick,ol.pickBy=c_.pickBy,ol.property=p_.property,ol.propertyOf=p_.propertyOf,ol.pull=e_.pull,ol.pullAll=e_.pullAll,ol.pullAllBy=e_.pullAllBy,ol.pullAllWith=e_.pullAllWith,ol.pullAt=e_.pullAt,ol.range=p_.range,ol.rangeRight=p_.rangeRight,ol.rearg=r_.rearg,ol.reject=t_.reject,ol.remove=e_.remove,ol.rest=r_.rest,ol.reverse=e_.reverse,ol.sampleSize=t_.sampleSize,ol.set=c_.set,ol.setWith=c_.setWith,ol.shuffle=t_.shuffle,ol.slice=e_.slice,ol.sortBy=t_.sortBy,ol.sortedUniq=e_.sortedUniq,ol.sortedUniqBy=e_.sortedUniqBy,ol.split=f_.split,ol.spread=r_.spread,ol.tail=e_.tail,ol.take=e_.take,ol.takeRight=e_.takeRight,ol.takeRightWhile=e_.takeRightWhile,ol.takeWhile=e_.takeWhile,ol.tap=l_.tap,ol.throttle=r_.throttle,ol.thru=bb,ol.toArray=o_.toArray,ol.toPairs=c_.toPairs,ol.toPairsIn=c_.toPairsIn,ol.toPath=p_.toPath,ol.toPlainObject=o_.toPlainObject,ol.transform=c_.transform,ol.unary=r_.unary,ol.union=e_.union,ol.unionBy=e_.unionBy,ol.unionWith=e_.unionWith,ol.uniq=e_.uniq,ol.uniqBy=e_.uniqBy,ol.uniqWith=e_.uniqWith,ol.unset=c_.unset,ol.unzip=e_.unzip,ol.unzipWith=e_.unzipWith,ol.update=c_.update,ol.updateWith=c_.updateWith,ol.values=c_.values,ol.valuesIn=c_.valuesIn,ol.without=e_.without,ol.words=f_.words,ol.wrap=r_.wrap,ol.xor=e_.xor,ol.xorBy=e_.xorBy,ol.xorWith=e_.xorWith,ol.zip=e_.zip,ol.zipObject=e_.zipObject,ol.zipObjectDeep=e_.zipObjectDeep,ol.zipWith=e_.zipWith,ol.entries=c_.toPairs,ol.entriesIn=c_.toPairsIn,ol.extend=c_.assignIn,ol.extendWith=c_.assignInWith,x_(ol,ol),ol.add=i_.add,ol.attempt=p_.attempt,ol.camelCase=f_.camelCase,ol.capitalize=f_.capitalize,ol.ceil=i_.ceil,ol.clamp=a_,ol.clone=o_.clone,ol.cloneDeep=o_.cloneDeep,ol.cloneDeepWith=o_.cloneDeepWith,ol.cloneWith=o_.cloneWith,ol.conformsTo=o_.conformsTo,ol.deburr=f_.deburr,ol.defaultTo=p_.defaultTo,ol.divide=i_.divide,ol.endsWith=f_.endsWith,ol.eq=o_.eq,ol.escape=f_.escape,ol.escapeRegExp=f_.escapeRegExp,ol.every=t_.every,ol.find=t_.find,ol.findIndex=e_.findIndex,ol.findKey=c_.findKey,ol.findLast=t_.findLast,ol.findLastIndex=e_.findLastIndex,ol.findLastKey=c_.findLastKey,ol.floor=i_.floor,ol.forEach=t_.forEach,ol.forEachRight=t_.forEachRight,ol.forIn=c_.forIn,ol.forInRight=c_.forInRight,ol.forOwn=c_.forOwn,ol.forOwnRight=c_.forOwnRight,ol.get=c_.get,ol.gt=o_.gt,ol.gte=o_.gte,ol.has=c_.has,ol.hasIn=c_.hasIn,ol.head=e_.head,ol.identity=_c,ol.includes=t_.includes,ol.indexOf=e_.indexOf,ol.inRange=u_,ol.invoke=c_.invoke,ol.isArguments=o_.isArguments,ol.isArray=oc,ol.isArrayBuffer=o_.isArrayBuffer,ol.isArrayLike=o_.isArrayLike,ol.isArrayLikeObject=o_.isArrayLikeObject,ol.isBoolean=o_.isBoolean,ol.isBuffer=o_.isBuffer,ol.isDate=o_.isDate,ol.isElement=o_.isElement,ol.isEmpty=o_.isEmpty,ol.isEqual=o_.isEqual,ol.isEqualWith=o_.isEqualWith,ol.isError=o_.isError,ol.isFinite=o_.isFinite,ol.isFunction=o_.isFunction,ol.isInteger=o_.isInteger,ol.isLength=o_.isLength,ol.isMap=o_.isMap,ol.isMatch=o_.isMatch,ol.isMatchWith=o_.isMatchWith,ol.isNaN=o_.isNaN,ol.isNative=o_.isNative,ol.isNil=o_.isNil,ol.isNull=o_.isNull,ol.isNumber=o_.isNumber,ol.isObject=lc,ol.isObjectLike=o_.isObjectLike,ol.isPlainObject=o_.isPlainObject,ol.isRegExp=o_.isRegExp,ol.isSafeInteger=o_.isSafeInteger,ol.isSet=o_.isSet,ol.isString=o_.isString,ol.isSymbol=o_.isSymbol,ol.isTypedArray=o_.isTypedArray,ol.isUndefined=o_.isUndefined,ol.isWeakMap=o_.isWeakMap,ol.isWeakSet=o_.isWeakSet,ol.join=e_.join,ol.kebabCase=f_.kebabCase,ol.last=Mv,ol.lastIndexOf=e_.lastIndexOf,ol.lowerCase=f_.lowerCase,ol.lowerFirst=f_.lowerFirst,ol.lt=o_.lt,ol.lte=o_.lte,ol.max=i_.max,ol.maxBy=i_.maxBy,ol.mean=i_.mean,ol.meanBy=i_.meanBy,ol.min=i_.min,ol.minBy=i_.minBy,ol.stubArray=p_.stubArray,ol.stubFalse=p_.stubFalse,ol.stubObject=p_.stubObject,ol.stubString=p_.stubString,ol.stubTrue=p_.stubTrue,ol.multiply=i_.multiply,ol.nth=e_.nth,ol.noop=p_.noop,ol.now=n_,ol.pad=f_.pad,ol.padEnd=f_.padEnd,ol.padStart=f_.padStart,ol.parseInt=f_.parseInt,ol.random=s_,ol.reduce=t_.reduce,ol.reduceRight=t_.reduceRight,ol.repeat=f_.repeat,ol.replace=f_.replace,ol.result=c_.result,ol.round=i_.round,ol.sample=t_.sample,ol.size=t_.size,ol.snakeCase=f_.snakeCase,ol.some=t_.some,ol.sortedIndex=e_.sortedIndex,ol.sortedIndexBy=e_.sortedIndexBy,ol.sortedIndexOf=e_.sortedIndexOf,ol.sortedLastIndex=e_.sortedLastIndex,ol.sortedLastIndexBy=e_.sortedLastIndexBy,ol.sortedLastIndexOf=e_.sortedLastIndexOf,ol.startCase=f_.startCase,ol.startsWith=f_.startsWith,ol.subtract=i_.subtract,ol.sum=i_.sum,ol.sumBy=i_.sumBy,ol.template=f_.template,ol.times=p_.times,ol.toFinite=o_.toFinite,ol.toInteger=bc,ol.toLength=o_.toLength,ol.toLower=f_.toLower,ol.toNumber=o_.toNumber,ol.toSafeInteger=o_.toSafeInteger,ol.toString=o_.toString,ol.toUpper=f_.toUpper,ol.trim=f_.trim,ol.trimEnd=f_.trimEnd,ol.trimStart=f_.trimStart,ol.truncate=f_.truncate,ol.unescape=f_.unescape,ol.uniqueId=p_.uniqueId,ol.upperCase=f_.upperCase,ol.upperFirst=f_.upperFirst,ol.each=t_.forEach,ol.eachRight=t_.forEachRight,ol.first=e_.head,x_(ol,(y_={},Qh(ol,(function(e,t){b_.call(ol.prototype,t)||(y_[t]=e)})),y_),{chain:!1}),ol.VERSION="4.17.20",(ol.templateSettings=f_.templateSettings).imports._=ol,vl(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){ol[e].placeholder=ol})),vl(["drop","take"],(function(e,t){Kc.prototype[e]=function(n){n=void 0===n?1:w_(bc(n),0);var r=this.__filtered__&&!t?new Kc(this):this.clone();return r.__filtered__?r.__takeCount__=O_(n,r.__takeCount__):r.__views__.push({size:O_(n,m_),type:e+(r.__dir__<0?"Right":"")}),r},Kc.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),vl(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Kc.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Kh(e),type:n}),t.__filtered__=t.__filtered__||r,t}})),vl(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Kc.prototype[e]=function(){return this[n](1).value()[0]}})),vl(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Kc.prototype[e]=function(){return this.__filtered__?new Kc(this):this[n](1)}})),Kc.prototype.compact=function(){return this.filter(_c)},Kc.prototype.find=function(e){return this.filter(e).head()},Kc.prototype.findLast=function(e){return this.reverse().find(e)},Kc.prototype.invokeMap=Hl((function(e,t){return"function"==typeof e?new Kc(this):this.map((function(n){return Yy(n,e,t)}))})),Kc.prototype.reject=function(e){return this.filter(Sm(Kh(e)))},Kc.prototype.slice=function(e,t){e=bc(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Kc(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=bc(t))<0?n.dropRight(-t):n.take(t-e)),n)},Kc.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Kc.prototype.toArray=function(){return this.take(m_)},Qh(Kc.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=ol[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(ol.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof Kc,s=a[0],c=u||oc(t),l=function(e){var t=o.apply(ol,tp([e],a));return r&&f?t[0]:t};c&&n&&"function"==typeof s&&1!=s.length&&(u=c=!1);var f=this.__chain__,p=!!this.__actions__.length,d=i&&!f,h=u&&!p;if(!i&&c){t=h?t:new Kc(this);var v=e.apply(t,a);return v.__actions__.push({func:bb,args:[l],thisArg:void 0}),new el(v,f)}return d&&h?e.apply(this,a):(v=this.thru(l),d?r?v.value()[0]:v.value():v)})})),vl(["pop","push","shift","sort","splice","unshift"],(function(e){var t=g_[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);ol.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(oc(o)?o:[],e)}return this[n]((function(n){return t.apply(oc(n)?n:[],e)}))}})),Qh(Kc.prototype,(function(e,t){var n=ol[t];if(n){var r=n.name+"";b_.call(Zc,r)||(Zc[r]=[]),Zc[r].push({name:t,func:n})}})),Zc[Pl(void 0,2).name]=[{name:"wrapper",func:void 0}],Kc.prototype.clone=function(){var e=new Kc(this.__wrapped__);return e.__actions__=tl(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=tl(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=tl(this.__views__),e},Kc.prototype.reverse=function(){if(this.__filtered__){var e=new Kc(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Kc.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=oc(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r1&&void 0!==arguments[1]&&arguments[1],r=n.props.forceDragging;if(n.active||r||!0===t){var o,i;e.preventDefault(),"touchmove"===e.type?(o=e.touches[0].clientX-n.initialX,i=e.touches[0].clientY-n.initialY):(o=e.clientX-n.initialX,i=e.clientY-n.initialY);var a=!1,u=5,s=50,c=n.getContainerDimensions(),l=c.containerWidth,f=c.containerHeight,p=n.getAxis(),d=p.xAxis,h=p.yAxis;o>l?(d&&o+u>l&&(a=!0),o=l):o<0&&(d&&o<-u&&(a=!0),o=0),i>f?(h&&i+s>f&&(a=!0),i=f):i<0&&(h&&i<-s&&(a=!0),i=0),!0===a&&n.handleDragEnd(),n.updateState({xRatio:o/l,yRatio:i/f})}})),s(h(n),"handleDragEnd",(function(e){n.active=!1;var t=n.props.onDragEnd;t&&t(),(new Date).getTime()-n.lastMouseDown<300&&n.handleDrag(e,!0)})),s(h(n),"_handleWindowResize",(function(){var e=n.state.render_key;n.updateState({render_key:e})})),s(h(n),"getContainerDimensions",(function(){var e=0,t=0;if(n.container){var r=["paddingLeft","paddingRight","paddingTop","paddingBottom"].map((function(e){return Math.round(getComputedStyle(n.container)[e].replace("px","")||0)}));e=n.container.clientWidth-(r[0]+r[1])-n.draggableRef.current.clientWidth,t=n.container.clientHeight-(r[2]+r[3])-n.draggableRef.current.clientHeight}return{containerWidth:e,containerHeight:t}})),s(h(n),"getCurrentPositionWithPercent",(function(){var e=n.getCurrentPosition(),t=e.xRatio,r=e.yRatio,o=n.getContainerDimensions();return{currentX:t*o.containerWidth,currentY:r*o.containerHeight}})),s(h(n),"getAxis",(function(){var e=n.props.axis;return{xAxis:"y"!==e,yAxis:"x"!==e}})),s(h(n),"getCurrentPosition",(function(){var e=n.props.position;if(e){var t=e.xRatio,r=e.yRatio;return l({xRatio:t,yRatio:r},n.calculateCurrentPositionFromRatios(t,r))}return n.state})),s(h(n),"calculateCurrentPositionFromRatios",(function(e,t){var r=n.getContainerDimensions();return{currentX:e*r.containerWidth,currentY:t*r.containerHeight}})),s(h(n),"updateState",(function(e){n.lastMove=(new Date).getTime();var t=n.props,r=t.position,o=t.onDrag;r?o(l({},r,{},e)):n.setState(e)})),n.state={xRatio:0,yRatio:0,render_key:0},n.active=!1,n.initialX=0,n.initialY=0,n.ghostContainerDimensions=n.getContainerDimensions(),n.draggableRef=r.createRef(),n.handleWindowResize=gb(n._handleWindowResize,200),n}return f(t,e),u(t,[{key:"componentDidMount",value:function(){var e=this.props.onMount;this.container=o.findDOMNode(this).parentNode,this.container.addEventListener("touchstart",this.handleDragStart,!1),this.container.addEventListener("touchend",this.handleDragEnd,!1),this.container.addEventListener("touchmove",this.handleDrag,!1),this.container.addEventListener("mousedown",this.handleDragStart,!1),this.container.addEventListener("mouseup",this.handleDragEnd,!1),this.container.addEventListener("mousemove",this.handleDrag,!1),window.addEventListener("resize",this.handleWindowResize,!1),e&&e(this)}},{key:"componentDidUpdate",value:function(){var e=this.ghostContainerDimensions,t=e.containerWidth,n=e.containerHeight;this.ghostContainerDimensions=this.getContainerDimensions(),t===this.ghostContainerDimensions.containerWidth&&n===this.ghostContainerDimensions.containerHeight||this._handleWindowResize()}},{key:"componentWillUnmount",value:function(){this.container.removeEventListener("touchstart",this.handleDragStart),this.container.removeEventListener("touchend",this.handleDragEnd),this.container.removeEventListener("touchmove",this.handleDrag),this.container.removeEventListener("mousedown",this.handleDragStart),this.container.removeEventListener("mouseup",this.handleDragEnd),this.container.removeEventListener("mousemove",this.handleDrag),window.removeEventListener("resize",this.handleWindowResize,!1)}},{key:"render",value:function(){var e=this.getCurrentPosition(),t=e.currentX,n=e.currentY,o=this.props.className,i=this.getAxis(),a=i.xAxis,u=i.yAxis;return r.createElement("div",{ref:this.draggableRef,style:{transform:"translate3d(".concat(a?t:0,"px, ").concat(u?n:0,"px, 0)")},className:"react-draggable ".concat(o||"")},this.props.children)}}]),t}(r.Component);E_.propTypes={className:n.string,axis:n.oneOf(["x","y"]),position:n.shape({xRatio:n.number,yRatio:n.number}),onDragStart:n.func,onDrag:n.func,onDragEnd:n.func,draggableWidth:n.number,draggableHeight:n.number};var S_=function(e){function t(){return i(this,t),v(this,p(t).apply(this,arguments))}return f(t,e),u(t,[{key:"render",value:function(){return r.createElement("svg",{viewBox:"0 0 448 512"},r.createElement("path",{fill:"currentColor",d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"}))}}]),t}(r.Component),k_=function(e){function t(){return i(this,t),v(this,p(t).apply(this,arguments))}return f(t,e),u(t,[{key:"render",value:function(){return r.createElement("svg",{viewBox:"0 0 448 512"},r.createElement("path",{fill:"currentColor",d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"}))}}]),t}(r.Component),j_=function(e){function t(){return i(this,t),v(this,p(t).apply(this,arguments))}return f(t,e),u(t,[{key:"render",value:function(){return r.createElement("svg",{viewBox:"0 0 512 512"},r.createElement("path",{fill:"currentColor",d:"M304 192v32c0 6.6-5.4 12-12 12h-56v56c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-56h-56c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h56v-56c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v56h56c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"}))}}]),t}(r.Component);function C_(){var e=y(["",""]);return C_=function(){return e},e}var M_=Ai.Range,P_=function(e){function t(e){var n;return i(this,t),s(h(n=v(this,p(t).call(this,e))),"componentWillUnmount",(function(){window.removeEventListener("keydown",n.handleKeyPress)})),s(h(n),"getAcceptedDuration",(function(){var e=n.props,t=e.minDuration,r=e.maxDuration,o=n.state.videoDuration,i=parseFloat(t)||0;i<0&&(i=0);var a=parseFloat(r)||o;return a>o&&(a=o),i>a?{min:a,max:i}:{min:i,max:a}})),s(h(n),"getFormatedValues",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"in";e||(e=n.props.inPoint),t||(t=n.props.outPoint);var o=n.getAcceptedDuration(),i=o.min,a=o.max,u=n.state.videoDuration,s=e||0,c=t||u,l=function(e){c-s>a?"in"===e?c=s+a:s=c-a:c-su&&(c=u,l("out")),{inValue:s,outValue:c}})),s(h(n),"toggleVideoAutoPlay",(function(e){var t=n.videoRef.current;t&&(t.paused?(n.playVideo(),n.monitorAutoplay(e)):n.pauseVideo())})),s(h(n),"monitorAutoplay",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=n.videoRef.current;if(t&&!t.paused){if(!0===e){var r=n.getFormatedValues(),o=r.inValue,i=r.outValue,a=t.currentTime;(ai)&&(t.currentTime=o)}n.updatePlayCursorPosition(null,!0),setTimeout((function(){return n.monitorAutoplay(e)}),100)}})),s(h(n),"playVideo",(function(){var e=n.videoRef.current;e&&e.play(),n.setState({isPlaying:!0})})),s(h(n),"pauseVideo",(function(){var e=n.videoRef.current;e&&e.pause(),n.setState({isPlaying:!1})})),s(h(n),"updatePlayerVolume",(function(){var e=n.props.muted,t=n.videoRef.current;t&&(t.volume=e?0:.5)})),s(h(n),"scrollToCursor",(function(){var e=n.state,t=e.playCursorPosition,r=(e.zoomFactor,e.forceCursorDragging),o=t.xRatio,i=t.yRatio,a=n.draggableApi.calculateCurrentPositionFromRatios(o,i).currentX,u=n.scrollable.current,s=u.scrollLeft,c=u.clientWidth;(r||as+c)&&(n.scrollable.current.scrollLeft=a)})),s(h(n),"updatePlayCursorPosition",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===e){var r=n.videoRef.current,o=n.state.videoDuration;e=r&&o?r.currentTime/o:0}var i={xRatio:e,yRatio:0};n.setState({playCursorPosition:i},(function(){!0===t&&n.scrollToCursor()}))})),s(h(n),"handleVideoPlayerError",(function(e){var t=e.target.error;if(t&&4===t.code){var r=n.props.onNotSupportedVideoLoad;r&&r(t.message)}})),s(h(n),"handleDraggableApiMount",(function(e){return n.draggableApi=e})),s(h(n),"handleKeyPress",(function(e){32===e.keyCode&&(e.preventDefault(),n.toggleVideoAutoPlay())})),s(h(n),"handleLoadedData",(function(){var e=n.props.onVideoLoadedData,t=n.videoRef.current;if(t){var r=n.props.inPoint;void 0!==r&&n.seekVideoTo(r),n.updatePlayerVolume(),n.setState({videoDuration:t.duration},(function(){return n.updatePlayCursorPosition()})),e&&e(t)}})),s(h(n),"handleRangeChange",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=n.state.rangeDisabled;if(!r||t){var o=n.props,i=o.onRangeChange,a=o.outPoint,u=e[1]!==a?"out":"in",s=n.getFormatedValues(e[0],e[1],u),c=s.inValue,l=s.outValue;i([c,l])}})),s(h(n),"handleBeforeRangeChange",(function(e,t){n.pauseVideo(),n.setState({isEditing:!0})})),s(h(n),"handleAfterRangeChange",(function(){var e=n.state,t=e.playCursorPosition,r=e.videoDuration;n.seekVideoTo(t.xRatio*r),n.setState({isEditing:!1})})),s(h(n),"handleFreePlayClick",(function(){n.toggleVideoAutoPlay(!1)})),s(h(n),"handlePlayCursorDrag",(function(e){var t=e.xRatio,r=n.state.videoDuration;n.seekVideoTo(r*t),n.setState({playCursorPosition:e})})),s(h(n),"handleZoomFactorDragStart",(function(){return n.setState({forceCursorDragging:!0})})),s(h(n),"handleZoomFactorDragEnd",(function(){return n.setState({forceCursorDragging:!1})})),s(h(n),"handleZoomFactorChange",(function(e){n.state.zoomFactor;n.setState({zoomFactor:e},n.scrollToCursor)})),s(h(n),"handleContainerMouseDown",(function(e){e.stopPropagation();var t=e.target,r=n.state,o=r.rangeDisabled,i=r.forceCursorDragging;t.classList.contains("rc-slider-handle")||t.classList.contains("dnm-video-cut-playing-cursor")?(o||i)&&n.setState({rangeDisabled:!1,forceCursorDragging:!1}):o&&i||n.setState({rangeDisabled:!0,forceCursorDragging:!0})})),s(h(n),"handleContainerMouseUp",(function(){return n.setState({rangeDisabled:!0,forceCursorDragging:!1})})),s(h(n),"handleMuteChange",(function(e){var t=n.props.onMuteChange;t&&t(!e.target.checked)})),n.state={videoDuration:0,isEditing:!1,isPlaying:!1,rangeDisabled:!0,forceCursorDragging:!1,forceScrollToCursor:!1,zoomFactor:[0],playCursorPosition:{xRatio:0,yRatio:0}},n.videoRef=r.createRef(),n.scrollable=r.createRef(),n.draggable=r.createRef(),n.draggableApi=null,n.seekVideoTo=gb(n._seekVideoTo,20),n}return f(t,e),u(t,[{key:"componentDidMount",value:function(){window.addEventListener("keydown",this.handleKeyPress)}},{key:"componentDidUpdate",value:function(e,t){var n=this.state,r=n.videoDuration,o=n.isEditing,i=this.props,a=i.inPoint,u=i.outPoint,s=i.src,c=i.muted;if(isNaN(r)||r===t.videoDuration||this.handleRangeChange([a,u],!0),s!==e.src&&this.pauseVideo(),o&&(e.inPoint!==a||e.outPoint!==u)){var l;if(e.inPoint!==a&&e.outPoint!==u){var f=this.getAcceptedDuration(),p=f.min,d=f.max;l=Math.abs(u-a-p)a?a:u}else l=e.outPoint!==u?u:a;this.seekVideoTo(l)}c!==e.muted&&this.updatePlayerVolume()}},{key:"_seekVideoTo",value:function(e){if(!isNaN(e)){var t=this.videoRef.current;t&&(t.currentTime=e)}}},{key:"render",value:function(){var e=this.getFormatedValues(),t=e.inValue,n=e.outValue,r=this.state,o=r.videoDuration,i=r.playCursorPosition,a=r.isPlaying,u=r.forceCursorDragging,s=r.zoomFactor,c=this.props,l=c.src,f=c.catalogue,p=c.classes,d=c.playerCursorWidth,h=c.muted,v=c.onMuteChange;return Ct("div",{css:At(C_(),Us)},Ct("div",{className:"dnm-video-cut-root ".concat(p.root||""," ").concat(a?"is-playing":"is-paused")},Ct("video",{className:"dnm-video-cut-player ".concat(p.player||""),src:"".concat(l),ref:this.videoRef,loop:!0,muted:h,controls:!1,onLoadedData:this.handleLoadedData,onLoad:this.handleVideoLoad,onError:this.handleVideoPlayerError,preload:"auto"}),Ct("div",null,Ct("div",{className:"dnm-video-cut-play-icon",onClick:this.handleFreePlayClick},Ct(a?k_:S_,null)),Ct("div",{className:"dnm-video-cut-progress-scrollable-parent",ref:this.scrollable},Ct("div",{className:"dnm-video-cut-progress-container",style:{width:"calc(".concat(s[0]+100,"% - 20px)")},onTouchMove:this.handleContainerMouseDown,onTouchEnd:this.handleContainerMouseUp,onMouseDown:this.handleContainerMouseDown,onMouseUp:this.handleContainerMouseUp},Ct(E_,{className:"dnm-video-cut-playing-cursor-draggable-item",axis:"x",forceDragging:u,onMount:this.handleDraggableApiMount,onDrag:this.handlePlayCursorDrag,onDragStart:this.pauseVideo,position:i,draggableWidth:d,rerenderKey:s[0]},Ct("div",{className:"dnm-video-cut-playing-cursor",ref:this.draggable})),Ct(M_,{className:"dnm-video-cut-range ".concat(p.range||""),min:0,max:o||0,step:.05,value:[t,n],onChange:this.handleRangeChange,onBeforeChange:this.handleBeforeRangeChange,onAfterChange:this.handleAfterRangeChange}))),Ct("div",{className:"dnm-video-cut-tools"},Ct("div",{className:"dnm-video-cut-mute"},v&&Ct("label",{className:"dnm-video-cut-checkbox-container"},f.unmute,Ct("input",{type:"checkbox",checked:!h,onChange:this.handleMuteChange}),Ct("span",{className:"dnm-video-cut-checkmark"}))),Ct("div",{className:"dnm-video-cut-zoom"},Ct(M_,{className:"dnm-video-cut-zoom-range ".concat(p.zoomRange||""),min:0,max:900,step:.05,value:s,onBeforeChange:this.handleZoomFactorDragStart,onAfterChange:this.handleZoomFactorDragEnd,onChange:this.handleZoomFactorChange}),Ct("div",{className:"dnm-video-cut-zoom-icon"},Ct(j_,null))),Ct("div",{className:"clearfix"})))))}}]),t}(r.Component);return P_.propTypes={catalogue:n.object,classes:n.shape({root:n.string,player:n.string,range:n.string}),onRangeChange:n.func.isRequired,onNotSupportedVideoLoad:n.func,onVideoLoadedData:n.func,src:n.string.isRequired,inPoint:n.number,outPoint:n.number,draggableWidth:n.number,maxDuration:n.number,minDuration:n.number,muted:n.bool,onMuteChange:n.func,playerCursorWidth:n.oneOfType([n.func,n.number])},P_.defaultProps={catalogue:{unmute:"Enable sound"},classes:{},onRangeChange:function(e){return null},onNotSupportedVideoLoad:function(e){return null},onVideoLoadedData:function(e){return null},inPoint:0,outPoint:0,draggableWidth:null,maxDuration:0,minDuration:0,muted:!1,playerCursorWidth:14},P_})); diff --git a/package.json b/package.json index c0cbde4..a5ea990 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dnm-react-video-cut", - "version": "1.2.4", + "version": "1.2.5", "description": "", "main": "dist/dnm-react-video-cut.umd.min.js", "module": "dist/dnm-react-video-cut.es.min.js", diff --git a/src/core.js b/src/core.js index a5a90d5..d035ab4 100644 --- a/src/core.js +++ b/src/core.js @@ -34,7 +34,7 @@ export default class DnmVideoCut extends React.Component { this.scrollable = React.createRef(); this.draggable = React.createRef(); this.draggableApi = null; - this.seekVideoTo = throttle(this._seekVideoTo, 50); + this.seekVideoTo = throttle(this._seekVideoTo, 20); } componentDidMount() { @@ -264,9 +264,10 @@ export default class DnmVideoCut extends React.Component { handleContainerMouseDown = (ev) => { ev.stopPropagation(); const { target } = ev; + const { rangeDisabled, forceCursorDragging } = this.state; if(!target.classList.contains("rc-slider-handle") && !target.classList.contains("dnm-video-cut-playing-cursor")) { - this.setState({ rangeDisabled: true, forceCursorDragging: true }); - } else this.setState({ rangeDisabled: false, forceCursorDragging: false }); + if (!rangeDisabled || !forceCursorDragging) this.setState({ rangeDisabled: true, forceCursorDragging: true }); + } else if (rangeDisabled || forceCursorDragging) this.setState({ rangeDisabled: false, forceCursorDragging: false }); } handleContainerMouseUp = () => this.setState({ rangeDisabled: true, forceCursorDragging: false }); @@ -278,12 +279,12 @@ export default class DnmVideoCut extends React.Component { render() { const { inValue, outValue } = this.getFormatedValues(); - const { videoDuration, isEditing, playCursorPosition, isPlaying, forceCursorDragging, zoomFactor, } = this.state; + const { videoDuration, playCursorPosition, isPlaying, forceCursorDragging, zoomFactor, } = this.state; const { src, catalogue, classes, playerCursorWidth, muted, onMuteChange, } = this.props; return (
-
+