st-comp 0.0.78 → 0.0.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,4 +9,4 @@
9
9
  (?:`+o+":){1}(?:(?::"+o+"){0,4}:"+n+"|(?::"+o+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
10
10
  (?::(?:(?::`+o+"){0,5}:"+n+"|(?::"+o+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
11
11
  )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
12
- `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+a+"$)"),l=new RegExp("^"+n+"$"),s=new RegExp("^"+a+"$"),p=function(x){return x&&x.exact?i:new RegExp("(?:"+t(x)+n+t(x)+")|(?:"+t(x)+a+t(x)+")","g")};p.v4=function(_){return _&&_.exact?l:new RegExp(""+t(_)+n+t(_),"g")},p.v6=function(_){return _&&_.exact?s:new RegExp(""+t(_)+a+t(_),"g")};var V="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",c=p.v4().source,k=p.v6().source,y="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",d="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",v="(?::\\d{2,5})?",u='(?:[/?#][^\\s"]*)?',w="(?:"+V+"|www\\.)"+m+"(?:localhost|"+c+"|"+k+"|"+y+d+g+")"+v+u;return fe=new RegExp("(?:^"+w+"$)","i"),fe},Ue={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},le={integer:function(t){return le.number(t)&&parseInt(t,10)===t},float:function(t){return le.number(t)&&!le.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!le.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Ue.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Jn())},hex:function(t){return typeof t=="string"&&!!t.match(Ue.hex)}},Zn=function(t,n,o,a,i){if(t.required&&n===void 0){Qe(t,n,o,a,i);return}var l=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;l.indexOf(s)>-1?le[s](n)||a.push(H(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&a.push(H(i.messages.types[s],t.fullField,t.type))},Qn=function(t,n,o,a,i){var l=typeof t.len=="number",s=typeof t.min=="number",p=typeof t.max=="number",V=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=n,c=null,k=typeof n=="number",y=typeof n=="string",d=Array.isArray(n);if(k?c="number":y?c="string":d&&(c="array"),!c)return!1;d&&(m=n.length),y&&(m=n.replace(V,"_").length),l?m!==t.len&&a.push(H(i.messages[c].len,t.fullField,t.len)):s&&!p&&m<t.min?a.push(H(i.messages[c].min,t.fullField,t.min)):p&&!s&&m>t.max?a.push(H(i.messages[c].max,t.fullField,t.max)):s&&p&&(m<t.min||m>t.max)&&a.push(H(i.messages[c].range,t.fullField,t.min,t.max))},oe="enum",Xn=function(t,n,o,a,i){t[oe]=Array.isArray(t[oe])?t[oe]:[],t[oe].indexOf(n)===-1&&a.push(H(i.messages[oe],t.fullField,t[oe].join(", ")))},er=function(t,n,o,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(H(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var l=new RegExp(t.pattern);l.test(n)||a.push(H(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},T={required:Qe,whitespace:Hn,type:Zn,range:Qn,enum:Xn,pattern:er},tr=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(U(n,"string")&&!t.required)return o();T.required(t,n,a,l,i,"string"),U(n,"string")||(T.type(t,n,a,l,i),T.range(t,n,a,l,i),T.pattern(t,n,a,l,i),t.whitespace===!0&&T.whitespace(t,n,a,l,i))}o(l)},nr=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(U(n)&&!t.required)return o();T.required(t,n,a,l,i),n!==void 0&&T.type(t,n,a,l,i)}o(l)},rr=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),U(n)&&!t.required)return o();T.required(t,n,a,l,i),n!==void 0&&(T.type(t,n,a,l,i),T.range(t,n,a,l,i))}o(l)},or=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(U(n)&&!t.required)return o();T.required(t,n,a,l,i),n!==void 0&&T.type(t,n,a,l,i)}o(l)},ar=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(U(n)&&!t.required)return o();T.required(t,n,a,l,i),U(n)||T.type(t,n,a,l,i)}o(l)},lr=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(U(n)&&!t.required)return o();T.required(t,n,a,l,i),n!==void 0&&(T.type(t,n,a,l,i),T.range(t,n,a,l,i))}o(l)},ir=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(U(n)&&!t.required)return o();T.required(t,n,a,l,i),n!==void 0&&(T.type(t,n,a,l,i),T.range(t,n,a,l,i))}o(l)},sr=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return o();T.required(t,n,a,l,i,"array"),n!=null&&(T.type(t,n,a,l,i),T.range(t,n,a,l,i))}o(l)},ur=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(U(n)&&!t.required)return o();T.required(t,n,a,l,i),n!==void 0&&T.type(t,n,a,l,i)}o(l)},cr="enum",dr=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(U(n)&&!t.required)return o();T.required(t,n,a,l,i),n!==void 0&&T[cr](t,n,a,l,i)}o(l)},fr=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(U(n,"string")&&!t.required)return o();T.required(t,n,a,l,i),U(n,"string")||T.pattern(t,n,a,l,i)}o(l)},pr=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(U(n,"date")&&!t.required)return o();if(T.required(t,n,a,l,i),!U(n,"date")){var p;n instanceof Date?p=n:p=new Date(n),T.type(t,p,a,l,i),p&&T.range(t,p.getTime(),a,l,i)}}o(l)},mr=function(t,n,o,a,i){var l=[],s=Array.isArray(n)?"array":typeof n;T.required(t,n,a,l,i,s),o(l)},_e=function(t,n,o,a,i){var l=t.type,s=[],p=t.required||!t.required&&a.hasOwnProperty(t.field);if(p){if(U(n,l)&&!t.required)return o();T.required(t,n,a,s,i,l),U(n,l)||T.type(t,n,a,s,i)}o(s)},vr=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(U(n)&&!t.required)return o();T.required(t,n,a,l,i)}o(l)},se={string:tr,method:nr,number:rr,boolean:or,regexp:ar,integer:lr,float:ir,array:sr,object:ur,enum:dr,pattern:fr,date:pr,url:_e,hex:_e,email:_e,required:mr,any:vr};function Ee(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Ce=Ee(),ce=function(){function r(n){this.rules=null,this._messages=Ce,this.define(n)}var t=r.prototype;return t.define=function(o){var a=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(i){var l=o[i];a.rules[i]=Array.isArray(l)?l:[l]})},t.messages=function(o){return o&&(this._messages=De(Ee(),o)),this._messages},t.validate=function(o,a,i){var l=this;a===void 0&&(a={}),i===void 0&&(i=function(){});var s=o,p=a,V=i;if(typeof p=="function"&&(V=p,p={}),!this.rules||Object.keys(this.rules).length===0)return V&&V(null,s),Promise.resolve(s);function m(g){var v=[],u={};function w(x){if(Array.isArray(x)){var C;v=(C=v).concat.apply(C,x)}else v.push(x)}for(var _=0;_<g.length;_++)w(g[_]);v.length?(u=Ne(v),V(v,u)):V(null,s)}if(p.messages){var c=this.messages();c===Ce&&(c=Ee()),De(c,p.messages),p.messages=c}else p.messages=this.messages();var k={},y=p.keys||Object.keys(this.rules);y.forEach(function(g){var v=l.rules[g],u=s[g];v.forEach(function(w){var _=w;typeof _.transform=="function"&&(s===o&&(s=ee({},s)),u=s[g]=_.transform(u)),typeof _=="function"?_={validator:_}:_=ee({},_),_.validator=l.getValidationMethod(_),_.validator&&(_.field=g,_.fullField=_.fullField||g,_.type=l.getType(_),k[g]=k[g]||[],k[g].push({rule:_,value:u,source:s,field:g}))})});var d={};return Gn(k,p,function(g,v){var u=g.rule,w=(u.type==="object"||u.type==="array")&&(typeof u.fields=="object"||typeof u.defaultField=="object");w=w&&(u.required||!u.required&&g.value),u.field=g.field;function _(I,N){return ee({},N,{fullField:u.fullField+"."+I,fullFields:u.fullFields?[].concat(u.fullFields,[I]):[I]})}function x(I){I===void 0&&(I=[]);var N=Array.isArray(I)?I:[I];!p.suppressWarning&&N.length&&r.warning("async-validator:",N),N.length&&u.message!==void 0&&(N=[].concat(u.message));var b=N.map(je(u,s));if(p.first&&b.length)return d[u.field]=1,v(b);if(!w)v(b);else{if(u.required&&!g.value)return u.message!==void 0?b=[].concat(u.message).map(je(u,s)):p.error&&(b=[p.error(u,H(p.messages.required,u.field))]),v(b);var P={};u.defaultField&&Object.keys(g.value).map(function(Y){P[Y]=u.defaultField}),P=ee({},P,g.rule.fields);var A={};Object.keys(P).forEach(function(Y){var h=P[Y],E=Array.isArray(h)?h:[h];A[Y]=E.map(_.bind(null,Y))});var G=new r(A);G.messages(p.messages),g.rule.options&&(g.rule.options.messages=p.messages,g.rule.options.error=p.error),G.validate(g.value,g.rule.options||p,function(Y){var h=[];b&&b.length&&h.push.apply(h,b),Y&&Y.length&&h.push.apply(h,Y),v(h.length?h:null)})}}var C;if(u.asyncValidator)C=u.asyncValidator(u,g.value,x,g.source,p);else if(u.validator){try{C=u.validator(u,g.value,x,g.source,p)}catch(I){console.error==null||console.error(I),p.suppressValidatorError||setTimeout(function(){throw I},0),x(I.message)}C===!0?x():C===!1?x(typeof u.message=="function"?u.message(u.fullField||u.field):u.message||(u.fullField||u.field)+" fails"):C instanceof Array?x(C):C instanceof Error&&x(C.message)}C&&C.then&&C.then(function(){return x()},function(I){return x(I)})},function(g){m(g)},s)},t.getType=function(o){if(o.type===void 0&&o.pattern instanceof RegExp&&(o.type="pattern"),typeof o.validator!="function"&&o.type&&!se.hasOwnProperty(o.type))throw new Error(H("Unknown rule type %s",o.type));return o.type||"string"},t.getValidationMethod=function(o){if(typeof o.validator=="function")return o.validator;var a=Object.keys(o),i=a.indexOf("message");return i!==-1&&a.splice(i,1),a.length===1&&a[0]==="required"?se.required:se[this.getType(o)]||void 0},r}();ce.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");se[t]=n};ce.warning=Ze;ce.messages=Ce;ce.validators=se;const gr=["","error","validating","success"],yr=f.buildProps({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:f.definePropType([String,Array])},required:{type:Boolean,default:void 0},rules:{type:f.definePropType([Object,Array])},error:String,validateStatus:{type:String,values:gr},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:S.componentSizes}}),Re="ElLabelWrap";var br=e.defineComponent({name:Re,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(r,{slots:t}){const n=e.inject(S.formContextKey,void 0),o=e.inject(S.formItemContextKey);o||f.throwError(Re,"usage: <el-form-item><label-wrap /></el-form-item>");const a=f.useNamespace("form"),i=e.ref(),l=e.ref(0),s=()=>{var m;if((m=i.value)!=null&&m.firstElementChild){const c=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(c))}else return 0},p=(m="update")=>{e.nextTick(()=>{t.default&&r.isAutoWidth&&(m==="update"?l.value=s():m==="remove"&&(n==null||n.deregisterLabelWidth(l.value)))})},V=()=>p("update");return e.onMounted(()=>{V()}),e.onBeforeUnmount(()=>{p("remove")}),e.onUpdated(()=>V()),e.watch(l,(m,c)=>{r.updateAll&&(n==null||n.registerLabelWidth(m,c))}),ke.useResizeObserver(e.computed(()=>{var m,c;return(c=(m=i.value)==null?void 0:m.firstElementChild)!=null?c:null}),V),()=>{var m,c;if(!t)return null;const{isAutoWidth:k}=r;if(k){const y=n==null?void 0:n.autoLabelWidth,d=o==null?void 0:o.hasLabel,g={};if(d&&y&&y!=="auto"){const v=Math.max(0,Number.parseInt(y,10)-l.value),u=n.labelPosition==="left"?"marginRight":"marginLeft";v&&(g[u]=`${v}px`)}return e.createVNode("div",{ref:i,class:[a.be("item","label-wrap")],style:g},[(m=t.default)==null?void 0:m.call(t)])}else return e.createVNode(e.Fragment,{ref:i},[(c=t.default)==null?void 0:c.call(t)])}}});const hr=["role","aria-labelledby"],_r=e.defineComponent({name:"ElFormItem"}),kr=e.defineComponent({..._r,props:yr,setup(r,{expose:t}){const n=r,o=e.useSlots(),a=e.inject(S.formContextKey,void 0),i=e.inject(S.formItemContextKey,void 0),l=S.useFormSize(void 0,{formItem:!1}),s=f.useNamespace("form-item"),p=f.useId().value,V=e.ref([]),m=e.ref(""),c=f.refDebounced(m,100),k=e.ref(""),y=e.ref();let d,g=!1;const v=e.computed(()=>{if((a==null?void 0:a.labelPosition)==="top")return{};const O=f.addUnit(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return O?{width:O}:{}}),u=e.computed(()=>{if((a==null?void 0:a.labelPosition)==="top"||a!=null&&a.inline)return{};if(!n.label&&!n.labelWidth&&P)return{};const O=f.addUnit(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return!n.label&&!o.label?{marginLeft:O}:{}}),w=e.computed(()=>[s.b(),s.m(l.value),s.is("error",m.value==="error"),s.is("validating",m.value==="validating"),s.is("success",m.value==="success"),s.is("required",E.value||n.required),s.is("no-asterisk",a==null?void 0:a.hideRequiredAsterisk),(a==null?void 0:a.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:a==null?void 0:a.statusIcon}]),_=e.computed(()=>f.isBoolean(n.inlineMessage)?n.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),x=e.computed(()=>[s.e("error"),{[s.em("error","inline")]:_.value}]),C=e.computed(()=>n.prop?f.isString(n.prop)?n.prop:n.prop.join("."):""),I=e.computed(()=>!!(n.label||o.label)),N=e.computed(()=>n.for||V.value.length===1?V.value[0]:void 0),b=e.computed(()=>!N.value&&I.value),P=!!i,A=e.computed(()=>{const O=a==null?void 0:a.model;if(!(!O||!n.prop))return ie.getProp(O,n.prop).value}),G=e.computed(()=>{const{required:O}=n,F=[];n.rules&&F.push(...xe.castArray(n.rules));const L=a==null?void 0:a.rules;if(L&&n.prop){const R=ie.getProp(L,n.prop).value;R&&F.push(...xe.castArray(R))}if(O!==void 0){const R=F.map((Q,re)=>[Q,re]).filter(([Q])=>Object.keys(Q).includes("required"));if(R.length>0)for(const[Q,re]of R)Q.required!==O&&(F[re]={...Q,required:O});else F.push({required:O})}return F}),Y=e.computed(()=>G.value.length>0),h=O=>G.value.filter(L=>!L.trigger||!O?!0:Array.isArray(L.trigger)?L.trigger.includes(O):L.trigger===O).map(({trigger:L,...R})=>R),E=e.computed(()=>G.value.some(O=>O.required)),B=e.computed(()=>{var O;return c.value==="error"&&n.showMessage&&((O=a==null?void 0:a.showMessage)!=null?O:!0)}),j=e.computed(()=>`${n.label||""}${(a==null?void 0:a.labelSuffix)||""}`),M=O=>{m.value=O},J=O=>{var F,L;const{errors:R,fields:Q}=O;(!R||!Q)&&console.error(O),M("error"),k.value=R?(L=(F=R==null?void 0:R[0])==null?void 0:F.message)!=null?L:`${n.prop} is required`:"",a==null||a.emit("validate",n.prop,!1,k.value)},te=()=>{M("success"),a==null||a.emit("validate",n.prop,!0,"")},ne=async O=>{const F=C.value;return new ce({[F]:O}).validate({[F]:A.value},{firstFields:!0}).then(()=>(te(),!0)).catch(R=>(J(R),Promise.reject(R)))},W=async(O,F)=>{if(g||!n.prop)return!1;const L=f.isFunction$1(F);if(!Y.value)return F==null||F(!1),!1;const R=h(O);return R.length===0?(F==null||F(!0),!0):(M("validating"),ne(R).then(()=>(F==null||F(!0),!0)).catch(Q=>{const{fields:re}=Q;return F==null||F(!1,re),L?!1:Promise.reject(re)}))},be=()=>{M(""),k.value="",g=!1},Se=async()=>{const O=a==null?void 0:a.model;if(!O||!n.prop)return;const F=ie.getProp(O,n.prop);g=!0,F.value=Ae(d),await e.nextTick(),be(),g=!1},dt=O=>{V.value.includes(O)||V.value.push(O)},ft=O=>{V.value=V.value.filter(F=>F!==O)};e.watch(()=>n.error,O=>{k.value=O||"",M(O?"error":"")},{immediate:!0}),e.watch(()=>n.validateStatus,O=>M(O||""));const he=e.reactive({...e.toRefs(n),$el:y,size:l,validateState:m,labelId:p,inputIds:V,isGroup:b,hasLabel:I,addInputId:dt,removeInputId:ft,resetField:Se,clearValidate:be,validate:W});return e.provide(S.formItemContextKey,he),e.onMounted(()=>{n.prop&&(a==null||a.addField(he),d=Ae(A.value))}),e.onBeforeUnmount(()=>{a==null||a.removeField(he)}),t({size:l,validateMessage:k,validateState:m,validate:W,clearValidate:be,resetField:Se}),(O,F)=>{var L;return e.openBlock(),e.createElementBlock("div",{ref_key:"formItemRef",ref:y,class:e.normalizeClass(e.unref(w)),role:e.unref(b)?"group":void 0,"aria-labelledby":e.unref(b)?e.unref(p):void 0},[e.createVNode(e.unref(br),{"is-auto-width":e.unref(v).width==="auto","update-all":((L=e.unref(a))==null?void 0:L.labelWidth)==="auto"},{default:e.withCtx(()=>[e.unref(I)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(N)?"label":"div"),{key:0,id:e.unref(p),for:e.unref(N),class:e.normalizeClass(e.unref(s).e("label")),style:e.normalizeStyle(e.unref(v))},{default:e.withCtx(()=>[e.renderSlot(O.$slots,"label",{label:e.unref(j)},()=>[e.createTextVNode(e.toDisplayString(e.unref(j)),1)])]),_:3},8,["id","for","class","style"])):e.createCommentVNode("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s).e("content")),style:e.normalizeStyle(e.unref(u))},[e.renderSlot(O.$slots,"default"),e.createVNode(e.TransitionGroup,{name:`${e.unref(s).namespace.value}-zoom-in-top`},{default:e.withCtx(()=>[e.unref(B)?e.renderSlot(O.$slots,"error",{key:0,error:k.value},()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(x))},e.toDisplayString(k.value),3)]):e.createCommentVNode("v-if",!0)]),_:3},8,["name"])],6)],10,hr)}}});var Xe=f._export_sfc(kr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const xr=f.withInstall(qn,{FormItem:Xe}),wr=f.withNoopInstall(Xe),Vr=f.buildProps({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),Nr=["textContent"],Er=e.defineComponent({name:"ElBadge"}),Cr=e.defineComponent({...Er,props:Vr,setup(r,{expose:t}){const n=r,o=f.useNamespace("badge"),a=e.computed(()=>n.isDot?"":f.isNumber(n.value)&&f.isNumber(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return t({content:a}),(i,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(o).b())},[e.renderSlot(i.$slots,"default"),e.createVNode(e.Transition,{name:`${e.unref(o).namespace.value}-zoom-in-center`,persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("sup",{class:e.normalizeClass([e.unref(o).e("content"),e.unref(o).em("content",i.type),e.unref(o).is("fixed",!!i.$slots.default),e.unref(o).is("dot",i.isDot)]),textContent:e.toDisplayString(e.unref(a))},null,10,Nr),[[e.vShow,!i.hidden&&(e.unref(a)||i.isDot)]])]),_:1},8,["name"])],2))}});var Or=f._export_sfc(Cr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const Ir=f.withInstall(Or),Sr=100,Tr=600,Le={beforeMount(r,t){const n=t.value,{interval:o=Sr,delay:a=Tr}=f.isFunction$1(n)?{}:n;let i,l;const s=()=>f.isFunction$1(n)?n():n.handler(),p=()=>{l&&(clearTimeout(l),l=void 0),i&&(clearInterval(i),i=void 0)};r.addEventListener("mousedown",V=>{V.button===0&&(p(),s(),document.addEventListener("mouseup",()=>p(),{once:!0}),l=setTimeout(()=>{i=setInterval(()=>{s()},o)},a))})}},et=f.buildProps({size:S.useSizeProp,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),Br=f.buildProps({...et,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),tt={[q.UPDATE_MODEL_EVENT]:r=>f.isString(r)||f.isNumber(r)||f.isBoolean(r),[q.CHANGE_EVENT]:r=>f.isString(r)||f.isNumber(r)||f.isBoolean(r)},nt=Symbol("radioGroupKey"),rt=(r,t)=>{const n=e.ref(),o=e.inject(nt,void 0),a=e.computed(()=>!!o),i=e.computed({get(){return a.value?o.modelValue:r.modelValue},set(m){a.value?o.changeEvent(m):t&&t(q.UPDATE_MODEL_EVENT,m),n.value.checked=r.modelValue===r.label}}),l=S.useFormSize(e.computed(()=>o==null?void 0:o.size)),s=S.useFormDisabled(e.computed(()=>o==null?void 0:o.disabled)),p=e.ref(!1),V=e.computed(()=>s.value||a.value&&i.value!==r.label?-1:0);return{radioRef:n,isGroup:a,radioGroup:o,focus:p,size:l,disabled:s,tabIndex:V,modelValue:i}},Fr=["value","name","disabled"],$r=e.defineComponent({name:"ElRadio"}),Mr=e.defineComponent({...$r,props:Br,emits:tt,setup(r,{emit:t}){const n=r,o=f.useNamespace("radio"),{radioRef:a,radioGroup:i,focus:l,size:s,disabled:p,modelValue:V}=rt(n,t);function m(){e.nextTick(()=>t("change",V.value))}return(c,k)=>{var y;return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass([e.unref(o).b(),e.unref(o).is("disabled",e.unref(p)),e.unref(o).is("focus",e.unref(l)),e.unref(o).is("bordered",c.border),e.unref(o).is("checked",e.unref(V)===c.label),e.unref(o).m(e.unref(s))])},[e.createElementVNode("span",{class:e.normalizeClass([e.unref(o).e("input"),e.unref(o).is("disabled",e.unref(p)),e.unref(o).is("checked",e.unref(V)===c.label)])},[e.withDirectives(e.createElementVNode("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":k[0]||(k[0]=d=>e.isRef(V)?V.value=d:null),class:e.normalizeClass(e.unref(o).e("original")),value:c.label,name:c.name||((y=e.unref(i))==null?void 0:y.name),disabled:e.unref(p),type:"radio",onFocus:k[1]||(k[1]=d=>l.value=!0),onBlur:k[2]||(k[2]=d=>l.value=!1),onChange:m,onClick:k[3]||(k[3]=e.withModifiers(()=>{},["stop"]))},null,42,Fr),[[e.vModelRadio,e.unref(V)]]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).e("inner"))},null,2)],2),e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).e("label")),onKeydown:k[4]||(k[4]=e.withModifiers(()=>{},["stop"]))},[e.renderSlot(c.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(c.label),1)])],34)],2)}}});var Ar=f._export_sfc(Mr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const Pr=f.buildProps({...et,name:{type:String,default:""}}),qr=["value","name","disabled"],jr=e.defineComponent({name:"ElRadioButton"}),Dr=e.defineComponent({...jr,props:Pr,setup(r){const t=r,n=f.useNamespace("radio"),{radioRef:o,focus:a,size:i,disabled:l,modelValue:s,radioGroup:p}=rt(t),V=e.computed(()=>({backgroundColor:(p==null?void 0:p.fill)||"",borderColor:(p==null?void 0:p.fill)||"",boxShadow:p!=null&&p.fill?`-1px 0 0 0 ${p.fill}`:"",color:(p==null?void 0:p.textColor)||""}));return(m,c)=>{var k;return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass([e.unref(n).b("button"),e.unref(n).is("active",e.unref(s)===m.label),e.unref(n).is("disabled",e.unref(l)),e.unref(n).is("focus",e.unref(a)),e.unref(n).bm("button",e.unref(i))])},[e.withDirectives(e.createElementVNode("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":c[0]||(c[0]=y=>e.isRef(s)?s.value=y:null),class:e.normalizeClass(e.unref(n).be("button","original-radio")),value:m.label,type:"radio",name:m.name||((k=e.unref(p))==null?void 0:k.name),disabled:e.unref(l),onFocus:c[1]||(c[1]=y=>a.value=!0),onBlur:c[2]||(c[2]=y=>a.value=!1),onClick:c[3]||(c[3]=e.withModifiers(()=>{},["stop"]))},null,42,qr),[[e.vModelRadio,e.unref(s)]]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(n).be("button","inner")),style:e.normalizeStyle(e.unref(s)===m.label?e.unref(V):{}),onKeydown:c[4]||(c[4]=e.withModifiers(()=>{},["stop"]))},[e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(m.label),1)])],38)],2)}}});var ot=f._export_sfc(Dr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const Ur=f.buildProps({id:{type:String,default:void 0},size:S.useSizeProp,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),Rr=tt,Lr=["id","aria-label","aria-labelledby"],zr=e.defineComponent({name:"ElRadioGroup"}),Wr=e.defineComponent({...zr,props:Ur,emits:Rr,setup(r,{emit:t}){const n=r,o=f.useNamespace("radio"),a=f.useId(),i=e.ref(),{formItem:l}=S.useFormItem(),{inputId:s,isLabeledByFormItem:p}=S.useFormItemInputId(n,{formItemContext:l}),V=c=>{t(q.UPDATE_MODEL_EVENT,c),e.nextTick(()=>t("change",c))};e.onMounted(()=>{const c=i.value.querySelectorAll("[type=radio]"),k=c[0];!Array.from(c).some(y=>y.checked)&&k&&(k.tabIndex=0)});const m=e.computed(()=>n.name||a.value);return e.provide(nt,e.reactive({...e.toRefs(n),changeEvent:V,name:m})),e.watch(()=>n.modelValue,()=>{n.validateEvent&&(l==null||l.validate("change").catch(c=>f.debugWarn(c)))}),(c,k)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(s),ref_key:"radioGroupRef",ref:i,class:e.normalizeClass(e.unref(o).b("group")),role:"radiogroup","aria-label":e.unref(p)?void 0:c.label||"radio-group","aria-labelledby":e.unref(p)?e.unref(l).labelId:void 0},[e.renderSlot(c.$slots,"default")],10,Lr))}});var at=f._export_sfc(Wr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const lt=f.withInstall(Ar,{RadioButton:ot,RadioGroup:at}),it=f.withNoopInstall(at);f.withNoopInstall(ot);const Gr=f.buildProps({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:S.useSizeProp,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:r=>r===null||f.isNumber(r)||["min","max"].includes(r),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:r=>r>=0&&r===Number.parseInt(`${r}`,10)},validateEvent:{type:Boolean,default:!0}}),Kr={[q.CHANGE_EVENT]:(r,t)=>t!==r,blur:r=>r instanceof FocusEvent,focus:r=>r instanceof FocusEvent,[q.INPUT_EVENT]:r=>f.isNumber(r)||q.isNil(r),[q.UPDATE_MODEL_EVENT]:r=>f.isNumber(r)||q.isNil(r)},Yr=["aria-label","onKeydown"],Hr=["aria-label","onKeydown"],Jr=e.defineComponent({name:"ElInputNumber"}),Zr=e.defineComponent({...Jr,props:Gr,emits:Kr,setup(r,{expose:t,emit:n}){const o=r,{t:a}=f.useLocale(),i=f.useNamespace("input-number"),l=e.ref(),s=e.reactive({currentValue:o.modelValue,userInput:null}),{formItem:p}=S.useFormItem(),V=e.computed(()=>f.isNumber(o.modelValue)&&o.modelValue<=o.min),m=e.computed(()=>f.isNumber(o.modelValue)&&o.modelValue>=o.max),c=e.computed(()=>{const h=u(o.step);return f.isUndefined(o.precision)?Math.max(u(o.modelValue),h):(h>o.precision&&f.debugWarn("InputNumber","precision should not be less than the decimal places of step"),o.precision)}),k=e.computed(()=>o.controls&&o.controlsPosition==="right"),y=S.useFormSize(),d=S.useFormDisabled(),g=e.computed(()=>{if(s.userInput!==null)return s.userInput;let h=s.currentValue;if(q.isNil(h))return"";if(f.isNumber(h)){if(Number.isNaN(h))return"";f.isUndefined(o.precision)||(h=h.toFixed(o.precision))}return h}),v=(h,E)=>{if(f.isUndefined(E)&&(E=c.value),E===0)return Math.round(h);let B=String(h);const j=B.indexOf(".");if(j===-1||!B.replace(".","").split("")[j+E])return h;const te=B.length;return B.charAt(te-1)==="5"&&(B=`${B.slice(0,Math.max(0,te-1))}6`),Number.parseFloat(Number(B).toFixed(E))},u=h=>{if(q.isNil(h))return 0;const E=h.toString(),B=E.indexOf(".");let j=0;return B!==-1&&(j=E.length-B-1),j},w=(h,E=1)=>f.isNumber(h)?v(h+o.step*E):s.currentValue,_=()=>{if(o.readonly||d.value||m.value)return;const h=Number(g.value)||0,E=w(h);I(E),n(q.INPUT_EVENT,s.currentValue)},x=()=>{if(o.readonly||d.value||V.value)return;const h=Number(g.value)||0,E=w(h,-1);I(E),n(q.INPUT_EVENT,s.currentValue)},C=(h,E)=>{const{max:B,min:j,step:M,precision:J,stepStrictly:te,valueOnClear:ne}=o;B<j&&f.throwError("InputNumber","min should not be greater than max.");let W=Number(h);if(q.isNil(h)||Number.isNaN(W))return null;if(h===""){if(ne===null)return null;W=f.isString(ne)?{min:j,max:B}[ne]:ne}return te&&(W=v(Math.round(W/M)*M,J)),f.isUndefined(J)||(W=v(W,J)),(W>B||W<j)&&(W=W>B?B:j,E&&n(q.UPDATE_MODEL_EVENT,W)),W},I=(h,E=!0)=>{var B;const j=s.currentValue,M=C(h);if(!E){n(q.UPDATE_MODEL_EVENT,M);return}j!==M&&(s.userInput=null,n(q.UPDATE_MODEL_EVENT,M),n(q.CHANGE_EVENT,M,j),o.validateEvent&&((B=p==null?void 0:p.validate)==null||B.call(p,"change").catch(J=>f.debugWarn(J))),s.currentValue=M)},N=h=>{s.userInput=h;const E=h===""?null:Number(h);n(q.INPUT_EVENT,E),I(E,!1)},b=h=>{const E=h!==""?Number(h):"";(f.isNumber(E)&&!Number.isNaN(E)||h==="")&&I(E),s.userInput=null},P=()=>{var h,E;(E=(h=l.value)==null?void 0:h.focus)==null||E.call(h)},A=()=>{var h,E;(E=(h=l.value)==null?void 0:h.blur)==null||E.call(h)},G=h=>{n("focus",h)},Y=h=>{var E;n("blur",h),o.validateEvent&&((E=p==null?void 0:p.validate)==null||E.call(p,"blur").catch(B=>f.debugWarn(B)))};return e.watch(()=>o.modelValue,h=>{const E=C(s.userInput),B=C(h,!0);!f.isNumber(E)&&(!E||E!==B)&&(s.currentValue=B,s.userInput=null)},{immediate:!0}),e.onMounted(()=>{var h;const{min:E,max:B,modelValue:j}=o,M=(h=l.value)==null?void 0:h.input;if(M.setAttribute("role","spinbutton"),Number.isFinite(B)?M.setAttribute("aria-valuemax",String(B)):M.removeAttribute("aria-valuemax"),Number.isFinite(E)?M.setAttribute("aria-valuemin",String(E)):M.removeAttribute("aria-valuemin"),M.setAttribute("aria-valuenow",s.currentValue||s.currentValue===0?String(s.currentValue):""),M.setAttribute("aria-disabled",String(d.value)),!f.isNumber(j)&&j!=null){let J=Number(j);Number.isNaN(J)&&(J=null),n(q.UPDATE_MODEL_EVENT,J)}}),e.onUpdated(()=>{var h,E;const B=(h=l.value)==null?void 0:h.input;B==null||B.setAttribute("aria-valuenow",`${(E=s.currentValue)!=null?E:""}`)}),t({focus:P,blur:A}),(h,E)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(i).b(),e.unref(i).m(e.unref(y)),e.unref(i).is("disabled",e.unref(d)),e.unref(i).is("without-controls",!h.controls),e.unref(i).is("controls-right",e.unref(k))]),onDragstart:E[1]||(E[1]=e.withModifiers(()=>{},["prevent"]))},[h.controls?e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:0,role:"button","aria-label":e.unref(a)("el.inputNumber.decrease"),class:e.normalizeClass([e.unref(i).e("decrease"),e.unref(i).is("disabled",e.unref(V))]),onKeydown:e.withKeys(x,["enter"])},[e.createVNode(e.unref(S.ElIcon),null,{default:e.withCtx(()=>[e.unref(k)?(e.openBlock(),e.createBlock(e.unref(S.arrow_down_default),{key:0})):(e.openBlock(),e.createBlock(e.unref(S.minus_default),{key:1}))]),_:1})],42,Yr)),[[e.unref(Le),x]]):e.createCommentVNode("v-if",!0),h.controls?e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:1,role:"button","aria-label":e.unref(a)("el.inputNumber.increase"),class:e.normalizeClass([e.unref(i).e("increase"),e.unref(i).is("disabled",e.unref(m))]),onKeydown:e.withKeys(_,["enter"])},[e.createVNode(e.unref(S.ElIcon),null,{default:e.withCtx(()=>[e.unref(k)?(e.openBlock(),e.createBlock(e.unref(S.arrow_up_default),{key:0})):(e.openBlock(),e.createBlock(e.unref(S.plus_default),{key:1}))]),_:1})],42,Hr)),[[e.unref(Le),_]]):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(X.ElInput),{id:h.id,ref_key:"input",ref:l,type:"number",step:h.step,"model-value":e.unref(g),placeholder:h.placeholder,readonly:h.readonly,disabled:e.unref(d),size:e.unref(y),max:h.max,min:h.min,name:h.name,label:h.label,"validate-event":!1,onWheel:E[0]||(E[0]=e.withModifiers(()=>{},["prevent"])),onKeydown:[e.withKeys(e.withModifiers(_,["prevent"]),["up"]),e.withKeys(e.withModifiers(x,["prevent"]),["down"])],onBlur:Y,onFocus:G,onInput:N,onChange:b},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var Qr=f._export_sfc(Zr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const st=f.withInstall(Qr),ut=["success","info","warning","error"],K=pt.mutable({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:f.isClient?document.body:void 0}),Xr=f.buildProps({customClass:{type:String,default:K.customClass},center:{type:Boolean,default:K.center},dangerouslyUseHTMLString:{type:Boolean,default:K.dangerouslyUseHTMLString},duration:{type:Number,default:K.duration},icon:{type:S.iconPropType,default:K.icon},id:{type:String,default:K.id},message:{type:f.definePropType([String,Object,Function]),default:K.message},onClose:{type:f.definePropType(Function),required:!1},showClose:{type:Boolean,default:K.showClose},type:{type:String,values:ut,default:K.type},offset:{type:Number,default:K.offset},zIndex:{type:Number,default:K.zIndex},grouping:{type:Boolean,default:K.grouping},repeatNum:{type:Number,default:K.repeatNum}}),eo={destroy:()=>!0},Z=e.shallowReactive([]),to=r=>{const t=Z.findIndex(a=>a.id===r),n=Z[t];let o;return t>0&&(o=Z[t-1]),{current:n,prev:o}},no=r=>{const{prev:t}=to(r);return t?t.vm.exposed.bottom.value:0},ro=(r,t)=>Z.findIndex(o=>o.id===r)>0?20:t,oo=["id"],ao=["innerHTML"],lo=e.defineComponent({name:"ElMessage"}),io=e.defineComponent({...lo,props:Xr,emits:eo,setup(r,{expose:t}){const n=r,{Close:o}=S.TypeComponents,{ns:a,zIndex:i}=ie.useGlobalComponentSettings("message"),{currentZIndex:l,nextZIndex:s}=i,p=e.ref(),V=e.ref(!1),m=e.ref(0);let c;const k=e.computed(()=>n.type?n.type==="error"?"danger":n.type:"info"),y=e.computed(()=>{const N=n.type;return{[a.bm("icon",N)]:N&&S.TypeComponentsMap[N]}}),d=e.computed(()=>n.icon||S.TypeComponentsMap[n.type]||""),g=e.computed(()=>no(n.id)),v=e.computed(()=>ro(n.id,n.offset)+g.value),u=e.computed(()=>m.value+v.value),w=e.computed(()=>({top:`${v.value}px`,zIndex:l.value}));function _(){n.duration!==0&&({stop:c}=f.useTimeoutFn(()=>{C()},n.duration))}function x(){c==null||c()}function C(){V.value=!1}function I({code:N}){N===q.EVENT_CODE.esc&&C()}return e.onMounted(()=>{_(),s(),V.value=!0}),e.watch(()=>n.repeatNum,()=>{x(),_()}),ke.useEventListener(document,"keydown",I),ke.useResizeObserver(p,()=>{m.value=p.value.getBoundingClientRect().height}),t({visible:V,bottom:u,close:C}),(N,b)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(a).b("fade"),onBeforeLeave:N.onClose,onAfterLeave:b[0]||(b[0]=P=>N.$emit("destroy")),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:N.id,ref_key:"messageRef",ref:p,class:e.normalizeClass([e.unref(a).b(),{[e.unref(a).m(N.type)]:N.type&&!N.icon},e.unref(a).is("center",N.center),e.unref(a).is("closable",N.showClose),N.customClass]),style:e.normalizeStyle(e.unref(w)),role:"alert",onMouseenter:x,onMouseleave:_},[N.repeatNum>1?(e.openBlock(),e.createBlock(e.unref(Ir),{key:0,value:N.repeatNum,type:e.unref(k),class:e.normalizeClass(e.unref(a).e("badge"))},null,8,["value","type","class"])):e.createCommentVNode("v-if",!0),e.unref(d)?(e.openBlock(),e.createBlock(e.unref(S.ElIcon),{key:1,class:e.normalizeClass([e.unref(a).e("icon"),e.unref(y)])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(d))))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.renderSlot(N.$slots,"default",{},()=>[N.dangerouslyUseHTMLString?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),e.createElementVNode("p",{class:e.normalizeClass(e.unref(a).e("content")),innerHTML:N.message},null,10,ao)],2112)):(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(e.unref(a).e("content"))},e.toDisplayString(N.message),3))]),N.showClose?(e.openBlock(),e.createBlock(e.unref(S.ElIcon),{key:2,class:e.normalizeClass(e.unref(a).e("closeBtn")),onClick:e.withModifiers(C,["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(o))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],46,oo),[[e.vShow,V.value]])]),_:3},8,["name","onBeforeLeave"]))}});var so=f._export_sfc(io,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let uo=1;const ct=r=>{const t=!r||f.isString(r)||e.isVNode(r)||f.isFunction$1(r)?{message:r}:r,n={...K,...t};if(!n.appendTo)n.appendTo=document.body;else if(f.isString(n.appendTo)){let o=document.querySelector(n.appendTo);f.isElement(o)||(f.debugWarn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),o=document.body),n.appendTo=o}return n},co=r=>{const t=Z.indexOf(r);if(t===-1)return;Z.splice(t,1);const{handler:n}=r;n.close()},fo=({appendTo:r,...t},n)=>{const o=`message_${uo++}`,a=t.onClose,i=document.createElement("div"),l={...t,id:o,onClose:()=>{a==null||a(),co(m)},onDestroy:()=>{e.render(null,i)}},s=e.createVNode(so,l,f.isFunction$1(l.message)||e.isVNode(l.message)?{default:f.isFunction$1(l.message)?l.message:()=>l.message}:null);s.appContext=n||ae._context,e.render(s,i),r.appendChild(i.firstElementChild);const p=s.component,m={id:o,vnode:s,vm:p,handler:{close:()=>{p.exposed.visible.value=!1}},props:s.component.props};return m},ae=(r={},t)=>{if(!f.isClient)return{close:()=>{}};if(f.isNumber(Te.messageConfig.max)&&Z.length>=Te.messageConfig.max)return{close:()=>{}};const n=ct(r);if(n.grouping&&Z.length){const a=Z.find(({vnode:i})=>{var l;return((l=i.props)==null?void 0:l.message)===n.message});if(a)return a.props.repeatNum+=1,a.props.type=n.type,a.handler}const o=fo(n,t);return Z.push(o),o.handler};ut.forEach(r=>{ae[r]=(t={},n)=>{const o=ct(t);return ae({...o,type:r},n)}});function po(r){for(const t of Z)(!r||r===t.props.type)&&t.handler.close()}ae.closeAll=po;ae._context=null;const pe=f.withInstallFunction(ae,"$message");const ze={varietyMarket:{show:!0,options:[{label:"ETF",value:2,memo:[]},{label:"A股",value:3,memo:[4,6,12,13,14,15]},{label:"期货",value:4,memo:[1,2,3,5,7,8,9,10]},{label:"港股",value:5,memo:[4,6,14]},{label:"外盘",value:6,memo:[1,2,3,5,7,8,9,10]},{label:"美股",value:7,memo:[4,6,14]},{label:"期权",value:8,memo:[11]}]},commonOption:{show:!0,options:[{label:"期货主连",value:1},{label:"期货主力",value:2},{label:"期货加权",value:3},{label:"常用股票指数",value:4},{label:"期货收益率指数",value:5},{label:"股票板块指数",value:6},{label:"次主力合约",value:7},{label:"期货次主连",value:8},{label:"期货板块收益率指数",value:9},{label:"期货板块加权指数",value:10},{label:"期权",value:11},{label:"板块价差指数",value:12},{label:"行业板块指数",value:13},{label:"个股",value:14},{label:"概念板块指数",value:15}]},customTag:{show:!0,options:[]},factorScreen:{show:!0,cycleDefault:null,cycleOptions:[],cycleShow:!0,factorOptions:[]},commonIndicator:{show:!0,options:[{key:"marketCapital",label:"总市值",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,10],unit:["亿","亿"],text:"≤10亿"},{range:[null,25],unit:["亿","亿"],text:"≤25亿"},{range:[null,50],unit:["亿","亿"],text:"≤50亿"},{range:[20,50],unit:["亿","亿"],text:"20亿~50亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"},{range:[200,null],unit:["亿","亿"],text:"≥200亿"},{range:[500,null],unit:["亿","亿"],text:"≥500亿"},{range:[1e3,null],unit:["亿","亿"],text:"≥1000亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"floatMarketCapital",label:"流通市值",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,5],unit:["亿","亿"],text:"≤5亿"},{range:[null,20],unit:["亿","亿"],text:"≤20亿"},{range:[null,50],unit:["亿","亿"],text:"≤50亿"},{range:[null,100],unit:["亿","亿"],text:"≤100亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"},{range:[200,null],unit:["亿","亿"],text:"≥200亿"},{range:[500,null],unit:["亿","亿"],text:"≥500亿"},{range:[1e3,null],unit:["亿","亿"],text:"≥1000亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"totalShares",label:"总股本",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,5],unit:["亿","亿"],text:"≤5亿"},{range:[null,10],unit:["亿","亿"],text:"≤10亿"},{range:[null,75],unit:["亿","亿"],text:"≤75亿"},{range:[10,75],unit:["亿","亿"],text:"10亿~75亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"freeFloatShares",label:"流通股本",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,5],unit:["千万","千万"],text:"≤5千万"},{range:[5,3],unit:["千万","亿"],text:"5千万~3亿"},{range:[null,5],unit:["亿","亿"],text:"≤5亿"},{range:[null,10],unit:["亿","亿"],text:"≤10亿"},{range:[8,30],unit:["亿","亿"],text:"8亿~30亿"},{range:[30,null],unit:["亿","亿"],text:"≥30亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"turnoverRate",label:"换手率(实)",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,1],unit:["%","%"],text:"≤1%"},{range:[1,5],unit:["%","%"],text:"1%~5%"},{range:[5,10],unit:["%","%"],text:"5%~10%"},{range:[10,null],unit:["%","%"],text:"≥10%"}],defaultUnit:["%","%"],unitOptions:["%"]},{key:"peTtm",label:"市盈率",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[0,0],unit:[],text:"亏损"},{range:[0,null],unit:[],text:"≥0"},{range:[0,20],unit:[],text:"0~20"},{range:[20,40],unit:[],text:"20~40"},{range:[40,100],unit:[],text:"40~100"},{range:[100,null],unit:[],text:"≥100"}],defaultUnit:[],unitOptions:[]},{key:"eps",label:"每股净收益",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,0],unit:["元","元"],text:"≤0"},{range:[0,null],unit:["元","元"],text:"≥0"},{range:[.2,null],unit:["元","元"],text:"≥0.2元"},{range:[.5,null],unit:["元","元"],text:"≥0.5元"},{range:[1,null],unit:["元","元"],text:"≥1元"},{range:[2,null],unit:["元","元"],text:"≥2元"}],defaultUnit:["元","元"],unitOptions:["元"]},{key:"st",label:"是否ST",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},type:"custom"},{key:"pb",label:"市净率",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[0,null],unit:[],text:"≥0"},{range:[0,1],unit:[],text:"0~1"},{range:[1,2],unit:[],text:"1~2"},{range:[0,3],unit:[],text:"0~3"},{range:[3,null],unit:[],text:"≥3"}],defaultUnit:[],unitOptions:[]},{key:"mnShr",label:"成交额",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[0,1],unit:["亿","亿"],text:"0~1亿"},{range:[0,5],unit:["亿","亿"],text:"0~5亿"},{range:[0,10],unit:["亿","亿"],text:"0~10亿"},{range:[10,null],unit:["亿","亿"],text:"≥10亿"},{range:[50,null],unit:["亿","亿"],text:"≥50亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"roe",label:"净资产收益率roe",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,0],unit:["%","%"],text:"<0"},{range:[0,null],unit:["%","%"],text:">0"},{range:[10,null],unit:["%","%"],text:">10%"},{range:[15,null],unit:["%","%"],text:">15%"},{range:[20,null],unit:["%","%"],text:">20%"},{range:[30,null],unit:["%","%"],text:">30%"}],defaultUnit:["%","%"],unitOptions:["%"]},{key:"tFeaturelncomes",label:"净利润",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},type:"custom"},{key:"dividendYield",label:"股息率",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,1],unit:["%","%"],text:"≤1%"},{range:[1,5],unit:["%","%"],text:"1%~5%"},{range:[5,10],unit:["%","%"],text:"5%~10%"},{range:[10,null],unit:["%","%"],text:"≥10%"}],defaultUnit:["%","%"],unitOptions:["%"]},{key:"expireDays",label:"过期天数",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["天","天"],unitOptions:["天"]},{key:"virtualRealDegree",label:"虚实度",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["%","%"],unitOptions:["%"]},{key:"yearProfitRate",label:"年化收益率",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["%","%"],unitOptions:["%"]},{key:"impliedVolatility",label:"隐含波动率",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["%","%"],unitOptions:["%"]},{key:"levelMultiplier",label:"杠杆率",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]},{key:"turnover",label:"成交额(期权)",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["万","万"],unitOptions:["万"]},{key:"volume",label:"成交量",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]},{key:"openInterest",label:"持仓量",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]},{key:"optionsCpType",label:"认沽认购",parent:{varietyMarketIds:[8],commonOptionIds:[11]},type:"custom"},{key:"optionGear",label:"期权档位",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]}]}};const mo=r=>(e.pushScopeId("data-v-a6a3b89f"),r=r(),e.popScopeId(),r),vo={class:"factor-screen"},go={class:"form-row"},yo={style:{display:"flex","align-items":"center",width:"100%",height:"24px"}},bo=mo(()=>e.createElementVNode("span",null,"~",-1)),ho={class:"dialog-footer"},_o={__name:"index",props:e.mergeModels({config:{type:Object,default:()=>{}}},{data:{default:[]},dataModifiers:{}}),emits:["update:data"],setup(r){const t=r,n=e.useModel(r,"data"),o=e.ref(!1),a=e.ref(null),i=e.ref({factorScreen:[{cycle:t.config.cycleDefault??null,factor:null,score:[null,null]}]}),l=(y,d,g)=>{!d[0]&&d[0]!==0&&!d[1]&&d[1]!==0?g(new Error("至少填写一个分数")):g()},s=()=>{n.value.length>0?i.value.factorScreen=JSON.parse(JSON.stringify(n.value)):i.value.factorScreen=[{cycle:t.config.cycleDefault??null,factor:null,score:[null,null]}],o.value=!0},p=y=>{n.value.splice(y,1)},V=()=>{i.value.factorScreen.push({cycle:t.config.cycleDefault??null,factor:null,score:[null,null]})},m=y=>{i.value.factorScreen.splice(y,1)},c=()=>{a.value&&a.value.validate(y=>{y?(n.value=JSON.parse(JSON.stringify(i.value.factorScreen)),o.value=!1):console.error("因子筛选-弹窗: 表单校验未通过")})},k=y=>{const{cycle:d,factor:g,score:v}=y;let u="";return u+=` ${t.config.cycleOptions.find(({value:w})=>w===d).label}`,u+=` ${t.config.factorOptions.find(({value:w})=>w===g).label}`,u+=` ${v[0]||v[0]===0?`${v[0]}分`:"∞"}`,u+=" ~",u+=` ${v[1]||v[1]===0?`${v[1]}分`:"∞"}`,u};return(y,d)=>{const g=X.ElTag,v=Ge.ElButton,u=X.ElOption,w=X.ElSelect,_=wr,x=st,C=S.ElIcon,I=xr,N=We.ElDialog;return e.openBlock(),e.createElementBlock("div",vo,[n.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.value,(b,P)=>(e.openBlock(),e.createBlock(g,{closable:"",type:"info",onClose:A=>p(P)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k(b)),1)]),_:2},1032,["onClose"]))),256)):e.createCommentVNode("",!0),e.createVNode(v,{class:"screen-btn",type:"primary",plain:"",size:"small",icon:e.unref(S.plus_default),onClick:s},{default:e.withCtx(()=>[e.createTextVNode("添加因子")]),_:1},8,["icon"]),e.createVNode(N,{modelValue:o.value,"onUpdate:modelValue":d[0]||(d[0]=b=>o.value=b),title:"因子筛选",width:"500","align-center":"","destroy-on-close":""},{footer:e.withCtx(()=>[e.createElementVNode("div",ho,[e.createVNode(v,{type:"primary",onClick:c},{default:e.withCtx(()=>[e.createTextVNode("确定")]),_:1})])]),default:e.withCtx(()=>[e.createVNode(I,{ref_key:"dialogFormRef",ref:a,model:i.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.factorScreen,(b,P)=>(e.openBlock(),e.createElementBlock("div",go,[r.config.cycleShow?(e.openBlock(),e.createBlock(_,{key:0,prop:"factorScreen."+P+".cycle",rules:{required:!0,message:"周期不能为空",trigger:"blur"},style:{width:"100px","margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:b.cycle,"onUpdate:modelValue":A=>b.cycle=A,placeholder:"选择周期",size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.config.cycleOptions,({label:A,value:G})=>(e.openBlock(),e.createBlock(u,{label:A,value:G,key:G},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])):e.createCommentVNode("",!0),e.createVNode(_,{prop:"factorScreen."+P+".factor",rules:{required:!0,message:"因子不能为空",trigger:"blur"},style:{width:"100px","margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:b.factor,"onUpdate:modelValue":A=>b.factor=A,placeholder:"选择因子",filterable:"",size:"small","no-match-text":"无匹配数据"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.config.factorOptions,({label:A,value:G})=>(e.openBlock(),e.createBlock(u,{label:A,value:G,key:G},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"]),e.createVNode(_,{prop:"factorScreen."+P+".score",rules:{validator:l,trigger:"blur"},style:{width:"200px","margin-right":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",yo,[e.createVNode(x,{modelValue:b.score[0],"onUpdate:modelValue":A=>b.score[0]=A,size:"small","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"]),bo,e.createVNode(x,{modelValue:b.score[1],"onUpdate:modelValue":A=>b.score[1]=A,size:"small","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])])]),_:2},1032,["prop","rules"]),e.createVNode(C,{onClick:A=>m(P)},{default:e.withCtx(()=>[e.createVNode(e.unref(S.circle_close_filled_default))]),_:2},1032,["onClick"])]))),256)),e.createVNode(v,{type:"primary",plain:"",size:"small",icon:e.unref(S.plus_default),onClick:V},{default:e.withCtx(()=>[e.createTextVNode("添加因子")]),_:1},8,["icon"])]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}},ko=Oe._export_sfc(_o,[["__scopeId","data-v-a6a3b89f"]]);const Ie=r=>(e.pushScopeId("data-v-0a691a79"),r=r(),e.popScopeId(),r),xo={key:0,class:"common-indicator"},wo={class:"indicator"},Vo=Ie(()=>e.createElementVNode("div",{class:"title"},[e.createElementVNode("span",null,"常用指标: "),e.createElementVNode("span",null,"不限")],-1)),No={class:"options"},Eo=["onClick"],Co={class:"tags"},Oo=["onClick"],Io={key:0,class:"convenient-option-box"},So={class:"out-box"},To=Ie(()=>e.createElementVNode("span",null,"自定义: ",-1)),Bo={key:0},Fo={key:0},$o={key:0},Mo={key:1},Ao={class:"tFeaturelncomes-option-box"},Po={class:"tFeaturelncomes-out-box"},qo=Ie(()=>e.createElementVNode("span",null,"自定义: ",-1)),jo={key:2},Do={class:"dialog-footer"},Uo={__name:"index",props:e.mergeModels({config:{type:Object,default:()=>{}},varietyMarket:{type:Number,default:()=>null},commonOption:{type:Array,default:()=>[]}},{data:{default:[]},dataModifiers:{}}),emits:["update:data"],setup(r){const t=r,n=e.useModel(r,"data"),o=e.computed(()=>{let y=[];return t.varietyMarket===null&&!t.commonOption.length?y=t.config.options:(y=t.config.options,t.varietyMarket&&(y=y.filter(({parent:d})=>d.varietyMarketIds.includes(t.varietyMarket))),t.commonOption.length&&(y=y.filter(({parent:d})=>{const{commonOptionIds:g}=d;return[...new Set([...g,...t.commonOption])].length!==[...g,...t.commonOption].length}))),y});e.watch(()=>o.value,()=>{n.value.length&&(n.value=n.value.filter(({key:y})=>o.value.find(d=>d.key===y)))});const a=e.ref(!1),i=e.ref({}),l=e.ref({}),s=y=>{i.value=y;const d={label:y.label,key:y.key,type:y.type};y.type===void 0?l.value={...d,range:[null,null],unit:y.defaultUnit.length?[...y.defaultUnit]:[null,null]}:y.key==="st"?l.value={...d,st:null}:y.key==="tFeaturelncomes"?l.value={...d,rule:1,withFewYears:null,yearsCount:null,netProfit:null}:y.key==="optionsCpType"&&(l.value={...d,optionsCpType:null}),a.value=!0},p=y=>{l.value.range=[...y.range],l.value.unit=[...y.unit]},V=y=>{switch(y){case"≤0":Object.assign(l.value,{rule:2,withFewYears:1,yearsCount:1,netProfit:0});break;case"≥0":Object.assign(l.value,{rule:1,withFewYears:1,yearsCount:1,netProfit:0});break;case"五年内有四年以上盈利超过5千万":Object.assign(l.value,{rule:1,withFewYears:5,yearsCount:4,netProfit:.5});break;case"≥10亿":Object.assign(l.value,{rule:1,withFewYears:1,yearsCount:1,netProfit:10});break;case"≥20亿":Object.assign(l.value,{rule:1,withFewYears:1,yearsCount:1,netProfit:20});break}},m=()=>{if(l.value.type===void 0){const{label:d,range:g,unit:v}=l.value;if(["",null].includes(g[0])&&["",null].includes(g[1]))return pe.warning("格式错误: 请至少填写一个值");!["",null].includes(g[0])&&!["",null].includes(g[1])?l.value.tagText=`${d}: ${g[0]}${v[0]??""} ~ ${g[1]}${v[1]??""}`:["",null].includes(g[0])?l.value.tagText=`${d}: ≤${g[1]}${v[1]??""}`:l.value.tagText=`${d}: ≥${g[0]}${v[0]??""}`}else if(l.value.key==="st"){const{label:d,st:g}=l.value;if(g===null)return pe.warning("格式错误: 请至少选择一个值");l.value.tagText=`${d}: ${g?"是":"否"}`}else if(l.value.key==="tFeaturelncomes"){const{label:d,rule:g,withFewYears:v,yearsCount:u,netProfit:w}=l.value;if(["",null].includes(v)||["",null].includes(u)||["",null].includes(w))return pe.warning("格式错误: 请填写完整");l.value.tagText=`${d}: ${v}年内${u}年以上盈利${g===1?"超":"跌"}过${w}亿`}else if(l.value.key==="optionsCpType"){const{label:d,optionsCpType:g}=l.value;if(g===null)return pe.warning("格式错误: 请至少选择一个值");l.value.tagText=`${d}: ${g===1?"看涨":"看跌"}`}const y=n.value.findIndex(({key:d})=>d===l.value.key);y===-1?n.value.push(l.value):n.value.splice(y,1,l.value),a.value=!1},c=y=>{n.value.splice(y,1)},k=y=>{i.value=o.value.find(({key:d})=>d===y.key),l.value=y,a.value=!0};return(y,d)=>{const g=X.ElTag,v=Ge.ElButton,u=X.ElOption,w=X.ElSelect,_=X.ElInput,x=lt,C=it,I=st,N=We.ElDialog;return r.config.show&&o.value.length?(e.openBlock(),e.createElementBlock("div",xo,[e.createElementVNode("div",wo,[Vo,e.createElementVNode("div",No,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,b=>(e.openBlock(),e.createElementBlock("span",{key:b.key,onClick:P=>s(b)},e.toDisplayString(b.label),9,Eo))),128))])]),e.createElementVNode("div",Co,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(b,P)=>(e.openBlock(),e.createBlock(g,{closable:"",type:"info",onClose:A=>c(P)},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(b.tagText),1),e.createElementVNode("span",{class:"edit",onClick:A=>k(b)},"编辑",8,Oo)]),_:2},1032,["onClose"]))),256))]),e.createVNode(N,{modelValue:a.value,"onUpdate:modelValue":d[14]||(d[14]=b=>a.value=b),title:i.value.label,width:"600","align-center":"","destroy-on-close":""},{footer:e.withCtx(()=>[e.createElementVNode("div",Do,[e.createVNode(v,{type:"primary",onClick:m},{default:e.withCtx(()=>[e.createTextVNode("确定")]),_:1})])]),default:e.withCtx(()=>[i.value.type===void 0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.value.convenientOptions.length?(e.openBlock(),e.createElementBlock("div",Io,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.convenientOptions,b=>(e.openBlock(),e.createBlock(v,{key:b.text,onClick:P=>p(b)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.text),1)]),_:2},1032,["onClick"]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",So,[To,e.createVNode(_,{modelValue:l.value.range[0],"onUpdate:modelValue":d[1]||(d[1]=b=>l.value.range[0]=b),style:{flex:"1"}},e.createSlots({_:2},[i.value.unitOptions.length?{name:"append",fn:e.withCtx(()=>[i.value.unitOptions.length===1?(e.openBlock(),e.createElementBlock("span",Bo,e.toDisplayString(l.value.unit[0]),1)):(e.openBlock(),e.createBlock(w,{key:1,modelValue:l.value.unit[0],"onUpdate:modelValue":d[0]||(d[0]=b=>l.value.unit[0]=b),style:{width:"72px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.unitOptions,b=>(e.openBlock(),e.createBlock(u,{label:b,value:b},null,8,["label","value"]))),256))]),_:1},8,["modelValue"]))]),key:"0"}:void 0]),1032,["modelValue"]),e.createTextVNode(" ~ "),e.createVNode(_,{modelValue:l.value.range[1],"onUpdate:modelValue":d[3]||(d[3]=b=>l.value.range[1]=b),style:{flex:"1"}},e.createSlots({_:2},[i.value.unitOptions.length?{name:"append",fn:e.withCtx(()=>[i.value.unitOptions.length===1?(e.openBlock(),e.createElementBlock("span",Fo,e.toDisplayString(l.value.unit[1]),1)):(e.openBlock(),e.createBlock(w,{key:1,modelValue:l.value.unit[1],"onUpdate:modelValue":d[2]||(d[2]=b=>l.value.unit[1]=b),style:{width:"72px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.unitOptions,b=>(e.openBlock(),e.createBlock(u,{label:b,value:b},null,8,["label","value"]))),256))]),_:1},8,["modelValue"]))]),key:"0"}:void 0]),1032,["modelValue"])])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[i.value.key==="st"?(e.openBlock(),e.createElementBlock("div",$o,[e.createVNode(C,{modelValue:l.value.st,"onUpdate:modelValue":d[4]||(d[4]=b=>l.value.st=b)},{default:e.withCtx(()=>[e.createVNode(x,{label:1},{default:e.withCtx(()=>[e.createTextVNode("是")]),_:1}),e.createVNode(x,{label:0},{default:e.withCtx(()=>[e.createTextVNode("否")]),_:1})]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),i.value.key==="tFeaturelncomes"?(e.openBlock(),e.createElementBlock("div",Mo,[e.createElementVNode("div",Ao,[e.createVNode(v,{onClick:d[5]||(d[5]=b=>V("≤0"))},{default:e.withCtx(()=>[e.createTextVNode("≤0")]),_:1}),e.createVNode(v,{onClick:d[6]||(d[6]=b=>V("≥0"))},{default:e.withCtx(()=>[e.createTextVNode("≥0")]),_:1}),e.createVNode(v,{onClick:d[7]||(d[7]=b=>V("五年内有四年以上盈利超过5千万"))},{default:e.withCtx(()=>[e.createTextVNode("五年内有四年以上盈利超过5千万")]),_:1}),e.createVNode(v,{onClick:d[8]||(d[8]=b=>V("≥10亿"))},{default:e.withCtx(()=>[e.createTextVNode("≥10亿")]),_:1}),e.createVNode(v,{onClick:d[9]||(d[9]=b=>V("≥20亿"))},{default:e.withCtx(()=>[e.createTextVNode("≥20亿")]),_:1})]),e.createElementVNode("div",Po,[qo,e.createElementVNode("div",null,[e.createVNode(I,{modelValue:l.value.withFewYears,"onUpdate:modelValue":d[10]||(d[10]=b=>l.value.withFewYears=b),"controls-position":"right"},null,8,["modelValue"]),e.createTextVNode(" 年内 "),e.createVNode(I,{modelValue:l.value.yearsCount,"onUpdate:modelValue":d[11]||(d[11]=b=>l.value.yearsCount=b),"controls-position":"right"},null,8,["modelValue"]),e.createTextVNode(" 年以上盈利"+e.toDisplayString(l.value.rule===1?"超":"跌")+"过 ",1),e.createVNode(I,{modelValue:l.value.netProfit,"onUpdate:modelValue":d[12]||(d[12]=b=>l.value.netProfit=b),"controls-position":"right"},null,8,["modelValue"]),e.createTextVNode(" 亿 ")])])])):e.createCommentVNode("",!0),i.value.key==="optionsCpType"?(e.openBlock(),e.createElementBlock("div",jo,[e.createVNode(C,{modelValue:l.value.optionsCpType,"onUpdate:modelValue":d[13]||(d[13]=b=>l.value.optionsCpType=b)},{default:e.withCtx(()=>[e.createVNode(x,{label:1},{default:e.withCtx(()=>[e.createTextVNode("看涨")]),_:1}),e.createVNode(x,{label:2},{default:e.withCtx(()=>[e.createTextVNode("看跌")]),_:1})]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0)],64))]),_:1},8,["modelValue","title"])])):e.createCommentVNode("",!0)}}},Ro=Oe._export_sfc(Uo,[["__scopeId","data-v-0a691a79"]]);const ye=r=>(e.pushScopeId("data-v-6e54eaf3"),r=r(),e.popScopeId(),r),Lo={class:"variety-search"},zo={key:0,class:"variety-search-row"},Wo={class:"title"},Go=ye(()=>e.createElementVNode("span",null,"品种市场: ",-1)),Ko={key:1,class:"variety-search-row"},Yo={class:"title"},Ho=ye(()=>e.createElementVNode("span",null,"常用选项: ",-1)),Jo={key:2,class:"variety-search-row"},Zo={class:"title"},Qo=ye(()=>e.createElementVNode("span",null,"自定标签: ",-1)),Xo={key:3,class:"variety-search-row"},ea={class:"title"},ta=ye(()=>e.createElementVNode("span",null,"因子筛选: ",-1)),na={__name:"index",props:e.mergeModels({config:{type:Object,default:{}}},{searchData:{default:{varietyMarket:null,commonOption:[],customTag:[],factorScreen:[],commonIndicator:[]}},searchDataModifiers:{}}),emits:["update:searchData"],setup(r,{expose:t}){const n=r,o=e.useModel(r,"searchData"),a=e.computed(()=>{const m={};return Object.keys(ze).forEach(c=>{const k=ze[c],y=n.config[c]??{},d={...k,...y};m[c]=d}),m}),i=e.computed(()=>a.value.varietyMarket.options),l=e.computed(()=>{const{varietyMarket:m}=o.value;if(m){const c=i.value.find(({value:k})=>k===m).memo;return a.value.commonOption.options.filter(({value:k})=>c.includes(k))}else return a.value.commonOption.options});e.watch(()=>l.value,m=>{o.value.commonOption.length&&(o.value.commonOption=o.value.commonOption.filter(c=>m.find(({value:k})=>k===c)))});const s=e.computed(()=>a.value.customTag.options),p=m=>{["commonOption","customTag","factorScreen","commonIndicator"].includes(m)?o.value[m]=[]:o.value[m]=null};return t({formatData:m=>{const c={};m.varietyMarket&&(c.exchangeId=String(m.varietyMarket)),m.commonOption&&m.commonOption.length&&(c.optionId=m.commonOption.join(",")),m.customTag&&m.customTag.length&&(c.tagIds=m.customTag),m.factorScreen&&m.factorScreen.length&&(c.tbFeatureFactorScores=m.factorScreen.map(u=>({freqId:u.cycle,factorId:u.factor,startScore:u.score[0],endScore:u.score[1]})));const k=["expireDays","virtualRealDegree","yearProfitRate","impliedVolatility","levelMultiplier","turnover","volume","openInterest","optionsCpType","optionGear"],y=m.commonIndicator.reduce((u,w)=>{const{key:_,type:x,range:C,unit:I}=w;if(_==="dividendYield"){let[N,b]=C;["",null].includes(N)||(N=N/100),["",null].includes(b)||(b=b/100),u.push({column:w.key,start:N,end:b})}else if(x===void 0&&!k.includes(_)){let[N,b]=C;if(!["",null].includes(N))switch(I[0]){case"亿":N=N*1e8;break;case"千万":N=N*1e7;break;default:N=N;break}if(!["",null].includes(b))switch(I[1]){case"亿":b=b*1e8;break;case"千万":b=b*1e7;break;default:b=b;break}u.push({column:w.key,start:N,end:b})}return u},[]);y.length&&(c.query=y);const d=m.commonIndicator.find(({key:u})=>u==="st");d&&(c.st=d.st);const g=m.commonIndicator.find(({key:u})=>u==="tFeaturelncomes");g&&(c.netProfitQueryDto={...g,netProfit:g.netProfit*1e8});const v={};return m.commonIndicator.forEach(u=>{const{key:w}=u;switch(w){case"expireDays":["",null].includes(u.range[0])||(v.minExpireDays=u.range[0]),["",null].includes(u.range[1])||(v.maxExpireDays=u.range[1]);break;case"virtualRealDegree":["",null].includes(u.range[0])||(v.minVirtualRealDegree=u.range[0]/100),["",null].includes(u.range[1])||(v.maxVirtualRealDegree=u.range[1]/100);break;case"yearProfitRate":["",null].includes(u.range[0])||(v.minYearProfitRate=u.range[0]/100),["",null].includes(u.range[1])||(v.maxYearProfitRate=u.range[1]/100);break;case"impliedVolatility":["",null].includes(u.range[0])||(v.minImpliedVolatility=u.range[0]/100),["",null].includes(u.range[1])||(v.maxImpliedVolatility=u.range[1]/100);break;case"levelMultiplier":["",null].includes(u.range[0])||(v.minLevelMultiplier=u.range[0]),["",null].includes(u.range[1])||(v.maxLevelMultiplier=u.range[1]);break;case"turnover":["",null].includes(u.range[0])||(v.minTurnover=u.range[0]*1e4),["",null].includes(u.range[1])||(v.maxTurnover=u.range[1]*1e4);break;case"volume":["",null].includes(u.range[0])||(v.minVolume=u.range[0]),["",null].includes(u.range[1])||(v.maxVolume=u.range[1]);break;case"openInterest":["",null].includes(u.range[0])||(v.minOpenInterest=u.range[0]),["",null].includes(u.range[1])||(v.maxOpenInterest=u.range[1]);break;case"optionsCpType":v.optionsCpType=u.optionsCpType;break;case"optionGear":["",null].includes(u.range[0])||(v.minOptionGear=u.range[0]),["",null].includes(u.range[1])||(v.maxOptionGear=u.range[1]);break}}),Object.keys(v).length&&(c.searchOptionDto=v),c}}),(m,c)=>{var v,u,w,_;const k=lt,y=it,d=z.ElCheckbox,g=z.ElCheckboxGroup;return e.openBlock(),e.createElementBlock("div",Lo,[(v=a.value.varietyMarket)!=null&&v.show?(e.openBlock(),e.createElementBlock("div",zo,[e.createElementVNode("div",Wo,[Go,e.createElementVNode("span",{onClick:c[0]||(c[0]=x=>p("varietyMarket"))},"不限")]),e.createVNode(y,{modelValue:o.value.varietyMarket,"onUpdate:modelValue":c[1]||(c[1]=x=>o.value.varietyMarket=x),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,({label:x,value:C})=>(e.openBlock(),e.createBlock(k,{label:C,key:C},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),(u=a.value.commonOption)!=null&&u.show&&l.value.length?(e.openBlock(),e.createElementBlock("div",Ko,[e.createElementVNode("div",Yo,[Ho,e.createElementVNode("span",{onClick:c[2]||(c[2]=x=>p("commonOption"))},"不限")]),e.createVNode(g,{modelValue:o.value.commonOption,"onUpdate:modelValue":c[3]||(c[3]=x=>o.value.commonOption=x),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,({label:x,value:C})=>(e.openBlock(),e.createBlock(d,{label:C,key:C},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),(w=a.value.customTag)!=null&&w.show&&s.value.length?(e.openBlock(),e.createElementBlock("div",Jo,[e.createElementVNode("div",Zo,[Qo,e.createElementVNode("span",{onClick:c[4]||(c[4]=x=>p("customTag"))},"不限")]),e.createVNode(g,{modelValue:o.value.customTag,"onUpdate:modelValue":c[5]||(c[5]=x=>o.value.customTag=x),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,({label:x,value:C})=>(e.openBlock(),e.createBlock(d,{label:C,key:C},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),(_=a.value.factorScreen)!=null&&_.show?(e.openBlock(),e.createElementBlock("div",Xo,[e.createElementVNode("div",ea,[ta,e.createElementVNode("span",{onClick:c[6]||(c[6]=x=>p("factorScreen"))},"不限")]),e.createVNode(ko,{data:o.value.factorScreen,"onUpdate:data":c[7]||(c[7]=x=>o.value.factorScreen=x),config:a.value.factorScreen},null,8,["data","config"])])):e.createCommentVNode("",!0),e.createVNode(Ro,{data:o.value.commonIndicator,"onUpdate:data":c[8]||(c[8]=x=>o.value.commonIndicator=x),varietyMarket:o.value.varietyMarket,commonOption:o.value.commonOption,config:a.value.commonIndicator},null,8,["data","varietyMarket","commonOption","config"])])}}},ra=Oe._export_sfc(na,[["__scopeId","data-v-6e54eaf3"]]),oa={install(r){r.component("st-varietySearch",ra)}};module.exports=oa;
12
+ `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+a+"$)"),l=new RegExp("^"+n+"$"),s=new RegExp("^"+a+"$"),p=function(x){return x&&x.exact?i:new RegExp("(?:"+t(x)+n+t(x)+")|(?:"+t(x)+a+t(x)+")","g")};p.v4=function(_){return _&&_.exact?l:new RegExp(""+t(_)+n+t(_),"g")},p.v6=function(_){return _&&_.exact?s:new RegExp(""+t(_)+a+t(_),"g")};var V="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",c=p.v4().source,k=p.v6().source,y="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",d="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",v="(?::\\d{2,5})?",u='(?:[/?#][^\\s"]*)?',w="(?:"+V+"|www\\.)"+m+"(?:localhost|"+c+"|"+k+"|"+y+d+g+")"+v+u;return fe=new RegExp("(?:^"+w+"$)","i"),fe},Ue={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},le={integer:function(t){return le.number(t)&&parseInt(t,10)===t},float:function(t){return le.number(t)&&!le.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!le.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Ue.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Jn())},hex:function(t){return typeof t=="string"&&!!t.match(Ue.hex)}},Zn=function(t,n,o,a,i){if(t.required&&n===void 0){Qe(t,n,o,a,i);return}var l=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;l.indexOf(s)>-1?le[s](n)||a.push(H(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&a.push(H(i.messages.types[s],t.fullField,t.type))},Qn=function(t,n,o,a,i){var l=typeof t.len=="number",s=typeof t.min=="number",p=typeof t.max=="number",V=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=n,c=null,k=typeof n=="number",y=typeof n=="string",d=Array.isArray(n);if(k?c="number":y?c="string":d&&(c="array"),!c)return!1;d&&(m=n.length),y&&(m=n.replace(V,"_").length),l?m!==t.len&&a.push(H(i.messages[c].len,t.fullField,t.len)):s&&!p&&m<t.min?a.push(H(i.messages[c].min,t.fullField,t.min)):p&&!s&&m>t.max?a.push(H(i.messages[c].max,t.fullField,t.max)):s&&p&&(m<t.min||m>t.max)&&a.push(H(i.messages[c].range,t.fullField,t.min,t.max))},oe="enum",Xn=function(t,n,o,a,i){t[oe]=Array.isArray(t[oe])?t[oe]:[],t[oe].indexOf(n)===-1&&a.push(H(i.messages[oe],t.fullField,t[oe].join(", ")))},er=function(t,n,o,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(H(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var l=new RegExp(t.pattern);l.test(n)||a.push(H(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},T={required:Qe,whitespace:Hn,type:Zn,range:Qn,enum:Xn,pattern:er},tr=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(U(n,"string")&&!t.required)return o();T.required(t,n,a,l,i,"string"),U(n,"string")||(T.type(t,n,a,l,i),T.range(t,n,a,l,i),T.pattern(t,n,a,l,i),t.whitespace===!0&&T.whitespace(t,n,a,l,i))}o(l)},nr=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(U(n)&&!t.required)return o();T.required(t,n,a,l,i),n!==void 0&&T.type(t,n,a,l,i)}o(l)},rr=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),U(n)&&!t.required)return o();T.required(t,n,a,l,i),n!==void 0&&(T.type(t,n,a,l,i),T.range(t,n,a,l,i))}o(l)},or=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(U(n)&&!t.required)return o();T.required(t,n,a,l,i),n!==void 0&&T.type(t,n,a,l,i)}o(l)},ar=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(U(n)&&!t.required)return o();T.required(t,n,a,l,i),U(n)||T.type(t,n,a,l,i)}o(l)},lr=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(U(n)&&!t.required)return o();T.required(t,n,a,l,i),n!==void 0&&(T.type(t,n,a,l,i),T.range(t,n,a,l,i))}o(l)},ir=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(U(n)&&!t.required)return o();T.required(t,n,a,l,i),n!==void 0&&(T.type(t,n,a,l,i),T.range(t,n,a,l,i))}o(l)},sr=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return o();T.required(t,n,a,l,i,"array"),n!=null&&(T.type(t,n,a,l,i),T.range(t,n,a,l,i))}o(l)},ur=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(U(n)&&!t.required)return o();T.required(t,n,a,l,i),n!==void 0&&T.type(t,n,a,l,i)}o(l)},cr="enum",dr=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(U(n)&&!t.required)return o();T.required(t,n,a,l,i),n!==void 0&&T[cr](t,n,a,l,i)}o(l)},fr=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(U(n,"string")&&!t.required)return o();T.required(t,n,a,l,i),U(n,"string")||T.pattern(t,n,a,l,i)}o(l)},pr=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(U(n,"date")&&!t.required)return o();if(T.required(t,n,a,l,i),!U(n,"date")){var p;n instanceof Date?p=n:p=new Date(n),T.type(t,p,a,l,i),p&&T.range(t,p.getTime(),a,l,i)}}o(l)},mr=function(t,n,o,a,i){var l=[],s=Array.isArray(n)?"array":typeof n;T.required(t,n,a,l,i,s),o(l)},_e=function(t,n,o,a,i){var l=t.type,s=[],p=t.required||!t.required&&a.hasOwnProperty(t.field);if(p){if(U(n,l)&&!t.required)return o();T.required(t,n,a,s,i,l),U(n,l)||T.type(t,n,a,s,i)}o(s)},vr=function(t,n,o,a,i){var l=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(U(n)&&!t.required)return o();T.required(t,n,a,l,i)}o(l)},se={string:tr,method:nr,number:rr,boolean:or,regexp:ar,integer:lr,float:ir,array:sr,object:ur,enum:dr,pattern:fr,date:pr,url:_e,hex:_e,email:_e,required:mr,any:vr};function Ee(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Ce=Ee(),ce=function(){function r(n){this.rules=null,this._messages=Ce,this.define(n)}var t=r.prototype;return t.define=function(o){var a=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(i){var l=o[i];a.rules[i]=Array.isArray(l)?l:[l]})},t.messages=function(o){return o&&(this._messages=De(Ee(),o)),this._messages},t.validate=function(o,a,i){var l=this;a===void 0&&(a={}),i===void 0&&(i=function(){});var s=o,p=a,V=i;if(typeof p=="function"&&(V=p,p={}),!this.rules||Object.keys(this.rules).length===0)return V&&V(null,s),Promise.resolve(s);function m(g){var v=[],u={};function w(x){if(Array.isArray(x)){var C;v=(C=v).concat.apply(C,x)}else v.push(x)}for(var _=0;_<g.length;_++)w(g[_]);v.length?(u=Ne(v),V(v,u)):V(null,s)}if(p.messages){var c=this.messages();c===Ce&&(c=Ee()),De(c,p.messages),p.messages=c}else p.messages=this.messages();var k={},y=p.keys||Object.keys(this.rules);y.forEach(function(g){var v=l.rules[g],u=s[g];v.forEach(function(w){var _=w;typeof _.transform=="function"&&(s===o&&(s=ee({},s)),u=s[g]=_.transform(u)),typeof _=="function"?_={validator:_}:_=ee({},_),_.validator=l.getValidationMethod(_),_.validator&&(_.field=g,_.fullField=_.fullField||g,_.type=l.getType(_),k[g]=k[g]||[],k[g].push({rule:_,value:u,source:s,field:g}))})});var d={};return Gn(k,p,function(g,v){var u=g.rule,w=(u.type==="object"||u.type==="array")&&(typeof u.fields=="object"||typeof u.defaultField=="object");w=w&&(u.required||!u.required&&g.value),u.field=g.field;function _(I,N){return ee({},N,{fullField:u.fullField+"."+I,fullFields:u.fullFields?[].concat(u.fullFields,[I]):[I]})}function x(I){I===void 0&&(I=[]);var N=Array.isArray(I)?I:[I];!p.suppressWarning&&N.length&&r.warning("async-validator:",N),N.length&&u.message!==void 0&&(N=[].concat(u.message));var b=N.map(je(u,s));if(p.first&&b.length)return d[u.field]=1,v(b);if(!w)v(b);else{if(u.required&&!g.value)return u.message!==void 0?b=[].concat(u.message).map(je(u,s)):p.error&&(b=[p.error(u,H(p.messages.required,u.field))]),v(b);var P={};u.defaultField&&Object.keys(g.value).map(function(Y){P[Y]=u.defaultField}),P=ee({},P,g.rule.fields);var A={};Object.keys(P).forEach(function(Y){var h=P[Y],E=Array.isArray(h)?h:[h];A[Y]=E.map(_.bind(null,Y))});var G=new r(A);G.messages(p.messages),g.rule.options&&(g.rule.options.messages=p.messages,g.rule.options.error=p.error),G.validate(g.value,g.rule.options||p,function(Y){var h=[];b&&b.length&&h.push.apply(h,b),Y&&Y.length&&h.push.apply(h,Y),v(h.length?h:null)})}}var C;if(u.asyncValidator)C=u.asyncValidator(u,g.value,x,g.source,p);else if(u.validator){try{C=u.validator(u,g.value,x,g.source,p)}catch(I){console.error==null||console.error(I),p.suppressValidatorError||setTimeout(function(){throw I},0),x(I.message)}C===!0?x():C===!1?x(typeof u.message=="function"?u.message(u.fullField||u.field):u.message||(u.fullField||u.field)+" fails"):C instanceof Array?x(C):C instanceof Error&&x(C.message)}C&&C.then&&C.then(function(){return x()},function(I){return x(I)})},function(g){m(g)},s)},t.getType=function(o){if(o.type===void 0&&o.pattern instanceof RegExp&&(o.type="pattern"),typeof o.validator!="function"&&o.type&&!se.hasOwnProperty(o.type))throw new Error(H("Unknown rule type %s",o.type));return o.type||"string"},t.getValidationMethod=function(o){if(typeof o.validator=="function")return o.validator;var a=Object.keys(o),i=a.indexOf("message");return i!==-1&&a.splice(i,1),a.length===1&&a[0]==="required"?se.required:se[this.getType(o)]||void 0},r}();ce.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");se[t]=n};ce.warning=Ze;ce.messages=Ce;ce.validators=se;const gr=["","error","validating","success"],yr=f.buildProps({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:f.definePropType([String,Array])},required:{type:Boolean,default:void 0},rules:{type:f.definePropType([Object,Array])},error:String,validateStatus:{type:String,values:gr},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:S.componentSizes}}),Re="ElLabelWrap";var br=e.defineComponent({name:Re,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(r,{slots:t}){const n=e.inject(S.formContextKey,void 0),o=e.inject(S.formItemContextKey);o||f.throwError(Re,"usage: <el-form-item><label-wrap /></el-form-item>");const a=f.useNamespace("form"),i=e.ref(),l=e.ref(0),s=()=>{var m;if((m=i.value)!=null&&m.firstElementChild){const c=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(c))}else return 0},p=(m="update")=>{e.nextTick(()=>{t.default&&r.isAutoWidth&&(m==="update"?l.value=s():m==="remove"&&(n==null||n.deregisterLabelWidth(l.value)))})},V=()=>p("update");return e.onMounted(()=>{V()}),e.onBeforeUnmount(()=>{p("remove")}),e.onUpdated(()=>V()),e.watch(l,(m,c)=>{r.updateAll&&(n==null||n.registerLabelWidth(m,c))}),ke.useResizeObserver(e.computed(()=>{var m,c;return(c=(m=i.value)==null?void 0:m.firstElementChild)!=null?c:null}),V),()=>{var m,c;if(!t)return null;const{isAutoWidth:k}=r;if(k){const y=n==null?void 0:n.autoLabelWidth,d=o==null?void 0:o.hasLabel,g={};if(d&&y&&y!=="auto"){const v=Math.max(0,Number.parseInt(y,10)-l.value),u=n.labelPosition==="left"?"marginRight":"marginLeft";v&&(g[u]=`${v}px`)}return e.createVNode("div",{ref:i,class:[a.be("item","label-wrap")],style:g},[(m=t.default)==null?void 0:m.call(t)])}else return e.createVNode(e.Fragment,{ref:i},[(c=t.default)==null?void 0:c.call(t)])}}});const hr=["role","aria-labelledby"],_r=e.defineComponent({name:"ElFormItem"}),kr=e.defineComponent({..._r,props:yr,setup(r,{expose:t}){const n=r,o=e.useSlots(),a=e.inject(S.formContextKey,void 0),i=e.inject(S.formItemContextKey,void 0),l=S.useFormSize(void 0,{formItem:!1}),s=f.useNamespace("form-item"),p=f.useId().value,V=e.ref([]),m=e.ref(""),c=f.refDebounced(m,100),k=e.ref(""),y=e.ref();let d,g=!1;const v=e.computed(()=>{if((a==null?void 0:a.labelPosition)==="top")return{};const O=f.addUnit(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return O?{width:O}:{}}),u=e.computed(()=>{if((a==null?void 0:a.labelPosition)==="top"||a!=null&&a.inline)return{};if(!n.label&&!n.labelWidth&&P)return{};const O=f.addUnit(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return!n.label&&!o.label?{marginLeft:O}:{}}),w=e.computed(()=>[s.b(),s.m(l.value),s.is("error",m.value==="error"),s.is("validating",m.value==="validating"),s.is("success",m.value==="success"),s.is("required",E.value||n.required),s.is("no-asterisk",a==null?void 0:a.hideRequiredAsterisk),(a==null?void 0:a.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:a==null?void 0:a.statusIcon}]),_=e.computed(()=>f.isBoolean(n.inlineMessage)?n.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),x=e.computed(()=>[s.e("error"),{[s.em("error","inline")]:_.value}]),C=e.computed(()=>n.prop?f.isString(n.prop)?n.prop:n.prop.join("."):""),I=e.computed(()=>!!(n.label||o.label)),N=e.computed(()=>n.for||V.value.length===1?V.value[0]:void 0),b=e.computed(()=>!N.value&&I.value),P=!!i,A=e.computed(()=>{const O=a==null?void 0:a.model;if(!(!O||!n.prop))return ie.getProp(O,n.prop).value}),G=e.computed(()=>{const{required:O}=n,F=[];n.rules&&F.push(...xe.castArray(n.rules));const L=a==null?void 0:a.rules;if(L&&n.prop){const R=ie.getProp(L,n.prop).value;R&&F.push(...xe.castArray(R))}if(O!==void 0){const R=F.map((Q,re)=>[Q,re]).filter(([Q])=>Object.keys(Q).includes("required"));if(R.length>0)for(const[Q,re]of R)Q.required!==O&&(F[re]={...Q,required:O});else F.push({required:O})}return F}),Y=e.computed(()=>G.value.length>0),h=O=>G.value.filter(L=>!L.trigger||!O?!0:Array.isArray(L.trigger)?L.trigger.includes(O):L.trigger===O).map(({trigger:L,...R})=>R),E=e.computed(()=>G.value.some(O=>O.required)),B=e.computed(()=>{var O;return c.value==="error"&&n.showMessage&&((O=a==null?void 0:a.showMessage)!=null?O:!0)}),j=e.computed(()=>`${n.label||""}${(a==null?void 0:a.labelSuffix)||""}`),M=O=>{m.value=O},J=O=>{var F,L;const{errors:R,fields:Q}=O;(!R||!Q)&&console.error(O),M("error"),k.value=R?(L=(F=R==null?void 0:R[0])==null?void 0:F.message)!=null?L:`${n.prop} is required`:"",a==null||a.emit("validate",n.prop,!1,k.value)},te=()=>{M("success"),a==null||a.emit("validate",n.prop,!0,"")},ne=async O=>{const F=C.value;return new ce({[F]:O}).validate({[F]:A.value},{firstFields:!0}).then(()=>(te(),!0)).catch(R=>(J(R),Promise.reject(R)))},W=async(O,F)=>{if(g||!n.prop)return!1;const L=f.isFunction$1(F);if(!Y.value)return F==null||F(!1),!1;const R=h(O);return R.length===0?(F==null||F(!0),!0):(M("validating"),ne(R).then(()=>(F==null||F(!0),!0)).catch(Q=>{const{fields:re}=Q;return F==null||F(!1,re),L?!1:Promise.reject(re)}))},be=()=>{M(""),k.value="",g=!1},Se=async()=>{const O=a==null?void 0:a.model;if(!O||!n.prop)return;const F=ie.getProp(O,n.prop);g=!0,F.value=Ae(d),await e.nextTick(),be(),g=!1},dt=O=>{V.value.includes(O)||V.value.push(O)},ft=O=>{V.value=V.value.filter(F=>F!==O)};e.watch(()=>n.error,O=>{k.value=O||"",M(O?"error":"")},{immediate:!0}),e.watch(()=>n.validateStatus,O=>M(O||""));const he=e.reactive({...e.toRefs(n),$el:y,size:l,validateState:m,labelId:p,inputIds:V,isGroup:b,hasLabel:I,addInputId:dt,removeInputId:ft,resetField:Se,clearValidate:be,validate:W});return e.provide(S.formItemContextKey,he),e.onMounted(()=>{n.prop&&(a==null||a.addField(he),d=Ae(A.value))}),e.onBeforeUnmount(()=>{a==null||a.removeField(he)}),t({size:l,validateMessage:k,validateState:m,validate:W,clearValidate:be,resetField:Se}),(O,F)=>{var L;return e.openBlock(),e.createElementBlock("div",{ref_key:"formItemRef",ref:y,class:e.normalizeClass(e.unref(w)),role:e.unref(b)?"group":void 0,"aria-labelledby":e.unref(b)?e.unref(p):void 0},[e.createVNode(e.unref(br),{"is-auto-width":e.unref(v).width==="auto","update-all":((L=e.unref(a))==null?void 0:L.labelWidth)==="auto"},{default:e.withCtx(()=>[e.unref(I)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(N)?"label":"div"),{key:0,id:e.unref(p),for:e.unref(N),class:e.normalizeClass(e.unref(s).e("label")),style:e.normalizeStyle(e.unref(v))},{default:e.withCtx(()=>[e.renderSlot(O.$slots,"label",{label:e.unref(j)},()=>[e.createTextVNode(e.toDisplayString(e.unref(j)),1)])]),_:3},8,["id","for","class","style"])):e.createCommentVNode("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s).e("content")),style:e.normalizeStyle(e.unref(u))},[e.renderSlot(O.$slots,"default"),e.createVNode(e.TransitionGroup,{name:`${e.unref(s).namespace.value}-zoom-in-top`},{default:e.withCtx(()=>[e.unref(B)?e.renderSlot(O.$slots,"error",{key:0,error:k.value},()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(x))},e.toDisplayString(k.value),3)]):e.createCommentVNode("v-if",!0)]),_:3},8,["name"])],6)],10,hr)}}});var Xe=f._export_sfc(kr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const xr=f.withInstall(qn,{FormItem:Xe}),wr=f.withNoopInstall(Xe),Vr=f.buildProps({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),Nr=["textContent"],Er=e.defineComponent({name:"ElBadge"}),Cr=e.defineComponent({...Er,props:Vr,setup(r,{expose:t}){const n=r,o=f.useNamespace("badge"),a=e.computed(()=>n.isDot?"":f.isNumber(n.value)&&f.isNumber(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return t({content:a}),(i,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(o).b())},[e.renderSlot(i.$slots,"default"),e.createVNode(e.Transition,{name:`${e.unref(o).namespace.value}-zoom-in-center`,persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("sup",{class:e.normalizeClass([e.unref(o).e("content"),e.unref(o).em("content",i.type),e.unref(o).is("fixed",!!i.$slots.default),e.unref(o).is("dot",i.isDot)]),textContent:e.toDisplayString(e.unref(a))},null,10,Nr),[[e.vShow,!i.hidden&&(e.unref(a)||i.isDot)]])]),_:1},8,["name"])],2))}});var Or=f._export_sfc(Cr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const Ir=f.withInstall(Or),Sr=100,Tr=600,Le={beforeMount(r,t){const n=t.value,{interval:o=Sr,delay:a=Tr}=f.isFunction$1(n)?{}:n;let i,l;const s=()=>f.isFunction$1(n)?n():n.handler(),p=()=>{l&&(clearTimeout(l),l=void 0),i&&(clearInterval(i),i=void 0)};r.addEventListener("mousedown",V=>{V.button===0&&(p(),s(),document.addEventListener("mouseup",()=>p(),{once:!0}),l=setTimeout(()=>{i=setInterval(()=>{s()},o)},a))})}},et=f.buildProps({size:S.useSizeProp,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),Br=f.buildProps({...et,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),tt={[q.UPDATE_MODEL_EVENT]:r=>f.isString(r)||f.isNumber(r)||f.isBoolean(r),[q.CHANGE_EVENT]:r=>f.isString(r)||f.isNumber(r)||f.isBoolean(r)},nt=Symbol("radioGroupKey"),rt=(r,t)=>{const n=e.ref(),o=e.inject(nt,void 0),a=e.computed(()=>!!o),i=e.computed({get(){return a.value?o.modelValue:r.modelValue},set(m){a.value?o.changeEvent(m):t&&t(q.UPDATE_MODEL_EVENT,m),n.value.checked=r.modelValue===r.label}}),l=S.useFormSize(e.computed(()=>o==null?void 0:o.size)),s=S.useFormDisabled(e.computed(()=>o==null?void 0:o.disabled)),p=e.ref(!1),V=e.computed(()=>s.value||a.value&&i.value!==r.label?-1:0);return{radioRef:n,isGroup:a,radioGroup:o,focus:p,size:l,disabled:s,tabIndex:V,modelValue:i}},Fr=["value","name","disabled"],$r=e.defineComponent({name:"ElRadio"}),Mr=e.defineComponent({...$r,props:Br,emits:tt,setup(r,{emit:t}){const n=r,o=f.useNamespace("radio"),{radioRef:a,radioGroup:i,focus:l,size:s,disabled:p,modelValue:V}=rt(n,t);function m(){e.nextTick(()=>t("change",V.value))}return(c,k)=>{var y;return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass([e.unref(o).b(),e.unref(o).is("disabled",e.unref(p)),e.unref(o).is("focus",e.unref(l)),e.unref(o).is("bordered",c.border),e.unref(o).is("checked",e.unref(V)===c.label),e.unref(o).m(e.unref(s))])},[e.createElementVNode("span",{class:e.normalizeClass([e.unref(o).e("input"),e.unref(o).is("disabled",e.unref(p)),e.unref(o).is("checked",e.unref(V)===c.label)])},[e.withDirectives(e.createElementVNode("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":k[0]||(k[0]=d=>e.isRef(V)?V.value=d:null),class:e.normalizeClass(e.unref(o).e("original")),value:c.label,name:c.name||((y=e.unref(i))==null?void 0:y.name),disabled:e.unref(p),type:"radio",onFocus:k[1]||(k[1]=d=>l.value=!0),onBlur:k[2]||(k[2]=d=>l.value=!1),onChange:m,onClick:k[3]||(k[3]=e.withModifiers(()=>{},["stop"]))},null,42,Fr),[[e.vModelRadio,e.unref(V)]]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).e("inner"))},null,2)],2),e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).e("label")),onKeydown:k[4]||(k[4]=e.withModifiers(()=>{},["stop"]))},[e.renderSlot(c.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(c.label),1)])],34)],2)}}});var Ar=f._export_sfc(Mr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const Pr=f.buildProps({...et,name:{type:String,default:""}}),qr=["value","name","disabled"],jr=e.defineComponent({name:"ElRadioButton"}),Dr=e.defineComponent({...jr,props:Pr,setup(r){const t=r,n=f.useNamespace("radio"),{radioRef:o,focus:a,size:i,disabled:l,modelValue:s,radioGroup:p}=rt(t),V=e.computed(()=>({backgroundColor:(p==null?void 0:p.fill)||"",borderColor:(p==null?void 0:p.fill)||"",boxShadow:p!=null&&p.fill?`-1px 0 0 0 ${p.fill}`:"",color:(p==null?void 0:p.textColor)||""}));return(m,c)=>{var k;return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass([e.unref(n).b("button"),e.unref(n).is("active",e.unref(s)===m.label),e.unref(n).is("disabled",e.unref(l)),e.unref(n).is("focus",e.unref(a)),e.unref(n).bm("button",e.unref(i))])},[e.withDirectives(e.createElementVNode("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":c[0]||(c[0]=y=>e.isRef(s)?s.value=y:null),class:e.normalizeClass(e.unref(n).be("button","original-radio")),value:m.label,type:"radio",name:m.name||((k=e.unref(p))==null?void 0:k.name),disabled:e.unref(l),onFocus:c[1]||(c[1]=y=>a.value=!0),onBlur:c[2]||(c[2]=y=>a.value=!1),onClick:c[3]||(c[3]=e.withModifiers(()=>{},["stop"]))},null,42,qr),[[e.vModelRadio,e.unref(s)]]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(n).be("button","inner")),style:e.normalizeStyle(e.unref(s)===m.label?e.unref(V):{}),onKeydown:c[4]||(c[4]=e.withModifiers(()=>{},["stop"]))},[e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(m.label),1)])],38)],2)}}});var ot=f._export_sfc(Dr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const Ur=f.buildProps({id:{type:String,default:void 0},size:S.useSizeProp,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),Rr=tt,Lr=["id","aria-label","aria-labelledby"],zr=e.defineComponent({name:"ElRadioGroup"}),Wr=e.defineComponent({...zr,props:Ur,emits:Rr,setup(r,{emit:t}){const n=r,o=f.useNamespace("radio"),a=f.useId(),i=e.ref(),{formItem:l}=S.useFormItem(),{inputId:s,isLabeledByFormItem:p}=S.useFormItemInputId(n,{formItemContext:l}),V=c=>{t(q.UPDATE_MODEL_EVENT,c),e.nextTick(()=>t("change",c))};e.onMounted(()=>{const c=i.value.querySelectorAll("[type=radio]"),k=c[0];!Array.from(c).some(y=>y.checked)&&k&&(k.tabIndex=0)});const m=e.computed(()=>n.name||a.value);return e.provide(nt,e.reactive({...e.toRefs(n),changeEvent:V,name:m})),e.watch(()=>n.modelValue,()=>{n.validateEvent&&(l==null||l.validate("change").catch(c=>f.debugWarn(c)))}),(c,k)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(s),ref_key:"radioGroupRef",ref:i,class:e.normalizeClass(e.unref(o).b("group")),role:"radiogroup","aria-label":e.unref(p)?void 0:c.label||"radio-group","aria-labelledby":e.unref(p)?e.unref(l).labelId:void 0},[e.renderSlot(c.$slots,"default")],10,Lr))}});var at=f._export_sfc(Wr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const lt=f.withInstall(Ar,{RadioButton:ot,RadioGroup:at}),it=f.withNoopInstall(at);f.withNoopInstall(ot);const Gr=f.buildProps({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:S.useSizeProp,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:r=>r===null||f.isNumber(r)||["min","max"].includes(r),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:r=>r>=0&&r===Number.parseInt(`${r}`,10)},validateEvent:{type:Boolean,default:!0}}),Kr={[q.CHANGE_EVENT]:(r,t)=>t!==r,blur:r=>r instanceof FocusEvent,focus:r=>r instanceof FocusEvent,[q.INPUT_EVENT]:r=>f.isNumber(r)||q.isNil(r),[q.UPDATE_MODEL_EVENT]:r=>f.isNumber(r)||q.isNil(r)},Yr=["aria-label","onKeydown"],Hr=["aria-label","onKeydown"],Jr=e.defineComponent({name:"ElInputNumber"}),Zr=e.defineComponent({...Jr,props:Gr,emits:Kr,setup(r,{expose:t,emit:n}){const o=r,{t:a}=f.useLocale(),i=f.useNamespace("input-number"),l=e.ref(),s=e.reactive({currentValue:o.modelValue,userInput:null}),{formItem:p}=S.useFormItem(),V=e.computed(()=>f.isNumber(o.modelValue)&&o.modelValue<=o.min),m=e.computed(()=>f.isNumber(o.modelValue)&&o.modelValue>=o.max),c=e.computed(()=>{const h=u(o.step);return f.isUndefined(o.precision)?Math.max(u(o.modelValue),h):(h>o.precision&&f.debugWarn("InputNumber","precision should not be less than the decimal places of step"),o.precision)}),k=e.computed(()=>o.controls&&o.controlsPosition==="right"),y=S.useFormSize(),d=S.useFormDisabled(),g=e.computed(()=>{if(s.userInput!==null)return s.userInput;let h=s.currentValue;if(q.isNil(h))return"";if(f.isNumber(h)){if(Number.isNaN(h))return"";f.isUndefined(o.precision)||(h=h.toFixed(o.precision))}return h}),v=(h,E)=>{if(f.isUndefined(E)&&(E=c.value),E===0)return Math.round(h);let B=String(h);const j=B.indexOf(".");if(j===-1||!B.replace(".","").split("")[j+E])return h;const te=B.length;return B.charAt(te-1)==="5"&&(B=`${B.slice(0,Math.max(0,te-1))}6`),Number.parseFloat(Number(B).toFixed(E))},u=h=>{if(q.isNil(h))return 0;const E=h.toString(),B=E.indexOf(".");let j=0;return B!==-1&&(j=E.length-B-1),j},w=(h,E=1)=>f.isNumber(h)?v(h+o.step*E):s.currentValue,_=()=>{if(o.readonly||d.value||m.value)return;const h=Number(g.value)||0,E=w(h);I(E),n(q.INPUT_EVENT,s.currentValue)},x=()=>{if(o.readonly||d.value||V.value)return;const h=Number(g.value)||0,E=w(h,-1);I(E),n(q.INPUT_EVENT,s.currentValue)},C=(h,E)=>{const{max:B,min:j,step:M,precision:J,stepStrictly:te,valueOnClear:ne}=o;B<j&&f.throwError("InputNumber","min should not be greater than max.");let W=Number(h);if(q.isNil(h)||Number.isNaN(W))return null;if(h===""){if(ne===null)return null;W=f.isString(ne)?{min:j,max:B}[ne]:ne}return te&&(W=v(Math.round(W/M)*M,J)),f.isUndefined(J)||(W=v(W,J)),(W>B||W<j)&&(W=W>B?B:j,E&&n(q.UPDATE_MODEL_EVENT,W)),W},I=(h,E=!0)=>{var B;const j=s.currentValue,M=C(h);if(!E){n(q.UPDATE_MODEL_EVENT,M);return}j!==M&&(s.userInput=null,n(q.UPDATE_MODEL_EVENT,M),n(q.CHANGE_EVENT,M,j),o.validateEvent&&((B=p==null?void 0:p.validate)==null||B.call(p,"change").catch(J=>f.debugWarn(J))),s.currentValue=M)},N=h=>{s.userInput=h;const E=h===""?null:Number(h);n(q.INPUT_EVENT,E),I(E,!1)},b=h=>{const E=h!==""?Number(h):"";(f.isNumber(E)&&!Number.isNaN(E)||h==="")&&I(E),s.userInput=null},P=()=>{var h,E;(E=(h=l.value)==null?void 0:h.focus)==null||E.call(h)},A=()=>{var h,E;(E=(h=l.value)==null?void 0:h.blur)==null||E.call(h)},G=h=>{n("focus",h)},Y=h=>{var E;n("blur",h),o.validateEvent&&((E=p==null?void 0:p.validate)==null||E.call(p,"blur").catch(B=>f.debugWarn(B)))};return e.watch(()=>o.modelValue,h=>{const E=C(s.userInput),B=C(h,!0);!f.isNumber(E)&&(!E||E!==B)&&(s.currentValue=B,s.userInput=null)},{immediate:!0}),e.onMounted(()=>{var h;const{min:E,max:B,modelValue:j}=o,M=(h=l.value)==null?void 0:h.input;if(M.setAttribute("role","spinbutton"),Number.isFinite(B)?M.setAttribute("aria-valuemax",String(B)):M.removeAttribute("aria-valuemax"),Number.isFinite(E)?M.setAttribute("aria-valuemin",String(E)):M.removeAttribute("aria-valuemin"),M.setAttribute("aria-valuenow",s.currentValue||s.currentValue===0?String(s.currentValue):""),M.setAttribute("aria-disabled",String(d.value)),!f.isNumber(j)&&j!=null){let J=Number(j);Number.isNaN(J)&&(J=null),n(q.UPDATE_MODEL_EVENT,J)}}),e.onUpdated(()=>{var h,E;const B=(h=l.value)==null?void 0:h.input;B==null||B.setAttribute("aria-valuenow",`${(E=s.currentValue)!=null?E:""}`)}),t({focus:P,blur:A}),(h,E)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(i).b(),e.unref(i).m(e.unref(y)),e.unref(i).is("disabled",e.unref(d)),e.unref(i).is("without-controls",!h.controls),e.unref(i).is("controls-right",e.unref(k))]),onDragstart:E[1]||(E[1]=e.withModifiers(()=>{},["prevent"]))},[h.controls?e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:0,role:"button","aria-label":e.unref(a)("el.inputNumber.decrease"),class:e.normalizeClass([e.unref(i).e("decrease"),e.unref(i).is("disabled",e.unref(V))]),onKeydown:e.withKeys(x,["enter"])},[e.createVNode(e.unref(S.ElIcon),null,{default:e.withCtx(()=>[e.unref(k)?(e.openBlock(),e.createBlock(e.unref(S.arrow_down_default),{key:0})):(e.openBlock(),e.createBlock(e.unref(S.minus_default),{key:1}))]),_:1})],42,Yr)),[[e.unref(Le),x]]):e.createCommentVNode("v-if",!0),h.controls?e.withDirectives((e.openBlock(),e.createElementBlock("span",{key:1,role:"button","aria-label":e.unref(a)("el.inputNumber.increase"),class:e.normalizeClass([e.unref(i).e("increase"),e.unref(i).is("disabled",e.unref(m))]),onKeydown:e.withKeys(_,["enter"])},[e.createVNode(e.unref(S.ElIcon),null,{default:e.withCtx(()=>[e.unref(k)?(e.openBlock(),e.createBlock(e.unref(S.arrow_up_default),{key:0})):(e.openBlock(),e.createBlock(e.unref(S.plus_default),{key:1}))]),_:1})],42,Hr)),[[e.unref(Le),_]]):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(X.ElInput),{id:h.id,ref_key:"input",ref:l,type:"number",step:h.step,"model-value":e.unref(g),placeholder:h.placeholder,readonly:h.readonly,disabled:e.unref(d),size:e.unref(y),max:h.max,min:h.min,name:h.name,label:h.label,"validate-event":!1,onWheel:E[0]||(E[0]=e.withModifiers(()=>{},["prevent"])),onKeydown:[e.withKeys(e.withModifiers(_,["prevent"]),["up"]),e.withKeys(e.withModifiers(x,["prevent"]),["down"])],onBlur:Y,onFocus:G,onInput:N,onChange:b},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var Qr=f._export_sfc(Zr,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const st=f.withInstall(Qr),ut=["success","info","warning","error"],K=pt.mutable({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:f.isClient?document.body:void 0}),Xr=f.buildProps({customClass:{type:String,default:K.customClass},center:{type:Boolean,default:K.center},dangerouslyUseHTMLString:{type:Boolean,default:K.dangerouslyUseHTMLString},duration:{type:Number,default:K.duration},icon:{type:S.iconPropType,default:K.icon},id:{type:String,default:K.id},message:{type:f.definePropType([String,Object,Function]),default:K.message},onClose:{type:f.definePropType(Function),required:!1},showClose:{type:Boolean,default:K.showClose},type:{type:String,values:ut,default:K.type},offset:{type:Number,default:K.offset},zIndex:{type:Number,default:K.zIndex},grouping:{type:Boolean,default:K.grouping},repeatNum:{type:Number,default:K.repeatNum}}),eo={destroy:()=>!0},Z=e.shallowReactive([]),to=r=>{const t=Z.findIndex(a=>a.id===r),n=Z[t];let o;return t>0&&(o=Z[t-1]),{current:n,prev:o}},no=r=>{const{prev:t}=to(r);return t?t.vm.exposed.bottom.value:0},ro=(r,t)=>Z.findIndex(o=>o.id===r)>0?20:t,oo=["id"],ao=["innerHTML"],lo=e.defineComponent({name:"ElMessage"}),io=e.defineComponent({...lo,props:Xr,emits:eo,setup(r,{expose:t}){const n=r,{Close:o}=S.TypeComponents,{ns:a,zIndex:i}=ie.useGlobalComponentSettings("message"),{currentZIndex:l,nextZIndex:s}=i,p=e.ref(),V=e.ref(!1),m=e.ref(0);let c;const k=e.computed(()=>n.type?n.type==="error"?"danger":n.type:"info"),y=e.computed(()=>{const N=n.type;return{[a.bm("icon",N)]:N&&S.TypeComponentsMap[N]}}),d=e.computed(()=>n.icon||S.TypeComponentsMap[n.type]||""),g=e.computed(()=>no(n.id)),v=e.computed(()=>ro(n.id,n.offset)+g.value),u=e.computed(()=>m.value+v.value),w=e.computed(()=>({top:`${v.value}px`,zIndex:l.value}));function _(){n.duration!==0&&({stop:c}=f.useTimeoutFn(()=>{C()},n.duration))}function x(){c==null||c()}function C(){V.value=!1}function I({code:N}){N===q.EVENT_CODE.esc&&C()}return e.onMounted(()=>{_(),s(),V.value=!0}),e.watch(()=>n.repeatNum,()=>{x(),_()}),ke.useEventListener(document,"keydown",I),ke.useResizeObserver(p,()=>{m.value=p.value.getBoundingClientRect().height}),t({visible:V,bottom:u,close:C}),(N,b)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(a).b("fade"),onBeforeLeave:N.onClose,onAfterLeave:b[0]||(b[0]=P=>N.$emit("destroy")),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:N.id,ref_key:"messageRef",ref:p,class:e.normalizeClass([e.unref(a).b(),{[e.unref(a).m(N.type)]:N.type&&!N.icon},e.unref(a).is("center",N.center),e.unref(a).is("closable",N.showClose),N.customClass]),style:e.normalizeStyle(e.unref(w)),role:"alert",onMouseenter:x,onMouseleave:_},[N.repeatNum>1?(e.openBlock(),e.createBlock(e.unref(Ir),{key:0,value:N.repeatNum,type:e.unref(k),class:e.normalizeClass(e.unref(a).e("badge"))},null,8,["value","type","class"])):e.createCommentVNode("v-if",!0),e.unref(d)?(e.openBlock(),e.createBlock(e.unref(S.ElIcon),{key:1,class:e.normalizeClass([e.unref(a).e("icon"),e.unref(y)])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(d))))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.renderSlot(N.$slots,"default",{},()=>[N.dangerouslyUseHTMLString?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),e.createElementVNode("p",{class:e.normalizeClass(e.unref(a).e("content")),innerHTML:N.message},null,10,ao)],2112)):(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(e.unref(a).e("content"))},e.toDisplayString(N.message),3))]),N.showClose?(e.openBlock(),e.createBlock(e.unref(S.ElIcon),{key:2,class:e.normalizeClass(e.unref(a).e("closeBtn")),onClick:e.withModifiers(C,["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(o))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],46,oo),[[e.vShow,V.value]])]),_:3},8,["name","onBeforeLeave"]))}});var so=f._export_sfc(io,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let uo=1;const ct=r=>{const t=!r||f.isString(r)||e.isVNode(r)||f.isFunction$1(r)?{message:r}:r,n={...K,...t};if(!n.appendTo)n.appendTo=document.body;else if(f.isString(n.appendTo)){let o=document.querySelector(n.appendTo);f.isElement(o)||(f.debugWarn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),o=document.body),n.appendTo=o}return n},co=r=>{const t=Z.indexOf(r);if(t===-1)return;Z.splice(t,1);const{handler:n}=r;n.close()},fo=({appendTo:r,...t},n)=>{const o=`message_${uo++}`,a=t.onClose,i=document.createElement("div"),l={...t,id:o,onClose:()=>{a==null||a(),co(m)},onDestroy:()=>{e.render(null,i)}},s=e.createVNode(so,l,f.isFunction$1(l.message)||e.isVNode(l.message)?{default:f.isFunction$1(l.message)?l.message:()=>l.message}:null);s.appContext=n||ae._context,e.render(s,i),r.appendChild(i.firstElementChild);const p=s.component,m={id:o,vnode:s,vm:p,handler:{close:()=>{p.exposed.visible.value=!1}},props:s.component.props};return m},ae=(r={},t)=>{if(!f.isClient)return{close:()=>{}};if(f.isNumber(Te.messageConfig.max)&&Z.length>=Te.messageConfig.max)return{close:()=>{}};const n=ct(r);if(n.grouping&&Z.length){const a=Z.find(({vnode:i})=>{var l;return((l=i.props)==null?void 0:l.message)===n.message});if(a)return a.props.repeatNum+=1,a.props.type=n.type,a.handler}const o=fo(n,t);return Z.push(o),o.handler};ut.forEach(r=>{ae[r]=(t={},n)=>{const o=ct(t);return ae({...o,type:r},n)}});function po(r){for(const t of Z)(!r||r===t.props.type)&&t.handler.close()}ae.closeAll=po;ae._context=null;const pe=f.withInstallFunction(ae,"$message");const ze={varietyMarket:{show:!0,options:[{label:"ETF",value:2,memo:[]},{label:"A股",value:3,memo:[4,6,12,14,15]},{label:"期货",value:4,memo:[1,2,3,5,7,8,9,10]},{label:"港股",value:5,memo:[4,6,14]},{label:"外盘",value:6,memo:[1,2,3,5,7,8,9,10]},{label:"美股",value:7,memo:[4,6,14]},{label:"期权",value:8,memo:[11]}]},commonOption:{show:!0,options:[{label:"个股",value:14},{label:"期货主连",value:1},{label:"期货主力",value:2},{label:"期货加权",value:3},{label:"常用股票指数",value:4},{label:"期货收益率指数",value:5},{label:"行业板块指数",value:6},{label:"次主力合约",value:7},{label:"期货次主连",value:8},{label:"期货板块收益率指数",value:9},{label:"期货板块加权指数",value:10},{label:"期权",value:11},{label:"价差板块指数",value:12},{label:"概念板块指数",value:15}]},customTag:{show:!0,options:[]},factorScreen:{show:!0,cycleDefault:null,cycleOptions:[],cycleShow:!0,factorOptions:[]},commonIndicator:{show:!0,options:[{key:"marketCapital",label:"总市值",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},convenientOptions:[{range:[null,10],unit:["亿","亿"],text:"≤10亿"},{range:[null,25],unit:["亿","亿"],text:"≤25亿"},{range:[null,50],unit:["亿","亿"],text:"≤50亿"},{range:[20,50],unit:["亿","亿"],text:"20亿~50亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"},{range:[200,null],unit:["亿","亿"],text:"≥200亿"},{range:[500,null],unit:["亿","亿"],text:"≥500亿"},{range:[1e3,null],unit:["亿","亿"],text:"≥1000亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"floatMarketCapital",label:"流通市值",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},convenientOptions:[{range:[null,5],unit:["亿","亿"],text:"≤5亿"},{range:[null,20],unit:["亿","亿"],text:"≤20亿"},{range:[null,50],unit:["亿","亿"],text:"≤50亿"},{range:[null,100],unit:["亿","亿"],text:"≤100亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"},{range:[200,null],unit:["亿","亿"],text:"≥200亿"},{range:[500,null],unit:["亿","亿"],text:"≥500亿"},{range:[1e3,null],unit:["亿","亿"],text:"≥1000亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"totalShares",label:"总股本",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},convenientOptions:[{range:[null,5],unit:["亿","亿"],text:"≤5亿"},{range:[null,10],unit:["亿","亿"],text:"≤10亿"},{range:[null,75],unit:["亿","亿"],text:"≤75亿"},{range:[10,75],unit:["亿","亿"],text:"10亿~75亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"freeFloatShares",label:"流通股本",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},convenientOptions:[{range:[null,5],unit:["千万","千万"],text:"≤5千万"},{range:[5,3],unit:["千万","亿"],text:"5千万~3亿"},{range:[null,5],unit:["亿","亿"],text:"≤5亿"},{range:[null,10],unit:["亿","亿"],text:"≤10亿"},{range:[8,30],unit:["亿","亿"],text:"8亿~30亿"},{range:[30,null],unit:["亿","亿"],text:"≥30亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"turnoverRate",label:"换手率(实)",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},convenientOptions:[{range:[null,1],unit:["%","%"],text:"≤1%"},{range:[1,5],unit:["%","%"],text:"1%~5%"},{range:[5,10],unit:["%","%"],text:"5%~10%"},{range:[10,null],unit:["%","%"],text:"≥10%"}],defaultUnit:["%","%"],unitOptions:["%"]},{key:"peTtm",label:"市盈率",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},convenientOptions:[{range:[0,0],unit:[],text:"亏损"},{range:[0,null],unit:[],text:"≥0"},{range:[0,20],unit:[],text:"0~20"},{range:[20,40],unit:[],text:"20~40"},{range:[40,100],unit:[],text:"40~100"},{range:[100,null],unit:[],text:"≥100"}],defaultUnit:[],unitOptions:[]},{key:"eps",label:"每股净收益",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},convenientOptions:[{range:[null,0],unit:["元","元"],text:"≤0"},{range:[0,null],unit:["元","元"],text:"≥0"},{range:[.2,null],unit:["元","元"],text:"≥0.2元"},{range:[.5,null],unit:["元","元"],text:"≥0.5元"},{range:[1,null],unit:["元","元"],text:"≥1元"},{range:[2,null],unit:["元","元"],text:"≥2元"}],defaultUnit:["元","元"],unitOptions:["元"]},{key:"st",label:"是否ST",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},type:"custom"},{key:"pb",label:"市净率",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},convenientOptions:[{range:[0,null],unit:[],text:"≥0"},{range:[0,1],unit:[],text:"0~1"},{range:[1,2],unit:[],text:"1~2"},{range:[0,3],unit:[],text:"0~3"},{range:[3,null],unit:[],text:"≥3"}],defaultUnit:[],unitOptions:[]},{key:"mnShr",label:"成交额",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},convenientOptions:[{range:[0,1],unit:["亿","亿"],text:"0~1亿"},{range:[0,5],unit:["亿","亿"],text:"0~5亿"},{range:[0,10],unit:["亿","亿"],text:"0~10亿"},{range:[10,null],unit:["亿","亿"],text:"≥10亿"},{range:[50,null],unit:["亿","亿"],text:"≥50亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"roe",label:"净资产收益率roe",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},convenientOptions:[{range:[null,0],unit:["%","%"],text:"<0"},{range:[0,null],unit:["%","%"],text:">0"},{range:[10,null],unit:["%","%"],text:">10%"},{range:[15,null],unit:["%","%"],text:">15%"},{range:[20,null],unit:["%","%"],text:">20%"},{range:[30,null],unit:["%","%"],text:">30%"}],defaultUnit:["%","%"],unitOptions:["%"]},{key:"tFeaturelncomes",label:"净利润",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},type:"custom"},{key:"dividendYield",label:"股息率",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},convenientOptions:[{range:[null,1],unit:["%","%"],text:"≤1%"},{range:[1,5],unit:["%","%"],text:"1%~5%"},{range:[5,10],unit:["%","%"],text:"5%~10%"},{range:[10,null],unit:["%","%"],text:"≥10%"}],defaultUnit:["%","%"],unitOptions:["%"]},{key:"expireDays",label:"过期天数",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["天","天"],unitOptions:["天"]},{key:"virtualRealDegree",label:"虚实度",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["%","%"],unitOptions:["%"]},{key:"yearProfitRate",label:"年化收益率",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["%","%"],unitOptions:["%"]},{key:"impliedVolatility",label:"隐含波动率",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["%","%"],unitOptions:["%"]},{key:"levelMultiplier",label:"杠杆率",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]},{key:"turnover",label:"成交额(期权)",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["万","万"],unitOptions:["万"]},{key:"volume",label:"成交量",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]},{key:"openInterest",label:"持仓量",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]},{key:"optionsCpType",label:"认沽认购",parent:{varietyMarketIds:[8],commonOptionIds:[11]},type:"custom"},{key:"optionGear",label:"期权档位",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]}]}};const mo=r=>(e.pushScopeId("data-v-a6a3b89f"),r=r(),e.popScopeId(),r),vo={class:"factor-screen"},go={class:"form-row"},yo={style:{display:"flex","align-items":"center",width:"100%",height:"24px"}},bo=mo(()=>e.createElementVNode("span",null,"~",-1)),ho={class:"dialog-footer"},_o={__name:"index",props:e.mergeModels({config:{type:Object,default:()=>{}}},{data:{default:[]},dataModifiers:{}}),emits:["update:data"],setup(r){const t=r,n=e.useModel(r,"data"),o=e.ref(!1),a=e.ref(null),i=e.ref({factorScreen:[{cycle:t.config.cycleDefault??null,factor:null,score:[null,null]}]}),l=(y,d,g)=>{!d[0]&&d[0]!==0&&!d[1]&&d[1]!==0?g(new Error("至少填写一个分数")):g()},s=()=>{n.value.length>0?i.value.factorScreen=JSON.parse(JSON.stringify(n.value)):i.value.factorScreen=[{cycle:t.config.cycleDefault??null,factor:null,score:[null,null]}],o.value=!0},p=y=>{n.value.splice(y,1)},V=()=>{i.value.factorScreen.push({cycle:t.config.cycleDefault??null,factor:null,score:[null,null]})},m=y=>{i.value.factorScreen.splice(y,1)},c=()=>{a.value&&a.value.validate(y=>{y?(n.value=JSON.parse(JSON.stringify(i.value.factorScreen)),o.value=!1):console.error("因子筛选-弹窗: 表单校验未通过")})},k=y=>{const{cycle:d,factor:g,score:v}=y;let u="";return u+=` ${t.config.cycleOptions.find(({value:w})=>w===d).label}`,u+=` ${t.config.factorOptions.find(({value:w})=>w===g).label}`,u+=` ${v[0]||v[0]===0?`${v[0]}分`:"∞"}`,u+=" ~",u+=` ${v[1]||v[1]===0?`${v[1]}分`:"∞"}`,u};return(y,d)=>{const g=X.ElTag,v=Ge.ElButton,u=X.ElOption,w=X.ElSelect,_=wr,x=st,C=S.ElIcon,I=xr,N=We.ElDialog;return e.openBlock(),e.createElementBlock("div",vo,[n.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.value,(b,P)=>(e.openBlock(),e.createBlock(g,{closable:"",type:"info",onClose:A=>p(P)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k(b)),1)]),_:2},1032,["onClose"]))),256)):e.createCommentVNode("",!0),e.createVNode(v,{class:"screen-btn",type:"primary",plain:"",size:"small",icon:e.unref(S.plus_default),onClick:s},{default:e.withCtx(()=>[e.createTextVNode("添加因子")]),_:1},8,["icon"]),e.createVNode(N,{modelValue:o.value,"onUpdate:modelValue":d[0]||(d[0]=b=>o.value=b),title:"因子筛选",width:"500","align-center":"","destroy-on-close":""},{footer:e.withCtx(()=>[e.createElementVNode("div",ho,[e.createVNode(v,{type:"primary",onClick:c},{default:e.withCtx(()=>[e.createTextVNode("确定")]),_:1})])]),default:e.withCtx(()=>[e.createVNode(I,{ref_key:"dialogFormRef",ref:a,model:i.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.factorScreen,(b,P)=>(e.openBlock(),e.createElementBlock("div",go,[r.config.cycleShow?(e.openBlock(),e.createBlock(_,{key:0,prop:"factorScreen."+P+".cycle",rules:{required:!0,message:"周期不能为空",trigger:"blur"},style:{width:"100px","margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:b.cycle,"onUpdate:modelValue":A=>b.cycle=A,placeholder:"选择周期",size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.config.cycleOptions,({label:A,value:G})=>(e.openBlock(),e.createBlock(u,{label:A,value:G,key:G},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])):e.createCommentVNode("",!0),e.createVNode(_,{prop:"factorScreen."+P+".factor",rules:{required:!0,message:"因子不能为空",trigger:"blur"},style:{width:"100px","margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:b.factor,"onUpdate:modelValue":A=>b.factor=A,placeholder:"选择因子",filterable:"",size:"small","no-match-text":"无匹配数据"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.config.factorOptions,({label:A,value:G})=>(e.openBlock(),e.createBlock(u,{label:A,value:G,key:G},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"]),e.createVNode(_,{prop:"factorScreen."+P+".score",rules:{validator:l,trigger:"blur"},style:{width:"200px","margin-right":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",yo,[e.createVNode(x,{modelValue:b.score[0],"onUpdate:modelValue":A=>b.score[0]=A,size:"small","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"]),bo,e.createVNode(x,{modelValue:b.score[1],"onUpdate:modelValue":A=>b.score[1]=A,size:"small","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])])]),_:2},1032,["prop","rules"]),e.createVNode(C,{onClick:A=>m(P)},{default:e.withCtx(()=>[e.createVNode(e.unref(S.circle_close_filled_default))]),_:2},1032,["onClick"])]))),256)),e.createVNode(v,{type:"primary",plain:"",size:"small",icon:e.unref(S.plus_default),onClick:V},{default:e.withCtx(()=>[e.createTextVNode("添加因子")]),_:1},8,["icon"])]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}},ko=Oe._export_sfc(_o,[["__scopeId","data-v-a6a3b89f"]]);const Ie=r=>(e.pushScopeId("data-v-0a691a79"),r=r(),e.popScopeId(),r),xo={key:0,class:"common-indicator"},wo={class:"indicator"},Vo=Ie(()=>e.createElementVNode("div",{class:"title"},[e.createElementVNode("span",null,"常用指标: "),e.createElementVNode("span",null,"不限")],-1)),No={class:"options"},Eo=["onClick"],Co={class:"tags"},Oo=["onClick"],Io={key:0,class:"convenient-option-box"},So={class:"out-box"},To=Ie(()=>e.createElementVNode("span",null,"自定义: ",-1)),Bo={key:0},Fo={key:0},$o={key:0},Mo={key:1},Ao={class:"tFeaturelncomes-option-box"},Po={class:"tFeaturelncomes-out-box"},qo=Ie(()=>e.createElementVNode("span",null,"自定义: ",-1)),jo={key:2},Do={class:"dialog-footer"},Uo={__name:"index",props:e.mergeModels({config:{type:Object,default:()=>{}},varietyMarket:{type:Number,default:()=>null},commonOption:{type:Array,default:()=>[]}},{data:{default:[]},dataModifiers:{}}),emits:["update:data"],setup(r){const t=r,n=e.useModel(r,"data"),o=e.computed(()=>{let y=[];return t.varietyMarket===null&&!t.commonOption.length?y=t.config.options:(y=t.config.options,t.varietyMarket&&(y=y.filter(({parent:d})=>d.varietyMarketIds.includes(t.varietyMarket))),t.commonOption.length&&(y=y.filter(({parent:d})=>{const{commonOptionIds:g}=d;return[...new Set([...g,...t.commonOption])].length!==[...g,...t.commonOption].length}))),y});e.watch(()=>o.value,()=>{n.value.length&&(n.value=n.value.filter(({key:y})=>o.value.find(d=>d.key===y)))});const a=e.ref(!1),i=e.ref({}),l=e.ref({}),s=y=>{i.value=y;const d={label:y.label,key:y.key,type:y.type};y.type===void 0?l.value={...d,range:[null,null],unit:y.defaultUnit.length?[...y.defaultUnit]:[null,null]}:y.key==="st"?l.value={...d,st:null}:y.key==="tFeaturelncomes"?l.value={...d,rule:1,withFewYears:null,yearsCount:null,netProfit:null}:y.key==="optionsCpType"&&(l.value={...d,optionsCpType:null}),a.value=!0},p=y=>{l.value.range=[...y.range],l.value.unit=[...y.unit]},V=y=>{switch(y){case"≤0":Object.assign(l.value,{rule:2,withFewYears:1,yearsCount:1,netProfit:0});break;case"≥0":Object.assign(l.value,{rule:1,withFewYears:1,yearsCount:1,netProfit:0});break;case"五年内有四年以上盈利超过5千万":Object.assign(l.value,{rule:1,withFewYears:5,yearsCount:4,netProfit:.5});break;case"≥10亿":Object.assign(l.value,{rule:1,withFewYears:1,yearsCount:1,netProfit:10});break;case"≥20亿":Object.assign(l.value,{rule:1,withFewYears:1,yearsCount:1,netProfit:20});break}},m=()=>{if(l.value.type===void 0){const{label:d,range:g,unit:v}=l.value;if(["",null].includes(g[0])&&["",null].includes(g[1]))return pe.warning("格式错误: 请至少填写一个值");!["",null].includes(g[0])&&!["",null].includes(g[1])?l.value.tagText=`${d}: ${g[0]}${v[0]??""} ~ ${g[1]}${v[1]??""}`:["",null].includes(g[0])?l.value.tagText=`${d}: ≤${g[1]}${v[1]??""}`:l.value.tagText=`${d}: ≥${g[0]}${v[0]??""}`}else if(l.value.key==="st"){const{label:d,st:g}=l.value;if(g===null)return pe.warning("格式错误: 请至少选择一个值");l.value.tagText=`${d}: ${g?"是":"否"}`}else if(l.value.key==="tFeaturelncomes"){const{label:d,rule:g,withFewYears:v,yearsCount:u,netProfit:w}=l.value;if(["",null].includes(v)||["",null].includes(u)||["",null].includes(w))return pe.warning("格式错误: 请填写完整");l.value.tagText=`${d}: ${v}年内${u}年以上盈利${g===1?"超":"跌"}过${w}亿`}else if(l.value.key==="optionsCpType"){const{label:d,optionsCpType:g}=l.value;if(g===null)return pe.warning("格式错误: 请至少选择一个值");l.value.tagText=`${d}: ${g===1?"看涨":"看跌"}`}const y=n.value.findIndex(({key:d})=>d===l.value.key);y===-1?n.value.push(l.value):n.value.splice(y,1,l.value),a.value=!1},c=y=>{n.value.splice(y,1)},k=y=>{i.value=o.value.find(({key:d})=>d===y.key),l.value=y,a.value=!0};return(y,d)=>{const g=X.ElTag,v=Ge.ElButton,u=X.ElOption,w=X.ElSelect,_=X.ElInput,x=lt,C=it,I=st,N=We.ElDialog;return r.config.show&&o.value.length?(e.openBlock(),e.createElementBlock("div",xo,[e.createElementVNode("div",wo,[Vo,e.createElementVNode("div",No,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,b=>(e.openBlock(),e.createElementBlock("span",{key:b.key,onClick:P=>s(b)},e.toDisplayString(b.label),9,Eo))),128))])]),e.createElementVNode("div",Co,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(b,P)=>(e.openBlock(),e.createBlock(g,{closable:"",type:"info",onClose:A=>c(P)},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(b.tagText),1),e.createElementVNode("span",{class:"edit",onClick:A=>k(b)},"编辑",8,Oo)]),_:2},1032,["onClose"]))),256))]),e.createVNode(N,{modelValue:a.value,"onUpdate:modelValue":d[14]||(d[14]=b=>a.value=b),title:i.value.label,width:"600","align-center":"","destroy-on-close":""},{footer:e.withCtx(()=>[e.createElementVNode("div",Do,[e.createVNode(v,{type:"primary",onClick:m},{default:e.withCtx(()=>[e.createTextVNode("确定")]),_:1})])]),default:e.withCtx(()=>[i.value.type===void 0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.value.convenientOptions.length?(e.openBlock(),e.createElementBlock("div",Io,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.convenientOptions,b=>(e.openBlock(),e.createBlock(v,{key:b.text,onClick:P=>p(b)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.text),1)]),_:2},1032,["onClick"]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",So,[To,e.createVNode(_,{modelValue:l.value.range[0],"onUpdate:modelValue":d[1]||(d[1]=b=>l.value.range[0]=b),style:{flex:"1"}},e.createSlots({_:2},[i.value.unitOptions.length?{name:"append",fn:e.withCtx(()=>[i.value.unitOptions.length===1?(e.openBlock(),e.createElementBlock("span",Bo,e.toDisplayString(l.value.unit[0]),1)):(e.openBlock(),e.createBlock(w,{key:1,modelValue:l.value.unit[0],"onUpdate:modelValue":d[0]||(d[0]=b=>l.value.unit[0]=b),style:{width:"72px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.unitOptions,b=>(e.openBlock(),e.createBlock(u,{label:b,value:b},null,8,["label","value"]))),256))]),_:1},8,["modelValue"]))]),key:"0"}:void 0]),1032,["modelValue"]),e.createTextVNode(" ~ "),e.createVNode(_,{modelValue:l.value.range[1],"onUpdate:modelValue":d[3]||(d[3]=b=>l.value.range[1]=b),style:{flex:"1"}},e.createSlots({_:2},[i.value.unitOptions.length?{name:"append",fn:e.withCtx(()=>[i.value.unitOptions.length===1?(e.openBlock(),e.createElementBlock("span",Fo,e.toDisplayString(l.value.unit[1]),1)):(e.openBlock(),e.createBlock(w,{key:1,modelValue:l.value.unit[1],"onUpdate:modelValue":d[2]||(d[2]=b=>l.value.unit[1]=b),style:{width:"72px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.unitOptions,b=>(e.openBlock(),e.createBlock(u,{label:b,value:b},null,8,["label","value"]))),256))]),_:1},8,["modelValue"]))]),key:"0"}:void 0]),1032,["modelValue"])])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[i.value.key==="st"?(e.openBlock(),e.createElementBlock("div",$o,[e.createVNode(C,{modelValue:l.value.st,"onUpdate:modelValue":d[4]||(d[4]=b=>l.value.st=b)},{default:e.withCtx(()=>[e.createVNode(x,{label:1},{default:e.withCtx(()=>[e.createTextVNode("是")]),_:1}),e.createVNode(x,{label:0},{default:e.withCtx(()=>[e.createTextVNode("否")]),_:1})]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),i.value.key==="tFeaturelncomes"?(e.openBlock(),e.createElementBlock("div",Mo,[e.createElementVNode("div",Ao,[e.createVNode(v,{onClick:d[5]||(d[5]=b=>V("≤0"))},{default:e.withCtx(()=>[e.createTextVNode("≤0")]),_:1}),e.createVNode(v,{onClick:d[6]||(d[6]=b=>V("≥0"))},{default:e.withCtx(()=>[e.createTextVNode("≥0")]),_:1}),e.createVNode(v,{onClick:d[7]||(d[7]=b=>V("五年内有四年以上盈利超过5千万"))},{default:e.withCtx(()=>[e.createTextVNode("五年内有四年以上盈利超过5千万")]),_:1}),e.createVNode(v,{onClick:d[8]||(d[8]=b=>V("≥10亿"))},{default:e.withCtx(()=>[e.createTextVNode("≥10亿")]),_:1}),e.createVNode(v,{onClick:d[9]||(d[9]=b=>V("≥20亿"))},{default:e.withCtx(()=>[e.createTextVNode("≥20亿")]),_:1})]),e.createElementVNode("div",Po,[qo,e.createElementVNode("div",null,[e.createVNode(I,{modelValue:l.value.withFewYears,"onUpdate:modelValue":d[10]||(d[10]=b=>l.value.withFewYears=b),"controls-position":"right"},null,8,["modelValue"]),e.createTextVNode(" 年内 "),e.createVNode(I,{modelValue:l.value.yearsCount,"onUpdate:modelValue":d[11]||(d[11]=b=>l.value.yearsCount=b),"controls-position":"right"},null,8,["modelValue"]),e.createTextVNode(" 年以上盈利"+e.toDisplayString(l.value.rule===1?"超":"跌")+"过 ",1),e.createVNode(I,{modelValue:l.value.netProfit,"onUpdate:modelValue":d[12]||(d[12]=b=>l.value.netProfit=b),"controls-position":"right"},null,8,["modelValue"]),e.createTextVNode(" 亿 ")])])])):e.createCommentVNode("",!0),i.value.key==="optionsCpType"?(e.openBlock(),e.createElementBlock("div",jo,[e.createVNode(C,{modelValue:l.value.optionsCpType,"onUpdate:modelValue":d[13]||(d[13]=b=>l.value.optionsCpType=b)},{default:e.withCtx(()=>[e.createVNode(x,{label:1},{default:e.withCtx(()=>[e.createTextVNode("看涨")]),_:1}),e.createVNode(x,{label:2},{default:e.withCtx(()=>[e.createTextVNode("看跌")]),_:1})]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0)],64))]),_:1},8,["modelValue","title"])])):e.createCommentVNode("",!0)}}},Ro=Oe._export_sfc(Uo,[["__scopeId","data-v-0a691a79"]]);const ye=r=>(e.pushScopeId("data-v-6e54eaf3"),r=r(),e.popScopeId(),r),Lo={class:"variety-search"},zo={key:0,class:"variety-search-row"},Wo={class:"title"},Go=ye(()=>e.createElementVNode("span",null,"品种市场: ",-1)),Ko={key:1,class:"variety-search-row"},Yo={class:"title"},Ho=ye(()=>e.createElementVNode("span",null,"常用选项: ",-1)),Jo={key:2,class:"variety-search-row"},Zo={class:"title"},Qo=ye(()=>e.createElementVNode("span",null,"自定标签: ",-1)),Xo={key:3,class:"variety-search-row"},ea={class:"title"},ta=ye(()=>e.createElementVNode("span",null,"因子筛选: ",-1)),na={__name:"index",props:e.mergeModels({config:{type:Object,default:{}}},{searchData:{default:{varietyMarket:null,commonOption:[],customTag:[],factorScreen:[],commonIndicator:[]}},searchDataModifiers:{}}),emits:["update:searchData"],setup(r,{expose:t}){const n=r,o=e.useModel(r,"searchData"),a=e.computed(()=>{const m={};return Object.keys(ze).forEach(c=>{const k=ze[c],y=n.config[c]??{},d={...k,...y};m[c]=d}),m}),i=e.computed(()=>a.value.varietyMarket.options),l=e.computed(()=>{const{varietyMarket:m}=o.value;if(m){const c=i.value.find(({value:k})=>k===m).memo;return a.value.commonOption.options.filter(({value:k})=>c.includes(k))}else return a.value.commonOption.options});e.watch(()=>l.value,m=>{o.value.commonOption.length&&(o.value.commonOption=o.value.commonOption.filter(c=>m.find(({value:k})=>k===c)))});const s=e.computed(()=>a.value.customTag.options),p=m=>{["commonOption","customTag","factorScreen","commonIndicator"].includes(m)?o.value[m]=[]:o.value[m]=null};return t({formatData:m=>{const c={};m.varietyMarket&&(c.exchangeId=String(m.varietyMarket)),m.commonOption&&m.commonOption.length&&(c.optionId=m.commonOption.join(",")),m.customTag&&m.customTag.length&&(c.tagIds=m.customTag),m.factorScreen&&m.factorScreen.length&&(c.tbFeatureFactorScores=m.factorScreen.map(u=>({freqId:u.cycle,factorId:u.factor,startScore:u.score[0],endScore:u.score[1]})));const k=["expireDays","virtualRealDegree","yearProfitRate","impliedVolatility","levelMultiplier","turnover","volume","openInterest","optionsCpType","optionGear"],y=m.commonIndicator.reduce((u,w)=>{const{key:_,type:x,range:C,unit:I}=w;if(_==="dividendYield"){let[N,b]=C;["",null].includes(N)||(N=N/100),["",null].includes(b)||(b=b/100),u.push({column:w.key,start:N,end:b})}else if(x===void 0&&!k.includes(_)){let[N,b]=C;if(!["",null].includes(N))switch(I[0]){case"亿":N=N*1e8;break;case"千万":N=N*1e7;break;default:N=N;break}if(!["",null].includes(b))switch(I[1]){case"亿":b=b*1e8;break;case"千万":b=b*1e7;break;default:b=b;break}u.push({column:w.key,start:N,end:b})}return u},[]);y.length&&(c.query=y);const d=m.commonIndicator.find(({key:u})=>u==="st");d&&(c.st=d.st);const g=m.commonIndicator.find(({key:u})=>u==="tFeaturelncomes");g&&(c.netProfitQueryDto={...g,netProfit:g.netProfit*1e8});const v={};return m.commonIndicator.forEach(u=>{const{key:w}=u;switch(w){case"expireDays":["",null].includes(u.range[0])||(v.minExpireDays=u.range[0]),["",null].includes(u.range[1])||(v.maxExpireDays=u.range[1]);break;case"virtualRealDegree":["",null].includes(u.range[0])||(v.minVirtualRealDegree=u.range[0]/100),["",null].includes(u.range[1])||(v.maxVirtualRealDegree=u.range[1]/100);break;case"yearProfitRate":["",null].includes(u.range[0])||(v.minYearProfitRate=u.range[0]/100),["",null].includes(u.range[1])||(v.maxYearProfitRate=u.range[1]/100);break;case"impliedVolatility":["",null].includes(u.range[0])||(v.minImpliedVolatility=u.range[0]/100),["",null].includes(u.range[1])||(v.maxImpliedVolatility=u.range[1]/100);break;case"levelMultiplier":["",null].includes(u.range[0])||(v.minLevelMultiplier=u.range[0]),["",null].includes(u.range[1])||(v.maxLevelMultiplier=u.range[1]);break;case"turnover":["",null].includes(u.range[0])||(v.minTurnover=u.range[0]*1e4),["",null].includes(u.range[1])||(v.maxTurnover=u.range[1]*1e4);break;case"volume":["",null].includes(u.range[0])||(v.minVolume=u.range[0]),["",null].includes(u.range[1])||(v.maxVolume=u.range[1]);break;case"openInterest":["",null].includes(u.range[0])||(v.minOpenInterest=u.range[0]),["",null].includes(u.range[1])||(v.maxOpenInterest=u.range[1]);break;case"optionsCpType":v.optionsCpType=u.optionsCpType;break;case"optionGear":["",null].includes(u.range[0])||(v.minOptionGear=u.range[0]),["",null].includes(u.range[1])||(v.maxOptionGear=u.range[1]);break}}),Object.keys(v).length&&(c.searchOptionDto=v),c}}),(m,c)=>{var v,u,w,_;const k=lt,y=it,d=z.ElCheckbox,g=z.ElCheckboxGroup;return e.openBlock(),e.createElementBlock("div",Lo,[(v=a.value.varietyMarket)!=null&&v.show?(e.openBlock(),e.createElementBlock("div",zo,[e.createElementVNode("div",Wo,[Go,e.createElementVNode("span",{onClick:c[0]||(c[0]=x=>p("varietyMarket"))},"不限")]),e.createVNode(y,{modelValue:o.value.varietyMarket,"onUpdate:modelValue":c[1]||(c[1]=x=>o.value.varietyMarket=x),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,({label:x,value:C})=>(e.openBlock(),e.createBlock(k,{label:C,key:C},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),(u=a.value.commonOption)!=null&&u.show&&l.value.length?(e.openBlock(),e.createElementBlock("div",Ko,[e.createElementVNode("div",Yo,[Ho,e.createElementVNode("span",{onClick:c[2]||(c[2]=x=>p("commonOption"))},"不限")]),e.createVNode(g,{modelValue:o.value.commonOption,"onUpdate:modelValue":c[3]||(c[3]=x=>o.value.commonOption=x),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,({label:x,value:C})=>(e.openBlock(),e.createBlock(d,{label:C,key:C},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),(w=a.value.customTag)!=null&&w.show&&s.value.length?(e.openBlock(),e.createElementBlock("div",Jo,[e.createElementVNode("div",Zo,[Qo,e.createElementVNode("span",{onClick:c[4]||(c[4]=x=>p("customTag"))},"不限")]),e.createVNode(g,{modelValue:o.value.customTag,"onUpdate:modelValue":c[5]||(c[5]=x=>o.value.customTag=x),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,({label:x,value:C})=>(e.openBlock(),e.createBlock(d,{label:C,key:C},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),(_=a.value.factorScreen)!=null&&_.show?(e.openBlock(),e.createElementBlock("div",Xo,[e.createElementVNode("div",ea,[ta,e.createElementVNode("span",{onClick:c[6]||(c[6]=x=>p("factorScreen"))},"不限")]),e.createVNode(ko,{data:o.value.factorScreen,"onUpdate:data":c[7]||(c[7]=x=>o.value.factorScreen=x),config:a.value.factorScreen},null,8,["data","config"])])):e.createCommentVNode("",!0),e.createVNode(Ro,{data:o.value.commonIndicator,"onUpdate:data":c[8]||(c[8]=x=>o.value.commonIndicator=x),varietyMarket:o.value.varietyMarket,commonOption:o.value.commonOption,config:a.value.commonIndicator},null,8,["data","varietyMarket","commonOption","config"])])}}},ra=Oe._export_sfc(na,[["__scopeId","data-v-6e54eaf3"]]),oa={install(r){r.component("st-varietySearch",ra)}};module.exports=oa;
@@ -2074,7 +2074,7 @@ const Wt = {
2074
2074
  show: !0,
2075
2075
  options: [
2076
2076
  { label: "ETF", value: 2, memo: [] },
2077
- { label: "A股", value: 3, memo: [4, 6, 12, 13, 14, 15] },
2077
+ { label: "A股", value: 3, memo: [4, 6, 12, 14, 15] },
2078
2078
  { label: "期货", value: 4, memo: [1, 2, 3, 5, 7, 8, 9, 10] },
2079
2079
  { label: "港股", value: 5, memo: [4, 6, 14] },
2080
2080
  { label: "外盘", value: 6, memo: [1, 2, 3, 5, 7, 8, 9, 10] },
@@ -2086,20 +2086,19 @@ const Wt = {
2086
2086
  commonOption: {
2087
2087
  show: !0,
2088
2088
  options: [
2089
+ { label: "个股", value: 14 },
2089
2090
  { label: "期货主连", value: 1 },
2090
2091
  { label: "期货主力", value: 2 },
2091
2092
  { label: "期货加权", value: 3 },
2092
2093
  { label: "常用股票指数", value: 4 },
2093
2094
  { label: "期货收益率指数", value: 5 },
2094
- { label: "股票板块指数", value: 6 },
2095
+ { label: "行业板块指数", value: 6 },
2095
2096
  { label: "次主力合约", value: 7 },
2096
2097
  { label: "期货次主连", value: 8 },
2097
2098
  { label: "期货板块收益率指数", value: 9 },
2098
2099
  { label: "期货板块加权指数", value: 10 },
2099
2100
  { label: "期权", value: 11 },
2100
- { label: "板块价差指数", value: 12 },
2101
- { label: "行业板块指数", value: 13 },
2102
- { label: "个股", value: 14 },
2101
+ { label: "价差板块指数", value: 12 },
2103
2102
  { label: "概念板块指数", value: 15 }
2104
2103
  ]
2105
2104
  },
@@ -2126,7 +2125,7 @@ const Wt = {
2126
2125
  label: "总市值",
2127
2126
  parent: {
2128
2127
  varietyMarketIds: [3, 5, 7],
2129
- commonOptionIds: [4, 6, 12, 13, 14, 15]
2128
+ commonOptionIds: [4, 6, 12, 14, 15]
2130
2129
  },
2131
2130
  // 便捷选项
2132
2131
  convenientOptions: [
@@ -2150,7 +2149,7 @@ const Wt = {
2150
2149
  label: "流通市值",
2151
2150
  parent: {
2152
2151
  varietyMarketIds: [3, 5, 7],
2153
- commonOptionIds: [4, 6, 12, 13, 14, 15]
2152
+ commonOptionIds: [4, 6, 12, 14, 15]
2154
2153
  },
2155
2154
  // 便捷选项
2156
2155
  convenientOptions: [
@@ -2174,7 +2173,7 @@ const Wt = {
2174
2173
  label: "总股本",
2175
2174
  parent: {
2176
2175
  varietyMarketIds: [3, 5, 7],
2177
- commonOptionIds: [4, 6, 12, 13, 14, 15]
2176
+ commonOptionIds: [4, 6, 12, 14, 15]
2178
2177
  },
2179
2178
  // 便捷选项
2180
2179
  convenientOptions: [
@@ -2195,7 +2194,7 @@ const Wt = {
2195
2194
  label: "流通股本",
2196
2195
  parent: {
2197
2196
  varietyMarketIds: [3, 5, 7],
2198
- commonOptionIds: [4, 6, 12, 13, 14, 15]
2197
+ commonOptionIds: [4, 6, 12, 14, 15]
2199
2198
  },
2200
2199
  // 便捷选项
2201
2200
  convenientOptions: [
@@ -2217,7 +2216,7 @@ const Wt = {
2217
2216
  label: "换手率(实)",
2218
2217
  parent: {
2219
2218
  varietyMarketIds: [3, 5, 7],
2220
- commonOptionIds: [4, 6, 12, 13, 14, 15]
2219
+ commonOptionIds: [4, 6, 12, 14, 15]
2221
2220
  },
2222
2221
  // 便捷选项
2223
2222
  convenientOptions: [
@@ -2237,7 +2236,7 @@ const Wt = {
2237
2236
  label: "市盈率",
2238
2237
  parent: {
2239
2238
  varietyMarketIds: [3, 5, 7],
2240
- commonOptionIds: [4, 6, 12, 13, 14, 15]
2239
+ commonOptionIds: [4, 6, 12, 14, 15]
2241
2240
  },
2242
2241
  // 便捷选项
2243
2242
  convenientOptions: [
@@ -2259,7 +2258,7 @@ const Wt = {
2259
2258
  label: "每股净收益",
2260
2259
  parent: {
2261
2260
  varietyMarketIds: [3, 5, 7],
2262
- commonOptionIds: [4, 6, 12, 13, 14, 15]
2261
+ commonOptionIds: [4, 6, 12, 14, 15]
2263
2262
  },
2264
2263
  // 便捷选项
2265
2264
  convenientOptions: [
@@ -2281,7 +2280,7 @@ const Wt = {
2281
2280
  label: "是否ST",
2282
2281
  parent: {
2283
2282
  varietyMarketIds: [3, 5, 7],
2284
- commonOptionIds: [4, 6, 12, 13, 14, 15]
2283
+ commonOptionIds: [4, 6, 12, 14, 15]
2285
2284
  },
2286
2285
  type: "custom"
2287
2286
  },
@@ -2291,7 +2290,7 @@ const Wt = {
2291
2290
  label: "市净率",
2292
2291
  parent: {
2293
2292
  varietyMarketIds: [3, 5, 7],
2294
- commonOptionIds: [4, 6, 12, 13, 14, 15]
2293
+ commonOptionIds: [4, 6, 12, 14, 15]
2295
2294
  },
2296
2295
  // 便捷选项
2297
2296
  convenientOptions: [
@@ -2312,7 +2311,7 @@ const Wt = {
2312
2311
  label: "成交额",
2313
2312
  parent: {
2314
2313
  varietyMarketIds: [3, 5, 7],
2315
- commonOptionIds: [4, 6, 12, 13, 14, 15]
2314
+ commonOptionIds: [4, 6, 12, 14, 15]
2316
2315
  },
2317
2316
  // 便捷选项
2318
2317
  convenientOptions: [
@@ -2334,7 +2333,7 @@ const Wt = {
2334
2333
  label: "净资产收益率roe",
2335
2334
  parent: {
2336
2335
  varietyMarketIds: [3, 5, 7],
2337
- commonOptionIds: [4, 6, 12, 13, 14, 15]
2336
+ commonOptionIds: [4, 6, 12, 14, 15]
2338
2337
  },
2339
2338
  // 便捷选项
2340
2339
  convenientOptions: [
@@ -2356,7 +2355,7 @@ const Wt = {
2356
2355
  label: "净利润",
2357
2356
  parent: {
2358
2357
  varietyMarketIds: [3, 5, 7],
2359
- commonOptionIds: [4, 6, 12, 13, 14, 15]
2358
+ commonOptionIds: [4, 6, 12, 14, 15]
2360
2359
  },
2361
2360
  type: "custom"
2362
2361
  },
@@ -2366,7 +2365,7 @@ const Wt = {
2366
2365
  label: "股息率",
2367
2366
  parent: {
2368
2367
  varietyMarketIds: [3, 5, 7],
2369
- commonOptionIds: [4, 6, 12, 13, 14, 15]
2368
+ commonOptionIds: [4, 6, 12, 14, 15]
2370
2369
  },
2371
2370
  // 便捷选项
2372
2371
  convenientOptions: [
package/lib/bundle.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as m } from "./index-d4fc9911.js";
1
+ import { i as m } from "./index-12553849.js";
2
2
  import "vue";
3
3
  import "echarts";
4
4
  export {
@@ -793,7 +793,7 @@ ${e.toString()}`}}class Ab{constructor(e=new cp,t=!1,n,r=Jze){var o;this._servic
793
793
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
794
794
  *-----------------------------------------------------------------------------*/pje({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Promise.resolve().then(()=>T$e)});const bje=c.defineComponent({__name:"index",props:{defaultValue:{type:String,default:""},language:{type:String,default:"python"},theme:{type:String,default:"vs-dark"}},emits:["change"],setup(i,{expose:e,emit:t}){let n;const r=t,o=i,s=c.ref(null);return c.onMounted(()=>{n=vG.create(s.value,{value:o.defaultValue,language:o.language,theme:o.theme}),n.onDidChangeModelContent(a=>{r("change",n.getValue())})}),c.onUnmounted(()=>{n&&n.dispose()}),e({setValue:a=>{n.setValue(a)},getValue:()=>n.getValue()}),(a,l)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"editorContainer",ref:s,style:{width:"100%",height:"100%"}},null,512))}}),_je={install(i){i.component("st-monacoEditor",bje)}},$3t="",vje=c.defineComponent({__name:"index",props:{pageData:{type:Object,default:()=>({pageNum:1,pageSize:10})},total:{type:Number,default:0},pageSizes:{type:Array,default:()=>[10,20,30,50]},background:{type:Boolean,default:!0},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"}},emits:["update:pageData","change"],setup(i,{emit:e}){const t=e,n=i,r=c.computed({get(){return n.pageData.pageNum},set(a){t("update:pageData",{...n.pageData,pageNum:a})}}),o=c.computed({get(){return n.pageData.pageSize},set(a){t("update:pageData",{...n.pageData,pageSize:a})}}),s=()=>{t("change",n.pageData)};return(a,l)=>{const u=cge,d=ty;return c.openBlock(),c.createBlock(d,{locale:c.unref(mw)},{default:c.withCtx(()=>[c.withDirectives(c.createVNode(u,c.mergeProps({class:"st-pagination",currentPage:r.value,"onUpdate:currentPage":l[0]||(l[0]=h=>r.value=h),"page-size":o.value,"onUpdate:pageSize":l[1]||(l[1]=h=>o.value=h),total:i.total,background:i.background,"page-sizes":i.pageSizes,layout:i.layout},a.$attrs,{onSizeChange:s,onCurrentChange:s}),null,16,["currentPage","page-size","total","background","page-sizes","layout"]),[[c.vShow,i.total]])]),_:1},8,["locale"])}}}),U3t="",yje=lo(vje,[["__scopeId","data-v-61b7745b"]]),wje={install(i){i.component("st-pagination",yje)}},Cje=c.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]},config:{type:Object,default:()=>({})},style:{type:Object,default:()=>[]}},setup(i){const{add:e,multiply:t,divide:n,round:r}=h0.stMath,o={colorList:["#FAF277","#FFC467","#FFA872","#FB962E","#FF772C","#FF577C","#F679D7","#9B4A9B","#9169D7","#9192D0","#655AC7","#4084DE","#0074DA","#0098DF","#00BBE9","#00D2DE","#73E2E6","#00CBB1","#00B488","#48D09A","#93D984","#C9EC7C","#D4E300","#E2BA2B","#A18300","#BC6F3F","#A84E12","#7C462E","#713532","#962B23"],legendColor:"#000",inactiveColor:"#ccc"},s={tooltipFormatter:null};let a,l;const u=i,d=c.ref(),h=c.computed(()=>({...o,...u.style})),m=c.computed(()=>({...s,...u.config}));c.watch(()=>[u.data,u.style],()=>{v()},{deep:!0}),c.onMounted(()=>{a=yl.init(d.value),v();let w=!0;l=new ResizeObserver(()=>{if(w){w=null;return}a.resize()}),l.observe(d.value)}),c.onUnmounted(()=>{a.dispose(),l.disconnect(),l=null});const v=()=>{const w=u.data.reduce((C,A)=>e(C,A.value),0);a.setOption({color:h.value.colorList,tooltip:{trigger:"item",confine:!0,formatter:m.value.tooltipFormatter},legend:{orient:"vertical",right:0,bottom:0,itemWidth:28,itemHeight:18,textStyle:{fontSize:12,color:h.value.legendColor},inactiveColor:h.value.inactiveColor,formatter:C=>{const A=u.data.find(T=>T.name===C);return`${C}
795
795
  ${A.label||A.value}(${typeof A.percent=="number"?A.percent:r(t(n(A.value,w),100))}%)`}},series:[{type:"pie",width:"150%",height:"150%",center:[`${100/3}%`,`${100/3}%`],radius:"50%",data:u.data.map(C=>({...C,itemStyle:{color:C.color}})),label:{show:!0,position:"inside",formatter:C=>{var T;const A=((T=C==null?void 0:C.data)==null?void 0:T.label)||C.value;return A===0?"":A},fontSize:14,color:"#000"},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]})};return(w,C)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"chartRef",ref:d,class:"chart"},null,512))}}),q3t="",Sje=lo(Cje,[["__scopeId","data-v-964eca86"]]),xje={install(i){i.component("st-pie",Sje)}},K3t="",G3t="",Y3t="",Z3t="",Q3t="",X3t="",J3t="",SG=c.defineComponent({__name:"index",props:{option:{type:Object,required:!0},scope:{type:Object,required:!0},showMargin:{type:Boolean,default:()=>!1}},setup(i){const e=i,t=c.computed(()=>{const{option:n,scope:r}=e;return typeof n.show=="function"?n.show(r.row,r.$index):n.show!==!1});return(n,r)=>{const o=i0,s=pge;return t.value?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[i.option.needCheck?(c.openBlock(),c.createBlock(s,{key:0,title:i.option.needCheck.title,onConfirm:r[0]||(r[0]=a=>i.option.onClick(i.scope.row,i.scope.$index))},{reference:c.withCtx(()=>[c.createVNode(o,{type:i.option.type,disabled:typeof i.option.disabled=="function"?i.option.disabled(i.scope.row,i.scope.$index):i.option.disabled,style:c.normalizeStyle({marginTop:i.showMargin?"10px":0})},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(typeof i.option.text=="function"?i.option.text(i.scope.row,i.scope.$index):i.option.text),1)]),_:1},8,["type","disabled","style"])]),_:1},8,["title"])):(c.openBlock(),c.createBlock(o,{key:1,type:i.option.type,disabled:typeof i.option.disabled=="function"?i.option.disabled(i.scope.row,i.scope.$index):i.option.disabled,style:c.normalizeStyle({marginTop:i.showMargin?"10px":0}),onClick:r[1]||(r[1]=a=>i.option.onClick(i.scope.row,i.scope.$index))},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(typeof i.option.text=="function"?i.option.text(i.scope.row,i.scope.$index):i.option.text),1)]),_:1},8,["type","disabled","style"]))],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[],64))}}}),Dje=c.defineComponent({__name:"index",props:{option:{type:Object,required:!0},scope:{type:Object,required:!0}},setup(i){return(e,t)=>(c.openBlock(),c.createElementBlock("div",{style:c.normalizeStyle(typeof i.option.style=="function"?i.option.style(i.scope.row[i.option.prop],i.scope.row):i.option.style)},c.toDisplayString(typeof i.option.formatter=="function"?i.option.formatter(i.scope.row[i.option.prop],i.scope.row):i.scope.row[i.option.prop]),5))}}),Nje=c.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]},column:{type:Array,default:()=>[]},loading:{type:Boolean,default:()=>!1},emptyText:{type:String,default:()=>""}},emits:["sortChange"],setup(i,{emit:e}){const t=e,n=i,r=c.computed(()=>n.column.filter(a=>a.show!==!1)),o=a=>{t("sortChange",a)},s=(a,l)=>a.filter(u=>typeof u.show=="function"&&u.show(l.row,l.$index)===!1?!1:u.show!==!1);return(a,l)=>{const u=kr,d=Dge,h=Yme,m=Gme,v=ty,w=zpe;return c.openBlock(),c.createBlock(v,{locale:c.unref(mw)},{default:c.withCtx(()=>[c.withDirectives((c.openBlock(),c.createBlock(m,{data:i.data,"empty-text":i.emptyText,stripe:"",style:{width:"100%"},onSortChange:o},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(r.value,C=>(c.openBlock(),c.createBlock(h,{key:C.prop,prop:C.prop,label:C.label,sortable:C.sortable,width:C.width,"min-width":C.minWidth},c.createSlots({_:2},[C.type==="formatter"?{name:"default",fn:c.withCtx(A=>[c.createVNode(Dje,{option:C,scope:A},null,8,["option","scope"])]),key:"0"}:C.type==="slot"?{name:"default",fn:c.withCtx(A=>[c.renderSlot(a.$slots,C.slot,{row:A.row})]),key:"1"}:C.type==="btns"?{name:"default",fn:c.withCtx(A=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(C.btns,(T,I)=>(c.openBlock(),c.createElementBlock(c.Fragment,{key:`${T.text}-${I}`},[T.children?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[s(T.children,A).length?(c.openBlock(),c.createBlock(d,{key:0,placement:"bottom",trigger:"hover","popper-style":{minWidth:"0px",width:null}},{reference:c.withCtx(()=>[c.createVNode(u,{style:{marginLeft:"10px",verticalAlign:"-5px",cursor:"pointer"},size:"20"},{default:c.withCtx(()=>[c.createVNode(c.unref(Fv))]),_:1})]),default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(s(T.children,A),(R,O)=>(c.openBlock(),c.createElementBlock("div",{key:`${R.text}-${O}`},[c.createVNode(SG,{option:R,scope:A,showMargin:O!==0},null,8,["option","scope","showMargin"])]))),128))]),_:2},1024)):c.createCommentVNode("",!0)],64)):(c.openBlock(),c.createBlock(SG,{key:1,option:T,scope:A},null,8,["option","scope"]))],64))),128))]),key:"2"}:void 0]),1032,["prop","label","sortable","width","min-width"]))),128))]),_:1},8,["data","empty-text"])),[[w,i.loading]])]),_:1},8,["locale"])}}}),Lje={install(i){i.component("st-table",Nje)}},Eje=c.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]},config:{type:Object,default:()=>({})}},setup(i,{expose:e}){const t={tooltipFormatter:null,visibleMin:300};let n,r;const o=i,s=c.ref(),a=c.computed(()=>({...t,...o.config}));c.watch(()=>[o.data],()=>{l()},{deep:!0}),c.onMounted(()=>{n=yl.init(s.value),l();let u=!0;r=new ResizeObserver(()=>{if(u){u=null;return}n.resize()}),r.observe(s.value)}),c.onUnmounted(()=>{n.dispose(),r.disconnect(),r=null});const l=()=>{n.setOption({tooltip:{confine:!0,formatter:a.value.tooltipFormatter},series:[{type:"treemap",width:"100%",height:"100%",visibleMin:a.value.visibleMin,breadcrumb:{show:!1},label:{show:!0,formatter:"{b}"},upperLabel:{show:!0,height:30},itemStyle:{borderColor:"#fff"},levels:[{itemStyle:{borderColor:"#777",borderWidth:0,gapWidth:0},upperLabel:{show:!1}},{itemStyle:{borderColor:"#000",borderWidth:2,gapWidth:1},upperLabel:{padding:[8,0,0,0],formatter:u=>`{title|${u.data.name} ${u.data.labelValue}} ${u.data.percent===null?"":`{${u.data.percent>=0?u.data.percent===0?"defaultPercent":"redPercent":"greenPercent"}|${u.data.percent}%}`}`,rich:{title:{color:"#fff",fontSize:14},defaultPercent:{color:"#fff",fontSize:14},redPercent:{color:"red",fontSize:14},greenPercent:{color:"green",fontSize:14}}}},{colorSaturation:[.35,.5],itemStyle:{borderWidth:0,gapWidth:1,borderColorSaturation:.6},label:{align:"center",verticalAlign:"middle",fontSize:20,formatter:u=>`${u.data.name}
796
- ${u.data.colorValue}`}}],data:o.data.map(u=>({...u,itemStyle:{color:u.color},children:u.children.map(d=>({...d,itemStyle:{color:d.color}}))}))}]},!0)};return e({reset:()=>{l()}}),(u,d)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"chartRef",ref:s,class:"chart"},null,512))}}),e4t="",kje=lo(Eje,[["__scopeId","data-v-ab677899"]]),Aje={install(i){i.component("st-treeMap",kje)}},t4t="",n4t="",i4t="",xG={varietyMarket:{show:!0,options:[{label:"ETF",value:2,memo:[]},{label:"A股",value:3,memo:[4,6,12,13,14,15]},{label:"期货",value:4,memo:[1,2,3,5,7,8,9,10]},{label:"港股",value:5,memo:[4,6,14]},{label:"外盘",value:6,memo:[1,2,3,5,7,8,9,10]},{label:"美股",value:7,memo:[4,6,14]},{label:"期权",value:8,memo:[11]}]},commonOption:{show:!0,options:[{label:"期货主连",value:1},{label:"期货主力",value:2},{label:"期货加权",value:3},{label:"常用股票指数",value:4},{label:"期货收益率指数",value:5},{label:"股票板块指数",value:6},{label:"次主力合约",value:7},{label:"期货次主连",value:8},{label:"期货板块收益率指数",value:9},{label:"期货板块加权指数",value:10},{label:"期权",value:11},{label:"板块价差指数",value:12},{label:"行业板块指数",value:13},{label:"个股",value:14},{label:"概念板块指数",value:15}]},customTag:{show:!0,options:[]},factorScreen:{show:!0,cycleDefault:null,cycleOptions:[],cycleShow:!0,factorOptions:[]},commonIndicator:{show:!0,options:[{key:"marketCapital",label:"总市值",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,10],unit:["亿","亿"],text:"≤10亿"},{range:[null,25],unit:["亿","亿"],text:"≤25亿"},{range:[null,50],unit:["亿","亿"],text:"≤50亿"},{range:[20,50],unit:["亿","亿"],text:"20亿~50亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"},{range:[200,null],unit:["亿","亿"],text:"≥200亿"},{range:[500,null],unit:["亿","亿"],text:"≥500亿"},{range:[1e3,null],unit:["亿","亿"],text:"≥1000亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"floatMarketCapital",label:"流通市值",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,5],unit:["亿","亿"],text:"≤5亿"},{range:[null,20],unit:["亿","亿"],text:"≤20亿"},{range:[null,50],unit:["亿","亿"],text:"≤50亿"},{range:[null,100],unit:["亿","亿"],text:"≤100亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"},{range:[200,null],unit:["亿","亿"],text:"≥200亿"},{range:[500,null],unit:["亿","亿"],text:"≥500亿"},{range:[1e3,null],unit:["亿","亿"],text:"≥1000亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"totalShares",label:"总股本",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,5],unit:["亿","亿"],text:"≤5亿"},{range:[null,10],unit:["亿","亿"],text:"≤10亿"},{range:[null,75],unit:["亿","亿"],text:"≤75亿"},{range:[10,75],unit:["亿","亿"],text:"10亿~75亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"freeFloatShares",label:"流通股本",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,5],unit:["千万","千万"],text:"≤5千万"},{range:[5,3],unit:["千万","亿"],text:"5千万~3亿"},{range:[null,5],unit:["亿","亿"],text:"≤5亿"},{range:[null,10],unit:["亿","亿"],text:"≤10亿"},{range:[8,30],unit:["亿","亿"],text:"8亿~30亿"},{range:[30,null],unit:["亿","亿"],text:"≥30亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"turnoverRate",label:"换手率(实)",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,1],unit:["%","%"],text:"≤1%"},{range:[1,5],unit:["%","%"],text:"1%~5%"},{range:[5,10],unit:["%","%"],text:"5%~10%"},{range:[10,null],unit:["%","%"],text:"≥10%"}],defaultUnit:["%","%"],unitOptions:["%"]},{key:"peTtm",label:"市盈率",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[0,0],unit:[],text:"亏损"},{range:[0,null],unit:[],text:"≥0"},{range:[0,20],unit:[],text:"0~20"},{range:[20,40],unit:[],text:"20~40"},{range:[40,100],unit:[],text:"40~100"},{range:[100,null],unit:[],text:"≥100"}],defaultUnit:[],unitOptions:[]},{key:"eps",label:"每股净收益",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,0],unit:["元","元"],text:"≤0"},{range:[0,null],unit:["元","元"],text:"≥0"},{range:[.2,null],unit:["元","元"],text:"≥0.2元"},{range:[.5,null],unit:["元","元"],text:"≥0.5元"},{range:[1,null],unit:["元","元"],text:"≥1元"},{range:[2,null],unit:["元","元"],text:"≥2元"}],defaultUnit:["元","元"],unitOptions:["元"]},{key:"st",label:"是否ST",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},type:"custom"},{key:"pb",label:"市净率",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[0,null],unit:[],text:"≥0"},{range:[0,1],unit:[],text:"0~1"},{range:[1,2],unit:[],text:"1~2"},{range:[0,3],unit:[],text:"0~3"},{range:[3,null],unit:[],text:"≥3"}],defaultUnit:[],unitOptions:[]},{key:"mnShr",label:"成交额",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[0,1],unit:["亿","亿"],text:"0~1亿"},{range:[0,5],unit:["亿","亿"],text:"0~5亿"},{range:[0,10],unit:["亿","亿"],text:"0~10亿"},{range:[10,null],unit:["亿","亿"],text:"≥10亿"},{range:[50,null],unit:["亿","亿"],text:"≥50亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"roe",label:"净资产收益率roe",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,0],unit:["%","%"],text:"<0"},{range:[0,null],unit:["%","%"],text:">0"},{range:[10,null],unit:["%","%"],text:">10%"},{range:[15,null],unit:["%","%"],text:">15%"},{range:[20,null],unit:["%","%"],text:">20%"},{range:[30,null],unit:["%","%"],text:">30%"}],defaultUnit:["%","%"],unitOptions:["%"]},{key:"tFeaturelncomes",label:"净利润",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},type:"custom"},{key:"dividendYield",label:"股息率",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,1],unit:["%","%"],text:"≤1%"},{range:[1,5],unit:["%","%"],text:"1%~5%"},{range:[5,10],unit:["%","%"],text:"5%~10%"},{range:[10,null],unit:["%","%"],text:"≥10%"}],defaultUnit:["%","%"],unitOptions:["%"]},{key:"expireDays",label:"过期天数",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["天","天"],unitOptions:["天"]},{key:"virtualRealDegree",label:"虚实度",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["%","%"],unitOptions:["%"]},{key:"yearProfitRate",label:"年化收益率",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["%","%"],unitOptions:["%"]},{key:"impliedVolatility",label:"隐含波动率",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["%","%"],unitOptions:["%"]},{key:"levelMultiplier",label:"杠杆率",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]},{key:"turnover",label:"成交额(期权)",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["万","万"],unitOptions:["万"]},{key:"volume",label:"成交量",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]},{key:"openInterest",label:"持仓量",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]},{key:"optionsCpType",label:"认沽认购",parent:{varietyMarketIds:[8],commonOptionIds:[11]},type:"custom"},{key:"optionGear",label:"期权档位",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]}]}},r4t="",o4t="",s4t="",a4t="",Tje=i=>(c.pushScopeId("data-v-a6a3b89f"),i=i(),c.popScopeId(),i),Mje={class:"factor-screen"},Ije={class:"form-row"},Rje={style:{display:"flex","align-items":"center",width:"100%",height:"24px"}},Oje=Tje(()=>c.createElementVNode("span",null,"~",-1)),Pje={class:"dialog-footer"},Fje=lo({__name:"index",props:c.mergeModels({config:{type:Object,default:()=>{}}},{data:{default:[]},dataModifiers:{}}),emits:["update:data"],setup(i){const e=i,t=c.useModel(i,"data"),n=c.ref(!1),r=c.ref(null),o=c.ref({factorScreen:[{cycle:e.config.cycleDefault??null,factor:null,score:[null,null]}]}),s=(v,w,C)=>{!w[0]&&w[0]!==0&&!w[1]&&w[1]!==0?C(new Error("至少填写一个分数")):C()},a=()=>{t.value.length>0?o.value.factorScreen=JSON.parse(JSON.stringify(t.value)):o.value.factorScreen=[{cycle:e.config.cycleDefault??null,factor:null,score:[null,null]}],n.value=!0},l=v=>{t.value.splice(v,1)},u=()=>{o.value.factorScreen.push({cycle:e.config.cycleDefault??null,factor:null,score:[null,null]})},d=v=>{o.value.factorScreen.splice(v,1)},h=()=>{r.value&&r.value.validate(v=>{v?(t.value=JSON.parse(JSON.stringify(o.value.factorScreen)),n.value=!1):console.error("因子筛选-弹窗: 表单校验未通过")})},m=v=>{const{cycle:w,factor:C,score:A}=v;let T="";return T+=` ${e.config.cycleOptions.find(({value:I})=>I===w).label}`,T+=` ${e.config.factorOptions.find(({value:I})=>I===C).label}`,T+=` ${A[0]||A[0]===0?`${A[0]}分`:"∞"}`,T+=" ~",T+=` ${A[1]||A[1]===0?`${A[1]}分`:"∞"}`,T};return(v,w)=>{const C=My,A=i0,T=dg,I=cg,R=Mhe,O=KI,V=kr,j=The,K=Iy;return c.openBlock(),c.createElementBlock("div",Mje,[t.value.length?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:0},c.renderList(t.value,(G,ne)=>(c.openBlock(),c.createBlock(C,{closable:"",type:"info",onClose:ce=>l(ne)},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(m(G)),1)]),_:2},1032,["onClose"]))),256)):c.createCommentVNode("",!0),c.createVNode(A,{class:"screen-btn",type:"primary",plain:"",size:"small",icon:c.unref(Bv),onClick:a},{default:c.withCtx(()=>[c.createTextVNode("添加因子")]),_:1},8,["icon"]),c.createVNode(K,{modelValue:n.value,"onUpdate:modelValue":w[0]||(w[0]=G=>n.value=G),title:"因子筛选",width:"500","align-center":"","destroy-on-close":""},{footer:c.withCtx(()=>[c.createElementVNode("div",Pje,[c.createVNode(A,{type:"primary",onClick:h},{default:c.withCtx(()=>[c.createTextVNode("确定")]),_:1})])]),default:c.withCtx(()=>[c.createVNode(j,{ref_key:"dialogFormRef",ref:r,model:o.value},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value.factorScreen,(G,ne)=>(c.openBlock(),c.createElementBlock("div",Ije,[i.config.cycleShow?(c.openBlock(),c.createBlock(R,{key:0,prop:"factorScreen."+ne+".cycle",rules:{required:!0,message:"周期不能为空",trigger:"blur"},style:{width:"100px","margin-right":"10px"}},{default:c.withCtx(()=>[c.createVNode(I,{modelValue:G.cycle,"onUpdate:modelValue":ce=>G.cycle=ce,placeholder:"选择周期",size:"small"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(i.config.cycleOptions,({label:ce,value:le})=>(c.openBlock(),c.createBlock(T,{label:ce,value:le,key:le},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])):c.createCommentVNode("",!0),c.createVNode(R,{prop:"factorScreen."+ne+".factor",rules:{required:!0,message:"因子不能为空",trigger:"blur"},style:{width:"100px","margin-right":"10px"}},{default:c.withCtx(()=>[c.createVNode(I,{modelValue:G.factor,"onUpdate:modelValue":ce=>G.factor=ce,placeholder:"选择因子",filterable:"",size:"small","no-match-text":"无匹配数据"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(i.config.factorOptions,({label:ce,value:le})=>(c.openBlock(),c.createBlock(T,{label:ce,value:le,key:le},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"]),c.createVNode(R,{prop:"factorScreen."+ne+".score",rules:{validator:s,trigger:"blur"},style:{width:"200px","margin-right":"10px"}},{default:c.withCtx(()=>[c.createElementVNode("div",Rje,[c.createVNode(O,{modelValue:G.score[0],"onUpdate:modelValue":ce=>G.score[0]=ce,size:"small","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"]),Oje,c.createVNode(O,{modelValue:G.score[1],"onUpdate:modelValue":ce=>G.score[1]=ce,size:"small","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])])]),_:2},1032,["prop","rules"]),c.createVNode(V,{onClick:ce=>d(ne)},{default:c.withCtx(()=>[c.createVNode(c.unref(Rv))]),_:2},1032,["onClick"])]))),256)),c.createVNode(A,{type:"primary",plain:"",size:"small",icon:c.unref(Bv),onClick:u},{default:c.withCtx(()=>[c.createTextVNode("添加因子")]),_:1},8,["icon"])]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-a6a3b89f"]]),u4t="",c4t="",d4t="",QE=i=>(c.pushScopeId("data-v-0a691a79"),i=i(),c.popScopeId(),i),Bje={key:0,class:"common-indicator"},zje={class:"indicator"},Vje=QE(()=>c.createElementVNode("div",{class:"title"},[c.createElementVNode("span",null,"常用指标: "),c.createElementVNode("span",null,"不限")],-1)),Hje={class:"options"},Wje=["onClick"],jje={class:"tags"},$je=["onClick"],Uje={key:0,class:"convenient-option-box"},qje={class:"out-box"},Kje=QE(()=>c.createElementVNode("span",null,"自定义: ",-1)),Gje={key:0},Yje={key:0},Zje={key:0},Qje={key:1},Xje={class:"tFeaturelncomes-option-box"},Jje={class:"tFeaturelncomes-out-box"},e$e=QE(()=>c.createElementVNode("span",null,"自定义: ",-1)),t$e={key:2},n$e={class:"dialog-footer"},i$e=lo({__name:"index",props:c.mergeModels({config:{type:Object,default:()=>{}},varietyMarket:{type:Number,default:()=>null},commonOption:{type:Array,default:()=>[]}},{data:{default:[]},dataModifiers:{}}),emits:["update:data"],setup(i){const e=i,t=c.useModel(i,"data"),n=c.computed(()=>{let v=[];return e.varietyMarket===null&&!e.commonOption.length?v=e.config.options:(v=e.config.options,e.varietyMarket&&(v=v.filter(({parent:w})=>w.varietyMarketIds.includes(e.varietyMarket))),e.commonOption.length&&(v=v.filter(({parent:w})=>{const{commonOptionIds:C}=w;return[...new Set([...C,...e.commonOption])].length!==[...C,...e.commonOption].length}))),v});c.watch(()=>n.value,()=>{t.value.length&&(t.value=t.value.filter(({key:v})=>n.value.find(w=>w.key===v)))});const r=c.ref(!1),o=c.ref({}),s=c.ref({}),a=v=>{o.value=v;const w={label:v.label,key:v.key,type:v.type};v.type===void 0?s.value={...w,range:[null,null],unit:v.defaultUnit.length?[...v.defaultUnit]:[null,null]}:v.key==="st"?s.value={...w,st:null}:v.key==="tFeaturelncomes"?s.value={...w,rule:1,withFewYears:null,yearsCount:null,netProfit:null}:v.key==="optionsCpType"&&(s.value={...w,optionsCpType:null}),r.value=!0},l=v=>{s.value.range=[...v.range],s.value.unit=[...v.unit]},u=v=>{switch(v){case"≤0":Object.assign(s.value,{rule:2,withFewYears:1,yearsCount:1,netProfit:0});break;case"≥0":Object.assign(s.value,{rule:1,withFewYears:1,yearsCount:1,netProfit:0});break;case"五年内有四年以上盈利超过5千万":Object.assign(s.value,{rule:1,withFewYears:5,yearsCount:4,netProfit:.5});break;case"≥10亿":Object.assign(s.value,{rule:1,withFewYears:1,yearsCount:1,netProfit:10});break;case"≥20亿":Object.assign(s.value,{rule:1,withFewYears:1,yearsCount:1,netProfit:20});break}},d=()=>{if(s.value.type===void 0){const{label:w,range:C,unit:A}=s.value;if(["",null].includes(C[0])&&["",null].includes(C[1]))return O9.warning("格式错误: 请至少填写一个值");!["",null].includes(C[0])&&!["",null].includes(C[1])?s.value.tagText=`${w}: ${C[0]}${A[0]??""} ~ ${C[1]}${A[1]??""}`:["",null].includes(C[0])?s.value.tagText=`${w}: ≤${C[1]}${A[1]??""}`:s.value.tagText=`${w}: ≥${C[0]}${A[0]??""}`}else if(s.value.key==="st"){const{label:w,st:C}=s.value;if(C===null)return O9.warning("格式错误: 请至少选择一个值");s.value.tagText=`${w}: ${C?"是":"否"}`}else if(s.value.key==="tFeaturelncomes"){const{label:w,rule:C,withFewYears:A,yearsCount:T,netProfit:I}=s.value;if(["",null].includes(A)||["",null].includes(T)||["",null].includes(I))return O9.warning("格式错误: 请填写完整");s.value.tagText=`${w}: ${A}年内${T}年以上盈利${C===1?"超":"跌"}过${I}亿`}else if(s.value.key==="optionsCpType"){const{label:w,optionsCpType:C}=s.value;if(C===null)return O9.warning("格式错误: 请至少选择一个值");s.value.tagText=`${w}: ${C===1?"看涨":"看跌"}`}const v=t.value.findIndex(({key:w})=>w===s.value.key);v===-1?t.value.push(s.value):t.value.splice(v,1,s.value),r.value=!1},h=v=>{t.value.splice(v,1)},m=v=>{o.value=n.value.find(({key:w})=>w===v.key),s.value=v,r.value=!0};return(v,w)=>{const C=My,A=i0,T=dg,I=cg,R=g9,O=WI,V=jI,j=KI,K=Iy;return i.config.show&&n.value.length?(c.openBlock(),c.createElementBlock("div",Bje,[c.createElementVNode("div",zje,[Vje,c.createElementVNode("div",Hje,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.value,G=>(c.openBlock(),c.createElementBlock("span",{key:G.key,onClick:ne=>a(G)},c.toDisplayString(G.label),9,Wje))),128))])]),c.createElementVNode("div",jje,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.value,(G,ne)=>(c.openBlock(),c.createBlock(C,{closable:"",type:"info",onClose:ce=>h(ne)},{default:c.withCtx(()=>[c.createElementVNode("span",null,c.toDisplayString(G.tagText),1),c.createElementVNode("span",{class:"edit",onClick:ce=>m(G)},"编辑",8,$je)]),_:2},1032,["onClose"]))),256))]),c.createVNode(K,{modelValue:r.value,"onUpdate:modelValue":w[14]||(w[14]=G=>r.value=G),title:o.value.label,width:"600","align-center":"","destroy-on-close":""},{footer:c.withCtx(()=>[c.createElementVNode("div",n$e,[c.createVNode(A,{type:"primary",onClick:d},{default:c.withCtx(()=>[c.createTextVNode("确定")]),_:1})])]),default:c.withCtx(()=>[o.value.type===void 0?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[o.value.convenientOptions.length?(c.openBlock(),c.createElementBlock("div",Uje,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value.convenientOptions,G=>(c.openBlock(),c.createBlock(A,{key:G.text,onClick:ne=>l(G)},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(G.text),1)]),_:2},1032,["onClick"]))),128))])):c.createCommentVNode("",!0),c.createElementVNode("div",qje,[Kje,c.createVNode(R,{modelValue:s.value.range[0],"onUpdate:modelValue":w[1]||(w[1]=G=>s.value.range[0]=G),style:{flex:"1"}},c.createSlots({_:2},[o.value.unitOptions.length?{name:"append",fn:c.withCtx(()=>[o.value.unitOptions.length===1?(c.openBlock(),c.createElementBlock("span",Gje,c.toDisplayString(s.value.unit[0]),1)):(c.openBlock(),c.createBlock(I,{key:1,modelValue:s.value.unit[0],"onUpdate:modelValue":w[0]||(w[0]=G=>s.value.unit[0]=G),style:{width:"72px"}},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value.unitOptions,G=>(c.openBlock(),c.createBlock(T,{label:G,value:G},null,8,["label","value"]))),256))]),_:1},8,["modelValue"]))]),key:"0"}:void 0]),1032,["modelValue"]),c.createTextVNode(" ~ "),c.createVNode(R,{modelValue:s.value.range[1],"onUpdate:modelValue":w[3]||(w[3]=G=>s.value.range[1]=G),style:{flex:"1"}},c.createSlots({_:2},[o.value.unitOptions.length?{name:"append",fn:c.withCtx(()=>[o.value.unitOptions.length===1?(c.openBlock(),c.createElementBlock("span",Yje,c.toDisplayString(s.value.unit[1]),1)):(c.openBlock(),c.createBlock(I,{key:1,modelValue:s.value.unit[1],"onUpdate:modelValue":w[2]||(w[2]=G=>s.value.unit[1]=G),style:{width:"72px"}},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value.unitOptions,G=>(c.openBlock(),c.createBlock(T,{label:G,value:G},null,8,["label","value"]))),256))]),_:1},8,["modelValue"]))]),key:"0"}:void 0]),1032,["modelValue"])])],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[o.value.key==="st"?(c.openBlock(),c.createElementBlock("div",Zje,[c.createVNode(V,{modelValue:s.value.st,"onUpdate:modelValue":w[4]||(w[4]=G=>s.value.st=G)},{default:c.withCtx(()=>[c.createVNode(O,{label:1},{default:c.withCtx(()=>[c.createTextVNode("是")]),_:1}),c.createVNode(O,{label:0},{default:c.withCtx(()=>[c.createTextVNode("否")]),_:1})]),_:1},8,["modelValue"])])):c.createCommentVNode("",!0),o.value.key==="tFeaturelncomes"?(c.openBlock(),c.createElementBlock("div",Qje,[c.createElementVNode("div",Xje,[c.createVNode(A,{onClick:w[5]||(w[5]=G=>u("≤0"))},{default:c.withCtx(()=>[c.createTextVNode("≤0")]),_:1}),c.createVNode(A,{onClick:w[6]||(w[6]=G=>u("≥0"))},{default:c.withCtx(()=>[c.createTextVNode("≥0")]),_:1}),c.createVNode(A,{onClick:w[7]||(w[7]=G=>u("五年内有四年以上盈利超过5千万"))},{default:c.withCtx(()=>[c.createTextVNode("五年内有四年以上盈利超过5千万")]),_:1}),c.createVNode(A,{onClick:w[8]||(w[8]=G=>u("≥10亿"))},{default:c.withCtx(()=>[c.createTextVNode("≥10亿")]),_:1}),c.createVNode(A,{onClick:w[9]||(w[9]=G=>u("≥20亿"))},{default:c.withCtx(()=>[c.createTextVNode("≥20亿")]),_:1})]),c.createElementVNode("div",Jje,[e$e,c.createElementVNode("div",null,[c.createVNode(j,{modelValue:s.value.withFewYears,"onUpdate:modelValue":w[10]||(w[10]=G=>s.value.withFewYears=G),"controls-position":"right"},null,8,["modelValue"]),c.createTextVNode(" 年内 "),c.createVNode(j,{modelValue:s.value.yearsCount,"onUpdate:modelValue":w[11]||(w[11]=G=>s.value.yearsCount=G),"controls-position":"right"},null,8,["modelValue"]),c.createTextVNode(" 年以上盈利"+c.toDisplayString(s.value.rule===1?"超":"跌")+"过 ",1),c.createVNode(j,{modelValue:s.value.netProfit,"onUpdate:modelValue":w[12]||(w[12]=G=>s.value.netProfit=G),"controls-position":"right"},null,8,["modelValue"]),c.createTextVNode(" 亿 ")])])])):c.createCommentVNode("",!0),o.value.key==="optionsCpType"?(c.openBlock(),c.createElementBlock("div",t$e,[c.createVNode(V,{modelValue:s.value.optionsCpType,"onUpdate:modelValue":w[13]||(w[13]=G=>s.value.optionsCpType=G)},{default:c.withCtx(()=>[c.createVNode(O,{label:1},{default:c.withCtx(()=>[c.createTextVNode("看涨")]),_:1}),c.createVNode(O,{label:2},{default:c.withCtx(()=>[c.createTextVNode("看跌")]),_:1})]),_:1},8,["modelValue"])])):c.createCommentVNode("",!0)],64))]),_:1},8,["modelValue","title"])])):c.createCommentVNode("",!0)}}},[["__scopeId","data-v-0a691a79"]]),f4t="",Qb=i=>(c.pushScopeId("data-v-6e54eaf3"),i=i(),c.popScopeId(),i),r$e={class:"variety-search"},o$e={key:0,class:"variety-search-row"},s$e={class:"title"},a$e=Qb(()=>c.createElementVNode("span",null,"品种市场: ",-1)),l$e={key:1,class:"variety-search-row"},u$e={class:"title"},c$e=Qb(()=>c.createElementVNode("span",null,"常用选项: ",-1)),d$e={key:2,class:"variety-search-row"},h$e={class:"title"},f$e=Qb(()=>c.createElementVNode("span",null,"自定标签: ",-1)),g$e={key:3,class:"variety-search-row"},m$e={class:"title"},p$e=Qb(()=>c.createElementVNode("span",null,"因子筛选: ",-1)),b$e=lo({__name:"index",props:c.mergeModels({config:{type:Object,default:{}}},{searchData:{default:{varietyMarket:null,commonOption:[],customTag:[],factorScreen:[],commonIndicator:[]}},searchDataModifiers:{}}),emits:["update:searchData"],setup(i,{expose:e}){const t=i,n=c.useModel(i,"searchData"),r=c.computed(()=>{const d={};return Object.keys(xG).forEach(h=>{const m=xG[h],v=t.config[h]??{},w={...m,...v};d[h]=w}),d}),o=c.computed(()=>r.value.varietyMarket.options),s=c.computed(()=>{const{varietyMarket:d}=n.value;if(d){const h=o.value.find(({value:m})=>m===d).memo;return r.value.commonOption.options.filter(({value:m})=>h.includes(m))}else return r.value.commonOption.options});c.watch(()=>s.value,d=>{n.value.commonOption.length&&(n.value.commonOption=n.value.commonOption.filter(h=>d.find(({value:m})=>m===h)))});const a=c.computed(()=>r.value.customTag.options),l=d=>{["commonOption","customTag","factorScreen","commonIndicator"].includes(d)?n.value[d]=[]:n.value[d]=null};return e({formatData:d=>{const h={};d.varietyMarket&&(h.exchangeId=String(d.varietyMarket)),d.commonOption&&d.commonOption.length&&(h.optionId=d.commonOption.join(",")),d.customTag&&d.customTag.length&&(h.tagIds=d.customTag),d.factorScreen&&d.factorScreen.length&&(h.tbFeatureFactorScores=d.factorScreen.map(T=>({freqId:T.cycle,factorId:T.factor,startScore:T.score[0],endScore:T.score[1]})));const m=["expireDays","virtualRealDegree","yearProfitRate","impliedVolatility","levelMultiplier","turnover","volume","openInterest","optionsCpType","optionGear"],v=d.commonIndicator.reduce((T,I)=>{const{key:R,type:O,range:V,unit:j}=I;if(R==="dividendYield"){let[K,G]=V;["",null].includes(K)||(K=K/100),["",null].includes(G)||(G=G/100),T.push({column:I.key,start:K,end:G})}else if(O===void 0&&!m.includes(R)){let[K,G]=V;if(!["",null].includes(K))switch(j[0]){case"亿":K=K*1e8;break;case"千万":K=K*1e7;break;default:K=K;break}if(!["",null].includes(G))switch(j[1]){case"亿":G=G*1e8;break;case"千万":G=G*1e7;break;default:G=G;break}T.push({column:I.key,start:K,end:G})}return T},[]);v.length&&(h.query=v);const w=d.commonIndicator.find(({key:T})=>T==="st");w&&(h.st=w.st);const C=d.commonIndicator.find(({key:T})=>T==="tFeaturelncomes");C&&(h.netProfitQueryDto={...C,netProfit:C.netProfit*1e8});const A={};return d.commonIndicator.forEach(T=>{const{key:I}=T;switch(I){case"expireDays":["",null].includes(T.range[0])||(A.minExpireDays=T.range[0]),["",null].includes(T.range[1])||(A.maxExpireDays=T.range[1]);break;case"virtualRealDegree":["",null].includes(T.range[0])||(A.minVirtualRealDegree=T.range[0]/100),["",null].includes(T.range[1])||(A.maxVirtualRealDegree=T.range[1]/100);break;case"yearProfitRate":["",null].includes(T.range[0])||(A.minYearProfitRate=T.range[0]/100),["",null].includes(T.range[1])||(A.maxYearProfitRate=T.range[1]/100);break;case"impliedVolatility":["",null].includes(T.range[0])||(A.minImpliedVolatility=T.range[0]/100),["",null].includes(T.range[1])||(A.maxImpliedVolatility=T.range[1]/100);break;case"levelMultiplier":["",null].includes(T.range[0])||(A.minLevelMultiplier=T.range[0]),["",null].includes(T.range[1])||(A.maxLevelMultiplier=T.range[1]);break;case"turnover":["",null].includes(T.range[0])||(A.minTurnover=T.range[0]*1e4),["",null].includes(T.range[1])||(A.maxTurnover=T.range[1]*1e4);break;case"volume":["",null].includes(T.range[0])||(A.minVolume=T.range[0]),["",null].includes(T.range[1])||(A.maxVolume=T.range[1]);break;case"openInterest":["",null].includes(T.range[0])||(A.minOpenInterest=T.range[0]),["",null].includes(T.range[1])||(A.maxOpenInterest=T.range[1]);break;case"optionsCpType":A.optionsCpType=T.optionsCpType;break;case"optionGear":["",null].includes(T.range[0])||(A.minOptionGear=T.range[0]),["",null].includes(T.range[1])||(A.maxOptionGear=T.range[1]);break}}),Object.keys(A).length&&(h.searchOptionDto=A),h}}),(d,h)=>{var A,T,I,R;const m=WI,v=jI,w=o0,C=tfe;return c.openBlock(),c.createElementBlock("div",r$e,[(A=r.value.varietyMarket)!=null&&A.show?(c.openBlock(),c.createElementBlock("div",o$e,[c.createElementVNode("div",s$e,[a$e,c.createElementVNode("span",{onClick:h[0]||(h[0]=O=>l("varietyMarket"))},"不限")]),c.createVNode(v,{modelValue:n.value.varietyMarket,"onUpdate:modelValue":h[1]||(h[1]=O=>n.value.varietyMarket=O),size:"small"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value,({label:O,value:V})=>(c.openBlock(),c.createBlock(m,{label:V,key:V},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(O),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])):c.createCommentVNode("",!0),(T=r.value.commonOption)!=null&&T.show&&s.value.length?(c.openBlock(),c.createElementBlock("div",l$e,[c.createElementVNode("div",u$e,[c$e,c.createElementVNode("span",{onClick:h[2]||(h[2]=O=>l("commonOption"))},"不限")]),c.createVNode(C,{modelValue:n.value.commonOption,"onUpdate:modelValue":h[3]||(h[3]=O=>n.value.commonOption=O),size:"small"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(s.value,({label:O,value:V})=>(c.openBlock(),c.createBlock(w,{label:V,key:V},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(O),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])):c.createCommentVNode("",!0),(I=r.value.customTag)!=null&&I.show&&a.value.length?(c.openBlock(),c.createElementBlock("div",d$e,[c.createElementVNode("div",h$e,[f$e,c.createElementVNode("span",{onClick:h[4]||(h[4]=O=>l("customTag"))},"不限")]),c.createVNode(C,{modelValue:n.value.customTag,"onUpdate:modelValue":h[5]||(h[5]=O=>n.value.customTag=O),size:"small"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(a.value,({label:O,value:V})=>(c.openBlock(),c.createBlock(w,{label:V,key:V},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(O),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])):c.createCommentVNode("",!0),(R=r.value.factorScreen)!=null&&R.show?(c.openBlock(),c.createElementBlock("div",g$e,[c.createElementVNode("div",m$e,[p$e,c.createElementVNode("span",{onClick:h[6]||(h[6]=O=>l("factorScreen"))},"不限")]),c.createVNode(Fje,{data:n.value.factorScreen,"onUpdate:data":h[7]||(h[7]=O=>n.value.factorScreen=O),config:r.value.factorScreen},null,8,["data","config"])])):c.createCommentVNode("",!0),c.createVNode(i$e,{data:n.value.commonIndicator,"onUpdate:data":h[8]||(h[8]=O=>n.value.commonIndicator=O),varietyMarket:n.value.varietyMarket,commonOption:n.value.commonOption,config:r.value.commonIndicator},null,8,["data","varietyMarket","commonOption","config"])])}}},[["__scopeId","data-v-6e54eaf3"]]),_$e={install(i){i.component("st-varietySearch",b$e)}},m4t="",p4t="",b4t="",v$e={key:0,class:"footer-box"},y$e={__name:"index",props:c.mergeModels({tableData:{type:Array,default:[]},tableColumn:{type:Array,default:[]},tableLoading:{type:[String,null],default:null},config:{type:Object}},{tableActiveData:{default:()=>[]},tableActiveDataModifiers:{}}),emits:c.mergeModels(["touchBottom"],["update:tableActiveData"]),setup(i,{emit:e}){const t=e,n=i,r=c.computed(()=>({headerHeight:50,rowHeight:50,tableActiveNum:9,tableActiveKey:"id",pageUpDownEnabled:!0,...n.config})),o=c.ref(null),s=c.ref(0);let a=0,l=!1,u=null;const d=c.useModel(i,"tableActiveData"),h=c.computed(()=>d.value.map(T=>T[r.value.tableActiveKey])),m=({rowData:T,rowIndex:I})=>{const{tableActiveNum:R,tableActiveKey:O}=r.value;if(h.value.includes(T[O]))return;const V=Math.floor(I/R)*R,j=V+R;d.value=n.tableData.slice(V,j)},v=({code:T})=>{const{tableData:I}=n,{tableActiveNum:R,tableActiveKey:O,pageUpDownEnabled:V}=r.value;if(!I.length||!V)return;const j=I.findIndex(ce=>ce[O]===h.value.at(0)),K=I.findIndex(ce=>ce[O]===h.value.at(-1));let G=null,ne=null;switch(T){case"PageUp":if(j===0)return;G=j-R>0?j-R:0,ne=G+R-1,d.value=I.slice(G,ne+1),C(G,"PageUp");break;case"PageDown":if(K===I.length-1)return;G=j+R,ne=G+R-1,d.value=I.slice(G,ne+1),C(ne,"PageDown");break}},w=T=>{l||(a===T.scrollLeft&&T.yAxisScrollDir==="backward"&&(s.value=0),a=T.scrollLeft)},C=(T,I)=>{T!==null&&(clearTimeout(u),l=!0,I==="PageUp"?s.value=0:T>=n.tableData.length-1&&(s.value=30,t("touchBottom")),c.nextTick(()=>{o.value.scrollToRow(T),o.value.scrollToLeft(a),u=setTimeout(()=>{l=!1},500)}))},A=({rowData:T})=>{if(!d.value.length)return;let I="";const{tableActiveKey:R}=r.value;return T[R]===h.value[0]&&(I+=" virtual-table-active-start"),h.value.includes(T[R])&&(I+=" virtual-table-active-row"),T[R]===h.value[h.value.length-1]&&(I+=" virtual-table-active-end"),I};return c.onMounted(()=>{window.addEventListener("keydown",v)}),c.watch(()=>n.tableLoading,T=>{T||(s.value=0)}),c.onUnmounted(()=>{window.removeEventListener("keydown",v)}),(T,I)=>{const R=Oy,O=i0,V=qfe,j=Mpe,K=Ipe;return c.openBlock(),c.createBlock(K,null,{default:c.withCtx(({height:G,width:ne})=>[c.createVNode(j,{ref_key:"tableRef",ref:o,id:"virtualTable",fixed:"",data:i.tableData,columns:i.tableColumn,width:ne,height:G,"header-height":r.value.headerHeight,"row-height":r.value.rowHeight,"row-class":A,"row-event-handlers":{onClick:m},"footer-height":s.value,"scrollbar-always-on":"",onScroll:w,onEndReached:I[0]||(I[0]=ce=>C(i.tableData.length-1,"PageDown"))},{empty:c.withCtx(()=>[c.createVNode(R,{description:"暂无数据",style:{height:"100%"}})]),footer:c.withCtx(()=>[s.value?(c.openBlock(),c.createElementBlock("div",v$e,[i.tableLoading==="more"?(c.openBlock(),c.createBlock(V,{key:0},{default:c.withCtx(()=>[c.createVNode(O,{type:"primary",text:"",loading:""},{default:c.withCtx(()=>[c.createTextVNode("正在加载更多数据")]),_:1})]),_:1})):i.tableLoading==="all"?(c.openBlock(),c.createBlock(V,{key:1},{default:c.withCtx(()=>[c.createTextVNode(" 已无更多数据 ")]),_:1})):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)]),_:2},1032,["data","columns","width","height","header-height","row-height","row-event-handlers","footer-height"])]),_:1})}}},_4t="",w$e=lo(y$e,[["__scopeId","data-v-7e702a8a"]]),C$e={install(i){i.component("st-virtualTable",w$e)}},S$e={install(i){t5e.install(i),o5e.install(i),l5e.install(i),H_e.install(i),tve.install(i),uve.install(i),fve.install(i),_je.install(i),wje.install(i),xje.install(i),Lje.install(i),Aje.install(i),_$e.install(i),C$e.install(i)}};/*!-----------------------------------------------------------------------------
796
+ ${u.data.colorValue}`}}],data:o.data.map(u=>({...u,itemStyle:{color:u.color},children:u.children.map(d=>({...d,itemStyle:{color:d.color}}))}))}]},!0)};return e({reset:()=>{l()}}),(u,d)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"chartRef",ref:s,class:"chart"},null,512))}}),e4t="",kje=lo(Eje,[["__scopeId","data-v-ab677899"]]),Aje={install(i){i.component("st-treeMap",kje)}},t4t="",n4t="",i4t="",xG={varietyMarket:{show:!0,options:[{label:"ETF",value:2,memo:[]},{label:"A股",value:3,memo:[4,6,12,14,15]},{label:"期货",value:4,memo:[1,2,3,5,7,8,9,10]},{label:"港股",value:5,memo:[4,6,14]},{label:"外盘",value:6,memo:[1,2,3,5,7,8,9,10]},{label:"美股",value:7,memo:[4,6,14]},{label:"期权",value:8,memo:[11]}]},commonOption:{show:!0,options:[{label:"个股",value:14},{label:"期货主连",value:1},{label:"期货主力",value:2},{label:"期货加权",value:3},{label:"常用股票指数",value:4},{label:"期货收益率指数",value:5},{label:"行业板块指数",value:6},{label:"次主力合约",value:7},{label:"期货次主连",value:8},{label:"期货板块收益率指数",value:9},{label:"期货板块加权指数",value:10},{label:"期权",value:11},{label:"价差板块指数",value:12},{label:"概念板块指数",value:15}]},customTag:{show:!0,options:[]},factorScreen:{show:!0,cycleDefault:null,cycleOptions:[],cycleShow:!0,factorOptions:[]},commonIndicator:{show:!0,options:[{key:"marketCapital",label:"总市值",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},convenientOptions:[{range:[null,10],unit:["亿","亿"],text:"≤10亿"},{range:[null,25],unit:["亿","亿"],text:"≤25亿"},{range:[null,50],unit:["亿","亿"],text:"≤50亿"},{range:[20,50],unit:["亿","亿"],text:"20亿~50亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"},{range:[200,null],unit:["亿","亿"],text:"≥200亿"},{range:[500,null],unit:["亿","亿"],text:"≥500亿"},{range:[1e3,null],unit:["亿","亿"],text:"≥1000亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"floatMarketCapital",label:"流通市值",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},convenientOptions:[{range:[null,5],unit:["亿","亿"],text:"≤5亿"},{range:[null,20],unit:["亿","亿"],text:"≤20亿"},{range:[null,50],unit:["亿","亿"],text:"≤50亿"},{range:[null,100],unit:["亿","亿"],text:"≤100亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"},{range:[200,null],unit:["亿","亿"],text:"≥200亿"},{range:[500,null],unit:["亿","亿"],text:"≥500亿"},{range:[1e3,null],unit:["亿","亿"],text:"≥1000亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"totalShares",label:"总股本",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},convenientOptions:[{range:[null,5],unit:["亿","亿"],text:"≤5亿"},{range:[null,10],unit:["亿","亿"],text:"≤10亿"},{range:[null,75],unit:["亿","亿"],text:"≤75亿"},{range:[10,75],unit:["亿","亿"],text:"10亿~75亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"freeFloatShares",label:"流通股本",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},convenientOptions:[{range:[null,5],unit:["千万","千万"],text:"≤5千万"},{range:[5,3],unit:["千万","亿"],text:"5千万~3亿"},{range:[null,5],unit:["亿","亿"],text:"≤5亿"},{range:[null,10],unit:["亿","亿"],text:"≤10亿"},{range:[8,30],unit:["亿","亿"],text:"8亿~30亿"},{range:[30,null],unit:["亿","亿"],text:"≥30亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"turnoverRate",label:"换手率(实)",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},convenientOptions:[{range:[null,1],unit:["%","%"],text:"≤1%"},{range:[1,5],unit:["%","%"],text:"1%~5%"},{range:[5,10],unit:["%","%"],text:"5%~10%"},{range:[10,null],unit:["%","%"],text:"≥10%"}],defaultUnit:["%","%"],unitOptions:["%"]},{key:"peTtm",label:"市盈率",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},convenientOptions:[{range:[0,0],unit:[],text:"亏损"},{range:[0,null],unit:[],text:"≥0"},{range:[0,20],unit:[],text:"0~20"},{range:[20,40],unit:[],text:"20~40"},{range:[40,100],unit:[],text:"40~100"},{range:[100,null],unit:[],text:"≥100"}],defaultUnit:[],unitOptions:[]},{key:"eps",label:"每股净收益",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},convenientOptions:[{range:[null,0],unit:["元","元"],text:"≤0"},{range:[0,null],unit:["元","元"],text:"≥0"},{range:[.2,null],unit:["元","元"],text:"≥0.2元"},{range:[.5,null],unit:["元","元"],text:"≥0.5元"},{range:[1,null],unit:["元","元"],text:"≥1元"},{range:[2,null],unit:["元","元"],text:"≥2元"}],defaultUnit:["元","元"],unitOptions:["元"]},{key:"st",label:"是否ST",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},type:"custom"},{key:"pb",label:"市净率",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},convenientOptions:[{range:[0,null],unit:[],text:"≥0"},{range:[0,1],unit:[],text:"0~1"},{range:[1,2],unit:[],text:"1~2"},{range:[0,3],unit:[],text:"0~3"},{range:[3,null],unit:[],text:"≥3"}],defaultUnit:[],unitOptions:[]},{key:"mnShr",label:"成交额",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},convenientOptions:[{range:[0,1],unit:["亿","亿"],text:"0~1亿"},{range:[0,5],unit:["亿","亿"],text:"0~5亿"},{range:[0,10],unit:["亿","亿"],text:"0~10亿"},{range:[10,null],unit:["亿","亿"],text:"≥10亿"},{range:[50,null],unit:["亿","亿"],text:"≥50亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"roe",label:"净资产收益率roe",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},convenientOptions:[{range:[null,0],unit:["%","%"],text:"<0"},{range:[0,null],unit:["%","%"],text:">0"},{range:[10,null],unit:["%","%"],text:">10%"},{range:[15,null],unit:["%","%"],text:">15%"},{range:[20,null],unit:["%","%"],text:">20%"},{range:[30,null],unit:["%","%"],text:">30%"}],defaultUnit:["%","%"],unitOptions:["%"]},{key:"tFeaturelncomes",label:"净利润",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},type:"custom"},{key:"dividendYield",label:"股息率",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,14,15]},convenientOptions:[{range:[null,1],unit:["%","%"],text:"≤1%"},{range:[1,5],unit:["%","%"],text:"1%~5%"},{range:[5,10],unit:["%","%"],text:"5%~10%"},{range:[10,null],unit:["%","%"],text:"≥10%"}],defaultUnit:["%","%"],unitOptions:["%"]},{key:"expireDays",label:"过期天数",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["天","天"],unitOptions:["天"]},{key:"virtualRealDegree",label:"虚实度",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["%","%"],unitOptions:["%"]},{key:"yearProfitRate",label:"年化收益率",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["%","%"],unitOptions:["%"]},{key:"impliedVolatility",label:"隐含波动率",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["%","%"],unitOptions:["%"]},{key:"levelMultiplier",label:"杠杆率",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]},{key:"turnover",label:"成交额(期权)",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["万","万"],unitOptions:["万"]},{key:"volume",label:"成交量",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]},{key:"openInterest",label:"持仓量",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]},{key:"optionsCpType",label:"认沽认购",parent:{varietyMarketIds:[8],commonOptionIds:[11]},type:"custom"},{key:"optionGear",label:"期权档位",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]}]}},r4t="",o4t="",s4t="",a4t="",Tje=i=>(c.pushScopeId("data-v-a6a3b89f"),i=i(),c.popScopeId(),i),Mje={class:"factor-screen"},Ije={class:"form-row"},Rje={style:{display:"flex","align-items":"center",width:"100%",height:"24px"}},Oje=Tje(()=>c.createElementVNode("span",null,"~",-1)),Pje={class:"dialog-footer"},Fje=lo({__name:"index",props:c.mergeModels({config:{type:Object,default:()=>{}}},{data:{default:[]},dataModifiers:{}}),emits:["update:data"],setup(i){const e=i,t=c.useModel(i,"data"),n=c.ref(!1),r=c.ref(null),o=c.ref({factorScreen:[{cycle:e.config.cycleDefault??null,factor:null,score:[null,null]}]}),s=(v,w,C)=>{!w[0]&&w[0]!==0&&!w[1]&&w[1]!==0?C(new Error("至少填写一个分数")):C()},a=()=>{t.value.length>0?o.value.factorScreen=JSON.parse(JSON.stringify(t.value)):o.value.factorScreen=[{cycle:e.config.cycleDefault??null,factor:null,score:[null,null]}],n.value=!0},l=v=>{t.value.splice(v,1)},u=()=>{o.value.factorScreen.push({cycle:e.config.cycleDefault??null,factor:null,score:[null,null]})},d=v=>{o.value.factorScreen.splice(v,1)},h=()=>{r.value&&r.value.validate(v=>{v?(t.value=JSON.parse(JSON.stringify(o.value.factorScreen)),n.value=!1):console.error("因子筛选-弹窗: 表单校验未通过")})},m=v=>{const{cycle:w,factor:C,score:A}=v;let T="";return T+=` ${e.config.cycleOptions.find(({value:I})=>I===w).label}`,T+=` ${e.config.factorOptions.find(({value:I})=>I===C).label}`,T+=` ${A[0]||A[0]===0?`${A[0]}分`:"∞"}`,T+=" ~",T+=` ${A[1]||A[1]===0?`${A[1]}分`:"∞"}`,T};return(v,w)=>{const C=My,A=i0,T=dg,I=cg,R=Mhe,O=KI,V=kr,j=The,K=Iy;return c.openBlock(),c.createElementBlock("div",Mje,[t.value.length?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:0},c.renderList(t.value,(G,ne)=>(c.openBlock(),c.createBlock(C,{closable:"",type:"info",onClose:ce=>l(ne)},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(m(G)),1)]),_:2},1032,["onClose"]))),256)):c.createCommentVNode("",!0),c.createVNode(A,{class:"screen-btn",type:"primary",plain:"",size:"small",icon:c.unref(Bv),onClick:a},{default:c.withCtx(()=>[c.createTextVNode("添加因子")]),_:1},8,["icon"]),c.createVNode(K,{modelValue:n.value,"onUpdate:modelValue":w[0]||(w[0]=G=>n.value=G),title:"因子筛选",width:"500","align-center":"","destroy-on-close":""},{footer:c.withCtx(()=>[c.createElementVNode("div",Pje,[c.createVNode(A,{type:"primary",onClick:h},{default:c.withCtx(()=>[c.createTextVNode("确定")]),_:1})])]),default:c.withCtx(()=>[c.createVNode(j,{ref_key:"dialogFormRef",ref:r,model:o.value},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value.factorScreen,(G,ne)=>(c.openBlock(),c.createElementBlock("div",Ije,[i.config.cycleShow?(c.openBlock(),c.createBlock(R,{key:0,prop:"factorScreen."+ne+".cycle",rules:{required:!0,message:"周期不能为空",trigger:"blur"},style:{width:"100px","margin-right":"10px"}},{default:c.withCtx(()=>[c.createVNode(I,{modelValue:G.cycle,"onUpdate:modelValue":ce=>G.cycle=ce,placeholder:"选择周期",size:"small"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(i.config.cycleOptions,({label:ce,value:le})=>(c.openBlock(),c.createBlock(T,{label:ce,value:le,key:le},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])):c.createCommentVNode("",!0),c.createVNode(R,{prop:"factorScreen."+ne+".factor",rules:{required:!0,message:"因子不能为空",trigger:"blur"},style:{width:"100px","margin-right":"10px"}},{default:c.withCtx(()=>[c.createVNode(I,{modelValue:G.factor,"onUpdate:modelValue":ce=>G.factor=ce,placeholder:"选择因子",filterable:"",size:"small","no-match-text":"无匹配数据"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(i.config.factorOptions,({label:ce,value:le})=>(c.openBlock(),c.createBlock(T,{label:ce,value:le,key:le},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"]),c.createVNode(R,{prop:"factorScreen."+ne+".score",rules:{validator:s,trigger:"blur"},style:{width:"200px","margin-right":"10px"}},{default:c.withCtx(()=>[c.createElementVNode("div",Rje,[c.createVNode(O,{modelValue:G.score[0],"onUpdate:modelValue":ce=>G.score[0]=ce,size:"small","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"]),Oje,c.createVNode(O,{modelValue:G.score[1],"onUpdate:modelValue":ce=>G.score[1]=ce,size:"small","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])])]),_:2},1032,["prop","rules"]),c.createVNode(V,{onClick:ce=>d(ne)},{default:c.withCtx(()=>[c.createVNode(c.unref(Rv))]),_:2},1032,["onClick"])]))),256)),c.createVNode(A,{type:"primary",plain:"",size:"small",icon:c.unref(Bv),onClick:u},{default:c.withCtx(()=>[c.createTextVNode("添加因子")]),_:1},8,["icon"])]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-a6a3b89f"]]),u4t="",c4t="",d4t="",QE=i=>(c.pushScopeId("data-v-0a691a79"),i=i(),c.popScopeId(),i),Bje={key:0,class:"common-indicator"},zje={class:"indicator"},Vje=QE(()=>c.createElementVNode("div",{class:"title"},[c.createElementVNode("span",null,"常用指标: "),c.createElementVNode("span",null,"不限")],-1)),Hje={class:"options"},Wje=["onClick"],jje={class:"tags"},$je=["onClick"],Uje={key:0,class:"convenient-option-box"},qje={class:"out-box"},Kje=QE(()=>c.createElementVNode("span",null,"自定义: ",-1)),Gje={key:0},Yje={key:0},Zje={key:0},Qje={key:1},Xje={class:"tFeaturelncomes-option-box"},Jje={class:"tFeaturelncomes-out-box"},e$e=QE(()=>c.createElementVNode("span",null,"自定义: ",-1)),t$e={key:2},n$e={class:"dialog-footer"},i$e=lo({__name:"index",props:c.mergeModels({config:{type:Object,default:()=>{}},varietyMarket:{type:Number,default:()=>null},commonOption:{type:Array,default:()=>[]}},{data:{default:[]},dataModifiers:{}}),emits:["update:data"],setup(i){const e=i,t=c.useModel(i,"data"),n=c.computed(()=>{let v=[];return e.varietyMarket===null&&!e.commonOption.length?v=e.config.options:(v=e.config.options,e.varietyMarket&&(v=v.filter(({parent:w})=>w.varietyMarketIds.includes(e.varietyMarket))),e.commonOption.length&&(v=v.filter(({parent:w})=>{const{commonOptionIds:C}=w;return[...new Set([...C,...e.commonOption])].length!==[...C,...e.commonOption].length}))),v});c.watch(()=>n.value,()=>{t.value.length&&(t.value=t.value.filter(({key:v})=>n.value.find(w=>w.key===v)))});const r=c.ref(!1),o=c.ref({}),s=c.ref({}),a=v=>{o.value=v;const w={label:v.label,key:v.key,type:v.type};v.type===void 0?s.value={...w,range:[null,null],unit:v.defaultUnit.length?[...v.defaultUnit]:[null,null]}:v.key==="st"?s.value={...w,st:null}:v.key==="tFeaturelncomes"?s.value={...w,rule:1,withFewYears:null,yearsCount:null,netProfit:null}:v.key==="optionsCpType"&&(s.value={...w,optionsCpType:null}),r.value=!0},l=v=>{s.value.range=[...v.range],s.value.unit=[...v.unit]},u=v=>{switch(v){case"≤0":Object.assign(s.value,{rule:2,withFewYears:1,yearsCount:1,netProfit:0});break;case"≥0":Object.assign(s.value,{rule:1,withFewYears:1,yearsCount:1,netProfit:0});break;case"五年内有四年以上盈利超过5千万":Object.assign(s.value,{rule:1,withFewYears:5,yearsCount:4,netProfit:.5});break;case"≥10亿":Object.assign(s.value,{rule:1,withFewYears:1,yearsCount:1,netProfit:10});break;case"≥20亿":Object.assign(s.value,{rule:1,withFewYears:1,yearsCount:1,netProfit:20});break}},d=()=>{if(s.value.type===void 0){const{label:w,range:C,unit:A}=s.value;if(["",null].includes(C[0])&&["",null].includes(C[1]))return O9.warning("格式错误: 请至少填写一个值");!["",null].includes(C[0])&&!["",null].includes(C[1])?s.value.tagText=`${w}: ${C[0]}${A[0]??""} ~ ${C[1]}${A[1]??""}`:["",null].includes(C[0])?s.value.tagText=`${w}: ≤${C[1]}${A[1]??""}`:s.value.tagText=`${w}: ≥${C[0]}${A[0]??""}`}else if(s.value.key==="st"){const{label:w,st:C}=s.value;if(C===null)return O9.warning("格式错误: 请至少选择一个值");s.value.tagText=`${w}: ${C?"是":"否"}`}else if(s.value.key==="tFeaturelncomes"){const{label:w,rule:C,withFewYears:A,yearsCount:T,netProfit:I}=s.value;if(["",null].includes(A)||["",null].includes(T)||["",null].includes(I))return O9.warning("格式错误: 请填写完整");s.value.tagText=`${w}: ${A}年内${T}年以上盈利${C===1?"超":"跌"}过${I}亿`}else if(s.value.key==="optionsCpType"){const{label:w,optionsCpType:C}=s.value;if(C===null)return O9.warning("格式错误: 请至少选择一个值");s.value.tagText=`${w}: ${C===1?"看涨":"看跌"}`}const v=t.value.findIndex(({key:w})=>w===s.value.key);v===-1?t.value.push(s.value):t.value.splice(v,1,s.value),r.value=!1},h=v=>{t.value.splice(v,1)},m=v=>{o.value=n.value.find(({key:w})=>w===v.key),s.value=v,r.value=!0};return(v,w)=>{const C=My,A=i0,T=dg,I=cg,R=g9,O=WI,V=jI,j=KI,K=Iy;return i.config.show&&n.value.length?(c.openBlock(),c.createElementBlock("div",Bje,[c.createElementVNode("div",zje,[Vje,c.createElementVNode("div",Hje,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.value,G=>(c.openBlock(),c.createElementBlock("span",{key:G.key,onClick:ne=>a(G)},c.toDisplayString(G.label),9,Wje))),128))])]),c.createElementVNode("div",jje,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.value,(G,ne)=>(c.openBlock(),c.createBlock(C,{closable:"",type:"info",onClose:ce=>h(ne)},{default:c.withCtx(()=>[c.createElementVNode("span",null,c.toDisplayString(G.tagText),1),c.createElementVNode("span",{class:"edit",onClick:ce=>m(G)},"编辑",8,$je)]),_:2},1032,["onClose"]))),256))]),c.createVNode(K,{modelValue:r.value,"onUpdate:modelValue":w[14]||(w[14]=G=>r.value=G),title:o.value.label,width:"600","align-center":"","destroy-on-close":""},{footer:c.withCtx(()=>[c.createElementVNode("div",n$e,[c.createVNode(A,{type:"primary",onClick:d},{default:c.withCtx(()=>[c.createTextVNode("确定")]),_:1})])]),default:c.withCtx(()=>[o.value.type===void 0?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[o.value.convenientOptions.length?(c.openBlock(),c.createElementBlock("div",Uje,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value.convenientOptions,G=>(c.openBlock(),c.createBlock(A,{key:G.text,onClick:ne=>l(G)},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(G.text),1)]),_:2},1032,["onClick"]))),128))])):c.createCommentVNode("",!0),c.createElementVNode("div",qje,[Kje,c.createVNode(R,{modelValue:s.value.range[0],"onUpdate:modelValue":w[1]||(w[1]=G=>s.value.range[0]=G),style:{flex:"1"}},c.createSlots({_:2},[o.value.unitOptions.length?{name:"append",fn:c.withCtx(()=>[o.value.unitOptions.length===1?(c.openBlock(),c.createElementBlock("span",Gje,c.toDisplayString(s.value.unit[0]),1)):(c.openBlock(),c.createBlock(I,{key:1,modelValue:s.value.unit[0],"onUpdate:modelValue":w[0]||(w[0]=G=>s.value.unit[0]=G),style:{width:"72px"}},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value.unitOptions,G=>(c.openBlock(),c.createBlock(T,{label:G,value:G},null,8,["label","value"]))),256))]),_:1},8,["modelValue"]))]),key:"0"}:void 0]),1032,["modelValue"]),c.createTextVNode(" ~ "),c.createVNode(R,{modelValue:s.value.range[1],"onUpdate:modelValue":w[3]||(w[3]=G=>s.value.range[1]=G),style:{flex:"1"}},c.createSlots({_:2},[o.value.unitOptions.length?{name:"append",fn:c.withCtx(()=>[o.value.unitOptions.length===1?(c.openBlock(),c.createElementBlock("span",Yje,c.toDisplayString(s.value.unit[1]),1)):(c.openBlock(),c.createBlock(I,{key:1,modelValue:s.value.unit[1],"onUpdate:modelValue":w[2]||(w[2]=G=>s.value.unit[1]=G),style:{width:"72px"}},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value.unitOptions,G=>(c.openBlock(),c.createBlock(T,{label:G,value:G},null,8,["label","value"]))),256))]),_:1},8,["modelValue"]))]),key:"0"}:void 0]),1032,["modelValue"])])],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[o.value.key==="st"?(c.openBlock(),c.createElementBlock("div",Zje,[c.createVNode(V,{modelValue:s.value.st,"onUpdate:modelValue":w[4]||(w[4]=G=>s.value.st=G)},{default:c.withCtx(()=>[c.createVNode(O,{label:1},{default:c.withCtx(()=>[c.createTextVNode("是")]),_:1}),c.createVNode(O,{label:0},{default:c.withCtx(()=>[c.createTextVNode("否")]),_:1})]),_:1},8,["modelValue"])])):c.createCommentVNode("",!0),o.value.key==="tFeaturelncomes"?(c.openBlock(),c.createElementBlock("div",Qje,[c.createElementVNode("div",Xje,[c.createVNode(A,{onClick:w[5]||(w[5]=G=>u("≤0"))},{default:c.withCtx(()=>[c.createTextVNode("≤0")]),_:1}),c.createVNode(A,{onClick:w[6]||(w[6]=G=>u("≥0"))},{default:c.withCtx(()=>[c.createTextVNode("≥0")]),_:1}),c.createVNode(A,{onClick:w[7]||(w[7]=G=>u("五年内有四年以上盈利超过5千万"))},{default:c.withCtx(()=>[c.createTextVNode("五年内有四年以上盈利超过5千万")]),_:1}),c.createVNode(A,{onClick:w[8]||(w[8]=G=>u("≥10亿"))},{default:c.withCtx(()=>[c.createTextVNode("≥10亿")]),_:1}),c.createVNode(A,{onClick:w[9]||(w[9]=G=>u("≥20亿"))},{default:c.withCtx(()=>[c.createTextVNode("≥20亿")]),_:1})]),c.createElementVNode("div",Jje,[e$e,c.createElementVNode("div",null,[c.createVNode(j,{modelValue:s.value.withFewYears,"onUpdate:modelValue":w[10]||(w[10]=G=>s.value.withFewYears=G),"controls-position":"right"},null,8,["modelValue"]),c.createTextVNode(" 年内 "),c.createVNode(j,{modelValue:s.value.yearsCount,"onUpdate:modelValue":w[11]||(w[11]=G=>s.value.yearsCount=G),"controls-position":"right"},null,8,["modelValue"]),c.createTextVNode(" 年以上盈利"+c.toDisplayString(s.value.rule===1?"超":"跌")+"过 ",1),c.createVNode(j,{modelValue:s.value.netProfit,"onUpdate:modelValue":w[12]||(w[12]=G=>s.value.netProfit=G),"controls-position":"right"},null,8,["modelValue"]),c.createTextVNode(" 亿 ")])])])):c.createCommentVNode("",!0),o.value.key==="optionsCpType"?(c.openBlock(),c.createElementBlock("div",t$e,[c.createVNode(V,{modelValue:s.value.optionsCpType,"onUpdate:modelValue":w[13]||(w[13]=G=>s.value.optionsCpType=G)},{default:c.withCtx(()=>[c.createVNode(O,{label:1},{default:c.withCtx(()=>[c.createTextVNode("看涨")]),_:1}),c.createVNode(O,{label:2},{default:c.withCtx(()=>[c.createTextVNode("看跌")]),_:1})]),_:1},8,["modelValue"])])):c.createCommentVNode("",!0)],64))]),_:1},8,["modelValue","title"])])):c.createCommentVNode("",!0)}}},[["__scopeId","data-v-0a691a79"]]),f4t="",Qb=i=>(c.pushScopeId("data-v-6e54eaf3"),i=i(),c.popScopeId(),i),r$e={class:"variety-search"},o$e={key:0,class:"variety-search-row"},s$e={class:"title"},a$e=Qb(()=>c.createElementVNode("span",null,"品种市场: ",-1)),l$e={key:1,class:"variety-search-row"},u$e={class:"title"},c$e=Qb(()=>c.createElementVNode("span",null,"常用选项: ",-1)),d$e={key:2,class:"variety-search-row"},h$e={class:"title"},f$e=Qb(()=>c.createElementVNode("span",null,"自定标签: ",-1)),g$e={key:3,class:"variety-search-row"},m$e={class:"title"},p$e=Qb(()=>c.createElementVNode("span",null,"因子筛选: ",-1)),b$e=lo({__name:"index",props:c.mergeModels({config:{type:Object,default:{}}},{searchData:{default:{varietyMarket:null,commonOption:[],customTag:[],factorScreen:[],commonIndicator:[]}},searchDataModifiers:{}}),emits:["update:searchData"],setup(i,{expose:e}){const t=i,n=c.useModel(i,"searchData"),r=c.computed(()=>{const d={};return Object.keys(xG).forEach(h=>{const m=xG[h],v=t.config[h]??{},w={...m,...v};d[h]=w}),d}),o=c.computed(()=>r.value.varietyMarket.options),s=c.computed(()=>{const{varietyMarket:d}=n.value;if(d){const h=o.value.find(({value:m})=>m===d).memo;return r.value.commonOption.options.filter(({value:m})=>h.includes(m))}else return r.value.commonOption.options});c.watch(()=>s.value,d=>{n.value.commonOption.length&&(n.value.commonOption=n.value.commonOption.filter(h=>d.find(({value:m})=>m===h)))});const a=c.computed(()=>r.value.customTag.options),l=d=>{["commonOption","customTag","factorScreen","commonIndicator"].includes(d)?n.value[d]=[]:n.value[d]=null};return e({formatData:d=>{const h={};d.varietyMarket&&(h.exchangeId=String(d.varietyMarket)),d.commonOption&&d.commonOption.length&&(h.optionId=d.commonOption.join(",")),d.customTag&&d.customTag.length&&(h.tagIds=d.customTag),d.factorScreen&&d.factorScreen.length&&(h.tbFeatureFactorScores=d.factorScreen.map(T=>({freqId:T.cycle,factorId:T.factor,startScore:T.score[0],endScore:T.score[1]})));const m=["expireDays","virtualRealDegree","yearProfitRate","impliedVolatility","levelMultiplier","turnover","volume","openInterest","optionsCpType","optionGear"],v=d.commonIndicator.reduce((T,I)=>{const{key:R,type:O,range:V,unit:j}=I;if(R==="dividendYield"){let[K,G]=V;["",null].includes(K)||(K=K/100),["",null].includes(G)||(G=G/100),T.push({column:I.key,start:K,end:G})}else if(O===void 0&&!m.includes(R)){let[K,G]=V;if(!["",null].includes(K))switch(j[0]){case"亿":K=K*1e8;break;case"千万":K=K*1e7;break;default:K=K;break}if(!["",null].includes(G))switch(j[1]){case"亿":G=G*1e8;break;case"千万":G=G*1e7;break;default:G=G;break}T.push({column:I.key,start:K,end:G})}return T},[]);v.length&&(h.query=v);const w=d.commonIndicator.find(({key:T})=>T==="st");w&&(h.st=w.st);const C=d.commonIndicator.find(({key:T})=>T==="tFeaturelncomes");C&&(h.netProfitQueryDto={...C,netProfit:C.netProfit*1e8});const A={};return d.commonIndicator.forEach(T=>{const{key:I}=T;switch(I){case"expireDays":["",null].includes(T.range[0])||(A.minExpireDays=T.range[0]),["",null].includes(T.range[1])||(A.maxExpireDays=T.range[1]);break;case"virtualRealDegree":["",null].includes(T.range[0])||(A.minVirtualRealDegree=T.range[0]/100),["",null].includes(T.range[1])||(A.maxVirtualRealDegree=T.range[1]/100);break;case"yearProfitRate":["",null].includes(T.range[0])||(A.minYearProfitRate=T.range[0]/100),["",null].includes(T.range[1])||(A.maxYearProfitRate=T.range[1]/100);break;case"impliedVolatility":["",null].includes(T.range[0])||(A.minImpliedVolatility=T.range[0]/100),["",null].includes(T.range[1])||(A.maxImpliedVolatility=T.range[1]/100);break;case"levelMultiplier":["",null].includes(T.range[0])||(A.minLevelMultiplier=T.range[0]),["",null].includes(T.range[1])||(A.maxLevelMultiplier=T.range[1]);break;case"turnover":["",null].includes(T.range[0])||(A.minTurnover=T.range[0]*1e4),["",null].includes(T.range[1])||(A.maxTurnover=T.range[1]*1e4);break;case"volume":["",null].includes(T.range[0])||(A.minVolume=T.range[0]),["",null].includes(T.range[1])||(A.maxVolume=T.range[1]);break;case"openInterest":["",null].includes(T.range[0])||(A.minOpenInterest=T.range[0]),["",null].includes(T.range[1])||(A.maxOpenInterest=T.range[1]);break;case"optionsCpType":A.optionsCpType=T.optionsCpType;break;case"optionGear":["",null].includes(T.range[0])||(A.minOptionGear=T.range[0]),["",null].includes(T.range[1])||(A.maxOptionGear=T.range[1]);break}}),Object.keys(A).length&&(h.searchOptionDto=A),h}}),(d,h)=>{var A,T,I,R;const m=WI,v=jI,w=o0,C=tfe;return c.openBlock(),c.createElementBlock("div",r$e,[(A=r.value.varietyMarket)!=null&&A.show?(c.openBlock(),c.createElementBlock("div",o$e,[c.createElementVNode("div",s$e,[a$e,c.createElementVNode("span",{onClick:h[0]||(h[0]=O=>l("varietyMarket"))},"不限")]),c.createVNode(v,{modelValue:n.value.varietyMarket,"onUpdate:modelValue":h[1]||(h[1]=O=>n.value.varietyMarket=O),size:"small"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value,({label:O,value:V})=>(c.openBlock(),c.createBlock(m,{label:V,key:V},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(O),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])):c.createCommentVNode("",!0),(T=r.value.commonOption)!=null&&T.show&&s.value.length?(c.openBlock(),c.createElementBlock("div",l$e,[c.createElementVNode("div",u$e,[c$e,c.createElementVNode("span",{onClick:h[2]||(h[2]=O=>l("commonOption"))},"不限")]),c.createVNode(C,{modelValue:n.value.commonOption,"onUpdate:modelValue":h[3]||(h[3]=O=>n.value.commonOption=O),size:"small"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(s.value,({label:O,value:V})=>(c.openBlock(),c.createBlock(w,{label:V,key:V},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(O),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])):c.createCommentVNode("",!0),(I=r.value.customTag)!=null&&I.show&&a.value.length?(c.openBlock(),c.createElementBlock("div",d$e,[c.createElementVNode("div",h$e,[f$e,c.createElementVNode("span",{onClick:h[4]||(h[4]=O=>l("customTag"))},"不限")]),c.createVNode(C,{modelValue:n.value.customTag,"onUpdate:modelValue":h[5]||(h[5]=O=>n.value.customTag=O),size:"small"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(a.value,({label:O,value:V})=>(c.openBlock(),c.createBlock(w,{label:V,key:V},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(O),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])):c.createCommentVNode("",!0),(R=r.value.factorScreen)!=null&&R.show?(c.openBlock(),c.createElementBlock("div",g$e,[c.createElementVNode("div",m$e,[p$e,c.createElementVNode("span",{onClick:h[6]||(h[6]=O=>l("factorScreen"))},"不限")]),c.createVNode(Fje,{data:n.value.factorScreen,"onUpdate:data":h[7]||(h[7]=O=>n.value.factorScreen=O),config:r.value.factorScreen},null,8,["data","config"])])):c.createCommentVNode("",!0),c.createVNode(i$e,{data:n.value.commonIndicator,"onUpdate:data":h[8]||(h[8]=O=>n.value.commonIndicator=O),varietyMarket:n.value.varietyMarket,commonOption:n.value.commonOption,config:r.value.commonIndicator},null,8,["data","varietyMarket","commonOption","config"])])}}},[["__scopeId","data-v-6e54eaf3"]]),_$e={install(i){i.component("st-varietySearch",b$e)}},m4t="",p4t="",b4t="",v$e={key:0,class:"footer-box"},y$e={__name:"index",props:c.mergeModels({tableData:{type:Array,default:[]},tableColumn:{type:Array,default:[]},tableLoading:{type:[String,null],default:null},config:{type:Object}},{tableActiveData:{default:()=>[]},tableActiveDataModifiers:{}}),emits:c.mergeModels(["touchBottom"],["update:tableActiveData"]),setup(i,{emit:e}){const t=e,n=i,r=c.computed(()=>({headerHeight:50,rowHeight:50,tableActiveNum:9,tableActiveKey:"id",pageUpDownEnabled:!0,...n.config})),o=c.ref(null),s=c.ref(0);let a=0,l=!1,u=null;const d=c.useModel(i,"tableActiveData"),h=c.computed(()=>d.value.map(T=>T[r.value.tableActiveKey])),m=({rowData:T,rowIndex:I})=>{const{tableActiveNum:R,tableActiveKey:O}=r.value;if(h.value.includes(T[O]))return;const V=Math.floor(I/R)*R,j=V+R;d.value=n.tableData.slice(V,j)},v=({code:T})=>{const{tableData:I}=n,{tableActiveNum:R,tableActiveKey:O,pageUpDownEnabled:V}=r.value;if(!I.length||!V)return;const j=I.findIndex(ce=>ce[O]===h.value.at(0)),K=I.findIndex(ce=>ce[O]===h.value.at(-1));let G=null,ne=null;switch(T){case"PageUp":if(j===0)return;G=j-R>0?j-R:0,ne=G+R-1,d.value=I.slice(G,ne+1),C(G,"PageUp");break;case"PageDown":if(K===I.length-1)return;G=j+R,ne=G+R-1,d.value=I.slice(G,ne+1),C(ne,"PageDown");break}},w=T=>{l||(a===T.scrollLeft&&T.yAxisScrollDir==="backward"&&(s.value=0),a=T.scrollLeft)},C=(T,I)=>{T!==null&&(clearTimeout(u),l=!0,I==="PageUp"?s.value=0:T>=n.tableData.length-1&&(s.value=30,t("touchBottom")),c.nextTick(()=>{o.value.scrollToRow(T),o.value.scrollToLeft(a),u=setTimeout(()=>{l=!1},500)}))},A=({rowData:T})=>{if(!d.value.length)return;let I="";const{tableActiveKey:R}=r.value;return T[R]===h.value[0]&&(I+=" virtual-table-active-start"),h.value.includes(T[R])&&(I+=" virtual-table-active-row"),T[R]===h.value[h.value.length-1]&&(I+=" virtual-table-active-end"),I};return c.onMounted(()=>{window.addEventListener("keydown",v)}),c.watch(()=>n.tableLoading,T=>{T||(s.value=0)}),c.onUnmounted(()=>{window.removeEventListener("keydown",v)}),(T,I)=>{const R=Oy,O=i0,V=qfe,j=Mpe,K=Ipe;return c.openBlock(),c.createBlock(K,null,{default:c.withCtx(({height:G,width:ne})=>[c.createVNode(j,{ref_key:"tableRef",ref:o,id:"virtualTable",fixed:"",data:i.tableData,columns:i.tableColumn,width:ne,height:G,"header-height":r.value.headerHeight,"row-height":r.value.rowHeight,"row-class":A,"row-event-handlers":{onClick:m},"footer-height":s.value,"scrollbar-always-on":"",onScroll:w,onEndReached:I[0]||(I[0]=ce=>C(i.tableData.length-1,"PageDown"))},{empty:c.withCtx(()=>[c.createVNode(R,{description:"暂无数据",style:{height:"100%"}})]),footer:c.withCtx(()=>[s.value?(c.openBlock(),c.createElementBlock("div",v$e,[i.tableLoading==="more"?(c.openBlock(),c.createBlock(V,{key:0},{default:c.withCtx(()=>[c.createVNode(O,{type:"primary",text:"",loading:""},{default:c.withCtx(()=>[c.createTextVNode("正在加载更多数据")]),_:1})]),_:1})):i.tableLoading==="all"?(c.openBlock(),c.createBlock(V,{key:1},{default:c.withCtx(()=>[c.createTextVNode(" 已无更多数据 ")]),_:1})):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)]),_:2},1032,["data","columns","width","height","header-height","row-height","row-event-handlers","footer-height"])]),_:1})}}},_4t="",w$e=lo(y$e,[["__scopeId","data-v-7e702a8a"]]),C$e={install(i){i.component("st-virtualTable",w$e)}},S$e={install(i){t5e.install(i),o5e.install(i),l5e.install(i),H_e.install(i),tve.install(i),uve.install(i),fve.install(i),_je.install(i),wje.install(i),xje.install(i),Lje.install(i),Aje.install(i),_$e.install(i),C$e.install(i)}};/*!-----------------------------------------------------------------------------
797
797
  * Copyright (c) Microsoft Corporation. All rights reserved.
798
798
  * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
799
799
  * Released under the MIT license
@@ -217280,7 +217280,7 @@ tft({
217280
217280
  extensions: [".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi"],
217281
217281
  aliases: ["Python", "py"],
217282
217282
  firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
217283
- loader: () => import("./python-8e5e5290.js")
217283
+ loader: () => import("./python-5c6d35df.js")
217284
217284
  });
217285
217285
  const nft = /* @__PURE__ */ Ht({
217286
217286
  __name: "index",
@@ -217913,7 +217913,7 @@ const OU = {
217913
217913
  show: !0,
217914
217914
  options: [
217915
217915
  { label: "ETF", value: 2, memo: [] },
217916
- { label: "A股", value: 3, memo: [4, 6, 12, 13, 14, 15] },
217916
+ { label: "A股", value: 3, memo: [4, 6, 12, 14, 15] },
217917
217917
  { label: "期货", value: 4, memo: [1, 2, 3, 5, 7, 8, 9, 10] },
217918
217918
  { label: "港股", value: 5, memo: [4, 6, 14] },
217919
217919
  { label: "外盘", value: 6, memo: [1, 2, 3, 5, 7, 8, 9, 10] },
@@ -217925,20 +217925,19 @@ const OU = {
217925
217925
  commonOption: {
217926
217926
  show: !0,
217927
217927
  options: [
217928
+ { label: "个股", value: 14 },
217928
217929
  { label: "期货主连", value: 1 },
217929
217930
  { label: "期货主力", value: 2 },
217930
217931
  { label: "期货加权", value: 3 },
217931
217932
  { label: "常用股票指数", value: 4 },
217932
217933
  { label: "期货收益率指数", value: 5 },
217933
- { label: "股票板块指数", value: 6 },
217934
+ { label: "行业板块指数", value: 6 },
217934
217935
  { label: "次主力合约", value: 7 },
217935
217936
  { label: "期货次主连", value: 8 },
217936
217937
  { label: "期货板块收益率指数", value: 9 },
217937
217938
  { label: "期货板块加权指数", value: 10 },
217938
217939
  { label: "期权", value: 11 },
217939
- { label: "板块价差指数", value: 12 },
217940
- { label: "行业板块指数", value: 13 },
217941
- { label: "个股", value: 14 },
217940
+ { label: "价差板块指数", value: 12 },
217942
217941
  { label: "概念板块指数", value: 15 }
217943
217942
  ]
217944
217943
  },
@@ -217965,7 +217964,7 @@ const OU = {
217965
217964
  label: "总市值",
217966
217965
  parent: {
217967
217966
  varietyMarketIds: [3, 5, 7],
217968
- commonOptionIds: [4, 6, 12, 13, 14, 15]
217967
+ commonOptionIds: [4, 6, 12, 14, 15]
217969
217968
  },
217970
217969
  // 便捷选项
217971
217970
  convenientOptions: [
@@ -217989,7 +217988,7 @@ const OU = {
217989
217988
  label: "流通市值",
217990
217989
  parent: {
217991
217990
  varietyMarketIds: [3, 5, 7],
217992
- commonOptionIds: [4, 6, 12, 13, 14, 15]
217991
+ commonOptionIds: [4, 6, 12, 14, 15]
217993
217992
  },
217994
217993
  // 便捷选项
217995
217994
  convenientOptions: [
@@ -218013,7 +218012,7 @@ const OU = {
218013
218012
  label: "总股本",
218014
218013
  parent: {
218015
218014
  varietyMarketIds: [3, 5, 7],
218016
- commonOptionIds: [4, 6, 12, 13, 14, 15]
218015
+ commonOptionIds: [4, 6, 12, 14, 15]
218017
218016
  },
218018
218017
  // 便捷选项
218019
218018
  convenientOptions: [
@@ -218034,7 +218033,7 @@ const OU = {
218034
218033
  label: "流通股本",
218035
218034
  parent: {
218036
218035
  varietyMarketIds: [3, 5, 7],
218037
- commonOptionIds: [4, 6, 12, 13, 14, 15]
218036
+ commonOptionIds: [4, 6, 12, 14, 15]
218038
218037
  },
218039
218038
  // 便捷选项
218040
218039
  convenientOptions: [
@@ -218056,7 +218055,7 @@ const OU = {
218056
218055
  label: "换手率(实)",
218057
218056
  parent: {
218058
218057
  varietyMarketIds: [3, 5, 7],
218059
- commonOptionIds: [4, 6, 12, 13, 14, 15]
218058
+ commonOptionIds: [4, 6, 12, 14, 15]
218060
218059
  },
218061
218060
  // 便捷选项
218062
218061
  convenientOptions: [
@@ -218076,7 +218075,7 @@ const OU = {
218076
218075
  label: "市盈率",
218077
218076
  parent: {
218078
218077
  varietyMarketIds: [3, 5, 7],
218079
- commonOptionIds: [4, 6, 12, 13, 14, 15]
218078
+ commonOptionIds: [4, 6, 12, 14, 15]
218080
218079
  },
218081
218080
  // 便捷选项
218082
218081
  convenientOptions: [
@@ -218098,7 +218097,7 @@ const OU = {
218098
218097
  label: "每股净收益",
218099
218098
  parent: {
218100
218099
  varietyMarketIds: [3, 5, 7],
218101
- commonOptionIds: [4, 6, 12, 13, 14, 15]
218100
+ commonOptionIds: [4, 6, 12, 14, 15]
218102
218101
  },
218103
218102
  // 便捷选项
218104
218103
  convenientOptions: [
@@ -218120,7 +218119,7 @@ const OU = {
218120
218119
  label: "是否ST",
218121
218120
  parent: {
218122
218121
  varietyMarketIds: [3, 5, 7],
218123
- commonOptionIds: [4, 6, 12, 13, 14, 15]
218122
+ commonOptionIds: [4, 6, 12, 14, 15]
218124
218123
  },
218125
218124
  type: "custom"
218126
218125
  },
@@ -218130,7 +218129,7 @@ const OU = {
218130
218129
  label: "市净率",
218131
218130
  parent: {
218132
218131
  varietyMarketIds: [3, 5, 7],
218133
- commonOptionIds: [4, 6, 12, 13, 14, 15]
218132
+ commonOptionIds: [4, 6, 12, 14, 15]
218134
218133
  },
218135
218134
  // 便捷选项
218136
218135
  convenientOptions: [
@@ -218151,7 +218150,7 @@ const OU = {
218151
218150
  label: "成交额",
218152
218151
  parent: {
218153
218152
  varietyMarketIds: [3, 5, 7],
218154
- commonOptionIds: [4, 6, 12, 13, 14, 15]
218153
+ commonOptionIds: [4, 6, 12, 14, 15]
218155
218154
  },
218156
218155
  // 便捷选项
218157
218156
  convenientOptions: [
@@ -218173,7 +218172,7 @@ const OU = {
218173
218172
  label: "净资产收益率roe",
218174
218173
  parent: {
218175
218174
  varietyMarketIds: [3, 5, 7],
218176
- commonOptionIds: [4, 6, 12, 13, 14, 15]
218175
+ commonOptionIds: [4, 6, 12, 14, 15]
218177
218176
  },
218178
218177
  // 便捷选项
218179
218178
  convenientOptions: [
@@ -218195,7 +218194,7 @@ const OU = {
218195
218194
  label: "净利润",
218196
218195
  parent: {
218197
218196
  varietyMarketIds: [3, 5, 7],
218198
- commonOptionIds: [4, 6, 12, 13, 14, 15]
218197
+ commonOptionIds: [4, 6, 12, 14, 15]
218199
218198
  },
218200
218199
  type: "custom"
218201
218200
  },
@@ -218205,7 +218204,7 @@ const OU = {
218205
218204
  label: "股息率",
218206
218205
  parent: {
218207
218206
  varietyMarketIds: [3, 5, 7],
218208
- commonOptionIds: [4, 6, 12, 13, 14, 15]
218207
+ commonOptionIds: [4, 6, 12, 14, 15]
218209
218208
  },
218210
218209
  // 便捷选项
218211
218210
  convenientOptions: [
@@ -1,4 +1,4 @@
1
- import { m as a } from "./index-d4fc9911.js";
1
+ import { m as a } from "./index-12553849.js";
2
2
  import "vue";
3
3
  import "echarts";
4
4
  /*!-----------------------------------------------------------------------------
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "st-comp",
3
3
  "public": true,
4
- "version": "0.0.78",
4
+ "version": "0.0.79",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -4,7 +4,7 @@ export default {
4
4
  show: true,
5
5
  options: [
6
6
  { label: "ETF", value: 2, memo: [] },
7
- { label: "A股", value: 3, memo: [4, 6, 12, 13, 14, 15] },
7
+ { label: "A股", value: 3, memo: [4, 6, 12, 14, 15] },
8
8
  { label: "期货", value: 4, memo: [1, 2, 3, 5, 7, 8, 9, 10] },
9
9
  { label: "港股", value: 5, memo: [4, 6, 14] },
10
10
  { label: "外盘", value: 6, memo: [1, 2, 3, 5, 7, 8, 9, 10] },
@@ -16,20 +16,19 @@ export default {
16
16
  commonOption: {
17
17
  show: true,
18
18
  options: [
19
+ { label: "个股", value: 14 },
19
20
  { label: "期货主连", value: 1 },
20
21
  { label: "期货主力", value: 2 },
21
22
  { label: "期货加权", value: 3 },
22
23
  { label: "常用股票指数", value: 4 },
23
24
  { label: "期货收益率指数", value: 5 },
24
- { label: "股票板块指数", value: 6 },
25
+ { label: "行业板块指数", value: 6 },
25
26
  { label: "次主力合约", value: 7 },
26
27
  { label: "期货次主连", value: 8 },
27
28
  { label: "期货板块收益率指数", value: 9 },
28
29
  { label: "期货板块加权指数", value: 10 },
29
30
  { label: "期权", value: 11 },
30
- { label: "板块价差指数", value: 12 },
31
- { label: "行业板块指数", value: 13 },
32
- { label: "个股", value: 14 },
31
+ { label: "价差板块指数", value: 12 },
33
32
  { label: "概念板块指数", value: 15 },
34
33
  ],
35
34
  },
@@ -56,7 +55,7 @@ export default {
56
55
  label: "总市值",
57
56
  parent: {
58
57
  varietyMarketIds: [3, 5, 7],
59
- commonOptionIds: [4, 6, 12, 13, 14, 15],
58
+ commonOptionIds: [4, 6, 12, 14, 15],
60
59
  },
61
60
  // 便捷选项
62
61
  convenientOptions: [
@@ -80,7 +79,7 @@ export default {
80
79
  label: "流通市值",
81
80
  parent: {
82
81
  varietyMarketIds: [3, 5, 7],
83
- commonOptionIds: [4, 6, 12, 13, 14, 15],
82
+ commonOptionIds: [4, 6, 12, 14, 15],
84
83
  },
85
84
  // 便捷选项
86
85
  convenientOptions: [
@@ -104,7 +103,7 @@ export default {
104
103
  label: "总股本",
105
104
  parent: {
106
105
  varietyMarketIds: [3, 5, 7],
107
- commonOptionIds: [4, 6, 12, 13, 14, 15],
106
+ commonOptionIds: [4, 6, 12, 14, 15],
108
107
  },
109
108
  // 便捷选项
110
109
  convenientOptions: [
@@ -125,7 +124,7 @@ export default {
125
124
  label: "流通股本",
126
125
  parent: {
127
126
  varietyMarketIds: [3, 5, 7],
128
- commonOptionIds: [4, 6, 12, 13, 14, 15],
127
+ commonOptionIds: [4, 6, 12, 14, 15],
129
128
  },
130
129
  // 便捷选项
131
130
  convenientOptions: [
@@ -147,7 +146,7 @@ export default {
147
146
  label: "换手率(实)",
148
147
  parent: {
149
148
  varietyMarketIds: [3, 5, 7],
150
- commonOptionIds: [4, 6, 12, 13, 14, 15],
149
+ commonOptionIds: [4, 6, 12, 14, 15],
151
150
  },
152
151
  // 便捷选项
153
152
  convenientOptions: [
@@ -167,7 +166,7 @@ export default {
167
166
  label: "市盈率",
168
167
  parent: {
169
168
  varietyMarketIds: [3, 5, 7],
170
- commonOptionIds: [4, 6, 12, 13, 14, 15],
169
+ commonOptionIds: [4, 6, 12, 14, 15],
171
170
  },
172
171
  // 便捷选项
173
172
  convenientOptions: [
@@ -189,7 +188,7 @@ export default {
189
188
  label: "每股净收益",
190
189
  parent: {
191
190
  varietyMarketIds: [3, 5, 7],
192
- commonOptionIds: [4, 6, 12, 13, 14, 15],
191
+ commonOptionIds: [4, 6, 12, 14, 15],
193
192
  },
194
193
  // 便捷选项
195
194
  convenientOptions: [
@@ -211,7 +210,7 @@ export default {
211
210
  label: "是否ST",
212
211
  parent: {
213
212
  varietyMarketIds: [3, 5, 7],
214
- commonOptionIds: [4, 6, 12, 13, 14, 15],
213
+ commonOptionIds: [4, 6, 12, 14, 15],
215
214
  },
216
215
  type: "custom",
217
216
  },
@@ -221,7 +220,7 @@ export default {
221
220
  label: "市净率",
222
221
  parent: {
223
222
  varietyMarketIds: [3, 5, 7],
224
- commonOptionIds: [4, 6, 12, 13, 14, 15],
223
+ commonOptionIds: [4, 6, 12, 14, 15],
225
224
  },
226
225
  // 便捷选项
227
226
  convenientOptions: [
@@ -242,7 +241,7 @@ export default {
242
241
  label: "成交额",
243
242
  parent: {
244
243
  varietyMarketIds: [3, 5, 7],
245
- commonOptionIds: [4, 6, 12, 13, 14, 15],
244
+ commonOptionIds: [4, 6, 12, 14, 15],
246
245
  },
247
246
  // 便捷选项
248
247
  convenientOptions: [
@@ -264,7 +263,7 @@ export default {
264
263
  label: "净资产收益率roe",
265
264
  parent: {
266
265
  varietyMarketIds: [3, 5, 7],
267
- commonOptionIds: [4, 6, 12, 13, 14, 15],
266
+ commonOptionIds: [4, 6, 12, 14, 15],
268
267
  },
269
268
  // 便捷选项
270
269
  convenientOptions: [
@@ -286,7 +285,7 @@ export default {
286
285
  label: "净利润",
287
286
  parent: {
288
287
  varietyMarketIds: [3, 5, 7],
289
- commonOptionIds: [4, 6, 12, 13, 14, 15],
288
+ commonOptionIds: [4, 6, 12, 14, 15],
290
289
  },
291
290
  type: "custom",
292
291
  },
@@ -296,7 +295,7 @@ export default {
296
295
  label: "股息率",
297
296
  parent: {
298
297
  varietyMarketIds: [3, 5, 7],
299
- commonOptionIds: [4, 6, 12, 13, 14, 15],
298
+ commonOptionIds: [4, 6, 12, 14, 15],
300
299
  },
301
300
  // 便捷选项
302
301
  convenientOptions: [