UNPKG

shu-c-view

Version:

rollup 打包vue组件库框架

7 lines (6 loc) 39.6 kB
/*! * shu-c-view v1.2.37 * (c) 2022-09-22 * @license MIT */ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lodash/isArray"),e=require("lodash/isEmpty");function r(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var n=r(t),i=r(e);var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=function(t){return t&&t.Math==Math&&t},a=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof o&&o)||function(){return this}()||Function("return this")(),c={},u=function(t){try{return!!t()}catch(t){return!0}},l=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f={},h={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,d=p&&!h.call({1:2},1);f.f=d?function(t){var e=p(this,t);return!!e&&e.enumerable}:h;var g=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},y={}.toString,v=function(t){return y.call(t).slice(8,-1)},m=v,S="".split,b=u((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==m(t)?S.call(t,""):Object(t)}:Object,w=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},x=b,P=w,_=function(t){return x(P(t))},O=function(t){return"object"==typeof t?null!==t:"function"==typeof t},E=O,T=function(t,e){if(!E(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!E(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!E(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!E(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},A={}.hasOwnProperty,j=function(t,e){return A.call(t,e)},C=O,R=a.document,F=C(R)&&C(R.createElement),M=function(t){return F?R.createElement(t):{}},I=M,$=!l&&!u((function(){return 7!=Object.defineProperty(I("div"),"a",{get:function(){return 7}}).a})),L=l,k=f,N=g,W=_,H=T,B=j,D=$,U=Object.getOwnPropertyDescriptor;c.f=L?U:function(t,e){if(t=W(t),e=H(e,!0),D)try{return U(t,e)}catch(t){}if(B(t,e))return N(!k.f.call(t,e),t[e])};var G={},z=O,q=function(t){if(!z(t))throw TypeError(String(t)+" is not an object");return t},V=l,Y=$,X=q,K=T,J=Object.defineProperty;G.f=V?J:function(t,e,r){if(X(t),e=K(e,!0),X(r),Y)try{return J(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var Q=G,Z=g,tt=l?function(t,e,r){return Q.f(t,e,Z(1,r))}:function(t,e,r){return t[e]=r,t},et={exports:{}},rt=a,nt=tt,it=function(t,e){try{nt(rt,t,e)}catch(r){rt[t]=e}return e},ot=it,st=a["__core-js_shared__"]||ot("__core-js_shared__",{}),at=st,ct=Function.toString;"function"!=typeof at.inspectSource&&(at.inspectSource=function(t){return ct.call(t)});var ut=at.inspectSource,lt=ut,ft=a.WeakMap,ht="function"==typeof ft&&/native code/.test(lt(ft)),pt={exports:{}},dt=st;(pt.exports=function(t,e){return dt[t]||(dt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.9.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var gt,yt,vt,mt=0,St=Math.random(),bt=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++mt+St).toString(36)},wt=pt.exports,xt=bt,Pt=wt("keys"),_t=function(t){return Pt[t]||(Pt[t]=xt(t))},Ot={},Et=ht,Tt=O,At=tt,jt=j,Ct=st,Rt=_t,Ft=Ot,Mt=a.WeakMap;if(Et){var It=Ct.state||(Ct.state=new Mt),$t=It.get,Lt=It.has,kt=It.set;gt=function(t,e){return e.facade=t,kt.call(It,t,e),e},yt=function(t){return $t.call(It,t)||{}},vt=function(t){return Lt.call(It,t)}}else{var Nt=Rt("state");Ft[Nt]=!0,gt=function(t,e){return e.facade=t,At(t,Nt,e),e},yt=function(t){return jt(t,Nt)?t[Nt]:{}},vt=function(t){return jt(t,Nt)}}var Wt={set:gt,get:yt,has:vt,enforce:function(t){return vt(t)?yt(t):gt(t,{})},getterFor:function(t){return function(e){var r;if(!Tt(e)||(r=yt(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},Ht=a,Bt=tt,Dt=j,Ut=it,Gt=ut,zt=Wt.get,qt=Wt.enforce,Vt=String(String).split("String");(et.exports=function(t,e,r,n){var i,o=!!n&&!!n.unsafe,s=!!n&&!!n.enumerable,a=!!n&&!!n.noTargetGet;"function"==typeof r&&("string"!=typeof e||Dt(r,"name")||Bt(r,"name",e),(i=qt(r)).source||(i.source=Vt.join("string"==typeof e?e:""))),t!==Ht?(o?!a&&t[e]&&(s=!0):delete t[e],s?t[e]=r:Bt(t,e,r)):s?t[e]=r:Ut(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&zt(this).source||Gt(this)}));var Yt=a,Xt=Yt,Kt=a,Jt=function(t){return"function"==typeof t?t:void 0},Qt=function(t,e){return arguments.length<2?Jt(Xt[t])||Jt(Kt[t]):Xt[t]&&Xt[t][e]||Kt[t]&&Kt[t][e]},Zt={},te=Math.ceil,ee=Math.floor,re=function(t){return isNaN(t=+t)?0:(t>0?ee:te)(t)},ne=re,ie=Math.min,oe=function(t){return t>0?ie(ne(t),9007199254740991):0},se=re,ae=Math.max,ce=Math.min,ue=_,le=oe,fe=function(t,e){var r=se(t);return r<0?ae(r+e,0):ce(r,e)},he=function(t){return function(e,r,n){var i,o=ue(e),s=le(o.length),a=fe(n,s);if(t&&r!=r){for(;s>a;)if((i=o[a++])!=i)return!0}else for(;s>a;a++)if((t||a in o)&&o[a]===r)return t||a||0;return!t&&-1}},pe={includes:he(!0),indexOf:he(!1)},de=j,ge=_,ye=pe.indexOf,ve=Ot,me=function(t,e){var r,n=ge(t),i=0,o=[];for(r in n)!de(ve,r)&&de(n,r)&&o.push(r);for(;e.length>i;)de(n,r=e[i++])&&(~ye(o,r)||o.push(r));return o},Se=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],be=me,we=Se.concat("length","prototype");Zt.f=Object.getOwnPropertyNames||function(t){return be(t,we)};var xe={};xe.f=Object.getOwnPropertySymbols;var Pe=Zt,_e=xe,Oe=q,Ee=Qt("Reflect","ownKeys")||function(t){var e=Pe.f(Oe(t)),r=_e.f;return r?e.concat(r(t)):e},Te=j,Ae=Ee,je=c,Ce=G,Re=function(t,e){for(var r=Ae(e),n=Ce.f,i=je.f,o=0;o<r.length;o++){var s=r[o];Te(t,s)||n(t,s,i(e,s))}},Fe=u,Me=/#|\.prototype\./,Ie=function(t,e){var r=Le[$e(t)];return r==Ne||r!=ke&&("function"==typeof e?Fe(e):!!e)},$e=Ie.normalize=function(t){return String(t).replace(Me,".").toLowerCase()},Le=Ie.data={},ke=Ie.NATIVE="N",Ne=Ie.POLYFILL="P",We=Ie,He=a,Be=c.f,De=tt,Ue=et.exports,Ge=it,ze=Re,qe=We,Ve=function(t,e){var r,n,i,o,s,a=t.target,c=t.global,u=t.stat;if(r=c?He:u?He[a]||Ge(a,{}):(He[a]||{}).prototype)for(n in e){if(o=e[n],i=t.noTargetGet?(s=Be(r,n))&&s.value:r[n],!qe(c?n:a+(u?".":"#")+n,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;ze(o,i)}(t.sham||i&&i.sham)&&De(o,"sham",!0),Ue(r,n,o,t)}},Ye=u,Xe=Ve,Ke=_,Je=[].join,Qe=b!=Object,Ze=function(t,e){var r=[][t];return!!r&&Ye((function(){r.call(null,e||function(){throw 1},1)}))}("join",",");Xe({target:"Array",proto:!0,forced:Qe||!Ze},{join:function(t){return Je.call(Ke(this),void 0===t?",":t)}});var tr,er,rr=v,nr=Array.isArray||function(t){return"Array"==rr(t)},ir=w,or=function(t){return Object(ir(t))},sr=T,ar=G,cr=g,ur="process"==v(a.process),lr=Qt("navigator","userAgent")||"",fr=a.process,hr=fr&&fr.versions,pr=hr&&hr.v8;pr?er=(tr=pr.split("."))[0]+tr[1]:lr&&(!(tr=lr.match(/Edge\/(\d+)/))||tr[1]>=74)&&(tr=lr.match(/Chrome\/(\d+)/))&&(er=tr[1]);var dr=er&&+er,gr=ur,yr=dr,vr=u,mr=!!Object.getOwnPropertySymbols&&!vr((function(){return!Symbol.sham&&(gr?38===yr:yr>37&&yr<41)})),Sr=mr&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,br=a,wr=pt.exports,xr=j,Pr=bt,_r=mr,Or=Sr,Er=wr("wks"),Tr=br.Symbol,Ar=Or?Tr:Tr&&Tr.withoutSetter||Pr,jr=function(t){return xr(Er,t)&&(_r||"string"==typeof Er[t])||(_r&&xr(Tr,t)?Er[t]=Tr[t]:Er[t]=Ar("Symbol."+t)),Er[t]},Cr=O,Rr=nr,Fr=jr("species"),Mr=function(t,e){var r;return Rr(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!Rr(r.prototype)?Cr(r)&&null===(r=r[Fr])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)},Ir=u,$r=dr,Lr=jr("species"),kr=function(t){return $r>=51||!Ir((function(){var e=[];return(e.constructor={})[Lr]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Nr=Ve,Wr=u,Hr=nr,Br=O,Dr=or,Ur=oe,Gr=function(t,e,r){var n=sr(e);n in t?ar.f(t,n,cr(0,r)):t[n]=r},zr=Mr,qr=kr,Vr=dr,Yr=jr("isConcatSpreadable"),Xr=Vr>=51||!Wr((function(){var t=[];return t[Yr]=!1,t.concat()[0]!==t})),Kr=qr("concat"),Jr=function(t){if(!Br(t))return!1;var e=t[Yr];return void 0!==e?!!e:Hr(t)};Nr({target:"Array",proto:!0,forced:!Xr||!Kr},{concat:function(t){var e,r,n,i,o,s=Dr(this),a=zr(s,0),c=0;for(e=-1,n=arguments.length;e<n;e++)if(Jr(o=-1===e?s:arguments[e])){if(c+(i=Ur(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<i;r++,c++)r in o&&Gr(a,c,o[r])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Gr(a,c++,o)}return a.length=c,a}});var Qr=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Zr=function(t,e,r){if(Qr(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}},tn=b,en=or,rn=oe,nn=Mr,on=[].push,sn=function(t){var e=1==t,r=2==t,n=3==t,i=4==t,o=6==t,s=7==t,a=5==t||o;return function(c,u,l,f){for(var h,p,d=en(c),g=tn(d),y=Zr(u,l,3),v=rn(g.length),m=0,S=f||nn,b=e?S(c,v):r||s?S(c,0):void 0;v>m;m++)if((a||m in g)&&(p=y(h=g[m],m,d),t))if(e)b[m]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:on.call(b,h)}else switch(t){case 4:return!1;case 7:on.call(b,h)}return o?-1:n||i?i:b}},an={forEach:sn(0),map:sn(1),filter:sn(2),some:sn(3),every:sn(4),find:sn(5),findIndex:sn(6),filterOut:sn(7)},cn=an.map;Ve({target:"Array",proto:!0,forced:!kr("map")},{map:function(t){return cn(this,t,arguments.length>1?arguments[1]:void 0)}});var un=v,ln=re,fn=w,hn=Ve,pn=re,dn=function(t){if("number"!=typeof t&&"Number"!=un(t))throw TypeError("Incorrect invocation");return+t},gn="".repeat||function(t){var e=String(fn(this)),r="",n=ln(t);if(n<0||n==1/0)throw RangeError("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r},yn=u,vn=1..toFixed,mn=Math.floor,Sn=function(t,e,r){return 0===e?r:e%2==1?Sn(t,e-1,r*t):Sn(t*t,e/2,r)},bn=function(t,e,r){for(var n=-1,i=r;++n<6;)i+=e*t[n],t[n]=i%1e7,i=mn(i/1e7)},wn=function(t,e){for(var r=6,n=0;--r>=0;)n+=t[r],t[r]=mn(n/e),n=n%e*1e7},xn=function(t){for(var e=6,r="";--e>=0;)if(""!==r||0===e||0!==t[e]){var n=String(t[e]);r=""===r?n:r+gn.call("0",7-n.length)+n}return r};hn({target:"Number",proto:!0,forced:vn&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!yn((function(){vn.call({})}))},{toFixed:function(t){var e,r,n,i,o=dn(this),s=pn(t),a=[0,0,0,0,0,0],c="",u="0";if(s<0||s>20)throw RangeError("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return String(o);if(o<0&&(c="-",o=-o),o>1e-21)if(r=(e=function(t){for(var e=0,r=t;r>=4096;)e+=12,r/=4096;for(;r>=2;)e+=1,r/=2;return e}(o*Sn(2,69,1))-69)<0?o*Sn(2,-e,1):o/Sn(2,e,1),r*=4503599627370496,(e=52-e)>0){for(bn(a,0,r),n=s;n>=7;)bn(a,1e7,0),n-=7;for(bn(a,Sn(10,n,1),0),n=e-1;n>=23;)wn(a,1<<23),n-=23;wn(a,1<<n),bn(a,1,1),wn(a,2),u=xn(a)}else bn(a,0,r),bn(a,1<<-e,0),u=xn(a)+gn.call("0",s);return u=s>0?c+((i=u.length)<=s?"0."+gn.call("0",s-i)+u:u.slice(0,i-s)+"."+u.slice(i-s)):c+u}});var Pn=l,_n=G.f,On=Function.prototype,En=On.toString,Tn=/^\s*function ([^ (]*)/;Pn&&!("name"in On)&&_n(On,"name",{configurable:!0,get:function(){try{return En.call(this).match(Tn)[1]}catch(t){return""}}});var An=q,jn=function(){var t=An(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Cn={},Rn=u;function Fn(t,e){return RegExp(t,e)}Cn.UNSUPPORTED_Y=Rn((function(){var t=Fn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Cn.BROKEN_CARET=Rn((function(){var t=Fn("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));var Mn=jn,In=Cn,$n=RegExp.prototype.exec,Ln=String.prototype.replace,kn=$n,Nn=function(){var t=/a/,e=/b*/g;return $n.call(t,"a"),$n.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Wn=In.UNSUPPORTED_Y||In.BROKEN_CARET,Hn=void 0!==/()??/.exec("")[1];(Nn||Hn||Wn)&&(kn=function(t){var e,r,n,i,o=this,s=Wn&&o.sticky,a=Mn.call(o),c=o.source,u=0,l=t;return s&&(-1===(a=a.replace("y","")).indexOf("g")&&(a+="g"),l=String(t).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==t[o.lastIndex-1])&&(c="(?: "+c+")",l=" "+l,u++),r=new RegExp("^(?:"+c+")",a)),Hn&&(r=new RegExp("^"+c+"$(?!\\s)",a)),Nn&&(e=o.lastIndex),n=$n.call(s?r:o,l),s?n?(n.input=n.input.slice(u),n[0]=n[0].slice(u),n.index=o.lastIndex,o.lastIndex+=n[0].length):o.lastIndex=0:Nn&&n&&(o.lastIndex=o.global?n.index+n[0].length:e),Hn&&n&&n.length>1&&Ln.call(n[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)})),n});var Bn=kn;Ve({target:"RegExp",proto:!0,forced:/./.exec!==Bn},{exec:Bn});var Dn=et.exports,Un=u,Gn=jr,zn=Bn,qn=tt,Vn=Gn("species"),Yn=!Un((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Xn="$0"==="a".replace(/./,"$0"),Kn=Gn("replace"),Jn=!!/./[Kn]&&""===/./[Kn]("a","$0"),Qn=!Un((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),Zn=re,ti=w,ei=function(t){return function(e,r){var n,i,o=String(ti(e)),s=Zn(r),a=o.length;return s<0||s>=a?t?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===a||(i=o.charCodeAt(s+1))<56320||i>57343?t?o.charAt(s):n:t?o.slice(s,s+2):i-56320+(n-55296<<10)+65536}},ri={codeAt:ei(!1),charAt:ei(!0)},ni=ri.charAt,ii=or,oi=Math.floor,si="".replace,ai=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ci=/\$([$&'`]|\d{1,2})/g,ui=v,li=Bn,fi=function(t,e,r,n){var i=Gn(t),o=!Un((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),s=o&&!Un((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Vn]=function(){return r},r.flags="",r[i]=/./[i]),r.exec=function(){return e=!0,null},r[i](""),!e}));if(!o||!s||"replace"===t&&(!Yn||!Xn||Jn)||"split"===t&&!Qn){var a=/./[i],c=r(i,""[t],(function(t,e,r,n,i){return e.exec===zn?o&&!i?{done:!0,value:a.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:Xn,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Jn}),u=c[0],l=c[1];Dn(String.prototype,t,u),Dn(RegExp.prototype,i,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)})}n&&qn(RegExp.prototype[i],"sham",!0)},hi=q,pi=oe,di=re,gi=w,yi=function(t,e,r){return e+(r?ni(t,e).length:1)},vi=function(t,e,r,n,i,o){var s=r+t.length,a=n.length,c=ci;return void 0!==i&&(i=ii(i),c=ai),si.call(o,c,(function(o,c){var u;switch(c.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(s);case"<":u=i[c.slice(1,-1)];break;default:var l=+c;if(0===l)return o;if(l>a){var f=oi(l/10);return 0===f?o:f<=a?void 0===n[f-1]?c.charAt(1):n[f-1]+c.charAt(1):o}u=n[l-1]}return void 0===u?"":u}))},mi=function(t,e){var r=t.exec;if("function"==typeof r){var n=r.call(t,e);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==ui(t))throw TypeError("RegExp#exec called on incompatible receiver");return li.call(t,e)},Si=Math.max,bi=Math.min;fi("replace",2,(function(t,e,r,n){var i=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=n.REPLACE_KEEPS_$0,s=i?"$":"$0";return[function(r,n){var i=gi(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,i,n):e.call(String(i),r,n)},function(t,n){if(!i&&o||"string"==typeof n&&-1===n.indexOf(s)){var a=r(e,t,this,n);if(a.done)return a.value}var c=hi(t),u=String(this),l="function"==typeof n;l||(n=String(n));var f=c.global;if(f){var h=c.unicode;c.lastIndex=0}for(var p=[];;){var d=mi(c,u);if(null===d)break;if(p.push(d),!f)break;""===String(d[0])&&(c.lastIndex=yi(u,pi(c.lastIndex),h))}for(var g,y="",v=0,m=0;m<p.length;m++){d=p[m];for(var S=String(d[0]),b=Si(bi(di(d.index),u.length),0),w=[],x=1;x<d.length;x++)w.push(void 0===(g=d[x])?g:String(g));var P=d.groups;if(l){var _=[S].concat(w,b,u);void 0!==P&&_.push(P);var O=String(n.apply(void 0,_))}else O=vi(S,u,b,w,P,n);b>=v&&(y+=u.slice(v,b)+O,v=b+S.length)}return y+u.slice(v)}]}));var wi=O,xi=q,Pi=function(t){if(!wi(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},_i=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return xi(r),Pi(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Oi=O,Ei=_i,Ti=O,Ai=v,ji=jr("match"),Ci=Qt,Ri=G,Fi=l,Mi=jr("species"),Ii=l,$i=a,Li=We,ki=function(t,e,r){var n,i;return Ei&&"function"==typeof(n=e.constructor)&&n!==r&&Oi(i=n.prototype)&&i!==r.prototype&&Ei(t,i),t},Ni=G.f,Wi=Zt.f,Hi=function(t){var e;return Ti(t)&&(void 0!==(e=t[ji])?!!e:"RegExp"==Ai(t))},Bi=jn,Di=Cn,Ui=et.exports,Gi=u,zi=Wt.set,qi=function(t){var e=Ci(t),r=Ri.f;Fi&&e&&!e[Mi]&&r(e,Mi,{configurable:!0,get:function(){return this}})},Vi=jr("match"),Yi=$i.RegExp,Xi=Yi.prototype,Ki=/a/g,Ji=/a/g,Qi=new Yi(Ki)!==Ki,Zi=Di.UNSUPPORTED_Y;if(Ii&&Li("RegExp",!Qi||Zi||Gi((function(){return Ji[Vi]=!1,Yi(Ki)!=Ki||Yi(Ji)==Ji||"/a/i"!=Yi(Ki,"i")})))){for(var to=function(t,e){var r,n=this instanceof to,i=Hi(t),o=void 0===e;if(!n&&i&&t.constructor===to&&o)return t;Qi?i&&!o&&(t=t.source):t instanceof to&&(o&&(e=Bi.call(t)),t=t.source),Zi&&(r=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var s=ki(Qi?new Yi(t,e):Yi(t,e),n?this:Xi,to);return Zi&&r&&zi(s,{sticky:r}),s},eo=function(t){t in to||Ni(to,t,{configurable:!0,get:function(){return Yi[t]},set:function(e){Yi[t]=e}})},ro=Wi(Yi),no=0;ro.length>no;)eo(ro[no++]);Xi.constructor=to,to.prototype=Xi,Ui($i,"RegExp",to)}qi("RegExp");var io=et.exports,oo=q,so=u,ao=jn,co=RegExp.prototype,uo=co.toString,lo=so((function(){return"/a/b"!=uo.call({source:"a",flags:"b"})})),fo="toString"!=uo.name;(lo||fo)&&io(RegExp.prototype,"toString",(function(){var t=oo(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in co)?ao.call(t):r)}),{unsafe:!0});function ho(t){return(ho="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var po,go=me,yo=Se,vo=Object.keys||function(t){return go(t,yo)},mo=G,So=q,bo=vo,wo=l?Object.defineProperties:function(t,e){So(t);for(var r,n=bo(e),i=n.length,o=0;i>o;)mo.f(t,r=n[o++],e[r]);return t},xo=Qt("document","documentElement"),Po=q,_o=wo,Oo=Se,Eo=Ot,To=xo,Ao=M,jo=_t("IE_PROTO"),Co=function(){},Ro=function(t){return"<script>"+t+"<\/script>"},Fo=function(){try{po=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Fo=po?function(t){t.write(Ro("")),t.close();var e=t.parentWindow.Object;return t=null,e}(po):((e=Ao("iframe")).style.display="none",To.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ro("document.F=Object")),t.close(),t.F);for(var r=Oo.length;r--;)delete Fo.prototype[Oo[r]];return Fo()};Eo[jo]=!0;var Mo=Object.create||function(t,e){var r;return null!==t?(Co.prototype=Po(t),r=new Co,Co.prototype=null,r[jo]=t):r=Fo(),void 0===e?r:_o(r,e)},Io={},$o=_,Lo=Zt.f,ko={}.toString,No="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Io.f=function(t){return No&&"[object Window]"==ko.call(t)?function(t){try{return Lo(t)}catch(t){return No.slice()}}(t):Lo($o(t))};var Wo={},Ho=jr;Wo.f=Ho;var Bo=Yt,Do=j,Uo=Wo,Go=G.f,zo=function(t){var e=Bo.Symbol||(Bo.Symbol={});Do(e,t)||Go(e,t,{value:Uo.f(t)})},qo=G.f,Vo=j,Yo=jr("toStringTag"),Xo=function(t,e,r){t&&!Vo(t=r?t:t.prototype,Yo)&&qo(t,Yo,{configurable:!0,value:e})},Ko=Ve,Jo=a,Qo=Qt,Zo=l,ts=mr,es=Sr,rs=u,ns=j,is=nr,os=O,ss=q,as=or,cs=_,us=T,ls=g,fs=Mo,hs=vo,ps=Zt,ds=Io,gs=xe,ys=c,vs=G,ms=f,Ss=tt,bs=et.exports,ws=pt.exports,xs=Ot,Ps=bt,_s=jr,Os=Wo,Es=zo,Ts=Xo,As=Wt,js=an.forEach,Cs=_t("hidden"),Rs=_s("toPrimitive"),Fs=As.set,Ms=As.getterFor("Symbol"),Is=Object.prototype,$s=Jo.Symbol,Ls=Qo("JSON","stringify"),ks=ys.f,Ns=vs.f,Ws=ds.f,Hs=ms.f,Bs=ws("symbols"),Ds=ws("op-symbols"),Us=ws("string-to-symbol-registry"),Gs=ws("symbol-to-string-registry"),zs=ws("wks"),qs=Jo.QObject,Vs=!qs||!qs.prototype||!qs.prototype.findChild,Ys=Zo&&rs((function(){return 7!=fs(Ns({},"a",{get:function(){return Ns(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=ks(Is,e);n&&delete Is[e],Ns(t,e,r),n&&t!==Is&&Ns(Is,e,n)}:Ns,Xs=function(t,e){var r=Bs[t]=fs($s.prototype);return Fs(r,{type:"Symbol",tag:t,description:e}),Zo||(r.description=e),r},Ks=es?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof $s},Js=function(t,e,r){t===Is&&Js(Ds,e,r),ss(t);var n=us(e,!0);return ss(r),ns(Bs,n)?(r.enumerable?(ns(t,Cs)&&t[Cs][n]&&(t[Cs][n]=!1),r=fs(r,{enumerable:ls(0,!1)})):(ns(t,Cs)||Ns(t,Cs,ls(1,{})),t[Cs][n]=!0),Ys(t,n,r)):Ns(t,n,r)},Qs=function(t,e){ss(t);var r=cs(e),n=hs(r).concat(ra(r));return js(n,(function(e){Zo&&!Zs.call(r,e)||Js(t,e,r[e])})),t},Zs=function(t){var e=us(t,!0),r=Hs.call(this,e);return!(this===Is&&ns(Bs,e)&&!ns(Ds,e))&&(!(r||!ns(this,e)||!ns(Bs,e)||ns(this,Cs)&&this[Cs][e])||r)},ta=function(t,e){var r=cs(t),n=us(e,!0);if(r!==Is||!ns(Bs,n)||ns(Ds,n)){var i=ks(r,n);return!i||!ns(Bs,n)||ns(r,Cs)&&r[Cs][n]||(i.enumerable=!0),i}},ea=function(t){var e=Ws(cs(t)),r=[];return js(e,(function(t){ns(Bs,t)||ns(xs,t)||r.push(t)})),r},ra=function(t){var e=t===Is,r=Ws(e?Ds:cs(t)),n=[];return js(r,(function(t){!ns(Bs,t)||e&&!ns(Is,t)||n.push(Bs[t])})),n};(ts||(bs(($s=function(){if(this instanceof $s)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=Ps(t),r=function(t){this===Is&&r.call(Ds,t),ns(this,Cs)&&ns(this[Cs],e)&&(this[Cs][e]=!1),Ys(this,e,ls(1,t))};return Zo&&Vs&&Ys(Is,e,{configurable:!0,set:r}),Xs(e,t)}).prototype,"toString",(function(){return Ms(this).tag})),bs($s,"withoutSetter",(function(t){return Xs(Ps(t),t)})),ms.f=Zs,vs.f=Js,ys.f=ta,ps.f=ds.f=ea,gs.f=ra,Os.f=function(t){return Xs(_s(t),t)},Zo&&(Ns($s.prototype,"description",{configurable:!0,get:function(){return Ms(this).description}}),bs(Is,"propertyIsEnumerable",Zs,{unsafe:!0}))),Ko({global:!0,wrap:!0,forced:!ts,sham:!ts},{Symbol:$s}),js(hs(zs),(function(t){Es(t)})),Ko({target:"Symbol",stat:!0,forced:!ts},{for:function(t){var e=String(t);if(ns(Us,e))return Us[e];var r=$s(e);return Us[e]=r,Gs[r]=e,r},keyFor:function(t){if(!Ks(t))throw TypeError(t+" is not a symbol");if(ns(Gs,t))return Gs[t]},useSetter:function(){Vs=!0},useSimple:function(){Vs=!1}}),Ko({target:"Object",stat:!0,forced:!ts,sham:!Zo},{create:function(t,e){return void 0===e?fs(t):Qs(fs(t),e)},defineProperty:Js,defineProperties:Qs,getOwnPropertyDescriptor:ta}),Ko({target:"Object",stat:!0,forced:!ts},{getOwnPropertyNames:ea,getOwnPropertySymbols:ra}),Ko({target:"Object",stat:!0,forced:rs((function(){gs.f(1)}))},{getOwnPropertySymbols:function(t){return gs.f(as(t))}}),Ls)&&Ko({target:"JSON",stat:!0,forced:!ts||rs((function(){var t=$s();return"[null]"!=Ls([t])||"{}"!=Ls({a:t})||"{}"!=Ls(Object(t))}))},{stringify:function(t,e,r){for(var n,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(n=e,(os(e)||void 0!==t)&&!Ks(t))return is(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Ks(e))return e}),i[1]=e,Ls.apply(null,i)}});$s.prototype[Rs]||Ss($s.prototype,Rs,$s.prototype.valueOf),Ts($s,"Symbol"),xs[Cs]=!0;var na=Ve,ia=l,oa=a,sa=j,aa=O,ca=G.f,ua=Re,la=oa.Symbol;if(ia&&"function"==typeof la&&(!("description"in la.prototype)||void 0!==la().description)){var fa={},ha=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof ha?new la(t):void 0===t?la():la(t);return""===t&&(fa[e]=!0),e};ua(ha,la);var pa=ha.prototype=la.prototype;pa.constructor=ha;var da=pa.toString,ga="Symbol(test)"==String(la("test")),ya=/^Symbol\((.*)\)[^)]+$/;ca(pa,"description",{configurable:!0,get:function(){var t=aa(this)?this.valueOf():this,e=da.call(t);if(sa(fa,t))return"";var r=ga?e.slice(7,-1):e.replace(ya,"$1");return""===r?void 0:r}}),na({global:!0,forced:!0},{Symbol:ha})}var va={};va[jr("toStringTag")]="z";var ma="[object z]"===String(va),Sa=ma,ba=v,wa=jr("toStringTag"),xa="Arguments"==ba(function(){return arguments}()),Pa=Sa?ba:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),wa))?r:xa?ba(e):"Object"==(n=ba(e))&&"function"==typeof e.callee?"Arguments":n},_a=ma?{}.toString:function(){return"[object "+Pa(this)+"]"},Oa=ma,Ea=et.exports,Ta=_a;Oa||Ea(Object.prototype,"toString",Ta,{unsafe:!0}),zo("iterator");var Aa,ja,Ca,Ra=!u((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Fa=j,Ma=or,Ia=Ra,$a=_t("IE_PROTO"),La=Object.prototype,ka=Ia?Object.getPrototypeOf:function(t){return t=Ma(t),Fa(t,$a)?t[$a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?La:null},Na=u,Wa=ka,Ha=tt,Ba=j,Da=jr("iterator"),Ua=!1;[].keys&&("next"in(Ca=[].keys())?(ja=Wa(Wa(Ca)))!==Object.prototype&&(Aa=ja):Ua=!0),(null==Aa||Na((function(){var t={};return Aa[Da].call(t)!==t})))&&(Aa={}),Ba(Aa,Da)||Ha(Aa,Da,(function(){return this}));var Ga={IteratorPrototype:Aa,BUGGY_SAFARI_ITERATORS:Ua},za={},qa=Ga.IteratorPrototype,Va=Mo,Ya=g,Xa=Xo,Ka=za,Ja=function(){return this},Qa=Ve,Za=function(t,e,r){var n=e+" Iterator";return t.prototype=Va(qa,{next:Ya(1,r)}),Xa(t,n,!1),Ka[n]=Ja,t},tc=ka,ec=_i,rc=Xo,nc=tt,ic=et.exports,oc=za,sc=Ga.IteratorPrototype,ac=Ga.BUGGY_SAFARI_ITERATORS,cc=jr("iterator"),uc=function(){return this},lc=function(t,e,r,n,i,o,s){Za(r,e,n);var a,c,u,l=function(t){if(t===i&&g)return g;if(!ac&&t in p)return p[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},f=e+" Iterator",h=!1,p=t.prototype,d=p[cc]||p["@@iterator"]||i&&p[i],g=!ac&&d||l(i),y="Array"==e&&p.entries||d;if(y&&(a=tc(y.call(new t)),sc!==Object.prototype&&a.next&&(tc(a)!==sc&&(ec?ec(a,sc):"function"!=typeof a[cc]&&nc(a,cc,uc)),rc(a,f,!0))),"values"==i&&d&&"values"!==d.name&&(h=!0,g=function(){return d.call(this)}),p[cc]!==g&&nc(p,cc,g),oc[e]=g,i)if(c={values:l("values"),keys:o?g:l("keys"),entries:l("entries")},s)for(u in c)(ac||h||!(u in p))&&ic(p,u,c[u]);else Qa({target:e,proto:!0,forced:ac||h},c);return c},fc=ri.charAt,hc=Wt,pc=lc,dc=hc.set,gc=hc.getterFor("String Iterator");pc(String,"String",(function(t){dc(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=gc(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=fc(r,n),e.index+=t.length,{value:t,done:!1})}));var yc=Mo,vc=G,mc=jr("unscopables"),Sc=Array.prototype;null==Sc[mc]&&vc.f(Sc,mc,{configurable:!0,value:yc(null)});var bc=_,wc=function(t){Sc[mc][t]=!0},xc=za,Pc=Wt,_c=lc,Oc=Pc.set,Ec=Pc.getterFor("Array Iterator"),Tc=_c(Array,"Array",(function(t,e){Oc(this,{type:"Array Iterator",target:bc(t),index:0,kind:e})}),(function(){var t=Ec(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");xc.Arguments=xc.Array,wc("keys"),wc("values"),wc("entries");var Ac=a,jc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Cc=Tc,Rc=tt,Fc=jr,Mc=Fc("iterator"),Ic=Fc("toStringTag"),$c=Cc.values;for(var Lc in jc){var kc=Ac[Lc],Nc=kc&&kc.prototype;if(Nc){if(Nc[Mc]!==$c)try{Rc(Nc,Mc,$c)}catch(t){Nc[Mc]=$c}if(Nc[Ic]||Rc(Nc,Ic,Lc),jc[Lc])for(var Wc in Cc)if(Nc[Wc]!==Cc[Wc])try{Rc(Nc,Wc,Cc[Wc])}catch(t){Nc[Wc]=Cc[Wc]}}}var Hc="function"==typeof Symbol&&"symbol"===ho(Symbol.iterator)?function(t){return ho(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":ho(t)};function Bc(){Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var t=void 0,e=void 0,r=void 0,n=void 0,i=void 0,o=void 0,s=1,a=arguments[0]||{},c=!1,u=arguments.length;if("boolean"==typeof a&&(c=a,a=arguments[1]||{},s++),"object"!==(void 0===a?"undefined":Hc(a))&&"function"!=typeof a&&(a={}),s===u)return a;for(;s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=a[t],n=e[t],i=Array.isArray(n),c&&n&&("object"===(void 0===n?"undefined":Hc(n))||i)?(i?(i=!1,o=r&&Array.isArray(r)?r:[]):o=r&&"object"===(void 0===r?"undefined":Hc(r))?r:{},a[t]=Bc(c,o,n)):void 0!==n&&(a[t]=n);return a}function Dc(t,e,r,n,i,o,s,a,c,u){"boolean"!=typeof s&&(c=a,a=s,s=!1);const l="function"==typeof r?r.options:r;let f;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),n&&(l._scopeId=n),o?(f=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=f):e&&(f=s?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),f)if(l.functional){const t=l.render;l.render=function(e,r){return f.call(r),t(e,r)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,f):[f]}return r}const Uc={data:()=>({xPos:0,yPos:0,delay:0,copyHtml:"",height:0,width:0,realBoxWidth:0}),props:{data:{type:Array,default:()=>[]},classOption:{type:Object,default:()=>({})}},computed:{leftSwitchState(){return this.xPos<0},rightSwitchState(){return Math.abs(this.xPos)<this.realBoxWidth-this.width},leftSwitchClass(){return this.leftSwitchState?"":this.options.switchDisabledClass},rightSwitchClass(){return this.rightSwitchState?"":this.options.switchDisabledClass},leftSwitch(){return{position:"absolute",margin:`${this.height/2}px 0 0 -${this.options.switchOffset}px`,transform:"translate(-100%,-50%)"}},rightSwitch(){return{position:"absolute",margin:`${this.height/2}px 0 0 ${this.width+this.options.switchOffset}px`,transform:"translateY(-50%)"}},float(){return this.isHorizontal?{float:"left",overflow:"hidden"}:{overflow:"hidden"}},pos(){return{transform:`translate(${this.xPos}px,${this.yPos}px)`,transition:`all ${this.ease} ${this.delay}ms`,overflow:"hidden"}},defaultOption:()=>({step:1,limitMoveNum:5,hoverStop:!0,direction:1,openTouch:!0,singleHeight:0,singleWidth:0,waitTime:1e3,switchOffset:30,autoPlay:!0,navigation:!1,switchSingleStep:134,switchDelay:400,switchDisabledClass:"disabled",isSingleRemUnit:!1}),options(){return Bc({},this.defaultOption,this.classOption)},navigation(){return this.options.navigation},autoPlay(){return!this.navigation&&this.options.autoPlay},scrollSwitch(){return this.data.length>=this.options.limitMoveNum},hoverStopSwitch(){return this.options.hoverStop&&this.autoPlay&&this.scrollSwitch},canTouchScroll(){return this.options.openTouch},isHorizontal(){return this.options.direction>1},baseFontSize(){return this.options.isSingleRemUnit?parseInt(window.getComputedStyle(document.documentElement,null).fontSize):1},realSingleStopWidth(){return this.options.singleWidth*this.baseFontSize},realSingleStopHeight(){return this.options.singleHeight*this.baseFontSize},step(){let t;const e=this.options.step;return t=this.isHorizontal?this.realSingleStopWidth:this.realSingleStopHeight,t>0&&t%e>0&&console.error("如果设置了单步滚动,step需是单步大小的约数,否则无法保证单步滚动结束的位置是否准确。~~~~~"),e}},methods:{reset(){this._cancle(),this._initMove()},leftSwitchClick(){this.leftSwitchState&&(Math.abs(this.xPos)<this.options.switchSingleStep?this.xPos=0:this.xPos+=this.options.switchSingleStep)},rightSwitchClick(){this.rightSwitchState&&(this.realBoxWidth-this.width+this.xPos<this.options.switchSingleStep?this.xPos=this.width-this.realBoxWidth:this.xPos-=this.options.switchSingleStep)},_cancle(){cancelAnimationFrame(this.reqFrame||"")},touchStart(t){if(!this.canTouchScroll)return;let e;const r=t.targetTouches[0],{waitTime:n,singleHeight:i,singleWidth:o}=this.options;this.startPos={x:r.pageX,y:r.pageY},this.startPosY=this.yPos,this.startPosX=this.xPos,i&&o?(e&&clearTimeout(e),e=setTimeout((()=>{this._cancle()}),n+20)):this._cancle()},touchMove(t){if(!this.canTouchScroll||t.targetTouches.length>1||t.scale&&1!==t.scale)return;const e=t.targetTouches[0],{direction:r}=this.options;this.endPos={x:e.pageX-this.startPos.x,y:e.pageY-this.startPos.y},event.preventDefault();const n=Math.abs(this.endPos.x)<Math.abs(this.endPos.y)?1:0;1===n&&r<2?this.yPos=this.startPosY+this.endPos.y:0===n&&r>1&&(this.xPos=this.startPosX+this.endPos.x)},touchEnd(){if(!this.canTouchScroll)return;let t=null;const e=this.options.direction;if(this.delay=50,1===e)this.yPos>0&&(this.yPos=0);else if(0===e){const t=this.realBoxHeight/2*-1;this.yPos<t&&(this.yPos=t)}else if(2===e)this.xPos>0&&(this.xPos=0);else if(3===e){const t=-1*this.realBoxWidth;this.xPos<t&&(this.xPos=t)}t&&clearTimeout(t),t=setTimeout((()=>{this.delay=0,this._move()}),this.delay)},enter(){this.hoverStopSwitch&&this._stopMove()},leave(){this.hoverStopSwitch&&this._startMove()},_move(){this.isHover||(this._cancle(),this.reqFrame=requestAnimationFrame(function(){const t=this.realBoxHeight/2,e=this.realBoxWidth/2,{direction:r,waitTime:n}=this.options,{step:i}=this;1===r?(Math.abs(this.yPos)>=t&&(this.$emit("ScrollEnd"),this.yPos=0),this.yPos-=i):0===r?(this.yPos>=0&&(this.$emit("ScrollEnd"),this.yPos=-1*t),this.yPos+=i):2===r?(Math.abs(this.xPos)>=e&&(this.$emit("ScrollEnd"),this.xPos=0),this.xPos-=i):3===r&&(this.xPos>=0&&(this.$emit("ScrollEnd"),this.xPos=-1*e),this.xPos+=i),this.singleWaitTime&&clearTimeout(this.singleWaitTime),this.realSingleStopHeight?Math.abs(this.yPos)%this.realSingleStopHeight<i?this.singleWaitTime=setTimeout((()=>{this._move()}),n):this._move():this.realSingleStopWidth&&Math.abs(this.xPos)%this.realSingleStopWidth<i?this.singleWaitTime=setTimeout((()=>{this._move()}),n):this._move()}.bind(this)))},_initMove(){this.$nextTick((()=>{const{switchDelay:t}=this.options,{autoPlay:e,isHorizontal:r}=this;if(this._dataWarm(this.data),this.copyHtml="",r){this.height=this.$refs.wrap.offsetHeight,this.width=this.$refs.wrap.offsetWidth;let t=this.$refs.slotList.offsetWidth;e&&(t=2*t+1),this.$refs.realBox.style.width=t+"px",this.realBoxWidth=t}if(!e)return this.ease="linear",void(this.delay=t);this.ease="ease-in",this.delay=0,this.scrollSwitch?(this.copyHtml=this.$refs.slotList.innerHTML,setTimeout((()=>{this.realBoxHeight=this.$refs.realBox.offsetHeight,this._move()}),0)):(this._cancle(),this.yPos=this.xPos=0)}))},_dataWarm(t){t.length>100&&console.warn(`数据达到了${t.length}条有点多哦~,可能会造成部分老旧浏览器卡顿。`)},_startMove(){this.isHover=!1,this._move()},_stopMove(){this.isHover=!0,this.singleWaitTime&&clearTimeout(this.singleWaitTime),this._cancle()}},created(){window.cancelAnimationFrame=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(t){return window.clearTimeout(t)},window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)}},mounted(){this._initMove()},watch:{data(t,e){this._dataWarm(t),function(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(t[r]!==e[r])return!1;return!0}(t,e)||this.reset()},autoPlay(t){t?this.reset():this._stopMove()}},beforeCreate(){this.reqFrame=null,this.singleWaitTime=null,this.isHover=!1,this.ease="ease-in"},beforeDestroy(){this._cancle(),clearTimeout(this.singleWaitTime)}};var Gc=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{ref:"wrap"},[t.navigation?r("div",{class:t.leftSwitchClass,style:t.leftSwitch,on:{click:t.leftSwitchClick}},[t._t("left-switch")],2):t._e(),t._v(" "),t.navigation?r("div",{class:t.rightSwitchClass,style:t.rightSwitch,on:{click:t.rightSwitchClick}},[t._t("right-switch")],2):t._e(),t._v(" "),r("div",{ref:"realBox",style:t.pos,on:{mouseenter:t.enter,mouseleave:t.leave,touchstart:t.touchStart,touchmove:t.touchMove,touchend:t.touchEnd}},[r("div",{ref:"slotList",style:t.float},[t._t("default")],2),t._v(" "),r("div",{style:t.float,domProps:{innerHTML:t._s(t.copyHtml)}})])])};Gc._withStripped=!0;const zc=Dc({render:Gc,staticRenderFns:[]},undefined,Uc,undefined,false,undefined,!1,void 0,void 0,void 0);var qc={name:"BaseCarouselProgress",inheritAttrs:!1,props:{list:{type:Array,default:function(){return[]}},ctCls:{type:String},barColor:{type:Array,default:function(){return["#00FFAB","#1679FF"]}},colorDirection:{type:String,default:"right"},dotBorder:{type:String,default:"#1570ED"},dotShadow:{type:String,default:"#0CFEFF"},borderCls:{type:String,default:""},isScroll:{type:Boolean,default:!0}},computed:{barBGColor:function(){if(this.barColor&&1===this.barColor.length)return"".concat(this.barColor[0]);var t=this.barColor.join(",");return"linear-gradient(to ".concat(this.colorDirection,", ").concat(t,")")},dotStyle:function(){return"border: 2px solid ".concat(this.dotBorder,"; box-shadow: 0px 0px 10px 0px ").concat(this.dotShadow,";")},classOption:function(){return{step:.2,limitMoveNum:this.isScroll?0:this.list.length,hoverStop:!0,direction:1,openWatch:!0,singleHeight:0,singleWidth:0,waitTime:1e3}}},watch:{list:{immediate:!0,handler:function(t){t.length&&this.initComponents()}}},data:function(){return{rankList:[]}},methods:{initComponents:function(){var t=this;this.$nextTick((function(){(t.list||[]).map((function(e,r){t.$set(t.rankList,r,e)}))}))},barWidth:function(t){if(t.percent){var e=t.percent>1?t.percent:100*t.percent;return"".concat(e,"%")}var r=(100*t.value/t.total).toFixed(2);return"".concat(r,"%")},createProgressItem:function(){for(var t=[],e=this.$createElement,r=0,n=this.list.length;r<n;r++){var i=this.list[r],o=e("div",{class:{"progress-item-top":!0}},[e("p",{},[e("span",{class:"label-rank"},["No.".concat(i.rank||r+1)]),e("span",{class:"label-name"},[i.name])]),e("p",{},[i.value?"".concat(i.value," ").concat(i.unit):""])]),s=e("div",{class:{"progress-item-bar":!0},style:{border:this.borderCls}},[e("div",{class:"progress-item-bar-content",style:{background:this.barBGColor,width:this.barWidth(i)}}),e("span",{class:"progress-item-bar-dot",style:this.dotStyle},[])]);t.push(e("div",{class:{"progress-item":!0}},[o,s]))}return t}},render:function(t){return t(zc,{class:(e={"base-carousel-progress__wrapper":!0},r=this.ctCls,n=this.ctCls,r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e),props:{data:this.list,"class-option":this.classOption}},[t("div",{class:{progress:!0}},[this.createProgressItem()])]);var e,r,n}};qc.install=function(t,e){var r;if(r="按需加载独立组件:"+qc.name,"development"!==process.env.NODE_ENV&&"dev"!==process.env.NODE_ENV||console.warn(r),n(e)&&!i(e))for(var o=0;o<e.length;o++)e[o].name!==qc.name&&t.use(e[o]);t.component(qc.name,qc)},exports.BaseCarouselProgress=qc;