UNPKG

@xysfe/actui

Version:

A fantastic mobile ui lib implement by Vue

1 lines 128 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.GoldConclusion=e():t.GoldConclusion=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(o){if(i[o])return i[o].exports;var n=i[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,o){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:o})},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=1886)}({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 o(t,e,i,o,n,s,r,a){t=t||{};var l=typeof t.default;"object"!==l&&"function"!==l||(t=t.default);var c="function"==typeof t?t.options:t;e&&(c.render=e,c.staticRenderFns=i,c._compiled=!0),o&&(c.functional=!0),s&&(c._scopeId=s);var h;if(r?(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__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=h):n&&(h=a?function(){n.call(this,this.$root.$options.shadowRoot)}:n),h)if(c.functional){c._injectStyles=h;var u=c.render;c.render=function(t,e){return h.call(e),u(t,e)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,h):[h]}return{exports:t,options:c}}e.a=o},10:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},100:function(t,e,i){i(56),t.exports=i(0).Object.getOwnPropertySymbols},101:function(t,e,i){"use strict";function o(t){var e={},i={},o={};for(var l in t)if(t.hasOwnProperty(l))if(-1!==a.indexOf(l))e[l]=t[l];else if(r.test(l)){var c=r.exec(l)[1];c=Object(s.a)(c),o[c]=t[l]}else i[l]=t[l];return e.on=Object(n.a)(o,e.on),e.props=Object(n.a)(i,e.props),e}e.a=o;var n=i(62),s=i(102),r=new RegExp(/^on(.+)/),a=["class","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"]},102:function(t,e,i){"use strict";function o(t,e){var i=l(t,e);return i.charAt(0).toLowerCase()+i.slice(1)}e.a=o;var n=i(28),s=i.n(n),r=i(4),a=function(t){for(var e=!1,i=!1,o=!1,n=0;n<t.length;n++){var s=t[n];e&&/[a-zA-Z]/.test(s)&&s.toUpperCase()===s?(t=t.slice(0,n)+"-"+t.slice(n),e=!1,o=i,i=!0,n++):i&&o&&/[a-zA-Z]/.test(s)&&s.toLowerCase()===s?(t=t.slice(0,n-1)+"-"+t.slice(n-1),o=i,i=!1,e=!0):(e=s.toLowerCase()===s&&s.toUpperCase()!==s,o=i,i=s.toUpperCase()===s&&s.toLowerCase()!==s)}return t},l=function(t,e){if("string"!=typeof t&&!Object(r.o)(t))throw new TypeError("Expected the input to be `string | string[]`");e=s()({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))}},103:function(t,e,i){"use strict";function o(t,e,i,o){var s=void 0,r=void 0,a=new t({render:function(t){var i=r&&r(t);return i&&!Object(n.o)(i)&&(i=[i]),t(e,s,i||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return a.updateRenderData=function(t,e){s=t,r=e},a.updateRenderData(i,o),a.$mount(),a.init(),a.$children[0]}e.a=o;var n=i(4)},104:function(t,e,i){"use strict";var o=i(19),n=i(65);e.a={name:"ActPopup",mixins:[o.a,n.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)}}}},106:function(t,e,i){var o=i(26),n=i(3)("toStringTag"),s="Arguments"==o(function(){return arguments}()),r=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,i,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=r(e=Object(t),n))?i:s?o(e):"Object"==(a=o(e))&&"function"==typeof e.callee?"Arguments":a}},108:function(t,e,i){"use strict";function o(t){a||i(122)}var n=i(104),s=i(123),r=i(1),a=!1,l=o,c=Object(r.a)(n.a,s.a,s.b,!1,l,null,null);c.options.__file="src\\components\\common\\popup.vue",e.a=c.exports},11:function(t,e,i){var o=i(46),n=i(29);t.exports=function(t){return o(n(t))}},110:function(t,e,i){var o=i(9),n=i(39),s=i(3)("species");t.exports=function(t,e){var i,r=o(t).constructor;return void 0===r||void 0==(i=o(r)[s])?e:n(i)}},111:function(t,e,i){var o,n,s,r=i(38),a=i(146),l=i(60),c=i(40),h=i(2),u=h.process,p=h.setImmediate,f=h.clearImmediate,d=h.MessageChannel,m=h.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=[],i=1;arguments.length>i;)e.push(arguments[i++]);return g[++v]=function(){a("function"==typeof t?t:Function(t),e)},o(v),v},f=function(t){delete g[t]},"process"==i(26)(u)?o=function(t){u.nextTick(r(y,t,1))}:m&&m.now?o=function(t){m.now(r(y,t,1))}:d?(n=new d,s=n.port2,n.port1.onmessage=b,o=r(s.postMessage,s,1)):h.addEventListener&&"function"==typeof postMessage&&!h.importScripts?(o=function(t){h.postMessage(t+"","*")},h.addEventListener("message",b,!1)):o="onreadystatechange"in c("script")?function(t){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),y.call(t)}}:function(t){setTimeout(r(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,i){var o=i(9),n=i(10),s=i(68);t.exports=function(t,e){if(o(t),n(e)&&e.constructor===t)return e;var i=s.f(t);return(0,i.resolve)(e),i.promise}},115:function(t,e,i){var o=i(106),n=i(3)("iterator"),s=i(18);t.exports=i(0).getIteratorMethod=function(t){if(void 0!=t)return t[n]||t["@@iterator"]||s[o(t)]}},116:function(t,e,i){"use strict";function o(t){t.preventDefault()}var n={watch:{isVisible:function(t){t?document.body.addEventListener("touchmove",o,{passive:!1}):document.body.removeEventListener("touchmove",o,{passive:!1})}},beforeDestroy:function(){document.body.removeEventListener("touchmove",o,{passive:!1})}};e.a=n},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},120:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i(157);e.default=o.a},121:function(t,e,i){"use strict";function o(t){a||i(201)}var n=i(153),s=i(202),r=i(1),a=!1,l=o,c=Object(r.a)(n.a,s.a,s.b,!1,l,"data-v-f3b563a0",null);c.options.__file="src\\components\\common\\goldlayer.vue",e.a=c.exports},122:function(t,e){},123:function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"b",function(){return n});var o=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)}})])])},n=[];o._withStripped=!0},125:function(t,e,i){"use strict";function o(t){a||i(203)}var n=i(154),s=i(204),r=i(1),a=!1,l=o,c=Object(r.a)(n.a,s.a,s.b,!1,l,"data-v-3349a91e",null);c.options.__file="src\\components\\common\\scroll.vue",e.a=c.exports},13:function(t,e,i){var o=i(2),n=i(0),s=i(38),r=i(8),a=i(6),l=function(t,e,i){var c,h,u,p=t&l.F,f=t&l.G,d=t&l.S,m=t&l.P,v=t&l.B,g=t&l.W,y=f?n:n[e]||(n[e]={}),b=y.prototype,_=f?o:d?o[e]:(o[e]||{}).prototype;f&&(i=e);for(c in i)(h=!p&&_&&void 0!==_[c])&&a(y,c)||(u=h?_[c]:i[c],y[c]=f&&"function"!=typeof _[c]?i[c]:v&&h?s(u,o):g&&_[c]==u?function(t){var e=function(e,i,o){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,o)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(u):m&&"function"==typeof u?s(Function.call,u):u,m&&((y.virtual||(y.virtual={}))[c]=u,t&l.R&&b&&!b[c]&&r(b,c,u)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},135:function(t,e,i){var o=i(38),n=i(136),s=i(137),r=i(9),a=i(59),l=i(115),c={},h={},e=t.exports=function(t,e,i,u,p){var f,d,m,v,g=p?function(){return t}:l(t),y=o(i,u,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(s(g)){for(f=a(t.length);f>b;b++)if((v=e?y(r(d=t[b])[0],d[1]):y(t[b]))===c||v===h)return v}else for(m=g.call(t);!(d=m.next()).done;)if((v=n(m,y,d.value,e))===c||v===h)return v};e.BREAK=c,e.RETURN=h},136:function(t,e,i){var o=i(9);t.exports=function(t,e,i,n){try{return n?e(o(i)[0],i[1]):e(i)}catch(e){var s=t.return;throw void 0!==s&&o(s.call(t)),e}}},137:function(t,e,i){var o=i(18),n=i(3)("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||s[n]===t)}},139:function(t,e,i){var o=i(3)("iterator"),n=!1;try{var s=[7][o]();s.return=function(){n=!0},Array.from(s,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!n)return!1;var i=!1;try{var s=[7],r=s[o]();r.next=function(){return{done:i=!0}},s[o]=function(){return r},t(s)}catch(t){}return i}},14:function(t,e,i){"use strict";function o(t,e){return function(i,o){var r=this,a=Object(n.a)(i),l=Object(s.a)(e,t,a,o),c=l.$parent,h=l.remove,u=l.show,p=l.hide;return l.remove=function(){l.$removed=!0,h&&h.call(this),c.destroy()},l.show=function(){return u&&u.call.apply(u,[this].concat(Array.prototype.slice.call(arguments))),this},l.hide=function(){return p&&p.call.apply(p,[this].concat(Array.prototype.slice.call(arguments))),this},r&&r._isVue&&r.$once("hook:beforeDestroy",function(){l.$removed||l.remove()}),l}}e.a=o;var n=i(101),s=i(103)},140:function(t,e){t.exports=function(t,e,i,o){if(!(t instanceof e)||void 0!==o&&o in t)throw TypeError(i+": incorrect invocation!");return t}},141:function(t,e,i){var o=i(8);t.exports=function(t,e,i){for(var n in e)i&&t[n]?t[n]=e[n]:o(t,n,e[n]);return t}},142:function(t,e,i){t.exports={default:i(189),__esModule:!0}},143:function(t,e,i){"use strict";var o=i(2),n=i(0),s=i(7),r=i(5),a=i(3)("species");t.exports=function(t){var e="function"==typeof n[t]?n[t]:o[t];r&&e&&!e[a]&&s.f(e,a,{configurable:!0,get:function(){return this}})}},144:function(t,e,i){i(61),i(53),i(55),i(145),i(149),i(150),t.exports=i(0).Promise},145:function(t,e,i){"use strict";var o,n,s,r,a=i(16),l=i(2),c=i(38),h=i(106),u=i(13),p=i(10),f=i(39),d=i(140),m=i(135),v=i(110),g=i(111).set,y=i(147)(),b=i(68),_=i(112),w=i(148),x=i(113),S=l.TypeError,T=l.process,C=T&&T.versions,P=C&&C.v8||"",M=l.Promise,D="process"==h(T),E=function(){},Y=n=b.f,O=!!function(){try{var t=M.resolve(1),e=(t.constructor={})[i(3)("species")]=function(t){t(E,E)};return(D||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof e&&0!==P.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),k=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;y(function(){for(var o=t._v,n=1==t._s,s=0;i.length>s;)!function(e){var i,s,r,a=n?e.ok:e.fail,l=e.resolve,c=e.reject,h=e.domain;try{a?(n||(2==t._h&&j(t),t._h=1),!0===a?i=o:(h&&h.enter(),i=a(o),h&&(h.exit(),r=!0)),i===e.promise?c(S("Promise-chain cycle")):(s=k(i))?s.call(i,l,c):l(i)):c(o)}catch(t){h&&!r&&h.exit(),c(t)}}(i[s++]);t._c=[],t._n=!1,e&&!t._h&&I(t)})}},I=function(t){g.call(l,function(){var e,i,o,n=t._v,s=A(t);if(s&&(e=_(function(){D?T.emit("unhandledRejection",n,t):(i=l.onunhandledrejection)?i({promise:t,reason:n}):(o=l.console)&&o.error&&o.error("Unhandled promise rejection",n)}),t._h=D||A(t)?2:1),t._a=void 0,s&&e.e)throw e.v})},A=function(t){return 1!==t._h&&0===(t._a||t._c).length},j=function(t){g.call(l,function(){var e;D?T.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})})},L=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))},R=function(t){var e,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===t)throw S("Promise can't be resolved itself");(e=k(t))?y(function(){var o={_w:i,_d:!1};try{e.call(t,c(R,o,1),c(L,o,1))}catch(t){L.call(o,t)}}):(i._v=t,i._s=1,X(i,!1))}catch(t){L.call({_w:i,_d:!1},t)}}};O||(M=function(t){d(this,M,"Promise","_h"),f(t),o.call(this);try{t(c(R,this,1),c(L,this,1))}catch(t){L.call(this,t)}},o=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},o.prototype=i(141)(M.prototype,{then:function(t,e){var i=Y(v(this,M));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=D?T.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)}}),s=function(){var t=new o;this.promise=t,this.resolve=c(R,t,1),this.reject=c(L,t,1)},b.f=Y=function(t){return t===M||t===r?new s(t):n(t)}),u(u.G+u.W+u.F*!O,{Promise:M}),i(27)(M,"Promise"),i(143)("Promise"),r=i(0).Promise,u(u.S+u.F*!O,"Promise",{reject:function(t){var e=Y(this);return(0,e.reject)(t),e.promise}}),u(u.S+u.F*(a||!O),"Promise",{resolve:function(t){return x(a&&this===r?M:this,t)}}),u(u.S+u.F*!(O&&i(139)(function(t){M.all(t).catch(E)})),"Promise",{all:function(t){var e=this,i=Y(e),o=i.resolve,n=i.reject,s=_(function(){var i=[],s=0,r=1;m(t,!1,function(t){var a=s++,l=!1;i.push(void 0),r++,e.resolve(t).then(function(t){l||(l=!0,i[a]=t,--r||o(i))},n)}),--r||o(i)});return s.e&&n(s.v),i.promise},race:function(t){var e=this,i=Y(e),o=i.reject,n=_(function(){m(t,!1,function(t){e.resolve(t).then(i.resolve,o)})});return n.e&&o(n.v),i.promise}})},146:function(t,e){t.exports=function(t,e,i){var o=void 0===i;switch(e.length){case 0:return o?t():t.call(i);case 1:return o?t(e[0]):t.call(i,e[0]);case 2:return o?t(e[0],e[1]):t.call(i,e[0],e[1]);case 3:return o?t(e[0],e[1],e[2]):t.call(i,e[0],e[1],e[2]);case 4:return o?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)}},147:function(t,e,i){var o=i(2),n=i(111).set,s=o.MutationObserver||o.WebKitMutationObserver,r=o.process,a=o.Promise,l="process"==i(26)(r);t.exports=function(){var t,e,i,c=function(){var o,n;for(l&&(o=r.domain)&&o.exit();t;){n=t.fn,t=t.next;try{n()}catch(o){throw t?i():e=void 0,o}}e=void 0,o&&o.enter()};if(l)i=function(){r.nextTick(c)};else if(!s||o.navigator&&o.navigator.standalone)if(a&&a.resolve){var h=a.resolve(void 0);i=function(){h.then(c)}}else i=function(){n.call(o,c)};else{var u=!0,p=document.createTextNode("");new s(c).observe(p,{characterData:!0}),i=function(){p.data=u=!u}}return function(o){var n={fn:o,next:void 0};e&&(e.next=n),t||(t=n,i()),e=n}}},148:function(t,e,i){var o=i(2),n=o.navigator;t.exports=n&&n.userAgent||""},149:function(t,e,i){"use strict";var o=i(13),n=i(0),s=i(2),r=i(110),a=i(113);o(o.P+o.R,"Promise",{finally:function(t){var e=r(this,n.Promise||s.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)}})},15:function(t,e,i){var o=i(50),n=i(33);t.exports=Object.keys||function(t){return o(t,n)}},150:function(t,e,i){"use strict";var o=i(13),n=i(68),s=i(112);o(o.S,"Promise",{try:function(t){var e=n.f(this),i=s(t);return(i.e?e.reject:e.resolve)(i.v),e.promise}})},1525:function(t,e,i){"use strict";var o=i(121),n=i(1889),s=i(19),r=i(1913);e.a={name:"ActGoldConclusion",mixins:[s.a],components:{ActGoldLayer:o.a,ScrollZoom:n.a,tab:r.a},data:function(){return{isReadEnd:[]}},computed:{computRightText:function(){return this.rightText?this.rightText:1===this.list[this.activeIndex].type?"确认"+this.list[this.activeIndex].name+"智核结论":"确认"+this.list[this.activeIndex].name+"人核结论"},listLength:function(){return this.list.length}},props:{list:{type:Array,default:function(){return[]}},caseType:{type:Number,default:1},title:{type:String,default:"核保结论确认"},brandColor:{type:String,default:"#8c7fee"},forceRead:{type:Boolean,default:!1},canTabClick:{type:Boolean,default:!1},activeIndex:{type:Number,default:0},zIndex:{type:[String,Number],default:999},leftText:{type:String,default:"存在部分问题"},rightText:{type:String,default:""},beforeAction:{type:Function,default:null}},methods:{isSelected:function(t){return t===this.activeIndex},changeTab:function(t){var e=this;this.beforeAction?this.beforeAction("changeTab",function(i){!1!==i&&(e.$emit("changeTab",t),e.$refs.scrollContent.scrollToTop())}):(this.$emit("changeTab",t),this.$refs.scrollContent.scrollToTop())},confirm:function(){var t=this;this.beforeAction?this.beforeAction("confirm",function(e){!1!==e&&(t.reset(),t.$emit("confirm"))}):(this.reset(),this.$emit("confirm"))},cancelDialog:function(){var t=this;this.showDialog({dialogType:2,confirmbtnText:""+this.computRightText,cancelbtnText:"返回",dialogData:['<p style="text-align: left">您的健康告知情况不满足此产品的投保要求。您可以重新确认核保结论或者联系顾问重新进行核保。</p>'],dialogTitle:"提示",confirmButtonColor:this.brandColor,onConfirm:function(){t.next()},onCancel:function(){t.reset(),t.$emit("cancel")}})},cancel:function(){var t=this;this.beforeAction?this.beforeAction("cancel",function(e){!1!==e&&t.cancelDialog()}):this.cancelDialog()},close:function(){this.reset(),this.$emit("close")},reset:function(){this.isReadEnd=[],this.hide(),this.$emit("changeTab",0)},canINext:function(t){this.listLength&&(this.isReadEnd[this.activeIndex]=t)},_next:function(){var t=~~this.activeIndex;this.forceRead&&this.isReadEnd[t]||!this.forceRead?t+1===this.list.length?this.confirm():this.changeTab(t+1):this.forceRead&&!this.isReadEnd[t]&&this.showToast("请观看至页面底部,完整阅读全部内容")},next:function(){var t=this;this.beforeAction?this.beforeAction("next",function(e){!1!==e&&t._next()}):this._next()},showToast:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3;this.hideToast(),this.toast||(this.toast=this.$createToast()),this.toast.show(t,e)},hideToast:function(){this.toast&&this.toast.hide()},showDialog:function(t){var e=t.dialogType,i=void 0===e?1:e,o=t.dialogTitle,n=void 0===o?"":o,s=t.dialogData,r=void 0===s?[]:s,a=t.width,l=void 0===a?"320px":a,c=t.cancelbtnText,h=void 0===c?"取消":c,u=t.confirmbtnText,p=void 0===u?"确定":u,f=t.confirmButtonColor,d=void 0===f?"#8c7fee":f,m=t.onConfirm,v=void 0===m?function(){}:m,g=t.onCancel,y=void 0===g?function(){}:g;this.dialog&&this.dialog.remove(),this.dialog=this.$createGoldDialog({zIndex:500,closable:!1,title:n,content:r.join("<br/>"),buttonType:"sticky",width:l,confirmButtonColor:d,showCancelButton:1!==Number(i),cancelButtonText:h,confirmButtonText:p,onConfirm:function(){v()},onCancel:function(){y()}}),this.dialog.show()}}}},1526:function(t,e,i){"use strict";var o=i(328),n=i(1891),s=i(1897),r=i(19);e.a={name:"ScrollZoom",mixins:[r.a],props:{activeIndex:{type:Number,default:0},list:{type:Array,default:function(){return{}}},forceRead:{type:Boolean,default:!0},brandColor:{type:String,default:""}},data:function(){return{myScroll:null,freeScroll:!0,scrollbar:{fade:!0,interactive:!0},bounce:{bottom:!1,left:!1,right:!1,top:!1},zoom:!1,listenScrollInit:!0,listenScrollEnd:!0,listenZoomEnd:!1,listenScroll:!1,mouseWheel:!0,currentScale:1}},methods:{isSelected:function(t){return t===this.activeIndex},scrollEnd:function(t){this.forceRead&&t.y===this.myScroll.maxScrollY&&this.$emit("canINext",!0)},scrollInit:function(t){this.myScroll=t,this.forceRead&&this.myScroll&&0==~~this.myScroll.maxScrollY&&this.$emit("canINext",!0)},scrollToTop:function(){this.myScroll.scrollTo(0,0)}},components:{scroll:o.a,IntelCheck:n.a,HumanCheck:s.a}}},1527:function(t,e,i){"use strict";var o=i(4),n=i(1893);e.a={name:"Content",components:{intelModule:n.a},props:{info:{type:Object,default:function(){return{}}},brandColor:{type:String,default:"#8c7fee"}},data:function(){return{hexToRgb:o.n}},computed:{selectDisease:function(){return this.info&&this.info.diseaselist&&this.info.diseaselist.length?this.info.diseaselist.map(function(t){return t.disease}).join("、"):""}}}},1528:function(t,e,i){"use strict";e.a={data:function(){return{}},props:{module:{type:Object,default:function(){}},brandColor:{type:String,default:"#8c7fee"}}}},1529:function(t,e,i){"use strict";var o=i(1899),n=i(1902),s=i(1905),r=i(1908);e.a={name:"HumanCheck",components:{status:o.a,curProgress:n.a,vModule:s.a,vPicture:r.a},props:{info:{type:Object,default:function(){return{}}},brandColor:{type:String,default:"#8c7fee"}},data:function(){return{isPreview:!1,previewImg:null}},methods:{showPreview:function(t){this.isPreview=!0,this.previewImg=t}}}},153:function(t,e,i){"use strict";var o=i(108),n=i(65),s=i(19),r=i(116);e.a={name:"ActGoldLayer",mixins:[n.a,s.a,r.a],components:{ActPopup:o.a},props:{title:{type:String,default:""},mask:{type:Boolean,default:!0},center:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.7},noHeader:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},brandColor:{type:String,default:""}},methods:{close:function(){this.$emit("close")}}}},1530:function(t,e,i){"use strict";e.a={data:function(){return{}},props:{conclusion:{type:Object,default:function(){return{}}},brandColor:{type:String,default:"#8c7fee"}}}},1531:function(t,e,i){"use strict";var o=i(142),n=i.n(o);e.a={data:function(){return{}},props:{processing:{type:Array,default:function(){return[]}},brandColor:{type:String,default:"#8c7fee"}},computed:{timelineData:function(){for(var t=[],e=this.processing,i=Array.isArray(e),o=0,e=i?e:n()(e);;){var s;if(i){if(o>=e.length)break;s=e[o++]}else{if(o=e.next(),o.done)break;s=o.value}var r=s,a=r.title,l=r.desc,c=r.time,h={title:a,desc:l,time:new Date(1e3*c).format("yyyy-MM-dd hh:mm:ss")};t.push(h)}return t}}}},1532:function(t,e,i){"use strict";e.a={data:function(){return{}},props:{vModule:{type:Object,default:function(){}},brandColor:{type:String,default:"#8c7fee"}}}},1533:function(t,e,i){"use strict";e.a={data:function(){return{}},props:{pics:{type:Object,default:function(){}},brandColor:{type:String,default:"#8c7fee"}}}},1534:function(t,e,i){"use strict";var o=i(125),n=i(19);e.a={name:"Tab",mixins:[n.a],data:function(){return{scroll:null}},components:{scroll:o.a},props:{activeIndex:{type:Number,default:0},list:{type:Array,default:function(){return[]}},brandColor:{type:String,default:"#8c7fee"},canTabClick:{type:Boolean,default:!0}},methods:{isSelected:function(t){return t===this.activeIndex},changeTab:function(t){this.canTabClick&&this.$emit("changeTab",t)}},watch:{isVisible:function(t){var e=this;t&&this.$nextTick(function(){e.$refs.scroll.initScroll()})}}}},154:function(t,e,i){"use strict";var o=i(120),n=i(156);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:n.a&&this.useTransition,pullUpLoad:{threshold:50}};this.scroll=new o.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()}}}},156:function(t,e,i){"use strict";i.d(e,"a",function(){return n});var o=i(4),n=function(){var t=!0;if(o.H.isIOS){var e=Object(o.k)(navigator.userAgent.toLowerCase());if(!e)return t;Number(""+e.major+e.minor)>=133&&(t=!1)}return t}()},157:function(t,e,i){"use strict";function o(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function n(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];for(var n=0;n<i.length;n++){var s=i[n];for(var r in s)t[r]=s[r]}return t}function s(t){return void 0===t||null===t}function r(t,e){return Math.sqrt(t*t+e*e)}function a(t){return!1!==j&&("standard"===j?"transitionEnd"===t?"transitionend":t:j+t.charAt(0).toUpperCase()+t.substr(1))}function l(t,e,i,o){t.addEventListener(e,i,{passive:!1,capture:!!o})}function c(t,e,i,o){t.removeEventListener(e,i,{passive:!1,capture:!!o})}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 m(t){function e(){r=document.createEvent("Event"),r.initEvent(i,a,l),n(r,s)}var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click",o=void 0;"mouseup"===t.type||"mousecancel"===t.type?o=t:"touchend"!==t.type&&"touchcancel"!==t.type||(o=t.changedTouches[0]);var s={};o&&(s.screenX=o.screenX||0,s.screenY=o.screenY||0,s.clientX=o.clientX||0,s.clientY=o.clientY||0);var r=void 0,a=!0,l=!0;if("undefined"!=typeof MouseEvent)try{r=new MouseEvent(i,n({bubbles:a,cancelable:l},s))}catch(t){e()}else e();r.forwardedTouchEvent=!0,r._constructed=!0,t.target.dispatchEvent(r)}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 _(t,e,i,o,n,s,r){var a=t-e,l=Math.abs(a)/i,c=r.deceleration,h=r.itemHeight,u=r.swipeBounceTime,p=r.wheel,f=r.swipeTime,d=f,m=p?4:15,v=t+l/c*(a<0?-1:1);return p&&h&&(v=Math.round(v/h)*h),v<o?(v=s?Math.max(o-s/4,o-s/m*l):o,d=u):v>n&&(v=s?Math.min(n+s/4,n+s/m*l):n,d=u),{destination:Math.round(v),duration:d}}function w(){}function x(t){console.error("[BScroll warn]: "+t)}function S(t,e){if(!t)throw new Error("[BScroll] "+e)}function T(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 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 P(t){if(t&&t.classList)return t.classList.contains("tombstone")}function M(t,e){var i=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(){i.onScroll()}),this.scroller.on("resize",function(){i.onResize()}),this.onResize()}function D(t,e){this.wrapper="string"==typeof t?document.querySelector(t):t,this.wrapper||x("Can not resolve the wrapper DOM."),this.scroller=this.wrapper.children[0],this.scroller||x("The wrapper need at least one child element to be scroller."),this.scrollerStyle=this.scroller.style,this._init(t,e)}var E=function(){function t(t,e){var i=[],o=!0,n=!1,s=void 0;try{for(var r,a=t[Symbol.iterator]();!(o=(r=a.next()).done)&&(i.push(r.value),!e||i.length!==e);o=!0);}catch(t){n=!0,s=t}finally{try{!o&&a.return&&a.return()}finally{if(n)throw s}}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")}}(),Y=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)},O="undefined"!=typeof window,k=O&&navigator.userAgent.toLowerCase(),X=k&&/wechatdevtools/.test(k),I=k&&k.indexOf("android")>0,A=O&&document.createElement("div").style,j=function(){if(!O)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var e in t)if(void 0!==A[t[e]])return e;return!1}(),L=a("transform"),R=O&&a("perspective")in A,z=O&&("ontouchstart"in window||X),W=!1!==L,$=O&&a("transition")in A,H={transform:L,transitionTimingFunction:a("transitionTimingFunction"),transitionDuration:a("transitionDuration"),transitionDelay:a("transitionDelay"),transformOrigin:a("transformOrigin"),transitionEnd:a("transitionEnd")},B=1,N={touchstart:B,touchmove:B,touchend:B,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:z,disableTouch:!z,observeDOM:!0,autoBlur:!0,wheel:!1,snap:!1,scrollbar:!1,pullDownRefresh:!1,pullUpLoad:!1,mouseWheel:!1,stopPropagation:!1,zoom:!1,infinity:!1,dblclick:!1},F={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}}},V=function(){return O?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||100/60)/2)}:w}(),q=function(){return O?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:w}(),G=1,Z=-1,J=1,K=-1,Q=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 i=this;if(!e||this.visible){var o=t?250:500;t=t?"1":"0",this.wrapperStyle[H.transitionDuration]=o+"ms",clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout(function(){i.wrapperStyle.opacity=t,i.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 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[H.transform]="translateY("+t+"px)"+this.scroller.translateZ:this.indicatorStyle.top=t+"px"}else{var o=Math.round(this.sizeRatioX*this.scroller.x);if(o<0){this.transitionTime(500);var n=Math.max(this.indicatorWidth+3*o,8);this.indicatorStyle.width=n+"px",o=0}else if(o>this.maxPosX){this.transitionTime(500);var s=Math.max(this.indicatorWidth-3*(o-this.maxPosX),8);this.indicatorStyle.width=s+"px",o=this.maxPosX+this.indicatorWidth-s}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=o,this.scroller.options.useTransform?this.indicatorStyle[H.transform]="translateX("+o+"px)"+this.scroller.translateZ:this.indicatorStyle.left=o+"px"}},C.prototype.transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorStyle[H.transitionDuration]=t+"ms"},C.prototype.transitionTimingFunction=function(t){this.indicatorStyle[H.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=o(),this._handleMoveEvents(l),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 i=e.pageX-this.lastPointX;this.lastPointX=e.pageX;var o=e.pageY-this.lastPointY;this.lastPointY=e.pageY;var n=this.x+i,s=this.y+o;this._pos(n,s)},C.prototype._end=function(t){if(this.initiated){this.initiated=!1,t.preventDefault(),t.stopPropagation(),this._handleMoveEvents(c);var e=this.scroller.options.snap;if(e){var i=e.speed,o=e.easing,n=void 0===o?F.bounce:o,s=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),r=i||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-s.x),1e3),Math.min(Math.abs(this.scroller.y-s.y),1e3)),300);this.scroller.x===s.x&&this.scroller.y===s.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=s,this.scroller.scrollTo(s.x,s.y,r,n))}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=l;this._handleDOMEvents(t)},C.prototype._removeDOMEvents=function(){var t=c;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;M.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),o=this.anchorItem.index,n=i.index;e<0?(o-=30,n+=10):(o-=10,n+=30),this.fill(o,n),this.maybeRequestContent()},M.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()},M.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()},M.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(),o=0;t.anchorItem.index<=t.items.length?(o=t._fixScrollPosition(),t._setupAnimations({},o),t.scroller.resetPosition(t.scroller.options.bounceTime)):(t.anchorItem.index-=i,o=t._fixScrollPosition(),t._setupAnimations({},o),t.scroller.stop(),t.scroller.resetPosition(),t.onScroll())}}))}},M.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()},M.prototype.attachContent=function(){var t=this._collectUnusedNodes(),e=this._createDOMNodes(t);this._cleanupUnusedNodes(t),this._cacheNodeSize();var i=this._fixScrollPosition();this._setupAnimations(e,i)},M.prototype.resetMore=function(){this.hasMore=!0},M.prototype._removeTombstones=function(){for(var t=void 0,e=0,i=this.items.length,o=0;o<i;o++){var n=this.items[o].node,s=this.items[o].data;n&&!P(n)||s||(t||(t=o),n&&this.scrollerEl.removeChild(n))}return e=i-t,this.items.splice(t),this.lastAttachedItem=Math.min(this.lastAttachedItem,this.items.length),e},M.prototype._collectUnusedNodes=function(){for(var t=[],e=0;e<this.items.length;e++)if(e!==this.firstAttachedItem){var i=this.items[e].node;i&&(P(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},M.prototype._createDOMNodes=function(t){for(var e={},i=this.firstAttachedItem;i<this.lastAttachedItem;i++){for(;this.items.length<=i;)this._addItem();var o=this.items[i].node,n=this.items[i].data;if(o){if(!P(o)||!n)continue;o.style.zIndex=1,e[i]=[o,this.items[i].top-this.anchorScrollTop],this.items[i].node=null}var s=n?this.options.render(n,t.pop()):this._getTombStone();s.style.position="absolute",this.items[i].top=-1,this.scrollerEl.appendChild(s),this.items[i].node=s}return e},M.prototype._cleanupUnusedNodes=function(t){for(;t.length;)this.scrollerEl.removeChild(t.pop())},M.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)},M.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},M.prototype._setupAnimations=function(t,e){var i=this;for(var o in t){var n=t[o];this.items[o].node.style.transform="translateY("+(this.anchorScrollTop+n[1])+"px) scale("+this.tombstoneWidth/this.items[o].width+", "+this.tombstoneHeight/this.items[o].height+")",this.items[o].node.offsetTop,n[0].offsetTop,this.items[o].node.style.transition="transform 200ms"}for(var s=this.firstAttachedItem;s<this.lastAttachedItem;s++){var r=t[s];if(r){var a=r[0];a.style.transition="transform 200ms, opacity 200ms",a.style.transform="translateY("+e+"px) scale("+this.items[s].width/this.tombstoneWidth+", "+this.items[s].height/this.tombstoneHeight+")",a.style.opacity=0}e!==this.items[s].top&&(r||(this.items[s].node.style.transition=""),this.items[s].node.style.transform="translateY("+e+"px)"),this.items[s].top=e,e+=this.items[s].height||this.tombstoneHeight}this.scroller.maxScrollY=-(e-this.wrapperEl.offsetHeight+(this.hasMore?et:0)),setTimeout(function(){for(var e in t){var o=t[e];o[0].style.display="none",i.tombstones.push(o[0])}},200)},M.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()},M.prototype._addItem=function(){this.items.push({data:null,node:null,height:0,width:0,top:0})},M.prototype._calculateAnchoredItem=function(t,e){if(0===e)return t;var i=t.index,o=0;if((e+=t.offset)<0){for(;e<0&&i>0&&this.items[i-1].height;)e+=this.items[i-1].height,i--;o=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)&&(o=Math.floor(Math.max(e,0)/this.tombstoneHeight))}return i+=o,e-=o*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=s(this.scale)?t:this.scale,this.scale=t},t.prototype._handleOptions=function(t){this.options=n({},U,t),this.translateZ=this.options.HWCompositing&&R?" translateZ(0)":"",this.options.useTransition=this.options.useTransition&&$,this.options.useTransform=this.options.useTransform&&W,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=l;this._handleDOMEvents(t)},t.prototype._removeDOMEvents=function(){var t=c;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)),z&&!this.options.disableTouch&&(t(this.wrapper,"touchstart",this),t(e,"touchmove",this),t(e,"touchcancel",this),t(e,"touchend",this)),t(this.scroller,H.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 o=t.scroller.children.length?t.scroller.children:[t.scroller],n=e&&!t.pulling?"none":"auto",s=0;s<o.length;s++)o[s].style.pointerEvents=n}})}},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 o=!1,n=!1,s=0;s<i.length;s++){var r=i[s];if("attributes"!==r.type){o=!0;break}if(r.target!==t.scroller){n=!0;break}}o?t.refresh():n&&(clearTimeout(e),e=setTimeout(function(){t._shouldNotRefresh()||t.refresh()},60))}}),o={attributes:!0,childList:!0,subtree:!0};i.observe(this.scroller,o),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,s=i.height;o===t&&n===s||this.refresh(),o=t,n=s,e.call(this)}}function e(){var e=this;setTimeout(function(){t.call(e)},1e3)}var i=p(this.scroller),o=i.width,n=i.height;e.call(this)},t.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t),this.options.zoom&&t.touches&&t.touches.length>1&&this._zoomStart(t);break;case"touchmove":case"mousemove":this.options.zoom&&t.touches&&t.touches.length>1?this._zoom(t):this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this.scaled?this._zoomEnd(t):this._end(t);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(t);break;case"click":this.enabled&&!t._constructed&&(f(t.target,this.options.preventDefaultException)||(t.preventDefault(),t.stopPropagation()));break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._onMouseWheel(t)}},t.prototype.refresh=function(){var t="static"===window.getComputedStyle(this.wrapper,null).position,e=p(this.wrapper);this.wrapperWidth=e.width,this.wrapperHeight=e.height;var i=p(this.scroller);this.scrollerWidth=Math.round(i.width*this.scale),this.scrollerHeight=Math.round(i.height*this.scale),this.relativeX=i.left,this.relativeY=i.top,t&&(this.relativeX-=e.left,this.relativeY-=e.top),this.minScrollX=0,this.minScrollY=0;var o=this.options.wheel;o?(this.items=this.scroller.children,this.options.itemHeight=this.itemHeight=this.items.length?this.scrollerHeight/this.items.length:0,void 0===this.selectedIndex&&(this.selectedIndex=o.selectedIndex||0),this.options.startY=-this.selectedIndex*this.itemHeight,this.maxScrollX=0,this.maxScrollY=-this.itemHeight*(this.items.length-1)):(this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.options.infinity||(this.maxScrollY=this.wrapperHeight-this.scrollerHeight),this.maxScrollX<0?(this.maxScro