@livelybone/vue-select
Version:
A vue select component, includes cascader
9 lines (8 loc) • 54.3 kB
JavaScript
/**
* Bundle of @livelybone/vue-select
* Generated: 2023-12-26
* Version: 2.7.0
* License: MIT
* Author: 2631541504@qq.com
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).CascaderMultiVueSelect=t()}(this,function(){"use strict";function k(t,e){var n,o=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)),o}function i(o){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?k(Object(r),!0).forEach(function(e){var t,n;t=o,n=r[e=e],(e=function(e){e=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))})}return o}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var n;if(e)return"string"==typeof e?o(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var A={beforeMount:function(){this.initTemp()},props:{value:{default:function(){return[]},type:Array},expandType:String},data:function(){return{tempVal:[],optionsHeight:0,optionsRight:0,positionFixed:!0}},computed:{$lineStyle:function(){return{height:"".concat(this.optionsHeight,"px")}},showOptions:function(){var t=this;return this.options.map(function(e){return t.setSelect(e,0)})},selectedOptions:function(){return this.getSelected(this.showOptions).map(function(e){return e.children}).filter(function(e){return e})}},watch:{optionsHidden:function(e){e||this.$nextTick(this.listenOptionsStyle)},selectedOptions:function(e){e&&this.listenOptionsStyle()}},methods:{listenOptionsStyle:function(){var e;this.$refs.optionsEl&&(e=this.$refs.optionsEl.$el.clientHeight)&&this.optionsHeight!==e&&(this.optionsHeight=e)},getSelected:function(e){var o=this,t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:null)||this.tempVal,e=this.find(e,function(e){return o.isSelected(e,t[0])},"");return e?t.slice(1).reduce(function(e,t){var n=e[e.length-1].children;return n instanceof Array&&(n=o.find(n,function(e){return o.isSelected(e,t)},""))&&e.push(n),e},[e]):[]},isSelected:function(e,t){return e.value===t},isEnd:function(e){return!(e.children instanceof Array&&0<e.children.length)}}};function l(e){return(l="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 W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,s,a=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(a.push(o.value),a.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw r}}return a}}(e,t)||F(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||F(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){var n;if(e)return"string"==typeof e?s(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var B=function(e){return e.NormalObj="object",e.Array="Array",e}({});function a(t){var e=["undefined"!=typeof Promise&&Promise,"undefined"!=typeof Date&&Date,"undefined"!=typeof Error&&Error,"undefined"!=typeof RegExp&&RegExp,"undefined"!=typeof FileList&&FileList,"undefined"!=typeof File&&File,"undefined"!=typeof Element&&Element,"undefined"!=typeof Window&&Window,"undefined"!=typeof Document&&Document];return"object"===l(t)&&null!==t&&!e.some(function(e){return e&&t instanceof e})&&(t instanceof Array?B.Array:B.NormalObj)}function I(e){var c=["",""];return function i(e){var s,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:["Object"],t=2<arguments.length?arguments[2]:void 0;return"object"===l(e)&&null!==e&&(s=t?[].concat(R(t),[e]):[e],Object.entries(e).some(function(e){var t,n,e=W(e,2),o=e[0],e=e[1],o=[].concat(R(a),[o]),r=(t=e,n=s,void 0!==(r=Object.keys(n).find(function(e){return n[+e]===t}))?{index:+r}:void 0);return r?(c[0]=o.slice(0,r.index+1).reduce(function(e,t){return"".concat(e,".").concat(t)},"").replace(/^\./,""),c[1]=o.reduce(function(e,t){return"".concat(e,".").concat(t)},"").replace(/^\./,""),!0):i(e,o,s)}))}(e)?c:null}function z(o){for(var e=arguments.length,t=new Array(1<e?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return t.forEach(function(e){Object.entries(e).forEach(function(e){var e=W(e,2),t=e[0],e=e[1];if("__proto__"===t||"constructor"===t||"prototype"===t)return o;var n=o[t];a(e)&&a(n)?z(n,e):o[t]="object"===l(e)?JSON.parse(JSON.stringify(e)):e})}),o}var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,V=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&0<=navigator.userAgent.indexOf(e[t]))return 1;return 0}();var U=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},V))}};function Y(e){return e&&"[object Function]"==={}.toString.call(e)}function f(e,t){return 1!==e.nodeType?[]:(e=e.ownerDocument.defaultView.getComputedStyle(e,null),t?e[t]:e)}function c(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function p(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=f(e),n=t.overflow,o=t.overflowX,t=t.overflowY;return/(auto|scroll|overlay)/.test(n+t+o)?e:p(c(e))}function X(e){return e&&e.referenceNode?e.referenceNode:e}var J=n&&!(!window.MSInputMethodContext||!document.documentMode),q=n&&/MSIE 10/.test(navigator.userAgent);function u(e){return 11===e?J:10!==e&&J||q}function d(e){if(!e)return document.documentElement;for(var t=u(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===f(n,"position")?d(n):n:(e?e.ownerDocument:document).documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function m(e,t){var n,o,r;return e&&e.nodeType&&t&&t.nodeType?(o=(r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING)?e:t,r=r?t:e,(n=document.createRange()).setStart(o,0),n.setEnd(r,0),e!==(n=n.commonAncestorContainer)&&t!==n||o.contains(r)?"BODY"===(r=(o=n).nodeName)||"HTML"!==r&&d(o.firstElementChild)!==o?d(n):n:(r=h(e)).host?m(r.host,t):m(e,h(t).host)):document.documentElement}function b(e,t){var t="top"===(1<arguments.length&&void 0!==t?t:"top")?"scrollTop":"scrollLeft",n=e.nodeName;return("BODY"===n||"HTML"===n?(n=e.ownerDocument.documentElement,e.ownerDocument.scrollingElement||n):e)[t]}function G(e,t){var t="x"===t?"Left":"Top",n="Left"==t?"Right":"Bottom";return parseFloat(e["border"+t+"Width"])+parseFloat(e["border"+n+"Width"])}function K(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],u(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function Q(e){var t=e.body,e=e.documentElement,n=u(10)&&getComputedStyle(e);return{height:K("Height",t,e,n),width:K("Width",t,e,n)}}var e=function(e,t,n){return t&&Z(e.prototype,t),n&&Z(e,n),e};function Z(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,o=arguments[t];for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e};function y(e){return g({},e,{right:e.left+e.width,bottom:e.top+e.height})}function ee(e){var t={};try{u(10)?(t=e.getBoundingClientRect(),n=b(e,"top"),o=b(e,"left"),t.top+=n,t.left+=o,t.bottom+=n,t.right+=o):t=e.getBoundingClientRect()}catch(e){}var n={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?Q(e.ownerDocument):{},t=o.width||e.clientWidth||n.width,o=o.height||e.clientHeight||n.height,t=e.offsetWidth-t,o=e.offsetHeight-o;return(t||o)&&(t-=G(e=f(e),"x"),o-=G(e,"y"),n.width-=t,n.height-=o),y(n)}function te(e,t,n){var n=2<arguments.length&&void 0!==n&&n,o=u(10),r="HTML"===t.nodeName,i=ee(e),s=ee(t),e=p(e),a=f(t),c=parseFloat(a.borderTopWidth),l=parseFloat(a.borderLeftWidth),s=(n&&r&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0)),y({top:i.top-s.top-c,left:i.left-s.left-l,width:i.width,height:i.height}));return s.marginTop=0,s.marginLeft=0,!o&&r&&(i=parseFloat(a.marginTop),r=parseFloat(a.marginLeft),s.top-=c-i,s.bottom-=c-i,s.left-=l-r,s.right-=l-r,s.marginTop=i,s.marginLeft=r),s=(o&&!n?t.contains(e):t===e&&"BODY"!==e.nodeName)?function(e,t,n){var n=2<arguments.length&&void 0!==n&&n,o=b(t,"top"),t=b(t,"left"),n=n?-1:1;return e.top+=o*n,e.bottom+=o*n,e.left+=t*n,e.right+=t*n,e}(s,t):s}function ne(e){if(!e||!e.parentElement||u())return document.documentElement;for(var t=e.parentElement;t&&"none"===f(t,"transform");)t=t.parentElement;return t||document.documentElement}function oe(e,t,n,o,r){var i,r=4<arguments.length&&void 0!==r&&r,s={top:0,left:0},a=r?ne(e):m(e,X(t)),a=("viewport"===o?s=function(e,t){var t=1<arguments.length&&void 0!==t&&t,n=e.ownerDocument.documentElement,e=te(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:b(n),t=t?0:b(n,"left");return y({top:i-e.top+e.marginTop,left:t-e.left+e.marginLeft,width:o,height:r})}(a,r):(i=void 0,"scrollParent"===o?"BODY"===(i=p(c(t))).nodeName&&(i=e.ownerDocument.documentElement):i="window"===o?e.ownerDocument.documentElement:o,t=te(i,a,r),"HTML"!==i.nodeName||function e(t){var n=t.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===f(t,"position")||!!(n=c(t))&&e(n))}(a)?s=t:(r=(o=Q(e.ownerDocument)).height,i=o.width,s.top+=t.top-t.marginTop,s.bottom=r+t.top,s.left+=t.left-t.marginLeft,s.right=i+t.left)),"number"==typeof(n=n||0));return s.left+=a?n:n.left||0,s.top+=a?n:n.top||0,s.right-=a?n:n.right||0,s.bottom-=a?n:n.bottom||0,s}function re(e,t,n,o,r,i){var s,i=5<arguments.length&&void 0!==i?i:0;return-1===e.indexOf("auto")?e:(o=oe(n,o,i,r),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},(0<(r=(i=Object.keys(s).map(function(e){return g({key:e},s[e],{area:(e=s[e]).width*e.height})}).sort(function(e,t){return t.area-e.area})).filter(function(e){var t=e.width,e=e.height;return t>=n.clientWidth&&e>=n.clientHeight})).length?r:i)[0].key+((t=e.split("-")[1])?"-"+t:""))}function ie(e,t,n,o){o=3<arguments.length&&void 0!==o?o:null;return te(n,o?ne(t):m(t,X(n)),o)}function se(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),t=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+t,height:e.offsetHeight+n}}function w(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function ae(e,t,n){n=n.split("-")[0];var e=se(e),o={width:e.width,height:e.height},r=-1!==["right","left"].indexOf(n),i=r?"top":"left",s=r?"left":"top",a=r?"height":"width",r=r?"width":"height";return o[i]=t[i]+t[a]/2-e[a]/2,o[s]=n===s?t[s]-e[r]:t[w(s)],o}function O(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function ce(e,n,t){var o,r;return(void 0===t?e:e.slice(0,(e=e,o="name",r=t,Array.prototype.findIndex?e.findIndex(function(e){return e[o]===r}):(t=O(e,function(e){return e[o]===r}),e.indexOf(t))))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=e.function||e.fn;e.enabled&&Y(t)&&(n.offsets.popper=y(n.offsets.popper),n.offsets.reference=y(n.offsets.reference),n=t(n,e))}),n}function le(e,n){return e.some(function(e){var t=e.name;return e.enabled&&t===n})}function pe(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length;o++){var r=t[o],r=r?""+r+n:e;if(void 0!==document.body.style[r])return r}return null}function fe(e){e=e.ownerDocument;return e?e.defaultView:window}function ue(e,t,n,o){n.updateBound=o,fe(e).addEventListener("resize",n.updateBound,{passive:!0});o=p(e);return function e(t,n,o,r){var i="BODY"===t.nodeName,t=i?t.ownerDocument.defaultView:t;t.addEventListener(n,o,{passive:!0}),i||e(p(t.parentNode),n,o,r),r.push(t)}(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function de(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,fe(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function he(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function me(n,o){Object.keys(o).forEach(function(e){var t="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&he(o[e])&&(t="px"),n.style[e]=o[e]+t})}function be(e,t){function n(e){return e}var o=e.offsets,r=o.popper,o=o.reference,i=Math.round,s=Math.floor,o=i(o.width),a=i(r.width),c=-1!==["left","right"].indexOf(e.placement),e=-1!==e.placement.indexOf("-"),c=t?c||e||o%2==a%2?i:s:n,s=t?i:n;return{left:c(o%2==1&&a%2==1&&!e&&t?r.left-1:r.left),top:s(r.top),bottom:s(r.bottom),right:c(r.right)}}var ve=n&&/Firefox/i.test(navigator.userAgent);function ge(e,t,n){var o,r=O(e,function(e){return e.name===t}),e=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});return e||(o="`"+t+"`",console.warn("`"+n+"`"+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")),e}var t=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ye=t.slice(3);function we(e,t){t=1<arguments.length&&void 0!==t&&t,e=ye.indexOf(e),e=ye.slice(e+1).concat(ye.slice(0,e));return t?e.reverse():e}var Oe="flip",xe="clockwise",Se="counterclockwise";function Ee(e,a,c,t){var r=[0,0],o=-1!==["right","left"].indexOf(t),t=e.split(/(\+|\-)/).map(function(e){return e.trim()}),e=t.indexOf(O(t,function(e){return-1!==e.search(/,|\s/)})),n=(t[e]&&-1===t[e].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),/\s*,\s*|\s+/);return(-1!==e?[t.slice(0,e).concat([t[e].split(n)[0]]),[t[e].split(n)[1]].concat(t.slice(e+1))]:[t]).map(function(e,t){var s=(1===t?!o:o)?"height":"width",n=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,n=!0,e):n?(e[e.length-1]+=t,n=!1,e):e.concat(t)},[]).map(function(e){return t=s,n=a,o=c,r=+(i=(e=e).match(/((?:\-|\+)?\d*\.?\d*)(.*)/))[1],i=i[2],r?0===i.indexOf("%")?y("%p"===i?n:o)[t]/100*r:"vh"===i||"vw"===i?("vh"===i?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r:r:e;var t,n,o,r,i})}).forEach(function(n,o){n.forEach(function(e,t){he(e)&&(r[o]+=e*("-"===n[t-1]?-1:1))})}),r}var x={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t,n,o,r=e.placement,i=r.split("-")[0];return(r=r.split("-")[1])&&(t=(n=e.offsets).reference,n=n.popper,o=(i=-1!==["bottom","top"].indexOf(i))?"width":"height",i={start:v({},i=i?"left":"top",t[i]),end:v({},i,t[i]+t[o]-n[o])},e.offsets.popper=g({},n,i[r])),e}},offset:{order:200,enabled:!0,fn:function(e,t){var t=t.offset,n=e.placement,o=(r=e.offsets).popper,r=r.reference,n=n.split("-")[0],i=void 0,i=he(+t)?[+t,0]:Ee(t,o,r,n);return"left"===n?(o.top+=i[0],o.left-=i[1]):"right"===n?(o.top+=i[0],o.left+=i[1]):"top"===n?(o.left+=i[0],o.top-=i[1]):"bottom"===n&&(o.left+=i[0],o.top+=i[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,o){var t=o.boundariesElement||d(e.instance.popper),n=(e.instance.reference===t&&(t=d(t)),pe("transform")),r=e.instance.popper.style,i=r.top,s=r.left,a=r[n],c=(r.top="",r.left="",r[n]="",oe(e.instance.popper,e.instance.reference,o.padding,t,e.positionFixed)),t=(r.top=i,r.left=s,r[n]=a,o.boundaries=c,o.priority),l=e.offsets.popper,p={primary:function(e){var t=l[e];return l[e]<c[e]&&!o.escapeWithReference&&(t=Math.max(l[e],c[e])),v({},e,t)},secondary:function(e){var t="right"===e?"left":"top",n=l[t];return l[e]>c[e]&&!o.escapeWithReference&&(n=Math.min(l[t],c[e]-("right"===e?l.width:l.height))),v({},t,n)}};return t.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=g({},l,p[t](e))}),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=(n=e.offsets).popper,n=n.reference,o=e.placement.split("-")[0],r=Math.floor,i=(o=-1!==["top","bottom"].indexOf(o))?"right":"bottom",s=o?"left":"top",o=o?"width":"height";return t[i]<r(n[s])&&(e.offsets.popper[s]=r(n[s])-t[o]),t[s]>r(n[i])&&(e.offsets.popper[s]=r(n[i])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){if(ge(e.instance.modifiers,"arrow","keepTogether")){t=t.element;if("string"==typeof t){if(!(t=e.instance.popper.querySelector(t)))return e}else if(!e.instance.popper.contains(t))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var n=e.placement.split("-")[0],o=e.offsets,r=o.popper,o=o.reference,n=-1!==["left","right"].indexOf(n),i=n?"height":"width",s=n?"Top":"Left",a=s.toLowerCase(),c=n?"left":"top",n=n?"bottom":"right",l=se(t)[i],n=(o[n]-l<r[a]&&(e.offsets.popper[a]-=r[a]-(o[n]-l)),o[a]+l>r[n]&&(e.offsets.popper[a]+=o[a]+l-r[n]),e.offsets.popper=y(e.offsets.popper),o[a]+o[i]/2-l/2),o=f(e.instance.popper),p=parseFloat(o["margin"+s]),o=parseFloat(o["border"+s+"Width"]),s=n-e.offsets.popper[a]-p-o,s=Math.max(Math.min(r[i]-l,s),0);e.arrowElement=t,e.offsets.arrow=(v(n={},a,Math.round(s)),v(n,c,""),n)}return e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(l,p){if(!(le(l.instance.modifiers,"inner")||l.flipped&&l.placement===l.originalPlacement)){var f=oe(l.instance.popper,l.instance.reference,p.padding,p.boundariesElement,l.positionFixed),u=l.placement.split("-")[0],d=w(u),h=l.placement.split("-")[1]||"",m=[];switch(p.behavior){case Oe:m=[u,d];break;case xe:m=we(u);break;case Se:m=we(u,!0);break;default:m=p.behavior}m.forEach(function(e,t){if(u!==e||m.length===t+1)return l;u=l.placement.split("-")[0],d=w(u);var e=l.offsets.popper,n=l.offsets.reference,o=Math.floor,n="left"===u&&o(e.right)>o(n.left)||"right"===u&&o(e.left)<o(n.right)||"top"===u&&o(e.bottom)>o(n.top)||"bottom"===u&&o(e.top)<o(n.bottom),r=o(e.left)<o(f.left),i=o(e.right)>o(f.right),s=o(e.top)<o(f.top),e=o(e.bottom)>o(f.bottom),o="left"===u&&r||"right"===u&&i||"top"===u&&s||"bottom"===u&&e,a=-1!==["top","bottom"].indexOf(u),c=!!p.flipVariations&&(a&&"start"===h&&r||a&&"end"===h&&i||!a&&"start"===h&&s||!a&&"end"===h&&e),i=!!p.flipVariationsByContent&&(a&&"start"===h&&i||a&&"end"===h&&r||!a&&"start"===h&&e||!a&&"end"===h&&s),r=c||i;(n||o||r)&&(l.flipped=!0,(n||o)&&(u=m[t+1]),r&&(h="end"===(e=h)?"start":"start"===e?"end":e),l.placement=u+(h?"-"+h:""),l.offsets.popper=g({},l.offsets.popper,ae(l.instance.popper,l.offsets.reference,l.placement)),l=ce(l.instance.modifiers,l,"flip"))})}return l},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=(r=e.offsets).popper,r=r.reference,i=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[i?"left":"top"]=r[n]-(s?o[i?"width":"height"]:0),e.placement=w(t),e.offsets.popper=y(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(ge(e.instance.modifiers,"hide","preventOverflow")){var t=e.offsets.reference,n=O(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,o=t.y,r=e.offsets.popper,i=(void 0!==(i=O(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration)&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!"),void 0!==i?i:t.gpuAcceleration),s=ee(t=d(e.instance.popper)),r={position:r.position},a=be(e,window.devicePixelRatio<2||!ve),n="bottom"===n?"top":"bottom",o="right"===o?"left":"right",c=pe("transform"),l=void 0,p=void 0,p="bottom"==n?"HTML"===t.nodeName?-t.clientHeight+a.bottom:-s.height+a.bottom:a.top,l="right"==o?"HTML"===t.nodeName?-t.clientWidth+a.right:-s.width+a.right:a.left,s=(i&&c?(r[c]="translate3d("+l+"px, "+p+"px, 0)",r[n]=0,r[o]=0,r.willChange="transform"):(t="right"==o?-1:1,r[n]=p*("bottom"==n?-1:1),r[o]=l*t,r.willChange=n+", "+o),{"x-placement":e.placement});return e.attributes=g({},s,e.attributes),e.styles=g({},r,e.styles),e.arrowStyles=g({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return me(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&me(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,o,r){return r=ie(r,t,e,n.positionFixed),r=re(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding),t.setAttribute("x-placement",r),me(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},S=(e(E,[{key:"update",value:function(){return function(){var e;this.state.isDestroyed||((e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}}).offsets.reference=ie(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=re(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=ae(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=ce(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e)))}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,le(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[pe("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=ue(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return de.call(this)}}]),E);function E(e,t){var n=this,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r=this,i=E;if(!(r instanceof i))throw new TypeError("Cannot call a class as a function");this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=U(this.update.bind(this)),this.options=g({},E.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(g({},E.Defaults.modifiers,o.modifiers)).forEach(function(e){n.options.modifiers[e]=g({},E.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return g({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&Y(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)}),this.update();r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}function _e(t,e){var n,o=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)),o}function Pe(o){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_e(Object(r),!0).forEach(function(e){var t,n;t=o,n=r[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):_e(Object(r)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))})}return o}S.Utils=("undefined"!=typeof window?window:global).PopperUtils,S.placements=t,S.Defaults=x;var _="undefined"!=typeof window&&"undefined"!=typeof document;function Te(e,t,n,o){var r,i,o=3<arguments.length&&void 0!==o?o:"left",s=n.offsets,n=n.arrowElement,a=s.arrow,c=s.reference,s=s.popper,a="left"===o?a.left:a.top;return"number"==typeof a&&(i="left"===o?"left":"top",r="left"===o?"width":"height",o="left"===o?"offsetWidth":"offsetHeight",i="start"===e?t+Math.max(0,-(s[i]-c[i])):"end"===e?Math.min(c[r],s[r])-Math.min(0,s[i]-c[i])-t-n[o]:a<t?t:(e=s[r]-n[o]-t)<a?e:a),i}e={name:"VuePopper",props:{arrowPosition:{default:"middle",type:String},arrowOffsetScaling:{default:_&&window.devicePixelRatio||1,type:Number},referenceElm:_?[Window,Element,Document]:Object,popperOptions:Object},data:function(){return{popperJs:null}},computed:{options:function(){var o=this,e=(this.popperOptions||{}).modifiers;return Pe({},this.popperOptions,{modifiers:Pe({},e,{arrow:{fn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,o){return(n=S.Defaults.modifiers.arrow.fn(n,o)).offsets.arrow.left=Te(e,t,n),n.offsets.arrow.top=Te(e,t,n,"top"),n}.apply(void 0,[o.arrowPosition,o.arrowOffset].concat(t))},element:"[x-arrow]"}})})},arrowOffset:function(){return 10*this.arrowOffsetScaling}},watch:{referenceElm:function(){this.createPopper()}},methods:{referenceEle:function(){return this.referenceElm||(_&&this.$el?this.$el.parentNode||window:null)},createPopper:function(){var e=this.referenceEle();e&&(this.destroyPopper(),this.popperJs=new S(e,this.$el,this.options))},updatePopper:function(){this.popperJs&&this.popperJs.scheduleUpdate()},destroyPopper:function(){this.popperJs&&this.popperJs.destroy()}},mounted:function(){var e,t,n=this;_&&(e="vue-popper-module-style",document.getElementById(e)||((t=document.createElement("style")).id=e,t.innerText=".arrow-extend,.vue-popper[x-placement^=top] .arrow,.vue-popper[x-placement^=top] .arrow:before,.vue-popper[x-placement^=bottom] .arrow,.vue-popper[x-placement^=bottom] .arrow:before,.vue-popper[x-placement^=left] .arrow,.vue-popper[x-placement^=left] .arrow:before,.vue-popper[x-placement^=right] .arrow,.vue-popper[x-placement^=right] .arrow:before{position:absolute;width:0;height:0}.vue-popper{border:1px solid #c2ccdc;border-radius:.2em;background:#fff}.vue-popper[x-placement^=top]{margin-bottom:.75em}.vue-popper[x-placement^=top] .arrow{bottom:-.4em;border:.4em solid transparent;border-bottom:0;border-top-color:#c2ccdc}.vue-popper[x-placement^=top] .arrow:before{content:'';bottom:-.4em;border:.4em solid transparent;border-bottom:0;border-top-color:#fff;left:-.4em;bottom:1px}.vue-popper[x-placement^=bottom]{margin-top:.75em}.vue-popper[x-placement^=bottom] .arrow{top:-.4em;border:.4em solid transparent;border-top:0;border-bottom-color:#c2ccdc}.vue-popper[x-placement^=bottom] .arrow:before{content:'';top:-.4em;border:.4em solid transparent;border-top:0;border-bottom-color:#fff;left:-.4em;top:1px}.vue-popper[x-placement^=left]{margin-right:.75em}.vue-popper[x-placement^=left] .arrow{right:-.4em;border:.4em solid transparent;border-right:0;border-left-color:#c2ccdc}.vue-popper[x-placement^=left] .arrow:before{content:'';right:-.4em;border:.4em solid transparent;border-right:0;border-left-color:#fff;top:-.4em;right:1px}.vue-popper[x-placement^=right]{margin-left:.75em}.vue-popper[x-placement^=right] .arrow{left:-.4em;border:.4em solid transparent;border-left:0;border-right-color:#c2ccdc}.vue-popper[x-placement^=right] .arrow:before{content:'';left:-.4em;border:.4em solid transparent;border-left:0;border-right-color:#fff;top:-.4em;left:1px}",document.head.appendChild(t))),this.createPopper(),this.$on("hook:updated",function(){return n.updatePopper()}),this.$on("hook:beforeDestroy",function(){return n.destroyPopper()})}};He=je=T=$e=t=P=void 0,"boolean"!=typeof(j=Ne=!(x={render:function(){var e=this.$createElement,e=this._self._c||e;return e("div",{staticClass:"vue-popper"},[e("div",{staticClass:"arrow",attrs:{"x-arrow":""}}),this._v(" "),this._t("default")],2)},staticRenderFns:[]}))&&(je=T,T=j,j=!1),H="function"==typeof(e=e)?e.options:e,x&&x.render&&(H.render=x.render,H.staticRenderFns=x.staticRenderFns,H._compiled=!0,Ne)&&(H.functional=!0),t&&(H._scopeId=t),$e?($=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),P&&P.call(this,je(e)),e&&e._registeredComponents&&e._registeredComponents.add($e)},H._ssrRegister=$):P&&($=j?function(e){P.call(this,He(e,this.$root.$options.shadowRoot))}:function(e){P.call(this,T(e))}),$&&(H.functional?(Ce=H.render,H.render=function(e,t){return $.call(t),Ce(e,t)}):(x=H.beforeCreate,H.beforeCreate=x?[].concat(x,$):[$]));var P,$e,T,je,He,$,Ce,Ne=e,t=Le,j=Le,H=Le,Me=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,De=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function Le(e){var t,n=(e=e||{}).ua;return"string"==typeof(n=(n=n||"undefined"==typeof navigator?n:navigator.userAgent)&&n.headers&&"string"==typeof n.headers["user-agent"]?n.headers["user-agent"]:n)&&(!!(!(t=(e.tablet?De:Me).test(n))&&e.tablet&&e.featureDetect&&navigator&&1<navigator.maxTouchPoints&&-1!==n.indexOf("Macintosh")&&-1!==n.indexOf("Safari"))||t)}function ke(t,e){var n,o=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)),o}function C(o){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ke(Object(r),!0).forEach(function(e){var t,n;t=o,n=r[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):ke(Object(r)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))})}return o}function Ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],o=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==a.return||a.return()}finally{if(r)throw i}}return n}}(e,t)||function(e,t){var n;if(e)return"string"==typeof e?We(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?We(e,t):void 0}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function We(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}t.isMobile=j,t.default=H,"undefined"!=typeof window&&"undefined"!=typeof document&&0 in document.createElement("div");var Re=j(),Fe="",Be="addEventListener",Ie="removeEventListener";function N(e,t,n,o){var r=Fe+t;return e[Be].bind(e)(r,n,o),function(){e[Ie].bind(e)(r,n,o)}}"undefined"!=typeof window&&"undefined"!=typeof document&&("addEventListener"in window?(Be="addEventListener",Ie="removeEventListener"):(Be="attachEvent",Ie="detachEvent",Fe="on"));var ze=Object.freeze({$isMobile:Re,$addListener:N}),x=Re?"mobile":"pc",M={start:{pc:"mousedown",mobile:"touchstart"}[x],move:{pc:"mousemove",mobile:"touchmove"}[x],end:{pc:"mouseup",mobile:"touchend"}[x]};function D(e){var t=null;return(t=Re?(0<e.changedTouches.length||0<e.targetTouched.length?Ae(e.changedTouches,1):Ae(e.touches,1))[0]:t)||e}function Ve(e,t){return{deltaX:D(e).clientX-D(t).clientX,deltaY:D(e).clientY-D(t).clientY,originalEvent:e}}var Ue=Object.freeze({bind:function(e,i,s){var a,c;return"function"==typeof e&&(s=i,i=e,e=window),N(e,M.start,function e(t){var n,o,r={deltaX:0,deltaY:0,originalEvent:t,type:"dragMoveStart"};t.type===M.start?(a=t,n=N(window,M.move,e,s),o=N(window,M.end,e,s),c=function(){n(),o()}):t.type===M.move?r=C(C({},Ve(t,a)),{},{type:"dragMove"}):t.type===M.end&&(r=C(C({},Ve(t,a)),{},{type:"dragMoveEnd"}),c)&&c(),i(r)},s)}});function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ye(t,e){var n,o=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)),o}var Xe={x:{posPropName:"left",parentScrollPos:"scrollLeft",deltaName:"deltaX",sizeName:"width"},y:{posPropName:"top",parentScrollPos:"scrollTop",deltaName:"deltaY",sizeName:"height"}},Je={opacity:1,pointerEvents:"initial"};e=function(e,t,n,o,r,i,s,a,c,l){"boolean"!=typeof s&&(c=a,a=s,s=!1);var p,f,u="function"==typeof n?n.options:n;return e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,r)&&(u.functional=!0),o&&(u._scopeId=o),i?(p=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,c(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=p):t&&(p=s?function(){t.call(this,l(this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),p&&(u.functional?(f=u.render,u.render=function(e,t){return p.call(t),f(e,t)}):(e=u.beforeCreate,u.beforeCreate=e?[].concat(e,p):[p])),n},t=e({render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"show",rawName:"v-show",value:e.$_show,expression:"$_show"}],staticClass:"scrollbar",class:"scrollbar-"+e.type,style:e.$_barStyle,attrs:{draggable:!1}})},staticRenderFns:[]},void 0,{name:"Bar",props:{type:String,parentScroll:Number,marginToWrap:{type:Number,default:5},clientSize:Number,scrollSize:Number},data:function(){return{sPosition:0,showBar:!1,unbind:null,startPosition:0}},computed:{$_show:function(){return this.scrollSize>this.clientSize},$_scrollbarType:function(){return Xe[this.type]},size:function(){return this.clientSize/this.scrollSize*this.clientSize-2*this.marginToWrap},positionRange:function(){return{min:this.marginToWrap,max:this.clientSize-this.marginToWrap-this.size}},$_barStyle:function(){var e;return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ye(n,!0).forEach(function(e){L(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ye(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},this.showBar?Je:{},(L(e={},this.$_scrollbarType.posPropName,"".concat(this.sPosition,"px !important")),L(e,this.$_scrollbarType.sizeName,"".concat(this.size,"px !important")),L(e,"userSelect","none"),e))}},watch:{$_show:{handler:function(e){var t=this;this.$nextTick(function(){t.unbind&&t.unbind(),e&&"undefined"!=typeof window&&t.$el&&(t.unbind=Ue.bind(t.$el,t.drag))})},immediate:!0},parentScroll:{handler:function(e){this.sPosition=(this.positionRange.max-this.positionRange.min)/(this.scrollSize-this.clientSize)*e+this.positionRange.min},immediate:!0}},methods:{drag:function(e){e.originalEvent.preventDefault(),"dragMoveStart"===e.type&&(this.startPosition=this.sPosition);var t=Math.min(this.positionRange.max,Math.max(this.positionRange.min,this.startPosition+e[this.$_scrollbarType.deltaName]));this.$emit("scrollTo",L({},this.$_scrollbarType.parentScrollPos,(t-this.marginToWrap)/(this.positionRange.max-this.marginToWrap)*(this.scrollSize-this.clientSize))),this.showBar="dragMoveEnd"!==e.type}},beforeDestroy:function(){this.unbind&&this.unbind()}},void 0,!1,void 0,void 0,void 0);function qe(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return e.some(function(e){return!!t(e)&&(n=e,!0)}),n}function Ge(e,t,n,o,r,i,s,a,c,l){"boolean"!=typeof s&&(c=a,a=s,s=!1);var p,f,u="function"==typeof n?n.options:n;return e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,r)&&(u.functional=!0),o&&(u._scopeId=o),i?(p=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,c(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=p):t&&(p=s?function(e){t.call(this,l(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),p&&(u.functional?(f=u.render,u.render=function(e,t){return p.call(t),f(e,t)}):(e=u.beforeCreate,u.beforeCreate=e?[].concat(e,p):[p])),n}return Ge({render:function(){var n=this,e=n.$createElement,o=n._self._c||e;return o("div",{ref:"wrap",staticClass:"cascader-multi",class:{disabled:!n.canEdit}},[o("div",{staticClass:"value values"},[n._l(n.showSelected,function(t,e){return o("div",{key:e,staticClass:"val"},[o("span",{staticClass:"v",domProps:{innerHTML:n._s(t.name)}}),n._v(" "),n.canEdit?o("span",{staticClass:"icon-del",on:{click:function(e){return e.stopPropagation(),n.deal(t.value)}}}):n._e()])}),n._v(" "),n.canEdit?[n.canSearch?o("input",{directives:[{name:"model",rawName:"v-model",value:n.inputVal,expression:"inputVal"}],ref:"input",staticClass:"input val",attrs:{placeholder:n.$searchPlaceholder},domProps:{value:n.inputVal},on:{input:function(e){e.target.composing||(n.inputVal=e.target.value)}}}):n.showSelected.length<=0?o("span",{staticClass:"val placeholder"},[n._v(n._s(n.$placeholder))]):n._e()]:n._e()],2),n._v(" "),n.canEdit?[o("span",{staticClass:"icon-arrow",class:{reverse:!n.optionsHidden}}),n._v(" "),o("popper",{directives:[{name:"show",rawName:"v-show",value:!n.optionsHidden,expression:"!optionsHidden"}],ref:"optionsEl",staticClass:"options",attrs:{popperOptions:n.$popperProps.popperOptions,arrowPosition:n.$popperProps.arrowPosition,arrowOffsetScaling:n.$popperProps.arrowOffsetScaling}},[o("options",{attrs:{$_select_isMobile:n.$_select_isMobile,maxHeight:n.maxHeight,marginToWrap:n.marginToWrap,options:n.showOptions},on:{startDrag:function(e){n.shouldHide=!1},endDrag:n.endDrag,select:function(e){return n.click(e,0)},hover:function(e){return n.hover(e,0)}}},[n._t("default")],2),n._v(" "),n._l(n.selectedOptions,function(e,t){return[o("div",{key:"line"+t,staticClass:"line",style:n.$lineStyle}),n._v(" "),o("options",{key:t,attrs:{$_select_isMobile:n.$_select_isMobile,maxHeight:n.maxHeight,marginToWrap:n.marginToWrap,options:e},on:{startDrag:function(e){n.shouldHide=!1},endDrag:n.endDrag,select:function(e){return n.click(e,+t+1)},hover:function(e){return n.hover(e,+t+1)}}},[n._t(t)],2)]})],2)]:n._e()],2)},staticRenderFns:[]},void 0,{mixins:[{components:{Options:Ge({render:function(){var n=this,e=n.$createElement,o=n._self._c||e;return o("scrollbar",n._g({attrs:{isMobile:n.$_select_isMobile,maxHeight:n.maxHeight,scrollTo:n.scrollTo,marginToWrap:n.marginToWrap}},n.$listeners),[n._l(n.options,function(t,e){return o("div",{key:e,ref:"option-"+e,refInFor:!0,staticClass:"option",class:{selected:t.selected},on:{mouseenter:function(e){return n.$emit("hover",t)},click:function(e){return e.stopPropagation(),n.$emit("select",t)}}})}),n._v(" "),n.options.length?n._e():n._t("default")],2)},staticRenderFns:[]},void 0,{components:{scrollbar:e({render:function(){var n=this,e=n.$createElement,o=n._self._c||e;return o("div",{ref:"wrap",staticClass:"scrollbar-wrap",style:n.$_wrapStyle,on:{click:function(e){return n.$emit("wrapClick",e)}}},[o("div",{ref:"content",staticClass:"scrollbar-content",style:n.$_contentStyle},[n._t("default")],2),n._v(" "),!n.isMobile&&n.width.content&&n.height.content?n._l(n.scrollbars,function(e,t){return o("Bar",{key:t,attrs:{type:t,marginToWrap:n.marginToWrap,parentScroll:n.scrollPos[e.scrollPropName],clientSize:e.size.content,scrollSize:e.size.contentInner},on:{scrollTo:function(e){return n.setScroll(e,"drag")}}})}):n._e()],2)},staticRenderFns:[]},void 0,{name:"Scrollbar",components:{Bar:t},props:{isMobile:Boolean,maxHeight:[Number,String],scrollTo:[Number,Object],marginToWrap:{default:5,type:Number}},data:function(){return{width:{parent:0,content:0,contentInner:0},height:{parent:0,content:0,contentInner:0},scrollPos:{scrollLeft:0,scrollTop:0},isTop:!0,isBottom:!0,isLeft:!0,isRight:!0,nativeScrollbarWidth:{x:0,y:0}}},computed:{scrollbars:function(){return{x:{scrollPropName:"scrollLeft",size:this.width},y:{scrollPropName:"scrollTop",size:this.height}}},$_maxHeight:function(){var n=this;return"number"==typeof this.maxHeight?"".concat(this.maxHeight,"px"):/%/.test(this.maxHeight)?this.maxHeight.replace(/(\d+)%/g,function(e,t){return"".concat(n.height.parent*t/100,"px")}):this.maxHeight},$_wrapStyle:function(){return{position:"relative",height:this.isMobile?"auto !important":"".concat(this.height.content,"px !important"),maxHeight:"".concat(this.$_maxHeight," !important"),padding:"0 !important",overflow:"hidden !important"}},$_contentStyle:function(){var e,t;return this.isMobile?{maxHeight:this.$_maxHeight,overflow:"scroll"}:(e=(t=this.nativeScrollbarWidth).x,t=t.y,{width:"calc(100% + ".concat(t,"px) !important"),maxHeight:"calc(".concat(this.$_maxHeight.replace(/(^calc\()|(\)$)/g,"")," + ").concat(e,"px) !important"),overflow:"scroll"})},maxScroll:function(){return{scrollLeft:this.width.contentInner-this.width.content,scrollTop:this.height.contentInner-this.height.content}}},watch:{scrollTo:{handler:function(e){this.$scrollTo(e)},immediate:!0},isBottom:function(e){e&&this.$emit("reachBottom")},isTop:function(e){e&&this.$emit("reachTop")},isLeft:function(e){e&&this.$emit("reachLeft")},isRight:function(e){e&&this.$emit("reachRight")}},methods:{updateScrollbarWidth:function(){this.nativeScrollbarWidth=function(e){var t=(e=e||window)===window;try{var n,o=t?window.nativeScrollbarWidth:null;return o&&"number"==typeof o.y&&"number"==typeof o.x||(n=t?document.createElement("div"):e,t&&(n.setAttribute("style","position:fixed;top:0;left:0;opacity:0;pointer-events:none;width:200px;height:200px;overflow:scroll"),document.body.appendChild(n)),o={y:n.offsetWidth-n.clientWidth,x:n.offsetHeight-n.clientHeight},t&&(window.nativeScrollbarWidth=o,document.body.removeChild(n))),o}catch(e){return{y:17,x:17}}}(this.$refs.content)},updateHeight:function(){var e,t,n,o;this.$refs.content&&"undefined"!=typeof window&&(e=(o=this.$refs.content).scrollHeight,t=o.clientHeight,n=o.scrollWidth,o=o.clientWidth,this.height.content=t,this.height.contentInner=e,this.height.parent=this.$refs.wrap.parentElement.clientHeight,this.width.content=o,this.width.contentInner=n,this.width.parent=this.$refs.wrap.parentElement.clientWidth)},getHeight:function(){this.updateHeight()},$scrollTo:function(t){var n=this;this.$nextTick(function(){var e;null!=t&&(e={scrollLeft:0,scrollTop:0},t.x||t.y?(e.scrollLeft=+t.x*n.maxScroll.scrollLeft,e.scrollTop=+t.y*n.maxScroll.scrollTop):(e.scrollLeft=+t*n.maxScroll.scrollLeft,e.scrollTop=+t*n.maxScroll.scrollTop),n.setScroll(e,"drag"))})},scroll:function(e){var t=this.$refs.content,n=t.scrollTop,t=t.scrollLeft;this.setScroll({scrollTop:n,scrollLeft:t}),this.$emit("scroll",e)},setScroll:function(e){var t=e.scrollTop,e=e.scrollLeft,n="scroll"!==(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"scroll");void 0!==t&&this.setPos(t,"scrollTop",n),void 0!==e&&this.setPos(e,"scrollLeft",n),this.judgeOnBoundary()},setPos:function(e,t,n){this.scrollPos[t]=e,n&&(this.$refs.content[t]=e)},judgeOnBoundary:function(){this.isTop=0===this.scrollPos.scrollTop,this.isBottom=this.scrollPos.scrollTop===this.maxScroll.scrollTop,this.isLeft=0===this.scrollPos.scrollLeft,this.isRight=this.scrollPos.scrollLeft===this.maxScroll.scrollLeft}},created:function(){var e,t,o=this,r=!this.isMobile&&"undefined"!=typeof window;r&&(t="vue-scrollbar-live-module-style",document.getElementById(t)||((e=document.createElement("style")).id=t,e.innerText=".scrollbar-wrap .scrollbar-content::-webkit-scrollbar{width:0;height:0;}.scrollbar-wrap .scrollbar-content{-ms-overflow-style:none;scrollbar-width:none;}.scrollbar-wrap .scrollbar{position:absolute;border-radius:.25em;background:#eee;box-shadow:0 0 2px rgba(0,0,0,0.1);opacity:0;pointer-events:none}.scrollbar-wrap .scrollbar-y{right:0.25em;width:.5em}.scrollbar-wrap .scrollbar-x{bottom:0.25em;height:.5em}.scrollbar-wrap:hover .scrollbar{opacity:1;pointer-events:initial}",document.head.appendChild(e))),this.$once("hook:mounted",function(){var n,t,e;r&&(o.updateScrollbarWidth(),o.$once("hook:beforeDestroy",ze.$addListener(o.$refs.content,"scroll",o.scroll))),o.updateHeight(),o.$on("hook:beforeDestroy",(n=o,t=function(){o.$emit("domChange"),o.updateScrollbarWidth(),o.updateHeight()},"MutationObserver"in window?((e=new MutationObserver(function(e){e.some(function(e){var t,e=e.target;return n.$el.contains(e)?!(e instanceof Element&&(t=e.className,/^scrollbar\s/.test(t))):e.contains(n.$el)})&&t()})).observe(document.body,{attributes:!0,childList:!0,subtree:!0}),function(){e.disconnect()}):(n.$on("hook:updated",t),function(){})))})}},void 0,!1,void 0,void 0,void 0)},props:{$_select_isMobile:Boolean,maxHeight:[Number,String],marginToWrap:Number,options:Array},data:function(){return{scrollTo:0}},watch:{options:{handler:function(){this.insertHtml()},immediate:!0}},methods:{insertHtml:function(){var n=this;this.$nextTick(function(){(n.options||[]).forEach(function(e,t){n.$refs["option-".concat(t)]&&((n.$refs["option-".concat(t)][0]||n.$refs["option-".concat(t)]).innerHTML=e.cName||e.name)})})}},beforeMount:function(){var t=this,e=qe(Object.keys(this.options),function(e){return t.options[e].selected});this.scrollTo=1===this.options.length?0:e/(this.options.length-1)}},void 0,!1,void 0,!1,void 0,void 0,void 0),popper:Ne},props:{id:String,options:{default:function(){return[]},type:Array},canEdit:{default:!0,type:Boolean},canSearch:Boolean,placeholder:String,searchPlaceholder:String,popperProps:Object,scrollbarProps:Object},data:function(){return{mergedOptions:[],optionsHidden:!0,shouldHide:!0,inputVal:"",defaultPopperProps:Object.freeze({arrowPosition:"start",arrowOffsetScaling:1,popperOptions:{placement:"bottom-start",modifiers:{pre