@xysfe/actui
Version:
A fantastic mobile ui lib implement by Vue
1 lines • 133 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.GoldFinance=e():t.GoldFinance=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.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=1745)}({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,r,o,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),o&&(l._scopeId=o);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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=h):r&&(h=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),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){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},100:function(t,e,i){t.exports={default:i(101),__esModule:!0}},101:function(t,e,i){i(55),t.exports=i(0).Object.getOwnPropertySymbols},102: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(o.a)(l),n[l]=t[c]}else i[c]=t[c];return e.on=Object(r.a)(n,e.on),e.props=Object(r.a)(i,e.props),e}e.a=n;var r=i(62),o=i(103),s=new RegExp(/^on(.+)/),a=["class","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"]},103: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 r=i(28),o=i.n(r),s=i(4),a=function(t){for(var e=!1,i=!1,n=!1,r=0;r<t.length;r++){var o=t[r];e&&/[a-zA-Z]/.test(o)&&o.toUpperCase()===o?(t=t.slice(0,r)+"-"+t.slice(r),e=!1,n=i,i=!0,r++):i&&n&&/[a-zA-Z]/.test(o)&&o.toLowerCase()===o?(t=t.slice(0,r-1)+"-"+t.slice(r-1),n=i,i=!1,e=!0):(e=o.toLowerCase()===o&&o.toUpperCase()!==o,n=i,i=o.toUpperCase()===o&&o.toLowerCase()!==o)}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=o()({pascalCase:!1},e);return t=Array.isArray(t)?t.map(function(t){return t.trim()}).filter(function(t){return t.length}).join("-"):t.trim(),0===t.length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=a(t)),t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()}).replace(/\d+(\w|$)/g,function(t){return t.toUpperCase()}),function(t){return e.pascalCase?t.charAt(0).toUpperCase()+t.slice(1):t}(t))}},104:function(t,e,i){"use strict";function n(t,e,i,n){var o=void 0,s=void 0,a=new t({render:function(t){var i=s&&s(t);return i&&!Object(r.p)(i)&&(i=[i]),t(e,o,i||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return a.updateRenderData=function(t,e){o=t,s=e},a.updateRenderData(i,n),a.$mount(),a.init(),a.$children[0]}e.a=n;var r=i(4)},106:function(t,e,i){"use strict";e.__esModule=!0;var n=i(28),r=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=r.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}},107:function(t,e,i){var n=i(26),r=i(3)("toStringTag"),o="Arguments"==n(function(){return arguments}()),s=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=s(e=Object(t),r))?i:o?n(e):"Object"==(a=n(e))&&"function"==typeof e.callee?"Arguments":a}},11:function(t,e,i){var n=i(47),r=i(29);t.exports=function(t){return n(r(t))}},110:function(t,e,i){var n=i(9),r=i(40),o=i(3)("species");t.exports=function(t,e){var i,s=n(t).constructor;return void 0===s||void 0==(i=n(s)[o])?e:r(i)}},111:function(t,e,i){var n,r,o,s=i(38),a=i(146),c=i(60),l=i(41),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)},n(v),v},f=function(t){delete g[t]},"process"==i(26)(u)?n=function(t){u.nextTick(s(y,t,1))}:m&&m.now?n=function(t){m.now(s(y,t,1))}:d?(r=new d,o=r.port2,r.port1.onmessage=b,n=s(o.postMessage,o,1)):h.addEventListener&&"function"==typeof postMessage&&!h.importScripts?(n=function(t){h.postMessage(t+"","*")},h.addEventListener("message",b,!1)):n="onreadystatechange"in l("script")?function(t){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(s(y,t,1),0)}),t.exports={set:p,clear:f}},112:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},113:function(t,e,i){var n=i(9),r=i(10),o=i(68);t.exports=function(t,e){if(n(t),r(e)&&e.constructor===t)return e;var i=o.f(t);return(0,i.resolve)(e),i.promise}},115:function(t,e,i){var n=i(107),r=i(3)("iterator"),o=i(18);t.exports=i(0).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[n(t)]}},118:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(154);e.default=n.a},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},123:function(t,e,i){var n=i(38),r=i(136),o=i(137),s=i(9),a=i(59),c=i(115),l={},h={},e=t.exports=function(t,e,i,u,p){var f,d,m,v,g=p?function(){return t}:c(t),y=n(i,u,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(f=a(t.length);f>b;b++)if((v=e?y(s(d=t[b])[0],d[1]):y(t[b]))===l||v===h)return v}else for(m=g.call(t);!(d=m.next()).done;)if((v=r(m,y,d.value,e))===l||v===h)return v};e.BREAK=l,e.RETURN=h},124:function(t,e,i){t.exports={default:i(186),__esModule:!0}},1243:function(t,e,i){t.exports={default:i(1244),__esModule:!0}},1244:function(t,e,i){i(1245),t.exports=i(0).Object.values},1245:function(t,e,i){var n=i(13),r=i(1246)(!1);n(n.S,"Object",{values:function(t){return r(t)}})},1246:function(t,e,i){var n=i(5),r=i(15),o=i(11),s=i(25).f;t.exports=function(t){return function(e){for(var i,a=o(e),c=r(a),l=c.length,h=0,u=[];l>h;)i=c[h++],n&&!s.call(a,i)||u.push(t?[i,a[i]]:a[i]);return u}}},13:function(t,e,i){var n=i(2),r=i(0),o=i(38),s=i(7),a=i(6),c=function(t,e,i){var l,h,u,p=t&c.F,f=t&c.G,d=t&c.S,m=t&c.P,v=t&c.B,g=t&c.W,y=f?r:r[e]||(r[e]={}),b=y.prototype,x=f?n:d?n[e]:(n[e]||{}).prototype;f&&(i=e);for(l in i)(h=!p&&x&&void 0!==x[l])&&a(y,l)||(u=h?x[l]:i[l],y[l]=f&&"function"!=typeof x[l]?i[l]:v&&h?o(u,n):g&&x[l]==u?function(t){var e=function(e,i,n){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,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(u):m&&"function"==typeof u?o(Function.call,u):u,m&&((y.virtual||(y.virtual={}))[l]=u,t&c.R&&b&&!b[l]&&s(b,l,u)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},136:function(t,e,i){var n=i(9);t.exports=function(t,e,i,r){try{return r?e(n(i)[0],i[1]):e(i)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},137:function(t,e,i){var n=i(18),r=i(3)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[r]===t)}},139:function(t,e){t.exports=function(t,e,i,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(i+": incorrect invocation!");return t}},14:function(t,e,i){"use strict";function n(t,e){return function(i,n){var s=this,a=Object(r.a)(i),c=Object(o.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 r=i(102),o=i(104)},140:function(t,e,i){var n=i(7);t.exports=function(t,e,i){for(var r in e)i&&t[r]?t[r]=e[r]:n(t,r,e[r]);return t}},141:function(t,e,i){var n=i(3)("iterator"),r=!1;try{var o=[7][n]();o.return=function(){r=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var i=!1;try{var o=[7],s=o[n]();s.next=function(){return{done:i=!0}},o[n]=function(){return s},t(o)}catch(t){}return i}},142:function(t,e,i){"use strict";var n=i(2),r=i(0),o=i(8),s=i(5),a=i(3)("species");t.exports=function(t){var e="function"==typeof r[t]?r[t]:n[t];s&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},144:function(t,e,i){i(61),i(53),i(56),i(145),i(149),i(150),t.exports=i(0).Promise},145:function(t,e,i){"use strict";var n,r,o,s,a=i(16),c=i(2),l=i(38),h=i(107),u=i(13),p=i(10),f=i(40),d=i(139),m=i(123),v=i(110),g=i(111).set,y=i(147)(),b=i(68),x=i(112),w=i(148),_=i(113),S=c.TypeError,T=c.process,P=T&&T.versions,E=P&&P.v8||"",O=c.Promise,M="process"==h(T),k=function(){},C=r=b.f,A=!!function(){try{var t=O.resolve(1),e=(t.constructor={})[i(3)("species")]=function(t){t(k,k)};return(M||"function"==typeof PromiseRejectionEvent)&&t.then(k)instanceof e&&0!==E.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),D=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},I=function(t,e){if(!t._n){t._n=!0;var i=t._c;y(function(){for(var n=t._v,r=1==t._s,o=0;i.length>o;)!function(e){var i,o,s,a=r?e.ok:e.fail,c=e.resolve,l=e.reject,h=e.domain;try{a?(r||(2==t._h&&j(t),t._h=1),!0===a?i=n:(h&&h.enter(),i=a(n),h&&(h.exit(),s=!0)),i===e.promise?l(S("Promise-chain cycle")):(o=D(i))?o.call(i,c,l):c(i)):l(n)}catch(t){h&&!s&&h.exit(),l(t)}}(i[o++]);t._c=[],t._n=!1,e&&!t._h&&Y(t)})}},Y=function(t){g.call(c,function(){var e,i,n,r=t._v,o=X(t);if(o&&(e=x(function(){M?T.emit("unhandledRejection",r,t):(i=c.onunhandledrejection)?i({promise:t,reason:r}):(n=c.console)&&n.error&&n.error("Unhandled promise rejection",r)}),t._h=M||X(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},X=function(t){return 1!==t._h&&0===(t._a||t._c).length},j=function(t){g.call(c,function(){var e;M?T.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},W=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()),I(e,!0))},L=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=D(t))?y(function(){var n={_w:i,_d:!1};try{e.call(t,l(L,n,1),l(W,n,1))}catch(t){W.call(n,t)}}):(i._v=t,i._s=1,I(i,!1))}catch(t){W.call({_w:i,_d:!1},t)}}};A||(O=function(t){d(this,O,"Promise","_h"),f(t),n.call(this);try{t(l(L,this,1),l(W,this,1))}catch(t){W.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(140)(O.prototype,{then:function(t,e){var i=C(v(this,O));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=M?T.domain:void 0,this._c.push(i),this._a&&this._a.push(i),this._s&&I(this,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=l(L,t,1),this.reject=l(W,t,1)},b.f=C=function(t){return t===O||t===s?new o(t):r(t)}),u(u.G+u.W+u.F*!A,{Promise:O}),i(27)(O,"Promise"),i(142)("Promise"),s=i(0).Promise,u(u.S+u.F*!A,"Promise",{reject:function(t){var e=C(this);return(0,e.reject)(t),e.promise}}),u(u.S+u.F*(a||!A),"Promise",{resolve:function(t){return _(a&&this===s?O:this,t)}}),u(u.S+u.F*!(A&&i(141)(function(t){O.all(t).catch(k)})),"Promise",{all:function(t){var e=this,i=C(e),n=i.resolve,r=i.reject,o=x(function(){var i=[],o=0,s=1;m(t,!1,function(t){var a=o++,c=!1;i.push(void 0),s++,e.resolve(t).then(function(t){c||(c=!0,i[a]=t,--s||n(i))},r)}),--s||n(i)});return o.e&&r(o.v),i.promise},race:function(t){var e=this,i=C(e),n=i.reject,r=x(function(){m(t,!1,function(t){e.resolve(t).then(i.resolve,n)})});return r.e&&n(r.v),i.promise}})},146: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)}},147:function(t,e,i){var n=i(2),r=i(111).set,o=n.MutationObserver||n.WebKitMutationObserver,s=n.process,a=n.Promise,c="process"==i(26)(s);t.exports=function(){var t,e,i,l=function(){var n,r;for(c&&(n=s.domain)&&n.exit();t;){r=t.fn,t=t.next;try{r()}catch(n){throw t?i():e=void 0,n}}e=void 0,n&&n.enter()};if(c)i=function(){s.nextTick(l)};else if(!o||n.navigator&&n.navigator.standalone)if(a&&a.resolve){var h=a.resolve(void 0);i=function(){h.then(l)}}else i=function(){r.call(n,l)};else{var u=!0,p=document.createTextNode("");new o(l).observe(p,{characterData:!0}),i=function(){p.data=u=!u}}return function(n){var r={fn:n,next:void 0};e&&(e.next=r),t||(t=r,i()),e=r}}},148:function(t,e,i){var n=i(2),r=n.navigator;t.exports=r&&r.userAgent||""},1489:function(t,e,i){"use strict";var n=i(58),r=i.n(n),o=i(124),s=i.n(o),a=i(52),c=i.n(a),l=i(1243),h=i.n(l),u=i(106),p=i.n(u),f=i(207),d=i.n(f),m=i(208),v=i.n(m),g=i(1748),y=i(1766),b=i(1769),x=i(1772),w=i(4),_={};e.a={name:"ActGoldFinance",components:{GoldBenefit:g.a,GoldCaseDemo:y.a,GoldCostTable:b.a},data:function(){return{realAurora:null,realAuroraRender:null,loading:!0,benefitElems:null,caseDemoInfo:null,costTableInfo:{},costSlideVar:-1,costTableVisible:!1,moduleData:null}},props:{financeInfo:{type:Object,default:function(){return{}}},brandColor:{type:String,default:""},requestUrl:{type:String,default:"/buy/getAnnuityCostTable"},requestParams:{type:Object,default:function(){return{}}},pxToRem:{type:Number,default:0},aurora:{type:Object,default:function(){return null}},auroraRender:{type:Object,default:function(){return null}}},computed:{realTheme:function(){var t={brandColor:window.g_agentShowCfg&&window.g_agentShowCfg.brandcolor||"#8c7fee",btnColor:window.g_agentShowCfg&&window.g_agentShowCfg.btncolor||"#8c7fee"};return this.brandColor&&(t.brandColor=this.brandColor,t.btnColor=this.brandColor),t},isCps:function(){return"#8c7fee"!==this.realTheme.brandColor},curtime:function(){return this.financeInfo&&this.financeInfo.curtime},genes:function(){return this.financeInfo&&this.financeInfo.genes},sourceModule:function(){if(this.financeInfo&&this.financeInfo.insureAttribute&&this.financeInfo.insureAttribute.attrModules){return{insureAttribute:{attrModules:Object(x.b)(this.genes,this.financeInfo.insureAttribute.attrModules)}}}return null},tableId:function(){return this.financeInfo&&this.financeInfo.tableId?this.financeInfo.tableId:this.genes&&this.genes.tableId?this.genes.tableId:this.financeInfo&&this.financeInfo.insureAttribute&&this.financeInfo.insureAttribute.insuranceInfo&&this.financeInfo.insureAttribute.insuranceInfo.costTables&&this.financeInfo.insureAttribute.insuranceInfo.costTables.tables&&this.financeInfo.insureAttribute.insuranceInfo.costTables.tables[0]&&this.financeInfo.insureAttribute.insuranceInfo.costTables.tables[0].id?this.financeInfo.insureAttribute.insuranceInfo.costTables.tables[0].id:""},annuity:function(){return this.financeInfo&&this.financeInfo.annuity},genesRules:function(){return this.annuity&&this.annuity.tplVariables||{}},costSlideMin:function(){var t=this.costTableInfo.rows&&this.costTableInfo.rows[0];return~~(t&&t[1])||0},costSlideMax:function(){var t=this.costTableInfo.rows&&this.costTableInfo.rows[this.costTableInfo.rows.length-1];return~~(t&&t[1])||106},costSlideRealVar:function(){return this.costSlideVar<this.costSlideMin?this.costSlideMin:this.costSlideVar>this.costSlideMax?this.costSlideMax:this.costSlideVar}},methods:{onShowTable:function(){this.costTableVisible=!0},onBenefitChange:function(t){this.costSlideVar=t,this.getBenefitElems(),this.getCaseDemoInfo()},onElementChange:function(t){var e=this;return v()(d.a.mark(function i(){var n,r;return d.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,e.realAurora.getSiteData({key:"plan.interest",site:["plan"],allAttr:!0});case 2:n=i.sent,r=Object(x.e)(t,n),e.realAurora.changeValues({changeData:r}).catch(function(t){Object(w.s)(t)&&e.$throw(t)});case 5:case"end":return i.stop()}},i,e)}))()},getModuleData:function(){var t=this;return v()(d.a.mark(function e(){var i;return d.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.realAurora.getModulesData({cleanKey:!0});case 2:i=e.sent,t.moduleData=Object(x.a)(t.genes,i);case 4:case"end":return e.stop()}},e,t)}))()},getCostTableInfo:function(){var t=this;return v()(d.a.mark(function e(){var i,n,r,o,s,a,l,u,f,m,v,g,y,b,x,w,S,T,P;return d.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.genes,n=i.groupId,r=i.common,o=void 0===r?{}:r,s=t.moduleData,a=s.plan,l=void 0===a?{}:a,u=s.insureds,f=void 0===u?[]:u,m=s.benefitDemo,v=void 0===m?{}:m,g=s.applicant,y=void 0===g?{}:g,b=f[0],x=void 0===b?{}:b,w=p()({},t.requestParams,{genes:{groupId:n,common:o,insured:x,plan:l,benefitDemo:v,applicant:y},tableId:t.tableId}),S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h()(t).join("_")},T=S(o)+"_"+S(x)+"_"+S(l)+"_"+S(y)+"_"+S(v)+"_"+t.tableId,!_[T]){e.next=9;break}return t.costTableInfo=_[T],e.abrupt("return",c.a.resolve(_[T]));case 9:return t.loading=!0,e.next=12,t.$fetch(t.requestUrl,w).then(function(e){var i=e.ret,n=e.data,r=e.errmsg;return 0===i?(t.costTableInfo=n,_[T]=n,t.$emit("changeCostTable",n),c.a.resolve(n)):(t.costTableInfo={},c.a.reject(r))}).catch(function(t){return c.a.reject(t||"系统繁忙,请稍后再试")});case 12:return P=e.sent,e.abrupt("return",P);case 14:case"end":return e.stop()}},e,t)}))()},getBenefitElems:function(){var t=this;return v()(d.a.mark(function e(){var i,n,r,o,a,l,h,u,f,m,v,g,y,b,_,S,T,P,E,O,M,k,C,A,D,I,Y,X,j,W,L,R,N;return d.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.realAurora.getRenderData();case 2:if(i=e.sent,!(n=i.benefitDemo)||!n._elements){e.next=43;break}r=[],o=t.moduleData,a=o.applicant,l=void 0===a?{}:a,h=o.plan,u=void 0===h?{}:h,f=o.insureds,m=void 0===f?[]:f,v=m[0],g=void 0===v?{}:v,y=n._elements,b=Array.isArray(y),_=0,y=b?y:s()(y);case 9:if(!b){e.next=15;break}if(!(_>=y.length)){e.next=12;break}return e.abrupt("break",25);case 12:S=y[_++],e.next=19;break;case 15:if(_=y.next(),!_.done){e.next=18;break}return e.abrupt("break",25);case 18:S=_.value;case 19:if(T=S,1!=~~T.display||18!=~~T.type){e.next=23;break}return-1===t.costSlideVar&&(t.costSlideVar=~~T.defaultValue),e.abrupt("break",25);case 23:e.next=9;break;case 25:P=n._elements,E=Array.isArray(P),O=0,P=E?P:s()(P);case 26:if(!E){e.next=32;break}if(!(O>=P.length)){e.next=29;break}return e.abrupt("break",40);case 29:M=P[O++],e.next=36;break;case 32:if(O=P.next(),!O.done){e.next=35;break}return e.abrupt("break",40);case 35:M=O.value;case 36:k=M,1==~~k.display&&(C=t.costTableInfo.rows,A=t.costSlideRealVar,D=t.genesRules,I=t.curtime,Y={visible:!0,range:k.attributeValues||[],type:k.type,key:k.key,site:k.site,attr:k.element_attr?JSON.parse(k.element_attr):{},value:k.defaultValue},Object(w.D)(k.defaultValue)&&(X=17==~~k.type?k.defaultValue:Object(x.c)(k.defaultValue,t.realTheme),j=void 0!==Y.attr.isHideEqZero&&"1"===Y.attr.isHideEqZero?["0",0]:[],W=Object(x.d)({applicant:l,insured:g,plan:u,costSlideVar:A,costTable:C,genesValue:X,genesRules:D,dontValue:j,curtime:I}),"null"!==W?Y.value=W:Y.visible=!1),18==~~k.type&&(L=Y.range,Y.range[0]&&Object(w.D)(Y.range[0])&&(R=Y.range[0],(N=Object(x.d)({applicant:l,insured:g,plan:u,costSlideVar:A,costTable:C,genesValue:R,genesRules:D,curtime:I}))&&(L=p()({},L,JSON.parse(N)))),Y.range=[L],Y.value=A+""),r.push(Y));case 38:e.next=26;break;case 40:return t.loading=!1,t.benefitElems=r,e.abrupt("return",c.a.resolve(r));case 43:case"end":return e.stop()}},e,t)}))()},getCaseDemoInfo:function(){var t=this;return v()(d.a.mark(function e(){var i,n,o,a,l,h,u,f,m,v,g,y,b,w,_,S,T,P,E,O,M,k,C,A,D,I,Y,X,j,W;return d.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.realAurora.getRenderData();case 2:if(i=e.sent,!(n=i.caseDemo)||!n._elements){e.next=49;break}o={caseData:{},caseEdge:{},caseAccount:[]},a={},l=t.moduleData,h=l.applicant,u=void 0===h?{}:h,f=l.plan,m=void 0===f?{}:f,v=l.insureds,g=void 0===v?[]:v,y=g[0],b=void 0===y?{}:y,w=n._elements,_=Array.isArray(w),S=0,w=_?w:s()(w);case 10:if(!_){e.next=16;break}if(!(S>=w.length)){e.next=13;break}return e.abrupt("break",47);case 13:T=w[S++],e.next=20;break;case 16:if(S=w.next(),!S.done){e.next=19;break}return e.abrupt("break",47);case 19:T=S.value;case 20:if(P=T,1!=~~P.display){e.next=45;break}if(E=t.costTableInfo.rows||[],O=t.costSlideRealVar,M=t.genesRules,k=P.defaultValue,C=t.curtime,A=Object(x.d)({applicant:u,insured:b,plan:m,costSlideVar:O,costTable:E,genesValue:k,genesRules:M,curtime:C}),D=P.element_attr?JSON.parse(P.element_attr):{},22!=~~P.type){e.next=35;break}I=p()({},D,{title:A,desc:P.name}),a[A]?a[A].caseType<I.title?I.display=!1:o.caseData[a[A].key].display=!1:a[A]={caseType:D.caseType,dotKey:P.key},o.caseData[P.key]=I,e.next=45;break;case 35:if(23!=~~P.type){e.next=44;break}if(Y=D.bindStartPoint,X=D.bindEndPoint,j=D.caseType,Y&&X&&j){e.next=40;break}return console.log("%c 产品演示模块传参错误,元素类型: "+P.type+", 参数:"+r()(D),"color:red"),e.abrupt("continue",45);case 40:W=D.bindStartPoint+"_"+D.bindEndPoint,o.caseEdge[W]={caseType:j},e.next=45;break;case 44:24==~~P.type&&o.caseAccount.push(p()({},D,{name:P.name,text:A}));case 45:e.next=10;break;case 47:return t.caseDemoInfo=o,e.abrupt("return",c.a.resolve(o));case 49:case"end":return e.stop()}},e,t)}))()},updatePage:function(){var t=this;return v()(d.a.mark(function e(){return d.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getModuleData();case 2:return e.next=4,t.getCostTableInfo().catch(function(t){});case 4:t.getBenefitElems(),t.getCaseDemoInfo();case 6:case"end":return e.stop()}},e,t)}))()},initAurora:function(){var t=this;if(this.aurora)return this.realAurora=this.aurora,void(this.realAuroraRender=this.auroraRender);if(this.sourceModule){var e={pageName:"financeComponent",sourceData:this.sourceModule,nextTick:this.$nextTick,isCache:!1,render:function(e){var i=e.renderData;t.realAuroraRender=i}};this.realAurora=new window.Aurora,this.realAurora.init(e).catch(function(t){console.log(t)})}}},mounted:function(){this.initAurora()},watch:{auroraRender:function(){this.updatePage()},realAuroraRender:function(){this.updatePage()}}}},149:function(t,e,i){"use strict";var n=i(13),r=i(0),o=i(2),s=i(110),a=i(113);n(n.P+n.R,"Promise",{finally:function(t){var e=s(this,r.Promise||o.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)}})},1490:function(t,e,i){"use strict";var n=i(1750),r=i(1753),o=i(1756),s=i(1759),a=i(1762),c={16:"benefitTitle",17:"benefitAmount",18:"benefitSlider",19:"benefitText",20:"benefitSelect"};e.a={name:"ActGoldBenefit",props:{elements:{type:Array,default:function(){return[]}},loading:{type:Boolean,default:!1},theme:{type:Object,default:function(){return{}}},isCps:{type:Boolean,default:!1}},components:{benefitTitle:n.a,benefitAmount:r.a,benefitSlider:o.a,benefitText:s.a,benefitSelect:a.a},computed:{type:function(){return this.elements.map(function(t){return Number(t.type)})},components:function(){return this.type.map(function(t){return c[t]})}},methods:{showTable:function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];this.$emit.apply(this,["showTable"].concat(e))},updateAge:function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];this.$emit.apply(this,["updateAge"].concat(e))},onElementChange:function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];this.$emit.apply(this,["onElementChange"].concat(e))}}}},1491:function(t,e,i){"use strict";e.a={name:"ActGoldBenefitTitle",data:function(){return{trackName:{"/":"titleqm_sx","/my":"titleqm_xq","/addmore":"titleqm_zj"}}},props:{element:{type:Object,default:function(){return{}}},path:{type:String,default:""},theme:{type:Object,default:function(){return{}}}},computed:{hasQuesMask:function(){return this.element.attr&&this.element.attr.hasQuesMask&&~~this.element.attr.hasQuesMask}},methods:{showTable:function(){this.$emit("showTable")}}}},1492:function(t,e,i){"use strict";e.a={name:"ActGoldBenefitAmount",props:{element:{type:Object,default:function(){}},loading:{type:Boolean,default:!1}},filters:{fixedTwoNumber:function(t){return t?Math.round(100*t)/100:0}}}},1493:function(t,e,i){"use strict";var n=i(118);e.a={name:"ActGoldBenefitSlider",data:function(){return{windowX:0,listScroll:null,forbidScrollEnd:!1}},props:{element:{type:Object,default:function(){return{}}}},computed:{unit:function(){return~~this.element.range[0].unit||""},step:function(){return~~(this.element.attr&&this.element.attr.step)||5},min:function(){return~~this.element.range[0].min||~~(this.element.attr&&this.element.attr.min)||0},max:function(){return~~this.element.range[0].max||~~(this.element.attr&&this.element.attr.max)||100},chooseAge:function(){var t=~~this.element.value||80;return t<this.min?this.min:t>this.max?this.max:t},during:function(){return this.max-this.min+1},width:function(){return 12*(this.max-this.min)+1}},methods:{initScroll:function(){var t=this,e=document.querySelector(".wrapper"),i=12*(this.min-this.chooseAge);this.$refs.wrappercontent.style.width=~~this.windowX+this.width+"px",this.$nextTick(function(){var r=t;t.listScroll?(i>=0&&(t.$emit("updateAge",t.min),i=0),t.listScroll.refresh(),t.forbidScrollEnd=!0,t.listScroll.scrollTo(i,0,0)):(t.listScroll=new n.default(e,{probeType:3,startX:i,scrollX:!0,scrollY:!1}),r.listScroll.on("scrollEnd",function(t){if(r.forbidScrollEnd)return void(r.forbidScrollEnd=!1);var e=void 0;if(t.x>=0)e=r.min;else if(Math.abs(t.x)>=r.width)e=r.max;else{e=Math.floor(Math.abs(t.x)/12+1+r.min);var i=-12*Math.floor(Math.abs(t.x)/12+1);r.forbidScrollEnd=!0,r.listScroll.scrollTo(i,0,0)}r.$emit("updateAge",e)}))})}},mounted:function(){var t=this.$refs.chooseContainer&&this.$refs.chooseContainer.offsetWidth;this.windowX=t||window.innerWidth||document.body&&document.body.clientWidth,this.windowX=this.windowX>750?750:this.windowX,this.initScroll()},watch:{min:function(){this.initScroll()}}}},1494:function(t,e,i){"use strict";e.a={name:"ActGoldBenefitText",props:{element:{type:Object,default:function(){return{}}}}}},1495:function(t,e,i){"use strict";e.a={name:"ActGoldBenefitSelect",data:function(){return{index:0,picker:null,trackName:{"/":"level_sx","/my":"level_xq","/addmore":"level_zj"}}},props:{element:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}},path:{type:String,default:""}},methods:{exchange:function(){this.picker||(this.picker=this.$createPicker({data:[this.element.range],selectedIndex:[this.index],onSelect:this.selectExchange,confirmColor:this.theme&&this.theme.brandColor||""})),this.picker.show()},selectExchange:function(t){var e=t[0],i=this.element.range.findIndex(function(t){return t.value===e});this.index=i,this.$emit("onElementChange",[{key:this.element.key,value:e,site:this.element.site}])}},mounted:function(){var t=this.element.value,e=this.element.range.findIndex(function(e){return e.value===t});this.index=e}}},1496:function(t,e,i){"use strict";function n(t){return t?JSON.parse(s()(t)):t}function r(t){return void 0===t}var o=i(58),s=i.n(o);e.a={name:"ActGoldCaseDemo",data:function(){return{caseData:{},caseEdge:{},caseAccount:[],tempData:{},tempEdge:{},tempAccount:[],hasName:!1,minWidth:4.8,maxWidth:32,textExtraWidth:3.2,singleNumWidth:.6675,singleTextWidth:1.2,edgeOffset:.4,accountOffset:.3,errorOffset:-1.2,prevWidth:[0],residueWidth:[],repeatPoint:{}}},props:{caseInfo:{type:Object,default:function(){return{}}},loading:{type:Boolean,default:!1},isCps:{type:Boolean,default:!1},pxToRem:{type:Number,default:0}},computed:{infoPaddingTop:function(){return this.residueWidth.length<2?0:3*(this.residueWidth.length-1)},edgeColor:function(){return this.isCps?{1:"#72b2fc",2:"#ffab45",3:"#ff5a6e"}:{1:"#8c7fee",2:"#ffb229",3:"#ff5a6e"}},colorType:function(){return this.isCps?{1:"linear-gradient(90deg,#73b3fc,#499eff)",2:"linear-gradient(90deg,#ffab45,#ffa142)",3:"linear-gradient(90deg,#ff8695,#ff5a6e)"}:{1:"linear-gradient(90deg,#a59bff,#8b7fed)",2:"linear-gradient(90deg,#ffc85a,#ffae1f)",3:"linear-gradient(90deg,#ff8695,#ff5a6e)"}},matchUnit:function(){return this.pxToRem>0?"rem":"px"},matchRatio:function(){return this.pxToRem>0?10*this.pxToRem:10}},methods:{calTextWidth:function(t){var e=new RegExp(/[^0-9]/gi),i=t.text.replace(e,"").length,n=t.text.length-i;return i*this.singleNumWidth+n*this.singleTextWidth+this.textExtraWidth},calAccountWidth:function(t){for(var e=this.calTextWidth(t);;){if(!(e>this.residueWidth[t.row])){this.residueWidth[t.row]=(this.residueWidth[t.row]||this.maxWidth)-e;break}t.row+=1}return t.bindStartPoint&&t.bindEndPoint?e>this.minWidth?e:this.minWidth:"1"===t.caseType&&e>this.minWidth?e:this.minWidth},calAccountLeft:function(t,e){this.tempData[t.bindPoint]&&"1"===this.tempData[t.bindPoint].isEndPoint?t.right=-1:this.tempData[e.split("_")[1]]&&"1"===this.tempData[e.split("_")[1]].isEndPoint&&(t.right=0),r(this.repeatPoint[t.bindPoint])?(this.repeatPoint[t.bindPoint]={},t.left=this.accountOffset+(this.tempData[t.bindStartPoint].left||this.prevWidth[this.prevWidth.length-1]),this.repeatPoint[t.bindPoint].left=t.left,this.repeatPoint[t.bindPoint].count=1):(t.left=this.repeatPoint[t.bindPoint].left,this.repeatPoint[t.bindPoint].count++)},calEdgeLeft:function(t){this.tempEdge[t]&&r(this.tempEdge[t].left)&&(this.tempEdge[t].left=this.edgeOffset+this.prevWidth[this.prevWidth.length-1])},calEdgeWidth:function(t,e,i){this.tempEdge[e]&&(this.tempEdge[e].width||("1"===this.tempData[e.split("_")[1]].isEndPoint?this.tempEdge[e].right=0:this.tempEdge[e].width=i+("1"===t?this.errorOffset:1.5*this.errorOffset)))},calStartPointLeft:function(t){if(this.tempData[t.bindPoint]&&"1"===this.tempData[t.bindPoint].isEndPoint)return void(this.tempData[t.bindPoint].right=0);r(this.tempData[t.bindStartPoint].left)&&(this.tempData[t.bindStartPoint].left=this.prevWidth[this.prevWidth.length-1])},calEndPointLeft:function(t,e){r(this.tempData[t.bindEndPoint])||r(this.tempData[t.bindEndPoint].left)&&(this.tempData[t.bindEndPoint]&&"1"===this.tempData[t.bindEndPoint].isEndPoint?this.tempData[t.bindEndPoint].right=0:this.tempData[t.bindEndPoint].left=e+this.prevWidth[this.prevWidth.length-1]+("1"===t.caseType?this.errorOffset:1.5*this.errorOffset))},calPrevWidth:function(t,e,i){r(this.tempEdge[t])?"1"!==i.caseType||this.prevWidth[this.prevWidth.length-1]?this.hasName?this.prevWidth.push(this.prevWidth[this.prevWidth.length-1]):this.prevWidth.push(this.prevWidth[this.prevWidth.length-1]+this.minWidth):this.prevWidth.push(e):this.repeatPoint[i.bindPoint].count?this.prevWidth.push(this.tempEdge[t].width+this.minWidth):this.prevWidth.push(this.prevWidth[this.prevWidth.length-1]+this.minWidth)},calAccountBindEndPoint:function(t){var e=this.calTextWidth(t);this.tempData[t.bindPoint]&&"1"===this.tempData[t.bindPoint].isEndPoint&&(t.left=this.maxWidth-this.edgeOffset,t.textLeft=-e)},sortAccountDataByCaseType:function(){var t=[[],[],[]];this.tempAccount.forEach(function(e){return t[Number(e.caseType)-1].push(e)}),t.forEach(function(t){return t.sort(function(t,e){return t.order&&e.order?~~e.order-~~t.order:(e.bindEndPoint||"").length-(t.bindEndPoint||"").length})}),this.tempAccount=t.flat()},reducePrevWidth:function(t){!1===this.tempData[t.bindStartPoint].display&&(this.prevWidth[this.prevWidth.length-1]=this.prevWidth[this.prevWidth.length-1]-this.minWidth+.8)},accountHasName:function(t){t.name&&(this.hasName=!0)},calPosition:function(){var t=this;this.prevWidth=[0],this.residueWidth=[],this.repeatPoint={},this.tempData=n(this.caseInfo.caseData),this.tempEdge=n(this.caseInfo.caseEdge),this.tempAccount=n(this.caseInfo.caseAccount),this.sortAccountDataByCaseType(),this.tempAccount.forEach(function(e){var i=e.bindStartPoint+"_"+e.bindEndPoint;t.accountHasName(e);var n=t.calAccountWidth(e);t.reducePrevWidth(e),t.calAccountLeft(e,i),t.calEdgeWidth(e.caseType,i,n),t.calEdgeLeft(i),t.calStartPointLeft(e),t.calEndPointLeft(e,n),t.calAccountBindEndPoint(e),t.calPrevWidth(i,n,e)}),this.caseData=this.tempData,this.caseEdge=this.tempEdge,this.caseAccount=this.tempAccount}},beforeMount:function(){this.calPosition()},watch:{caseInfo:{handler:function(){this.calPosition()},deep:!0}}}},1497:function(t,e,i){"use strict";var n=i(118);e.a={name:"ActGoldCostTable",data:function(){return{scroller:null}},props:{visible:{type:Boolean,default:!1},tables:{type:Object,default:function(){return{}}},theme:{type:Object,default:function(){return{}}}},computed:{title:function(){return this.tables.title||"现金价值表"},styleOption:function(){return this.theme&&this.theme.brandColor?{backgroundColor:this.theme.brandColor}:{}}},methods:{showCol:function(t){var e=this.tables.display||[];return void 0!==e[t]&&1==~~e[t]},cancel:function(){this.$emit("cancelCost")},preventMove:function(t){t._prevent=!0}},watch:{visible:function(t){var e=this;if(t){var i=document.querySelector(".cost-scroll");i&&this.$nextTick(function(){e.scroller?e.scroller.refresh():e.scroller=new n.default(i,{})})}}}}},15:function(t,e,i){var n=i(50),r=i(33);t.exports=Object.keys||function(t){return n(t,r)}},150:function(t,e,i){"use strict";var n=i(13),r=i(68),o=i(112);n(n.S,"Promise",{try:function(t){var e=r.f(this),i=o(t);return(i.e?e.reject:e.resolve)(i.v),e.promise}})},154:function(t,e,i){"use strict";function n(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function r(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 r=0;r<i.length;r++){var o=i[r];for(var s in o)t[s]=o[s]}return t}function o(t){return void 0===t||null===t}function s(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 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 m(t){function e(){s=document.createEvent("Event"),s.initEvent(i,a,c),r(s,o)}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 o={};n&&(o.screenX=n.screenX||0,o.screenY=n.screenY||0,o.clientX=n.clientX||0,o.clientY=n.clientY||0);var s=void 0,a=!0,c=!0;if("undefined"!=typeof MouseEvent)try{s=new MouseEvent(i,r({bubbles:a,cancelable:c},o))}catch(t){e()}else e();s.forwardedTouchEvent=!0,s._constructed=!0,t.target.dispatchEvent(s)}function v(t){m(t,"dblclick")}function g(t,e){e.firstChild?y(t,e.firstChild):e.appendChild(t)}function y(t,e){e.parentNode.insertBefore(t,e)}function b(t,e){t.removeChild(e)}function x(t,e,i,n,r,o,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,m=p?4:15,v=t+c/l*(a<0?-1:1);return p&&h&&(v=Math.round(v/h)*h),v<n?(v=o?Math.max(n-o/4,n-o/m*c):n,d=u):v>r&&(v=o?Math.min(r+o/4,r+o/m*c):r,d=u),{destination:Math.round(v),duration:d}}function w(){}function _(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 P(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,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 M(t,e){this.wrapper="string"==typeof t?document.querySelector(t):t,this.wrapper||_("Can not resolve the wrapper DOM."),this.scroller=this.wrapper.children[0],this.scroller||_("The wrapper need at least one child element to be scroller."),this.scrollerStyle=this.scroller.style,this._init(t,e)}var k=function(){function t(t,e){var i=[],n=!0,r=!1,o=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){r=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}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")}}(),C=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)},A="undefined"!=typeof window,D=A&&navigator.userAgent.toLowerCase(),I=D&&/wechatdevtools/.test(D),Y=D&&D.indexOf("android")>0,X=A&&document.createElement("div").style,j=function(){if(!A)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var e in t)if(void 0!==X[t[e]])return e;return!1}(),W=a("transform"),L=A&&a("perspective")in X,R=A&&("ontouchstart"in window||I),N=!1!==W,F=A&&a("transition")in X,H={transform:W,transitionTimingFunction:a("transitionTimingFunction"),transitionDuration:a("transitionDuration"),transitionDelay:a("transitionDelay"),transformOrigin:a("transformOrigin"),transitionEnd:a("transitionEnd")},z=1,V={touchstart:z,touchmove:z,touchend:z,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:R,disableTouch:!R,observeDOM:!0,autoBlur:!0,wheel:!1,snap:!1,scrollbar:!1,pullDownRefresh:!1,pullUpLoad:!1,mouseWheel:!1,stopPropagation:!1,zoom:!1,infinity:!1,dblclick:!1},$={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}}},B=function(){return A?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||100/60)/2)}:w}(),G=function(){return A?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:w}(),q=1,J=-1,Z=1,K=-1,Q=1,tt=3;P.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)}},P.prototype.refresh=function(){this._shouldShow()&&(this.transitionTime(),this._calculate(),this.updatePosition())},P.prototype.fade=function(t,e){var i=this;if(!e||this.visible){var n=t?250:500;t=t?"1":"0",this.wrapperStyle[H.transitionDuration]=n+"ms",clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout(function(){i.wrapperStyle.opacity=t,i.visible=+t},0)}},P.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 n=Math.round(this.sizeRatioX*this.scroller.x);if(n<0){this.transitionTime(500);var r=Math.max(this.indicatorWidth+3*n,8);this.indicatorStyle.width=r+"px",n=0}else if(n>this.maxPosX){this.transitionTime(500);var o=Math.max(this.indicatorWidth-3*(n-this.maxPosX),8);this.indicatorStyle.width=o+"px",n=this.maxPosX+this.indicatorWidth-o}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=n,this.scroller.options.useTransform?this.indicatorStyle[H.transform]="translateX("+n+"px)"+this.scroller.translateZ:this.indicatorStyle.left=n+"px"}},P.prototype.transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorStyle[H.transitionDuration]=t+"ms"},P.prototype.transitionTimingFunction=function(t){this.indicatorStyle[H.transitionTimingFunction]=t},P.prototype.destroy=function(){this._removeDOMEvents(),this.wrapper.parentNode.removeChild(this.wrapper)},P.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")},P.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 r=this.x+i,o=this.y+n;this._pos(r,o)},P.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,r=void 0===n?$.bounce:n,o=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),s=i||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-o.x),1e3),Math.min(Math.abs(this.scroller.y-o.y),1e3)),300);this.scroller.x===o.x&&this.scroller.y===o.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=o,this.scroller.scrollTo(o.x,o.y,s,r))}this.moved&&this.scroller.trigger("scrollEnd",{x:this.scroller.x,y:this.scroller.y})}},P.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})},P.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)},P.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}},P.prototype._addDOMEvents=function(){var t=c;this._handleDOMEvents(t)},P.prototype._removeDOMEvents=function(){var t=l;this._handleDOMEvents(t),this._handleMoveEvents(t)},P.prototype._handleMoveEvents=function(t){this.scroller.options.disableTouch||t(window,"touchmove",this),this.scroller.options.disableMouse||t(window,"mousemove",this)},P.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,r=i.index;e<0?(n-=30,r+=10):(n-=10,r+=30),this.fill(n,r),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 r=this.items[n].node,o=this.items[n].data;r&&!E(r)||o||(t||(t=n),r&&this.scrollerEl.removeChild(r))}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,r=this.items[i].data;if(n){if(!E(n)||!r)continue;n.style.zIndex=1,e[i]=[n,this.items[i].top-this.anchorScrollTop],this.items[i].node=null}var o=r?this.options.render(r