shu-c-view
Version:
rollup 打包vue@2.7组件库框架
7 lines (6 loc) • 22.3 kB
JavaScript
/*!
* shu-c-view v2.0.0
* (c) 2024-04-23
* @license MIT
*/
;Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lodash/isArray"),e=require("lodash/findIndex"),r=require("lodash/findLastIndex"),n=require("lodash/assign"),o=require("lodash/get"),i=require("lodash/has"),u=require("lodash/isEmpty");function c(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var a,f,s=c(t),l=c(e),p=c(r),g=c(n),d=c(o),v=c(i),h=c(u),y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},b=function(t){try{return!!t()}catch(t){return!0}},m=!b((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),x=!b((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),S=x,O=Function.prototype,E=O.call,w=S&&O.bind.bind(E,E),j=S?w:function(t){return function(){return E.apply(t,arguments)}},I=function(t){return null==t},_=I,R=TypeError,P=function(t){if(_(t))throw R("Can't call method on "+t);return t},T=P,A=Object,$=function(t){return A(T(t))},M=$,k=j({}.hasOwnProperty),C=Object.hasOwn||function(t,e){return k(M(t),e)},D=m,F=C,N=Function.prototype,L=D&&Object.getOwnPropertyDescriptor,q=F(N,"name"),z={EXISTS:q,PROPER:q&&"something"===function(){}.name,CONFIGURABLE:q&&(!D||D&&L(N,"name").configurable)},B={},U=function(t){return t&&t.Math==Math&&t},K=U("object"==typeof globalThis&&globalThis)||U("object"==typeof window&&window)||U("object"==typeof self&&self)||U("object"==typeof y&&y)||function(){return this}()||Function("return this")(),Y="object"==typeof document&&document.all,W={all:Y,IS_HTMLDDA:void 0===Y&&void 0!==Y},G=W.all,H=W.IS_HTMLDDA?function(t){return"function"==typeof t||t===G}:function(t){return"function"==typeof t},V=H,X=W.all,J=W.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:V(t)||t===X}:function(t){return"object"==typeof t?null!==t:V(t)},Q=J,Z=K.document,tt=Q(Z)&&Q(Z.createElement),et=function(t){return tt?Z.createElement(t):{}},rt=et,nt=!m&&!b((function(){return 7!=Object.defineProperty(rt("div"),"a",{get:function(){return 7}}).a})),ot=m&&b((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),it=J,ut=String,ct=TypeError,at=function(t){if(it(t))return t;throw ct(ut(t)+" is not an object")},ft=x,st=Function.prototype.call,lt=ft?st.bind(st):function(){return st.apply(st,arguments)},pt=K,gt=H,dt=function(t){return gt(t)?t:void 0},vt=function(t,e){return arguments.length<2?dt(pt[t]):pt[t]&&pt[t][e]},ht=j({}.isPrototypeOf),yt=K,bt=vt("navigator","userAgent")||"",mt=yt.process,xt=yt.Deno,St=mt&&mt.versions||xt&&xt.version,Ot=St&&St.v8;Ot&&(f=(a=Ot.split("."))[0]>0&&a[0]<4?1:+(a[0]+a[1])),!f&&bt&&(!(a=bt.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=bt.match(/Chrome\/(\d+)/))&&(f=+a[1]);var Et=f,wt=b,jt=!!Object.getOwnPropertySymbols&&!wt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Et&&Et<41})),It=jt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,_t=vt,Rt=H,Pt=ht,Tt=Object,At=It?function(t){return"symbol"==typeof t}:function(t){var e=_t("Symbol");return Rt(e)&&Pt(e.prototype,Tt(t))},$t=String,Mt=H,kt=function(t){try{return $t(t)}catch(t){return"Object"}},Ct=TypeError,Dt=function(t){if(Mt(t))return t;throw Ct(kt(t)+" is not a function")},Ft=I,Nt=function(t,e){var r=t[e];return Ft(r)?void 0:Dt(r)},Lt=lt,qt=H,zt=J,Bt=TypeError,Ut={exports:{}},Kt=K,Yt=Object.defineProperty,Wt=function(t,e){try{Yt(Kt,t,{value:e,configurable:!0,writable:!0})}catch(r){Kt[t]=e}return e},Gt=Wt,Ht=K["__core-js_shared__"]||Gt("__core-js_shared__",{}),Vt=Ht;(Ut.exports=function(t,e){return Vt[t]||(Vt[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 Xt=j,Jt=0,Qt=Math.random(),Zt=Xt(1..toString),te=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Zt(++Jt+Qt,36)},ee=K,re=Ut.exports,ne=C,oe=te,ie=jt,ue=It,ce=re("wks"),ae=ee.Symbol,fe=ae&&ae.for,se=ue?ae:ae&&ae.withoutSetter||oe,le=function(t){if(!ne(ce,t)||!ie&&"string"!=typeof ce[t]){var e="Symbol."+t;ie&&ne(ae,t)?ce[t]=ae[t]:ce[t]=ue&&fe?fe(e):se(e)}return ce[t]},pe=lt,ge=J,de=At,ve=Nt,he=function(t,e){var r,n;if("string"===e&&qt(r=t.toString)&&!zt(n=Lt(r,t)))return n;if(qt(r=t.valueOf)&&!zt(n=Lt(r,t)))return n;if("string"!==e&&qt(r=t.toString)&&!zt(n=Lt(r,t)))return n;throw Bt("Can't convert object to primitive value")},ye=TypeError,be=le("toPrimitive"),me=function(t,e){if(!ge(t)||de(t))return t;var r,n=ve(t,be);if(n){if(void 0===e&&(e="default"),r=pe(n,t,e),!ge(r)||de(r))return r;throw ye("Can't convert object to primitive value")}return void 0===e&&(e="number"),he(t,e)},xe=At,Se=function(t){var e=me(t,"string");return xe(e)?e:e+""},Oe=m,Ee=nt,we=ot,je=at,Ie=Se,_e=TypeError,Re=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor;B.f=Oe?we?function(t,e,r){if(je(t),e=Ie(e),je(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 Re(t,e,r)}:Re:function(t,e,r){if(je(t),e=Ie(e),je(r),Ee)try{return Re(t,e,r)}catch(t){}if("get"in r||"set"in r)throw _e("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var Te=m,Ae=z.EXISTS,$e=j,Me=B.f,ke=Function.prototype,Ce=$e(ke.toString),De=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Fe=$e(De.exec);Te&&!Ae&&Me(ke,"name",{configurable:!0,get:function(){try{return Fe(De,Ce(this))[1]}catch(t){return""}}});var Ne={},Le={},qe={}.propertyIsEnumerable,ze=Object.getOwnPropertyDescriptor,Be=ze&&!qe.call({1:2},1);Le.f=Be?function(t){var e=ze(this,t);return!!e&&e.enumerable}:qe;var Ue=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ke=j,Ye=Ke({}.toString),We=Ke("".slice),Ge=function(t){return We(Ye(t),8,-1)},He=b,Ve=Ge,Xe=Object,Je=j("".split),Qe=He((function(){return!Xe("z").propertyIsEnumerable(0)}))?function(t){return"String"==Ve(t)?Je(t,""):Xe(t)}:Xe,Ze=P,tr=function(t){return Qe(Ze(t))},er=m,rr=lt,nr=Le,or=Ue,ir=tr,ur=Se,cr=C,ar=nt,fr=Object.getOwnPropertyDescriptor;Ne.f=er?fr:function(t,e){if(t=ir(t),e=ur(e),ar)try{return fr(t,e)}catch(t){}if(cr(t,e))return or(!rr(nr.f,t,e),t[e])};var sr=B,lr=Ue,pr=m?function(t,e,r){return sr.f(t,e,lr(1,r))}:function(t,e,r){return t[e]=r,t},gr={exports:{}},dr=H,vr=Ht,hr=j(Function.toString);dr(vr.inspectSource)||(vr.inspectSource=function(t){return hr(t)});var yr,br,mr,xr=vr.inspectSource,Sr=H,Or=K.WeakMap,Er=Sr(Or)&&/native code/.test(String(Or)),wr=Ut.exports,jr=te,Ir=wr("keys"),_r=function(t){return Ir[t]||(Ir[t]=jr(t))},Rr={},Pr=Er,Tr=K,Ar=J,$r=pr,Mr=C,kr=Ht,Cr=_r,Dr=Rr,Fr=Tr.TypeError,Nr=Tr.WeakMap;if(Pr||kr.state){var Lr=kr.state||(kr.state=new Nr);Lr.get=Lr.get,Lr.has=Lr.has,Lr.set=Lr.set,yr=function(t,e){if(Lr.has(t))throw Fr("Object already initialized");return e.facade=t,Lr.set(t,e),e},br=function(t){return Lr.get(t)||{}},mr=function(t){return Lr.has(t)}}else{var qr=Cr("state");Dr[qr]=!0,yr=function(t,e){if(Mr(t,qr))throw Fr("Object already initialized");return e.facade=t,$r(t,qr,e),e},br=function(t){return Mr(t,qr)?t[qr]:{}},mr=function(t){return Mr(t,qr)}}var zr={set:yr,get:br,has:mr,enforce:function(t){return mr(t)?br(t):yr(t,{})},getterFor:function(t){return function(e){var r;if(!Ar(e)||(r=br(e)).type!==t)throw Fr("Incompatible receiver, "+t+" required");return r}}},Br=b,Ur=H,Kr=C,Yr=m,Wr=z.CONFIGURABLE,Gr=xr,Hr=zr.enforce,Vr=zr.get,Xr=Object.defineProperty,Jr=Yr&&!Br((function(){return 8!==Xr((function(){}),"length",{value:8}).length})),Qr=String(String).split("String"),Zr=gr.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),(!Kr(t,"name")||Wr&&t.name!==e)&&(Yr?Xr(t,"name",{value:e,configurable:!0}):t.name=e),Jr&&r&&Kr(r,"arity")&&t.length!==r.arity&&Xr(t,"length",{value:r.arity});try{r&&Kr(r,"constructor")&&r.constructor?Yr&&Xr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=Hr(t);return Kr(n,"source")||(n.source=Qr.join("string"==typeof e?e:"")),t};Function.prototype.toString=Zr((function(){return Ur(this)&&Vr(this).source||Gr(this)}),"toString");var tn=H,en=B,rn=gr.exports,nn=Wt,on=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(tn(r)&&rn(r,i,n),n.global)o?t[e]=r:nn(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:en.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},un={},cn=Math.ceil,an=Math.floor,fn=Math.trunc||function(t){var e=+t;return(e>0?an:cn)(e)},sn=function(t){var e=+t;return e!=e||0===e?0:fn(e)},ln=sn,pn=Math.max,gn=Math.min,dn=sn,vn=Math.min,hn=function(t){return t>0?vn(dn(t),9007199254740991):0},yn=hn,bn=tr,mn=function(t,e){var r=ln(t);return r<0?pn(r+e,0):gn(r,e)},xn=function(t){return yn(t.length)},Sn=function(t){return function(e,r,n){var o,i=bn(e),u=xn(i),c=mn(n,u);if(t&&r!=r){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===r)return t||c||0;return!t&&-1}},On={includes:Sn(!0),indexOf:Sn(!1)},En=C,wn=tr,jn=On.indexOf,In=Rr,_n=j([].push),Rn=function(t,e){var r,n=wn(t),o=0,i=[];for(r in n)!En(In,r)&&En(n,r)&&_n(i,r);for(;e.length>o;)En(n,r=e[o++])&&(~jn(i,r)||_n(i,r));return i},Pn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tn=Rn,An=Pn.concat("length","prototype");un.f=Object.getOwnPropertyNames||function(t){return Tn(t,An)};var $n={};$n.f=Object.getOwnPropertySymbols;var Mn=vt,kn=un,Cn=$n,Dn=at,Fn=j([].concat),Nn=Mn("Reflect","ownKeys")||function(t){var e=kn.f(Dn(t)),r=Cn.f;return r?Fn(e,r(t)):e},Ln=C,qn=Nn,zn=Ne,Bn=B,Un=b,Kn=H,Yn=/#|\.prototype\./,Wn=function(t,e){var r=Hn[Gn(t)];return r==Xn||r!=Vn&&(Kn(e)?Un(e):!!e)},Gn=Wn.normalize=function(t){return String(t).replace(Yn,".").toLowerCase()},Hn=Wn.data={},Vn=Wn.NATIVE="N",Xn=Wn.POLYFILL="P",Jn=Wn,Qn=K,Zn=Ne.f,to=pr,eo=on,ro=Wt,no=function(t,e,r){for(var n=qn(e),o=Bn.f,i=zn.f,u=0;u<n.length;u++){var c=n[u];Ln(t,c)||r&&Ln(r,c)||o(t,c,i(e,c))}},oo=Jn,io=function(t,e){var r,n,o,i,u,c=t.target,a=t.global,f=t.stat;if(r=a?Qn:f?Qn[c]||ro(c,{}):(Qn[c]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(u=Zn(r,n))&&u.value:r[n],!oo(a?n:c+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;no(i,o)}(t.sham||o&&o.sham)&&to(i,"sham",!0),eo(r,n,i,t)}},uo={};uo[le("toStringTag")]="z";var co="[object z]"===String(uo),ao=H,fo=Ge,so=le("toStringTag"),lo=Object,po="Arguments"==fo(function(){return arguments}()),go=co?fo: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:po?fo(e):"Object"==(n=fo(e))&&ao(e.callee)?"Arguments":n},vo=String,ho=function(t){if("Symbol"===go(t))throw TypeError("Cannot convert a Symbol value to a string");return vo(t)},yo=at,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=b,xo=K.RegExp,So=mo((function(){var t=xo("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Oo=So||mo((function(){return!xo("a","y").sticky})),Eo=So||mo((function(){var t=xo("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),wo={BROKEN_CARET:Eo,MISSED_STICKY:Oo,UNSUPPORTED_Y:So},jo={},Io=Rn,_o=Pn,Ro=Object.keys||function(t){return Io(t,_o)},Po=m,To=ot,Ao=B,$o=at,Mo=tr,ko=Ro;jo.f=Po&&!To?Object.defineProperties:function(t,e){$o(t);for(var r,n=Mo(e),o=ko(e),i=o.length,u=0;i>u;)Ao.f(t,r=o[u++],n[r]);return t};var Co,Do=vt("document","documentElement"),Fo=at,No=jo,Lo=Pn,qo=Rr,zo=Do,Bo=et,Uo=_r("IE_PROTO"),Ko=function(){},Yo=function(t){return"<script>"+t+"<\/script>"},Wo=function(t){t.write(Yo("")),t.close();var e=t.parentWindow.Object;return t=null,e},Go=function(){try{Co=new ActiveXObject("htmlfile")}catch(t){}var t,e;Go="undefined"!=typeof document?document.domain&&Co?Wo(Co):((e=Bo("iframe")).style.display="none",zo.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Yo("document.F=Object")),t.close(),t.F):Wo(Co);for(var r=Lo.length;r--;)delete Go.prototype[Lo[r]];return Go()};qo[Uo]=!0;var Ho=Object.create||function(t,e){var r;return null!==t?(Ko.prototype=Fo(t),r=new Ko,Ko.prototype=null,r[Uo]=t):r=Go(),void 0===e?r:No.f(r,e)},Vo=b,Xo=K.RegExp,Jo=Vo((function(){var t=Xo(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Qo=b,Zo=K.RegExp,ti=Qo((function(){var t=Zo("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),ei=lt,ri=j,ni=ho,oi=bo,ii=wo,ui=Ut.exports,ci=Ho,ai=zr.get,fi=Jo,si=ti,li=ui("native-string-replace",String.prototype.replace),pi=RegExp.prototype.exec,gi=pi,di=ri("".charAt),vi=ri("".indexOf),hi=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,xi=void 0!==/()??/.exec("")[1];(bi||xi||mi||fi||si)&&(gi=function(t){var e,r,n,o,i,u,c,a=this,f=ai(a),s=ni(t),l=f.raw;if(l)return l.lastIndex=a.lastIndex,e=ei(gi,l,s),a.lastIndex=l.lastIndex,e;var p=f.groups,g=mi&&a.sticky,d=ei(oi,a),v=a.source,h=0,y=s;if(g&&(d=hi(d,"y",""),-1===vi(d,"g")&&(d+="g"),y=yi(s,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==di(s,a.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,h++),r=new RegExp("^(?:"+v+")",d)),xi&&(r=new RegExp("^"+v+"$(?!\\s)",d)),bi&&(n=a.lastIndex),o=ei(pi,g?r:a,y),g?o?(o.input=yi(o.input,h),o[0]=yi(o[0],h),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:bi&&o&&(a.lastIndex=a.global?o.index+o[0].length:n),xi&&o&&o.length>1&&ei(li,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=ci(null),i=0;i<p.length;i++)u[(c=p[i])[0]]=o[c[1]];return o});var Si=gi;io({target:"RegExp",proto:!0,forced:/./.exec!==Si},{exec:Si});var Oi,Ei,wi=io,ji=lt,Ii=H,_i=at,Ri=ho,Pi=(Oi=!1,(Ei=/[ac]/).exec=function(){return Oi=!0,/./.exec.apply(this,arguments)},!0===Ei.test("abc")&&Oi),Ti=/./.test;wi({target:"RegExp",proto:!0,forced:!Pi},{test:function(t){var e=_i(this),r=Ri(t),n=e.exec;if(!Ii(n))return ji(Ti,e,r);var o=ji(n,e,r);return null!==o&&(_i(o),!0)}});var Ai=x,$i=Function.prototype,Mi=$i.apply,ki=$i.call,Ci="object"==typeof Reflect&&Reflect.apply||(Ai?ki.bind(Mi):function(){return ki.apply(Mi,arguments)}),Di=Ge,Fi=j,Ni=function(t){if("Function"===Di(t))return Fi(t)},Li=on,qi=Si,zi=b,Bi=le,Ui=pr,Ki=Bi("species"),Yi=RegExp.prototype,Wi=j,Gi=sn,Hi=ho,Vi=P,Xi=Wi("".charAt),Ji=Wi("".charCodeAt),Qi=Wi("".slice),Zi=function(t){return function(e,r){var n,o,i=Hi(Vi(e)),u=Gi(r),c=i.length;return u<0||u>=c?t?"":void 0:(n=Ji(i,u))<55296||n>56319||u+1===c||(o=Ji(i,u+1))<56320||o>57343?t?Xi(i,u):n:t?Qi(i,u,u+2):o-56320+(n-55296<<10)+65536}},tu={codeAt:Zi(!1),charAt:Zi(!0)}.charAt,eu=j,ru=$,nu=Math.floor,ou=eu("".charAt),iu=eu("".replace),uu=eu("".slice),cu=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,au=/\$([$&'`]|\d{1,2})/g,fu=lt,su=at,lu=H,pu=Ge,gu=Si,du=TypeError,vu=Ci,hu=lt,yu=j,bu=function(t,e,r,n){var o=Bi(t),i=!zi((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),u=i&&!zi((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Ki]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!u||r){var c=Ni(/./[o]),a=e(o,""[t],(function(t,e,r,n,o){var u=Ni(t),a=e.exec;return a===qi||a===Yi.exec?i&&!o?{done:!0,value:c(e,r,n)}:{done:!0,value:u(r,e,n)}:{done:!1}}));Li(String.prototype,t,a[0]),Li(Yi,o,a[1])}n&&Ui(Yi[o],"sham",!0)},mu=b,xu=at,Su=H,Ou=I,Eu=sn,wu=hn,ju=ho,Iu=P,_u=function(t,e,r){return e+(r?tu(t,e).length:1)},Ru=Nt,Pu=function(t,e,r,n,o,i){var u=r+t.length,c=n.length,a=au;return void 0!==o&&(o=ru(o),a=cu),iu(i,a,(function(i,a){var f;switch(ou(a,0)){case"$":return"$";case"&":return t;case"`":return uu(e,0,r);case"'":return uu(e,u);case"<":f=o[uu(a,1,-1)];break;default:var s=+a;if(0===s)return i;if(s>c){var l=nu(s/10);return 0===l?i:l<=c?void 0===n[l-1]?ou(a,1):n[l-1]+ou(a,1):i}f=n[s-1]}return void 0===f?"":f}))},Tu=function(t,e){var r=t.exec;if(lu(r)){var n=fu(r,t,e);return null!==n&&su(n),n}if("RegExp"===pu(t))return fu(gu,t,e);throw du("RegExp#exec called on incompatible receiver")},Au=le("replace"),$u=Math.max,Mu=Math.min,ku=yu([].concat),Cu=yu([].push),Du=yu("".indexOf),Fu=yu("".slice),Nu="$0"==="a".replace(/./,"$0"),Lu=!!/./[Au]&&""===/./[Au]("a","$0"),qu=!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=Iu(this),o=Ou(t)?void 0:Ru(t,Au);return o?hu(o,t,n,r):hu(e,ju(n),t,r)},function(t,o){var i=xu(this),u=ju(t);if("string"==typeof o&&-1===Du(o,n)&&-1===Du(o,"$<")){var c=r(e,i,u,o);if(c.done)return c.value}var a=Su(o);a||(o=ju(o));var f=i.global;if(f){var s=i.unicode;i.lastIndex=0}for(var l=[];;){var p=Tu(i,u);if(null===p)break;if(Cu(l,p),!f)break;""===ju(p[0])&&(i.lastIndex=_u(u,wu(i.lastIndex),s))}for(var g,d="",v=0,h=0;h<l.length;h++){for(var y=ju((p=l[h])[0]),b=$u(Mu(Eu(p.index),u.length),0),m=[],x=1;x<p.length;x++)Cu(m,void 0===(g=p[x])?g:String(g));var S=p.groups;if(a){var O=ku([y],m,b,u);void 0!==S&&Cu(O,S);var E=ju(vu(o,void 0,O))}else E=Pu(y,u,b,m,S,o);b>=v&&(d+=Fu(u,v,b)+E,v=b+y.length)}return d+Fu(u,v)}]}),!qu||!Nu||Lu);var zu=H,Bu=String,Uu=TypeError,Ku=j,Yu=at,Wu=function(t){if("object"==typeof t||zu(t))return t;throw Uu("Can't set "+Bu(t)+" as a prototype")},Gu=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Ku(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Yu(r),Wu(n),e?t(r,n):r.__proto__=n,r}}():void 0),Hu=H,Vu=J,Xu=Gu,Ju=J,Qu=Ge,Zu=le("match"),tc=lt,ec=C,rc=ht,nc=bo,oc=RegExp.prototype,ic=function(t){var e=t.flags;return void 0!==e||"flags"in oc||ec(t,"flags")||!rc(oc,t)?e:tc(nc,t)},uc=B.f,cc=vt,ac=B,fc=m,sc=le("species"),lc=m,pc=K,gc=j,dc=Jn,vc=function(t,e,r){var n,o;return Xu&&Hu(n=e.constructor)&&n!==r&&Vu(o=n.prototype)&&o!==r.prototype&&Xu(t,o),t},hc=pr,yc=un.f,bc=ht,mc=function(t){var e;return Ju(t)&&(void 0!==(e=t[Zu])?!!e:"RegExp"==Qu(t))},xc=ho,Sc=ic,Oc=wo,Ec=function(t,e,r){r in t||uc(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})},wc=on,jc=b,Ic=C,_c=zr.enforce,Rc=function(t){var e=cc(t),r=ac.f;fc&&e&&!e[sc]&&r(e,sc,{configurable:!0,get:function(){return this}})},Pc=Jo,Tc=ti,Ac=le("match"),$c=pc.RegExp,Mc=$c.prototype,kc=pc.SyntaxError,Cc=gc(Mc.exec),Dc=gc("".charAt),Fc=gc("".replace),Nc=gc("".indexOf),Lc=gc("".slice),qc=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,zc=/a/g,Bc=/a/g,Uc=new $c(zc)!==zc,Kc=Oc.MISSED_STICKY,Yc=Oc.UNSUPPORTED_Y,Wc=lc&&(!Uc||Kc||Pc||Tc||jc((function(){return Bc[Ac]=!1,$c(zc)!=zc||$c(Bc)==Bc||"/a/i"!=$c(zc,"i")})));if(dc("RegExp",Wc)){for(var Gc=function(t,e){var r,n,o,i,u,c,a=bc(Mc,this),f=mc(t),s=void 0===e,l=[],p=t;if(!a&&f&&s&&t.constructor===Gc)return t;if((f||bc(Mc,t))&&(t=t.source,s&&(e=Sc(p))),t=void 0===t?"":xc(t),e=void 0===e?"":xc(e),p=t,Pc&&"dotAll"in zc&&(n=!!e&&Nc(e,"s")>-1)&&(e=Fc(e,/s/g,"")),r=e,Kc&&"sticky"in zc&&(o=!!e&&Nc(e,"y")>-1)&&Yc&&(e=Fc(e,/y/g,"")),Tc&&(i=function(t){for(var e,r=t.length,n=0,o="",i=[],u={},c=!1,a=!1,f=0,s="";n<=r;n++){if("\\"===(e=Dc(t,n)))e+=Dc(t,++n);else if("]"===e)c=!1;else if(!c)switch(!0){case"["===e:c=!0;break;case"("===e:Cc(qc,Lc(t,n+1))&&(n+=2,a=!0),o+=e,f++;continue;case">"===e&&a:if(""===s||Ic(u,s))throw new kc("Invalid capture group name");u[s]=!0,i[i.length]=[s,f],a=!1,s="";continue}a?s+=e:o+=e}return[o,i]}(t),t=i[0],l=i[1]),u=vc($c(t,e),a?this:Mc,Gc),(n||o||l.length)&&(c=_c(u),n&&(c.dotAll=!0,c.raw=Gc(function(t){for(var e,r=t.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(e=Dc(t,n))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+Dc(t,++n);return o}(t),r)),o&&(c.sticky=!0),l.length&&(c.groups=l)),t!==p)try{hc(u,"source",""===p?"(?:)":p)}catch(t){}return u},Hc=yc($c),Vc=0;Hc.length>Vc;)Ec(Gc,$c,Hc[Vc++]);Mc.constructor=Gc,Gc.prototype=Mc,wc(pc,"RegExp",Gc,{constructor:!0})}Rc("RegExp");var Xc=gr.exports,Jc=B,Qc=m,Zc=wo.MISSED_STICKY,ta=Ge,ea=function(t,e,r){return r.get&&Xc(r.get,e,{getter:!0}),r.set&&Xc(r.set,e,{setter:!0}),Jc.f(t,e,r)},ra=zr.get,na=RegExp.prototype,oa=TypeError;Qc&&Zc&&ea(na,"sticky",{configurable:!0,get:function(){if(this!==na){if("RegExp"===ta(this))return!!ra(this).sticky;throw oa("Incompatible receiver, RegExp required")}}});var ia=z.PROPER,ua=on,ca=at,aa=ho,fa=b,sa=ic,la=RegExp.prototype.toString,pa=fa((function(){return"/a/b"!=la.call({source:"a",flags:"b"})})),ga=ia&&"toString"!=la.name;(pa||ga)&&ua(RegExp.prototype,"toString",(function(){var t=ca(this);return"/"+aa(t.source)+"/"+aa(sa(t))}),{unsafe:!0});var da={name:"BasePermissionBox",inheritAttrs:!1,props:{element:{type:String,default:"el-button"},code:{type:String}},data:function(){return{buttons:[],disabled:!1}},created:function(){this.$watch("$route",(function(t){var e=p(t.matched,(function(t){return v(t,"meta.buttons")}));this.buttons=d(t.matched[e],"meta.buttons")}),{immediate:!0})},methods:{},render:function(t){var e=this;if(this.buttons&&s(this.buttons)&&this.code&&this.buttons.length>0){var r=l(this.buttons,(function(t){return d(t,"code",t.href)===e.code}));if(-1===r)return t();v(this.buttons[r],"status")&&(this.disabled=!d(this.buttons[r],"status",0)),v(this.buttons[r],"flag")&&(this.disabled=!d(this.buttons[r],"flag",0))}return t(this.element,{ref:"".concat(this._uid,"-permission-box-ref"),attrs:{id:this.$attrs.id},props:g({},this.$attrs,{disabled:this.disabled}),on:this.$listeners},[this.$slots.default])}};da.install=function(t,e){var r;if(r="按需加载独立组件:".concat(da.name),"development"!==process.env.NODE_ENV&&"dev"!==process.env.NODE_ENV||console.warn(r),s(e)&&!h(e))for(var n=0;n<e.length;n++)e[n].name!==da.name&&t.use(e[n]);t.component(da.name,da)},exports.BasePermissionBox=da;