mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
18 lines
322 KiB
JavaScript
18 lines
322 KiB
JavaScript
!function(t){function e(e){for(var n,r,o=e[0],a=e[1],s=0,l=[];s<o.length;s++)r=o[s],i[r]&&l.push(i[r][0]),i[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n]);for(c&&c(e);l.length;)l.shift()()}var n={},i={1:0};function r(e){if(n[e])return n[e].exports;var i=n[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.e=function(t){var e=[],n=i[t];if(0!==n)if(n)e.push(n[2]);else{var o=new Promise(function(e,r){n=i[t]=[e,r]});e.push(n[2]=o);var a,s=document.createElement("script");s.charset="utf-8",s.timeout=120,r.nc&&s.setAttribute("nonce",r.nc),s.src=function(t){return r.p+"async_"+({}[t]||t)+"."+{0:"c12aa705",3:"a5a37620",4:"f1aa6057",5:"6bd3c10c",6:"548fd8ca",7:"33e5a76f",8:"9a9b1852",9:"f6ea9ed3",10:"9be673af",11:"e8aea7b9",12:"3ad1c65e",13:"8b1ffcc2",14:"089199d1",15:"ccc4e038",16:"f85ab749",17:"6f735234",18:"6d7fe8fd",19:"049887ca",20:"83c655f6",21:"6c5160c9",22:"4d5d5699",23:"2177568c",24:"32714416",25:"63a9b713",26:"2c3477f5",27:"6e284a46",28:"e898b181",29:"e7e5622d",30:"4cf3238b",31:"59cdcfa1",32:"0a660079",33:"7322727b",34:"ba45f588",35:"ff85004c",36:"58618950",37:"7dd11b4f",38:"b28a3c21",39:"735e3ea9",40:"55f9d5ca",41:"e37cb0a5",42:"c0f1b257",43:"1012de0e",44:"944cd320",45:"9ee6f923",46:"8c0eeadb",47:"4320d14b",48:"cfe0f03e",49:"e27ba451",50:"307d675e",51:"6bdf8123",52:"4f817afb",53:"d1ef0594",54:"0204fd13",55:"4cab6d10",56:"145cf192",57:"8497f38b",58:"5520efc8",59:"c8431845",60:"40fae16b",61:"b5d30d65",62:"747de10a",63:"41c6dc5c",64:"8038ee85",65:"4e9bb60b",66:"4fcdc5cb",67:"da3c34e0",68:"e34737ae",69:"16f2edd3",70:"5d2db263",71:"47b5d1a2",72:"b3cbb05c",73:"934759d2",74:"877ffd29",75:"e77c0e8d",76:"8020639d",77:"bf862768",78:"0767cbce",79:"0ad4328d",80:"3dcf9999",81:"85e7b086",82:"dd9e6080",83:"2d4551a0",84:"9111db8e",85:"035441f4",86:"cb85f519",87:"1801e7da",88:"d2ca4aa3",89:"3ceede9c",90:"e912406b",91:"73918d85",92:"6308e3fe",93:"bc822196",94:"7ac58dd5",95:"659c83ee",96:"453aa454",97:"855b5555",98:"1bacf391",99:"a650e3d5",100:"b4d1feb8",101:"28dd0d1c",102:"d69ee780",103:"5085da3d",104:"7b9004f4",105:"1c460425",106:"9748d6aa",107:"66afb172",108:"7ba87885",109:"51f60e3c",110:"f50f1f20",111:"39f78009",112:"68f5f0c1",113:"6962887d",114:"f51d0acc",115:"6b72d1c4",116:"edd0f909",117:"f54abada",118:"cb81e3a1",119:"4c022ac5",120:"12557f5f",121:"bb096642",122:"2687b3fd",123:"f8e99998",124:"47a72086",125:"24247963",126:"9bd618eb",127:"d5786754",128:"aa0833ae",129:"b5fb77d5",130:"f452a7a9",131:"7802c63f",132:"25e16431",133:"ee475e35",134:"50aca0cc",135:"98969b3e",136:"e805bec4",137:"71cce67a",138:"25fe6440",139:"352d6b57",140:"8f99babd",141:"46d4b5f8",142:"b924c42d",143:"72f0841b",144:"105c3ea4",145:"b03a2c68",146:"984a60ba",147:"c4338619",148:"23abd562",149:"dd3efefd",150:"0fbbca01",151:"25515f07",152:"db6234df",153:"32e2bf79",154:"4c98bfde",155:"2b230053",156:"58799c0d",157:"5b3dd019",158:"3cc2f5b5",159:"3e647ed6",160:"6166bd44",161:"7e64ffd3",162:"528ae923",163:"b2a5b3f3",164:"64d09163",165:"345de006",166:"416723ce",167:"8c8da464",168:"c3113aaa",169:"ab44462e",170:"6a4fe777",171:"47e901a6",172:"3bcb46d9",173:"c4f917cd",174:"11cc9e39",175:"1ee87050",176:"1086ba91",177:"2ab7d5b3",178:"fd7f18a3"}[t]+".js"}(t),a=function(e){s.onerror=s.onload=null,clearTimeout(c);var n=i[t];if(0!==n){if(n){var r=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src,a=new Error("Loading chunk "+t+" failed.\n("+r+": "+o+")");a.type=r,a.request=o,n[1](a)}i[t]=void 0}};var c=setTimeout(function(){a({type:"timeout",target:s})},12e4);s.onerror=s.onload=a,document.head.appendChild(s)}return Promise.all(e)},r.m=t,r.c=n,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="https://vant-ui.github.io/vant/v1/",r.oe=function(t){throw console.error(t),t};var o=window.webpackJsonp=window.webpackJsonp||[],a=o.push.bind(o);o.push=e,o=o.slice();for(var s=0;s<o.length;s++)e(o[s]);var c=a;r(r.s=44)}([function(t,e,n){"use strict";var i=n(3),r="--";function o(t,e,n){return e?t+n+e:t}function a(t,e){if("string"==typeof e)return o(t,e,r);if(Array.isArray(e))return e.map(function(e){return a(t,e)});var n={};return e&&Object.keys(e).forEach(function(i){n[t+r+i]=e[i]}),n}var s=function(t){return function(e,n){return e&&"string"!=typeof e&&(n=e,e=""),e=o(t,e,"__"),n?[e,a(e,n)]:e}},c=n(8),l={methods:{slots:function(t,e){void 0===t&&(t="default");var n=this.$slots,i=this.$scopedSlots;return i[t]?i[t](e):n[t]}}},u={type:Array,default:function(){return[]}},d={type:Number,default:0};function h(t){var e=this.name;t.component(e,this),t.component(C("-"+e),this)}function f(t){return{functional:!0,props:t.props,model:t.model,render:function(e,n){return t(e,n.props,function(t){var e=t.scopedSlots||t.data.scopedSlots||{},n=t.slots();return Object.keys(n).forEach(function(t){e[t]||(e[t]=function(){return n[t]})}),e}(n),n)}}}var p=function(t){return function(e){var n;return"function"==typeof e&&(e=f(e)),e.functional||(e.mixins=e.mixins||[],e.mixins.push(l)),e.props&&(n=e.props,Object.keys(n).forEach(function(t){n[t]===Array?n[t]=u:n[t]===Number&&(n[t]=d)})),e.name=t,e.install=h,e}},v=function(t){var e=C(t)+".";return function(t){for(var n=k(c.a.messages(),e+t)||k(c.a.messages(),t),i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return"function"==typeof n?n.apply(void 0,r):n}};function m(t){return[p(t="van-"+t),s(t),v(t)]}n.d(e,"h",function(){return g}),n.d(e,"i",function(){return b}),n.d(e,"d",function(){return y}),n.d(e,"g",function(){return x}),n.d(e,"b",function(){return k}),n.d(e,"a",function(){return C}),n.d(e,"c",function(){return S}),n.d(e,"e",function(){return _}),n.d(e,"j",function(){return O}),n.d(e,"f",function(){return $}),n.d(e,"k",function(){return m});var g=i.default.prototype.$isServer;function b(){}function y(t){return null!=t}function x(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function k(t,e){var n=e.split("."),i=t;return n.forEach(function(t){i=y(i[t])?i[t]:""}),i}var w=/-(\w)/g;function C(t){return t.replace(w,function(t,e){return e.toUpperCase()})}function S(){return!g&&/android/.test(navigator.userAgent.toLowerCase())}function _(){return!g&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase())}function O(t,e,n){return Math.min(Math.max(t,e),n)}function $(t){return document.body.contains(t)}},function(t,e,n){"use strict";function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}n.d(e,"a",function(){return i})},function(t,e,n){"use strict";function i(){return(i=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}var r=["attrs","props","domProps"],o=["class","style","directives"],a=["on","nativeOn"],s=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 n in e)if(t[n])if(-1!==r.indexOf(n))t[n]=i({},t[n],e[n]);else if(-1!==o.indexOf(n)){var c=t[n]instanceof Array?t[n]:[t[n]],l=e[n]instanceof Array?e[n]:[e[n]];t[n]=c.concat(l)}else if(-1!==a.indexOf(n))for(var u in e[n])if(t[n][u]){var d=t[n][u]instanceof Array?t[n][u]:[t[n][u]],h=e[n][u]instanceof Array?e[n][u]:[e[n][u]];t[n][u]=d.concat(h)}else t[n][u]=e[n][u];else if("hook"==n)for(var f in e[n])t[n][f]=t[n][f]?s(t[n][f],e[n][f]):e[n][f];else t[n]=e[n];else t[n]=e[n];return t},{})}},function(t,e,n){"use strict";n.r(e),function(t,n){
|
||
/*!
|
||
* Vue.js v2.6.10
|
||
* (c) 2014-2019 Evan You
|
||
* Released under the MIT License.
|
||
*/
|
||
var i=Object.freeze({});function r(t){return null==t}function o(t){return null!=t}function a(t){return!0===t}function s(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function c(t){return null!==t&&"object"==typeof t}var l=Object.prototype.toString;function u(t){return"[object Object]"===l.call(t)}function d(t){return"[object RegExp]"===l.call(t)}function h(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function f(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function v(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var n=Object.create(null),i=t.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}m("slot,component",!0);var g=m("key,ref,slot,slot-scope,is");function b(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function x(t,e){return y.call(t,e)}function k(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var w=/-(\w)/g,C=k(function(t){return t.replace(w,function(t,e){return e?e.toUpperCase():""})}),S=k(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),_=/\B([A-Z])/g,O=k(function(t){return t.replace(_,"-$1").toLowerCase()});var $=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function T(t,e){e=e||0;for(var n=t.length-e,i=new Array(n);n--;)i[n]=t[n+e];return i}function j(t,e){for(var n in e)t[n]=e[n];return t}function A(t){for(var e={},n=0;n<t.length;n++)t[n]&&j(e,t[n]);return e}function E(t,e,n){}var N=function(t,e,n){return!1},I=function(t){return t};function z(t,e){if(t===e)return!0;var n=c(t),i=c(e);if(!n||!i)return!n&&!i&&String(t)===String(e);try{var r=Array.isArray(t),o=Array.isArray(e);if(r&&o)return t.length===e.length&&t.every(function(t,n){return z(t,e[n])});if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(r||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every(function(n){return z(t[n],e[n])})}catch(t){return!1}}function B(t,e){for(var n=0;n<t.length;n++)if(z(t[n],e))return n;return-1}function L(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var D="data-server-rendered",M=["component","directive","filter"],P=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],F={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:N,isReservedAttr:N,isUnknownElement:N,getTagNamespace:E,parsePlatformTagName:I,mustUseProp:N,async:!0,_lifecycleHooks:P},R=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function U(t,e,n,i){Object.defineProperty(t,e,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var V=new RegExp("[^"+R.source+".$_\\d]");var H,q="__proto__"in{},W="undefined"!=typeof window,Y="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,X=Y&&WXEnvironment.platform.toLowerCase(),K=W&&window.navigator.userAgent.toLowerCase(),Q=K&&/msie|trident/.test(K),G=K&&K.indexOf("msie 9.0")>0,J=K&&K.indexOf("edge/")>0,Z=(K&&K.indexOf("android"),K&&/iphone|ipad|ipod|ios/.test(K)||"ios"===X),tt=(K&&/chrome\/\d+/.test(K),K&&/phantomjs/.test(K),K&&K.match(/firefox\/(\d+)/)),et={}.watch,nt=!1;if(W)try{var it={};Object.defineProperty(it,"passive",{get:function(){nt=!0}}),window.addEventListener("test-passive",null,it)}catch(t){}var rt=function(){return void 0===H&&(H=!W&&!Y&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),H},ot=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function at(t){return"function"==typeof t&&/native code/.test(t.toString())}var st,ct="undefined"!=typeof Symbol&&at(Symbol)&&"undefined"!=typeof Reflect&&at(Reflect.ownKeys);st="undefined"!=typeof Set&&at(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var lt=E,ut=0,dt=function(){this.id=ut++,this.subs=[]};dt.prototype.addSub=function(t){this.subs.push(t)},dt.prototype.removeSub=function(t){b(this.subs,t)},dt.prototype.depend=function(){dt.target&&dt.target.addDep(this)},dt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e<n;e++)t[e].update()},dt.target=null;var ht=[];function ft(t){ht.push(t),dt.target=t}function pt(){ht.pop(),dt.target=ht[ht.length-1]}var vt=function(t,e,n,i,r,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},mt={child:{configurable:!0}};mt.child.get=function(){return this.componentInstance},Object.defineProperties(vt.prototype,mt);var gt=function(t){void 0===t&&(t="");var e=new vt;return e.text=t,e.isComment=!0,e};function bt(t){return new vt(void 0,void 0,void 0,String(t))}function yt(t){var e=new vt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var xt=Array.prototype,kt=Object.create(xt);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=xt[t];U(kt,t,function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];var r,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":r=n;break;case"splice":r=n.slice(2)}return r&&a.observeArray(r),a.dep.notify(),o})});var wt=Object.getOwnPropertyNames(kt),Ct=!0;function St(t){Ct=t}var _t=function(t){var e;this.value=t,this.dep=new dt,this.vmCount=0,U(t,"__ob__",this),Array.isArray(t)?(q?(e=kt,t.__proto__=e):function(t,e,n){for(var i=0,r=n.length;i<r;i++){var o=n[i];U(t,o,e[o])}}(t,kt,wt),this.observeArray(t)):this.walk(t)};function Ot(t,e){var n;if(c(t)&&!(t instanceof vt))return x(t,"__ob__")&&t.__ob__ instanceof _t?n=t.__ob__:Ct&&!rt()&&(Array.isArray(t)||u(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new _t(t)),e&&n&&n.vmCount++,n}function $t(t,e,n,i,r){var o=new dt,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(n=t[e]);var l=!r&&Ot(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return dt.target&&(o.depend(),l&&(l.dep.depend(),Array.isArray(e)&&function t(e){for(var n=void 0,i=0,r=e.length;i<r;i++)(n=e[i])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&t(n)}(e))),e},set:function(e){var i=s?s.call(t):n;e===i||e!=e&&i!=i||s&&!c||(c?c.call(t,e):n=e,l=!r&&Ot(e),o.notify())}})}}function Tt(t,e,n){if(Array.isArray(t)&&h(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var i=t.__ob__;return t._isVue||i&&i.vmCount?n:i?($t(i.value,e,n),i.dep.notify(),n):(t[e]=n,n)}function jt(t,e){if(Array.isArray(t)&&h(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||x(t,e)&&(delete t[e],n&&n.dep.notify())}}_t.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)$t(t,e[n])},_t.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Ot(t[e])};var At=F.optionMergeStrategies;function Et(t,e){if(!e)return t;for(var n,i,r,o=ct?Reflect.ownKeys(e):Object.keys(e),a=0;a<o.length;a++)"__ob__"!==(n=o[a])&&(i=t[n],r=e[n],x(t,n)?i!==r&&u(i)&&u(r)&&Et(i,r):Tt(t,n,r));return t}function Nt(t,e,n){return n?function(){var i="function"==typeof e?e.call(n,n):e,r="function"==typeof t?t.call(n,n):t;return i?Et(i,r):r}:e?t?function(){return Et("function"==typeof e?e.call(this,this):e,"function"==typeof t?t.call(this,this):t)}:e:t}function It(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}function zt(t,e,n,i){var r=Object.create(t||null);return e?j(r,e):r}At.data=function(t,e,n){return n?Nt(t,e,n):e&&"function"!=typeof e?t:Nt(t,e)},P.forEach(function(t){At[t]=It}),M.forEach(function(t){At[t+"s"]=zt}),At.watch=function(t,e,n,i){if(t===et&&(t=void 0),e===et&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var r={};for(var o in j(r,t),e){var a=r[o],s=e[o];a&&!Array.isArray(a)&&(a=[a]),r[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return r},At.props=At.methods=At.inject=At.computed=function(t,e,n,i){if(!t)return e;var r=Object.create(null);return j(r,t),e&&j(r,e),r},At.provide=Nt;var Bt=function(t,e){return void 0===e?t:e};function Lt(t,e,n){if("function"==typeof e&&(e=e.options),function(t,e){var n=t.props;if(n){var i,r,o={};if(Array.isArray(n))for(i=n.length;i--;)"string"==typeof(r=n[i])&&(o[C(r)]={type:null});else if(u(n))for(var a in n)r=n[a],o[C(a)]=u(r)?r:{type:r};t.props=o}}(e),function(t,e){var n=t.inject;if(n){var i=t.inject={};if(Array.isArray(n))for(var r=0;r<n.length;r++)i[n[r]]={from:n[r]};else if(u(n))for(var o in n){var a=n[o];i[o]=u(a)?j({from:o},a):{from:a}}}}(e),function(t){var e=t.directives;if(e)for(var n in e){var i=e[n];"function"==typeof i&&(e[n]={bind:i,update:i})}}(e),!e._base&&(e.extends&&(t=Lt(t,e.extends,n)),e.mixins))for(var i=0,r=e.mixins.length;i<r;i++)t=Lt(t,e.mixins[i],n);var o,a={};for(o in t)s(o);for(o in e)x(t,o)||s(o);function s(i){var r=At[i]||Bt;a[i]=r(t[i],e[i],n,i)}return a}function Dt(t,e,n,i){if("string"==typeof n){var r=t[e];if(x(r,n))return r[n];var o=C(n);if(x(r,o))return r[o];var a=S(o);return x(r,a)?r[a]:r[n]||r[o]||r[a]}}function Mt(t,e,n,i){var r=e[t],o=!x(n,t),a=n[t],s=Rt(Boolean,r.type);if(s>-1)if(o&&!x(r,"default"))a=!1;else if(""===a||a===O(t)){var c=Rt(String,r.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=function(t,e,n){if(!x(e,"default"))return;var i=e.default;0;if(t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n])return t._props[n];return"function"==typeof i&&"Function"!==Pt(e.type)?i.call(t):i}(i,r,t);var l=Ct;St(!0),Ot(a),St(l)}return a}function Pt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Ft(t,e){return Pt(t)===Pt(e)}function Rt(t,e){if(!Array.isArray(e))return Ft(e,t)?0:-1;for(var n=0,i=e.length;n<i;n++)if(Ft(e[n],t))return n;return-1}function Ut(t,e,n){ft();try{if(e)for(var i=e;i=i.$parent;){var r=i.$options.errorCaptured;if(r)for(var o=0;o<r.length;o++)try{if(!1===r[o].call(i,t,e,n))return}catch(t){Ht(t,i,"errorCaptured hook")}}Ht(t,e,n)}finally{pt()}}function Vt(t,e,n,i,r){var o;try{(o=n?t.apply(e,n):t.call(e))&&!o._isVue&&f(o)&&!o._handled&&(o.catch(function(t){return Ut(t,i,r+" (Promise/async)")}),o._handled=!0)}catch(t){Ut(t,i,r)}return o}function Ht(t,e,n){if(F.errorHandler)try{return F.errorHandler.call(null,t,e,n)}catch(e){e!==t&&qt(e,null,"config.errorHandler")}qt(t,e,n)}function qt(t,e,n){if(!W&&!Y||"undefined"==typeof console)throw t;console.error(t)}var Wt,Yt=!1,Xt=[],Kt=!1;function Qt(){Kt=!1;var t=Xt.slice(0);Xt.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!=typeof Promise&&at(Promise)){var Gt=Promise.resolve();Wt=function(){Gt.then(Qt),Z&&setTimeout(E)},Yt=!0}else if(Q||"undefined"==typeof MutationObserver||!at(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Wt=void 0!==n&&at(n)?function(){n(Qt)}:function(){setTimeout(Qt,0)};else{var Jt=1,Zt=new MutationObserver(Qt),te=document.createTextNode(String(Jt));Zt.observe(te,{characterData:!0}),Wt=function(){Jt=(Jt+1)%2,te.data=String(Jt)},Yt=!0}function ee(t,e){var n;if(Xt.push(function(){if(t)try{t.call(e)}catch(t){Ut(t,e,"nextTick")}else n&&n(e)}),Kt||(Kt=!0,Wt()),!t&&"undefined"!=typeof Promise)return new Promise(function(t){n=t})}var ne=new st;function ie(t){!function t(e,n){var i,r;var o=Array.isArray(e);if(!o&&!c(e)||Object.isFrozen(e)||e instanceof vt)return;if(e.__ob__){var a=e.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(o)for(i=e.length;i--;)t(e[i],n);else for(r=Object.keys(e),i=r.length;i--;)t(e[r[i]],n)}(t,ne),ne.clear()}var re=k(function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),i="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=i?t.slice(1):t,once:n,capture:i,passive:e}});function oe(t,e){function n(){var t=arguments,i=n.fns;if(!Array.isArray(i))return Vt(i,null,arguments,e,"v-on handler");for(var r=i.slice(),o=0;o<r.length;o++)Vt(r[o],null,t,e,"v-on handler")}return n.fns=t,n}function ae(t,e,n,i,o,s){var c,l,u,d;for(c in t)l=t[c],u=e[c],d=re(c),r(l)||(r(u)?(r(l.fns)&&(l=t[c]=oe(l,s)),a(d.once)&&(l=t[c]=o(d.name,l,d.capture)),n(d.name,l,d.capture,d.passive,d.params)):l!==u&&(u.fns=l,t[c]=u));for(c in e)r(t[c])&&i((d=re(c)).name,e[c],d.capture)}function se(t,e,n){var i;t instanceof vt&&(t=t.data.hook||(t.data.hook={}));var s=t[e];function c(){n.apply(this,arguments),b(i.fns,c)}r(s)?i=oe([c]):o(s.fns)&&a(s.merged)?(i=s).fns.push(c):i=oe([s,c]),i.merged=!0,t[e]=i}function ce(t,e,n,i,r){if(o(e)){if(x(e,n))return t[n]=e[n],r||delete e[n],!0;if(x(e,i))return t[n]=e[i],r||delete e[i],!0}return!1}function le(t){return s(t)?[bt(t)]:Array.isArray(t)?function t(e,n){var i=[];var c,l,u,d;for(c=0;c<e.length;c++)r(l=e[c])||"boolean"==typeof l||(u=i.length-1,d=i[u],Array.isArray(l)?l.length>0&&(ue((l=t(l,(n||"")+"_"+c))[0])&&ue(d)&&(i[u]=bt(d.text+l[0].text),l.shift()),i.push.apply(i,l)):s(l)?ue(d)?i[u]=bt(d.text+l):""!==l&&i.push(bt(l)):ue(l)&&ue(d)?i[u]=bt(d.text+l.text):(a(e._isVList)&&o(l.tag)&&r(l.key)&&o(n)&&(l.key="__vlist"+n+"_"+c+"__"),i.push(l)));return i}(t):void 0}function ue(t){return o(t)&&o(t.text)&&!1===t.isComment}function de(t,e){if(t){for(var n=Object.create(null),i=ct?Reflect.ownKeys(t):Object.keys(t),r=0;r<i.length;r++){var o=i[r];if("__ob__"!==o){for(var a=t[o].from,s=e;s;){if(s._provided&&x(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in t[o]){var c=t[o].default;n[o]="function"==typeof c?c.call(e):c}else 0}}return n}}function he(t,e){if(!t||!t.length)return{};for(var n={},i=0,r=t.length;i<r;i++){var o=t[i],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var l in n)n[l].every(fe)&&delete n[l];return n}function fe(t){return t.isComment&&!t.asyncFactory||" "===t.text}function pe(t,e,n){var r,o=Object.keys(e).length>0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&n&&n!==i&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var c in r={},t)t[c]&&"$"!==c[0]&&(r[c]=ve(e,c,t[c]))}else r={};for(var l in e)l in r||(r[l]=me(e,l));return t&&Object.isExtensible(t)&&(t._normalized=r),U(r,"$stable",a),U(r,"$key",s),U(r,"$hasNormal",o),r}function ve(t,e,n){var i=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:le(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:i,enumerable:!0,configurable:!0}),i}function me(t,e){return function(){return t[e]}}function ge(t,e){var n,i,r,a,s;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),i=0,r=t.length;i<r;i++)n[i]=e(t[i],i);else if("number"==typeof t)for(n=new Array(t),i=0;i<t;i++)n[i]=e(i+1,i);else if(c(t))if(ct&&t[Symbol.iterator]){n=[];for(var l=t[Symbol.iterator](),u=l.next();!u.done;)n.push(e(u.value,n.length)),u=l.next()}else for(a=Object.keys(t),n=new Array(a.length),i=0,r=a.length;i<r;i++)s=a[i],n[i]=e(t[s],s,i);return o(n)||(n=[]),n._isVList=!0,n}function be(t,e,n,i){var r,o=this.$scopedSlots[t];o?(n=n||{},i&&(n=j(j({},i),n)),r=o(n)||e):r=this.$slots[t]||e;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},r):r}function ye(t){return Dt(this.$options,"filters",t)||I}function xe(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function ke(t,e,n,i,r){var o=F.keyCodes[e]||n;return r&&i&&!F.keyCodes[e]?xe(r,i):o?xe(o,t):i?O(i)!==e:void 0}function we(t,e,n,i,r){if(n)if(c(n)){var o;Array.isArray(n)&&(n=A(n));var a=function(a){if("class"===a||"style"===a||g(a))o=t;else{var s=t.attrs&&t.attrs.type;o=i||F.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var c=C(a),l=O(a);c in o||l in o||(o[a]=n[a],r&&((t.on||(t.on={}))["update:"+a]=function(t){n[a]=t}))};for(var s in n)a(s)}else;return t}function Ce(t,e){var n=this._staticTrees||(this._staticTrees=[]),i=n[t];return i&&!e?i:(_e(i=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),"__static__"+t,!1),i)}function Se(t,e,n){return _e(t,"__once__"+e+(n?"_"+n:""),!0),t}function _e(t,e,n){if(Array.isArray(t))for(var i=0;i<t.length;i++)t[i]&&"string"!=typeof t[i]&&Oe(t[i],e+"_"+i,n);else Oe(t,e,n)}function Oe(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function $e(t,e){if(e)if(u(e)){var n=t.on=t.on?j({},t.on):{};for(var i in e){var r=n[i],o=e[i];n[i]=r?[].concat(r,o):o}}else;return t}function Te(t,e,n,i){e=e||{$stable:!n};for(var r=0;r<t.length;r++){var o=t[r];Array.isArray(o)?Te(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return i&&(e.$key=i),e}function je(t,e){for(var n=0;n<e.length;n+=2){var i=e[n];"string"==typeof i&&i&&(t[e[n]]=e[n+1])}return t}function Ae(t,e){return"string"==typeof t?e+t:t}function Ee(t){t._o=Se,t._n=v,t._s=p,t._l=ge,t._t=be,t._q=z,t._i=B,t._m=Ce,t._f=ye,t._k=ke,t._b=we,t._v=bt,t._e=gt,t._u=Te,t._g=$e,t._d=je,t._p=Ae}function Ne(t,e,n,r,o){var s,c=this,l=o.options;x(r,"_uid")?(s=Object.create(r))._original=r:(s=r,r=r._original);var u=a(l._compiled),d=!u;this.data=t,this.props=e,this.children=n,this.parent=r,this.listeners=t.on||i,this.injections=de(l.inject,r),this.slots=function(){return c.$slots||pe(t.scopedSlots,c.$slots=he(n,r)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return pe(t.scopedSlots,this.slots())}}),u&&(this.$options=l,this.$slots=this.slots(),this.$scopedSlots=pe(t.scopedSlots,this.$slots)),l._scopeId?this._c=function(t,e,n,i){var o=Re(s,t,e,n,i,d);return o&&!Array.isArray(o)&&(o.fnScopeId=l._scopeId,o.fnContext=r),o}:this._c=function(t,e,n,i){return Re(s,t,e,n,i,d)}}function Ie(t,e,n,i,r){var o=yt(t);return o.fnContext=n,o.fnOptions=i,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function ze(t,e){for(var n in e)t[C(n)]=e[n]}Ee(Ne.prototype);var Be={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;Be.prepatch(n,n)}else{(t.componentInstance=function(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},i=t.data.inlineTemplate;o(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns);return new t.componentOptions.Ctor(n)}(t,Ge)).$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions;!function(t,e,n,r,o){0;var a=r.data.scopedSlots,s=t.$scopedSlots,c=!!(a&&!a.$stable||s!==i&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key),l=!!(o||t.$options._renderChildren||c);t.$options._parentVnode=r,t.$vnode=r,t._vnode&&(t._vnode.parent=r);if(t.$options._renderChildren=o,t.$attrs=r.data.attrs||i,t.$listeners=n||i,e&&t.$options.props){St(!1);for(var u=t._props,d=t.$options._propKeys||[],h=0;h<d.length;h++){var f=d[h],p=t.$options.props;u[f]=Mt(f,p,e,t)}St(!0),t.$options.propsData=e}n=n||i;var v=t.$options._parentListeners;t.$options._parentListeners=n,Qe(t,n,v),l&&(t.$slots=he(o,r.context),t.$forceUpdate());0}(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e,n=t.context,i=t.componentInstance;i._isMounted||(i._isMounted=!0,en(i,"mounted")),t.data.keepAlive&&(n._isMounted?((e=i)._inactive=!1,rn.push(e)):tn(i,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?function t(e,n){if(n&&(e._directInactive=!0,Ze(e)))return;if(!e._inactive){e._inactive=!0;for(var i=0;i<e.$children.length;i++)t(e.$children[i]);en(e,"deactivated")}}(e,!0):e.$destroy())}},Le=Object.keys(Be);function De(t,e,n,s,l){if(!r(t)){var u=n.$options._base;if(c(t)&&(t=u.extend(t)),"function"==typeof t){var d;if(r(t.cid)&&void 0===(t=function(t,e){if(a(t.error)&&o(t.errorComp))return t.errorComp;if(o(t.resolved))return t.resolved;var n=Ve;n&&o(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n);if(a(t.loading)&&o(t.loadingComp))return t.loadingComp;if(n&&!o(t.owners)){var i=t.owners=[n],s=!0,l=null,u=null;n.$on("hook:destroyed",function(){return b(i,n)});var d=function(t){for(var e=0,n=i.length;e<n;e++)i[e].$forceUpdate();t&&(i.length=0,null!==l&&(clearTimeout(l),l=null),null!==u&&(clearTimeout(u),u=null))},h=L(function(n){t.resolved=He(n,e),s?i.length=0:d(!0)}),p=L(function(e){o(t.errorComp)&&(t.error=!0,d(!0))}),v=t(h,p);return c(v)&&(f(v)?r(t.resolved)&&v.then(h,p):f(v.component)&&(v.component.then(h,p),o(v.error)&&(t.errorComp=He(v.error,e)),o(v.loading)&&(t.loadingComp=He(v.loading,e),0===v.delay?t.loading=!0:l=setTimeout(function(){l=null,r(t.resolved)&&r(t.error)&&(t.loading=!0,d(!1))},v.delay||200)),o(v.timeout)&&(u=setTimeout(function(){u=null,r(t.resolved)&&p(null)},v.timeout)))),s=!1,t.loading?t.loadingComp:t.resolved}}(d=t,u)))return function(t,e,n,i,r){var o=gt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:i,tag:r},o}(d,e,n,s,l);e=e||{},Sn(t),o(e.model)&&function(t,e){var n=t.model&&t.model.prop||"value",i=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var r=e.on||(e.on={}),a=r[i],s=e.model.callback;o(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(r[i]=[s].concat(a)):r[i]=s}(t.options,e);var h=function(t,e,n){var i=e.options.props;if(!r(i)){var a={},s=t.attrs,c=t.props;if(o(s)||o(c))for(var l in i){var u=O(l);ce(a,c,l,u,!0)||ce(a,s,l,u,!1)}return a}}(e,t);if(a(t.options.functional))return function(t,e,n,r,a){var s=t.options,c={},l=s.props;if(o(l))for(var u in l)c[u]=Mt(u,l,e||i);else o(n.attrs)&&ze(c,n.attrs),o(n.props)&&ze(c,n.props);var d=new Ne(n,c,a,r,t),h=s.render.call(null,d._c,d);if(h instanceof vt)return Ie(h,n,d.parent,s);if(Array.isArray(h)){for(var f=le(h)||[],p=new Array(f.length),v=0;v<f.length;v++)p[v]=Ie(f[v],n,d.parent,s);return p}}(t,h,e,n,s);var p=e.on;if(e.on=e.nativeOn,a(t.options.abstract)){var v=e.slot;e={},v&&(e.slot=v)}!function(t){for(var e=t.hook||(t.hook={}),n=0;n<Le.length;n++){var i=Le[n],r=e[i],o=Be[i];r===o||r&&r._merged||(e[i]=r?Me(o,r):o)}}(e);var m=t.options.name||l;return new vt("vue-component-"+t.cid+(m?"-"+m:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:h,listeners:p,tag:l,children:s},d)}}}function Me(t,e){var n=function(n,i){t(n,i),e(n,i)};return n._merged=!0,n}var Pe=1,Fe=2;function Re(t,e,n,i,l,u){return(Array.isArray(n)||s(n))&&(l=i,i=n,n=void 0),a(u)&&(l=Fe),function(t,e,n,i,s){if(o(n)&&o(n.__ob__))return gt();o(n)&&o(n.is)&&(e=n.is);if(!e)return gt();0;Array.isArray(i)&&"function"==typeof i[0]&&((n=n||{}).scopedSlots={default:i[0]},i.length=0);s===Fe?i=le(i):s===Pe&&(i=function(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}(i));var l,u;if("string"==typeof e){var d;u=t.$vnode&&t.$vnode.ns||F.getTagNamespace(e),l=F.isReservedTag(e)?new vt(F.parsePlatformTagName(e),n,i,void 0,void 0,t):n&&n.pre||!o(d=Dt(t.$options,"components",e))?new vt(e,n,i,void 0,void 0,t):De(d,n,t,i,e)}else l=De(e,n,t,i);return Array.isArray(l)?l:o(l)?(o(u)&&function t(e,n,i){e.ns=n;"foreignObject"===e.tag&&(n=void 0,i=!0);if(o(e.children))for(var s=0,c=e.children.length;s<c;s++){var l=e.children[s];o(l.tag)&&(r(l.ns)||a(i)&&"svg"!==l.tag)&&t(l,n,i)}}(l,u),o(n)&&function(t){c(t.style)&&ie(t.style);c(t.class)&&ie(t.class)}(n),l):gt()}(t,e,n,i,l)}var Ue,Ve=null;function He(t,e){return(t.__esModule||ct&&"Module"===t[Symbol.toStringTag])&&(t=t.default),c(t)?e.extend(t):t}function qe(t){return t.isComment&&t.asyncFactory}function We(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(o(n)&&(o(n.componentOptions)||qe(n)))return n}}function Ye(t,e){Ue.$on(t,e)}function Xe(t,e){Ue.$off(t,e)}function Ke(t,e){var n=Ue;return function i(){null!==e.apply(null,arguments)&&n.$off(t,i)}}function Qe(t,e,n){Ue=t,ae(e,n||{},Ye,Xe,Ke,t),Ue=void 0}var Ge=null;function Je(t){var e=Ge;return Ge=t,function(){Ge=e}}function Ze(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function tn(t,e){if(e){if(t._directInactive=!1,Ze(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)tn(t.$children[n]);en(t,"activated")}}function en(t,e){ft();var n=t.$options[e],i=e+" hook";if(n)for(var r=0,o=n.length;r<o;r++)Vt(n[r],t,null,t,i);t._hasHookEvent&&t.$emit("hook:"+e),pt()}var nn=[],rn=[],on={},an=!1,sn=!1,cn=0;var ln=0,un=Date.now;if(W&&!Q){var dn=window.performance;dn&&"function"==typeof dn.now&&un()>document.createEvent("Event").timeStamp&&(un=function(){return dn.now()})}function hn(){var t,e;for(ln=un(),sn=!0,nn.sort(function(t,e){return t.id-e.id}),cn=0;cn<nn.length;cn++)(t=nn[cn]).before&&t.before(),e=t.id,on[e]=null,t.run();var n=rn.slice(),i=nn.slice();cn=nn.length=rn.length=0,on={},an=sn=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,tn(t[e],!0)}(n),function(t){var e=t.length;for(;e--;){var n=t[e],i=n.vm;i._watcher===n&&i._isMounted&&!i._isDestroyed&&en(i,"updated")}}(i),ot&&F.devtools&&ot.emit("flush")}var fn=0,pn=function(t,e,n,i,r){this.vm=t,r&&(t._watcher=this),t._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++fn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new st,this.newDepIds=new st,this.expression="","function"==typeof e?this.getter=e:(this.getter=function(t){if(!V.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(e),this.getter||(this.getter=E)),this.value=this.lazy?void 0:this.get()};pn.prototype.get=function(){var t;ft(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;Ut(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ie(t),pt(),this.cleanupDeps()}return t},pn.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},pn.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},pn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==on[e]){if(on[e]=!0,sn){for(var n=nn.length-1;n>cn&&nn[n].id>t.id;)n--;nn.splice(n+1,0,t)}else nn.push(t);an||(an=!0,ee(hn))}}(this)},pn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Ut(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},pn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},pn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},pn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var vn={enumerable:!0,configurable:!0,get:E,set:E};function mn(t,e,n){vn.get=function(){return this[e][n]},vn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,vn)}function gn(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},i=t._props={},r=t.$options._propKeys=[];t.$parent&&St(!1);var o=function(o){r.push(o);var a=Mt(o,e,n,t);$t(i,o,a),o in t||mn(t,"_props",o)};for(var a in e)o(a);St(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?E:$(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;u(e=t._data="function"==typeof e?function(t,e){ft();try{return t.call(e,e)}catch(t){return Ut(t,e,"data()"),{}}finally{pt()}}(e,t):e||{})||(e={});var n=Object.keys(e),i=t.$options.props,r=(t.$options.methods,n.length);for(;r--;){var o=n[r];0,i&&x(i,o)||(a=void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&mn(t,"_data",o))}var a;Ot(e,!0)}(t):Ot(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),i=rt();for(var r in e){var o=e[r],a="function"==typeof o?o:o.get;0,i||(n[r]=new pn(t,a||E,E,bn)),r in t||yn(t,r,o)}}(t,e.computed),e.watch&&e.watch!==et&&function(t,e){for(var n in e){var i=e[n];if(Array.isArray(i))for(var r=0;r<i.length;r++)wn(t,n,i[r]);else wn(t,n,i)}}(t,e.watch)}var bn={lazy:!0};function yn(t,e,n){var i=!rt();"function"==typeof n?(vn.get=i?xn(e):kn(n),vn.set=E):(vn.get=n.get?i&&!1!==n.cache?xn(e):kn(n.get):E,vn.set=n.set||E),Object.defineProperty(t,e,vn)}function xn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),dt.target&&e.depend(),e.value}}function kn(t){return function(){return t.call(this,this)}}function wn(t,e,n,i){return u(n)&&(i=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,i)}var Cn=0;function Sn(t){var e=t.options;if(t.super){var n=Sn(t.super);if(n!==t.superOptions){t.superOptions=n;var i=function(t){var e,n=t.options,i=t.sealedOptions;for(var r in n)n[r]!==i[r]&&(e||(e={}),e[r]=n[r]);return e}(t);i&&j(t.extendOptions,i),(e=t.options=Lt(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function _n(t){this._init(t)}function On(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,i=n.cid,r=t._Ctor||(t._Ctor={});if(r[i])return r[i];var o=t.name||n.options.name;var a=function(t){this._init(t)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=e++,a.options=Lt(n.options,t),a.super=n,a.options.props&&function(t){var e=t.options.props;for(var n in e)mn(t.prototype,"_props",n)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var n in e)yn(t.prototype,n,e[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,M.forEach(function(t){a[t]=n[t]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=j({},a.options),r[i]=a,a}}function $n(t){return t&&(t.Ctor.options.name||t.tag)}function Tn(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!d(t)&&t.test(e)}function jn(t,e){var n=t.cache,i=t.keys,r=t._vnode;for(var o in n){var a=n[o];if(a){var s=$n(a.componentOptions);s&&!e(s)&&An(n,o,i,r)}}}function An(t,e,n,i){var r=t[e];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),t[e]=null,b(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=Cn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),i=e._parentVnode;n.parent=e.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Lt(Sn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Qe(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,r=n&&n.context;t.$slots=he(e._renderChildren,r),t.$scopedSlots=i,t._c=function(e,n,i,r){return Re(t,e,n,i,r,!1)},t.$createElement=function(e,n,i,r){return Re(t,e,n,i,r,!0)};var o=n&&n.data;$t(t,"$attrs",o&&o.attrs||i,null,!0),$t(t,"$listeners",e._parentListeners||i,null,!0)}(e),en(e,"beforeCreate"),function(t){var e=de(t.$options.inject,t);e&&(St(!1),Object.keys(e).forEach(function(n){$t(t,n,e[n])}),St(!0))}(e),gn(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),en(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(_n),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Tt,t.prototype.$delete=jt,t.prototype.$watch=function(t,e,n){if(u(e))return wn(this,t,e,n);(n=n||{}).user=!0;var i=new pn(this,t,e,n);if(n.immediate)try{e.call(this,i.value)}catch(t){Ut(t,this,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}(_n),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var i=this;if(Array.isArray(t))for(var r=0,o=t.length;r<o;r++)i.$on(t[r],n);else(i._events[t]||(i._events[t]=[])).push(n),e.test(t)&&(i._hasHookEvent=!0);return i},t.prototype.$once=function(t,e){var n=this;function i(){n.$off(t,i),e.apply(n,arguments)}return i.fn=e,n.$on(t,i),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var i=0,r=t.length;i<r;i++)n.$off(t[i],e);return n}var o,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;for(var s=a.length;s--;)if((o=a[s])===e||o.fn===e){a.splice(s,1);break}return n},t.prototype.$emit=function(t){var e=this._events[t];if(e){e=e.length>1?T(e):e;for(var n=T(arguments,1),i='event handler for "'+t+'"',r=0,o=e.length;r<o;r++)Vt(e[r],this,n,this,i)}return this}}(_n),function(t){t.prototype._update=function(t,e){var n=this,i=n.$el,r=n._vnode,o=Je(n);n._vnode=t,n.$el=r?n.__patch__(r,t):n.__patch__(n.$el,t,e,!1),o(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){en(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||b(e.$children,t),t._watcher&&t._watcher.teardown();for(var n=t._watchers.length;n--;)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),en(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(_n),function(t){Ee(t.prototype),t.prototype.$nextTick=function(t){return ee(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,i=n.render,r=n._parentVnode;r&&(e.$scopedSlots=pe(r.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=r;try{Ve=e,t=i.call(e._renderProxy,e.$createElement)}catch(n){Ut(n,e,"render"),t=e._vnode}finally{Ve=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof vt||(t=gt()),t.parent=r,t}}(_n);var En=[String,RegExp,Array],Nn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:En,exclude:En,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)An(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",function(e){jn(t,function(t){return Tn(e,t)})}),this.$watch("exclude",function(e){jn(t,function(t){return!Tn(e,t)})})},render:function(){var t=this.$slots.default,e=We(t),n=e&&e.componentOptions;if(n){var i=$n(n),r=this.include,o=this.exclude;if(r&&(!i||!Tn(r,i))||o&&i&&Tn(o,i))return e;var a=this.cache,s=this.keys,c=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;a[c]?(e.componentInstance=a[c].componentInstance,b(s,c),s.push(c)):(a[c]=e,s.push(c),this.max&&s.length>parseInt(this.max)&&An(a,s[0],s,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return F}};Object.defineProperty(t,"config",e),t.util={warn:lt,extend:j,mergeOptions:Lt,defineReactive:$t},t.set=Tt,t.delete=jt,t.nextTick=ee,t.observable=function(t){return Ot(t),t},t.options=Object.create(null),M.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,j(t.options.components,Nn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=T(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Lt(this.options,t),this}}(t),On(t),function(t){M.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}(t)}(_n),Object.defineProperty(_n.prototype,"$isServer",{get:rt}),Object.defineProperty(_n.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(_n,"FunctionalRenderContext",{value:Ne}),_n.version="2.6.10";var In=m("style,class"),zn=m("input,textarea,option,select,progress"),Bn=m("contenteditable,draggable,spellcheck"),Ln=m("events,caret,typing,plaintext-only"),Dn=function(t,e){return Un(e)||"false"===e?"false":"contenteditable"===t&&Ln(e)?e:"true"},Mn=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Pn="http://www.w3.org/1999/xlink",Fn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Rn=function(t){return Fn(t)?t.slice(6,t.length):""},Un=function(t){return null==t||!1===t};function Vn(t){for(var e=t.data,n=t,i=t;o(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(e=Hn(i.data,e));for(;o(n=n.parent);)n&&n.data&&(e=Hn(e,n.data));return function(t,e){if(o(t)||o(e))return qn(t,Wn(e));return""}(e.staticClass,e.class)}function Hn(t,e){return{staticClass:qn(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function qn(t,e){return t?e?t+" "+e:t:e||""}function Wn(t){return Array.isArray(t)?function(t){for(var e,n="",i=0,r=t.length;i<r;i++)o(e=Wn(t[i]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):c(t)?function(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"==typeof t?t:""}var Yn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Xn=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Kn=m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Qn=function(t){return Xn(t)||Kn(t)};var Gn=Object.create(null);var Jn=m("text,number,password,search,email,tel,url");var Zn=Object.freeze({createElement:function(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(t,e){return document.createElementNS(Yn[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),ti={create:function(t,e){ei(e)},update:function(t,e){t.data.ref!==e.data.ref&&(ei(t,!0),ei(e))},destroy:function(t){ei(t,!0)}};function ei(t,e){var n=t.data.ref;if(o(n)){var i=t.context,r=t.componentInstance||t.elm,a=i.$refs;e?Array.isArray(a[n])?b(a[n],r):a[n]===r&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(r)<0&&a[n].push(r):a[n]=[r]:a[n]=r}}var ni=new vt("",{},[]),ii=["create","activate","update","remove","destroy"];function ri(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&o(t.data)===o(e.data)&&function(t,e){if("input"!==t.tag)return!0;var n,i=o(n=t.data)&&o(n=n.attrs)&&n.type,r=o(n=e.data)&&o(n=n.attrs)&&n.type;return i===r||Jn(i)&&Jn(r)}(t,e)||a(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function oi(t,e,n){var i,r,a={};for(i=e;i<=n;++i)o(r=t[i].key)&&(a[r]=i);return a}var ai={create:si,update:si,destroy:function(t){si(t,ni)}};function si(t,e){(t.data.directives||e.data.directives)&&function(t,e){var n,i,r,o=t===ni,a=e===ni,s=li(t.data.directives,t.context),c=li(e.data.directives,e.context),l=[],u=[];for(n in c)i=s[n],r=c[n],i?(r.oldValue=i.value,r.oldArg=i.arg,di(r,"update",e,t),r.def&&r.def.componentUpdated&&u.push(r)):(di(r,"bind",e,t),r.def&&r.def.inserted&&l.push(r));if(l.length){var d=function(){for(var n=0;n<l.length;n++)di(l[n],"inserted",e,t)};o?se(e,"insert",d):d()}u.length&&se(e,"postpatch",function(){for(var n=0;n<u.length;n++)di(u[n],"componentUpdated",e,t)});if(!o)for(n in s)c[n]||di(s[n],"unbind",t,t,a)}(t,e)}var ci=Object.create(null);function li(t,e){var n,i,r=Object.create(null);if(!t)return r;for(n=0;n<t.length;n++)(i=t[n]).modifiers||(i.modifiers=ci),r[ui(i)]=i,i.def=Dt(e.$options,"directives",i.name);return r}function ui(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function di(t,e,n,i,r){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,i,r)}catch(i){Ut(i,n.context,"directive "+t.name+" "+e+" hook")}}var hi=[ti,ai];function fi(t,e){var n=e.componentOptions;if(!(o(n)&&!1===n.Ctor.options.inheritAttrs||r(t.data.attrs)&&r(e.data.attrs))){var i,a,s=e.elm,c=t.data.attrs||{},l=e.data.attrs||{};for(i in o(l.__ob__)&&(l=e.data.attrs=j({},l)),l)a=l[i],c[i]!==a&&pi(s,i,a);for(i in(Q||J)&&l.value!==c.value&&pi(s,"value",l.value),c)r(l[i])&&(Fn(i)?s.removeAttributeNS(Pn,Rn(i)):Bn(i)||s.removeAttribute(i))}}function pi(t,e,n){t.tagName.indexOf("-")>-1?vi(t,e,n):Mn(e)?Un(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Bn(e)?t.setAttribute(e,Dn(e,n)):Fn(e)?Un(n)?t.removeAttributeNS(Pn,Rn(e)):t.setAttributeNS(Pn,e,n):vi(t,e,n)}function vi(t,e,n){if(Un(n))t.removeAttribute(e);else{if(Q&&!G&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var i=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",i)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,n)}}var mi={create:fi,update:fi};function gi(t,e){var n=e.elm,i=e.data,a=t.data;if(!(r(i.staticClass)&&r(i.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Vn(e),c=n._transitionClasses;o(c)&&(s=qn(s,Wn(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var bi,yi={create:gi,update:gi},xi="__r",ki="__c";function wi(t,e,n){var i=bi;return function r(){null!==e.apply(null,arguments)&&_i(t,r,n,i)}}var Ci=Yt&&!(tt&&Number(tt[1])<=53);function Si(t,e,n,i){if(Ci){var r=ln,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=r||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}bi.addEventListener(t,e,nt?{capture:n,passive:i}:n)}function _i(t,e,n,i){(i||bi).removeEventListener(t,e._wrapper||e,n)}function Oi(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};bi=e.elm,function(t){if(o(t[xi])){var e=Q?"change":"input";t[e]=[].concat(t[xi],t[e]||[]),delete t[xi]}o(t[ki])&&(t.change=[].concat(t[ki],t.change||[]),delete t[ki])}(n),ae(n,i,Si,_i,wi,e.context),bi=void 0}}var $i,Ti={create:Oi,update:Oi};function ji(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,i,a=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};for(n in o(c.__ob__)&&(c=e.data.domProps=j({},c)),s)n in c||(a[n]="");for(n in c){if(i=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),i===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=i;var l=r(i)?"":String(i);Ai(a,l)&&(a.value=l)}else if("innerHTML"===n&&Kn(a.tagName)&&r(a.innerHTML)){($i=$i||document.createElement("div")).innerHTML="<svg>"+i+"</svg>";for(var u=$i.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;u.firstChild;)a.appendChild(u.firstChild)}else if(i!==s[n])try{a[n]=i}catch(t){}}}}function Ai(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,i=t._vModifiers;if(o(i)){if(i.number)return v(n)!==v(e);if(i.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Ei={create:ji,update:ji},Ni=k(function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach(function(t){if(t){var i=t.split(n);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e});function Ii(t){var e=zi(t.style);return t.staticStyle?j(t.staticStyle,e):e}function zi(t){return Array.isArray(t)?A(t):"string"==typeof t?Ni(t):t}var Bi,Li=/^--/,Di=/\s*!important$/,Mi=function(t,e,n){if(Li.test(e))t.style.setProperty(e,n);else if(Di.test(n))t.style.setProperty(O(e),n.replace(Di,""),"important");else{var i=Fi(e);if(Array.isArray(n))for(var r=0,o=n.length;r<o;r++)t.style[i]=n[r];else t.style[i]=n}},Pi=["Webkit","Moz","ms"],Fi=k(function(t){if(Bi=Bi||document.createElement("div").style,"filter"!==(t=C(t))&&t in Bi)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<Pi.length;n++){var i=Pi[n]+e;if(i in Bi)return i}});function Ri(t,e){var n=e.data,i=t.data;if(!(r(n.staticStyle)&&r(n.style)&&r(i.staticStyle)&&r(i.style))){var a,s,c=e.elm,l=i.staticStyle,u=i.normalizedStyle||i.style||{},d=l||u,h=zi(e.data.style)||{};e.data.normalizedStyle=o(h.__ob__)?j({},h):h;var f=function(t,e){var n,i={};if(e)for(var r=t;r.componentInstance;)(r=r.componentInstance._vnode)&&r.data&&(n=Ii(r.data))&&j(i,n);(n=Ii(t.data))&&j(i,n);for(var o=t;o=o.parent;)o.data&&(n=Ii(o.data))&&j(i,n);return i}(e,!0);for(s in d)r(f[s])&&Mi(c,s,"");for(s in f)(a=f[s])!==d[s]&&Mi(c,s,null==a?"":a)}}var Ui={create:Ri,update:Ri},Vi=/\s+/;function Hi(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Vi).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function qi(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Vi).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";n.indexOf(i)>=0;)n=n.replace(i," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function Wi(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&j(e,Yi(t.name||"v")),j(e,t),e}return"string"==typeof t?Yi(t):void 0}}var Yi=k(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),Xi=W&&!G,Ki="transition",Qi="animation",Gi="transition",Ji="transitionend",Zi="animation",tr="animationend";Xi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Gi="WebkitTransition",Ji="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Zi="WebkitAnimation",tr="webkitAnimationEnd"));var er=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function nr(t){er(function(){er(t)})}function ir(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Hi(t,e))}function rr(t,e){t._transitionClasses&&b(t._transitionClasses,e),qi(t,e)}function or(t,e,n){var i=sr(t,e),r=i.type,o=i.timeout,a=i.propCount;if(!r)return n();var s=r===Ki?Ji:tr,c=0,l=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++c>=a&&l()};setTimeout(function(){c<a&&l()},o+1),t.addEventListener(s,u)}var ar=/\b(transform|all)(,|$)/;function sr(t,e){var n,i=window.getComputedStyle(t),r=(i[Gi+"Delay"]||"").split(", "),o=(i[Gi+"Duration"]||"").split(", "),a=cr(r,o),s=(i[Zi+"Delay"]||"").split(", "),c=(i[Zi+"Duration"]||"").split(", "),l=cr(s,c),u=0,d=0;return e===Ki?a>0&&(n=Ki,u=a,d=o.length):e===Qi?l>0&&(n=Qi,u=l,d=c.length):d=(n=(u=Math.max(a,l))>0?a>l?Ki:Qi:null)?n===Ki?o.length:c.length:0,{type:n,timeout:u,propCount:d,hasTransform:n===Ki&&ar.test(i[Gi+"Property"])}}function cr(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(e,n){return lr(e)+lr(t[n])}))}function lr(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function ur(t,e){var n=t.elm;o(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var i=Wi(t.data.transition);if(!r(i)&&!o(n._enterCb)&&1===n.nodeType){for(var a=i.css,s=i.type,l=i.enterClass,u=i.enterToClass,d=i.enterActiveClass,h=i.appearClass,f=i.appearToClass,p=i.appearActiveClass,m=i.beforeEnter,g=i.enter,b=i.afterEnter,y=i.enterCancelled,x=i.beforeAppear,k=i.appear,w=i.afterAppear,C=i.appearCancelled,S=i.duration,_=Ge,O=Ge.$vnode;O&&O.parent;)_=O.context,O=O.parent;var $=!_._isMounted||!t.isRootInsert;if(!$||k||""===k){var T=$&&h?h:l,j=$&&p?p:d,A=$&&f?f:u,E=$&&x||m,N=$&&"function"==typeof k?k:g,I=$&&w||b,z=$&&C||y,B=v(c(S)?S.enter:S);0;var D=!1!==a&&!G,M=fr(N),P=n._enterCb=L(function(){D&&(rr(n,A),rr(n,j)),P.cancelled?(D&&rr(n,T),z&&z(n)):I&&I(n),n._enterCb=null});t.data.show||se(t,"insert",function(){var e=n.parentNode,i=e&&e._pending&&e._pending[t.key];i&&i.tag===t.tag&&i.elm._leaveCb&&i.elm._leaveCb(),N&&N(n,P)}),E&&E(n),D&&(ir(n,T),ir(n,j),nr(function(){rr(n,T),P.cancelled||(ir(n,A),M||(hr(B)?setTimeout(P,B):or(n,s,P)))})),t.data.show&&(e&&e(),N&&N(n,P)),D||M||P()}}}function dr(t,e){var n=t.elm;o(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var i=Wi(t.data.transition);if(r(i)||1!==n.nodeType)return e();if(!o(n._leaveCb)){var a=i.css,s=i.type,l=i.leaveClass,u=i.leaveToClass,d=i.leaveActiveClass,h=i.beforeLeave,f=i.leave,p=i.afterLeave,m=i.leaveCancelled,g=i.delayLeave,b=i.duration,y=!1!==a&&!G,x=fr(f),k=v(c(b)?b.leave:b);0;var w=n._leaveCb=L(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),y&&(rr(n,u),rr(n,d)),w.cancelled?(y&&rr(n,l),m&&m(n)):(e(),p&&p(n)),n._leaveCb=null});g?g(C):C()}function C(){w.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),h&&h(n),y&&(ir(n,l),ir(n,d),nr(function(){rr(n,l),w.cancelled||(ir(n,u),x||(hr(k)?setTimeout(w,k):or(n,s,w)))})),f&&f(n,w),y||x||w())}}function hr(t){return"number"==typeof t&&!isNaN(t)}function fr(t){if(r(t))return!1;var e=t.fns;return o(e)?fr(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function pr(t,e){!0!==e.data.show&&ur(e)}var vr=function(t){var e,n,i={},c=t.modules,l=t.nodeOps;for(e=0;e<ii.length;++e)for(i[ii[e]]=[],n=0;n<c.length;++n)o(c[n][ii[e]])&&i[ii[e]].push(c[n][ii[e]]);function u(t){var e=l.parentNode(t);o(e)&&l.removeChild(e,t)}function d(t,e,n,r,s,c,u){if(o(t.elm)&&o(c)&&(t=c[u]=yt(t)),t.isRootInsert=!s,!function(t,e,n,r){var s=t.data;if(o(s)){var c=o(t.componentInstance)&&s.keepAlive;if(o(s=s.hook)&&o(s=s.init)&&s(t,!1),o(t.componentInstance))return h(t,e),f(n,t.elm,r),a(c)&&function(t,e,n,r){for(var a,s=t;s.componentInstance;)if(s=s.componentInstance._vnode,o(a=s.data)&&o(a=a.transition)){for(a=0;a<i.activate.length;++a)i.activate[a](ni,s);e.push(s);break}f(n,t.elm,r)}(t,e,n,r),!0}}(t,e,n,r)){var d=t.data,v=t.children,m=t.tag;o(m)?(t.elm=t.ns?l.createElementNS(t.ns,m):l.createElement(m,t),b(t),p(t,v,e),o(d)&&g(t,e),f(n,t.elm,r)):a(t.isComment)?(t.elm=l.createComment(t.text),f(n,t.elm,r)):(t.elm=l.createTextNode(t.text),f(n,t.elm,r))}}function h(t,e){o(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,v(t)?(g(t,e),b(t)):(ei(t),e.push(t))}function f(t,e,n){o(t)&&(o(n)?l.parentNode(n)===t&&l.insertBefore(t,e,n):l.appendChild(t,e))}function p(t,e,n){if(Array.isArray(e))for(var i=0;i<e.length;++i)d(e[i],n,t.elm,null,!0,e,i);else s(t.text)&&l.appendChild(t.elm,l.createTextNode(String(t.text)))}function v(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return o(t.tag)}function g(t,n){for(var r=0;r<i.create.length;++r)i.create[r](ni,t);o(e=t.data.hook)&&(o(e.create)&&e.create(ni,t),o(e.insert)&&n.push(t))}function b(t){var e;if(o(e=t.fnScopeId))l.setStyleScope(t.elm,e);else for(var n=t;n;)o(e=n.context)&&o(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e),n=n.parent;o(e=Ge)&&e!==t.context&&e!==t.fnContext&&o(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e)}function y(t,e,n,i,r,o){for(;i<=r;++i)d(n[i],o,t,e,!1,n,i)}function x(t){var e,n,r=t.data;if(o(r))for(o(e=r.hook)&&o(e=e.destroy)&&e(t),e=0;e<i.destroy.length;++e)i.destroy[e](t);if(o(e=t.children))for(n=0;n<t.children.length;++n)x(t.children[n])}function k(t,e,n,i){for(;n<=i;++n){var r=e[n];o(r)&&(o(r.tag)?(w(r),x(r)):u(r.elm))}}function w(t,e){if(o(e)||o(t.data)){var n,r=i.remove.length+1;for(o(e)?e.listeners+=r:e=function(t,e){function n(){0==--n.listeners&&u(t)}return n.listeners=e,n}(t.elm,r),o(n=t.componentInstance)&&o(n=n._vnode)&&o(n.data)&&w(n,e),n=0;n<i.remove.length;++n)i.remove[n](t,e);o(n=t.data.hook)&&o(n=n.remove)?n(t,e):e()}else u(t.elm)}function C(t,e,n,i){for(var r=n;r<i;r++){var a=e[r];if(o(a)&&ri(t,a))return r}}function S(t,e,n,s,c,u){if(t!==e){o(e.elm)&&o(s)&&(e=s[c]=yt(e));var h=e.elm=t.elm;if(a(t.isAsyncPlaceholder))o(e.asyncFactory.resolved)?$(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(a(e.isStatic)&&a(t.isStatic)&&e.key===t.key&&(a(e.isCloned)||a(e.isOnce)))e.componentInstance=t.componentInstance;else{var f,p=e.data;o(p)&&o(f=p.hook)&&o(f=f.prepatch)&&f(t,e);var m=t.children,g=e.children;if(o(p)&&v(e)){for(f=0;f<i.update.length;++f)i.update[f](t,e);o(f=p.hook)&&o(f=f.update)&&f(t,e)}r(e.text)?o(m)&&o(g)?m!==g&&function(t,e,n,i,a){for(var s,c,u,h=0,f=0,p=e.length-1,v=e[0],m=e[p],g=n.length-1,b=n[0],x=n[g],w=!a;h<=p&&f<=g;)r(v)?v=e[++h]:r(m)?m=e[--p]:ri(v,b)?(S(v,b,i,n,f),v=e[++h],b=n[++f]):ri(m,x)?(S(m,x,i,n,g),m=e[--p],x=n[--g]):ri(v,x)?(S(v,x,i,n,g),w&&l.insertBefore(t,v.elm,l.nextSibling(m.elm)),v=e[++h],x=n[--g]):ri(m,b)?(S(m,b,i,n,f),w&&l.insertBefore(t,m.elm,v.elm),m=e[--p],b=n[++f]):(r(s)&&(s=oi(e,h,p)),r(c=o(b.key)?s[b.key]:C(b,e,h,p))?d(b,i,t,v.elm,!1,n,f):ri(u=e[c],b)?(S(u,b,i,n,f),e[c]=void 0,w&&l.insertBefore(t,u.elm,v.elm)):d(b,i,t,v.elm,!1,n,f),b=n[++f]);h>p?y(t,r(n[g+1])?null:n[g+1].elm,n,f,g,i):f>g&&k(0,e,h,p)}(h,m,g,n,u):o(g)?(o(t.text)&&l.setTextContent(h,""),y(h,null,g,0,g.length-1,n)):o(m)?k(0,m,0,m.length-1):o(t.text)&&l.setTextContent(h,""):t.text!==e.text&&l.setTextContent(h,e.text),o(p)&&o(f=p.hook)&&o(f=f.postpatch)&&f(t,e)}}}function _(t,e,n){if(a(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var i=0;i<e.length;++i)e[i].data.hook.insert(e[i])}var O=m("attrs,class,staticClass,staticStyle,key");function $(t,e,n,i){var r,s=e.tag,c=e.data,l=e.children;if(i=i||c&&c.pre,e.elm=t,a(e.isComment)&&o(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(o(c)&&(o(r=c.hook)&&o(r=r.init)&&r(e,!0),o(r=e.componentInstance)))return h(e,n),!0;if(o(s)){if(o(l))if(t.hasChildNodes())if(o(r=c)&&o(r=r.domProps)&&o(r=r.innerHTML)){if(r!==t.innerHTML)return!1}else{for(var u=!0,d=t.firstChild,f=0;f<l.length;f++){if(!d||!$(d,l[f],n,i)){u=!1;break}d=d.nextSibling}if(!u||d)return!1}else p(e,l,n);if(o(c)){var v=!1;for(var m in c)if(!O(m)){v=!0,g(e,n);break}!v&&c.class&&ie(c.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,s){if(!r(e)){var c,u=!1,h=[];if(r(t))u=!0,d(e,h);else{var f=o(t.nodeType);if(!f&&ri(t,e))S(t,e,h,null,null,s);else{if(f){if(1===t.nodeType&&t.hasAttribute(D)&&(t.removeAttribute(D),n=!0),a(n)&&$(t,e,h))return _(e,h,!0),t;c=t,t=new vt(l.tagName(c).toLowerCase(),{},[],void 0,c)}var p=t.elm,m=l.parentNode(p);if(d(e,h,p._leaveCb?null:m,l.nextSibling(p)),o(e.parent))for(var g=e.parent,b=v(e);g;){for(var y=0;y<i.destroy.length;++y)i.destroy[y](g);if(g.elm=e.elm,b){for(var w=0;w<i.create.length;++w)i.create[w](ni,g);var C=g.data.hook.insert;if(C.merged)for(var O=1;O<C.fns.length;O++)C.fns[O]()}else ei(g);g=g.parent}o(m)?k(0,[t],0,0):o(t.tag)&&x(t)}}return _(e,h,u),e.elm}o(t)&&x(t)}}({nodeOps:Zn,modules:[mi,yi,Ti,Ei,Ui,W?{create:pr,activate:pr,remove:function(t,e){!0!==t.data.show?dr(t,e):e()}}:{}].concat(hi)});G&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&Cr(t,"input")});var mr={inserted:function(t,e,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?se(n,"postpatch",function(){mr.componentUpdated(t,e,n)}):gr(t,e,n.context),t._vOptions=[].map.call(t.options,xr)):("textarea"===n.tag||Jn(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",kr),t.addEventListener("compositionend",wr),t.addEventListener("change",wr),G&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){gr(t,e,n.context);var i=t._vOptions,r=t._vOptions=[].map.call(t.options,xr);if(r.some(function(t,e){return!z(t,i[e])}))(t.multiple?e.value.some(function(t){return yr(t,r)}):e.value!==e.oldValue&&yr(e.value,r))&&Cr(t,"change")}}};function gr(t,e,n){br(t,e,n),(Q||J)&&setTimeout(function(){br(t,e,n)},0)}function br(t,e,n){var i=e.value,r=t.multiple;if(!r||Array.isArray(i)){for(var o,a,s=0,c=t.options.length;s<c;s++)if(a=t.options[s],r)o=B(i,xr(a))>-1,a.selected!==o&&(a.selected=o);else if(z(xr(a),i))return void(t.selectedIndex!==s&&(t.selectedIndex=s));r||(t.selectedIndex=-1)}}function yr(t,e){return e.every(function(e){return!z(e,t)})}function xr(t){return"_value"in t?t._value:t.value}function kr(t){t.target.composing=!0}function wr(t){t.target.composing&&(t.target.composing=!1,Cr(t.target,"input"))}function Cr(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Sr(t){return!t.componentInstance||t.data&&t.data.transition?t:Sr(t.componentInstance._vnode)}var _r={model:mr,show:{bind:function(t,e,n){var i=e.value,r=(n=Sr(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;i&&r?(n.data.show=!0,ur(n,function(){t.style.display=o})):t.style.display=i?o:"none"},update:function(t,e,n){var i=e.value;!i!=!e.oldValue&&((n=Sr(n)).data&&n.data.transition?(n.data.show=!0,i?ur(n,function(){t.style.display=t.__vOriginalDisplay}):dr(n,function(){t.style.display="none"})):t.style.display=i?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,i,r){r||(t.style.display=t.__vOriginalDisplay)}}},Or={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function $r(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?$r(We(e.children)):t}function Tr(t){var e={},n=t.$options;for(var i in n.propsData)e[i]=t[i];var r=n._parentListeners;for(var o in r)e[C(o)]=r[o];return e}function jr(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Ar=function(t){return t.tag||qe(t)},Er=function(t){return"show"===t.name},Nr={name:"transition",props:Or,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(Ar)).length){0;var i=this.mode;0;var r=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return r;var o=$r(r);if(!o)return r;if(this._leaving)return jr(t,r);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var c=(o.data||(o.data={})).transition=Tr(this),l=this._vnode,u=$r(l);if(o.data.directives&&o.data.directives.some(Er)&&(o.data.show=!0),u&&u.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,u)&&!qe(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=j({},c);if("out-in"===i)return this._leaving=!0,se(d,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),jr(t,r);if("in-out"===i){if(qe(o))return l;var h,f=function(){h()};se(c,"afterEnter",f),se(c,"enterCancelled",f),se(d,"delayLeave",function(t){h=t})}}return r}}},Ir=j({tag:String,moveClass:String},Or);function zr(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Br(t){t.data.newPos=t.elm.getBoundingClientRect()}function Lr(t){var e=t.data.pos,n=t.data.newPos,i=e.left-n.left,r=e.top-n.top;if(i||r){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+i+"px,"+r+"px)",o.transitionDuration="0s"}}delete Ir.mode;var Dr={Transition:Nr,TransitionGroup:{props:Ir,beforeMount:function(){var t=this,e=this._update;this._update=function(n,i){var r=Je(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,n,i)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],a=Tr(this),s=0;s<r.length;s++){var c=r[s];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a;else;}if(i){for(var l=[],u=[],d=0;d<i.length;d++){var h=i[d];h.data.transition=a,h.data.pos=h.elm.getBoundingClientRect(),n[h.key]?l.push(h):u.push(h)}this.kept=t(e,null,l),this.removed=u}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(zr),t.forEach(Br),t.forEach(Lr),this._reflow=document.body.offsetHeight,t.forEach(function(t){if(t.data.moved){var n=t.elm,i=n.style;ir(n,e),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(Ji,n._moveCb=function t(i){i&&i.target!==n||i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(Ji,t),n._moveCb=null,rr(n,e))})}}))},methods:{hasMove:function(t,e){if(!Xi)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach(function(t){qi(n,t)}),Hi(n,e),n.style.display="none",this.$el.appendChild(n);var i=sr(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}}};_n.config.mustUseProp=function(t,e,n){return"value"===n&&zn(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},_n.config.isReservedTag=Qn,_n.config.isReservedAttr=In,_n.config.getTagNamespace=function(t){return Kn(t)?"svg":"math"===t?"math":void 0},_n.config.isUnknownElement=function(t){if(!W)return!0;if(Qn(t))return!1;if(t=t.toLowerCase(),null!=Gn[t])return Gn[t];var e=document.createElement(t);return t.indexOf("-")>-1?Gn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Gn[t]=/HTMLUnknownElement/.test(e.toString())},j(_n.options.directives,_r),j(_n.options.components,Dr),_n.prototype.__patch__=W?vr:E,_n.prototype.$mount=function(t,e){return function(t,e,n){var i;return t.$el=e,t.$options.render||(t.$options.render=gt),en(t,"beforeMount"),i=function(){t._update(t._render(),n)},new pn(t,i,E,{before:function(){t._isMounted&&!t._isDestroyed&&en(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,en(t,"mounted")),t}(this,t=t&&W?function(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}(t):void 0,e)},W&&setTimeout(function(){F.devtools&&ot&&ot.emit("init",_n)},0),e.default=_n}.call(this,n(15),n(26).setImmediate)},function(t,e,n){"use strict";n.d(e,"d",function(){return i}),n.d(e,"a",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"e",function(){return a}),n.d(e,"b",function(){return s});var i="#f44",r="#1989fa",o="#07c160",a="#fff",s="#969799"},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i={QUOTA_LIMIT:0,STOCK_LIMIT:1},r="";e.c={LIMIT_TYPE:i,UNSELECTED_SKU_VALUE_ID:r}},function(t,e,n){"use strict";(function(t){n.d(e,"b",function(){return c}),n.d(e,"a",function(){return l});var i=n(0),r=Date.now();var o=i.h?t:window,a=o.requestAnimationFrame||function(t){var e=Date.now(),n=Math.max(0,16-(e-r)),i=setTimeout(t,n);return r=e+n,i},s=o.cancelAnimationFrame||o.clearTimeout;function c(t){return a.call(o,t)}function l(t){s.call(o,t)}}).call(this,n(15))},function(t,e,n){"use strict";function i(t,e,n,i,r,o,a,s){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=c):r&&(c=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:l}}n.d(e,"a",function(){return i})},function(t,e,n){"use strict";var i=n(3),r=n(19),o=n(20),a=i.default.prototype,s=i.default.util.defineReactive;s(a,"$vantLang","zh-CN"),s(a,"$vantMessages",{"zh-CN":o.a}),e.a={messages:function(){return a.$vantMessages[a.$vantLang]},use:function(t,e){var n;a.$vantLang=t,this.add(((n={})[t]=e,n))},add:function(t){void 0===t&&(t={}),Object(r.a)(a.$vantMessages,t)}}},function(t,e,n){t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="dist/",n(n.s=3)}([function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=(a=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"});return[n].concat(o).concat([r]).join("\n")}var a;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(i[o]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e){t.exports=function(t,e,n,i,r,o){var a,s=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(a=t,s=t.default);var l,u="function"==typeof s?s.options:s;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),r&&(u._scopeId=r),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=i),l){var d=u.functional,h=d?u.render:u.beforeCreate;d?u.render=function(t,e){return l.call(e),h(t,e)}:u.beforeCreate=h?[].concat(h,l):[l]}return{esModule:a,exports:s,options:u}}},function(t,e,n){var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var r=n(7),o={},a=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,l=!1,u=function(){},d="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(t){for(var e=0;e<t.length;e++){var n=t[e],i=o[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(p(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;r<n.parts.length;r++)a.push(p(n.parts[r]));o[n.id]={id:n.id,refs:1,parts:a}}}}function f(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function p(t){var e,n,i=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(i){if(l)return u;i.parentNode.removeChild(i)}if(d){var r=c++;i=s||(s=f()),e=g.bind(null,i,r,!1),n=g.bind(null,i,r,!0)}else i=f(),e=function(t,e){var n=e.css,i=e.media,r=e.sourceMap;i&&t.setAttribute("media",i);r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}t.exports=function(t,e,n){l=n;var i=r(t,e);return h(i),function(e){for(var n=[],a=0;a<i.length;a++){var s=i[a];(c=o[s.id]).refs--,n.push(c)}e?h(i=r(t,e)):i=[];for(a=0;a<n.length;a++){var c;if(0===(c=n[a]).refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete o[c.id]}}}};var v,m=(v=[],function(t,e){return v[t]=e,v.filter(Boolean).join("\n")});function g(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=m(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),r=n.n(i),o={name:"van-doc",props:{active:String,config:{type:Object,required:!0},currentSimulator:Number,simulator:String,simulators:{type:Array,default:function(){return[]}},base:{type:String,default:""}},data:function(){return{nav:[],currentPath:null,leftNav:null,rightNav:null}},watch:{"$route.path":function(){this.setNav(),this.updateNav()}},created:function(){this.setNav(),this.updateNav(),this.keyboardHandler()},methods:{setNav:function(){for(var t=this.config.nav,e=0;e<t.length;e++){var n=t[e];if(n.groups)for(var i=0;i<n.groups.length;i++)this.nav=this.nav.concat(n.groups[i].list);else this.nav.push(t[e])}},updateNav:function(){var t=void 0;this.currentPath="/"+this.$route.path.split("/").pop();for(var e=0,n=this.nav.length;e<n;e++)if(this.nav[e].path===this.currentPath){t=e;break}this.leftNav=this.nav[t-1],this.rightNav=this.nav[t+1]},handleNavClick:function(t){var e="prev"===t?this.leftNav:this.rightNav;e.path?this.$router.push(this.base+e.path):e.link&&(window.location.href=e.link)},keyboardHandler:function(){var t=this;window.addEventListener("keyup",function(e){switch(e.keyCode){case 37:t.handleNavClick("prev");break;case 39:t.handleNavClick("next")}})}}},a={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-doc"},[n("van-doc-header",{attrs:{config:t.config.header,active:t.active}}),t._v(" "),n("van-doc-nav",{attrs:{"nav-config":t.config.nav,base:t.base}}),t._v(" "),n("van-doc-container",{attrs:{"has-simulator":!(!t.simulator&&!t.simulators.length)}},[n("van-doc-content",[t._t("default")],2)],1),t._v(" "),t.simulator?n("van-doc-simulator",{attrs:{src:t.simulator}}):t._e(),t._v(" "),t._l(t.simulators,function(e,i){return n("van-doc-simulator",{directives:[{name:"show",rawName:"v-show",value:i===t.currentSimulator,expression:"index === currentSimulator"}],key:e,attrs:{src:e}})})],2)},staticRenderFns:[]};var s,c=n(1)(o,a,!1,function(t){n(5)},null,null).exports,l={name:"van-doc-nav-link",props:{base:String,item:Object},computed:{itemName:function(){var t=(this.item.title||this.item.name).split(" ");return t[0]+" <span>"+t.slice(1).join(" ")+"</span>"}}},u={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.item.path?n("router-link",{attrs:{"active-class":"active",to:t.base+t.item.path},domProps:{innerHTML:t._s(t.itemName)}}):t.item.link?n("a",{attrs:{href:t.item.link},domProps:{innerHTML:t._s(t.itemName)}}):n("a",{domProps:{innerHTML:t._s(t.itemName)}})},staticRenderFns:[]},d=n(1)(l,u,!1,null,null,null).exports,h={name:"van-doc-nav",components:(s={},s[d.name]=d,s),props:{navConfig:Array,base:{type:String,default:""}},data:function(){return{top:60,bottom:0}},computed:{style:function(){return{top:this.top+"px",bottom:this.bottom+"px"}}},created:function(){window.addEventListener("scroll",this.onScroll),this.onScroll()},methods:{onScroll:function(){var t=window.pageYOffset;this.top=Math.max(0,60-t)}}},f={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-doc-nav",style:t.style},t._l(t.navConfig,function(e,i){return n("div",{key:i,staticClass:"van-doc-nav__item"},[n("van-doc-nav-link",{attrs:{item:e,base:t.base}}),t._v(" "),e.children?n("div",t._l(e.children,function(e,i){return n("div",{key:i,staticClass:"nav-item"},[n("van-doc-nav-link",{attrs:{item:e,base:t.base}})],1)})):t._e(),t._v(" "),t._l(e.groups,function(i,r){return e.groups?n("div",{key:r},[n("div",{staticClass:"van-doc-nav__group-title"},[t._v(t._s(i.groupName))]),t._v(" "),n("div",t._l(i.list,function(e,i){return e.disabled?t._e():n("div",{key:i,staticClass:"van-doc-nav__subitem"},[n("van-doc-nav-link",{attrs:{item:e,base:t.base}})],1)}))]):t._e()})],2)}))},staticRenderFns:[]};var p=n(1)(h,f,!1,function(t){n(8)},null,null).exports,v={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"van-doc-block"},[this._t("default")],2)},staticRenderFns:[]};var m=n(1)({name:"van-doc-block"},v,!1,function(t){n(10)},null,null).exports,g={name:"van-doc-header",props:{config:Object,active:String},methods:{onSwitchLang:function(t){this.$router.push(this.$route.path.replace(t.from,t.to))}}},b={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-doc-header"},[n("div",{staticClass:"van-doc-row"},[n("div",{staticClass:"van-doc-header__top"},[n("a",{staticClass:"van-doc-header__logo",attrs:{href:t.config.logo.href}},[n("img",{attrs:{src:t.config.logo.image}}),t._v(" "),n("span",[t._v(t._s(t.config.logo.title))]),t._v(" "),t.config.logo.version?n("span",{staticClass:"van-doc-header__version"},[t._v("v"+t._s(t.config.logo.version))]):t._e()]),t._v(" "),n("ul",{staticClass:"van-doc-header__top-nav"},t._l(t.config.nav,function(e,i){return n("li",{staticClass:"van-doc-header__top-nav-item",class:{active:i===t.active}},[n("a",{staticClass:"van-doc-header__top-nav-title",class:{active:i===t.active,link:"string"==typeof e&&"github"!==i},attrs:{href:"string"==typeof e?e:"javascript:;",target:"github"===i?"_blank":""}},["github"===i?n("svg",{staticClass:"octicon octicon-mark-github",attrs:{height:"28",width:"28",viewBox:"0 0 16 16",version:"1.1","aria-hidden":"true"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"}})]):"lang"===i?n("span",{staticClass:"van-doc-header__top-nav-lang",on:{click:function(n){t.onSwitchLang(e)}}},[t._v(t._s(e.text))]):n("span",[t._v(t._s(i))])])])}))])])])},staticRenderFns:[]};var y=n(1)(g,b,!1,function(t){n(12)},null,null).exports,x={name:"van-doc-footer",props:{config:Object}},k={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-doc-footer"},[n("ul",t._l(t.config.nav,function(e,i){return n("li",{key:i,staticClass:"van-doc-footer__item"},[n("a",{attrs:{href:e,target:"_blank"}},[t._v(t._s(i))])])})),t._v(" "),t.config.github?n("a",{staticClass:"github-corner",attrs:{href:t.config.github,target:"_blank","aria-label":"View source on Github"}},[n("svg",{attrs:{width:"100",height:"100",viewBox:"0 0 250 250","aria-hidden":"true"}},[n("path",{staticClass:"octo-arm",staticStyle:{"transform-origin":"130px 106px"},attrs:{d:"M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2",fill:"currentColor"}}),t._v(" "),n("path",{staticClass:"octo-body",attrs:{d:"M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z",fill:"currentColor"}})])]):t._e()])},staticRenderFns:[]};var w=n(1)(x,k,!1,function(t){n(14)},null,null).exports,C={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{class:["van-doc-content","van-doc-content--"+this.currentPage]},[this._t("default")],2)},staticRenderFns:[]};var S=n(1)({name:"van-doc-content",computed:{currentPage:function(){var t=this.$route.path;return t?t.split("/").slice(-1)[0]:this.$route.name}}},C,!1,function(t){n(16)},null,null).exports,_={name:"van-doc-container",props:{hasSimulator:Boolean}},O={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"van-doc-container van-doc-row",class:{"van-doc-container--with-simulator":this.hasSimulator}},[this._t("default")],2)},staticRenderFns:[]};var $=n(1)(_,O,!1,function(t){n(18)},null,null).exports,T={name:"van-doc-simulator",props:{src:String},data:function(){return{scrollTop:window.scrollY,windowHeight:window.innerHeight}},mounted:function(){var t=this;window.addEventListener("scroll",function(){t.scrollTop=window.scrollY}),window.addEventListener("resize",function(){t.windowHeight=window.innerHeight})},computed:{isFixed:function(){return this.scrollTop>60},simulatorStyle:function(){return{height:Math.min(640,this.windowHeight-90)+"px"}}}},j={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:["van-doc-simulator",{"van-doc-simulator-fixed":this.isFixed}]},[e("iframe",{ref:"iframe",style:this.simulatorStyle,attrs:{src:this.src,frameborder:"0"}})])},staticRenderFns:[]};var A=n(1)(T,j,!1,function(t){n(20)},null,null).exports,E={name:"van-doc-demo-block",props:{title:String}},N={render:function(){var t=this.$createElement,e=this._self._c||t;return e("section",{staticClass:"van-doc-demo-block"},[e("h2",{staticClass:"van-doc-demo-block__title"},[this._v(this._s(this.title))]),this._v(" "),this._t("default")],2)},staticRenderFns:[]};var I=n(1)(E,N,!1,function(t){n(22)},null,null).exports,z={name:"van-doc-demo-section",props:{name:String,title:String,background:String},computed:{demoName:function(){return this.name||this.getParentName()},style:function(){return{background:this.background}}},methods:{getParentName:function(){var t=this.$parent;if(t&&t.$options.name)return t.$options.name.replace("demo-","")}}},B={render:function(){var t=this.$createElement;return(this._self._c||t)("section",{staticClass:"van-doc-demo-section",class:"demo-"+this.demoName,style:this.style},[this._t("default")],2)},staticRenderFns:[]};var L=n(1)(z,B,!1,function(t){n(24)},null,null).exports,D=n(26),M=n.n(D);n(27);e.default=function(){P.map(function(t){r.a.component(t.name,t)})},n.d(e,"Nav",function(){return p}),n.d(e,"Header",function(){return y}),n.d(e,"Footer",function(){return w}),n.d(e,"VanDoc",function(){return c}),n.d(e,"Block",function(){return m}),n.d(e,"Content",function(){return S}),n.d(e,"Container",function(){return $}),n.d(e,"Simulator",function(){return A}),n.d(e,"DemoBlock",function(){return I}),n.d(e,"DemoSection",function(){return L}),n.d(e,"progress",function(){return M.a});var P=[p,y,w,c,m,S,$,A,I,L]},function(t,e){t.exports=n(3)},function(t,e,n){var i=n(6);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("4ea92526",i,!0)},function(t,e,n){(t.exports=n(0)(void 0)).push([t.i,'body{color:#333;font-size:16px;min-width:1100px;overflow-x:auto;background-color:#fff;-webkit-font-smoothing:antialiased;font-family:PingFang SC,Helvetica Neue,Arial,sans-serif}body,p{margin:0}h1,h2,h3,h4,h5,h6{margin:0;font-size:inherit}ol,ul{margin:0;padding:0;list-style:none}a{text-decoration:none}.van-doc-row{width:100%}@media (min-width:1440px){.van-doc-row{width:1440px;margin:0 auto}}code{display:block;font-size:13px;overflow-x:auto;font-weight:400;line-height:22px;border-radius:3px;margin-bottom:25px;position:relative;word-break:break-all;white-space:pre-wrap;color:#455a64;padding:18px 10px 18px 20px;background-color:#f1f4f8;font-family:Source Code Pro,Monaco,Inconsolata,monospace}code:after{top:5px;right:10px;position:absolute;color:#ccc;font-size:12px}pre{margin:0}pre+pre{margin-top:-10px}code.language-html:after{content:"HTML"}code.language-javascript:after{content:"JS"}code.language-css:after{content:"CSS"}.hljs{display:block;overflow-x:auto;padding:.5em;background:#fff}.hljs-subst{color:#455a64}.hljs-addition,.hljs-meta,.hljs-string,.hljs-symbol,.hljs-template-tag,.hljs-template-variable{color:#5758bb}.hljs-comment,.hljs-quote{color:#999}.hljs-bullet,.hljs-link,.hljs-literal,.hljs-number,.hljs-regexp{color:#32a973}.hljs-deletion,.hljs-variable{color:#88f}.hljs-built_in,.hljs-doctag,.hljs-keyword,.hljs-name,.hljs-section,.hljs-selector-class,.hljs-selector-id,.hljs-selector-tag,.hljs-strong,.hljs-tag,.hljs-title,.hljs-type{color:#0079f3}.hljs-emphasis{font-style:italic}.hljs-attribute{color:#e6550d}',""])},function(t,e){t.exports=function(t,e){for(var n=[],i={},r=0;r<e.length;r++){var o=e[r],a=o[0],s={id:t+":"+r,css:o[1],media:o[2],sourceMap:o[3]};i[a]?i[a].parts.push(s):n.push(i[a]={id:a,parts:[s]})}return n}},function(t,e,n){var i=n(9);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("e18aee4e",i,!0)},function(t,e,n){(t.exports=n(0)(void 0)).push([t.i,".van-doc-nav{left:0;top:60px;bottom:0;z-index:1;position:fixed;overflow-y:scroll;padding:25px 0 75px;min-width:240px;max-width:240px;border-right:1px solid #f1f4f8}@media (max-width:1300px){.van-doc-nav{min-width:220px;max-width:220px}}@media (min-width:1440px){.van-doc-nav{left:50%;margin-left:-720px}}.van-doc-nav::-webkit-scrollbar{height:6px;width:6px;background-color:transparent}.van-doc-nav::-webkit-scrollbar-thumb{border-radius:6px;background-color:transparent}.van-doc-nav:hover::-webkit-scrollbar-thumb{background-color:rgba(69,90,100,.2)}.van-doc-nav__item a,.van-doc-nav__subitem a{margin:0;display:block;color:#455a64;font-size:16px;padding:10px 20px 10px 40px;line-height:24px;-webkit-transition:all .3s;transition:all .3s}.van-doc-nav__item a.active,.van-doc-nav__subitem a.active{color:#0079f3}.van-doc-nav__item>a{font-weight:700}.van-doc-nav__subitem a{font-size:14px}.van-doc-nav__subitem a:hover{color:#0079f3}.van-doc-nav__subitem span{opacity:.6;font-size:13px}.van-doc-nav__group-title{font-size:12px;line-height:40px;padding-left:40px;color:rgba(69,90,100,.6)}@media (max-width:1300px){.van-doc-nav{min-width:220px;max-width:220px}.van-doc-nav__item a,.van-doc-nav__subitem a{line-height:22px}.van-doc-nav__subitem a{font-size:13px}}",""])},function(t,e,n){var i=n(11);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("2cefc454",i,!0)},function(t,e,n){(t.exports=n(0)(void 0)).push([t.i,".van-doc-block{display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:20px}.van-doc-block .highlight{-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-sizing:border-box;box-sizing:border-box}.van-doc-block .highlight pre{word-break:break-all}",""])},function(t,e,n){var i=n(13);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("25593cb0",i,!0)},function(t,e,n){(t.exports=n(0)(void 0)).push([t.i,'.van-doc-header{width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-bottom:1px solid #f1f4f8}.van-doc-header__top{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#fff;padding:0 40px;height:60px;line-height:60px}.van-doc-header__top-nav{-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:right}.van-doc-header__top-nav>li{display:inline-block;position:relative;vertical-align:middle}.van-doc-header__top-nav-lang{padding:0 7px;font-size:14px;line-height:24px;display:block;border-radius:3px;text-align:center;color:#455a64;border:1px solid currentColor;font-family:Helvetica Neue,Arial,sans-serif;-webkit-transition:.3s ease-in-out;transition:.3s ease-in-out}.van-doc-header__top-nav-lang:hover{color:#0079f3}.van-doc-header__top-nav-item{margin:0 15px}.van-doc-header__top-nav-title{display:block;font-size:15px}.van-doc-header__top-nav-title svg{fill:#455a64;display:block;vertical-align:middle;-webkit-transition:.3s ease-in-out;transition:.3s ease-in-out}.van-doc-header__top-nav-title svg:hover{fill:#0079f3}.van-doc-header__top-nav-title.link{color:#34495e;border-bottom:1px solid transparent;-webkit-transition:.3s ease-in-out;transition:.3s ease-in-out}.van-doc-header__top-nav-title.link.active,.van-doc-header__top-nav-title.link:hover{color:#0079f3;border-bottom-color:#19b5fe}.van-doc-header__top-nav .van-doc-header__arrow:hover{color:#34495e}.van-doc-header__top-nav .van-doc-header__arrow:after{content:"";display:inline-block;vertical-align:middle;margin-top:-1px;margin-left:1px;margin-right:-4px;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid #ccc;pointer-events:none}.van-doc-header__logo{display:block}.van-doc-header__logo img,.van-doc-header__logo span{display:inline-block;vertical-align:middle}.van-doc-header__logo img{width:24px;margin-right:5px}.van-doc-header__logo span{font-size:22px;color:#333;font-family:Dosis,Source Sans Pro,Helvetica Neue,Arial,sans-serif}.van-doc-header__logo .van-doc-header__version{font-size:90%;padding-top:7px;opacity:.7;margin-left:3px;line-height:1}.van-doc-header__bottom{height:50px;line-height:50px}.van-doc-header__bottom-nav{text-align:center}.van-doc-header__bottom-nav li{display:inline-block}.van-doc-header__bottom-nav a{color:#fff;opacity:.8;display:block;padding:0 20px;font-size:14px}.van-doc-header__bottom-nav a.active{background-color:hsla(0,0%,100%,.1)}.van-doc-header__bottom-nav a.active,.van-doc-header__bottom-nav a:hover{opacity:1}',""])},function(t,e,n){var i=n(15);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("71d7b96b",i,!0)},function(t,e,n){(t.exports=n(0)(void 0)).push([t.i,".van-doc-footer{position:relative;background-color:#061a2a}.van-doc-footer ul{text-align:center}.van-doc-footer__item{margin-right:45px;display:inline-block}.van-doc-footer__item a{color:#b3b3b3;display:block;font-size:13px;line-height:72px;-webkit-transition:color .3s ease-in-out;transition:color .3s ease-in-out}.van-doc-footer__item a:hover{color:#fff}.github-corner{position:absolute;top:-50px;right:61px;height:50px;width:40px;overflow:hidden}.github-corner svg{fill:transparent;color:#fff;position:absolute;border:0;right:-29px;opacity:.9;-webkit-transition:.3s;transition:.3s;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.github-corner svg:hover{opacity:1;-webkit-transform:rotate(-45deg) scale(1.15)!important;transform:rotate(-45deg) scale(1.15)!important}.github-corner .octo-arm{-webkit-animation:octocat-wave 3s ease-in-out infinite;animation:octocat-wave 3s ease-in-out infinite}@-webkit-keyframes octocat-wave{0%,to{-webkit-transform:rotate(0);transform:rotate(0)}20%,60%{-webkit-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-webkit-transform:rotate(10deg);transform:rotate(10deg)}}@keyframes octocat-wave{0%,to{-webkit-transform:rotate(0);transform:rotate(0)}20%,60%{-webkit-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-webkit-transform:rotate(10deg);transform:rotate(10deg)}}",""])},function(t,e,n){var i=n(17);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("279782d6",i,!0)},function(t,e,n){(t.exports=n(0)(void 0)).push([t.i,'.van-doc-content{-webkit-box-flex:1;-ms-flex:1;flex:1;position:relative;padding:0 0 75px}.van-doc-content a{color:#0079f3}.van-doc-content section{padding:13px 40px;overflow:hidden}.van-doc-content section>h1,.van-doc-content section>h2,.van-doc-content section>h3,.van-doc-content section>h4,.van-doc-content section>h5,.van-doc-content section>h6{line-height:1.5;font-weight:400;margin:20px 0 10px;color:#333}.van-doc-content section>h1{font-size:36px}.van-doc-content section>h2{font-size:30px;margin-bottom:25px}.van-doc-content section>h3{font-size:22px;margin-top:45px}.van-doc-content section>h2+h3{margin-top:25px}.van-doc-content section>h4{font-size:16px;margin-bottom:15px}.van-doc-content section>h5{font-size:14px}.van-doc-content section>h6{font-size:14px;color:#666}.van-doc-content section>p{margin:15px 0;font-size:14px;line-height:26px;color:#34495e}.van-doc-content section>ol li,.van-doc-content section>ul li{color:#34495e;font-size:14px;line-height:22px;margin:5px 0 5px 10px;padding-left:15px;position:relative}.van-doc-content section>ol li:before,.van-doc-content section>ul li:before{content:"";position:absolute;top:0;left:0;width:6px;height:6px;margin-top:8px;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #666}.van-doc-content section>ol li li,.van-doc-content section>ul li li{margin-left:0}.van-doc-content section>hr{border:0 none;border-top:1px solid #eee}.van-doc-content section li>code,.van-doc-content section p>code,.van-doc-content section table code{margin:2px;padding:2px 7px;display:inline}.van-doc-content blockquote{padding:16px;margin:20px 0;font-size:14px;border-radius:4px;background-color:#ecf9ff;color:rgba(52,73,94,.8);border-left:5px solid #50bfff}.van-doc-content table{width:100%;font-size:13px;line-height:1.5;margin-bottom:45px;background-color:#fff;border-collapse:collapse;color:#34495e}.van-doc-content table th{padding:8px 10px;text-align:left;font-weight:400;background-color:#f1f4f8}.van-doc-content table th:first-child{padding-left:10px}.van-doc-content table td{padding:8px;border-bottom:1px solid #f1f4f8}.van-doc-content table code{font-size:13px;padding:0 8px;font-family:inherit;word-break:keep-all}.van-doc-content--changelog strong{font-size:16px;font-weight:500}.van-doc-content--changelog section{padding-bottom:30px}.van-doc-content--changelog section>h2{margin-top:50px;margin-bottom:10px}.van-doc-content--changelog section>h2+p,.van-doc-content--changelog section>h2+p code{margin:0}.van-doc-content--changelog section>h2 a{color:inherit;font-size:24px;-webkit-font-smoothing:auto}.van-doc-content--changelog section>h2:first-child,.van-doc-content--changelog section>h2:nth-child(2){margin-top:20px}',""])},function(t,e,n){var i=n(19);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("62581546",i,!0)},function(t,e,n){(t.exports=n(0)(void 0)).push([t.i,".van-doc-container{overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff;padding-left:240px}.van-doc-container--with-simulator{padding-right:400px}@media (max-width:1300px){.van-doc-container--with-simulator{padding-right:360px}}",""])},function(t,e,n){var i=n(21);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("f4085a02",i,!0)},function(t,e,n){(t.exports=n(0)(void 0)).push([t.i,".van-doc-simulator{z-index:1;overflow:hidden;position:absolute;border-radius:6px;background:#fafafa;-webkit-box-sizing:border-box;box-sizing:border-box;right:40px;width:360px;min-width:360px;top:100px;-webkit-box-shadow:#ebedf0 0 4px 12px;box-shadow:0 4px 12px #ebedf0}@media (max-width:1300px){.van-doc-simulator{width:320px;min-width:320px}}@media (max-width:1100px){.van-doc-simulator{left:750px;right:auto}}@media (min-width:1440px){.van-doc-simulator{right:50%;margin-right:-680px}}.van-doc-simulator-fixed{position:fixed;top:40px}.van-doc-simulator iframe{width:100%;display:block}",""])},function(t,e,n){var i=n(23);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("4f1c5121",i,!0)},function(t,e,n){(t.exports=n(0)(void 0)).push([t.i,".van-doc-demo-block__title{margin:0;font-weight:400;font-size:14px;color:rgba(69,90,100,.6);padding:35px 15px 15px}.van-doc-demo-block:first-of-type .van-doc-demo-block__title{padding-top:20px}",""])},function(t,e,n){var i=n(25);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("9caa41b0",i,!0)},function(t,e,n){(t.exports=n(0)(void 0)).push([t.i,".van-doc-demo-section{min-height:100vh;padding-bottom:20px;-webkit-box-sizing:border-box;box-sizing:border-box}.van-doc-demo-section__title{margin:0;padding:15px;font-size:16px;line-height:1.5;font-weight:400;text-transform:capitalize}.van-doc-demo-section__title+.van-doc-demo-block .van-doc-demo-block__title{padding-top:0}",""])},function(t,e,n){var i,r;"function"==typeof Symbol&&Symbol.iterator;void 0===(r="function"==typeof(i=function(){var t,e,n={version:"0.2.0"},i=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function r(t,e,n){return t<e?e:t>n?n:t}function o(t){return 100*(-1+t)}n.configure=function(t){var e,n;for(e in t)void 0!==(n=t[e])&&t.hasOwnProperty(e)&&(i[e]=n);return this},n.status=null,n.set=function(t){var e=n.isStarted();t=r(t,i.minimum,1),n.status=1===t?null:t;var c=n.render(!e),l=c.querySelector(i.barSelector),u=i.speed,d=i.easing;return c.offsetWidth,a(function(e){""===i.positionUsing&&(i.positionUsing=n.getPositioningCSS()),s(l,function(t,e,n){var r;return(r="translate3d"===i.positionUsing?{transform:"translate3d("+o(t)+"%,0,0)"}:"translate"===i.positionUsing?{transform:"translate("+o(t)+"%,0)"}:{"margin-left":o(t)+"%"}).transition="all "+e+"ms "+n,r}(t,u,d)),1===t?(s(c,{transition:"none",opacity:1}),c.offsetWidth,setTimeout(function(){s(c,{transition:"all "+u+"ms linear",opacity:0}),setTimeout(function(){n.remove(),e()},u)},u)):setTimeout(e,u)}),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){return n.status||n.set(0),i.trickle&&function t(){setTimeout(function(){n.status&&(n.trickle(),t())},i.trickleSpeed)}(),this},n.done=function(t){return t||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(t){var e=n.status;return e?("number"!=typeof t&&(t=(1-e)*r(Math.random()*e,.1,.95)),e=r(e+t,0,.994),n.set(e)):n.start()},n.trickle=function(){return n.inc(Math.random()*i.trickleRate)},t=0,e=0,n.promise=function(i){return i&&"resolved"!==i.state()?(0===e&&n.start(),t++,e++,i.always(function(){0==--e?(t=0,n.done()):n.set((t-e)/t)}),this):this},n.render=function(t){if(n.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var e=document.createElement("div");e.id="nprogress",e.innerHTML=i.template;var r,a=e.querySelector(i.barSelector),c=t?"-100":o(n.status||0),u=document.querySelector(i.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),i.showSpinner||(r=e.querySelector(i.spinnerSelector))&&h(r),u!=document.body&&l(u,"nprogress-custom-parent"),u.appendChild(e),e},n.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(i.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&h(t)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var a=function(){var t=[];function e(){var n=t.shift();n&&n(e)}return function(n){t.push(n),1==t.length&&e()}}(),s=function(){var t=["Webkit","O","Moz","ms"],e={};function n(n){return n=n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()}),e[n]||(e[n]=function(e){var n=document.body.style;if(e in n)return e;for(var i,r=t.length,o=e.charAt(0).toUpperCase()+e.slice(1);r--;)if((i=t[r]+o)in n)return i;return e}(n))}function i(t,e,i){e=n(e),t.style[e]=i}return function(t,e){var n,r,o=arguments;if(2==o.length)for(n in e)void 0!==(r=e[n])&&e.hasOwnProperty(n)&&i(t,n,r);else i(t,o[1],o[2])}}();function c(t,e){var n="string"==typeof t?t:d(t);return n.indexOf(" "+e+" ")>=0}function l(t,e){var n=d(t),i=n+e;c(n,e)||(t.className=i.substring(1))}function u(t,e){var n,i=d(t);c(t,e)&&(n=i.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))}function d(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function h(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return n})?i.call(e,n,e,t):i)||(t.exports=r)},function(t,e,n){var i=n(28);"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(29)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){(t.exports=n(0)(void 0)).push([t.i,"/* Make clicks pass-through */\n#nprogress {\n pointer-events: none;\n}\n#nprogress .bar {\n background: rgba(52, 152, 219, .7);\n\n position: fixed;\n z-index: 1031;\n top: 0;\n left: 0;\n\n width: 100%;\n height: 2px;\n}\n/* Fancy blur effect */\n#nprogress .peg {\n display: block;\n position: absolute;\n right: 0px;\n width: 100px;\n height: 100%;\n -webkit-box-shadow: 0 0 5px rgba(52, 152, 219, .7), 0 0 2px rgba(52, 152, 219, .7);\n box-shadow: 0 0 5px rgba(52, 152, 219, .7), 0 0 2px rgba(52, 152, 219, .7);\n opacity: 1.0;\n\n -webkit-transform: rotate(3deg) translate(0px, -4px);\n transform: rotate(3deg) translate(0px, -4px);\n}\n/* Remove these to get rid of the spinner */\n#nprogress .spinner {\n display: block;\n position: fixed;\n z-index: 1031;\n top: 15px;\n right: 15px;\n}\n#nprogress .spinner-icon {\n display: none;\n width: 12px;\n height: 12px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n\n border: solid 2px transparent;\n border-top-color: rgba(52, 152, 219, .7);\n border-left-color: rgba(52, 152, 219, .7);\n border-radius: 50%;\n\n -webkit-animation: nprogress-spinner 400ms linear infinite;\n animation: nprogress-spinner 400ms linear infinite;\n}\n.nprogress-custom-parent {\n overflow: hidden;\n position: relative;\n}\n.nprogress-custom-parent #nprogress .spinner, .nprogress-custom-parent #nprogress .bar {\n position: absolute;\n}\n@-webkit-keyframes nprogress-spinner {\n 0% { -webkit-transform: rotate(0deg); }\n 100% { -webkit-transform: rotate(360deg); }\n}\n@keyframes nprogress-spinner {\n 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }\n 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }\n}\n\n",""])},function(t,e,n){var i,r,o={},a=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===r&&(r=i.apply(this,arguments)),r}),s=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var i=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,n);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}}(),c=null,l=0,u=[],d=n(30);function h(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=o[i.id];if(r){r.refs++;for(var a=0;a<r.parts.length;a++)r.parts[a](i.parts[a]);for(;a<i.parts.length;a++)r.parts.push(b(i.parts[a],e))}else{var s=[];for(a=0;a<i.parts.length;a++)s.push(b(i.parts[a],e));o[i.id]={id:i.id,refs:1,parts:s}}}}function f(t,e){for(var n=[],i={},r=0;r<t.length;r++){var o=t[r],a=e.base?o[0]+e.base:o[0],s={css:o[1],media:o[2],sourceMap:o[3]};i[a]?i[a].parts.push(s):n.push(i[a]={id:a,parts:[s]})}return n}function p(t,e){var n=s(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=u[u.length-1];if("top"===t.insertAt)i?i.nextSibling?n.insertBefore(e,i.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),u.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=s(t.insertAt.before,n);n.insertBefore(e,r)}}function v(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=u.indexOf(t);e>=0&&u.splice(e,1)}function m(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){const e=function(){0;return n.nc}();e&&(t.attrs.nonce=e)}return g(e,t.attrs),p(t,e),e}function g(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function b(t,e){var n,i,r,o;if(e.transform&&t.css){if(!(o=e.transform(t.css)))return function(){};t.css=o}if(e.singleton){var a=l++;n=c||(c=m(e)),i=k.bind(null,n,a,!1),r=k.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),p(t,e),e}(e),i=function(t,e,n){var i=n.css,r=n.sourceMap,o=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||o)&&(i=d(i));r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([i],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,e),r=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(e),i=function(t,e){var n=e.css,i=e.media;i&&t.setAttribute("media",i);if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,n),r=function(){v(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=f(t,e);return h(n,e),function(t){for(var i=[],r=0;r<n.length;r++){var a=n[r];(s=o[a.id]).refs--,i.push(s)}t&&h(f(t,e),e);for(r=0;r<i.length;r++){var s;if(0===(s=i[r]).refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete o[s.id]}}}};var y,x=(y=[],function(t,e){return y[t]=e,y.filter(Boolean).join("\n")});function k(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=x(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,i=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var r,o=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?t:(r=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:i+o.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")})}}])},function(t,e,n){"use strict";var i=n(1),r=n(2),o=n.n(r),a=n(0),s=n(3),c=["ref","style","class","attrs","nativeOn","directives","staticClass","staticStyle"],l={nativeOn:"on"};function u(t,e){var n=c.reduce(function(e,n){return t.data[n]&&(e[l[n]||n]=t.data[n]),e},{});return e&&(n.on=n.on||{},Object(i.a)(n.on,t.data.on)),n}function d(t,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var o=t.listeners[e];o&&(Array.isArray(o)?o.forEach(function(t){t.apply(void 0,i)}):o.apply(void 0,i))}function h(t,e){var n=new s.default({el:document.createElement("div"),props:t.props,render:function(n){return n(t,Object(i.a)({props:this.$props},e))}});return document.body.appendChild(n.$el),n}var f={zIndex:2e3,lockCount:0,stack:[],get top(){return this.stack[this.stack.length-1]}},p=10;var v={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,n,i=t.touches[0];this.deltaX=i.clientX-this.startX,this.deltaY=i.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY),this.direction=this.direction||(e=this.offsetX,n=this.offsetY,e>n&&e>p?"horizontal":n>e&&n>p?"vertical":"")},resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0}}},m=!1;if(!a.h)try{var g={};Object.defineProperty(g,"passive",{get:function(){m=!0}}),window.addEventListener("test-passive",null,g)}catch(t){}function b(t,e,n,i){void 0===i&&(i=!1),a.h||t.addEventListener(e,n,!!m&&{capture:!1,passive:i})}function y(t,e,n){a.h||t.removeEventListener(e,n)}function x(t){t.stopPropagation()}function k(t,e){("boolean"!=typeof t.cancelable||t.cancelable)&&t.preventDefault(),e&&x(t)}var w=Object(a.k)("overlay"),C=w[0],S=w[1];function _(t,e,n,r){var a=Object(i.a)({zIndex:e.zIndex},e.customStyle);return t("transition",{attrs:{name:"van-fade"}},[t("div",o()([{directives:[{name:"show",value:e.visible}],style:a,class:[S(),e.className],on:{touchmove:function(t){k(t,!0)}}},u(r,!0)]))])}_.props={zIndex:Number,className:null,visible:Boolean,customStyle:Object};var O,$=C(_),T={className:"",customStyle:{}};function j(){if(f.top){var t=f.top.vm;t.$emit("click-overlay"),t.closeOnClickOverlay&&(t.onClickOverlay?t.onClickOverlay():t.close())}}function A(){if(O||(O=h($,{on:{click:j}})),f.top){var t=f.top,e=t.vm,n=t.config,r=e.$el,o=r&&r.parentNode?r.parentNode:document.body;o&&o.appendChild(O.$el),Object(i.a)(O,T,n,{visible:!0})}else O.visible=!1}function E(t){var e=f.stack;e.length&&(f.top.vm===t?(e.pop(),A()):f.stack=e.filter(function(e){return e.vm!==t}))}function N(t,e){void 0===e&&(e=window);for(var n=t;n&&"HTML"!==n.tagName&&"BODY"!==n.tagName&&1===n.nodeType&&n!==e;){var i=window.getComputedStyle(n).overflowY;if("scroll"===i||"auto"===i)return n;n=n.parentNode}return e}function I(t){return"scrollTop"in t?t.scrollTop:t.pageYOffset}function z(t){return(t===window?0:t.getBoundingClientRect().top)+I(window)}function B(t){return t===window?t.innerHeight:t.getBoundingClientRect().height}var L={mixins:[v],props:{value:Boolean,overlay:Boolean,overlayStyle:Object,overlayClass:String,closeOnClickOverlay:Boolean,zIndex:[String,Number],getContainer:[String,Function],lockScroll:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0}},data:function(){return{inited:this.value}},computed:{shouldRender:function(){return this.inited||!this.lazyRender}},watch:{value:function(t){var e=t?"open":"close";this.inited=this.inited||this.value,this[e](),this.$emit(e)},getContainer:function(){this.move()},overlay:function(){this.renderOverlay()}},mounted:function(){this.getContainer&&this.move(),this.value&&this.open()},activated:function(){this.value&&this.open()},beforeDestroy:function(){this.close(),this.getContainer&&this.$parent&&this.$parent.$el&&this.$parent.$el.appendChild(this.$el)},deactivated:function(){this.close()},methods:{open:function(){this.$isServer||this.opened||(void 0!==this.zIndex&&(f.zIndex=this.zIndex),this.opened=!0,this.renderOverlay(),this.lockScroll&&(b(document,"touchstart",this.touchStart),b(document,"touchmove",this.onTouchMove),f.lockCount||document.body.classList.add("van-overflow-hidden"),f.lockCount++))},close:function(){this.opened&&(this.lockScroll&&(f.lockCount--,y(document,"touchstart",this.touchStart),y(document,"touchmove",this.onTouchMove),f.lockCount||document.body.classList.remove("van-overflow-hidden")),this.opened=!1,E(this),this.$emit("input",!1))},move:function(){var t,e=this.getContainer;e?t="string"==typeof e?document.querySelector(e):e():this.$parent&&(t=this.$parent.$el),t&&t!==this.$el.parentNode&&t.appendChild(this.$el),this.overlay&&A()},onTouchMove:function(t){this.touchMove(t);var e=this.deltaY>0?"10":"01",n=N(t.target,this.$el),i=n.scrollHeight,r=n.offsetHeight,o=n.scrollTop,a="11";0===o?a=r>=i?"00":"01":o+r>=i&&(a="10"),"11"===a||"vertical"!==this.direction||parseInt(a,2)&parseInt(e,2)||k(t,!0)},renderOverlay:function(){var t,e;!this.$isServer&&this.value&&(this.overlay?(t=this,e={zIndex:f.zIndex++,className:this.overlayClass,customStyle:this.overlayStyle},f.stack.some(function(e){return e.vm===t})||(f.stack.push({vm:t,config:e}),A())):E(this),this.updateZIndex())},updateZIndex:function(){var t=this;this.$nextTick(function(){t.$el.style.zIndex=f.zIndex++})}}},D=Object(a.k)("info"),M=D[0],P=D[1];function F(t,e,n,i){if(Object(a.d)(e.info)&&""!==e.info)return t("div",o()([{class:P()},u(i,!0)]),[e.info])}F.props={info:[String,Number]};var R=M(F),U=Object(a.k)("icon")[0];function V(t,e,n,i){var r,a=!!(r=e.name)&&-1!==r.indexOf("/");return t(e.tag,o()([{class:[e.classPrefix,a?"van-icon--image":e.classPrefix+"-"+e.name],style:{color:e.color,fontSize:e.size}},u(i,!0)]),[n.default&&n.default(),a&&t("img",{attrs:{src:e.name}}),t(R,{attrs:{info:e.info}})])}V.props={name:String,size:String,color:String,info:[String,Number],tag:{type:String,default:"i"},classPrefix:{type:String,default:"van-icon"}};var H=U(V),q=Object(a.k)("loading"),W=q[0],Y=q[1],X="#c9c9c9";function K(t,e,n,i){var r=e.color,a=e.size,s=e.type,c="white"===r||"black"===r?r:"",l={color:"black"===r?X:r,width:a,height:a},d=[];if("spinner"===s)for(var h=0;h<12;h++)d.push(t("i"));var f="circular"===s&&t("svg",{class:Y("circular"),attrs:{viewBox:"25 25 50 50"}},[t("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]);return t("div",o()([{class:Y([s,c]),style:l},u(i,!0)]),[t("span",{class:Y("spinner",s)},[d,f])])}K.props={size:String,type:{type:String,default:"circular"},color:{type:String,default:X}};var Q=W(K),G=Object(a.k)("popup"),J=G[0],Z=G[1],tt=J({mixins:[L],props:{position:String,transition:String,overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},render:function(t){var e,n=this;if(this.shouldRender){var i=this.position,r=function(t){return function(){return n.$emit(t)}};return t("transition",{attrs:{name:this.transition||(i?"van-popup-slide-"+i:"van-fade")},on:{afterEnter:r("opened"),afterLeave:r("closed")}},[t("div",{directives:[{name:"show",value:this.value}],class:Z((e={},e[i]=i,e))},[this.slots()])])}}}),et=Object(a.k)("actionsheet"),nt=et[0],it=et[1];function rt(t,e,n,i){var r=e.title,a=e.cancelText,s=function(){d(i,"input",!1),d(i,"cancel")};return t(tt,o()([{class:it({"safe-area-inset-bottom":e.safeAreaInsetBottom}),attrs:{value:e.value,position:"bottom",overlay:e.overlay,lazyRender:e.lazyRender,getContainer:e.getContainer,closeOnClickOverlay:e.closeOnClickOverlay},on:{input:function(t){d(i,"input",t)}}},u(i)]),[r?t("div",{class:[it("header"),"van-hairline--top-bottom"]},[r,t(H,{attrs:{name:"close"},class:it("close"),on:{click:s}})]):e.actions.map(function(e,n){return t("div",{class:[it("item",{disabled:e.disabled||e.loading}),e.className,"van-hairline--top"],on:{click:function(t){t.stopPropagation(),e.disabled||e.loading||(e.callback&&e.callback(e),d(i,"select",e,n))}}},[e.loading?t(Q,{class:it("loading"),attrs:{size:"20px"}}):[t("span",{class:it("name")},[e.name]),e.subname&&t("span",{class:it("subname")},[e.subname])]])}),n.default&&t("div",{class:it("content")},[n.default()]),a&&t("div",{class:it("cancel"),on:{click:s}},[a])])}rt.props=Object(i.a)({},L.props,{title:String,actions:Array,cancelText:String,safeAreaInsetBottom:Boolean,overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}});var ot=nt(rt);function at(t){return t=t.replace(/[^-|\d]/g,""),/^((\+86)|(86))?(1)\d{10}$/.test(t)||/^0[0-9-]{10,13}$/.test(t)}var st=n(19);function ct(t){return Array.isArray(t)?t.map(function(t){return ct(t)}):"object"==typeof t?Object(st.a)({},t):t}var lt={title:String,loading:Boolean,showToolbar:Boolean,cancelButtonText:String,confirmButtonText:String,visibleItemCount:{type:Number,default:5},itemHeight:{type:Number,default:44}},ut=Object(a.k)("picker-column"),dt=ut[0],ht=ut[1],ft=dt({props:{valueKey:String,className:String,itemHeight:Number,defaultIndex:Number,initialOptions:Array,visibleItemCount:Number},data:function(){return{startY:0,offset:0,duration:0,startOffset:0,options:ct(this.initialOptions),currentIndex:this.defaultIndex}},created:function(){this.$parent.children&&this.$parent.children.push(this),this.setIndex(this.currentIndex)},destroyed:function(){var t=this.$parent.children;t&&t.splice(t.indexOf(this),1)},watch:{defaultIndex:function(){this.setIndex(this.defaultIndex)}},computed:{count:function(){return this.options.length}},methods:{onTouchStart:function(t){this.startY=t.touches[0].clientY,this.startOffset=this.offset,this.duration=0},onTouchMove:function(t){k(t);var e=t.touches[0].clientY-this.startY;this.offset=Object(a.j)(this.startOffset+e,-this.count*this.itemHeight,this.itemHeight)},onTouchEnd:function(){if(this.offset!==this.startOffset){this.duration=200;var t=Object(a.j)(Math.round(-this.offset/this.itemHeight),0,this.count-1);this.setIndex(t,!0)}},adjustIndex:function(t){for(var e=t=Object(a.j)(t,0,this.count);e<this.count;e++)if(!this.isDisabled(this.options[e]))return e;for(var n=t-1;n>=0;n--)if(!this.isDisabled(this.options[n]))return n},isDisabled:function(t){return Object(a.g)(t)&&t.disabled},getOptionText:function(t){return Object(a.g)(t)&&this.valueKey in t?t[this.valueKey]:t},setIndex:function(t,e){t=this.adjustIndex(t)||0,this.offset=-t*this.itemHeight,t!==this.currentIndex&&(this.currentIndex=t,e&&this.$emit("change",t))},setValue:function(t){for(var e=this.options,n=0;n<e.length;n++)if(this.getOptionText(e[n])===t)return this.setIndex(n)},getValue:function(){return this.options[this.currentIndex]}},render:function(t){var e=this,n=this.itemHeight,i=this.visibleItemCount,r={height:n*i+"px"},o=n*(i-1)/2,a={transition:this.duration+"ms",transform:"translate3d(0, "+(this.offset+o)+"px, 0)",lineHeight:n+"px"},s={height:n+"px"};return t("div",{style:r,class:[ht(),this.className],on:{touchstart:this.onTouchStart,touchmove:this.onTouchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[t("ul",{style:a},[this.options.map(function(n,i){return t("li",{style:s,class:["van-ellipsis",ht("item",{disabled:e.isDisabled(n),selected:i===e.currentIndex})],domProps:{innerHTML:e.getOptionText(n)},on:{click:function(){e.setIndex(i,!0)}}})})])])}}),pt=Object(a.k)("picker"),vt=pt[0],mt=pt[1],gt=pt[2],bt=vt({props:Object(i.a)({},lt,{columns:Array,defaultIndex:{type:Number,default:0},valueKey:{type:String,default:"text"}}),data:function(){return{children:[]}},computed:{simple:function(){return this.columns.length&&!this.columns[0].values}},watch:{columns:function(){this.setColumns()}},methods:{setColumns:function(){var t=this;(this.simple?[{values:this.columns}]:this.columns).forEach(function(e,n){t.setColumnValues(n,ct(e.values))})},emit:function(t){this.simple?this.$emit(t,this.getColumnValue(0),this.getColumnIndex(0)):this.$emit(t,this.getValues(),this.getIndexes())},onChange:function(t){this.simple?this.$emit("change",this,this.getColumnValue(0),this.getColumnIndex(0)):this.$emit("change",this,this.getValues(),t)},getColumn:function(t){return this.children[t]},getColumnValue:function(t){var e=this.getColumn(t);return e&&e.getValue()},setColumnValue:function(t,e){var n=this.getColumn(t);n&&n.setValue(e)},getColumnIndex:function(t){return(this.getColumn(t)||{}).currentIndex},setColumnIndex:function(t,e){var n=this.getColumn(t);n&&n.setIndex(e)},getColumnValues:function(t){return(this.children[t]||{}).options},setColumnValues:function(t,e){var n=this.children[t];n&&JSON.stringify(n.options)!==JSON.stringify(e)&&(n.options=e,n.setIndex(0))},getValues:function(){return this.children.map(function(t){return t.getValue()})},setValues:function(t){var e=this;t.forEach(function(t,n){e.setColumnValue(n,t)})},getIndexes:function(){return this.children.map(function(t){return t.currentIndex})},setIndexes:function(t){var e=this;t.forEach(function(t,n){e.setColumnIndex(n,t)})},onConfirm:function(){this.emit("confirm")},onCancel:function(){this.emit("cancel")}},render:function(t){var e=this,n=this.itemHeight,i=this.simple?[this.columns]:this.columns,r={height:n+"px"},o={height:n*this.visibleItemCount+"px"},a=this.showToolbar&&t("div",{class:["van-hairline--top-bottom",mt("toolbar")]},[this.slots()||[t("div",{class:mt("cancel"),on:{click:this.onCancel}},[this.cancelButtonText||gt("cancel")]),this.slots("title")||this.title&&t("div",{class:["van-ellipsis",mt("title")]},[this.title]),t("div",{class:mt("confirm"),on:{click:this.onConfirm}},[this.confirmButtonText||gt("confirm")])]]);return t("div",{class:mt()},[a,this.loading?t("div",{class:mt("loading")},[t(Q)]):t(),t("div",{class:mt("columns"),style:o,on:{touchmove:k}},[i.map(function(n,i){return t(ft,{attrs:{valueKey:e.valueKey,className:n.className,itemHeight:e.itemHeight,defaultIndex:n.defaultIndex||e.defaultIndex,visibleItemCount:e.visibleItemCount,initialOptions:e.simple?n:n.values},on:{change:function(){e.onChange(i)}}})}),t("div",{class:["van-hairline--top-bottom",mt("frame")],style:r})])])}}),yt=Object(a.k)("area"),xt=yt[0],kt=yt[1],wt=xt({props:Object(i.a)({},lt,{value:String,areaList:{type:Object,default:function(){return{}}},columnsNum:{type:[String,Number],default:3},columnsPlaceholder:{type:Array,default:function(){return[]}}}),data:function(){return{code:this.value,columns:[{values:[]},{values:[]},{values:[]}]}},computed:{province:function(){return this.areaList.province_list||{}},city:function(){return this.areaList.city_list||{}},county:function(){return this.areaList.county_list||{}},displayColumns:function(){return this.columns.slice(0,+this.columnsNum)},typeToColumnsPlaceholder:function(){return{province:this.columnsPlaceholder[0]||"",city:this.columnsPlaceholder[1]||"",county:this.columnsPlaceholder[2]||""}}},watch:{value:function(){this.code=this.value,this.setValues()},areaList:{deep:!0,handler:function(){this.setValues()}},columnsNum:function(){var t=this;this.$nextTick(function(){t.setValues()})}},mounted:function(){this.setValues()},methods:{getList:function(t,e){var n=[];if("province"!==t&&!e)return n;var i=this[t];if(n=Object.keys(i).map(function(t){return{code:t,name:i[t]}}),e&&("9"===e[0]&&"city"===t&&(e="9"),n=n.filter(function(t){return 0===t.code.indexOf(e)})),this.typeToColumnsPlaceholder[t]&&n.length){var r="province"===t?"":"city"===t?"000000".slice(2,4):"000000".slice(4,6);n.unshift({code:""+e+r,name:this.typeToColumnsPlaceholder[t]})}return n},getIndex:function(t,e){var n="province"===t?2:"city"===t?4:6,i=this.getList(t,e.slice(0,n-2));"9"===e[0]&&"province"===t&&(n=1),e=e.slice(0,n);for(var r=0;r<i.length;r++)if(i[r].code.slice(0,n)===e)return r;return 0},parseOutputValues:function(t){var e=this;return t.map(function(t,n){return void 0===t&&(t={}),(t=JSON.parse(JSON.stringify(t))).code&&t.name!==e.columnsPlaceholder[n]||(t.code="",t.name=""),t})},onChange:function(t,e,n){this.code=e[n].code,this.setValues();var i=t.getValues();i=this.parseOutputValues(i),this.$emit("change",t,i,n)},onConfirm:function(t,e){t=this.parseOutputValues(t),this.setValues(),this.$emit("confirm",t,e)},setValues:function(){var t=this.code;t||(t=this.columnsPlaceholder.length?"000000":Object.keys(this.county)[0]?Object.keys(this.county)[0]:"");var e=this.$refs.picker,n=this.getList("province"),i=this.getList("city",t.slice(0,2));e&&(e.setColumnValues(0,n),e.setColumnValues(1,i),i.length&&"00"===t.slice(2,4)&&(t=i[0].code),e.setColumnValues(2,this.getList("county",t.slice(0,4))),e.setIndexes([this.getIndex("province",t),this.getIndex("city",t),this.getIndex("county",t)]))},getValues:function(){var t=this.$refs.picker,e=t?t.getValues():[];return e=this.parseOutputValues(e),e.filter(function(t){return!!t})},getArea:function(){var t=this.getValues(),e={code:"",country:"",province:"",city:"",county:""};if(!t.length)return e;var n=t.map(function(t){return t.name}),i=t.filter(function(t){return!!t.code});return e.code=i.length?i[i.length-1].code:"","9"===e.code[0]?(e.country=n[1]||"",e.province=n[2]||""):(e.province=n[0]||"",e.city=n[1]||"",e.county=n[2]||""),e},reset:function(){this.code="",this.setValues()}},render:function(t){var e=Object(i.a)({},this.$listeners,{change:this.onChange,confirm:this.onConfirm});return t(bt,{ref:"picker",class:kt(),attrs:{showToolbar:!0,valueKey:"name",title:this.title,loading:this.loading,columns:this.displayColumns,itemHeight:this.itemHeight,visibleItemCount:this.visibleItemCount,cancelButtonText:this.cancelButtonText,confirmButtonText:this.confirmButtonText},on:Object(i.a)({},e)})}}),Ct={icon:String,size:String,center:Boolean,isLink:Boolean,required:Boolean,titleStyle:null,titleClass:null,valueClass:null,labelClass:null,title:[String,Number],value:[String,Number],label:[String,Number],border:{type:Boolean,default:!0}};function St(t,e){var n=e.to,i=e.url,r=e.replace;n&&t?t[r?"replace":"push"](n):i&&(r?location.replace(i):location.href=i)}function _t(t){St(t.parent&&t.parent.$router,t.props)}var Ot={url:String,replace:Boolean,to:[String,Object]},$t=Object(a.k)("cell"),Tt=$t[0],jt=$t[1];function At(t,e,n,i){var r=e.icon,s=e.size,c=e.title,l=e.label,h=e.value,f=e.isLink,p=e.arrowDirection,v=n.title||Object(a.d)(c),m=n.default||Object(a.d)(h),g=(n.label||Object(a.d)(l))&&t("div",{class:[jt("label"),e.labelClass]},[n.label?n.label():l]),b=v&&t("div",{class:[jt("title"),e.titleClass],style:e.titleStyle},[n.title?n.title():t("span",[c]),g]),y=m&&t("div",{class:[jt("value",{alone:!n.title&&!c}),e.valueClass]},[n.default?n.default():t("span",[h])]),x=n.icon?n.icon():r&&t(H,{class:jt("left-icon"),attrs:{name:r}}),k=n["right-icon"],w=k?k():f&&t(H,{class:jt("right-icon"),attrs:{name:p?"arrow-"+p:"arrow"}}),C={center:e.center,required:e.required,borderless:!e.border,clickable:f||e.clickable};return s&&(C[s]=s),t("div",o()([{class:jt(C),on:{click:function(t){d(i,"click",t),_t(i)}}},u(i)]),[x,b,y,w,n.extra&&n.extra()])}At.props=Object(i.a)({},Ct,Ot,{clickable:Boolean,arrowDirection:String});var Et=Tt(At);function Nt(t){return/^\d+$/.test(t)}var It=Object(a.k)("field"),zt=It[0],Bt=It[1],Lt=zt({inheritAttrs:!1,props:Object(i.a)({},Ct,{error:Boolean,leftIcon:String,rightIcon:String,readonly:Boolean,clearable:Boolean,labelWidth:[String,Number],labelAlign:String,inputAlign:String,onIconClick:Function,autosize:[Boolean,Object],errorMessage:String,errorMessageAlign:String,type:{type:String,default:"text"}}),data:function(){return{focused:!1}},watch:{value:function(){this.$nextTick(this.adjustSize)}},mounted:function(){this.format(),this.$nextTick(this.adjustSize)},computed:{showClear:function(){return this.clearable&&this.focused&&""!==this.value&&Object(a.d)(this.value)&&!this.readonly},listeners:function(){return Object(i.a)({},this.$listeners,{input:this.onInput,keypress:this.onKeypress,focus:this.onFocus,blur:this.onBlur})},labelStyle:function(){var t=this.labelWidth;if(t){var e=Nt(String(t))?t+"px":t;return{maxWidth:e,minWidth:e}}}},methods:{focus:function(){this.$refs.input&&this.$refs.input.focus()},blur:function(){this.$refs.input&&this.$refs.input.blur()},format:function(t){void 0===t&&(t=this.$refs.input);var e=t.value,n=this.$attrs.maxlength;return"number"===this.type&&Object(a.d)(n)&&e.length>n&&(e=e.slice(0,n),t.value=e),e},onInput:function(t){this.$emit("input",this.format(t.target))},onFocus:function(t){this.focused=!0,this.$emit("focus",t),this.readonly&&this.blur()},onBlur:function(t){this.focused=!1,this.$emit("blur",t),Object(a.e)()&&window.scrollTo(0,window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0)},onClickLeftIcon:function(){this.$emit("click-left-icon")},onClickRightIcon:function(){this.$emit("click-icon"),this.$emit("click-right-icon"),this.onIconClick&&this.onIconClick()},onClear:function(t){k(t),this.$emit("input",""),this.$emit("clear")},onKeypress:function(t){if("number"===this.type){var e=t.keyCode,n=-1===String(this.value).indexOf(".");e>=48&&e<=57||46===e&&n||45===e||k(t)}"search"===this.type&&13===t.keyCode&&this.blur(),this.$emit("keypress",t)},adjustSize:function(){var t=this.$refs.input;if("textarea"===this.type&&this.autosize&&t){t.style.height="auto";var e=t.scrollHeight;if(Object(a.g)(this.autosize)){var n=this.autosize,i=n.maxHeight,r=n.minHeight;i&&(e=Math.min(e,i)),r&&(e=Math.max(e,r))}e&&(t.style.height=e+"px")}},renderInput:function(){var t=this.$createElement,e={ref:"input",class:Bt("control",this.inputAlign),domProps:{value:this.value},attrs:Object(i.a)({},this.$attrs,{readonly:this.readonly}),on:this.listeners};return"textarea"===this.type?t("textarea",o()([{},e])):t("input",o()([{attrs:{type:this.type}},e]))},renderLeftIcon:function(){var t=this.$createElement;if(this.slots("left-icon")||this.leftIcon)return t("div",{class:Bt("left-icon"),on:{click:this.onClickLeftIcon}},[this.slots("left-icon")||t(H,{attrs:{name:this.leftIcon}})])},renderRightIcon:function(){var t=this.$createElement,e=this.slots;if(e("right-icon")||e("icon")||this.rightIcon||this.icon)return t("div",{class:Bt("right-icon"),on:{click:this.onClickRightIcon}},[e("right-icon")||e("icon")||t(H,{attrs:{name:this.rightIcon||this.icon}})])}},render:function(t){var e,n=this.slots,i=this.labelAlign,r={icon:this.renderLeftIcon};return n("label")&&(r.title=function(){return n("label")}),t(Et,{attrs:{icon:this.leftIcon,size:this.size,title:this.label,center:this.center,border:this.border,isLink:this.isLink,required:this.required,titleStyle:this.labelStyle,titleClass:Bt("label",i)},class:Bt((e={error:this.error,disabled:this.$attrs.disabled},e["label-"+i]=i,e["min-height"]="textarea"===this.type&&!this.autosize,e)),scopedSlots:r},[t("div",{class:Bt("body")},[this.renderInput(),this.showClear&&t(H,{attrs:{name:"clear"},class:Bt("clear"),on:{touchstart:this.onClear}}),this.renderRightIcon(),n("button")&&t("div",{class:Bt("button")},[n("button")])]),this.errorMessage&&t("div",{class:Bt("error-message",this.errorMessageAlign)},[this.errorMessage])])}}),Dt=Object(a.k)("toast"),Mt=Dt[0],Pt=Dt[1],Ft=["success","fail","loading"],Rt=Mt({mixins:[L],props:{className:null,forbidClick:Boolean,message:[String,Number],type:{type:String,default:"text"},loadingType:{type:String,default:"circular"},position:{type:String,default:"middle"},lockScroll:{type:Boolean,default:!1}},data:function(){return{clickable:!1}},mounted:function(){this.toggleClickale()},destroyed:function(){this.toggleClickale()},watch:{value:function(){this.toggleClickale()},forbidClick:function(){this.toggleClickale()}},methods:{toggleClickale:function(){var t=this.value&&this.forbidClick;if(this.clickable!==t){this.clickable=t;var e=t?"add":"remove";document.body.classList[e]("van-toast--unclickable")}}},render:function(t){var e=this,n=this.type,i=this.message,r=-1!==Ft.indexOf(n)?"default":n;return t("transition",{attrs:{name:"van-fade"}},[t("div",{directives:[{name:"show",value:this.value}],class:[Pt([r,this.position]),this.className]},[function(){switch(r){case"text":return t("div",[i]);case"html":return t("div",{domProps:{innerHTML:i}});default:return["loading"===n?t(Q,{attrs:{color:"white",type:e.loadingType}}):t(H,{class:Pt("icon"),attrs:{name:n}}),Object(a.d)(i)&&t("div",{class:Pt("text")},[i])]}}()])])}}),Ut={type:"text",mask:!1,value:!0,message:"",className:"",onClose:null,duration:3e3,position:"middle",forbidClick:!1,loadingType:"circular",getContainer:"body",overlayStyle:null},Vt=function(t){return Object(a.g)(t)?t:{message:t}},Ht=[],qt=!1,Wt=Object(i.a)({},Ut);function Yt(t){void 0===t&&(t={});var e=function(){if(a.h)return{};if(!Ht.length||qt){var t=new(s.default.extend(Rt))({el:document.createElement("div")});Ht.push(t)}return Ht[Ht.length-1]}();return e.value&&e.updateZIndex(),t=Object(i.a)({},Wt,Vt(t),{clear:function(){if(e.value=!1,t.onClose&&t.onClose(),qt&&!a.h){clearTimeout(e.timer),Ht=Ht.filter(function(t){return t!==e});var n=e.$el.parentNode;n&&n.removeChild(e.$el),e.$destroy()}}}),Object(i.a)(e,function(t){return t.overlay=t.mask,t}(t)),clearTimeout(e.timer),t.duration>0&&(e.timer=setTimeout(function(){e.clear()},t.duration)),e}["loading","success","fail"].forEach(function(t){var e;Yt[t]=(e=t,function(t){return Yt(Object(i.a)({type:e},Vt(t)))})}),Yt.clear=function(t){Ht.length&&(t?(Ht.forEach(function(t){t.clear()}),Ht=[]):qt?Ht.shift().clear():Ht[0].clear())},Yt.setDefaultOptions=function(t){Object(i.a)(Wt,t)},Yt.resetDefaultOptions=function(){Wt=Object(i.a)({},Ut)},Yt.allowMultiple=function(t){void 0===t&&(t=!0),qt=t},Yt.install=function(){s.default.use(Rt)},s.default.prototype.$toast=Yt;var Xt=Yt,Kt=Object(a.k)("button"),Qt=Kt[0],Gt=Kt[1];function Jt(t,e,n,i){var r=e.tag,a=e.type,s=e.disabled,c=e.loading,l=e.hairline,h=e.loadingText,f=[Gt([a,e.size,{loading:c,disabled:s,hairline:l,block:e.block,plain:e.plain,round:e.round,square:e.square,"bottom-action":e.bottomAction}]),{"van-hairline--surround":l}];return t(r,o()([{class:f,attrs:{type:e.nativeType,disabled:s},on:{click:function(t){c||s||(d(i,"click",t),_t(i))},touchstart:function(t){d(i,"touchstart",t)}}},u(i)]),[c?[t(Q,{attrs:{size:e.loadingSize,color:"default"===a?void 0:""}}),h&&t("span",{class:Gt("loading-text")},[h])]:t("span",{class:Gt("text")},[n.default?n.default():e.text])])}Jt.props=Object(i.a)({},Ot,{text:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,nativeType:String,loadingText:String,bottomAction:Boolean,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"}});var Zt,te=Qt(Jt),ee=Object(a.k)("dialog"),ne=ee[0],ie=ee[1],re=ee[2],oe=ne({mixins:[L],props:{title:String,message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,showConfirmButton:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(t){var e=this;this.$emit(t),this.beforeClose?(this.loading[t]=!0,this.beforeClose(t,function(n){!1!==n&&e.onClose(t),e.loading[t]=!1})):this.onClose(t)},onClose:function(t){this.close(),this.callback&&this.callback(t)}},render:function(t){var e,n=this;if(this.shouldRender){var i=this.title,r=this.message,o=this.messageAlign,a=this.slots(),s=i&&t("div",{class:ie("header",{isolated:!r&&!a})},[i]),c=(a||r)&&t("div",{class:ie("content")},[a||t("div",{domProps:{innerHTML:r},class:ie("message",(e={"has-title":i},e[o]=o,e))})]),l=this.showCancelButton&&this.showConfirmButton,u=t("div",{class:["van-hairline--top",ie("footer",{buttons:l})]},[this.showCancelButton&&t(te,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||re("cancel")},class:ie("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){n.handleAction("cancel")}}}),this.showConfirmButton&&t(te,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||re("confirm")},class:[ie("confirm"),{"van-hairline--left":l}],style:{color:this.confirmButtonColor},on:{click:function(){n.handleAction("confirm")}}})]);return t("transition",{attrs:{name:"van-dialog-bounce"}},[t("div",{directives:[{name:"show",value:this.value}],class:[ie(),this.className]},[s,c,u])])}}});function ae(t){return a.h?Promise.resolve():new Promise(function(e,n){Zt&&Object(a.f)(Zt.$el)||(Zt&&Zt.$destroy(),(Zt=new(s.default.extend(oe))({el:document.createElement("div"),propsData:{lazyRender:!1}})).$on("input",function(t){Zt.value=t})),Object(i.a)(Zt,ae.currentOptions,t,{resolve:e,reject:n})})}ae.defaultOptions={value:!0,title:"",message:"",overlay:!0,className:"",lockScroll:!0,beforeClose:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnClickOverlay:!1,callback:function(t){Zt["confirm"===t?"resolve":"reject"](t)}},ae.alert=ae,ae.confirm=function(t){return ae(Object(i.a)({showCancelButton:!0},t))},ae.close=function(){Zt&&(Zt.value=!1)},ae.setDefaultOptions=function(t){Object(i.a)(ae.currentOptions,t)},ae.resetDefaultOptions=function(){ae.currentOptions=Object(i.a)({},ae.defaultOptions)},ae.resetDefaultOptions(),ae.install=function(){s.default.use(oe)},s.default.prototype.$dialog=ae;var se=ae,ce=Object(a.k)("address-edit-detail"),le=ce[0],ue=ce[1],de=ce[2],he=Object(a.c)(),fe=le({props:{value:String,error:Boolean,focused:Boolean,detailRows:Number,searchResult:Array,showSearchResult:Boolean},methods:{onSelect:function(t){this.$emit("select-search",t),this.$emit("input",((t.address||"")+" "+(t.name||"")).trim())},onFinish:function(){this.$refs.field.blur()},renderFinish:function(){var t=this.$createElement;if(this.value&&this.focused&&he)return t("div",{class:ue("finish"),on:{click:this.onFinish}},[de("complete")])},renderSearchResult:function(){var t=this,e=this.$createElement,n=this.searchResult;if(this.focused&&n&&this.showSearchResult)return n.map(function(n){return e(Et,{key:n.name+n.address,attrs:{title:n.name,label:n.address,icon:"location-o",clickable:!0},on:{click:function(){t.onSelect(n)}}})})}},render:function(t){return t(Et,{class:ue()},[t(Lt,{attrs:{autosize:!0,rows:this.detailRows,clearable:!he,type:"textarea",maxlength:"200",value:this.value,error:this.error,label:de("label"),placeholder:de("placeholder")},ref:"field",scopedSlots:{icon:this.renderFinish},on:Object(i.a)({},this.$listeners)}),this.renderSearchResult()])}}),pe={value:null,loading:Boolean,disabled:Boolean,activeColor:String,inactiveColor:String,activeValue:{type:null,default:!0},inactiveValue:{type:null,default:!1},size:{type:String,default:"30px"}},ve=Object(a.k)("switch"),me=ve[0],ge=ve[1];function be(t,e,n,i){var r=e.value,a=e.loading,s=e.disabled,c=e.activeValue,l=e.inactiveValue,h=r===c,f={fontSize:e.size,backgroundColor:h?e.activeColor:e.inactiveColor};return t("div",o()([{class:ge({on:h,disabled:s}),style:f,on:{click:function(){if(!s&&!a){var t=h?l:c;d(i,"input",t),d(i,"change",t)}}}},u(i)]),[t("div",{class:ge("node")},[a&&t(Q,{class:ge("loading")})])])}be.props=pe;var ye=me(be),xe=Object(a.k)("switch-cell"),ke=xe[0],we=xe[1];function Ce(t,e,n,r){return t(Et,o()([{attrs:{center:!0,title:e.title,border:e.border},class:we()},u(r)]),[t(ye,{props:Object(i.a)({},e),on:Object(i.a)({},r.listeners)})])}Ce.props=Object(i.a)({},pe,{title:String,border:Boolean,size:{type:String,default:"24px"}});var Se=ke(Ce),_e=Object(a.k)("address-edit"),Oe=_e[0],$e=_e[1],Te=_e[2],je={name:"",tel:"",country:"",province:"",city:"",county:"",areaCode:"",postalCode:"",addressDetail:"",isDefault:!1},Ae=Oe({props:{areaList:Object,isSaving:Boolean,isDeleting:Boolean,validator:Function,showDelete:Boolean,showPostal:Boolean,searchResult:Array,showSetDefault:Boolean,showSearchResult:Boolean,saveButtonText:String,deleteButtonText:String,showArea:{type:Boolean,default:!0},showDetail:{type:Boolean,default:!0},detailRows:{type:Number,default:1},addressInfo:{type:Object,default:function(){return Object(i.a)({},je)}},telValidator:{type:Function,default:at},areaColumnsPlaceholder:{type:Array,default:function(){return[]}}},data:function(){return{data:{},showAreaPopup:!1,detailFocused:!1,errorInfo:{tel:!1,name:!1,postalCode:!1,addressDetail:!1}}},computed:{areaListLoaded:function(){return Object(a.g)(this.areaList)&&Object.keys(this.areaList).length},areaText:function(){var t=this.data,e=t.country,n=t.province,i=t.city,r=t.county;if(t.areaCode){var o=[e,n,i,r];return n&&n===i&&o.splice(1,1),o.filter(function(t){return t}).join("/")}return""}},watch:{addressInfo:{handler:function(t){this.data=Object(i.a)({},je,t),this.setAreaCode(t.areaCode)},deep:!0,immediate:!0},areaList:function(){this.setAreaCode(this.data.areaCode)}},methods:{onFocus:function(t){this.errorInfo[t]=!1,this.detailFocused="addressDetail"===t,this.$emit("focus",t)},onChangeDetail:function(t){this.data.addressDetail=t,this.$emit("change-detail",t)},onAreaConfirm:function(t){t.some(function(t){return!t.code})?Xt(Te("areaEmpty")):(this.showAreaPopup=!1,this.assignAreaValues(),this.$emit("change-area",t))},assignAreaValues:function(){var t=this.$refs.area;if(t){var e=t.getArea();e.areaCode=e.code,delete e.code,Object(i.a)(this.data,e)}},onSave:function(){var t=this,e=["name","tel","areaCode","addressDetail"];this.showPostal&&e.push("postalCode"),e.every(function(e){var n=t.getErrorMessage(e);return n&&(t.errorInfo[e]=!0,Xt(n)),!n})&&!this.isSaving&&this.$emit("save",this.data)},getErrorMessage:function(t){var e=String(this.data[t]||"").trim();if(this.validator){var n=this.validator(t,e);if(n)return n}switch(t){case"name":return e?"":Te("nameEmpty");case"tel":return this.telValidator(e)?"":Te("telInvalid");case"areaCode":return e?"":Te("areaEmpty");case"addressDetail":return e?"":Te("addressEmpty");case"postalCode":return e&&!/^\d{6}$/.test(e)?Te("postalEmpty"):""}},onDelete:function(){var t=this;se.confirm({title:Te("confirmDelete")}).then(function(){t.$emit("delete",t.data)}).catch(function(){t.$emit("cancel-delete",t.data)})},getArea:function(){return this.$refs.area?this.$refs.area.getValues():[]},setAreaCode:function(t){this.data.areaCode=t||"",t&&this.$nextTick(this.assignAreaValues)},setAddressDetail:function(t){this.data.addressDetail=t},onDetailBlur:function(){var t=this;setTimeout(function(){t.detailFocused=!1})}},render:function(t){var e=this,n=this.data,i=this.errorInfo,r=function(t){return function(){return e.onFocus(t)}},o=this.searchResult.length&&this.detailFocused;return t("div",{class:$e()},[t(Lt,{attrs:{clearable:!0,label:Te("name"),placeholder:Te("namePlaceholder"),error:i.name},on:{focus:r("name")},model:{value:n.name,callback:function(t){n.name=t}}}),t(Lt,{attrs:{clearable:!0,type:"tel",label:Te("tel"),placeholder:Te("telPlaceholder"),error:i.tel},on:{focus:r("tel")},model:{value:n.tel,callback:function(t){n.tel=t}}}),t(Lt,{directives:[{name:"show",value:this.showArea}],attrs:{readonly:!0,label:Te("area"),placeholder:Te("areaPlaceholder"),value:this.areaText},on:{click:function(){e.showAreaPopup=!0}}}),t(fe,{directives:[{name:"show",value:this.showDetail}],attrs:{focused:this.detailFocused,value:n.addressDetail,error:i.addressDetail,detailRows:this.detailRows,searchResult:this.searchResult,showSearchResult:this.showSearchResult},on:{focus:r("addressDetail"),blur:this.onDetailBlur,input:this.onChangeDetail,"select-search":function(t){e.$emit("select-search",t)}}}),this.showPostal&&t(Lt,{directives:[{name:"show",value:!o}],attrs:{type:"tel",maxlength:"6",label:Te("postal"),placeholder:Te("postal"),error:i.postalCode},on:{focus:r("postalCode")},model:{value:n.postalCode,callback:function(t){n.postalCode=t}}}),this.slots(),this.showSetDefault&&t(Se,{directives:[{name:"show",value:!o}],attrs:{title:Te("defaultAddress")},on:{change:function(t){e.$emit("change-default",t)}},model:{value:n.isDefault,callback:function(t){n.isDefault=t}}}),t("div",{directives:[{name:"show",value:!o}],class:$e("buttons")},[t(te,{attrs:{block:!0,loading:this.isSaving,type:"danger",text:this.saveButtonText||Te("save")},on:{click:this.onSave}}),this.showDelete&&t(te,{attrs:{block:!0,loading:this.isDeleting,text:this.deleteButtonText||Te("delete")},on:{click:this.onDelete}})]),t(tt,{attrs:{position:"bottom",lazyRender:!1,getContainer:"body"},model:{value:e.showAreaPopup,callback:function(t){e.showAreaPopup=t}}},[t(wt,{ref:"area",attrs:{loading:!this.areaListLoaded,value:n.areaCode,areaList:this.areaList,columnsPlaceholder:this.areaColumnsPlaceholder},on:{confirm:this.onAreaConfirm,cancel:function(){e.showAreaPopup=!1}}})])])}}),Ee=Object(a.k)("radio-group"),Ne=Ee[0],Ie=Ee[1],ze=Ne({props:{value:null,disabled:Boolean},watch:{value:function(t){this.$emit("change",t)}},render:function(t){return t("div",{class:Ie()},[this.slots()])}}),Be={data:function(){return{parent:null}},methods:{findParent:function(t){for(var e=this.$parent;e;){if(e.$options.name===t){this.parent=e;break}e=e.$parent}}}},Le=function(t,e){return{mixins:[Be],props:{name:null,value:null,disabled:Boolean,checkedColor:String,labelPosition:String,labelDisabled:Boolean,shape:{type:String,default:"round"},bindGroup:{type:Boolean,default:!0}},created:function(){this.bindGroup&&this.findParent(t)},computed:{isDisabled:function(){return this.parent&&this.parent.disabled||this.disabled},iconStyle:function(){var t=this.checkedColor;if(t&&this.checked&&!this.isDisabled)return{borderColor:t,backgroundColor:t}}},render:function(){var t=this,n=arguments[0],i=this.slots,r=this.checked,o=i("icon",{checked:r})||n(H,{attrs:{name:"success"},style:this.iconStyle}),a=i()&&n("span",{class:e("label",[this.labelPosition,{disabled:this.isDisabled}]),on:{click:this.onClickLabel}},[i()]);return n("div",{class:e(),on:{click:function(e){t.$emit("click",e)}}},[n("div",{class:e("icon",[this.shape,{disabled:this.isDisabled,checked:r}]),on:{click:this.onClickIcon}},[o]),a])}}},De=Object(a.k)("radio"),Me=(0,De[0])({mixins:[Le("van-radio-group",De[1])],computed:{currentValue:{get:function(){return this.parent?this.parent.value:this.value},set:function(t){(this.parent||this).$emit("input",t)}},checked:function(){return this.currentValue===this.name}},methods:{onClickIcon:function(){this.isDisabled||(this.currentValue=this.name)},onClickLabel:function(){this.isDisabled||this.labelDisabled||(this.currentValue=this.name)}}}),Pe=Object(a.k)("address-item"),Fe=Pe[0],Re=Pe[1];function Ue(t,e,n,i){var r=e.disabled,a=e.switchable;return t(Et,o()([{class:Re({disabled:r,unswitchable:!a}),attrs:{valueClass:Re("value"),clickable:a&&!r},scopedSlots:{default:function(){var n=e.data,i=[t("div",{class:Re("name")},[n.name+","+n.tel]),t("div",{class:Re("address")},[n.address])];return a&&!r?t(Me,{attrs:{name:n.id}},[i]):i},"right-icon":function(){return t(H,{attrs:{name:"edit"},class:Re("edit"),on:{click:function(t){t.stopPropagation(),d(i,"edit")}}})}},on:{click:function(){a&&d(i,"select")}}},u(i)]))}Ue.props={data:Object,disabled:Boolean,switchable:Boolean};var Ve=Fe(Ue),He=Object(a.k)("address-list"),qe=He[0],We=He[1],Ye=He[2];function Xe(t,e,n,i){var r=function(n,r){return n.map(function(n,o){return t(Ve,{attrs:{data:n,disabled:r,switchable:e.switchable},key:n.id,on:{select:function(){d(i,r?"select-disabled":"select",n,o)},edit:function(){d(i,r?"edit-disabled":"edit",n,o)}}})})},a=r(e.list),s=r(e.disabledList,!0);return t("div",o()([{class:We()},u(i)]),[n.top&&n.top(),t(ze,{attrs:{value:e.value},on:{input:function(t){d(i,"input",t)}}},[a]),e.disabledText&&t("div",{class:We("disabled-text")},[e.disabledText]),s,n.default&&n.default(),t(te,{attrs:{square:!0,size:"large",type:"danger",text:e.addButtonText||Ye("add")},class:We("add"),on:{click:function(){d(i,"add")}}})])}Xe.props={list:Array,disabledList:Array,disabledText:String,addButtonText:String,value:[String,Number],switchable:{type:Boolean,default:!0}};var Ke=qe(Xe),Qe=Object(a.k)("badge"),Ge=Qe[0],Je=Qe[1],Ze=Ge({props:{url:String,info:[String,Number],title:String},inject:["vanBadgeGroup"],created:function(){this.parent.badges.push(this)},beforeDestroy:function(){var t=this;this.parent.badges=this.parent.badges.filter(function(e){return e!==t})},computed:{parent:function(){return this.vanBadgeGroup},select:function(){return this.parent.badges.indexOf(this)===+this.parent.activeKey}},methods:{onClick:function(){var t=this.parent.badges.indexOf(this);this.$emit("click",t),this.parent.$emit("change",t)}},render:function(t){return t("a",{attrs:{href:this.url},class:[Je({select:this.select}),"van-hairline"],on:{click:this.onClick}},[t("div",{class:Je("text")},[this.title,t(R,{attrs:{info:this.info},class:Je("info")})])])}}),tn=Object(a.k)("badge-group"),en=tn[0],nn=tn[1],rn=en({props:{activeKey:{type:[Number,String],default:0}},provide:function(){return{vanBadgeGroup:this}},data:function(){return{badges:[]}},render:function(t){return t("div",{class:[nn(),"van-hairline--top-bottom"]},[this.slots()])}}),on=n(4),an=Object(a.k)("tag"),sn=an[0],cn=an[1],ln={danger:on.d,primary:on.a,success:on.c};function un(t,e,n,i){var r,a=e.type,s=e.mark,c=e.plain,l=e.round,d=e.size,h=e.color||a&&ln[a]||on.b,f=((r={})[c?"color":"backgroundColor"]=h,r);e.textColor&&(f.color=e.textColor);var p={mark:s,plain:c,round:l};return d&&(p[d]=d),t("span",o()([{style:f,class:[cn(p),{"van-hairline--surround":c}]},u(i,!0)]),[n.default&&n.default()])}un.props={size:String,type:String,mark:Boolean,color:String,plain:Boolean,round:Boolean,textColor:String};var dn=sn(un),hn=Object(a.k)("card"),fn=hn[0],pn=hn[1];function vn(t,e,n,i){var r=e.thumb,s=n.thumb||r,c=n.tag||e.tag,l=n.num||Object(a.d)(e.num),h=n.price||Object(a.d)(e.price),f=n["origin-price"]||Object(a.d)(e.originPrice),p=l||h||f,v=s&&t("a",{attrs:{href:e.thumbLink},class:pn("thumb"),on:{click:function(){d(i,"click-thumb")}}},[n.thumb?n.thumb():e.lazyLoad?t("img",{class:pn("img"),directives:[{name:"lazy",value:r}]}):t("img",{class:pn("img"),attrs:{src:r}}),c&&t("div",{class:pn("tag")},[n.tag?n.tag():t(dn,{attrs:{mark:!0,type:"danger"}},[e.tag])])]),m=n.title?n.title():e.title&&t("div",{class:pn("title")},[e.title]),g=n.desc?n.desc():e.desc&&t("div",{class:[pn("desc"),"van-ellipsis"]},[e.desc]),b=h&&t("div",{class:pn("price")},[n.price?n.price():e.currency+" "+e.price]),y=f&&t("div",{class:pn("origin-price")},[n["origin-price"]?n["origin-price"]():e.currency+" "+e.originPrice]),x=l&&t("div",{class:pn("num")},[n.num?n.num():"x "+e.num]),k=n.footer&&t("div",{class:pn("footer")},[n.footer()]);return t("div",o()([{class:pn()},u(i,!0)]),[t("div",{class:pn("header")},[v,t("div",{class:pn("content",{centered:e.centered})},[m,g,n.tags&&n.tags(),p&&t("div",{class:"van-card__bottom"},[b,y,x,n.bottom&&n.bottom()])])]),k])}vn.props={tag:String,desc:String,thumb:String,title:String,centered:Boolean,lazyLoad:Boolean,thumbLink:String,num:[Number,String],price:[Number,String],originPrice:[Number,String],currency:{type:String,default:"¥"}};var mn=fn(vn),gn=Object(a.k)("cell-group"),bn=gn[0],yn=gn[1];function xn(t,e,n,i){var r=t("div",o()([{class:[yn(),{"van-hairline--top-bottom":e.border}]},u(i,!0)]),[n.default&&n.default()]);return e.title?t("div",[t("div",{class:yn("title")},[e.title]),r]):r}xn.props={title:String,border:{type:Boolean,default:!0}};var kn=bn(xn),wn=Object(a.k)("checkbox"),Cn=(0,wn[0])({mixins:[Le("van-checkbox-group",wn[1])],computed:{checked:{get:function(){return this.parent?-1!==this.parent.value.indexOf(this.name):this.value},set:function(t){this.parent?this.setParentValue(t):this.$emit("input",t)}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggle:function(){var t=this,e=!this.checked;clearTimeout(this.toggleTask),this.toggleTask=setTimeout(function(){t.checked=e})},onClickIcon:function(){this.isDisabled||this.toggle()},onClickLabel:function(){this.isDisabled||this.labelDisabled||this.toggle()},setParentValue:function(t){var e=this.parent,n=e.value.slice();if(t){if(e.max&&n.length>=e.max)return;-1===n.indexOf(this.name)&&(n.push(this.name),e.$emit("input",n))}else{var i=n.indexOf(this.name);-1!==i&&(n.splice(i,1),e.$emit("input",n))}}}}),Sn=Object(a.k)("checkbox-group"),_n=Sn[0],On=Sn[1],$n=_n({props:{max:Number,value:Array,disabled:Boolean},watch:{value:function(t){this.$emit("change",t)}},render:function(t){return t("div",{class:On()},[this.slots()])}}),Tn=n(6),jn=Object(a.k)("circle"),An=jn[0],En=jn[1],Nn="M 530 530 m -500, 0 a 500, 500 0 1, 1 1000, 0 a 500, 500 0 1, 1 -1000, 0";function In(t){return Math.min(Math.max(t,0),100)}var zn=An({props:{text:String,value:Number,speed:Number,size:{type:String,default:"100px"},fill:{type:String,default:"none"},rate:{type:Number,default:100},layerColor:{type:String,default:on.e},color:{type:String,default:on.a},strokeWidth:{type:Number,default:40},clockwise:{type:Boolean,default:!0}},computed:{style:function(){return{width:this.size,height:this.size}},layerStyle:function(){var t=3140*(100-this.value)/100;return t=this.clockwise?t:6280-t,{stroke:""+this.color,strokeDashoffset:t+"px",strokeWidth:this.strokeWidth+1+"px"}},hoverStyle:function(){return{fill:""+this.fill,stroke:""+this.layerColor,strokeWidth:this.strokeWidth+"px"}}},watch:{rate:{handler:function(){this.startTime=Date.now(),this.startRate=this.value,this.endRate=In(this.rate),this.increase=this.endRate>this.startRate,this.duration=Math.abs(1e3*(this.startRate-this.endRate)/this.speed),this.speed?(Object(Tn.a)(this.rafId),this.rafId=Object(Tn.b)(this.animate)):this.$emit("input",this.endRate)},immediate:!0}},methods:{animate:function(){var t=Date.now(),e=Math.min((t-this.startTime)/this.duration,1)*(this.endRate-this.startRate)+this.startRate;this.$emit("input",In(parseFloat(e.toFixed(1)))),(this.increase?e<this.endRate:e>this.endRate)&&(this.rafId=Object(Tn.b)(this.animate))}},render:function(t){return t("div",{class:En(),style:this.style},[t("svg",{attrs:{viewBox:"0 0 1060 1060"}},[t("path",{class:En("hover"),style:this.hoverStyle,attrs:{d:Nn}}),t("path",{class:En("layer"),style:this.layerStyle,attrs:{d:Nn}})]),this.slots()||this.text&&t("div",{class:En("text")},[this.text])])}}),Bn=Object(a.k)("col"),Ln=Bn[0],Dn=Bn[1],Mn=Ln({props:{span:[Number,String],offset:[Number,String],tag:{type:String,default:"div"}},computed:{gutter:function(){return this.$parent&&Number(this.$parent.gutter)||0},style:function(){var t=this.gutter/2+"px";return this.gutter?{paddingLeft:t,paddingRight:t}:{}}},render:function(t){var e,n=this.span,i=this.offset;return t(this.tag,{class:Dn((e={},e[n]=n,e["offset-"+i]=i,e)),style:this.style},[this.slots()])}}),Pn=Object(a.k)("collapse"),Fn=Pn[0],Rn=Pn[1],Un=Fn({props:{accordion:Boolean,value:[String,Number,Array],border:{type:Boolean,default:!0}},data:function(){return{items:[]}},methods:{switch:function(t,e){this.accordion||(t=e?this.value.concat(t):this.value.filter(function(e){return e!==t})),this.$emit("change",t),this.$emit("input",t)}},render:function(t){return t("div",{class:[Rn(),{"van-hairline--top-bottom":this.border}]},[this.slots()])}}),Vn=Object(a.k)("collapse-item"),Hn=Vn[0],qn=Vn[1],Wn=["title","icon","right-icon"],Yn=Hn({mixins:[Be],props:Object(i.a)({},Ct,{name:[String,Number],disabled:Boolean,isLink:{type:Boolean,default:!0}}),data:function(){return{show:null,inited:null}},computed:{items:function(){return this.parent.items},index:function(){return this.items.indexOf(this)},currentName:function(){return Object(a.d)(this.name)?this.name:this.index},expanded:function(){var t=this;if(!this.parent)return null;var e=this.parent.value;return this.parent.accordion?e===this.currentName:e.some(function(e){return e===t.currentName})}},created:function(){this.findParent("van-collapse"),this.items.push(this),this.show=this.expanded,this.inited=this.expanded},destroyed:function(){this.items.splice(this.index,1)},watch:{expanded:function(t,e){var n=this;null!==e&&(t&&(this.show=!0,this.inited=!0),Object(Tn.b)(function(){var e=n.$refs,i=e.content,r=e.wrapper;if(i&&r){var o=i.clientHeight;if(o){var a=o+"px";r.style.height=t?0:a,Object(Tn.b)(function(){r.style.height=t?a:0})}else n.onTransitionEnd()}}))}},methods:{onClick:function(){if(!this.disabled){var t=this.parent,e=t.accordion&&this.currentName===t.value?"":this.currentName,n=!this.expanded;this.parent.switch(e,n)}},onTransitionEnd:function(){this.expanded?this.$refs.wrapper.style.height=null:this.show=!1}},render:function(t){var e=this,n=Wn.reduce(function(t,n){return e.slots(n)&&(t[n]=function(){return e.slots(n)}),t},{});this.slots("value")&&(n.default=function(){return e.slots("value")});var r=t(Et,{class:qn("title",{disabled:this.disabled,expanded:this.expanded}),on:{click:this.onClick},scopedSlots:n,props:Object(i.a)({},this.$props)}),o=this.inited&&t("div",{directives:[{name:"show",value:this.show}],ref:"wrapper",class:qn("wrapper"),on:{transitionend:this.onTransitionEnd}},[t("div",{ref:"content",class:qn("content")},[this.slots()])]);return t("div",{class:[qn(),{"van-hairline--top":this.index}]},[r,o])}}),Xn=Object(a.k)("contact-card"),Kn=Xn[0],Qn=Xn[1],Gn=Xn[2];function Jn(t,e,n,i){var r=e.type,a=e.editable;return t(Et,o()([{attrs:{center:!0,border:!1,isLink:a,valueClass:Qn("value"),icon:"edit"===r?"contact":"add-square"},class:Qn([r]),on:{click:function(t){a&&d(i,"click",t)}}},u(i)]),["add"===r?e.addText||Gn("addText"):[t("div",[Gn("name")+":"+e.name]),t("div",[Gn("tel")+":"+e.tel])]])}Jn.props={tel:String,name:String,addText:String,editable:{type:Boolean,default:!0},type:{type:String,default:"add"}};var Zn=Kn(Jn),ti=Object(a.k)("contact-edit"),ei=ti[0],ni=ti[1],ii=ti[2],ri={tel:"",name:""},oi=ei({props:{isEdit:Boolean,isSaving:Boolean,isDeleting:Boolean,contactInfo:{type:Object,default:function(){return Object(i.a)({},ri)}},telValidator:{type:Function,default:at}},data:function(){return{data:Object(i.a)({},ri,this.contactInfo),errorInfo:{name:!1,tel:!1}}},watch:{contactInfo:function(t){this.data=Object(i.a)({},ri,t)}},methods:{onFocus:function(t){this.errorInfo[t]=!1},getErrorMessageByKey:function(t){var e=this.data[t].trim();switch(t){case"name":return e?"":ii("nameEmpty");case"tel":return this.telValidator(e)?"":ii("telInvalid")}},onSave:function(){var t=this;["name","tel"].every(function(e){var n=t.getErrorMessageByKey(e);return n&&(t.errorInfo[e]=!0,Xt(n)),!n})&&!this.isSaving&&this.$emit("save",this.data)},onDelete:function(){var t=this;se.confirm({message:ii("confirmDelete")}).then(function(){t.$emit("delete",t.data)})}},render:function(t){var e=this,n=this.data,i=this.errorInfo,r=function(t){return function(){return e.onFocus(t)}};return t("div",{class:ni()},[t(Lt,{attrs:{clearable:!0,maxlength:"30",label:ii("name"),placeholder:ii("nameEmpty"),error:i.name},on:{focus:r("name")},model:{value:n.name,callback:function(t){n.name=t}}}),t(Lt,{attrs:{clearable:!0,type:"tel",label:ii("tel"),placeholder:ii("telEmpty"),error:i.tel},on:{focus:r("tel")},model:{value:n.tel,callback:function(t){n.tel=t}}}),t("div",{class:ni("buttons")},[t(te,{attrs:{block:!0,type:"danger",text:ii("save"),loading:this.isSaving},on:{click:this.onSave}}),this.isEdit&&t(te,{attrs:{block:!0,text:ii("delete"),loading:this.isDeleting},on:{click:this.onDelete}})])])}}),ai=Object(a.k)("contact-list"),si=ai[0],ci=ai[1],li=ai[2];function ui(t,e,n,i){var r=e.list.map(function(e,n){var r=function(){d(i,"input",e.id),d(i,"select",e,n)};return t(Et,{key:e.id,attrs:{isLink:!0,valueClass:ci("item-value")},class:ci("item"),scopedSlots:{default:function(){return t(Me,{attrs:{name:e.id},on:{click:r}},[t("div",{class:ci("name")},[e.name+","+e.tel])])},"right-icon":function(){return t(H,{attrs:{name:"edit"},class:ci("edit"),on:{click:function(t){t.stopPropagation(),d(i,"edit",e,n)}}})}},on:{click:r}})});return t("div",o()([{class:ci()},u(i)]),[t(ze,{attrs:{value:e.value},class:ci("group")},[r]),t(te,{attrs:{square:!0,size:"large",type:"danger",text:e.addText||li("addText")},class:ci("add"),on:{click:function(){d(i,"add")}}})])}ui.props={value:null,list:Array,addText:String};var di=si(ui),hi=Object(a.k)("coupon"),fi=hi[0],pi=hi[1],vi=hi[2];function mi(t){return(t<10?"0":"")+t}function gi(t){var e=new Date(1e3*t);return e.getFullYear()+"."+mi(e.getMonth()+1)+"."+mi(e.getDate())}var bi=fi({props:{coupon:Object,chosen:Boolean,disabled:Boolean,currency:{type:String,default:"¥"}},computed:{validPeriod:function(){return vi("valid")+":"+gi(this.coupon.startAt)+" - "+gi(this.coupon.endAt)},faceAmount:function(){var t,e,n=this.coupon;return n.valueDesc?n.valueDesc+"<span>"+(n.unitDesc||"")+"</span>":n.denominations?"<span>"+this.currency+"</span> "+((e=this.coupon.denominations)/100).toFixed(e%100==0?0:e%10==0?1:2):n.discount?vi("discount",((t=this.coupon.discount)/10).toFixed(t%10==0?0:1)):""},conditionMessage:function(){var t=this.coupon.originCondition;return 0===(t=t%100==0?Math.round(t/100):(t/100).toFixed(2))?vi("unlimited"):vi("condition",t)}},render:function(t){var e=this.coupon,n=this.disabled,i=n&&e.reason||e.description;return t("div",{class:pi({disabled:n})},[t("div",{class:pi("content")},[t("div",{class:pi("head")},[t("h2",{domProps:{innerHTML:this.faceAmount}}),t("p",[this.coupon.condition||this.conditionMessage])]),t("div",{class:pi("body")},[t("h2",[e.name]),t("p",[this.validPeriod]),this.chosen&&t(Cn,{attrs:{value:!0},class:pi("corner")})])]),i&&t("p",{class:pi("description")},[i])])}}),yi=Object(a.k)("coupon-cell"),xi=yi[0],ki=yi[1],wi=yi[2];function Ci(t,e,n,i){var r=e.coupons[e.chosenCoupon]?"van-coupon-cell--selected":"",a=function(t){var e=t.coupons,n=t.chosenCoupon,i=t.currency,r=e[n];return r?"-"+i+((r.denominations||r.value)/100).toFixed(2):0===e.length?wi("tips"):wi("count",e.length)}(e);return t(Et,o()([{class:ki(),attrs:{value:a,title:e.title||wi("title"),border:e.border,isLink:e.editable,valueClass:r}},u(i,!0)]))}Ci.model={prop:"chosenCoupon"},Ci.props={title:String,coupons:Array,currency:{type:String,default:"¥"},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0},chosenCoupon:{type:Number,default:-1}};var Si=xi(Ci),_i=Object(a.k)("tab"),Oi=_i[0],$i=_i[1],Ti=Oi({mixins:[Be],props:{title:String,disabled:Boolean},data:function(){return{inited:!1}},computed:{index:function(){return this.parent.tabs.indexOf(this)},selected:function(){return this.index===this.parent.curActive}},watch:{"parent.curActive":function(){this.inited=this.inited||this.selected},title:function(){this.parent.setLine()}},created:function(){this.findParent("van-tabs")},mounted:function(){var t=this.parent.tabs,e=this.parent.slots().indexOf(this.$vnode);t.splice(-1===e?t.length:e,0,this),this.slots("title")&&this.parent.renderTitle(this.$refs.title,this.index)},beforeDestroy:function(){this.parent.tabs.splice(this.index,1)},render:function(t){var e=this.slots,n=this.inited||!this.parent.lazyRender;return t("div",{directives:[{name:"show",value:this.selected||this.parent.animated}],class:$i("pane")},[n?e():t(),e("title")&&t("div",{ref:"title"},[e("title")])])}}),ji=Object(a.k)("tabs"),Ai=ji[0],Ei=ji[1],Ni=Object(a.k)("tab")[1],Ii=Ai({mixins:[v],model:{prop:"active"},props:{color:String,sticky:Boolean,animated:Boolean,offsetTop:Number,swipeable:Boolean,background:String,titleActiveColor:String,titleInactiveColor:String,ellipsis:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0},lineWidth:{type:Number,default:null},lineHeight:{type:Number,default:null},active:{type:[Number,String],default:0},type:{type:String,default:"line"},duration:{type:Number,default:.3},swipeThreshold:{type:Number,default:4}},data:function(){return{tabs:[],position:"",curActive:null,lineStyle:{backgroundColor:this.color},events:{resize:!1,sticky:!1,swipeable:!1}}},computed:{scrollable:function(){return this.tabs.length>this.swipeThreshold||!this.ellipsis},wrapStyle:function(){switch(this.position){case"top":return{top:this.offsetTop+"px",position:"fixed"};case"bottom":return{top:"auto",bottom:0};default:return null}},navStyle:function(){return{borderColor:this.color,background:this.background}},trackStyle:function(){if(this.animated)return{left:-1*this.curActive*100+"%",transitionDuration:this.duration+"s"}}},watch:{active:function(t){t!==this.curActive&&this.correctActive(t)},color:function(){this.setLine()},tabs:function(){this.correctActive(this.curActive||this.active),this.scrollIntoView(),this.setLine()},curActive:function(){var t,e;this.scrollIntoView(),this.setLine(),"top"!==this.position&&"bottom"!==this.position||(t=window,e=z(this.$el)-this.offsetTop,"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e))},sticky:function(){this.handlers(!0)},swipeable:function(){this.handlers(!0)}},mounted:function(){this.onShow()},activated:function(){this.onShow(),this.setLine()},deactivated:function(){this.handlers(!1)},beforeDestroy:function(){this.handlers(!1)},methods:{onShow:function(){var t=this;this.$nextTick(function(){t.inited=!0,t.handlers(!0),t.scrollIntoView(!0)})},handlers:function(t){var e=this.events,n=this.sticky&&t,i=this.swipeable&&t;if(e.resize!==t&&(e.resize=t,(t?b:y)(window,"resize",this.setLine,!0)),e.sticky!==n&&(e.sticky=n,this.scrollEl=this.scrollEl||N(this.$el),(n?b:y)(this.scrollEl,"scroll",this.onScroll,!0),this.onScroll()),e.swipeable!==i){e.swipeable=i;var r=this.$refs.content,o=i?b:y;o(r,"touchstart",this.touchStart),o(r,"touchmove",this.touchMove),o(r,"touchend",this.onTouchEnd),o(r,"touchcancel",this.onTouchEnd)}},onTouchEnd:function(){var t=this.direction,e=this.deltaX,n=this.curActive;"horizontal"===t&&this.offsetX>=50&&(e>0&&0!==n?this.setCurActive(n-1):e<0&&n!==this.tabs.length-1&&this.setCurActive(n+1))},onScroll:function(){var t=I(window)+this.offsetTop,e=z(this.$el),n=e+this.$el.offsetHeight-this.$refs.wrap.offsetHeight;this.position=t>n?"bottom":t>e?"top":"";var i={scrollTop:t,isFixed:"top"===this.position};this.$emit("scroll",i)},setLine:function(){var t=this,e=this.inited;this.$nextTick(function(){var n=t.$refs.tabs;if(n&&n[t.curActive]&&"line"===t.type){var i=n[t.curActive],r=t.lineWidth,o=t.lineHeight,s=Object(a.d)(r)?r:i.offsetWidth/2,c=i.offsetLeft+(i.offsetWidth-s)/2,l={width:s+"px",backgroundColor:t.color,transform:"translateX("+c+"px)"};if(e&&(l.transitionDuration=t.duration+"s"),Object(a.d)(o)){var u=o+"px";l.height=u,l.borderRadius=u}t.lineStyle=l}})},correctActive:function(t){t=+t;var e=this.tabs.some(function(e){return e.index===t}),n=(this.tabs[0]||{}).index||0;this.setCurActive(e?t:n)},setCurActive:function(t){t=this.findAvailableTab(t,t<this.curActive),Object(a.d)(t)&&t!==this.curActive&&(this.$emit("input",t),null!==this.curActive&&this.$emit("change",t,this.tabs[t].title),this.curActive=t)},findAvailableTab:function(t,e){for(var n=e?-1:1,i=t;i>=0&&i<this.tabs.length;){if(!this.tabs[i].disabled)return i;i+=n}},onClick:function(t){var e=this.tabs[t],n=e.title;e.disabled?this.$emit("disabled",t,n):(this.setCurActive(t),this.$emit("click",t,n))},scrollIntoView:function(t){var e=this.$refs.tabs;if(this.scrollable&&e&&e[this.curActive]){var n=this.$refs.nav,i=n.scrollLeft,r=n.offsetWidth,o=e[this.curActive],a=o.offsetLeft,s=o.offsetWidth;this.scrollTo(n,i,a-(r-s)/2,t)}},scrollTo:function(t,e,n,i){if(i)t.scrollLeft+=n-e;else{var r=0,o=Math.round(1e3*this.duration/16);!function i(){t.scrollLeft+=(n-e)/o,++r<o&&Object(Tn.b)(i)}()}},renderTitle:function(t,e){var n=this;this.$nextTick(function(){var i=n.$refs.title[e];i.parentNode.replaceChild(t,i)})},getTabStyle:function(t,e){var n={},i=this.color,r=e===this.curActive,o="card"===this.type;i&&(t.disabled||!o||r||(n.color=i),!t.disabled&&o&&r&&(n.backgroundColor=i),o&&(n.borderColor=i));var a=r?this.titleActiveColor:this.titleInactiveColor;return a&&(n.color=a),this.scrollable&&this.ellipsis&&(n.flexBasis=88/this.swipeThreshold+"%"),n}},render:function(t){var e=this,n=this.type,i=this.ellipsis,r=this.animated,o=this.scrollable,a=this.tabs.map(function(n,r){return t("div",{ref:"tabs",refInFor:!0,class:Ni({active:r===e.curActive,disabled:n.disabled,complete:!i}),style:e.getTabStyle(n,r),on:{click:function(){e.onClick(r)}}},[t("span",{ref:"title",refInFor:!0,class:{"van-ellipsis":i}},[n.title])])});return t("div",{class:Ei([n])},[t("div",{ref:"wrap",style:this.wrapStyle,class:[Ei("wrap",{scrollable:o}),{"van-hairline--top-bottom":"line"===n}]},[t("div",{ref:"nav",class:Ei("nav",[n]),style:this.navStyle},[this.slots("nav-left"),"line"===n&&t("div",{class:Ei("line"),style:this.lineStyle}),a,this.slots("nav-right")])]),t("div",{ref:"content",class:Ei("content",{animated:r})},[r?t("div",{class:Ei("track"),style:this.trackStyle},[this.slots()]):this.slots()])])}}),zi=Object(a.k)("coupon-list"),Bi=zi[0],Li=zi[1],Di=zi[2],Mi=Bi({model:{prop:"code"},props:{code:String,coupons:Array,disabledCoupons:Array,closeButtonText:String,inputPlaceholder:String,exchangeButtonText:String,exchangeButtonLoading:Boolean,exchangeButtonDisabled:Boolean,exchangeMinLength:{type:Number,default:1},chosenCoupon:{type:Number,default:-1},displayedCouponIndex:{type:Number,default:-1},showExchangeBar:{type:Boolean,default:!0},showCloseButton:{type:Boolean,default:!0},currency:{type:String,default:"¥"}},data:function(){return{tab:0,winHeight:window.innerHeight,currentCode:this.code||""}},computed:{buttonDisabled:function(){return!this.exchangeButtonLoading&&(this.exchangeButtonDisabled||!this.currentCode||this.currentCode.length<this.exchangeMinLength)},title:function(){return Di("enable")+" ("+this.coupons.length+")"},disabledTitle:function(){return Di("disabled")+" ("+this.disabledCoupons.length+")"},listStyle:function(){return{height:this.winHeight-(this.showExchangeBar?140:94)+"px"}}},watch:{code:function(t){this.currentCode=t},currentCode:function(t){this.$emit("input",t)},displayedCouponIndex:function(t){this.scrollToShowCoupon(t)}},mounted:function(){this.scrollToShowCoupon(this.displayedCouponIndex)},methods:{onClickExchangeButton:function(){this.$emit("exchange",this.currentCode),this.code||(this.currentCode="")},scrollToShowCoupon:function(t){var e=this;-1!==t&&this.$nextTick(function(){var n=e.$refs,i=n.card,r=n.list;r&&i&&i[t]&&(r.scrollTop=i[t].$el.offsetTop-100)})},renderEmpty:function(){var t=this.$createElement;return t("div",{class:Li("empty")},[t("img",{attrs:{src:"https://img.yzcdn.cn/vant/coupon-empty.png"}}),t("p",[Di("empty")])])},renderExchangeButton:function(){return(0,this.$createElement)(te,{attrs:{size:"small",type:"danger",text:this.exchangeButtonText||Di("exchange"),loading:this.exchangeButtonLoading,disabled:this.buttonDisabled},class:Li("exchange"),on:{click:this.onClickExchangeButton}})}},render:function(t){var e=this,n=this.showExchangeBar&&t(Lt,{attrs:{clearable:!0,border:!1,placeholder:this.inputPlaceholder||Di("placeholder"),maxlength:"20"},class:Li("field"),scopedSlots:{button:this.renderExchangeButton},model:{value:e.currentCode,callback:function(t){e.currentCode=t}}}),i=function(t){return function(){return e.$emit("change",t)}},r=t(Ti,{attrs:{title:this.title}},[t("div",{class:Li("list"),style:this.listStyle},[this.coupons.map(function(n,r){return t(bi,{ref:"card",key:n.id,attrs:{coupon:n,currency:e.currency,chosen:r===e.chosenCoupon},nativeOn:{click:i(r)}})}),!this.coupons.length&&this.renderEmpty()])]),o=t(Ti,{attrs:{title:this.disabledTitle}},[t("div",{class:Li("list"),style:this.listStyle},[this.disabledCoupons.map(function(n){return t(bi,{attrs:{disabled:!0,coupon:n,currency:e.currency},key:n.id})}),!this.disabledCoupons.length&&this.renderEmpty()])]);return t("div",{class:Li()},[n,t(Ii,{class:Li("tab"),attrs:{"line-width":120},model:{value:e.tab,callback:function(t){e.tab=t}}},[r,o]),t(te,{directives:[{name:"show",value:this.showCloseButton}],attrs:{size:"large",text:this.closeButtonText||Di("close")},class:Li("close"),on:{click:i(-1)}})])}});function Pi(t){return"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(t.getTime())}function Fi(t){return("00"+t).slice(-2)}function Ri(t){if(t){for(;isNaN(parseInt(t,10));)t=t.slice(1);return parseInt(t,10)}}function Ui(t,e){return 32-new Date(t,e-1,32).getDate()}var Vi=Object(a.k)("datetime-picker"),Hi=Vi[0],qi=Vi[1],Wi=(new Date).getFullYear(),Yi=Hi({props:Object(i.a)({},lt,{value:null,minHour:Number,minMinute:Number,type:{type:String,default:"datetime"},showToolbar:{type:Boolean,default:!0},format:{type:String,default:"YYYY.MM.DD HH时 mm分"},formatter:{type:Function,default:function(t,e){return e}},minDate:{type:Date,default:function(){return new Date(Wi-10,0,1)},validator:Pi},maxDate:{type:Date,default:function(){return new Date(Wi+10,11,31)},validator:Pi},maxHour:{type:Number,default:23},maxMinute:{type:Number,default:59}}),data:function(){return{innerValue:this.correctValue(this.value)}},watch:{value:function(t){t=this.correctValue(t),("time"===this.type?t===this.innerValue:t.valueOf()===this.innerValue.valueOf())||(this.innerValue=t,"time"===this.type&&this.updateColumnValue(t))},innerValue:function(t){this.$emit("input",t)},columns:function(){this.updateColumnValue(this.innerValue)}},computed:{ranges:function(){if("time"===this.type)return[{type:"hour",range:[this.minHour,this.maxHour]},{type:"minute",range:[this.minMinute,this.maxMinute]}];var t=this.getBoundary("max",this.innerValue),e=t.maxYear,n=t.maxDate,i=t.maxMonth,r=t.maxHour,o=t.maxMinute,a=this.getBoundary("min",this.innerValue),s=a.minYear,c=a.minDate,l=[{type:"year",range:[s,e]},{type:"month",range:[a.minMonth,i]},{type:"day",range:[c,n]},{type:"hour",range:[a.minHour,r]},{type:"minute",range:[a.minMinute,o]}];return"date"===this.type&&l.splice(3,2),"year-month"===this.type&&l.splice(2,3),l},columns:function(){var t=this;return this.ranges.map(function(e){var n=e.type,i=e.range;return{values:function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}(i[1]-i[0]+1,function(e){var r=i[0]+e;return r=r<10?"0"+r:""+r,t.formatter(n,r)})}})}},mounted:function(){this.updateColumnValue(this.innerValue)},methods:{correctValue:function(t){var e="time"!==this.type;if(e&&!Pi(t))t=this.minDate;else if(!t){var n=this.minHour;t=(n>10?n:"0"+n)+":00"}if(!e){var i=t.split(":"),r=i[0],o=i[1];return(r=Fi(Object(a.j)(r,this.minHour,this.maxHour)))+":"+(o=Fi(Object(a.j)(o,this.minMinute,this.maxMinute)))}return t=Math.max(t,this.minDate.getTime()),t=Math.min(t,this.maxDate.getTime()),new Date(t)},getBoundary:function(t,e){var n,i=this[t+"Date"],r=i.getFullYear(),o=1,a=1,s=0,c=0;return"max"===t&&(o=12,a=Ui(e.getFullYear(),e.getMonth()+1),s=23,c=59),e.getFullYear()===r&&(o=i.getMonth()+1,e.getMonth()+1===o&&(a=i.getDate(),e.getDate()===a&&(s=i.getHours(),e.getHours()===s&&(c=i.getMinutes())))),(n={})[t+"Year"]=r,n[t+"Month"]=o,n[t+"Date"]=a,n[t+"Hour"]=s,n[t+"Minute"]=c,n},onConfirm:function(){this.$emit("confirm",this.innerValue)},onChange:function(t){var e,n=this;if("time"===this.type){var i=t.getIndexes();e=i[0]+this.minHour+":"+(i[1]+this.minMinute)}else{var r=t.getValues(),o=Ri(r[0]),a=Ri(r[1]),s=Ui(o,a),c=Ri(r[2]);"year-month"===this.type&&(c=1),c=c>s?s:c;var l=0,u=0;"datetime"===this.type&&(l=Ri(r[3]),u=Ri(r[4])),e=new Date(o,a-1,c,l,u)}this.innerValue=this.correctValue(e),this.$nextTick(function(){n.$nextTick(function(){n.$emit("change",t)})})},updateColumnValue:function(t){var e=this,n=[],i=this.formatter;if("time"===this.type){var r=t.split(":");n=[i("hour",r[0]),i("minute",r[1])]}else n=[i("year",""+t.getFullYear()),i("month",Fi(t.getMonth()+1)),i("day",Fi(t.getDate()))],"datetime"===this.type&&n.push(i("hour",Fi(t.getHours())),i("minute",Fi(t.getMinutes()))),"year-month"===this.type&&(n=n.slice(0,2));this.$nextTick(function(){e.$refs.picker.setValues(n)})}},render:function(t){var e=this,n={};return Object.keys(lt).forEach(function(t){n[t]=e[t]}),t(bt,{class:qi(),ref:"picker",attrs:{columns:this.columns},on:{change:this.onChange,confirm:this.onConfirm,cancel:function(){e.$emit("cancel")}},props:Object(i.a)({},n)})}}),Xi=Object(a.k)("goods-action"),Ki=Xi[0],Qi=Xi[1];function Gi(t,e,n,i){return t("div",o()([{class:Qi({"safe-area-inset-bottom":e.safeAreaInsetBottom})},u(i,!0)]),[n.default&&n.default()])}Gi.props={safeAreaInsetBottom:Boolean};var Ji=Ki(Gi),Zi=Object(a.k)("goods-action-big-btn"),tr=Zi[0],er=Zi[1];function nr(t,e,n,i){return t(te,o()([{attrs:{square:!0,size:"large",loading:e.loading,disabled:e.disabled,type:e.primary?"danger":"warning"},class:er(),on:{click:function(t){d(i,"click",t),_t(i)}}},u(i)]),[n.default?n.default():e.text])}nr.props=Object(i.a)({},Ot,{text:String,primary:Boolean,loading:Boolean,disabled:Boolean});var ir=tr(nr),rr=Object(a.k)("goods-action-mini-btn"),or=rr[0],ar=rr[1];function sr(t,e,n,i){return t("div",o()([{class:[ar(),"van-hairline"],on:{click:function(t){d(i,"click",t),_t(i)}}},u(i)]),[t(H,{class:[ar("icon"),e.iconClass],attrs:{tag:"div",info:e.info,name:e.icon}}),n.default?n.default():e.text])}sr.props=Object(i.a)({},Ot,{text:String,icon:String,info:[String,Number],iconClass:null});var cr=or(sr),lr=Object(a.k)("swipe"),ur=lr[0],dr=lr[1],hr=ur({mixins:[v],props:{width:Number,height:Number,autoplay:Number,vertical:Boolean,initialSwipe:Number,indicatorColor:String,loop:{type:Boolean,default:!0},touchable:{type:Boolean,default:!0},showIndicators:{type:Boolean,default:!0},duration:{type:Number,default:500}},data:function(){return{computedWidth:0,computedHeight:0,offset:0,active:0,deltaX:0,deltaY:0,swipes:[],swiping:!1}},mounted:function(){this.initialize(),this.$isServer||b(window,"resize",this.onResize,!0)},activated:function(){this.rendered&&this.initialize(),this.rendered=!0},destroyed:function(){this.clear(),this.$isServer||y(window,"resize",this.onResize)},watch:{swipes:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(t){t?this.autoPlay():this.clear()}},computed:{count:function(){return this.swipes.length},delta:function(){return this.vertical?this.deltaY:this.deltaX},size:function(){return this[this.vertical?"computedHeight":"computedWidth"]},trackSize:function(){return this.count*this.size},activeIndicator:function(){return(this.active+this.count)%this.count},isCorrectDirection:function(){var t=this.vertical?"vertical":"horizontal";return this.direction===t},trackStyle:function(){var t,e=this.vertical?"height":"width",n=this.vertical?"width":"height";return(t={})[e]=this.trackSize+"px",t[n]=this[n]?this[n]+"px":"",t.transitionDuration=(this.swiping?0:this.duration)+"ms",t.transform="translate"+(this.vertical?"Y":"X")+"("+this.offset+"px)",t},indicatorStyle:function(){return{backgroundColor:this.indicatorColor}}},methods:{initialize:function(t){if(void 0===t&&(t=this.initialSwipe),clearTimeout(this.timer),this.$el){var e=this.$el.getBoundingClientRect();this.computedWidth=this.width||e.width,this.computedHeight=this.height||e.height}this.swiping=!0,this.active=t,this.offset=this.count>1?-this.size*this.active:0,this.swipes.forEach(function(t){t.offset=0}),this.autoPlay()},onResize:function(){this.initialize(this.activeIndicator)},onTouchStart:function(t){this.touchable&&(this.clear(),this.swiping=!0,this.touchStart(t),this.correctPosition())},onTouchMove:function(t){this.touchable&&this.swiping&&(this.touchMove(t),this.isCorrectDirection&&(k(t,!0),this.move({offset:Math.min(Math.max(this.delta,-this.size),this.size)})))},onTouchEnd:function(){if(this.touchable&&this.swiping){if(this.delta&&this.isCorrectDirection){var t=this.vertical?this.offsetY:this.offsetX;this.move({pace:t>0?this.delta>0?-1:1:0,emitChange:!0})}this.swiping=!1,this.autoPlay()}},move:function(t){var e=t.pace,n=void 0===e?0:e,i=t.offset,r=void 0===i?0:i,o=t.emitChange,a=this.delta,s=this.active,c=this.count,l=this.swipes,u=this.trackSize,d=0===s,h=s===c-1;!this.loop&&(d&&(r>0||n<0)||h&&(r<0||n>0))||c<=1||(l[0]&&(l[0].offset=h&&(a<0||n>0)?u:0),l[c-1]&&(l[c-1].offset=d&&(a>0||n<0)?-u:0),n&&s+n>=-1&&s+n<=c&&(this.active+=n,o&&this.$emit("change",this.activeIndicator)),this.offset=Math.round(r-this.active*this.size))},swipeTo:function(t){var e=this;this.swiping=!0,this.resetTouchStatus(),this.correctPosition(),setTimeout(function(){e.swiping=!1,e.move({pace:t%e.count-e.active,emitChange:!0})},30)},correctPosition:function(){this.active<=-1&&this.move({pace:this.count}),this.active>=this.count&&this.move({pace:-this.count})},clear:function(){clearTimeout(this.timer)},autoPlay:function(){var t=this,e=this.autoplay;e&&this.count>1&&(this.clear(),this.timer=setTimeout(function(){t.swiping=!0,t.resetTouchStatus(),t.correctPosition(),setTimeout(function(){t.swiping=!1,t.move({pace:1,emitChange:!0}),t.autoPlay()},30)},e))}},render:function(t){var e=this,n=this.count,i=this.activeIndicator,r=this.slots("indicator")||this.showIndicators&&n>1&&t("div",{class:dr("indicators",{vertical:this.vertical})},[Array.apply(void 0,Array(n)).map(function(n,r){return t("i",{class:dr("indicator",{active:r===i}),style:r===i?e.indicatorStyle:null})})]);return t("div",{class:dr()},[t("div",{ref:"track",style:this.trackStyle,class:dr("track"),on:{touchstart:this.onTouchStart,touchmove:this.onTouchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[this.slots()]),r])}}),fr=Object(a.k)("swipe-item"),pr=fr[0],vr=fr[1],mr=pr({data:function(){return{offset:0}},beforeCreate:function(){this.$parent.swipes.push(this)},destroyed:function(){this.$parent.swipes.splice(this.$parent.swipes.indexOf(this),1)},render:function(t){var e=this.$parent,n=e.vertical,r=e.computedWidth,o=e.computedHeight,a={width:r+"px",height:n?o+"px":"100%",transform:"translate"+(n?"Y":"X")+"("+this.offset+"px)"};return t("div",{class:vr(),style:a,on:Object(i.a)({},this.$listeners)},[this.slots()])}}),gr=Object(a.k)("image-preview"),br=gr[0],yr=gr[1];function xr(t){return Math.sqrt(Math.abs((t[0].clientX-t[1].clientX)*(t[0].clientY-t[1].clientY)))}var kr,wr=br({mixins:[L,v],props:{images:Array,className:null,lazyLoad:Boolean,asyncClose:Boolean,startPosition:Number,showIndicators:Boolean,loop:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},showIndex:{type:Boolean,default:!0},minZoom:{type:Number,default:1/3},maxZoom:{type:Number,default:3},overlayClass:{type:String,default:"van-image-preview__overlay"},closeOnClickOverlay:{type:Boolean,default:!0}},data:function(){return{scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,active:0}},computed:{imageStyle:function(){var t=this.scale,e={transition:this.zooming||this.moving?"":".3s all"};return 1!==t&&(e.transform="scale3d("+t+", "+t+", 1) translate("+this.moveX/t+"px, "+this.moveY/t+"px)"),e}},watch:{value:function(){this.active=this.startPosition},startPosition:function(t){this.active=t}},methods:{onWrapperTouchStart:function(){this.touchStartTime=new Date},onWrapperTouchEnd:function(t){k(t);var e=new Date-this.touchStartTime,n=this.$refs.swipe||{},i=n.offsetX,r=void 0===i?0:i,o=n.offsetY;if(e<300&&r<10&&(void 0===o?0:o)<10){var a=this.active;this.resetScale(),this.$emit("close",{index:a,url:this.images[a]}),this.asyncClose||this.$emit("input",!1)}},startMove:function(t){var e=t.currentTarget.getBoundingClientRect(),n=window.innerWidth,i=window.innerHeight;this.touchStart(t),this.moving=!0,this.startMoveX=this.moveX,this.startMoveY=this.moveY,this.maxMoveX=Math.max(0,(e.width-n)/2),this.maxMoveY=Math.max(0,(e.height-i)/2)},startZoom:function(t){this.moving=!1,this.zooming=!0,this.startScale=this.scale,this.startDistance=xr(t.touches)},onTouchStart:function(t){var e=t.touches,n=(this.$refs.swipe||{}).offsetX,i=void 0===n?0:n;1===e.length&&1!==this.scale?this.startMove(t):2!==e.length||i||this.startZoom(t)},onTouchMove:function(t){var e=t.touches;if((this.moving||this.zooming)&&k(t,!0),this.moving){this.touchMove(t);var n=this.deltaX+this.startMoveX,i=this.deltaY+this.startMoveY;this.moveX=Object(a.j)(n,-this.maxMoveX,this.maxMoveX),this.moveY=Object(a.j)(i,-this.maxMoveY,this.maxMoveY)}if(this.zooming&&2===e.length){var r=xr(e),o=this.startScale*r/this.startDistance;this.scale=Object(a.j)(o,this.minZoom,this.maxZoom)}},onTouchEnd:function(t){if(this.moving||this.zooming){var e=!0;this.moving&&this.startMoveX===this.moveX&&this.startMoveY===this.moveY&&(e=!1),t.touches.length||(this.moving=!1,this.zooming=!1,this.startMoveX=0,this.startMoveY=0,this.startScale=1,this.scale<1&&this.resetScale()),e&&k(t,!0)}},onChange:function(t){this.resetScale(),this.active=t,this.$emit("change",t)},resetScale:function(){this.scale=1,this.moveX=0,this.moveY=0}},render:function(t){var e=this;if(this.value){var n=this.active,i=this.images,r=this.showIndex&&t("div",{class:yr("index")},[this.slots("index")||n+1+"/"+i.length]),a=t(hr,{ref:"swipe",attrs:{loop:this.loop,indicatorColor:"white",initialSwipe:this.startPosition,showIndicators:this.showIndicators},on:{change:this.onChange}},[i.map(function(i,r){var a={class:yr("image"),style:r===n?e.imageStyle:null,on:{touchstart:e.onTouchStart,touchmove:e.onTouchMove,touchend:e.onTouchEnd,touchcancel:e.onTouchEnd}};return t(mr,[e.lazyLoad?t("img",o()([{directives:[{name:"lazy",value:i}]},a])):t("img",o()([{attrs:{src:i}},a]))])})]);return t("transition",{attrs:{name:"van-fade"}},[t("div",{class:[yr(),this.className],on:{touchstart:this.onWrapperTouchStart,touchend:this.onWrapperTouchEnd,touchcancel:this.onWrapperTouchEnd}},[r,a])])}}}),Cr={images:[],loop:!0,value:!0,minZoom:1/3,maxZoom:3,className:"",lazyLoad:!1,showIndex:!0,asyncClose:!1,startPosition:0,showIndicators:!1},Sr=function(t,e){if(void 0===e&&(e=0),!a.h){kr||(kr=new(s.default.extend(wr))({el:document.createElement("div")}),document.body.appendChild(kr.$el));var n=Array.isArray(t)?{images:t,startPosition:e}:t;return Object(i.a)(kr,Cr,n),kr.$once("input",function(t){kr.value=t}),n.onClose&&kr.$once("close",n.onClose),kr}};Sr.install=function(){s.default.use(wr)};var _r=Sr,Or=n(22),$r=n.n(Or).a,Tr=Object(a.k)("list"),jr=Tr[0],Ar=Tr[1],Er=Tr[2],Nr=jr({model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:Number,default:300},direction:{type:String,default:"down"}},mounted:function(){this.scroller=N(this.$el),this.handler(!0),this.immediateCheck&&this.$nextTick(this.check)},destroyed:function(){this.handler(!1)},activated:function(){this.handler(!0)},deactivated:function(){this.handler(!1)},watch:{loading:function(){this.$nextTick(this.check)},finished:function(){this.$nextTick(this.check)}},methods:{check:function(){if(!(this.loading||this.finished||this.error)){var t=this.$el,e=this.scroller,n=B(e);if(n&&"none"!==window.getComputedStyle(t).display&&null!==t.offsetParent){var i=this.offset,r=this.direction;(function(){if(t===e){var o=I(t);if("up"===r)return o<=i;var a=o+n;return e.scrollHeight-a<=i}return"up"===r?I(e)-z(t)<=i:z(t)+B(t)-z(e)-n<=i})()&&(this.$emit("input",!0),this.$emit("load"))}}},clickErrorText:function(){this.$emit("update:error",!1),this.$nextTick(this.check)},handler:function(t){this.binded!==t&&(this.binded=t,(t?b:y)(this.scroller,"scroll",this.check))}},render:function(t){return t("div",{class:Ar()},["down"===this.direction&&this.slots(),this.loading&&t("div",{class:Ar("loading"),key:"loading"},[this.slots("loading")||[t(Q,{class:Ar("loading-icon")}),t("span",{class:Ar("loading-text")},[this.loadingText||Er("loading")])]]),this.finished&&this.finishedText&&t("div",{class:Ar("finished-text")},[this.finishedText]),this.error&&this.errorText&&t("div",{on:{click:this.clickErrorText},class:Ar("error-text")},[this.errorText]),"up"===this.direction&&this.slots()])}}),Ir=n(8),zr=Object(a.k)("nav-bar"),Br=zr[0],Lr=zr[1];function Dr(t,e,n,i){return t("div",o()([{class:[Lr({fixed:e.fixed}),{"van-hairline--bottom":e.border}],style:{zIndex:e.zIndex}},u(i)]),[t("div",{class:Lr("left"),on:{click:i.listeners["click-left"]||a.i}},[n.left?n.left():[e.leftArrow&&t(H,{class:Lr("arrow"),attrs:{name:"arrow-left"}}),e.leftText&&t("span",{class:Lr("text")},[e.leftText])]]),t("div",{class:[Lr("title"),"van-ellipsis"]},[n.title?n.title():e.title]),t("div",{class:Lr("right"),on:{click:i.listeners["click-right"]||a.i}},[n.right?n.right():e.rightText&&t("span",{class:Lr("text")},[e.rightText])])])}Dr.props={title:String,fixed:Boolean,leftText:String,rightText:String,leftArrow:Boolean,border:{type:Boolean,default:!0},zIndex:{type:Number,default:1}};var Mr=Br(Dr),Pr=Object(a.k)("notice-bar"),Fr=Pr[0],Rr=Pr[1],Ur=Fr({props:{text:String,mode:String,color:String,leftIcon:String,wrapable:Boolean,background:String,delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:!0},speed:{type:Number,default:50}},data:function(){return{wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticeBar:!0,animationClass:""}},watch:{text:{handler:function(){var t=this;this.$nextTick(function(){var e=t.$refs,n=e.wrap,i=e.content;if(n&&i){var r=n.getBoundingClientRect().width,o=i.getBoundingClientRect().width;t.scrollable&&o>r&&(t.wrapWidth=r,t.offsetWidth=o,t.duration=o/t.speed,t.animationClass=Rr("play"))}})},immediate:!0}},methods:{onClickIcon:function(){"closeable"===this.mode&&(this.showNoticeBar=!1,this.$emit("close"))},onAnimationEnd:function(){var t=this;this.firstRound=!1,this.$nextTick(function(){t.duration=(t.offsetWidth+t.wrapWidth)/t.speed,t.animationClass=Rr("play--infinite")})}},render:function(t){var e=this,n=this.mode,i="closeable"===n?"cross":"link"===n?"arrow":"",r={color:this.color,background:this.background},o={paddingLeft:this.firstRound?0:this.wrapWidth+"px",animationDelay:(this.firstRound?this.delay:0)+"s",animationDuration:this.duration+"s"};return t("div",{directives:[{name:"show",value:this.showNoticeBar}],class:Rr({withicon:n,wrapable:this.wrapable}),style:r,on:{click:function(){e.$emit("click")}}},[this.leftIcon&&t(H,{class:Rr("left-icon"),attrs:{name:this.leftIcon}}),t("div",{ref:"wrap",class:Rr("wrap")},[t("div",{ref:"content",class:[Rr("content"),this.animationClass,{"van-ellipsis":!this.scrollable&&!this.wrapable}],style:o,on:{animationend:this.onAnimationEnd,webkitAnimationEnd:this.onAnimationEnd}},[this.slots()||this.text])]),i&&t(H,{class:Rr("right-icon"),attrs:{name:i},on:{click:this.onClickIcon}})])}}),Vr=Object(a.k)("notify"),Hr=Vr[0],qr=Vr[1];function Wr(t,e,n,i){var r={color:e.color,background:e.background};return t(tt,o()([{attrs:{value:e.value,position:"top",overlay:!1,lockScroll:!1},style:r,class:[qr(),e.className],on:{input:function(t){d(i,"input",t)}}},u(i)]),[e.message])}Wr.props=Object(i.a)({},L.props,{className:null,message:[String,Number],color:{type:String,default:on.e},background:{type:String,default:on.d},duration:{type:Number,default:3e3}});var Yr,Xr,Kr=Hr(Wr);function Qr(t){var e;if(!a.h)return Xr||(Xr=h(Kr)),t=Object(i.a)({},Qr.currentOptions,(e=t,Object(a.g)(e)?e:{message:e})),Object(i.a)(Xr,t),clearTimeout(Yr),t.duration&&t.duration>0&&(Yr=setTimeout(Qr.clear,t.duration)),Xr}function Gr(){return{value:!0,message:"",color:on.e,background:on.d,duration:3e3,className:""}}Qr.clear=function(){Xr&&(Xr.value=!1)},Qr.currentOptions=Gr(),Qr.setDefaultOptions=function(t){Object(i.a)(Qr.currentOptions,t)},Qr.resetDefaultOptions=function(){Qr.currentOptions=Gr()},Qr.install=function(){s.default.use(Kr)},s.default.prototype.$notify=Qr;var Jr=Qr,Zr=Object(a.k)("key"),to=Zr[0],eo=Zr[1],no=to({props:{type:Array,text:[String,Number]},data:function(){return{active:!1}},computed:{className:function(){var t=this.type.slice(0);return this.active&&t.push("active"),eo(t)}},methods:{onFocus:function(){this.active=!0,this.$emit("press",this.text)},onBlur:function(t){k(t,!0),this.active=!1}},render:function(t){var e=this.onBlur;return t("i",{class:["van-hairline",this.className],on:{touchstart:this.onFocus,touchmove:e,touchend:e,touchcancel:e}},[this.text])}}),io=Object(a.k)("number-keyboard"),ro=io[0],oo=io[1],ao=io[2],so=["blue","big"],co=["delete","big","gray"],lo=ro({props:{show:Boolean,title:String,closeButtonText:String,deleteButtonText:String,safeAreaInsetBottom:Boolean,theme:{type:String,default:"default"},extraKey:{type:String,default:""},zIndex:{type:Number,default:100},transition:{type:Boolean,default:!0},showDeleteKey:{type:Boolean,default:!0},hideOnClickOutside:{type:Boolean,default:!0}},mounted:function(){this.handler(!0)},destroyed:function(){this.handler(!1)},activated:function(){this.handler(!0)},deactivated:function(){this.handler(!1)},watch:{show:function(){this.transition||this.$emit(this.show?"show":"hide")}},computed:{keys:function(){for(var t=[],e=1;e<=9;e++)t.push({text:e});switch(this.theme){case"default":t.push({text:this.extraKey,type:["gray"]},{text:0},{text:this.deleteText,type:["gray","delete"]});break;case"custom":t.push({text:0,type:["middle"]},{text:this.extraKey})}return t},deleteText:function(){return this.deleteButtonText||ao("delete")}},methods:{handler:function(t){this.$isServer||t!==this.handlerStatus&&this.hideOnClickOutside&&(this.handlerStatus=t,document.body[(t?"add":"remove")+"EventListener"]("touchstart",this.onBlur))},onBlur:function(){this.$emit("blur")},onClose:function(){this.$emit("close"),this.onBlur()},onAnimationEnd:function(){this.$emit(this.show?"show":"hide")},onPress:function(t){""!==t&&(t===this.deleteText?this.$emit("delete"):t===this.closeButtonText?this.onClose():this.$emit("input",t))}},render:function(t){var e=this.title,n=this.theme,i=this.onPress,r=this.closeButtonText,o=this.slots("title-left"),a=r&&"default"===n,s=e||a||o;return t("transition",{attrs:{name:this.transition?"van-slide-up":""}},[t("div",{directives:[{name:"show",value:this.show}],style:{zIndex:this.zIndex},class:oo([n,{"safe-area-inset-bottom":this.safeAreaInsetBottom}]),on:{touchstart:x,animationend:this.onAnimationEnd,webkitAnimationEnd:this.onAnimationEnd}},[s&&t("div",{class:[oo("title"),"van-hairline--top"]},[o&&t("span",{class:oo("title-left")},[o]),e&&t("span",[e]),a&&t("span",{class:oo("close"),on:{click:this.onClose}},[r])]),t("div",{class:oo("body")},[this.keys.map(function(e){return t(no,{key:e.text,attrs:{text:e.text,type:e.type},on:{press:i}})})]),"custom"===n&&t("div",{class:oo("sidebar")},[t(no,{attrs:{text:this.deleteText,type:co},on:{press:i}}),t(no,{attrs:{text:r,type:so},on:{press:i}})])])])}}),uo=Object(a.k)("pagination"),ho=uo[0],fo=uo[1],po=uo[2];function vo(t,e,n){return{number:t,text:e,active:n}}var mo=ho({props:{value:Number,prevText:String,nextText:String,pageCount:Number,totalItems:Number,forceEllipses:Boolean,mode:{type:String,default:"multi"},itemsPerPage:{type:Number,default:10},showPageSize:{type:Number,default:5}},computed:{count:function(){var t=this.pageCount||Math.ceil(this.totalItems/this.itemsPerPage);return Math.max(1,t)},pages:function(){var t=[],e=this.count;if("multi"!==this.mode)return t;var n=1,i=e,r=void 0!==this.showPageSize&&this.showPageSize<e;r&&(i=(n=Math.max(this.value-Math.floor(this.showPageSize/2),1))+this.showPageSize-1)>e&&(n=(i=e)-this.showPageSize+1);for(var o=n;o<=i;o++){var a=vo(o,o,o===this.value);t.push(a)}if(r&&this.showPageSize>0&&this.forceEllipses){if(n>1){var s=vo(n-1,"...",!1);t.unshift(s)}if(i<e){var c=vo(i+1,"...",!1);t.push(c)}}return t}},watch:{value:{handler:function(t){this.select(t||this.value)},immediate:!0}},methods:{select:function(t,e){t=Math.min(this.count,Math.max(1,t)),this.value!==t&&(this.$emit("input",t),e&&this.$emit("change",t))}},render:function(t){var e=this,n=this.value,i="multi"!==this.mode,r=function(t){return function(){e.select(t,!0)}};return t("ul",{class:fo({simple:i})},[t("li",{class:[fo("item",{disabled:1===n}),fo("prev"),"van-hairline"],on:{click:r(n-1)}},[this.prevText||po("prev")]),this.pages.map(function(e){return t("li",{class:[fo("item",{active:e.active}),fo("page"),"van-hairline"],on:{click:r(e.number)}},[e.text])}),i&&t("li",{class:fo("page-desc")},[this.slots("pageDesc")||n+"/"+this.count]),t("li",{class:[fo("item",{disabled:n===this.count}),fo("next"),"van-hairline"],on:{click:r(n+1)}},[this.nextText||po("next")])])}}),go=Object(a.k)("panel"),bo=go[0],yo=go[1];function xo(t,e,n,i){return t(kn,o()([{class:yo(),scopedSlots:{default:function(){return[n.header?n.header():t(Et,{attrs:{icon:e.icon,label:e.desc,title:e.title,value:e.status,valueClass:yo("header-value")},class:yo("header")}),t("div",{class:yo("content")},[n.default&&n.default()]),n.footer&&t("div",{class:[yo("footer"),"van-hairline--top"]},[n.footer()])]}}},u(i,!0)]))}xo.props={icon:String,desc:String,title:String,status:String};var ko=bo(xo),wo=Object(a.k)("password-input"),Co=wo[0],So=wo[1];function _o(t,e,n,i){for(var r=e.errorInfo||e.info,a=[],s=0;s<e.length;s++){var c=e.value[s];a.push(t("li",{class:"van-hairline"},[e.mask?t("i",{style:{visibility:c?"visible":"hidden"}}):c]))}return t("div",{class:So()},[t("ul",o()([{class:[So("security"),"van-hairline--surround"],on:{touchstart:function(t){t.stopPropagation(),d(i,"focus",t)}}},u(i,!0)]),[a]),r&&t("div",{class:So(e.errorInfo?"error-info":"info")},[r])])}_o.props={info:String,errorInfo:String,mask:{type:Boolean,default:!0},value:{type:String,default:""},length:{type:Number,default:6}};var Oo=Co(_o),$o=Object(a.k)("progress"),To=$o[0],jo=$o[1],Ao=To({props:{inactive:Boolean,pivotText:String,pivotColor:String,percentage:{type:Number,required:!0,validator:function(t){return t>=0&&t<=100}},showPivot:{type:Boolean,default:!0},color:{type:String,default:on.a},textColor:{type:String,default:on.e}},data:function(){return{pivotWidth:0,progressWidth:0}},mounted:function(){this.getWidth()},watch:{showPivot:function(){this.getWidth()},pivotText:function(){this.getWidth()}},methods:{getWidth:function(){var t=this;this.$nextTick(function(){t.progressWidth=t.$el.offsetWidth,t.pivotWidth=t.$refs.pivot?t.$refs.pivot.offsetWidth:0})}},render:function(t){var e=this.pivotText,n=this.percentage,i=Object(a.d)(e)?e:n+"%",r=this.showPivot&&i,o=this.inactive?"#cacaca":this.color,s={color:this.textColor,background:this.pivotColor||o},c={background:o,width:(this.progressWidth-this.pivotWidth)*n/100+"px"};return t("div",{class:jo()},[t("span",{class:jo("portion",{"with-pivot":r}),style:c},[r&&t("span",{ref:"pivot",style:s,class:jo("pivot")},[i])])])}}),Eo=Object(a.k)("pull-refresh"),No=Eo[0],Io=Eo[1],zo=Eo[2],Bo=["pulling","loosing","success"],Lo=No({mixins:[v],props:{disabled:Boolean,successText:String,pullingText:String,loosingText:String,loadingText:String,value:{type:Boolean,required:!0},successDuration:{type:Number,default:500},animationDuration:{type:Number,default:300},headHeight:{type:Number,default:50}},data:function(){return{status:"normal",height:0,duration:0}},computed:{untouchable:function(){return"loading"===this.status||"success"===this.status||this.disabled}},watch:{value:function(t){var e=this;this.duration=this.animationDuration,!t&&this.successText?(this.status="success",setTimeout(function(){e.setStatus(0)},this.successDuration)):this.setStatus(t?this.headHeight:0,t)}},mounted:function(){this.scrollEl=N(this.$el)},methods:{onTouchStart:function(t){!this.untouchable&&this.getCeiling()&&(this.duration=0,this.touchStart(t))},onTouchMove:function(t){this.untouchable||(this.touchMove(t),!this.ceiling&&this.getCeiling()&&(this.duration=0,this.startY=t.touches[0].clientY,this.deltaY=0),this.ceiling&&this.deltaY>=0&&"vertical"===this.direction&&(this.setStatus(this.ease(this.deltaY)),k(t)))},onTouchEnd:function(){!this.untouchable&&this.ceiling&&this.deltaY&&(this.duration=this.animationDuration,"loosing"===this.status?(this.setStatus(this.headHeight,!0),this.$emit("input",!0),this.$emit("refresh")):this.setStatus(0))},getCeiling:function(){return this.ceiling=0===I(this.scrollEl),this.ceiling},ease:function(t){var e=this.headHeight;return t<e?t:t<2*e?Math.round(e+(t-e)/2):Math.round(1.5*e+(t-2*e)/4)},setStatus:function(t,e){this.height=t;var n=e?"loading":0===t?"normal":t<this.headHeight?"pulling":"loosing";n!==this.status&&(this.status=n)}},render:function(t){var e=this.status,n=this[e+"Text"]||zo(e),i={transition:this.duration+"ms",transform:this.height?"translate3d(0,"+this.height+"px, 0)":""},r=this.slots(e)||[-1!==Bo.indexOf(e)&&t("div",{class:Io("text")},[n]),"loading"===e&&t("div",{class:Io("loading")},[t(Q),t("span",[n])])];return t("div",{class:Io()},[t("div",{class:Io("track"),style:i,on:{touchstart:this.onTouchStart,touchmove:this.onTouchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[t("div",{class:Io("head")},[r]),this.slots()])])}}),Do=Object(a.k)("rate"),Mo=Do[0],Po=Do[1];function Fo(t,e,n,i){for(var r,a,s,c=e.icon,l=e.size,h=e.color,f=e.voidIcon,p=e.readonly,v=e.disabled,m=e.voidColor,g=e.disabledColor,b=[],y=1;y<=e.count;y++)b.push((r=e.value,a=y,s=e.allowHalf,r>=a?"full":r+.5>=a&&s?"half":"void"));function x(t){v||p||(d(i,"input",t),d(i,"change",t))}return t("div",o()([{class:Po()},u(i),{on:{touchmove:function(t){if(!p&&!v&&document.elementFromPoint){k(t);var e=t.touches[0],n=e.clientX,i=e.clientY,r=document.elementFromPoint(n,i);if(r&&r.dataset){var o=r.dataset.score;o&&x(+o)}}}}}]),[b.map(function(n,i){return function(n,i){var r="full"===n,o="void"===n;return t("div",{key:i,class:Po("item")},[t(H,{attrs:{name:r?c:f,size:l+"px","data-score":i+1,color:v?g:r?h:m},class:Po("icon"),on:{click:function(){x(i+1)}}}),e.allowHalf&&t(H,{attrs:{name:o?f:c,size:l+"px","data-score":i+.5,color:v?g:o?m:h},class:Po("icon","half"),on:{click:function(){x(i+.5)}}})])}(n,i)})])}Fo.props={value:Number,readonly:Boolean,disabled:Boolean,allowHalf:Boolean,size:{type:Number,default:20},icon:{type:String,default:"star"},voidIcon:{type:String,default:"star-o"},color:{type:String,default:"#ffd21e"},voidColor:{type:String,default:"#c7c7c7"},disabledColor:{type:String,default:"#bdbdbd"},count:{type:Number,default:5}};var Ro=Mo(Fo),Uo=Object(a.k)("row"),Vo=Uo[0],Ho=Uo[1],qo=Vo({props:{type:String,align:String,justify:String,tag:{type:String,default:"div"},gutter:{type:[Number,String],default:0}},render:function(t){var e,n=this.align,i=this.justify,r="flex"===this.type,o="-"+Number(this.gutter)/2+"px",a=this.gutter?{marginLeft:o,marginRight:o}:{};return t(this.tag,{style:a,class:Ho((e={flex:r},e["align-"+n]=r&&n,e["justify-"+i]=r&&i,e))},[this.slots()])}}),Wo=Object(a.k)("search"),Yo=Wo[0],Xo=Wo[1],Ko=Wo[2];function Qo(t,e,n,r){var a={attrs:r.data.attrs,on:Object(i.a)({},r.listeners,{input:function(t){d(r,"input",t)},keypress:function(t){13===t.keyCode&&(k(t),d(r,"search",e.value)),d(r,"keypress",t)}})},s=u(r);return delete s.attrs,t("div",o()([{class:Xo({"show-action":e.showAction}),style:{background:e.background}},s]),[t("div",{class:Xo("content",e.shape)},[n.label||e.label?t("div",{class:Xo("label")},[n.label?n.label():e.label]):null,t(Lt,o()([{attrs:{clearable:!0,type:"search",value:e.value,border:!1,leftIcon:"search"},scopedSlots:{"left-icon":n["left-icon"]}},a]))]),function(){if(!e.showAction)return null;return t("div",{class:Xo("action")},[n.action?n.action():t("div",{on:{click:function(){d(r,"input",""),d(r,"cancel")}}},[Ko("cancel")])])}()])}Qo.props={value:String,label:String,showAction:Boolean,shape:{type:String,default:"square"},background:{type:String,default:"#fff"}};var Go=Yo(Qo),Jo=Object(a.k)("sku-header"),Zo=Jo[0],ta=Jo[1];function ea(t,e,n,i){var r=e.sku,a=e.goods,s=e.skuEventBus,c=function(t,e){var n=e.s1;if(n){var i=t.tree.filter(function(t){return"s1"===t.k_s})[0]||{};if(i.v){var r=i.v.filter(function(t){return t.id===n})[0];if(r)return r.imgUrl||r.img_url}}}(r,e.selectedSku)||a.picture;return t("div",o()([{class:[ta(),"van-hairline--bottom"]},u(i)]),[t("div",{class:ta("img-wrap"),on:{click:function(){s.$emit("sku:previewImage",c)}}},[t("img",{attrs:{src:c}})]),t("div",{class:ta("goods-info")},[t("div",{class:"van-sku__goods-name van-ellipsis"},[a.title]),n.default&&n.default(),t(H,{attrs:{name:"close"},class:"van-sku__close-icon",on:{click:function(){s.$emit("sku:close")}}})])])}ea.props={sku:Object,goods:Object,skuEventBus:Object,selectedSku:Object};var na=Zo(ea),ia=Object(a.k)("sku-row"),ra=ia[0],oa=ia[1];function aa(t,e,n,i){return t("div",o()([{class:oa()},u(i)]),[t("div",{class:oa("title")},[e.skuRow.k,":"]),n.default&&n.default()])}aa.props={skuRow:Object};var sa=ra(aa),ca=n(5),la=function(t){var e={};return t.forEach(function(t){e[t.k_s]=t.v}),e},ua=function(t,e){var n=Object.keys(e).filter(function(t){return e[t]!==ca.b});return t.length===n.length},da=function(t,e){return t.filter(function(t){return Object.keys(e).every(function(n){return String(t[n])===String(e[n])})})[0]},ha=function(t,e){var n=la(t);return Object.keys(e).reduce(function(t,i){var r=n[i],o=e[i];if(o!==ca.b){var a=r.filter(function(t){return t.id===o})[0];a&&t.push(a)}return t},[])},fa=function(t,e,n){var r,o=n.key,a=n.valueId,s=Object(i.a)({},e,((r={})[o]=a,r)),c=Object.keys(s).filter(function(t){return s[t]!==ca.b});return t.filter(function(t){return c.every(function(e){return String(s[e])===String(t[e])})}).reduce(function(t,e){return t+=e.stock_num},0)>0},pa={normalizeSkuTree:la,getSkuComb:da,getSelectedSkuValues:ha,isAllSelected:ua,isSkuChoosable:fa},va=(0,Object(a.k)("sku-row-item")[0])({props:{skuList:Array,skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedSku:Object},computed:{choosable:function(){return fa(this.skuList,this.selectedSku,{key:this.skuKeyStr,valueId:this.skuValue.id})}},methods:{onSelect:function(){this.choosable&&this.skuEventBus.$emit("sku:select",Object(i.a)({},this.skuValue,{skuKeyStr:this.skuKeyStr}))}},render:function(t){return t("span",{class:["van-sku-row__item",{"van-sku-row__item--active":this.skuValue.id===this.selectedSku[this.skuKeyStr],"van-sku-row__item--disabled":!this.choosable}],on:{click:this.onSelect}},[this.skuValue.name])}}),ma=Object(a.k)("stepper"),ga=ma[0],ba=ma[1],ya=ga({props:{value:null,integer:Boolean,disabled:Boolean,inputWidth:String,asyncChange:Boolean,disableInput:Boolean,min:{type:[String,Number],default:1},max:{type:[String,Number],default:1/0},step:{type:[String,Number],default:1},defaultValue:{type:[String,Number],default:1}},data:function(){var t=this.range(Object(a.d)(this.value)?this.value:this.defaultValue);return t!==+this.value&&this.$emit("input",t),{currentValue:t}},computed:{minusDisabled:function(){return this.disabled||this.currentValue<=this.min},plusDisabled:function(){return this.disabled||this.currentValue>=this.max}},watch:{value:function(t){t!==this.currentValue&&(this.currentValue=this.format(t))},currentValue:function(t){this.$emit("input",t),this.$emit("change",t)}},methods:{format:function(t){return""===(t=String(t).replace(/[^0-9.-]/g,""))?0:this.integer?Math.floor(t):+t},range:function(t){return Math.max(Math.min(this.max,this.format(t)),this.min)},onInput:function(t){var e=t.target.value,n=this.format(e);this.asyncChange?(t.target.value=this.currentValue,this.$emit("input",n),this.$emit("change",n)):(+e!==n&&(t.target.value=n),this.currentValue=n)},onChange:function(t){if(this[t+"Disabled"])this.$emit("overlimit",t);else{var e="minus"===t?-this.step:+this.step,n=Math.round(100*(this.currentValue+e))/100;this.asyncChange?(this.$emit("input",n),this.$emit("change",n)):this.currentValue=this.range(n),this.$emit(t)}},onFocus:function(t){this.$emit("focus",t)},onBlur:function(t){this.currentValue=this.range(this.currentValue),this.$emit("blur",t),0===this.currentValue&&(t.target.value=this.currentValue)}},render:function(t){var e=this,n=function(t){return function(){e.onChange(t)}};return t("div",{class:ba()},[t("button",{class:ba("minus",{disabled:this.minusDisabled}),on:{click:n("minus")}}),t("input",{attrs:{type:"number",disabled:this.disabled||this.disableInput},class:ba("input"),domProps:{value:this.currentValue},style:{width:this.inputWidth},on:{input:this.onInput,focus:this.onFocus,blur:this.onBlur}}),t("button",{class:ba("plus",{disabled:this.plusDisabled}),on:{click:n("plus")}})])}}),xa=Object(a.k)("sku-stepper")[0],ka=ca.a.QUOTA_LIMIT,wa=ca.a.STOCK_LIMIT,Ca=xa({props:{quota:Number,quotaUsed:Number,hideStock:Boolean,skuEventBus:Object,skuStockNum:Number,selectedSku:Object,selectedNum:Number,stepperTitle:String,hideQuotaText:Boolean,selectedSkuComb:Object,disableStepperInput:Boolean,customStepperConfig:Object},data:function(){return{currentNum:this.selectedNum,limitType:wa}},watch:{currentNum:function(t){this.skuEventBus.$emit("sku:numChange",t)},stepperLimit:function(t){t<this.currentNum&&(this.currentNum=t)}},computed:{stock:function(){var t=this.customStepperConfig.stockNum;return void 0!==t?t:this.selectedSkuComb?this.selectedSkuComb.stock_num:this.skuStockNum},stockText:function(){var t=this.customStepperConfig.stockFormatter;return t?t(this.stock):"剩余"+this.stock+"件"},quotaText:function(){var t=this.customStepperConfig,e=t.quotaText;if(t.hideQuotaText)return"";var n="";return e?n=e:this.quota>0&&(n="每人限购"+this.quota+"件"),n},stepperLimit:function(){var t,e=this.quota-this.quotaUsed;return this.quota>0&&e<=this.stock?(t=e<0?0:e,this.limitType=ka):(t=this.stock,this.limitType=wa),t}},methods:{setCurrentNum:function(t){this.currentNum=t},onOverLimit:function(t){this.skuEventBus.$emit("sku:overLimit",{action:t,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed})},onChange:function(t){var e=this.customStepperConfig.handleStepperChange;e&&e(t),this.$emit("change",t)}},render:function(t){var e=this;return t("div",{class:"van-sku-stepper-stock"},[t("div",{class:"van-sku-stepper-container"},[t("div",{class:"van-sku__stepper-title"},[this.stepperTitle||"购买数量",":"]),t(ya,{class:"van-sku__stepper",attrs:{max:this.stepperLimit,disableInput:this.disableStepperInput},on:{overlimit:this.onOverLimit,change:this.onChange},model:{value:e.currentNum,callback:function(t){e.currentNum=t}}})]),!this.hideStock&&t("div",{class:"van-sku__stock"},[this.stockText]),!this.hideQuotaText&&this.quotaText&&t("div",{class:"van-sku__quota"},[this.quotaText])])}});function Sa(t){return/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(t)}var _a=Object(a.k)("uploader"),Oa=_a[0],$a=_a[1],Ta=Oa({inheritAttrs:!1,props:{disabled:Boolean,beforeRead:Function,afterRead:Function,accept:{type:String,default:"image/*"},resultType:{type:String,default:"dataUrl"},maxSize:{type:Number,default:Number.MAX_VALUE}},computed:{detail:function(){return{name:this.$attrs.name||""}}},methods:{onChange:function(t){var e=this,n=t.target.files;!this.disabled&&n.length&&(!(n=1===n.length?n[0]:[].slice.call(n,0))||this.beforeRead&&!this.beforeRead(n,this.detail)?this.resetInput():Array.isArray(n)?Promise.all(n.map(this.readFile)).then(function(t){var i=!1,r=n.map(function(r,o){return r.size>e.maxSize&&(i=!0),{file:n[o],content:t[o]}});e.onAfterRead(r,i)}):this.readFile(n).then(function(t){e.onAfterRead({file:n,content:t},n.size>e.maxSize)}))},readFile:function(t){var e=this;return new Promise(function(n){var i=new FileReader;i.onload=function(t){n(t.target.result)},"dataUrl"===e.resultType?i.readAsDataURL(t):"text"===e.resultType&&i.readAsText(t)})},onAfterRead:function(t,e){e?this.$emit("oversize",t):this.afterRead&&this.afterRead(t,this.detail),this.resetInput()},resetInput:function(){this.$refs.input&&(this.$refs.input.value="")}},render:function(t){var e=this.accept,n=this.disabled;return t("div",{class:$a()},[this.slots(),t("input",{attrs:Object(i.a)({},this.$attrs,{type:"file",accept:e,disabled:n}),ref:"input",class:$a("input"),on:{change:this.onChange}})])}}),ja=Object(a.k)("sku-img-uploader"),Aa=ja[0],Ea=ja[1],Na=Aa({props:{value:String,uploadImg:Function,maxSize:{type:Number,default:6}},data:function(){return{paddingImg:""}},computed:{imgList:function(){return this.value&&!this.paddingImg?[this.value]:[]}},methods:{afterReadFile:function(t){var e=this;this.paddingImg=t.content,this.uploadImg(t.file,t.content).then(function(t){e.$emit("input",t),e.$nextTick(function(){e.paddingImg=""})}).catch(function(){e.paddingImg=""})},onOversize:function(){this.$toast("最大可上传图片为"+this.maxSize+"MB,请尝试压缩图片尺寸")}},render:function(t){var e=this,n=this.imgList,i=this.paddingImg,r=(i||n.length>0)&&t("div",{class:"van-clearfix"},[n.map(function(n){return t("div",{class:Ea("img")},[t("img",{attrs:{src:n}}),t(H,{attrs:{name:"clear"},class:Ea("delete"),on:{click:function(){e.$emit("input","")}}})])}),i&&t("div",{class:Ea("img")},[t("img",{attrs:{src:i}}),t(Q,{attrs:{type:"spinner"},class:Ea("uploading")})])]);return t("div",{class:Ea()},[t(Ta,{attrs:{disabled:!!i,afterRead:this.afterReadFile,maxSize:1024*this.maxSize*1024},on:{oversize:this.onOversize}},[t("div",{class:Ea("header")},[i?t("div",["正在上传..."]):[t(H,{attrs:{name:"photograph"}}),t("span",{class:"label"},[this.value?"重拍":"拍照"," 或 "]),t(H,{attrs:{name:"photo"}}),t("span",{class:"label"},[this.value?"重新选择照片":"选择照片"])]])]),r])}}),Ia=Object(a.k)("sku-messages"),za=Ia[0],Ba=Ia[1],La={id_no:"输入身份证号码",text:"输入文本",tel:"输入数字",email:"输入邮箱",date:"点击选择日期",time:"点击选择时间",textarea:"点击填写段落文本",mobile:"输入手机号码"},Da=za({props:{messages:Array,messageConfig:Object,goodsId:[Number,String]},data:function(){return{messageValues:this.resetMessageValues(this.messages)}},watch:{messages:function(t){this.messageValues=this.resetMessageValues(t)}},methods:{resetMessageValues:function(t){return(t||[]).map(function(){return{value:""}})},getType:function(t){return 1==+t.multiple?"textarea":"id_no"===t.type?"text":t.datetime>0?"datetime-local":t.type},getMessages:function(){var t=this,e={};return this.messageValues.forEach(function(n,i){var r=n.value;t.messages[i].datetime>0&&(r=r.replace(/T/g," ")),e["message_"+i]=r}),e},getCartMessages:function(){var t=this,e={};return this.messageValues.forEach(function(n,i){var r=n.value,o=t.messages[i];o.datetime>0&&(r=r.replace(/T/g," ")),e[o.name]=r}),e},getPlaceholder:function(t){var e=1==+t.multiple?"textarea":t.type;return(this.messageConfig.placeholderMap||{})[e]||La[e]},validateMessages:function(){for(var t=this.messageValues,e=0;e<t.length;e++){var n=t[e].value,i=this.messages[e];if(""===n){if("1"===String(i.required))return("image"===i.type?"请上传":"请填写")+i.name}else{if("tel"===i.type&&!Nt(n))return"请填写正确的数字格式留言";if("mobile"===i.type&&!/^\d{6,20}$/.test(n))return"手机号长度为6-20位数字";if("email"===i.type&&!Sa(n))return"请填写正确的邮箱";if("id_no"===i.type&&(n.length<15||n.length>18))return"请填写正确的身份证号码"}}}},render:function(t){var e=this;return t(kn,{class:Ba()},[this.messages.map(function(n,i){return"image"===n.type?t(Et,{class:Ba("image-cell"),attrs:{label:"仅限一张",title:n.name,required:"1"===String(n.required)},key:e.goodsId+"-"+i},[t(Na,{attrs:{uploadImg:e.messageConfig.uploadImg,maxSize:e.messageConfig.uploadMaxSize},model:{value:e.messageValues[i].value,callback:function(t){e.messageValues[i].value=t}}})]):t(Lt,{attrs:{maxlength:"200",label:n.name,required:"1"===String(n.required),placeholder:e.getPlaceholder(n),type:e.getType(n)},key:e.goodsId+"-"+i,model:{value:e.messageValues[i].value,callback:function(t){e.messageValues[i].value=t}}})})])}}),Ma=Object(a.k)("sku-actions"),Pa=Ma[0],Fa=Ma[1];function Ra(t,e,n,i){var r=function(t){return function(){e.skuEventBus.$emit(t)}};return t("div",o()([{class:Fa()},u(i)]),[e.showAddCartBtn&&t(te,{attrs:{bottomAction:!0,text:"加入购物车"},on:{click:r("sku:addCart")}}),t(te,{attrs:{type:"primary",bottomAction:!0,text:e.buyText||"立即购买"},on:{click:r("sku:buy")}})])}Ra.props={buyText:String,skuEventBus:Object,showAddCartBtn:Boolean};var Ua=Pa(Ra),Va=Object(a.k)("sku")[0],Ha=ca.a.QUOTA_LIMIT,qa=Va({props:{sku:Object,goods:Object,quota:Number,value:Boolean,buyText:String,quotaUsed:Number,goodsId:[Number,String],hideStock:Boolean,hideQuotaText:Boolean,stepperTitle:String,getContainer:Function,customSkuValidator:Function,closeOnClickOverlay:Boolean,disableStepperInput:Boolean,resetStepperOnHide:Boolean,resetSelectedSkuOnHide:Boolean,initialSku:{type:Object,default:function(){return{}}},showSoldoutSku:{type:Boolean,default:!0},showAddCartBtn:{type:Boolean,default:!0},bodyOffsetTop:{type:Number,default:200},messageConfig:{type:Object,default:function(){return{placeholderMap:{},uploadImg:function(){return Promise.resolve()},uploadMaxSize:5}}},customStepperConfig:{type:Object,default:function(){return{}}}},data:function(){return{selectedSku:{},selectedNum:1,show:this.value}},watch:{show:function(t){if(this.$emit("input",t),!t){var e=ha(this.sku.tree,this.selectedSku);this.$emit("sku-close",{selectedSkuValues:e,selectedNum:this.selectedNum,selectedSkuComb:this.selectedSkuComb}),this.resetStepperOnHide&&this.resetStepper(),this.resetSelectedSkuOnHide&&this.resetSelectedSku(this.skuTree)}},value:function(t){this.show=t},skuTree:function(t){this.resetSelectedSku(t)}},computed:{skuGroupClass:function(){return["van-sku-group-container","van-hairline--bottom",{"van-sku-group-container--hide-soldout":!this.showSoldoutSku}]},bodyStyle:function(){if(!this.$isServer)return{maxHeight:window.innerHeight-this.bodyOffsetTop+"px"}},isSkuCombSelected:function(){return ua(this.sku.tree,this.selectedSku)},isSkuEmpty:function(){return 0===Object.keys(this.sku).length},hasSku:function(){return!this.sku.none_sku},selectedSkuComb:function(){return this.hasSku?this.isSkuCombSelected?da(this.sku.list,this.selectedSku):null:{id:this.sku.collection_id,price:Math.round(100*this.sku.price),stock_num:this.sku.stock_num}},price:function(){return this.selectedSkuComb?(this.selectedSkuComb.price/100).toFixed(2):this.sku.price},skuTree:function(){return this.sku.tree||[]},imageList:function(){var t=[this.goods.picture];if(this.skuTree.length>0){var e=this.skuTree.filter(function(t){return"s1"===t.k_s})[0]||{};if(!e.v)return;e.v.forEach(function(e){var n=e.imgUrl||e.img_url;n&&t.push(n)})}return t}},created:function(){var t=new s.default;this.skuEventBus=t,t.$on("sku:close",this.onClose),t.$on("sku:select",this.onSelect),t.$on("sku:numChange",this.onNumChange),t.$on("sku:previewImage",this.onPreviewImage),t.$on("sku:overLimit",this.onOverLimit),t.$on("sku:addCart",this.onAddCart),t.$on("sku:buy",this.onBuy),this.resetStepper(),this.resetSelectedSku(this.skuTree),this.$emit("after-sku-create",t)},methods:{resetStepper:function(){var t=this.$refs.skuStepper,e=this.initialSku.selectedNum,n=Object(a.d)(e)?e:1;t?t.setCurrentNum(n):this.selectedNum=n},resetSelectedSku:function(t){var e=this;this.selectedSku={},t.forEach(function(t){e.selectedSku[t.k_s]=e.initialSku[t.k_s]||ca.b}),t.forEach(function(t){var n=t.k_s,i=t.v[0].id;1===t.v.length&&fa(e.sku.list,e.selectedSku,{key:n,valueId:i})&&(e.selectedSku[n]=i)})},getSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getMessages():{}},getSkuCartMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getCartMessages():{}},validateSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.validateMessages():""},validateSku:function(){if(0===this.selectedNum)return"商品已经无法购买啦";if(this.isSkuCombSelected)return this.validateSkuMessages();if(this.customSkuValidator){var t=this.customSkuValidator(this);if(t)return t}return"请先选择商品规格"},onClose:function(){this.show=!1},onSelect:function(t){var e,n;this.selectedSku=this.selectedSku[t.skuKeyStr]===t.id?Object(i.a)({},this.selectedSku,((e={})[t.skuKeyStr]=ca.b,e)):Object(i.a)({},this.selectedSku,((n={})[t.skuKeyStr]=t.id,n)),this.$emit("sku-selected",{skuValue:t,selectedSku:this.selectedSku,selectedSkuComb:this.selectedSkuComb})},onNumChange:function(t){this.selectedNum=t},onPreviewImage:function(t){var e=this,n=this.imageList.findIndex(function(e){return e===t}),i={index:n,imageList:this.imageList,indexImage:t};this.$emit("preview-on",i),_r({images:this.imageList,startPosition:n,onClose:function(){e.$emit("preview-close",i)}})},onOverLimit:function(t){var e=t.action,n=t.limitType,i=t.quota,r=t.quotaUsed,o=this.customStepperConfig.handleOverLimit;if(o)o(t);else if("minus"===e)Xt("至少选择一件");else if("plus"===e)if(n===Ha){var a="限购"+i+"件";r>0&&(a+=",你已购买"+r+"件"),Xt(a)}else Xt("库存不足")},onAddCart:function(){this.onBuyOrAddCart("add-cart")},onBuy:function(){this.onBuyOrAddCart("buy-clicked")},onBuyOrAddCart:function(t){var e=this.validateSku();e?Xt(e):this.$emit(t,this.getSkuData())},getSkuData:function(){return{goodsId:this.goodsId,selectedNum:this.selectedNum,selectedSkuComb:this.selectedSkuComb,messages:this.getSkuMessages(),cartMessages:this.getSkuCartMessages()}}},render:function(t){var e=this;if(!this.isSkuEmpty){var n=this.sku,i=this.goods,r=this.price,o=this.skuEventBus,a=this.selectedSku,s=this.selectedNum,c=this.stepperTitle,l=this.hideQuotaText,u=this.selectedSkuComb,d={price:r,selectedNum:s,skuEventBus:o,selectedSku:a,selectedSkuComb:u},h=function(t){return e.slots(t,d)},f=h("sku-header")||t(na,{attrs:{sku:n,goods:i,skuEventBus:o,selectedSku:a}},[h("sku-header-price")||t("div",{class:"van-sku__goods-price"},[t("span",{class:"van-sku__price-symbol"},["¥"]),t("span",{class:"van-sku__price-num"},[r])])]),p=h("sku-group")||this.hasSku&&t("div",{class:this.skuGroupClass},[this.skuTree.map(function(e){return t(sa,{attrs:{skuRow:e}},[e.v.map(function(i){return t(va,{attrs:{skuList:n.list,skuValue:i,selectedSku:a,skuEventBus:o,skuKeyStr:e.k_s}})})])})]),v=h("sku-stepper")||t(Ca,{ref:"skuStepper",attrs:{quota:this.quota,hideStock:this.hideStock,quotaUsed:this.quotaUsed,skuEventBus:o,selectedNum:s,selectedSku:a,stepperTitle:c,skuStockNum:n.stock_num,hideQuotaText:l,selectedSkuComb:u,disableStepperInput:this.disableStepperInput,customStepperConfig:this.customStepperConfig},on:{change:function(t){e.$emit("stepper-change",t)}}}),m=h("sku-messages")||t(Da,{ref:"skuMessages",attrs:{goodsId:this.goodsId,messageConfig:this.messageConfig,messages:n.messages}}),g=h("sku-actions")||t(Ua,{attrs:{buyText:this.buyText,skuEventBus:o,showAddCartBtn:this.showAddCartBtn}});return t(tt,{attrs:{position:"bottom",getContainer:this.getContainer,closeOnClickOverlay:this.closeOnClickOverlay},class:"van-sku-container",model:{value:e.show,callback:function(t){e.show=t}}},[f,t("div",{class:"van-sku-body",style:this.bodyStyle},[h("sku-body-top"),p,h("extra-sku-group"),v,m]),g])}}});qa.SkuActions=Ua,qa.SkuHeader=na,qa.SkuMessages=Da,qa.SkuStepper=Ca,qa.SkuRow=sa,qa.SkuRowItem=va,qa.skuHelper=pa,qa.skuConstants=ca.c;var Wa=qa,Ya=Object(a.k)("slider"),Xa=Ya[0],Ka=Ya[1],Qa=Xa({mixins:[v],props:{min:Number,value:Number,disabled:Boolean,vertical:Boolean,activeColor:String,inactiveColor:String,max:{type:Number,default:100},step:{type:Number,default:1},barHeight:{type:String,default:"2px"}},methods:{onTouchStart:function(t){this.disabled||(this.touchStart(t),this.startValue=this.format(this.value))},onTouchMove:function(t){if(k(t,!0),!this.disabled){this.touchMove(t);var e=this.$el.getBoundingClientRect(),n=(this.vertical?this.deltaY:this.deltaX)/(this.vertical?e.height:e.width)*100;this.newValue=this.startValue+n,this.updateValue(this.newValue)}},onTouchEnd:function(){this.disabled||this.updateValue(this.newValue,!0)},onClick:function(t){if(t.stopPropagation(),!this.disabled){var e=this.$el.getBoundingClientRect(),n=(this.vertical?t.clientY-e.top:t.clientX-e.left)/(this.vertical?e.height:e.width)*100;this.updateValue(n,!0)}},updateValue:function(t,e){t=this.format(t),this.$emit("input",t),e&&this.$emit("change",t)},format:function(t){return Math.round(Math.max(this.min,Math.min(t,this.max))/this.step)*this.step}},render:function(t){var e,n=this.vertical,i={background:this.inactiveColor},r=n?"width":"height",o=((e={})[n?"height":"width"]=this.format(this.value)+"%",e[r]=this.barHeight,e.background=this.activeColor,e);return t("div",{style:i,class:Ka({disabled:this.disabled,vertical:n}),on:{click:this.onClick}},[t("div",{class:Ka("bar"),style:o},[t("div",{class:Ka("button-wrapper"),on:{touchstart:this.onTouchStart,touchmove:this.onTouchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[this.slots("button")||t("div",{class:Ka("button")})])])])}}),Ga=Object(a.k)("step"),Ja=Ga[0],Za=Ga[1],ts=Ja({beforeCreate:function(){var t=this.$parent.steps,e=this.$parent.slots().indexOf(this.$vnode);t.splice(-1===e?t.length:e,0,this)},beforeDestroy:function(){var t=this.$parent.steps.indexOf(this);t>-1&&this.$parent.steps.splice(t,1)},computed:{status:function(){var t=this.$parent.steps.indexOf(this),e=this.$parent.active;return t<e?"finish":t===e?"process":void 0}},render:function(t){var e,n=this.status,i=this.$parent,r=i.activeIcon,o=i.activeColor,a=i.direction,s="process"===n&&{color:o};return t("div",{class:["van-hairline",Za([a,(e={},e[n]=n,e)])]},[t("div",{class:Za("title"),style:s},[this.slots()]),t("div",{class:Za("circle-container")},["process"!==n?t("i",{class:Za("circle")}):this.slots("active-icon")||t(H,{attrs:{name:r},style:{color:o}})]),t("div",{class:Za("line")})])}}),es=Object(a.k)("steps"),ns=es[0],is=es[1],rs=ns({props:{icon:String,title:String,active:Number,iconClass:String,description:String,direction:{type:String,default:"horizontal"},activeColor:{type:String,default:on.c},activeIcon:{type:String,default:"checked"}},data:function(){return{steps:[]}},render:function(t){var e=this.icon,n=this.title,i=this.description,r=this.slots,o=(r("icon")||e)&&t("div",{class:is("icon")},[r("icon")||t(H,{attrs:{name:e},class:this.iconClass})]),a=t("div",{class:is("message")},[t("div",{class:is("title")},[n]),t("div",{class:[is("desc"),"van-ellipsis"]},[i])]);return t("div",{class:is([this.direction])},[(n||i)&&t("div",{class:is("status")},[o,a,r("message-extra")]),t("div",{class:is("items",{alone:!n&&!i})},[r()])])}}),os=Object(a.k)("submit-bar"),as=os[0],ss=os[1],cs=os[2];function ls(t,e,n,i){var r=e.tip,a=e.price,s="number"==typeof a;return t("div",o()([{class:ss({"safe-area-inset-bottom":e.safeAreaInsetBottom})},u(i)]),[n.top&&n.top(),(n.tip||r)&&t("div",{class:ss("tip")},[r,n.tip&&n.tip()]),t("div",{class:ss("bar")},[n.default&&n.default(),t("div",{class:ss("text")},[s&&[t("span",[e.label||cs("label")]),t("span",{class:ss("price")},[e.currency+" "+(a/100).toFixed(e.decimalLength)])]]),t(te,{attrs:{square:!0,size:"large",type:e.buttonType,loading:e.loading,disabled:e.disabled,text:e.loading?"":e.buttonText},on:{click:function(){d(i,"submit")}}})])])}ls.props={tip:String,label:String,loading:Boolean,disabled:Boolean,buttonText:String,safeAreaInsetBottom:Boolean,price:{type:Number,default:null},decimalLength:{type:Number,default:2},currency:{type:String,default:"¥"},buttonType:{type:String,default:"danger"}};var us,ds=as(ls),hs=Object(a.k)("swipe-cell"),fs=hs[0],ps=hs[1],vs=fs({mixins:[v,(us={event:"touchstart",method:"onClick"},{mounted:function(){var t=this;us.handler=function(e){t.$el.contains(e.target)||t[us.method]()},b(document,us.event,us.handler)},beforeDestroy:function(){y(document,us.event,us.handler)}})],props:{onClose:Function,disabled:Boolean,leftWidth:Number,rightWidth:Number},data:function(){return{offset:0,dragging:!1}},methods:{open:function(t){var e="left"===t?this.leftWidth:-this.rightWidth;this.swipeMove(e),this.resetSwipeStatus()},close:function(){this.offset=0},resetSwipeStatus:function(){this.swiping=!1,this.opened=!0},swipeMove:function(t){void 0===t&&(t=0),this.offset=Object(a.j)(t,-this.rightWidth,this.leftWidth),this.offset?this.swiping=!0:this.opened=!1},swipeLeaveTransition:function(t){var e=this.offset,n=this.leftWidth,i=this.rightWidth,r=this.opened?.85:.15;"right"===t&&-e>i*r&&i>0?this.open("right"):"left"===t&&e>n*r&&n>0?this.open("left"):this.swipeMove(0)},startDrag:function(t){this.disabled||(this.dragging=!0,this.startOffset=this.offset,this.touchStart(t))},onDrag:function(t){this.disabled||(this.touchMove(t),"horizontal"===this.direction&&(k(t),this.swipeMove(this.deltaX+this.startOffset)))},endDrag:function(){this.disabled||(this.dragging=!1,this.swiping&&this.swipeLeaveTransition(this.offset>0?"left":"right"))},onClick:function(t){void 0===t&&(t="outside"),this.$emit("click",t),this.offset&&(this.onClose?this.onClose(t,this):this.swipeMove(0))}},render:function(t){var e=this,n=function(t,n){return function(i){n&&i.stopPropagation(),e.onClick(t)}},i={transform:"translate3d("+this.offset+"px, 0, 0)",transition:this.dragging?"none":".6s cubic-bezier(0.18, 0.89, 0.32, 1)"};return t("div",{class:ps(),on:{click:n("cell"),touchstart:this.startDrag,touchmove:this.onDrag,touchend:this.endDrag,touchcancel:this.endDrag}},[t("div",{class:ps("wrapper"),style:i,on:{transitionend:function(){e.swiping=!1}}},[this.leftWidth?t("div",{class:ps("left"),on:{click:n("left",!0)}},[this.slots("left")]):null,this.slots(),this.rightWidth?t("div",{class:ps("right"),on:{click:n("right",!0)}},[this.slots("right")]):null])])}}),ms=Object(a.k)("tabbar"),gs=ms[0],bs=ms[1],ys=gs({data:function(){return{items:[]}},props:{value:Number,activeColor:String,safeAreaInsetBottom:Boolean,fixed:{type:Boolean,default:!0},zIndex:{type:Number,default:1}},watch:{items:function(){this.setActiveItem()},value:function(){this.setActiveItem()}},methods:{setActiveItem:function(){var t=this;this.items.forEach(function(e,n){e.active=n===t.value})},onChange:function(t){t!==this.value&&(this.$emit("input",t),this.$emit("change",t))}},render:function(t){return t("div",{style:{zIndex:this.zIndex},class:["van-hairline--top-bottom",bs({fixed:this.fixed,"safe-area-inset-bottom":this.safeAreaInsetBottom})]},[this.slots()])}}),xs=Object(a.k)("tabbar-item"),ks=xs[0],ws=xs[1],Cs=ks({props:Object(i.a)({},Ot,{icon:String,dot:Boolean,info:[String,Number]}),data:function(){return{active:!1}},beforeCreate:function(){this.$parent.items.push(this)},destroyed:function(){this.$parent.items.splice(this.$parent.items.indexOf(this),1)},methods:{onClick:function(t){this.$parent.onChange(this.$parent.items.indexOf(this)),this.$emit("click",t),St(this.$router,this)}},render:function(t){var e=this.icon,n=this.slots,i=this.active,r=i?{color:this.$parent.activeColor}:null;return t("div",{class:ws({active:i}),style:r,on:{click:this.onClick}},[t("div",{class:ws("icon",{dot:this.dot})},[n("icon",{active:i})||e&&t(H,{attrs:{name:e}}),t(R,{attrs:{info:this.info}})]),t("div",{class:ws("text")},[n("default",{active:i})])])}}),Ss=Object(a.k)("tree-select"),_s=Ss[0],Os=Ss[1];function $s(t,e,n,i){var r=e.height,a=e.items,s=e.mainActiveIndex,c=e.activeId,l=(a[s]||{}).children||[];return t("div",o()([{class:Os(),style:{height:r+"px"}},u(i)]),[t("div",{class:Os("nav")},[a.map(function(e,n){return t("div",{key:n,class:["van-ellipsis",Os("nitem",{active:s===n,disabled:e.disabled})],on:{click:function(){e.disabled||d(i,"navclick",n)}}},[e.text])})]),t("div",{class:Os("content")},[l.map(function(e){return t("div",{key:e.id,class:["van-ellipsis",Os("item",{active:c===e.id,disabled:e.disabled})],on:{click:function(){e.disabled||d(i,"itemclick",e)}}},[e.text,c===e.id&&t(H,{attrs:{name:"checked",size:"16px"},class:Os("selected")})])})])])}$s.props={items:Array,mainActiveIndex:Number,activeId:{type:[Number,String],default:0},height:{type:Number,default:300}};var Ts=_s($s),js="@@Waterfall",As=300;function Es(){var t=this;if(!this.el[js].binded){this.el[js].binded=!0,this.scrollEventListener=function(){var t=this.el,e=this.scrollEventTarget;if(!this.disabled){var n=I(e),i=B(e),r=n+i;if(i){(t===e?e.scrollHeight-r<this.offset:z(t)-z(e)+B(t)-i<this.offset)&&this.cb.lower&&this.cb.lower({target:e,top:n});(t===e?n<this.offset:z(t)-z(e)+this.offset>0)&&this.cb.upper&&this.cb.upper({target:e,top:n})}}}.bind(this),this.scrollEventTarget=N(this.el);var e=this.el.getAttribute("waterfall-disabled"),n=!1;e&&(this.vm.$watch(e,function(e){t.disabled=e,t.scrollEventListener()}),n=Boolean(this.vm[e])),this.disabled=n;var i=this.el.getAttribute("waterfall-offset");this.offset=Number(i)||As,b(this.scrollEventTarget,"scroll",this.scrollEventListener,!0),this.scrollEventListener()}}function Ns(t){t[js].vm.$nextTick(function(){Es.call(t[js])})}var Is=function(t){return{bind:function(e,n,i){e[js]||(e[js]={el:e,vm:i.context,cb:{}}),e[js].cb[t]=n.value,function(t){var e=t[js];e.vm._isMounted?Ns(t):e.vm.$on("hook:mounted",function(){Ns(t)})}(e)},update:function(t){var e=t[js];e.scrollEventListener&&e.scrollEventListener()},unbind:function(t){var e=t[js];e.scrollEventTarget&&y(e.scrollEventTarget,"scroll",e.scrollEventListener)}}};Is.install=function(t){t.directive("WaterfallLower",Is("lower")),t.directive("WaterfallUpper",Is("upper"))};var zs=Is;n.d(e,"a",function(){return _r}),n.d(e,"b",function(){return $r}),n.d(e,"c",function(){return Ir.a}),n.d(e,"d",function(){return zs});var Bs=[ot,Ae,Ke,wt,Ze,rn,te,mn,Et,kn,Cn,$n,zn,Mn,Un,Yn,Zn,oi,di,bi,Si,Mi,Yi,se,Lt,Ji,ir,cr,H,_r,R,Nr,Q,Mr,Ur,Jr,lo,$,mo,ko,Oo,bt,tt,Ao,Lo,Me,ze,Ro,qo,Go,Wa,Qa,ts,ya,rs,ds,hr,vs,mr,ye,Se,Ti,ys,Cs,Ii,dn,Xt,Ts,Ta],Ls=function(t){Bs.forEach(function(e){t.use(e)})};"undefined"!=typeof window&&window.Vue&&Ls(window.Vue);e.e={install:Ls,version:"1.6.28"}},function(t,e,n){var i=n(29).version;t.exports={"zh-CN":{header:{logo:{image:"https://img.yzcdn.cn/public_files/2017/12/18/fd78cf6bb5d12e2a119d0576bedfd230.png",title:"Vant",version:i,href:"#/"},nav:{"Vue 组件":"https://vant-ui.github.io/vant/v1/","小程序组件":"https://vant-ui.github.io/vant-weapp/",lang:{text:"En",from:"zh-CN",to:"en-US"},github:"https://github.com/youzan/vant"}},nav:[{name:"开发指南",groups:[{list:[{path:"/intro",title:"介绍"},{path:"/quickstart",title:"快速上手"},{path:"/changelog",title:"更新日志"},{path:"/style",title:"内置样式"},{path:"/theme",title:"定制主题"},{path:"/contribution",title:"开发指南"},{path:"/design",title:"设计资源"},{path:"/style-guide",title:"风格指南"},{path:"/demo",title:"示例页面"},{path:"/locale",title:"国际化"}]}]},{name:"组件",showInMobile:!0,groups:[{groupName:"基础组件",icon:"https://img.yzcdn.cn/vant/basic-0401.svg",list:[{path:"/button",title:"Button 按钮"},{path:"/cell",title:"Cell 单元格"},{path:"/icon",title:"Icon 图标"},{path:"/col",title:"Layout 布局"},{path:"/popup",title:"Popup 弹出层"}]},{groupName:"表单组件",icon:"https://img.yzcdn.cn/vant/form-0401.svg",list:[{path:"/checkbox",title:"Checkbox 复选框"},{path:"/datetime-picker",title:"DatetimePicker 时间选择"},{path:"/field",title:"Field 输入框"},{path:"/number-keyboard",title:"NumberKeyboard 数字键盘"},{path:"/password-input",title:"PasswordInput 密码输入框"},{path:"/picker",title:"Picker 选择器"},{path:"/radio",title:"Radio 单选框"},{path:"/rate",title:"Rate 评分"},{path:"/search",title:"Search 搜索"},{path:"/slider",title:"Slider 滑块"},{path:"/stepper",title:"Stepper 步进器"},{path:"/switch",title:"Switch 开关"},{path:"/switch-cell",title:"SwitchCell 开关单元格"},{path:"/uploader",title:"Uploader 图片上传"}]},{groupName:"反馈组件",icon:"passed",list:[{path:"/actionsheet",title:"Actionsheet 上拉菜单"},{path:"/dialog",title:"Dialog 弹出框"},{path:"/loading",title:"Loading 加载"},{path:"/notify",title:"Notify 消息通知"},{path:"/pull-refresh",title:"PullRefresh 下拉刷新"},{path:"/swipe-cell",title:"SwipeCell 滑动单元格"},{path:"/toast",title:"Toast 轻提示"}]},{groupName:"展示组件",icon:"photo-o",list:[{path:"/circle",title:"Circle 环形进度条"},{path:"/collapse",title:"Collapse 折叠面板"},{path:"/image-preview",title:"ImagePreview 图片预览"},{path:"/lazyload",title:"Lazyload 图片懒加载"},{path:"/list",title:"List 列表"},{path:"/notice-bar",title:"NoticeBar 通告栏"},{path:"/panel",title:"Panel 面板"},{path:"/progress",title:"Progress 进度条"},{path:"/steps",title:"Steps 步骤条"},{path:"/swipe",title:"Swipe 轮播"},{path:"/tag",title:"Tag 标记"}]},{groupName:"导航组件",icon:"https://img.yzcdn.cn/vant/nav-0401.svg",list:[{path:"/badge",title:"Badge 徽章"},{path:"/nav-bar",title:"NavBar 导航栏"},{path:"/pagination",title:"Pagination 分页"},{path:"/tab",title:"Tab 标签页"},{path:"/tabbar",title:"Tabbar 标签栏"},{path:"/tree-select",title:"TreeSelect 分类选择"}]},{groupName:"业务组件",icon:"ellipsis",list:[{path:"/address-edit",title:"AddressEdit 地址编辑"},{path:"/address-list",title:"AddressList 地址列表"},{path:"/area",title:"Area 省市区选择"},{path:"/card",title:"Card 商品卡片"},{path:"/contact-card",title:"Contact 联系人"},{path:"/coupon-list",title:"Coupon 优惠券"},{path:"/goods-action",title:"GoodsAction 商品导航"},{path:"/submit-bar",title:"SubmitBar 提交订单栏"},{path:"/sku",title:"Sku 商品规格"}]}]}]},"en-US":{header:{logo:{image:"https://img.yzcdn.cn/public_files/2017/12/18/fd78cf6bb5d12e2a119d0576bedfd230.png",title:"Vant",version:i,href:"#/"},nav:{lang:{text:"中文",from:"en-US",to:"zh-CN"},github:"https://github.com/youzan/vant"}},nav:[{name:"Essentials",groups:[{list:[{path:"/intro",title:"Introduction"},{path:"/quickstart",title:"Quickstart"},{path:"/changelog",title:"Changelog"},{path:"/style",title:"Built-in style"},{path:"/theme",title:"Custom Theme"},{path:"/demo",title:"Demo pages"},{path:"/locale",title:"Internationalization"}]}]},{name:"Components",showInMobile:!0,groups:[{groupName:"Basic Components",icon:"https://img.yzcdn.cn/vant/basic-0401.svg",list:[{path:"/button",title:"Button"},{path:"/cell",title:"Cell"},{path:"/icon",title:"Icon"},{path:"/col",title:"Layout"},{path:"/popup",title:"Popup"}]},{groupName:"Form Components",icon:"https://img.yzcdn.cn/vant/form-0401.svg",list:[{path:"/checkbox",title:"Checkbox"},{path:"/datetime-picker",title:"DatetimePicker"},{path:"/field",title:"Field"},{path:"/number-keyboard",title:"NumberKeyboard"},{path:"/password-input",title:"PasswordInput"},{path:"/picker",title:"Picker"},{path:"/radio",title:"Radio"},{path:"/rate",title:"Rate"},{path:"/search",title:"Search"},{path:"/slider",title:"Slider"},{path:"/stepper",title:"Stepper"},{path:"/switch",title:"Switch"},{path:"/switch-cell",title:"SwitchCell"},{path:"/uploader",title:"Uploader"}]},{groupName:"Action Components",icon:"passed",list:[{path:"/actionsheet",title:"Actionsheet"},{path:"/dialog",title:"Dialog"},{path:"/loading",title:"Loading"},{path:"/notify",title:"Notify"},{path:"/pull-refresh",title:"PullRefresh"},{path:"/swipe-cell",title:"SwipeCell"},{path:"/toast",title:"Toast"}]},{groupName:"Display Components",icon:"photo-o",list:[{path:"/circle",title:"Circle"},{path:"/collapse",title:"Collapse"},{path:"/image-preview",title:"ImagePreview"},{path:"/lazyload",title:"Lazyload"},{path:"/list",title:"List"},{path:"/notice-bar",title:"NoticeBar"},{path:"/panel",title:"Panel"},{path:"/progress",title:"Progress"},{path:"/steps",title:"Steps"},{path:"/swipe",title:"Swipe"},{path:"/tag",title:"Tag"}]},{groupName:"Navigation Components",icon:"https://img.yzcdn.cn/vant/nav-0401.svg",list:[{path:"/badge",title:"Badge"},{path:"/nav-bar",title:"NavBar"},{path:"/pagination",title:"Pagination"},{path:"/tab",title:"Tab"},{path:"/tabbar",title:"Tabbar"},{path:"/tree-select",title:"TreeSelect"}]},{groupName:"Business Components",icon:"ellipsis",list:[{path:"/address-edit",title:"AddressEdit"},{path:"/address-list",title:"AddressList"},{path:"/area",title:"Area"},{path:"/card",title:"Card"},{path:"/contact-card",title:"Contact"},{path:"/coupon-list",title:"Coupon"},{path:"/goods-action",title:"GoodsAction"},{path:"/submit-bar",title:"SubmitBar"},{path:"/sku",title:"Sku"}]}]}]}}},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=(a=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"});return[n].concat(o).concat([r]).join("\n")}var a;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];null!=o&&(i[o]=!0)}for(r=0;r<t.length;r++){var a=t[r];null!=a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){var i,r,o={},a=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===r&&(r=i.apply(this,arguments)),r}),s=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var i=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,n);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}}(),c=null,l=0,u=[],d=n(30);function h(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=o[i.id];if(r){r.refs++;for(var a=0;a<r.parts.length;a++)r.parts[a](i.parts[a]);for(;a<i.parts.length;a++)r.parts.push(b(i.parts[a],e))}else{var s=[];for(a=0;a<i.parts.length;a++)s.push(b(i.parts[a],e));o[i.id]={id:i.id,refs:1,parts:s}}}}function f(t,e){for(var n=[],i={},r=0;r<t.length;r++){var o=t[r],a=e.base?o[0]+e.base:o[0],s={css:o[1],media:o[2],sourceMap:o[3]};i[a]?i[a].parts.push(s):n.push(i[a]={id:a,parts:[s]})}return n}function p(t,e){var n=s(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=u[u.length-1];if("top"===t.insertAt)i?i.nextSibling?n.insertBefore(e,i.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),u.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=s(t.insertAt.before,n);n.insertBefore(e,r)}}function v(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=u.indexOf(t);e>=0&&u.splice(e,1)}function m(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var i=function(){0;return n.nc}();i&&(t.attrs.nonce=i)}return g(e,t.attrs),p(t,e),e}function g(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function b(t,e){var n,i,r,o;if(e.transform&&t.css){if(!(o="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=o}if(e.singleton){var a=l++;n=c||(c=m(e)),i=k.bind(null,n,a,!1),r=k.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),p(t,e),e}(e),i=function(t,e,n){var i=n.css,r=n.sourceMap,o=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||o)&&(i=d(i));r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([i],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,e),r=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(e),i=function(t,e){var n=e.css,i=e.media;i&&t.setAttribute("media",i);if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,n),r=function(){v(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=f(t,e);return h(n,e),function(t){for(var i=[],r=0;r<n.length;r++){var a=n[r];(s=o[a.id]).refs--,i.push(s)}t&&h(f(t,e),e);for(r=0;r<i.length;r++){var s;if(0===(s=i[r]).refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete o[s.id]}}}};var y,x=(y=[],function(t,e){return y[t]=e,y.filter(Boolean).join("\n")});function k(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=x(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}},function(t,e,n){"use strict";
|
||
/*!
|
||
* vue-router v3.0.6
|
||
* (c) 2019 Evan You
|
||
* @license MIT
|
||
*/function i(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function r(t,e){for(var n in e)t[n]=e[n];return t}var o={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,i=e.children,o=e.parent,a=e.data;a.routerView=!0;for(var s=o.$createElement,c=n.name,l=o.$route,u=o._routerViewCache||(o._routerViewCache={}),d=0,h=!1;o&&o._routerRoot!==o;){var f=o.$vnode&&o.$vnode.data;f&&(f.routerView&&d++,f.keepAlive&&o._inactive&&(h=!0)),o=o.$parent}if(a.routerViewDepth=d,h)return s(u[c],a,i);var p=l.matched[d];if(!p)return u[c]=null,s();var v=u[c]=p.components[c];a.registerRouteInstance=function(t,e){var n=p.instances[c];(e&&n!==t||!e&&n===t)&&(p.instances[c]=e)},(a.hook||(a.hook={})).prepatch=function(t,e){p.instances[c]=e.componentInstance},a.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==p.instances[c]&&(p.instances[c]=t.componentInstance)};var m=a.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(l,p.props&&p.props[c]);if(m){m=a.props=r({},m);var g=a.attrs=a.attrs||{};for(var b in m)v.props&&b in v.props||(g[b]=m[b],delete m[b])}return s(v,a,i)}};var a=/[!'()*]/g,s=function(t){return"%"+t.charCodeAt(0).toString(16)},c=/%2C/g,l=function(t){return encodeURIComponent(t).replace(a,s).replace(c,",")},u=decodeURIComponent;function d(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),i=u(n.shift()),r=n.length>0?u(n.join("=")):null;void 0===e[i]?e[i]=r:Array.isArray(e[i])?e[i].push(r):e[i]=[e[i],r]}),e):e}function h(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return l(e);if(Array.isArray(n)){var i=[];return n.forEach(function(t){void 0!==t&&(null===t?i.push(l(e)):i.push(l(e)+"="+l(t)))}),i.join("&")}return l(e)+"="+l(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}var f=/\/?$/;function p(t,e,n,i){var r=i&&i.options.stringifyQuery,o=e.query||{};try{o=v(o)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:b(e,r),matched:t?g(t):[]};return n&&(a.redirectedFrom=b(n,r)),Object.freeze(a)}function v(t){if(Array.isArray(t))return t.map(v);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=v(t[n]);return e}return t}var m=p(null,{path:"/"});function g(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function b(t,e){var n=t.path,i=t.query;void 0===i&&(i={});var r=t.hash;return void 0===r&&(r=""),(n||"/")+(e||h)(i)+r}function y(t,e){return e===m?t===e:!!e&&(t.path&&e.path?t.path.replace(f,"")===e.path.replace(f,"")&&t.hash===e.hash&&x(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&x(t.query,e.query)&&x(t.params,e.params)))}function x(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),i=Object.keys(e);return n.length===i.length&&n.every(function(n){var i=t[n],r=e[n];return"object"==typeof i&&"object"==typeof r?x(i,r):String(i)===String(r)})}var k,w=[String,Object],C=[String,Array],S={name:"RouterLink",props:{to:{type:w,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:C,default:"click"}},render:function(t){var e=this,n=this.$router,i=this.$route,o=n.resolve(this.to,i,this.append),a=o.location,s=o.route,c=o.href,l={},u=n.options.linkActiveClass,d=n.options.linkExactActiveClass,h=null==u?"router-link-active":u,v=null==d?"router-link-exact-active":d,m=null==this.activeClass?h:this.activeClass,g=null==this.exactActiveClass?v:this.exactActiveClass,b=a.path?p(null,a,null,n):s;l[g]=y(i,b),l[m]=this.exact?l[g]:function(t,e){return 0===t.path.replace(f,"/").indexOf(e.path.replace(f,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(i,b);var x=function(t){_(t)&&(e.replace?n.replace(a):n.push(a))},k={click:_};Array.isArray(this.event)?this.event.forEach(function(t){k[t]=x}):k[this.event]=x;var w={class:l};if("a"===this.tag)w.on=k,w.attrs={href:c};else{var C=function t(e){if(e)for(var n,i=0;i<e.length;i++){if("a"===(n=e[i]).tag)return n;if(n.children&&(n=t(n.children)))return n}}(this.$slots.default);if(C)C.isStatic=!1,(C.data=r({},C.data)).on=k,(C.data.attrs=r({},C.data.attrs)).href=c;else w.on=k}return t(this.tag,w,this.$slots.default)}};function _(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}var O="undefined"!=typeof window;function $(t,e,n){var i=t.charAt(0);if("/"===i)return t;if("?"===i||"#"===i)return e+t;var r=e.split("/");n&&r[r.length-1]||r.pop();for(var o=t.replace(/^\//,"").split("/"),a=0;a<o.length;a++){var s=o[a];".."===s?r.pop():"."!==s&&r.push(s)}return""!==r[0]&&r.unshift(""),r.join("/")}function T(t){return t.replace(/\/\//g,"/")}var j=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},A=H,E=L,N=function(t,e){return M(L(t,e))},I=M,z=V,B=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function L(t,e){for(var n,i=[],r=0,o=0,a="",s=e&&e.delimiter||"/";null!=(n=B.exec(t));){var c=n[0],l=n[1],u=n.index;if(a+=t.slice(o,u),o=u+c.length,l)a+=l[1];else{var d=t[o],h=n[2],f=n[3],p=n[4],v=n[5],m=n[6],g=n[7];a&&(i.push(a),a="");var b=null!=h&&null!=d&&d!==h,y="+"===m||"*"===m,x="?"===m||"*"===m,k=n[2]||s,w=p||v;i.push({name:f||r++,prefix:h||"",delimiter:k,optional:x,repeat:y,partial:b,asterisk:!!g,pattern:w?F(w):g?".*":"[^"+P(k)+"]+?"})}}return o<t.length&&(a+=t.substr(o)),a&&i.push(a),i}function D(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function M(t){for(var e=new Array(t.length),n=0;n<t.length;n++)"object"==typeof t[n]&&(e[n]=new RegExp("^(?:"+t[n].pattern+")$"));return function(n,i){for(var r="",o=n||{},a=(i||{}).pretty?D:encodeURIComponent,s=0;s<t.length;s++){var c=t[s];if("string"!=typeof c){var l,u=o[c.name];if(null==u){if(c.optional){c.partial&&(r+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(j(u)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(u)+"`");if(0===u.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var d=0;d<u.length;d++){if(l=a(u[d]),!e[s].test(l))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(l)+"`");r+=(0===d?c.prefix:c.delimiter)+l}}else{if(l=c.asterisk?encodeURI(u).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}):a(u),!e[s].test(l))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+l+'"');r+=c.prefix+l}}else r+=c}return r}}function P(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function F(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function R(t,e){return t.keys=e,t}function U(t){return t.sensitive?"":"i"}function V(t,e,n){j(e)||(n=e||n,e=[]);for(var i=(n=n||{}).strict,r=!1!==n.end,o="",a=0;a<t.length;a++){var s=t[a];if("string"==typeof s)o+=P(s);else{var c=P(s.prefix),l="(?:"+s.pattern+")";e.push(s),s.repeat&&(l+="(?:"+c+l+")*"),o+=l=s.optional?s.partial?c+"("+l+")?":"(?:"+c+"("+l+"))?":c+"("+l+")"}}var u=P(n.delimiter||"/"),d=o.slice(-u.length)===u;return i||(o=(d?o.slice(0,-u.length):o)+"(?:"+u+"(?=$))?"),o+=r?"$":i&&d?"":"(?="+u+"|$)",R(new RegExp("^"+o,U(n)),e)}function H(t,e,n){return j(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)e.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return R(t,e)}(t,e):j(t)?function(t,e,n){for(var i=[],r=0;r<t.length;r++)i.push(H(t[r],e,n).source);return R(new RegExp("(?:"+i.join("|")+")",U(n)),e)}(t,e,n):function(t,e,n){return V(L(t,n),e,n)}(t,e,n)}A.parse=E,A.compile=N,A.tokensToFunction=I,A.tokensToRegExp=z;var q=Object.create(null);function W(t,e,n){e=e||{};try{var i=q[t]||(q[t]=A.compile(t));return e.pathMatch&&(e[0]=e.pathMatch),i(e,{pretty:!0})}catch(t){return""}finally{delete e[0]}}function Y(t,e,n,i){var r=e||[],o=n||Object.create(null),a=i||Object.create(null);t.forEach(function(t){!function t(e,n,i,r,o,a){var s=r.path;var c=r.name;0;var l=r.pathToRegexpOptions||{};var u=function(t,e,n){n||(t=t.replace(/\/$/,""));if("/"===t[0])return t;if(null==e)return t;return T(e.path+"/"+t)}(s,o,l.strict);"boolean"==typeof r.caseSensitive&&(l.sensitive=r.caseSensitive);var d={path:u,regex:X(u,l),components:r.components||{default:r.component},instances:{},name:c,parent:o,matchAs:a,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};r.children&&r.children.forEach(function(r){var o=a?T(a+"/"+r.path):void 0;t(e,n,i,r,d,o)});if(void 0!==r.alias){var h=Array.isArray(r.alias)?r.alias:[r.alias];h.forEach(function(a){var s={path:a,children:r.children};t(e,n,i,s,o,d.path||"/")})}n[d.path]||(e.push(d.path),n[d.path]=d);c&&(i[c]||(i[c]=d))}(r,o,a,t)});for(var s=0,c=r.length;s<c;s++)"*"===r[s]&&(r.push(r.splice(s,1)[0]),c--,s--);return{pathList:r,pathMap:o,nameMap:a}}function X(t,e){return A(t,[],e)}function K(t,e,n,i){var o="string"==typeof t?{path:t}:t;if(o._normalized)return o;if(o.name)return r({},t);if(!o.path&&o.params&&e){(o=r({},o))._normalized=!0;var a=r(r({},e.params),o.params);if(e.name)o.name=e.name,o.params=a;else if(e.matched.length){var s=e.matched[e.matched.length-1].path;o.path=W(s,a,e.path)}else 0;return o}var c=function(t){var e="",n="",i=t.indexOf("#");i>=0&&(e=t.slice(i),t=t.slice(0,i));var r=t.indexOf("?");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{path:t,query:n,hash:e}}(o.path||""),l=e&&e.path||"/",u=c.path?$(c.path,l,n||o.append):l,h=function(t,e,n){void 0===e&&(e={});var i,r=n||d;try{i=r(t||"")}catch(t){i={}}for(var o in e)i[o]=e[o];return i}(c.query,o.query,i&&i.options.parseQuery),f=o.hash||c.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,path:u,query:h,hash:f}}function Q(t,e){var n=Y(t),i=n.pathList,r=n.pathMap,o=n.nameMap;function a(t,n,a){var s=K(t,n,!1,e),l=s.name;if(l){var u=o[l];if(!u)return c(null,s);var d=u.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!=typeof s.params&&(s.params={}),n&&"object"==typeof n.params)for(var h in n.params)!(h in s.params)&&d.indexOf(h)>-1&&(s.params[h]=n.params[h]);if(u)return s.path=W(u.path,s.params),c(u,s,a)}else if(s.path){s.params={};for(var f=0;f<i.length;f++){var p=i[f],v=r[p];if(G(v.regex,s.path,s.params))return c(v,s,a)}}return c(null,s)}function s(t,n){var i=t.redirect,r="function"==typeof i?i(p(t,n,null,e)):i;if("string"==typeof r&&(r={path:r}),!r||"object"!=typeof r)return c(null,n);var s=r,l=s.name,u=s.path,d=n.query,h=n.hash,f=n.params;if(d=s.hasOwnProperty("query")?s.query:d,h=s.hasOwnProperty("hash")?s.hash:h,f=s.hasOwnProperty("params")?s.params:f,l){o[l];return a({_normalized:!0,name:l,query:d,hash:h,params:f},void 0,n)}if(u){var v=function(t,e){return $(t,e.parent?e.parent.path:"/",!0)}(u,t);return a({_normalized:!0,path:W(v,f),query:d,hash:h},void 0,n)}return c(null,n)}function c(t,n,i){return t&&t.redirect?s(t,i||n):t&&t.matchAs?function(t,e,n){var i=a({_normalized:!0,path:W(n,e.params)});if(i){var r=i.matched,o=r[r.length-1];return e.params=i.params,c(o,e)}return c(null,e)}(0,n,t.matchAs):p(t,n,i,e)}return{match:a,addRoutes:function(t){Y(t,i,r,o)}}}function G(t,e,n){var i=e.match(t);if(!i)return!1;if(!n)return!0;for(var r=1,o=i.length;r<o;++r){var a=t.keys[r-1],s="string"==typeof i[r]?decodeURIComponent(i[r]):i[r];a&&(n[a.name||"pathMatch"]=s)}return!0}var J=Object.create(null);function Z(){window.history.replaceState({key:dt()},"",window.location.href.replace(window.location.origin,"")),window.addEventListener("popstate",function(t){var e;et(),t.state&&t.state.key&&(e=t.state.key,lt=e)})}function tt(t,e,n,i){if(t.app){var r=t.options.scrollBehavior;r&&t.app.$nextTick(function(){var o=function(){var t=dt();if(t)return J[t]}(),a=r.call(t,e,n,i?o:null);a&&("function"==typeof a.then?a.then(function(t){ot(t,o)}).catch(function(t){0}):ot(a,o))})}}function et(){var t=dt();t&&(J[t]={x:window.pageXOffset,y:window.pageYOffset})}function nt(t){return rt(t.x)||rt(t.y)}function it(t){return{x:rt(t.x)?t.x:window.pageXOffset,y:rt(t.y)?t.y:window.pageYOffset}}function rt(t){return"number"==typeof t}function ot(t,e){var n,i="object"==typeof t;if(i&&"string"==typeof t.selector){var r=document.querySelector(t.selector);if(r){var o=t.offset&&"object"==typeof t.offset?t.offset:{};e=function(t,e){var n=document.documentElement.getBoundingClientRect(),i=t.getBoundingClientRect();return{x:i.left-n.left-e.x,y:i.top-n.top-e.y}}(r,o={x:rt((n=o).x)?n.x:0,y:rt(n.y)?n.y:0})}else nt(t)&&(e=it(t))}else i&&nt(t)&&(e=it(t));e&&window.scrollTo(e.x,e.y)}var at,st=O&&((-1===(at=window.navigator.userAgent).indexOf("Android 2.")&&-1===at.indexOf("Android 4.0")||-1===at.indexOf("Mobile Safari")||-1!==at.indexOf("Chrome")||-1!==at.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history),ct=O&&window.performance&&window.performance.now?window.performance:Date,lt=ut();function ut(){return ct.now().toFixed(3)}function dt(){return lt}function ht(t,e){et();var n=window.history;try{e?n.replaceState({key:lt},"",t):(lt=ut(),n.pushState({key:lt},"",t))}catch(n){window.location[e?"replace":"assign"](t)}}function ft(t){ht(t,!0)}function pt(t,e,n){var i=function(r){r>=t.length?n():t[r]?e(t[r],function(){i(r+1)}):i(r+1)};i(0)}function vt(t){return function(e,n,r){var o=!1,a=0,s=null;mt(t,function(t,e,n,c){if("function"==typeof t&&void 0===t.cid){o=!0,a++;var l,u=yt(function(e){var i;((i=e).__esModule||bt&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:k.extend(e),n.components[c]=e,--a<=0&&r()}),d=yt(function(t){var e="Failed to resolve async component "+c+": "+t;s||(s=i(t)?t:new Error(e),r(s))});try{l=t(u,d)}catch(t){d(t)}if(l)if("function"==typeof l.then)l.then(u,d);else{var h=l.component;h&&"function"==typeof h.then&&h.then(u,d)}}}),o||r()}}function mt(t,e){return gt(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function gt(t){return Array.prototype.concat.apply([],t)}var bt="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function yt(t){var e=!1;return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(!e)return e=!0,t.apply(this,n)}}var xt=function(t,e){this.router=t,this.base=function(t){if(!t)if(O){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=m,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function kt(t,e,n,i){var r=mt(t,function(t,i,r,o){var a=function(t,e){"function"!=typeof t&&(t=k.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map(function(t){return n(t,i,r,o)}):n(a,i,r,o)});return gt(i?r.reverse():r)}function wt(t,e){if(e)return function(){return t.apply(e,arguments)}}xt.prototype.listen=function(t){this.cb=t},xt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},xt.prototype.onError=function(t){this.errorCbs.push(t)},xt.prototype.transitionTo=function(t,e,n){var i=this,r=this.router.match(t,this.current);this.confirmTransition(r,function(){i.updateRoute(r),e&&e(r),i.ensureURL(),i.ready||(i.ready=!0,i.readyCbs.forEach(function(t){t(r)}))},function(t){n&&n(t),t&&!i.ready&&(i.ready=!0,i.readyErrorCbs.forEach(function(e){e(t)}))})},xt.prototype.confirmTransition=function(t,e,n){var r=this,o=this.current,a=function(t){i(t)&&(r.errorCbs.length?r.errorCbs.forEach(function(e){e(t)}):console.error(t)),n&&n(t)};if(y(t,o)&&t.matched.length===o.matched.length)return this.ensureURL(),a();var s=function(t,e){var n,i=Math.max(t.length,e.length);for(n=0;n<i&&t[n]===e[n];n++);return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}(this.current.matched,t.matched),c=s.updated,l=s.deactivated,u=s.activated,d=[].concat(function(t){return kt(t,"beforeRouteLeave",wt,!0)}(l),this.router.beforeHooks,function(t){return kt(t,"beforeRouteUpdate",wt)}(c),u.map(function(t){return t.beforeEnter}),vt(u));this.pending=t;var h=function(e,n){if(r.pending!==t)return a();try{e(t,o,function(t){!1===t||i(t)?(r.ensureURL(!0),a(t)):"string"==typeof t||"object"==typeof t&&("string"==typeof t.path||"string"==typeof t.name)?(a(),"object"==typeof t&&t.replace?r.replace(t):r.push(t)):n(t)})}catch(t){a(t)}};pt(d,h,function(){var n=[];pt(function(t,e,n){return kt(t,"beforeRouteEnter",function(t,i,r,o){return function(t,e,n,i,r){return function(o,a,s){return t(o,a,function(t){s(t),"function"==typeof t&&i.push(function(){!function t(e,n,i,r){n[i]&&!n[i]._isBeingDestroyed?e(n[i]):r()&&setTimeout(function(){t(e,n,i,r)},16)}(t,e.instances,n,r)})})}}(t,r,o,e,n)})}(u,n,function(){return r.current===t}).concat(r.router.resolveHooks),h,function(){if(r.pending!==t)return a();r.pending=null,e(t),r.router.app&&r.router.app.$nextTick(function(){n.forEach(function(t){t()})})})})},xt.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach(function(n){n&&n(t,e)})};var Ct=function(t){function e(e,n){var i=this;t.call(this,e,n);var r=e.options.scrollBehavior,o=st&&r;o&&Z();var a=St(this.base);window.addEventListener("popstate",function(t){var n=i.current,r=St(i.base);i.current===m&&r===a||i.transitionTo(r,function(t){o&&tt(e,t,n,!0)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,function(t){ht(T(i.base+t.fullPath)),tt(i.router,t,r,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,function(t){ft(T(i.base+t.fullPath)),tt(i.router,t,r,!1),e&&e(t)},n)},e.prototype.ensureURL=function(t){if(St(this.base)!==this.current.fullPath){var e=T(this.base+this.current.fullPath);t?ht(e):ft(e)}},e.prototype.getCurrentLocation=function(){return St(this.base)},e}(xt);function St(t){var e=decodeURI(window.location.pathname);return t&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var _t=function(t){function e(e,n,i){t.call(this,e,n),i&&function(t){var e=St(t);if(!/^\/#/.test(e))return window.location.replace(T(t+"/#"+e)),!0}(this.base)||Ot()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this,e=this.router.options.scrollBehavior,n=st&&e;n&&Z(),window.addEventListener(st?"popstate":"hashchange",function(){var e=t.current;Ot()&&t.transitionTo($t(),function(i){n&&tt(t.router,i,e,!0),st||At(i.fullPath)})})},e.prototype.push=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,function(t){jt(t.fullPath),tt(i.router,t,r,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var i=this,r=this.current;this.transitionTo(t,function(t){At(t.fullPath),tt(i.router,t,r,!1),e&&e(t)},n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;$t()!==e&&(t?jt(e):At(e))},e.prototype.getCurrentLocation=function(){return $t()},e}(xt);function Ot(){var t=$t();return"/"===t.charAt(0)||(At("/"+t),!1)}function $t(){var t=window.location.href,e=t.indexOf("#");if(e<0)return"";var n=(t=t.slice(e+1)).indexOf("?");if(n<0){var i=t.indexOf("#");t=i>-1?decodeURI(t.slice(0,i))+t.slice(i):decodeURI(t)}else n>-1&&(t=decodeURI(t.slice(0,n))+t.slice(n));return t}function Tt(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function jt(t){st?ht(Tt(t)):window.location.hash=t}function At(t){st?ft(Tt(t)):window.location.replace(Tt(t))}var Et=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var i=this;this.transitionTo(t,function(t){i.stack=i.stack.slice(0,i.index+1).concat(t),i.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var i=this;this.transitionTo(t,function(t){i.stack=i.stack.slice(0,i.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,function(){e.index=n,e.updateRoute(i)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(xt),Nt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Q(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!st&&!1!==t.fallback,this.fallback&&(e="hash"),O||(e="abstract"),this.mode=e,e){case"history":this.history=new Ct(this,t.base);break;case"hash":this.history=new _t(this,t.base,this.fallback);break;case"abstract":this.history=new Et(this,t.base);break;default:0}},It={currentRoute:{configurable:!0}};function zt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Nt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},It.currentRoute.get=function(){return this.history&&this.history.current},Nt.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null)}),!this.app){this.app=t;var n=this.history;if(n instanceof Ct)n.transitionTo(n.getCurrentLocation());else if(n instanceof _t){var i=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},Nt.prototype.beforeEach=function(t){return zt(this.beforeHooks,t)},Nt.prototype.beforeResolve=function(t){return zt(this.resolveHooks,t)},Nt.prototype.afterEach=function(t){return zt(this.afterHooks,t)},Nt.prototype.onReady=function(t,e){this.history.onReady(t,e)},Nt.prototype.onError=function(t){this.history.onError(t)},Nt.prototype.push=function(t,e,n){this.history.push(t,e,n)},Nt.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},Nt.prototype.go=function(t){this.history.go(t)},Nt.prototype.back=function(){this.go(-1)},Nt.prototype.forward=function(){this.go(1)},Nt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},Nt.prototype.resolve=function(t,e,n){var i=K(t,e=e||this.history.current,n,this),r=this.match(i,e),o=r.redirectedFrom||r.fullPath;return{location:i,route:r,href:function(t,e,n){var i="hash"===n?"#"+e:e;return t?T(t+"/"+i):i}(this.history.base,o,this.mode),normalizedTo:i,resolved:r}},Nt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Nt.prototype,It),Nt.install=function t(e){if(!t.installed||k!==e){t.installed=!0,k=e;var n=function(t){return void 0!==t},i=function(t,e){var i=t.$options._parentVnode;n(i)&&n(i=i.data)&&n(i=i.registerRouteInstance)&&i(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,i(this,this)},destroyed:function(){i(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",o),e.component("RouterLink",S);var r=e.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}},Nt.version="3.0.6",O&&window.Vue&&window.Vue.use(Nt),e.a=Nt},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var i=n(32);"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(13)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){var i=n(34);"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(13)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){var i=n(36);"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(13)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n(0),r=Object.prototype.hasOwnProperty;function o(t,e){return Object.keys(e).forEach(function(n){!function(t,e,n){var a=e[n];Object(i.d)(a)&&(r.call(t,n)&&Object(i.g)(a)?t[n]=o(Object(t[n]),e[n]):t[n]=a)}(t,e,n)}),t}},function(t,e,n){"use strict";e.a={name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",complete:"完成",loading:"加载中...",telEmpty:"请填写电话",nameEmpty:"请填写姓名",confirmDelete:"确定要删除么",telInvalid:"请填写正确的电话",vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{valid:"有效期",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:"新增地址"}}},function(t,e,n){"use strict";function i(t,e){var n=function n(){t.contentWindow.changePath?e():setTimeout(function(){n()},50)};"complete"===(t.contentDocument||t.contentWindow.document).readyState?n():t.onload=n}n.d(e,"b",function(){return o}),n.d(e,"a",function(){return i});var r=navigator.userAgent.toLowerCase(),o=/ios|iphone|ipod|ipad|android/.test(r)},function(t,e,n){
|
||
/*!
|
||
* 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 i=arguments.length,r=0;if(1===i)return t;for(;++r<i;){var o=arguments[r];h(t)&&(t=o),n(o)&&e(t,o)}return t}function e(e,r){for(var o in f(e,r),r)if("__proto__"!==o&&i(r,o)){var a=r[o];n(a)?("undefined"===v(e[o])&&"function"===v(a)&&(e[o]=a),e[o]=t(e[o]||{},a)):e[o]=a}return e}function n(t){return"object"===v(t)||"function"===v(t)}function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function r(t,e){if(t.length){var n=t.indexOf(e);return n>-1?t.splice(n,1):void 0}}function o(t,e){if("IMG"===t.tagName&&t.getAttribute("data-srcset")){var n=t.getAttribute("data-srcset"),i=[],r=t.parentNode,o=r.offsetWidth*e,a=void 0,s=void 0,c=void 0;(n=n.trim().split(",")).map(function(t){t=t.trim(),-1===(a=t.lastIndexOf(" "))?(s=t,c=999998):(s=t.substr(0,a),c=parseInt(t.substr(a+1,t.length-a-2),10)),i.push([c,s])}),i.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="",u=void 0,d=i.length,h=0;h<d;h++)if((u=i[h])[0]>=o){l=u[1];break}return l}}function a(t,e){for(var n=void 0,i=0,r=t.length;i<r;i++)if(e(t[i])){n=t[i];break}return n}function s(){if(!g)return!1;var t=!0,e=document;try{var n=e.createElement("object");n.type="image/webp",n.style.visibility="hidden",n.innerHTML="!",e.body.appendChild(n),t=!n.offsetWidth,e.body.removeChild(n)}catch(e){t=!1}return t}function c(){}var l="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")},d=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),h=function(t){return null==t||"function"!=typeof t&&"object"!==(void 0===t?"undefined":l(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 n=Object.prototype.propertyIsEnumerable,i=Object(t),r=arguments.length,o=0;++o<r;)for(var a=Object(arguments[o]),s=Object.getOwnPropertySymbols(a),c=0;c<s.length;c++){var l=s[c];n.call(a,l)&&(i[l]=a[l])}return i},p=Object.prototype.toString,v=function(t){var e=void 0===t?"undefined":l(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"},m=t,g="undefined"!=typeof window,b=g&&"IntersectionObserver"in window,y={event:"event",observer:"observer"},x=function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}if(g)return"function"==typeof window.CustomEvent?window.CustomEvent:(t.prototype=window.Event.prototype,t)}(),k=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,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];w?t.addEventListener(e,n,{capture:i,passive:!0}):t.addEventListener(e,n,i)},off:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.removeEventListener(e,n,i)}},S=function(t,e,n){var i=new Image;i.src=t.src,i.onload=function(){e({naturalHeight:i.naturalHeight,naturalWidth:i.naturalWidth,src:i.src})},i.onerror=function(t){n(t)}},_=function(t,e){return"undefined"!=typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e]},O=function(t){return _(t,"overflow")+_(t,"overflow-y")+_(t,"overflow-x")},$={},T=function(){function t(e){var n=e.el,i=e.src,r=e.error,o=e.loading,a=e.bindType,s=e.$parent,c=e.options,l=e.elRenderer;u(this,t),this.el=n,this.src=i,this.error=r,this.loading=o,this.bindType=a,this.attempt=0,this.naturalHeight=0,this.naturalWidth=0,this.options=c,this.rect=null,this.$parent=s,this.elRenderer=l,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}return d(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,n=t.loading,i=t.error,r=this.src;this.src=e,this.loading=n,this.error=i,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 n in t)t.hasOwnProperty(n)&&e.push(n);return e})(this.options.filter).map(function(e){t.options.filter[e](t,t.options)})}},{key:"renderLoading",value:function(t){var e=this;S({src:this.loading},function(n){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]:c;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||$[this.src]?(this.state.loaded=!0,e(),this.render("loaded",!0)):void this.renderLoading(function(){t.attempt++,t.record("loadStart"),S({src:t.src},function(n){t.naturalHeight=n.naturalHeight,t.naturalWidth=n.naturalWidth,t.state.loaded=!0,t.state.error=!1,t.record("loadEnd"),t.render("loaded",!1),$[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}(),j="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",A=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],E={rootMargin:"0px",threshold:0},N=function(t){return function(){function e(t){var n=t.preLoad,i=t.error,r=t.throttleWait,o=t.preLoadTop,a=t.dispatchEvent,c=t.loading,l=t.attempt,d=t.silent,h=void 0===d||d,f=t.scale,p=t.listenEvents,v=(t.hasbind,t.filter),m=t.adapter,g=t.observer,b=t.observerOptions;u(this,e),this.version="1.2.3",this.mode=y.event,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:h,dispatchEvent:!!a,throttleWait:r||200,preLoad:n||1.3,preLoadTop:o||0,error:i||j,loading:c||j,attempt:l||3,scale:f||k(f),ListenEvents:p||A,hasbind:!1,supportWebp:s(),filter:v||{},adapter:m||{},observer:!!g,observerOptions:b||E},this._initEvent(),this.lazyLoadHandler=function(t,e){var n=null,i=0;return function(){if(!n){var r=Date.now()-i,o=this,a=arguments,s=function(){i=Date.now(),n=!1,t.apply(o,a)};r>=e?s():n=setTimeout(s,e)}}}(this._lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?y.observer:y.event)}return d(e,[{key:"config",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m(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,n,i){var r=this;if(function(t,e){for(var n=!1,i=0,r=t.length;i<r;i++)if(e(t[i])){n=!0;break}return n}(this.ListenerQueue,function(t){return t.el===e}))return this.update(e,n),t.nextTick(this.lazyLoadHandler);var a=this._valueFormatter(n.value),s=a.src,c=a.loading,l=a.error;t.nextTick(function(){s=o(e,r.options.scale)||s,r._observer&&r._observer.observe(e);var a=Object.keys(n.modifiers)[0],u=void 0;a&&(u=(u=i.context.$refs[a])?u.$el||u:document.getElementById(a)),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(O(e)))return e;e=e.parentNode}return window}}(e));var d=new T({bindType:n.arg,$parent:u,el:e,loading:c,error:l,src:s,elRenderer:r._elRenderer.bind(r),options:r.options});r.ListenerQueue.push(d),g&&(r._addListenerTarget(window),r._addListenerTarget(u)),r.lazyLoadHandler(),t.nextTick(function(){return r.lazyLoadHandler()})})}},{key:"update",value:function(e,n){var i=this,r=this._valueFormatter(n.value),s=r.src,c=r.loading,l=r.error;s=o(e,this.options.scale)||s;var u=a(this.ListenerQueue,function(t){return t.el===e});u&&u.update({src:s,loading:c,error:l}),this._observer&&(this._observer.unobserve(e),this._observer.observe(e)),this.lazyLoadHandler(),t.nextTick(function(){return i.lazyLoadHandler()})}},{key:"remove",value:function(t){if(t){this._observer&&this._observer.unobserve(t);var e=a(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!==y.observer||(t=y.event),this.mode=t,t===y.event?(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=a(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.event&&this._initListen(e.el,!0),this.TargetQueue.push(e)),this.TargetIndex}}},{key:"_removeListenerTarget",value:function(t){var e=this;this.TargetQueue.forEach(function(n,i){n.el===t&&(--n.childrenCount||(e._initListen(n.el,!1),e.TargetQueue.splice(i,1),n=null))})}},{key:"_initListen",value:function(t,e){var n=this;this.options.ListenEvents.forEach(function(i){return C[e?"on":"off"](t,i,n.lazyLoadHandler)})}},{key:"_initEvent",value:function(){var t=this;this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=function(e,n){t.Event.listeners[e].push(n)},this.$once=function(e,n){var i=t;t.$on(e,function t(){i.$off(e,t),n.apply(i,arguments)})},this.$off=function(e,n){n?r(t.Event.listeners[e],n):t.Event.listeners[e]=[]},this.$emit=function(e,n,i){t.Event.listeners[e].forEach(function(t){return t(n,i)})}}},{key:"_lazyLoadHandler",value:function(){var t=this;this.ListenerQueue.forEach(function(e,n){e.state.loaded||e.checkInView()&&e.load(function(){!e.error&&e.loaded&&t.ListenerQueue.splice(n,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 n=this;t.forEach(function(t){t.isIntersecting&&n.ListenerQueue.forEach(function(e){if(e.el===t.target){if(e.state.loaded)return n._observer.unobserve(e.el);e.load()}})})}},{key:"_elRenderer",value:function(t,e,n){if(t.el){var i=t.el,r=t.bindType,o=void 0;switch(e){case"loading":o=t.loading;break;case"error":o=t.error;break;default:o=t.src}if(r?i.style[r]='url("'+o+'")':i.getAttribute("src")!==o&&i.setAttribute("src",o),i.setAttribute("lazy",e),this.$emit(e,t,n),this.options.adapter[e]&&this.options.adapter[e](t,this.options),this.options.dispatchEvent){var a=new x(e,{detail:t});i.dispatchEvent(a)}}}},{key:"_valueFormatter",value:function(t){var e=t,n=this.options.loading,i=this.options.error;return function(t){return null!==t&&"object"===(void 0===t?"undefined":l(t))}(t)&&(t.src||this.options.silent||console.error("Vue Lazyload warning: miss src with "+t),e=t.src,n=t.loading||this.options.loading,i=t.error||this.options.error),{src:e,loading:n,error:i}}}]),e}()},I=function(){function t(e){var n=e.lazy;u(this,t),this.lazy=n,n.lazyContainerMananger=this,this._queue=[]}return d(t,[{key:"bind",value:function(t,e,n){var i=new B({el:t,binding:e,vnode:n,lazy:this.lazy});this._queue.push(i)}},{key:"update",value:function(t,e,n){var i=a(this._queue,function(e){return e.el===t});i&&i.update({el:t,binding:e,vnode:n})}},{key:"unbind",value:function(t,e,n){var i=a(this._queue,function(e){return e.el===t});i&&(i.clear(),r(this._queue,i))}}]),t}(),z={selector:"img"},B=function(){function t(e){var n=e.el,i=e.binding,r=e.vnode,o=e.lazy;u(this,t),this.el=null,this.vnode=r,this.binding=i,this.options={},this.lazy=o,this._queue=[],this.update({el:n,binding:i})}return d(t,[{key:"update",value:function(t){var e=this,n=t.el,i=t.binding;this.el=n,this.options=m({},z,i.value),this.getImgs().forEach(function(t){e.lazy.add(t,m({},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,n=[],i=0;i<e;i++)n.push(t[i]);return n}(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]:{},n=N(t),i=new n(e),r=new I({lazy:i}),o="2"===t.version.split(".")[0];t.prototype.$Lazyload=i,e.lazyComponent&&t.component("lazy-component",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)}}}}(i)),o?(t.directive("lazy",{bind:i.add.bind(i),update:i.update.bind(i),componentUpdated:i.lazyLoadHandler.bind(i),unbind:i.remove.bind(i)}),t.directive("lazy-container",{bind:r.bind.bind(r),update:r.update.bind(r),unbind:r.unbind.bind(r)})):(t.directive("lazy",{bind:i.lazyLoadHandler.bind(i),update:function(t,e){m(this.vm.$refs,this.vm.$els),i.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){i.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,n){"use strict";var i=n(3),r=n(11),o=n.n(r),a={props:{base:String,group:Object},data:function(){return{active:[]}}},s=(n(31),n(7)),c=Object(s.a)(a,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("van-collapse",{staticClass:"mobile-nav",attrs:{border:!1},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[n("van-collapse-item",{staticClass:"mobile-nav__item",attrs:{title:t.group.groupName,name:t.group.groupName}},[n("van-icon",{staticClass:"mobile-nav__icon",attrs:{slot:"right-icon",name:t.group.icon},slot:"right-icon"}),t._l(t.group.list,function(e,i){return[e.disabled?t._e():n("van-cell",{key:i,attrs:{to:"/"+t.base+e.path,title:e.title,"is-link":""}})]})],2)],1)},[],!1,null,null,null).exports,l=n(8),u={"en-US":{title:"Vant - Mobile UI Components built on Vue",messages:{name:"Name",tel:"Phone",save:"Save",confirm:"Confirm",cancel:"Cancel",delete:"Delete",complete:"Complete",loading:"Loading...",telEmpty:"Please fill in the tel",nameEmpty:"Please fill in the name",confirmDelete:"Are you sure you want to delete?",telInvalid:"Malformed phone number",vanContactCard:{addText:"Add contact info"},vanContactList:{addText:"Add new contact"},vanPagination:{prev:"Previous",next:"Next"},vanPullRefresh:{pulling:"Pull to refresh...",loosing:"Loose to refresh..."},vanSubmitBar:{label:"Total:"},vanCoupon:{valid:"Valid",unlimited:"Unlimited",discount:function(t){return 10*t+"% off"},condition:function(t){return"At least "+t}},vanCouponCell:{title:"Coupon",tips:"Select coupon",count:function(t){return"You have "+t+" coupons"}},vanCouponList:{empty:"No coupons",exchange:"Exchange",close:"Close",enable:"Available",disabled:"Unavailable",placeholder:"Coupon code"},vanAddressEdit:{area:"Area",postal:"Postal",areaEmpty:"Please select a receiving area",addressEmpty:"Address can not be empty",postalEmpty:"Wrong postal code",defaultAddress:"Set as the default address",telPlaceholder:"Phone",namePlaceholder:"Name",areaPlaceholder:"Area"},vanAddressEditDetail:{label:"Address",placeholder:"Address"},vanAddressList:{add:"Add new address"}}},"zh-CN":{title:"Vant - 轻量、可靠的移动端 Vue 组件库",messages:n(20).a}},d="";function h(t){d!==t&&(d=t,window.localStorage&&localStorage.setItem("VANT_LANGUAGE",t),l.a.use(t,u[t].messages),document.title=u[t].title)}h(function(){for(var t=Object.keys(u),e=location.hash,n=0;n<t.length;n++)if(-1!==e.indexOf(t[n]))return t[n];return-1!==(localStorage.getItem("VANT_LANGUAGE")||navigator.language||"en-US").indexOf("zh-")?"zh-CN":"en-US"}());var f={components:{MobileNav:c},data:function(){return{docConfig:o.a}},computed:{navList:function(){return(this.docConfig[this.$vantLang].nav||[]).filter(function(t){return t.showInMobile})},description:function(){return"zh-CN"===this.$vantLang?"轻量、可靠的移动端 Vue 组件库":"Mobile UI Components built on Vue"}},methods:{switchLang:function(t){var e="zh-CN"===t?"en-US":"zh-CN";this.$router.push(this.$route.path.replace(e,t)),h(t)}}},p=(n(33),Object(s.a)(f,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"side-nav"},[n("div",{staticClass:"mobile-switch-lang"},[n("span",{class:{active:"zh-CN"===t.$vantLang},on:{click:function(e){return t.switchLang("zh-CN")}}},[t._v("\n 中文\n ")]),n("span",{class:{active:"en-US"===t.$vantLang},on:{click:function(e){return t.switchLang("en-US")}}},[t._v("\n EN\n ")])]),t._m(0),n("h2",{staticClass:"vant-desc"},[t._v(t._s(t.description))]),t._l(t.navList,function(e){return t._l(e.groups,function(e,i){return n("mobile-nav",{key:i,attrs:{group:e,base:t.$vantLang}})})})],2)},[function(){var t=this.$createElement,e=this._self._c||t;return e("h1",{staticClass:"vant-title"},[e("img",{attrs:{src:"https://img.yzcdn.cn/public_files/2017/12/18/fd78cf6bb5d12e2a119d0576bedfd230.png"}}),e("span",[this._v("Vant")])])}],!1,null,null,null).exports),v={"changelog.en-US":function(){return n.e(47).then(n.bind(null,218))},"changelog.generated":function(){return n.e(48).then(n.bind(null,220))},"changelog.zh-CN":function(){return n.e(49).then(n.bind(null,222))},"contribution.zh-CN":function(){return n.e(50).then(n.bind(null,223))},"design.zh-CN":function(){return n.e(51).then(n.bind(null,225))},"intro.en-US":function(){return n.e(52).then(n.bind(null,227))},"intro.zh-CN":function(){return n.e(53).then(n.bind(null,228))},"quickstart.en-US":function(){return n.e(54).then(n.bind(null,230))},"quickstart.zh-CN":function(){return n.e(55).then(n.bind(null,232))},"style-guide.zh-CN":function(){return n.e(56).then(n.bind(null,234))},"theme.en-US":function(){return n.e(57).then(n.bind(null,236))},"theme.zh-CN":function(){return n.e(58).then(n.bind(null,238))},"actionsheet.en-US":function(){return n.e(59).then(n.bind(null,239))},"actionsheet.zh-CN":function(){return n.e(60).then(n.bind(null,241))},"address-edit.en-US":function(){return n.e(61).then(n.bind(null,243))},"address-edit.zh-CN":function(){return n.e(62).then(n.bind(null,244))},"address-list.en-US":function(){return n.e(63).then(n.bind(null,246))},"address-list.zh-CN":function(){return n.e(64).then(n.bind(null,248))},"area.en-US":function(){return n.e(65).then(n.bind(null,249))},"area.zh-CN":function(){return n.e(66).then(n.bind(null,251))},"badge.en-US":function(){return n.e(67).then(n.bind(null,353))},"badge.zh-CN":function(){return n.e(68).then(n.bind(null,253))},"button.en-US":function(){return n.e(69).then(n.bind(null,255))},"button.zh-CN":function(){return n.e(70).then(n.bind(null,257))},"card.en-US":function(){return n.e(71).then(n.bind(null,258))},"card.zh-CN":function(){return n.e(72).then(n.bind(null,260))},"cell.en-US":function(){return n.e(73).then(n.bind(null,262))},"cell.zh-CN":function(){return n.e(74).then(n.bind(null,263))},"checkbox.en-US":function(){return n.e(75).then(n.bind(null,355))},"checkbox.zh-CN":function(){return n.e(76).then(n.bind(null,267))},"circle.en-US":function(){return n.e(77).then(n.bind(null,268))},"circle.zh-CN":function(){return n.e(78).then(n.bind(null,270))},"col.en-US":function(){return n.e(79).then(n.bind(null,272))},"col.zh-CN":function(){return n.e(80).then(n.bind(null,273))},"collapse.en-US":function(){return n.e(81).then(n.bind(null,275))},"collapse.zh-CN":function(){return n.e(82).then(n.bind(null,277))},"contact-card.en-US":function(){return n.e(83).then(n.bind(null,278))},"contact-card.zh-CN":function(){return n.e(84).then(n.bind(null,280))},"coupon-list.en-US":function(){return n.e(85).then(n.bind(null,282))},"coupon-list.zh-CN":function(){return n.e(86).then(n.bind(null,283))},"datetime-picker.en-US":function(){return n.e(87).then(n.bind(null,285))},"datetime-picker.zh-CN":function(){return n.e(88).then(n.bind(null,287))},"dialog.en-US":function(){return n.e(89).then(n.bind(null,288))},"dialog.zh-CN":function(){return n.e(90).then(n.bind(null,290))},"field.en-US":function(){return n.e(91).then(n.bind(null,292))},"field.zh-CN":function(){return n.e(92).then(n.bind(null,293))},"goods-action.en-US":function(){return n.e(93).then(n.bind(null,295))},"goods-action.zh-CN":function(){return n.e(94).then(n.bind(null,297))},"icon.en-US":function(){return n.e(95).then(n.bind(null,298))},"icon.zh-CN":function(){return n.e(96).then(n.bind(null,300))},"image-preview.en-US":function(){return n.e(97).then(n.bind(null,302))},"image-preview.zh-CN":function(){return n.e(98).then(n.bind(null,303))},"lazyload.en-US":function(){return n.e(99).then(n.bind(null,305))},"lazyload.zh-CN":function(){return n.e(100).then(n.bind(null,307))},"list.en-US":function(){return n.e(101).then(n.bind(null,308))},"list.zh-CN":function(){return n.e(102).then(n.bind(null,310))},"loading.en-US":function(){return n.e(103).then(n.bind(null,312))},"loading.zh-CN":function(){return n.e(104).then(n.bind(null,313))},"locale.en-US":function(){return n.e(105).then(n.bind(null,315))},"locale.zh-CN":function(){return n.e(106).then(n.bind(null,317))},"nav-bar.en-US":function(){return n.e(107).then(n.bind(null,318))},"nav-bar.zh-CN":function(){return n.e(108).then(n.bind(null,320))},"notice-bar.en-US":function(){return n.e(109).then(n.bind(null,322))},"notice-bar.zh-CN":function(){return n.e(110).then(n.bind(null,323))},"notify.en-US":function(){return n.e(111).then(n.bind(null,325))},"notify.zh-CN":function(){return n.e(112).then(n.bind(null,327))},"number-keyboard.en-US":function(){return n.e(113).then(n.bind(null,328))},"number-keyboard.zh-CN":function(){return n.e(114).then(n.bind(null,330))},"pagination.en-US":function(){return n.e(115).then(n.bind(null,332))},"pagination.zh-CN":function(){return n.e(116).then(n.bind(null,333))},"panel.en-US":function(){return n.e(117).then(n.bind(null,335))},"panel.zh-CN":function(){return n.e(118).then(n.bind(null,337))},"password-input.en-US":function(){return n.e(119).then(n.bind(null,338))},"password-input.zh-CN":function(){return n.e(120).then(n.bind(null,340))},"picker.en-US":function(){return n.e(121).then(n.bind(null,342))},"picker.zh-CN":function(){return n.e(122).then(n.bind(null,343))},"popup.en-US":function(){return n.e(123).then(n.bind(null,345))},"popup.zh-CN":function(){return n.e(124).then(n.bind(null,347))},"progress.en-US":function(){return n.e(125).then(n.bind(null,348))},"progress.zh-CN":function(){return n.e(126).then(n.bind(null,350))},"pull-refresh.en-US":function(){return n.e(127).then(n.bind(null,352))},"pull-refresh.zh-CN":function(){return n.e(128).then(n.bind(null,233))},"radio.en-US":function(){return n.e(129).then(n.bind(null,351))},"radio.zh-CN":function(){return n.e(130).then(n.bind(null,349))},"rate.en-US":function(){return n.e(131).then(n.bind(null,346))},"rate.zh-CN":function(){return n.e(132).then(n.bind(null,344))},"search.en-US":function(){return n.e(133).then(n.bind(null,341))},"search.zh-CN":function(){return n.e(134).then(n.bind(null,339))},"sku.en-US":function(){return n.e(135).then(n.bind(null,336))},"sku.zh-CN":function(){return n.e(136).then(n.bind(null,334))},"slider.en-US":function(){return n.e(137).then(n.bind(null,331))},"slider.zh-CN":function(){return n.e(138).then(n.bind(null,329))},"stepper.en-US":function(){return n.e(139).then(n.bind(null,326))},"stepper.zh-CN":function(){return n.e(140).then(n.bind(null,324))},"steps.en-US":function(){return n.e(141).then(n.bind(null,321))},"steps.zh-CN":function(){return n.e(142).then(n.bind(null,319))},"style.en-US":function(){return n.e(143).then(n.bind(null,316))},"style.zh-CN":function(){return n.e(144).then(n.bind(null,314))},"submit-bar.en-US":function(){return n.e(145).then(n.bind(null,311))},"submit-bar.zh-CN":function(){return n.e(146).then(n.bind(null,309))},"swipe.en-US":function(){return n.e(149).then(n.bind(null,306))},"swipe.zh-CN":function(){return n.e(150).then(n.bind(null,304))},"swipe-cell.en-US":function(){return n.e(147).then(n.bind(null,301))},"swipe-cell.zh-CN":function(){return n.e(148).then(n.bind(null,299))},"switch.en-US":function(){return n.e(153).then(n.bind(null,296))},"switch.zh-CN":function(){return n.e(154).then(n.bind(null,294))},"switch-cell.en-US":function(){return n.e(151).then(n.bind(null,291))},"switch-cell.zh-CN":function(){return n.e(152).then(n.bind(null,289))},"tab.en-US":function(){return n.e(155).then(n.bind(null,286))},"tab.zh-CN":function(){return n.e(156).then(n.bind(null,284))},"tabbar.en-US":function(){return n.e(157).then(n.bind(null,281))},"tabbar.zh-CN":function(){return n.e(158).then(n.bind(null,279))},"tag.en-US":function(){return n.e(159).then(n.bind(null,276))},"tag.zh-CN":function(){return n.e(160).then(n.bind(null,274))},"toast.en-US":function(){return n.e(161).then(n.bind(null,271))},"toast.zh-CN":function(){return n.e(162).then(n.bind(null,182))},"tree-select.en-US":function(){return n.e(163).then(n.bind(null,266))},"tree-select.zh-CN":function(){return n.e(164).then(n.bind(null,264))},"uploader.en-US":function(){return n.e(165).then(n.bind(null,261))},"uploader.zh-CN":function(){return n.e(166).then(n.bind(null,259))},"waterfall.en-US":function(){return n.e(167).then(n.bind(null,256))},"waterfall.zh-CN":function(){return n.e(168).then(n.bind(null,254))}},m=n(14),g=n(9),b=n.n(g),y=n(0),x={computed:{$t:function(){var t=this.$options.name,e=t?Object(y.a)(t)+".":"";if(!this.$vantMessages)return function(){return""};var n=this.$vantMessages[this.$vantLang];return function(t){for(var i=Object(y.b)(n,e+t)||Object(y.b)(n,t),r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return"function"==typeof i?i.apply(void 0,o):i}}}},k=n(10);function w(t,e){return t.then(function(t){t=t.default,e="demo-"+e,t.name=e;var n=t.i18n;if(n){var i={},r=Object(y.a)(e);Object.keys(n).forEach(function(t){var e;i[t]=((e={})[r]=n[t],e)}),k.c.add(i)}return t})}i.default.use(k.e).use(b.a).use(m.a).use(k.b,{lazyComponent:!0}),i.default.mixin(x),i.default.component("demo-block",g.DemoBlock),i.default.component("demo-section",g.DemoSection),k.c.add({"zh-CN":{add:"增加",decrease:"减少",red:"红色",orange:"橙色",yellow:"黄色",purple:"紫色",tab:"标签",tag:"标签",desc:"描述信息",back:"返回",title:"标题",status:"状态",button:"按钮",option:"选项",search:"搜索",content:"内容",custom:"自定义",username:"用户名",password:"密码",disabled:"禁用状态",uneditable:"不可编辑",basicUsage:"基础用法",advancedUsage:"高级用法",loadingStatus:"加载状态",usernamePlaceholder:"请输入用户名",passwordPlaceholder:"请输入密码"},"en-US":{add:"Add",decrease:"Decrease",red:"Red",orange:"Orange",yellow:"Yellow",purple:"Purple",tab:"Tab",tag:"Tag",desc:"Description",back:"Back",title:"Title",status:"Status",button:"Button",option:"Option",search:"Search",content:"Content",custom:"Custom",username:"Username",password:"Password",loadingStatus:"Loading",disabled:"Disabled",uneditable:"Uneditable",basicUsage:"Basic Usage",advancedUsage:"Advanced Usage",usernamePlaceholder:"Username",passwordPlaceholder:"Password"}});var C={actionsheet:function(){return w(n.e(4).then(n.bind(null,252)),"actionsheet")},"address-edit":function(){return w(Promise.all([n.e(0),n.e(169)]).then(n.bind(null,250)),"address-edit")},"address-list":function(){return w(n.e(170).then(n.bind(null,247)),"address-list")},area:function(){return w(Promise.all([n.e(0),n.e(171)]).then(n.bind(null,180)),"area")},badge:function(){return w(n.e(5).then(n.bind(null,242)),"badge")},button:function(){return w(n.e(6).then(n.bind(null,240)),"button")},card:function(){return w(n.e(7).then(n.bind(null,237)),"card")},cell:function(){return w(n.e(8).then(n.bind(null,235)),"cell")},checkbox:function(){return w(n.e(9).then(n.bind(null,231)),"checkbox")},circle:function(){return w(n.e(10).then(n.bind(null,229)),"circle")},col:function(){return w(n.e(11).then(n.bind(null,226)),"col")},collapse:function(){return w(n.e(12).then(n.bind(null,224)),"collapse")},"contact-card":function(){return w(n.e(13).then(n.bind(null,221)),"contact-card")},"coupon-list":function(){return w(n.e(14).then(n.bind(null,219)),"coupon-list")},"datetime-picker":function(){return w(n.e(172).then(n.bind(null,214)),"datetime-picker")},dialog:function(){return w(n.e(15).then(n.bind(null,213)),"dialog")},field:function(){return w(n.e(16).then(n.bind(null,212)),"field")},"goods-action":function(){return w(n.e(17).then(n.bind(null,211)),"goods-action")},icon:function(){return w(n.e(3).then(n.bind(null,210)),"icon")},"image-preview":function(){return w(n.e(18).then(n.bind(null,209)),"image-preview")},lazyload:function(){return w(n.e(19).then(n.bind(null,208)),"lazyload")},list:function(){return w(n.e(20).then(n.bind(null,207)),"list")},loading:function(){return w(n.e(21).then(n.bind(null,206)),"loading")},"nav-bar":function(){return w(n.e(173).then(n.bind(null,205)),"nav-bar")},"notice-bar":function(){return w(n.e(22).then(n.bind(null,204)),"notice-bar")},notify:function(){return w(n.e(23).then(n.bind(null,203)),"notify")},"number-keyboard":function(){return w(n.e(24).then(n.bind(null,202)),"number-keyboard")},pagination:function(){return w(n.e(25).then(n.bind(null,201)),"pagination")},panel:function(){return w(n.e(26).then(n.bind(null,200)),"panel")},"password-input":function(){return w(n.e(174).then(n.bind(null,199)),"password-input")},picker:function(){return w(n.e(175).then(n.bind(null,198)),"picker")},popup:function(){return w(n.e(27).then(n.bind(null,197)),"popup")},progress:function(){return w(n.e(28).then(n.bind(null,196)),"progress")},"pull-refresh":function(){return w(n.e(29).then(n.bind(null,195)),"pull-refresh")},radio:function(){return w(n.e(30).then(n.bind(null,194)),"radio")},rate:function(){return w(n.e(31).then(n.bind(null,193)),"rate")},search:function(){return w(n.e(176).then(n.bind(null,192)),"search")},sku:function(){return w(n.e(32).then(n.bind(null,181)),"sku")},slider:function(){return w(n.e(33).then(n.bind(null,190)),"slider")},stepper:function(){return w(n.e(34).then(n.bind(null,189)),"stepper")},steps:function(){return w(n.e(35).then(n.bind(null,188)),"steps")},style:function(){return w(n.e(36).then(n.bind(null,187)),"style")},"submit-bar":function(){return w(n.e(37).then(n.bind(null,186)),"submit-bar")},swipe:function(){return w(n.e(39).then(n.bind(null,185)),"swipe")},"swipe-cell":function(){return w(n.e(38).then(n.bind(null,184)),"swipe-cell")},switch:function(){return w(n.e(40).then(n.bind(null,269)),"switch")},"switch-cell":function(){return w(n.e(177).then(n.bind(null,183)),"switch-cell")},tab:function(){return w(n.e(41).then(n.bind(null,191)),"tab")},tabbar:function(){return w(n.e(42).then(n.bind(null,245)),"tabbar")},tag:function(){return w(n.e(43).then(n.bind(null,265)),"tag")},toast:function(){return w(n.e(44).then(n.bind(null,354)),"toast")},"tree-select":function(){return w(n.e(178).then(n.bind(null,217)),"tree-select")},uploader:function(){return w(n.e(45).then(n.bind(null,216)),"uploader")},waterfall:function(){return w(n.e(46).then(n.bind(null,215)),"waterfall")}};k.c.add({"zh-CN":{vanDocDemoPages:{title:"示例",source:"源代码",description:"下面是一些使用 Vant 搭建的示例页面,点击图片切换至对应示例。",goodsDetail:"商品详情",userCenter:"会员中心",shoppingCart:"购物车"}},"en-US":{vanDocDemoPages:{title:"Demo Pages",source:"Source code",description:"Here are some of the demo pages built using Vant, click on the picture to switch to the corresponding demo.",goodsDetail:"Goods Detail",userCenter:"User Center",shoppingCart:"Shopping Cart"}}});var S={name:"van-doc-demo-pages",data:function(){return{currentDemo:0}},computed:{demos:function(){return[{title:this.$t("goodsDetail"),preview:"https://img.yzcdn.cn/public_files/2017/10/24/7070a8d1d6504b864c605114d32f2aae.png",url:"https://vant-ui.github.io/vant-demo/#/goods",source:"https://github.com/youzan/vant-demo/blob/master/base/src/view/goods/index.vue"},{title:this.$t("userCenter"),preview:"https://img.yzcdn.cn/public_files/2017/10/23/e1d70757e3ab88d39a360b704be8f43f.png",url:"https://vant-ui.github.io/vant-demo/#/user",source:"https://github.com/youzan/vant-demo/blob/master/base/src/view/user/index.vue"},{title:this.$t("shoppingCart"),preview:"https://img.yzcdn.cn/public_files/2017/10/24/06b8b5ed3692314d434db7f6854dcdbe.png",url:"https://vant-ui.github.io/vant-demo/#/cart",source:"https://github.com/youzan/vant-demo/blob/master/base/src/view/cart/index.vue"}]}},beforeMount:function(){this.$emit("changeDemoURL",this.demos[0].url)},methods:{onChangeDemo:function(t,e){this.currentDemo=e,this.$emit("changeDemoURL",t.url)}}},_=(n(35),Object(s.a)(S,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"van-doc-demo-pages"},[n("h2",[t._v(t._s(t.$t("title")))]),n("p",[t._v(t._s(t.$t("description")))]),n("div",{staticClass:"van-doc-demo-pages__gallery"},t._l(t.demos,function(e,i){return n("div",{class:["van-doc-demo-pages__item",{"van-doc-demo-pages__item--active":i===t.currentDemo}]},[n("h4",[t._v(t._s(e.title))]),n("a",{attrs:{href:e.source,target:"_blank"}},[t._v("\n "+t._s(t.$t("source"))+"\n ")]),n("img",{attrs:{src:e.preview},on:{click:function(n){return t.onChangeDemo(e,i)}}})])}),0)])},[],!1,null,null,null).exports),O=n(21);window.syncPath=function(){var t=window.vueRouter,e=window!==window.top,n=t.history.current.path,i=n.split("/"),r=i[0];if("/"===n[0]&&(r=i[1]),e||O.b)e&&window.top.changePath(r,n);else{var o=document.querySelector("iframe");o&&Object(O.a)(o,function(){o.contentWindow.changePath(r,n)}),h(r)}},window.changePath=function(t,e){void 0===e&&(e=""),h(t),window.vueRouter.replace(e)};e.a=function(t){var e=[{path:"*",redirect:function(){return"/"+i.default.prototype.$vantLang+"/"}}];return Object.keys(o.a).forEach(function(n){function i(n,i){var r=n.path;if(r){var o;if(!(o="demo"===(r=r.replace("/",""))?_:t?C[r]:v[r+"."+i]))return;e.push({name:i+"/"+r,component:o,path:"/"+i+"/"+r,meta:{lang:i,path:r,name:n.title}})}}t?e.push({path:"/"+n,component:p,meta:{lang:n}}):e.push({path:"/"+n,redirect:"/"+n+"/intro"}),(o.a[n].nav||[]).forEach(function(t){t.groups?t.groups.forEach(function(t){t.list.forEach(function(t){return i(t,n)})}):i(t,n)})}),e}},function(t,e,n){var i=n(38);"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(13)(i,r);i.locals&&(t.exports=i.locals)},,function(t,e,n){(function(t){var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(r.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new o(r.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(27),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(15))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var i,r,o,a,s,c=1,l={},u=!1,d=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick(function(){p(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},i=function(t){o.port2.postMessage(t)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,i=function(t){var e=d.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):i=function(t){setTimeout(p,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&p(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),i=function(e){t.postMessage(a+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return l[c]=r,i(c),c++},h.clearImmediate=f}function f(t){delete l[t]}function p(t){if(u)setTimeout(p,0,t);else{var e=l[t];if(e){u=!0;try{!function(t){var e=t.callback,i=t.args;switch(i.length){case 0:e();break;case 1:e(i[0]);break;case 2:e(i[0],i[1]);break;case 3:e(i[0],i[1],i[2]);break;default:e.apply(n,i)}}(e)}finally{f(t),u=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(15),n(28))},function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var c,l=[],u=!1,d=-1;function h(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&f())}function f(){if(!u){var t=s(h);u=!0;for(var e=l.length;e;){for(c=l,l=[];++d<e;)c&&c[d].run();d=-1,e=l.length}c=null,u=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function v(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new p(t,e)),1!==l.length||u||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=v,r.addListener=v,r.once=v,r.off=v,r.removeListener=v,r.removeAllListeners=v,r.emit=v,r.prependListener=v,r.prependOnceListener=v,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t){t.exports={name:"vant",version:"1.6.28",description:"Mobile UI Components built on Vue",main:"lib/index.js",module:"es/index.js",style:"lib/index.css",typings:"types/index.d.ts",files:["es","lib","packages","types","vetur"],scripts:{bootstrap:"yarn || npm i",dev:"npm run build:entry && webpack-dev-server --config build/webpack.dev.js",lint:'eslint ./packages --ext .js,.vue,.ts,.tsx && stylelint "packages/*.less"',"build:entry":"node build/build-entry.js","build:components":"node build/build-components.js --color","build:vant":"cross-env NODE_ENV=production webpack --color --config build/webpack.build.js && cross-env NODE_ENV=production webpack -p --color --config build/webpack.build.js","build:style":"gulp --gulpfile ./build/build-style.js","build:style-entry":"node build/build-style-entry.js","build:changelog":"vant-doc changelog ./changelog.generated.md","build:lib":"node build/build-lib.js","build:site":"rimraf docs/dist && cross-env NODE_ENV=production webpack --config build/webpack.doc.js && gh-pages -d docs/dist --dest 1.x",test:"jest","test:watch":"jest --watch","test:clear-cache":"jest --clearCache","test:coverage":"open test/coverage/index.html",release:"sh build/release.sh"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{"*.{ts,tsx,js,vue}":["eslint","git add"],"*.{vue,css}":["stylelint","git add"]},repository:{type:"git",url:"git@github.com:youzan/vant.git"},keywords:["youzan","vue","component"],author:"youzanfe",license:"MIT",dependencies:{"@babel/runtime":"^7.4.3","@vant/icons":"1.1.7","@vue/babel-helper-vue-jsx-merge-props":"^1.0.0-beta.3","vue-lazyload":"1.2.3"},peerDependencies:{vue:">= 2.5.0"},devDependencies:{"@babel/core":"^7.4.3","@babel/plugin-syntax-dynamic-import":"^7.0.0","@babel/plugin-syntax-jsx":"^7.2.0","@babel/plugin-transform-object-assign":"^7.0.0","@babel/plugin-transform-runtime":"^7.4.3","@babel/polyfill":"^7.4.3","@babel/preset-env":"^7.4.3","@babel/preset-typescript":"^7.3.3","@types/jest":"^24.0.11","@vant/doc":"^1.0.25","@vant/eslint-config":"^1.1.2","@vant/markdown-loader":"^1.0.3","@vue/babel-preset-jsx":"^1.0.0-beta.3","@vue/server-test-utils":"^1.0.0-beta.29","@vue/test-utils":"^1.0.0-beta.29",autoprefixer:"^9.5.1","babel-jest":"^24.7.1","babel-loader":"^8.0.4",codecov:"^3.3.0","cross-env":"^5.2.0","css-loader":"^2.1.1","dependency-tree":"^7.0.2",eslint:"^5.16.0","fast-glob":"^2.2.4","gh-pages":"^2.0.1",gulp:"3.9.1","gulp-csso":"^3.0.1","gulp-less":"^4.0.1","gulp-postcss":"^8.0.0","html-webpack-plugin":"3.2.0",husky:"^1.2.1",jest:"^24.7.1","jest-serializer-vue":"^2.0.2",less:"^3.8.1","less-loader":"^4.1.0","lint-staged":"^8.1.5","markdown-vetur":"0.0.5",postcss:"^7.0.14","postcss-loader":"^3.0.0","progress-bar-webpack-plugin":"^1.12.1",rimraf:"^2.5.4",shelljs:"^0.8.3",signale:"^1.4.0","style-loader":"^0.23.1",stylelint:"^10.0.1","stylelint-config-standard":"^18.3.0","ts-jest":"^24.0.2",typescript:"^3.4.4",uppercamelcase:"^3.0.0","url-loader":"^1.1.2",vue:"2.6.10","vue-jest":"4.0.0-beta.1","vue-loader":"^15.7.0","vue-router":"^3.0.6","vue-server-renderer":"^2.6.10","vue-template-compiler":"2.6.10","vue-template-es2015-compiler":"^1.9.1",webpack:"^4.30.0","webpack-cli":"^3.3.2","webpack-dev-server":"^3.3.1"},vetur:{tags:"vetur/tags.json",attributes:"vetur/attributes.json"}}},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,i=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var r,o=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?t:(r=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:i+o.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")})}},function(t,e,n){"use strict";var i=n(16);n.n(i).a},function(t,e,n){(t.exports=n(12)(!1)).push([t.i,".mobile-nav__item {\n margin-bottom: 16px;\n}\n.mobile-nav__icon {\n font-size: 24px;\n}\n.mobile-nav__icon img {\n width: 100%;\n}\n.mobile-nav .van-collapse-item__content {\n padding: 0;\n}\n.mobile-nav .van-collapse-item__title {\n font-size: 16px;\n font-weight: 500;\n line-height: 40px;\n -webkit-box-align: center;\n -webkit-align-items: center;\n align-items: center;\n border-radius: 2px;\n}\n",""])},function(t,e,n){"use strict";var i=n(17);n.n(i).a},function(t,e,n){(t.exports=n(12)(!1)).push([t.i,".side-nav {\n width: 100%;\n box-sizing: border-box;\n padding: 64px 20px 20px;\n}\n.side-nav .vant-title,\n.side-nav .vant-desc {\n font-weight: normal;\n -webkit-user-select: none;\n user-select: none;\n padding-left: 15px;\n}\n.side-nav .vant-title {\n margin: 0 0 15px;\n}\n.side-nav .vant-title img,\n.side-nav .vant-title span {\n display: inline-block;\n vertical-align: middle;\n}\n.side-nav .vant-title img {\n width: 36px;\n}\n.side-nav .vant-title span {\n font-size: 36px;\n font-weight: 500;\n margin-left: 15px;\n}\n.side-nav .vant-desc {\n font-size: 14px;\n color: #7d7e80;\n margin: 0 0 40px;\n}\n.mobile-switch-lang {\n position: absolute;\n top: 24px;\n right: 24px;\n color: #1989fa;\n font-size: 12px;\n cursor: pointer;\n overflow: hidden;\n}\n.mobile-switch-lang span {\n color: #969799;\n width: 48px;\n line-height: 22px;\n text-align: center;\n display: inline-block;\n border: 1px solid #dcdee0;\n background-color: #f7f8fa;\n}\n.mobile-switch-lang span:first-child {\n border-right: none;\n border-radius: 3px 0 0 3px;\n}\n.mobile-switch-lang span:last-child {\n border-left: none;\n border-radius: 0 3px 3px 0;\n}\n.mobile-switch-lang span.active {\n color: #fff;\n border-color: #1989fa;\n background-color: #1989fa;\n}\n",""])},function(t,e,n){"use strict";var i=n(18);n.n(i).a},function(t,e,n){(t.exports=n(12)(!1)).push([t.i,".van-doc-demo-pages__gallery {\n margin-top: 30px;\n}\n.van-doc-demo-pages__item {\n width: 28%;\n text-align: center;\n margin-bottom: 40px;\n display: inline-block;\n}\n.van-doc-demo-pages__item:nth-child(3n+1),\n.van-doc-demo-pages__item:nth-child(3n+2) {\n margin-right: 4%;\n}\n.van-doc-demo-pages__item h4 {\n font-size: 14px;\n line-height: 20px;\n font-weight: normal;\n}\n.van-doc-demo-pages__item img {\n width: 100%;\n cursor: pointer;\n border-radius: 3px;\n background-color: #f8f8f8;\n box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);\n}\n.van-doc-demo-pages__item a {\n font-size: 12px;\n margin: 4px 0 7px;\n display: inline-block;\n}\n.van-doc-demo-pages__item--active img {\n box-shadow: 0 1px 4px rgba(51, 136, 255, 0.4), 0 0 0 1px rgba(51, 136, 255, 0.4);\n}\n",""])},function(t,e,n){"use strict";var i=n(24);n.n(i).a},function(t,e,n){(t.exports=n(12)(!1)).push([t.i,'.van-doc-intro {\n padding-top: 40px;\n text-align: center;\n font-family: "Dosis", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;\n}\n.van-doc-intro__youzan {\n width: 32px;\n height: 32px;\n display: block;\n margin: 25px 0 0;\n}\n.van-doc-intro__logo {\n width: 120px;\n height: 120px;\n}\n.van-doc-intro h2 {\n font-size: 36px;\n line-height: 60px;\n font-weight: normal;\n}\n.van-doc-intro p {\n font-size: 15px;\n color: #455a64;\n}\n',""])},,,,,,function(t,e,n){"use strict";n.r(e);var i=n(3),r=n(14),o=n(9),a=n.n(o),s=n(11),c=n.n(s),l={data:function(){return{simulators:["mobile.html"+location.hash],demoURL:""}},computed:{base:function(){return"/"+this.$vantLang},config:function(){return c.a[this.$vantLang]},currentSimulator:function(){var t=this.$route.name;return t&&-1!==t.indexOf("demo")?1:0}},methods:{onChangeDemoURL:function(t){this.simulators=[this.simulators[0],t]}}},u=(n(37),n(7)),d=Object(u.a)(l,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"app"},[e("van-doc",{attrs:{base:this.base,config:this.config,active:"Vue 组件",simulators:this.simulators,"current-simulator":this.currentSimulator}},[e("router-view",{on:{changeDemoURL:this.onChangeDemoURL}})],1)],1)},[],!1,null,null,null).exports,h=n(23),f=n(21);i.default.use(r.a).use(a.a);var p=new r.a({mode:"hash",routes:Object(h.a)()});p.beforeEach(function(t,e,n){f.b&&location.replace("mobile.html"+location.hash),o.progress.start(),document.title=t.meta.title||document.title,n()}),p.afterEach(function(){o.progress.done(),window.scrollTo(0,0),i.default.nextTick(function(){return window.syncPath()})}),window.vueRouter=p,new i.default({el:"#app",render:function(t){return t(d)},router:p})}]); |