UNPKG

shu-c-view

Version:

rollup 打包vue组件库框架

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