vue-mobile-table
Version:
移动端表格、列表组件,支持虚拟滚动
21 lines (19 loc) • 110 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["vue-mobile-table"]=e():t["vue-mobile-table"]=e()})("undefined"!==typeof self?self:this,(function(){return function(){var t={9662:function(t,e,o){var n=o(614),i=o(6330),r=TypeError;t.exports=function(t){if(n(t))return t;throw r(i(t)+" is not a function")}},6077:function(t,e,o){var n=o(614),i=String,r=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw r("Can't set "+i(t)+" as a prototype")}},9670:function(t,e,o){var n=o(111),i=String,r=TypeError;t.exports=function(t){if(n(t))return t;throw r(i(t)+" is not an object")}},1318:function(t,e,o){var n=o(5656),i=o(1400),r=o(6244),s=function(t){return function(e,o,s){var a,l=n(e),c=r(l),h=i(s,c);if(t&&o!=o){while(c>h)if(a=l[h++],a!=a)return!0}else for(;c>h;h++)if((t||h in l)&&l[h]===o)return t||h||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},4326:function(t,e,o){var n=o(1702),i=n({}.toString),r=n("".slice);t.exports=function(t){return r(i(t),8,-1)}},648:function(t,e,o){var n=o(1694),i=o(614),r=o(4326),s=o(5112),a=s("toStringTag"),l=Object,c="Arguments"==r(function(){return arguments}()),h=function(t,e){try{return t[e]}catch(o){}};t.exports=n?r:function(t){var e,o,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(o=h(e=l(t),a))?o:c?r(e):"Object"==(n=r(e))&&i(e.callee)?"Arguments":n}},9920:function(t,e,o){var n=o(2597),i=o(3887),r=o(1236),s=o(3070);t.exports=function(t,e,o){for(var a=i(e),l=s.f,c=r.f,h=0;h<a.length;h++){var u=a[h];n(t,u)||o&&n(o,u)||l(t,u,c(e,u))}}},8880:function(t,e,o){var n=o(9781),i=o(3070),r=o(9114);t.exports=n?function(t,e,o){return i.f(t,e,r(1,o))}:function(t,e,o){return t[e]=o,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},8052:function(t,e,o){var n=o(614),i=o(3070),r=o(6339),s=o(3072);t.exports=function(t,e,o,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:e;if(n(o)&&r(o,c,a),a.global)l?t[e]=o:s(e,o);else{try{a.unsafe?t[e]&&(l=!0):delete t[e]}catch(h){}l?t[e]=o:i.f(t,e,{value:o,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},3072:function(t,e,o){var n=o(7854),i=Object.defineProperty;t.exports=function(t,e){try{i(n,t,{value:e,configurable:!0,writable:!0})}catch(o){n[t]=e}return e}},9781:function(t,e,o){var n=o(7293);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,e,o){var n=o(7854),i=o(111),r=n.document,s=i(r)&&i(r.createElement);t.exports=function(t){return s?r.createElement(t):{}}},8113:function(t,e,o){var n=o(5005);t.exports=n("navigator","userAgent")||""},7392:function(t,e,o){var n,i,r=o(7854),s=o(8113),a=r.process,l=r.Deno,c=a&&a.versions||l&&l.version,h=c&&c.v8;h&&(n=h.split("."),i=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(i=+n[1]))),t.exports=i},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1060:function(t,e,o){var n=o(1702),i=Error,r=n("".replace),s=function(t){return String(i(t).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,l=a.test(s);t.exports=function(t,e){if(l&&"string"==typeof t&&!i.prepareStackTrace)while(e--)t=r(t,a,"");return t}},2914:function(t,e,o){var n=o(7293),i=o(9114);t.exports=!n((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},2109:function(t,e,o){var n=o(7854),i=o(1236).f,r=o(8880),s=o(8052),a=o(3072),l=o(9920),c=o(4705);t.exports=function(t,e){var o,h,u,p,f,d,v=t.target,y=t.global,m=t.stat;if(h=y?n:m?n[v]||a(v,{}):(n[v]||{}).prototype,h)for(u in e){if(f=e[u],t.dontCallGetSet?(d=i(h,u),p=d&&d.value):p=h[u],o=c(y?u:v+(m?".":"#")+u,t.forced),!o&&void 0!==p){if(typeof f==typeof p)continue;l(f,p)}(t.sham||p&&p.sham)&&r(f,"sham",!0),s(h,u,f,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},2104:function(t,e,o){var n=o(4374),i=Function.prototype,r=i.apply,s=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(r):function(){return s.apply(r,arguments)})},4374:function(t,e,o){var n=o(7293);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,o){var n=o(4374),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},6530:function(t,e,o){var n=o(9781),i=o(2597),r=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=i(r,"name"),l=a&&"something"===function(){}.name,c=a&&(!n||n&&s(r,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},1702:function(t,e,o){var n=o(4374),i=Function.prototype,r=i.bind,s=i.call,a=n&&r.bind(s,s);t.exports=n?function(t){return t&&a(t)}:function(t){return t&&function(){return s.apply(t,arguments)}}},5005:function(t,e,o){var n=o(7854),i=o(614),r=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?r(n[t]):n[t]&&n[t][e]}},8173:function(t,e,o){var n=o(9662),i=o(8554);t.exports=function(t,e){var o=t[e];return i(o)?void 0:n(o)}},7854:function(t,e,o){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof o.g&&o.g)||function(){return this}()||Function("return this")()},2597:function(t,e,o){var n=o(1702),i=o(7908),r=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return r(i(t),e)}},3501:function(t){t.exports={}},4664:function(t,e,o){var n=o(9781),i=o(7293),r=o(317);t.exports=!n&&!i((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,o){var n=o(1702),i=o(7293),r=o(4326),s=Object,a=n("".split);t.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==r(t)?a(t,""):s(t)}:s},9587:function(t,e,o){var n=o(614),i=o(111),r=o(7674);t.exports=function(t,e,o){var s,a;return r&&n(s=e.constructor)&&s!==o&&i(a=s.prototype)&&a!==o.prototype&&r(t,a),t}},2788:function(t,e,o){var n=o(1702),i=o(614),r=o(5465),s=n(Function.toString);i(r.inspectSource)||(r.inspectSource=function(t){return s(t)}),t.exports=r.inspectSource},8340:function(t,e,o){var n=o(111),i=o(8880);t.exports=function(t,e){n(e)&&"cause"in e&&i(t,"cause",e.cause)}},9909:function(t,e,o){var n,i,r,s=o(4811),a=o(7854),l=o(1702),c=o(111),h=o(8880),u=o(2597),p=o(5465),f=o(6200),d=o(3501),v="Object already initialized",y=a.TypeError,m=a.WeakMap,g=function(t){return r(t)?i(t):n(t,{})},b=function(t){return function(e){var o;if(!c(e)||(o=i(e)).type!==t)throw y("Incompatible receiver, "+t+" required");return o}};if(s||p.state){var w=p.state||(p.state=new m),k=l(w.get),T=l(w.has),S=l(w.set);n=function(t,e){if(T(w,t))throw y(v);return e.facade=t,S(w,t,e),e},i=function(t){return k(w,t)||{}},r=function(t){return T(w,t)}}else{var x=f("state");d[x]=!0,n=function(t,e){if(u(t,x))throw y(v);return e.facade=t,h(t,x,e),e},i=function(t){return u(t,x)?t[x]:{}},r=function(t){return u(t,x)}}t.exports={set:n,get:i,has:r,enforce:g,getterFor:b}},614:function(t){t.exports=function(t){return"function"==typeof t}},4705:function(t,e,o){var n=o(7293),i=o(614),r=/#|\.prototype\./,s=function(t,e){var o=l[a(t)];return o==h||o!=c&&(i(e)?n(e):!!e)},a=s.normalize=function(t){return String(t).replace(r,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",h=s.POLYFILL="P";t.exports=s},8554:function(t){t.exports=function(t){return null===t||void 0===t}},111:function(t,e,o){var n=o(614),i="object"==typeof document&&document.all,r="undefined"==typeof i&&void 0!==i;t.exports=r?function(t){return"object"==typeof t?null!==t:n(t)||t===i}:function(t){return"object"==typeof t?null!==t:n(t)}},1913:function(t){t.exports=!1},2190:function(t,e,o){var n=o(5005),i=o(614),r=o(7976),s=o(3307),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return i(e)&&r(e.prototype,a(t))}},6244:function(t,e,o){var n=o(7466);t.exports=function(t){return n(t.length)}},6339:function(t,e,o){var n=o(7293),i=o(614),r=o(2597),s=o(9781),a=o(6530).CONFIGURABLE,l=o(2788),c=o(9909),h=c.enforce,u=c.get,p=Object.defineProperty,f=s&&!n((function(){return 8!==p((function(){}),"length",{value:8}).length})),d=String(String).split("String"),v=t.exports=function(t,e,o){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),o&&o.getter&&(e="get "+e),o&&o.setter&&(e="set "+e),(!r(t,"name")||a&&t.name!==e)&&(s?p(t,"name",{value:e,configurable:!0}):t.name=e),f&&o&&r(o,"arity")&&t.length!==o.arity&&p(t,"length",{value:o.arity});try{o&&r(o,"constructor")&&o.constructor?s&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var n=h(t);return r(n,"source")||(n.source=d.join("string"==typeof e?e:"")),t};Function.prototype.toString=v((function(){return i(this)&&u(this).source||l(this)}),"toString")},4758:function(t){var e=Math.ceil,o=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?o:e)(n)}},6277:function(t,e,o){var n=o(1340);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},3070:function(t,e,o){var n=o(9781),i=o(4664),r=o(3353),s=o(9670),a=o(4948),l=TypeError,c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,u="enumerable",p="configurable",f="writable";e.f=n?r?function(t,e,o){if(s(t),e=a(e),s(o),"function"===typeof t&&"prototype"===e&&"value"in o&&f in o&&!o[f]){var n=h(t,e);n&&n[f]&&(t[e]=o.value,o={configurable:p in o?o[p]:n[p],enumerable:u in o?o[u]:n[u],writable:!1})}return c(t,e,o)}:c:function(t,e,o){if(s(t),e=a(e),s(o),i)try{return c(t,e,o)}catch(n){}if("get"in o||"set"in o)throw l("Accessors not supported");return"value"in o&&(t[e]=o.value),t}},1236:function(t,e,o){var n=o(9781),i=o(6916),r=o(5296),s=o(9114),a=o(5656),l=o(4948),c=o(2597),h=o(4664),u=Object.getOwnPropertyDescriptor;e.f=n?u:function(t,e){if(t=a(t),e=l(e),h)try{return u(t,e)}catch(o){}if(c(t,e))return s(!i(r.f,t,e),t[e])}},8006:function(t,e,o){var n=o(6324),i=o(748),r=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},7976:function(t,e,o){var n=o(1702);t.exports=n({}.isPrototypeOf)},6324:function(t,e,o){var n=o(1702),i=o(2597),r=o(5656),s=o(1318).indexOf,a=o(3501),l=n([].push);t.exports=function(t,e){var o,n=r(t),c=0,h=[];for(o in n)!i(a,o)&&i(n,o)&&l(h,o);while(e.length>c)i(n,o=e[c++])&&(~s(h,o)||l(h,o));return h}},5296:function(t,e){"use strict";var o={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!o.call({1:2},1);e.f=i?function(t){var e=n(this,t);return!!e&&e.enumerable}:o},7674:function(t,e,o){var n=o(1702),i=o(9670),r=o(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,o={};try{t=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(o,[]),e=o instanceof Array}catch(s){}return function(o,n){return i(o),r(n),e?t(o,n):o.__proto__=n,o}}():void 0)},2140:function(t,e,o){var n=o(6916),i=o(614),r=o(111),s=TypeError;t.exports=function(t,e){var o,a;if("string"===e&&i(o=t.toString)&&!r(a=n(o,t)))return a;if(i(o=t.valueOf)&&!r(a=n(o,t)))return a;if("string"!==e&&i(o=t.toString)&&!r(a=n(o,t)))return a;throw s("Can't convert object to primitive value")}},3887:function(t,e,o){var n=o(5005),i=o(1702),r=o(8006),s=o(5181),a=o(9670),l=i([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=r.f(a(t)),o=s.f;return o?l(e,o(t)):e}},2626:function(t,e,o){var n=o(3070).f;t.exports=function(t,e,o){o in t||n(t,o,{configurable:!0,get:function(){return e[o]},set:function(t){e[o]=t}})}},4488:function(t,e,o){var n=o(8554),i=TypeError;t.exports=function(t){if(n(t))throw i("Can't call method on "+t);return t}},6200:function(t,e,o){var n=o(2309),i=o(9711),r=n("keys");t.exports=function(t){return r[t]||(r[t]=i(t))}},5465:function(t,e,o){var n=o(7854),i=o(3072),r="__core-js_shared__",s=n[r]||i(r,{});t.exports=s},2309:function(t,e,o){var n=o(1913),i=o(5465);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.25.1",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.1/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(t,e,o){var n=o(7392),i=o(7293);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},1400:function(t,e,o){var n=o(9303),i=Math.max,r=Math.min;t.exports=function(t,e){var o=n(t);return o<0?i(o+e,0):r(o,e)}},5656:function(t,e,o){var n=o(8361),i=o(4488);t.exports=function(t){return n(i(t))}},9303:function(t,e,o){var n=o(4758);t.exports=function(t){var e=+t;return e!==e||0===e?0:n(e)}},7466:function(t,e,o){var n=o(9303),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},7908:function(t,e,o){var n=o(4488),i=Object;t.exports=function(t){return i(n(t))}},7593:function(t,e,o){var n=o(6916),i=o(111),r=o(2190),s=o(8173),a=o(2140),l=o(5112),c=TypeError,h=l("toPrimitive");t.exports=function(t,e){if(!i(t)||r(t))return t;var o,l=s(t,h);if(l){if(void 0===e&&(e="default"),o=n(l,t,e),!i(o)||r(o))return o;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},4948:function(t,e,o){var n=o(7593),i=o(2190);t.exports=function(t){var e=n(t,"string");return i(e)?e:e+""}},1694:function(t,e,o){var n=o(5112),i=n("toStringTag"),r={};r[i]="z",t.exports="[object z]"===String(r)},1340:function(t,e,o){var n=o(648),i=String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},6330:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(o){return"Object"}}},9711:function(t,e,o){var n=o(1702),i=0,r=Math.random(),s=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+r,36)}},3307:function(t,e,o){var n=o(6293);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,o){var n=o(9781),i=o(7293);t.exports=n&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(t,e,o){var n=o(7854),i=o(614),r=n.WeakMap;t.exports=i(r)&&/native code/.test(String(r))},5112:function(t,e,o){var n=o(7854),i=o(2309),r=o(2597),s=o(9711),a=o(6293),l=o(3307),c=i("wks"),h=n.Symbol,u=h&&h["for"],p=l?h:h&&h.withoutSetter||s;t.exports=function(t){if(!r(c,t)||!a&&"string"!=typeof c[t]){var e="Symbol."+t;a&&r(h,t)?c[t]=h[t]:c[t]=l&&u?u(e):p(e)}return c[t]}},9191:function(t,e,o){"use strict";var n=o(5005),i=o(2597),r=o(8880),s=o(7976),a=o(7674),l=o(9920),c=o(2626),h=o(9587),u=o(6277),p=o(8340),f=o(1060),d=o(2914),v=o(9781),y=o(1913);t.exports=function(t,e,o,m){var g="stackTraceLimit",b=m?2:1,w=t.split("."),k=w[w.length-1],T=n.apply(null,w);if(T){var S=T.prototype;if(!y&&i(S,"cause")&&delete S.cause,!o)return T;var x=n("Error"),P=e((function(t,e){var o=u(m?e:t,void 0),n=m?new T(t):new T;return void 0!==o&&r(n,"message",o),d&&r(n,"stack",f(n.stack,2)),this&&s(S,this)&&h(n,this,P),arguments.length>b&&p(n,arguments[b]),n}));if(P.prototype=S,"Error"!==k?a?a(P,x):l(P,x,{name:!0}):v&&g in T&&(c(P,T,g),c(P,T,"prepareStackTrace")),l(P,T),!y)try{S.name!==k&&r(S,"name",k),S.constructor=P}catch(C){}return P}}},1703:function(t,e,o){var n=o(2109),i=o(7854),r=o(2104),s=o(9191),a="WebAssembly",l=i[a],c=7!==Error("e",{cause:7}).cause,h=function(t,e){var o={};o[t]=s(t,e,c),n({global:!0,constructor:!0,arity:1,forced:c},o)},u=function(t,e){if(l&&l[t]){var o={};o[t]=s(a+"."+t,e,c),n({target:a,stat:!0,constructor:!0,arity:1,forced:c},o)}};h("Error",(function(t){return function(e){return r(t,this,arguments)}})),h("EvalError",(function(t){return function(e){return r(t,this,arguments)}})),h("RangeError",(function(t){return function(e){return r(t,this,arguments)}})),h("ReferenceError",(function(t){return function(e){return r(t,this,arguments)}})),h("SyntaxError",(function(t){return function(e){return r(t,this,arguments)}})),h("TypeError",(function(t){return function(e){return r(t,this,arguments)}})),h("URIError",(function(t){return function(e){return r(t,this,arguments)}})),u("CompileError",(function(t){return function(e){return r(t,this,arguments)}})),u("LinkError",(function(t){return function(e){return r(t,this,arguments)}})),u("RuntimeError",(function(t){return function(e){return r(t,this,arguments)}}))},4600:function(t,e,o){"use strict";o.r(e);var n=o(8081),i=o.n(n),r=o(3645),s=o.n(r),a=s()(i());a.push([t.id,".mobile-table-sort-icon[data-v-55f6af62]{padding:0 4px}.mobile-table-sort-icon .top-icon[data-v-55f6af62]{width:0;height:0}.mobile-table-sort-icon .bottom-icon[data-v-55f6af62]{width:0;height:0;margin-top:1px}.mobile-table-sort-icon .active[data-v-55f6af62]{color:#409eff}",""]),e["default"]=a},5074:function(t,e,o){"use strict";o.r(e);var n=o(8081),i=o.n(n),r=o(3645),s=o.n(r),a=s()(i());a.push([t.id,".vue-mobile-table{height:100%;width:100%;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.vue-mobile-table .cell-border{border-bottom:1px solid #e8eaec}.vue-mobile-table div{box-sizing:border-box!important}.vue-mobile-table .vue-mobile-table-header{background-color:#f4f4f4}.vue-mobile-table .vue-mobile-table-header,.vue-mobile-table .vue-mobile-table-header .header-active-column,.vue-mobile-table .vue-mobile-table-header .vue-mobile-table-header-item{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.vue-mobile-table .vue-mobile-table-header .header-active-column{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;width:100%}.vue-mobile-table .vue-mobile-table-header .vue-mobile-table-header-wrap{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;min-width:100%;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;padding:5px 0}.vue-mobile-table .table-content-wrap{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden}.vue-mobile-table .table-content-wrap .vue-mobile-table-content{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.vue-mobile-table .table-content-wrap .vue-mobile-table-content .mobile-table-cell{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.vue-mobile-table .table-content-wrap .vue-mobile-table-content .active-column-content{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:100%;overflow:hidden}.vue-mobile-table .table-content-wrap .vue-mobile-table-content .active-column-content .active-column-content-wrap,.vue-mobile-table .table-content-wrap .vue-mobile-table-content .vue-mobile-content-row{min-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.vue-mobile-table .table-content-wrap .vue-mobile-table-content .vue-mobile-content-row .vue-mobile-content-row-wrap{min-width:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.vue-mobile-table .pulldown-wrapper{position:absolute;width:100%;padding:20px;z-index:-1;box-sizing:border-box;-webkit-transform:translateY(-100%) translateZ(0);transform:translateY(-100%) translateZ(0);text-align:center!important;color:#999}.vue-mobile-table .pulldown-scroller{position:relative;height:100%}.vue-mobile-table .pullup-tips{padding:20px;text-align:center;color:#999}",""]),e["default"]=a},3645:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var o="",n="undefined"!==typeof e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o})).join("")},e.i=function(t,o,n,i,r){"string"===typeof t&&(t=[[null,t,void 0]]);var s={};if(n)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var c=0;c<t.length;c++){var h=[].concat(t[c]);n&&s[h[0]]||("undefined"!==typeof r&&("undefined"===typeof h[5]||(h[1]="@layer".concat(h[5].length>0?" ".concat(h[5]):""," {").concat(h[1],"}")),h[5]=r),o&&(h[2]?(h[1]="@media ".concat(h[2]," {").concat(h[1],"}"),h[2]=o):h[2]=o),i&&(h[4]?(h[1]="@supports (".concat(h[4],") {").concat(h[1],"}"),h[4]=i):h[4]="".concat(i)),e.push(h))}},e}},8081:function(t){"use strict";t.exports=function(t){return t[1]}},7864:function(t,e,o){var n=o(4600);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var i=o(3650).Z;i("3ecc0275",n,!0,{sourceMap:!1,shadowMode:!1})},8690:function(t,e,o){var n=o(5074);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var i=o(3650).Z;i("a1f0e5cc",n,!0,{sourceMap:!1,shadowMode:!1})},3650:function(t,e,o){"use strict";function n(t,e){for(var o=[],n={},i=0;i<e.length;i++){var r=e[i],s=r[0],a=r[1],l=r[2],c=r[3],h={id:t+":"+i,css:a,media:l,sourceMap:c};n[s]?n[s].parts.push(h):o.push(n[s]={id:s,parts:[h]})}return o}o.d(e,{Z:function(){return d}});var i="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var r={},s=i&&(document.head||document.getElementsByTagName("head")[0]),a=null,l=0,c=!1,h=function(){},u=null,p="data-vue-ssr-id",f="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function d(t,e,o,i){c=o,u=i||{};var s=n(t,e);return v(s),function(e){for(var o=[],i=0;i<s.length;i++){var a=s[i],l=r[a.id];l.refs--,o.push(l)}e?(s=n(t,e),v(s)):s=[];for(i=0;i<o.length;i++){l=o[i];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete r[l.id]}}}}function v(t){for(var e=0;e<t.length;e++){var o=t[e],n=r[o.id];if(n){n.refs++;for(var i=0;i<n.parts.length;i++)n.parts[i](o.parts[i]);for(;i<o.parts.length;i++)n.parts.push(m(o.parts[i]));n.parts.length>o.parts.length&&(n.parts.length=o.parts.length)}else{var s=[];for(i=0;i<o.parts.length;i++)s.push(m(o.parts[i]));r[o.id]={id:o.id,refs:1,parts:s}}}}function y(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function m(t){var e,o,n=document.querySelector("style["+p+'~="'+t.id+'"]');if(n){if(c)return h;n.parentNode.removeChild(n)}if(f){var i=l++;n=a||(a=y()),e=b.bind(null,n,i,!1),o=b.bind(null,n,i,!0)}else n=y(),e=w.bind(null,n),o=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else o()}}var g=function(){var t=[];return function(e,o){return t[e]=o,t.filter(Boolean).join("\n")}}();function b(t,e,o,n){var i=o?"":n.css;if(t.styleSheet)t.styleSheet.cssText=g(e,i);else{var r=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(r,s[e]):t.appendChild(r)}}function w(t,e){var o=e.css,n=e.media,i=e.sourceMap;if(n&&t.setAttribute("media",n),u.ssrId&&t.setAttribute(p,e.id),i&&(o+="\n/*# sourceURL="+i.sources[0]+" */",o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=o;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var r=e[n]={id:n,exports:{}};return t[n](r,r.exports,o),r.exports}!function(){o.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return o.d(e,{a:e}),e}}(),function(){o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){o.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){o.p=""}();var n={};return function(){"use strict";if(o.r(n),o.d(n,{default:function(){return _o}}),"undefined"!==typeof window){var t=window.document.currentScript,e=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(o.p=e[1])}var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"vue-mobile-table"},[e("div",{staticClass:"hidden-slot-content"},[t._t("default")],2),e("div",{staticClass:"vue-mobile-table-header",style:{padding:`0 ${t.transformPX(t.paddingConfig.LRPadding)}`}},[e("div",{staticClass:"header-fix-column"},[e("table-header",{attrs:{fixed:!0,store:t.store,sortType:t.sortType,sortField:t.sortField,defaultFixItemWidth:t.defaultFixItemWidth,borderConfig:t.borderConfig,paddingConfig:t.paddingConfig,sortableConfig:t.sortableConfig},on:{changeSort:t.changeSort}})],1),e("div",{ref:"active-header",staticClass:"header-active-column"},[e("table-header",{attrs:{store:t.store,sortType:t.sortType,sortField:t.sortField,defaultFixItemWidth:t.defaultFixItemWidth,sortableConfig:t.sortableConfig,borderConfig:t.borderConfig,paddingConfig:t.paddingConfig},on:{changeSort:t.changeSort}})],1)]),e("div",{ref:"table-content",staticClass:"table-content-wrap",style:{padding:`0 ${t.transformPX(t.paddingConfig.LRPadding)}`}},[e("div",{staticClass:"table-content"},[e("div",{style:{transform:t.getTransform}},[e("div",{directives:[{name:"show",rawName:"v-show",value:!t.disablePullDown,expression:"!disablePullDown"}],staticClass:"pulldown-wrapper"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.beforePullDown,expression:"beforePullDown"}]},[e("span",[t._v("下拉刷新")])]),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.beforePullDown,expression:"!beforePullDown"}]},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isPullingDown,expression:"isPullingDown"}]},[e("span",[t._v("加载中...")])]),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.isPullingDown,expression:"!isPullingDown"}]},[e("span",[t._v("刷新成功")])])])]),e("div",{staticClass:"vue-mobile-table-content"},[e("div",{ref:"fixed-col",staticClass:"fixed-column-content"},[e("div",{staticClass:"fixed-column-content-wrap"},t._l(t.visibleData,(function(o){return e("table-row",{key:o.code,attrs:{source:o,fixed:!0,store:t.store,defaultFixItemWidth:t.defaultFixItemWidth,"item-height":t.itemHeight}})})),1)]),e("div",{ref:"active-col",staticClass:"active-column-content"},[e("div",{staticClass:"active-column-content-wrap"},t._l(t.visibleData,(function(o){return e("table-row",{key:o.code,attrs:{source:o,defaultFixItemWidth:t.defaultFixItemWidth,store:t.store,"item-height":t.itemHeight}})})),1)])]),e("div",{staticClass:"pullup-tips"},[t.loadingComplete?e("div",[t._v("没有了")]):e("div",[t.isPullUpLoad?e("div",{staticClass:"after-trigger"},[e("span",{staticClass:"pullup-txt"},[t._v("加载中...")])]):e("div",{staticClass:"before-trigger"},[e("span",{staticClass:"pullup-txt"},[t._v("上拉加载更多")])])])])]),e("div",{staticClass:"infinite-list-phantom",style:{height:t.listHeight+"px"}})])])])},r=[];function s(){var t=0,e=window.screen,o=navigator.userAgent.toLowerCase();return void 0!==window.devicePixelRatio?t=window.devicePixelRatio:~o.indexOf("msie")?e.deviceXDPI&&e.logicalXDPI&&(t=e.deviceXDPI/e.logicalXDPI):void 0!==window.outerWidth&&void 0!==window.innerWidth&&(t=window.outerWidth/window.innerWidth),t&&(t=Math.round(100*t)),t}function a(){let t=window.screen.height*s()/100,e=window.screen.width*s()/100;return{HDPI:t,WDPI:e}}function l(t){if(!t)return"";t=Number(t);let e=a().WDPI/100;return t*s()/100/e+"vw"}function c(t,e){let o=l(t.width);return o||t.fixed&&(o=e),o}function h(t){return t.minWidth?l(t.minWidth):""}function u(t){return!c(t)||h(t)?"1 0 0":"none"}function p(t){switch(t){case"left":return"flex-start";case"right":return"flex-end";case"center":return"center";default:return"flex-start"}}var f={methods:{transformPX:l,getWidth:c,getMinWidth:h,getFlex:u,getAlign:p}},d={name:"table-row",mixins:[f],props:{index:{type:Number},itemHeight:{type:Number,default:70},source:{type:Object,default(){return{}}},store:{type:Object,default(){return{}}},fixed:{type:Boolean,default:!1},defaultFixItemWidth:"",borderConfig:{type:Object,default:()=>({innerBorder:!0,color:"#e8eaec",borderType:"solid"})}},computed:{data(){return this.store.states.data},columns(){return this.store.states.columns}},methods:{},render:function(t){return t("div",{class:{"vue-mobile-content-row":!0}},[t("div",{class:{"vue-mobile-content-row-wrap":!0}},this.columns.filter((t=>this.fixed?!this.itemHeight||t.fixed:!t.fixed)).map((e=>t("div",{class:{"mobile-table-cell":!0},style:{flex:this.getFlex(e),width:this.getWidth(e,this.defaultFixItemWidth),minWidth:this.getMinWidth(e),height:this.transformPX(this.itemHeight),justifyContent:this.getAlign(e.align),borderBottom:this.borderConfig.innerBorder?`1px ${this.borderConfig.borderType} ${this.borderConfig.color}`:"none"}},[e.renderCell.call(null,t,{row:this.source})]))))])}};class v{constructor(){this.states={data:null,columns:[]}}commit(t,...e){this.mutations[t].apply(this,[this.states].concat(e))}}v.prototype.mutations={setData(t,e){t.data=e},insertColumn(t,e){t.columns.push(e)}};
/*!
* better-scroll / core
* (c) 2016-2021 ustbhuangyi
* Released under the MIT License.
*/
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var y=function(t,e){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},y(t,e)};function m(t,e){function o(){this.constructor=t}y(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var g=function(){return g=Object.assign||function(t){for(var e,o=1,n=arguments.length;o<n;o++)for(var i in e=arguments[o],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},g.apply(this,arguments)};function b(){for(var t=0,e=0,o=arguments.length;e<o;e++)t+=arguments[e].length;var n=Array(t),i=0;for(e=0;e<o;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,i++)n[i]=r[s];return n}var w=[{sourceKey:"scroller.scrollBehaviorX.currentPos",key:"x"},{sourceKey:"scroller.scrollBehaviorY.currentPos",key:"y"},{sourceKey:"scroller.scrollBehaviorX.hasScroll",key:"hasHorizontalScroll"},{sourceKey:"scroller.scrollBehaviorY.hasScroll",key:"hasVerticalScroll"},{sourceKey:"scroller.scrollBehaviorX.contentSize",key:"scrollerWidth"},{sourceKey:"scroller.scrollBehaviorY.contentSize",key:"scrollerHeight"},{sourceKey:"scroller.scrollBehaviorX.maxScrollPos",key:"maxScrollX"},{sourceKey:"scroller.scrollBehaviorY.maxScrollPos",key:"maxScrollY"},{sourceKey:"scroller.scrollBehaviorX.minScrollPos",key:"minScrollX"},{sourceKey:"scroller.scrollBehaviorY.minScrollPos",key:"minScrollY"},{sourceKey:"scroller.scrollBehaviorX.movingDirection",key:"movingDirectionX"},{sourceKey:"scroller.scrollBehaviorY.movingDirection",key:"movingDirectionY"},{sourceKey:"scroller.scrollBehaviorX.direction",key:"directionX"},{sourceKey:"scroller.scrollBehaviorY.direction",key:"directionY"},{sourceKey:"scroller.actions.enabled",key:"enabled"},{sourceKey:"scroller.animater.pending",key:"pending"},{sourceKey:"scroller.animater.stop",key:"stop"},{sourceKey:"scroller.scrollTo",key:"scrollTo"},{sourceKey:"scroller.scrollBy",key:"scrollBy"},{sourceKey:"scroller.scrollToElement",key:"scrollToElement"},{sourceKey:"scroller.resetPosition",key:"resetPosition"}];function k(t){console.error("[BScroll warn]: "+t)}var T="undefined"!==typeof window,S=T&&navigator.userAgent.toLowerCase(),x=!(!S||!/wechatdevtools/.test(S)),P=S&&S.indexOf("android")>0,C=function(){if("string"===typeof S){var t=/os (\d\d?_\d(_\d)?)/,e=t.exec(S);if(!e)return!1;var o=e[1].split("_").map((function(t){return parseInt(t,10)}));return!!(13===o[0]&&o[1]>=4)}return!1}(),E=!1;if(T){var D="test-passive";try{var O={};Object.defineProperty(O,"passive",{get:function(){E=!0}}),window.addEventListener(D,(function(){}),O)}catch(Ao){}}function B(){return window.performance&&window.performance.now&&window.performance.timing?window.performance.now()+window.performance.timing.navigationStart:+new Date}var M=function(t,e){for(var o in e)t[o]=e[o];return t};function Y(t){return void 0===t||null===t}function X(t,e,o){return t<e?e:t>o?o:t}var F=T&&document.createElement("div").style,H=function(){if(!T)return!1;for(var t=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],e=0,o=t;e<o.length;e++){var n=o[e];if(void 0!==F[n.value])return n.key}return!1}();function L(t){return!1===H?t:"standard"===H?"transitionEnd"===t?"transitionend":t:H+t.charAt(0).toUpperCase()+t.substr(1)}function j(t){return"string"===typeof t?document.querySelector(t):t}function I(t,e,o,n){var i=E?{passive:!1,capture:!!n}:!!n;t.addEventListener(e,o,i)}function _(t,e,o,n){t.removeEventListener(e,o,{capture:!!n})}function A(t){var e=0,o=0;while(t)e-=t.offsetLeft,o-=t.offsetTop,t=t.offsetParent;return{left:e,top:o}}H&&"standard"!==H&&H.toLowerCase();var z=L("transform"),R=L("transition"),W=T&&L("perspective")in F,U=T&&("ontouchstart"in window||x),N=T&&R in F,$={transform:z,transition:R,transitionTimingFunction:L("transitionTimingFunction"),transitionDuration:L("transitionDuration"),transitionDelay:L("transitionDelay"),transformOrigin:L("transformOrigin"),transitionEnd:L("transitionEnd"),transitionProperty:L("transitionProperty")},K={touchstart:1,touchmove:1,touchend:1,touchcancel:1,mousedown:2,mousemove:2,mouseup:2};function q(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 V(t,e){for(var o in e)if(e[o].test(t[o]))return!0;return!1}var Z=V;function G(t,e){var o=document.createEvent("Event");o.initEvent(e,!0,!0),o.pageX=t.pageX,o.pageY=t.pageY,t.target.dispatchEvent(o)}function J(t,e){var o;void 0===e&&(e="click"),"mouseup"===t.type?o=t:"touchend"!==t.type&&"touchcancel"!==t.type||(o=t.changedTouches[0]);var n,i={};o&&(i.screenX=o.screenX||0,i.screenY=o.screenY||0,i.clientX=o.clientX||0,i.clientY=o.clientY||0);var r=!0,s=!0,a=t.ctrlKey,l=t.shiftKey,c=t.altKey,h=t.metaKey,u={ctrlKey:a,shiftKey:l,altKey:c,metaKey:h};if("undefined"!==typeof MouseEvent)try{n=new MouseEvent(e,M(g({bubbles:r,cancelable:s},u),i))}catch(t){p()}else p();function p(){n=document.createEvent("Event"),n.initEvent(e,r,s),M(n,i)}n.forwardedTouchEvent=!0,n._constructed=!0,t.target.dispatchEvent(n)}function Q(t){J(t,"dblclick")}var tt={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}}},et=1e3/60,ot=T&&window;function nt(){}var it=function(){return T?ot.requestAnimationFrame||ot.webkitRequestAnimationFrame||ot.mozRequestAnimationFrame||ot.oRequestAnimationFrame||function(t){return window.setTimeout(t,t.interval||et)}:nt}(),rt=function(){return T?ot.cancelAnimationFrame||ot.webkitCancelAnimationFrame||ot.mozCancelAnimationFrame||ot.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:nt}(),st=function(t){},at={enumerable:!0,configurable:!0,get:st,set:st},lt=function(t,e){for(var o=e.split("."),n=0;n<o.length-1;n++)if(t=t[o[n]],"object"!==typeof t||!t)return;var i=o.pop();return"function"===typeof t[i]?function(){return t[i].apply(t,arguments)}:t[i]},ct=function(t,e,o){for(var n,i=e.split("."),r=0;r<i.length-1;r++)n=i[r],t[n]||(t[n]={}),t=t[n];t[i.pop()]=o};function ht(t,e,o){at.get=function(){return lt(this,e)},at.set=function(t){ct(this,e,t)},Object.defineProperty(t,o,at)}var ut=function(){function t(t){this.events={},this.eventTypes={},this.registerType(t)}return t.prototype.on=function(t,e,o){return void 0===o&&(o=this),this.hasType(t),this.events[t]||(this.events[t]=[]),this.events[t].push([e,o]),this},t.prototype.once=function(t,e,o){var n=this;void 0===o&&(o=this),this.hasType(t);var i=function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];n.off(t,i);var a=e.apply(o,r);if(!0===a)return a};return i.fn=e,this.on(t,i),this},t.prototype.off=function(t,e){if(!t&&!e)return this.events={},this;if(t){if(this.hasType(t),!e)return this.events[t]=[],this;var o=this.events[t];if(!o)return this;var n=o.length;while(n--)(o[n][0]===e||o[n][0]&&o[n][0].fn===e)&&o.splice(n,1);return this}},t.prototype.trigger=function(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];this.hasType(t);var n=this.events[t];if(n)for(var i,r=n.length,s=b(n),a=0;a<r;a++){var l=s[a],c=l[0],h=l[1];if(c&&(i=c.apply(h,e),!0===i))return i}},t.prototype.registerType=function(t){var e=this;t.forEach((function(t){e.eventTypes[t]=t}))},t.prototype.destroy=function(){this.events={},this.eventTypes={}},t.prototype.hasType=function(t){var e=this.eventTypes,o=e[t]===t;o||k('EventEmitter has used unknown event type: "'+t+'", should be oneof ['+Object.keys(e).map((function(t){return JSON.stringify(t)}))+"]")},t}(),pt=function(){function t(t,e){this.wrapper=t,this.events=e,this.addDOMEvents()}return t.prototype.destroy=function(){this.removeDOMEvents(),this.events=[]},t.prototype.addDOMEvents=function(){this.handleDOMEvents(I)},t.prototype.removeDOMEvents=function(){this.handleDOMEvents(_)},t.prototype.handleDOMEvents=function(t){var e=this,o=this.wrapper;this.events.forEach((function(n){t(o,n.name,e,!!n.capture)}))},t.prototype.handleEvent=function(t){var e=t.type;this.events.some((function(o){return o.name===e&&(o.handler(t),!0)}))},t}(),ft=function(){function t(){}return t}(),dt=function(t){function e(){var e=t.call(this)||this;return e.startX=0,e.startY=0,e.scrollX=!1,e.scrollY=!0,e.freeScroll=!1,e.directionLockThreshold=0,e.eventPassthrough="",e.click=!1,e.dblclick=!1,e.tap="",e.bounce={top:!0,bottom:!0,left:!0,right:!0},e.bounceTime=800,e.momentum=!0,e.momentumLimitTime=300,e.momentumLimitDistance=15,e.swipeTime=2500,e.swipeBounceTime=500,e.deceleration=.0015,e.flickLimitTime=200,e.flickLimitDistance=100,e.resizePolling=60,e.probeType=0,e.stopPropagation=!1,e.preventDefault=!0,e.preventDefaultException={tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|AUDIO)$/},e.tagException={tagName:/^TEXTAREA$/},e.HWCompositing=!0,e.useTransition=!0,e.bindToWrapper=!1,e.bindToTarget=!1,e.disableMouse=U,e.disableTouch=!U,e.autoBlur=!0,e.autoEndDistance=5,e.outOfBoundaryDampingFactor=1/3,e.specifiedIndexAsContent=0,e.quadrant=1,e}return m(e,t),e.prototype.merge=function(t){if(!t)return this;for(var e in t)"bounce"!==e?this[e]=t[e]:this.bounce=this.resolveBounce(t[e]);return this},e.prototype.process=function(){return this.translateZ=this.HWCompositing&&W?" translateZ(1px)":"",this.useTransition=this.useTransition&&N,this.preventDefault=!this.eventPassthrough&&this.preventDefault,this.scrollX="horizontal"!==this.eventPassthrough&&this.scrollX,this.scrollY="vertical"!==this.eventPassthrough&&this.scrollY,this.freeScroll=this.freeScroll&&!this.eventPassthrough,this.scrollX=!!this.freeScroll||this.scrollX,this.scrollY=!!this.freeScroll||this.scrollY,this.directionLockThreshold=this.eventPassthrough?0:this.directionLockThreshold,this},e.prototype.resolveBounce=function(t){var e,o={top:!0,right:!0,bottom:!0,left:!0},n={top:!1,right:!1,bottom:!1,left:!1};return e="object"===typeof t?M(o,t):t?o:n,e},e}(ft),vt=function(){function t(t,e){this.wrapper=t,this.options=e,this.hooks=new ut(["beforeStart","start","move","end","click"]),this.handleDOMEvents()}return t.prototype.handleDOMEvents=function(){var t=this.options,e=t.bindToWrapper,o=t.disableMouse,n=t.disableTouch,i=t.click,r=this.wrapper,s=e?r:window,a=[],l=[],c=!n,h=!o;i&&a.push({name:"click",handler:this.click.bind(this),capture:!0}),c&&(a.push({name:"touchstart",handler:this.start.bind(this)}),l.push({name:"touchmove",handler:this.move.bind(this)},{name:"touchend",handler:this.end.bind(this)},{name:"touchcancel",handler:this.end.bind(this)})),h&&(a.push({name:"mousedown",handler:this.start.bind(this)}),l.push({name:"mousemove",handler:this.move.bind(this)},{name:"mouseup",handler:this.end.bind(this)})),this.wrapperEventRegister=new pt(r,a),this.targetEventRegister=new pt(s,l)},t.prototype.beforeHandler=function(t,e){var o=this.options,n=o.preventDefault,i=o.stopPropagation,r=o.preventDefaultException,s={start:function(){return n&&!V(t.target,r)},end:function(){return n&&!V(t.target,r)},move:function(){return n}};s[e]()&&t.preventDefault(),i&&t.stopPropagation()},t.prototype.setInitiated=function(t){void 0===t&&(t=0),this.initiated=t},t.prototype.start=function(t){var e=K[t.type];if(!this.initiated||this.initiated===e)if(this.setInitiated(e),Z(t.target,this.options.tagException))this.setInitiated();else if((2!==e||0===t.button)&&!this.hooks.trigger(this.hooks.eventTypes.beforeStart,t)){this.beforeHandler(t,"start");var o=t.touches?t.touches[0]:t;this.pointX=o.pageX,this.pointY=o.pageY,this.hooks.trigger(this.hooks.eventTypes.start,t)}},t.prototype.move=function(t){if(K[t.type]===this.initiated){this.beforeHandler(t,"move");var e=t.touches?t.touches[0]:t,o=e.pageX-this.pointX,n=e.pageY-this.pointY;if(this.pointX=e.pageX,this.pointY=e.pageY,!this.hooks.trigger(this.hooks.eventTypes.move,{deltaX:o,deltaY:n,e:t})){var i=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,r=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,s=this.pointX-i,a=this.pointY-r,l=this.options.autoEndDistance;(s>document.documentElement.clientWidth-l||a>document.documentElement.clientHeight-l||s<l||a<l)&&this.end(t)}}},t.prototype.end=function(t){K[t.type]===this.initiated&&(this.setInitiated(),this.beforeHandler(t,"end"),this.hooks.trigger(this.hooks.eventTypes.end,t))},t.prototype.click=function(t){this.hooks.trigger(this.hooks.eventTypes.click,t)},t.prototype.setContent=function(t){t!==this.wrapper&&(this.wrapper=t,this.rebindDOMEvents())},t.prototype.rebindDOMEvents=function(){this.wrapperEventRegister.destroy(),this.targetEventRegister.destroy(),this.handleDOMEvents()},t.prototype.destroy=function(){this.wrapperEventRegister.destroy(),this.targetEventRegister.destroy(),this.hooks.destroy()},t}(),yt={x:["translateX","px"],y:["translateY","px"]},mt=function(){function t(t){this.setContent(t),this.hooks=new ut(["beforeTranslate","translate"])}return t.prototype.getComputedPosition=function(){var t=window.getComputedStyle(this.content,null),e=t[$.transform].split(")")[0].split(", "),o=+(e[12]||e[4])||0,n=+(e[13]||e[5])||0;return{x:o,y:n}},t.prototype.translate=function(t){var e=[];Object.keys(t).forEach((function(o){if(yt[o]){var n=yt[o][0];if(n){var i=yt[o][1],r=t[o];e.push(n+"("+r+i+")")}}})),this.hooks.trigger(this.hooks.eventTypes.beforeTranslate,e,t),this.style[$.transform]=e.join(" "),this.hooks.trigger(this.hooks.eventTypes.translate,t)},t.prototype.setContent=function(t){this.content!==t&&(this.content=t,this.style=t.style)},t.prototype.destroy=function(){this.hooks.destroy()},t}(),gt=function(){function t(t,e,o){this.translater=e,this.options=o,this.timer=0,this.hooks=new ut(["move","end","beforeForceStop","forceStop","callStop","time","timeFunction"]),this.setContent(t)}return t.prototype.translate=function(t){this.translater.translate(t)},t.prototype.setPending=function(t){this.pending=t},t.prototype.setForceStopped=function(t){this.forceStopped=t},t.prototype.setCallStop=function(t){this.callStopWhenPending=t},t.prototype.setContent=function(t){this.content!==t&&(this.content=t,this.style=t.style,this.stop())},t.prototype.clearTimer=function(){this.timer&&(rt(this.timer),this.timer=0)},t.prototype.destroy=function(){this.hooks.destroy(),rt(this.timer)},t}(),bt=function(t,e,o,n){var i=function(t,e){var o=t-e,n=o>0?-1:o<0?1:0;return n},r=i(e.x,t.x),s=i(e.y,t.y),a=o.x-n.x,l=o.y-n.y;return r*a<=0&&s*l<=0},wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.startProbe=function(t,e){var o=this,n=t,i=function(){var r=o.translater.getComputedPosition();bt(t,e,r,n)&&o.hooks.trigger(o.hooks.eventTypes.move,r),o.pending||(o.callStopWhenPending?o.callStopWhenPending=!1:o.hooks.trigger(o.hooks.eventTypes.end,r)),n=r,o.pending&&(o.timer=it(i))};this.callStopWhenPending&&this.setCallStop(!1),rt(this.timer),i()},e.prototype.transitionTime=function(t){void 0===t&&(t=0),this.style[$.transitionDuration]=t+"ms",this.hooks.trigger(this.hooks.eventTypes.time,t)},e.prototype.transitionTimingFunction=function(t){this.style[$.transitionTimingFunction]=t,this.hooks.trigger(this.hooks.eventTypes.timeFunction,t)},e.prototype.transitionProperty=function(){this.style[$.transitionProperty]=$.transform},e.prototype.move=function(t,e,o,n){this.setPending(o>0),this.transitionTimingFunction(n),this.transitionProperty(),this.transitionTime(o),this.translate(e);var i=3===this.options.probeType;o&&i&&this.startProbe(t,e),o||(this._reflow=this.content.offsetHeight,i&&this.hooks.trigger(this.hooks.eventTypes.move,e),this.hooks.trigger(this.hooks.eventTypes.end,e))},e.prototype.doStop=function(){var t=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),t){this.setPending(!1),rt(this.timer);var e=this.translater.getComputedPosition(),o=e.x,n=e.y;this.transitionTime(),this.translate({x:o,y:n}),this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,{x:o,y:n})}return t},e.prototype.stop=function(){var t=this.doStop();t&&this.hooks.trigger(this.hooks.eventTypes.callStop)},e}(gt),kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.move=function(t,e,o,n){if(!o)return this.translate(e),3===this.options.probeType&&this.hooks.trigger(this.hooks.eventTypes.move,e),void this.hooks.trigger(this.hooks.eventTypes.end,e);this.animate(t,e,o,n)},e.prototype.animate=function(t,e,o,n){var i=this,r=B(),s=r+o,a=3===this.options.probeType,l=function(){var c=B();if(c>=s)return i.translate(e),a&&i.hooks.trigger(i.hooks.eventTypes.move,e),void i.hooks.trigger(i.hooks.eventTypes.end,e);c=(c-r)/o;var h=n(c),u={};Object.keys(e).forEach((function(o){var n=t[o],i=e[o];u[o]=(i-n)*h+n})),i.translate(u),a&&i.hooks.trigger(i.hooks.eventTypes.move,u),i.pending&&(i.timer=it(l)),i.pending||(i.callStopWhenPending?i.callStopWhenPending=!1:i.hooks.trigger(i.hooks.eventTypes.end,e))};this.setPending(!0),this.callStopWhenPending&&this.setCallStop(!1),rt(this.timer),l()},e.prototype.doStop=function(){var t=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),t){this.setPending(!1),rt(this.timer);var e=this.translater.getComputedPosition();this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,e)}return t},e.prototype.stop=function(){var t=this.doStop();t&&this.hooks.trigger(this.hooks.eventTypes.callStop)},e}(gt);function Tt(t,e,o){var n=o.useTransition,i={};return Object.defineProperty(i,"probeType",{enumerable:!0,configurable:!1,get:function(){return o.probeType}}),n?new wt(t,e,i):new kt(t,e,i)}var St,xt,Pt,Ct,Et=function(){function t(t,e,o){this.wrapper=t,this.options=o,this.hooks=new ut(["beforeComputeBoundary","computeBoundary","momentum","end","ignoreHasScroll"]),this.refresh(e)}return t.prototype.start=function(){this.dist=0,this.setMovingDirection(0),this.setDirection(0)},t.prototype.move=function(t){return t=this.hasScroll?t:0,this.setMovingDirection(t),this.performDampingAlgorithm(t,this.options.outOfBoundaryDampingFactor)},t.prototype.setMovingDirection=function(t){this.movingDirection=t>0?-1:t<0?1:0},t.prototype.setDirection=function(t){this.direction=t>0?-1:t<0?1:0},t.prototype.performDampingAlgorithm=function(t,e){var o=this.currentPos+t;return(o>this.minScrollPos||o<this.maxScrollPos)&&(o=o>this.minScrollPos&&this.options.bounces[0]||o<this.maxScrollPos&&this.options.bounces[1]?this.currentPos+t*e:o>this.minScrollPos?this.minScrollPos:this.maxScrollPos),o},t.prototype.end=function(t){var e={duration:0},o=Math.abs(this.currentPos-this.startPos);if(this.options.momentum&&t<this.options.momentumLimitTime&&o>this.options.momentumLimitDistance){var n=-1===this.direction&&this.options.bounces[0]||1===this.direction&&this.options.bounces[1]?this.wrapperSize:0;e=this.hasScroll?this.momentum(this.currentPos,this.startPos,t,this.maxScrollPos,this.minScrollPos,n,this.options):{destination:this.currentPos,duration:0}}else this.hooks.trigger(this.hooks.eventTypes.end,e);return e},t.prototype.momentum=function(t,e,o,n,i,r,s){void 0===s&&(s=this.options);var a=