@xysfe/actui
Version:
A fantastic mobile ui lib implement by Vue
1 lines • 355 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.GoldAddressLayer=e():t.GoldAddressLayer=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../lib",e(e.s=2198)}({0:function(t,e){var i=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=i)},1:function(t,e,i){"use strict";function n(t,e,i,n,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=i,l._compiled=!0),n&&(l.functional=!0),r&&(l._scopeId=r);var h;if(s?(h=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=h):o&&(h=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),h)if(l.functional){l._injectStyles=h;var u=l.render;l.render=function(t,e){return h.call(e),u(t,e)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,h):[h]}return{exports:t,options:l}}e.a=n},10:function(t,e,i){var n=i(7),o=i(22);t.exports=i(4)?function(t,e,i){return n.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},100:function(t,e,i){t.exports={default:i(101),__esModule:!0}},101:function(t,e,i){i(59),i(52),i(102),i(103),t.exports=i(0).Symbol},102:function(t,e,i){i(41)("asyncIterator")},103:function(t,e,i){i(41)("observable")},104:function(t,e,i){"use strict";function n(t){a||i(136)}var o=i(73),r=i(137),s=i(1),a=!1,c=n,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},106:function(t,e,i){i(107),t.exports=i(0).Object.keys},1066:function(t,e,i){"use strict";function n(t){a||i(1067)}var o=i(592),r=i(1068),s=i(1),a=!1,c=n,l=Object(s.a)(o.a,r.a,r.b,!1,c,"data-v-503eaf05",null);l.options.__file="src\\components\\Toast\\src\\index.vue",e.a=l.exports},1067:function(t,e){},1068:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("act-popup",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],attrs:{opacity:"0",pointerEvent:t.pointerEvents,zIndex:t.zIndex},scopedSlots:t._u([{key:"mask",fn:function(){return[i("div",{staticClass:"act-toast",style:{fontSize:t._fontSize}},[i("div",{class:{"act-toast-content":!0,icon:""!==t.iconObj,"icon-left":"left"===t.iconObj.align},style:{"text-align":t.align,background:"rgba(0,0,0,"+t.opacity+")"}},[t.iconObj?i("div",{staticClass:"icon-cont"},[i("Loading",{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],attrs:{type:t.iconObj.type,size:t.iconObj.size?t.iconObj.size:33,color:t.iconObj.color,bgcolor:t.iconObj.bgcolor,center:t.iconObj.center}})],1):t._e(),t._v(" "),i("div",{staticClass:"toast-txt"},[t._v("\n "+t._s(t.txt)+"\n ")])])])]},proxy:!0}])})},o=[];n._withStripped=!0},107:function(t,e,i){var n=i(17),o=i(16);i(60)("keys",function(){return function(t){return o(n(t))}})},108:function(t,e,i){"use strict";function n(t){t.interceptors.response.use(function(t){return t},function(t){var e={403:"请求被拒绝,请联系客服处理",404:"您访问的资源不可用,请联系客服处理",502:"服务器网关出错,请稍后重试",503:"服务器维护中,请稍后重试",504:"服务器请求超时,请稍后重试"},i="";return i=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(i))})}function o(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;return new a.a(function(o,r){var s=l.a.create();n(s),s.request({method:"post",url:t,data:e,timeout:i,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=n,e.d=o,e.c=r;var s=i(36),a=i.n(s),c=i(159),l=i.n(c);e.b=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;return new a.a(function(o,r){var s=l.a.create();n(s),s.request({method:"post",url:t,data:e,timeout:i,withCredentials:!0,headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/x-www-form-urlencoded"},transformRequest:[function(t){function e(t,e){var i=0,n=t.length;if(void 0===n||"[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];i<n&&!1!==e.call(r,i,r);r=t[++i]);return t}function i(t,n,o){var r=void 0,s="[object Array]"===Object.prototype.toString.call(n),a="[object Object]"===Object.prototype.toString.call(n);e(n,function(e,n){r=Object.prototype.toString.call(n),o&&(e=o+"["+(a||"[object Object]"===r||"[object Array]"===r?e:"")+"]"),!o&&s?t.add(n.name,n.value):"[object Array]"===r||"[object Object]"===r?i(t,n,e):t.add(e,n)})}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))},i(e,t),e.join("&").replace(/%20/g,"+")}(t)}}]}).then(function(t){o(t)}).catch(function(t){r(t)})})}},109:function(t,e,i){t.exports={default:i(110),__esModule:!0}},11:function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},110:function(t,e,i){i(111);var n=i(0).Object;t.exports=function(t){return n.getOwnPropertyNames(t)}},111:function(t,e,i){i(60)("getOwnPropertyNames",function(){return i(58).f})},112:function(t,e,i){t.exports={default:i(113),__esModule:!0}},113:function(t,e,i){i(59),t.exports=i(0).Object.getOwnPropertySymbols},116:function(t,e,i){var n=i(9);t.exports=function(t,e,i,o){try{return o?e(n(i)[0],i[1]):e(i)}catch(e){var r=t.return;throw void 0!==r&&n(r.call(t)),e}}},117:function(t,e,i){var n=i(21),o=i(3)("iterator"),r=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||r[o]===t)}},118:function(t,e,i){"use strict";function n(t){var e={},i={},n={};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),n[l]=t[c]}else i[c]=t[c];return e.on=Object(o.a)(n,e.on),e.props=Object(o.a)(i,e.props),e}e.a=n;var o=i(68),r=i(119),s=new RegExp(/^on(.+)/),a=["class","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"]},119:function(t,e,i){"use strict";function n(t,e){var i=c(t,e);return i.charAt(0).toLowerCase()+i.slice(1)}e.a=n;var o=i(29),r=i.n(o),s=i(5),a=function(t){for(var e=!1,i=!1,n=!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,n=i,i=!0,o++):i&&n&&/[a-zA-Z]/.test(r)&&r.toLowerCase()===r?(t=t.slice(0,o-1)+"-"+t.slice(o-1),n=i,i=!1,e=!0):(e=r.toLowerCase()===r&&r.toUpperCase()!==r,n=i,i=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))}},12:function(t,e,i){"use strict";function n(t){return"[object Array]"===T.call(t)}function o(t){return void 0===t}function r(t){return null!==t&&!o(t)&&null!==t.constructor&&!o(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function s(t){return"[object ArrayBuffer]"===T.call(t)}function a(t){return"undefined"!=typeof FormData&&t instanceof FormData}function c(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function l(t){return"string"==typeof t}function h(t){return"number"==typeof t}function u(t){return null!==t&&"object"==typeof t}function p(t){return"[object Date]"===T.call(t)}function f(t){return"[object File]"===T.call(t)}function d(t){return"[object Blob]"===T.call(t)}function v(t){return"[object Function]"===T.call(t)}function m(t){return u(t)&&v(t.pipe)}function g(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function A(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function b(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function y(t,e){if(null!==t&&void 0!==t)if("object"!=typeof t&&(t=[t]),n(t))for(var i=0,o=t.length;i<o;i++)e.call(null,t[i],i,t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.call(null,t[r],r,t)}function w(){function t(t,i){"object"==typeof e[i]&&"object"==typeof t?e[i]=w(e[i],t):e[i]=t}for(var e={},i=0,n=arguments.length;i<n;i++)y(arguments[i],t);return e}function S(){function t(t,i){"object"==typeof e[i]&&"object"==typeof t?e[i]=S(e[i],t):e[i]="object"==typeof t?S({},t):t}for(var e={},i=0,n=arguments.length;i<n;i++)y(arguments[i],t);return e}function x(t,e,i){return y(e,function(e,n){t[n]=i&&"function"==typeof e?j(e,i):e}),t}var j=i(126),T=Object.prototype.toString;t.exports={isArray:n,isArrayBuffer:s,isBuffer:r,isFormData:a,isArrayBufferView:c,isString:l,isNumber:h,isObject:u,isUndefined:o,isDate:p,isFile:f,isBlob:d,isFunction:v,isStream:m,isURLSearchParams:g,isStandardBrowserEnv:b,forEach:y,merge:w,deepMerge:S,extend:x,trim:A}},120:function(t,e,i){"use strict";function n(t,e,i,n){var r=void 0,s=void 0,a=new t({render:function(t){var i=s&&s(t);return i&&!Object(o.p)(i)&&(i=[i]),t(e,r,i||[])},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(i,n),a.$mount(),a.init(),a.$children[0]}e.a=n;var o=i(5)},121:function(t,e,i){var n=i(3)("iterator"),o=!1;try{var r=[7][n]();r.return=function(){o=!0},Array.from(r,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var i=!1;try{var r=[7],s=r[n]();s.next=function(){return{done:i=!0}},r[n]=function(){return s},t(r)}catch(t){}return i}},122:function(t,e,i){"use strict";var n=i(2),o=i(0),r=i(7),s=i(4),a=i(3)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:n[t];s&&e&&!e[a]&&r.f(e,a,{configurable:!0,get:function(){return this}})}},123:function(t,e,i){"use strict";e.__esModule=!0;var n=i(29),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}},125:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(150);e.default=n.a},126:function(t,e,i){"use strict";t.exports=function(t,e){return function(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];return t.apply(e,i)}}},127:function(t,e,i){"use strict";function n(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=i(12);t.exports=function(t,e,i){if(!e)return t;var r;if(i)r=i(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(n(e)+"="+n(t))}))}),r=s.join("&")}if(r){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}},128:function(t,e,i){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},129:function(t,e,i){"use strict";(function(e){function n(t,e){!o.isUndefined(t)&&o.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var o=i(12),r=i(165),s={"Content-Type":"application/x-www-form-urlencoded"},a={adapter:function(){var t;return"undefined"!=typeof XMLHttpRequest?t=i(130):void 0!==e&&"[object process]"===Object.prototype.toString.call(e)&&(t=i(130)),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)?(n(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):o.isObject(t)?(n(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,i(140))},13:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},130:function(t,e,i){"use strict";var n=i(12),o=i(166),r=i(127),s=i(168),a=i(171),c=i(172),l=i(131);t.exports=function(t){return new Promise(function(e,h){var u=t.data,p=t.headers;n.isFormData(u)&&delete p["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",v=t.auth.password||"";p.Authorization="Basic "+btoa(d+":"+v)}var m=s(t.baseURL,t.url);if(f.open(t.method.toUpperCase(),r(m,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 i="getAllResponseHeaders"in f?a(f.getAllResponseHeaders()):null,n=t.responseType&&"text"!==t.responseType?f.response:f.responseText,r={data:n,status:f.status,statusText:f.statusText,headers:i,config:t,request:f};o(e,h,r),f=null}},f.onabort=function(){f&&(h(l("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){h(l("Network Error",t,null,f)),f=null},f.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),h(l(e,t,"ECONNABORTED",f)),f=null},n.isStandardBrowserEnv()){var g=i(173),A=(t.withCredentials||c(m))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;A&&(p[t.xsrfHeaderName]=A)}if("setRequestHeader"in f&&n.forEach(p,function(t,e){void 0===u&&"content-type"===e.toLowerCase()?delete p[e]:f.setRequestHeader(e,t)}),n.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(),h(t),f=null)}),void 0===u&&(u=null),f.send(u)})}},131:function(t,e,i){"use strict";var n=i(167);t.exports=function(t,e,i,o,r){var s=new Error(t);return n(s,e,i,o,r)}},132:function(t,e,i){"use strict";var n=i(12);t.exports=function(t,e){e=e||{};var i={},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"];n.forEach(o,function(t){void 0!==e[t]&&(i[t]=e[t])}),n.forEach(r,function(o){n.isObject(e[o])?i[o]=n.deepMerge(t[o],e[o]):void 0!==e[o]?i[o]=e[o]:n.isObject(t[o])?i[o]=n.deepMerge(t[o]):void 0!==t[o]&&(i[o]=t[o])}),n.forEach(s,function(n){void 0!==e[n]?i[n]=e[n]:void 0!==t[n]&&(i[n]=t[n])});var a=o.concat(r).concat(s),c=Object.keys(e).filter(function(t){return-1===a.indexOf(t)});return n.forEach(c,function(n){void 0!==e[n]?i[n]=e[n]:void 0!==t[n]&&(i[n]=t[n])}),i}},133:function(t,e,i){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},136:function(t,e){},137:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("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}},[i("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(" "),i("div",{staticClass:"act-popup-container",class:{"act-popup-center":t.center}},[t.$slots.default?i("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius}},[t._t("default")],2):i("div",{class:{"act-popup-content":!0,"act-popup-top-radius":t.topBorderRadius},domProps:{innerHTML:t._s(t.content)}})])])},o=[];n._withStripped=!0},138:function(t,e,i){"use strict";function n(t){a||i(191)}var o=i(142),r=i(192),s=i(1),a=!1,c=n,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,i){"use strict";i.d(e,"a",function(){return o});var n=i(5),o=function(){var t=!0;if(n.K.isIOS){var e=Object(n.l)(navigator.userAgent.toLowerCase());if(!e)return t;Number(""+e.major+e.minor)>=133&&(t=!1)}return t}()},14:function(t,e,i){var n=i(48),o=i(31);t.exports=function(t){return n(o(t))}},140:function(t,e){function i(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function o(t){if(h===setTimeout)return setTimeout(t,0);if((h===i||!h)&&setTimeout)return h=setTimeout,setTimeout(t,0);try{return h(t,0)}catch(e){try{return h.call(null,t,0)}catch(e){return h.call(this,t,0)}}}function r(t){if(u===clearTimeout)return clearTimeout(t);if((u===n||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(t);try{return u(t)}catch(e){try{return u.call(null,t)}catch(e){return u.call(this,t)}}}function s(){v&&f&&(v=!1,f.length?d=f.concat(d):m=-1,d.length&&a())}function a(){if(!v){var t=o(s);v=!0;for(var e=d.length;e;){for(f=d,d=[];++m<e;)f&&f[m].run();m=-1,e=d.length}f=null,v=!1,r(t)}}function c(t,e){this.fun=t,this.array=e}function l(){}var h,u,p=t.exports={};!function(){try{h="function"==typeof setTimeout?setTimeout:i}catch(t){h=i}try{u="function"==typeof clearTimeout?clearTimeout:n}catch(t){u=n}}();var f,d=[],v=!1,m=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];d.push(new c(t,e)),1!==d.length||v||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}},142:function(t,e,i){"use strict";var n=i(125),o=i(139);e.a={name:"ActScroll",props:{probeType:{type:Number,default:2},click:{type:Boolean,default:!0},listenScrollInit:{type:Boolean,default:!1},listenScroll:{type:Boolean,default:!1},listenBeforeScroll:{type:Boolean,default:!1},listenScrollEnd:{type:Boolean,default:!1},listenZoomEnd:{type:Boolean,default:!1},listenPullingUp:{type:Boolean,default:!1},direction:{type:String,default:"vertical"},scrollbar:{type:null,default:!1},startY:{type:Number,default:0},refreshDelay:{type:Number,default:20},freeScroll:{type:Boolean,default:!1},mouseWheel:{type:Boolean,default:!1},bounce:{type:[Boolean,Object],default:!0},zoom:{type:Boolean,default:!1},useTransition:{type:Boolean,default:!0}},data:function(){return{beforePullDown:!0,isRebounding:!1,pullUpDirty:!0,pullDownStyle:"",bubbleY:0,lastTouchStart:null,fingers:0,tapTarget:null,isDouble:!1,startXd:0,startYd:0,endXd:0,endYd:0}},mounted:function(){var t=this;this.$nextTick(function(){t.initScroll()})},destroyed:function(){this.scroll&&this.scroll.destroy(),this.$emit("destroyed",this.scroll)},methods:{initScroll:function(){var t=this;if(this.$refs.wrapper){var e={probeType:this.probeType,click:this.click,scrollY:this.freeScroll||"vertical"===this.direction,scrollX:this.freeScroll||"horizontal"===this.direction,scrollbar:this.scrollbar,startY:this.startY,freeScroll:this.freeScroll,mouseWheel:this.mouseWheel,bounce:this.bounce,zoom:this.zoom,bounceTime:300,useTransition:o.a&&this.useTransition,pullUpLoad:{threshold:50}};this.scroll=new n.default(this.$refs.wrapper,e),this.listenScroll&&this.scroll.on("scroll",function(e){t.$emit("scroll",e)}),this.listenScrollEnd&&this.scroll.on("scrollEnd",function(e){t.$emit("scroll-end",e)}),this.listenBeforeScroll&&(this.scroll.on("beforeScrollStart",function(){t.$emit("beforeScrollStart")}),this.scroll.on("scrollStart",function(){t.$emit("scroll-start")})),this.listenZoomEnd&&this.scroll.on("zoomEnd",function(){t.$emit("zoomEnd",t.scroll)}),this.zoom&&(this.isDouble=!0),this.listenScrollInit&&this.$emit("scrollSuc",this.scroll),this.listenPullingUp&&this.scroll.on("pullingUp",function(){t.$emit("pullingUp")})}},disable:function(){this.scroll&&this.scroll.disable()},enable:function(){this.scroll&&this.scroll.enable()},refresh:function(){this.scroll&&this.scroll.refresh()},scrollTo:function(){this.scroll&&this.scroll.scrollTo.apply(this.scroll,arguments)},scrollToElement:function(){this.scroll&&this.scroll.scrollToElement.apply(this.scroll,arguments)},clickItem:function(t,e){this.$emit("click",e)},destroy:function(){this.scroll.destroy()},forceUpdate:function(t){this.refresh()}}}},143:function(t,e,i){i(52),i(38),i(44),i(144),i(148),i(149),t.exports=i(0).Promise},144:function(t,e,i){"use strict";var n,o,r,s,a=i(19),c=i(2),l=i(20),h=i(66),u=i(6),p=i(8),f=i(30),d=i(74),v=i(57),m=i(86),g=i(87).set,A=i(146)(),b=i(63),y=i(88),w=i(147),S=i(89),x=c.TypeError,j=c.process,T=j&&j.versions,E=T&&T.v8||"",O=c.Promise,C="process"==h(j),R=function(){},k=o=b.f,B=!!function(){try{var t=O.resolve(1),e=(t.constructor={})[i(3)("species")]=function(t){t(R,R)};return(C||"function"==typeof PromiseRejectionEvent)&&t.then(R)instanceof e&&0!==E.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),L=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},X=function(t,e){if(!t._n){t._n=!0;var i=t._c;A(function(){for(var n=t._v,o=1==t._s,r=0;i.length>r;)!function(e){var i,r,s,a=o?e.ok:e.fail,c=e.resolve,l=e.reject,h=e.domain;try{a?(o||(2==t._h&&Y(t),t._h=1),!0===a?i=n:(h&&h.enter(),i=a(n),h&&(h.exit(),s=!0)),i===e.promise?l(x("Promise-chain cycle")):(r=L(i))?r.call(i,c,l):c(i)):l(n)}catch(t){h&&!s&&h.exit(),l(t)}}(i[r++]);t._c=[],t._n=!1,e&&!t._h&&P(t)})}},P=function(t){g.call(c,function(){var e,i,n,o=t._v,r=I(t);if(r&&(e=y(function(){C?j.emit("unhandledRejection",o,t):(i=c.onunhandledrejection)?i({promise:t,reason:o}):(n=c.console)&&n.error&&n.error("Unhandled promise rejection",o)}),t._h=C||I(t)?2:1),t._a=void 0,r&&e.e)throw e.v})},I=function(t){return 1!==t._h&&0===(t._a||t._c).length},Y=function(t){g.call(c,function(){var e;C?j.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},M=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()),X(e,!0))},N=function(t){var e,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===t)throw x("Promise can't be resolved itself");(e=L(t))?A(function(){var n={_w:i,_d:!1};try{e.call(t,l(N,n,1),l(M,n,1))}catch(t){M.call(n,t)}}):(i._v=t,i._s=1,X(i,!1))}catch(t){M.call({_w:i,_d:!1},t)}}};B||(O=function(t){d(this,O,"Promise","_h"),f(t),n.call(this);try{t(l(N,this,1),l(M,this,1))}catch(t){M.call(this,t)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=i(75)(O.prototype,{then:function(t,e){var i=k(m(this,O));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=C?j.domain:void 0,this._c.push(i),this._a&&this._a.push(i),this._s&&X(this,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),r=function(){var t=new n;this.promise=t,this.resolve=l(N,t,1),this.reject=l(M,t,1)},b.f=k=function(t){return t===O||t===s?new r(t):o(t)}),u(u.G+u.W+u.F*!B,{Promise:O}),i(24)(O,"Promise"),i(122)("Promise"),s=i(0).Promise,u(u.S+u.F*!B,"Promise",{reject:function(t){var e=k(this);return(0,e.reject)(t),e.promise}}),u(u.S+u.F*(a||!B),"Promise",{resolve:function(t){return S(a&&this===s?O:this,t)}}),u(u.S+u.F*!(B&&i(121)(function(t){O.all(t).catch(R)})),"Promise",{all:function(t){var e=this,i=k(e),n=i.resolve,o=i.reject,r=y(function(){var i=[],r=0,s=1;v(t,!1,function(t){var a=r++,c=!1;i.push(void 0),s++,e.resolve(t).then(function(t){c||(c=!0,i[a]=t,--s||n(i))},o)}),--s||n(i)});return r.e&&o(r.v),i.promise},race:function(t){var e=this,i=k(e),n=i.reject,o=y(function(){v(t,!1,function(t){e.resolve(t).then(i.resolve,n)})});return o.e&&n(o.v),i.promise}})},145:function(t,e){t.exports=function(t,e,i){var n=void 0===i;switch(e.length){case 0:return n?t():t.call(i);case 1:return n?t(e[0]):t.call(i,e[0]);case 2:return n?t(e[0],e[1]):t.call(i,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(i,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(i,e[0],e[1],e[2],e[3])}return t.apply(i,e)}},146:function(t,e,i){var n=i(2),o=i(87).set,r=n.MutationObserver||n.WebKitMutationObserver,s=n.process,a=n.Promise,c="process"==i(23)(s);t.exports=function(){var t,e,i,l=function(){var n,o;for(c&&(n=s.domain)&&n.exit();t;){o=t.fn,t=t.next;try{o()}catch(n){throw t?i():e=void 0,n}}e=void 0,n&&n.enter()};if(c)i=function(){s.nextTick(l)};else if(!r||n.navigator&&n.navigator.standalone)if(a&&a.resolve){var h=a.resolve(void 0);i=function(){h.then(l)}}else i=function(){o.call(n,l)};else{var u=!0,p=document.createTextNode("");new r(l).observe(p,{characterData:!0}),i=function(){p.data=u=!u}}return function(n){var o={fn:n,next:void 0};e&&(e.next=o),t||(t=o,i()),e=o}}},147:function(t,e,i){var n=i(2),o=n.navigator;t.exports=o&&o.userAgent||""},148:function(t,e,i){"use strict";var n=i(6),o=i(0),r=i(2),s=i(86),a=i(89);n(n.P+n.R,"Promise",{finally:function(t){var e=s(this,o.Promise||r.Promise),i="function"==typeof t;return this.then(i?function(i){return a(e,t()).then(function(){return i})}:t,i?function(i){return a(e,t()).then(function(){throw i})}:t)}})},149:function(t,e,i){"use strict";var n=i(6),o=i(63),r=i(88);n(n.S,"Promise",{try:function(t){var e=o.f(this),i=r(t);return(i.e?e.reject:e.resolve)(i.v),e.promise}})},15:function(t,e,i){"use strict";function n(t,e){return function(i,n){var s=this,a=Object(o.a)(i),c=Object(r.a)(e,t,a,n),l=c.$parent,h=c.remove,u=c.show,p=c.hide;return c.remove=function(){c.$removed=!0,h&&h.call(this),l.destroy()},c.show=function(){return u&&u.call.apply(u,[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=n;var o=i(118),r=i(120)},150:function(t,e,i){"use strict";function n(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function o(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];for(var o=0;o<i.length;o++){var r=i[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!==Y&&("standard"===Y?"transitionEnd"===t?"transitionend":t:Y+t.charAt(0).toUpperCase()+t.substr(1))}function c(t,e,i,n){t.addEventListener(e,i,{passive:!1,capture:!!n})}function l(t,e,i,n){t.removeEventListener(e,i,{passive:!1,capture:!!n})}function h(t){for(var e=0,i=0;t;)e-=t.offsetLeft,i-=t.offsetTop,t=t.offsetParent;return{left:e,top:i}}function u(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 i in e)if(e[i].test(t[i]))return!0;return!1}function d(t,e){var i=document.createEvent("Event");i.initEvent(e,!0,!0),i.pageX=t.pageX,i.pageY=t.pageY,t.target.dispatchEvent(i)}function v(t){function e(){s=document.createEvent("Event"),s.initEvent(i,a,c),o(s,r)}var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click",n=void 0;"mouseup"===t.type||"mousecancel"===t.type?n=t:"touchend"!==t.type&&"touchcancel"!==t.type||(n=t.changedTouches[0]);var r={};n&&(r.screenX=n.screenX||0,r.screenY=n.screenY||0,r.clientX=n.clientX||0,r.clientY=n.clientY||0);var s=void 0,a=!0,c=!0;if("undefined"!=typeof MouseEvent)try{s=new MouseEvent(i,o({bubbles:a,cancelable:c},r))}catch(t){e()}else e();s.forwardedTouchEvent=!0,s._constructed=!0,t.target.dispatchEvent(s)}function m(t){v(t,"dblclick")}function g(t,e){e.firstChild?A(t,e.firstChild):e.appendChild(t)}function A(t,e){e.parentNode.insertBefore(t,e)}function b(t,e){t.removeChild(e)}function y(t,e,i,n,o,r,s){var a=t-e,c=Math.abs(a)/i,l=s.deceleration,h=s.itemHeight,u=s.swipeBounceTime,p=s.wheel,f=s.swipeTime,d=f,v=p?4:15,m=t+c/l*(a<0?-1:1);return p&&h&&(m=Math.round(m/h)*h),m<n?(m=r?Math.max(n-r/4,n-r/v*c):n,d=u):m>o&&(m=r?Math.min(o+r/4,o+r/v*c):o,d=u),{destination:Math.round(m),duration:d}}function w(){}function S(t){console.error("[BScroll warn]: "+t)}function x(t,e){if(!t)throw new Error("[BScroll] "+e)}function j(t){var e=document.createElement("div"),i=document.createElement("div");return e.style.cssText="position:absolute;z-index:9999;pointerEvents:none",i.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;",i.className="bscroll-indicator","horizontal"===t?(e.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",i.style.height="100%",e.className="bscroll-horizontal-scrollbar"):(e.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",i.style.width="100%",e.className="bscroll-vertical-scrollbar"),e.style.cssText+=";overflow:hidden",e.appendChild(i),e}function T(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 E(t){if(t&&t.classList)return t.classList.contains("tombstone")}function O(t,e){var i=this;this.options=e,x("function"==typeof this.options.createTombstone,"Infinite scroll need createTombstone Function to create tombstone"),x("function"==typeof this.options.fetch,"Infinite scroll need fetch Function to fetch new data."),x("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(){i.onScroll()}),this.scroller.on("resize",function(){i.onResize()}),this.onResize()}function C(t,e){this.wrapper="string"==typeof t?document.querySelector(t):t,this.wrapper||S("Can not resolve the wrapper DOM."),this.scroller=this.wrapper.children[0],this.scroller||S("The wrapper need at least one child element to be scroller."),this.scrollerStyle=this.scroller.style,this._init(t,e)}var R=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){o=!0,r=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)},B="undefined"!=typeof window,L=B&&navigator.userAgent.toLowerCase(),X=L&&/wechatdevtools/.test(L),P=L&&L.indexOf("android")>0,I=B&&document.createElement("div").style,Y=function(){if(!B)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var e in t)if(void 0!==I[t[e]])return e;return!1}(),M=a("transform"),N=B&&a("perspective")in I,H=B&&("ontouchstart"in window||X),z=!1!==M,W=B&&a("transition")in I,D={transform:M,transitionTimingFunction:a("transitionTimingFunction"),transitionDuration:a("transitionDuration"),transitionDelay:a("transitionDelay"),transformOrigin:a("transformOrigin"),transitionEnd:a("transitionEnd")},G=1,q={touchstart:G,touchmove:G,touchend:G,mousedown:2,mousemove:2,mouseup:2},U={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:H,disableTouch:!H,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}}},J=function(){return B?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||100/60)/2)}:w}(),Q=function(){return B?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:w}(),K=1,F=-1,Z=1,_=-1,$=1,tt=3;T.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)}},T.prototype.refresh=function(){this._shouldShow()&&(this.transitionTime(),this._calculate(),this.updatePosition())},T.prototype.fade=function(t,e){var i=this;if(!e||this.visible){var n=t?250:500;t=t?"1":"0",this.wrapperStyle[D.transitionDuration]=n+"ms",clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout(function(){i.wrapperStyle.opacity=t,i.visible=+t},0)}},T.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 i=Math.max(this.indicatorHeight-3*(t-this.maxPosY),8);this.indicatorStyle.height=i+"px",t=this.maxPosY+this.indicatorHeight-i}else this.indicatorStyle.height=this.indicatorHeight+"px";this.y=t,this.scroller.options.useTransform?this.indicatorStyle[D.transform]="translateY("+t+"px)"+this.scroller.translateZ:this.indicatorStyle.top=t+"px"}else{var n=Math.round(this.sizeRatioX*this.scroller.x);if(n<0){this.transitionTime(500);var o=Math.max(this.indicatorWidth+3*n,8);this.indicatorStyle.width=o+"px",n=0}else if(n>this.maxPosX){this.transitionTime(500);var r=Math.max(this.indicatorWidth-3*(n-this.maxPosX),8);this.indicatorStyle.width=r+"px",n=this.maxPosX+this.indicatorWidth-r}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=n,this.scroller.options.useTransform?this.indicatorStyle[D.transform]="translateX("+n+"px)"+this.scroller.translateZ:this.indicatorStyle.left=n+"px"}},T.prototype.transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorStyle[D.transitionDuration]=t+"ms"},T.prototype.transitionTimingFunction=function(t){this.indicatorStyle[D.transitionTimingFunction]=t},T.prototype.destroy=function(){this._removeDOMEvents(),this.wrapper.parentNode.removeChild(this.wrapper)},T.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=n(),this._handleMoveEvents(c),this.scroller.trigger("beforeScrollStart")},T.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 i=e.pageX-this.lastPointX;this.lastPointX=e.pageX;var n=e.pageY-this.lastPointY;this.lastPointY=e.pageY;var o=this.x+i,r=this.y+n;this._pos(o,r)},T.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 i=e.speed,n=e.easing,o=void 0===n?V.bounce:n,r=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),s=i||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})}},T.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})},T.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)},T.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}},T.prototype._addDOMEvents=function(){var t=c;this._handleDOMEvents(t)},T.prototype._removeDOMEvents=function(){var t=l;this._handleDOMEvents(t),this._handleMoveEvents(t)},T.prototype._handleMoveEvents=function(t){this.scroller.options.disableTouch||t(window,"touchmove",this),this.scroller.options.disableMouse||t(window,"mousemove",this)},T.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;O.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 i=this._calculateAnchoredItem(this.anchorItem,this.wrapperEl.offsetHeight),n=this.anchorItem.index,o=i.index;e<0?(n-=30,o+=10):(n-=10,o+=30),this.fill(n,o),this.maybeRequestContent()},O.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()},O.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()},O.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 i=t._removeTombstones(),n=0;t.anchorItem.index<=t.items.length?(n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.resetPosition(t.scroller.options.bounceTime)):(t.anchorItem.index-=i,n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.stop(),t.scroller.resetPosition(),t.onScroll())}}))}},O.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()},O.prototype.attachContent=function(){var t=this._collectUnusedNodes(),e=this._createDOMNodes(t);this._cleanupUnusedNodes(t),this._cacheNodeSize();var i=this._fixScrollPosition();this._setupAnimations(e,i)},O.prototype.resetMore=function(){this.hasMore=!0},O.prototype._removeTombstones=function(){for(var t=void 0,e=0,i=this.items.length,n=0;n<i;n++){var o=this.items[n].node,r=this.items[n].data;o&&!E(o)||r||(t||(t=n),o&&this.scrollerEl.removeChild(o))}return e=i-t,this.items.splice(t),this.lastAttachedItem=Math.min(this.lastAttachedItem,this.items.length),e},O.prototype._collectUnusedNodes=function(){for(var t=[],e=0;e<this.items.length;e++)if(e!==this.firstAttachedItem){var i=this.items[e].node;i&&(E(i)?(this.tombstones.push(i),this.tombstones[this.tombstones.length-1].style.display="none"):t.push(i)),this.items[e].node=null}else e=this.lastAttachedItem-1;return t},O.prototype._createDOMNodes=function(t){for(var e={},i=this.firstAttachedItem;i<this.lastAttachedItem;i++){for(;this.items.length<=i;)this._addItem();var n=this.items[i].node,o=this.items[i].data;if(n){if(!E(n)||!o)continue;n.style.zIndex=1,e[i]=[n,this.items[i].top-this.anchorScrollTop],this.items[i].node=null}var r=o?this.options.render(o,t.pop()):this._getTombStone();r.style.position="absolute",this.items[i].top=-1,this.scrollerEl.appendChild(r),this.items[i].node=r}return e},O.prototype._cleanupUnusedNodes=function(t){for(;t.length;)this.scrollerEl.removeChild(t.pop())},O.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)},O.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,i=this.anchorItem.index;i>this.firstAttachedItem;)e-=this.items[i-1].height||this.tombstoneHeight,i--;return e},O.prototype._setupAnimations=function(t,e){var i=this;for(var n in t){var o=t[n];this.items[n].node.style.transform="translateY("+(this.anchorScrollTop+o[1])+"px) scale("+this.tombstoneWidth/this.items[n].width+", "+this.tombstoneHeight/this.items[n].height+")",this.items[n].node.offsetTop,o[0].offsetTop,this.items[n].node.style.transition="transform 200ms"}for(var r=this.firstAttachedItem;r<this.lastAttachedItem;r++){var s=t[r];if(s){var a=s[0];a.style.transition="transform 200ms, opacity 200ms",a.style.transform="translateY("+e+"px) scale("+this.items[r].width/this.tombstoneWidth+", "+this.items[r].height/this.tombstoneHeight+")",a.style.opacity=0}e!==this.items[r].top&&(s||(this.items[r].node.style.transition=""),this.items[r].node.style.transform="translateY("+e+"px)"),this.items[r].top=e,e+=this.items[r].height||this.tombstoneHeight}this.scroller.maxScrollY=-(e-this.wrapperEl.offsetHeight+(this.hasMore?et:0)),setTimeout(function(){for(var e in t){var n=t[e];n[0].style.display="none",i.tombstones.push(n[0])}},200)},O.prototype._getTombStone=function(){var t=this.tombstones.pop();return t?(t.style.display="",t.style.opacity=1,t.style.transform="",t.style.transition="",t):this.options.createTombstone()},O.prototype._addItem=function(){this.items.push({data:null,node:null,height:0,width:0,top:0})},O.prototype._calculateAnchoredItem=function(t,e){if(0===e)return t;var i=t.index,n=0;if((e+=t.offset)<0){for(;e<0&&i>0&&this.items[i-1].height;)e+=this.items[i-1].height,i--;n=Math.max(-i,Math.ceil(Math.min(e,0)/this.tombstoneHeight))}else{for(;e>0&&i<this.items.length&&this.items[i].height&&this.items[i].height<e;)e-=this.items[i].height,i++;(i>=this.items.length||!this.items[i].height)&&(n=Math.floor(Math.max(e,0)/this.tombstoneHeight))}return i+=n,e-=n*this.tombstoneHeight,{index:i,offset:e}},function(t){t.prototype._init=function(t,e){this._handleOptions(e),this._events={},this.x=0,this.y=0,this.directionX=0,this.directionY=0,this.setScale(1),this._addDOMEvents(),this._initExtFeatures(),this._watchTransition(),this.options.observeDOM&&this._initDOMObserver(),this.options.autoBlur&&this._handleAutoBlur(),this.refresh(),this.options.snap||this.scrollTo(this.options.startX,this.options.startY),this.enable()},t.prototype.setScale=function(t){this.lastScale=r(this.scale)?t:this.scale,this.scale=t},t.prototype._handleOptions=function(t){this.options=o({},U,t),this.translateZ=this.options.HWCompositing&&N?" translateZ(0)":"",this.options.useTransition=this.options.useTransition&&W,this.options.useTransform=this.options.useTransform&&z,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollX="horizontal"!==this.options.eventPassthrough&&this.options.scrollX,this.options.scrollY="vertical"!==this.options.eventPassthrough&&this.options.scrollY,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,!0===this.options.tap&&(this.options.tap="tap")},t.prototype._addDOMEvents=function(){var t=c;this._handleDOMEvents(t)},t.prototype._removeDOMEvents=function(){var t=l;this._handleDOMEvents(t)},t.prototype._handleDOMEvents=function(t){var e=this.options.bindToWrapper?this.wrapper:window;t(window,"orientationchange",this),t(window,"resize",this),this.options.click&&t(this.wrapper,"click",this,!0),this.options.disableMouse||(t(this.wrapper,"mousedown",this),t(e,"mousemove",this),t(e,"mousecancel",this),t(e,"mouseup",this)),H&&!this.options.disableTouch&&(t(this.wrapper,"touchstart",this),t(e,"touchmove",this),t(e,"touchcancel",this),t(e,"touchend",this)),t(this.scroller,D.transitionEnd,this)},t.prototype._initExtFeatures=function(){this.options.snap&&this._initSnap(),this.options.scrollbar&&this._initScrollbar(),this.options.pullUpLoad&&this._initPullUp(),this.options.pullDownRefresh&&this._initPullDown(),this.options.wheel&&this._initWheel(),this.options.mouseWheel&&this._initMouseWheel(),this.options.zoom&&this._initZoom(),this.options.infinity&&this._initInfinite()},t.prototype._watchTransition=function(){if("function"==typeof Object.defineProperty){var t=this,e=!1,i=this.useTransition?"isInTransition":"isAnimating";Object.defineProperty(this,i,{get:function(){return e},set:function(i){e=i;for(var n=t.scroller.children.length?t.scroller.children:[t.scroller],o=e&&!t.pulling?"none":"auto",r=0;r<n.length;r++)n[r].style.pointerEvents=o}})}},t.prototype._handleAutoBlur=function(){this.on("scrollStart",function(){var t=document.activeElement;!t||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName||t.blur()})},t.prototype._initDOMObserver=function(){var t=this;if("undefined"!=typeof MutationObserver){var e=void 0,i=new MutationObserver(function(i){if(!t._shouldNotRefresh()){for(var n=!1,o=!1,r=0;r<i.length;r++){var s=i[r];if("attributes"!==s.type){n=!0;break}if(s.target!==t.scroller){o=!0;break}}n?t.refresh():o&&(clearTimeout(e),e=setTimeout(function(){t._shouldNotRefresh()||t.refresh()},60))}}),n={attributes:!0,childList:!0,subtree:!0};i.observe(this.scroller,n),this.on("destroy",function(){i.disconnect()})}else this._checkDOMUpdate()},t.prototype._shouldNotRefresh=function(){var t=this.x>this.minScrollX||this.x<this.maxScrollX||this.y>this.minScrollY||this.y<this.maxScrollY;return this.isInTransition||this.stopFromTransition||t},t.prototype._checkDOMUpdate=function(){function t(){if(!this.destroyed){i=p(this.scroller);var t=i.width,r=i.height;n===t&&o===r||this.refresh(),n=t,o=r,e.call(this)}}function e(){var e=this;setTimeout(function(