shu-c-view
Version:
rollup 打包vue组件库框架
7 lines (6 loc) • 15.2 kB
JavaScript
/*!
* shu-c-view v1.2.37
* (c) 2022-09-22
* @license MIT
*/
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lodash/isArray"),e=require("lodash/isEmpty");function n(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var r=n(t),o=n(e),i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},c=function(t){try{return!!t()}catch(t){return!0}},a=!c((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u={},f=function(t){return t&&t.Math==Math&&t},l=f("object"==typeof globalThis&&globalThis)||f("object"==typeof window&&window)||f("object"==typeof self&&self)||f("object"==typeof i&&i)||function(){return this}()||Function("return this")(),s=function(t){return"object"==typeof t?null!==t:"function"==typeof t},p=s,d=l.document,g=p(d)&&p(d.createElement),v=function(t){return g?d.createElement(t):{}},h=!a&&!c((function(){return 7!=Object.defineProperty(v("div"),"a",{get:function(){return 7}}).a})),y=s,E=function(t){if(!y(t))throw TypeError(String(t)+" is not an object");return t},b=s,x=function(t,e){if(!b(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!b(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!b(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!b(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},m=a,S=h,_=E,O=x,R=Object.defineProperty;u.f=m?R:function(t,e,n){if(_(t),e=O(e,!0),_(n),S)try{return R(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var w=a,T=u.f,P=Function.prototype,j=P.toString,I=/^\s*function ([^ (]*)/;w&&!("name"in P)&&T(P,"name",{configurable:!0,get:function(){try{return j.call(this).match(I)[1]}catch(t){return""}}});var C={},A={},$={}.propertyIsEnumerable,N=Object.getOwnPropertyDescriptor,U=N&&!$.call({1:2},1);A.f=U?function(t){var e=N(this,t);return!!e&&e.enumerable}:$;var M=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},D={}.toString,k=function(t){return D.call(t).slice(8,-1)},F=k,L="".split,V=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},B=c((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==F(t)?L.call(t,""):Object(t)}:Object,K=V,G=function(t){return B(K(t))},X={}.hasOwnProperty,Y=function(t,e){return X.call(t,e)},q=a,z=A,W=M,H=G,J=x,Q=Y,Z=h,tt=Object.getOwnPropertyDescriptor;C.f=q?tt:function(t,e){if(t=H(t),e=J(e,!0),Z)try{return tt(t,e)}catch(t){}if(Q(t,e))return W(!z.f.call(t,e),t[e])};var et=u,nt=M,rt=a?function(t,e,n){return et.f(t,e,nt(1,n))}:function(t,e,n){return t[e]=n,t},ot={exports:{}},it=l,ct=rt,at=function(t,e){try{ct(it,t,e)}catch(n){it[t]=e}return e},ut=at,ft=l["__core-js_shared__"]||ut("__core-js_shared__",{}),lt=ft,st=Function.toString;"function"!=typeof lt.inspectSource&&(lt.inspectSource=function(t){return st.call(t)});var pt=lt.inspectSource,dt=pt,gt=l.WeakMap,vt="function"==typeof gt&&/native code/.test(dt(gt)),ht={exports:{}},yt=ft;(ht.exports=function(t,e){return yt[t]||(yt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.9.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var Et,bt,xt,mt=0,St=Math.random(),_t=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++mt+St).toString(36)},Ot=ht.exports,Rt=_t,wt=Ot("keys"),Tt={},Pt=vt,jt=s,It=rt,Ct=Y,At=ft,$t=function(t){return wt[t]||(wt[t]=Rt(t))},Nt=Tt,Ut=l.WeakMap;if(Pt){var Mt=At.state||(At.state=new Ut),Dt=Mt.get,kt=Mt.has,Ft=Mt.set;Et=function(t,e){return e.facade=t,Ft.call(Mt,t,e),e},bt=function(t){return Dt.call(Mt,t)||{}},xt=function(t){return kt.call(Mt,t)}}else{var Lt=$t("state");Nt[Lt]=!0,Et=function(t,e){return e.facade=t,It(t,Lt,e),e},bt=function(t){return Ct(t,Lt)?t[Lt]:{}},xt=function(t){return Ct(t,Lt)}}var Vt={set:Et,get:bt,has:xt,enforce:function(t){return xt(t)?bt(t):Et(t,{})},getterFor:function(t){return function(e){var n;if(!jt(e)||(n=bt(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},Bt=l,Kt=rt,Gt=Y,Xt=at,Yt=pt,qt=Vt.get,zt=Vt.enforce,Wt=String(String).split("String");(ot.exports=function(t,e,n,r){var o,i=!!r&&!!r.unsafe,c=!!r&&!!r.enumerable,a=!!r&&!!r.noTargetGet;"function"==typeof n&&("string"!=typeof e||Gt(n,"name")||Kt(n,"name",e),(o=zt(n)).source||(o.source=Wt.join("string"==typeof e?e:""))),t!==Bt?(i?!a&&t[e]&&(c=!0):delete t[e],c?t[e]=n:Kt(t,e,n)):c?t[e]=n:Xt(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&qt(this).source||Yt(this)}));var Ht=l,Jt=l,Qt=function(t){return"function"==typeof t?t:void 0},Zt=function(t,e){return arguments.length<2?Qt(Ht[t])||Qt(Jt[t]):Ht[t]&&Ht[t][e]||Jt[t]&&Jt[t][e]},te={},ee=Math.ceil,ne=Math.floor,re=function(t){return isNaN(t=+t)?0:(t>0?ne:ee)(t)},oe=re,ie=Math.min,ce=function(t){return t>0?ie(oe(t),9007199254740991):0},ae=re,ue=Math.max,fe=Math.min,le=G,se=ce,pe=function(t,e){var n=ae(t);return n<0?ue(n+e,0):fe(n,e)},de=function(t){return function(e,n,r){var o,i=le(e),c=se(i.length),a=pe(r,c);if(t&&n!=n){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},ge={includes:de(!0),indexOf:de(!1)},ve=Y,he=G,ye=ge.indexOf,Ee=Tt,be=function(t,e){var n,r=he(t),o=0,i=[];for(n in r)!ve(Ee,n)&&ve(r,n)&&i.push(n);for(;e.length>o;)ve(r,n=e[o++])&&(~ye(i,n)||i.push(n));return i},xe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");te.f=Object.getOwnPropertyNames||function(t){return be(t,xe)};var me={};me.f=Object.getOwnPropertySymbols;var Se=te,_e=me,Oe=E,Re=Zt("Reflect","ownKeys")||function(t){var e=Se.f(Oe(t)),n=_e.f;return n?e.concat(n(t)):e},we=Y,Te=Re,Pe=C,je=u,Ie=c,Ce=/#|\.prototype\./,Ae=function(t,e){var n=Ne[$e(t)];return n==Me||n!=Ue&&("function"==typeof e?Ie(e):!!e)},$e=Ae.normalize=function(t){return String(t).replace(Ce,".").toLowerCase()},Ne=Ae.data={},Ue=Ae.NATIVE="N",Me=Ae.POLYFILL="P",De=Ae,ke=l,Fe=C.f,Le=rt,Ve=ot.exports,Be=at,Ke=function(t,e){for(var n=Te(e),r=je.f,o=Pe.f,i=0;i<n.length;i++){var c=n[i];we(t,c)||r(t,c,o(e,c))}},Ge=De,Xe=E,Ye=function(){var t=Xe(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},qe={},ze=c;function We(t,e){return RegExp(t,e)}qe.UNSUPPORTED_Y=ze((function(){var t=We("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),qe.BROKEN_CARET=ze((function(){var t=We("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));var He=Ye,Je=qe,Qe=RegExp.prototype.exec,Ze=String.prototype.replace,tn=Qe,en=function(){var t=/a/,e=/b*/g;return Qe.call(t,"a"),Qe.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),nn=Je.UNSUPPORTED_Y||Je.BROKEN_CARET,rn=void 0!==/()??/.exec("")[1];(en||rn||nn)&&(tn=function(t){var e,n,r,o,i=this,c=nn&&i.sticky,a=He.call(i),u=i.source,f=0,l=t;return c&&(-1===(a=a.replace("y","")).indexOf("g")&&(a+="g"),l=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(u="(?: "+u+")",l=" "+l,f++),n=new RegExp("^(?:"+u+")",a)),rn&&(n=new RegExp("^"+u+"$(?!\\s)",a)),en&&(e=i.lastIndex),r=Qe.call(c?n:i,l),c?r?(r.input=r.input.slice(f),r[0]=r[0].slice(f),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:en&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),rn&&r&&r.length>1&&Ze.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var on=tn;(function(t,e){var n,r,o,i,c,a=t.target,u=t.global,f=t.stat;if(n=u?ke:f?ke[a]||Be(a,{}):(ke[a]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(c=Fe(n,r))&&c.value:n[r],!Ge(u?r:a+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ke(i,o)}(t.sham||o&&o.sham)&&Le(i,"sham",!0),Ve(n,r,i,t)}})({target:"RegExp",proto:!0,forced:/./.exec!==on},{exec:on});var cn,an,un="process"==k(l.process),fn=Zt("navigator","userAgent")||"",ln=l.process,sn=ln&&ln.versions,pn=sn&&sn.v8;pn?an=(cn=pn.split("."))[0]+cn[1]:fn&&(!(cn=fn.match(/Edge\/(\d+)/))||cn[1]>=74)&&(cn=fn.match(/Chrome\/(\d+)/))&&(an=cn[1]);var dn=un,gn=an&&+an,vn=c,hn=!!Object.getOwnPropertySymbols&&!vn((function(){return!Symbol.sham&&(dn?38===gn:gn>37&&gn<41)})),yn=hn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,En=l,bn=ht.exports,xn=Y,mn=_t,Sn=hn,_n=yn,On=bn("wks"),Rn=En.Symbol,wn=_n?Rn:Rn&&Rn.withoutSetter||mn,Tn=function(t){return xn(On,t)&&(Sn||"string"==typeof On[t])||(Sn&&xn(Rn,t)?On[t]=Rn[t]:On[t]=wn("Symbol."+t)),On[t]},Pn=ot.exports,jn=c,In=Tn,Cn=on,An=rt,$n=In("species"),Nn=!jn((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Un="$0"==="a".replace(/./,"$0"),Mn=In("replace"),Dn=!!/./[Mn]&&""===/./[Mn]("a","$0"),kn=!jn((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Fn=re,Ln=V,Vn=function(t){return function(e,n){var r,o,i=String(Ln(e)),c=Fn(n),a=i.length;return c<0||c>=a?t?"":void 0:(r=i.charCodeAt(c))<55296||r>56319||c+1===a||(o=i.charCodeAt(c+1))<56320||o>57343?t?i.charAt(c):r:t?i.slice(c,c+2):o-56320+(r-55296<<10)+65536}},Bn={codeAt:Vn(!1),charAt:Vn(!0)}.charAt,Kn=V,Gn=function(t){return Object(Kn(t))},Xn=Math.floor,Yn="".replace,qn=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,zn=/\$([$&'`]|\d{1,2})/g,Wn=k,Hn=on,Jn=function(t,e,n,r){var o=In(t),i=!jn((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=i&&!jn((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[$n]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!c||"replace"===t&&(!Nn||!Un||Dn)||"split"===t&&!kn){var a=/./[o],u=n(o,""[t],(function(t,e,n,r,o){return e.exec===Cn?i&&!o?{done:!0,value:a.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Un,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Dn}),f=u[0],l=u[1];Pn(String.prototype,t,f),Pn(RegExp.prototype,o,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)})}r&&An(RegExp.prototype[o],"sham",!0)},Qn=E,Zn=ce,tr=re,er=V,nr=function(t,e,n){return e+(n?Bn(t,e).length:1)},rr=function(t,e,n,r,o,i){var c=n+t.length,a=r.length,u=zn;return void 0!==o&&(o=Gn(o),u=qn),Yn.call(i,u,(function(i,u){var f;switch(u.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(c);case"<":f=o[u.slice(1,-1)];break;default:var l=+u;if(0===l)return i;if(l>a){var s=Xn(l/10);return 0===s?i:s<=a?void 0===r[s-1]?u.charAt(1):r[s-1]+u.charAt(1):i}f=r[l-1]}return void 0===f?"":f}))},or=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==Wn(t))throw TypeError("RegExp#exec called on incompatible receiver");return Hn.call(t,e)},ir=Math.max,cr=Math.min;Jn("replace",2,(function(t,e,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,c=o?"$":"$0";return[function(n,r){var o=er(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(c)){var a=n(e,t,this,r);if(a.done)return a.value}var u=Qn(t),f=String(this),l="function"==typeof r;l||(r=String(r));var s=u.global;if(s){var p=u.unicode;u.lastIndex=0}for(var d=[];;){var g=or(u,f);if(null===g)break;if(d.push(g),!s)break;""===String(g[0])&&(u.lastIndex=nr(f,Zn(u.lastIndex),p))}for(var v,h="",y=0,E=0;E<d.length;E++){g=d[E];for(var b=String(g[0]),x=ir(cr(tr(g.index),f.length),0),m=[],S=1;S<g.length;S++)m.push(void 0===(v=g[S])?v:String(v));var _=g.groups;if(l){var O=[b].concat(m,x,f);void 0!==_&&O.push(_);var R=String(r.apply(void 0,O))}else R=rr(b,f,x,m,_,r);x>=y&&(h+=f.slice(y,x)+R,y=x+b.length)}return h+f.slice(y)}]}));var ar=s,ur=E,fr=function(t){if(!ar(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},lr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return ur(n),fr(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),sr=s,pr=lr,dr=s,gr=k,vr=Tn("match"),hr=Zt,yr=u,Er=a,br=Tn("species"),xr=a,mr=l,Sr=De,_r=function(t,e,n){var r,o;return pr&&"function"==typeof(r=e.constructor)&&r!==n&&sr(o=r.prototype)&&o!==n.prototype&&pr(t,o),t},Or=u.f,Rr=te.f,wr=function(t){var e;return dr(t)&&(void 0!==(e=t[vr])?!!e:"RegExp"==gr(t))},Tr=Ye,Pr=qe,jr=ot.exports,Ir=c,Cr=Vt.set,Ar=function(t){var e=hr(t),n=yr.f;Er&&e&&!e[br]&&n(e,br,{configurable:!0,get:function(){return this}})},$r=Tn("match"),Nr=mr.RegExp,Ur=Nr.prototype,Mr=/a/g,Dr=/a/g,kr=new Nr(Mr)!==Mr,Fr=Pr.UNSUPPORTED_Y;if(xr&&Sr("RegExp",!kr||Fr||Ir((function(){return Dr[$r]=!1,Nr(Mr)!=Mr||Nr(Dr)==Dr||"/a/i"!=Nr(Mr,"i")})))){for(var Lr=function(t,e){var n,r=this instanceof Lr,o=wr(t),i=void 0===e;if(!r&&o&&t.constructor===Lr&&i)return t;kr?o&&!i&&(t=t.source):t instanceof Lr&&(i&&(e=Tr.call(t)),t=t.source),Fr&&(n=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var c=_r(kr?new Nr(t,e):Nr(t,e),r?this:Ur,Lr);return Fr&&n&&Cr(c,{sticky:n}),c},Vr=function(t){t in Lr||Or(Lr,t,{configurable:!0,get:function(){return Nr[t]},set:function(e){Nr[t]=e}})},Br=Rr(Nr),Kr=0;Br.length>Kr;)Vr(Br[Kr++]);Ur.constructor=Lr,Lr.prototype=Ur,jr(mr,"RegExp",Lr)}Ar("RegExp");var Gr=ot.exports,Xr=E,Yr=c,qr=Ye,zr=RegExp.prototype,Wr=zr.toString,Hr=Yr((function(){return"/a/b"!=Wr.call({source:"a",flags:"b"})})),Jr="toString"!=Wr.name;(Hr||Jr)&&Gr(RegExp.prototype,"toString",(function(){var t=Xr(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in zr)?qr.call(t):n)}),{unsafe:!0});function Qr(t,e,n,r,o,i,c,a,u,f){"boolean"!=typeof c&&(u=a,a=c,c=!1);const l="function"==typeof n?n.options:n;let s;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),r&&(l._scopeId=r),i?(s=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,u(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=s):e&&(s=c?function(t){e.call(this,f(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),s)if(l.functional){const t=l.render;l.render=function(e,n){return s.call(n),t(e,n)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,s):[s]}return n}const Zr=Qr({},undefined,{name:"BaseTempVar",functional:!0,props:["var1","var2","var3"],render:(t,e)=>e.scopedSlots.default&&e.scopedSlots.default(e.props||{})},undefined,undefined,undefined,!1,void 0,void 0,void 0);Zr.install=function(t,e){var n;if(n="按需加载独立组件:"+Zr.name,"development"!==process.env.NODE_ENV&&"dev"!==process.env.NODE_ENV||console.warn(n),r(e)&&!o(e))for(var i=0;i<e.length;i++)e[i].name!==Zr.name&&t.use(e[i]);t.component(Zr.name,Zr)},exports.BaseTempVar=Zr;