UNPKG

shu-c-view

Version:

rollup 打包vue@2.7组件库框架

7 lines (6 loc) 29.7 kB
/*! * shu-c-view v2.0.0 * (c) 2024-04-23 * @license MIT */ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("lodash/isArray"),t=require("lodash/isEmpty"),r=require("lodash/set"),n=require("lodash/isEqual"),o=require("lodash/isNil"),i=require("lodash/join"),a=require("lodash/get"),u=require("lodash/omit"),c=require("lodash/has"),l=require("lodash/forEach");function s(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var f,p,d=s(e),g=s(t),h=s(r),v=s(n),y=s(o),b=s(i),m=s(a),E=s(u),S=s(c),x=s(l),_="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},w=function(e){try{return!!e()}catch(e){return!0}},O=!w((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),I=!w((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),C=I,j=Function.prototype,R=j.call,$=C&&j.bind.bind(R,R),T=C?$:function(e){return function(){return R.apply(e,arguments)}},N=function(e){return null==e},k=N,P=TypeError,A=function(e){if(k(e))throw P("Can't call method on "+e);return e},M=A,F=Object,B=function(e){return F(M(e))},D=B,L=T({}.hasOwnProperty),q=Object.hasOwn||function(e,t){return L(D(e),t)},H=O,z=q,U=Function.prototype,V=H&&Object.getOwnPropertyDescriptor,Y=z(U,"name"),W={EXISTS:Y,PROPER:Y&&"something"===function(){}.name,CONFIGURABLE:Y&&(!H||H&&V(U,"name").configurable)},X={},G=function(e){return e&&e.Math==Math&&e},K=G("object"==typeof globalThis&&globalThis)||G("object"==typeof window&&window)||G("object"==typeof self&&self)||G("object"==typeof _&&_)||function(){return this}()||Function("return this")(),J="object"==typeof document&&document.all,Q={all:J,IS_HTMLDDA:void 0===J&&void 0!==J},Z=Q.all,ee=Q.IS_HTMLDDA?function(e){return"function"==typeof e||e===Z}:function(e){return"function"==typeof e},te=ee,re=Q.all,ne=Q.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:te(e)||e===re}:function(e){return"object"==typeof e?null!==e:te(e)},oe=ne,ie=K.document,ae=oe(ie)&&oe(ie.createElement),ue=function(e){return ae?ie.createElement(e):{}},ce=ue,le=!O&&!w((function(){return 7!=Object.defineProperty(ce("div"),"a",{get:function(){return 7}}).a})),se=O&&w((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),fe=ne,pe=String,de=TypeError,ge=function(e){if(fe(e))return e;throw de(pe(e)+" is not an object")},he=I,ve=Function.prototype.call,ye=he?ve.bind(ve):function(){return ve.apply(ve,arguments)},be=K,me=ee,Ee=function(e){return me(e)?e:void 0},Se=function(e,t){return arguments.length<2?Ee(be[e]):be[e]&&be[e][t]},xe=T({}.isPrototypeOf),_e=K,we=Se("navigator","userAgent")||"",Oe=_e.process,Ie=_e.Deno,Ce=Oe&&Oe.versions||Ie&&Ie.version,je=Ce&&Ce.v8;je&&(p=(f=je.split("."))[0]>0&&f[0]<4?1:+(f[0]+f[1])),!p&&we&&(!(f=we.match(/Edge\/(\d+)/))||f[1]>=74)&&(f=we.match(/Chrome\/(\d+)/))&&(p=+f[1]);var Re=p,$e=w,Te=!!Object.getOwnPropertySymbols&&!$e((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Re&&Re<41})),Ne=Te&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ke=Se,Pe=ee,Ae=xe,Me=Object,Fe=Ne?function(e){return"symbol"==typeof e}:function(e){var t=ke("Symbol");return Pe(t)&&Ae(t.prototype,Me(e))},Be=String,De=ee,Le=function(e){try{return Be(e)}catch(e){return"Object"}},qe=TypeError,He=function(e){if(De(e))return e;throw qe(Le(e)+" is not a function")},ze=N,Ue=function(e,t){var r=e[t];return ze(r)?void 0:He(r)},Ve=ye,Ye=ee,We=ne,Xe=TypeError,Ge={exports:{}},Ke=K,Je=Object.defineProperty,Qe=function(e,t){try{Je(Ke,e,{value:t,configurable:!0,writable:!0})}catch(r){Ke[e]=t}return t},Ze=Qe,et=K["__core-js_shared__"]||Ze("__core-js_shared__",{}),tt=et;(Ge.exports=function(e,t){return tt[e]||(tt[e]=void 0!==t?t:{})})("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 rt=T,nt=0,ot=Math.random(),it=rt(1..toString),at=function(e){return"Symbol("+(void 0===e?"":e)+")_"+it(++nt+ot,36)},ut=K,ct=Ge.exports,lt=q,st=at,ft=Te,pt=Ne,dt=ct("wks"),gt=ut.Symbol,ht=gt&&gt.for,vt=pt?gt:gt&&gt.withoutSetter||st,yt=function(e){if(!lt(dt,e)||!ft&&"string"!=typeof dt[e]){var t="Symbol."+e;ft&&lt(gt,e)?dt[e]=gt[e]:dt[e]=pt&&ht?ht(t):vt(t)}return dt[e]},bt=ye,mt=ne,Et=Fe,St=Ue,xt=function(e,t){var r,n;if("string"===t&&Ye(r=e.toString)&&!We(n=Ve(r,e)))return n;if(Ye(r=e.valueOf)&&!We(n=Ve(r,e)))return n;if("string"!==t&&Ye(r=e.toString)&&!We(n=Ve(r,e)))return n;throw Xe("Can't convert object to primitive value")},_t=TypeError,wt=yt("toPrimitive"),Ot=function(e,t){if(!mt(e)||Et(e))return e;var r,n=St(e,wt);if(n){if(void 0===t&&(t="default"),r=bt(n,e,t),!mt(r)||Et(r))return r;throw _t("Can't convert object to primitive value")}return void 0===t&&(t="number"),xt(e,t)},It=Ot,Ct=Fe,jt=function(e){var t=It(e,"string");return Ct(t)?t:t+""},Rt=O,$t=le,Tt=se,Nt=ge,kt=jt,Pt=TypeError,At=Object.defineProperty,Mt=Object.getOwnPropertyDescriptor;X.f=Rt?Tt?function(e,t,r){if(Nt(e),t=kt(t),Nt(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=Mt(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return At(e,t,r)}:At:function(e,t,r){if(Nt(e),t=kt(t),Nt(r),$t)try{return At(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Pt("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Ft=O,Bt=W.EXISTS,Dt=T,Lt=X.f,qt=Function.prototype,Ht=Dt(qt.toString),zt=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Ut=Dt(zt.exec);Ft&&!Bt&&Lt(qt,"name",{configurable:!0,get:function(){try{return Ut(zt,Ht(this))[1]}catch(e){return""}}});var Vt={},Yt={},Wt={}.propertyIsEnumerable,Xt=Object.getOwnPropertyDescriptor,Gt=Xt&&!Wt.call({1:2},1);Yt.f=Gt?function(e){var t=Xt(this,e);return!!t&&t.enumerable}:Wt;var Kt=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Jt=T,Qt=Jt({}.toString),Zt=Jt("".slice),er=function(e){return Zt(Qt(e),8,-1)},tr=w,rr=er,nr=Object,or=T("".split),ir=tr((function(){return!nr("z").propertyIsEnumerable(0)}))?function(e){return"String"==rr(e)?or(e,""):nr(e)}:nr,ar=A,ur=function(e){return ir(ar(e))},cr=O,lr=ye,sr=Yt,fr=Kt,pr=ur,dr=jt,gr=q,hr=le,vr=Object.getOwnPropertyDescriptor;Vt.f=cr?vr:function(e,t){if(e=pr(e),t=dr(t),hr)try{return vr(e,t)}catch(e){}if(gr(e,t))return fr(!lr(sr.f,e,t),e[t])};var yr=X,br=Kt,mr=O?function(e,t,r){return yr.f(e,t,br(1,r))}:function(e,t,r){return e[t]=r,e},Er={exports:{}},Sr=ee,xr=et,_r=T(Function.toString);Sr(xr.inspectSource)||(xr.inspectSource=function(e){return _r(e)});var wr,Or,Ir,Cr=xr.inspectSource,jr=ee,Rr=K.WeakMap,$r=jr(Rr)&&/native code/.test(String(Rr)),Tr=Ge.exports,Nr=at,kr=Tr("keys"),Pr=function(e){return kr[e]||(kr[e]=Nr(e))},Ar={},Mr=$r,Fr=K,Br=ne,Dr=mr,Lr=q,qr=et,Hr=Pr,zr=Ar,Ur=Fr.TypeError,Vr=Fr.WeakMap;if(Mr||qr.state){var Yr=qr.state||(qr.state=new Vr);Yr.get=Yr.get,Yr.has=Yr.has,Yr.set=Yr.set,wr=function(e,t){if(Yr.has(e))throw Ur("Object already initialized");return t.facade=e,Yr.set(e,t),t},Or=function(e){return Yr.get(e)||{}},Ir=function(e){return Yr.has(e)}}else{var Wr=Hr("state");zr[Wr]=!0,wr=function(e,t){if(Lr(e,Wr))throw Ur("Object already initialized");return t.facade=e,Dr(e,Wr,t),t},Or=function(e){return Lr(e,Wr)?e[Wr]:{}},Ir=function(e){return Lr(e,Wr)}}var Xr={set:wr,get:Or,has:Ir,enforce:function(e){return Ir(e)?Or(e):wr(e,{})},getterFor:function(e){return function(t){var r;if(!Br(t)||(r=Or(t)).type!==e)throw Ur("Incompatible receiver, "+e+" required");return r}}},Gr=w,Kr=ee,Jr=q,Qr=O,Zr=W.CONFIGURABLE,en=Cr,tn=Xr.enforce,rn=Xr.get,nn=Object.defineProperty,on=Qr&&!Gr((function(){return 8!==nn((function(){}),"length",{value:8}).length})),an=String(String).split("String"),un=Er.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Jr(e,"name")||Zr&&e.name!==t)&&(Qr?nn(e,"name",{value:t,configurable:!0}):e.name=t),on&&r&&Jr(r,"arity")&&e.length!==r.arity&&nn(e,"length",{value:r.arity});try{r&&Jr(r,"constructor")&&r.constructor?Qr&&nn(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=tn(e);return Jr(n,"source")||(n.source=an.join("string"==typeof t?t:"")),e};Function.prototype.toString=un((function(){return Kr(this)&&rn(this).source||en(this)}),"toString");var cn=ee,ln=X,sn=Er.exports,fn=Qe,pn=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(cn(r)&&sn(r,i,n),n.global)o?e[t]=r:fn(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:ln.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},dn={},gn=Math.ceil,hn=Math.floor,vn=Math.trunc||function(e){var t=+e;return(t>0?hn:gn)(t)},yn=function(e){var t=+e;return t!=t||0===t?0:vn(t)},bn=yn,mn=Math.max,En=Math.min,Sn=yn,xn=Math.min,_n=function(e){return e>0?xn(Sn(e),9007199254740991):0},wn=_n,On=ur,In=function(e,t){var r=bn(e);return r<0?mn(r+t,0):En(r,t)},Cn=function(e){return wn(e.length)},jn=function(e){return function(t,r,n){var o,i=On(t),a=Cn(i),u=In(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},Rn={includes:jn(!0),indexOf:jn(!1)},$n=q,Tn=ur,Nn=Rn.indexOf,kn=Ar,Pn=T([].push),An=function(e,t){var r,n=Tn(e),o=0,i=[];for(r in n)!$n(kn,r)&&$n(n,r)&&Pn(i,r);for(;t.length>o;)$n(n,r=t[o++])&&(~Nn(i,r)||Pn(i,r));return i},Mn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fn=An,Bn=Mn.concat("length","prototype");dn.f=Object.getOwnPropertyNames||function(e){return Fn(e,Bn)};var Dn={};Dn.f=Object.getOwnPropertySymbols;var Ln=Se,qn=dn,Hn=Dn,zn=ge,Un=T([].concat),Vn=Ln("Reflect","ownKeys")||function(e){var t=qn.f(zn(e)),r=Hn.f;return r?Un(t,r(e)):t},Yn=q,Wn=Vn,Xn=Vt,Gn=X,Kn=w,Jn=ee,Qn=/#|\.prototype\./,Zn=function(e,t){var r=to[eo(e)];return r==no||r!=ro&&(Jn(t)?Kn(t):!!t)},eo=Zn.normalize=function(e){return String(e).replace(Qn,".").toLowerCase()},to=Zn.data={},ro=Zn.NATIVE="N",no=Zn.POLYFILL="P",oo=Zn,io=K,ao=Vt.f,uo=mr,co=pn,lo=Qe,so=function(e,t,r){for(var n=Wn(t),o=Gn.f,i=Xn.f,a=0;a<n.length;a++){var u=n[a];Yn(e,u)||r&&Yn(r,u)||o(e,u,i(t,u))}},fo=oo,po=function(e,t){var r,n,o,i,a,u=e.target,c=e.global,l=e.stat;if(r=c?io:l?io[u]||lo(u,{}):(io[u]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=ao(r,n))&&a.value:r[n],!fo(c?n:u+(l?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;so(i,o)}(e.sham||o&&o.sham)&&uo(i,"sham",!0),co(r,n,i,e)}},go={};go[yt("toStringTag")]="z";var ho="[object z]"===String(go),vo=ee,yo=er,bo=yt("toStringTag"),mo=Object,Eo="Arguments"==yo(function(){return arguments}()),So=ho?yo:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=mo(e),bo))?r:Eo?yo(t):"Object"==(n=yo(t))&&vo(t.callee)?"Arguments":n},xo=So,_o=String,wo=function(e){if("Symbol"===xo(e))throw TypeError("Cannot convert a Symbol value to a string");return _o(e)},Oo=ge,Io=function(){var e=Oo(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Co=w,jo=K.RegExp,Ro=Co((function(){var e=jo("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),$o=Ro||Co((function(){return!jo("a","y").sticky})),To=Ro||Co((function(){var e=jo("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),No={BROKEN_CARET:To,MISSED_STICKY:$o,UNSUPPORTED_Y:Ro},ko={},Po=An,Ao=Mn,Mo=Object.keys||function(e){return Po(e,Ao)},Fo=O,Bo=se,Do=X,Lo=ge,qo=ur,Ho=Mo;ko.f=Fo&&!Bo?Object.defineProperties:function(e,t){Lo(e);for(var r,n=qo(t),o=Ho(t),i=o.length,a=0;i>a;)Do.f(e,r=o[a++],n[r]);return e};var zo,Uo=Se("document","documentElement"),Vo=ge,Yo=ko,Wo=Mn,Xo=Ar,Go=Uo,Ko=ue,Jo=Pr("IE_PROTO"),Qo=function(){},Zo=function(e){return"<script>"+e+"<\/script>"},ei=function(e){e.write(Zo("")),e.close();var t=e.parentWindow.Object;return e=null,t},ti=function(){try{zo=new ActiveXObject("htmlfile")}catch(e){}var e,t;ti="undefined"!=typeof document?document.domain&&zo?ei(zo):((t=Ko("iframe")).style.display="none",Go.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Zo("document.F=Object")),e.close(),e.F):ei(zo);for(var r=Wo.length;r--;)delete ti.prototype[Wo[r]];return ti()};Xo[Jo]=!0;var ri=Object.create||function(e,t){var r;return null!==e?(Qo.prototype=Vo(e),r=new Qo,Qo.prototype=null,r[Jo]=e):r=ti(),void 0===t?r:Yo.f(r,t)},ni=w,oi=K.RegExp,ii=ni((function(){var e=oi(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),ai=w,ui=K.RegExp,ci=ai((function(){var e=ui("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),li=ye,si=T,fi=wo,pi=Io,di=No,gi=Ge.exports,hi=ri,vi=Xr.get,yi=ii,bi=ci,mi=gi("native-string-replace",String.prototype.replace),Ei=RegExp.prototype.exec,Si=Ei,xi=si("".charAt),_i=si("".indexOf),wi=si("".replace),Oi=si("".slice),Ii=function(){var e=/a/,t=/b*/g;return li(Ei,e,"a"),li(Ei,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Ci=di.BROKEN_CARET,ji=void 0!==/()??/.exec("")[1];(Ii||ji||Ci||yi||bi)&&(Si=function(e){var t,r,n,o,i,a,u,c=this,l=vi(c),s=fi(e),f=l.raw;if(f)return f.lastIndex=c.lastIndex,t=li(Si,f,s),c.lastIndex=f.lastIndex,t;var p=l.groups,d=Ci&&c.sticky,g=li(pi,c),h=c.source,v=0,y=s;if(d&&(g=wi(g,"y",""),-1===_i(g,"g")&&(g+="g"),y=Oi(s,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==xi(s,c.lastIndex-1))&&(h="(?: "+h+")",y=" "+y,v++),r=new RegExp("^(?:"+h+")",g)),ji&&(r=new RegExp("^"+h+"$(?!\\s)",g)),Ii&&(n=c.lastIndex),o=li(Ei,d?r:c,y),d?o?(o.input=Oi(o.input,v),o[0]=Oi(o[0],v),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Ii&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),ji&&o&&o.length>1&&li(mi,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=a=hi(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Ri=Si;po({target:"RegExp",proto:!0,forced:/./.exec!==Ri},{exec:Ri});var $i,Ti,Ni=po,ki=ye,Pi=ee,Ai=ge,Mi=wo,Fi=($i=!1,(Ti=/[ac]/).exec=function(){return $i=!0,/./.exec.apply(this,arguments)},!0===Ti.test("abc")&&$i),Bi=/./.test;Ni({target:"RegExp",proto:!0,forced:!Fi},{test:function(e){var t=Ai(this),r=Mi(e),n=t.exec;if(!Pi(n))return ki(Bi,t,r);var o=ki(n,t,r);return null!==o&&(Ai(o),!0)}});var Di=I,Li=Function.prototype,qi=Li.apply,Hi=Li.call,zi="object"==typeof Reflect&&Reflect.apply||(Di?Hi.bind(qi):function(){return Hi.apply(qi,arguments)}),Ui=er,Vi=T,Yi=function(e){if("Function"===Ui(e))return Vi(e)},Wi=pn,Xi=Ri,Gi=w,Ki=yt,Ji=mr,Qi=Ki("species"),Zi=RegExp.prototype,ea=T,ta=yn,ra=wo,na=A,oa=ea("".charAt),ia=ea("".charCodeAt),aa=ea("".slice),ua=function(e){return function(t,r){var n,o,i=ra(na(t)),a=ta(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=ia(i,a))<55296||n>56319||a+1===u||(o=ia(i,a+1))<56320||o>57343?e?oa(i,a):n:e?aa(i,a,a+2):o-56320+(n-55296<<10)+65536}},ca={codeAt:ua(!1),charAt:ua(!0)}.charAt,la=T,sa=B,fa=Math.floor,pa=la("".charAt),da=la("".replace),ga=la("".slice),ha=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,va=/\$([$&'`]|\d{1,2})/g,ya=ye,ba=ge,ma=ee,Ea=er,Sa=Ri,xa=TypeError,_a=zi,wa=ye,Oa=T,Ia=function(e,t,r,n){var o=Ki(e),i=!Gi((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Gi((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Qi]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var u=Yi(/./[o]),c=t(o,""[e],(function(e,t,r,n,o){var a=Yi(e),c=t.exec;return c===Xi||c===Zi.exec?i&&!o?{done:!0,value:u(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));Wi(String.prototype,e,c[0]),Wi(Zi,o,c[1])}n&&Ji(Zi[o],"sham",!0)},Ca=w,ja=ge,Ra=ee,$a=N,Ta=yn,Na=_n,ka=wo,Pa=A,Aa=function(e,t,r){return t+(r?ca(e,t).length:1)},Ma=Ue,Fa=function(e,t,r,n,o,i){var a=r+e.length,u=n.length,c=va;return void 0!==o&&(o=sa(o),c=ha),da(i,c,(function(i,c){var l;switch(pa(c,0)){case"$":return"$";case"&":return e;case"`":return ga(t,0,r);case"'":return ga(t,a);case"<":l=o[ga(c,1,-1)];break;default:var s=+c;if(0===s)return i;if(s>u){var f=fa(s/10);return 0===f?i:f<=u?void 0===n[f-1]?pa(c,1):n[f-1]+pa(c,1):i}l=n[s-1]}return void 0===l?"":l}))},Ba=function(e,t){var r=e.exec;if(ma(r)){var n=ya(r,e,t);return null!==n&&ba(n),n}if("RegExp"===Ea(e))return ya(Sa,e,t);throw xa("RegExp#exec called on incompatible receiver")},Da=yt("replace"),La=Math.max,qa=Math.min,Ha=Oa([].concat),za=Oa([].push),Ua=Oa("".indexOf),Va=Oa("".slice),Ya="$0"==="a".replace(/./,"$0"),Wa=!!/./[Da]&&""===/./[Da]("a","$0"),Xa=!Ca((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));Ia("replace",(function(e,t,r){var n=Wa?"$":"$0";return[function(e,r){var n=Pa(this),o=$a(e)?void 0:Ma(e,Da);return o?wa(o,e,n,r):wa(t,ka(n),e,r)},function(e,o){var i=ja(this),a=ka(e);if("string"==typeof o&&-1===Ua(o,n)&&-1===Ua(o,"$<")){var u=r(t,i,a,o);if(u.done)return u.value}var c=Ra(o);c||(o=ka(o));var l=i.global;if(l){var s=i.unicode;i.lastIndex=0}for(var f=[];;){var p=Ba(i,a);if(null===p)break;if(za(f,p),!l)break;""===ka(p[0])&&(i.lastIndex=Aa(a,Na(i.lastIndex),s))}for(var d,g="",h=0,v=0;v<f.length;v++){for(var y=ka((p=f[v])[0]),b=La(qa(Ta(p.index),a.length),0),m=[],E=1;E<p.length;E++)za(m,void 0===(d=p[E])?d:String(d));var S=p.groups;if(c){var x=Ha([y],m,b,a);void 0!==S&&za(x,S);var _=ka(_a(o,void 0,x))}else _=Fa(y,a,b,m,S,o);b>=h&&(g+=Va(a,h,b)+_,h=b+y.length)}return g+Va(a,h)}]}),!Xa||!Ya||Wa);var Ga=ee,Ka=String,Ja=TypeError,Qa=T,Za=ge,eu=function(e){if("object"==typeof e||Ga(e))return e;throw Ja("Can't set "+Ka(e)+" as a prototype")},tu=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Qa(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return Za(r),eu(n),t?e(r,n):r.__proto__=n,r}}():void 0),ru=ee,nu=ne,ou=tu,iu=function(e,t,r){var n,o;return ou&&ru(n=t.constructor)&&n!==r&&nu(o=n.prototype)&&o!==r.prototype&&ou(e,o),e},au=ne,uu=er,cu=yt("match"),lu=ye,su=q,fu=xe,pu=Io,du=RegExp.prototype,gu=function(e){var t=e.flags;return void 0!==t||"flags"in du||su(e,"flags")||!fu(du,e)?t:lu(pu,e)},hu=X.f,vu=Se,yu=X,bu=O,mu=yt("species"),Eu=O,Su=K,xu=T,_u=oo,wu=iu,Ou=mr,Iu=dn.f,Cu=xe,ju=function(e){var t;return au(e)&&(void 0!==(t=e[cu])?!!t:"RegExp"==uu(e))},Ru=wo,$u=gu,Tu=No,Nu=function(e,t,r){r in e||hu(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},ku=pn,Pu=w,Au=q,Mu=Xr.enforce,Fu=function(e){var t=vu(e),r=yu.f;bu&&t&&!t[mu]&&r(t,mu,{configurable:!0,get:function(){return this}})},Bu=ii,Du=ci,Lu=yt("match"),qu=Su.RegExp,Hu=qu.prototype,zu=Su.SyntaxError,Uu=xu(Hu.exec),Vu=xu("".charAt),Yu=xu("".replace),Wu=xu("".indexOf),Xu=xu("".slice),Gu=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ku=/a/g,Ju=/a/g,Qu=new qu(Ku)!==Ku,Zu=Tu.MISSED_STICKY,ec=Tu.UNSUPPORTED_Y,tc=Eu&&(!Qu||Zu||Bu||Du||Pu((function(){return Ju[Lu]=!1,qu(Ku)!=Ku||qu(Ju)==Ju||"/a/i"!=qu(Ku,"i")})));if(_u("RegExp",tc)){for(var rc=function(e,t){var r,n,o,i,a,u,c=Cu(Hu,this),l=ju(e),s=void 0===t,f=[],p=e;if(!c&&l&&s&&e.constructor===rc)return e;if((l||Cu(Hu,e))&&(e=e.source,s&&(t=$u(p))),e=void 0===e?"":Ru(e),t=void 0===t?"":Ru(t),p=e,Bu&&"dotAll"in Ku&&(n=!!t&&Wu(t,"s")>-1)&&(t=Yu(t,/s/g,"")),r=t,Zu&&"sticky"in Ku&&(o=!!t&&Wu(t,"y")>-1)&&ec&&(t=Yu(t,/y/g,"")),Du&&(i=function(e){for(var t,r=e.length,n=0,o="",i=[],a={},u=!1,c=!1,l=0,s="";n<=r;n++){if("\\"===(t=Vu(e,n)))t+=Vu(e,++n);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:Uu(Gu,Xu(e,n+1))&&(n+=2,c=!0),o+=t,l++;continue;case">"===t&&c:if(""===s||Au(a,s))throw new zu("Invalid capture group name");a[s]=!0,i[i.length]=[s,l],c=!1,s="";continue}c?s+=t:o+=t}return[o,i]}(e),e=i[0],f=i[1]),a=wu(qu(e,t),c?this:Hu,rc),(n||o||f.length)&&(u=Mu(a),n&&(u.dotAll=!0,u.raw=rc(function(e){for(var t,r=e.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(t=Vu(e,n))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+Vu(e,++n);return o}(e),r)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==p)try{Ou(a,"source",""===p?"(?:)":p)}catch(e){}return a},nc=Iu(qu),oc=0;nc.length>oc;)Nu(rc,qu,nc[oc++]);Hu.constructor=rc,rc.prototype=Hu,ku(Su,"RegExp",rc,{constructor:!0})}Fu("RegExp");var ic=Er.exports,ac=X,uc=O,cc=No.MISSED_STICKY,lc=er,sc=function(e,t,r){return r.get&&ic(r.get,t,{getter:!0}),r.set&&ic(r.set,t,{setter:!0}),ac.f(e,t,r)},fc=Xr.get,pc=RegExp.prototype,dc=TypeError;uc&&cc&&sc(pc,"sticky",{configurable:!0,get:function(){if(this!==pc){if("RegExp"===lc(this))return!!fc(this).sticky;throw dc("Incompatible receiver, RegExp required")}}});var gc=W.PROPER,hc=pn,vc=ge,yc=wo,bc=w,mc=gu,Ec=RegExp.prototype.toString,Sc=bc((function(){return"/a/b"!=Ec.call({source:"a",flags:"b"})})),xc=gc&&"toString"!=Ec.name;(Sc||xc)&&hc(RegExp.prototype,"toString",(function(){var e=vc(this);return"/"+yc(e.source)+"/"+yc(mc(e))}),{unsafe:!0});var _c=T(1..valueOf),wc=A,Oc=wo,Ic=T("".replace),Cc="[\t\n\v\f\r                 \u2028\u2029\ufeff]",jc=RegExp("^"+Cc+Cc+"*"),Rc=RegExp(Cc+Cc+"*$"),$c=function(e){return function(t){var r=Oc(wc(t));return 1&e&&(r=Ic(r,jc,"")),2&e&&(r=Ic(r,Rc,"")),r}},Tc={start:$c(1),end:$c(2),trim:$c(3)},Nc=O,kc=K,Pc=T,Ac=oo,Mc=pn,Fc=q,Bc=iu,Dc=xe,Lc=Fe,qc=Ot,Hc=w,zc=dn.f,Uc=Vt.f,Vc=X.f,Yc=_c,Wc=Tc.trim,Xc=kc.Number,Gc=Xc.prototype,Kc=kc.TypeError,Jc=Pc("".slice),Qc=Pc("".charCodeAt),Zc=function(e){var t=qc(e,"number");return"bigint"==typeof t?t:el(t)},el=function(e){var t,r,n,o,i,a,u,c,l=qc(e,"number");if(Lc(l))throw Kc("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=Wc(l),43===(t=Qc(l,0))||45===t){if(88===(r=Qc(l,2))||120===r)return NaN}else if(48===t){switch(Qc(l,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+l}for(a=(i=Jc(l,2)).length,u=0;u<a;u++)if((c=Qc(i,u))<48||c>o)return NaN;return parseInt(i,n)}return+l};if(Ac("Number",!Xc(" 0o1")||!Xc("0b1")||Xc("+0x1"))){for(var tl,rl=function(e){var t=arguments.length<1?0:Xc(Zc(e)),r=this;return Dc(Gc,r)&&Hc((function(){Yc(r)}))?Bc(Object(t),r,rl):t},nl=Nc?zc(Xc):"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(","),ol=0;nl.length>ol;ol++)Fc(Xc,tl=nl[ol])&&!Fc(rl,tl)&&Vc(rl,tl,Uc(Xc,tl));rl.prototype=Gc,Gc.constructor=rl,Mc(kc,"Number",rl,{constructor:!0})}var il={inject:["getBaseForm"],props:{colon:{type:Boolean,default:!1},columns:{type:Number,default:4},border:{type:Boolean,default:!0},detail:{type:Array,default:()=>[]},model:{type:Object,default:()=>({})},colHeight:{type:Number},rowErrorMessage:{type:Boolean,default:!1},colBackgroundColor:{type:String},labelBackgroundColor:{type:String}},data(){return this.desc="表单布局,是一种专门用于管理表单中输入字段的布局",this.baseSpanNum=24,this.gutter=0,{}},computed:{colonText(){return this.colon?":":""},rowsData(){const e=[];for(let t=0,r=this.detail.length;t<r;t+=1){const n=[this.detail[t]];let o=parseInt(this.detail[t].span,10);if(o>=this.columns)e.push(n);else{for(let e=t+1,r=this.detail.length;e<r;e+=1)if(o+=parseInt(this.detail[e].span,10),n.push(this.detail[e]),o>=this.columns){t=e;break}if(e.push(n),n.length===r||n[n.length-1].name===this.detail[this.detail.length-1].name)break}}return e}},created(){this.$nextTick((()=>{y(this.labelBackgroundColor)||this.setLabelElementBackgroundColor()}))},methods:{registerEvent(e){if(S(e,"listeners")&&!g(e.listeners)){const t=this.$refs[`ref-${e.name}${this._uid}`][0],r=e.listeners;x(r,((e,r)=>{t.$off(r,e),t.$on(r,e)}))}},_isRenderErrorSlot:(e={})=>!y(m(e,"slotNode.error")),_renderErrorHtml(e=function(){},t=""){this.$slots.default=e(this.$createElement,t)},getComponent:e=>e,getComponentProps:e=>E(e,["value","span","name","label","labelHtml","rules","labelWidth","required","error","showMessage","inlineMessage","size","show-message","inline-message","itemCtCls"]),getCtCls(e){const t=[e];return this.rowErrorMessage&&t.push("item_row-error-message"),b(t," ")},getRowCls(e){return this.border?this.rowsData.length-1===e?"base-form_row-border":"base-form_row-border-no-bottom":""},setLabelElementBackgroundColor(){const e=this.getBaseForm.$children[0].$children[0].$children;for(let t=0,r=e.length;t<r;t+=1){const r=e[t],n=r.$children;for(let e=0,t=n.length;e<t;e+=1){const t=n[e].$children[0].$children[0];t.$el.style.backgroundColor=this.labelBackgroundColor,t.$el.style.lineHeight=`${r.$el.clientHeight}px`}}}}};function al(e,t,r,n,o,i,a,u,c,l){"boolean"!=typeof a&&(c=u,u=a,a=!1);const s="function"==typeof r?r.options:r;let f;if(e&&e.render&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns,s._compiled=!0,o&&(s.functional=!0)),n&&(s._scopeId=n),i?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,c(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},s._ssrRegister=f):t&&(f=a?function(e){t.call(this,l(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,u(e))}),f)if(s.functional){const e=s.render;s.render=function(t,r){return f.call(r),e(t,r)}}else{const e=s.beforeCreate;s.beforeCreate=e?[].concat(e,f):[f]}return r}const ul=il;var cl=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",e._l(e.rowsData,(function(t,n){return r("el-row",{key:n,class:e.getRowCls(n),style:{"background-color":e.colBackgroundColor},attrs:{gutter:e.gutter,type:"flex"}},e._l(t,(function(n,o){return r("el-col",{key:n.name,style:{"border-right":!!e.border&&(t.length>1&&t.length-1!==o&&"1px solid #E0E0E0")},attrs:{span:e.baseSpanNum/e.columns*n.span}},[r("el-form-item",{class:e.getCtCls(n.itemCtCls),attrs:{prop:n.name,"label-width":n.labelWidth,required:n.required,rules:n.rules,error:n.error,"show-message":n.showMessage,"inline-message":n.inlineMessage,size:n.size},scopedSlots:e._u([{key:"label",fn:function(){return[n.hasOwnProperty("labelHtml")?r("label",{domProps:{innerHTML:e._s(n.labelHtml+e.colonText)}}):r("label",{domProps:{innerHTML:e._s(n.label+e.colonText)}})]},proxy:!0},e._isRenderErrorSlot(n)?{key:"error",fn:function(t){var r=t.error;return[e._v("\n "+e._s(e._renderErrorHtml(n.slotNode.error,r))+"\n "),e._t("default")]}}:null],null,!0)},[e._v(" "),e._v(" "),r(e.getComponent(n.el),e._b({ref:"ref-"+n.name+e._uid,refInFor:!0,tag:"component",on:{"hook:mounted":function(t){return e.registerEvent(n)}},model:{value:e.model[n.name],callback:function(t){e.$set(e.model,n.name,t)},expression:"model[col.name]"}},"component",e.getComponentProps(n),!1))],1)],1)})),1)})),1)};cl._withStripped=!0;const ll=al({render:cl,staticRenderFns:[]},undefined,ul,undefined,false,undefined,!1,void 0,void 0,void 0);var sl={name:"BaseForm",inheritAttrs:!1,provide:function(){return{getBaseForm:this}},props:{border:{type:Boolean,default:!1},colon:{type:Boolean,default:!1},columns:{type:Number,default:2},detail:{type:Array,default:function(){return[]}},ctCls:{type:String},rowErrorMessage:{type:Boolean,default:!1},colBackgroundColor:{type:String},labelBackgroundColor:{type:String},colHeight:{type:Number},isRender:{type:Boolean,default:!0},isDisplay:{type:Boolean,default:!0}},data:function(){return{}},methods:{_validateEvent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.$emit("validate",e,t,r)},validate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};this.$refs["".concat(this._uid,"-el-form-ref")].validate((function(r){if(!r)return t(),!1;e()}))},resetFields:function(){this.$refs["".concat(this._uid,"-el-form-ref")].resetFields()},clearValidate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.$refs["".concat(this._uid,"-el-form-ref")].clearValidate(e)},validateField:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};g(e)||this.$refs["".concat(this._uid,"-el-form-ref")].validateField(e,t)},getForm:function(){return this.$refs["".concat(this._uid,"-el-form-ref")]}},render:function(e){if(v(this.isRender,!1))return e();var t={};v(this.isDisplay,!1)&&h(t,"display","none");var r=["base-el-form"];return y(this.ctCls)||r.push(this.ctCls),this.rowErrorMessage&&r.push("base-row_error_message"),e("el-form",{ref:"".concat(this._uid,"-el-form-ref"),style:t,attrs:{id:this.$attrs.id},class:b(r," "),props:this.$attrs,on:{validate:this._validateEvent}},[e(ll,{props:{colon:this.colon,columns:this.columns,border:this.border,detail:this.detail,model:this.$attrs.model,rowErrorMessage:this.rowErrorMessage,colBackgroundColor:this.colBackgroundColor,labelBackgroundColor:this.labelBackgroundColor,colHeight:this.colHeight}})])}};sl.install=function(e,t){var r;if(r="按需加载独立组件:".concat(sl.name),"development"!==process.env.NODE_ENV&&"dev"!==process.env.NODE_ENV||console.warn(r),d(t)&&!g(t))for(var n=0;n<t.length;n+=1)t[n].name!==sl.name&&e.use(t[n]);e.component(sl.name,sl)},exports.BaseForm=sl;