UNPKG

shu-c-view

Version:

rollup 打包vue@2.7组件库框架

7 lines (6 loc) 28.1 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/has"),e=require("lodash/isEmpty"),r=require("lodash/find"),n=require("lodash/isNil"),o=require("lodash/set"),i=require("lodash/omit"),u=require("lodash/isArray"),a=require("lodash/includes"),c=require("lodash/get");function s(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var l=s(t),f=s(e),p=s(r),d=s(n),h=s(o),g=s(i),v=s(u),y=s(a),b=s(c);var m="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},x=S("object"==typeof globalThis&&globalThis)||S("object"==typeof window&&window)||S("object"==typeof self&&self)||S("object"==typeof m&&m)||function(){return this}()||Function("return this")(),w={},E=function(t){try{return!!t()}catch(t){return!0}},O=!E((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),j=!E((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),P=j,I=Function.prototype.call,A=P?I.bind(I):function(){return I.apply(I,arguments)},R={},_={}.propertyIsEnumerable,D=Object.getOwnPropertyDescriptor,T=D&&!_.call({1:2},1);R.f=T?function(t){var e=D(this,t);return!!e&&e.enumerable}:_;var M,C,F=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},$=j,N=Function.prototype,k=N.call,L=$&&N.bind.bind(k,k),z=$?L:function(t){return function(){return k.apply(t,arguments)}},q=z,B=q({}.toString),J=q("".slice),U=function(t){return J(B(t),8,-1)},K=E,Y=U,G=Object,W=z("".split),V=K((function(){return!G("z").propertyIsEnumerable(0)}))?function(t){return"String"==Y(t)?W(t,""):G(t)}:G,H=function(t){return null==t},X=H,Q=TypeError,Z=function(t){if(X(t))throw Q("Can't call method on "+t);return t},tt=V,et=Z,rt=function(t){return tt(et(t))},nt="object"==typeof document&&document.all,ot={all:nt,IS_HTMLDDA:void 0===nt&&void 0!==nt},it=ot.all,ut=ot.IS_HTMLDDA?function(t){return"function"==typeof t||t===it}:function(t){return"function"==typeof t},at=ut,ct=ot.all,st=ot.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:at(t)||t===ct}:function(t){return"object"==typeof t?null!==t:at(t)},lt=x,ft=ut,pt=function(t){return ft(t)?t:void 0},dt=function(t,e){return arguments.length<2?pt(lt[t]):lt[t]&&lt[t][e]},ht=z({}.isPrototypeOf),gt=x,vt=dt("navigator","userAgent")||"",yt=gt.process,bt=gt.Deno,mt=yt&&yt.versions||bt&&bt.version,St=mt&&mt.v8;St&&(C=(M=St.split("."))[0]>0&&M[0]<4?1:+(M[0]+M[1])),!C&&vt&&(!(M=vt.match(/Edge\/(\d+)/))||M[1]>=74)&&(M=vt.match(/Chrome\/(\d+)/))&&(C=+M[1]);var xt=C,wt=xt,Et=E,Ot=!!Object.getOwnPropertySymbols&&!Et((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&wt&&wt<41})),jt=Ot&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Pt=dt,It=ut,At=ht,Rt=Object,_t=jt?function(t){return"symbol"==typeof t}:function(t){var e=Pt("Symbol");return It(e)&&At(e.prototype,Rt(t))},Dt=String,Tt=ut,Mt=function(t){try{return Dt(t)}catch(t){return"Object"}},Ct=TypeError,Ft=function(t){if(Tt(t))return t;throw Ct(Mt(t)+" is not a function")},$t=H,Nt=function(t,e){var r=t[e];return $t(r)?void 0:Ft(r)},kt=A,Lt=ut,zt=st,qt=TypeError,Bt={exports:{}},Jt=x,Ut=Object.defineProperty,Kt=function(t,e){try{Ut(Jt,t,{value:e,configurable:!0,writable:!0})}catch(r){Jt[t]=e}return e},Yt=Kt,Gt=x["__core-js_shared__"]||Yt("__core-js_shared__",{}),Wt=Gt;(Bt.exports=function(t,e){return Wt[t]||(Wt[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=Z,Ht=Object,Xt=function(t){return Ht(Vt(t))},Qt=Xt,Zt=z({}.hasOwnProperty),te=Object.hasOwn||function(t,e){return Zt(Qt(t),e)},ee=z,re=0,ne=Math.random(),oe=ee(1..toString),ie=function(t){return"Symbol("+(void 0===t?"":t)+")_"+oe(++re+ne,36)},ue=x,ae=Bt.exports,ce=te,se=ie,le=Ot,fe=jt,pe=ae("wks"),de=ue.Symbol,he=de&&de.for,ge=fe?de:de&&de.withoutSetter||se,ve=function(t){if(!ce(pe,t)||!le&&"string"!=typeof pe[t]){var e="Symbol."+t;le&&ce(de,t)?pe[t]=de[t]:pe[t]=fe&&he?he(e):ge(e)}return pe[t]},ye=A,be=st,me=_t,Se=Nt,xe=function(t,e){var r,n;if("string"===e&&Lt(r=t.toString)&&!zt(n=kt(r,t)))return n;if(Lt(r=t.valueOf)&&!zt(n=kt(r,t)))return n;if("string"!==e&&Lt(r=t.toString)&&!zt(n=kt(r,t)))return n;throw qt("Can't convert object to primitive value")},we=TypeError,Ee=ve("toPrimitive"),Oe=function(t,e){if(!be(t)||me(t))return t;var r,n=Se(t,Ee);if(n){if(void 0===e&&(e="default"),r=ye(n,t,e),!be(r)||me(r))return r;throw we("Can't convert object to primitive value")}return void 0===e&&(e="number"),xe(t,e)},je=_t,Pe=function(t){var e=Oe(t,"string");return je(e)?e:e+""},Ie=st,Ae=x.document,Re=Ie(Ae)&&Ie(Ae.createElement),_e=function(t){return Re?Ae.createElement(t):{}},De=_e,Te=!O&&!E((function(){return 7!=Object.defineProperty(De("div"),"a",{get:function(){return 7}}).a})),Me=O,Ce=A,Fe=R,$e=F,Ne=rt,ke=Pe,Le=te,ze=Te,qe=Object.getOwnPropertyDescriptor;w.f=Me?qe:function(t,e){if(t=Ne(t),e=ke(e),ze)try{return qe(t,e)}catch(t){}if(Le(t,e))return $e(!Ce(Fe.f,t,e),t[e])};var Be={},Je=O&&E((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ue=st,Ke=String,Ye=TypeError,Ge=function(t){if(Ue(t))return t;throw Ye(Ke(t)+" is not an object")},We=O,Ve=Te,He=Je,Xe=Ge,Qe=Pe,Ze=TypeError,tr=Object.defineProperty,er=Object.getOwnPropertyDescriptor;Be.f=We?He?function(t,e,r){if(Xe(t),e=Qe(e),Xe(r),"function"==typeof t&&"prototype"===e&&"value"in r&&"writable"in r&&!r.writable){var n=er(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 tr(t,e,r)}:tr:function(t,e,r){if(Xe(t),e=Qe(e),Xe(r),Ve)try{return tr(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Ze("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var rr=Be,nr=F,or=O?function(t,e,r){return rr.f(t,e,nr(1,r))}:function(t,e,r){return t[e]=r,t},ir={exports:{}},ur=O,ar=te,cr=Function.prototype,sr=ur&&Object.getOwnPropertyDescriptor,lr=ar(cr,"name"),fr={EXISTS:lr,PROPER:lr&&"something"===function(){}.name,CONFIGURABLE:lr&&(!ur||ur&&sr(cr,"name").configurable)},pr=ut,dr=Gt,hr=z(Function.toString);pr(dr.inspectSource)||(dr.inspectSource=function(t){return hr(t)});var gr,vr,yr,br=dr.inspectSource,mr=ut,Sr=x.WeakMap,xr=mr(Sr)&&/native code/.test(String(Sr)),wr=Bt.exports,Er=ie,Or=wr("keys"),jr=function(t){return Or[t]||(Or[t]=Er(t))},Pr={},Ir=xr,Ar=x,Rr=st,_r=or,Dr=te,Tr=Gt,Mr=jr,Cr=Pr,Fr=Ar.TypeError,$r=Ar.WeakMap;if(Ir||Tr.state){var Nr=Tr.state||(Tr.state=new $r);Nr.get=Nr.get,Nr.has=Nr.has,Nr.set=Nr.set,gr=function(t,e){if(Nr.has(t))throw Fr("Object already initialized");return e.facade=t,Nr.set(t,e),e},vr=function(t){return Nr.get(t)||{}},yr=function(t){return Nr.has(t)}}else{var kr=Mr("state");Cr[kr]=!0,gr=function(t,e){if(Dr(t,kr))throw Fr("Object already initialized");return e.facade=t,_r(t,kr,e),e},vr=function(t){return Dr(t,kr)?t[kr]:{}},yr=function(t){return Dr(t,kr)}}var Lr={set:gr,get:vr,has:yr,enforce:function(t){return yr(t)?vr(t):gr(t,{})},getterFor:function(t){return function(e){var r;if(!Rr(e)||(r=vr(e)).type!==t)throw Fr("Incompatible receiver, "+t+" required");return r}}},zr=E,qr=ut,Br=te,Jr=O,Ur=fr.CONFIGURABLE,Kr=br,Yr=Lr.enforce,Gr=Lr.get,Wr=Object.defineProperty,Vr=Jr&&!zr((function(){return 8!==Wr((function(){}),"length",{value:8}).length})),Hr=String(String).split("String"),Xr=ir.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),(!Br(t,"name")||Ur&&t.name!==e)&&(Jr?Wr(t,"name",{value:e,configurable:!0}):t.name=e),Vr&&r&&Br(r,"arity")&&t.length!==r.arity&&Wr(t,"length",{value:r.arity});try{r&&Br(r,"constructor")&&r.constructor?Jr&&Wr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Yr(t);return Br(n,"source")||(n.source=Hr.join("string"==typeof e?e:"")),t};Function.prototype.toString=Xr((function(){return qr(this)&&Gr(this).source||Kr(this)}),"toString");var Qr=ut,Zr=Be,tn=ir.exports,en=Kt,rn=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(Qr(r)&&tn(r,i,n),n.global)o?t[e]=r:en(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:Zr.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},nn={},on=Math.ceil,un=Math.floor,an=Math.trunc||function(t){var e=+t;return(e>0?un:on)(e)},cn=function(t){var e=+t;return e!=e||0===e?0:an(e)},sn=cn,ln=Math.max,fn=Math.min,pn=cn,dn=Math.min,hn=function(t){return t>0?dn(pn(t),9007199254740991):0},gn=hn,vn=function(t){return gn(t.length)},yn=rt,bn=function(t,e){var r=sn(t);return r<0?ln(r+e,0):fn(r,e)},mn=vn,Sn=function(t){return function(e,r,n){var o,i=yn(e),u=mn(i),a=bn(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}},xn={includes:Sn(!0),indexOf:Sn(!1)},wn=te,En=rt,On=xn.indexOf,jn=Pr,Pn=z([].push),In=function(t,e){var r,n=En(t),o=0,i=[];for(r in n)!wn(jn,r)&&wn(n,r)&&Pn(i,r);for(;e.length>o;)wn(n,r=e[o++])&&(~On(i,r)||Pn(i,r));return i},An=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Rn=In,_n=An.concat("length","prototype");nn.f=Object.getOwnPropertyNames||function(t){return Rn(t,_n)};var Dn={};Dn.f=Object.getOwnPropertySymbols;var Tn=dt,Mn=nn,Cn=Dn,Fn=Ge,$n=z([].concat),Nn=Tn("Reflect","ownKeys")||function(t){var e=Mn.f(Fn(t)),r=Cn.f;return r?$n(e,r(t)):e},kn=te,Ln=Nn,zn=w,qn=Be,Bn=E,Jn=ut,Un=/#|\.prototype\./,Kn=function(t,e){var r=Gn[Yn(t)];return r==Vn||r!=Wn&&(Jn(e)?Bn(e):!!e)},Yn=Kn.normalize=function(t){return String(t).replace(Un,".").toLowerCase()},Gn=Kn.data={},Wn=Kn.NATIVE="N",Vn=Kn.POLYFILL="P",Hn=Kn,Xn=x,Qn=w.f,Zn=or,to=rn,eo=Kt,ro=function(t,e,r){for(var n=Ln(e),o=qn.f,i=zn.f,u=0;u<n.length;u++){var a=n[u];kn(t,a)||r&&kn(r,a)||o(t,a,i(e,a))}},no=Hn,oo=function(t,e){var r,n,o,i,u,a=t.target,c=t.global,s=t.stat;if(r=c?Xn:s?Xn[a]||eo(a,{}):(Xn[a]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(u=Qn(r,n))&&u.value:r[n],!no(c?n:a+(s?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;ro(i,o)}(t.sham||o&&o.sham)&&Zn(i,"sham",!0),to(r,n,i,t)}},io={};io[ve("toStringTag")]="z";var uo="[object z]"===String(io),ao=ut,co=U,so=ve("toStringTag"),lo=Object,fo="Arguments"==co(function(){return arguments}()),po=uo?co: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=lo(t),so))?r:fo?co(e):"Object"==(n=co(e))&&ao(e.callee)?"Arguments":n},ho=po,go=String,vo=function(t){if("Symbol"===ho(t))throw TypeError("Cannot convert a Symbol value to a string");return go(t)},yo=Ge,bo=function(){var t=yo(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},mo=E,So=x.RegExp,xo=mo((function(){var t=So("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),wo=xo||mo((function(){return!So("a","y").sticky})),Eo=xo||mo((function(){var t=So("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),Oo={BROKEN_CARET:Eo,MISSED_STICKY:wo,UNSUPPORTED_Y:xo},jo={},Po=In,Io=An,Ao=Object.keys||function(t){return Po(t,Io)},Ro=O,_o=Je,Do=Be,To=Ge,Mo=rt,Co=Ao;jo.f=Ro&&!_o?Object.defineProperties:function(t,e){To(t);for(var r,n=Mo(e),o=Co(e),i=o.length,u=0;i>u;)Do.f(t,r=o[u++],n[r]);return t};var Fo,$o=dt("document","documentElement"),No=Ge,ko=jo,Lo=An,zo=Pr,qo=$o,Bo=_e,Jo=jr("IE_PROTO"),Uo=function(){},Ko=function(t){return"<script>"+t+"<\/script>"},Yo=function(t){t.write(Ko("")),t.close();var e=t.parentWindow.Object;return t=null,e},Go=function(){try{Fo=new ActiveXObject("htmlfile")}catch(t){}var t,e;Go="undefined"!=typeof document?document.domain&&Fo?Yo(Fo):((e=Bo("iframe")).style.display="none",qo.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ko("document.F=Object")),t.close(),t.F):Yo(Fo);for(var r=Lo.length;r--;)delete Go.prototype[Lo[r]];return Go()};zo[Jo]=!0;var Wo=Object.create||function(t,e){var r;return null!==t?(Uo.prototype=No(t),r=new Uo,Uo.prototype=null,r[Jo]=t):r=Go(),void 0===e?r:ko.f(r,e)},Vo=E,Ho=x.RegExp,Xo=Vo((function(){var t=Ho(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Qo=E,Zo=x.RegExp,ti=Qo((function(){var t=Zo("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),ei=A,ri=z,ni=vo,oi=bo,ii=Oo,ui=Bt.exports,ai=Wo,ci=Lr.get,si=Xo,li=ti,fi=ui("native-string-replace",String.prototype.replace),pi=RegExp.prototype.exec,di=pi,hi=ri("".charAt),gi=ri("".indexOf),vi=ri("".replace),yi=ri("".slice),bi=function(){var t=/a/,e=/b*/g;return ei(pi,t,"a"),ei(pi,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),mi=ii.BROKEN_CARET,Si=void 0!==/()??/.exec("")[1];(bi||Si||mi||si||li)&&(di=function(t){var e,r,n,o,i,u,a,c=this,s=ci(c),l=ni(t),f=s.raw;if(f)return f.lastIndex=c.lastIndex,e=ei(di,f,l),c.lastIndex=f.lastIndex,e;var p=s.groups,d=mi&&c.sticky,h=ei(oi,c),g=c.source,v=0,y=l;if(d&&(h=vi(h,"y",""),-1===gi(h,"g")&&(h+="g"),y=yi(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==hi(l,c.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),r=new RegExp("^(?:"+g+")",h)),Si&&(r=new RegExp("^"+g+"$(?!\\s)",h)),bi&&(n=c.lastIndex),o=ei(pi,d?r:c,y),d?o?(o.input=yi(o.input,v),o[0]=yi(o[0],v),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:bi&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),Si&&o&&o.length>1&&ei(fi,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=ai(null),i=0;i<p.length;i++)u[(a=p[i])[0]]=o[a[1]];return o});var xi=di;oo({target:"RegExp",proto:!0,forced:/./.exec!==xi},{exec:xi});var wi,Ei,Oi=oo,ji=A,Pi=ut,Ii=Ge,Ai=vo,Ri=(wi=!1,(Ei=/[ac]/).exec=function(){return wi=!0,/./.exec.apply(this,arguments)},!0===Ei.test("abc")&&wi),_i=/./.test;Oi({target:"RegExp",proto:!0,forced:!Ri},{test:function(t){var e=Ii(this),r=Ai(t),n=e.exec;if(!Pi(n))return ji(_i,e,r);var o=ji(n,e,r);return null!==o&&(Ii(o),!0)}});var Di=j,Ti=Function.prototype,Mi=Ti.apply,Ci=Ti.call,Fi="object"==typeof Reflect&&Reflect.apply||(Di?Ci.bind(Mi):function(){return Ci.apply(Mi,arguments)}),$i=U,Ni=z,ki=function(t){if("Function"===$i(t))return Ni(t)},Li=rn,zi=xi,qi=E,Bi=ve,Ji=or,Ui=Bi("species"),Ki=RegExp.prototype,Yi=z,Gi=cn,Wi=vo,Vi=Z,Hi=Yi("".charAt),Xi=Yi("".charCodeAt),Qi=Yi("".slice),Zi=function(t){return function(e,r){var n,o,i=Wi(Vi(e)),u=Gi(r),a=i.length;return u<0||u>=a?t?"":void 0:(n=Xi(i,u))<55296||n>56319||u+1===a||(o=Xi(i,u+1))<56320||o>57343?t?Hi(i,u):n:t?Qi(i,u,u+2):o-56320+(n-55296<<10)+65536}},tu={codeAt:Zi(!1),charAt:Zi(!0)}.charAt,eu=z,ru=Xt,nu=Math.floor,ou=eu("".charAt),iu=eu("".replace),uu=eu("".slice),au=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,cu=/\$([$&'`]|\d{1,2})/g,su=A,lu=Ge,fu=ut,pu=U,du=xi,hu=TypeError,gu=Fi,vu=A,yu=z,bu=function(t,e,r,n){var o=Bi(t),i=!qi((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),u=i&&!qi((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Ui]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!u||r){var a=ki(/./[o]),c=e(o,""[t],(function(t,e,r,n,o){var u=ki(t),c=e.exec;return c===zi||c===Ki.exec?i&&!o?{done:!0,value:a(e,r,n)}:{done:!0,value:u(r,e,n)}:{done:!1}}));Li(String.prototype,t,c[0]),Li(Ki,o,c[1])}n&&Ji(Ki[o],"sham",!0)},mu=E,Su=Ge,xu=ut,wu=H,Eu=cn,Ou=hn,ju=vo,Pu=Z,Iu=function(t,e,r){return e+(r?tu(t,e).length:1)},Au=Nt,Ru=function(t,e,r,n,o,i){var u=r+t.length,a=n.length,c=cu;return void 0!==o&&(o=ru(o),c=au),iu(i,c,(function(i,c){var s;switch(ou(c,0)){case"$":return"$";case"&":return t;case"`":return uu(e,0,r);case"'":return uu(e,u);case"<":s=o[uu(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>a){var f=nu(l/10);return 0===f?i:f<=a?void 0===n[f-1]?ou(c,1):n[f-1]+ou(c,1):i}s=n[l-1]}return void 0===s?"":s}))},_u=function(t,e){var r=t.exec;if(fu(r)){var n=su(r,t,e);return null!==n&&lu(n),n}if("RegExp"===pu(t))return su(du,t,e);throw hu("RegExp#exec called on incompatible receiver")},Du=ve("replace"),Tu=Math.max,Mu=Math.min,Cu=yu([].concat),Fu=yu([].push),$u=yu("".indexOf),Nu=yu("".slice),ku="$0"==="a".replace(/./,"$0"),Lu=!!/./[Du]&&""===/./[Du]("a","$0"),zu=!mu((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));bu("replace",(function(t,e,r){var n=Lu?"$":"$0";return[function(t,r){var n=Pu(this),o=wu(t)?void 0:Au(t,Du);return o?vu(o,t,n,r):vu(e,ju(n),t,r)},function(t,o){var i=Su(this),u=ju(t);if("string"==typeof o&&-1===$u(o,n)&&-1===$u(o,"$<")){var a=r(e,i,u,o);if(a.done)return a.value}var c=xu(o);c||(o=ju(o));var s=i.global;if(s){var l=i.unicode;i.lastIndex=0}for(var f=[];;){var p=_u(i,u);if(null===p)break;if(Fu(f,p),!s)break;""===ju(p[0])&&(i.lastIndex=Iu(u,Ou(i.lastIndex),l))}for(var d,h="",g=0,v=0;v<f.length;v++){for(var y=ju((p=f[v])[0]),b=Tu(Mu(Eu(p.index),u.length),0),m=[],S=1;S<p.length;S++)Fu(m,void 0===(d=p[S])?d:String(d));var x=p.groups;if(c){var w=Cu([y],m,b,u);void 0!==x&&Fu(w,x);var E=ju(gu(o,void 0,w))}else E=Ru(y,u,b,m,x,o);b>=g&&(h+=Nu(u,g,b)+E,g=b+y.length)}return h+Nu(u,g)}]}),!zu||!ku||Lu);var qu=O,Bu=fr.EXISTS,Ju=z,Uu=Be.f,Ku=Function.prototype,Yu=Ju(Ku.toString),Gu=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Wu=Ju(Gu.exec);qu&&!Bu&&Uu(Ku,"name",{configurable:!0,get:function(){try{return Wu(Gu,Yu(this))[1]}catch(t){return""}}});var Vu=U,Hu=Array.isArray||function(t){return"Array"==Vu(t)},Xu=z([].slice),Qu=oo,Zu=dt,ta=Fi,ea=A,ra=z,na=E,oa=Hu,ia=ut,ua=st,aa=_t,ca=Xu,sa=Ot,la=Zu("JSON","stringify"),fa=ra(/./.exec),pa=ra("".charAt),da=ra("".charCodeAt),ha=ra("".replace),ga=ra(1..toString),va=/[\uD800-\uDFFF]/g,ya=/^[\uD800-\uDBFF]$/,ba=/^[\uDC00-\uDFFF]$/,ma=!sa||na((function(){var t=Zu("Symbol")();return"[null]"!=la([t])||"{}"!=la({a:t})||"{}"!=la(Object(t))})),Sa=na((function(){return'"\\udf06\\ud834"'!==la("\udf06\ud834")||'"\\udead"'!==la("\udead")})),xa=function(t,e){var r=ca(arguments),n=e;if((ua(e)||void 0!==t)&&!aa(t))return oa(e)||(e=function(t,e){if(ia(n)&&(e=ea(n,this,t,e)),!aa(e))return e}),r[1]=e,ta(la,null,r)},wa=function(t,e,r){var n=pa(r,e-1),o=pa(r,e+1);return fa(ya,t)&&!fa(ba,o)||fa(ba,t)&&!fa(ya,n)?"\\u"+ga(da(t,0),16):t};la&&Qu({target:"JSON",stat:!0,arity:3,forced:ma||Sa},{stringify:function(t,e,r){var n=ca(arguments),o=ta(ma?xa:la,null,n);return Sa&&"string"==typeof o?ha(o,va,wa):o}});var Ea=TypeError,Oa=Pe,ja=Be,Pa=F,Ia=z,Aa=E,Ra=ut,_a=po,Da=br,Ta=function(){},Ma=[],Ca=dt("Reflect","construct"),Fa=/^\s*(?:class|function)\b/,$a=Ia(Fa.exec),Na=!Fa.exec(Ta),ka=function(t){if(!Ra(t))return!1;try{return Ca(Ta,Ma,t),!0}catch(t){return!1}},La=function(t){if(!Ra(t))return!1;switch(_a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Na||!!$a(Fa,Da(t))}catch(t){return!0}};La.sham=!0;var za=!Ca||Aa((function(){var t;return ka(ka.call)||!ka(Object)||!ka((function(){t=!0}))||t}))?La:ka,qa=Hu,Ba=za,Ja=st,Ua=ve("species"),Ka=Array,Ya=function(t){var e;return qa(t)&&(e=t.constructor,(Ba(e)&&(e===Ka||qa(e.prototype))||Ja(e)&&null===(e=e[Ua]))&&(e=void 0)),void 0===e?Ka:e},Ga=E,Wa=xt,Va=ve("species"),Ha=oo,Xa=E,Qa=Hu,Za=st,tc=Xt,ec=vn,rc=function(t){if(t>9007199254740991)throw Ea("Maximum allowed index exceeded");return t},nc=function(t,e,r){var n=Oa(e);n in t?ja.f(t,n,Pa(0,r)):t[n]=r},oc=function(t,e){return new(Ya(t))(0===e?0:e)},ic=function(t){return Wa>=51||!Ga((function(){var e=[];return(e.constructor={})[Va]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},uc=xt,ac=ve("isConcatSpreadable"),cc=uc>=51||!Xa((function(){var t=[];return t[ac]=!1,t.concat()[0]!==t})),sc=ic("concat"),lc=function(t){if(!Za(t))return!1;var e=t[ac];return void 0!==e?!!e:Qa(t)};Ha({target:"Array",proto:!0,arity:1,forced:!cc||!sc},{concat:function(t){var e,r,n,o,i,u=tc(this),a=oc(u,0),c=0;for(e=-1,n=arguments.length;e<n;e++)if(lc(i=-1===e?u:arguments[e]))for(o=ec(i),rc(c+o),r=0;r<o;r++,c++)r in i&&nc(a,c,i[r]);else rc(c+1),nc(a,c++,i);return a.length=c,a}});var fc=ut,pc=String,dc=TypeError,hc=z,gc=Ge,vc=function(t){if("object"==typeof t||fc(t))return t;throw dc("Can't set "+pc(t)+" as a prototype")},yc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=hc(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return gc(r),vc(n),e?t(r,n):r.__proto__=n,r}}():void 0),bc=ut,mc=st,Sc=yc,xc=st,wc=U,Ec=ve("match"),Oc=A,jc=te,Pc=ht,Ic=bo,Ac=RegExp.prototype,Rc=function(t){var e=t.flags;return void 0!==e||"flags"in Ac||jc(t,"flags")||!Pc(Ac,t)?e:Oc(Ic,t)},_c=Be.f,Dc=dt,Tc=Be,Mc=O,Cc=ve("species"),Fc=O,$c=x,Nc=z,kc=Hn,Lc=function(t,e,r){var n,o;return Sc&&bc(n=e.constructor)&&n!==r&&mc(o=n.prototype)&&o!==r.prototype&&Sc(t,o),t},zc=or,qc=nn.f,Bc=ht,Jc=function(t){var e;return xc(t)&&(void 0!==(e=t[Ec])?!!e:"RegExp"==wc(t))},Uc=vo,Kc=Rc,Yc=Oo,Gc=function(t,e,r){r in t||_c(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})},Wc=rn,Vc=E,Hc=te,Xc=Lr.enforce,Qc=function(t){var e=Dc(t),r=Tc.f;Mc&&e&&!e[Cc]&&r(e,Cc,{configurable:!0,get:function(){return this}})},Zc=Xo,ts=ti,es=ve("match"),rs=$c.RegExp,ns=rs.prototype,os=$c.SyntaxError,is=Nc(ns.exec),us=Nc("".charAt),as=Nc("".replace),cs=Nc("".indexOf),ss=Nc("".slice),ls=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,fs=/a/g,ps=/a/g,ds=new rs(fs)!==fs,hs=Yc.MISSED_STICKY,gs=Yc.UNSUPPORTED_Y,vs=Fc&&(!ds||hs||Zc||ts||Vc((function(){return ps[es]=!1,rs(fs)!=fs||rs(ps)==ps||"/a/i"!=rs(fs,"i")})));if(kc("RegExp",vs)){for(var ys=function(t,e){var r,n,o,i,u,a,c=Bc(ns,this),s=Jc(t),l=void 0===e,f=[],p=t;if(!c&&s&&l&&t.constructor===ys)return t;if((s||Bc(ns,t))&&(t=t.source,l&&(e=Kc(p))),t=void 0===t?"":Uc(t),e=void 0===e?"":Uc(e),p=t,Zc&&"dotAll"in fs&&(n=!!e&&cs(e,"s")>-1)&&(e=as(e,/s/g,"")),r=e,hs&&"sticky"in fs&&(o=!!e&&cs(e,"y")>-1)&&gs&&(e=as(e,/y/g,"")),ts&&(i=function(t){for(var e,r=t.length,n=0,o="",i=[],u={},a=!1,c=!1,s=0,l="";n<=r;n++){if("\\"===(e=us(t,n)))e+=us(t,++n);else if("]"===e)a=!1;else if(!a)switch(!0){case"["===e:a=!0;break;case"("===e:is(ls,ss(t,n+1))&&(n+=2,c=!0),o+=e,s++;continue;case">"===e&&c:if(""===l||Hc(u,l))throw new os("Invalid capture group name");u[l]=!0,i[i.length]=[l,s],c=!1,l="";continue}c?l+=e:o+=e}return[o,i]}(t),t=i[0],f=i[1]),u=Lc(rs(t,e),c?this:ns,ys),(n||o||f.length)&&(a=Xc(u),n&&(a.dotAll=!0,a.raw=ys(function(t){for(var e,r=t.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(e=us(t,n))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+us(t,++n);return o}(t),r)),o&&(a.sticky=!0),f.length&&(a.groups=f)),t!==p)try{zc(u,"source",""===p?"(?:)":p)}catch(t){}return u},bs=qc(rs),ms=0;bs.length>ms;)Gc(ys,rs,bs[ms++]);ns.constructor=ys,ys.prototype=ns,Wc($c,"RegExp",ys,{constructor:!0})}Qc("RegExp");var Ss=ir.exports,xs=Be,ws=O,Es=Oo.MISSED_STICKY,Os=U,js=function(t,e,r){return r.get&&Ss(r.get,e,{getter:!0}),r.set&&Ss(r.set,e,{setter:!0}),xs.f(t,e,r)},Ps=Lr.get,Is=RegExp.prototype,As=TypeError;ws&&Es&&js(Is,"sticky",{configurable:!0,get:function(){if(this!==Is){if("RegExp"===Os(this))return!!Ps(this).sticky;throw As("Incompatible receiver, RegExp required")}}});var Rs=fr.PROPER,_s=rn,Ds=Ge,Ts=vo,Ms=E,Cs=Rc,Fs=RegExp.prototype.toString,$s=Ms((function(){return"/a/b"!=Fs.call({source:"a",flags:"b"})})),Ns=Rs&&"toString"!=Fs.name;($s||Ns)&&_s(RegExp.prototype,"toString",(function(){var t=Ds(this);return"/"+Ts(t.source)+"/"+Ts(Cs(t))}),{unsafe:!0});var ks={name:"BaseMenuButton",inheritAttrs:!1,props:{props:{type:Object,default:function(){return{}}},ctCls:{type:String},dropdownLabel:{type:String,default:"下拉菜单"},prefixIcon:{type:String},trigger:{type:String,default:"click"},options:{type:Array},isShowDivided:{type:Boolean,default:!1},svgSize:{type:String,default:"16px"},svgIcons:{type:Array,default:function(){return[]}},defaultActive:{type:String},activeTextColor:{type:String,default:"#409EFF"}},watch:{dropdownLabel:function(t){t!==this.curDropdownLabel&&(this.curDropdownLabel=t)}},data:function(){return this.oData={},this.defaultProps={children:"children",label:"label",value:"value",icon:"icon"},{cascaderValue:[],curDropdownLabel:this.dropdownLabel}},created:function(){d(this.props)||function(t,e){for(var r in e)t[r]=e[r]}(this.defaultProps,this.props)},mounted:function(){var t=this;setTimeout((function(){if(!d(t.defaultActive)){var e=b(t.oData,t.defaultActive);d(e)||t.$nextTick((function(){t.curDropdownLabel=b(e,t.defaultProps.label)}))}}),0)},methods:{getRouterPath:function(t){return b(this.oData,t)},createElSelf:function(t){return(0,this.$createElement)("base-render-self",{props:{self:t}})},createIcon:function(t){var e=this.$createElement;if(/\.(gif|png|jpg|jpeg|webp|svg|psd|bmp|tif)$/.test(t))return e("img",{style:{marginRight:"5px"},attrs:{src:t,width:this.svgSize,height:this.svgSize}});if(-1!==t.indexOf("symbol-"))return e("base-svg-icon",{style:{marginRight:"5px"},props:{size:this.svgSize,iconname:t.replace("symbol-","")}},[]);if(y(t,"svg-")){var r=t.replace("svg-",""),n=p(this.svgIcons,(function(t){return t.name===r}));if(!d(n))return this.$createElement(b(n,"component","span"),{style:{width:this.svgSize,height:this.svgSize,marginRight:"5px"}})}return e("i",{class:t},[])},createMenuElements:function(){for(var t=this.$createElement,e=[],r=0,n=this.options.length;r<n;r++){var o=this.options[r],i="1-".concat(r),u=o.disabled;if(l(o,this.defaultProps.children)&&!f(b(o,this.defaultProps.children,[])))d(o[this.defaultProps.children])||e.push(this.createElSubMenu(o,i));else{var a=t("el-menu-item",{props:{index:i,disabled:u}},[l(o,this.defaultProps.icon)?this.createIcon(o[this.defaultProps.icon]):t(),this.createElSelf(o[this.defaultProps.label])]);e.push(a)}h(this.oData,i,JSON.parse(JSON.stringify(g(o,[this.defaultProps.children]))))}return e},createElSubMenu:function(t,e){for(var r=this.$createElement,n=[],o=t[this.defaultProps.children],i=0,u=o.length;i<u;i++){var a=o[i],c="".concat(e,"-").concat(i);if(l(a,this.defaultProps.children)&&!f(b(a,this.defaultProps.children,[]))){var s=this.createElSubMenu(a,c);n.push(s)}else{var p=r("el-menu-item",{props:{index:c,disabled:a.disabled}},[l(a,this.defaultProps.icon)?this.createIcon(a[this.defaultProps.icon]):r(),this.createElSelf(a[this.defaultProps.label])]);n.push(p)}h(this.oData,c,JSON.parse(JSON.stringify(g(a,[this.defaultProps.children]))))}return r("el-submenu",{props:{index:e}},[r("template",{slot:"title"},[l(t,this.defaultProps.icon)?this.createIcon(t[this.defaultProps.icon]):r(),this.createElSelf(t[this.defaultProps.label])]),n])}},render:function(t){var e,r,n,o=this;return t("div",{class:(e={"base-menu-button":!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)},[t("el-menu",{props:{mode:"horizontal","menu-trigger":this.trigger,"unique-opened":!0,"default-active":this.defaultActive,"active-text-color":this.activeTextColor},on:{select:function(t,e){var r=JSON.parse(JSON.stringify(b(o.oData,t)));r.index=t,r.indexPath=e,o.$emit("select",r)}}},[t("el-submenu",{props:{index:"0","popper-append-to-body":!0,"popper-class":"base-menu--horizontal_popup"}},[t("template",{slot:"title"},[d(this.prefixIcon)?t():t("i",{class:"".concat(this.prefixIcon," base-drop-down_prefix")},[]),this.createElSelf(this.curDropdownLabel)]),this.createMenuElements()])])])}};ks.install=function(t,e){var r;if(r="按需加载独立组件:".concat(ks.name),"development"!==process.env.NODE_ENV&&"dev"!==process.env.NODE_ENV||console.warn(r),v(e)&&!f(e))for(var n=0;n<e.length;n++)e[n].name!==ks.name&&t.use(e[n]);t.component(ks.name,ks)},exports.BaseMenuButton=ks;