!function(){function t(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function n(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var o,r,i=[],a=!0,u=!1;try{for(e=e.call(t);!(a=(o=e.next()).done)&&(i.push(o.value),!n||i.length!==n);a=!0);}catch(l){u=!0,r=l}finally{try{a||null==e.return||e.return()}finally{if(u)throw r}}return i}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return e(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return e(t,n)}(t,n)||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 e(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,o=new Array(n);e=0;e--)if(!O(h.options[e]))return e}(t)||0)*n.itemHeight,i=function(){t!==h.index&&(h.index=t,e&&d("change",t))};o&&r!==h.offset?f=i:i(),h.offset=r},x=function(t){JSON.stringify(t)!==JSON.stringify(h.options)&&(h.options=z(t),_(n.defaultIndex))},w=function(t){return b(t)&&n.textKey in t?t[n.textKey]:t},N=function(t){return P(Math.round(-t/n.itemHeight),0,y()-1)},T=function(){o=!1,h.duration=0,f&&(f(),f=null)},H=function(t){if(!n.readonly){if(v.start(t),o){var e=function(t){var n=window.getComputedStyle(t),e=n.transform||n.webkitTransform,o=e.slice(7,e.length-1).split(", ")[5];return Number(o)}(p.value);h.offset=Math.min(0,e-g()),r=h.offset}else r=h.offset;h.duration=0,c=Date.now(),s=r,f=null}},V=function(t){if(!n.readonly){v.move(t),v.isVertical()&&(o=!0,k(t,!0)),h.offset=P(r+v.deltaY.value,-y()*n.itemHeight,n.itemHeight);var e=Date.now();e-c>300&&(c=e,s=h.offset)}},j=function(){if(!n.readonly){var t=h.offset-s,e=Date.now()-c;if(e<300&&Math.abs(t)>15)!function(t,e){var o=Math.abs(t/e);t=h.offset+o/.003*(t<0?-1:1);var r=N(t);h.duration=+n.swipeDuration,_(r,!0)}(t,e);else{var r=N(h.offset);h.duration=200,_(r,!0),setTimeout((function(){o=!1}),0)}}},A=function(){var e={height:n.itemHeight+"px"};return h.options.map((function(r,i){var a=w(r),u=O(r),c={role:"button",style:e,tabindex:u?-1:0,class:B("item",{disabled:u,selected:i===h.index}),onClick:function(){return function(t){o||n.readonly||(f=null,h.duration=200,_(t,!0))}(i)}},s=t({class:"van-ellipsis"},n.allowHtml?"innerHTML":"textContent",a);return l("li",c,[m.option?m.option(r):l("div",s,null)])}))};return _(h.index),C(X),I({state:h,setIndex:_,getValue:function(){return h.options[h.index]},setValue:function(t){for(var n=h.options,e=0;e