vant
Version:
Mobile UI Components built on Vue
7 lines • 272 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("vant",["vue"],e):"object"==typeof exports?exports.vant=e(require("vue")):t.vant=e(t.Vue)}("undefined"!=typeof self?self:this,(function(t){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=13)}([function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"g",(function(){return s})),i.d(e,"h",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"d",(function(){return l})),i.d(e,"e",(function(){return c})),i.d(e,"f",(function(){return u})),i.d(e,"a",(function(){return h}));var n=i(4),r="undefined"!=typeof window,s=i.n(n).a.prototype.$isServer;function o(){}function a(t){return null!=t}function l(t){return"function"==typeof t}function c(t){return null!==t&&"object"==typeof t}function u(t){return c(t)&&l(t.then)&&l(t.catch)}function h(t,e){var i=e.split("."),n=t;return i.forEach((function(t){var e;n=null!=(e=n[t])?e:""})),n}},function(t,e,i){"use strict";function n(){return(n=Object.assign||function(t){for(var e,i=1;i<arguments.length;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)}var r=["attrs","props","domProps"],s=["class","style","directives"],o=["on","nativeOn"],a=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=function(t){return t.reduce((function(t,e){for(var i in e)if(t[i])if(-1!==r.indexOf(i))t[i]=n({},t[i],e[i]);else if(-1!==s.indexOf(i)){var l=t[i]instanceof Array?t[i]:[t[i]],c=e[i]instanceof Array?e[i]:[e[i]];t[i]=l.concat(c)}else if(-1!==o.indexOf(i))for(var u in e[i])if(t[i][u]){var h=t[i][u]instanceof Array?t[i][u]:[t[i][u]],d=e[i][u]instanceof Array?e[i][u]:[e[i][u]];t[i][u]=h.concat(d)}else t[i][u]=e[i][u];else if("hook"==i)for(var f in e[i])t[i][f]=t[i][f]?a(t[i][f],e[i][f]):e[i][f];else t[i]=e[i];else t[i]=e[i];return t}),{})}},function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"b",(function(){return s}));var n=/-(\w)/g;function r(t){return t.replace(n,(function(t,e){return e.toUpperCase()}))}function s(t,e){void 0===e&&(e=2);for(var i=t+"";i.length<e;)i="0"+i;return i}},function(t,e,i){"use strict";(function(t){i.d(e,"c",(function(){return l})),i.d(e,"b",(function(){return c})),i.d(e,"a",(function(){return u}));var n=i(0),r=Date.now();var s=n.g?t:window,o=s.requestAnimationFrame||function(t){var e=Date.now(),i=Math.max(0,16-(e-r)),n=setTimeout(t,i);return r=e+i,n},a=s.cancelAnimationFrame||s.clearTimeout;function l(t){return o.call(s,t)}function c(t){l((function(){l(t)}))}function u(t){a.call(s,t)}}).call(this,i(12))},function(e,i){e.exports=t},function(t,e,i){"use strict";function n(t){return/^\d+(\.\d+)?$/.test(t)}function r(t){return Number.isNaN?Number.isNaN(t):t!=t}i.d(e,"b",(function(){return n})),i.d(e,"a",(function(){return r}))},function(t,e,i){"use strict";i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return l}));var n,r=i(0),s=i(5);function o(t){if(Object(r.c)(t))return t=String(t),Object(s.b)(t)?t+"px":t}function a(t){return+(t=t.replace(/rem/g,""))*function(){if(!n){var t=document.documentElement,e=t.style.fontSize||window.getComputedStyle(t).fontSize;n=parseFloat(e)}return n}()}function l(t){if("number"==typeof t)return t;if(r.b){if(-1!==t.indexOf("rem"))return a(t);if(-1!==t.indexOf("vw"))return function(t){return+(t=t.replace(/vw/g,""))*window.innerWidth/100}(t);if(-1!==t.indexOf("vh"))return function(t){return+(t=t.replace(/vh/g,""))*window.innerHeight/100}(t)}return parseFloat(t)}},function(t,e,i){"use strict";var n=i(4),r=i.n(n),s=i(8),o=r.a.prototype,a=r.a.util.defineReactive;a(o,"$vantLang","zh-CN"),a(o,"$vantMessages",{"zh-CN":{name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",complete:"完成",loading:"加载中...",telEmpty:"请填写电话",nameEmpty:"请填写姓名",nameInvalid:"请输入正确的姓名",confirmDelete:"确定要删除吗",telInvalid:"请输入正确的手机号",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:function(t,e){return t+"年"+e+"月"},rangePrompt:function(t){return"选择天数不能超过 "+t+" 天"}},vanCascader:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:function(t){return t+"折"},condition:function(t){return"满"+t+"元可用"}},vanCouponCell:{title:"优惠券",tips:"暂无可用",count:function(t){return t+"张可用"}},vanCouponList:{empty:"暂无优惠券",exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码格式不正确",defaultAddress:"设为默认收货地址",telPlaceholder:"收货人手机号",namePlaceholder:"收货人姓名",areaPlaceholder:"选择省 / 市 / 区"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌、楼层房间号等信息"},vanAddressList:{add:"新增地址"}}});e.a={messages:function(){return o.$vantMessages[o.$vantLang]},use:function(t,e){var i;o.$vantLang=t,this.add(((i={})[t]=e,i))},add:function(t){void 0===t&&(t={}),Object(s.a)(o.$vantMessages,t)}}},function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i(0),r=Object.prototype.hasOwnProperty;function s(t,e){return Object.keys(e).forEach((function(i){!function(t,e,i){var o=e[i];Object(n.c)(o)&&(r.call(t,i)&&Object(n.e)(o)?t[i]=s(Object(t[i]),e[i]):t[i]=o)}(t,e,i)})),t}},function(t,e,i){"use strict";function n(){return(n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function r(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function s(t){if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function o(t){var e=s(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function a(t){return t instanceof s(t).Element||t instanceof Element}function l(t){return t instanceof s(t).HTMLElement||t instanceof HTMLElement}function c(t){return t?(t.nodeName||"").toLowerCase():null}function u(t){return((a(t)?t.ownerDocument:t.document)||window.document).documentElement}function h(t){return s(t).getComputedStyle(t)}function d(t){var e=h(t),i=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function f(t,e,i){void 0===i&&(i=!1);var n,a,h=u(e),f=r(t),p=l(e),m={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(p||!p&&!i)&&(("body"!==c(e)||d(h))&&(m=(n=e)!==s(n)&&l(n)?{scrollLeft:(a=n).scrollLeft,scrollTop:a.scrollTop}:o(n)),l(e)?((v=r(e)).x+=e.clientLeft,v.y+=e.clientTop):h&&(v.x=function(t){return r(u(t)).left+o(t).scrollLeft}(h))),{x:f.left+m.scrollLeft-v.x,y:f.top+m.scrollTop-v.y,width:f.width,height:f.height}}function p(t){return"html"===c(t)?t:t.assignedSlot||t.parentNode||t.host||u(t)}function m(t,e){void 0===e&&(e=[]);var i=function t(e){return["html","body","#document"].indexOf(c(e))>=0?e.ownerDocument.body:l(e)&&d(e)?e:t(p(e))}(t),n="body"===c(i),r=s(i),o=n?[r].concat(r.visualViewport||[],d(i)?i:[]):i,a=e.concat(o);return n?a:a.concat(m(p(o)))}function v(t){return["table","td","th"].indexOf(c(t))>=0}function g(t){if(!l(t)||"fixed"===h(t).position)return null;var e=t.offsetParent;if(e){var i=u(e);if("body"===c(e)&&"static"===h(e).position&&"static"!==h(i).position)return i}return e}function b(t){for(var e=s(t),i=g(t);i&&v(i)&&"static"===h(i).position;)i=g(i);return i&&"body"===c(i)&&"static"===h(i).position?e:i||function(t){for(var e=p(t);l(e)&&["html","body"].indexOf(c(e))<0;){var i=h(e);if("none"!==i.transform||"none"!==i.perspective||i.willChange&&"auto"!==i.willChange)return e;e=e.parentNode}return null}(t)||e}Object.defineProperty(e,"__esModule",{value:!0});var y="top",S="right",k="left",x=[].concat([y,"bottom",S,k],["auto"]).reduce((function(t,e){return t.concat([e,e+"-start",e+"-end"])}),[]),w=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function C(t){var e=new Map,i=new Set,n=[];return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||function t(r){i.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach((function(n){if(!i.has(n)){var r=e.get(n);r&&t(r)}})),n.push(r)}(t)})),n}function O(t){return t.split("-")[0]}var T={placement:"bottom",modifiers:[],strategy:"absolute"};function $(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function B(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,r=void 0===i?[]:i,s=e.defaultOptions,o=void 0===s?T:s;return function(t,e,i){void 0===i&&(i=o);var s,l,c={placement:"bottom",orderedModifiers:[],options:n(n({},T),o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},u=[],h=!1,d={state:c,setOptions:function(i){p(),c.options=n(n(n({},o),c.options),i),c.scrollParents={reference:a(t)?m(t):t.contextElement?m(t.contextElement):[],popper:m(e)};var s=function(t){var e=C(t);return w.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}(function(t){var e=t.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?n(n(n({},i),e),{},{options:n(n({},i.options),e.options),data:n(n({},i.data),e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}([].concat(r,c.options.modifiers)));return c.orderedModifiers=s.filter((function(t){return t.enabled})),c.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,r=t.effect;if("function"==typeof r){var s=r({state:c,name:e,instance:d,options:n});u.push(s||function(){})}})),d.update()},forceUpdate:function(){if(!h){var t=c.elements,e=t.reference,i=t.popper;if($(e,i)){var r;c.rects={reference:f(e,b(i),"fixed"===c.options.strategy),popper:(r=i,{x:r.offsetLeft,y:r.offsetTop,width:r.offsetWidth,height:r.offsetHeight})},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach((function(t){return c.modifiersData[t.name]=n({},t.data)}));for(var s=0;s<c.orderedModifiers.length;s++)if(!0!==c.reset){var o=c.orderedModifiers[s],a=o.fn,l=o.options,u=void 0===l?{}:l,p=o.name;"function"==typeof a&&(c=a({state:c,options:u,name:p,instance:d})||c)}else c.reset=!1,s=-1}}},update:(s=function(){return new Promise((function(t){d.forceUpdate(),t(c)}))},function(){return l||(l=new Promise((function(t){Promise.resolve().then((function(){l=void 0,t(s())}))}))),l}),destroy:function(){p(),h=!0}};if(!$(t,e))return d;function p(){u.forEach((function(t){return t()})),u=[]}return d.setOptions(i).then((function(t){!h&&i.onFirstUpdate&&i.onFirstUpdate(t)})),d}}var I={passive:!0};var D={top:"auto",right:"auto",bottom:"auto",left:"auto"};function E(t){var e,i=t.popper,r=t.popperRect,o=t.placement,a=t.offsets,l=t.position,c=t.gpuAcceleration,h=t.adaptive,d=function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:Math.round(e*n)/n||0,y:Math.round(i*n)/n||0}}(a),f=d.x,p=d.y,m=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),g=k,x=y,w=window;if(h){var C=b(i);C===s(i)&&(C=u(i)),o===y&&(x="bottom",p-=C.clientHeight-r.height,p*=c?1:-1),o===k&&(g=S,f-=C.clientWidth-r.width,f*=c?1:-1)}var O,T=n({position:l},h&&D);return n(n({},T),{},c?((O={})[x]=v?"0":"",O[g]=m?"0":"",O.transform=(w.devicePixelRatio||1)<2?"translate("+f+"px, "+p+"px)":"translate3d("+f+"px, "+p+"px, 0)",O):((e={})[x]=v?p+"px":"",e[g]=m?f+"px":"",e.transform="",e))}var j=B({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,r=n.scroll,o=void 0===r||r,a=n.resize,l=void 0===a||a,c=s(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&u.forEach((function(t){t.addEventListener("scroll",i.update,I)})),l&&c.addEventListener("resize",i.update,I),function(){o&&u.forEach((function(t){t.removeEventListener("scroll",i.update,I)})),l&&c.removeEventListener("resize",i.update,I)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=function(t){var e,i=t.reference,n=t.element,r=t.placement,s=r?O(r):null,o=r?function(t){return t.split("-")[1]}(r):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(s){case y:e={x:a,y:i.y-n.height};break;case"bottom":e={x:a,y:i.y+i.height};break;case S:e={x:i.x+i.width,y:l};break;case k:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=s?function(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}(s):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case"start":e[c]=Math.floor(e[c])-Math.floor(i[u]/2-n[u]/2);break;case"end":e[c]=Math.floor(e[c])+Math.ceil(i[u]/2-n[u]/2)}}return e}({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,r=i.gpuAcceleration,s=void 0===r||r,o=i.adaptive,a=void 0===o||o,l={placement:O(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s};null!=e.modifiersData.popperOffsets&&(e.styles.popper=n(n({},e.styles.popper),E(n(n({},l),{},{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a})))),null!=e.modifiersData.arrow&&(e.styles.arrow=n(n({},e.styles.arrow),E(n(n({},l),{},{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=n(n({},e.attributes.popper),{},{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},r=e.attributes[t]||{},s=e.elements[t];l(s)&&c(s)&&(n(s.style,i),Object.keys(r).forEach((function(t){var e=r[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return n(e.elements.popper.style,i.popper),e.elements.arrow&&n(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var r=e.elements[t],s=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});l(r)&&c(r)&&(n(r.style,o),Object.keys(s).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]}]});var P={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,r=t.name,s=i.offset,o=void 0===s?[0,0]:s,a=x.reduce((function(t,i){return t[i]=function(t,e,i){var r=O(t),s=[k,y].indexOf(r)>=0?-1:1,o="function"==typeof i?i(n(n({},e),{},{placement:t})):i,a=o[0],l=o[1];return a=a||0,l=(l||0)*s,[k,S].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(i,e.rects,o),t}),{}),l=a[e.placement],c=l.x,u=l.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=a}};e.createPopper=j,e.offsetModifier=P},function(t,e,i){"use strict";function n(t){return function(e,i){return e&&"string"!=typeof e&&(i=e,e=""),""+(e=e?t+"__"+e:t)+function t(e,i){return i?"string"==typeof i?" "+e+"--"+i:Array.isArray(i)?i.reduce((function(i,n){return i+t(e,n)}),""):Object.keys(i).reduce((function(n,r){return n+(i[r]?t(e,r):"")}),""):""}(e,i)}}i.d(e,"a",(function(){return d}));var r=i(0),s=i(2),o={methods:{slots:function(t,e){void 0===t&&(t="default");var i=this.$slots,n=this.$scopedSlots[t];return n?n(e):i[t]}}};i(4);function a(t){var e=this.name;t.component(e,this),t.component(Object(s.a)("-"+e),this)}function l(t){return{functional:!0,props:t.props,model:t.model,render:function(e,i){return t(e,i.props,function(t){var e=t.scopedSlots||t.data.scopedSlots||{},i=t.slots();return Object.keys(i).forEach((function(t){e[t]||(e[t]=function(){return i[t]})})),e}(i),i)}}}function c(t){return function(e){return Object(r.d)(e)&&(e=l(e)),e.functional||(e.mixins=e.mixins||[],e.mixins.push(o)),e.name=t,e.install=a,e}}var u=i(7);function h(t){var e=Object(s.a)(t)+".";return function(t){for(var i=u.a.messages(),n=Object(r.a)(i,e+t)||Object(r.a)(i,t),s=arguments.length,o=new Array(s>1?s-1:0),a=1;a<s;a++)o[a-1]=arguments[a];return Object(r.d)(n)?n.apply(void 0,o):n}}function d(t){return[c(t="van-"+t),n(t),h(t)]}},function(t,e,i){
/*!
* Vue-Lazyload.js v1.2.3
* (c) 2018 Awe <hilongjw@gmail.com>
* Released under the MIT License.
*/
t.exports=function(){"use strict";function t(t){t=t||{};var n=arguments.length,r=0;if(1===n)return t;for(;++r<n;){var s=arguments[r];d(t)&&(t=s),i(s)&&e(t,s)}return t}function e(e,r){for(var s in f(e,r),r)if("__proto__"!==s&&n(r,s)){var o=r[s];i(o)?("undefined"===m(e[s])&&"function"===m(o)&&(e[s]=o),e[s]=t(e[s]||{},o)):e[s]=o}return e}function i(t){return"object"===m(t)||"function"===m(t)}function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function r(t,e){if(t.length){var i=t.indexOf(e);return i>-1?t.splice(i,1):void 0}}function s(t,e){if("IMG"===t.tagName&&t.getAttribute("data-srcset")){var i=t.getAttribute("data-srcset"),n=[],r=t.parentNode.offsetWidth*e,s=void 0,o=void 0,a=void 0;(i=i.trim().split(",")).map((function(t){t=t.trim(),-1===(s=t.lastIndexOf(" "))?(o=t,a=999998):(o=t.substr(0,s),a=parseInt(t.substr(s+1,t.length-s-2),10)),n.push([a,o])})),n.sort((function(t,e){if(t[0]<e[0])return-1;if(t[0]>e[0])return 1;if(t[0]===e[0]){if(-1!==e[1].indexOf(".webp",e[1].length-5))return 1;if(-1!==t[1].indexOf(".webp",t[1].length-5))return-1}return 0}));for(var l="",c=void 0,u=n.length,h=0;h<u;h++)if((c=n[h])[0]>=r){l=c[1];break}return l}}function o(t,e){for(var i=void 0,n=0,r=t.length;n<r;n++)if(e(t[n])){i=t[n];break}return i}function a(){if(!g)return!1;var t=!0,e=document;try{var i=e.createElement("object");i.type="image/webp",i.style.visibility="hidden",i.innerHTML="!",e.body.appendChild(i),t=!i.offsetWidth,e.body.removeChild(i)}catch(e){t=!1}return t}function l(){}var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},h=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),d=function(t){return null==t||"function"!=typeof t&&"object"!==(void 0===t?"undefined":c(t))},f=function(t,e){if(null==t)throw new TypeError("expected first argument to be an object.");if(void 0===e||"undefined"==typeof Symbol)return t;if("function"!=typeof Object.getOwnPropertySymbols)return t;for(var i=Object.prototype.propertyIsEnumerable,n=Object(t),r=arguments.length,s=0;++s<r;)for(var o=Object(arguments[s]),a=Object.getOwnPropertySymbols(o),l=0;l<a.length;l++){var c=a[l];i.call(o,c)&&(n[c]=o[c])}return n},p=Object.prototype.toString,m=function(t){var e=void 0===t?"undefined":c(t);return"undefined"===e?"undefined":null===t?"null":!0===t||!1===t||t instanceof Boolean?"boolean":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?void 0!==t.constructor.name&&"Generator"===t.constructor.name.slice(0,9)?"generatorfunction":"function":void 0!==Array.isArray&&Array.isArray(t)?"array":t instanceof RegExp?"regexp":t instanceof Date?"date":"[object RegExp]"===(e=p.call(t))?"regexp":"[object Date]"===e?"date":"[object Arguments]"===e?"arguments":"[object Error]"===e?"error":"[object Promise]"===e?"promise":function(t){return t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}(t)?"buffer":"[object Set]"===e?"set":"[object WeakSet]"===e?"weakset":"[object Map]"===e?"map":"[object WeakMap]"===e?"weakmap":"[object Symbol]"===e?"symbol":"[object Map Iterator]"===e?"mapiterator":"[object Set Iterator]"===e?"setiterator":"[object String Iterator]"===e?"stringiterator":"[object Array Iterator]"===e?"arrayiterator":"[object Int8Array]"===e?"int8array":"[object Uint8Array]"===e?"uint8array":"[object Uint8ClampedArray]"===e?"uint8clampedarray":"[object Int16Array]"===e?"int16array":"[object Uint16Array]"===e?"uint16array":"[object Int32Array]"===e?"int32array":"[object Uint32Array]"===e?"uint32array":"[object Float32Array]"===e?"float32array":"[object Float64Array]"===e?"float64array":"object"},v=t,g="undefined"!=typeof window,b=g&&"IntersectionObserver"in window,y="event",S="observer",k=function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i}if(g)return"function"==typeof window.CustomEvent?window.CustomEvent:(t.prototype=window.Event.prototype,t)}(),x=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return g&&window.devicePixelRatio||t},w=function(){if(g){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}}(),C={on:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];w?t.addEventListener(e,i,{capture:n,passive:!0}):t.addEventListener(e,i,n)},off:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.removeEventListener(e,i,n)}},O=function(t,e,i){var n=new Image;n.src=t.src,n.onload=function(){e({naturalHeight:n.naturalHeight,naturalWidth:n.naturalWidth,src:n.src})},n.onerror=function(t){i(t)}},T=function(t,e){return"undefined"!=typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e]},$=function(t){return T(t,"overflow")+T(t,"overflow-y")+T(t,"overflow-x")},B={},I=function(){function t(e){var i=e.el,n=e.src,r=e.error,s=e.loading,o=e.bindType,a=e.$parent,l=e.options,c=e.elRenderer;u(this,t),this.el=i,this.src=n,this.error=r,this.loading=s,this.bindType=o,this.attempt=0,this.naturalHeight=0,this.naturalWidth=0,this.options=l,this.rect=null,this.$parent=a,this.elRenderer=c,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}return h(t,[{key:"initState",value:function(){this.el.dataset.src=this.src,this.state={error:!1,loaded:!1,rendered:!1}}},{key:"record",value:function(t){this.performanceData[t]=Date.now()}},{key:"update",value:function(t){var e=t.src,i=t.loading,n=t.error,r=this.src;this.src=e,this.loading=i,this.error=n,this.filter(),r!==this.src&&(this.attempt=0,this.initState())}},{key:"getRect",value:function(){this.rect=this.el.getBoundingClientRect()}},{key:"checkInView",value:function(){return this.getRect(),this.rect.top<window.innerHeight*this.options.preLoad&&this.rect.bottom>this.options.preLoadTop&&this.rect.left<window.innerWidth*this.options.preLoad&&this.rect.right>0}},{key:"filter",value:function(){var t=this;(function(t){if(!(t instanceof Object))return[];if(Object.keys)return Object.keys(t);var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);return e})(this.options.filter).map((function(e){t.options.filter[e](t,t.options)}))}},{key:"renderLoading",value:function(t){var e=this;O({src:this.loading},(function(i){e.render("loading",!1),t()}),(function(){t(),e.options.silent||console.warn("VueLazyload log: load failed with loading image("+e.loading+")")}))}},{key:"load",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;return this.attempt>this.options.attempt-1&&this.state.error?(this.options.silent||console.log("VueLazyload log: "+this.src+" tried too more than "+this.options.attempt+" times"),void e()):this.state.loaded||B[this.src]?(this.state.loaded=!0,e(),this.render("loaded",!0)):void this.renderLoading((function(){t.attempt++,t.record("loadStart"),O({src:t.src},(function(i){t.naturalHeight=i.naturalHeight,t.naturalWidth=i.naturalWidth,t.state.loaded=!0,t.state.error=!1,t.record("loadEnd"),t.render("loaded",!1),B[t.src]=1,e()}),(function(e){!t.options.silent&&console.error(e),t.state.error=!0,t.state.loaded=!1,t.render("error",!1)}))}))}},{key:"render",value:function(t,e){this.elRenderer(this,t,e)}},{key:"performance",value:function(){var t="loading",e=0;return this.state.loaded&&(t="loaded",e=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(t="error"),{src:this.src,state:t,time:e}}},{key:"destroy",value:function(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}]),t}(),D="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",E=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],j={rootMargin:"0px",threshold:0},P=function(t){return function(){function e(t){var i=t.preLoad,n=t.error,r=t.throttleWait,s=t.preLoadTop,o=t.dispatchEvent,l=t.loading,c=t.attempt,h=t.silent,d=void 0===h||h,f=t.scale,p=t.listenEvents,m=(t.hasbind,t.filter),v=t.adapter,g=t.observer,b=t.observerOptions;u(this,e),this.version="1.2.3",this.mode=y,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:d,dispatchEvent:!!o,throttleWait:r||200,preLoad:i||1.3,preLoadTop:s||0,error:n||D,loading:l||D,attempt:c||3,scale:f||x(f),ListenEvents:p||E,hasbind:!1,supportWebp:a(),filter:m||{},adapter:v||{},observer:!!g,observerOptions:b||j},this._initEvent(),this.lazyLoadHandler=function(t,e){var i=null,n=0;return function(){if(!i){var r=Date.now()-n,s=this,o=arguments,a=function(){n=Date.now(),i=!1,t.apply(s,o)};r>=e?a():i=setTimeout(a,e)}}}(this._lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?S:y)}return h(e,[{key:"config",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};v(this.options,t)}},{key:"performance",value:function(){var t=[];return this.ListenerQueue.map((function(e){t.push(e.performance())})),t}},{key:"addLazyBox",value:function(t){this.ListenerQueue.push(t),g&&(this._addListenerTarget(window),this._observer&&this._observer.observe(t.el),t.$el&&t.$el.parentNode&&this._addListenerTarget(t.$el.parentNode))}},{key:"add",value:function(e,i,n){var r=this;if(function(t,e){for(var i=!1,n=0,r=t.length;n<r;n++)if(e(t[n])){i=!0;break}return i}(this.ListenerQueue,(function(t){return t.el===e})))return this.update(e,i),t.nextTick(this.lazyLoadHandler);var o=this._valueFormatter(i.value),a=o.src,l=o.loading,c=o.error;t.nextTick((function(){a=s(e,r.options.scale)||a,r._observer&&r._observer.observe(e);var o=Object.keys(i.modifiers)[0],u=void 0;o&&(u=(u=n.context.$refs[o])?u.$el||u:document.getElementById(o)),u||(u=function(t){if(g){if(!(t instanceof HTMLElement))return window;for(var e=t;e&&e!==document.body&&e!==document.documentElement&&e.parentNode;){if(/(scroll|auto)/.test($(e)))return e;e=e.parentNode}return window}}(e));var h=new I({bindType:i.arg,$parent:u,el:e,loading:l,error:c,src:a,elRenderer:r._elRenderer.bind(r),options:r.options});r.ListenerQueue.push(h),g&&(r._addListenerTarget(window),r._addListenerTarget(u)),r.lazyLoadHandler(),t.nextTick((function(){return r.lazyLoadHandler()}))}))}},{key:"update",value:function(e,i){var n=this,r=this._valueFormatter(i.value),a=r.src,l=r.loading,c=r.error;a=s(e,this.options.scale)||a;var u=o(this.ListenerQueue,(function(t){return t.el===e}));u&&u.update({src:a,loading:l,error:c}),this._observer&&(this._observer.unobserve(e),this._observer.observe(e)),this.lazyLoadHandler(),t.nextTick((function(){return n.lazyLoadHandler()}))}},{key:"remove",value:function(t){if(t){this._observer&&this._observer.unobserve(t);var e=o(this.ListenerQueue,(function(e){return e.el===t}));e&&(this._removeListenerTarget(e.$parent),this._removeListenerTarget(window),r(this.ListenerQueue,e)&&e.destroy())}}},{key:"removeComponent",value:function(t){t&&(r(this.ListenerQueue,t),this._observer&&this._observer.unobserve(t.el),t.$parent&&t.$el.parentNode&&this._removeListenerTarget(t.$el.parentNode),this._removeListenerTarget(window))}},{key:"setMode",value:function(t){var e=this;b||t!==S||(t=y),this.mode=t,t===y?(this._observer&&(this.ListenerQueue.forEach((function(t){e._observer.unobserve(t.el)})),this._observer=null),this.TargetQueue.forEach((function(t){e._initListen(t.el,!0)}))):(this.TargetQueue.forEach((function(t){e._initListen(t.el,!1)})),this._initIntersectionObserver())}},{key:"_addListenerTarget",value:function(t){if(t){var e=o(this.TargetQueue,(function(e){return e.el===t}));return e?e.childrenCount++:(e={el:t,id:++this.TargetIndex,childrenCount:1,listened:!0},this.mode===y&&this._initListen(e.el,!0),this.TargetQueue.push(e)),this.TargetIndex}}},{key:"_removeListenerTarget",value:function(t){var e=this;this.TargetQueue.forEach((function(i,n){i.el===t&&(--i.childrenCount||(e._initListen(i.el,!1),e.TargetQueue.splice(n,1),i=null))}))}},{key:"_initListen",value:function(t,e){var i=this;this.options.ListenEvents.forEach((function(n){return C[e?"on":"off"](t,n,i.lazyLoadHandler)}))}},{key:"_initEvent",value:function(){var t=this;this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=function(e,i){t.Event.listeners[e].push(i)},this.$once=function(e,i){var n=t;t.$on(e,(function t(){n.$off(e,t),i.apply(n,arguments)}))},this.$off=function(e,i){i?r(t.Event.listeners[e],i):t.Event.listeners[e]=[]},this.$emit=function(e,i,n){t.Event.listeners[e].forEach((function(t){return t(i,n)}))}}},{key:"_lazyLoadHandler",value:function(){var t=this;this.ListenerQueue.forEach((function(e,i){e.state.loaded||e.checkInView()&&e.load((function(){!e.error&&e.loaded&&t.ListenerQueue.splice(i,1)}))}))}},{key:"_initIntersectionObserver",value:function(){var t=this;b&&(this._observer=new IntersectionObserver(this._observerHandler.bind(this),this.options.observerOptions),this.ListenerQueue.length&&this.ListenerQueue.forEach((function(e){t._observer.observe(e.el)})))}},{key:"_observerHandler",value:function(t,e){var i=this;t.forEach((function(t){t.isIntersecting&&i.ListenerQueue.forEach((function(e){if(e.el===t.target){if(e.state.loaded)return i._observer.unobserve(e.el);e.load()}}))}))}},{key:"_elRenderer",value:function(t,e,i){if(t.el){var n=t.el,r=t.bindType,s=void 0;switch(e){case"loading":s=t.loading;break;case"error":s=t.error;break;default:s=t.src}if(r?n.style[r]='url("'+s+'")':n.getAttribute("src")!==s&&n.setAttribute("src",s),n.setAttribute("lazy",e),this.$emit(e,t,i),this.options.adapter[e]&&this.options.adapter[e](t,this.options),this.options.dispatchEvent){var o=new k(e,{detail:t});n.dispatchEvent(o)}}}},{key:"_valueFormatter",value:function(t){var e=t,i=this.options.loading,n=this.options.error;return function(t){return null!==t&&"object"===(void 0===t?"undefined":c(t))}(t)&&(t.src||this.options.silent||console.error("Vue Lazyload warning: miss src with "+t),e=t.src,i=t.loading||this.options.loading,n=t.error||this.options.error),{src:e,loading:i,error:n}}}]),e}()},L=function(t){return{props:{tag:{type:String,default:"div"}},render:function(t){return!1===this.show?t(this.tag):t(this.tag,null,this.$slots.default)},data:function(){return{el:null,state:{loaded:!1},rect:{},show:!1}},mounted:function(){this.el=this.$el,t.addLazyBox(this),t.lazyLoadHandler()},beforeDestroy:function(){t.removeComponent(this)},methods:{getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),g&&this.rect.top<window.innerHeight*t.options.preLoad&&this.rect.bottom>0&&this.rect.left<window.innerWidth*t.options.preLoad&&this.rect.right>0},load:function(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)}}}},N=function(){function t(e){var i=e.lazy;u(this,t),this.lazy=i,i.lazyContainerMananger=this,this._queue=[]}return h(t,[{key:"bind",value:function(t,e,i){var n=new M({el:t,binding:e,vnode:i,lazy:this.lazy});this._queue.push(n)}},{key:"update",value:function(t,e,i){var n=o(this._queue,(function(e){return e.el===t}));n&&n.update({el:t,binding:e,vnode:i})}},{key:"unbind",value:function(t,e,i){var n=o(this._queue,(function(e){return e.el===t}));n&&(n.clear(),r(this._queue,n))}}]),t}(),A={selector:"img"},M=function(){function t(e){var i=e.el,n=e.binding,r=e.vnode,s=e.lazy;u(this,t),this.el=null,this.vnode=r,this.binding=n,this.options={},this.lazy=s,this._queue=[],this.update({el:i,binding:n})}return h(t,[{key:"update",value:function(t){var e=this,i=t.el,n=t.binding;this.el=i,this.options=v({},A,n.value),this.getImgs().forEach((function(t){e.lazy.add(t,v({},e.binding,{value:{src:t.dataset.src,error:t.dataset.error,loading:t.dataset.loading}}),e.vnode)}))}},{key:"getImgs",value:function(){return function(t){for(var e=t.length,i=[],n=0;n<e;n++)i.push(t[n]);return i}(this.el.querySelectorAll(this.options.selector))}},{key:"clear",value:function(){var t=this;this.getImgs().forEach((function(e){return t.lazy.remove(e)})),this.vnode=null,this.binding=null,this.lazy=null}}]),t}();return{install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=P(t),n=new i(e),r=new N({lazy:n}),s="2"===t.version.split(".")[0];t.prototype.$Lazyload=n,e.lazyComponent&&t.component("lazy-component",L(n)),s?(t.directive("lazy",{bind:n.add.bind(n),update:n.update.bind(n),componentUpdated:n.lazyLoadHandler.bind(n),unbind:n.remove.bind(n)}),t.directive("lazy-container",{bind:r.bind.bind(r),update:r.update.bind(r),unbind:r.unbind.bind(r)})):(t.directive("lazy",{bind:n.lazyLoadHandler.bind(n),update:function(t,e){v(this.vm.$refs,this.vm.$els),n.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){n.remove(this.el)}}),t.directive("lazy-container",{update:function(t,e){r.update(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){r.unbind(this.el)}}))}}}()},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";function n(){return(n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}i.r(e),i.d(e,"install",(function(){return yu})),i.d(e,"version",(function(){return bu})),i.d(e,"ActionSheet",(function(){return kt})),i.d(e,"AddressEdit",(function(){return hi})),i.d(e,"AddressList",(function(){return Li})),i.d(e,"Area",(function(){return Yt})),i.d(e,"Badge",(function(){return Fi})),i.d(e,"Button",(function(){return Be})),i.d(e,"Calendar",(function(){return en})),i.d(e,"Card",(function(){return dn})),i.d(e,"Cascader",(function(){return Fn})),i.d(e,"Cell",(function(){return ne})),i.d(e,"CellGroup",(function(){return Wn})),i.d(e,"Checkbox",(function(){return Kn})),i.d(e,"CheckboxGroup",(function(){return Qn})),i.d(e,"Circle",(function(){return ir})),i.d(e,"Col",(function(){return or})),i.d(e,"Collapse",(function(){return ur})),i.d(e,"CollapseItem",(function(){return mr})),i.d(e,"ContactCard",(function(){return kr})),i.d(e,"ContactEdit",(function(){return $r})),i.d(e,"ContactList",(function(){return Pr})),i.d(e,"CountDown",(function(){return zr})),i.d(e,"Coupon",(function(){return qr})),i.d(e,"CouponCell",(function(){return Gr})),i.d(e,"CouponList",(function(){return is})),i.d(e,"DatetimePicker",(function(){return hs})),i.d(e,"Dialog",(function(){return Ue})),i.d(e,"Divider",(function(){return vs})),i.d(e,"DropdownItem",(function(){return Ss})),i.d(e,"DropdownMenu",(function(){return Os})),i.d(e,"Empty",(function(){return js})),i.d(e,"Field",(function(){return ce})),i.d(e,"Form",(function(){return As})),i.d(e,"GoodsAction",(function(){return Ae})),i.d(e,"GoodsActionButton",(function(){return Ve})),i.d(e,"GoodsActionIcon",(function(){return Vs})),i.d(e,"Grid",(function(){return Ws})),i.d(e,"GridItem",(function(){return Ys})),i.d(e,"Icon",(function(){return st})),i.d(e,"Image",(function(){return on})),i.d(e,"ImagePreview",(function(){return fo})),i.d(e,"IndexAnchor",(function(){return go})),i.d(e,"IndexBar",(function(){return ko})),i.d(e,"Info",(function(){return J})),i.d(e,"Lazyload",(function(){return wo})),i.d(e,"List",(function(){return Bo})),i.d(e,"Loading",(function(){return vt})),i.d(e,"Locale",(function(){return Io.a})),i.d(e,"NavBar",(function(){return Po})),i.d(e,"NoticeBar",(function(){return Mo})),i.d(e,"Notify",(function(){return Ko})),i.d(e,"NumberKeyboard",(function(){return ia})),i.d(e,"Overlay",(function(){return $})),i.d(e,"Pagination",(function(){return la})),i.d(e,"Panel",(function(){return fa})),i.d(e,"PasswordInput",(function(){return ba})),i.d(e,"Picker",(function(){return _t})),i.d(e,"Popover",(function(){return wa})),i.d(e,"Popup",(function(){return ct})),i.d(e,"Progress",(function(){return $a})),i.d(e,"PullRefresh",(function(){return Pa})),i.d(e,"Radio",(function(){return wi})),i.d(e,"RadioGroup",(function(){return mi})),i.d(e,"Rate",(function(){return Ma})),i.d(e,"Row",(function(){return Ra})),i.d(e,"Search",(function(){return Ua})),i.d(e,"ShareSheet",(function(){return Ja})),i.d(e,"Sidebar",(function(){return nl})),i.d(e,"SidebarItem",(function(){return al})),i.d(e,"Skeleton",(function(){return dl})),i.d(e,"Sku",(function(){return Dc})),i.d(e,"Slider",(function(){return Nc})),i.d(e,"Step",(function(){return Fc})),i.d(e,"Stepper",(function(){return _l})),i.d(e,"Steps",(function(){return _c})),i.d(e,"Sticky",(function(){return Tn})),i.d(e,"SubmitBar",(function(){return Xc})),i.d(e,"Swipe",(function(){return eo})),i.d(e,"SwipeCell",(function(){return Jc})),i.d(e,"SwipeItem",(function(){return so})),i.d(e,"Switch",(function(){return si})),i.d(e,"SwitchCell",(function(){return ru})),i.d(e,"Tab",(function(){return vn})),i.d(e,"Tabbar",(function(){return lu})),i.d(e,"TabbarItem",(function(){return du})),i.d(e,"Tabs",(function(){return Ln})),i.d(e,"Tag",(function(){return Si})),i.d(e,"Toast",(function(){return we})),i.d(e,"TreeSelect",(function(){return gu})),i.d(e,"Uploader",(function(){return rc}));var r=i(1),s=i.n(r),o=i(10),a=i(4),l=i.n(a),c=["ref","style","class","attrs","refInFor","nativeOn","directives","staticClass","staticStyle"],u={nativeOn:"on"};function h(t,e){var i=c.reduce((function(e,i){return t.data[i]&&(e[u[i]||i]=t.data[i]),e}),{});return e&&(i.on=i.on||{},n(i.on,t.data.on)),i}function d(t,e){for(var i=arguments.length,n=new Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];var s=t.listeners[e];s&&(Array.isArray(s)?s.forEach((function(t){t.apply(void 0,n)})):s.apply(void 0,n))}function f(t,e){var i=new l.a({el:document.createElement("div"),props:t.props,render:function(i){return i(t,n({props:this.$props},e))}});return document.body.appendChild(i.$el),i}var p={zIndex:2e3,lockCount:0,stack:[],find:function(t){return this.stack.filter((function(e){return e.vm===t}))[0]}},m=i(0),v=!1;if(!m.g)try{var g={};Object.defineProperty(g,"passive",{get:function(){v=!0}}),window.addEventListener("test-passive",null,g)}catch(t){}function b(t,e,i,n){void 0===n&&(n=!1),m.g||t.addEventListener(e,i,!!v&&{capture:!1,passive:n})}function y(t,e,i){m.g||t.removeEventListener(e,i)}function S(t){t.stopPropagation()}function k(t,e){("boolean"!=typeof t.cancelable||t.cancelable)&&t.preventDefault(),e&&S(t)}var x=Object(o.a)("overlay"),w=x[0],C=x[1];function O(t){k(t,!0)}function T(t,e,i,r){var o=n({zIndex:e.zIndex},e.customStyle);return Object(m.c)(e.duration)&&(o.animationDuration=e.duration+"s"),t("transition",{attrs:{name:"van-fade"}},[t("div",s()([{directives:[{name:"show",value:e.show}],style:o,class:[C(),e.className],on:{touchmove:e.lockScroll?O:m.h}},h(r,!0)]),[null==i.default?void 0:i.default()])])}T.props={show:Boolean,zIndex:[Number,String],duration:[Number,String],className:null,customStyle:Object,lockScroll:{type:Boolean,default:!0}};var $=w(T);function B(t){var e=t.parentNode;e&&e.removeChild(t)}var I={className:"",customStyle:{}};function D(t){var e=p.find(t);if(e){var i=t.$el,r=e.config,s=e.overlay;i&&i.parentNode&&i.parentNode.insertBefore(s.$el,i),n(s,I,r,{show:!0})}}function E(t,e){var i=p.find(t);if(i)i.config=e;else{var n=function(t){return f($,{on:{click:function(){t.$emit("click-overlay"),t.closeOnClickOverlay&&(t.onClickOverlay?t.onClickOverlay():t.close())}}})}(t);p.stack.push({vm:t,config:e,overlay:n})}D(t)}function j(t){var e=p.find(t);e&&(e.overlay.show=!1)}function P(t){return t===window}var L=/scroll|auto/i;function N(t,e){void 0===e&&(e=window);for(var i=t;i&&"HTML"!==i.tagName&&"BODY"!==i.tagName&&1===i.nodeType&&i!==e;){var n=window.getComputedStyle(i).overflowY;if(L.test(n))return i;i=i.parentNode}return e}function A(t){var e="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(e,0)}function M(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e)}function z(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function F(t){M(window,t),M(document.body,t)}function V(t,e){if(P(t))return 0;var i=e?A(e):z();return t.getBoundingClientRect().top+i}var R={data:function(){return{direction:""}},methods:{touchStart:function(t){this.resetTouchStatus(),this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY},touchMove:function(t){var e,i,n=t.touches[0];this.deltaX=n.clientX-this.startX,this.deltaY=n.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY),this.direction=this.direction||(e=this.offsetX,i=this.offsetY,e>i&&e>10?"horizontal":i>e&&i>10?"vertical":"")},resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0},bindTouchEvent:function(t){var e=this.onTouchStart,i=this.onTouchMove,n=this.onTouchEnd;b(t,"touchstart",e),b(t,"touchmove",i),n&&(b(t,"touchend",n),b(t,"touchcancel",n))}}};function H(t){var e=void 0===t?{}:t,i=e.ref,n=e.afterPortal;return{props:{getContainer:[String,Function]},watch:{getContainer:"portal"},mounted:function(){this.getContainer&&this.portal()},methods:{portal:function(){var t,e,r=this.getContainer,s=i?this.$refs[i]:this.$el;r?t="string"==typeof(e=r)?document.querySelector(e):e():this.$parent&&(t=this.$parent.$el),t&&t!==s.parentNode&&t.appendChild(s),n&&n.call(this)}}}}var _=0;function W(t){var e="binded_"+_++;function i(){this[e]||(t.call(this,b,!0),this[e]=!0)}function n(){this[e]&&(t.call(this,y,!1),this[e]=!1)}return{mounted:i,activated:i,deactivated:n,beforeDestroy:n}}var q={mixins:[W((function(t,e){this.handlePopstate(e&&this.closeOnPopstate)}))],props:{closeOnPopstate:Boolean},data:function(){return{bindStatus:!1}},watch:{closeOnPopstate:function(t){this.handlePopstate(t)}},methods:{onPopstate:function(){this.close(),this.shouldReopen=!1},handlePopstate:function(t){this.$isServer||this.bindStatus!==t&&(this.bindStatus=t,(t?b:y)(window,"popstate",this.onPopstate))}}},K={transitionAppear:Boolean,value:Boolean,overlay:Boolean,overlayStyle:Object,overlayClass:String,closeOnClickOverlay:Boolean,zIndex:[Number,String],lockScroll:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0}};function U(t){return void 0===t&&(t={}),{mixins:[R,q,H({afterPortal:function(){this.overlay&&D()}})],props:K,data:function(){return{inited:this.value}},computed:{shouldRender:function(){return this.inited||!this.lazyRender}},watch:{value:function(e){var i=e?"open":"close";this.inited=this.inited||this.value,this[i](),t.skipToggleEvent||this.$emit(i)},overlay:"renderOverlay"},mounted:function(){this.value&&this.open()},activated:function(){this.shouldReopen&&(this.$emit("input",!0),this.shouldReopen=!1)},beforeDestroy:function(){var t,e;t=this,(e=p.find(t))&&B(e.overlay.$el),this.opened&&this.removeLock(),this.getContainer&&B(this.$el)},deactivated:function(){this.value&&(this.close(),this.shouldReopen=!0)},methods:{open:function(){this.$isServer||this.opened||(void 0!==this.zIndex&&(p.zIndex=this.zIndex),this.opened=!0,this.renderOverlay(),this.addLock())},addLock:function(){this.lockScroll&&(b(document,"touchstart",this.touchStart),b(document,"touchmove",this.onTouchMove),p.lockCount||document.body.classList.add("van-overflow-hidden"),p.lockCount++)},removeLock:function(){this.lockScroll&&p.lockCount&&(p.lockCount--,y(document,"touchstart",this.touchStart),y(document,"touchmove",this.onTouchMove),p.lockCount||document.body.classList.remove("van-overflow-hidden"))},close:function(){this.opened&&(j(this),this.opened=!1,this.removeLock(),this.$emit("input",!1))},onTouchMove:function(t){this.touchMove(t);var e=this.deltaY>0?"10":"01",i=N(t.target,this.$el),n=i.scrollHeight,r=i.offsetHeight,s=i.scrollTop,o="11";0===s?o=r>=n?"00":"01":s+r>=n&&(o="10"),"11"===o||"vertical"!==this.direction||parseInt(o,2)&parseInt(e,2)||k(t,!0)},renderOverlay:function(){var t=this;!this.$isServer&&this.value&&this.$nextTick((function(){t.updateZIndex(t.overlay?1:0),t.overlay?E(t,{zIndex:p.zIndex++,duration:t.duration,className:t.overlayClass,customStyle:t.overlayStyle}):j(t)}))},updateZIndex:function(t){void 0===t&&(t=0),this.$el.style.zIndex=++p.zIndex+t}}}}var Y=i(6),X=Object(o.a)("info"),Q=X[0],G=X[1];function Z(t,e,i,n){var r=e.dot,o=e.info,a=Object(m.c)(o)&&""!==o;if(r||a)return t("div",s()([{class:G({dot:r})},h(n,!0)]),[r?"":e.info])}Z.props={dot:Boolean,info:[Number,String]};var J=Q(Z),tt=Object(o.a)("icon"),et=tt[0],it=tt[1];var nt={medel:"medal","medel-o":"medal-o","calender-o":"calendar-o"};function rt(t,e,i,n){var r,o=function(t){return t&&nt[t]||t}(e.name),a=function(t){return!!t&&-1!==t.indexOf("/")}(o);return t(e.tag,s()([{class:[e.classPrefix,a?"":e.classPrefix+"-"+o],style:{color:e.color,fontSize:Object(Y.a)(e.size)}},h(n,!0)]),[i.default&&i.default(),a&&t("img",{class:it("image"),attrs:{src:o}}),t(J,{attrs:{dot:e.dot,info:null!=(r=e.badge)?r:e.info}})])}rt.props={dot:Boolean,name:String,size:[Number,String],info:[Number,String],badge:[Number,String],color:String,tag:{type:String,default:"i"},classPrefix:{type:String,default:it()}};var st=et(rt),ot=Object(o.a)("popup"),at=ot[0],lt=ot[1],ct=at({mixins:[U()],props:{round:Boolean,duration:[Number,String],closeable:Boolean,transition:String,safeAreaInsetBottom:Boolean,closeIcon:{type:String,default:"cross"},closeIconPosition:{type:String,default:"top-right"},position:{type:String,default:"center"},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},beforeCreate:function(){var t=this,e=function(e){return function(i){return t.$emit(e,i)}};this.onClick=e("click"),this.onOpened=e("opened"),this.onClosed=e("closed")},methods:{onClickCloseIcon:function(t){this.$emit("click-close-icon",t),this.close()}},render:function(){var t,e=arguments[0];if(this.shouldRender){var i=this.round,n=this.position,r=this.duration,s="center"===n,o=this.transition||(s?"van-fade":"van-popup-slide-"+n),a={};if(Object(m.c)(r)){var l=s?"animationDuration":"transitionDuration";a[l]=r+"s"}return e("transition",{attrs:{appear:this.transitionAppear,name:o},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],style:a,class:lt((t={round:i},t[n]=n,t["safe-area-inset-bottom"]=this.safeAreaInsetBottom,t)),on:{click:this.onClick}},[this.slots(),this.closeable&&e(st,{attrs:{role:"button",tabindex:"0",name:this.closeIcon},class:lt("close-icon",this.closeIconPosition),on:{click:this.onClickCloseIcon}})])])}}}),ut=Object(o.a)("loading"),ht=ut[0],dt=ut[1];function ft(t,e){if("spinner"===e.type){for(var i=[],n=0;n<12;n++)i.push(t("i"));return i}return t("svg",{class:dt("circular"),attrs:{viewBox:"25 25 50 50"}},[t("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])}function pt(t,e,i){if(i.default){var n,r={fontSize:Object(Y.a)(e.textSize),color:null!=(n=e.textColor)?n:e.color};return t("span",{class:dt("text"),style:r},[i.default()])}}function mt(t,e,i,n){var r=e.color,o=e.size,a=e.type,l={color:r};if(o){var c=Object(Y.a)(o);l.width=c,l.height=c}return t("div",s()([{class:dt([a,{vertical:e.vertical}])},h(n,!0)]),[t("span",{class:dt("spinner",a),style:l},[ft(t,e)]),pt(t,e,i)])}mt.props={color:String,size:[Number,String],vertical:Boolean,textSize:[Number,String],textColor:String,type:{type:String,default:"circular"}};var vt=ht(mt),gt=Object(o.a)("action-sheet"),bt=gt[0],yt=gt[1];function St(t,e,i,n){var r=e.title,o=e.cancelText,a=e.closeable;function l(){d(n,"input",!1),d(n,"cancel")}return t(ct,s()([{class:yt(),attrs:{position:"bottom",round:e.round,value:e.value,overlay:e.overlay,duration:e.duration,lazyRender:e.lazyRender,lockScroll:e.lockScroll,getContainer:e.getContainer,closeOnPopstate:e.closeOnPopstate,closeOnClickOverlay:e.closeOnClickOverlay,safeAreaInsetBottom:e.safeAreaInsetBottom}},h(n,!0)]),[function(){if(r)return t("div",{class:yt("header")},[r,a&&t(st,{attrs:{name:e.closeIcon},class:yt("close"),on:{click:l}})])}(),function(){var n=(null==i.description?void 0:i.description())||e.description;if(n)return t("div",{class:yt("description")},[n])}(),t("div",{class:yt("content")},[e.actions&&e.actions.map((function(i,r){var s=i.disabled,o=i.loading,a=i.callback;return t("button",{attrs:{type:"button"},class:[yt("item",{disabled:s,loading:o}),i.className],style:{color:i.color},on:{click:function(t)