UNPKG

shu-c-view

Version:

rollup 打包vue@2.7组件库框架

7 lines (6 loc) 31.9 kB
/*! * shu-c-view v2.0.7 * (c) 2024-10-22 * @license MIT */ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("jquery"),e=require("lodash/isEmpty"),n=require("lodash/isArray"),r=require("lodash/get"),i=require("lodash/map"),o=require("lodash/toNumber"),a=require("lodash/find"),c=require("lodash/has");function u(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var s=u(t),l=u(e),f=u(n),h=u(r),d=u(i),p=u(o),v=u(a),g=u(c);function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var b,m,w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},x=function(t){try{return!!t()}catch(t){return!0}},S=!x((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),M=function(t){return t&&t.Math==Math&&t},E=M("object"==typeof globalThis&&globalThis)||M("object"==typeof window&&window)||M("object"==typeof self&&self)||M("object"==typeof w&&w)||function(){return this}()||Function("return this")(),C=!x((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),O=C,R=Function.prototype,I=R.call,j=O&&R.bind.bind(I,I),k=O?j:function(t){return function(){return I.apply(t,arguments)}},A="object"==typeof document&&document.all,_={all:A,IS_HTMLDDA:void 0===A&&void 0!==A},T=_.all,z=_.IS_HTMLDDA?function(t){return"function"==typeof t||t===T}:function(t){return"function"==typeof t},N=x,P=z,D=/#|\.prototype\./,L=function(t,e){var n=$[F(t)];return n==U||n!=H&&(P(e)?N(e):!!e)},F=L.normalize=function(t){return String(t).replace(D,".").toLowerCase()},$=L.data={},H=L.NATIVE="N",U=L.POLYFILL="P",W=L,q={},V=z,G=_.all,Y=_.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:V(t)||t===G}:function(t){return"object"==typeof t?null!==t:V(t)},B=Y,K=E.document,X=B(K)&&B(K.createElement),J=function(t){return X?K.createElement(t):{}},Q=J,Z=!S&&!x((function(){return 7!=Object.defineProperty(Q("div"),"a",{get:function(){return 7}}).a})),tt=S&&x((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),et=Y,nt=String,rt=TypeError,it=function(t){if(et(t))return t;throw rt(nt(t)+" is not an object")},ot=C,at=Function.prototype.call,ct=ot?at.bind(at):function(){return at.apply(at,arguments)},ut=E,st=z,lt=function(t){return st(t)?t:void 0},ft=function(t,e){return arguments.length<2?lt(ut[t]):ut[t]&&ut[t][e]},ht=k({}.isPrototypeOf),dt=E,pt=ft("navigator","userAgent")||"",vt=dt.process,gt=dt.Deno,yt=vt&&vt.versions||gt&&gt.version,bt=yt&&yt.v8;bt&&(m=(b=bt.split("."))[0]>0&&b[0]<4?1:+(b[0]+b[1])),!m&&pt&&(!(b=pt.match(/Edge\/(\d+)/))||b[1]>=74)&&(b=pt.match(/Chrome\/(\d+)/))&&(m=+b[1]);var mt=m,wt=mt,xt=x,St=!!Object.getOwnPropertySymbols&&!xt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&wt&&wt<41})),Mt=St&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Et=ft,Ct=z,Ot=ht,Rt=Object,It=Mt?function(t){return"symbol"==typeof t}:function(t){var e=Et("Symbol");return Ct(e)&&Ot(e.prototype,Rt(t))},jt=String,kt=z,At=function(t){try{return jt(t)}catch(t){return"Object"}},_t=TypeError,Tt=function(t){if(kt(t))return t;throw _t(At(t)+" is not a function")},zt=function(t){return null==t},Nt=Tt,Pt=zt,Dt=function(t,e){var n=t[e];return Pt(n)?void 0:Nt(n)},Lt=ct,Ft=z,$t=Y,Ht=TypeError,Ut={exports:{}},Wt=E,qt=Object.defineProperty,Vt=function(t,e){try{qt(Wt,t,{value:e,configurable:!0,writable:!0})}catch(n){Wt[t]=e}return e},Gt=Vt,Yt=E["__core-js_shared__"]||Gt("__core-js_shared__",{}),Bt=Yt;(Ut.exports=function(t,e){return Bt[t]||(Bt[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 Kt=zt,Xt=TypeError,Jt=function(t){if(Kt(t))throw Xt("Can't call method on "+t);return t},Qt=Jt,Zt=Object,te=function(t){return Zt(Qt(t))},ee=te,ne=k({}.hasOwnProperty),re=Object.hasOwn||function(t,e){return ne(ee(t),e)},ie=k,oe=0,ae=Math.random(),ce=ie(1..toString),ue=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ce(++oe+ae,36)},se=E,le=Ut.exports,fe=re,he=ue,de=St,pe=Mt,ve=le("wks"),ge=se.Symbol,ye=ge&&ge.for,be=pe?ge:ge&&ge.withoutSetter||he,me=function(t){if(!fe(ve,t)||!de&&"string"!=typeof ve[t]){var e="Symbol."+t;de&&fe(ge,t)?ve[t]=ge[t]:ve[t]=pe&&ye?ye(e):be(e)}return ve[t]},we=ct,xe=Y,Se=It,Me=Dt,Ee=function(t,e){var n,r;if("string"===e&&Ft(n=t.toString)&&!$t(r=Lt(n,t)))return r;if(Ft(n=t.valueOf)&&!$t(r=Lt(n,t)))return r;if("string"!==e&&Ft(n=t.toString)&&!$t(r=Lt(n,t)))return r;throw Ht("Can't convert object to primitive value")},Ce=TypeError,Oe=me("toPrimitive"),Re=function(t,e){if(!xe(t)||Se(t))return t;var n,r=Me(t,Oe);if(r){if(void 0===e&&(e="default"),n=we(r,t,e),!xe(n)||Se(n))return n;throw Ce("Can't convert object to primitive value")}return void 0===e&&(e="number"),Ee(t,e)},Ie=Re,je=It,ke=function(t){var e=Ie(t,"string");return je(e)?e:e+""},Ae=S,_e=Z,Te=tt,ze=it,Ne=ke,Pe=TypeError,De=Object.defineProperty,Le=Object.getOwnPropertyDescriptor;q.f=Ae?Te?function(t,e,n){if(ze(t),e=Ne(e),ze(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=Le(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return De(t,e,n)}:De:function(t,e,n){if(ze(t),e=Ne(e),ze(n),_e)try{return De(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Pe("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Fe={exports:{}},$e=S,He=re,Ue=Function.prototype,We=$e&&Object.getOwnPropertyDescriptor,qe=He(Ue,"name"),Ve={EXISTS:qe,PROPER:qe&&"something"===function(){}.name,CONFIGURABLE:qe&&(!$e||$e&&We(Ue,"name").configurable)},Ge=z,Ye=Yt,Be=k(Function.toString);Ge(Ye.inspectSource)||(Ye.inspectSource=function(t){return Be(t)});var Ke,Xe,Je,Qe=Ye.inspectSource,Ze=z,tn=E.WeakMap,en=Ze(tn)&&/native code/.test(String(tn)),nn=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},rn=q,on=nn,an=S?function(t,e,n){return rn.f(t,e,on(1,n))}:function(t,e,n){return t[e]=n,t},cn=Ut.exports,un=ue,sn=cn("keys"),ln=function(t){return sn[t]||(sn[t]=un(t))},fn={},hn=en,dn=E,pn=Y,vn=an,gn=re,yn=Yt,bn=ln,mn=fn,wn=dn.TypeError,xn=dn.WeakMap;if(hn||yn.state){var Sn=yn.state||(yn.state=new xn);Sn.get=Sn.get,Sn.has=Sn.has,Sn.set=Sn.set,Ke=function(t,e){if(Sn.has(t))throw wn("Object already initialized");return e.facade=t,Sn.set(t,e),e},Xe=function(t){return Sn.get(t)||{}},Je=function(t){return Sn.has(t)}}else{var Mn=bn("state");mn[Mn]=!0,Ke=function(t,e){if(gn(t,Mn))throw wn("Object already initialized");return e.facade=t,vn(t,Mn,e),e},Xe=function(t){return gn(t,Mn)?t[Mn]:{}},Je=function(t){return gn(t,Mn)}}var En={set:Ke,get:Xe,has:Je,enforce:function(t){return Je(t)?Xe(t):Ke(t,{})},getterFor:function(t){return function(e){var n;if(!pn(e)||(n=Xe(e)).type!==t)throw wn("Incompatible receiver, "+t+" required");return n}}},Cn=x,On=z,Rn=re,In=S,jn=Ve.CONFIGURABLE,kn=Qe,An=En.enforce,_n=En.get,Tn=Object.defineProperty,zn=In&&!Cn((function(){return 8!==Tn((function(){}),"length",{value:8}).length})),Nn=String(String).split("String"),Pn=Fe.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!Rn(t,"name")||jn&&t.name!==e)&&(In?Tn(t,"name",{value:e,configurable:!0}):t.name=e),zn&&n&&Rn(n,"arity")&&t.length!==n.arity&&Tn(t,"length",{value:n.arity});try{n&&Rn(n,"constructor")&&n.constructor?In&&Tn(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=An(t);return Rn(r,"source")||(r.source=Nn.join("string"==typeof e?e:"")),t};Function.prototype.toString=Pn((function(){return On(this)&&_n(this).source||kn(this)}),"toString");var Dn=z,Ln=q,Fn=Fe.exports,$n=Vt,Hn=function(t,e,n,r){r||(r={});var i=r.enumerable,o=void 0!==r.name?r.name:e;if(Dn(n)&&Fn(n,o,r),r.global)i?t[e]=n:$n(e,n);else{try{r.unsafe?t[e]&&(i=!0):delete t[e]}catch(t){}i?t[e]=n:Ln.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Un=z,Wn=String,qn=TypeError,Vn=k,Gn=it,Yn=function(t){if("object"==typeof t||Un(t))return t;throw qn("Can't set "+Wn(t)+" as a prototype")},Bn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Vn(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Gn(n),Yn(r),e?t(n,r):n.__proto__=r,n}}():void 0),Kn=z,Xn=Y,Jn=Bn,Qn=function(t,e,n){var r,i;return Jn&&Kn(r=e.constructor)&&r!==n&&Xn(i=r.prototype)&&i!==n.prototype&&Jn(t,i),t},Zn={},tr=k,er=tr({}.toString),nr=tr("".slice),rr=function(t){return nr(er(t),8,-1)},ir=x,or=rr,ar=Object,cr=k("".split),ur=ir((function(){return!ar("z").propertyIsEnumerable(0)}))?function(t){return"String"==or(t)?cr(t,""):ar(t)}:ar,sr=ur,lr=Jt,fr=function(t){return sr(lr(t))},hr=Math.ceil,dr=Math.floor,pr=Math.trunc||function(t){var e=+t;return(e>0?dr:hr)(e)},vr=function(t){var e=+t;return e!=e||0===e?0:pr(e)},gr=vr,yr=Math.max,br=Math.min,mr=vr,wr=Math.min,xr=function(t){return t>0?wr(mr(t),9007199254740991):0},Sr=xr,Mr=function(t){return Sr(t.length)},Er=fr,Cr=function(t,e){var n=gr(t);return n<0?yr(n+e,0):br(n,e)},Or=Mr,Rr=function(t){return function(e,n,r){var i,o=Er(e),a=Or(o),c=Cr(r,a);if(t&&n!=n){for(;a>c;)if((i=o[c++])!=i)return!0}else for(;a>c;c++)if((t||c in o)&&o[c]===n)return t||c||0;return!t&&-1}},Ir={includes:Rr(!0),indexOf:Rr(!1)},jr=re,kr=fr,Ar=Ir.indexOf,_r=fn,Tr=k([].push),zr=function(t,e){var n,r=kr(t),i=0,o=[];for(n in r)!jr(_r,n)&&jr(r,n)&&Tr(o,n);for(;e.length>i;)jr(r,n=e[i++])&&(~Ar(o,n)||Tr(o,n));return o},Nr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Pr=zr,Dr=Nr.concat("length","prototype");Zn.f=Object.getOwnPropertyNames||function(t){return Pr(t,Dr)};var Lr={},Fr={},$r={}.propertyIsEnumerable,Hr=Object.getOwnPropertyDescriptor,Ur=Hr&&!$r.call({1:2},1);Fr.f=Ur?function(t){var e=Hr(this,t);return!!e&&e.enumerable}:$r;var Wr=S,qr=ct,Vr=Fr,Gr=nn,Yr=fr,Br=ke,Kr=re,Xr=Z,Jr=Object.getOwnPropertyDescriptor;Lr.f=Wr?Jr:function(t,e){if(t=Yr(t),e=Br(e),Xr)try{return Jr(t,e)}catch(t){}if(Kr(t,e))return Gr(!qr(Vr.f,t,e),t[e])};var Qr=k(1..valueOf),Zr={};Zr[me("toStringTag")]="z";var ti="[object z]"===String(Zr),ei=ti,ni=z,ri=rr,ii=me("toStringTag"),oi=Object,ai="Arguments"==ri(function(){return arguments}()),ci=ei?ri:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=oi(t),ii))?n:ai?ri(e):"Object"==(r=ri(e))&&ni(e.callee)?"Arguments":r},ui=ci,si=String,li=function(t){if("Symbol"===ui(t))throw TypeError("Cannot convert a Symbol value to a string");return si(t)},fi=Jt,hi=li,di=k("".replace),pi="[\t\n\v\f\r                 \u2028\u2029\ufeff]",vi=RegExp("^"+pi+pi+"*"),gi=RegExp(pi+pi+"*$"),yi=function(t){return function(e){var n=hi(fi(e));return 1&t&&(n=di(n,vi,"")),2&t&&(n=di(n,gi,"")),n}},bi={start:yi(1),end:yi(2),trim:yi(3)},mi=S,wi=E,xi=k,Si=W,Mi=Hn,Ei=re,Ci=Qn,Oi=ht,Ri=It,Ii=Re,ji=x,ki=Zn.f,Ai=Lr.f,_i=q.f,Ti=Qr,zi=bi.trim,Ni=wi.Number,Pi=Ni.prototype,Di=wi.TypeError,Li=xi("".slice),Fi=xi("".charCodeAt),$i=function(t){var e=Ii(t,"number");return"bigint"==typeof e?e:Hi(e)},Hi=function(t){var e,n,r,i,o,a,c,u,s=Ii(t,"number");if(Ri(s))throw Di("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=zi(s),43===(e=Fi(s,0))||45===e){if(88===(n=Fi(s,2))||120===n)return NaN}else if(48===e){switch(Fi(s,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+s}for(a=(o=Li(s,2)).length,c=0;c<a;c++)if((u=Fi(o,c))<48||u>i)return NaN;return parseInt(o,r)}return+s};if(Si("Number",!Ni(" 0o1")||!Ni("0b1")||Ni("+0x1"))){for(var Ui,Wi=function(t){var e=arguments.length<1?0:Ni($i(t)),n=this;return Oi(Pi,n)&&ji((function(){Ti(n)}))?Ci(Object(e),n,Wi):e},qi=mi?ki(Ni):"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(","),Vi=0;qi.length>Vi;Vi++)Ei(Ni,Ui=qi[Vi])&&!Ei(Wi,Ui)&&_i(Wi,Ui,Ai(Ni,Ui));Wi.prototype=Pi,Pi.constructor=Wi,Mi(wi,"Number",Wi,{constructor:!0})}var Gi={};Gi.f=Object.getOwnPropertySymbols;var Yi=ft,Bi=Zn,Ki=Gi,Xi=it,Ji=k([].concat),Qi=Yi("Reflect","ownKeys")||function(t){var e=Bi.f(Xi(t)),n=Ki.f;return n?Ji(e,n(t)):e},Zi=re,to=Qi,eo=Lr,no=q,ro=E,io=Lr.f,oo=an,ao=Hn,co=Vt,uo=function(t,e,n){for(var r=to(e),i=no.f,o=eo.f,a=0;a<r.length;a++){var c=r[a];Zi(t,c)||n&&Zi(n,c)||i(t,c,o(e,c))}},so=W,lo=function(t,e){var n,r,i,o,a,c=t.target,u=t.global,s=t.stat;if(n=u?ro:s?ro[c]||co(c,{}):(ro[c]||{}).prototype)for(r in e){if(o=e[r],i=t.dontCallGetSet?(a=io(n,r))&&a.value:n[r],!so(u?r:c+(s?".":"#")+r,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;uo(o,i)}(t.sham||i&&i.sham)&&oo(o,"sham",!0),ao(n,r,o,t)}},fo=rr,ho=k,po=function(t){if("Function"===fo(t))return ho(t)},vo=Tt,go=C,yo=po(po.bind),bo=rr,mo=Array.isArray||function(t){return"Array"==bo(t)},wo=k,xo=x,So=z,Mo=ci,Eo=Qe,Co=function(){},Oo=[],Ro=ft("Reflect","construct"),Io=/^\s*(?:class|function)\b/,jo=wo(Io.exec),ko=!Io.exec(Co),Ao=function(t){if(!So(t))return!1;try{return Ro(Co,Oo,t),!0}catch(t){return!1}},_o=function(t){if(!So(t))return!1;switch(Mo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ko||!!jo(Io,Eo(t))}catch(t){return!0}};_o.sham=!0;var To=!Ro||xo((function(){var t;return Ao(Ao.call)||!Ao(Object)||!Ao((function(){t=!0}))||t}))?_o:Ao,zo=mo,No=To,Po=Y,Do=me("species"),Lo=Array,Fo=function(t){var e;return zo(t)&&(e=t.constructor,(No(e)&&(e===Lo||zo(e.prototype))||Po(e)&&null===(e=e[Do]))&&(e=void 0)),void 0===e?Lo:e},$o=function(t,e){return new(Fo(t))(0===e?0:e)},Ho=function(t,e){return vo(t),void 0===e?t:go?yo(t,e):function(){return t.apply(e,arguments)}},Uo=ur,Wo=te,qo=Mr,Vo=$o,Go=k([].push),Yo=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,o=6==t,a=7==t,c=5==t||o;return function(u,s,l,f){for(var h,d,p=Wo(u),v=Uo(p),g=Ho(s,l),y=qo(v),b=0,m=f||Vo,w=e?m(u,y):n||a?m(u,0):void 0;y>b;b++)if((c||b in v)&&(d=g(h=v[b],b,p),t))if(e)w[b]=d;else if(d)switch(t){case 3:return!0;case 5:return h;case 6:return b;case 2:Go(w,h)}else switch(t){case 4:return!1;case 7:Go(w,h)}return o?-1:r||i?i:w}},Bo={forEach:Yo(0),map:Yo(1),filter:Yo(2),some:Yo(3),every:Yo(4),find:Yo(5),findIndex:Yo(6),filterReject:Yo(7)},Ko={},Xo=zr,Jo=Nr,Qo=Object.keys||function(t){return Xo(t,Jo)},Zo=S,ta=tt,ea=q,na=it,ra=fr,ia=Qo;Ko.f=Zo&&!ta?Object.defineProperties:function(t,e){na(t);for(var n,r=ra(e),i=ia(e),o=i.length,a=0;o>a;)ea.f(t,n=i[a++],r[n]);return t};var oa,aa=ft("document","documentElement"),ca=it,ua=Ko,sa=Nr,la=fn,fa=aa,ha=J,da=ln("IE_PROTO"),pa=function(){},va=function(t){return"<script>"+t+"<\/script>"},ga=function(t){t.write(va("")),t.close();var e=t.parentWindow.Object;return t=null,e},ya=function(){try{oa=new ActiveXObject("htmlfile")}catch(t){}var t,e;ya="undefined"!=typeof document?document.domain&&oa?ga(oa):((e=ha("iframe")).style.display="none",fa.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(va("document.F=Object")),t.close(),t.F):ga(oa);for(var n=sa.length;n--;)delete ya.prototype[sa[n]];return ya()};la[da]=!0;var ba=Object.create||function(t,e){var n;return null!==t?(pa.prototype=ca(t),n=new pa,pa.prototype=null,n[da]=t):n=ya(),void 0===e?n:ua.f(n,e)},ma=me,wa=ba,xa=q.f,Sa=ma("unscopables"),Ma=Array.prototype;null==Ma[Sa]&&xa(Ma,Sa,{configurable:!0,value:wa(null)});var Ea=lo,Ca=Bo.find,Oa=function(t){Ma[Sa][t]=!0},Ra=!0;"find"in[]&&Array(1).find((function(){Ra=!1})),Ea({target:"Array",proto:!0,forced:Ra},{find:function(t){return Ca(this,t,arguments.length>1?arguments[1]:void 0)}}),Oa("find");var Ia=ci,ja=ti?{}.toString:function(){return"[object "+Ia(this)+"]"};ti||Hn(Object.prototype,"toString",ja,{unsafe:!0});var ka=TypeError,Aa=ke,_a=q,Ta=nn,za=x,Na=mt,Pa=me("species"),Da=lo,La=x,Fa=mo,$a=Y,Ha=te,Ua=Mr,Wa=function(t){if(t>9007199254740991)throw ka("Maximum allowed index exceeded");return t},qa=function(t,e,n){var r=Aa(e);r in t?_a.f(t,r,Ta(0,n)):t[r]=n},Va=$o,Ga=function(t){return Na>=51||!za((function(){var e=[];return(e.constructor={})[Pa]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Ya=mt,Ba=me("isConcatSpreadable"),Ka=Ya>=51||!La((function(){var t=[];return t[Ba]=!1,t.concat()[0]!==t})),Xa=Ga("concat"),Ja=function(t){if(!$a(t))return!1;var e=t[Ba];return void 0!==e?!!e:Fa(t)};Da({target:"Array",proto:!0,arity:1,forced:!Ka||!Xa},{concat:function(t){var e,n,r,i,o,a=Ha(this),c=Va(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Ja(o=-1===e?a:arguments[e]))for(i=Ua(o),Wa(u+i),n=0;n<i;n++,u++)n in o&&qa(c,u,o[n]);else Wa(u+1),qa(c,u++,o);return c.length=u,c}});var Qa=S,Za=Ve.EXISTS,tc=k,ec=q.f,nc=Function.prototype,rc=tc(nc.toString),ic=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,oc=tc(ic.exec);Qa&&!Za&&ec(nc,"name",{configurable:!0,get:function(){try{return oc(ic,rc(this))[1]}catch(t){return""}}});var ac=it,cc=function(){var t=ac(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},uc=x,sc=E.RegExp,lc=uc((function(){var t=sc("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),fc=lc||uc((function(){return!sc("a","y").sticky})),hc=lc||uc((function(){var t=sc("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),dc={BROKEN_CARET:hc,MISSED_STICKY:fc,UNSUPPORTED_Y:lc},pc=x,vc=E.RegExp,gc=pc((function(){var t=vc(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),yc=x,bc=E.RegExp,mc=yc((function(){var t=bc("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),wc=ct,xc=k,Sc=li,Mc=cc,Ec=dc,Cc=Ut.exports,Oc=ba,Rc=En.get,Ic=gc,jc=mc,kc=Cc("native-string-replace",String.prototype.replace),Ac=RegExp.prototype.exec,_c=Ac,Tc=xc("".charAt),zc=xc("".indexOf),Nc=xc("".replace),Pc=xc("".slice),Dc=function(){var t=/a/,e=/b*/g;return wc(Ac,t,"a"),wc(Ac,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Lc=Ec.BROKEN_CARET,Fc=void 0!==/()??/.exec("")[1];(Dc||Fc||Lc||Ic||jc)&&(_c=function(t){var e,n,r,i,o,a,c,u=this,s=Rc(u),l=Sc(t),f=s.raw;if(f)return f.lastIndex=u.lastIndex,e=wc(_c,f,l),u.lastIndex=f.lastIndex,e;var h=s.groups,d=Lc&&u.sticky,p=wc(Mc,u),v=u.source,g=0,y=l;if(d&&(p=Nc(p,"y",""),-1===zc(p,"g")&&(p+="g"),y=Pc(l,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==Tc(l,u.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",p)),Fc&&(n=new RegExp("^"+v+"$(?!\\s)",p)),Dc&&(r=u.lastIndex),i=wc(Ac,d?n:u,y),d?i?(i.input=Pc(i.input,g),i[0]=Pc(i[0],g),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:Dc&&i&&(u.lastIndex=u.global?i.index+i[0].length:r),Fc&&i&&i.length>1&&wc(kc,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&h)for(i.groups=a=Oc(null),o=0;o<h.length;o++)a[(c=h[o])[0]]=i[c[1]];return i});var $c=_c;lo({target:"RegExp",proto:!0,forced:/./.exec!==$c},{exec:$c});var Hc,Uc,Wc=lo,qc=ct,Vc=z,Gc=it,Yc=li,Bc=(Hc=!1,(Uc=/[ac]/).exec=function(){return Hc=!0,/./.exec.apply(this,arguments)},!0===Uc.test("abc")&&Hc),Kc=/./.test;Wc({target:"RegExp",proto:!0,forced:!Bc},{test:function(t){var e=Gc(this),n=Yc(t),r=e.exec;if(!Vc(r))return qc(Kc,e,n);var i=qc(r,e,n);return null!==i&&(Gc(i),!0)}});var Xc=C,Jc=Function.prototype,Qc=Jc.apply,Zc=Jc.call,tu="object"==typeof Reflect&&Reflect.apply||(Xc?Zc.bind(Qc):function(){return Zc.apply(Qc,arguments)}),eu=po,nu=Hn,ru=$c,iu=x,ou=me,au=an,cu=ou("species"),uu=RegExp.prototype,su=k,lu=vr,fu=li,hu=Jt,du=su("".charAt),pu=su("".charCodeAt),vu=su("".slice),gu=function(t){return function(e,n){var r,i,o=fu(hu(e)),a=lu(n),c=o.length;return a<0||a>=c?t?"":void 0:(r=pu(o,a))<55296||r>56319||a+1===c||(i=pu(o,a+1))<56320||i>57343?t?du(o,a):r:t?vu(o,a,a+2):i-56320+(r-55296<<10)+65536}},yu={codeAt:gu(!1),charAt:gu(!0)}.charAt,bu=k,mu=te,wu=Math.floor,xu=bu("".charAt),Su=bu("".replace),Mu=bu("".slice),Eu=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Cu=/\$([$&'`]|\d{1,2})/g,Ou=ct,Ru=it,Iu=z,ju=rr,ku=$c,Au=TypeError,_u=tu,Tu=ct,zu=k,Nu=function(t,e,n,r){var i=ou(t),o=!iu((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),a=o&&!iu((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[cu]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!o||!a||n){var c=eu(/./[i]),u=e(i,""[t],(function(t,e,n,r,i){var a=eu(t),u=e.exec;return u===ru||u===uu.exec?o&&!i?{done:!0,value:c(e,n,r)}:{done:!0,value:a(n,e,r)}:{done:!1}}));nu(String.prototype,t,u[0]),nu(uu,i,u[1])}r&&au(uu[i],"sham",!0)},Pu=x,Du=it,Lu=z,Fu=zt,$u=vr,Hu=xr,Uu=li,Wu=Jt,qu=function(t,e,n){return e+(n?yu(t,e).length:1)},Vu=Dt,Gu=function(t,e,n,r,i,o){var a=n+t.length,c=r.length,u=Cu;return void 0!==i&&(i=mu(i),u=Eu),Su(o,u,(function(o,u){var s;switch(xu(u,0)){case"$":return"$";case"&":return t;case"`":return Mu(e,0,n);case"'":return Mu(e,a);case"<":s=i[Mu(u,1,-1)];break;default:var l=+u;if(0===l)return o;if(l>c){var f=wu(l/10);return 0===f?o:f<=c?void 0===r[f-1]?xu(u,1):r[f-1]+xu(u,1):o}s=r[l-1]}return void 0===s?"":s}))},Yu=function(t,e){var n=t.exec;if(Iu(n)){var r=Ou(n,t,e);return null!==r&&Ru(r),r}if("RegExp"===ju(t))return Ou(ku,t,e);throw Au("RegExp#exec called on incompatible receiver")},Bu=me("replace"),Ku=Math.max,Xu=Math.min,Ju=zu([].concat),Qu=zu([].push),Zu=zu("".indexOf),ts=zu("".slice),es="$0"==="a".replace(/./,"$0"),ns=!!/./[Bu]&&""===/./[Bu]("a","$0"),rs=!Pu((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));Nu("replace",(function(t,e,n){var r=ns?"$":"$0";return[function(t,n){var r=Wu(this),i=Fu(t)?void 0:Vu(t,Bu);return i?Tu(i,t,r,n):Tu(e,Uu(r),t,n)},function(t,i){var o=Du(this),a=Uu(t);if("string"==typeof i&&-1===Zu(i,r)&&-1===Zu(i,"$<")){var c=n(e,o,a,i);if(c.done)return c.value}var u=Lu(i);u||(i=Uu(i));var s=o.global;if(s){var l=o.unicode;o.lastIndex=0}for(var f=[];;){var h=Yu(o,a);if(null===h)break;if(Qu(f,h),!s)break;""===Uu(h[0])&&(o.lastIndex=qu(a,Hu(o.lastIndex),l))}for(var d,p="",v=0,g=0;g<f.length;g++){for(var y=Uu((h=f[g])[0]),b=Ku(Xu($u(h.index),a.length),0),m=[],w=1;w<h.length;w++)Qu(m,void 0===(d=h[w])?d:String(d));var x=h.groups;if(u){var S=Ju([y],m,b,a);void 0!==x&&Qu(S,x);var M=Uu(_u(i,void 0,S))}else M=Gu(y,a,b,m,x,i);b>=v&&(p+=ts(a,v,b)+M,v=b+y.length)}return p+ts(a,v)}]}),!rs||!es||ns);var is=Y,os=rr,as=me("match"),cs=ct,us=re,ss=ht,ls=cc,fs=RegExp.prototype,hs=function(t){var e=t.flags;return void 0!==e||"flags"in fs||us(t,"flags")||!ss(fs,t)?e:cs(ls,t)},ds=q.f,ps=ft,vs=q,gs=S,ys=me("species"),bs=S,ms=E,ws=k,xs=W,Ss=Qn,Ms=an,Es=Zn.f,Cs=ht,Os=function(t){var e;return is(t)&&(void 0!==(e=t[as])?!!e:"RegExp"==os(t))},Rs=li,Is=hs,js=dc,ks=function(t,e,n){n in t||ds(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})},As=Hn,_s=x,Ts=re,zs=En.enforce,Ns=function(t){var e=ps(t),n=vs.f;gs&&e&&!e[ys]&&n(e,ys,{configurable:!0,get:function(){return this}})},Ps=gc,Ds=mc,Ls=me("match"),Fs=ms.RegExp,$s=Fs.prototype,Hs=ms.SyntaxError,Us=ws($s.exec),Ws=ws("".charAt),qs=ws("".replace),Vs=ws("".indexOf),Gs=ws("".slice),Ys=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Bs=/a/g,Ks=/a/g,Xs=new Fs(Bs)!==Bs,Js=js.MISSED_STICKY,Qs=js.UNSUPPORTED_Y,Zs=bs&&(!Xs||Js||Ps||Ds||_s((function(){return Ks[Ls]=!1,Fs(Bs)!=Bs||Fs(Ks)==Ks||"/a/i"!=Fs(Bs,"i")})));if(xs("RegExp",Zs)){for(var tl=function(t,e){var n,r,i,o,a,c,u=Cs($s,this),s=Os(t),l=void 0===e,f=[],h=t;if(!u&&s&&l&&t.constructor===tl)return t;if((s||Cs($s,t))&&(t=t.source,l&&(e=Is(h))),t=void 0===t?"":Rs(t),e=void 0===e?"":Rs(e),h=t,Ps&&"dotAll"in Bs&&(r=!!e&&Vs(e,"s")>-1)&&(e=qs(e,/s/g,"")),n=e,Js&&"sticky"in Bs&&(i=!!e&&Vs(e,"y")>-1)&&Qs&&(e=qs(e,/y/g,"")),Ds&&(o=function(t){for(var e,n=t.length,r=0,i="",o=[],a={},c=!1,u=!1,s=0,l="";r<=n;r++){if("\\"===(e=Ws(t,r)))e+=Ws(t,++r);else if("]"===e)c=!1;else if(!c)switch(!0){case"["===e:c=!0;break;case"("===e:Us(Ys,Gs(t,r+1))&&(r+=2,u=!0),i+=e,s++;continue;case">"===e&&u:if(""===l||Ts(a,l))throw new Hs("Invalid capture group name");a[l]=!0,o[o.length]=[l,s],u=!1,l="";continue}u?l+=e:i+=e}return[i,o]}(t),t=o[0],f=o[1]),a=Ss(Fs(t,e),u?this:$s,tl),(r||i||f.length)&&(c=zs(a),r&&(c.dotAll=!0,c.raw=tl(function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(e=Ws(t,r))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+Ws(t,++r);return i}(t),n)),i&&(c.sticky=!0),f.length&&(c.groups=f)),t!==h)try{Ms(a,"source",""===h?"(?:)":h)}catch(t){}return a},el=Es(Fs),nl=0;el.length>nl;)ks(tl,Fs,el[nl++]);$s.constructor=tl,tl.prototype=$s,As(ms,"RegExp",tl,{constructor:!0})}Ns("RegExp");var rl=Fe.exports,il=q,ol=S,al=dc.MISSED_STICKY,cl=rr,ul=function(t,e,n){return n.get&&rl(n.get,e,{getter:!0}),n.set&&rl(n.set,e,{setter:!0}),il.f(t,e,n)},sl=En.get,ll=RegExp.prototype,fl=TypeError;ol&&al&&ul(ll,"sticky",{configurable:!0,get:function(){if(this!==ll){if("RegExp"===cl(this))return!!sl(this).sticky;throw fl("Incompatible receiver, RegExp required")}}});var hl=Ve.PROPER,dl=Hn,pl=it,vl=li,gl=x,yl=hs,bl=RegExp.prototype.toString,ml=gl((function(){return"/a/b"!=bl.call({source:"a",flags:"b"})})),wl=hl&&"toString"!=bl.name;(ml||wl)&&dl(RegExp.prototype,"toString",(function(){var t=pl(this);return"/"+vl(t.source)+"/"+vl(yl(t))}),{unsafe:!0});var xl={name:"BaseHorizontalMenu",inheritAttrs:!1,props:{height:{type:Number,default:40},listGroup:{type:Array,default:function(){return[]}},displayField:{type:String,default:"name"},valueField:{type:String,default:"id"},viewMoreTrigger:{type:String,default:"click",validator:function(t){return-1!==["click","hover"].indexOf(t)}},linkCls:{type:String},viewMoreWrapCls:{type:String},viewMoreDropdownCls:{type:String},activeCls:{type:String,default:"selected"}},data:function(){return this.defaults={mainClassName:"pgwMenu",viewMoreEnabled:!0,viewMoreLabel:"更多"},this.wrapCls="base-horizontal-menu",this.ulLinkCls="base-horizontal-menu__links",this.viewMoreCls="base-horizontal-menu__view-more",this.viewMoreUlCls="base-horizontal-menu__view-more-links",this.horizontalMenuRef=null,this.defaultActive=0,{}},mounted:function(){var t=this,e=s;this.horizontalMenuRef=this.$refs.horizontalMenuRef,window.addEventListener("resize",this.resizeHandle),e(document).on("click",this.disableEvent),"click"===this.viewMoreTrigger&&e(this.horizontalMenuRef).find(".".concat(this.viewMoreCls)).on("click",this.enableViewMoreDropDown),"hover"===this.viewMoreTrigger&&e(this.horizontalMenuRef).find(".".concat(this.viewMoreCls)).hover(this.enableViewMoreDropDown),setTimeout((function(){var e=v(t.listGroup,(function(e,n){return n===t.defaultActive}));e&&t.selectHandle(h(e,t.displayField),h(e,t.valueField),t.defaultActive)}),0)},beforeDestroy:function(){var t=s;window.removeEventListener("resize",this.resizeHandle),t(document).off("click",this.disableEvent)},methods:{resizeHandle:function(){s(this.horizontalMenuRef).css("overflow","hidden"),this.disableEvent(),this.checkLink()},setActive:function(t){this.defaultActive=t;var e=this.setSelectedHandle(t).data(),n=e.display,r=e.value;this.selectHandle(n,r,t)},getActive:function(){return this.defaultActive},enableViewMoreDropDown:function(t){var e=s;return e(this.horizontalMenuRef).find(".".concat(this.viewMoreCls," :first-child")).hasClass("active")?(this.disableViewMoreDropDown(),!1):(e(this.horizontalMenuRef).find(".".concat(this.viewMoreCls," :first-child")).addClass("active"),e(this.horizontalMenuRef).find(".".concat(this.viewMoreCls," > ul")).show(),t.stopPropagation(),t.preventDefault(),!1)},disableViewMoreDropDown:function(){var t=s;t(this.horizontalMenuRef).find(".".concat(this.viewMoreCls," :first-child")).hasClass("active")&&(t(this.horizontalMenuRef).find(".".concat(this.viewMoreCls," :first-child")).removeClass("active"),t(this.horizontalMenuRef).find(".".concat(this.viewMoreCls," > ul")).hide())},disableEvent:function(){this.disableViewMoreDropDown()},createLinks:function(t){var e=this,n=this,r=d(this.listGroup,(function(r,i){var o=h(r,e.displayField),a=h(r,e.valueField),c={"data-display":o,"data-value":a,"data-index":i};return t("li",{attrs:c,class:{selected:i===e.defaultActive,linkCls:e.linkCls},style:{lineHeight:"".concat(e.height,"px")},key:a},[g(n.$scopedSlots,"default")?t({render:function(){return n.$scopedSlots.default(r)}},{attrs:c}):o])}));return setTimeout((function(){e.$nextTick(e.checkLink)}),100),r},checkLink:function(){var t=s(this.horizontalMenuRef),e=t.width(),n=t.find(".".concat(this.viewMoreCls)).outerWidth(!0);this.getContentWidth(t)>e?this.switchMenu("viewMore",t,n,e):this.switchMenu("normal",t),t.css("overflow","")},getContentWidth:function(t){var e=s,n=0;return t.find(".".concat(this.ulLinkCls," > li")).show(),t.find(".".concat(this.ulLinkCls," > li")).each((function(){n+=e(this).outerWidth(!0)})),n},switchMenu:function(t,e,n,r){var i=s,o=this;if("viewMore"===t){var a=n;e.find(".".concat(this.viewMoreCls," > ul > li")).remove(),e.find(".".concat(this.ulLinkCls," > li")).show().each((function(){a+i(this).outerWidth(!0)<r?a+=i(this).outerWidth(!0):(0===e.find(".".concat(o.viewMoreCls," > ul > li")).length&&(a+=i(this).outerWidth(!0)),e.find(".".concat(o.viewMoreUlCls)).append(i(this).clone().show()),i(this).hide())})),"none"===e.find(".".concat(this.viewMoreCls)).css("display")&&e.find(".".concat(this.viewMoreCls)).show()}"normal"===t&&(e.find(".".concat(this.ulLinkCls," > li")).show(),e.find(".".concat(this.ulLinkCls)).show(),e.find(".".concat(this.viewMoreCls,", .").concat(this.viewMoreCls,"> ul")).hide(),e.find(".".concat(this.viewMoreCls,"> ul > li")).remove())},setSelectedHandle:function(t){var e=s,n=null,r=e(this.horizontalMenuRef).find(".".concat(this.ulLinkCls," > li")).eq(t),i=e(this.horizontalMenuRef).find(".".concat(this.ulLinkCls)).find(".".concat(this.activeCls));if(0!==i.length&&i.removeClass(this.activeCls),0!==r.length)if("none"!==r.css("display"))r.addClass(this.activeCls),n=r;else{var o=t-e(this.horizontalMenuRef).find(".".concat(this.ulLinkCls," > li")).not(":hidden").length,a=e(this.horizontalMenuRef).find(".".concat(this.viewMoreUlCls," > li")).eq(o);0!==a.length&&(e(this.horizontalMenuRef).find(".".concat(this.viewMoreUlCls)).find(".".concat(this.activeCls)).removeClass(this.activeCls),a.addClass(this.activeCls),n=a)}return n},selectHandle:function(t,e,n){var r;this.defaultActive=n,this.$emit("select",(y(r={},this.displayField,t),y(r,this.valueField,e),r),p(n))}},render:function(t){var e=this;return t("div",{ref:"horizontalMenuRef",class:this.wrapCls,style:{height:"".concat(this.height,"px")},on:{click:function(t){var n=t.target.dataset,r=n.display,i=n.value,o=n.index;e.setSelectedHandle(o),e.selectHandle(r,i,o)}}},[t("ul",{class:this.ulLinkCls},this.createLinks(t)),t("div",{class:[this.viewMoreCls,this.viewMoreWrapCls],style:{display:"inline-block"}},[g(this.$slots,"moreDesc")?this.$slots.moreDesc:t("a",{attrs:{href:"javascript:void(0)"},style:{lineHeight:"".concat(this.height,"px")}},[this.defaults.viewMoreLabel,t("i",{class:"el-icon-caret-bottom"})]),t("ul",{class:[this.viewMoreUlCls,this.viewMoreDropdownCls],on:{click:function(t){var n=t.target.dataset,r=n.display,i=n.value,o=n.index;e.setSelectedHandle(o),e.selectHandle(r,i,o)}}})])])}};xl.install=function(t,e){var n;if(n="按需加载独立组件:".concat(xl.name),"development"!==process.env.NODE_ENV&&"dev"!==process.env.NODE_ENV||console.warn(n),f(e)&&!l(e))for(var r=0;r<e.length;r++)e[r].name!==xl.name&&t.use(e[r]);t.component(xl.name,xl)},exports.BaseHorizontalMenu=xl;