@xysfe/actui
Version:
A fantastic mobile ui lib implement by Vue
1 lines • 187 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.GoldCoupon=e():t.GoldCoupon=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../lib",e(e.s=1792)}({0:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},1:function(t,e,n){"use strict";function i(t,e,n,i,o,r,s,a){t=t||{};var c=typeof t.default;"object"!==c&&"function"!==c||(t=t.default);var l="function"==typeof t?t.options:t;e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),r&&(l._scopeId=r);var u;if(s?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=u):o&&(u=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),u)if(l.functional){l._injectStyles=u;var h=l.render;l.render=function(t,e){return u.call(e),h(t,e)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,u):[u]}return{exports:t,options:l}}e.a=i},10:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},100:function(t,e,n){t.exports={default:n(101),__esModule:!0}},101:function(t,e,n){n(55),t.exports=n(0).Object.getOwnPropertySymbols},102:function(t,e,n){"use strict";function i(t){var e={},n={},i={};for(var c in t)if(t.hasOwnProperty(c))if(-1!==a.indexOf(c))e[c]=t[c];else if(s.test(c)){var l=s.exec(c)[1];l=Object(r.a)(l),i[l]=t[c]}else n[c]=t[c];return e.on=Object(o.a)(i,e.on),e.props=Object(o.a)(n,e.props),e}e.a=i;var o=n(62),r=n(103),s=new RegExp(/^on(.+)/),a=["class","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"]},103:function(t,e,n){"use strict";function i(t,e){var n=c(t,e);return n.charAt(0).toLowerCase()+n.slice(1)}e.a=i;var o=n(28),r=n.n(o),s=n(4),a=function(t){for(var e=!1,n=!1,i=!1,o=0;o<t.length;o++){var r=t[o];e&&/[a-zA-Z]/.test(r)&&r.toUpperCase()===r?(t=t.slice(0,o)+"-"+t.slice(o),e=!1,i=n,n=!0,o++):n&&i&&/[a-zA-Z]/.test(r)&&r.toLowerCase()===r?(t=t.slice(0,o-1)+"-"+t.slice(o-1),i=n,n=!1,e=!0):(e=r.toLowerCase()===r&&r.toUpperCase()!==r,i=n,n=r.toUpperCase()===r&&r.toLowerCase()!==r)}return t},c=function(t,e){if("string"!=typeof t&&!Object(s.p)(t))throw new TypeError("Expected the input to be `string | string[]`");e=r()({pascalCase:!1},e);return t=Array.isArray(t)?t.map(function(t){return t.trim()}).filter(function(t){return t.length}).join("-"):t.trim(),0===t.length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=a(t)),t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()}).replace(/\d+(\w|$)/g,function(t){return t.toUpperCase()}),function(t){return e.pascalCase?t.charAt(0).toUpperCase()+t.slice(1):t}(t))}},104:function(t,e,n){"use strict";function i(t,e,n,i){var r=void 0,s=void 0,a=new t({render:function(t){var n=s&&s(t);return n&&!Object(o.p)(n)&&(n=[n]),t(e,r,n||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return a.updateRenderData=function(t,e){r=t,s=e},a.updateRenderData(n,i),a.$mount(),a.init(),a.$children[0]}e.a=i;var o=n(4)},105:function(t,e,n){"use strict";var i=n(20),o=n(64);e.a={name:"ActPopup",mixins:[i.a,o.a],props:{type:{type:String,default:""},mask:{type:Boolean,default:!0},content:{type:String,default:""},center:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.7},pointerEvent:{type:String,default:""},zIndex:{type:[String,Number],default:"999"},topBorderRadius:{type:Boolean,default:!1}},computed:{typeClass:function(){return this.type?"act-"+this.type:""},maskBgColor:function(){return"rgba(0, 0, 0, "+this.opacity+")"}},methods:{maskClick:function(t){this.$emit("mask-click",t)}}}},107:function(t,e,n){var i=n(26),o=n(3)("toStringTag"),r="Arguments"==i(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),o))?n:r?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},108:function(t,e,n){"use strict";function i(t){a||n(120)}var o=n(105),r=n(121),s=n(1),a=!1,c=i,l=Object(s.a)(o.a,r.a,r.b,!1,c,null,null);l.options.__file="src\\components\\common\\popup.vue",e.a=l.exports},11:function(t,e,n){var i=n(47),o=n(29);t.exports=function(t){return i(o(t))}},110:function(t,e,n){var i=n(9),o=n(40),r=n(3)("species");t.exports=function(t,e){var n,s=i(t).constructor;return void 0===s||void 0==(n=i(s)[r])?e:o(n)}},111:function(t,e,n){var i,o,r,s=n(38),a=n(146),c=n(60),l=n(41),u=n(2),h=u.process,p=u.setImmediate,f=u.clearImmediate,d=u.MessageChannel,m=u.Dispatch,v=0,g={},y=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){y.call(t.data)};p&&f||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++v]=function(){a("function"==typeof t?t:Function(t),e)},i(v),v},f=function(t){delete g[t]},"process"==n(26)(h)?i=function(t){h.nextTick(s(y,t,1))}:m&&m.now?i=function(t){m.now(s(y,t,1))}:d?(o=new d,r=o.port2,o.port1.onmessage=b,i=s(r.postMessage,r,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(t){u.postMessage(t+"","*")},u.addEventListener("message",b,!1)):i="onreadystatechange"in l("script")?function(t){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(s(y,t,1),0)}),t.exports={set:p,clear:f}},112:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},113:function(t,e,n){var i=n(9),o=n(10),r=n(68);t.exports=function(t,e){if(i(t),o(e)&&e.constructor===t)return e;var n=r.f(t);return(0,n.resolve)(e),n.promise}},114:function(t,e,n){"use strict";function i(t){t.interceptors.response.use(function(t){return t},function(t){var e={403:"请求被拒绝,请联系客服处理",404:"您访问的资源不可用,请联系客服处理",502:"服务器网关出错,请稍后重试",503:"服务器维护中,请稍后重试",504:"服务器请求超时,请稍后重试"},n="";return n=t&&t.response&&t.response.status?e[t.response.status]?e[t.response.status]+"("+t.response.status+")":"请求失败,请稍后重试("+t.response.status+")":t&&t.message&&/timeout/i.test(t.message)?"请求超时,请稍后重试":"请求失败,请稍后重试",a.a.reject(new Error(n))})}function o(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;return new a.a(function(o,r){var s=l.a.create();i(s),s.request({method:"post",url:t,data:e,timeout:n,withCredentials:!0,headers:{"X-Requested-With":"XMLHttpRequest"}}).then(function(t){o(t)}).catch(function(t){r(t)})})}function r(t){return l.a.get(t).then(function(t){return a.a.resolve(t.data)})}e.a=i,e.d=o,e.c=r;var s=n(52),a=n.n(s),c=n(164),l=n.n(c);e.b=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;return new a.a(function(o,r){var s=l.a.create();i(s),s.request({method:"post",url:t,data:e,timeout:n,withCredentials:!0,headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/x-www-form-urlencoded"},transformRequest:[function(t){function e(t,e){var n=0,i=t.length;if(void 0===i||"[object Function]"===Object.prototype.toString.call(t)){for(var o in t)if(!1===e.call(t[o],o,t[o]))break}else for(var r=t[0];n<i&&!1!==e.call(r,n,r);r=t[++n]);return t}function n(t,i,o){var r=void 0,s="[object Array]"===Object.prototype.toString.call(i),a="[object Object]"===Object.prototype.toString.call(i);e(i,function(e,i){r=Object.prototype.toString.call(i),o&&(e=o+"["+(a||"[object Object]"===r||"[object Array]"===r?e:"")+"]"),!o&&s?t.add(i.name,i.value):"[object Array]"===r||"[object Object]"===r?n(t,i,e):t.add(e,i)})}if(t){return function(t){var e=[];return e.add=function(t,e){"[object Function]"===Object.prototype.toString.call(e)&&(e=e()),null==e&&(e=""),this.push(encodeURIComponent(t)+"="+encodeURIComponent(e))},n(e,t),e.join("&").replace(/%20/g,"+")}(t)}}]}).then(function(t){o(t)}).catch(function(t){r(t)})})}},115:function(t,e,n){var i=n(107),o=n(3)("iterator"),r=n(18);t.exports=n(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||r[i(t)]}},116:function(t,e,n){"use strict";function i(t){t.preventDefault()}var o={watch:{isVisible:function(t){t?document.body.addEventListener("touchmove",i,{passive:!1}):document.body.removeEventListener("touchmove",i,{passive:!1})}},beforeDestroy:function(){document.body.removeEventListener("touchmove",i,{passive:!1})}};e.a=o},117:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},118:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(154);e.default=i.a},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},120:function(t,e){},121:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-popup",class:t.typeClass,style:{pointerEvents:t.pointerEvent,zIndex:t.zIndex}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.mask,expression:"mask"}],staticClass:"act-popup-mask act-row act-middle",style:{backgroundColor:t.maskBgColor},on:{click:t.maskClick}},[t._t("mask")],2),t._v(" "),n("div",{staticClass:"act-popup-container",class:{"act-popup-center":t.center}},[t.$slots.default?n("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius}},[t._t("default")],2):n("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius},domProps:{innerHTML:t._s(t.content)}})])])},o=[];i._withStripped=!0},123:function(t,e,n){var i=n(38),o=n(136),r=n(137),s=n(9),a=n(59),c=n(115),l={},u={},e=t.exports=function(t,e,n,h,p){var f,d,m,v,g=p?function(){return t}:c(t),y=i(n,h,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(r(g)){for(f=a(t.length);f>b;b++)if((v=e?y(s(d=t[b])[0],d[1]):y(t[b]))===l||v===u)return v}else for(m=g.call(t);!(d=m.next()).done;)if((v=o(m,y,d.value,e))===l||v===u)return v};e.BREAK=l,e.RETURN=u},125:function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return t.apply(e,n)}}},126:function(t,e,n){"use strict";function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(17);t.exports=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(o.isURLSearchParams(e))r=e.toString();else{var s=[];o.forEach(e,function(t,e){null!==t&&void 0!==t&&(o.isArray(t)?e+="[]":t=[t],o.forEach(t,function(t){o.isDate(t)?t=t.toISOString():o.isObject(t)&&(t=JSON.stringify(t)),s.push(i(e)+"="+i(t))}))}),r=s.join("&")}if(r){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}},127:function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},128:function(t,e,n){"use strict";(function(e){function i(t,e){!o.isUndefined(t)&&o.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var o=n(17),r=n(170),s={"Content-Type":"application/x-www-form-urlencoded"},a={adapter:function(){var t;return"undefined"!=typeof XMLHttpRequest?t=n(129):void 0!==e&&"[object process]"===Object.prototype.toString.call(e)&&(t=n(129)),t}(),transformRequest:[function(t,e){return r(e,"Accept"),r(e,"Content-Type"),o.isFormData(t)||o.isArrayBuffer(t)||o.isBuffer(t)||o.isStream(t)||o.isFile(t)||o.isBlob(t)?t:o.isArrayBufferView(t)?t.buffer:o.isURLSearchParams(t)?(i(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):o.isObject(t)?(i(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};a.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(t){a.headers[t]={}}),o.forEach(["post","put","patch"],function(t){a.headers[t]=o.merge(s)}),t.exports=a}).call(e,n(153))},129:function(t,e,n){"use strict";var i=n(17),o=n(171),r=n(126),s=n(173),a=n(176),c=n(177),l=n(130);t.exports=function(t){return new Promise(function(e,u){var h=t.data,p=t.headers;i.isFormData(h)&&delete p["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",m=t.auth.password||"";p.Authorization="Basic "+btoa(d+":"+m)}var v=s(t.baseURL,t.url);if(f.open(t.method.toUpperCase(),r(v,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?a(f.getAllResponseHeaders()):null,i=t.responseType&&"text"!==t.responseType?f.response:f.responseText,r={data:i,status:f.status,statusText:f.statusText,headers:n,config:t,request:f};o(e,u,r),f=null}},f.onabort=function(){f&&(u(l("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){u(l("Network Error",t,null,f)),f=null},f.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),u(l(e,t,"ECONNABORTED",f)),f=null},i.isStandardBrowserEnv()){var g=n(178),y=(t.withCredentials||c(v))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;y&&(p[t.xsrfHeaderName]=y)}if("setRequestHeader"in f&&i.forEach(p,function(t,e){void 0===h&&"content-type"===e.toLowerCase()?delete p[e]:f.setRequestHeader(e,t)}),i.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),t.responseType)try{f.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){f&&(f.abort(),u(t),f=null)}),void 0===h&&(h=null),f.send(h)})}},13:function(t,e,n){var i=n(2),o=n(0),r=n(38),s=n(7),a=n(6),c=function(t,e,n){var l,u,h,p=t&c.F,f=t&c.G,d=t&c.S,m=t&c.P,v=t&c.B,g=t&c.W,y=f?o:o[e]||(o[e]={}),b=y.prototype,w=f?i:d?i[e]:(i[e]||{}).prototype;f&&(n=e);for(l in n)(u=!p&&w&&void 0!==w[l])&&a(y,l)||(h=u?w[l]:n[l],y[l]=f&&"function"!=typeof w[l]?n[l]:v&&u?r(h,i):g&&w[l]==h?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):m&&"function"==typeof h?r(Function.call,h):h,m&&((y.virtual||(y.virtual={}))[l]=h,t&c.R&&b&&!b[l]&&s(b,l,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},130:function(t,e,n){"use strict";var i=n(172);t.exports=function(t,e,n,o,r){var s=new Error(t);return i(s,e,n,o,r)}},131:function(t,e,n){"use strict";var i=n(17);t.exports=function(t,e){e=e||{};var n={},o=["url","method","params","data"],r=["headers","auth","proxy"],s=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];i.forEach(o,function(t){void 0!==e[t]&&(n[t]=e[t])}),i.forEach(r,function(o){i.isObject(e[o])?n[o]=i.deepMerge(t[o],e[o]):void 0!==e[o]?n[o]=e[o]:i.isObject(t[o])?n[o]=i.deepMerge(t[o]):void 0!==t[o]&&(n[o]=t[o])}),i.forEach(s,function(i){void 0!==e[i]?n[i]=e[i]:void 0!==t[i]&&(n[i]=t[i])});var a=o.concat(r).concat(s),c=Object.keys(e).filter(function(t){return-1===a.indexOf(t)});return i.forEach(c,function(i){void 0!==e[i]?n[i]=e[i]:void 0!==t[i]&&(n[i]=t[i])}),n}},132:function(t,e,n){"use strict";function i(t){this.message=t}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,t.exports=i},136:function(t,e,n){var i=n(9);t.exports=function(t,e,n,o){try{return o?e(i(n)[0],n[1]):e(n)}catch(e){var r=t.return;throw void 0!==r&&i(r.call(t)),e}}},137:function(t,e,n){var i=n(18),o=n(3)("iterator"),r=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||r[o]===t)}},138:function(t,e,n){"use strict";function i(t){a||n(205)}var o=n(157),r=n(206),s=n(1),a=!1,c=i,l=Object(s.a)(o.a,r.a,r.b,!1,c,"data-v-3349a91e",null);l.options.__file="src\\components\\common\\scroll.vue",e.a=l.exports},139:function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},14:function(t,e,n){"use strict";function i(t,e){return function(n,i){var s=this,a=Object(o.a)(n),c=Object(r.a)(e,t,a,i),l=c.$parent,u=c.remove,h=c.show,p=c.hide;return c.remove=function(){c.$removed=!0,u&&u.call(this),l.destroy()},c.show=function(){return h&&h.call.apply(h,[this].concat(Array.prototype.slice.call(arguments))),this},c.hide=function(){return p&&p.call.apply(p,[this].concat(Array.prototype.slice.call(arguments))),this},s&&s._isVue&&s.$once("hook:beforeDestroy",function(){c.$removed||c.remove()}),c}}e.a=i;var o=n(102),r=n(104)},140:function(t,e,n){var i=n(7);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:i(t,o,e[o]);return t}},141:function(t,e,n){var i=n(3)("iterator"),o=!1;try{var r=[7][i]();r.return=function(){o=!0},Array.from(r,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r=[7],s=r[i]();s.next=function(){return{done:n=!0}},r[i]=function(){return s},t(r)}catch(t){}return n}},142:function(t,e,n){"use strict";var i=n(2),o=n(0),r=n(8),s=n(5),a=n(3)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:i[t];s&&e&&!e[a]&&r.f(e,a,{configurable:!0,get:function(){return this}})}},144:function(t,e,n){n(61),n(53),n(56),n(145),n(149),n(150),t.exports=n(0).Promise},145:function(t,e,n){"use strict";var i,o,r,s,a=n(16),c=n(2),l=n(38),u=n(107),h=n(13),p=n(10),f=n(40),d=n(139),m=n(123),v=n(110),g=n(111).set,y=n(147)(),b=n(68),w=n(112),x=n(148),A=n(113),S=c.TypeError,_=c.process,C=_&&_.versions,T=C&&C.v8||"",E=c.Promise,k="process"==u(_),M=function(){},O=o=b.f,P=!!function(){try{var t=E.resolve(1),e=(t.constructor={})[n(3)("species")]=function(t){t(M,M)};return(k||"function"==typeof PromiseRejectionEvent)&&t.then(M)instanceof e&&0!==T.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),j=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},L=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var i=t._v,o=1==t._s,r=0;n.length>r;)!function(e){var n,r,s,a=o?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{a?(o||(2==t._h&&I(t),t._h=1),!0===a?n=i:(u&&u.enter(),n=a(i),u&&(u.exit(),s=!0)),n===e.promise?l(S("Promise-chain cycle")):(r=j(n))?r.call(n,c,l):c(n)):l(i)}catch(t){u&&!s&&u.exit(),l(t)}}(n[r++]);t._c=[],t._n=!1,e&&!t._h&&B(t)})}},B=function(t){g.call(c,function(){var e,n,i,o=t._v,r=N(t);if(r&&(e=w(function(){k?_.emit("unhandledRejection",o,t):(n=c.onunhandledrejection)?n({promise:t,reason:o}):(i=c.console)&&i.error&&i.error("Unhandled promise rejection",o)}),t._h=k||N(t)?2:1),t._a=void 0,r&&e.e)throw e.v})},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},I=function(t){g.call(c,function(){var e;k?_.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},X=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),L(e,!0))},Y=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=j(t))?y(function(){var i={_w:n,_d:!1};try{e.call(t,l(Y,i,1),l(X,i,1))}catch(t){X.call(i,t)}}):(n._v=t,n._s=1,L(n,!1))}catch(t){X.call({_w:n,_d:!1},t)}}};P||(E=function(t){d(this,E,"Promise","_h"),f(t),i.call(this);try{t(l(Y,this,1),l(X,this,1))}catch(t){X.call(this,t)}},i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},i.prototype=n(140)(E.prototype,{then:function(t,e){var n=O(v(this,E));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=k?_.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&L(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),r=function(){var t=new i;this.promise=t,this.resolve=l(Y,t,1),this.reject=l(X,t,1)},b.f=O=function(t){return t===E||t===s?new r(t):o(t)}),h(h.G+h.W+h.F*!P,{Promise:E}),n(27)(E,"Promise"),n(142)("Promise"),s=n(0).Promise,h(h.S+h.F*!P,"Promise",{reject:function(t){var e=O(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(a||!P),"Promise",{resolve:function(t){return A(a&&this===s?E:this,t)}}),h(h.S+h.F*!(P&&n(141)(function(t){E.all(t).catch(M)})),"Promise",{all:function(t){var e=this,n=O(e),i=n.resolve,o=n.reject,r=w(function(){var n=[],r=0,s=1;m(t,!1,function(t){var a=r++,c=!1;n.push(void 0),s++,e.resolve(t).then(function(t){c||(c=!0,n[a]=t,--s||i(n))},o)}),--s||i(n)});return r.e&&o(r.v),n.promise},race:function(t){var e=this,n=O(e),i=n.reject,o=w(function(){m(t,!1,function(t){e.resolve(t).then(n.resolve,i)})});return o.e&&i(o.v),n.promise}})},146:function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},147:function(t,e,n){var i=n(2),o=n(111).set,r=i.MutationObserver||i.WebKitMutationObserver,s=i.process,a=i.Promise,c="process"==n(26)(s);t.exports=function(){var t,e,n,l=function(){var i,o;for(c&&(i=s.domain)&&i.exit();t;){o=t.fn,t=t.next;try{o()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(c)n=function(){s.nextTick(l)};else if(!r||i.navigator&&i.navigator.standalone)if(a&&a.resolve){var u=a.resolve(void 0);n=function(){u.then(l)}}else n=function(){o.call(i,l)};else{var h=!0,p=document.createTextNode("");new r(l).observe(p,{characterData:!0}),n=function(){p.data=h=!h}}return function(i){var o={fn:i,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},148:function(t,e,n){var i=n(2),o=i.navigator;t.exports=o&&o.userAgent||""},149:function(t,e,n){"use strict";var i=n(13),o=n(0),r=n(2),s=n(110),a=n(113);i(i.P+i.R,"Promise",{finally:function(t){var e=s(this,o.Promise||r.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then(function(){return n})}:t,n?function(n){return a(e,t()).then(function(){throw n})}:t)}})},15:function(t,e,n){var i=n(50),o=n(33);t.exports=Object.keys||function(t){return i(t,o)}},150:function(t,e,n){"use strict";var i=n(13),o=n(68),r=n(112);i(i.S,"Promise",{try:function(t){var e=o.f(this),n=r(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},1505:function(t,e,n){"use strict";var i=n(28),o=n.n(i),r=n(52),s=n.n(r),a=n(1795),c=n(1801),l=n(39),u=n(42),h=n(44),p=n(114),f=n(96);e.a={name:"ActGoldCoupon",mixins:[l.a,u.a],data:function(){return{couponElement:{tit:"优惠券",align:"left",titPadding:!0,colons:!0},priceElement:{tit:"优惠金额",align:"left",colons:!0},coupon:null,unusableList:[],usableList:[]}},props:{price:{type:[Number,String],default:0},couponUrl:{type:String,default:"/coupon/getMyCoupons"},exchangeUrl:{type:String,default:"/coupon/cdkeyExchange"},prams:{type:Object,default:function(){return{}}}},watch:{price:function(t,e){this.coupon&&this.coupon.extra&&this.coupon.extra.payment>0&&(t?this.unusablePaymentList.indexOf(this.coupon.couponId)>-1&&(this.coupon=null):this.coupon=null)},priceText:function(t,e){this.$emit("change",this.coupon,t)}},computed:{codeStyle:function(){var t={};return this.brandColor&&(t.color=this.brandColor),t},couponText:function(){return this.usableList&&this.unusablePaymentList?this.usableList.length-this.unusablePaymentList.length:0},priceText:function(){return this.coupon&&this.price?this.useCoupon(this.coupon,this.price):""},paymentList:function(){var t=[];return this.usableList&&this.usableList.length>0&&this.usableList.forEach(function(e){if(e.extra&&e.extra.payment>0){var n={};n.couponId=e.couponId,n.payment=e.extra.payment,t.push(n)}}),t},unusablePaymentList:function(){var t=this,e=[];return this.paymentList.forEach(function(n){Number(t.price)<Number(n.payment)&&e.push(n.couponId)}),e},reallyUnusableList:function(){var t=this,e=[];if(this.usableList&&this.unusableList){e=this.usableList.filter(function(e){return t.unusablePaymentList.indexOf(e.couponId)>-1}).concat(this.unusableList)}return e},reallyUsableList:function(){var t=this,e=[];return this.usableList&&(e=this.usableList.filter(function(e){return!(t.unusablePaymentList.indexOf(e.couponId)>-1)})),e}},mounted:function(){var t=this;this.initCoupon().then(function(){t.getBestCoupon()}).catch(function(t){})},methods:{initCoupon:function(){var t=this;return new s.a(function(e,n){t.getCoupon("usable").then(function(n){t.usableList=n&&n.data.coupons,e()}).catch(function(e){t.error(e)}),t.getCoupon("unusable").then(function(e){t.unusableList=e&&e.data.coupons}).catch(function(e){t.error(e)})})},getBestCoupon:function(){var t=this.reallyUsableList.length;if(0===t)this.coupon=null;else if(1===t)this.coupon=this.reallyUsableList[0];else if(this.price){for(var e=0,n=0,i=0;i<t;i++){var o=this.useCoupon(this.reallyUsableList[i],this.price);n<o&&(n=o,e=i)}this.coupon=this.reallyUsableList[e]}},useCoupon:function(t,e){var n=0;return e<=0||!t?0:(1===Number(t.type)?(n=e*t.deduction/1e4,t.maxdeduct>0&&e-n>t.maxdeduct&&(n=e-t.maxdeduct),n=Math.ceil(n)):2===Number(t.type)&&(n=e-t.deduction),n<=0?e-1:e-n)},getCoupon:function(t){var e=this,n=o()({type:t},this.prams);return new s.a(function(t,i){Object(p.b)(e.couponUrl,n).then(function(e){e&&e.data&&0===e.data.ret?t(e.data):i(e.data)}).catch(function(t){})})},showCoupon:function(){this.$refs.couponCode.hide(),this.$refs.couponList.show()},showCouponCode:function(){this.$refs.couponList.hide(),this.$refs.couponCode.show()},changeCoupon:function(t){this.$refs.couponList.hide(),this.coupon=t,this.price||this.$emit("change",this.coupon,this.priceText)},exchange:function(t){var e=this;this.initCoupon().then(function(){e.showCoupon()}).catch(function(t){}),this.$emit("exchange",t)},returnCode:function(t){this.showCoupon()},error:function(t){this.$emit("error",t)}},destroyed:function(){this.$emit("change",null,0)},components:{ActGoldBaseElement:h.a,svgIcon:f.a,couponList:a.a,couponCode:c.a}}},1506:function(t,e,n){"use strict";var i=n(1797),o=n(108),r=n(138),s=n(20),a=n(116),c=n(64);e.a={name:"CouponList",mixins:[s.a,a.a,c.a],data:function(){return{isShowUsable:!0}},props:{unusableList:{type:Array,default:function(){return[]}},usableList:{type:Array,default:function(){return[]}},brandColor:{type:String,default:"#8c7fee"},couponId:{type:Number,default:0}},watch:{list:function(t,e){t&&this.$refs.scroll&&(this.refresh(),this.$refs.scroll.scrollTo(0,0))},isVisible:function(t,e){t&&this.$refs.scroll&&this.refresh()}},computed:{usableStyle:function(){var t={};return this.brandColor&&this.isShowUsable&&(t.color=this.brandColor),t},unusableStyle:function(){var t={};return this.brandColor&&!this.isShowUsable&&(t.color=this.brandColor),t},list:function(){return this.isShowUsable?this.usableList:this.unusableList},checkedStyle:function(){var t={};return!this.couponId&&this.brandColor&&(t.backgroundColor=this.brandColor),t}},methods:{getDesc:function(t){if(t.extra&&t.extra.usage)return t.extra.usage;var e="";return 1===Number(t.prodChnType)?e+="适用于小雨伞保险":2===Number(t.prodChnType)?e+="仅限"+t.prodChnTxt+"平台使用,适用于该平台":3===Number(t.prodChnType)?e+="仅限咔嚓保平台使用,适用于该平台":t.chntxt?e+="仅限"+t.chntxt+"平台使用,适用于该平台":e+="适用于小雨伞保险",e+=t.producttxt?"的"+t.producttxt+"产品":"所有产品(阳光成人定期重疾险、阳光定期寿险、华夏关爱宝终身重疾险除外)"},getState:function(t){var e="";if(!this.isShowUsable){e={2:"使用中",3:"已使用",4:"不可用",5:"未生效",6:"已过期",7:"不适用",8:"不适用"}[Number(t)]||"不适用"}return e},refresh:function(){var t=this;this.$nextTick(function(){t.$refs.scroll.refresh()})},changeChoose:function(t){var e=null;-1!==Number(t)&&this.usableList.some(function(n){return Number(t)===Number(n.couponId)&&(e=n,!0)}),this.$emit("change",e)},changeList:function(t){this.isShowUsable=t},close:function(){this.hide()}},components:{couponItem:i.a,ActPopup:o.a,scroll:r.a}}},1507:function(t,e,n){"use strict";e.a={name:"ActCouponItem",data:function(){return{}},props:{id:{type:Number,default:0},name:{type:String,default:""},begTime:{type:String,default:""},endTime:{type:String,default:""},type:{type:Number,default:1},deduction:{type:Number,default:0},state:{type:String,default:""},description:{type:String,default:""},deduct:{type:Number,default:0},payment:{type:Number,default:0},checked:{type:Boolean,default:!1},checkedColor:{type:String,default:""},backgroundColor:{type:String,default:""}},computed:{checkedStyle:function(){var t={};return this.checked&&this.checkedColor&&(t.backgroundColor=this.checkedColor),t},circleStyle:function(){var t={};return this.backgroundColor&&(t.backgroundColor=this.backgroundColor),t}},methods:{change:function(){this.state||this.$emit("changeChoose",this.id)}}}},1508:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAASCAYAAABfJS4tAAABJUlEQVQ4ja3SvyvEYRwH8M/lZ0qUZFGSwWJSLDLLyM5qMspqMFot/gJGi4mUcuNlkCiDEoMuXcpw0b0M5+p8PfdD51NPffs87++r51cg/mns4BnXWPgvdMPPusshOqzZiMhHRF9dr9gpPBwRhYiYzPS3O9l+Dsd+1wlyncBbCfQBI4jABA5xjtU20UV8ZNAy5muZwGXdZAVrLdAxPCVWu1mfC7xmAp9YaYB24SyBHmWzgf1EsIylBLybyN5iMAX3SN/uu+pZ1sLLqkeVzcykdlf76MVpAi9hTvWCi4n59RRaDwcGkE/8/IKrRP+gEZqFA0MoJJBsFdD/FzgwipsmaAlTzdBGcGAc9wm0ovFTbAuO71U9ZuC9dtBWcGAaF3hTfe/d7cJfaSyeHTokbc0AAAAASUVORK5CYII="},1509:function(t,e,n){"use strict";var i=n(108),o=n(114),r=n(64),s=n(20),a=n(116),c=n(4);e.a={name:"ActCouponCode",mixins:[s.a,a.a,r.a],data:function(){return{code:""}},components:{ActPopup:i.a},props:{url:{type:String,default:""},brandColor:{type:String,default:""}},computed:{returnStyle:function(){var t={};if(this.brandColor){var e=Object(c.o)(this.brandColor,.08);t.borderColor=this.brandColor,t.color=this.brandColor,t.backgroundColor=e}return t},confirmStyle:function(){var t={};return this.brandColor&&(t.backgroundColor=this.brandColor),t}},methods:{inputCode:function(t){var e=t.target.value.replace(/[^0-9a-zA-Z]/g,"");""!==e&&void 0!==e&&(this.code=e,e.length>6&&(this.code=e.substr(0,6)))},exchange:function(){var t=this;this.code&&6===this.code.length?Object(o.b)(this.url,{cdkey:this.code}).then(function(e){0===e.data.ret?t.$emit("exchange",t.code):t.$emit("error",e.data)}).catch(function(t){}):this.$emit("error",{ret:"",errmsg:"请输入6位优惠码"})},close:function(){this.hide(),this.$emit("closeCode")},codeReturn:function(){this.hide(),this.$emit("returnCode")}}}},152:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n(4),o=function(){var t=!0;if(i.K.isIOS){var e=Object(i.l)(navigator.userAgent.toLowerCase());if(!e)return t;Number(""+e.major+e.minor)>=133&&(t=!1)}return t}()},153:function(t,e){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(t){if(u===setTimeout)return setTimeout(t,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(t,0);try{return u(t,0)}catch(e){try{return u.call(null,t,0)}catch(e){return u.call(this,t,0)}}}function r(t){if(h===clearTimeout)return clearTimeout(t);if((h===i||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function s(){m&&f&&(m=!1,f.length?d=f.concat(d):v=-1,d.length&&a())}function a(){if(!m){var t=o(s);m=!0;for(var e=d.length;e;){for(f=d,d=[];++v<e;)f&&f[v].run();v=-1,e=d.length}f=null,m=!1,r(t)}}function c(t,e){this.fun=t,this.array=e}function l(){}var u,h,p=t.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:n}catch(t){u=n}try{h="function"==typeof clearTimeout?clearTimeout:i}catch(t){h=i}}();var f,d=[],m=!1,v=-1;p.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];d.push(new c(t,e)),1!==d.length||m||o(a)},c.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=l,p.addListener=l,p.once=l,p.off=l,p.removeListener=l,p.removeAllListeners=l,p.emit=l,p.prependListener=l,p.prependOnceListener=l,p.listeners=function(t){return[]},p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},154:function(t,e,n){"use strict";function i(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function o(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];for(var o=0;o<n.length;o++){var r=n[o];for(var s in r)t[s]=r[s]}return t}function r(t){return void 0===t||null===t}function s(t,e){return Math.sqrt(t*t+e*e)}function a(t){return!1!==I&&("standard"===I?"transitionEnd"===t?"transitionend":t:I+t.charAt(0).toUpperCase()+t.substr(1))}function c(t,e,n,i){t.addEventListener(e,n,{passive:!1,capture:!!i})}function l(t,e,n,i){t.removeEventListener(e,n,{passive:!1,capture:!!i})}function u(t){for(var e=0,n=0;t;)e-=t.offsetLeft,n-=t.offsetTop,t=t.offsetParent;return{left:e,top:n}}function h(t){var e=t.getBoundingClientRect();return{left:-(e.left+window.pageXOffset),top:-(e.top+window.pageYOffset)}}function p(t){if(t instanceof window.SVGElement){var e=t.getBoundingClientRect();return{top:e.top,left:e.left,width:e.width,height:e.height}}return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}function f(t,e){for(var n in e)if(e[n].test(t[n]))return!0;return!1}function d(t,e){var n=document.createEvent("Event");n.initEvent(e,!0,!0),n.pageX=t.pageX,n.pageY=t.pageY,t.target.dispatchEvent(n)}function m(t){function e(){s=document.createEvent("Event"),s.initEvent(n,a,c),o(s,r)}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click",i=void 0;"mouseup"===t.type||"mousecancel"===t.type?i=t:"touchend"!==t.type&&"touchcancel"!==t.type||(i=t.changedTouches[0]);var r={};i&&(r.screenX=i.screenX||0,r.screenY=i.screenY||0,r.clientX=i.clientX||0,r.clientY=i.clientY||0);var s=void 0,a=!0,c=!0;if("undefined"!=typeof MouseEvent)try{s=new MouseEvent(n,o({bubbles:a,cancelable:c},r))}catch(t){e()}else e();s.forwardedTouchEvent=!0,s._constructed=!0,t.target.dispatchEvent(s)}function v(t){m(t,"dblclick")}function g(t,e){e.firstChild?y(t,e.firstChild):e.appendChild(t)}function y(t,e){e.parentNode.insertBefore(t,e)}function b(t,e){t.removeChild(e)}function w(t,e,n,i,o,r,s){var a=t-e,c=Math.abs(a)/n,l=s.deceleration,u=s.itemHeight,h=s.swipeBounceTime,p=s.wheel,f=s.swipeTime,d=f,m=p?4:15,v=t+c/l*(a<0?-1:1);return p&&u&&(v=Math.round(v/u)*u),v<i?(v=r?Math.max(i-r/4,i-r/m*c):i,d=h):v>o&&(v=r?Math.min(o+r/4,o+r/m*c):o,d=h),{destination:Math.round(v),duration:d}}function x(){}function A(t){console.error("[BScroll warn]: "+t)}function S(t,e){if(!t)throw new Error("[BScroll] "+e)}function _(t){var e=document.createElement("div"),n=document.createElement("div");return e.style.cssText="position:absolute;z-index:9999;pointerEvents:none",n.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",n.className="bscroll-indicator","horizontal"===t?(e.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",n.style.height="100%",e.className="bscroll-horizontal-scrollbar"):(e.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",n.style.width="100%",e.className="bscroll-vertical-scrollbar"),e.style.cssText+=";overflow:hidden",e.appendChild(n),e}function C(t,e){this.wrapper=e.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=t,this.direction=e.direction,e.fade?(this.visible=0,this.wrapperStyle.opacity="0"):this.visible=1,this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.x=0,this.y=0,e.interactive&&this._addDOMEvents()}function T(t){if(t&&t.classList)return t.classList.contains("tombstone")}function E(t,e){var n=this;this.options=e,S("function"==typeof this.options.createTombstone,"Infinite scroll need createTombstone Function to create tombstone"),S("function"==typeof this.options.fetch,"Infinite scroll need fetch Function to fetch new data."),S("function"==typeof this.options.render,"Infinite scroll need render Function to render each item."),this.firstAttachedItem=0,this.lastAttachedItem=0,this.anchorScrollTop=0,this.anchorItem={index:0,offset:0},this.tombstoneHeight=0,this.tombstoneWidth=0,this.tombstones=[],this.items=[],this.loadedItems=0,this.requestInProgress=!1,this.hasMore=!0,this.scroller=t,this.wrapperEl=this.scroller.wrapper,this.scrollerEl=this.scroller.scroller,this.scroller.on("scroll",function(){n.onScroll()}),this.scroller.on("resize",function(){n.onResize()}),this.onResize()}function k(t,e){this.wrapper="string"==typeof t?document.querySelector(t):t,this.wrapper||A("Can not resolve the wrapper DOM."),this.scroller=this.wrapper.children[0],this.scroller||A("The wrapper need at least one child element to be scroller."),this.scrollerStyle=this.scroller.style,this._init(t,e)}var M=function(){function t(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)},P="undefined"!=typeof window,j=P&&navigator.userAgent.toLowerCase(),L=j&&/wechatdevtools/.test(j),B=j&&j.indexOf("android")>0,N=P&&document.createElement("div").style,I=function(){if(!P)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var e in t)if(void 0!==N[t[e]])return e;return!1}(),X=a("transform"),Y=P&&a("perspective")in N,D=P&&("ontouchstart"in window||L),R=!1!==X,U=P&&a("transition")in N,z={transform:X,transitionTimingFunction:a("transitionTimingFunction"),transitionDuration:a("transitionDuration"),transitionDelay:a("transitionDelay"),transformOrigin:a("transformOrigin"),transitionEnd:a("transitionEnd")},W=1,F={touchstart:W,touchmove:W,touchend:W,mousedown:2,mousemove:2,mouseup:2},H={startX:0,startY:0,scrollX:!1,scrollY:!0,freeScroll:!1,directionLockThreshold:5,eventPassthrough:"",click:!1,tap:!1,bounce:!0,bounceTime:800,momentum:!0,momentumLimitTime:300,momentumLimitDistance:15,swipeTime:2500,swipeBounceTime:500,deceleration:.0015,flickLimitTime:200,flickLimitDistance:100,resizePolling:60,probeType:0,preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:!1,disableMouse:D,disableTouch:!D,observeDOM:!0,autoBlur:!0,wheel:!1,snap:!1,scrollbar:!1,pullDownRefresh:!1,pullUpLoad:!1,mouseWheel:!1,stopPropagation:!1,zoom:!1,infinity:!1,dblclick:!1},V={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(t){return 1+--t*t*t*t*t}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(t){return 1- --t*t*t*t}}},q=function(){return P?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||100/60)/2)}:x}(),G=function(){return P?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:x}(),Q=1,J=-1,Z=1,K=-1,$=1,tt=3;C.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t);break;case"touchmove":case"mousemove":this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this._end(t)}},C.prototype.refresh=function(){this._shouldShow()&&(this.transitionTime(),this._calculate(),this.updatePosition())},C.prototype.fade=function(t,e){var n=this;if(!e||this.visible){var i=t?250:500;t=t?"1":"0",this.wrapperStyle[z.transitionDuration]=i+"ms",clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout(function(){n.wrapperStyle.opacity=t,n.visible=+t},0)}},C.prototype.updatePosition=function(){if("vertical"===this.direction){var t=Math.round(this.sizeRatioY*this.scroller.y);if(t<0){this.transitionTime(500);var e=Math.max(this.indicatorHeight+3*t,8);this.indicatorStyle.height=e+"px",t=0}else if(t>this.maxPosY){this.transitionTime(500);var n=Math.max(this.indicatorHeight-3*(t-this.maxPosY),8);this.indicatorStyle.height=n+"px",t=this.maxPosY+this.indicatorHeight-n}else this.indicatorStyle.height=this.indicatorHeight+"px";this.y=t,this.scroller.options.useTransform?this.indicatorStyle[z.transform]="translateY("+t+"px)"+this.scroller.translateZ:this.indicatorStyle.top=t+"px"}else{var i=Math.round(this.sizeRatioX*this.scroller.x);if(i<0){this.transitionTime(500);var o=Math.max(this.indicatorWidth+3*i,8);this.indicatorStyle.width=o+"px",i=0}else if(i>this.maxPosX){this.transitionTime(500);var r=Math.max(this.indicatorWidth-3*(i-this.maxPosX),8);this.indicatorStyle.width=r+"px",i=this.maxPosX+this.indicatorWidth-r}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=i,this.scroller.options.useTransform?this.indicatorStyle[z.transform]="translateX("+i+"px)"+this.scroller.translateZ:this.indicatorStyle.left=i+"px"}},C.prototype.transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorStyle[z.transitionDuration]=t+"ms"},C.prototype.transitionTimingFunction=function(t){this.indicatorStyle[z.transitionTimingFunction]=t},C.prototype.destroy=function(){this._removeDOMEvents(),this.wrapper.parentNode.removeChild(this.wrapper)},C.prototype._start=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=e.pageX,this.lastPointY=e.pageY,this.startTime=i(),this._handleMoveEvents(c),this.scroller.trigger("beforeScrollStart")},C.prototype._move=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.moved||this.scroller.trigger("scrollStart"),this.moved=!0;var n=e.pageX-this.lastPointX;this.lastPointX=e.pageX;var i=e.pageY-this.lastPointY;this.lastPointY=e.pageY;var o=this.x+n,r=this.y+i;this._pos(o,r)},C.prototype._end=function(t){if(this.initiated){this.initiated=!1,t.preventDefault(),t.stopPropagation(),this._handleMoveEvents(l);var e=this.scroller.options.snap;if(e){var n=e.speed,i=e.easing,o=void 0===i?V.bounce:i,r=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),s=n||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-r.x),1e3),Math.min(Math.abs(this.scroller.y-r.y),1e3)),300);this.scroller.x===r.x&&this.scroller.y===r.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=r,this.scroller.scrollTo(r.x,r.y,s,o))}this.moved&&this.scroller.trigger("scrollEnd",{x:this.scroller.x,y:this.scroller.y})}},C.prototype._pos=function(t,e){t<0?t=0:t>this.maxPosX&&(t=this.maxPosX),e<0?e=0:e>this.maxPosY&&(e=this.maxPosY),t=Math.round(t/this.sizeRatioX),e=Math.round(e/this.sizeRatioY),this.scroller.scrollTo(t,e),this.scroller.trigger("scroll",{x:this.scroller.x,y:this.scroller.y})},C.prototype._shouldShow=function(){return"vertical"===this.direction&&this.scroller.hasVerticalScroll||"horizontal"===this.direction&&this.scroller.hasHorizontalScroll?(this.wrapper.style.display="",!0):(this.wrapper.style.display="none",!1)},C.prototype._calculate=function(){if("vertical"===this.direction){var t=this.wrapper.clientHeight;this.indicatorHeight=Math.max(Math.round(t*t/(this.scroller.scrollerHeight||t||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px",this.maxPosY=t-this.indicatorHeight,this.sizeRatioY=this.maxPosY/this.scroller.maxScrollY}else{var e=this.wrapper.clientWidth;this.indicatorWidth=Math.max(Math.round(e*e/(this.scroller.scrollerWidth||e||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px",this.maxPosX=e-this.indicatorWidth,this.sizeRatioX=this.maxPosX/this.scroller.maxScrollX}},C.prototype._addDOMEvents=function(){var t=c;this._handleDOMEvents(t)},C.prototype._removeDOMEvents=function(){var t=l;this._handleDOMEvents(t),this._handleMoveEvents(t)},C.prototype._handleMoveEvents=function(t){this.scroller.options.disableTouch||t(window,"touchmove",this),this.scroller.options.disableMouse||t(window,"mousemove",this)},C.prototype._handleDOMEvents=function(t){this.scroller.options.disableTouch||(t(this.indicator,"touchstart",this),t(window,"touchend",this)),this.scroller.options.disableMouse||(t(this.indicator,"mousedown",this),t(window,"mouseup",this))};var et=2e3;E.prototype.onScroll=function(){var t=-this.scroller.y,e=t-this.anchorScrollTop;this.anchorItem=0===t?{index:0,offset:0}:this._calculateAnchoredItem(this.anchorItem,e),this.anchorScrollTop=t;var n=this._calculateAnchoredItem(this.anchorItem,this.wrapperEl.offsetHeight),i=this.anchorItem.index,o=n.index;e<0?(i-=30,o+=10):(i-=10,o+=30),this.fill(i,o),this.maybeRequestContent()},E.prototype.onResize=function(){var t=this.options.createTombstone();t.style.position="absolute",this.scrollerEl.appendChild(t),t.style.display="",this.tombstoneHeight=t.offsetHeight,this.tombstoneWidth=t.offsetWidth,this.scrollerEl.removeChild(t);for(var e=0;e<this.items.length;e++)this.items[e].height=this.items[e].width=0;this.onScroll()},E.prototype.fill=function(t,e){this.firstAttachedItem=Math.max(0,t),this.hasMore||(e=Math.min(e,this.items.length)),this.lastAttachedItem=e,this.attachContent()},E.prototype.maybeRequestContent=function(){var t=this;if(!this.requestInProgress&&this.hasMore){var e=this.lastAttachedItem-this.loadedItems;e<=0||(this.requestInProgress=!0,this.options.fetch(e).then(function(e){if(t.requestInProgress=!1,e)t.addContent(e);else{t.hasMore=!1;var n=t._removeTombstones(),i=0;t.anchorItem.index<=t.items.length?(i=t._fixScrollPosition(),t._setupAnimations({},i),t.scroller.resetPosition(t.scroller.options.bounceTime)):(t.anchorItem.index-=n,i=t._fixScrollPosition(),t._setupAnimations({},i),t.scroller.stop(),t.scroller.resetPosition(),t.onScroll())}}))}},E.prototype.addContent=function(t){for(var e=0;e<t.length;e++)this.items.length<=this.loadedItems&&this._addItem(),this.items[this.loadedItems++].data=t[e];this.attachContent(),this.maybeRequestContent()},E.prototype.attachContent=function(){var t=this._collectUnusedNodes(),e=this._createDOMNodes(t);this._cleanupUnusedNodes(t),this._cacheNodeSize();var n=this._fixScrollPosition();this._setupAnimations(e,n)},E.prototype.resetMore=function(){this.hasMore=!0},E.prototype._removeTombstones=function(){for(var t=void 0,e=0,n=this.items.length,i=0;i<n;i++){var o=this.items[i].node,r=this.items[i].data;o&&!T(o)||r||(t||(t=i),o&&this.scrollerEl.removeChild(o))}return e=n-t,this.items.splice(t),this.lastAttachedItem=Math.min(this.lastAttachedItem,this.items.length),e},E.prototype._collectUnusedNodes=function(){for(var t=[],e=0;e<this.items.length;e++)if(e!==this.firstAttachedItem){var n=this.items[e].node;n&&(T(n)?(this.tombstones.push(n),this.tombstones[this.tombstones.length-1].style.display="none"):t.push(n)),this.items[e].node=null}else e=this.lastAttachedItem-1;return t},E.prototype._createDOMNodes=function(t){for(var e={},n=this.firstAttachedItem;n<this.lastAttachedItem;n++){for(;this.items.length<=n;)this._addItem();var i=this.items[n].node,o=this.items[n].data;if(i){if(!T(i)||!o)continue;i.style.zIndex=1,e[n]=[i,this.items[n].top-this.anchorScrollTop],this.items[n].node=null}var r=o?this.options.render(o,t.pop()):this._getTombStone();r.style.position="absolute",this.items[n].top=-1,this.scrollerEl.appendChild(r),this.items[n].node=r}return e},E.prototype._cleanupUnusedNodes=function(t){for(;t.length;)this.scrollerEl.removeChild(t.pop())},E.prototype._cacheNodeSize=function(){for(var t=this.firstAttachedItem;t<this.lastAttachedItem;t++)this.items[t].data&&!this.items[t].height&&(this.items[t].height=this.items[t].node.offsetHeight,this.items[t].width=this.items[t].node.offsetWidth)},E.prototype._fixScrollPosition=function(){this.anchorScrollTop=0;for(var t=0;t<this.anchorItem.index;t++)this.anchorScrollTop+=this.items[t].height||this.tombstoneHeight;this.anchorScrollTop+=this.anchorItem.offset;for(var e=this.anchorScrollTop-this.anchorItem.offset,n=this.anchorItem.index;n>this.firstAttachedItem;)e-=this.items[n-1].height||this.tombstoneHeight,n--;return e},E.prototype._setupAnimations=function(t,e){var n=this;for(var i in t){var o=t[i];this.items[i].node.style.transform="translateY("+(this.anchorScrollTop+o[1])+"px) scale("+this.tombstoneWidth/this.items[i].width+", "+this.tombstoneHeight/this.items[i].height+")",this.items[i].node.offsetTop,o[0].offsetTop,this.items[i].node.style.transition="transform 200ms"}for(var r=this.firstAttachedI