UNPKG

shu-c-view

Version:

rollup 打包vue@2.7组件库框架

7 lines (6 loc) 26.6 kB
/*! * shu-c-view v2.0.0 * (c) 2024-04-23 * @license MIT */ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lodash/isArray"),e=require("lodash/isEmpty"),r=require("lodash/has"),n=require("lodash/get");function o(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var i,u,a=o(t),c=o(e),s=o(r),f=o(n),l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},p=function(t){try{return!!t()}catch(t){return!0}},g=!p((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d=function(t){return t&&t.Math==Math&&t},h=d("object"==typeof globalThis&&globalThis)||d("object"==typeof window&&window)||d("object"==typeof self&&self)||d("object"==typeof l&&l)||function(){return this}()||Function("return this")(),v=!p((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),y=v,b=Function.prototype,m=b.call,x=y&&b.bind.bind(m,m),S=y?x:function(t){return function(){return m.apply(t,arguments)}},E="object"==typeof document&&document.all,O={all:E,IS_HTMLDDA:void 0===E&&void 0!==E},w=O.all,I=O.IS_HTMLDDA?function(t){return"function"==typeof t||t===w}:function(t){return"function"==typeof t},j=p,P=I,_=/#|\.prototype\./,N=function(t,e){var r=T[R(t)];return r==k||r!=A&&(P(e)?j(e):!!e)},R=N.normalize=function(t){return String(t).replace(_,".").toLowerCase()},T=N.data={},A=N.NATIVE="N",k=N.POLYFILL="P",F=N,M={},C=I,D=O.all,V=O.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:C(t)||t===D}:function(t){return"object"==typeof t?null!==t:C(t)},$=V,L=h.document,B=$(L)&&$(L.createElement),z=function(t){return B?L.createElement(t):{}},U=z,Y=!g&&!p((function(){return 7!=Object.defineProperty(U("div"),"a",{get:function(){return 7}}).a})),q=g&&p((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),G=V,K=String,W=TypeError,H=function(t){if(G(t))return t;throw W(K(t)+" is not an object")},X=v,J=Function.prototype.call,Q=X?J.bind(J):function(){return J.apply(J,arguments)},Z=h,tt=I,et=function(t){return tt(t)?t:void 0},rt=function(t,e){return arguments.length<2?et(Z[t]):Z[t]&&Z[t][e]},nt=S({}.isPrototypeOf),ot=h,it=rt("navigator","userAgent")||"",ut=ot.process,at=ot.Deno,ct=ut&&ut.versions||at&&at.version,st=ct&&ct.v8;st&&(u=(i=st.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!u&&it&&(!(i=it.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=it.match(/Chrome\/(\d+)/))&&(u=+i[1]);var ft=u,lt=p,pt=!!Object.getOwnPropertySymbols&&!lt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ft&&ft<41})),gt=pt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,dt=rt,ht=I,vt=nt,yt=Object,bt=gt?function(t){return"symbol"==typeof t}:function(t){var e=dt("Symbol");return ht(e)&&vt(e.prototype,yt(t))},mt=String,xt=I,St=function(t){try{return mt(t)}catch(t){return"Object"}},Et=TypeError,Ot=function(t){return null==t},wt=function(t){if(xt(t))return t;throw Et(St(t)+" is not a function")},It=Ot,jt=function(t,e){var r=t[e];return It(r)?void 0:wt(r)},Pt=Q,_t=I,Nt=V,Rt=TypeError,Tt={exports:{}},At=h,kt=Object.defineProperty,Ft=function(t,e){try{kt(At,t,{value:e,configurable:!0,writable:!0})}catch(r){At[t]=e}return e},Mt=Ft,Ct=h["__core-js_shared__"]||Mt("__core-js_shared__",{}),Dt=Ct;(Tt.exports=function(t,e){return Dt[t]||(Dt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Vt=Ot,$t=TypeError,Lt=function(t){if(Vt(t))throw $t("Can't call method on "+t);return t},Bt=Lt,zt=Object,Ut=function(t){return zt(Bt(t))},Yt=Ut,qt=S({}.hasOwnProperty),Gt=Object.hasOwn||function(t,e){return qt(Yt(t),e)},Kt=S,Wt=0,Ht=Math.random(),Xt=Kt(1..toString),Jt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Xt(++Wt+Ht,36)},Qt=h,Zt=Tt.exports,te=Gt,ee=Jt,re=pt,ne=gt,oe=Zt("wks"),ie=Qt.Symbol,ue=ie&&ie.for,ae=ne?ie:ie&&ie.withoutSetter||ee,ce=function(t){if(!te(oe,t)||!re&&"string"!=typeof oe[t]){var e="Symbol."+t;re&&te(ie,t)?oe[t]=ie[t]:oe[t]=ne&&ue?ue(e):ae(e)}return oe[t]},se=Q,fe=V,le=bt,pe=jt,ge=function(t,e){var r,n;if("string"===e&&_t(r=t.toString)&&!Nt(n=Pt(r,t)))return n;if(_t(r=t.valueOf)&&!Nt(n=Pt(r,t)))return n;if("string"!==e&&_t(r=t.toString)&&!Nt(n=Pt(r,t)))return n;throw Rt("Can't convert object to primitive value")},de=TypeError,he=ce("toPrimitive"),ve=function(t,e){if(!fe(t)||le(t))return t;var r,n=pe(t,he);if(n){if(void 0===e&&(e="default"),r=se(n,t,e),!fe(r)||le(r))return r;throw de("Can't convert object to primitive value")}return void 0===e&&(e="number"),ge(t,e)},ye=ve,be=bt,me=function(t){var e=ye(t,"string");return be(e)?e:e+""},xe=g,Se=Y,Ee=q,Oe=H,we=me,Ie=TypeError,je=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor;M.f=xe?Ee?function(t,e,r){if(Oe(t),e=we(e),Oe(r),"function"==typeof t&&"prototype"===e&&"value"in r&&"writable"in r&&!r.writable){var n=Pe(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return je(t,e,r)}:je:function(t,e,r){if(Oe(t),e=we(e),Oe(r),Se)try{return je(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Ie("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var _e={exports:{}},Ne=g,Re=Gt,Te=Function.prototype,Ae=Ne&&Object.getOwnPropertyDescriptor,ke=Re(Te,"name"),Fe={EXISTS:ke,PROPER:ke&&"something"===function(){}.name,CONFIGURABLE:ke&&(!Ne||Ne&&Ae(Te,"name").configurable)},Me=I,Ce=Ct,De=S(Function.toString);Me(Ce.inspectSource)||(Ce.inspectSource=function(t){return De(t)});var Ve,$e,Le,Be=Ce.inspectSource,ze=I,Ue=h.WeakMap,Ye=ze(Ue)&&/native code/.test(String(Ue)),qe=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ge=M,Ke=qe,We=g?function(t,e,r){return Ge.f(t,e,Ke(1,r))}:function(t,e,r){return t[e]=r,t},He=Tt.exports,Xe=Jt,Je=He("keys"),Qe=function(t){return Je[t]||(Je[t]=Xe(t))},Ze={},tr=Ye,er=h,rr=V,nr=We,or=Gt,ir=Ct,ur=Qe,ar=Ze,cr=er.TypeError,sr=er.WeakMap;if(tr||ir.state){var fr=ir.state||(ir.state=new sr);fr.get=fr.get,fr.has=fr.has,fr.set=fr.set,Ve=function(t,e){if(fr.has(t))throw cr("Object already initialized");return e.facade=t,fr.set(t,e),e},$e=function(t){return fr.get(t)||{}},Le=function(t){return fr.has(t)}}else{var lr=ur("state");ar[lr]=!0,Ve=function(t,e){if(or(t,lr))throw cr("Object already initialized");return e.facade=t,nr(t,lr,e),e},$e=function(t){return or(t,lr)?t[lr]:{}},Le=function(t){return or(t,lr)}}var pr={set:Ve,get:$e,has:Le,enforce:function(t){return Le(t)?$e(t):Ve(t,{})},getterFor:function(t){return function(e){var r;if(!rr(e)||(r=$e(e)).type!==t)throw cr("Incompatible receiver, "+t+" required");return r}}},gr=p,dr=I,hr=Gt,vr=g,yr=Fe.CONFIGURABLE,br=Be,mr=pr.enforce,xr=pr.get,Sr=Object.defineProperty,Er=vr&&!gr((function(){return 8!==Sr((function(){}),"length",{value:8}).length})),Or=String(String).split("String"),wr=_e.exports=function(t,e,r){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!hr(t,"name")||yr&&t.name!==e)&&(vr?Sr(t,"name",{value:e,configurable:!0}):t.name=e),Er&&r&&hr(r,"arity")&&t.length!==r.arity&&Sr(t,"length",{value:r.arity});try{r&&hr(r,"constructor")&&r.constructor?vr&&Sr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=mr(t);return hr(n,"source")||(n.source=Or.join("string"==typeof e?e:"")),t};Function.prototype.toString=wr((function(){return dr(this)&&xr(this).source||br(this)}),"toString");var Ir=I,jr=M,Pr=_e.exports,_r=Ft,Nr=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(Ir(r)&&Pr(r,i,n),n.global)o?t[e]=r:_r(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:jr.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},Rr=I,Tr=String,Ar=TypeError,kr=S,Fr=H,Mr=function(t){if("object"==typeof t||Rr(t))return t;throw Ar("Can't set "+Tr(t)+" as a prototype")},Cr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=kr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Fr(r),Mr(n),e?t(r,n):r.__proto__=n,r}}():void 0),Dr=I,Vr=V,$r=Cr,Lr=function(t,e,r){var n,o;return $r&&Dr(n=e.constructor)&&n!==r&&Vr(o=n.prototype)&&o!==r.prototype&&$r(t,o),t},Br={},zr=S,Ur=zr({}.toString),Yr=zr("".slice),qr=function(t){return Yr(Ur(t),8,-1)},Gr=p,Kr=qr,Wr=Object,Hr=S("".split),Xr=Gr((function(){return!Wr("z").propertyIsEnumerable(0)}))?function(t){return"String"==Kr(t)?Hr(t,""):Wr(t)}:Wr,Jr=Lt,Qr=function(t){return Xr(Jr(t))},Zr=Math.ceil,tn=Math.floor,en=Math.trunc||function(t){var e=+t;return(e>0?tn:Zr)(e)},rn=function(t){var e=+t;return e!=e||0===e?0:en(e)},nn=rn,on=Math.max,un=Math.min,an=rn,cn=Math.min,sn=function(t){return t>0?cn(an(t),9007199254740991):0},fn=sn,ln=Qr,pn=function(t,e){var r=nn(t);return r<0?on(r+e,0):un(r,e)},gn=function(t){return fn(t.length)},dn=function(t){return function(e,r,n){var o,i=ln(e),u=gn(i),a=pn(n,u);if(t&&r!=r){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===r)return t||a||0;return!t&&-1}},hn={includes:dn(!0),indexOf:dn(!1)},vn=Gt,yn=Qr,bn=hn.indexOf,mn=Ze,xn=S([].push),Sn=function(t,e){var r,n=yn(t),o=0,i=[];for(r in n)!vn(mn,r)&&vn(n,r)&&xn(i,r);for(;e.length>o;)vn(n,r=e[o++])&&(~bn(i,r)||xn(i,r));return i},En=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],On=Sn,wn=En.concat("length","prototype");Br.f=Object.getOwnPropertyNames||function(t){return On(t,wn)};var In={},jn={},Pn={}.propertyIsEnumerable,_n=Object.getOwnPropertyDescriptor,Nn=_n&&!Pn.call({1:2},1);jn.f=Nn?function(t){var e=_n(this,t);return!!e&&e.enumerable}:Pn;var Rn=g,Tn=Q,An=jn,kn=qe,Fn=Qr,Mn=me,Cn=Gt,Dn=Y,Vn=Object.getOwnPropertyDescriptor;In.f=Rn?Vn:function(t,e){if(t=Fn(t),e=Mn(e),Dn)try{return Vn(t,e)}catch(t){}if(Cn(t,e))return kn(!Tn(An.f,t,e),t[e])};var $n=S(1..valueOf),Ln={};Ln[ce("toStringTag")]="z";var Bn="[object z]"===String(Ln),zn=I,Un=qr,Yn=ce("toStringTag"),qn=Object,Gn="Arguments"==Un(function(){return arguments}()),Kn=Bn?Un: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=qn(t),Yn))?r:Gn?Un(e):"Object"==(n=Un(e))&&zn(e.callee)?"Arguments":n},Wn=Kn,Hn=String,Xn=function(t){if("Symbol"===Wn(t))throw TypeError("Cannot convert a Symbol value to a string");return Hn(t)},Jn=Lt,Qn=Xn,Zn=S("".replace),to="[\t\n\v\f\r                 \u2028\u2029\ufeff]",eo=RegExp("^"+to+to+"*"),ro=RegExp(to+to+"*$"),no=function(t){return function(e){var r=Qn(Jn(e));return 1&t&&(r=Zn(r,eo,"")),2&t&&(r=Zn(r,ro,"")),r}},oo={start:no(1),end:no(2),trim:no(3)},io=g,uo=h,ao=S,co=F,so=Nr,fo=Gt,lo=Lr,po=nt,go=bt,ho=ve,vo=p,yo=Br.f,bo=In.f,mo=M.f,xo=$n,So=oo.trim,Eo=uo.Number,Oo=Eo.prototype,wo=uo.TypeError,Io=ao("".slice),jo=ao("".charCodeAt),Po=function(t){var e=ho(t,"number");return"bigint"==typeof e?e:_o(e)},_o=function(t){var e,r,n,o,i,u,a,c,s=ho(t,"number");if(go(s))throw wo("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=So(s),43===(e=jo(s,0))||45===e){if(88===(r=jo(s,2))||120===r)return NaN}else if(48===e){switch(jo(s,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+s}for(u=(i=Io(s,2)).length,a=0;a<u;a++)if((c=jo(i,a))<48||c>o)return NaN;return parseInt(i,n)}return+s};if(co("Number",!Eo(" 0o1")||!Eo("0b1")||Eo("+0x1"))){for(var No,Ro=function(t){var e=arguments.length<1?0:Eo(Po(t)),r=this;return po(Oo,r)&&vo((function(){xo(r)}))?lo(Object(e),r,Ro):e},To=io?yo(Eo):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Ao=0;To.length>Ao;Ao++)fo(Eo,No=To[Ao])&&!fo(Ro,No)&&mo(Ro,No,bo(Eo,No));Ro.prototype=Oo,Oo.constructor=Ro,so(uo,"Number",Ro,{constructor:!0})}var ko={};ko.f=Object.getOwnPropertySymbols;var Fo=rt,Mo=Br,Co=ko,Do=H,Vo=S([].concat),$o=Fo("Reflect","ownKeys")||function(t){var e=Mo.f(Do(t)),r=Co.f;return r?Vo(e,r(t)):e},Lo=Gt,Bo=$o,zo=In,Uo=M,Yo=h,qo=In.f,Go=We,Ko=Nr,Wo=Ft,Ho=function(t,e,r){for(var n=Bo(e),o=Uo.f,i=zo.f,u=0;u<n.length;u++){var a=n[u];Lo(t,a)||r&&Lo(r,a)||o(t,a,i(e,a))}},Xo=F,Jo=function(t,e){var r,n,o,i,u,a=t.target,c=t.global,s=t.stat;if(r=c?Yo:s?Yo[a]||Wo(a,{}):(Yo[a]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(u=qo(r,n))&&u.value:r[n],!Xo(c?n:a+(s?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ho(i,o)}(t.sham||o&&o.sham)&&Go(i,"sham",!0),Ko(r,n,i,t)}},Qo=rn,Zo=Xn,ti=Lt,ei=RangeError,ri=Jo,ni=S,oi=rn,ii=$n,ui=function(t){var e=Zo(ti(this)),r="",n=Qo(t);if(n<0||n==1/0)throw ei("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r},ai=p,ci=RangeError,si=String,fi=Math.floor,li=ni(ui),pi=ni("".slice),gi=ni(1..toFixed),di=function(t,e,r){return 0===e?r:e%2==1?di(t,e-1,r*t):di(t*t,e/2,r)},hi=function(t,e,r){for(var n=-1,o=r;++n<6;)o+=e*t[n],t[n]=o%1e7,o=fi(o/1e7)},vi=function(t,e){for(var r=6,n=0;--r>=0;)n+=t[r],t[r]=fi(n/e),n=n%e*1e7},yi=function(t){for(var e=6,r="";--e>=0;)if(""!==r||0===e||0!==t[e]){var n=si(t[e]);r=""===r?n:r+li("0",7-n.length)+n}return r};ri({target:"Number",proto:!0,forced:ai((function(){return"0.000"!==gi(8e-5,3)||"1"!==gi(.9,0)||"1.25"!==gi(1.255,2)||"1000000000000000128"!==gi(0xde0b6b3a7640080,0)}))||!ai((function(){gi({})}))},{toFixed:function(t){var e,r,n,o,i=ii(this),u=oi(t),a=[0,0,0,0,0,0],c="",s="0";if(u<0||u>20)throw ci("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return si(i);if(i<0&&(c="-",i=-i),i>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}(i*di(2,69,1))-69)<0?i*di(2,-e,1):i/di(2,e,1),r*=4503599627370496,(e=52-e)>0){for(hi(a,0,r),n=u;n>=7;)hi(a,1e7,0),n-=7;for(hi(a,di(10,n,1),0),n=e-1;n>=23;)vi(a,1<<23),n-=23;vi(a,1<<n),hi(a,1,1),vi(a,2),s=yi(a)}else hi(a,0,r),hi(a,1<<-e,0),s=yi(a)+li("0",u);return s=u>0?c+((o=s.length)<=u?"0."+li("0",u-o)+s:pi(s,0,o-u)+"."+pi(s,o-u)):c+s}});var bi=g,mi=Fe.EXISTS,xi=S,Si=M.f,Ei=Function.prototype,Oi=xi(Ei.toString),wi=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Ii=xi(wi.exec);bi&&!mi&&Si(Ei,"name",{configurable:!0,get:function(){try{return Ii(wi,Oi(this))[1]}catch(t){return""}}});var ji=H,Pi=function(){var t=ji(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},_i=p,Ni=h.RegExp,Ri=_i((function(){var t=Ni("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Ti=Ri||_i((function(){return!Ni("a","y").sticky})),Ai=Ri||_i((function(){var t=Ni("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),ki={BROKEN_CARET:Ai,MISSED_STICKY:Ti,UNSUPPORTED_Y:Ri},Fi={},Mi=Sn,Ci=En,Di=Object.keys||function(t){return Mi(t,Ci)},Vi=g,$i=q,Li=M,Bi=H,zi=Qr,Ui=Di;Fi.f=Vi&&!$i?Object.defineProperties:function(t,e){Bi(t);for(var r,n=zi(e),o=Ui(e),i=o.length,u=0;i>u;)Li.f(t,r=o[u++],n[r]);return t};var Yi,qi=rt("document","documentElement"),Gi=H,Ki=Fi,Wi=En,Hi=Ze,Xi=qi,Ji=z,Qi=Qe("IE_PROTO"),Zi=function(){},tu=function(t){return"<script>"+t+"<\/script>"},eu=function(t){t.write(tu("")),t.close();var e=t.parentWindow.Object;return t=null,e},ru=function(){try{Yi=new ActiveXObject("htmlfile")}catch(t){}var t,e;ru="undefined"!=typeof document?document.domain&&Yi?eu(Yi):((e=Ji("iframe")).style.display="none",Xi.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(tu("document.F=Object")),t.close(),t.F):eu(Yi);for(var r=Wi.length;r--;)delete ru.prototype[Wi[r]];return ru()};Hi[Qi]=!0;var nu=Object.create||function(t,e){var r;return null!==t?(Zi.prototype=Gi(t),r=new Zi,Zi.prototype=null,r[Qi]=t):r=ru(),void 0===e?r:Ki.f(r,e)},ou=p,iu=h.RegExp,uu=ou((function(){var t=iu(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),au=p,cu=h.RegExp,su=au((function(){var t=cu("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),fu=Q,lu=S,pu=Xn,gu=Pi,du=ki,hu=Tt.exports,vu=nu,yu=pr.get,bu=uu,mu=su,xu=hu("native-string-replace",String.prototype.replace),Su=RegExp.prototype.exec,Eu=Su,Ou=lu("".charAt),wu=lu("".indexOf),Iu=lu("".replace),ju=lu("".slice),Pu=function(){var t=/a/,e=/b*/g;return fu(Su,t,"a"),fu(Su,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),_u=du.BROKEN_CARET,Nu=void 0!==/()??/.exec("")[1];(Pu||Nu||_u||bu||mu)&&(Eu=function(t){var e,r,n,o,i,u,a,c=this,s=yu(c),f=pu(t),l=s.raw;if(l)return l.lastIndex=c.lastIndex,e=fu(Eu,l,f),c.lastIndex=l.lastIndex,e;var p=s.groups,g=_u&&c.sticky,d=fu(gu,c),h=c.source,v=0,y=f;if(g&&(d=Iu(d,"y",""),-1===wu(d,"g")&&(d+="g"),y=ju(f,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Ou(f,c.lastIndex-1))&&(h="(?: "+h+")",y=" "+y,v++),r=new RegExp("^(?:"+h+")",d)),Nu&&(r=new RegExp("^"+h+"$(?!\\s)",d)),Pu&&(n=c.lastIndex),o=fu(Su,g?r:c,y),g?o?(o.input=ju(o.input,v),o[0]=ju(o[0],v),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Pu&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),Nu&&o&&o.length>1&&fu(xu,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=u=vu(null),i=0;i<p.length;i++)u[(a=p[i])[0]]=o[a[1]];return o});var Ru=Eu;Jo({target:"RegExp",proto:!0,forced:/./.exec!==Ru},{exec:Ru});var Tu,Au,ku=Jo,Fu=Q,Mu=I,Cu=H,Du=Xn,Vu=(Tu=!1,(Au=/[ac]/).exec=function(){return Tu=!0,/./.exec.apply(this,arguments)},!0===Au.test("abc")&&Tu),$u=/./.test;ku({target:"RegExp",proto:!0,forced:!Vu},{test:function(t){var e=Cu(this),r=Du(t),n=e.exec;if(!Mu(n))return Fu($u,e,r);var o=Fu(n,e,r);return null!==o&&(Cu(o),!0)}});var Lu=v,Bu=Function.prototype,zu=Bu.apply,Uu=Bu.call,Yu="object"==typeof Reflect&&Reflect.apply||(Lu?Uu.bind(zu):function(){return Uu.apply(zu,arguments)}),qu=qr,Gu=S,Ku=function(t){if("Function"===qu(t))return Gu(t)},Wu=Nr,Hu=Ru,Xu=p,Ju=ce,Qu=We,Zu=Ju("species"),ta=RegExp.prototype,ea=S,ra=rn,na=Xn,oa=Lt,ia=ea("".charAt),ua=ea("".charCodeAt),aa=ea("".slice),ca=function(t){return function(e,r){var n,o,i=na(oa(e)),u=ra(r),a=i.length;return u<0||u>=a?t?"":void 0:(n=ua(i,u))<55296||n>56319||u+1===a||(o=ua(i,u+1))<56320||o>57343?t?ia(i,u):n:t?aa(i,u,u+2):o-56320+(n-55296<<10)+65536}},sa={codeAt:ca(!1),charAt:ca(!0)}.charAt,fa=S,la=Ut,pa=Math.floor,ga=fa("".charAt),da=fa("".replace),ha=fa("".slice),va=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ya=/\$([$&'`]|\d{1,2})/g,ba=Q,ma=H,xa=I,Sa=qr,Ea=Ru,Oa=TypeError,wa=Yu,Ia=Q,ja=S,Pa=function(t,e,r,n){var o=Ju(t),i=!Xu((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),u=i&&!Xu((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Zu]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!u||r){var a=Ku(/./[o]),c=e(o,""[t],(function(t,e,r,n,o){var u=Ku(t),c=e.exec;return c===Hu||c===ta.exec?i&&!o?{done:!0,value:a(e,r,n)}:{done:!0,value:u(r,e,n)}:{done:!1}}));Wu(String.prototype,t,c[0]),Wu(ta,o,c[1])}n&&Qu(ta[o],"sham",!0)},_a=p,Na=H,Ra=I,Ta=Ot,Aa=rn,ka=sn,Fa=Xn,Ma=Lt,Ca=function(t,e,r){return e+(r?sa(t,e).length:1)},Da=jt,Va=function(t,e,r,n,o,i){var u=r+t.length,a=n.length,c=ya;return void 0!==o&&(o=la(o),c=va),da(i,c,(function(i,c){var s;switch(ga(c,0)){case"$":return"$";case"&":return t;case"`":return ha(e,0,r);case"'":return ha(e,u);case"<":s=o[ha(c,1,-1)];break;default:var f=+c;if(0===f)return i;if(f>a){var l=pa(f/10);return 0===l?i:l<=a?void 0===n[l-1]?ga(c,1):n[l-1]+ga(c,1):i}s=n[f-1]}return void 0===s?"":s}))},$a=function(t,e){var r=t.exec;if(xa(r)){var n=ba(r,t,e);return null!==n&&ma(n),n}if("RegExp"===Sa(t))return ba(Ea,t,e);throw Oa("RegExp#exec called on incompatible receiver")},La=ce("replace"),Ba=Math.max,za=Math.min,Ua=ja([].concat),Ya=ja([].push),qa=ja("".indexOf),Ga=ja("".slice),Ka="$0"==="a".replace(/./,"$0"),Wa=!!/./[La]&&""===/./[La]("a","$0"),Ha=!_a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));Pa("replace",(function(t,e,r){var n=Wa?"$":"$0";return[function(t,r){var n=Ma(this),o=Ta(t)?void 0:Da(t,La);return o?Ia(o,t,n,r):Ia(e,Fa(n),t,r)},function(t,o){var i=Na(this),u=Fa(t);if("string"==typeof o&&-1===qa(o,n)&&-1===qa(o,"$<")){var a=r(e,i,u,o);if(a.done)return a.value}var c=Ra(o);c||(o=Fa(o));var s=i.global;if(s){var f=i.unicode;i.lastIndex=0}for(var l=[];;){var p=$a(i,u);if(null===p)break;if(Ya(l,p),!s)break;""===Fa(p[0])&&(i.lastIndex=Ca(u,ka(i.lastIndex),f))}for(var g,d="",h=0,v=0;v<l.length;v++){for(var y=Fa((p=l[v])[0]),b=Ba(za(Aa(p.index),u.length),0),m=[],x=1;x<p.length;x++)Ya(m,void 0===(g=p[x])?g:String(g));var S=p.groups;if(c){var E=Ua([y],m,b,u);void 0!==S&&Ya(E,S);var O=Fa(wa(o,void 0,E))}else O=Va(y,u,b,m,S,o);b>=h&&(d+=Ga(u,h,b)+O,h=b+y.length)}return d+Ga(u,h)}]}),!Ha||!Ka||Wa);var Xa=V,Ja=qr,Qa=ce("match"),Za=Q,tc=Gt,ec=nt,rc=Pi,nc=RegExp.prototype,oc=function(t){var e=t.flags;return void 0!==e||"flags"in nc||tc(t,"flags")||!ec(nc,t)?e:Za(rc,t)},ic=M.f,uc=rt,ac=M,cc=g,sc=ce("species"),fc=g,lc=h,pc=S,gc=F,dc=Lr,hc=We,vc=Br.f,yc=nt,bc=function(t){var e;return Xa(t)&&(void 0!==(e=t[Qa])?!!e:"RegExp"==Ja(t))},mc=Xn,xc=oc,Sc=ki,Ec=function(t,e,r){r in t||ic(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})},Oc=Nr,wc=p,Ic=Gt,jc=pr.enforce,Pc=function(t){var e=uc(t),r=ac.f;cc&&e&&!e[sc]&&r(e,sc,{configurable:!0,get:function(){return this}})},_c=uu,Nc=su,Rc=ce("match"),Tc=lc.RegExp,Ac=Tc.prototype,kc=lc.SyntaxError,Fc=pc(Ac.exec),Mc=pc("".charAt),Cc=pc("".replace),Dc=pc("".indexOf),Vc=pc("".slice),$c=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Lc=/a/g,Bc=/a/g,zc=new Tc(Lc)!==Lc,Uc=Sc.MISSED_STICKY,Yc=Sc.UNSUPPORTED_Y,qc=fc&&(!zc||Uc||_c||Nc||wc((function(){return Bc[Rc]=!1,Tc(Lc)!=Lc||Tc(Bc)==Bc||"/a/i"!=Tc(Lc,"i")})));if(gc("RegExp",qc)){for(var Gc=function(t,e){var r,n,o,i,u,a,c=yc(Ac,this),s=bc(t),f=void 0===e,l=[],p=t;if(!c&&s&&f&&t.constructor===Gc)return t;if((s||yc(Ac,t))&&(t=t.source,f&&(e=xc(p))),t=void 0===t?"":mc(t),e=void 0===e?"":mc(e),p=t,_c&&"dotAll"in Lc&&(n=!!e&&Dc(e,"s")>-1)&&(e=Cc(e,/s/g,"")),r=e,Uc&&"sticky"in Lc&&(o=!!e&&Dc(e,"y")>-1)&&Yc&&(e=Cc(e,/y/g,"")),Nc&&(i=function(t){for(var e,r=t.length,n=0,o="",i=[],u={},a=!1,c=!1,s=0,f="";n<=r;n++){if("\\"===(e=Mc(t,n)))e+=Mc(t,++n);else if("]"===e)a=!1;else if(!a)switch(!0){case"["===e:a=!0;break;case"("===e:Fc($c,Vc(t,n+1))&&(n+=2,c=!0),o+=e,s++;continue;case">"===e&&c:if(""===f||Ic(u,f))throw new kc("Invalid capture group name");u[f]=!0,i[i.length]=[f,s],c=!1,f="";continue}c?f+=e:o+=e}return[o,i]}(t),t=i[0],l=i[1]),u=dc(Tc(t,e),c?this:Ac,Gc),(n||o||l.length)&&(a=jc(u),n&&(a.dotAll=!0,a.raw=Gc(function(t){for(var e,r=t.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(e=Mc(t,n))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+Mc(t,++n);return o}(t),r)),o&&(a.sticky=!0),l.length&&(a.groups=l)),t!==p)try{hc(u,"source",""===p?"(?:)":p)}catch(t){}return u},Kc=vc(Tc),Wc=0;Kc.length>Wc;)Ec(Gc,Tc,Kc[Wc++]);Ac.constructor=Gc,Gc.prototype=Ac,Oc(lc,"RegExp",Gc,{constructor:!0})}Pc("RegExp");var Hc=_e.exports,Xc=M,Jc=g,Qc=ki.MISSED_STICKY,Zc=qr,ts=function(t,e,r){return r.get&&Hc(r.get,e,{getter:!0}),r.set&&Hc(r.set,e,{setter:!0}),Xc.f(t,e,r)},es=pr.get,rs=RegExp.prototype,ns=TypeError;Jc&&Qc&&ts(rs,"sticky",{configurable:!0,get:function(){if(this!==rs){if("RegExp"===Zc(this))return!!es(this).sticky;throw ns("Incompatible receiver, RegExp required")}}});var os=Fe.PROPER,is=Nr,us=H,as=Xn,cs=p,ss=oc,fs=RegExp.prototype.toString,ls=cs((function(){return"/a/b"!=fs.call({source:"a",flags:"b"})})),ps=os&&"toString"!=fs.name;(ls||ps)&&is(RegExp.prototype,"toString",(function(){var t=us(this);return"/"+as(t.source)+"/"+as(ss(t))}),{unsafe:!0});var gs={props:{options:{type:Array,default:function(){return[]}},outerBackgroundColor:{type:String,default:"rgba(247, 248, 250, 100)"},isShowOuterBackground:{type:Boolean,default:!0},displayName:{type:String,default:"name"},percentValue:{type:String,default:"percent"},colors:{type:Array,default:function(){return["green","pink","red","yellow"]}},toFixed:{type:Number},outerHeight:{type:String,default:"20px"},isPercent:{type:Boolean,default:!0},currentValue:{type:[String]},totalValue:{type:[String]},dealPercentValue:{type:Function}},data:function(){return{toFixedNumber:null}},methods:{createProgress:function(){for(var t=[],e=this.$createElement,r=0;r<this.options.length;r++){var n=this.options[r][this.percentValue],o=this.options[r][this.currentValue]/this.options[r][this.totalValue]*100,i=this.isPercent?n:o,u=e("div",{class:{"base-progress-item":!0},style:{display:"flex",height:"100%","background-color":this.colors[r%this.colors.length],width:"".concat(i,"%")}});t.push(u)}return t},createDesc:function(){for(var t=[],e=this.$createElement,r=0;r<this.options.length;r++){var n=this.options[r][this.percentValue],o=this.options[r][this.currentValue]/this.options[r][this.totalValue]*100,i=this.isPercent?n:o,u=e("div",{class:"base-progress-desc-item"},[e("div",{class:"base-progress-desc-item-dot",style:{"background-color":this.colors[r%this.colors.length]}},[]),e("div",{class:"base-progress-desc-item-name"},[this.options[r][this.displayName]]),f(this,"dealPercentValue")?"".concat(this.dealPercentValue(i),"%"):"".concat(this.dealValue(i),"%")]);t.push(u)}return t},dealValue:function(t){return t||0===t?t.toFixed(this.toFixedNumber):"-"},createInnerProgress:function(){var t=this.$createElement;return[t("div",{ref:"".concat(this.uid,"-base-progress-outer"),class:"base-progress-outer",style:{width:"100%",height:this.outerHeight,"background-color":this.isShowOuterBackground&&s(this.$props,"outerBackgroundColor")?this.outerBackgroundColor:""}},[t("div",{style:{display:"flex",height:"100%"}},this.createProgress())]),t("div",{class:"base-progress-desc"},this.createDesc())]}},render:function(t){return this.toFixedNumber=f(this,"toFixed",2),t("div",{},this.createInnerProgress())}};gs.install=function(t,e){var r;if(r="按需加载独立组件:".concat(gs.name),"development"!==process.env.NODE_ENV&&"dev"!==process.env.NODE_ENV||console.warn(r),a(e)&&!c(e))for(var n=0;n<e.length;n++)e[n].name!==gs.name&&t.use(e[n]);t.component(gs.name,gs)},exports.BaseInnerProgress=gs;