szld-libs 0.4.57 → 0.4.59

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.
@@ -499,7 +499,7 @@ ${n}
499
499
  margin: 0;
500
500
  padding: 0;
501
501
  }
502
- `,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]);const c=bL({extensions:[I7,TL.configure({multicolor:!0}),_L.configure({types:["heading","paragraph"]}),x_,AL,j7.configure({types:["textStyle"]})],content:r,editable:!e,editorProps:{attributes:{class:"MyRichText_ProseMirror"}},onUpdate:({editor:p})=>{s(p.getHTML())}});return c?Ne("div",{style:{...n,border:"1px solid #d9d9d9",borderRadius:6,overflow:"hidden"},children:[q("div",{style:{borderBottom:"1px solid #d9d9d9",padding:8,background:"#fafafa"},children:Ne(fe.Space,{wrap:!0,children:[q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"011"):"加粗",children:q(fe.Button,{type:"text",icon:q(R$,{}),onClick:()=>c.chain().focus().toggleBold().run(),disabled:e,className:c.isActive("bold")?"ant-btn-primary":""})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"012"):"斜体",children:q(fe.Button,{type:"text",icon:q(sq,{}),onClick:()=>c.chain().focus().toggleItalic().run(),disabled:e,className:c.isActive("italic")?"ant-btn-primary":""})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"013"):"下划线",children:q(fe.Button,{type:"text",icon:q(jq,{}),onClick:()=>c.chain().focus().toggleUnderline().run(),disabled:e,className:c.isActive("underline")?"ant-btn-primary":""})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"014"):"删除线",children:q(fe.Button,{type:"text",icon:q(Rq,{}),onClick:()=>c.chain().focus().toggleStrike().run(),disabled:e,className:c.isActive("strike")?"ant-btn-primary":""})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"015"):"清除格式",children:q(fe.Button,{type:"text",icon:q(I$,{}),onClick:()=>c.chain().focus().unsetAllMarks().clearNodes().run(),disabled:e})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"016"):"文字颜色",children:q(fe.ColorPicker,{value:u,size:"small",disabled:e,onChangeComplete:p=>{d(p),c.chain().focus().setColor(p.toHexString()).run()}})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"017"):"字体大小",children:q(fe.Select,{defaultValue:"16px",style:{width:100},disabled:e,onChange:p=>{c.chain().focus().setFontSize(p).run()},options:[{value:"12px",label:"12px"},{value:"14px",label:"14px"},{value:"16px",label:"16px"},{value:"18px",label:"18px"},{value:"20px",label:"20px"},{value:"24px",label:"24px"},{value:"28px",label:"28px"},{value:"32px",label:"32px"}],suffixIcon:q(eq,{})})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"018"):"左对齐",children:q(fe.Button,{type:"text",icon:q(v$,{}),onClick:()=>c.chain().focus().setTextAlign("left").run(),disabled:e,className:c.isActive({textAlign:"left"})?"ant-btn-primary":""})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"019"):"居中对齐",children:q(fe.Button,{type:"text",icon:q(d$,{}),onClick:()=>c.chain().focus().setTextAlign("center").run(),disabled:e,className:c.isActive({textAlign:"center"})?"ant-btn-primary":""})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"020"):"右对齐",children:q(fe.Button,{type:"text",icon:q(b$,{}),onClick:()=>c.chain().focus().setTextAlign("right").run(),disabled:e,className:c.isActive({textAlign:"right"})?"ant-btn-primary":""})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"021"):"两端对齐",children:q(fe.Button,{type:"text",icon:q(A$,{}),onClick:()=>c.chain().focus().setTextAlign("justify").run(),disabled:e,className:c.isActive({textAlign:"justify"})?"ant-btn-primary":""})}),q("span",{style:{width:1,height:20,background:"#d9d9d9",margin:"0 8px"}}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"022"):"无序列表",children:q(fe.Button,{type:"text",icon:q(Wq,{}),onClick:()=>c.chain().focus().toggleBulletList().run(),disabled:e,className:c.isActive("bulletList")?"ant-btn-primary":""})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"023"):"有序列表",children:q(fe.Button,{type:"text",icon:q(yq,{}),onClick:()=>c.chain().focus().toggleOrderedList().run(),disabled:e,className:c.isActive("orderedList")?"ant-btn-primary":""})}),q("span",{style:{width:1,height:20,background:"#d9d9d9",margin:"0 8px"}}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"024"):"链接",children:q(fe.Button,{type:"text",icon:q(fq,{}),onClick:()=>{const p=c.getAttributes("link").href,v=window.prompt(i?Pn(o,"025"):" 请输入链接地址",p);if(v!==null){if(v===""){c.chain().focus().extendMarkRange("link").unsetLink().run();return}c.chain().focus().extendMarkRange("link").setLink({href:v}).run()}},disabled:e})}),q("span",{style:{width:1,height:20,background:"#d9d9d9",margin:"0 8px"}}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"026"):"撤销",children:q(fe.Button,{type:"text",icon:q($q,{}),onClick:()=>c.chain().focus().undo().run(),disabled:e||!c.can().undo()})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"027"):"前进",children:q(fe.Button,{type:"text",icon:q(Aq,{}),onClick:()=>c.chain().focus().redo().run(),disabled:e||!c.can().redo()})})]})}),q("div",{onClick:()=>c.chain().focus().run(),children:q(g_,{editor:c,style:{minHeight:300,padding:"8px",outline:"none"}})})]}):null};Lt.extend(KR);function _ae(t){const{commonRequestWidthParams:e,uploadAction:n,commonRequest:r,formConfig:i,updateDelFileList:o,interfaceTypeDict:s,interfaceTypeSysDict:u,relatedidKey:d,actionUrlKey:c,actionUrlExtraParams:p,CustomModalComponent:v,isEdit:y,formShowType:g="form",langId:S,getTitle:E,langData:C}=t,{message:_}=fe.App.useApp(),O=G.useCallback(N=>Array.isArray(N)?N:(N==null?void 0:N.fileList)??[],[]),A=N=>{o(N)},D=G.useCallback(N=>{var ee,ne;const j=(ee=N.json)==null?void 0:ee.input,Y=(ne=N.json)==null?void 0:ne.format,K={};switch(j){case"image":case"file":case"video":case"audio":K.getValueFromEvent=O;break;case"date-picker":K.getValueFromEvent=$=>$==null?void 0:$.format(Y||"YYYY-MM-DD"),K.getValueProps=$=>({value:$?Lt($):null});break;case"time-picker":K.getValueFromEvent=$=>$==null?void 0:$.format(Y||"YYYY-MM-DD HH:mm:ss"),K.getValueProps=$=>({value:$?Lt($):null});break;case"week-picker":K.getValueFromEvent=$=>`${$==null?void 0:$.year()}-${Lt($).isoWeek()}周`,K.getValueProps=$=>{if(!$)return{value:null};const[Z,X]=$.split("-"),W=Number(Z),te=Number(X.replace("周",""));return{value:Lt().year(W).isoWeek(te)}};break;case"month-picker":K.getValueFromEvent=$=>$==null?void 0:$.format(Y||"YYYY-MM"),K.getValueProps=$=>({value:$?Lt($):null});break;case"quarter-picker":K.getValueFromEvent=$=>$==null?void 0:$.format(Y||"YYYY年第Q季度"),K.getValueProps=$=>({value:$?Lt($,Y||"YYYY年第Q季度"):null});break;case"year-picker":K.getValueFromEvent=$=>$==null?void 0:$.format(Y||"YYYY"),K.getValueProps=$=>({value:$?Lt($):null});break;case"second-picker":K.getValueFromEvent=$=>$==null?void 0:$.format(Y||"HH:mm:ss"),K.getValueProps=$=>({value:$?Lt($,Y||"HH:mm:ss"):null});break;case"range-picker":K.getValueFromEvent=$=>$==null?void 0:$.map(Z=>Z==null?void 0:Z.format(Y||"YYYY-MM-DD")),K.getValueProps=$=>{if(!($!=null&&$.length))return{value:null};if(typeof $=="string"){const Z=$.split("~");return Z.length>1?{value:(Z==null?void 0:Z.map(X=>Lt(X)))||null}:{value:[Lt($),Lt($)]}}return Array.isArray($)?{value:($==null?void 0:$.map(Z=>Lt(Z)))||null}:null};break;case"multiple-date-picker":K.getValueFromEvent=$=>$==null?void 0:$.map(Z=>Z==null?void 0:Z.format(Y||"YYYY-MM-DD")),K.getValueProps=$=>{if(typeof $=="string"){const Z=$.split(",");return{value:(Z==null?void 0:Z.map(X=>Lt(X)))||null}}return Array.isArray($)?{value:($==null?void 0:$.map(Z=>Lt(Z)))||null}:null};break}return K},[O]),M=G.useCallback(({isActive:N})=>N?q(Z3,{style:{fontSize:18,color:"#999"}}):q(n5,{style:{fontSize:18,color:"#999"}}),[]),B=(N,j)=>{var Y,K,ee,ne,$;return Ne(fe.Flex,{gap:10,vertical:j==="flex",align:"center",children:[q("span",{children:N.attrname}),((Y=N==null?void 0:N.json)==null?void 0:Y.instruction)&&j==="icon"&&q(fe.Tooltip,{title:(K=N==null?void 0:N.json)==null?void 0:K.instruction,children:q(W3,{style:{color:((ee=N==null?void 0:N.json)==null?void 0:ee["instruction-color"])??"#888888",fontSize:16,cursor:"pointer"}})})||q("span",{style:{color:((ne=N==null?void 0:N.json)==null?void 0:ne["instruction-color"])??"red"},children:($=N==null?void 0:N.json)==null?void 0:$.instruction})]})},F=G.useCallback(({itemWithJson:N,colNum:j=1,readonly:Y=!1,instructionShowMode:K="icon",radioAlign:ee="horizontal",formItemStyle:ne,relatedid:$,form:Z,defaultWidth:X=358,parentFormListField:W,isShowLabel:te=!0})=>{var Se;const ae=ad(N),re=(Se=N.json)==null?void 0:Se.hidden;let ce=N.children||[];Array.isArray(ce==null?void 0:ce[0])&&ce.length&&(ce=ce[0]);const ve=se=>{const Ae=(W==null?void 0:W.parentName)||(W==null?void 0:W.name);return Ae?Array.isArray(Ae)?[...Ae,N.attrid,se.name]:[Ae,N.attrid,se.name]:[N.attrid,se.name]};return q(fe.Col,{span:re?0:24/j,children:q(fe.Collapse,{bordered:!1,style:{backgroundColor:"transparent"},expandIcon:({isActive:se})=>M({isActive:se}),items:[{key:N.attrid,label:N.attrname,styles:{header:{paddingLeft:0}},children:q(fe.Form.List,{name:W?Array.isArray(W.name)?[...W.name,N.attrid]:[W.name,N.attrid]:N.attrid,initialValue:ae,children:(se,{add:Ae,remove:Te})=>Ne("div",{style:{display:"flex",rowGap:16,flexDirection:"column"},children:[se.map(Pe=>{const ge={...Pe,parentName:ve(Pe)};return q(fe.Card,{style:{width:X+100},size:"small",title:`${N.attrname} ${Pe.name+1}`,extra:!y&&q($3,{onClick:()=>{se.length>1?Te(Pe.name):_.warning(S&&Pn(C,"006")||"至少保留一个表单")}}),children:(ce||[]).map((Ve,Fe)=>q(G.Fragment,{children:H({item:Ve,readonly:Y,colNum:j,instructionShowMode:K,relatedid:$,form:Z,defaultWidth:X,formItemStyle:ne,radioAlign:ee,isFormListItem:!0,formListField:ge,isShowLabel:!0})},Ve.attrid||`child-${Fe}`))},Pe.key)}),!y&&q(fe.Flex,{style:{width:200},children:Ne(fe.Button,{type:"dashed",onClick:()=>Ae(),block:!0,children:["+ ",Pn(C,"004")||"新增"]})})]})})}]},N.attrid)})},[M,ad]),I=G.useCallback(({itemWithJson:N,colNum:j=1,readonly:Y=!1,instructionShowMode:K="icon",radioAlign:ee="horizontal",formItemStyle:ne,relatedid:$,form:Z,defaultWidth:X=358,isFormListItem:W=!1,formListField:te,isShowLabel:ae=!0})=>{var ce,ve,Se,se,Ae,Te,Pe,ge,Ve,Fe,gt,dt,en,zn,qn,ir,hn,vn,It,Xn,or,In,sn,Yn;const re=(ce=N.json)==null?void 0:ce.hidden;if(((ve=N.json)==null?void 0:ve.hide)===!0)return q(Jt,{});if(N.attrtype===1&&!re)return F({itemWithJson:N,colNum:j,readonly:Y,instructionShowMode:K,radioAlign:ee,formItemStyle:ne,relatedid:$,form:Z,defaultWidth:X,parentFormListField:te,isShowLabel:ae});if(N.attrtype===2)return q(Jt,{children:"实例信息"});if(N.attrtype===0){const jr=ad(N),br=(Se=N.json)==null?void 0:Se["default-prompt"],qe=Tv(N,S,C),{combinations:tt=[]}=N.json||{};if(tt!=null&&tt.length)return q(fe.Col,{span:re?0:24/j,children:q(fe.Form.Item,{label:(se=N==null?void 0:N.json)==null?void 0:se["combination-name"],required:((Ae=N.json)==null?void 0:Ae.must)&&!re,extra:(Pe=(Te=N.json)==null?void 0:Te.extraDescObj)!=null&&Pe.info?q("span",{style:{marginTop:(Ve=(ge=N.json)==null?void 0:ge.extraDescObj)!=null&&Ve.info?10:0,display:"inline-block",color:(gt=(Fe=N.json)==null?void 0:Fe.extraDescObj)==null?void 0:gt.color},children:(en=(dt=N.json)==null?void 0:dt.extraDescObj)==null?void 0:en.info}):null,children:q(fe.Space.Compact,{children:tt.map((et,ln)=>{var nn,ao,Hi,Ro,Fa;let Zn=ad(et),An=X;const hr={},pn=et.json.input||"text",ar=ne==null?void 0:ne.find(Pa=>Pa.type===pn);if(ar){const{width:Pa}=(ar==null?void 0:ar.style)||{};Pa&&(hr.width=Pa)}const tn=(nn=et==null?void 0:et.json)==null?void 0:nn["combination-width-ratio"];return tn&&(An=X*tn),q(fe.Form.Item,{hidden:(ao=et.json)==null?void 0:ao.hidden,name:te?Array.isArray(te.name)?[...te.name,et.attrid]:[te.name,et.attrid]:et.attrid,noStyle:!0,initialValue:Zn,rules:[...(Hi=et.json)!=null&&Hi.must&&!re?[{required:!0,message:br||`${qe}${et.attrname}`}]:[],...(Ro=N.json)!=null&&Ro.regexp?[{pattern:new RegExp(N.json.regexp.replace(/^\/|\/$/g,"")),message:((Fa=N.json)==null?void 0:Fa["regexp-message"])||`${N.attrname}${S==="10001"?"格式不正确":"Format is incorrect"}`}]:[]],...D(et),children:L({item:et,readonly:Y,formItemStyle:ne,radioAlign:ee,relatedid:$,form:Z,defaultWidth:An,customWidth:hr})},ln)})})},`${N.attrid}+1`)});const _t=W&&te?Array.isArray(te.name)?[...te.name,N.attrid]:[te.name,N.attrid]:N.attrid;return q(fe.Col,{span:re?0:24/j,children:q(fe.Form.Item,{name:_t,label:ae&&B(N,K)||null,initialValue:jr,hidden:re,extra:(qn=(zn=N.json)==null?void 0:zn.extraDescObj)!=null&&qn.info?q("span",{style:{marginTop:(hn=(ir=N.json)==null?void 0:ir.extraDescObj)!=null&&hn.info?10:0,display:"inline-block",color:(It=(vn=N.json)==null?void 0:vn.extraDescObj)==null?void 0:It.color},children:(or=(Xn=N.json)==null?void 0:Xn.extraDescObj)==null?void 0:or.info}):null,rules:[...(In=N.json)!=null&&In.must&&!re?[{required:!0,message:`${qe}${N.attrname}`}]:[],...(sn=N.json)!=null&&sn.regexp?[{pattern:new RegExp(N.json.regexp.replace(/^\/|\/$/g,"")),message:((Yn=N.json)==null?void 0:Yn["regexp-message"])||`${N.attrname}${S==="10001"?"格式不正确":"Format is incorrect"}`}]:[]],...D(N),children:L({item:N,readonly:Y,formItemStyle:ne,radioAlign:ee,relatedid:$,form:Z,defaultWidth:X})},N.attrid)})}return null},[B,ad,D,F]),U=async N=>{var j;try{const Y=(j=N==null?void 0:N.response)==null?void 0:j.data;if(Y){if(!e)return;const K=await e({Controlname:"DelFile",PageName:"initializationfile"},Y);if((K==null?void 0:K.ReturnValue)!==1)return _.error(K==null?void 0:K.msg),!1}else A(N);return!0}catch{return!1}},L=({item:N,readonly:j=!1,formItemStyle:Y=[],radioAlign:K="horizontal",relatedid:ee,form:ne,defaultWidth:$=358,customWidth:Z={}})=>{var Pe,ge,Ve,Fe,gt,dt,en,zn,qn,ir,hn,vn,It,Xn,or,In,sn,Yn,jr,br,qe,tt,_t;const X=N.json.input||"text",W=((Pe=N.json)==null?void 0:Pe.format)||"",te=N.attrid,ae=ad(N),re=((ge=N.json)==null?void 0:ge["default-prompt"])||"",ce=((Ve=N.json)==null?void 0:Ve["disable-date-goover"])||!1,ve=Tv(N,S,C),Se=N.json.length&&{maxLength:N.json.length}||{},se=Y.find(et=>et.type===X);let Ae=(Fe=N.json)==null?void 0:Fe["input-width"];Ae&&(Ae=g==="table"?Number(Ae)-32:Ae);const Te=Ae||$;switch(X){case"label":return q(fe.Input,{disabled:!0,value:((gt=N.json)==null?void 0:gt["label-value"])||N.attrvalue||((dt=N.json)==null?void 0:dt.default)||"-",style:{width:Te,...se==null?void 0:se.style,...Z}});case"text":return q(fe.Input,{placeholder:re||ve,...Se,disabled:j||((en=N.json)==null?void 0:en.readonly),allowClear:!0,style:{width:Te,...se==null?void 0:se.style,...Z}});case"password":return q(fe.Input.Password,{placeholder:re||ve,...Se,disabled:j||((zn=N.json)==null?void 0:zn.readonly),allowClear:!0,style:{width:Te,...se==null?void 0:se.style,...Z}});case"textarea":return q(fe.Input.TextArea,{allowClear:!0,placeholder:re||ve,rows:5,...Se,disabled:j||((qn=N.json)==null?void 0:qn.readonly),style:{width:Te,...se==null?void 0:se.style,...Z}});case"number":return q(fe.InputNumber,{controls:!1,placeholder:re||ve,...Se,disabled:j||((ir=N.json)==null?void 0:ir.readonly),style:{width:Te,...se==null?void 0:se.style,...Z}});case"select":case"mult-select":return q(wX,{item:N.json,attrid:te,readonly:j||((hn=N.json)==null?void 0:hn.readonly),style:{width:Te,...se==null?void 0:se.style,...Z},commonRequestWidthParams:e,commonRequest:r,value:ae,interfaceTypeDict:s,interfaceTypeSysDict:u,actionUrlKey:c,actionUrlExtraParams:p,getTitle:E,langId:S,onChange:et=>{if(et&&typeof et=="object"&&!Array.isArray(et)){ne.setFieldsValue({...ne.getFieldsValue(),...et});return}ne.setFieldValue(N.attrid,et)}});case"modal-mult-select":case"modal-select":return q(gX,{style:{width:Te,...se==null?void 0:se.style,...Z},item:N.json,value:N.attrvalue||N.json.default||"",commonRequestWidthParams:e,commonRequest:r,onSure:async et=>{ne.setFieldValue(N.attrid,et)},disabled:j||((vn=N.json)==null?void 0:vn.readonly),langId:S,CustomModalComponent:v});case"mul-field-modal-select":return q(mX,{style:{width:Te,...se==null?void 0:se.style,...Z},item:N.json,form:ne,attrid:te,getTitle:E,value:N.attrvalue||N.json.default||"",commonRequestWidthParams:e,commonRequest:r,onSure:async et=>{ne.setFieldsValue(et)},disabled:j||((It=N.json)==null?void 0:It.readonly),CustomModalComponent:v,langId:S});case"date-picker":case"time-picker":case"week-picker":case"month-picker":case"quarter-picker":case"year-picker":case"second-picker":{const et={"date-picker":"date","time-picker":"date","week-picker":"week","month-picker":"month","quarter-picker":"quarter","year-picker":"year","second-picker":"time"};let ln;return X==="date-picker"&&(ln=ce?zR:void 0),q(fe.DatePicker,{showTime:X==="time-picker",format:W||void 0,picker:et[X]||"date",disabled:j||((Xn=N.json)==null?void 0:Xn.readonly),disabledDate:ln,placement:"bottomLeft",style:{width:Te,...se==null?void 0:se.style,...Z}})}case"range-picker":return q(fe.DatePicker.RangePicker,{disabledDate:ce?zR:void 0,disabled:j||((or=N.json)==null?void 0:or.readonly),style:{width:Te,...se==null?void 0:se.style,...Z}});case"multiple-date-picker":return q(fe.DatePicker,{multiple:!0,maxTagCount:((In=N==null?void 0:N.json)==null?void 0:In["max-tag-count"])||1,disabled:j||((sn=N.json)==null?void 0:sn.readonly)||!1,style:{width:Te,...se==null?void 0:se.style,...Z}});case"radio":return q(AX,{radioAlign:K,commonRequest:r,commonRequestWidthParams:e,item:N.json,readonly:j||((Yn=N.json)==null?void 0:Yn.readonly),params:Se,handleUrlOptions:od,value:ae,interfaceTypeDict:s,interfaceTypeSysDict:u,actionUrlKey:c,actionUrlExtraParams:p,getTitle:E,attrid:te,langId:S,langData:C,onChange:et=>{ne.setFieldValue(N.attrid,et.target.value)}});case"checkbox":return q(xX,{radioAlign:K,commonRequest:r,commonRequestWidthParams:e,item:N.json,readonly:j||((jr=N.json)==null?void 0:jr.readonly),options:Se,value:ae,handleUrlOptions:od,interfaceTypeDict:s,interfaceTypeSysDict:u,actionUrlKey:c,actionUrlExtraParams:p,onChange:et=>{ne.setFieldValue(N.attrid,et.join(","))}});case"audio":case"file":case"image":case"video":return q(kX,{action:n&&n("initializationfile"),item:N.json,uploadType:X,langId:S,list:ae,readonly:j||((br=N.json)==null?void 0:br.readonly),relatedid:ee,relatedidKey:d,onRemove:et=>U(et)});case"cascader":return q(bX,{commonRequestWidthParams:e,commonRequest:r,item:N.json,value:N.attrvalue,style:{width:Te,...se==null?void 0:se.style,...Z},interfaceTypeDict:s,interfaceTypeSysDict:u,actionUrlKey:c,actionUrlExtraParams:p,langId:S,langData:C});case"radio-card":return q(SX,{item:N.json,readonly:j||((qe=N.json)==null?void 0:qe.readonly),onChange:et=>{ne.setFieldValue(N.attrid,et)},langId:S,commonRequestWidthParams:e});case"rich-text":return q(kae,{item:N.json,readonly:j||((tt=N.json)==null?void 0:tt.readonly),style:{width:Te,...se==null?void 0:se.style,...Z},value:N.attrvalue,langId:S,langData:C,onChange:et=>{ne.setFieldValue(N.attrid,et)}});default:return q(fe.Input,{placeholder:re||ve,...Se,showCount:!0,disabled:j||((_t=N.json)==null?void 0:_t.readonly),style:{width:Te,...se==null?void 0:se.style,...Z}})}},H=({item:N,readonly:j=!1,colNum:Y=1,instructionShowMode:K="icon",relatedid:ee,form:ne,defaultWidth:$=358,formItemStyle:Z,radioAlign:X="horizontal",isFormListItem:W=!1,formListField:te,isShowLabel:ae=!0})=>{var ve;const re=N.json||(N.info_base64===1?dc(id(N.info)):dc(N.info)),ce={...N,json:{...re,...N.json||{}}};return((ve=ce.json)==null?void 0:ve.hide)===!0?null:q(G.Fragment,{children:I({itemWithJson:ce,readonly:j,colNum:Y,instructionShowMode:K,relatedid:ee,form:ne,defaultWidth:$,formItemStyle:Z,radioAlign:X,isFormListItem:W,formListField:te,isShowLabel:ae})},ce.attrid)};return{handleRenderItem:H,handleSetFormItemInitialValue:ad}}const Tae=G.forwardRef((t,e)=>{const{formConfig:n,form:r,readonly:i=!1,relatedid:o,colNum:s=1,colSpace:u=[0,0],instructionShowMode:d="flex",defaultWidth:c=358,commonRequestWidthParams:p,uploadAction:v,commonRequest:y,formItemStyle:g=[],radioAlign:S="horizontal",interfaceTypeChildren:E="YLLRDetailAttrlist",interfaceTypeDict:C="YLZDDictList",interfaceTypeSysDict:_="YLZDSysConfigList",relatedidKey:O="relatedid",actionUrlKey:A="action-url",actionUrlExtraParams:D={},CustomModalComponent:M,formShowType:B="form",formListItemWidth:F,formListItemName:I,isEdit:U=!1,langId:L,getTitle:H}=t,N=G.useRef([]),j=$=>{N.current.push($)},[Y,K]=G.useState([]),{handleRenderItem:ee}=_ae({commonRequestWidthParams:p,uploadAction:v,commonRequest:y,updateDelFileList:j,formConfig:n,interfaceTypeChildren:E,interfaceTypeDict:C,interfaceTypeSysDict:_,relatedidKey:O,actionUrlKey:A,actionUrlExtraParams:D,CustomModalComponent:M,isEdit:U,formShowType:B,langId:L,getTitle:H,langData:Y});G.useEffect(()=>{!n||!L||ne()},[n,L]);const ne=async()=>{const $=await VR({commonRequestWidthParams:p,langId:L,params:{sysid:"3"}});K($)};return G.useImperativeHandle(e,()=>({getDelFileList:()=>N.current})),q(Jt,{children:B==="table"?q(fe.Form.List,{name:I||"customFormList",initialValue:[{}],children:($,{add:Z,remove:X})=>Ne(fe.Flex,{className:"custom-form-body",children:[Ne("div",{className:"custom-form-list",children:[q(fe.Flex,{align:"center",style:{position:"relative",backgroundColor:"#004d32"},children:q(fe.Flex,{className:"custom-form-list-header",align:"center",children:n==null?void 0:n.map((W,te)=>{var re,ce;const ae=((re=W==null?void 0:W.json)==null?void 0:re["input-width"])&&Number((ce=W==null?void 0:W.json)==null?void 0:ce["input-width"])||c;return Ne(fe.Flex,{style:{width:ae,flexShrink:0},align:"center",children:[te!==0&&q("div",{className:"line"}),q("div",{className:"custom-form-list-header-item",children:W.attrname})]},te)})})}),$.map(W=>q(fe.Flex,{align:"center",className:"custom-form-list-item-container",children:q(fe.Flex,{className:"custom-form-list-item",align:"center",children:n==null?void 0:n.map((te,ae)=>{var ce,ve;const re=((ce=te==null?void 0:te.json)==null?void 0:ce["input-width"])&&Number((ve=te==null?void 0:te.json)==null?void 0:ve["input-width"])||c;return q(fe.Flex,{align:"center",className:"custom-form-list-item-content",justify:"center",style:{width:re,flexShrink:0},children:ee({item:te,readonly:i,colNum:s,instructionShowMode:d,relatedid:o,form:r,defaultWidth:c-30,formItemStyle:g,isFormListItem:!0,formListField:W,isShowLabel:!1})},te.attrid||`child-${ae}`)})})},W.key))]}),Ne(fe.Flex,{className:"operation",vertical:!0,children:[q("a",{className:"custom-form-list-add-btn",onClick:()=>Z(),children:L&&Pn(Y,"004")||"新增"}),($==null?void 0:$.length)>0&&($==null?void 0:$.map((W,te)=>q("a",{className:"custom-form-list-del-btn",onClick:()=>{if(te===0)return fe.message.error(L&&Pn(Y,"006")||"至少保留一个表单");X(W.key)},children:L&&Pn(Y,"005")||"删除"},W.key)))]})]})}):q(fe.Row,{gutter:u,children:n.map(($,Z)=>q(G.Fragment,{children:ee({item:$,readonly:i,colNum:s,instructionShowMode:d,relatedid:o,form:r,defaultWidth:c,formItemStyle:g,radioAlign:S})},$.attrid||`form-item-${Z}`))})})}),H7=(t,e)=>{const{input:n=""}=(t==null?void 0:t.json)||{};let r="请输入",i="Please input";return["radio","checkbox","select","mult-select","modal-select","modal-mult-select","mul-field-modal-select","cascader","radio-card","date-picker","range-picker","multiple-date-picker","time-picker","week-picker","month-picker","quarter-picker","year-picker","second-picker"].includes(n)&&(r="请选择",i="Please select"),["image","file","video","audio"].includes(n)&&(r="请上传",i="Please upload"),e==="10001"?r:i},Td=t=>{var r,i,o,s,u,d,c,p;const e=(r=t.json)==null?void 0:r.input;let n=t.attrvalue||((i=t.json)==null?void 0:i.default)||"";if(e==="label"&&n&&(n=((o=t.json)==null?void 0:o["label-value"])??n??"-"),e==="range-picker"&&n)try{n=n.map(v=>new Date(v))}catch{n=void 0}if(e==="multiple-date-picker"&&n)try{n=n==null?void 0:n.split(","),n=n.map(v=>new Date(v))}catch{n=void 0}if(e==="cascader"&&n&&typeof n=="string"){const v=(s=t.json)==null?void 0:s["cascader-delimiter"];v&&(n=n.split(v).filter(Boolean))}if(["mult-select","checkbox"].includes(e)&&n&&typeof n=="string"&&(n=n.split(",").filter(Boolean)),["image","video","audio","file"].includes(e)&&n)try{n=(Array.isArray(n)?n:JSON.parse(n)).map(y=>({...y,url:y.FilePath,name:y.FileName,uid:y.FileId}))}catch{n=[]}return e==="time-picker"&&!n&&((u=t.json)!=null&&u["auto-generate"])&&((d=t.json)==null?void 0:d["auto-generate-type"])==="currenttime"&&(n=Lt().format("YYYY-MM-DD HH:mm:ss:ss")),e==="time-picker"&&!n&&((c=t.json)!=null&&c["auto-generate"])&&((p=t.json)==null?void 0:p["auto-generate-type"])==="currenttimestamp"&&(n=Lt().unix().toString()),e==="rich-text"&&n&&(n=id(n)),t.attrtype===1&&(n=Aae(t.children||[])),n||void 0},Aae=t=>{if(!(t!=null&&t.length))return[];const e=n=>n==null?void 0:n.map(r=>{const i={};return Array.isArray(r)&&r.forEach(o=>{var s;(s=o==null?void 0:o.children)!=null&&s.length?i[o.attrid]=e(o.children):i[o.attrid]=o.attrvalue}),i});return e(t)};function Oae(t){const{item:e,disabled:n,style:r,commonRequestWidthParams:i,commonRequest:o,CustomModalComponent:s,attrid:u,form:d,langId:c,getTitle:p}=t,v=fe.Form.useWatch(u,d),{message:y}=fe.App.useApp(),g=e.input,{handleUniversalHeaderToColumns:S}=n4(),[E,C]=G.useState(t.value),[_,O]=G.useState(!1),[A,D]=G.useState([]),[M,B]=G.useState([]),[F,I]=G.useState(!1),[U,L]=G.useState({PageNum:1,PageSize:6}),[H,N]=G.useState([]),[j,Y]=G.useState(0),[K,ee]=G.useState(te());G.useEffect(()=>{_&&$()},[_,U]);const ne=(re,ce)=>{D(re),B(ce)},$=async()=>{var re,ce,ve,Se,se;if(e.inputType==="url"&&(e!=null&&e["action-url"])){I(!0);try{const Ae=await i({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":e==null?void 0:e["action-url"],...U,...(e==null?void 0:e["action-url-extra-params"])||{}});if((Ae==null?void 0:Ae.ReturnValue)===0){y.error(Ae.msg),I(!1);return}const Te=Ae==null?void 0:Ae.data,Pe=(re=Te==null?void 0:Te.list)==null?void 0:re.map((Ve,Fe)=>{const gt=(U.PageNum-1)*U.PageSize+Fe;return{...Ve,_rowKey:gt}}),ge=(Pe==null?void 0:Pe.filter(Ve=>A.includes(Ve._rowKey)))||[];B(ge),N([...Pe||[]]),Y((Te==null?void 0:Te.number)||0),I(!1)}catch(Ae){I(!1),y.error(c==="10001"?Ae.msg||"参数错误":"Failed to load data")}return}if(e.inputType==="instance-url"&&(e!=null&&e["instance-source-number"])){const Ae={PageName:"PCInstanceData",Controlname:"List",InterfaceType:"YLFWLRDataList"},Te={"source-number":e==null?void 0:e["instance-source-number"],...U};try{const Pe=await i(Ae,Te);if((Pe==null?void 0:Pe.ReturnValue)===1){const Ve=(ve=((ce=Pe==null?void 0:Pe.data)==null?void 0:ce.list)||[])==null?void 0:ve.map((Fe,gt)=>{const dt=(U.PageNum-1)*U.PageSize+gt;return{...Fe,_rowKey:dt}});Y(((Se=Pe==null?void 0:Pe.data)==null?void 0:Se.number)||0),N([...Ve])}const ge=await o("YLKHDSelPCParam",{"source-number":e==null?void 0:e["instance-source-number"]});if((ge==null?void 0:ge.ReturnValue)===1){const Ve=(se=ge==null?void 0:ge.data)==null?void 0:se[e==null?void 0:e["instance-source-number"]],Fe=(Ve==null?void 0:Ve["universal-header"])||[],gt=(Ve==null?void 0:Ve["attribute-set-id"])||"",dt=S({universalHeader:Fe,attributeSetId:gt,getTitle:p,otherLangPageId:"5000000"})||[];ee([...dt])}}catch{}return}y.error(c==="10001"?"参数配置错误":"Parameter configuration error"),y.error(c==="10001"?"请配置action-url":"Please configure action-url")},Z=()=>{var re;if(!n){if(E){const ce=e==null?void 0:e["key-field"],ve=ce==null?void 0:ce[u],{delimiter:Se="-",list:se=[]}=ve||{};if(!ce){y.error(c==="10001"?"请配置key-field":"Please configure key-field");return}switch(g){case"mul-field-modal-select":const Ae=(re=E==null?void 0:E.split(Se))==null?void 0:re[0],Te=H==null?void 0:H.findIndex(Ve=>Object.values(Ve).includes(Ae));D([Te]);break;case"modal-mult-select":const Pe=E==null?void 0:E.split(","),ge=Pe==null?void 0:Pe.map(Ve=>{var gt;const Fe=(gt=Ve.split(Se))==null?void 0:gt[0];return H==null?void 0:H.findIndex(dt=>Fe.includes((dt==null?void 0:dt.typeid)||(dt==null?void 0:dt.instanceid)))});D(ge);break}}O(!0)}},X=async()=>{try{const re=await Dae(M,e);C((re==null?void 0:re[u])||""),t.onSure(re),O(!1)}catch(re){y.error(c==="10001"?re.msg||"参数错误":"Failed to load data")}},W=()=>{L({...U,PageNum:1}),O(!1)};function te(){const re=e["modal-field-list"];let ce=[];for(let ve in re){let Se=re[ve];const se={dataIndex:ve,title:Se};ce=[...ce,se]}return ce}const ae=re=>{L({...U,PageNum:re})};return Ne(Jt,{children:[q(fe.Select,{placeholder:c==="10001"?(e==null?void 0:e["default-prompt"])||"请选择":"Please select",onClick:Z,open:!1,value:v,disabled:n,style:r}),s&&q(s,{title:e["modal-caption"]||"",open:_,onOk:X,onCancel:W,modalStyle:{width:e["modal-width"]??600,minHeight:e["modal-height"]??400},children:q(fe.Table,{columns:K,loading:F,dataSource:H,rowKey:re=>re._rowKey,scroll:{y:"calc(80vh - 300px)"},rowSelection:{type:g==="mul-field-modal-select"?"radio":"checkbox",selectedRowKeys:A,onChange:ne},pagination:{total:j,current:U.PageNum,pageSize:U.PageSize,onChange:ae}})})||q(fe.Modal,{title:e["modal-caption"],open:_,onOk:X,onCancel:W,width:e["modal-width"]??600,okButtonProps:{disabled:A.length===0},children:q(fe.Table,{columns:K,loading:F,dataSource:H,rowKey:re=>re._rowKey,rowSelection:{type:g==="mul-field-modal-select"?"radio":"checkbox",selectedRowKeys:A,onChange:ne},pagination:{total:j,current:U.PageNum,pageSize:U.PageSize,onChange:ae}})})]})}function Dae(t,e){return new Promise((n,r)=>{try{var i=e["key-field"];if(!i){r({msg:"请配置key-field"});return}let o={};t.forEach(s=>{for(let[u,d]of Object.entries(i)){const c=(d==null?void 0:d.list)??[],p=(d==null?void 0:d.delimiter)??"-",v=c.map(y=>s==null?void 0:s[y]);o[u]=v.join(p)}}),n(o)}catch{r({msg:"key-field参数配置错误"})}})}const h1e="";function hg(t,e){if(!t)return e;let n;return typeof t=="function"?n=t():"current"in t?n=t.current:n=t,n}function Oa(){}const pg=Object.assign,Ad=typeof window<"u";function _i(t){return t!=null}function Od(t){return typeof t=="function"}function Mae(t){return Fp(t)&&Od(t.then)&&Od(t.catch)}function Fp(t){return t!==null&&typeof t=="object"}function U7(t,e,n){return e.reduce((r,i)=>((!n||t[i]!==void 0)&&(r[i]=t[i]),r),{})}function sT(t,e){return e?typeof e=="string"?` ${t}--${e}`:Array.isArray(e)?e.reduce((n,r)=>n+sT(t,r),""):Object.keys(e).reduce((n,r)=>n+(e[r]?sT(t,r):""),""):""}function Rae(t){return(e,n)=>(e&&typeof e!="string"&&(n=e,e=""),e=e?`${t}__${e}`:t,`${e}${sT(e,n)}`)}function _n(t,e){return t=`${e||"rv"}-${t}`,[Rae(t),t]}function Nae(t){t.stopPropagation()}function lT(t,e){(typeof t.cancelable!="boolean"||t.cancelable)&&t.preventDefault(),e&&Nae(t)}const Fae={click:"onClick"};function V7(t,e){const n=Object.assign({},e.props);for(const r of t){const i=Fae[r];n[i]=function(o){var s,u;o.stopPropagation(),(u=(s=e.props)[i])===null||u===void 0||u.call(s,o)}}return G.cloneElement(e,n)}const Pp=Ad?window:global;let $7=Date.now();function Pae(t){const e=Date.now(),n=Math.max(0,16-(e-$7)),r=setTimeout(t,n);return $7=e+n,r}function uT(t){return(Pp.requestAnimationFrame||Pae).call(Pp,t)}function Lae(){return Ad?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1}function Bae(t){const e="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(e,0)}function zae(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function Iae(t){q7(window,t)}function q7(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e)}const jae=Lae();function Y7(){jae&&Iae(zae())}function K7(t){return/^\d+(\.\d+)?$/.test(t)}function W7(t){return Number.isNaN?Number.isNaN(t):t!==t}function yl(t){if(_i(t))return t=String(t),K7(t)?`${t}px`:t}function Hae(t){if(_i(t)){const e=yl(t);return{width:e,height:e}}return{}}let cT;function Uae(){if(!cT){const t=document.documentElement,e=t.style.fontSize||window.getComputedStyle(t).fontSize;cT=parseFloat(e)}return cT}function Vae(t){return t=t.replace(/rem/g,""),+t*Uae()}function $ae(t){return t=t.replace(/vw/g,""),+t*window.innerWidth/100}function qae(t){return t=t.replace(/vh/g,""),+t*window.innerHeight/100}function G7(t){if(typeof t=="number")return t;if(Ad){if(t.indexOf("rem")!==-1)return Vae(t);if(t.indexOf("vw")!==-1)return $ae(t);if(t.indexOf("vh")!==-1)return qae(t)}return parseFloat(t)}function mg(t,e,n){return Math.min(Math.max(t,e),n)}function Q7(t,e,n){const r=t.indexOf(e);return r===-1?t:e==="-"&&r!==0?t.slice(0,r):t.slice(0,r+1)+t.slice(r).replace(n,"")}function Yae(t,e=!0,n=!0){e?t=Q7(t,".",/\./g):t=t.split(".")[0],n?t=Q7(t,"-",/-/g):t=t.replace(/-/,"");const r=e?/[^-0-9.]/g:/[^-0-9]/g;return t.replace(r,"")}function xl(t,e=2){let n=`${t}`;for(;n.length<e;)n=`0${n}`;return n}let X7=!1;if(Ad)try{const t={};Object.defineProperty(t,"passive",{get(){X7=!0}}),window.addEventListener("test-passive",null,t)}catch{}function fT(t,e,n={}){if(!Ad)return;const{target:r=window,passive:i=!1,capture:o=!1,depends:s=[]}=n;let u;const d=()=>{const p=hg(r);p&&!u&&(p.addEventListener(t,e,X7?{capture:o,passive:i}:o),u=!0)},c=()=>{const p=hg(r);p&&u&&(p.removeEventListener(t,e,o),u=!1)};G.useEffect(()=>(d(),()=>c()),[r,...s])}function dT(t){const[e,n]=G.useState(t),r=G.useRef(e),i=G.useCallback(o=>{n(s=>r.current=Od(o)?o(s):o)},[e]);return[e,i,r]}const Kae=()=>{const t=G.useRef(!1);return G.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]),t},Z7=(t={})=>{const e=Kae(),[n,r,i]=dT(t),o=G.useCallback(s=>{e.current||r(u=>Object.assign(Object.assign({},u),Od(s)?s(u):s))},[]);return[n,o,i]},Dd=(t,e)=>{const n=G.useRef(!1);G.useEffect(()=>{if(!n.current)n.current=!0;else return t()},e)};function J7(t){const e=G.useRef(t);return e.current=t,e}const Wae=process.env.NODE_ENV==="development";function g1e(t,e){}const e9=t=>{process.env.NODE_ENV==="development"&&(Od(t)||void 0);const e=J7(t);G.useEffect(()=>()=>{e.current()},[])};function t9(t,e){if(t===e)return!0;for(let n=0;n<t.length;n++)if(!Object.is(t[n],e[n]))return!1;return!0}const Gae=(t=>(n,r,i)=>{const o=G.useRef(!1),s=G.useRef([]),u=G.useRef([]),d=G.useRef();t(()=>{var c;const v=(Array.isArray(i)?i:[i]).map(y=>hg(y));if(!o.current){o.current=!0,s.current=v,u.current=r,d.current=n();return}(v.length!==s.current.length||!t9(v,s.current)||!t9(r,u.current))&&((c=d.current)===null||c===void 0||c.call(d),s.current=v,u.current=r,d.current=n())}),e9(()=>{var c;(c=d.current)===null||c===void 0||c.call(d),o.current=!1})})(G.useEffect);function Qae(t,e){const[n,r]=G.useState(),[i,o]=G.useState();return Gae(()=>{const s=hg(t);if(!s)return;const u=new IntersectionObserver(d=>{for(const c of d)o(c.intersectionRatio),r(c.isIntersecting)},Object.assign(Object.assign({},e),{root:hg(e==null?void 0:e.root)}));return u.observe(s),()=>{u.disconnect()}},[],t),[n,i]}const n9=10;function Xae(t,e){return t>e&&t>n9?"horizontal":e>t&&e>n9?"vertical":""}function r9(){const t=G.useRef(0),e=G.useRef(0),n=G.useRef(0),r=G.useRef(0),i=G.useRef(0),o=G.useRef(0),s=G.useRef(""),u=G.useRef(null),d=()=>s.current==="vertical",c=()=>s.current==="horizontal",p=()=>{n.current=0,r.current=0,i.current=0,o.current=0,s.current="",u.current=null};return{move:g=>{const S=g.touches[0];n.current=S.clientX<0?0:S.clientX-t.current,r.current=S.clientY-e.current,i.current=Math.abs(n.current),o.current=Math.abs(r.current),u.current===null?u.current=!0:u.current=!1,s.current||(s.current=Xae(i.current,o.current))},start:g=>{p(),t.current=g.touches[0].clientX,e.current=g.touches[0].clientY},reset:p,startX:t,startY:e,deltaX:n,deltaY:r,offsetX:i,offsetY:o,direction:s,isVertical:d,isHorizontal:c,firstMove:u}}const i9=/scroll|auto/i,Zae=Ad?window:void 0;function Jae(t){return t.tagName!=="HTML"&&t.tagName!=="BODY"&&t.nodeType===1}function ese(t,e=Zae){e===void 0&&(e=window);let n=t;for(;n&&n!==e&&Jae(n);){const{overflowY:r}=window.getComputedStyle(n);if(i9.test(r)){if(n.tagName!=="BODY")return n;const i=window.getComputedStyle(n.parentNode).overflowY;if(i9.test(i))return n}n=n.parentNode}return e}const tse=t=>(e,n)=>{const r=G.useRef(!1);t(()=>()=>{r.current=!1},[]),t(()=>{if(!r.current)r.current=!0;else return e()},n)},vg=Ad?G.useLayoutEffect:G.useEffect,nse=tse(vg),o9=()=>{const[,t]=G.useState({});return G.useCallback(()=>t({}),[])};function a9(t){process.env.NODE_ENV==="development"&&(Od(t)||void 0);const e=G.useRef(t);e.current=G.useMemo(()=>t,[t]);const n=G.useRef();return n.current||(n.current=function(...r){return e.current.apply(this,r)}),n.current}function gg(t){const{value:e,defaultValue:n,onChange:r}=t,i=o9(),o=G.useRef(e!==void 0?e:n);e!==void 0&&(o.current=e);const s=a9((u,d)=>{const c=typeof u=="function"?u(o.current):u;!d&&c===o.current||(o.current=c,i(),r==null||r(c))});return[o.current,s]}const w1e="";function Mo(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function hT(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function u(p){try{c(r.next(p))}catch(v){s(v)}}function d(p){try{c(r.throw(p))}catch(v){s(v)}}function c(p){p.done?o(p.value):i(p.value).then(u,d)}c((r=r.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;function s9(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=s9(t[e]))&&(r&&(r+=" "),r+=n);else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}function Me(){for(var t,e,n=0,r="";n<arguments.length;)(t=arguments[n++])&&(e=s9(t))&&(r&&(r+=" "),r+=e);return r}const C1e="",rse=({bem:t})=>q(Jt,{children:Array(12).fill(null).map((e,n)=>q("i",{className:Me(t("line",String(n+1)))},n))}),ise=({bem:t})=>q("svg",Object.assign({className:Me(t("circular")),viewBox:"25 25 50 50"},{children:q("circle",{cx:"50",cy:"50",r:"20",fill:"none"})})),ose=({bem:t})=>Ne("div",Object.assign({className:Me(t("ball"))},{children:[q("div",{}),q("div",{}),q("div",{})]})),ase=t=>({spinner:q(rse,{bem:t}),circular:q(ise,{bem:t}),ball:q(ose,{bem:t})}),[TS]=_n("loading"),pT=t=>{const{className:e,type:n="circular",vertical:r,color:i,size:o,textColor:s,children:u,textSize:d}=t,c=G.useMemo(()=>Object.assign({color:i},Hae(o)),[i,o]),p=()=>u?q("span",Object.assign({className:Me(TS("text")),style:{fontSize:yl(d),color:s??i}},{children:u})):null;return Ne("div",Object.assign({className:Me(e,TS([n,{vertical:r}])),style:t.style},{children:[q("span",Object.assign({className:Me(TS("spinner",n)),style:c},{children:ase(TS)[n]})),p()]}))},sse="#fff",yg="rv-hairline",lse=`${yg}--top`,use=`${yg}--left`,cse=`${yg}--surround`,fse=`${yg}--top-bottom`,dse=`${yg}-unset--top-bottom`,l9="rv-shadow",hse="__REACT_VANT_COMPONENT",u9=G.createContext({}),[xg]=_n("button"),pse=t=>{const{color:e,loading:n,className:r,hairline:i,loadingText:o,round:s,square:u,plain:d,block:c,loadingType:p,nativeType:v,iconPosition:y}=t,g=Mo(t,["color","loading","className","hairline","loadingText","round","square","plain","block","loadingType","nativeType","iconPosition"]),{parent:S}=G.useContext(u9),E=G.useMemo(()=>t.size||(S==null?void 0:S.size)||"normal",[S==null?void 0:S.size,t.size]),C=G.useMemo(()=>t.type||(S==null?void 0:S.type)||"default",[S==null?void 0:S.type,t.type]),_=G.useMemo(()=>d??(S==null?void 0:S.plain),[S==null?void 0:S.plain,d]),O=G.useMemo(()=>c??(S==null?void 0:S.block),[S==null?void 0:S.block,c]),A=G.useMemo(()=>y||(S==null?void 0:S.iconPosition)||"left",[S==null?void 0:S.iconPosition,y]),D=G.useMemo(()=>{var K;return(K=t.disabled)!==null&&K!==void 0?K:S==null?void 0:S.disabled},[S==null?void 0:S.disabled,t.disabled]),M=G.useMemo(()=>v||(S==null?void 0:S.nativeType)||"button",[S==null?void 0:S.nativeType,v]),F=G.useMemo(()=>t.tag||(S==null?void 0:S.tag)||"button",[S==null?void 0:S.tag,t.tag]),I=Me(r,xg([C,E,{plain:_,loading:n,disabled:D,hairline:i,block:O,round:s,square:u}]),{[cse]:i},t.shadow&&`${l9}--${+t.shadow}`),U=Object.assign({},t.style);e&&(U.color=_?e:sse,_||(U.background=e),e.indexOf("gradient")!==-1?U.border=0:U.borderColor=e);const L=K=>{!n&&!D&&t.onClick&&t.onClick(K)},H=()=>{if(n){const{loadingSize:K="20px"}=t;return q(pT,{className:Me(xg("loading")),size:K,type:p,color:C==="default"?void 0:""})}return null},N=()=>t.loading?H():t.icon?G.cloneElement(t.icon,{className:Me(xg("icon"))}):null,j=()=>{let K;return n?K=o:K=t.children||t.text,K?q("span",Object.assign({className:Me(xg("text"))},{children:K}),"text"):null};return q(F,Object.assign({},g,{disabled:D,className:I,style:U,type:M,onClick:L},{children:(()=>Ne("div",Object.assign({className:Me(xg("content"))},{children:[A==="left"&&N(),j(),A==="right"&&N()]})))()}))},[mse]=_n("button-group"),ta=Object.assign(pse,{Group:t=>{var{className:e,style:n,children:r,onClick:i}=t,o=Mo(t,["className","style","children","onClick"]);return q("div",Object.assign({onClick:u=>{o.disabled||i==null||i(u)},style:n,className:Me(e,mse([o.type,{round:o.round,plain:o.plain,disabled:o.disabled}]),o.shadow&&`${l9}--${+o.shadow}`)},{children:q(u9.Provider,Object.assign({value:{parent:o}},{children:r}))}))}}),O1e="";function Ti(...t){const e=Object.assign({},t[0]);return t.forEach(n=>{for(const r in n){const i=n[r];e[r]=e.hasOwnProperty(r)?e[r]:i}}),e}const[c9]=_n("badge"),vse=t=>{const e=Ti(t,{tag:"div",showZero:!0}),{content:n,max:r,dot:i,showZero:o,tag:s="div"}=e,u=s,d=()=>e.content?!0:_i(n)&&n!==""&&(o||+n!=0),c=()=>!i&&d()?_i(r)&&K7(n==null?void 0:n.toString())&&+n>r?`${r}+`:n:null,p=()=>{if(d()||e.dot){let v={background:e.color};if(e.offset){const[y,g]=e.offset;e.children?(v.top=yl(g),v.right=yl(y)):(v.marginTop=yl(g),v.marginLeft=yl(y))}return e.children||(v=Object.assign(Object.assign({},e.style),v)),q("div",Object.assign({className:Me({[e.className]:e.className&&!e.children},c9({dot:e.dot,fixed:!!e.children})),style:v},{children:c()}))}return null};return e.children?Ne(u,Object.assign({className:Me(c9("wrapper"),e.className),style:e.style,onClick:e.onClick,onTouchStart:e.onTouchStart},{children:[e.children,p()]})):p()},M1e="";var gse=globalThis&&globalThis.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function yse(t){return t.substring(3).replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"")}const mu=G.forwardRef((t,e)=>{const{name:n="",className:r,style:i,spin:o,rotate:s,tabIndex:u,onClick:d,children:c}=t,p=gse(t,["name","className","style","spin","rotate","tabIndex","onClick","children"]),v={};s&&(v.msTransform=`rotate(${s}deg)`,v.transform=`rotate(${s}deg)`);const y=n?yse(n):void 0;let g=u;g===void 0&&d&&(g=-1);const S=Object.assign({role:"img","aria-label":y,focusable:"false","data-icon":y,"aria-hidden":"true",preserveAspectRatio:"xMidYMid meet",ref:e,tabIndex:g,onClick:d,className:["rv-icon",y?`rv-icon-${y}`:"",o?"rv-icon--spin":"",r].join(" ").trim(),style:Object.assign(Object.assign({},i),v)},p);return G.cloneElement(c,S)}),xse=t=>_e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},t),_e.createElement("path",{d:"M494.094 733.426a41.472 41.472 0 01-20.023-11.126L140.16 388.388c-16.272-16.271-16.272-42.653 0-58.925 16.271-16.272 42.653-16.272 58.925 0L503.66 634.037 808.186 329.51c16.271-16.272 42.653-16.272 58.925 0s16.272 42.654 0 58.926L533.2 722.347c-10.607 10.607-25.508 14.3-39.106 11.08z",fillRule:"evenodd"})),bse=_e.forwardRef((t,e)=>_e.createElement(mu,Object.assign({name:"SvgArrowDown"},t,{ref:e}),_e.createElement(xse,null))),Sse=t=>_e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},t),_e.createElement("path",{d:"M296.114 508.035c-3.22-13.597.473-28.499 11.079-39.105l333.912-333.912c16.271-16.272 42.653-16.272 58.925 0s16.272 42.654 0 58.926L395.504 498.47l304.574 304.574c16.272 16.272 16.272 42.654 0 58.926s-42.654 16.272-58.926 0L307.241 528.058a41.472 41.472 0 01-11.127-20.023z",fillRule:"evenodd"})),wse=_e.forwardRef((t,e)=>_e.createElement(mu,Object.assign({name:"SvgArrowLeft"},t,{ref:e}),_e.createElement(Sse,null))),Cse=t=>_e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},t),_e.createElement("path",{d:"M513.176 285.05a41.472 41.472 0 0120.024 11.127L867.11 630.089c16.272 16.271 16.272 42.653 0 58.925s-42.654 16.272-58.925 0L503.612 384.44 199.085 688.967c-16.272 16.271-42.654 16.271-58.925 0-16.272-16.272-16.272-42.654 0-58.926L474.07 296.129c10.606-10.606 25.508-14.299 39.105-11.078z",fillRule:"evenodd"})),Ese=_e.forwardRef((t,e)=>_e.createElement(mu,Object.assign({name:"SvgArrowUp"},t,{ref:e}),_e.createElement(Cse,null))),kse=t=>_e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},t),_e.createElement("path",{d:"M711.156 508.035a41.472 41.472 0 01-11.126 20.023L366.12 861.97c-16.272 16.272-42.654 16.272-58.926 0s-16.272-42.654 0-58.926L611.767 498.47 307.241 193.944c-16.272-16.272-16.272-42.654 0-58.926 16.271-16.272 42.653-16.272 58.925 0L700.078 468.93c10.606 10.606 14.299 25.508 11.078 39.105z",fillRule:"evenodd"})),_se=_e.forwardRef((t,e)=>_e.createElement(mu,Object.assign({name:"SvgArrow"},t,{ref:e}),_e.createElement(kse,null))),Tse=t=>_e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},t),_e.createElement("path",{d:"M500 55.556c245.46 0 444.444 198.984 444.444 444.444S745.46 944.444 500 944.444 55.556 745.46 55.556 500 254.54 55.556 500 55.556zm176.441 267.887c-10.848-10.848-28.436-10.848-39.284 0L499.665 460.936 362.172 323.443c-10.848-10.848-28.436-10.848-39.284 0-10.848 10.848-10.848 28.436 0 39.284L460.38 500.22 322.888 637.713c-10.848 10.848-10.848 28.436 0 39.284 10.848 10.848 28.436 10.848 39.284 0l137.493-137.493 137.492 137.493c10.848 10.848 28.436 10.848 39.284 0 10.848-10.848 10.848-28.436 0-39.284L538.948 500.22l137.493-137.493c10.848-10.848 10.848-28.436 0-39.284z",fillRule:"evenodd"})),AS=_e.forwardRef((t,e)=>_e.createElement(mu,Object.assign({name:"SvgClear"},t,{ref:e}),_e.createElement(Tse,null))),Ase=t=>_e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},t),_e.createElement("path",{d:"M560.149 501.223l255.344 255.344c16.272 16.272 16.272 42.654 0 58.926s-42.654 16.272-58.926 0L501.223 560.149 245.88 815.493c-16.272 16.272-42.654 16.272-58.925 0-16.272-16.272-16.272-42.654 0-58.926l255.344-255.344L186.954 245.88c-16.272-16.272-16.272-42.654 0-58.925 16.271-16.272 42.653-16.272 58.925 0l255.344 255.344 255.344-255.344c16.272-16.272 42.654-16.272 58.926 0 16.272 16.271 16.272 42.653 0 58.925L560.149 501.223z",fillRule:"nonzero"})),mT=_e.forwardRef((t,e)=>_e.createElement(mu,Object.assign({name:"SvgCross"},t,{ref:e}),_e.createElement(Ase,null))),Ose=t=>_e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},t),_e.createElement("path",{d:"M537.5 537.5v325c0 20.71-16.79 37.5-37.5 37.5s-37.5-16.79-37.5-37.5v-325h-325c-20.71 0-37.5-16.79-37.5-37.5s16.79-37.5 37.5-37.5h325v-325c0-20.71 16.79-37.5 37.5-37.5s37.5 16.79 37.5 37.5v325h325c20.71 0 37.5 16.79 37.5 37.5s-16.79 37.5-37.5 37.5h-325z",fillRule:"nonzero"})),Dse=_e.forwardRef((t,e)=>_e.createElement(mu,Object.assign({name:"SvgPlus"},t,{ref:e}),_e.createElement(Ose,null))),Mse=t=>_e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},t),_e.createElement("path",{d:"M500 888.889c-214.389 0-388.889-174.5-388.889-388.889S285.611 111.111 500 111.111 888.889 285.611 888.889 500 714.389 888.889 500 888.889m0-833.333c-245.444 0-444.444 199-444.444 444.444 0 245.444 199 444.444 444.444 444.444 245.444 0 444.444-199 444.444-444.444 0-245.444-199-444.444-444.444-444.444m6.456 222.222c-44.612 0-80 12.778-105.612 39.055-26.277 25.667-39.055 60.445-39.055 105.056v1c0 17.944 14.444 32.444 32.389 32.444 17.889 0 32.389-14.5 32.389-32.444 0-.389-.111-1-.111-1 0-26.945 5.444-48.222 16.444-62.889 12.222-17.111 32.333-25.667 59.889-25.667 21.944 0 39.055 6.111 51.222 18.334 11.611 12.222 17.778 28.722 17.778 50.055 0 15.89-5.556 30.5-16.556 44.556l-10.389 11.61c-37.777 33.556-60.333 59-69.61 75.668-13.834 24.944-11.334 48-11.334 48 0 17.888 14.556 32.388 32.444 32.388 17.945 0 29.778-12.333 32.39-32.388 0 0 3.333-18.667 10.055-30.89 5.5-10.944 14.055-21.388 25-31.11 29.389-25.056 46.444-40.945 51.889-47.667 14.666-19.5 22.555-44.556 22.555-74.445 0-36.61-12.166-65.944-35.944-87.333-24.445-21.944-56.167-32.333-95.833-32.333m-10.417 357.15c-12.778 0-23.222 3.666-31.111 12.222-9.222 7.889-13.5 18.333-13.5 31.111 0 12.222 4.278 22.611 13.5 31.167 7.889 8.5 18.333 12.778 31.11 12.778 12.279 0 23.223-4.278 32.39-12.167 8.5-8.611 12.778-18.945 12.778-31.778 0-12.778-4.278-23.222-12.778-31.111-8.556-8.556-19.556-12.222-32.39-12.222",fillRule:"evenodd"})),Rse=_e.forwardRef((t,e)=>_e.createElement(mu,Object.assign({name:"SvgQuestionO"},t,{ref:e}),_e.createElement(Mse,null))),Nse=t=>_e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},t),_e.createElement("path",{d:"M119.415 524.046c-9.708-9.693-11.278-24.766-2.72-35.554l20.007-25.223c8.201-10.34 23.543-12.936 34.386-5.699l173.175 115.585c9.134 6.097 24.856 5.303 33.384-1.616l457.6-371.25c10.286-8.345 26.397-7.634 35.412 1.368l11.272 11.255c9.81 9.795 9.096 25.343-1.187 35.611l-491.14 490.414c-15.28 15.258-40.369 14.59-56.099-1.116l-214.09-213.775z",fillRule:"nonzero"})),f9=_e.forwardRef((t,e)=>_e.createElement(mu,Object.assign({name:"SvgSuccess"},t,{ref:e}),_e.createElement(Nse,null))),U1e="",[d9]=_n("cell-group"),Fse=t=>{const e=Ti(t,{border:!0}),{title:n,border:r,inset:i,card:o}=e,s=o||i,u=()=>q("div",Object.assign({className:Me(d9({inset:s}),{[fse]:!s&&r})},{children:e.children})),d=()=>n?q("div",Object.assign({className:Me(d9("title"))},{children:n})):null;return Ne("div",Object.assign({className:e.className,style:e.style},{children:[d(),u()]}))},[Lp]=_n("cell"),h9=Object.assign(t=>{const e=()=>_i(t.label)?q("div",Object.assign({className:Me(Lp("label"),t.labelClass)},{children:t.label})):null,n=()=>_i(t.title)?Ne("div",Object.assign({className:Me(Lp("title"),t.titleClass),style:t.titleStyle},{children:[t.title,e()]})):null,r=()=>{const C=_i(t.title);return _i(t.children)||_i(t.value)?q("div",Object.assign({className:Me(Lp("value",{alone:!C}),t.valueClass)},{children:_i(t.children)?t.children:q("span",{children:t.value})})):null},i=()=>t.icon?G.cloneElement(t.icon,{className:Me(Lp("left-icon"))}):null,o=()=>{if(t.rightIcon)return t.rightIcon;if(t.isLink){const C=Me(Lp("right-icon"));return t.arrowDirection==="left"?q(wse,{className:C}):t.arrowDirection==="up"?q(Ese,{className:C}):t.arrowDirection==="down"?q(bse,{className:C}):q(_se,{className:C})}return null},{className:s,style:u,size:d,center:c,border:p=!0,isLink:v,required:y,onClick:g}=t,S=v||t.clickable,E={center:c,required:y,clickable:S,borderless:!p};return d&&(E[d]=!!d),Ne("div",Object.assign({style:u,className:Me(Lp(E),s),role:S?"button":void 0,onClick:g},{children:[i(),n(),r(),o(),t.extra]}))},{Group:Fse}),Y1e="",K1e="";function OS(t,e){return OS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},OS(t,e)}function p9(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,OS(t,e)}function Pse(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}function Lse(t,e){t.classList?t.classList.add(e):Pse(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function m9(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Bse(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=m9(t.className,e):t.setAttribute("class",m9(t.className&&t.className.baseVal||"",e))}const v9={disabled:!1};var zse=process.env.NODE_ENV!=="production"?zt.oneOfType([zt.number,zt.shape({enter:zt.number,exit:zt.number,appear:zt.number}).isRequired]):null,Ise=process.env.NODE_ENV!=="production"?zt.oneOfType([zt.string,zt.shape({enter:zt.string,exit:zt.string,active:zt.string}),zt.shape({enter:zt.string,enterDone:zt.string,enterActive:zt.string,exit:zt.string,exitDone:zt.string,exitActive:zt.string})]):null;const g9=G.createContext(null);var bg="unmounted",Md="exited",Rd="entering",Bp="entered",vT="exiting",vu=function(t){p9(e,t);function e(r,i){var o;o=t.call(this,r,i)||this;var s=i,u=s&&!s.isMounting?r.enter:r.appear,d;return o.appearStatus=null,r.in?u?(d=Md,o.appearStatus=Rd):d=Bp:r.unmountOnExit||r.mountOnEnter?d=bg:d=Md,o.state={status:d},o.nextCallback=null,o}e.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===bg?{status:Md}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Rd&&s!==Bp&&(o=Rd):(s===Rd||s===Bp)&&(o=vT)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,u;return o=s=u=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,u=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:u}},n.updateStatus=function(i,o){i===void 0&&(i=!1),o!==null?(this.cancelNextCallback(),o===Rd?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===Md&&this.setState({status:bg})},n.performEnter=function(i){var o=this,s=this.props.enter,u=this.context?this.context.isMounting:i,d=this.props.nodeRef?[u]:[rv.findDOMNode(this),u],c=d[0],p=d[1],v=this.getTimeouts(),y=u?v.appear:v.enter;if(!i&&!s||v9.disabled){this.safeSetState({status:Bp},function(){o.props.onEntered(c)});return}this.props.onEnter(c,p),this.safeSetState({status:Rd},function(){o.props.onEntering(c,p),o.onTransitionEnd(y,function(){o.safeSetState({status:Bp},function(){o.props.onEntered(c,p)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),u=this.props.nodeRef?void 0:rv.findDOMNode(this);if(!o||v9.disabled){this.safeSetState({status:Md},function(){i.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:vT},function(){i.props.onExiting(u),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Md},function(){i.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,s=!0;return this.nextCallback=function(u){s&&(s=!1,o.nextCallback=null,i(u))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:rv.findDOMNode(this),u=i==null&&!this.props.addEndListener;if(!s||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=d[0],p=d[1];this.props.addEndListener(c,p)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===bg)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var u=AE(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return G.createElement(g9.Provider,{value:null},typeof s=="function"?s(i,u):G.cloneElement(G.Children.only(s),u))},e}(G.Component);vu.contextType=g9,vu.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:zt.shape({current:typeof Element>"u"?zt.any:function(t,e,n,r,i,o){var s=t[e];return zt.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(t,e,n,r,i,o)}}),children:zt.oneOfType([zt.func.isRequired,zt.element.isRequired]).isRequired,in:zt.bool,mountOnEnter:zt.bool,unmountOnExit:zt.bool,appear:zt.bool,enter:zt.bool,exit:zt.bool,timeout:function(e){var n=zse;e.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n.apply(void 0,[e].concat(i))},addEndListener:zt.func,onEnter:zt.func,onEntering:zt.func,onEntered:zt.func,onExit:zt.func,onExiting:zt.func,onExited:zt.func}:{};function zp(){}vu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:zp,onEntering:zp,onEntered:zp,onExit:zp,onExiting:zp,onExited:zp},vu.UNMOUNTED=bg,vu.EXITED=Md,vu.ENTERING=Rd,vu.ENTERED=Bp,vu.EXITING=vT;const y9=vu;var jse=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return Lse(e,r)})},gT=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return Bse(e,r)})},yT=function(t){p9(e,t);function e(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(u,d){var c=r.resolveArguments(u,d),p=c[0],v=c[1];r.removeClasses(p,"exit"),r.addClass(p,v?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(u,d)},r.onEntering=function(u,d){var c=r.resolveArguments(u,d),p=c[0],v=c[1],y=v?"appear":"enter";r.addClass(p,y,"active"),r.props.onEntering&&r.props.onEntering(u,d)},r.onEntered=function(u,d){var c=r.resolveArguments(u,d),p=c[0],v=c[1],y=v?"appear":"enter";r.removeClasses(p,y),r.addClass(p,y,"done"),r.props.onEntered&&r.props.onEntered(u,d)},r.onExit=function(u){var d=r.resolveArguments(u),c=d[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(u)},r.onExiting=function(u){var d=r.resolveArguments(u),c=d[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(u)},r.onExited=function(u){var d=r.resolveArguments(u),c=d[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(u)},r.resolveArguments=function(u,d){return r.props.nodeRef?[r.props.nodeRef.current,u]:[u,d]},r.getClassNames=function(u){var d=r.props.classNames,c=typeof d=="string",p=c&&d?d+"-":"",v=c?""+p+u:d[u],y=c?v+"-active":d[u+"Active"],g=c?v+"-done":d[u+"Done"];return{baseClassName:v,activeClassName:y,doneClassName:g}},r}var n=e.prototype;return n.addClass=function(i,o,s){var u=this.getClassNames(o)[s+"ClassName"],d=this.getClassNames("enter"),c=d.doneClassName;o==="appear"&&s==="done"&&c&&(u+=" "+c),s==="active"&&i&&i.scrollTop,u&&(this.appliedClasses[o][s]=u,jse(i,u))},n.removeClasses=function(i,o){var s=this.appliedClasses[o],u=s.base,d=s.active,c=s.done;this.appliedClasses[o]={},u&&gT(i,u),d&&gT(i,d),c&&gT(i,c)},n.render=function(){var i=this.props;i.classNames;var o=AE(i,["classNames"]);return G.createElement(y9,mn({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(G.Component);yT.defaultProps={classNames:""},yT.propTypes=process.env.NODE_ENV!=="production"?mn({},y9.propTypes,{classNames:Ise,onEnter:zt.func,onEntering:zt.func,onEntered:zt.func,onExit:zt.func,onExiting:zt.func,onExited:zt.func}):{};const x9=yT;function Tn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}const W1e="",[Hse]=_n("overlay"),Use=t=>{const e=G.useRef(null),n=Ti(t,{stopPropagation:["click"],lockScroll:!0,duration:300}),{visible:r,duration:i}=n,o=u=>{n.lockScroll&&lT(u,!0)},s=()=>{const u=Object.assign(Object.assign({zIndex:n.zIndex!==void 0?+n.zIndex:void 0,touchAction:n.lockScroll&&"none"},n.style),n.customStyle);return _i(i)&&(u.animationDuration=`${i}ms`),V7(n.stopPropagation,q("div",Object.assign({ref:e,style:u,onClick:d=>{var c;d.target===d.currentTarget&&((c=n.onClick)===null||c===void 0||c.call(n,d))},className:Me(Hse(),n.className)},{children:n.children})))};return fT("touchmove",o,{target:e}),q(x9,Object.assign({nodeRef:e,mountOnEnter:!0,unmountOnExit:!0,in:r,timeout:i,classNames:"rv-fade"},{children:s()}))};function Vse(t){const{interceptor:e,args:n,done:r,canceled:i}=t;if(e){const o=e.apply(null,n||[]);Mae(o)?o.then(s=>{s?r():i&&i()}).catch(Oa):o?r():i&&i()}else r()}function xT(t){return(typeof t=="function"?t():t)||document.body}function bT(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function $se(t,e){if(bT()&&t){const n=xT(t);return Kf.createPortal(e,n)}return e}const qse=G.createContext({});let Sg=0;const b9="rv-overflow-hidden";function Yse(t,e){const n=r9(),r=s=>{n.move(s);const u=n.deltaY.current>0?"10":"01",d=ese(s.target,t.current);if(!d)return;const{scrollHeight:c,offsetHeight:p,scrollTop:v}=d;let y="11";v===0?y=p>=c?"00":"01":v+p>=c&&(y="10"),y!=="11"&&n.isVertical()&&!(parseInt(y,2)&parseInt(u,2))&&s.cancelable&&s.preventDefault()},i=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",r,!1),Sg||document.body.classList.add(b9),Sg++},o=()=>{Sg&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",r),Sg--,Sg||document.body.classList.remove(b9))};G.useEffect(()=>{if(e)return i(),()=>{o()}},[e])}let S9=2e3;const[DS]=_n("popup"),Nd=G.forwardRef((t,e)=>{var n;const r=Ti(t,{duration:300,overlay:!0,lockScroll:!0,position:"center",closeIcon:q(mT,{}),closeIconPosition:"top-right",closeOnClickOverlay:!0,stopPropagation:["click"],teleport:()=>document.body}),{round:i,closeable:o,title:s,description:u,children:d,duration:c,closeIcon:p,position:v}=r,y=G.useRef(!1),g=G.useRef((n=r.zIndex)!==null&&n!==void 0?n:S9),S=G.useRef(),[E,C]=G.useState(r.visible),[_,O]=G.useState(E),A=G.useMemo(()=>{const Y=Object.assign({zIndex:g.current},r.style);if(_i(r.duration)){const K=r.position==="center"?"animationDuration":"transitionDuration";Y[K]=`${r.duration}ms`}return Y},[g.current,r.position,r.style,r.duration]),D=()=>{var Y;r.zIndex!==void 0?g.current=+r.zIndex:g.current=S9++,y.current=!0,(Y=r.onOpen)===null||Y===void 0||Y.call(r)},M=()=>{Vse({interceptor:r.beforeClose,args:["close"],done:()=>{var Y;y.current=!1,(Y=r.onClose)===null||Y===void 0||Y.call(r)}})},B=Y=>{var K;(K=r.onClickOverlay)===null||K===void 0||K.call(r,Y),r.closeOnClickOverlay&&M()},F=()=>r.overlay?q(Use,{visible:E,className:r.overlayClass,customStyle:r.overlayStyle,zIndex:g.current,duration:c,onClick:B}):null,I=Y=>{r.onClickCloseIcon&&r.onClickCloseIcon(Y),M()},U=()=>{if(o){const{closeIconPosition:Y}=r;return p?q("div",Object.assign({className:Me(DS("close-icon",Y)),onClick:I},{children:p})):null}return null},L=()=>s?q("div",Object.assign({className:Me(DS("title"))},{children:s})):null,H=()=>u?q("div",Object.assign({className:Me(DS("description"))},{children:u})):null,N=()=>{const{safeAreaInsetBottom:Y}=r;return V7(r.stopPropagation,Ne("div",Object.assign({ref:S,style:Object.assign(Object.assign({},A),{display:!E&&!_?"none":void 0}),className:Me(DS({round:i,[v]:v}),{"rv-safe-area-bottom":Y},r.className),onClick:r.onClick},{children:[L(),H(),d,U()]})))},j=()=>{const{transition:Y,destroyOnClose:K,forceRender:ee}=r,ne=v==="center"?"rv-fade":`rv-popup-slide-${v}`;return q(x9,Object.assign({in:E,nodeRef:S,timeout:c,classNames:Y||ne,mountOnEnter:!ee,unmountOnExit:K,onEnter:D,onEntered:r.onOpened,onExited:()=>{var $;O(!1),($=r.onClosed)===null||$===void 0||$.call(r)}},{children:N()}))};return fT("popstate",()=>{r.closeOnPopstate&&M()}),vg(()=>{E&&O(!0)},[E]),vg(()=>{C(r.visible)},[r.visible]),Yse(S,E&&r.lockScroll),G.useImperativeHandle(e,()=>({popupRef:S})),$se(r.teleport,Ne(qse.Provider,Object.assign({value:{visible:E}},{children:[F(),j()]})))}),Z1e="",w9=G.createContext({}),[Kse]=_n("action-bar"),Wse=t=>{const e=Ti(t,{safeAreaInsetBottom:!0}),n=G.useMemo(()=>G.Children.toArray(e.children),[e.children]);return q(w9.Provider,Object.assign({value:{parent:{children:n}}},{children:q("div",Object.assign({className:Me(e.className,Kse(),{"rv-safe-area-bottom":e.safeAreaInsetBottom}),style:e.style},{children:G.Children.toArray(e.children).filter(Boolean).map((r,i)=>G.cloneElement(r,{index:i}))}))}))},[C9]=_n("action-bar-icon"),Gse=t=>{const e=()=>{const{badge:n,icon:r}=t;return r?q(vse,Object.assign({},n,{className:Me(C9("icon"))},{children:r})):null};return Ne("div",Object.assign({role:"button",className:Me(t.className,C9()),style:t.style,tabIndex:0,onClick:t.onClick},{children:[e(),t.children||t.text]}))},[Qse]=_n("action-bar-button"),Xse=Object.assign(t=>{const{type:e,icon:n,text:r,color:i,loading:o,disabled:s,index:u}=t,{parent:d}=G.useContext(w9),c=G.useMemo(()=>{if(d){const v=d.children[u-1];return!(v&&"isButton"in v.type)}return!1},[u,d]),p=G.useMemo(()=>{if(d){const v=d.children[u+1];return!(v&&"isButton"in v.type)}return!1},[u,d]);return q(ta,Object.assign({className:Me(t.className,Qse([e,{last:p,first:c}])),style:t.style,size:"large",type:e,icon:n,color:i,loading:o,disabled:s,onClick:t.onClick},{children:t.children?t.children:r}))},{isButton:!0}),ST=Object.assign(Wse,{Icon:Gse,Button:Xse});function Zse(t,e,n){const r=e[n];_i(r)&&(!Object.prototype.hasOwnProperty.call(t,n)||!Fp(r)?t[n]=r:t[n]=E9(Object(t[n]),e[n]))}function E9(t,e){return Object.keys(e).forEach(n=>{Zse(t,e,n)}),t}const Jse={locale:E9({name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:(t,e)=>`${t}年${e}月`,rangePrompt:t=>`最多选择 ${t} 天`},vanPicker:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新...",loading:"加载中..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:t=>`${t}折`,condition:t=>`满${t}元可用`},vanCouponCell:{title:"优惠券",count:t=>`${t}张可用`},vanCouponList:{exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码不正确",defaultAddress:"设为默认收货地址"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌信息"},vanAddressList:{add:"新增地址"}},{})},Ip=G.createContext(Jse),[_s]=_n("dialog"),k9=t=>{const{locale:e}=G.useContext(Ip),n=Ti(t,{transition:"rv-dialog-bounce",showConfirmButton:!0,closeOnPopstate:!0}),{width:r,title:i,theme:o,visible:s,message:u,className:d,messageAlign:c,closeOnClickOverlay:p,onClickCloseIcon:v}=n,y=Mo(n,["width","title","theme","visible","message","className","messageAlign","closeOnClickOverlay","onClickCloseIcon"]),g=()=>n.title?q("div",Object.assign({className:Me(_s("header",{isolated:!n.message&&!n.children}))},{children:i})):null,S=()=>n.children?q("div",Object.assign({className:Me(_s("content"))},{children:n.children})):u?q("div",Object.assign({className:Me(_s("content",{isolated:!i}))},{children:q("div",Object.assign({className:Me(_s("message",{"has-title":i,[c]:c}))},{children:u}))})):null,E=()=>{var O,A,D,M,B,F;return Ne("div",Object.assign({className:Me(lse,_s("footer"))},{children:[n.showCancelButton&&q(ta,{size:"large",text:n.cancelButtonText||e.cancel,className:Me(_s("cancel")),style:{color:n.cancelButtonColor},loading:(O=n.cancelProps)===null||O===void 0?void 0:O.loading,disabled:(A=n.cancelProps)===null||A===void 0?void 0:A.disabled,onClick:!((D=n.cancelProps)===null||D===void 0)&&D.loading?Oa:n.onCancel}),n.showConfirmButton&&q(ta,{size:"large",text:n.confirmButtonText||e.confirm,className:Me(_s("confirm"),{[use]:n.showCancelButton}),round:o==="round-button"||void 0,style:{color:n.confirmButtonColor},loading:(M=n.confirmProps)===null||M===void 0?void 0:M.loading,disabled:(B=n.confirmProps)===null||B===void 0?void 0:B.disabled,onClick:!((F=n.confirmProps)===null||F===void 0)&&F.loading?Oa:n.onConfirm})]}))},C=()=>{var O,A,D,M,B,F;return Ne(ST,Object.assign({className:Me(_s("footer"))},{children:[n.showCancelButton&&q(ST.Button,{type:"warning",text:n.cancelButtonText||e.cancel,className:Me(_s("cancel")),color:n.cancelButtonColor,loading:(O=n.cancelProps)===null||O===void 0?void 0:O.loading,disabled:(A=n.cancelProps)===null||A===void 0?void 0:A.disabled,onClick:!((D=n.cancelProps)===null||D===void 0)&&D.loading?Oa:n.onCancel}),n.showConfirmButton&&q(ST.Button,{type:"danger",text:n.confirmButtonText||e.confirm,className:Me(_s("confirm")),color:n.confirmButtonColor,loading:(M=n.confirmProps)===null||M===void 0?void 0:M.loading,disabled:(B=n.confirmProps)===null||B===void 0?void 0:B.disabled,onClick:!((F=n.confirmProps)===null||F===void 0)&&F.loading?Oa:n.onConfirm})]}))},_=()=>n.footer?n.footer:n.theme==="round-button"?C():E();return Ne(Nd,Object.assign({},y,{visible:s,className:Me(_s([o]),d),style:{width:yl(r)},"aria-labelledby":i||u,closeOnClickOverlay:p,onClickCloseIcon:v,onClose:n.onClose,onClosed:n.onClosed},{children:[g(),S(),_()]}))};Number((G.version||"").split(".")[0]);const ele=Number((Kf.version||"").split(".")[0]),MS=Object.assign({},mY),{render:tle,unmountComponentAtNode:nle}=MS;let RS;try{ele>=18&&MS.createRoot&&(RS=MS.createRoot)}catch{}function _9(t){const{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:e}=MS;e&&typeof e=="object"&&(e.usingClientEntryPoint=t)}const NS="__react_vant_root__";function rle(t,e){tle(t,e)}function ile(t,e){_9(!0);const n=e[NS]||RS(e);_9(!1),n.render(t),e[NS]=n}function T9(t,e){if(RS){ile(t,e);return}rle(t,e)}function ole(t){return nle(t)}function ale(t){return hT(this,void 0,void 0,function*(){return Promise.resolve().then(()=>{var e;(e=t[NS])===null||e===void 0||e.unmount(),delete t[NS]})})}function A9(t){return RS?ale(t):ole(t)}const jp=k9;jp.show=t=>{if(!bT())return null;const e={overlay:!0,closeable:!1,closeIcon:q(mT,{}),lockScroll:!0,transition:"rv-dialog-bounce",showConfirmButton:!0,showCancelButton:!1,closeOnClickOverlay:!1},{onClosed:n,onCancel:r=Oa,onConfirm:i=Oa,onClose:o=Oa,cancelProps:s,confirmProps:u}=t,d=Mo(t,["onClosed","onCancel","onConfirm","onClose","cancelProps","confirmProps"]),c=xT(t.teleport),p=document.createElement("div");c.appendChild(p);let v=Oa;return T9(q(()=>{const[g,S]=G.useState(!1),[E,C]=G.useState(!1),[_,O]=G.useState(!1);G.useEffect(()=>{S(!0)},[]),v=()=>{S(!1),o&&o()};const A=()=>{n&&n(),A9(p)&&p.parentNode&&p.parentNode.removeChild(p)},D=B=>hT(void 0,void 0,void 0,function*(){const F=setTimeout(()=>O(!0));(yield i(B))!==!1?(clearTimeout(F),v()):(clearTimeout(F),O(!1))}),M=(B,F)=>hT(void 0,void 0,void 0,function*(){if(F){v();return}const I=setTimeout(()=>C(!0));(yield r(B))!==!1?(clearTimeout(I),v()):(clearTimeout(I),C(!1))});return q(k9,Object.assign({},e,d,{visible:g,teleport:()=>p,cancelProps:Object.assign({loading:E},s),confirmProps:Object.assign({loading:_},u),onClose:v,onCancel:M,onConfirm:D,onClosed:A}))},{}),p),v},jp.alert=t=>{const{onConfirm:e=Oa}=t;return new Promise(n=>{jp.show(Object.assign(Object.assign({},t),{onConfirm:r=>{e(r),n(r)}}))})},jp.confirm=t=>{const{onCancel:e=Oa,onConfirm:n=Oa}=t;return new Promise((r,i)=>{jp.show(Object.assign(Object.assign({showCancelButton:!0},t),{onCancel:o=>{e(o),i()},onConfirm:o=>{n(o),r(!0)}}))})};const sle=jp,[wg]=_n("input"),lle=G.forwardRef((t,e)=>{const n=Ti(t,{clearIcon:q(AS,{}),clearTrigger:"focus",defaultValue:""}),r=G.useRef(),[i,o]=G.useState(!1),s=G.useRef(!1),[u,d]=gg(n),{className:c,style:p,align:v,type:y,name:g,placeholder:S,disabled:E,readOnly:C,maxLength:_,autoFocus:O}=n,A=()=>{r!=null&&r.current&&r.current.focus()},D=()=>{r!=null&&r.current&&r.current.blur()};G.useImperativeHandle(e,()=>({clear:()=>{d("")},focus:A,blur:D,get nativeElement(){return r.current}}));const M=G.useMemo(()=>{if(n.clearable&&!C){const N=u!=="",j=n.clearTrigger==="always"||n.clearTrigger==="focus"&&i;return N&&j}return!1},[u,n.clearTrigger,i]),B=N=>{var j;let Y=N;if(!s.current&&(_i(_)&&Y.length>+_&&(Y=Y.slice(0,_),(j=n.onOverlimit)===null||j===void 0||j.call(n)),y==="number"||y==="digit")){const K=y==="number";Y=Yae(Y,K,K)}d(Y)},F=N=>{var j;o(!0),(j=n.onFocus)===null||j===void 0||j.call(n,N),C&&D()},I=N=>{var j;o(!1),(j=n.onBlur)===null||j===void 0||j.call(n,N),Y7()},U=N=>{var j;(N.key==="Enter"||+N.charCode==13)&&(lT(N),n.type==="search"&&D()),(j=n.onKeyPress)===null||j===void 0||j.call(n,N)},L=()=>{let N=y,j;return y==="number"&&(N="text",j="decimal"),y==="digit"&&(N="tel",j="numeric"),q("input",{value:u,type:N,inputMode:j,ref:r,name:g,className:Me(wg("control")),disabled:E,autoFocus:O,readOnly:C,placeholder:S||"",onBlur:I,onFocus:F,onChange:Y=>{var K;return B((K=Y==null?void 0:Y.currentTarget)===null||K===void 0?void 0:K.value)},onKeyPress:U,autoCapitalize:n.autoCapitalize,autoCorrect:n.autoCorrect,onKeyDown:n.onKeyDown,onKeyUp:n.onKeyUp,onCompositionStart:Y=>{var K;s.current=!0,(K=n.onCompositionStart)===null||K===void 0||K.call(n,Y)},onCompositionEnd:Y=>{var K,ee;s.current=!1,(K=n.onCompositionEnd)===null||K===void 0||K.call(n,Y),B((ee=Y==null?void 0:Y.currentTarget)===null||ee===void 0?void 0:ee.value)},onClick:n.onClick})},H=N=>{var j;d(""),(j=n.onClear)===null||j===void 0||j.call(n,N)};return Ne("div",Object.assign({className:Me(wg([v]),c),style:p},{children:[n.prefix&&q("div",Object.assign({className:Me(wg("prefix"))},{children:n.prefix})),L(),M&&G.cloneElement(n.clearIcon||q(AS,{}),{className:Me(wg("clear")),onTouchStart:H}),n.suffix&&q("div",Object.assign({className:Me(wg("suffix"))},{children:n.suffix}))]}))}),[Cg]=_n("textarea"),ule=G.forwardRef((t,e)=>{const n=Ti(t,{rows:2,clearIcon:q(AS,{}),clearTrigger:"focus",defaultValue:""}),[r,i]=G.useState(!1),o=G.useRef(),s=G.useRef(!1),[u,d]=gg(n),{className:c,style:p,name:v,rows:y,placeholder:g,disabled:S,readOnly:E,maxLength:C,showWordLimit:_,autoFocus:O}=n,A=()=>{o!=null&&o.current&&o.current.focus()},D=()=>{o!=null&&o.current&&o.current.blur()};G.useImperativeHandle(e,()=>({clear:()=>{d("")},focus:A,blur:D,get nativeElement(){return o.current}}));const M=()=>{const j=o.current;if(!j)return;j.style.height="auto";let Y=j.scrollHeight;if(Fp(n.autoSize)){const{maxHeight:K,minHeight:ee}=n.autoSize;K&&(Y=Math.min(Y,K)),ee&&(Y=Math.max(Y,ee))}Y&&(j.style.height=`${Y}px`)};G.useEffect(()=>{M()},[u]);const B=G.useMemo(()=>Cg("control",[{"min-height":!n.autoSize,clear:n.clearable}]),[n.autoSize]),F=j=>{var Y;let K=j;s.current||_i(C)&&K.length>+C&&(K=K.slice(0,C),(Y=n.onOverlimit)===null||Y===void 0||Y.call(n)),d(K)},I=j=>{var Y;i(!0),(Y=n.onFocus)===null||Y===void 0||Y.call(n,j),E&&D()},U=j=>{var Y;i(!1),(Y=n.onBlur)===null||Y===void 0||Y.call(n,j),Y7()},L=()=>{if(_){const j=(u?`${u}`:"").length;return q("div",Object.assign({className:Me(Cg("word-limit"))},{children:typeof _=="function"?_({currentCount:j,maxLength:C}):Ne(Jt,{children:[q("span",Object.assign({className:Me(Cg("word-num"))},{children:j})),C?`/${C}`:!1]})}))}return null},H=j=>{var Y;d(""),(Y=n.onClear)===null||Y===void 0||Y.call(n,j)},N=G.useMemo(()=>{if(n.clearable&&!E){const j=u!=="",Y=n.clearTrigger==="always"||n.clearTrigger==="focus"&&r;return j&&Y}return!1},[u,n.clearTrigger,r]);return Ne("div",Object.assign({className:Me(Cg(),c),style:p},{children:[q("textarea",{ref:o,name:v,rows:y,className:Me(B),value:u,disabled:S,autoFocus:O,readOnly:E,placeholder:g||"",onBlur:U,onFocus:I,onChange:j=>{var Y;return F((Y=j==null?void 0:j.currentTarget)===null||Y===void 0?void 0:Y.value)},onKeyPress:n.onKeyPress,onKeyDown:n.onKeyDown,onKeyUp:n.onKeyUp,autoComplete:n.autoComplete,onCompositionStart:j=>{var Y;s.current=!0,(Y=n.onCompositionStart)===null||Y===void 0||Y.call(n,j)},onCompositionEnd:j=>{var Y,K;s.current=!1,(Y=n.onCompositionEnd)===null||Y===void 0||Y.call(n,j),F((K=j==null?void 0:j.currentTarget)===null||K===void 0?void 0:K.value)},onClick:n.onClick}),N&&G.cloneElement(n.clearIcon,{className:Me(Cg("clear")),onTouchStart:H}),L()]}))}),dxe="",hxe="",Mc=Object.assign(lle,{TextArea:ule}),[Da]=_n("field"),cle=G.forwardRef((t,e)=>{var n;const r=Ti(t,{clearIcon:q(AS,{}),clearTrigger:"focus",formatTrigger:"onChange",defaultValue:""}),i=G.useRef(null),o=G.useRef(null),s=r.type==="textarea"?o:i,u=()=>{s.current&&s.current.focus()},d=()=>{s.current&&s.current.blur()},c=()=>{s.current&&s.current.clear()};G.useImperativeHandle(e,()=>({focus:u,blur:d,clear:c,get nativeElement(){return s.current.nativeElement}}));const p=W=>_i(r[W])?r[W]:null,v=()=>{const W=p("labelWidth");return W?{width:yl(W)}:{}},y=(W,te="onChange")=>{const{formatTrigger:ae,formatter:re}=r;return re&&te===ae?re(W):W},g=W=>{var te;(te=r.onChange)===null||te===void 0||te.call(r,y(W))},S=()=>{const{value:W,defaultValue:te,align:ae,type:re,placeholder:ce,name:ve,maxLength:Se,disabled:se,readOnly:Ae,clearable:Te,clearIcon:Pe,clearTrigger:ge,autoFocus:Ve,onClear:Fe,onBlur:gt,onFocus:dt,onKeyPress:en,onOverlimit:zn}=r;if(_i(r.children))return q("div",Object.assign({className:Me(Da("children"))},{children:r.children}));const qn={value:W,onChange:g,placeholder:ce,name:ve,defaultValue:te,disabled:se,clearable:Te,clearIcon:Pe,clearTrigger:ge,onClear:Fe,onBlur:gt,onFocus:dt,onKeyPress:en,onOverlimit:zn,autoFocus:Ve,readOnly:Ae,maxLength:Se,onClick:r.onClickInput};return re==="textarea"?q(Mc.TextArea,Object.assign({ref:o,autoSize:r.autoSize,showWordLimit:r.showWordLimit,rows:r.rows},qn)):q(Mc,Object.assign({ref:i,type:re,align:ae},qn))},E=()=>{const{leftIcon:W,onClickLeftIcon:te}=r;return W?q("div",Object.assign({className:Me(Da("left-icon")),onClick:te},{children:W})):null},C=()=>{const{rightIcon:W,onClickRightIcon:te}=r;return W?q("div",Object.assign({className:Me(Da("right-icon")),onClick:te},{children:W})):null},_=()=>{const W=r.errorMessage;return W?q("div",Object.assign({className:Me(Da("error-message"))},{children:W})):null},O=()=>r.intro?q("div",Object.assign({className:Me(Da("intro"))},{children:r.intro})):null,A=()=>{const{tooltip:W}=r;if(W){let te=q(Rse,{}),ae={message:W};if(!(G.isValidElement(W)||typeof W=="string")){const re=W,{icon:ce}=re,ve=Mo(re,["icon"]);te=ce||te,ae=ve}return q("div",Object.assign({className:Me(Da("tooltip")),onClick:()=>sle.show(ae)},{children:te}))}return null},D=()=>{const{label:W,colon:te}=r;return W?Ne(Jt,{children:[W,!!te&&":",A()]}):null},{size:M,center:B,border:F,isLink:I,required:U,clickable:L,labelAlign:H,className:N,labelClass:j,valueClass:Y,controlAlign:K,arrowDirection:ee,disabled:ne,titleStyle:$,error:Z}=r,X=(n=r.suffix)!==null&&n!==void 0?n:r.button;return Ne(h9,Object.assign({title:D(),size:M,icon:E(),center:B,border:F,isLink:I,required:U,clickable:L,extra:r.extra,titleStyle:Object.assign(Object.assign({},v()),$),valueClass:Me(Da("value",[K]),Y),titleClass:Me(Da("label",H),j),arrowDirection:ee,onClick:r.onClick,style:r.style,className:Me(Da({error:Z,disabled:ne,[`label-${H}`]:H}),N)},{children:[Ne("div",Object.assign({className:Me(Da("body"))},{children:[r.prefix&&q("div",Object.assign({className:Me(Da("prefix"))},{children:r.prefix})),q("div",Object.assign({className:Me(Da("control-wrapper"))},{children:S()})),C(),X&&q("div",Object.assign({className:Me(Da("suffix"))},{children:X}))]})),_(),O()]}))}),fle=Symbol("field"),wT=Object.assign(cle,{[hse]:fle}),mxe="",CT=t=>typeof t=="number"?`${t}px`:t,[ET]=_n("space"),kT=t=>{const{wrap:e,block:n,direction:r="horizontal",align:i,justify:o}=t,s=G.useMemo(()=>{if(t.gap!==void 0&&t.gap!==null){if(Array.isArray(t.gap)){const[d,c]=t.gap;return Object.assign(Object.assign({},t.style),{"--gap":`${CT(d)} ${CT(c)}`})}return Object.assign(Object.assign({},t.style),{"--gap":CT(t.gap)})}return t.style},[t.style,t.gap]),u=G.useMemo(()=>G.Children.map(t.children,d=>d).filter(d=>d!=null),[t.children]);return q("div",Object.assign({className:Me(t.className,ET({wrap:e,block:n,[`${r}`]:!!r,[`align-${i}`]:!!i,[`justify-${o}`]:!!o})),style:s,onClick:t.onClick},{children:u.map((d,c)=>Ne(G.Fragment,{children:[q("div",Object.assign({className:Me(ET("item"))},{children:d})),!!t.divider&&c!==u.length-1&&q("div",Object.assign({className:Me(ET("item-divider"))},{children:t.divider}))]},c))}))};function dle(t,e,n){return Math.max(e,Math.min(t,n))}const io={toVector(t,e){return t===void 0&&(t=e),Array.isArray(t)?t:[t,t]},add(t,e){return[t[0]+e[0],t[1]+e[1]]},sub(t,e){return[t[0]-e[0],t[1]-e[1]]},addTo(t,e){t[0]+=e[0],t[1]+=e[1]},subTo(t,e){t[0]-=e[0],t[1]-=e[1]}};function O9(t,e,n){return e===0||Math.abs(e)===1/0?Math.pow(t,n*5):t*e*n/(e+n*t)}function D9(t,e,n,r=.15){return r===0?dle(t,e,n):t<e?-O9(e-t,n-e,r)+e:t>n?+O9(t-n,n-e,r)+n:t}function hle(t,[e,n],[r,i]){const[[o,s],[u,d]]=t;return[D9(e,o,s,r),D9(n,u,d,i)]}function na(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function M9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function _r(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?M9(Object(n),!0).forEach(function(r){na(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M9(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}const R9={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function N9(t){return t?t[0].toUpperCase()+t.slice(1):""}const ple=["enter","leave"];function mle(t=!1,e){return t&&!ple.includes(e)}function vle(t,e="",n=!1){const r=R9[t],i=r&&r[e]||e;return"on"+N9(t)+N9(i)+(mle(n,i)?"Capture":"")}const gle=["gotpointercapture","lostpointercapture"];function yle(t){let e=t.substring(2).toLowerCase();const n=!!~e.indexOf("passive");n&&(e=e.replace("passive",""));const r=gle.includes(e)?"capturecapture":"capture",i=!!~e.indexOf(r);return i&&(e=e.replace("capture","")),{device:e,capture:i,passive:n}}function xle(t,e=""){const n=R9[t],r=n&&n[e]||e;return t+r}function FS(t){return"touches"in t}function F9(t){return FS(t)?"touch":"pointerType"in t?t.pointerType:"mouse"}function ble(t){return Array.from(t.touches).filter(e=>{var n,r;return e.target===t.currentTarget||((n=t.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,e.target))})}function Sle(t){return t.type==="touchend"||t.type==="touchcancel"?t.changedTouches:t.targetTouches}function P9(t){return FS(t)?Sle(t)[0]:t}function wle(t){return ble(t).map(e=>e.identifier)}function _T(t){const e=P9(t);return FS(t)?e.identifier:e.pointerId}function L9(t){const e=P9(t);return[e.clientX,e.clientY]}function Cle(t){const e={};if("buttons"in t&&(e.buttons=t.buttons),"shiftKey"in t){const{shiftKey:n,altKey:r,metaKey:i,ctrlKey:o}=t;Object.assign(e,{shiftKey:n,altKey:r,metaKey:i,ctrlKey:o})}return e}function PS(t,...e){return typeof t=="function"?t(...e):t}function Ele(){}function kle(...t){return t.length===0?Ele:t.length===1?t[0]:function(){let e;for(const n of t)e=n.apply(this,arguments)||e;return e}}function B9(t,e){return Object.assign({},e,t||{})}const _le=32;class Tle{constructor(e,n,r){this.ctrl=e,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:n,ingKey:r,args:i}=this;n[r]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=i,e.axis=void 0,e.memo=void 0,e.elapsedTime=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=e.target,n.currentTarget=e.currentTarget,n.lastOffset=r.from?PS(r.from,n):n.offset,n.offset=n.lastOffset),n.startTime=n.timeStamp=e.timeStamp}computeValues(e){const n=this.state;n._values=e,n.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:n,config:r,shared:i}=this;n.args=this.args;let o=0;if(e&&(n.event=e,r.preventDefault&&e.cancelable&&n.event.preventDefault(),n.type=e.type,i.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,i.locked=!!document.pointerLockElement,Object.assign(i,Cle(e)),i.down=i.pressed=i.buttons%2===1||i.touches>0,o=e.timeStamp-n.timeStamp,n.timeStamp=e.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const B=n._delta.map(Math.abs);io.addTo(n._distance,B)}this.axisIntent&&this.axisIntent(e);const[s,u]=n._movement,[d,c]=r.threshold,{_step:p,values:v}=n;if(r.hasCustomTransform?(p[0]===!1&&(p[0]=Math.abs(s)>=d&&v[0]),p[1]===!1&&(p[1]=Math.abs(u)>=c&&v[1])):(p[0]===!1&&(p[0]=Math.abs(s)>=d&&Math.sign(s)*d),p[1]===!1&&(p[1]=Math.abs(u)>=c&&Math.sign(u)*c)),n.intentional=p[0]!==!1||p[1]!==!1,!n.intentional)return;const y=[0,0];if(r.hasCustomTransform){const[B,F]=v;y[0]=p[0]!==!1?B-p[0]:0,y[1]=p[1]!==!1?F-p[1]:0}else y[0]=p[0]!==!1?s-p[0]:0,y[1]=p[1]!==!1?u-p[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(y);const g=n.offset,S=n._active&&!n._blocked||n.active;S&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=i[this.ingKey]=n._active,e&&(n.first&&("bounds"in r&&(n._bounds=PS(r.bounds,n)),this.setup&&this.setup()),n.movement=y,this.computeOffset()));const[E,C]=n.offset,[[_,O],[A,D]]=n._bounds;n.overflow=[E<_?-1:E>O?1:0,C<A?-1:C>D?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const M=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=hle(n._bounds,n.offset,M),n.delta=io.sub(n.offset,g),this.computeMovement(),S&&(!n.last||o>_le)){n.delta=io.sub(n.offset,g);const B=n.delta.map(Math.abs);io.addTo(n.distance,B),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&o>0&&(n.velocity=[B[0]/o,B[1]/o])}}emit(){const e=this.state,n=this.shared,r=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!r.triggerAllEvents)return;const i=this.handler(_r(_r(_r({},n),e),{},{[this.aliasKey]:e.values}));i!==void 0&&(e.memo=i)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function Ale([t,e],n){const r=Math.abs(t),i=Math.abs(e);if(r>i&&r>n)return"x";if(i>r&&i>n)return"y"}class Ole extends Tle{constructor(...e){super(...e),na(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=io.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=io.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const n=this.state,r=this.config;if(!n.axis&&e){const i=typeof r.axisThreshold=="object"?r.axisThreshold[F9(e)]:r.axisThreshold;n.axis=Ale(n._movement,i)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0;break}}}const z9=t=>t,I9=.15,TT={enabled(t=!0){return t},eventOptions(t,e,n){return _r(_r({},n.shared.eventOptions),t)},preventDefault(t=!1){return t},triggerAllEvents(t=!1){return t},rubberband(t=0){switch(t){case!0:return[I9,I9];case!1:return[0,0];default:return io.toVector(t)}},from(t){if(typeof t=="function")return t;if(t!=null)return io.toVector(t)},transform(t,e,n){const r=t||n.shared.transform;if(this.hasCustomTransform=!!r,process.env.NODE_ENV==="development"){const i=r||z9;return o=>{const s=i(o);return!isFinite(s[0])||isFinite(s[1]),s}}return r||z9},threshold(t){return io.toVector(t,0)}};process.env.NODE_ENV==="development"&&Object.assign(TT,{domTarget(t){if(t!==void 0)throw Error("[@use-gesture]: `domTarget` option has been renamed to `target`.");return NaN},lockDirection(t){if(t!==void 0)throw Error("[@use-gesture]: `lockDirection` option has been merged with `axis`. Use it as in `{ axis: 'lock' }`");return NaN},initial(t){if(t!==void 0)throw Error("[@use-gesture]: `initial` option has been renamed to `from`.");return NaN}});const Dle=0,Eg=_r(_r({},TT),{},{axis(t,e,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(t=Dle){return t},bounds(t={}){if(typeof t=="function")return o=>Eg.bounds(t(o));if("current"in t)return()=>t.current;if(typeof HTMLElement=="function"&&t instanceof HTMLElement)return t;const{left:e=-1/0,right:n=1/0,top:r=-1/0,bottom:i=1/0}=t;return[[e,n],[r,i]]}}),LS=10,j9={ArrowRight:(t=1)=>[LS*t,0],ArrowLeft:(t=1)=>[-LS*t,0],ArrowUp:(t=1)=>[0,-LS*t],ArrowDown:(t=1)=>[0,LS*t]};class Mle extends Ole{constructor(...e){super(...e),na(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const n=e._bounds.getBoundingClientRect(),r=e.currentTarget.getBoundingClientRect(),i={left:n.left-r.left+e.offset[0],right:n.right-r.right+e.offset[0],top:n.top-r.top+e.offset[1],bottom:n.bottom-r.bottom+e.offset[1]};e._bounds=Eg.bounds(i)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const n=this.config,r=this.state;if(e.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(e.buttons):n.pointerButtons!==-1&&n.pointerButtons!==e.buttons))return;const i=this.ctrl.setEventIds(e);n.pointerCapture&&e.target.setPointerCapture(e.pointerId),!(i&&i.size>1&&r._pointerActive)&&(this.start(e),this.setupPointer(e),r._pointerId=_T(e),r._pointerActive=!0,this.computeValues(L9(e)),this.computeInitial(),n.preventScrollAxis&&F9(e)!=="mouse"?(r._active=!1,this.setupScrollPrevention(e)):n.delay>0?(this.setupDelayTrigger(e),n.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const n=this.state,r=this.config;if(!n._pointerActive||n.type===e.type&&e.timeStamp===n.timeStamp)return;const i=_T(e);if(n._pointerId!==void 0&&i!==n._pointerId)return;const o=L9(e);if(document.pointerLockElement===e.target?n._delta=[e.movementX,e.movementY]:(n._delta=io.sub(o,n._values),this.computeValues(o)),io.addTo(n._movement,n._delta),this.compute(e),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(e);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}else return;this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch{process.env.NODE_ENV}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const i=_T(e);if(n._pointerId!==void 0&&i!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,s]=n._distance;if(n.tap=o<=r.tapsThreshold&&s<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[u,d]=n.direction,[c,p]=n.velocity,[v,y]=n.movement,[g,S]=r.swipe.velocity,[E,C]=r.swipe.distance,_=r.swipe.duration;n.elapsedTime<_&&(Math.abs(c)>g&&Math.abs(v)>E&&(n.swipe[0]=u),Math.abs(p)>S&&Math.abs(y)>C&&(n.swipe[1]=d))}this.emit()}pointerClick(e){this.state.tap||(e.preventDefault(),e.stopPropagation())}setupPointer(e){const n=this.config,r=n.device;if(process.env.NODE_ENV==="development")try{if(r==="pointer"&&n.preventScrollDelay===void 0){const i="uv"in e?e.sourceEvent.currentTarget:e.currentTarget;window.getComputedStyle(i).touchAction}}catch{}n.pointerLock&&e.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,Rle(e);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(e)},this.config.delay)}keyDown(e){const n=j9[e.key];if(n){const r=this.state,i=e.shiftKey?10:e.altKey?.1:1;this.start(e),r._delta=n(i),r._keyboardActive=!0,io.addTo(r._movement,r._delta),this.compute(e),this.emit()}}keyUp(e){e.key in j9&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const n=this.config.device;e(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(n,"change",this.pointerMove.bind(this)),e(n,"end",this.pointerUp.bind(this)),e(n,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function Rle(t){"persist"in t&&typeof t.persist=="function"&&t.persist()}const kg=typeof window<"u"&&window.document&&window.document.createElement;function Nle(){return kg&&"ontouchstart"in window}function H9(){return Nle()||kg&&window.navigator.maxTouchPoints>1}function Fle(){return kg&&"onpointerdown"in window}function Ple(){return kg&&"exitPointerLock"in window.document}function Lle(){try{return"constructor"in GestureEvent}catch{return!1}}const ns={isBrowser:kg,gesture:Lle(),touch:H9(),touchscreen:H9(),pointer:Fle(),pointerLock:Ple()},Ble=250,zle=180,Ile=.5,jle=50,Hle=250,U9={mouse:0,touch:0,pen:8},V9=_r(_r({},Eg),{},{device(t,e,{pointer:{touch:n=!1,lock:r=!1,mouse:i=!1}={}}){return this.pointerLock=r&&ns.pointerLock,ns.touch&&n?"touch":this.pointerLock?"mouse":ns.pointer&&!i?"pointer":ns.touch?"touch":"mouse"},preventScrollAxis(t,e,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&t?Ble:void 0,!(!ns.touchscreen||n===!1))return t||(n!==void 0?"y":void 0)},pointerCapture(t,e,{pointer:{capture:n=!0,buttons:r=1}={}}){return this.pointerButtons=r,!this.pointerLock&&this.device==="pointer"&&n},keys(t=!0){return t},threshold(t,e,{filterTaps:n=!1,tapsThreshold:r=3,axis:i=void 0}){const o=io.toVector(t,n?r:i?1:0);return this.filterTaps=n,this.tapsThreshold=r,o},swipe({velocity:t=Ile,distance:e=jle,duration:n=Hle}={}){return{velocity:this.transform(io.toVector(t)),distance:this.transform(io.toVector(e)),duration:n}},delay(t=0){switch(t){case!0:return zle;case!1:return 0;default:return t}},axisThreshold(t){return t?_r(_r({},U9),t):U9}});process.env.NODE_ENV==="development"&&Object.assign(V9,{useTouch(t){if(t!==void 0)throw Error("[@use-gesture]: `useTouch` option has been renamed to `pointer.touch`. Use it as in `{ pointer: { touch: true } }`.");return NaN},experimental_preventWindowScrollY(t){if(t!==void 0)throw Error("[@use-gesture]: `experimental_preventWindowScrollY` option has been renamed to `preventScroll`.");return NaN},swipeVelocity(t){if(t!==void 0)throw Error("[@use-gesture]: `swipeVelocity` option has been renamed to `swipe.velocity`. Use it as in `{ swipe: { velocity: 0.5 } }`.");return NaN},swipeDistance(t){if(t!==void 0)throw Error("[@use-gesture]: `swipeDistance` option has been renamed to `swipe.distance`. Use it as in `{ swipe: { distance: 50 } }`.");return NaN},swipeDuration(t){if(t!==void 0)throw Error("[@use-gesture]: `swipeDuration` option has been renamed to `swipe.duration`. Use it as in `{ swipe: { duration: 250 } }`.");return NaN}}),_r(_r({},TT),{},{device(t,e,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!ns.touch&&ns.gesture)return"gesture";if(ns.touch&&r)return"touch";if(ns.touchscreen){if(ns.pointer)return"pointer";if(ns.touch)return"touch"}},bounds(t,e,{scaleBounds:n={},angleBounds:r={}}){const i=s=>{const u=B9(PS(n,s),{min:-1/0,max:1/0});return[u.min,u.max]},o=s=>{const u=B9(PS(r,s),{min:-1/0,max:1/0});return[u.min,u.max]};return typeof n!="function"&&typeof r!="function"?[i(),o()]:s=>[i(s),o(s)]},threshold(t,e,n){return this.lockDirection=n.axis==="lock",io.toVector(t,this.lockDirection?[.1,3]:0)},modifierKey(t){return t===void 0?"ctrlKey":t}}),_r(_r({},Eg),{},{mouseOnly:(t=!0)=>t}),_r(_r({},Eg),{},{mouseOnly:(t=!0)=>t});const $9=new Map,AT=new Map;function Ule(t){$9.set(t.key,t.engine),AT.set(t.key,t.resolver)}const Vle={key:"drag",engine:Mle,resolver:V9};function $le(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function qle(t,e){if(t==null)return{};var n=$le(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}const Yle={target(t){if(t)return()=>"current"in t?t.current:t},enabled(t=!0){return t},window(t=ns.isBrowser?window:void 0){return t},eventOptions({passive:t=!0,capture:e=!1}={}){return{passive:t,capture:e}},transform(t){return t}},Kle=["target","eventOptions","window","enabled","transform"];function BS(t={},e){const n={};for(const[r,i]of Object.entries(e))switch(typeof i){case"function":if(process.env.NODE_ENV==="development"){const o=i.call(n,t[r],r,t);Number.isNaN(o)||(n[r]=o)}else n[r]=i.call(n,t[r],r,t);break;case"object":n[r]=BS(t[r],i);break;case"boolean":i&&(n[r]=t[r]);break}return n}function Wle(t,e){const n=t,{target:r,eventOptions:i,window:o,enabled:s,transform:u}=n,d=qle(n,Kle),c={shared:BS({target:r,eventOptions:i,window:o,enabled:s,transform:u},Yle)};if(e){const p=AT.get(e);c[e]=BS(_r({shared:c.shared},d),p)}else for(const p in d){const v=AT.get(p);if(v)c[p]=BS(_r({shared:c.shared},d[p]),v);else if(process.env.NODE_ENV==="development"&&!["drag","pinch","scroll","wheel","move","hover"].includes(p)&&p==="domTarget")throw Error("[@use-gesture]: `domTarget` option has been renamed to `target`.")}return c}class q9{constructor(e,n){na(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=n}add(e,n,r,i,o){const s=this._listeners,u=xle(n,r),d=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},c=_r(_r({},d),o);e.addEventListener(u,i,c);const p=()=>{e.removeEventListener(u,i,c),s.delete(p)};return s.add(p),p}clean(){this._listeners.forEach(e=>e()),this._listeners.clear()}}class Gle{constructor(){na(this,"_timeouts",new Map)}add(e,n,r=140,...i){this.remove(e),this._timeouts.set(e,window.setTimeout(n,r,...i))}remove(e){const n=this._timeouts.get(e);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}let Qle=class{constructor(e){na(this,"gestures",new Set),na(this,"_targetEventStore",new q9(this)),na(this,"gestureEventStores",{}),na(this,"gestureTimeoutStores",{}),na(this,"handlers",{}),na(this,"config",{}),na(this,"pointerIds",new Set),na(this,"touchIds",new Set),na(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),Xle(this,e)}setEventIds(e){if(FS(e))return this.touchIds=new Set(wle(e)),this.touchIds;if("pointerId"in e)return e.type==="pointerup"||e.type==="pointercancel"?this.pointerIds.delete(e.pointerId):e.type==="pointerdown"&&this.pointerIds.add(e.pointerId),this.pointerIds}applyHandlers(e,n){this.handlers=e,this.nativeHandlers=n}applyConfig(e,n){this.config=Wle(e,n)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const n=this.config.shared,r={};let i;if(!(n.target&&(i=n.target(),!i))){if(n.enabled){for(const s of this.gestures){const u=this.config[s],d=Y9(r,u.eventOptions,!!i);if(u.enabled){const c=$9.get(s);new c(this,e,s).bind(d)}}const o=Y9(r,n.eventOptions,!!i);for(const s in this.nativeHandlers)o(s,"",u=>this.nativeHandlers[s](_r(_r({},this.state.shared),{},{event:u,args:e})),void 0,!0)}for(const o in r)r[o]=kle(...r[o]);if(!i)return r;for(const o in r){const{device:s,capture:u,passive:d}=yle(o);this._targetEventStore.add(i,s,"",r[o],{capture:u,passive:d})}}}};function Hp(t,e){t.gestures.add(e),t.gestureEventStores[e]=new q9(t,e),t.gestureTimeoutStores[e]=new Gle}function Xle(t,e){e.drag&&Hp(t,"drag"),e.wheel&&Hp(t,"wheel"),e.scroll&&Hp(t,"scroll"),e.move&&Hp(t,"move"),e.pinch&&Hp(t,"pinch"),e.hover&&Hp(t,"hover")}const Y9=(t,e,n)=>(r,i,o,s={},u=!1)=>{var d,c;const p=(d=s.capture)!==null&&d!==void 0?d:e.capture,v=(c=s.passive)!==null&&c!==void 0?c:e.passive;let y=u?r:vle(r,i,p);n&&v&&(y+="Passive"),t[y]=t[y]||[],t[y].push(o)};function Zle(t,e={},n,r){const i=G.useMemo(()=>new Qle(t),[]);if(i.applyHandlers(t,r),i.applyConfig(e,n),G.useEffect(i.effect.bind(i)),G.useEffect(()=>i.clean.bind(i),[]),e.target===void 0)return i.bind.bind(i)}function Jle(t,e){return Ule(Vle),Zle({drag:t},e||{},"drag")}var OT=Tg(),Ut=t=>_g(t,OT),DT=Tg();Ut.write=t=>_g(t,DT);var zS=Tg();Ut.onStart=t=>_g(t,zS);var MT=Tg();Ut.onFrame=t=>_g(t,MT);var RT=Tg();Ut.onFinish=t=>_g(t,RT);var Up=[];Ut.setTimeout=(t,e)=>{const n=Ut.now()+e,r=()=>{const o=Up.findIndex(s=>s.cancel==r);~o&&Up.splice(o,1),Nc-=~o?1:0},i={time:n,handler:t,cancel:r};return Up.splice(K9(n),0,i),Nc+=1,W9(),i};var K9=t=>~(~Up.findIndex(e=>e.time>t)||~Up.length);Ut.cancel=t=>{zS.delete(t),MT.delete(t),RT.delete(t),OT.delete(t),DT.delete(t)},Ut.sync=t=>{FT=!0,Ut.batchedUpdates(t),FT=!1},Ut.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function r(...i){e=i,Ut.onStart(n)}return r.handler=t,r.cancel=()=>{zS.delete(n),e=null},r};var NT=typeof window<"u"?window.requestAnimationFrame:()=>{};Ut.use=t=>NT=t,Ut.now=typeof performance<"u"?()=>performance.now():Date.now,Ut.batchedUpdates=t=>t(),Ut.catch=console.error,Ut.frameLoop="always",Ut.advance=()=>{Ut.frameLoop!=="demand"||Q9()};var Rc=-1,Nc=0,FT=!1;function _g(t,e){FT?(e.delete(t),t(0)):(e.add(t),W9())}function W9(){Rc<0&&(Rc=0,Ut.frameLoop!=="demand"&&NT(G9))}function eue(){Rc=-1}function G9(){~Rc&&(NT(G9),Ut.batchedUpdates(Q9))}function Q9(){const t=Rc;Rc=Ut.now();const e=K9(Rc);if(e&&(X9(Up.splice(0,e),n=>n.handler()),Nc-=e),!Nc){eue();return}zS.flush(),OT.flush(t?Math.min(64,Rc-t):16.667),MT.flush(),DT.flush(),RT.flush()}function Tg(){let t=new Set,e=t;return{add(n){Nc+=e==t&&!t.has(n)?1:0,t.add(n)},delete(n){return Nc-=e==t&&t.has(n)?1:0,t.delete(n)},flush(n){e.size&&(t=new Set,Nc-=e.size,X9(e,r=>r(n)&&t.add(r)),Nc+=t.size,e=t)}}}function X9(t,e){t.forEach(n=>{try{e(n)}catch(r){Ut.catch(r)}})}var tue=Object.defineProperty,nue=(t,e)=>{for(var n in e)tue(t,n,{get:e[n],enumerable:!0})},Ts={};nue(Ts,{assign:()=>iue,colors:()=>Fc,createStringInterpolator:()=>BT,skipAnimation:()=>J9,to:()=>Z9,willAdvance:()=>zT});function PT(){}var rue=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),Ge={arr:Array.isArray,obj:t=>!!t&&t.constructor.name==="Object",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0};function gu(t,e){if(Ge.arr(t)){if(!Ge.arr(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return t===e}var fn=(t,e)=>t.forEach(e);function bl(t,e,n){if(Ge.arr(t)){for(let r=0;r<t.length;r++)e.call(n,t[r],`${r}`);return}for(const r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r)}var Ma=t=>Ge.und(t)?[]:Ge.arr(t)?t:[t];function Ag(t,e){if(t.size){const n=Array.from(t);t.clear(),fn(n,e)}}var Og=(t,...e)=>Ag(t,n=>n(...e)),LT=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),BT,Z9,Fc=null,J9=!1,zT=PT,iue=t=>{t.to&&(Z9=t.to),t.now&&(Ut.now=t.now),t.colors!==void 0&&(Fc=t.colors),t.skipAnimation!=null&&(J9=t.skipAnimation),t.createStringInterpolator&&(BT=t.createStringInterpolator),t.requestAnimationFrame&&Ut.use(t.requestAnimationFrame),t.batchedUpdates&&(Ut.batchedUpdates=t.batchedUpdates),t.willAdvance&&(zT=t.willAdvance),t.frameLoop&&(Ut.frameLoop=t.frameLoop)},Dg=new Set,rs=[],IT=[],IS=0,jS={get idle(){return!Dg.size&&!rs.length},start(t){IS>t.priority?(Dg.add(t),Ut.onStart(oue)):(eB(t),Ut(jT))},advance:jT,sort(t){if(IS)Ut.onFrame(()=>jS.sort(t));else{const e=rs.indexOf(t);~e&&(rs.splice(e,1),tB(t))}},clear(){rs=[],Dg.clear()}};function oue(){Dg.forEach(eB),Dg.clear(),Ut(jT)}function eB(t){rs.includes(t)||tB(t)}function tB(t){rs.splice(aue(rs,e=>e.priority>t.priority),0,t)}function jT(t){const e=IT;for(let n=0;n<rs.length;n++){const r=rs[n];IS=r.priority,r.idle||(zT(r),r.advance(t),r.idle||e.push(r))}return IS=0,IT=rs,IT.length=0,rs=e,rs.length>0}function aue(t,e){const n=t.findIndex(e);return n<0?t.length:n}var sue=(t,e,n)=>Math.min(Math.max(n,t),e),lue={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},As="[-+]?\\d*\\.?\\d+",HS=As+"%";function US(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var uue=new RegExp("rgb"+US(As,As,As)),cue=new RegExp("rgba"+US(As,As,As,As)),fue=new RegExp("hsl"+US(As,HS,HS)),due=new RegExp("hsla"+US(As,HS,HS,As)),hue=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,pue=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,mue=/^#([0-9a-fA-F]{6})$/,vue=/^#([0-9a-fA-F]{8})$/;function gue(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=mue.exec(t))?parseInt(e[1]+"ff",16)>>>0:Fc&&Fc[t]!==void 0?Fc[t]:(e=uue.exec(t))?(Vp(e[1])<<24|Vp(e[2])<<16|Vp(e[3])<<8|255)>>>0:(e=cue.exec(t))?(Vp(e[1])<<24|Vp(e[2])<<16|Vp(e[3])<<8|iB(e[4]))>>>0:(e=hue.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=vue.exec(t))?parseInt(e[1],16)>>>0:(e=pue.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=fue.exec(t))?(nB(rB(e[1]),VS(e[2]),VS(e[3]))|255)>>>0:(e=due.exec(t))?(nB(rB(e[1]),VS(e[2]),VS(e[3]))|iB(e[4]))>>>0:null}function HT(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function nB(t,e,n){const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,o=HT(i,r,t+1/3),s=HT(i,r,t),u=HT(i,r,t-1/3);return Math.round(o*255)<<24|Math.round(s*255)<<16|Math.round(u*255)<<8}function Vp(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function rB(t){return(parseFloat(t)%360+360)%360/360}function iB(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function VS(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function oB(t){let e=gue(t);if(e===null)return t;e=e||0;const n=(e&4278190080)>>>24,r=(e&16711680)>>>16,i=(e&65280)>>>8,o=(e&255)/255;return`rgba(${n}, ${r}, ${i}, ${o})`}var Mg=(t,e,n)=>{if(Ge.fun(t))return t;if(Ge.arr(t))return Mg({range:t,output:e,extrapolate:n});if(Ge.str(t.output[0]))return BT(t);const r=t,i=r.output,o=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",u=r.extrapolateRight||r.extrapolate||"extend",d=r.easing||(c=>c);return c=>{const p=xue(c,o);return yue(c,o[p],o[p+1],i[p],i[p+1],d,s,u,r.map)}};function yue(t,e,n,r,i,o,s,u,d){let c=d?d(t):t;if(c<e){if(s==="identity")return c;s==="clamp"&&(c=e)}if(c>n){if(u==="identity")return c;u==="clamp"&&(c=n)}return r===i?r:e===n?t<=e?r:i:(e===-1/0?c=-c:n===1/0?c=c-e:c=(c-e)/(n-e),c=o(c),r===-1/0?c=-c:i===1/0?c=c+r:c=c*(i-r)+r,c)}function xue(t,e){for(var n=1;n<e.length-1&&!(e[n]>=t);++n);return n-1}var bue=(t,e="end")=>n=>{n=e==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*t,i=e==="end"?Math.floor(r):Math.ceil(r);return sue(0,1,i/t)},$S=1.70158,qS=$S*1.525,aB=$S+1,sB=2*Math.PI/3,lB=2*Math.PI/4.5,YS=t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,Sue={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>1-(1-t)*(1-t),easeInOutQuad:t=>t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2,easeInCubic:t=>t*t*t,easeOutCubic:t=>1-Math.pow(1-t,3),easeInOutCubic:t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1-Math.pow(1-t,4),easeInOutQuart:t=>t<.5?8*t*t*t*t:1-Math.pow(-2*t+2,4)/2,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1-Math.pow(1-t,5),easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1-Math.pow(-2*t+2,5)/2,easeInSine:t=>1-Math.cos(t*Math.PI/2),easeOutSine:t=>Math.sin(t*Math.PI/2),easeInOutSine:t=>-(Math.cos(Math.PI*t)-1)/2,easeInExpo:t=>t===0?0:Math.pow(2,10*t-10),easeOutExpo:t=>t===1?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>t===0?0:t===1?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2,easeInCirc:t=>1-Math.sqrt(1-Math.pow(t,2)),easeOutCirc:t=>Math.sqrt(1-Math.pow(t-1,2)),easeInOutCirc:t=>t<.5?(1-Math.sqrt(1-Math.pow(2*t,2)))/2:(Math.sqrt(1-Math.pow(-2*t+2,2))+1)/2,easeInBack:t=>aB*t*t*t-$S*t*t,easeOutBack:t=>1+aB*Math.pow(t-1,3)+$S*Math.pow(t-1,2),easeInOutBack:t=>t<.5?Math.pow(2*t,2)*((qS+1)*2*t-qS)/2:(Math.pow(2*t-2,2)*((qS+1)*(t*2-2)+qS)+2)/2,easeInElastic:t=>t===0?0:t===1?1:-Math.pow(2,10*t-10)*Math.sin((t*10-10.75)*sB),easeOutElastic:t=>t===0?0:t===1?1:Math.pow(2,-10*t)*Math.sin((t*10-.75)*sB)+1,easeInOutElastic:t=>t===0?0:t===1?1:t<.5?-(Math.pow(2,20*t-10)*Math.sin((20*t-11.125)*lB))/2:Math.pow(2,-20*t+10)*Math.sin((20*t-11.125)*lB)/2+1,easeInBounce:t=>1-YS(1-t),easeOutBounce:YS,easeInOutBounce:t=>t<.5?(1-YS(1-2*t))/2:(1+YS(2*t-1))/2,steps:bue},Rg=Symbol.for("FluidValue.get"),$p=Symbol.for("FluidValue.observers"),is=t=>!!(t&&t[Rg]),ra=t=>t&&t[Rg]?t[Rg]():t,uB=t=>t[$p]||null;function wue(t,e){t.eventObserved?t.eventObserved(e):t(e)}function Ng(t,e){const n=t[$p];n&&n.forEach(r=>{wue(r,e)})}var cB=class{constructor(t){if(!t&&!(t=this.get))throw Error("Unknown getter");Cue(this,t)}},Cue=(t,e)=>fB(t,Rg,e);function qp(t,e){if(t[Rg]){let n=t[$p];n||fB(t,$p,n=new Set),n.has(e)||(n.add(e),t.observerAdded&&t.observerAdded(n.size,e))}return e}function Fg(t,e){const n=t[$p];if(n&&n.has(e)){const r=n.size-1;r?n.delete(e):t[$p]=null,t.observerRemoved&&t.observerRemoved(r,e)}}var fB=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),KS=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Eue=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,dB=new RegExp(`(${KS.source})(%|[a-z]+)`,"i"),kue=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,WS=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,hB=t=>{const[e,n]=_ue(t);if(!e||LT())return t;const r=window.getComputedStyle(document.documentElement).getPropertyValue(e);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||t}else{if(n&&WS.test(n))return hB(n);if(n)return n}return t},_ue=t=>{const e=WS.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]},UT,Tue=(t,e,n,r,i)=>`rgba(${Math.round(e)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,pB=t=>{UT||(UT=Fc?new RegExp(`(${Object.keys(Fc).join("|")})(?!\\w)`,"g"):/^\b$/);const e=t.output.map(o=>ra(o).replace(WS,hB).replace(Eue,oB).replace(UT,oB)),n=e.map(o=>o.match(KS).map(Number)),i=n[0].map((o,s)=>n.map(u=>{if(!(s in u))throw Error('The arity of each "output" value must be equal');return u[s]})).map(o=>Mg({...t,output:o}));return o=>{var d;const s=!dB.test(e[0])&&((d=e.find(c=>dB.test(c)))==null?void 0:d.replace(KS,""));let u=0;return e[0].replace(KS,()=>`${i[u++](o)}${s||""}`).replace(kue,Tue)}},VT="react-spring: ",mB=t=>{const e=t;let n=!1;if(typeof e!="function")throw new TypeError(`${VT}once requires a function parameter`);return(...r)=>{n||(e(...r),n=!0)}},Aue=mB(console.warn);function Oue(){Aue(`${VT}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Due=mB(console.warn);function Mue(){Due(`${VT}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function GS(t){return Ge.str(t)&&(t[0]=="#"||/\d/.test(t)||!LT()&&WS.test(t)||t in(Fc||{}))}var $T=LT()?G.useEffect:G.useLayoutEffect,Rue=()=>{const t=G.useRef(!1);return $T(()=>(t.current=!0,()=>{t.current=!1}),[]),t};function vB(){const t=G.useState()[1],e=Rue();return()=>{e.current&&t(Math.random())}}function Nue(t,e){const[n]=G.useState(()=>({inputs:e,result:t()})),r=G.useRef(),i=r.current;let o=i;return o?e&&o.inputs&&Fue(e,o.inputs)||(o={inputs:e,result:t()}):o=n,G.useEffect(()=>{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}function Fue(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}var gB=t=>G.useEffect(t,Pue),Pue=[];function yB(t){const e=G.useRef();return G.useEffect(()=>{e.current=t}),e.current}var Pg=Symbol.for("Animated:node"),Lue=t=>!!t&&t[Pg]===t,Sl=t=>t&&t[Pg],qT=(t,e)=>rue(t,Pg,e),QS=t=>t&&t[Pg]&&t[Pg].getPayload(),xB=class{constructor(){qT(this,this)}getPayload(){return this.payload||[]}},Lg=class extends xB{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,Ge.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new Lg(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,e){return Ge.num(t)&&(this.lastPosition=t,e&&(t=Math.round(t/e)*e,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,Ge.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},Bg=class extends Lg{constructor(t){super(0),this._string=null,this._toString=Mg({output:[t,t]})}static create(t){return new Bg(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(Ge.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=Mg({output:[this.getValue(),t]})),this._value=0,super.reset()}},XS={dependencies:null},ZS=class extends xB{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){const e={};return bl(this.source,(n,r)=>{Lue(n)?e[r]=n.getValue(t):is(n)?e[r]=ra(n):t||(e[r]=n)}),e}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&fn(this.payload,t=>t.reset())}_makePayload(t){if(t){const e=new Set;return bl(t,this._addToPayload,e),Array.from(e)}}_addToPayload(t){XS.dependencies&&is(t)&&XS.dependencies.add(t);const e=QS(t);e&&fn(e,n=>this.add(n))}},bB=class extends ZS{constructor(t){super(t)}static create(t){return new bB(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const e=this.getPayload();return t.length==e.length?e.map((n,r)=>n.setValue(t[r])).some(Boolean):(super.setValue(t.map(Bue)),!0)}};function Bue(t){return(GS(t)?Bg:Lg).create(t)}function YT(t){const e=Sl(t);return e?e.constructor:Ge.arr(t)?bB:GS(t)?Bg:Lg}var SB=(t,e)=>{const n=!Ge.fun(t)||t.prototype&&t.prototype.isReactComponent;return G.forwardRef((r,i)=>{const o=G.useRef(null),s=n&&G.useCallback(S=>{o.current=jue(i,S)},[i]),[u,d]=Iue(r,e),c=vB(),p=()=>{const S=o.current;if(n&&!S)return;(S?e.applyAnimatedValues(S,u.getValue(!0)):!1)===!1&&c()},v=new zue(p,d),y=G.useRef();$T(()=>(y.current=v,fn(d,S=>qp(S,v)),()=>{y.current&&(fn(y.current.deps,S=>Fg(S,y.current)),Ut.cancel(y.current.update))})),G.useEffect(p,[]),gB(()=>()=>{const S=y.current;fn(S.deps,E=>Fg(E,S))});const g=e.getComponentProps(u.getValue());return _e.createElement(t,{...g,ref:s})})},zue=class{constructor(t,e){this.update=t,this.deps=e}eventObserved(t){t.type=="change"&&Ut.write(this.update)}};function Iue(t,e){const n=new Set;return XS.dependencies=n,t.style&&(t={...t,style:e.createAnimatedStyle(t.style)}),t=new ZS(t),XS.dependencies=null,[t,n]}function jue(t,e){return t&&(Ge.fun(t)?t(e):t.current=e),e}var wB=Symbol.for("AnimatedComponent"),Hue=(t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:n=i=>new ZS(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:e,createAnimatedStyle:n,getComponentProps:r},o=s=>{const u=CB(s)||"Anonymous";return Ge.str(s)?s=o[s]||(o[s]=SB(s,i)):s=s[wB]||(s[wB]=SB(s,i)),s.displayName=`Animated(${u})`,s};return bl(t,(s,u)=>{Ge.arr(t)&&(u=CB(s)),o[u]=o(s)}),{animated:o}},CB=t=>Ge.str(t)?t:t&&Ge.str(t.displayName)?t.displayName:Ge.fun(t)&&t.name||null;function Fd(t,...e){return Ge.fun(t)?t(...e):t}var zg=(t,e)=>t===!0||!!(e&&t&&(Ge.fun(t)?t(e):Ma(t).includes(e))),EB=(t,e)=>Ge.obj(t)?e&&t[e]:t,kB=(t,e)=>t.default===!0?t[e]:t.default?t.default[e]:void 0,Uue=t=>t,KT=(t,e=Uue)=>{let n=Vue;t.default&&t.default!==!0&&(t=t.default,n=Object.keys(t));const r={};for(const i of n){const o=e(t[i],i);Ge.und(o)||(r[i]=o)}return r},Vue=["config","onProps","onStart","onChange","onPause","onResume","onRest"],$ue={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function que(t){const e={};let n=0;if(bl(t,(r,i)=>{$ue[i]||(e[i]=r,n++)}),n)return e}function _B(t){const e=que(t);if(e){const n={to:e};return bl(t,(r,i)=>i in e||(n[i]=r)),n}return{...t}}function Ig(t){return t=ra(t),Ge.arr(t)?t.map(Ig):GS(t)?Ts.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function Yue(t){for(const e in t)return!0;return!1}function WT(t){return Ge.fun(t)||Ge.arr(t)&&Ge.obj(t[0])}function Kue(t,e){var n;(n=t.ref)==null||n.delete(t),e==null||e.delete(t)}function Wue(t,e){var n;e&&t.ref!==e&&((n=t.ref)==null||n.delete(t),e.add(t),t.ref=e)}var Gue={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},GT={...Gue.default,mass:1,damping:1,easing:Sue.linear,clamp:!1},Que=class{constructor(){this.velocity=0,Object.assign(this,GT)}};function Xue(t,e,n){n&&(n={...n},TB(n,e),e={...n,...e}),TB(t,e),Object.assign(t,e);for(const s in GT)t[s]==null&&(t[s]=GT[s]);let{frequency:r,damping:i}=t;const{mass:o}=t;return Ge.und(r)||(r<.01&&(r=.01),i<0&&(i=0),t.tension=Math.pow(2*Math.PI/r,2)*o,t.friction=4*Math.PI*i*o/r),t}function TB(t,e){if(!Ge.und(e.decay))t.duration=void 0;else{const n=!Ge.und(e.tension)||!Ge.und(e.friction);(n||!Ge.und(e.frequency)||!Ge.und(e.damping)||!Ge.und(e.mass))&&(t.duration=void 0,t.decay=void 0),n&&(t.frequency=void 0)}}var AB=[],Zue=class{constructor(){this.changed=!1,this.values=AB,this.toValues=null,this.fromValues=AB,this.config=new Que,this.immediate=!1}};function OB(t,{key:e,props:n,defaultProps:r,state:i,actions:o}){return new Promise((s,u)=>{let d,c,p=zg(n.cancel??(r==null?void 0:r.cancel),e);if(p)g();else{Ge.und(n.pause)||(i.paused=zg(n.pause,e));let S=r==null?void 0:r.pause;S!==!0&&(S=i.paused||zg(S,e)),d=Fd(n.delay||0,e),S?(i.resumeQueue.add(y),o.pause()):(o.resume(),y())}function v(){i.resumeQueue.add(y),i.timeouts.delete(c),c.cancel(),d=c.time-Ut.now()}function y(){d>0&&!Ts.skipAnimation?(i.delayed=!0,c=Ut.setTimeout(g,d),i.pauseQueue.add(v),i.timeouts.add(c)):g()}function g(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(v),i.timeouts.delete(c),t<=(i.cancelId||0)&&(p=!0);try{o.start({...n,callId:t,cancel:p},s)}catch(S){u(S)}}})}var QT=(t,e)=>e.length==1?e[0]:e.some(n=>n.cancelled)?Yp(t.get()):e.every(n=>n.noop)?DB(t.get()):Os(t.get(),e.every(n=>n.finished)),DB=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),Os=(t,e,n=!1)=>({value:t,finished:e,cancelled:n}),Yp=t=>({value:t,cancelled:!0,finished:!1});function MB(t,e,n,r){const{callId:i,parentId:o,onRest:s}=e,{asyncTo:u,promise:d}=n;return!o&&t===u&&!e.reset?d:n.promise=(async()=>{n.asyncId=i,n.asyncTo=t;const c=KT(e,(C,_)=>_==="onRest"?void 0:C);let p,v;const y=new Promise((C,_)=>(p=C,v=_)),g=C=>{const _=i<=(n.cancelId||0)&&Yp(r)||i!==n.asyncId&&Os(r,!1);if(_)throw C.result=_,v(C),C},S=(C,_)=>{const O=new RB,A=new NB;return(async()=>{if(Ts.skipAnimation)throw jg(n),A.result=Os(r,!1),v(A),A;g(O);const D=Ge.obj(C)?{...C}:{..._,to:C};D.parentId=i,bl(c,(B,F)=>{Ge.und(D[F])&&(D[F]=B)});const M=await r.start(D);return g(O),n.paused&&await new Promise(B=>{n.resumeQueue.add(B)}),M})()};let E;if(Ts.skipAnimation)return jg(n),Os(r,!1);try{let C;Ge.arr(t)?C=(async _=>{for(const O of _)await S(O)})(t):C=Promise.resolve(t(S,r.stop.bind(r))),await Promise.all([C.then(p),y]),E=Os(r.get(),!0,!1)}catch(C){if(C instanceof RB)E=C.result;else if(C instanceof NB)E=C.result;else throw C}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?u:void 0,n.promise=o?d:void 0)}return Ge.fun(s)&&Ut.batchedUpdates(()=>{s(E,r,r.item)}),E})()}function jg(t,e){Ag(t.timeouts,n=>n.cancel()),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}var RB=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},NB=class extends Error{constructor(){super("SkipAnimationSignal")}},XT=t=>t instanceof ZT,Jue=1,ZT=class extends cB{constructor(){super(...arguments),this.id=Jue++,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){const t=Sl(this);return t&&t.getValue()}to(...t){return Ts.to(this,t)}interpolate(...t){return Oue(),Ts.to(this,t)}toJSON(){return this.get()}observerAdded(t){t==1&&this._attach()}observerRemoved(t){t==0&&this._detach()}_attach(){}_detach(){}_onChange(t,e=!1){Ng(this,{type:"change",parent:this,value:t,idle:e})}_onPriorityChange(t){this.idle||jS.sort(this),Ng(this,{type:"priority",parent:this,priority:t})}},Pd=Symbol.for("SpringPhase"),FB=1,JT=2,e8=4,t8=t=>(t[Pd]&FB)>0,Pc=t=>(t[Pd]&JT)>0,Hg=t=>(t[Pd]&e8)>0,PB=(t,e)=>e?t[Pd]|=JT|FB:t[Pd]&=~JT,LB=(t,e)=>e?t[Pd]|=e8:t[Pd]&=~e8,ece=class extends ZT{constructor(t,e){if(super(),this.animation=new Zue,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Ge.und(t)||!Ge.und(e)){const n=Ge.obj(t)?{...t}:{...e,from:t};Ge.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Pc(this)||this._state.asyncTo)||Hg(this)}get goal(){return ra(this.animation.to)}get velocity(){const t=Sl(this);return t instanceof Lg?t.lastVelocity||0:t.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return t8(this)}get isAnimating(){return Pc(this)}get isPaused(){return Hg(this)}get isDelayed(){return this._state.delayed}advance(t){let e=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:o}=r,s=QS(r.to);!s&&is(r.to)&&(i=Ma(ra(r.to))),r.values.forEach((c,p)=>{if(c.done)return;const v=c.constructor==Bg?1:s?s[p].lastPosition:i[p];let y=r.immediate,g=v;if(!y){if(g=c.lastPosition,o.tension<=0){c.done=!0;return}let S=c.elapsedTime+=t;const E=r.fromValues[p],C=c.v0!=null?c.v0:c.v0=Ge.arr(o.velocity)?o.velocity[p]:o.velocity;let _;const O=o.precision||(E==v?.005:Math.min(1,Math.abs(v-E)*.001));if(Ge.und(o.duration))if(o.decay){const A=o.decay===!0?.998:o.decay,D=Math.exp(-(1-A)*S);g=E+C/(1-A)*(1-D),y=Math.abs(c.lastPosition-g)<=O,_=C*D}else{_=c.lastVelocity==null?C:c.lastVelocity;const A=o.restVelocity||O/10,D=o.clamp?0:o.bounce,M=!Ge.und(D),B=E==v?c.v0>0:E<v;let F,I=!1;const U=1,L=Math.ceil(t/U);for(let H=0;H<L&&(F=Math.abs(_)>A,!(!F&&(y=Math.abs(v-g)<=O,y)));++H){M&&(I=g==v||g>v==B,I&&(_=-_*D,g=v));const N=-o.tension*1e-6*(g-v),j=-o.friction*.001*_,Y=(N+j)/o.mass;_=_+Y*U,g=g+_*U}}else{let A=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,c.durationProgress>0&&(c.elapsedTime=o.duration*c.durationProgress,S=c.elapsedTime+=t)),A=(o.progress||0)+S/this._memoizedDuration,A=A>1?1:A<0?0:A,c.durationProgress=A),g=E+o.easing(A)*(v-E),_=(g-c.lastPosition)/t,y=A==1}c.lastVelocity=_,Number.isNaN(g)&&(y=!0)}s&&!s[p].done&&(y=!1),y?c.done=!0:e=!1,c.setValue(g,o.round)&&(n=!0)});const u=Sl(this),d=u.getValue();if(e){const c=ra(r.to);(d!==c||n)&&!o.decay?(u.setValue(c),this._onChange(c)):n&&o.decay&&this._onChange(d),this._stop()}else n&&this._onChange(d)}set(t){return Ut.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Pc(this)){const{to:t,config:e}=this.animation;Ut.batchedUpdates(()=>{this._onStart(),e.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,e){let n;return Ge.und(t)?(n=this.queue||[],this.queue=[]):n=[Ge.obj(t)?t:{...e,to:t}],Promise.all(n.map(r=>this._update(r))).then(r=>QT(this,r))}stop(t){const{to:e}=this.animation;return this._focus(this.get()),jg(this._state,t&&this._lastCallId),Ut.batchedUpdates(()=>this._stop(e,t)),this}reset(){this._update({reset:!0})}eventObserved(t){t.type=="change"?this._start():t.type=="priority"&&(this.priority=t.priority+1)}_prepareNode(t){const e=this.key||"";let{to:n,from:r}=t;n=Ge.obj(n)?n[e]:n,(n==null||WT(n))&&(n=void 0),r=Ge.obj(r)?r[e]:r,r==null&&(r=void 0);const i={to:n,from:r};return t8(this)||(t.reverse&&([n,r]=[r,n]),r=ra(r),Ge.und(r)?Sl(this)||this._set(n):this._set(r)),i}_update({...t},e){const{key:n,defaultProps:r}=this;t.default&&Object.assign(r,KT(t,(s,u)=>/^on/.test(u)?EB(s,n):s)),IB(this,t,"onProps"),$g(this,"onProps",t,this);const i=this._prepareNode(t);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return OB(++this._lastCallId,{key:n,props:t,defaultProps:r,state:o,actions:{pause:()=>{Hg(this)||(LB(this,!0),Og(o.pauseQueue),$g(this,"onPause",Os(this,Ug(this,this.animation.to)),this))},resume:()=>{Hg(this)&&(LB(this,!1),Pc(this)&&this._resume(),Og(o.resumeQueue),$g(this,"onResume",Os(this,Ug(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(s=>{if(t.loop&&s.finished&&!(e&&s.noop)){const u=BB(t);if(u)return this._update(u,!0)}return s})}_merge(t,e,n){if(e.cancel)return this.stop(!0),n(Yp(this));const r=!Ge.und(t.to),i=!Ge.und(t.from);if(r||i)if(e.callId>this._lastToId)this._lastToId=e.callId;else return n(Yp(this));const{key:o,defaultProps:s,animation:u}=this,{to:d,from:c}=u;let{to:p=d,from:v=c}=t;i&&!r&&(!e.default||Ge.und(p))&&(p=v),e.reverse&&([p,v]=[v,p]);const y=!gu(v,c);y&&(u.from=v),v=ra(v);const g=!gu(p,d);g&&this._focus(p);const S=WT(e.to),{config:E}=u,{decay:C,velocity:_}=E;(r||i)&&(E.velocity=0),e.config&&!S&&Xue(E,Fd(e.config,o),e.config!==s.config?Fd(s.config,o):void 0);let O=Sl(this);if(!O||Ge.und(p))return n(Os(this,!0));const A=Ge.und(e.reset)?i&&!e.default:!Ge.und(v)&&zg(e.reset,o),D=A?v:this.get(),M=Ig(p),B=Ge.num(M)||Ge.arr(M)||GS(M),F=!S&&(!B||zg(s.immediate||e.immediate,o));if(g){const H=YT(p);if(H!==O.constructor)if(F)O=this._set(M);else throw Error(`Cannot animate between ${O.constructor.name} and ${H.name}, as the "to" prop suggests`)}const I=O.constructor;let U=is(p),L=!1;if(!U){const H=A||!t8(this)&&y;(g||H)&&(L=gu(Ig(D),M),U=!L),(!gu(u.immediate,F)&&!F||!gu(E.decay,C)||!gu(E.velocity,_))&&(U=!0)}if(L&&Pc(this)&&(u.changed&&!A?U=!0:U||this._stop(d)),!S&&((U||is(d))&&(u.values=O.getPayload(),u.toValues=is(p)?null:I==Bg?[1]:Ma(M)),u.immediate!=F&&(u.immediate=F,!F&&!A&&this._set(d)),U)){const{onRest:H}=u;fn(nce,j=>IB(this,e,j));const N=Os(this,Ug(this,d));Og(this._pendingCalls,N),this._pendingCalls.add(n),u.changed&&Ut.batchedUpdates(()=>{var j;u.changed=!A,H==null||H(N,this),A?Fd(s.onRest,N):(j=u.onStart)==null||j.call(u,N,this)})}A&&this._set(D),S?n(MB(e.to,e,this._state,this)):U?this._start():Pc(this)&&!g?this._pendingCalls.add(n):n(DB(D))}_focus(t){const e=this.animation;t!==e.to&&(uB(this)&&this._detach(),e.to=t,uB(this)&&this._attach())}_attach(){let t=0;const{to:e}=this.animation;is(e)&&(qp(e,this),XT(e)&&(t=e.priority+1)),this.priority=t}_detach(){const{to:t}=this.animation;is(t)&&Fg(t,this)}_set(t,e=!0){const n=ra(t);if(!Ge.und(n)){const r=Sl(this);if(!r||!gu(n,r.getValue())){const i=YT(n);!r||r.constructor!=i?qT(this,i.create(n)):r.setValue(n),r&&Ut.batchedUpdates(()=>{this._onChange(n,e)})}}return Sl(this)}_onStart(){const t=this.animation;t.changed||(t.changed=!0,$g(this,"onStart",Os(this,Ug(this,t.to)),this))}_onChange(t,e){e||(this._onStart(),Fd(this.animation.onChange,t,this)),Fd(this.defaultProps.onChange,t,this),super._onChange(t,e)}_start(){const t=this.animation;Sl(this).reset(ra(t.to)),t.immediate||(t.fromValues=t.values.map(e=>e.lastPosition)),Pc(this)||(PB(this,!0),Hg(this)||this._resume())}_resume(){Ts.skipAnimation?this.finish():jS.start(this)}_stop(t,e){if(Pc(this)){PB(this,!1);const n=this.animation;fn(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ng(this,{type:"idle",parent:this});const r=e?Yp(this.get()):Os(this.get(),Ug(this,t??n.to));Og(this._pendingCalls,r),n.changed&&(n.changed=!1,$g(this,"onRest",r,this))}}};function Ug(t,e){const n=Ig(e),r=Ig(t.get());return gu(r,n)}function BB(t,e=t.loop,n=t.to){const r=Fd(e);if(r){const i=r!==!0&&_B(r),o=(i||t).reverse,s=!i||i.reset;return Vg({...t,loop:e,default:!1,pause:void 0,to:!o||WT(n)?n:void 0,from:s?t.from:void 0,reset:s,...i})}}function Vg(t){const{to:e,from:n}=t=_B(t),r=new Set;return Ge.obj(e)&&zB(e,r),Ge.obj(n)&&zB(n,r),t.keys=r.size?Array.from(r):null,t}function tce(t){const e=Vg(t);return Ge.und(e.default)&&(e.default=KT(e)),e}function zB(t,e){bl(t,(n,r)=>n!=null&&e.add(r))}var nce=["onStart","onRest","onChange","onPause","onResume"];function IB(t,e,n){t.animation[n]=e[n]!==kB(e,n)?EB(e[n],t.key):void 0}function $g(t,e,...n){var r,i,o,s;(i=(r=t.animation)[e])==null||i.call(r,...n),(s=(o=t.defaultProps)[e])==null||s.call(o,...n)}var rce=["onStart","onChange","onRest"],ice=1,oce=class{constructor(t,e){this.id=ice++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),e&&(this._flush=e),t&&this.start({default:!0,...t})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle&&!t.isDelayed&&!t.isPaused)}get item(){return this._item}set item(t){this._item=t}get(){const t={};return this.each((e,n)=>t[n]=e.get()),t}set(t){for(const e in t){const n=t[e];Ge.und(n)||this.springs[e].set(n)}}update(t){return t&&this.queue.push(Vg(t)),this}start(t){let{queue:e}=this;return t?e=Ma(t).map(Vg):this.queue=[],this._flush?this._flush(this,e):(qB(this,e),n8(this,e))}stop(t,e){if(t!==!!t&&(e=t),e){const n=this.springs;fn(Ma(e),r=>n[r].stop(!!t))}else jg(this._state,this._lastAsyncId),this.each(n=>n.stop(!!t));return this}pause(t){if(Ge.und(t))this.start({pause:!0});else{const e=this.springs;fn(Ma(t),n=>e[n].pause())}return this}resume(t){if(Ge.und(t))this.start({pause:!1});else{const e=this.springs;fn(Ma(t),n=>e[n].resume())}return this}each(t){bl(this.springs,t)}_onFrame(){const{onStart:t,onChange:e,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Ag(t,([u,d])=>{d.value=this.get(),u(d,this,this._item)}));const o=!r&&this._started,s=i||o&&n.size?this.get():null;i&&e.size&&Ag(e,([u,d])=>{d.value=s,u(d,this,this._item)}),o&&(this._started=!1,Ag(n,([u,d])=>{d.value=s,u(d,this,this._item)}))}eventObserved(t){if(t.type=="change")this._changed.add(t.parent),t.idle||this._active.add(t.parent);else if(t.type=="idle")this._active.delete(t.parent);else return;Ut.onFrame(this._onFrame)}};function n8(t,e){return Promise.all(e.map(n=>jB(t,n))).then(n=>QT(t,n))}async function jB(t,e,n){const{keys:r,to:i,from:o,loop:s,onRest:u,onResolve:d}=e,c=Ge.obj(e.default)&&e.default;s&&(e.loop=!1),i===!1&&(e.to=null),o===!1&&(e.from=null);const p=Ge.arr(i)||Ge.fun(i)?i:void 0;p?(e.to=void 0,e.onRest=void 0,c&&(c.onRest=void 0)):fn(rce,E=>{const C=e[E];if(Ge.fun(C)){const _=t._events[E];e[E]=({finished:O,cancelled:A})=>{const D=_.get(C);D?(O||(D.finished=!1),A&&(D.cancelled=!0)):_.set(C,{value:null,finished:O||!1,cancelled:A||!1})},c&&(c[E]=e[E])}});const v=t._state;e.pause===!v.paused?(v.paused=e.pause,Og(e.pause?v.pauseQueue:v.resumeQueue)):v.paused&&(e.pause=!0);const y=(r||Object.keys(t.springs)).map(E=>t.springs[E].start(e)),g=e.cancel===!0||kB(e,"cancel")===!0;(p||g&&v.asyncId)&&y.push(OB(++t._lastAsyncId,{props:e,state:v,actions:{pause:PT,resume:PT,start(E,C){g?(jg(v,t._lastAsyncId),C(Yp(t))):(E.onRest=u,C(MB(p,E,v,t)))}}})),v.paused&&await new Promise(E=>{v.resumeQueue.add(E)});const S=QT(t,await Promise.all(y));if(s&&S.finished&&!(n&&S.noop)){const E=BB(e,s,i);if(E)return qB(t,[E]),jB(t,E,!0)}return d&&Ut.batchedUpdates(()=>d(S,t,t.item)),S}function HB(t,e){const n={...t.springs};return e&&fn(Ma(e),r=>{Ge.und(r.keys)&&(r=Vg(r)),Ge.obj(r.to)||(r={...r,to:void 0}),$B(n,r,i=>VB(i))}),UB(t,n),n}function UB(t,e){bl(e,(n,r)=>{t.springs[r]||(t.springs[r]=n,qp(n,t))})}function VB(t,e){const n=new ece;return n.key=t,e&&qp(n,e),n}function $B(t,e,n){e.keys&&fn(e.keys,r=>{(t[r]||(t[r]=n(r)))._prepareNode(e)})}function qB(t,e){fn(e,n=>{$B(t.springs,n,r=>VB(r,t))})}var JS=({children:t,...e})=>{const n=G.useContext(e2),r=e.pause||!!n.pause,i=e.immediate||!!n.immediate;e=Nue(()=>({pause:r,immediate:i}),[r,i]);const{Provider:o}=e2;return _e.createElement(o,{value:e},t)},e2=ace(JS,{});JS.Provider=e2.Provider,JS.Consumer=e2.Consumer;function ace(t,e){return Object.assign(t,_e.createContext(e)),t.Provider._context=t,t.Consumer._context=t,t}var sce=()=>{const t=[],e=function(r){Mue();const i=[];return fn(t,(o,s)=>{if(Ge.und(r))i.push(o.start());else{const u=n(r,o,s);u&&i.push(o.start(u))}}),i};e.current=t,e.add=function(r){t.includes(r)||t.push(r)},e.delete=function(r){const i=t.indexOf(r);~i&&t.splice(i,1)},e.pause=function(){return fn(t,r=>r.pause(...arguments)),this},e.resume=function(){return fn(t,r=>r.resume(...arguments)),this},e.set=function(r){fn(t,(i,o)=>{const s=Ge.fun(r)?r(o,i):r;s&&i.set(s)})},e.start=function(r){const i=[];return fn(t,(o,s)=>{if(Ge.und(r))i.push(o.start());else{const u=this._getProps(r,o,s);u&&i.push(o.start(u))}}),i},e.stop=function(){return fn(t,r=>r.stop(...arguments)),this},e.update=function(r){return fn(t,(i,o)=>i.update(this._getProps(r,i,o))),this};const n=function(r,i,o){return Ge.fun(r)?r(o,i):r};return e._getProps=n,e};function lce(t,e,n){const r=Ge.fun(e)&&e;r&&!n&&(n=[]);const i=G.useMemo(()=>r||arguments.length==3?sce():void 0,[]),o=G.useRef(0),s=vB(),u=G.useMemo(()=>({ctrls:[],queue:[],flush(_,O){const A=HB(_,O);return o.current>0&&!u.queue.length&&!Object.keys(A).some(M=>!_.springs[M])?n8(_,O):new Promise(M=>{UB(_,A),u.queue.push(()=>{M(n8(_,O))}),s()})}}),[]),d=G.useRef([...u.ctrls]),c=[],p=yB(t)||0;G.useMemo(()=>{fn(d.current.slice(t,p),_=>{Kue(_,i),_.stop(!0)}),d.current.length=t,v(p,t)},[t]),G.useMemo(()=>{v(0,Math.min(p,t))},n);function v(_,O){for(let A=_;A<O;A++){const D=d.current[A]||(d.current[A]=new oce(null,u.flush)),M=r?r(A,D):e[A];M&&(c[A]=tce(M))}}const y=d.current.map((_,O)=>HB(_,c[O])),g=G.useContext(JS),S=yB(g),E=g!==S&&Yue(g);$T(()=>{o.current++,u.ctrls=d.current;const{queue:_}=u;_.length&&(u.queue=[],fn(_,O=>O())),fn(d.current,(O,A)=>{i==null||i.add(O),E&&O.start({default:g});const D=c[A];D&&(Wue(O,D.ref),O.ref?O.queue.push(D):O.start(D))})}),gB(()=>()=>{fn(u.ctrls,_=>_.stop(!0))});const C=y.map(_=>({..._}));return i?[C,i]:C}function uce(t,e){const n=Ge.fun(t),[[r],i]=lce(1,n?t:[t],n?e||[]:e);return n||arguments.length==2?[r,i]:r}var cce=class extends ZT{constructor(t,e){super(),this.source=t,this.idle=!0,this._active=new Set,this.calc=Mg(...e);const n=this._get(),r=YT(n);qT(this,r.create(n))}advance(t){const e=this._get(),n=this.get();gu(e,n)||(Sl(this).setValue(e),this._onChange(e,this.idle)),!this.idle&&YB(this._active)&&r8(this)}_get(){const t=Ge.arr(this.source)?this.source.map(ra):Ma(ra(this.source));return this.calc(...t)}_start(){this.idle&&!YB(this._active)&&(this.idle=!1,fn(QS(this),t=>{t.done=!1}),Ts.skipAnimation?(Ut.batchedUpdates(()=>this.advance()),r8(this)):jS.start(this))}_attach(){let t=1;fn(Ma(this.source),e=>{is(e)&&qp(e,this),XT(e)&&(e.idle||this._active.add(e),t=Math.max(t,e.priority+1))}),this.priority=t,this._start()}_detach(){fn(Ma(this.source),t=>{is(t)&&Fg(t,this)}),this._active.clear(),r8(this)}eventObserved(t){t.type=="change"?t.idle?this.advance():(this._active.add(t.parent),this._start()):t.type=="idle"?this._active.delete(t.parent):t.type=="priority"&&(this.priority=Ma(this.source).reduce((e,n)=>Math.max(e,(XT(n)?n.priority:0)+1),0))}};function fce(t){return t.idle!==!1}function YB(t){return!t.size||Array.from(t).every(fce)}function r8(t){t.idle||(t.idle=!0,fn(QS(t),e=>{e.done=!0}),Ng(t,{type:"idle",parent:t}))}Ts.assign({createStringInterpolator:pB,to:(t,e)=>new cce(t,e)});var KB=/^--/;function dce(t,e){return e==null||typeof e=="boolean"||e===""?"":typeof e=="number"&&e!==0&&!KB.test(t)&&!(qg.hasOwnProperty(t)&&qg[t])?e+"px":(""+e).trim()}var WB={};function hce(t,e){if(!t.nodeType||!t.setAttribute)return!1;const n=t.nodeName==="filter"||t.parentNode&&t.parentNode.nodeName==="filter",{className:r,style:i,children:o,scrollTop:s,scrollLeft:u,viewBox:d,...c}=e,p=Object.values(c),v=Object.keys(c).map(y=>n||t.hasAttribute(y)?y:WB[y]||(WB[y]=y.replace(/([A-Z])/g,g=>"-"+g.toLowerCase())));o!==void 0&&(t.textContent=o);for(const y in i)if(i.hasOwnProperty(y)){const g=dce(y,i[y]);KB.test(y)?t.style.setProperty(y,g):t.style[y]=g}v.forEach((y,g)=>{t.setAttribute(y,p[g])}),r!==void 0&&(t.className=r),s!==void 0&&(t.scrollTop=s),u!==void 0&&(t.scrollLeft=u),d!==void 0&&t.setAttribute("viewBox",d)}var qg={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pce=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1),mce=["Webkit","Ms","Moz","O"];qg=Object.keys(qg).reduce((t,e)=>(mce.forEach(n=>t[pce(n,e)]=t[e]),t),qg);var vce=/^(matrix|translate|scale|rotate|skew)/,gce=/^(translate)/,yce=/^(rotate|skew)/,i8=(t,e)=>Ge.num(t)&&t!==0?t+e:t,t2=(t,e)=>Ge.arr(t)?t.every(n=>t2(n,e)):Ge.num(t)?t===e:parseFloat(t)===e,xce=class extends ZS{constructor({x:t,y:e,z:n,...r}){const i=[],o=[];(t||e||n)&&(i.push([t||0,e||0,n||0]),o.push(s=>[`translate3d(${s.map(u=>i8(u,"px")).join(",")})`,t2(s,0)])),bl(r,(s,u)=>{if(u==="transform")i.push([s||""]),o.push(d=>[d,d===""]);else if(vce.test(u)){if(delete r[u],Ge.und(s))return;const d=gce.test(u)?"px":yce.test(u)?"deg":"";i.push(Ma(s)),o.push(u==="rotate3d"?([c,p,v,y])=>[`rotate3d(${c},${p},${v},${i8(y,d)})`,t2(y,0)]:c=>[`${u}(${c.map(p=>i8(p,d)).join(",")})`,t2(c,u.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new bce(i,o)),super(r)}},bce=class extends cB{constructor(t,e){super(),this.inputs=t,this.transforms=e,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let t="",e=!0;return fn(this.inputs,(n,r)=>{const i=ra(n[0]),[o,s]=this.transforms[r](Ge.arr(i)?i:n.map(ra));t+=" "+o,e=e&&s}),e?"none":t}observerAdded(t){t==1&&fn(this.inputs,e=>fn(e,n=>is(n)&&qp(n,this)))}observerRemoved(t){t==0&&fn(this.inputs,e=>fn(e,n=>is(n)&&Fg(n,this)))}eventObserved(t){t.type=="change"&&(this._value=null),Ng(this,t)}},Sce=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Ts.assign({batchedUpdates:Kf.unstable_batchedUpdates,createStringInterpolator:pB,colors:lue});var wce=Hue(Sce,{applyAnimatedValues:hce,createAnimatedStyle:t=>new xce(t),getComponentProps:({scrollTop:t,scrollLeft:e,...n})=>n}),GB=wce.animated;function QB(t,e,n){let r=t;return e!==void 0&&(r=Math.max(t,e)),n!==void 0&&(r=Math.min(r,n)),r}const[XB]=_n("indicator"),Cce=G.memo(t=>{var{vertical:e}=t,n=Mo(t,["vertical"]);const r=[];for(let i=0;i<n.total;i++)r.push(q("div",{className:Me(XB("dot",{active:n.current===i}))},i));return q("div",Object.assign({className:Me(n.className,XB({vertical:e})),style:n.style},{children:r}))});let Yg=0;function o8(t){t?(Yg||document.body.classList.add("rv-toast--unclickable"),Yg+=1):Yg&&(Yg-=1,Yg||document.body.classList.remove("rv-toast--unclickable"))}function Ece(t){return t===window}const ZB=t=>{const e=t;if(Ece(e)){const n=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:n,bottom:r,width:n,height:r}}return e&&e.getBoundingClientRect?e.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};function kce(t,e,n){let r,i,o,s,u,d,c=0,p=!1,v=!1,y=!0;const g=!e&&e!==0&&typeof Pp.requestAnimationFrame=="function";if(typeof t!="function")throw new TypeError("Expected a function");e=+e||0,Fp(n)&&(p=!!n.leading,v="maxWait"in n,o=v?Math.max(+n.maxWait||0,e):o,y="trailing"in n?!!n.trailing:y);function S(L){const H=r,N=i;return r=i=void 0,c=L,s=t.apply(N,H),s}function E(L,H){return g?(Pp.cancelAnimationFrame(u),Pp.requestAnimationFrame(L)):setTimeout(()=>L(),H)}function C(L){if(g)return Pp.cancelAnimationFrame(L);clearTimeout(L)}function _(L){return c=L,u=E(D,e),p?S(L):s}function O(L){const H=L-d,N=L-c,j=e-H;return v?Math.min(j,o-N):j}function A(L){const H=L-d,N=L-c;return d===void 0||H>=e||H<0||v&&N>=o}function D(){const L=Date.now();if(A(L))return M(L);u=E(D,O(L))}function M(L){return u=void 0,y&&r?S(L):(r=i=void 0,s)}function B(){u!==void 0&&C(u),c=0,r=d=i=u=void 0}function F(){return u===void 0?s:M(Date.now())}function I(){return u!==void 0}function U(...L){const H=Date.now(),N=A(H);if(r=L,i=this,d=H,N){if(u===void 0)return _(d);if(v)return u=E(D,e),S(d)}return u===void 0&&(u=E(D,e)),s}return U.cancel=B,U.flush=F,U.pending=I,U}const yxe="",[n2]=_n("toast"),_ce=t=>{const e=Ti(t,{type:"info",duration:2e3,position:"middle",transition:"rv-fade",loadingType:"circular",overlay:!1}),n=()=>{e.closeOnClick&&e.onClose()};G.useEffect(()=>{if(!e.visible){o8(!1);return}let o=!1;const s=e.visible&&e.forbidClick;o!==s&&(o=s,o8(o))},[e.visible,e.forbidClick]);const r=()=>{const{icon:o,type:s,iconSize:u,loadingType:d}=e;if(o||s==="success"||s==="fail"){const p=s==="fail"?q(mT,{}):q(f9,{});return G.cloneElement(o||p,{className:Me(n2("icon")),fontSize:u})}return s==="loading"?q(pT,{className:Me(n2("loading")),type:d}):null},i=()=>{const{message:o}=e;return _i(o)&&o!==""?q("div",Object.assign({className:Me(n2("info"))},{children:o})):null};return Ne(Nd,Object.assign({className:Me([n2([e.position,{[e.type]:!e.icon}]),e.className]),visible:e.visible,overlay:e.overlay,transition:e.transition,overlayClass:e.overlayClass,overlayStyle:e.overlayStyle,closeOnClickOverlay:e.closeOnClickOverlay,lockScroll:!1,onClick:n,onClose:e.onClose,onClosed:e.onClosed,onOpened:e.onOpened,teleport:e.teleport},{children:[r(),i()]}))},a8={message:"",className:"",type:"info",position:"middle",forbidClick:!1,duration:2e3,teleport:()=>document.body},s8=[];let JB=!1,l8=pg({},a8);const r2=new Map;function ez(){let t=s8.pop();for(;t;)t(),t=s8.pop()}function Tce(){setTimeout(ez)}const Ld=t=>{if(!bT())return null;const e=tz(t),n={config:()=>{},clear:()=>null};let r=0;const{onClose:i,teleport:o}=e,s=document.createElement("div");return xT(o).appendChild(s),T9(q(()=>{const c=Object.assign({duration:2e3},e),[p,v]=G.useState(!1),[y,g]=G.useState(Object.assign({},c)),S=G.useCallback(()=>{y.forbidClick&&o8(!1),v(!1),window.setTimeout(()=>{A9(s)&&s.parentNode&&s.parentNode.removeChild(s)},+y.duration||+a8.duration)},[s]),E=G.useCallback(()=>{v(!1),i&&i()},[]);return n.clear=S,n.config=G.useCallback(C=>{g(_=>typeof C=="function"?Object.assign(Object.assign({},_),C(_)):Object.assign(Object.assign({},_),C))},[g]),G.useEffect(()=>(v(!0),JB||ez(),s8.push(S),y.duration!==0&&"duration"in y&&(r=window.setTimeout(E,+y.duration)),()=>{r!==0&&window.clearTimeout(r)}),[]),q(_ce,Object.assign({},y,{visible:p,teleport:()=>s,onClose:E,onClosed:S}))},{}),s),n};function tz(t){return Fp(t)?t:{message:t}}const Ace=t=>e=>Ld(Object.assign(Object.assign(Object.assign(Object.assign({},l8),r2.get(t)),tz(e)),{type:t}));["info","loading","success","fail"].forEach(t=>{Ld[t]=Ace(t)}),Ld.allowMultiple=(t=!0)=>{JB=t},Ld.clear=Tce;function Oce(t,e){typeof t=="string"?r2.set(t,e):pg(l8,t)}Ld.setDefaultOptions=Oce,Ld.resetDefaultOptions=t=>{typeof t=="string"?r2.delete(t):(l8=pg({},a8),r2.clear())};const u8=Ld;function i2(){const t=G.useRef([]),e=G.useCallback(r=>i=>{i&&(t.current[r]=i)},[]),n=G.useCallback(()=>{t.current=[]},[]);return[t.current,e,n]}const nz=t=>{const{defaultValue:e,value:n}=t||{},[r,i]=G.useState(()=>{if(n!==void 0)return n;if(e!==void 0)return typeof e=="function"?e():e}),o=n!==void 0?n:r;function s(u){i(u)}return[o,s]},wxe="",[Dce]=_n("swiper-item"),rz=G.forwardRef((t,e)=>{const n=G.useRef(null);G.useImperativeHandle(e,()=>({self:n.current}));const[r]=Qae(n,{rootMargin:"-0.1px",threshold:0,root:()=>{var i;return(i=t.trackRef)===null||i===void 0?void 0:i.current}});return q("div",Object.assign({ref:n,className:Me(t.className,Dce({hidden:t.autoHeight&&r===!1})),onClick:t.onClick,style:t.style},{children:t.children}))}),[Bd]=_n("swiper"),Mce=G.forwardRef((t,e)=>{const n=Ti(t,{initialSwipe:0,loop:!0,touchable:!0,enabled:!0,rubberband:!0,autoplay:!1,slideSize:100,trackOffset:0,stuckAtBoundary:!1,preventScroll:!0}),{loop:r,autoplay:i,vertical:o,duration:s,autoHeight:u}=n,d=o?"y":"x",c=n.slideSize/100,p=n.trackOffset/100,{validChildren:v,count:y}=G.useMemo(()=>{let Z=0;return{validChildren:G.Children.map(n.children,W=>G.isValidElement(W)?W.type!==rz?null:(Z++,W):null),count:Z}},[n.children]),g=G.useRef(null),[S,E]=i2(),[C,_]=G.useState(()=>n.enabled),[O,A]=G.useState(n.initialSwipe),[D,M,B]=dT(!1),F=G.useMemo(()=>Object.assign({"--rv-swipe-slide-size":`${n.slideSize}%`,"--rv-swipe-track-offset":`${n.trackOffset}%`},n.style),[n.slideSize,n.trackOffset,n.style]),I=G.useMemo(()=>c*(y-1)<1?!1:r,[y,r,c]),U=()=>{const Z=g.current;return Z?(o?Z.offsetHeight:Z.offsetWidth)*n.slideSize/100:0},L=Z=>{let X=0,W=y-1;return n.stuckAtBoundary&&(X+=(1-c-p)/c,W-=(1-c-p)/c),QB(Z,X,W)},[{position:H},N]=uce(()=>({position:L(O)*100,config:{tension:200,friction:30,duration:s},onRest:()=>{if(B.current||!I)return;const Z=H.get(),X=100*y,W=c8(Z,X);W!==Z&&N.start({position:W,immediate:!0})}}),[y]),j=Jle(Z=>{var X;const W=U();if(!W||!n.preventScroll&&iz(Z.target,(X=S[O])===null||X===void 0?void 0:X.self))return;const te=o?1:0,ae=Z.offset[te],re=Z.direction[te],ce=Z.velocity[te];if(M(!0),!Z.last)N.start({position:ae*100/W,immediate:!0});else{const ve=Math.round((ae+Math.min(ce*2e3,W)*re)/W);K(ve),window.setTimeout(()=>{M(!1)})}},{enabled:C,transform:([Z,X])=>[-Z,-X],from:()=>{const Z=U();return[H.get()/100*Z,H.get()/100*Z]},bounds:()=>{if(I)return{};const Z=U(),X=L(0)*Z,W=L(y-1)*Z;return o?{top:X,bottom:W}:{left:X,right:W}},rubberband:n.rubberband,axis:d,preventScroll:d==="x"?n.preventScroll:!1,pointer:{touch:!0}}),Y=()=>n.indicator===void 0||n.indicator===!0?q("div",Object.assign({className:Me(Bd("indicator",{vertical:o}))},{children:q(Cce,Object.assign({},n.indicatorProps,{vertical:o,total:y,current:O}))})):typeof n.indicator=="function"?n.indicator(y,O):null;function K(Z,X=!1){const W=Math.round(Z),te=I?c8(W,y):QB(W,0,y-1);A(te),N.start({position:(I?W:L(W))*100,immediate:X})}const ee=()=>{K(Math.round(H.get()/100)+1)},ne=()=>{K(Math.round(H.get()/100)-1)};G.useImperativeHandle(e,()=>({activeIndex:O,swipeTo:K,swipeNext:ee,swipePrev:ne,enable:()=>{_(!0)},disable:()=>{_(!1)}})),vg(()=>{const Z=v.length-1;O>Z&&K(Z,!0)}),Dd(()=>{var Z;(Z=n.onChange)===null||Z===void 0||Z.call(n,O)},[O]),G.useEffect(()=>{if(!i||D)return Oa;const Z=typeof i=="boolean"?5e3:i,X=window.setInterval(()=>{ee()},Z);return()=>{window.clearInterval(X)}},[i,D]);const $=()=>I?q("div",Object.assign({className:Me(Bd("track-inner",{vertical:o}))},{children:G.Children.map(v,(Z,X)=>q(GB.div,Object.assign({className:Me(Bd("slide")),style:{[d]:H.to(W=>{let te=-W+X*100;const ae=y*100,re=ae/2;return te=c8(te+re,ae)-re,`${te}%`}),[o?"top":"left"]:`-${X*100}%`}},{children:G.cloneElement(Z,{ref:E(X),autoHeight:u,trackRef:g})})))})):q(GB.div,Object.assign({className:Me(Bd("track-inner")),style:{[d]:H.to(Z=>`${-Z}%`)}},{children:G.Children.map(v,(Z,X)=>q("div",Object.assign({className:Me(Bd("slide"))},{children:G.cloneElement(Z,{ref:E(X),autoHeight:u})})))}));return y===0&&void 0,Ne("div",Object.assign({className:Me(n.className,Bd({vertical:o})),style:F},{children:[q("div",Object.assign({ref:g,className:Me(Bd("track",{"allow-touch-move":n.touchable})),onClickCapture:Z=>{B.current&&Z.stopPropagation()}},n.touchable?j():{},{children:$()})),Y()]}))});function c8(t,e){const n=t%e;return n<0?n+e:n}function iz(t,e){return e?t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight?!0:t.parentElement&&t.parentElement!==e?iz(t.parentElement,e):!1:!1}const oz=Object.assign(Mce,{Item:rz}),Rce=t=>{const e=Ti(t,{shape:"round",bindGroup:!0}),n=G.useRef(null),r=p=>e.parent&&e.bindGroup?e.parent.props[p]:null,i=G.useMemo(()=>r("disabled")||e.disabled,[e.parent,e.disabled]),o=G.useMemo(()=>r("direction")||null,[e.parent]),s=G.useMemo(()=>{const p=e.checkedColor||r("checkedColor");return p&&e.checked&&!i?{borderColor:p,backgroundColor:p}:{}},[e.checkedColor,e.checked,i]),u=p=>{const{target:v}=p,y=n.current,g=y===v||(y==null?void 0:y.contains(v));!i&&(g||!e.labelDisabled)&&e.onToggle&&e.onToggle(),e.onClick&&e.onClick(p)},d=()=>{const{bem:p,shape:v,checked:y}=e,g=e.iconSize||r("iconSize");return q("div",Object.assign({ref:n,className:Me(p("icon",[v,{disabled:i,checked:y}])),style:{fontSize:yl(g)}},{children:e.iconRender?e.iconRender({checked:y,disabled:i}):q(f9,{style:s})}))},c=()=>e.children?q("span",Object.assign({className:e.bem("label",[e.labelPosition,{disabled:i}])},{children:e.children})):null;return Ne("div",Object.assign({role:e.role,className:Me(e.bem([{disabled:i,"label-disabled":e.labelDisabled},o]),e.className),style:e.style,tabIndex:i?-1:0,"aria-checked":e.checked,onClick:u},{children:[e.labelPosition==="left"&&c(),d(),e.labelPosition!=="left"&&c()]}))},Txe="";function Nce(t){return[t.getFullYear(),t.getMonth()+1]}function f8(t,e){const n=t.getFullYear(),r=e.getFullYear();if(n===r){const i=t.getMonth(),o=e.getMonth();return i===o?0:i>o?1:-1}return n>r?1:-1}function wl(t,e){const n=f8(t,e);if(n===0){const r=t.getDate(),i=e.getDate();return r===i?0:r>i?1:-1}return n}const o2=t=>new Date(t),az=t=>Array.isArray(t)?t.map(o2):o2(t);function d8(t,e){const n=o2(t);return n.setDate(n.getDate()+e),n}const sz=t=>d8(t,-1),lz=t=>d8(t,1),h8=()=>{const t=new Date;return t.setHours(0,0,0,0),t};function Fce(t){const e=t[0].getTime();return(t[1].getTime()-e)/(1e3*60*60*24)+1}function uz(t,e){let n=-1;const r=Array(t);for(;++n<t;)r[n]=e(n);return r}function Pce(t){if(!t)return 0;for(;W7(parseInt(t,10));)if(t.length>1)t=t.slice(1);else return 0;return parseInt(t,10)}function p8(t,e){return 32-new Date(t,e-1,32).getDate()}const[Kg]=_n("calendar"),Lce=t=>{const e=Ti(t,{offset:0}),n=G.useMemo(()=>{const{item:c,index:p,color:v,offset:y,rowHeight:g}=e,S={height:g};if(c.type==="placeholder")return S.width="100%",S;if(p===0&&(S.marginLeft=`${100*y/7}%`),v)switch(c.type){case"end":case"start":case"start-end":case"multiple-middle":case"multiple-selected":S.background=v;break;case"middle":S.color=v;break}return S},[e.item,e.index,e.color,e.offset,e.rowHeight]),r=()=>{var c;e.item.type!=="disabled"&&((c=e.onClick)===null||c===void 0||c.call(e,e.item))},i=()=>{const{topInfo:c}=e.item;return c||e.topInfoRender?q("div",Object.assign({className:Me(Kg("top-info"))},{children:e.topInfoRender?e.topInfoRender(e.item):c})):null},o=()=>{const{bottomInfo:c}=e.item;return c||e.bottomInfoRender?q("div",Object.assign({className:Me(Kg("bottom-info"))},{children:e.bottomInfoRender?e.bottomInfoRender(e.item):c})):null},s=()=>{const{item:c,color:p,rowHeight:v}=e,{type:y,text:g}=c,S=Ne(Jt,{children:[i(),g,o()]});return y==="selected"?q("div",Object.assign({className:Me(Kg("selected-day")),style:{width:v,height:v,background:p}},{children:S})):S},{type:u,className:d}=e.item;return u==="placeholder"?q("div",{className:Me(Kg("day")),style:n}):q("div",Object.assign({role:"gridcell",style:n,className:Me(Kg("day",u),d),tabIndex:u==="disabled"?void 0:-1,onClick:r},{children:s()}))},[a2]=_n("calendar"),Bce=G.forwardRef((t,e)=>{const[n,r]=G.useState(),i=G.useRef(),[o,s]=G.useState(),u=G.useRef(0),{locale:d}=G.useContext(Ip);G.useEffect(()=>{o&&(u.current=ZB(o).height)},[o]);const c=G.useMemo(()=>t.formatMonthTitle?t.formatMonthTitle(t.date):d.vanCalendar.monthTitle(...Nce(t.date)),[t.date,t.formatMonthTitle]),p=G.useMemo(()=>yl(t.rowHeight),[t.rowHeight]),v=G.useMemo(()=>{const L=t.date.getDay();return t.firstDayOfWeek?(L+7-t.firstDayOfWeek)%7:L},[t.date,t.firstDayOfWeek]),y=G.useMemo(()=>p8(t.date.getFullYear(),t.date.getMonth()+1),[t.date]),g=G.useMemo(()=>n||!t.lazyRender,[n]),S=()=>c,E=L=>{const H=t.showSubtitle?i.current:o,N=(H==null?void 0:H.getBoundingClientRect().top)-L.getBoundingClientRect().top+L.scrollTop;q7(L,N)},C=L=>{const H=N=>t.currentDate.some(j=>wl(j,N)===0);if(H(L)){const N=sz(L),j=lz(L),Y=H(N),K=H(j);return Y&&K?"multiple-middle":Y?"end":K?"start":"multiple-selected"}return""},_=L=>{const[H,N]=t.currentDate;if(!H)return"";const j=wl(L,H);if(!N)return j===0?"start":"";const Y=wl(L,N);return t.allowSameDay&&j===0&&Y===0?"start-end":j===0?"start":Y===0?"end":j>0&&Y<0?"middle":""},O=L=>{const{type:H,minDate:N,maxDate:j,currentDate:Y}=t;if(wl(L,N)<0||wl(L,j)>0)return"disabled";if(Y===null)return"";if(Array.isArray(Y)){if(H==="multiple")return C(L);if(H==="range")return _(L)}else if(H==="single")return wl(L,Y)===0?"selected":"";return""},A=L=>{if(t.type==="range"){if(L==="start")return d.vanCalendar.start;if(L==="end")return d.vanCalendar.end;if(L==="start-end")return d.vanCalendar.startEnd}return null},D=()=>t.showMonthTitle?q("div",Object.assign({className:Me(a2("month-title"))},{children:c})):null,M=()=>t.showMark&&g?q("div",Object.assign({className:Me(a2("month-mark"))},{children:t.date.getMonth()+1})):null,B=G.useMemo(()=>{const L=Math.ceil((y+v)/7);return Array(L).fill({type:"placeholder"})},[y,v]),F=G.useMemo(()=>{const L=[],H=t.date.getFullYear(),N=t.date.getMonth();for(let j=1;j<=y;j++){const Y=new Date(H,N,j),K=O(Y);let ee={date:Y,type:K,text:j,bottomInfo:A(K)};t.formatter&&(ee=t.formatter(ee)),L.push(ee)}return L},[O,t.date,t.formatter]),I=(L,H)=>q(Lce,{item:L,index:H,color:t.color,offset:v,rowHeight:p,onClick:t.onClick,topInfoRender:t.topInfoRender,bottomInfoRender:t.bottomInfoRender},H),U=()=>Ne("div",Object.assign({ref:i,role:"grid",className:Me(a2("days"))},{children:[M(),(g?F:B).map(I)]}));return G.useImperativeHandle(e,()=>({getTitle:S,getHeight:()=>u.current,setVisible:r,scrollIntoView:E})),Ne("div",Object.assign({className:Me(a2("month")),ref:s},{children:[D(),U()]}))}),[Wg]=_n("calendar"),zce=t=>{const{locale:e}=G.useContext(Ip),n=()=>{if(t.showTitle){const s=t.title||e.vanCalendar.title;return q("div",Object.assign({className:Me(Wg("header-title"))},{children:s}))}return null},r=s=>{var u;(u=t.onClickSubtitle)===null||u===void 0||u.call(t,s)},i=()=>t.showSubtitle?q("div",Object.assign({className:Me(Wg("header-subtitle")),onClick:r},{children:t.subtitle})):null,o=()=>{const{weekdays:s,firstDayOfWeek:u}=t,d=e.vanCalendar.weekdays,c=s?d.map((v,y)=>s[y]||v):d,p=[...c.slice(u,7),...c.slice(0,u)];return q("div",Object.assign({className:Me(Wg("weekdays"))},{children:p.map((v,y)=>q("span",Object.assign({className:Me(Wg("weekday"))},{children:v}),y))}))};return Ne("div",Object.assign({className:Me(Wg("header"))},{children:[n(),i(),o()]}))},[Kp]=_n("calendar"),Ice=h8(),jce=(()=>{const t=h8();return new Date(t.getFullYear(),t.getMonth()+6,t.getDate())})(),Hce=G.forwardRef((t,e)=>{var n,{className:r,style:i}=t,o=Mo(t,["className","style"]);const s=Ti(o,{round:!0,poppable:!0,showMark:!0,showTitle:!0,showConfirm:!0,showSubtitle:!0,closeOnPopstate:!0,closeOnClickOverlay:!0,safeAreaInsetBottom:!0,defaultValue:null,type:"single",position:"bottom",maxRange:null,minDate:Ice,maxDate:jce,firstDayOfWeek:0,showRangePrompt:!0}),{locale:u}=G.useContext(Ip),[d,c]=gg({value:s.visible,defaultValue:!1,onChange:W=>{var te;W===!1&&((te=s.onClose)===null||te===void 0||te.call(s))}}),p=(W,te=s.minDate,ae=s.maxDate)=>wl(W,te)===-1?te:wl(W,ae)===1?ae:W,v=(W=s.defaultValue)=>{const{type:te,minDate:ae,maxDate:re}=s;if(W===null)return W;const ce=h8();if(te==="range"){Array.isArray(W)||(W=[]);const ve=p(W[0]||ce,ae,sz(re)),Se=p(W[1]||ce,lz(ae));return[ve,Se]}return te==="multiple"?Array.isArray(W)?W.map(ve=>p(ve)):[p(ce)]:((!W||Array.isArray(W))&&(W=ce),p(W))},y=G.useRef(),g=G.useRef(0),[S,E]=G.useState(v(s.value===void 0?s.defaultValue:s.value)),[C,_]=Z7({subtitle:"",currentDate:S});Dd(()=>{s.value!==void 0&&JSON.stringify(S)!==JSON.stringify(s.value)&&E(s.value)},[s.value]),G.useEffect(()=>{JSON.stringify(C.currentDate)!==JSON.stringify(S)&&_({currentDate:S})},[S]);const[O,A]=i2(),D=G.useMemo(()=>s.firstDayOfWeek?+s.firstDayOfWeek%7:0,[s.firstDayOfWeek,s.firstDayOfWeek]),M=G.useMemo(()=>{const W=[],te=new Date(s.minDate);te.setDate(1);do W.push(new Date(te)),te.setMonth(te.getMonth()+1);while(f8(te,s.maxDate)!==1);return W},[s.minDate,s.maxDate]),B=G.useMemo(()=>{const{currentDate:W}=C;if(W){if(s.type==="range")return!W[0]||!W[1];if(s.type==="multiple")return!W.length}return!W},[s.type,C.currentDate]),F=()=>{var W;const te=Bae(y.current),ae=te+g.current,re=M.map((Ae,Te)=>O[Te].getHeight()),ce=re.reduce((Ae,Te)=>Ae+Te,0);if(ae>ce&&te>0)return;let ve=0,Se;const se=[-1,-1];for(let Ae=0;Ae<M.length;Ae++){const Te=O[Ae];ve<=ae&&ve+re[Ae]>=te&&(se[1]=Ae,Se||(Se=Te,se[0]=Ae),O[Ae].showed||(O[Ae].showed=!0,(W=s.onMonthShow)===null||W===void 0||W.call(s,{date:Te.date,title:Te.getTitle()}))),ve+=re[Ae]}M.forEach((Ae,Te)=>{const Pe=Te>=se[0]-1&&Te<=se[1]+1;O[Te].setVisible(Pe)}),Se&&Se.getTitle()!==C.subtitle&&!s.horizontal&&_({subtitle:Se.getTitle()})},I=W=>{uT(()=>{M.some((te,ae)=>f8(te,W)===0?(y.current&&O[ae].scrollIntoView(y.current),!0):!1),F()})},U=()=>{if(s.poppable&&!d)return;const{currentDate:W}=C;if(W){const te=s.type==="single"?W:W[0];I(te)}else uT(F)},L=()=>{uT(()=>{g.current=Math.floor(ZB(y.current).height),U()})},H=(W=v())=>{_({currentDate:W}),U()},N=W=>{var te;const{maxRange:ae,rangePrompt:re,showRangePrompt:ce}=s;return ae&&Fce(W)>ae?(ce&&u8.info(re||u.vanCalendar.rangePrompt(+ae)),(te=s.onOverRange)===null||te===void 0||te.call(s),!1):!0},j=()=>{var W;const te=az(C.currentDate);s.poppable&&E(te),(W=s.onConfirm)===null||W===void 0||W.call(s,te),X.close()},Y=(W,te)=>{const ae=re=>{var ce;C.currentDate=re,_({currentDate:re}),(ce=s.onSelect)===null||ce===void 0||ce.call(s,az(C.currentDate))};if(te&&s.type==="range"&&!N(W)){s.showConfirm?ae([W[0],d8(W[0],+s.maxRange-1)]):ae(W);return}ae(W),te&&!s.showConfirm&&j()},K=W=>{var te;if(s.readOnly||!W.date)return;const{date:ae}=W,{type:re}=s,{currentDate:ce}=C;if(re==="range"){if(!ce){Y([ae]);return}const[ve,Se]=ce;if(ve&&!Se){const se=wl(ae,ve);se===1?Y([ve,ae],!0):se===-1?Y([ae]):s.allowSameDay&&Y([ae,ae],!0)}else Y([ae])}else if(re==="multiple"){if(!ce){Y([ae]);return}let ve;if(C.currentDate.some((se,Ae)=>{const Te=wl(se,ae)===0;return Te&&(ve=Ae),Te})){const[se]=ce.splice(ve,1);(te=s.onUnselect)===null||te===void 0||te.call(s,o2(se)),Y([...ce])}else s.maxRange&&ce.length>=s.maxRange?u8(s.rangePrompt||`选择天数不能超过 ${s.maxRange} 天`):Y([...ce,ae])}else Y(ae,!0)},ee=(W,te)=>{const ae=!s.horizontal&&(te!==0||!s.showSubtitle);return q(Bce,Object.assign({ref:A(te),date:W,currentDate:C.currentDate,showMonthTitle:ae,firstDayOfWeek:D},U7(s,["type","color","minDate","maxDate","showMark","formatter","rowHeight","showSubtitle","lazyRender","allowSameDay","topInfoRender","bottomInfoRender","formatMonthTitle"]),{onClick:K}),te)},ne=()=>{if(s.footer)return s.footer;if(s.showConfirm){const W=B?s.confirmDisabledText:s.confirmText;return q(ta,Object.assign({round:!0,block:!0,type:"danger",color:s.color,className:Me(Kp("confirm")),disabled:B,nativeType:"button",onClick:j},{children:W||u.vanCalendar.confirm}))}return null},$=()=>q("div",Object.assign({className:Me(Kp("footer"),{"rv-safe-area-bottom":s.safeAreaInsetBottom})},{children:ne()})),Z=()=>Ne("div",Object.assign({className:Me(r,Kp()),style:i},{children:[q(zce,{weekdays:s.weekdays,title:s.title,subtitle:s.subtitle||C.subtitle,showTitle:s.showTitle,showSubtitle:s.showSubtitle,firstDayOfWeek:D,onClickSubtitle:W=>{var te;(te=s.onClickSubtitle)===null||te===void 0||te.call(s,W)}}),s.horizontal?q("div",Object.assign({ref:y,className:Me(Kp("horizontal-body"))},{children:q(oz,Object.assign({indicator:()=>null,onChange:W=>{_({subtitle:O[W].getTitle()})}},{children:M.map((W,te)=>q(oz.Item,{children:ee(W,te)},W))}))})):q("div",Object.assign({ref:y,className:Me(Kp("body")),onScroll:F},{children:M.map(ee)})),$()]})),X={toggle:()=>{s.poppable&&c(W=>!W)},open:()=>{s.poppable&&c(!0)},close:()=>{s.poppable&&c(!1)}};return G.useEffect(()=>{s.poppable||L()},[]),G.useEffect(()=>{s.poppable&&d&&L()},[d]),Dd(()=>{H(v(C.currentDate))},[s.type,s.minDate,s.maxDate]),G.useImperativeHandle(e,()=>Object.assign({reset:H,scrollToDate:I},X)),s.poppable?Ne(Jt,{children:[q(Nd,Object.assign({visible:d,className:Me(Kp("popup")),round:s.round,position:s.position,closeable:s.showTitle||s.showSubtitle,closeOnPopstate:s.closeOnPopstate,closeOnClickOverlay:s.closeOnClickOverlay,onClose:X.close,onClosed:()=>{var W;s.poppable&&JSON.stringify(C.currentDate)!==JSON.stringify(S)&&_({currentDate:S}),(W=s.onClosed)===null||W===void 0||W.call(s)}},{children:Z()})),(n=s.children)===null||n===void 0?void 0:n.call(s,S,X)]}):Z()});function Uce(t,e){var n;process.env.NODE_ENV==="development"&&(Od(t)||void 0);const r=J7(t),i=(n=e==null?void 0:e.wait)!==null&&n!==void 0?n:1e3,o=G.useMemo(()=>kce((...s)=>r.current(...s),i,e),[]);return e9(()=>{o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}function Vce(t,e,n){const[r,i]=G.useState({}),{run:o}=Uce(()=>{i({})},n);G.useEffect(()=>o(),e),Dd(t,[r])}const Rxe="",cz=G.createContext({}),[$ce]=_n("checkbox-group"),qce=G.forwardRef((t,e)=>{const[n,r]=i2(),[i,o]=nz({value:t.value,defaultValue:t.defaultValue}),s=(d={})=>{typeof d=="boolean"&&(d={checked:d});const{checked:c,skipDisabled:p}=d,y=n.filter(g=>g.props.bindGroup?g.props.disabled&&p?g.checked:c??!g.checked:!1).map(g=>g.props.name);o(y),t.onChange(y)},u=d=>{var c;o(d),(c=t.onChange)===null||c===void 0||c.call(t,d)};return G.useImperativeHandle(e,()=>({toggleAll:s})),q(cz.Provider,Object.assign({value:{parent:{props:t},toggle:u,checked:i||[]}},{children:q("div",Object.assign({className:Me(t.className,$ce([t.direction]))},{children:G.Children.toArray(t.children).filter(Boolean).map((d,c)=>{var p;return((p=d.type)===null||p===void 0?void 0:p.displayName)!=="Checkbox"?d:G.cloneElement(d,{ref:r(c)})})}))}))}),[Yce]=_n("checkbox"),fz=G.forwardRef((t,e)=>{const n=Ti(t,{bindGroup:!0}),r=G.useContext(cz),{parent:i}=r,o=Mo(r,["parent"]),[s,u]=nz({value:n.checked,defaultValue:n.defaultChecked}),d=v=>{const{name:y}=n,{max:g}=i.props,S=o.checked.slice();if(v)!(g&&S.length>=g)&&S.indexOf(y)===-1&&(S.push(y),n.bindGroup&&o.toggle(S));else{const E=S.indexOf(y);E!==-1&&(S.splice(E,1),n.bindGroup&&o.toggle(S))}},c=G.useMemo(()=>i&&n.bindGroup?o.checked.indexOf(n.name)!==-1:s,[o.checked,s]),p=(v=!c)=>{var y;i&&n.bindGroup?d(v):(u(v),(y=n.onChange)===null||y===void 0||y.call(n,v))};return G.useImperativeHandle(e,()=>({toggle:p,checked:c,props:n})),q(Rce,Object.assign({},n,{bem:Yce,role:"checkbox",parent:i,checked:c,className:n.className,bindGroup:n.bindGroup,onToggle:p}))});fz.displayName="Checkbox";const m8=Object.assign(fz,{Group:qce}),Lxe="",dz=200,hz=300,Kce=15;function Wce(t){const e=window.getComputedStyle(t),n=e.transform||e.webkitTransform,r=n.slice(7,n.length-1).split(", ")[5];return Number(r)}const[v8]=_n("picker-column"),Gce=G.memo(G.forwardRef((t,e)=>{const{locale:n}=G.useContext(Ip),{valueKey:r,textKey:i,itemHeight:o,visibleItemCount:s,placeholder:u,value:d}=t,c=G.useMemo(()=>G7(o),[o]),p=G.useMemo(()=>Array.isArray(t.options)&&!t.options.length?[]:u?[{[r]:void 0,[i]:u===!0?n.vanPicker.select:u},...t.options]:t.options,[t.options]),v=G.useRef(null),y=G.useRef(!1),g=G.useRef(0),S=G.useRef(null),E=G.useRef(0),C=G.useRef(0),[_,O,A]=Z7({offset:0,duration:0}),D=r9(),M=G.useMemo(()=>c*(+s-1)/2,[c,s]),B=$=>{var Z,X;$=mg($,0,p.length);for(let W=$;W<p.length;W+=1)if(!(!((Z=p[W])===null||Z===void 0)&&Z.disabled))return W;for(let W=$-1;W>=0;W-=1)if(!(!((X=p[W])===null||X===void 0)&&X.disabled))return W;return null},F=$=>{t.onSelect($,t.index)},I=$=>{$=B($)||0;const Z=-$*c,X=()=>{var W;((W=p[$])===null||W===void 0?void 0:W[r])!==d&&F(p[$])};y.current&&Z!==A.current.offset?S.current=X:X(),O({offset:Z})},U=$=>{$=B($)||0;const Z=-$*c;O({offset:Z})};vg(()=>{if(p.length===0)d!==void 0&&F(void 0);else{let $=p.findIndex(Z=>Z[r]===d);$<0&&($=0,F(p[0])),U($)}},[d,JSON.stringify(p)]);const L=$=>{y.current||t.readOnly||(S.current=null,O({duration:dz}),I($))},H=$=>mg(Math.round(-$/c),0,p.length-1),N=($,Z)=>{const X=Math.abs($/Z);$=A.current.offset+X/.003*($<0?-1:1);const W=H($);O({duration:+t.swipeDuration}),I(W)},j=()=>{y.current=!1,O({duration:0}),S.current&&(S.current(),S.current=null)},Y=$=>{if(t.readOnly)return;D.start($);let{offset:Z}=_;if(y.current){const X=Wce(v.current);Z=Math.min(0,X-M),g.current=Z}else g.current=Z;O({duration:0,offset:Z}),E.current=Date.now(),C.current=g.current,S.current=null},K=$=>{if(t.readOnly)return;D.move($),D.isVertical()&&(y.current=!0);const Z=mg(g.current+D.deltaY.current,-(p.length*c),c);O({offset:Z});const X=Date.now();X-E.current>hz&&(E.current=X,C.current=Z)},ee=()=>{if(t.readOnly||!y.current)return;const $=A.current.offset-C.current,Z=Date.now()-E.current;if(Z<hz&&Math.abs($)>Kce){N($,Z);return}const W=H(A.current.offset);O({duration:dz}),I(W),setTimeout(()=>{y.current=!1},0)},ne=()=>{const $={height:`${t.itemHeight}px`};return p.map((Z,X)=>{const{disabled:W}=Z,te={role:"button",style:$,tabIndex:W?-1:0,className:Me(v8("item",{disabled:W,selected:Z[r]===d})),onClick:()=>{L(X)}},ae={className:"rv-ellipsis",children:Z[i]};return G.createElement("li",Object.assign({},te,{key:X}),t.optionRender?t.optionRender(Z):q("div",Object.assign({},ae)))})};return G.useImperativeHandle(e,()=>({stopMomentum:j})),q("div",Object.assign({className:Me(v8(),t.className),onTouchStart:Y,onTouchMove:K,onTouchEnd:ee,onTouchCancel:ee},{children:q("ul",Object.assign({ref:v,style:{transform:`translate3d(0, ${_.offset+M}px, 0)`,transitionDuration:`${_.duration}ms`,transitionProperty:_.duration?"all":"none"},className:Me(v8("wrapper")),onTransitionEnd:j},{children:ne()}))}))}),(t,e)=>!(t.index!==e.index||t.value!==e.value||t.onSelect!==e.onSelect||JSON.stringify(t.options)!==JSON.stringify(e.options)));function Qce(t,e){const{textKey:n,valueKey:r,childrenKey:i}=e,o=G.useMemo(()=>{if(t.some(c=>typeof c=="object"&&i in c))return"cascade";const d=t[0]||{};return typeof d=="object"?i in d?"cascade":"object":"plain"},[t,i]),s=G.useMemo(()=>{let u=0;function d(c,p){p>u&&(u=p);const v=p+1;c.forEach(y=>{y[i]&&d(y[i],v)})}return d(t,1),u},[t,i]);return o!=="cascade"?t:u=>{const d=[];let c=t,p=0;for(;;){d.push(c.map(g=>{var S;return{[n]:g[n],[r]:(S=g[r])!==null&&S!==void 0?S:g[n]}}));const v=u[p],y=c.find(g=>{var S;return((S=g[r])!==null&&S!==void 0?S:g[n])===v});if(!y||!y[i])break;c=y[i],p++}for(;p<s-1;)d.push([]),p++;return d}}function g8(t){let e=null;return()=>(e===null&&(e=t()),e)}function Xce(t,e,n){const{textKey:r,valueKey:i}=e,o=g8(()=>{let c=typeof t=="function"?t(n):t;return Array.isArray(c[0])||(c=[c]),c.map(p=>p.map(v=>typeof v=="string"?{[r]:v,[i]:v}:(i in v||(v[i]=v[r]),v)))}),s=g8(()=>n.map((c,p)=>{var v;const y=o()[p];return y?(v=y.find(g=>g[i]===c))!==null&&v!==void 0?v:void 0:null})),u=g8(()=>n.map((c,p)=>{var v;const y=o()[p];return y&&(v=y.findIndex(g=>g[i]===c))!==null&&v!==void 0?v:null}));return{get columns(){return o()},get items(){return s()},get indexes(){return u()}}}function pz(t,e,n){const r=Qce(t,e);return G.useMemo(()=>Xce(r,e,n),[t,e,n])}const[yu]=_n("picker");function Zce(t){const{locale:e}=G.useContext(Ip),n=G.useRef(null),[r,i]=i2(),{text:o,value:s,children:u}=pg({text:"text",value:"value",children:"children"},t.columnsFieldNames),[d,c]=G.useState(t.value);G.useEffect(()=>{t.value!==void 0&&JSON.stringify(d)!==JSON.stringify(t.value)&&c(t.value)},[t.value]);const p=pz(t.columns,{textKey:o,valueKey:s,childrenKey:u},d),{columns:v,items:y,indexes:g}=p;Vce(()=>{var I;JSON.stringify(t.value)!==JSON.stringify(d)&&((I=t.onChange)===null||I===void 0||I.call(t,d,y,g))},[d],{wait:100,leading:!1,trailing:!0});const S=G.useMemo(()=>G7(t.itemHeight),[t.itemHeight]),E=(I,U)=>{c(L=>{const H=[...L];return H[U]=I==null?void 0:I[s],H})},C=()=>{var I;r.forEach(U=>U.stopMomentum()),(I=t.onConfirm)===null||I===void 0||I.call(t,d,y,g)},_=()=>{var I;(I=t.onCancel)===null||I===void 0||I.call(t)},O=()=>t.title?q("div",Object.assign({className:Me(yu("title"),"rv-ellipsis")},{children:t.title})):null,A=()=>{const I=t.cancelButtonText||e.cancel;return q("button",Object.assign({type:"button",className:Me(yu("cancel")),onClick:_},{children:I}))},D=()=>{const I=t.confirmButtonText||e.confirm;return q("button",Object.assign({type:"button",className:Me(yu("confirm")),onClick:C},{children:I}))},M=()=>t.showToolbar?q("div",Object.assign({className:Me(yu("toolbar"))},{children:t.toolbar||Ne(Jt,{children:[A(),O(),D()]})})):null,B=()=>v.map((I,U)=>{const L=Array.isArray(t.placeholder)?t.placeholder[U]:t.placeholder;return q(Gce,{textKey:o,valueKey:s,ref:i(U),placeholder:L,optionRender:t.optionRender,readOnly:t.readOnly,value:d[U],itemHeight:S,index:U,swipeDuration:t.swipeDuration,visibleItemCount:t.visibleItemCount,options:I,onSelect:E},U)}),F=()=>{const I=S*t.visibleItemCount,U={height:`${S}px`},L={height:`${I}px`},H={backgroundSize:`100% ${(I-S)/2}px`};return Ne("div",Object.assign({ref:n,className:Me(yu("columns")),style:L},{children:[B(),q("div",{className:Me(yu("mask")),style:H}),q("div",{className:Me(dse,yu("frame")),style:U})]}))};return fT("touchmove",lT,{target:n.current}),Ne("div",Object.assign({className:Me(yu(),t.className)},{children:[t.toolbarPosition==="top"?M():null,t.loading?q(pT,{className:Me(yu("loading"))}):null,t.columnsTop,F(),t.columnsBottom,t.toolbarPosition==="bottom"?M():null]}))}function Jce(t,e){const n=Ti(t,{columns:[],itemHeight:44,visibleItemCount:5,swipeDuration:300,showToolbar:!0,placeholder:!0,toolbarPosition:"top"}),{visible:r,popup:i,children:o,defaultValue:s=[]}=n,u=Mo(n,["visible","popup","children","defaultValue"]),[d,c]=gg({value:r,defaultValue:!1,onChange:N=>{var j;N===!1&&((j=n.onClose)===null||j===void 0||j.call(n))}}),p={toggle:()=>{i&&c(N=>!N)},open:()=>{i&&c(!0)},close:()=>{i&&c(!1)}};G.useImperativeHandle(e,()=>p);const v=Array.isArray(n.value)?n.value:n.value!==void 0?[n.value]:void 0,y=Array.isArray(s)?s:s!==void 0?[s]:[],{text:g,value:S,children:E}=pg({text:"text",value:"value",children:"children"},n.columnsFieldNames),C=G.useMemo(()=>{const N=n.columns[0]||{};return!(Array.isArray(N)||typeof N=="object"&&E in N)},[n.columns,E]),_=N=>C?N==null?void 0:N[0]:N,[O,A]=gg({value:v,defaultValue:y}),D=pz(n.columns,{textKey:g,valueKey:S,childrenKey:E},O),[M,B]=G.useState(O);G.useEffect(()=>{i&&JSON.stringify(M)!==JSON.stringify(O)&&B(O)},[d]),G.useEffect(()=>{!i&&JSON.stringify(M)!==JSON.stringify(O)&&B(O)},[O]);const F=(N,j,Y)=>{var K;A(M,!0),(K=n.onConfirm)===null||K===void 0||K.call(n,_(N),_(j),_(Y)),i&&p.close()},I=()=>{var N;(N=n.onCancel)===null||N===void 0||N.call(n),i&&p.close()},U=a9((N,j,Y)=>{var K,ee;B(N),i?d&&((K=n.onChange)===null||K===void 0||K.call(n,_(N),_(j),_(Y))):(ee=n.onChange)===null||ee===void 0||ee.call(n,_(N),_(j),_(Y))}),L=Fp(i)?Object.assign({closeOnClickOverlay:!0},i):{closeOnClickOverlay:!0},H=q(Zce,Object.assign({},u,{value:M,onCancel:I,onConfirm:F,onChange:U}));return i?Ne(Jt,{children:[q(Nd,Object.assign({round:!0,position:"bottom",visible:d,closeOnClickOverlay:!0,onClickOverlay:()=>{L!=null&&L.closeOnClickOverlay&&c(!1)}},L,{children:H})),o==null?void 0:o(_(O),_(D.items),p)]}):H}const y8=G.forwardRef(Jce);function efe(t){return Object.prototype.toString.call(t)==="[object Date]"&&!W7(t.getTime())}const tfe=G.forwardRef((t,e)=>{const n=Ti(t,{type:"datetime",placeholder:!1,minDate:nfe,maxDate:rfe,formatter:(F,I)=>I}),{value:r,defaultValue:i,formatter:o,columnsOrder:s,type:u,filter:d,minDate:c,maxDate:p}=n,v=Mo(n,["value","defaultValue","formatter","columnsOrder","type","filter","minDate","maxDate"]),y=F=>(efe(F)||(F=new Date),F=Math.max(F,c.getTime()),F=Math.min(F,p.getTime()),new Date(F)),[g,S,E]=dT(()=>y(r||i)),C=(F,I)=>{const U=n[`${F}Date`],L=U.getFullYear();let H=1,N=1,j=0,Y=0;return F==="max"&&(H=12,N=p8(I.getFullYear(),I.getMonth()+1),j=23,Y=59),I.getFullYear()===L&&(H=U.getMonth()+1,I.getMonth()+1===H&&(N=U.getDate(),I.getDate()===N&&(j=U.getHours(),I.getHours()===j&&(Y=U.getMinutes())))),{[`${F}Year`]:L,[`${F}Month`]:H,[`${F}Date`]:N,[`${F}Hour`]:j,[`${F}Minute`]:Y}},_=G.useMemo(()=>{const{maxYear:F,maxDate:I,maxMonth:U,maxHour:L,maxMinute:H}=C("max",E.current),{minYear:N,minDate:j,minMonth:Y,minHour:K,minMinute:ee}=C("min",E.current);let ne=[{type:"year",range:[N,F]},{type:"month",range:[Y,U]},{type:"day",range:[j,I]},{type:"hour",range:[K,L]},{type:"minute",range:[ee,H]}];switch(u){case"date":ne=ne.slice(0,3);break;case"year-month":ne=ne.slice(0,2);break;case"month-day":ne=ne.slice(1,3);break;case"datehour":ne=ne.slice(0,4);break}if(s){const $=s.concat(ne.map(Z=>Z.type));ne.sort((Z,X)=>$.indexOf(Z.type)-$.indexOf(X.type))}return ne.map(({type:$,range:Z})=>{let X=uz(Z[1]-Z[0]+1,W=>xl(Z[0]+W));return d&&(X=d($,X)),{type:$,values:X}})},[s,E.current,c,p]),O=G.useMemo(()=>_.map(F=>F.values.map(I=>o(F.type,I))),[_,o]),A=G.useMemo(()=>{const F=n.popup?y(E.current):E.current;return _.map(U=>{switch(U.type){case"year":return o("year",`${F.getFullYear()}`);case"month":return o("month",xl(F.getMonth()+1));case"day":return o("day",xl(F.getDate()));case"hour":return o("hour",xl(F.getHours()));case"minute":return o("minute",xl(F.getMinutes()));default:return""}})},[n.value,E.current,y]),D=F=>{const{type:I}=n,U=ee=>{let ne=0;_.forEach((Z,X)=>{ee===Z.type&&(ne=X)});const{values:$}=_[ne];return Pce($[F[ne]])};let L=null,H=null,N=null;I==="month-day"?(L=(g||c).getFullYear(),H=U("month"),N=U("day")):(L=U("year"),H=U("month"),N=I==="year-month"?1:U("day"));const j=p8(L,H);N=N>j?j:N;let Y=0,K=0;return I==="datehour"&&(Y=+U("hour")),I==="datetime"&&(Y=+U("hour"),K=+U("minute")),y(new Date(L,H-1,N,Y,K))},M=(F,I,U)=>{var L;const H=D(U);S(H),(L=n.onChange)===null||L===void 0||L.call(n,H)},B=()=>{var F;(F=n.onConfirm)===null||F===void 0||F.call(n,g)};return Dd(()=>{const F=y(r);F&&F.valueOf()!==(g==null?void 0:g.valueOf())&&S(F)},[r,d,c,p]),q(y8,Object.assign({},v,{value:A,ref:e,columns:O,onChange:M,onConfirm:B,onCancel:n.onCancel},{children:(F,I,U)=>{var L;return(L=n.children)===null||L===void 0?void 0:L.call(n,r||i,I,U)}}))}),mz=new Date().getFullYear(),nfe=new Date(mz-10,0,1),rfe=new Date(mz+10,11,31),ife=tfe,ofe=G.forwardRef((t,e)=>{const n=Ti(t,{minHour:0,maxHour:23,minMinute:0,maxMinute:59,placeholder:!1,defaultValue:"",formatter:(B,F)=>F}),{value:r,defaultValue:i,formatter:o,filter:s,minHour:u,maxHour:d,minMinute:c,maxMinute:p}=n,v=Mo(n,["value","defaultValue","formatter","filter","minHour","maxHour","minMinute","maxMinute"]),y=B=>{B||(B=`${xl(u)}:${xl(c)}`);let[F,I]=B.split(":");return F=xl(mg(F,+u,+d)),I=xl(mg(I,+c,+p)),`${F}:${I}`},[g,S]=G.useState(()=>y(r===void 0?i:r)),E=G.useMemo(()=>[{type:"hour",range:[+u,+d]},{type:"minute",range:[+c,+p]}],[u,d,c,p]),C=G.useMemo(()=>E.map(({type:B,range:F})=>{let I=uz(F[1]-F[0]+1,U=>xl(F[0]+U));return s&&(I=s(B,I)),{type:B,values:I}}),[E]),_=G.useMemo(()=>C.map(B=>B.values.map(F=>o(B.type,F))),[C]),O=G.useMemo(()=>{const B=(n.popup?y(n.value):g).split(":");return[o("hour",B[0]),o("minute",B[1])]},[n.value,g,y]),A=()=>{var B;(B=n.onConfirm)===null||B===void 0||B.call(n,g)},D=()=>{var B;(B=n.onCancel)===null||B===void 0||B.call(n)},M=B=>{var F;const I=y(B.join(":"));S(I),(F=n.onChange)===null||F===void 0||F.call(n,I)};return Dd(()=>{const B=y(g);S(B)},[s,u,d,c,p]),Dd(()=>{const B=y(r);B!==g&&S(B)},[r]),q(y8,Object.assign({},v,{ref:e,columns:_,value:O,onChange:M,onConfirm:A,onCancel:D},{children:(B,F,I)=>{var U;return(U=n.children)===null||U===void 0?void 0:U.call(n,r,F,I)}}))}),[vz]=_n("datetime-picker"),x8=G.forwardRef((t,e)=>t.type==="time"?q(ofe,Object.assign({ref:e,className:Me(vz())},t)):q(ife,Object.assign({ref:e,className:Me(vz())},t)));function b8(t){return Array.isArray(t)?t:[t]}const Hxe="";function gz(t,e){this.v=t,this.k=e}function oo(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}oo=function(s,u,d,c){function p(v,y){oo(s,v,function(g){return this._invoke(v,y,g)})}u?i?i(s,u,{value:d,enumerable:!c,configurable:!c,writable:!c}):s[u]=d:(p("next",0),p("throw",1),p("return",2))},oo(t,e,n,r)}function S8(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(g,S,E,C){var _=S&&S.prototype instanceof u?S:u,O=Object.create(_.prototype);return oo(O,"_invoke",function(A,D,M){var B,F,I,U=0,L=M||[],H=!1,N={p:0,n:0,v:t,a:j,f:j.bind(t,4),d:function(K,ee){return B=K,F=0,I=t,N.n=ee,s}};function j(Y,K){for(F=Y,I=K,e=0;!H&&U&&!ee&&e<L.length;e++){var ee,ne=L[e],$=N.p,Z=ne[2];Y>3?(ee=Z===K)&&(I=ne[(F=ne[4])?5:(F=3,3)],ne[4]=ne[5]=t):ne[0]<=$&&((ee=Y<2&&$<ne[1])?(F=0,N.v=K,N.n=ne[1]):$<Z&&(ee=Y<3||ne[0]>K||K>Z)&&(ne[4]=Y,ne[5]=K,N.n=Z,F=0))}if(ee||Y>1)return s;throw H=!0,K}return function(Y,K,ee){if(U>1)throw TypeError("Generator is already running");for(H&&K===1&&j(K,ee),F=K,I=ee;(e=F<2?t:I)||!H;){B||(F?F<3?(F>1&&(N.n=-1),j(F,I)):N.n=I:N.v=I);try{if(U=2,B){if(F||(Y="next"),e=B[Y]){if(!(e=e.call(B,I)))throw TypeError("iterator result is not an object");if(!e.done)return e;I=e.value,F<2&&(F=0)}else F===1&&(e=B.return)&&e.call(B),F<2&&(I=TypeError("The iterator does not provide a '"+Y+"' method"),F=1);B=t}else if((e=(H=N.n<0)?I:A.call(D,N))!==s)break}catch(ne){B=t,F=1,I=ne}finally{U=1}}return{value:e,done:H}}}(g,E,C),!0),O}var s={};function u(){}function d(){}function c(){}e=Object.getPrototypeOf;var p=[][r]?e(e([][r]())):(oo(e={},r,function(){return this}),e),v=c.prototype=u.prototype=Object.create(p);function y(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,c):(g.__proto__=c,oo(g,i,"GeneratorFunction")),g.prototype=Object.create(v),g}return d.prototype=c,oo(v,"constructor",c),oo(c,"constructor",d),d.displayName="GeneratorFunction",oo(c,i,"GeneratorFunction"),oo(v),oo(v,i,"Generator"),oo(v,r,function(){return this}),oo(v,"toString",function(){return"[object Generator]"}),(S8=function(){return{w:o,m:y}})()}function s2(t,e){function n(i,o,s,u){try{var d=t[i](o),c=d.value;return c instanceof gz?e.resolve(c.v).then(function(p){n("next",p,s,u)},function(p){n("throw",p,s,u)}):e.resolve(c).then(function(p){d.value=p,s(d)},function(p){return n("throw",p,s,u)})}catch(p){u(p)}}var r;this.next||(oo(s2.prototype),oo(s2.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),oo(this,"_invoke",function(i,o,s){function u(){return new e(function(d,c){n(i,s,d,c)})}return r=r?r.then(u,u):u()},!0)}function yz(t,e,n,r,i){return new s2(S8().w(t,e,n,r),i||Promise)}function afe(t,e,n,r,i){var o=yz(t,e,n,r,i);return o.next().then(function(s){return s.done?s.value:o.next()})}function sfe(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function i(){for(;n.length;)if((r=n.pop())in e)return i.value=r,i.done=!1,i;return i.done=!0,i}}function xz(t){if(t!=null){var e=t[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(ai(t)+" is not iterable")}function as(){var t=S8(),e=t.m(as),n=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function r(s){var u=typeof s=="function"&&s.constructor;return!!u&&(u===n||(u.displayName||u.name)==="GeneratorFunction")}var i={throw:1,return:2,break:3,continue:3};function o(s){var u,d;return function(c){u||(u={stop:function(){return d(c.a,2)},catch:function(){return c.v},abrupt:function(v,y){return d(c.a,i[v],y)},delegateYield:function(v,y,g){return u.resultName=y,d(c.d,xz(v),g)},finish:function(v){return d(c.f,v)}},d=function(v,y,g){c.p=u.prev,c.n=u.next;try{return v(y,g)}finally{u.next=c.n}}),u.resultName&&(u[u.resultName]=c.v,u.resultName=void 0),u.sent=c.v,u.next=c.n;try{return s.call(this,u)}finally{c.p=u.prev,c.n=u.next}}}return(as=function(){return{wrap:function(d,c,p,v){return t.w(o(d),c,p,v&&v.reverse())},isGeneratorFunction:r,mark:t.m,awrap:function(d,c){return new gz(d,c)},AsyncIterator:s2,async:function(d,c,p,v,y){return(r(c)?yz:afe)(o(d),c,p,v,y)},keys:sfe,values:xz}})()}function bz(t,e,n,r,i,o,s){try{var u=t[o](s),d=u.value}catch(c){return void n(c)}u.done?e(d):Promise.resolve(d).then(r,i)}function Gg(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function s(d){bz(o,r,i,s,u,"next",d)}function u(d){bz(o,r,i,s,u,"throw",d)}s(void 0)})}}function lfe(t){if(Array.isArray(t))return _E(t)}function Sz(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ufe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
502
+ `,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]);const c=bL({extensions:[I7,TL.configure({multicolor:!0}),_L.configure({types:["heading","paragraph"]}),x_,AL,j7.configure({types:["textStyle"]})],content:r,editable:!e,editorProps:{attributes:{class:"MyRichText_ProseMirror"}},onUpdate:({editor:p})=>{s(p.getHTML())}});return c?Ne("div",{style:{...n,border:"1px solid #d9d9d9",borderRadius:6,overflow:"hidden"},children:[q("div",{style:{borderBottom:"1px solid #d9d9d9",padding:8,background:"#fafafa"},children:Ne(fe.Space,{wrap:!0,children:[q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"011"):"加粗",children:q(fe.Button,{type:"text",icon:q(R$,{}),onClick:()=>c.chain().focus().toggleBold().run(),disabled:e,className:c.isActive("bold")?"ant-btn-primary":""})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"012"):"斜体",children:q(fe.Button,{type:"text",icon:q(sq,{}),onClick:()=>c.chain().focus().toggleItalic().run(),disabled:e,className:c.isActive("italic")?"ant-btn-primary":""})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"013"):"下划线",children:q(fe.Button,{type:"text",icon:q(jq,{}),onClick:()=>c.chain().focus().toggleUnderline().run(),disabled:e,className:c.isActive("underline")?"ant-btn-primary":""})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"014"):"删除线",children:q(fe.Button,{type:"text",icon:q(Rq,{}),onClick:()=>c.chain().focus().toggleStrike().run(),disabled:e,className:c.isActive("strike")?"ant-btn-primary":""})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"015"):"清除格式",children:q(fe.Button,{type:"text",icon:q(I$,{}),onClick:()=>c.chain().focus().unsetAllMarks().clearNodes().run(),disabled:e})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"016"):"文字颜色",children:q(fe.ColorPicker,{value:u,size:"small",disabled:e,onChangeComplete:p=>{d(p),c.chain().focus().setColor(p.toHexString()).run()}})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"017"):"字体大小",children:q(fe.Select,{defaultValue:"16px",style:{width:100},disabled:e,onChange:p=>{c.chain().focus().setFontSize(p).run()},options:[{value:"12px",label:"12px"},{value:"14px",label:"14px"},{value:"16px",label:"16px"},{value:"18px",label:"18px"},{value:"20px",label:"20px"},{value:"24px",label:"24px"},{value:"28px",label:"28px"},{value:"32px",label:"32px"}],suffixIcon:q(eq,{})})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"018"):"左对齐",children:q(fe.Button,{type:"text",icon:q(v$,{}),onClick:()=>c.chain().focus().setTextAlign("left").run(),disabled:e,className:c.isActive({textAlign:"left"})?"ant-btn-primary":""})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"019"):"居中对齐",children:q(fe.Button,{type:"text",icon:q(d$,{}),onClick:()=>c.chain().focus().setTextAlign("center").run(),disabled:e,className:c.isActive({textAlign:"center"})?"ant-btn-primary":""})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"020"):"右对齐",children:q(fe.Button,{type:"text",icon:q(b$,{}),onClick:()=>c.chain().focus().setTextAlign("right").run(),disabled:e,className:c.isActive({textAlign:"right"})?"ant-btn-primary":""})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"021"):"两端对齐",children:q(fe.Button,{type:"text",icon:q(A$,{}),onClick:()=>c.chain().focus().setTextAlign("justify").run(),disabled:e,className:c.isActive({textAlign:"justify"})?"ant-btn-primary":""})}),q("span",{style:{width:1,height:20,background:"#d9d9d9",margin:"0 8px"}}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"022"):"无序列表",children:q(fe.Button,{type:"text",icon:q(Wq,{}),onClick:()=>c.chain().focus().toggleBulletList().run(),disabled:e,className:c.isActive("bulletList")?"ant-btn-primary":""})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"023"):"有序列表",children:q(fe.Button,{type:"text",icon:q(yq,{}),onClick:()=>c.chain().focus().toggleOrderedList().run(),disabled:e,className:c.isActive("orderedList")?"ant-btn-primary":""})}),q("span",{style:{width:1,height:20,background:"#d9d9d9",margin:"0 8px"}}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"024"):"链接",children:q(fe.Button,{type:"text",icon:q(fq,{}),onClick:()=>{const p=c.getAttributes("link").href,v=window.prompt(i?Pn(o,"025"):" 请输入链接地址",p);if(v!==null){if(v===""){c.chain().focus().extendMarkRange("link").unsetLink().run();return}c.chain().focus().extendMarkRange("link").setLink({href:v}).run()}},disabled:e})}),q("span",{style:{width:1,height:20,background:"#d9d9d9",margin:"0 8px"}}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"026"):"撤销",children:q(fe.Button,{type:"text",icon:q($q,{}),onClick:()=>c.chain().focus().undo().run(),disabled:e||!c.can().undo()})}),q(fe.Tooltip,{placement:"topLeft",title:i?Pn(o,"027"):"前进",children:q(fe.Button,{type:"text",icon:q(Aq,{}),onClick:()=>c.chain().focus().redo().run(),disabled:e||!c.can().redo()})})]})}),q("div",{onClick:()=>c.chain().focus().run(),children:q(g_,{editor:c,style:{minHeight:300,padding:"8px",outline:"none"}})})]}):null};Lt.extend(KR);function _ae(t){const{commonRequestWidthParams:e,uploadAction:n,commonRequest:r,formConfig:i,updateDelFileList:o,interfaceTypeDict:s,interfaceTypeSysDict:u,relatedidKey:d,actionUrlKey:c,actionUrlExtraParams:p,CustomModalComponent:v,isEdit:y,formShowType:g="form",langId:S,getTitle:E,langData:C}=t,{message:_}=fe.App.useApp(),O=G.useCallback(N=>Array.isArray(N)?N:(N==null?void 0:N.fileList)??[],[]),A=N=>{o(N)},D=G.useCallback(N=>{var ee,ne;const j=(ee=N.json)==null?void 0:ee.input,Y=(ne=N.json)==null?void 0:ne.format,K={};switch(j){case"image":case"file":case"video":case"audio":K.getValueFromEvent=O;break;case"date-picker":K.getValueFromEvent=$=>$==null?void 0:$.format(Y||"YYYY-MM-DD"),K.getValueProps=$=>({value:$?Lt($):null});break;case"time-picker":K.getValueFromEvent=$=>$==null?void 0:$.format(Y||"YYYY-MM-DD HH:mm:ss"),K.getValueProps=$=>({value:$?Lt($):null});break;case"week-picker":K.getValueFromEvent=$=>`${$==null?void 0:$.year()}-${Lt($).isoWeek()}周`,K.getValueProps=$=>{if(!$)return{value:null};const[Z,X]=$.split("-"),W=Number(Z),te=Number(X.replace("周",""));return{value:Lt().year(W).isoWeek(te)}};break;case"month-picker":K.getValueFromEvent=$=>$==null?void 0:$.format(Y||"YYYY-MM"),K.getValueProps=$=>({value:$?Lt($):null});break;case"quarter-picker":K.getValueFromEvent=$=>$==null?void 0:$.format(Y||"YYYY年第Q季度"),K.getValueProps=$=>({value:$?Lt($,Y||"YYYY年第Q季度"):null});break;case"year-picker":K.getValueFromEvent=$=>$==null?void 0:$.format(Y||"YYYY"),K.getValueProps=$=>({value:$?Lt($):null});break;case"second-picker":K.getValueFromEvent=$=>$==null?void 0:$.format(Y||"HH:mm:ss"),K.getValueProps=$=>({value:$?Lt($,Y||"HH:mm:ss"):null});break;case"range-picker":K.getValueFromEvent=$=>$==null?void 0:$.map(Z=>Z==null?void 0:Z.format(Y||"YYYY-MM-DD")),K.getValueProps=$=>{if(!($!=null&&$.length))return{value:null};if(typeof $=="string"){const Z=$.split("~");return Z.length>1?{value:(Z==null?void 0:Z.map(X=>Lt(X)))||null}:{value:[Lt($),Lt($)]}}return Array.isArray($)?{value:($==null?void 0:$.map(Z=>Lt(Z)))||null}:null};break;case"multiple-date-picker":K.getValueFromEvent=$=>$==null?void 0:$.map(Z=>Z==null?void 0:Z.format(Y||"YYYY-MM-DD")),K.getValueProps=$=>{if(typeof $=="string"){const Z=$.split(",");return{value:(Z==null?void 0:Z.map(X=>Lt(X)))||null}}return Array.isArray($)?{value:($==null?void 0:$.map(Z=>Lt(Z)))||null}:null};break}return K},[O]),M=G.useCallback(({isActive:N})=>N?q(Z3,{style:{fontSize:18,color:"#999"}}):q(n5,{style:{fontSize:18,color:"#999"}}),[]),B=(N,j)=>{var Y,K,ee,ne,$;return Ne(fe.Flex,{gap:10,vertical:j==="flex",align:"center",children:[q("span",{children:N.attrname}),((Y=N==null?void 0:N.json)==null?void 0:Y.instruction)&&j==="icon"&&q(fe.Tooltip,{title:(K=N==null?void 0:N.json)==null?void 0:K.instruction,children:q(W3,{style:{color:((ee=N==null?void 0:N.json)==null?void 0:ee["instruction-color"])??"#888888",fontSize:16,cursor:"pointer"}})})||q("span",{style:{color:((ne=N==null?void 0:N.json)==null?void 0:ne["instruction-color"])??"red"},children:($=N==null?void 0:N.json)==null?void 0:$.instruction})]})},F=G.useCallback(({itemWithJson:N,colNum:j=1,readonly:Y=!1,instructionShowMode:K="icon",radioAlign:ee="horizontal",formItemStyle:ne,relatedid:$,form:Z,defaultWidth:X=358,parentFormListField:W,isShowLabel:te=!0})=>{var Se;const ae=ad(N),re=(Se=N.json)==null?void 0:Se.hidden;let ce=N.children||[];Array.isArray(ce==null?void 0:ce[0])&&ce.length&&(ce=ce[0]);const ve=se=>{const Ae=(W==null?void 0:W.parentName)||(W==null?void 0:W.name);return Ae?Array.isArray(Ae)?[...Ae,N.attrid,se.name]:[Ae,N.attrid,se.name]:[N.attrid,se.name]};return q(fe.Col,{span:re?0:24/j,children:q(fe.Collapse,{bordered:!1,style:{backgroundColor:"transparent"},expandIcon:({isActive:se})=>M({isActive:se}),items:[{key:N.attrid,label:N.attrname,styles:{header:{paddingLeft:0}},children:q(fe.Form.List,{name:W?Array.isArray(W.name)?[...W.name,N.attrid]:[W.name,N.attrid]:N.attrid,initialValue:ae,children:(se,{add:Ae,remove:Te})=>Ne("div",{style:{display:"flex",rowGap:16,flexDirection:"column"},children:[se.map(Pe=>{const ge={...Pe,parentName:ve(Pe)};return q(fe.Card,{style:{width:X+100},size:"small",title:`${N.attrname} ${Pe.name+1}`,extra:!y&&q($3,{onClick:()=>{se.length>1?Te(Pe.name):_.warning(S&&Pn(C,"006")||"至少保留一个表单")}}),children:(ce||[]).map((Ve,Fe)=>q(G.Fragment,{children:H({item:Ve,readonly:Y,colNum:j,instructionShowMode:K,relatedid:$,form:Z,defaultWidth:X,formItemStyle:ne,radioAlign:ee,isFormListItem:!0,formListField:ge,isShowLabel:!0})},Ve.attrid||`child-${Fe}`))},Pe.key)}),!y&&q(fe.Flex,{style:{width:200},children:Ne(fe.Button,{type:"dashed",onClick:()=>Ae(),block:!0,children:["+ ",Pn(C,"004")||"新增"]})})]})})}]},N.attrid)})},[M,ad]),I=G.useCallback(({itemWithJson:N,colNum:j=1,readonly:Y=!1,instructionShowMode:K="icon",radioAlign:ee="horizontal",formItemStyle:ne,relatedid:$,form:Z,defaultWidth:X=358,isFormListItem:W=!1,formListField:te,isShowLabel:ae=!0})=>{var ce,ve,Se,se,Ae,Te,Pe,ge,Ve,Fe,gt,dt,en,zn,qn,ir,hn,vn,It,Xn,or,In,sn,Yn;const re=(ce=N.json)==null?void 0:ce.hidden;if(((ve=N.json)==null?void 0:ve.hide)===!0)return q(Jt,{});if(N.attrtype===1&&!re)return F({itemWithJson:N,colNum:j,readonly:Y,instructionShowMode:K,radioAlign:ee,formItemStyle:ne,relatedid:$,form:Z,defaultWidth:X,parentFormListField:te,isShowLabel:ae});if(N.attrtype===2)return q(Jt,{children:"实例信息"});if(N.attrtype===0){const jr=ad(N),br=(Se=N.json)==null?void 0:Se["default-prompt"],qe=Tv(N,S,C),{combinations:tt=[]}=N.json||{};if(tt!=null&&tt.length)return q(fe.Col,{span:re?0:24/j,children:q(fe.Form.Item,{label:(se=N==null?void 0:N.json)==null?void 0:se["combination-name"],required:((Ae=N.json)==null?void 0:Ae.must)&&!re,extra:(Pe=(Te=N.json)==null?void 0:Te.extraDescObj)!=null&&Pe.info?q("span",{style:{marginTop:(Ve=(ge=N.json)==null?void 0:ge.extraDescObj)!=null&&Ve.info?10:0,display:"inline-block",color:(gt=(Fe=N.json)==null?void 0:Fe.extraDescObj)==null?void 0:gt.color},children:(en=(dt=N.json)==null?void 0:dt.extraDescObj)==null?void 0:en.info}):null,children:q(fe.Space.Compact,{children:tt.map((et,ln)=>{var nn,ao,Hi,Ro,Fa;let Zn=ad(et),An=X;const hr={},pn=et.json.input||"text",ar=ne==null?void 0:ne.find(Pa=>Pa.type===pn);if(ar){const{width:Pa}=(ar==null?void 0:ar.style)||{};Pa&&(hr.width=Pa)}const tn=(nn=et==null?void 0:et.json)==null?void 0:nn["combination-width-ratio"];return tn&&(An=X*tn),q(fe.Form.Item,{hidden:(ao=et.json)==null?void 0:ao.hidden,name:te?Array.isArray(te.name)?[...te.name,et.attrid]:[te.name,et.attrid]:et.attrid,noStyle:!0,initialValue:Zn,rules:[...(Hi=et.json)!=null&&Hi.must&&!re?[{required:!0,message:br||`${qe}${et.attrname}`}]:[],...(Ro=N.json)!=null&&Ro.regexp?[{pattern:new RegExp(N.json.regexp.replace(/^\/|\/$/g,"")),message:((Fa=N.json)==null?void 0:Fa["regexp-message"])||`${N.attrname}${S==="10001"?"格式不正确":"Format is incorrect"}`}]:[]],...D(et),children:L({item:et,readonly:Y,formItemStyle:ne,radioAlign:ee,relatedid:$,form:Z,defaultWidth:An,customWidth:hr})},ln)})})},`${N.attrid}+1`)});const _t=W&&te?Array.isArray(te.name)?[...te.name,N.attrid]:[te.name,N.attrid]:N.attrid;return q(fe.Col,{span:re?0:24/j,children:q(fe.Form.Item,{name:_t,label:ae&&B(N,K)||null,initialValue:jr,hidden:re,extra:(qn=(zn=N.json)==null?void 0:zn.extraDescObj)!=null&&qn.info?q("span",{style:{marginTop:(hn=(ir=N.json)==null?void 0:ir.extraDescObj)!=null&&hn.info?10:0,display:"inline-block",color:(It=(vn=N.json)==null?void 0:vn.extraDescObj)==null?void 0:It.color},children:(or=(Xn=N.json)==null?void 0:Xn.extraDescObj)==null?void 0:or.info}):null,rules:[...(In=N.json)!=null&&In.must&&!re?[{required:!0,message:`${qe}${N.attrname}`}]:[],...(sn=N.json)!=null&&sn.regexp?[{pattern:new RegExp(N.json.regexp.replace(/^\/|\/$/g,"")),message:((Yn=N.json)==null?void 0:Yn["regexp-message"])||`${N.attrname}${S==="10001"?"格式不正确":"Format is incorrect"}`}]:[]],...D(N),children:L({item:N,readonly:Y,formItemStyle:ne,radioAlign:ee,relatedid:$,form:Z,defaultWidth:X})},N.attrid)})}return null},[B,ad,D,F]),U=async N=>{var j;try{const Y=(j=N==null?void 0:N.response)==null?void 0:j.data;if(Y){if(!e)return;const K=await e({Controlname:"DelFile",PageName:"initializationfile"},Y);if((K==null?void 0:K.ReturnValue)!==1)return _.error(K==null?void 0:K.msg),!1}else A(N);return!0}catch{return!1}},L=({item:N,readonly:j=!1,formItemStyle:Y=[],radioAlign:K="horizontal",relatedid:ee,form:ne,defaultWidth:$=358,customWidth:Z={}})=>{var Pe,ge,Ve,Fe,gt,dt,en,zn,qn,ir,hn,vn,It,Xn,or,In,sn,Yn,jr,br,qe,tt,_t;const X=N.json.input||"text",W=((Pe=N.json)==null?void 0:Pe.format)||"",te=N.attrid,ae=ad(N),re=((ge=N.json)==null?void 0:ge["default-prompt"])||"",ce=((Ve=N.json)==null?void 0:Ve["disable-date-goover"])||!1,ve=Tv(N,S,C),Se=N.json.length&&{maxLength:N.json.length}||{},se=Y.find(et=>et.type===X);let Ae=(Fe=N.json)==null?void 0:Fe["input-width"];Ae&&(Ae=g==="table"?Number(Ae)-32:Ae);const Te=Ae||$;switch(X){case"label":return q(fe.Input,{disabled:!0,value:((gt=N.json)==null?void 0:gt["label-value"])||N.attrvalue||((dt=N.json)==null?void 0:dt.default)||"-",style:{width:Te,...se==null?void 0:se.style,...Z}});case"text":return q(fe.Input,{placeholder:re||ve,...Se,disabled:j||((en=N.json)==null?void 0:en.readonly),allowClear:!0,style:{width:Te,...se==null?void 0:se.style,...Z}});case"password":return q(fe.Input.Password,{placeholder:re||ve,...Se,disabled:j||((zn=N.json)==null?void 0:zn.readonly),allowClear:!0,style:{width:Te,...se==null?void 0:se.style,...Z}});case"textarea":return q(fe.Input.TextArea,{allowClear:!0,placeholder:re||ve,rows:5,...Se,disabled:j||((qn=N.json)==null?void 0:qn.readonly),style:{width:Te,...se==null?void 0:se.style,...Z}});case"number":return q(fe.InputNumber,{controls:!1,placeholder:re||ve,...Se,disabled:j||((ir=N.json)==null?void 0:ir.readonly),style:{width:Te,...se==null?void 0:se.style,...Z}});case"select":case"mult-select":return q(wX,{item:N.json,attrid:te,readonly:j||((hn=N.json)==null?void 0:hn.readonly),style:{width:Te,...se==null?void 0:se.style,...Z},commonRequestWidthParams:e,commonRequest:r,value:ae,interfaceTypeDict:s,interfaceTypeSysDict:u,actionUrlKey:c,actionUrlExtraParams:p,getTitle:E,langId:S,onChange:et=>{if(et&&typeof et=="object"&&!Array.isArray(et)){ne.setFieldsValue({...ne.getFieldsValue(),...et});return}ne.setFieldValue(N.attrid,et)}});case"modal-mult-select":case"modal-select":return q(gX,{style:{width:Te,...se==null?void 0:se.style,...Z},item:N.json,value:N.attrvalue||N.json.default||"",commonRequestWidthParams:e,commonRequest:r,onSure:async et=>{ne.setFieldValue(N.attrid,et)},disabled:j||((vn=N.json)==null?void 0:vn.readonly),langId:S,CustomModalComponent:v});case"mul-field-modal-select":return q(mX,{style:{width:Te,...se==null?void 0:se.style,...Z},item:N.json,form:ne,attrid:te,getTitle:E,value:N.attrvalue||N.json.default||"",commonRequestWidthParams:e,commonRequest:r,onSure:async et=>{ne.setFieldsValue(et)},disabled:j||((It=N.json)==null?void 0:It.readonly),CustomModalComponent:v,langId:S});case"date-picker":case"time-picker":case"week-picker":case"month-picker":case"quarter-picker":case"year-picker":case"second-picker":{const et={"date-picker":"date","time-picker":"date","week-picker":"week","month-picker":"month","quarter-picker":"quarter","year-picker":"year","second-picker":"time"};let ln;return X==="date-picker"&&(ln=ce?zR:void 0),q(fe.DatePicker,{showTime:X==="time-picker",format:W||void 0,picker:et[X]||"date",disabled:j||((Xn=N.json)==null?void 0:Xn.readonly),disabledDate:ln,placement:"bottomLeft",style:{width:Te,...se==null?void 0:se.style,...Z}})}case"range-picker":return q(fe.DatePicker.RangePicker,{disabledDate:ce?zR:void 0,disabled:j||((or=N.json)==null?void 0:or.readonly),style:{width:Te,...se==null?void 0:se.style,...Z}});case"multiple-date-picker":return q(fe.DatePicker,{multiple:!0,maxTagCount:((In=N==null?void 0:N.json)==null?void 0:In["max-tag-count"])||1,disabled:j||((sn=N.json)==null?void 0:sn.readonly)||!1,style:{width:Te,...se==null?void 0:se.style,...Z}});case"radio":return q(AX,{radioAlign:K,commonRequest:r,commonRequestWidthParams:e,item:N.json,readonly:j||((Yn=N.json)==null?void 0:Yn.readonly),params:Se,handleUrlOptions:od,value:ae,interfaceTypeDict:s,interfaceTypeSysDict:u,actionUrlKey:c,actionUrlExtraParams:p,getTitle:E,attrid:te,langId:S,langData:C,onChange:et=>{ne.setFieldValue(N.attrid,et.target.value)}});case"checkbox":return q(xX,{radioAlign:K,commonRequest:r,commonRequestWidthParams:e,item:N.json,readonly:j||((jr=N.json)==null?void 0:jr.readonly),options:Se,value:ae,handleUrlOptions:od,interfaceTypeDict:s,interfaceTypeSysDict:u,actionUrlKey:c,actionUrlExtraParams:p,onChange:et=>{ne.setFieldValue(N.attrid,et.join(","))}});case"audio":case"file":case"image":case"video":return q(kX,{action:n&&n("initializationfile"),item:N.json,uploadType:X,langId:S,list:ae,readonly:j||((br=N.json)==null?void 0:br.readonly),relatedid:ee,relatedidKey:d,onRemove:et=>U(et)});case"cascader":return q(bX,{commonRequestWidthParams:e,commonRequest:r,item:N.json,value:N.attrvalue,style:{width:Te,...se==null?void 0:se.style,...Z},interfaceTypeDict:s,interfaceTypeSysDict:u,actionUrlKey:c,actionUrlExtraParams:p,langId:S,langData:C});case"radio-card":return q(SX,{item:N.json,readonly:j||((qe=N.json)==null?void 0:qe.readonly),onChange:et=>{ne.setFieldValue(N.attrid,et)},langId:S,commonRequestWidthParams:e});case"rich-text":return q(kae,{item:N.json,readonly:j||((tt=N.json)==null?void 0:tt.readonly),style:{width:Te,...se==null?void 0:se.style,...Z},value:N.attrvalue,langId:S,langData:C,onChange:et=>{ne.setFieldValue(N.attrid,et)}});default:return q(fe.Input,{placeholder:re||ve,...Se,showCount:!0,disabled:j||((_t=N.json)==null?void 0:_t.readonly),style:{width:Te,...se==null?void 0:se.style,...Z}})}},H=({item:N,readonly:j=!1,colNum:Y=1,instructionShowMode:K="icon",relatedid:ee,form:ne,defaultWidth:$=358,formItemStyle:Z,radioAlign:X="horizontal",isFormListItem:W=!1,formListField:te,isShowLabel:ae=!0})=>{var ve;const re=N.json||(N.info_base64===1?dc(id(N.info)):dc(N.info)),ce={...N,json:{...re,...N.json||{}}};return((ve=ce.json)==null?void 0:ve.hide)===!0?null:q(G.Fragment,{children:I({itemWithJson:ce,readonly:j,colNum:Y,instructionShowMode:K,relatedid:ee,form:ne,defaultWidth:$,formItemStyle:Z,radioAlign:X,isFormListItem:W,formListField:te,isShowLabel:ae})},ce.attrid)};return{handleRenderItem:H,handleSetFormItemInitialValue:ad}}const Tae=G.forwardRef((t,e)=>{const{formConfig:n,form:r,readonly:i=!1,relatedid:o,colNum:s=1,colSpace:u=[0,0],instructionShowMode:d="flex",defaultWidth:c=358,commonRequestWidthParams:p,uploadAction:v,commonRequest:y,formItemStyle:g=[],radioAlign:S="horizontal",interfaceTypeChildren:E="YLLRDetailAttrlist",interfaceTypeDict:C="YLZDDictList",interfaceTypeSysDict:_="YLZDSysConfigList",relatedidKey:O="relatedid",actionUrlKey:A="action-url",actionUrlExtraParams:D={},CustomModalComponent:M,formShowType:B="form",formListItemWidth:F,formListItemName:I,isEdit:U=!1,langId:L,getTitle:H}=t,N=G.useRef([]),j=$=>{N.current.push($)},[Y,K]=G.useState([]),{handleRenderItem:ee}=_ae({commonRequestWidthParams:p,uploadAction:v,commonRequest:y,updateDelFileList:j,formConfig:n,interfaceTypeChildren:E,interfaceTypeDict:C,interfaceTypeSysDict:_,relatedidKey:O,actionUrlKey:A,actionUrlExtraParams:D,CustomModalComponent:M,isEdit:U,formShowType:B,langId:L,getTitle:H,langData:Y});G.useEffect(()=>{L&&ne()},[L]);const ne=async()=>{const $=await VR({commonRequestWidthParams:p,langId:L,params:{sysid:"3",dicid:L}});K($)};return G.useImperativeHandle(e,()=>({getDelFileList:()=>N.current})),q(Jt,{children:B==="table"?q(fe.Form.List,{name:I||"customFormList",initialValue:[{}],children:($,{add:Z,remove:X})=>Ne(fe.Flex,{className:"custom-form-body",children:[Ne("div",{className:"custom-form-list",children:[q(fe.Flex,{align:"center",style:{position:"relative",backgroundColor:"#004d32"},children:q(fe.Flex,{className:"custom-form-list-header",align:"center",children:n==null?void 0:n.map((W,te)=>{var re,ce;const ae=((re=W==null?void 0:W.json)==null?void 0:re["input-width"])&&Number((ce=W==null?void 0:W.json)==null?void 0:ce["input-width"])||c;return Ne(fe.Flex,{style:{width:ae,flexShrink:0},align:"center",children:[te!==0&&q("div",{className:"line"}),q("div",{className:"custom-form-list-header-item",children:W.attrname})]},te)})})}),$.map(W=>q(fe.Flex,{align:"center",className:"custom-form-list-item-container",children:q(fe.Flex,{className:"custom-form-list-item",align:"center",children:n==null?void 0:n.map((te,ae)=>{var ce,ve;const re=((ce=te==null?void 0:te.json)==null?void 0:ce["input-width"])&&Number((ve=te==null?void 0:te.json)==null?void 0:ve["input-width"])||c;return q(fe.Flex,{align:"center",className:"custom-form-list-item-content",justify:"center",style:{width:re,flexShrink:0},children:ee({item:te,readonly:i,colNum:s,instructionShowMode:d,relatedid:o,form:r,defaultWidth:c-30,formItemStyle:g,isFormListItem:!0,formListField:W,isShowLabel:!1})},te.attrid||`child-${ae}`)})})},W.key))]}),Ne(fe.Flex,{className:"operation",vertical:!0,children:[q("a",{className:"custom-form-list-add-btn",onClick:()=>Z(),children:L&&Pn(Y,"004")||"新增"}),($==null?void 0:$.length)>0&&($==null?void 0:$.map((W,te)=>q("a",{className:"custom-form-list-del-btn",onClick:()=>{if(te===0)return fe.message.error(L&&Pn(Y,"006")||"至少保留一个表单");X(W.key)},children:L&&Pn(Y,"005")||"删除"},W.key)))]})]})}):q(fe.Row,{gutter:u,children:n.map(($,Z)=>q(G.Fragment,{children:ee({item:$,readonly:i,colNum:s,instructionShowMode:d,relatedid:o,form:r,defaultWidth:c,formItemStyle:g,radioAlign:S})},$.attrid||`form-item-${Z}`))})})}),H7=(t,e)=>{const{input:n=""}=(t==null?void 0:t.json)||{};let r="请输入",i="Please input";return["radio","checkbox","select","mult-select","modal-select","modal-mult-select","mul-field-modal-select","cascader","radio-card","date-picker","range-picker","multiple-date-picker","time-picker","week-picker","month-picker","quarter-picker","year-picker","second-picker"].includes(n)&&(r="请选择",i="Please select"),["image","file","video","audio"].includes(n)&&(r="请上传",i="Please upload"),e==="10001"?r:i},Td=t=>{var r,i,o,s,u,d,c,p;const e=(r=t.json)==null?void 0:r.input;let n=t.attrvalue||((i=t.json)==null?void 0:i.default)||"";if(e==="label"&&n&&(n=((o=t.json)==null?void 0:o["label-value"])??n??"-"),e==="range-picker"&&n)try{n=n.map(v=>new Date(v))}catch{n=void 0}if(e==="multiple-date-picker"&&n)try{n=n==null?void 0:n.split(","),n=n.map(v=>new Date(v))}catch{n=void 0}if(e==="cascader"&&n&&typeof n=="string"){const v=(s=t.json)==null?void 0:s["cascader-delimiter"];v&&(n=n.split(v).filter(Boolean))}if(["mult-select","checkbox"].includes(e)&&n&&typeof n=="string"&&(n=n.split(",").filter(Boolean)),["image","video","audio","file"].includes(e)&&n)try{n=(Array.isArray(n)?n:JSON.parse(n)).map(y=>({...y,url:y.FilePath,name:y.FileName,uid:y.FileId}))}catch{n=[]}return e==="time-picker"&&!n&&((u=t.json)!=null&&u["auto-generate"])&&((d=t.json)==null?void 0:d["auto-generate-type"])==="currenttime"&&(n=Lt().format("YYYY-MM-DD HH:mm:ss:ss")),e==="time-picker"&&!n&&((c=t.json)!=null&&c["auto-generate"])&&((p=t.json)==null?void 0:p["auto-generate-type"])==="currenttimestamp"&&(n=Lt().unix().toString()),e==="rich-text"&&n&&(n=id(n)),t.attrtype===1&&(n=Aae(t.children||[])),n||void 0},Aae=t=>{if(!(t!=null&&t.length))return[];const e=n=>n==null?void 0:n.map(r=>{const i={};return Array.isArray(r)&&r.forEach(o=>{var s;(s=o==null?void 0:o.children)!=null&&s.length?i[o.attrid]=e(o.children):i[o.attrid]=o.attrvalue}),i});return e(t)};function Oae(t){const{item:e,disabled:n,style:r,commonRequestWidthParams:i,commonRequest:o,CustomModalComponent:s,attrid:u,form:d,langId:c,getTitle:p}=t,v=fe.Form.useWatch(u,d),{message:y}=fe.App.useApp(),g=e.input,{handleUniversalHeaderToColumns:S}=n4(),[E,C]=G.useState(t.value),[_,O]=G.useState(!1),[A,D]=G.useState([]),[M,B]=G.useState([]),[F,I]=G.useState(!1),[U,L]=G.useState({PageNum:1,PageSize:6}),[H,N]=G.useState([]),[j,Y]=G.useState(0),[K,ee]=G.useState(te());G.useEffect(()=>{_&&$()},[_,U]);const ne=(re,ce)=>{D(re),B(ce)},$=async()=>{var re,ce,ve,Se,se;if(e.inputType==="url"&&(e!=null&&e["action-url"])){I(!0);try{const Ae=await i({PageName:"dns_relay",Controlname:"CallActionUrl",InterfaceType:""},{"action-url":e==null?void 0:e["action-url"],...U,...(e==null?void 0:e["action-url-extra-params"])||{}});if((Ae==null?void 0:Ae.ReturnValue)===0){y.error(Ae.msg),I(!1);return}const Te=Ae==null?void 0:Ae.data,Pe=(re=Te==null?void 0:Te.list)==null?void 0:re.map((Ve,Fe)=>{const gt=(U.PageNum-1)*U.PageSize+Fe;return{...Ve,_rowKey:gt}}),ge=(Pe==null?void 0:Pe.filter(Ve=>A.includes(Ve._rowKey)))||[];B(ge),N([...Pe||[]]),Y((Te==null?void 0:Te.number)||0),I(!1)}catch(Ae){I(!1),y.error(c==="10001"?Ae.msg||"参数错误":"Failed to load data")}return}if(e.inputType==="instance-url"&&(e!=null&&e["instance-source-number"])){const Ae={PageName:"PCInstanceData",Controlname:"List",InterfaceType:"YLFWLRDataList"},Te={"source-number":e==null?void 0:e["instance-source-number"],...U};try{const Pe=await i(Ae,Te);if((Pe==null?void 0:Pe.ReturnValue)===1){const Ve=(ve=((ce=Pe==null?void 0:Pe.data)==null?void 0:ce.list)||[])==null?void 0:ve.map((Fe,gt)=>{const dt=(U.PageNum-1)*U.PageSize+gt;return{...Fe,_rowKey:dt}});Y(((Se=Pe==null?void 0:Pe.data)==null?void 0:Se.number)||0),N([...Ve])}const ge=await o("YLKHDSelPCParam",{"source-number":e==null?void 0:e["instance-source-number"]});if((ge==null?void 0:ge.ReturnValue)===1){const Ve=(se=ge==null?void 0:ge.data)==null?void 0:se[e==null?void 0:e["instance-source-number"]],Fe=(Ve==null?void 0:Ve["universal-header"])||[],gt=(Ve==null?void 0:Ve["attribute-set-id"])||"",dt=S({universalHeader:Fe,attributeSetId:gt,getTitle:p,otherLangPageId:"5000000"})||[];ee([...dt])}}catch{}return}y.error(c==="10001"?"参数配置错误":"Parameter configuration error"),y.error(c==="10001"?"请配置action-url":"Please configure action-url")},Z=()=>{var re;if(!n){if(E){const ce=e==null?void 0:e["key-field"],ve=ce==null?void 0:ce[u],{delimiter:Se="-",list:se=[]}=ve||{};if(!ce){y.error(c==="10001"?"请配置key-field":"Please configure key-field");return}switch(g){case"mul-field-modal-select":const Ae=(re=E==null?void 0:E.split(Se))==null?void 0:re[0],Te=H==null?void 0:H.findIndex(Ve=>Object.values(Ve).includes(Ae));D([Te]);break;case"modal-mult-select":const Pe=E==null?void 0:E.split(","),ge=Pe==null?void 0:Pe.map(Ve=>{var gt;const Fe=(gt=Ve.split(Se))==null?void 0:gt[0];return H==null?void 0:H.findIndex(dt=>Fe.includes((dt==null?void 0:dt.typeid)||(dt==null?void 0:dt.instanceid)))});D(ge);break}}O(!0)}},X=async()=>{try{const re=await Dae(M,e);C((re==null?void 0:re[u])||""),t.onSure(re),O(!1)}catch(re){y.error(c==="10001"?re.msg||"参数错误":"Failed to load data")}},W=()=>{L({...U,PageNum:1}),O(!1)};function te(){const re=e["modal-field-list"];let ce=[];for(let ve in re){let Se=re[ve];const se={dataIndex:ve,title:Se};ce=[...ce,se]}return ce}const ae=re=>{L({...U,PageNum:re})};return Ne(Jt,{children:[q(fe.Select,{placeholder:c==="10001"?(e==null?void 0:e["default-prompt"])||"请选择":"Please select",onClick:Z,open:!1,value:v,disabled:n,style:r}),s&&q(s,{title:e["modal-caption"]||"",open:_,onOk:X,onCancel:W,modalStyle:{width:e["modal-width"]??600,minHeight:e["modal-height"]??400},children:q(fe.Table,{columns:K,loading:F,dataSource:H,rowKey:re=>re._rowKey,scroll:{y:"calc(80vh - 300px)"},rowSelection:{type:g==="mul-field-modal-select"?"radio":"checkbox",selectedRowKeys:A,onChange:ne},pagination:{total:j,current:U.PageNum,pageSize:U.PageSize,onChange:ae}})})||q(fe.Modal,{title:e["modal-caption"],open:_,onOk:X,onCancel:W,width:e["modal-width"]??600,okButtonProps:{disabled:A.length===0},children:q(fe.Table,{columns:K,loading:F,dataSource:H,rowKey:re=>re._rowKey,rowSelection:{type:g==="mul-field-modal-select"?"radio":"checkbox",selectedRowKeys:A,onChange:ne},pagination:{total:j,current:U.PageNum,pageSize:U.PageSize,onChange:ae}})})]})}function Dae(t,e){return new Promise((n,r)=>{try{var i=e["key-field"];if(!i){r({msg:"请配置key-field"});return}let o={};t.forEach(s=>{for(let[u,d]of Object.entries(i)){const c=(d==null?void 0:d.list)??[],p=(d==null?void 0:d.delimiter)??"-",v=c.map(y=>s==null?void 0:s[y]);o[u]=v.join(p)}}),n(o)}catch{r({msg:"key-field参数配置错误"})}})}const h1e="";function hg(t,e){if(!t)return e;let n;return typeof t=="function"?n=t():"current"in t?n=t.current:n=t,n}function Oa(){}const pg=Object.assign,Ad=typeof window<"u";function _i(t){return t!=null}function Od(t){return typeof t=="function"}function Mae(t){return Fp(t)&&Od(t.then)&&Od(t.catch)}function Fp(t){return t!==null&&typeof t=="object"}function U7(t,e,n){return e.reduce((r,i)=>((!n||t[i]!==void 0)&&(r[i]=t[i]),r),{})}function sT(t,e){return e?typeof e=="string"?` ${t}--${e}`:Array.isArray(e)?e.reduce((n,r)=>n+sT(t,r),""):Object.keys(e).reduce((n,r)=>n+(e[r]?sT(t,r):""),""):""}function Rae(t){return(e,n)=>(e&&typeof e!="string"&&(n=e,e=""),e=e?`${t}__${e}`:t,`${e}${sT(e,n)}`)}function _n(t,e){return t=`${e||"rv"}-${t}`,[Rae(t),t]}function Nae(t){t.stopPropagation()}function lT(t,e){(typeof t.cancelable!="boolean"||t.cancelable)&&t.preventDefault(),e&&Nae(t)}const Fae={click:"onClick"};function V7(t,e){const n=Object.assign({},e.props);for(const r of t){const i=Fae[r];n[i]=function(o){var s,u;o.stopPropagation(),(u=(s=e.props)[i])===null||u===void 0||u.call(s,o)}}return G.cloneElement(e,n)}const Pp=Ad?window:global;let $7=Date.now();function Pae(t){const e=Date.now(),n=Math.max(0,16-(e-$7)),r=setTimeout(t,n);return $7=e+n,r}function uT(t){return(Pp.requestAnimationFrame||Pae).call(Pp,t)}function Lae(){return Ad?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1}function Bae(t){const e="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(e,0)}function zae(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function Iae(t){q7(window,t)}function q7(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e)}const jae=Lae();function Y7(){jae&&Iae(zae())}function K7(t){return/^\d+(\.\d+)?$/.test(t)}function W7(t){return Number.isNaN?Number.isNaN(t):t!==t}function yl(t){if(_i(t))return t=String(t),K7(t)?`${t}px`:t}function Hae(t){if(_i(t)){const e=yl(t);return{width:e,height:e}}return{}}let cT;function Uae(){if(!cT){const t=document.documentElement,e=t.style.fontSize||window.getComputedStyle(t).fontSize;cT=parseFloat(e)}return cT}function Vae(t){return t=t.replace(/rem/g,""),+t*Uae()}function $ae(t){return t=t.replace(/vw/g,""),+t*window.innerWidth/100}function qae(t){return t=t.replace(/vh/g,""),+t*window.innerHeight/100}function G7(t){if(typeof t=="number")return t;if(Ad){if(t.indexOf("rem")!==-1)return Vae(t);if(t.indexOf("vw")!==-1)return $ae(t);if(t.indexOf("vh")!==-1)return qae(t)}return parseFloat(t)}function mg(t,e,n){return Math.min(Math.max(t,e),n)}function Q7(t,e,n){const r=t.indexOf(e);return r===-1?t:e==="-"&&r!==0?t.slice(0,r):t.slice(0,r+1)+t.slice(r).replace(n,"")}function Yae(t,e=!0,n=!0){e?t=Q7(t,".",/\./g):t=t.split(".")[0],n?t=Q7(t,"-",/-/g):t=t.replace(/-/,"");const r=e?/[^-0-9.]/g:/[^-0-9]/g;return t.replace(r,"")}function xl(t,e=2){let n=`${t}`;for(;n.length<e;)n=`0${n}`;return n}let X7=!1;if(Ad)try{const t={};Object.defineProperty(t,"passive",{get(){X7=!0}}),window.addEventListener("test-passive",null,t)}catch{}function fT(t,e,n={}){if(!Ad)return;const{target:r=window,passive:i=!1,capture:o=!1,depends:s=[]}=n;let u;const d=()=>{const p=hg(r);p&&!u&&(p.addEventListener(t,e,X7?{capture:o,passive:i}:o),u=!0)},c=()=>{const p=hg(r);p&&u&&(p.removeEventListener(t,e,o),u=!1)};G.useEffect(()=>(d(),()=>c()),[r,...s])}function dT(t){const[e,n]=G.useState(t),r=G.useRef(e),i=G.useCallback(o=>{n(s=>r.current=Od(o)?o(s):o)},[e]);return[e,i,r]}const Kae=()=>{const t=G.useRef(!1);return G.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]),t},Z7=(t={})=>{const e=Kae(),[n,r,i]=dT(t),o=G.useCallback(s=>{e.current||r(u=>Object.assign(Object.assign({},u),Od(s)?s(u):s))},[]);return[n,o,i]},Dd=(t,e)=>{const n=G.useRef(!1);G.useEffect(()=>{if(!n.current)n.current=!0;else return t()},e)};function J7(t){const e=G.useRef(t);return e.current=t,e}const Wae=process.env.NODE_ENV==="development";function g1e(t,e){}const e9=t=>{process.env.NODE_ENV==="development"&&(Od(t)||void 0);const e=J7(t);G.useEffect(()=>()=>{e.current()},[])};function t9(t,e){if(t===e)return!0;for(let n=0;n<t.length;n++)if(!Object.is(t[n],e[n]))return!1;return!0}const Gae=(t=>(n,r,i)=>{const o=G.useRef(!1),s=G.useRef([]),u=G.useRef([]),d=G.useRef();t(()=>{var c;const v=(Array.isArray(i)?i:[i]).map(y=>hg(y));if(!o.current){o.current=!0,s.current=v,u.current=r,d.current=n();return}(v.length!==s.current.length||!t9(v,s.current)||!t9(r,u.current))&&((c=d.current)===null||c===void 0||c.call(d),s.current=v,u.current=r,d.current=n())}),e9(()=>{var c;(c=d.current)===null||c===void 0||c.call(d),o.current=!1})})(G.useEffect);function Qae(t,e){const[n,r]=G.useState(),[i,o]=G.useState();return Gae(()=>{const s=hg(t);if(!s)return;const u=new IntersectionObserver(d=>{for(const c of d)o(c.intersectionRatio),r(c.isIntersecting)},Object.assign(Object.assign({},e),{root:hg(e==null?void 0:e.root)}));return u.observe(s),()=>{u.disconnect()}},[],t),[n,i]}const n9=10;function Xae(t,e){return t>e&&t>n9?"horizontal":e>t&&e>n9?"vertical":""}function r9(){const t=G.useRef(0),e=G.useRef(0),n=G.useRef(0),r=G.useRef(0),i=G.useRef(0),o=G.useRef(0),s=G.useRef(""),u=G.useRef(null),d=()=>s.current==="vertical",c=()=>s.current==="horizontal",p=()=>{n.current=0,r.current=0,i.current=0,o.current=0,s.current="",u.current=null};return{move:g=>{const S=g.touches[0];n.current=S.clientX<0?0:S.clientX-t.current,r.current=S.clientY-e.current,i.current=Math.abs(n.current),o.current=Math.abs(r.current),u.current===null?u.current=!0:u.current=!1,s.current||(s.current=Xae(i.current,o.current))},start:g=>{p(),t.current=g.touches[0].clientX,e.current=g.touches[0].clientY},reset:p,startX:t,startY:e,deltaX:n,deltaY:r,offsetX:i,offsetY:o,direction:s,isVertical:d,isHorizontal:c,firstMove:u}}const i9=/scroll|auto/i,Zae=Ad?window:void 0;function Jae(t){return t.tagName!=="HTML"&&t.tagName!=="BODY"&&t.nodeType===1}function ese(t,e=Zae){e===void 0&&(e=window);let n=t;for(;n&&n!==e&&Jae(n);){const{overflowY:r}=window.getComputedStyle(n);if(i9.test(r)){if(n.tagName!=="BODY")return n;const i=window.getComputedStyle(n.parentNode).overflowY;if(i9.test(i))return n}n=n.parentNode}return e}const tse=t=>(e,n)=>{const r=G.useRef(!1);t(()=>()=>{r.current=!1},[]),t(()=>{if(!r.current)r.current=!0;else return e()},n)},vg=Ad?G.useLayoutEffect:G.useEffect,nse=tse(vg),o9=()=>{const[,t]=G.useState({});return G.useCallback(()=>t({}),[])};function a9(t){process.env.NODE_ENV==="development"&&(Od(t)||void 0);const e=G.useRef(t);e.current=G.useMemo(()=>t,[t]);const n=G.useRef();return n.current||(n.current=function(...r){return e.current.apply(this,r)}),n.current}function gg(t){const{value:e,defaultValue:n,onChange:r}=t,i=o9(),o=G.useRef(e!==void 0?e:n);e!==void 0&&(o.current=e);const s=a9((u,d)=>{const c=typeof u=="function"?u(o.current):u;!d&&c===o.current||(o.current=c,i(),r==null||r(c))});return[o.current,s]}const w1e="";function Mo(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function hT(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function u(p){try{c(r.next(p))}catch(v){s(v)}}function d(p){try{c(r.throw(p))}catch(v){s(v)}}function c(p){p.done?o(p.value):i(p.value).then(u,d)}c((r=r.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;function s9(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=s9(t[e]))&&(r&&(r+=" "),r+=n);else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}function Me(){for(var t,e,n=0,r="";n<arguments.length;)(t=arguments[n++])&&(e=s9(t))&&(r&&(r+=" "),r+=e);return r}const C1e="",rse=({bem:t})=>q(Jt,{children:Array(12).fill(null).map((e,n)=>q("i",{className:Me(t("line",String(n+1)))},n))}),ise=({bem:t})=>q("svg",Object.assign({className:Me(t("circular")),viewBox:"25 25 50 50"},{children:q("circle",{cx:"50",cy:"50",r:"20",fill:"none"})})),ose=({bem:t})=>Ne("div",Object.assign({className:Me(t("ball"))},{children:[q("div",{}),q("div",{}),q("div",{})]})),ase=t=>({spinner:q(rse,{bem:t}),circular:q(ise,{bem:t}),ball:q(ose,{bem:t})}),[TS]=_n("loading"),pT=t=>{const{className:e,type:n="circular",vertical:r,color:i,size:o,textColor:s,children:u,textSize:d}=t,c=G.useMemo(()=>Object.assign({color:i},Hae(o)),[i,o]),p=()=>u?q("span",Object.assign({className:Me(TS("text")),style:{fontSize:yl(d),color:s??i}},{children:u})):null;return Ne("div",Object.assign({className:Me(e,TS([n,{vertical:r}])),style:t.style},{children:[q("span",Object.assign({className:Me(TS("spinner",n)),style:c},{children:ase(TS)[n]})),p()]}))},sse="#fff",yg="rv-hairline",lse=`${yg}--top`,use=`${yg}--left`,cse=`${yg}--surround`,fse=`${yg}--top-bottom`,dse=`${yg}-unset--top-bottom`,l9="rv-shadow",hse="__REACT_VANT_COMPONENT",u9=G.createContext({}),[xg]=_n("button"),pse=t=>{const{color:e,loading:n,className:r,hairline:i,loadingText:o,round:s,square:u,plain:d,block:c,loadingType:p,nativeType:v,iconPosition:y}=t,g=Mo(t,["color","loading","className","hairline","loadingText","round","square","plain","block","loadingType","nativeType","iconPosition"]),{parent:S}=G.useContext(u9),E=G.useMemo(()=>t.size||(S==null?void 0:S.size)||"normal",[S==null?void 0:S.size,t.size]),C=G.useMemo(()=>t.type||(S==null?void 0:S.type)||"default",[S==null?void 0:S.type,t.type]),_=G.useMemo(()=>d??(S==null?void 0:S.plain),[S==null?void 0:S.plain,d]),O=G.useMemo(()=>c??(S==null?void 0:S.block),[S==null?void 0:S.block,c]),A=G.useMemo(()=>y||(S==null?void 0:S.iconPosition)||"left",[S==null?void 0:S.iconPosition,y]),D=G.useMemo(()=>{var K;return(K=t.disabled)!==null&&K!==void 0?K:S==null?void 0:S.disabled},[S==null?void 0:S.disabled,t.disabled]),M=G.useMemo(()=>v||(S==null?void 0:S.nativeType)||"button",[S==null?void 0:S.nativeType,v]),F=G.useMemo(()=>t.tag||(S==null?void 0:S.tag)||"button",[S==null?void 0:S.tag,t.tag]),I=Me(r,xg([C,E,{plain:_,loading:n,disabled:D,hairline:i,block:O,round:s,square:u}]),{[cse]:i},t.shadow&&`${l9}--${+t.shadow}`),U=Object.assign({},t.style);e&&(U.color=_?e:sse,_||(U.background=e),e.indexOf("gradient")!==-1?U.border=0:U.borderColor=e);const L=K=>{!n&&!D&&t.onClick&&t.onClick(K)},H=()=>{if(n){const{loadingSize:K="20px"}=t;return q(pT,{className:Me(xg("loading")),size:K,type:p,color:C==="default"?void 0:""})}return null},N=()=>t.loading?H():t.icon?G.cloneElement(t.icon,{className:Me(xg("icon"))}):null,j=()=>{let K;return n?K=o:K=t.children||t.text,K?q("span",Object.assign({className:Me(xg("text"))},{children:K}),"text"):null};return q(F,Object.assign({},g,{disabled:D,className:I,style:U,type:M,onClick:L},{children:(()=>Ne("div",Object.assign({className:Me(xg("content"))},{children:[A==="left"&&N(),j(),A==="right"&&N()]})))()}))},[mse]=_n("button-group"),ta=Object.assign(pse,{Group:t=>{var{className:e,style:n,children:r,onClick:i}=t,o=Mo(t,["className","style","children","onClick"]);return q("div",Object.assign({onClick:u=>{o.disabled||i==null||i(u)},style:n,className:Me(e,mse([o.type,{round:o.round,plain:o.plain,disabled:o.disabled}]),o.shadow&&`${l9}--${+o.shadow}`)},{children:q(u9.Provider,Object.assign({value:{parent:o}},{children:r}))}))}}),O1e="";function Ti(...t){const e=Object.assign({},t[0]);return t.forEach(n=>{for(const r in n){const i=n[r];e[r]=e.hasOwnProperty(r)?e[r]:i}}),e}const[c9]=_n("badge"),vse=t=>{const e=Ti(t,{tag:"div",showZero:!0}),{content:n,max:r,dot:i,showZero:o,tag:s="div"}=e,u=s,d=()=>e.content?!0:_i(n)&&n!==""&&(o||+n!=0),c=()=>!i&&d()?_i(r)&&K7(n==null?void 0:n.toString())&&+n>r?`${r}+`:n:null,p=()=>{if(d()||e.dot){let v={background:e.color};if(e.offset){const[y,g]=e.offset;e.children?(v.top=yl(g),v.right=yl(y)):(v.marginTop=yl(g),v.marginLeft=yl(y))}return e.children||(v=Object.assign(Object.assign({},e.style),v)),q("div",Object.assign({className:Me({[e.className]:e.className&&!e.children},c9({dot:e.dot,fixed:!!e.children})),style:v},{children:c()}))}return null};return e.children?Ne(u,Object.assign({className:Me(c9("wrapper"),e.className),style:e.style,onClick:e.onClick,onTouchStart:e.onTouchStart},{children:[e.children,p()]})):p()},M1e="";var gse=globalThis&&globalThis.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function yse(t){return t.substring(3).replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"")}const mu=G.forwardRef((t,e)=>{const{name:n="",className:r,style:i,spin:o,rotate:s,tabIndex:u,onClick:d,children:c}=t,p=gse(t,["name","className","style","spin","rotate","tabIndex","onClick","children"]),v={};s&&(v.msTransform=`rotate(${s}deg)`,v.transform=`rotate(${s}deg)`);const y=n?yse(n):void 0;let g=u;g===void 0&&d&&(g=-1);const S=Object.assign({role:"img","aria-label":y,focusable:"false","data-icon":y,"aria-hidden":"true",preserveAspectRatio:"xMidYMid meet",ref:e,tabIndex:g,onClick:d,className:["rv-icon",y?`rv-icon-${y}`:"",o?"rv-icon--spin":"",r].join(" ").trim(),style:Object.assign(Object.assign({},i),v)},p);return G.cloneElement(c,S)}),xse=t=>_e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},t),_e.createElement("path",{d:"M494.094 733.426a41.472 41.472 0 01-20.023-11.126L140.16 388.388c-16.272-16.271-16.272-42.653 0-58.925 16.271-16.272 42.653-16.272 58.925 0L503.66 634.037 808.186 329.51c16.271-16.272 42.653-16.272 58.925 0s16.272 42.654 0 58.926L533.2 722.347c-10.607 10.607-25.508 14.3-39.106 11.08z",fillRule:"evenodd"})),bse=_e.forwardRef((t,e)=>_e.createElement(mu,Object.assign({name:"SvgArrowDown"},t,{ref:e}),_e.createElement(xse,null))),Sse=t=>_e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},t),_e.createElement("path",{d:"M296.114 508.035c-3.22-13.597.473-28.499 11.079-39.105l333.912-333.912c16.271-16.272 42.653-16.272 58.925 0s16.272 42.654 0 58.926L395.504 498.47l304.574 304.574c16.272 16.272 16.272 42.654 0 58.926s-42.654 16.272-58.926 0L307.241 528.058a41.472 41.472 0 01-11.127-20.023z",fillRule:"evenodd"})),wse=_e.forwardRef((t,e)=>_e.createElement(mu,Object.assign({name:"SvgArrowLeft"},t,{ref:e}),_e.createElement(Sse,null))),Cse=t=>_e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},t),_e.createElement("path",{d:"M513.176 285.05a41.472 41.472 0 0120.024 11.127L867.11 630.089c16.272 16.271 16.272 42.653 0 58.925s-42.654 16.272-58.925 0L503.612 384.44 199.085 688.967c-16.272 16.271-42.654 16.271-58.925 0-16.272-16.272-16.272-42.654 0-58.926L474.07 296.129c10.606-10.606 25.508-14.299 39.105-11.078z",fillRule:"evenodd"})),Ese=_e.forwardRef((t,e)=>_e.createElement(mu,Object.assign({name:"SvgArrowUp"},t,{ref:e}),_e.createElement(Cse,null))),kse=t=>_e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},t),_e.createElement("path",{d:"M711.156 508.035a41.472 41.472 0 01-11.126 20.023L366.12 861.97c-16.272 16.272-42.654 16.272-58.926 0s-16.272-42.654 0-58.926L611.767 498.47 307.241 193.944c-16.272-16.272-16.272-42.654 0-58.926 16.271-16.272 42.653-16.272 58.925 0L700.078 468.93c10.606 10.606 14.299 25.508 11.078 39.105z",fillRule:"evenodd"})),_se=_e.forwardRef((t,e)=>_e.createElement(mu,Object.assign({name:"SvgArrow"},t,{ref:e}),_e.createElement(kse,null))),Tse=t=>_e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},t),_e.createElement("path",{d:"M500 55.556c245.46 0 444.444 198.984 444.444 444.444S745.46 944.444 500 944.444 55.556 745.46 55.556 500 254.54 55.556 500 55.556zm176.441 267.887c-10.848-10.848-28.436-10.848-39.284 0L499.665 460.936 362.172 323.443c-10.848-10.848-28.436-10.848-39.284 0-10.848 10.848-10.848 28.436 0 39.284L460.38 500.22 322.888 637.713c-10.848 10.848-10.848 28.436 0 39.284 10.848 10.848 28.436 10.848 39.284 0l137.493-137.493 137.492 137.493c10.848 10.848 28.436 10.848 39.284 0 10.848-10.848 10.848-28.436 0-39.284L538.948 500.22l137.493-137.493c10.848-10.848 10.848-28.436 0-39.284z",fillRule:"evenodd"})),AS=_e.forwardRef((t,e)=>_e.createElement(mu,Object.assign({name:"SvgClear"},t,{ref:e}),_e.createElement(Tse,null))),Ase=t=>_e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},t),_e.createElement("path",{d:"M560.149 501.223l255.344 255.344c16.272 16.272 16.272 42.654 0 58.926s-42.654 16.272-58.926 0L501.223 560.149 245.88 815.493c-16.272 16.272-42.654 16.272-58.925 0-16.272-16.272-16.272-42.654 0-58.926l255.344-255.344L186.954 245.88c-16.272-16.272-16.272-42.654 0-58.925 16.271-16.272 42.653-16.272 58.925 0l255.344 255.344 255.344-255.344c16.272-16.272 42.654-16.272 58.926 0 16.272 16.271 16.272 42.653 0 58.925L560.149 501.223z",fillRule:"nonzero"})),mT=_e.forwardRef((t,e)=>_e.createElement(mu,Object.assign({name:"SvgCross"},t,{ref:e}),_e.createElement(Ase,null))),Ose=t=>_e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},t),_e.createElement("path",{d:"M537.5 537.5v325c0 20.71-16.79 37.5-37.5 37.5s-37.5-16.79-37.5-37.5v-325h-325c-20.71 0-37.5-16.79-37.5-37.5s16.79-37.5 37.5-37.5h325v-325c0-20.71 16.79-37.5 37.5-37.5s37.5 16.79 37.5 37.5v325h325c20.71 0 37.5 16.79 37.5 37.5s-16.79 37.5-37.5 37.5h-325z",fillRule:"nonzero"})),Dse=_e.forwardRef((t,e)=>_e.createElement(mu,Object.assign({name:"SvgPlus"},t,{ref:e}),_e.createElement(Ose,null))),Mse=t=>_e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},t),_e.createElement("path",{d:"M500 888.889c-214.389 0-388.889-174.5-388.889-388.889S285.611 111.111 500 111.111 888.889 285.611 888.889 500 714.389 888.889 500 888.889m0-833.333c-245.444 0-444.444 199-444.444 444.444 0 245.444 199 444.444 444.444 444.444 245.444 0 444.444-199 444.444-444.444 0-245.444-199-444.444-444.444-444.444m6.456 222.222c-44.612 0-80 12.778-105.612 39.055-26.277 25.667-39.055 60.445-39.055 105.056v1c0 17.944 14.444 32.444 32.389 32.444 17.889 0 32.389-14.5 32.389-32.444 0-.389-.111-1-.111-1 0-26.945 5.444-48.222 16.444-62.889 12.222-17.111 32.333-25.667 59.889-25.667 21.944 0 39.055 6.111 51.222 18.334 11.611 12.222 17.778 28.722 17.778 50.055 0 15.89-5.556 30.5-16.556 44.556l-10.389 11.61c-37.777 33.556-60.333 59-69.61 75.668-13.834 24.944-11.334 48-11.334 48 0 17.888 14.556 32.388 32.444 32.388 17.945 0 29.778-12.333 32.39-32.388 0 0 3.333-18.667 10.055-30.89 5.5-10.944 14.055-21.388 25-31.11 29.389-25.056 46.444-40.945 51.889-47.667 14.666-19.5 22.555-44.556 22.555-74.445 0-36.61-12.166-65.944-35.944-87.333-24.445-21.944-56.167-32.333-95.833-32.333m-10.417 357.15c-12.778 0-23.222 3.666-31.111 12.222-9.222 7.889-13.5 18.333-13.5 31.111 0 12.222 4.278 22.611 13.5 31.167 7.889 8.5 18.333 12.778 31.11 12.778 12.279 0 23.223-4.278 32.39-12.167 8.5-8.611 12.778-18.945 12.778-31.778 0-12.778-4.278-23.222-12.778-31.111-8.556-8.556-19.556-12.222-32.39-12.222",fillRule:"evenodd"})),Rse=_e.forwardRef((t,e)=>_e.createElement(mu,Object.assign({name:"SvgQuestionO"},t,{ref:e}),_e.createElement(Mse,null))),Nse=t=>_e.createElement("svg",Object.assign({width:"1em",height:"1em",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},t),_e.createElement("path",{d:"M119.415 524.046c-9.708-9.693-11.278-24.766-2.72-35.554l20.007-25.223c8.201-10.34 23.543-12.936 34.386-5.699l173.175 115.585c9.134 6.097 24.856 5.303 33.384-1.616l457.6-371.25c10.286-8.345 26.397-7.634 35.412 1.368l11.272 11.255c9.81 9.795 9.096 25.343-1.187 35.611l-491.14 490.414c-15.28 15.258-40.369 14.59-56.099-1.116l-214.09-213.775z",fillRule:"nonzero"})),f9=_e.forwardRef((t,e)=>_e.createElement(mu,Object.assign({name:"SvgSuccess"},t,{ref:e}),_e.createElement(Nse,null))),U1e="",[d9]=_n("cell-group"),Fse=t=>{const e=Ti(t,{border:!0}),{title:n,border:r,inset:i,card:o}=e,s=o||i,u=()=>q("div",Object.assign({className:Me(d9({inset:s}),{[fse]:!s&&r})},{children:e.children})),d=()=>n?q("div",Object.assign({className:Me(d9("title"))},{children:n})):null;return Ne("div",Object.assign({className:e.className,style:e.style},{children:[d(),u()]}))},[Lp]=_n("cell"),h9=Object.assign(t=>{const e=()=>_i(t.label)?q("div",Object.assign({className:Me(Lp("label"),t.labelClass)},{children:t.label})):null,n=()=>_i(t.title)?Ne("div",Object.assign({className:Me(Lp("title"),t.titleClass),style:t.titleStyle},{children:[t.title,e()]})):null,r=()=>{const C=_i(t.title);return _i(t.children)||_i(t.value)?q("div",Object.assign({className:Me(Lp("value",{alone:!C}),t.valueClass)},{children:_i(t.children)?t.children:q("span",{children:t.value})})):null},i=()=>t.icon?G.cloneElement(t.icon,{className:Me(Lp("left-icon"))}):null,o=()=>{if(t.rightIcon)return t.rightIcon;if(t.isLink){const C=Me(Lp("right-icon"));return t.arrowDirection==="left"?q(wse,{className:C}):t.arrowDirection==="up"?q(Ese,{className:C}):t.arrowDirection==="down"?q(bse,{className:C}):q(_se,{className:C})}return null},{className:s,style:u,size:d,center:c,border:p=!0,isLink:v,required:y,onClick:g}=t,S=v||t.clickable,E={center:c,required:y,clickable:S,borderless:!p};return d&&(E[d]=!!d),Ne("div",Object.assign({style:u,className:Me(Lp(E),s),role:S?"button":void 0,onClick:g},{children:[i(),n(),r(),o(),t.extra]}))},{Group:Fse}),Y1e="",K1e="";function OS(t,e){return OS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},OS(t,e)}function p9(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,OS(t,e)}function Pse(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}function Lse(t,e){t.classList?t.classList.add(e):Pse(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function m9(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Bse(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=m9(t.className,e):t.setAttribute("class",m9(t.className&&t.className.baseVal||"",e))}const v9={disabled:!1};var zse=process.env.NODE_ENV!=="production"?zt.oneOfType([zt.number,zt.shape({enter:zt.number,exit:zt.number,appear:zt.number}).isRequired]):null,Ise=process.env.NODE_ENV!=="production"?zt.oneOfType([zt.string,zt.shape({enter:zt.string,exit:zt.string,active:zt.string}),zt.shape({enter:zt.string,enterDone:zt.string,enterActive:zt.string,exit:zt.string,exitDone:zt.string,exitActive:zt.string})]):null;const g9=G.createContext(null);var bg="unmounted",Md="exited",Rd="entering",Bp="entered",vT="exiting",vu=function(t){p9(e,t);function e(r,i){var o;o=t.call(this,r,i)||this;var s=i,u=s&&!s.isMounting?r.enter:r.appear,d;return o.appearStatus=null,r.in?u?(d=Md,o.appearStatus=Rd):d=Bp:r.unmountOnExit||r.mountOnEnter?d=bg:d=Md,o.state={status:d},o.nextCallback=null,o}e.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===bg?{status:Md}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Rd&&s!==Bp&&(o=Rd):(s===Rd||s===Bp)&&(o=vT)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,u;return o=s=u=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,u=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:u}},n.updateStatus=function(i,o){i===void 0&&(i=!1),o!==null?(this.cancelNextCallback(),o===Rd?this.performEnter(i):this.performExit()):this.props.unmountOnExit&&this.state.status===Md&&this.setState({status:bg})},n.performEnter=function(i){var o=this,s=this.props.enter,u=this.context?this.context.isMounting:i,d=this.props.nodeRef?[u]:[rv.findDOMNode(this),u],c=d[0],p=d[1],v=this.getTimeouts(),y=u?v.appear:v.enter;if(!i&&!s||v9.disabled){this.safeSetState({status:Bp},function(){o.props.onEntered(c)});return}this.props.onEnter(c,p),this.safeSetState({status:Rd},function(){o.props.onEntering(c,p),o.onTransitionEnd(y,function(){o.safeSetState({status:Bp},function(){o.props.onEntered(c,p)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),u=this.props.nodeRef?void 0:rv.findDOMNode(this);if(!o||v9.disabled){this.safeSetState({status:Md},function(){i.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:vT},function(){i.props.onExiting(u),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Md},function(){i.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,s=!0;return this.nextCallback=function(u){s&&(s=!1,o.nextCallback=null,i(u))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:rv.findDOMNode(this),u=i==null&&!this.props.addEndListener;if(!s||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=d[0],p=d[1];this.props.addEndListener(c,p)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===bg)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var u=AE(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return G.createElement(g9.Provider,{value:null},typeof s=="function"?s(i,u):G.cloneElement(G.Children.only(s),u))},e}(G.Component);vu.contextType=g9,vu.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:zt.shape({current:typeof Element>"u"?zt.any:function(t,e,n,r,i,o){var s=t[e];return zt.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(t,e,n,r,i,o)}}),children:zt.oneOfType([zt.func.isRequired,zt.element.isRequired]).isRequired,in:zt.bool,mountOnEnter:zt.bool,unmountOnExit:zt.bool,appear:zt.bool,enter:zt.bool,exit:zt.bool,timeout:function(e){var n=zse;e.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n.apply(void 0,[e].concat(i))},addEndListener:zt.func,onEnter:zt.func,onEntering:zt.func,onEntered:zt.func,onExit:zt.func,onExiting:zt.func,onExited:zt.func}:{};function zp(){}vu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:zp,onEntering:zp,onEntered:zp,onExit:zp,onExiting:zp,onExited:zp},vu.UNMOUNTED=bg,vu.EXITED=Md,vu.ENTERING=Rd,vu.ENTERED=Bp,vu.EXITING=vT;const y9=vu;var jse=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return Lse(e,r)})},gT=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return Bse(e,r)})},yT=function(t){p9(e,t);function e(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(u,d){var c=r.resolveArguments(u,d),p=c[0],v=c[1];r.removeClasses(p,"exit"),r.addClass(p,v?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(u,d)},r.onEntering=function(u,d){var c=r.resolveArguments(u,d),p=c[0],v=c[1],y=v?"appear":"enter";r.addClass(p,y,"active"),r.props.onEntering&&r.props.onEntering(u,d)},r.onEntered=function(u,d){var c=r.resolveArguments(u,d),p=c[0],v=c[1],y=v?"appear":"enter";r.removeClasses(p,y),r.addClass(p,y,"done"),r.props.onEntered&&r.props.onEntered(u,d)},r.onExit=function(u){var d=r.resolveArguments(u),c=d[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(u)},r.onExiting=function(u){var d=r.resolveArguments(u),c=d[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(u)},r.onExited=function(u){var d=r.resolveArguments(u),c=d[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(u)},r.resolveArguments=function(u,d){return r.props.nodeRef?[r.props.nodeRef.current,u]:[u,d]},r.getClassNames=function(u){var d=r.props.classNames,c=typeof d=="string",p=c&&d?d+"-":"",v=c?""+p+u:d[u],y=c?v+"-active":d[u+"Active"],g=c?v+"-done":d[u+"Done"];return{baseClassName:v,activeClassName:y,doneClassName:g}},r}var n=e.prototype;return n.addClass=function(i,o,s){var u=this.getClassNames(o)[s+"ClassName"],d=this.getClassNames("enter"),c=d.doneClassName;o==="appear"&&s==="done"&&c&&(u+=" "+c),s==="active"&&i&&i.scrollTop,u&&(this.appliedClasses[o][s]=u,jse(i,u))},n.removeClasses=function(i,o){var s=this.appliedClasses[o],u=s.base,d=s.active,c=s.done;this.appliedClasses[o]={},u&&gT(i,u),d&&gT(i,d),c&&gT(i,c)},n.render=function(){var i=this.props;i.classNames;var o=AE(i,["classNames"]);return G.createElement(y9,mn({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(G.Component);yT.defaultProps={classNames:""},yT.propTypes=process.env.NODE_ENV!=="production"?mn({},y9.propTypes,{classNames:Ise,onEnter:zt.func,onEntering:zt.func,onEntered:zt.func,onExit:zt.func,onExiting:zt.func,onExited:zt.func}):{};const x9=yT;function Tn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}const W1e="",[Hse]=_n("overlay"),Use=t=>{const e=G.useRef(null),n=Ti(t,{stopPropagation:["click"],lockScroll:!0,duration:300}),{visible:r,duration:i}=n,o=u=>{n.lockScroll&&lT(u,!0)},s=()=>{const u=Object.assign(Object.assign({zIndex:n.zIndex!==void 0?+n.zIndex:void 0,touchAction:n.lockScroll&&"none"},n.style),n.customStyle);return _i(i)&&(u.animationDuration=`${i}ms`),V7(n.stopPropagation,q("div",Object.assign({ref:e,style:u,onClick:d=>{var c;d.target===d.currentTarget&&((c=n.onClick)===null||c===void 0||c.call(n,d))},className:Me(Hse(),n.className)},{children:n.children})))};return fT("touchmove",o,{target:e}),q(x9,Object.assign({nodeRef:e,mountOnEnter:!0,unmountOnExit:!0,in:r,timeout:i,classNames:"rv-fade"},{children:s()}))};function Vse(t){const{interceptor:e,args:n,done:r,canceled:i}=t;if(e){const o=e.apply(null,n||[]);Mae(o)?o.then(s=>{s?r():i&&i()}).catch(Oa):o?r():i&&i()}else r()}function xT(t){return(typeof t=="function"?t():t)||document.body}function bT(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function $se(t,e){if(bT()&&t){const n=xT(t);return Kf.createPortal(e,n)}return e}const qse=G.createContext({});let Sg=0;const b9="rv-overflow-hidden";function Yse(t,e){const n=r9(),r=s=>{n.move(s);const u=n.deltaY.current>0?"10":"01",d=ese(s.target,t.current);if(!d)return;const{scrollHeight:c,offsetHeight:p,scrollTop:v}=d;let y="11";v===0?y=p>=c?"00":"01":v+p>=c&&(y="10"),y!=="11"&&n.isVertical()&&!(parseInt(y,2)&parseInt(u,2))&&s.cancelable&&s.preventDefault()},i=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",r,!1),Sg||document.body.classList.add(b9),Sg++},o=()=>{Sg&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",r),Sg--,Sg||document.body.classList.remove(b9))};G.useEffect(()=>{if(e)return i(),()=>{o()}},[e])}let S9=2e3;const[DS]=_n("popup"),Nd=G.forwardRef((t,e)=>{var n;const r=Ti(t,{duration:300,overlay:!0,lockScroll:!0,position:"center",closeIcon:q(mT,{}),closeIconPosition:"top-right",closeOnClickOverlay:!0,stopPropagation:["click"],teleport:()=>document.body}),{round:i,closeable:o,title:s,description:u,children:d,duration:c,closeIcon:p,position:v}=r,y=G.useRef(!1),g=G.useRef((n=r.zIndex)!==null&&n!==void 0?n:S9),S=G.useRef(),[E,C]=G.useState(r.visible),[_,O]=G.useState(E),A=G.useMemo(()=>{const Y=Object.assign({zIndex:g.current},r.style);if(_i(r.duration)){const K=r.position==="center"?"animationDuration":"transitionDuration";Y[K]=`${r.duration}ms`}return Y},[g.current,r.position,r.style,r.duration]),D=()=>{var Y;r.zIndex!==void 0?g.current=+r.zIndex:g.current=S9++,y.current=!0,(Y=r.onOpen)===null||Y===void 0||Y.call(r)},M=()=>{Vse({interceptor:r.beforeClose,args:["close"],done:()=>{var Y;y.current=!1,(Y=r.onClose)===null||Y===void 0||Y.call(r)}})},B=Y=>{var K;(K=r.onClickOverlay)===null||K===void 0||K.call(r,Y),r.closeOnClickOverlay&&M()},F=()=>r.overlay?q(Use,{visible:E,className:r.overlayClass,customStyle:r.overlayStyle,zIndex:g.current,duration:c,onClick:B}):null,I=Y=>{r.onClickCloseIcon&&r.onClickCloseIcon(Y),M()},U=()=>{if(o){const{closeIconPosition:Y}=r;return p?q("div",Object.assign({className:Me(DS("close-icon",Y)),onClick:I},{children:p})):null}return null},L=()=>s?q("div",Object.assign({className:Me(DS("title"))},{children:s})):null,H=()=>u?q("div",Object.assign({className:Me(DS("description"))},{children:u})):null,N=()=>{const{safeAreaInsetBottom:Y}=r;return V7(r.stopPropagation,Ne("div",Object.assign({ref:S,style:Object.assign(Object.assign({},A),{display:!E&&!_?"none":void 0}),className:Me(DS({round:i,[v]:v}),{"rv-safe-area-bottom":Y},r.className),onClick:r.onClick},{children:[L(),H(),d,U()]})))},j=()=>{const{transition:Y,destroyOnClose:K,forceRender:ee}=r,ne=v==="center"?"rv-fade":`rv-popup-slide-${v}`;return q(x9,Object.assign({in:E,nodeRef:S,timeout:c,classNames:Y||ne,mountOnEnter:!ee,unmountOnExit:K,onEnter:D,onEntered:r.onOpened,onExited:()=>{var $;O(!1),($=r.onClosed)===null||$===void 0||$.call(r)}},{children:N()}))};return fT("popstate",()=>{r.closeOnPopstate&&M()}),vg(()=>{E&&O(!0)},[E]),vg(()=>{C(r.visible)},[r.visible]),Yse(S,E&&r.lockScroll),G.useImperativeHandle(e,()=>({popupRef:S})),$se(r.teleport,Ne(qse.Provider,Object.assign({value:{visible:E}},{children:[F(),j()]})))}),Z1e="",w9=G.createContext({}),[Kse]=_n("action-bar"),Wse=t=>{const e=Ti(t,{safeAreaInsetBottom:!0}),n=G.useMemo(()=>G.Children.toArray(e.children),[e.children]);return q(w9.Provider,Object.assign({value:{parent:{children:n}}},{children:q("div",Object.assign({className:Me(e.className,Kse(),{"rv-safe-area-bottom":e.safeAreaInsetBottom}),style:e.style},{children:G.Children.toArray(e.children).filter(Boolean).map((r,i)=>G.cloneElement(r,{index:i}))}))}))},[C9]=_n("action-bar-icon"),Gse=t=>{const e=()=>{const{badge:n,icon:r}=t;return r?q(vse,Object.assign({},n,{className:Me(C9("icon"))},{children:r})):null};return Ne("div",Object.assign({role:"button",className:Me(t.className,C9()),style:t.style,tabIndex:0,onClick:t.onClick},{children:[e(),t.children||t.text]}))},[Qse]=_n("action-bar-button"),Xse=Object.assign(t=>{const{type:e,icon:n,text:r,color:i,loading:o,disabled:s,index:u}=t,{parent:d}=G.useContext(w9),c=G.useMemo(()=>{if(d){const v=d.children[u-1];return!(v&&"isButton"in v.type)}return!1},[u,d]),p=G.useMemo(()=>{if(d){const v=d.children[u+1];return!(v&&"isButton"in v.type)}return!1},[u,d]);return q(ta,Object.assign({className:Me(t.className,Qse([e,{last:p,first:c}])),style:t.style,size:"large",type:e,icon:n,color:i,loading:o,disabled:s,onClick:t.onClick},{children:t.children?t.children:r}))},{isButton:!0}),ST=Object.assign(Wse,{Icon:Gse,Button:Xse});function Zse(t,e,n){const r=e[n];_i(r)&&(!Object.prototype.hasOwnProperty.call(t,n)||!Fp(r)?t[n]=r:t[n]=E9(Object(t[n]),e[n]))}function E9(t,e){return Object.keys(e).forEach(n=>{Zse(t,e,n)}),t}const Jse={locale:E9({name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:(t,e)=>`${t}年${e}月`,rangePrompt:t=>`最多选择 ${t} 天`},vanPicker:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新...",loading:"加载中..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:t=>`${t}折`,condition:t=>`满${t}元可用`},vanCouponCell:{title:"优惠券",count:t=>`${t}张可用`},vanCouponList:{exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码不正确",defaultAddress:"设为默认收货地址"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌信息"},vanAddressList:{add:"新增地址"}},{})},Ip=G.createContext(Jse),[_s]=_n("dialog"),k9=t=>{const{locale:e}=G.useContext(Ip),n=Ti(t,{transition:"rv-dialog-bounce",showConfirmButton:!0,closeOnPopstate:!0}),{width:r,title:i,theme:o,visible:s,message:u,className:d,messageAlign:c,closeOnClickOverlay:p,onClickCloseIcon:v}=n,y=Mo(n,["width","title","theme","visible","message","className","messageAlign","closeOnClickOverlay","onClickCloseIcon"]),g=()=>n.title?q("div",Object.assign({className:Me(_s("header",{isolated:!n.message&&!n.children}))},{children:i})):null,S=()=>n.children?q("div",Object.assign({className:Me(_s("content"))},{children:n.children})):u?q("div",Object.assign({className:Me(_s("content",{isolated:!i}))},{children:q("div",Object.assign({className:Me(_s("message",{"has-title":i,[c]:c}))},{children:u}))})):null,E=()=>{var O,A,D,M,B,F;return Ne("div",Object.assign({className:Me(lse,_s("footer"))},{children:[n.showCancelButton&&q(ta,{size:"large",text:n.cancelButtonText||e.cancel,className:Me(_s("cancel")),style:{color:n.cancelButtonColor},loading:(O=n.cancelProps)===null||O===void 0?void 0:O.loading,disabled:(A=n.cancelProps)===null||A===void 0?void 0:A.disabled,onClick:!((D=n.cancelProps)===null||D===void 0)&&D.loading?Oa:n.onCancel}),n.showConfirmButton&&q(ta,{size:"large",text:n.confirmButtonText||e.confirm,className:Me(_s("confirm"),{[use]:n.showCancelButton}),round:o==="round-button"||void 0,style:{color:n.confirmButtonColor},loading:(M=n.confirmProps)===null||M===void 0?void 0:M.loading,disabled:(B=n.confirmProps)===null||B===void 0?void 0:B.disabled,onClick:!((F=n.confirmProps)===null||F===void 0)&&F.loading?Oa:n.onConfirm})]}))},C=()=>{var O,A,D,M,B,F;return Ne(ST,Object.assign({className:Me(_s("footer"))},{children:[n.showCancelButton&&q(ST.Button,{type:"warning",text:n.cancelButtonText||e.cancel,className:Me(_s("cancel")),color:n.cancelButtonColor,loading:(O=n.cancelProps)===null||O===void 0?void 0:O.loading,disabled:(A=n.cancelProps)===null||A===void 0?void 0:A.disabled,onClick:!((D=n.cancelProps)===null||D===void 0)&&D.loading?Oa:n.onCancel}),n.showConfirmButton&&q(ST.Button,{type:"danger",text:n.confirmButtonText||e.confirm,className:Me(_s("confirm")),color:n.confirmButtonColor,loading:(M=n.confirmProps)===null||M===void 0?void 0:M.loading,disabled:(B=n.confirmProps)===null||B===void 0?void 0:B.disabled,onClick:!((F=n.confirmProps)===null||F===void 0)&&F.loading?Oa:n.onConfirm})]}))},_=()=>n.footer?n.footer:n.theme==="round-button"?C():E();return Ne(Nd,Object.assign({},y,{visible:s,className:Me(_s([o]),d),style:{width:yl(r)},"aria-labelledby":i||u,closeOnClickOverlay:p,onClickCloseIcon:v,onClose:n.onClose,onClosed:n.onClosed},{children:[g(),S(),_()]}))};Number((G.version||"").split(".")[0]);const ele=Number((Kf.version||"").split(".")[0]),MS=Object.assign({},mY),{render:tle,unmountComponentAtNode:nle}=MS;let RS;try{ele>=18&&MS.createRoot&&(RS=MS.createRoot)}catch{}function _9(t){const{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:e}=MS;e&&typeof e=="object"&&(e.usingClientEntryPoint=t)}const NS="__react_vant_root__";function rle(t,e){tle(t,e)}function ile(t,e){_9(!0);const n=e[NS]||RS(e);_9(!1),n.render(t),e[NS]=n}function T9(t,e){if(RS){ile(t,e);return}rle(t,e)}function ole(t){return nle(t)}function ale(t){return hT(this,void 0,void 0,function*(){return Promise.resolve().then(()=>{var e;(e=t[NS])===null||e===void 0||e.unmount(),delete t[NS]})})}function A9(t){return RS?ale(t):ole(t)}const jp=k9;jp.show=t=>{if(!bT())return null;const e={overlay:!0,closeable:!1,closeIcon:q(mT,{}),lockScroll:!0,transition:"rv-dialog-bounce",showConfirmButton:!0,showCancelButton:!1,closeOnClickOverlay:!1},{onClosed:n,onCancel:r=Oa,onConfirm:i=Oa,onClose:o=Oa,cancelProps:s,confirmProps:u}=t,d=Mo(t,["onClosed","onCancel","onConfirm","onClose","cancelProps","confirmProps"]),c=xT(t.teleport),p=document.createElement("div");c.appendChild(p);let v=Oa;return T9(q(()=>{const[g,S]=G.useState(!1),[E,C]=G.useState(!1),[_,O]=G.useState(!1);G.useEffect(()=>{S(!0)},[]),v=()=>{S(!1),o&&o()};const A=()=>{n&&n(),A9(p)&&p.parentNode&&p.parentNode.removeChild(p)},D=B=>hT(void 0,void 0,void 0,function*(){const F=setTimeout(()=>O(!0));(yield i(B))!==!1?(clearTimeout(F),v()):(clearTimeout(F),O(!1))}),M=(B,F)=>hT(void 0,void 0,void 0,function*(){if(F){v();return}const I=setTimeout(()=>C(!0));(yield r(B))!==!1?(clearTimeout(I),v()):(clearTimeout(I),C(!1))});return q(k9,Object.assign({},e,d,{visible:g,teleport:()=>p,cancelProps:Object.assign({loading:E},s),confirmProps:Object.assign({loading:_},u),onClose:v,onCancel:M,onConfirm:D,onClosed:A}))},{}),p),v},jp.alert=t=>{const{onConfirm:e=Oa}=t;return new Promise(n=>{jp.show(Object.assign(Object.assign({},t),{onConfirm:r=>{e(r),n(r)}}))})},jp.confirm=t=>{const{onCancel:e=Oa,onConfirm:n=Oa}=t;return new Promise((r,i)=>{jp.show(Object.assign(Object.assign({showCancelButton:!0},t),{onCancel:o=>{e(o),i()},onConfirm:o=>{n(o),r(!0)}}))})};const sle=jp,[wg]=_n("input"),lle=G.forwardRef((t,e)=>{const n=Ti(t,{clearIcon:q(AS,{}),clearTrigger:"focus",defaultValue:""}),r=G.useRef(),[i,o]=G.useState(!1),s=G.useRef(!1),[u,d]=gg(n),{className:c,style:p,align:v,type:y,name:g,placeholder:S,disabled:E,readOnly:C,maxLength:_,autoFocus:O}=n,A=()=>{r!=null&&r.current&&r.current.focus()},D=()=>{r!=null&&r.current&&r.current.blur()};G.useImperativeHandle(e,()=>({clear:()=>{d("")},focus:A,blur:D,get nativeElement(){return r.current}}));const M=G.useMemo(()=>{if(n.clearable&&!C){const N=u!=="",j=n.clearTrigger==="always"||n.clearTrigger==="focus"&&i;return N&&j}return!1},[u,n.clearTrigger,i]),B=N=>{var j;let Y=N;if(!s.current&&(_i(_)&&Y.length>+_&&(Y=Y.slice(0,_),(j=n.onOverlimit)===null||j===void 0||j.call(n)),y==="number"||y==="digit")){const K=y==="number";Y=Yae(Y,K,K)}d(Y)},F=N=>{var j;o(!0),(j=n.onFocus)===null||j===void 0||j.call(n,N),C&&D()},I=N=>{var j;o(!1),(j=n.onBlur)===null||j===void 0||j.call(n,N),Y7()},U=N=>{var j;(N.key==="Enter"||+N.charCode==13)&&(lT(N),n.type==="search"&&D()),(j=n.onKeyPress)===null||j===void 0||j.call(n,N)},L=()=>{let N=y,j;return y==="number"&&(N="text",j="decimal"),y==="digit"&&(N="tel",j="numeric"),q("input",{value:u,type:N,inputMode:j,ref:r,name:g,className:Me(wg("control")),disabled:E,autoFocus:O,readOnly:C,placeholder:S||"",onBlur:I,onFocus:F,onChange:Y=>{var K;return B((K=Y==null?void 0:Y.currentTarget)===null||K===void 0?void 0:K.value)},onKeyPress:U,autoCapitalize:n.autoCapitalize,autoCorrect:n.autoCorrect,onKeyDown:n.onKeyDown,onKeyUp:n.onKeyUp,onCompositionStart:Y=>{var K;s.current=!0,(K=n.onCompositionStart)===null||K===void 0||K.call(n,Y)},onCompositionEnd:Y=>{var K,ee;s.current=!1,(K=n.onCompositionEnd)===null||K===void 0||K.call(n,Y),B((ee=Y==null?void 0:Y.currentTarget)===null||ee===void 0?void 0:ee.value)},onClick:n.onClick})},H=N=>{var j;d(""),(j=n.onClear)===null||j===void 0||j.call(n,N)};return Ne("div",Object.assign({className:Me(wg([v]),c),style:p},{children:[n.prefix&&q("div",Object.assign({className:Me(wg("prefix"))},{children:n.prefix})),L(),M&&G.cloneElement(n.clearIcon||q(AS,{}),{className:Me(wg("clear")),onTouchStart:H}),n.suffix&&q("div",Object.assign({className:Me(wg("suffix"))},{children:n.suffix}))]}))}),[Cg]=_n("textarea"),ule=G.forwardRef((t,e)=>{const n=Ti(t,{rows:2,clearIcon:q(AS,{}),clearTrigger:"focus",defaultValue:""}),[r,i]=G.useState(!1),o=G.useRef(),s=G.useRef(!1),[u,d]=gg(n),{className:c,style:p,name:v,rows:y,placeholder:g,disabled:S,readOnly:E,maxLength:C,showWordLimit:_,autoFocus:O}=n,A=()=>{o!=null&&o.current&&o.current.focus()},D=()=>{o!=null&&o.current&&o.current.blur()};G.useImperativeHandle(e,()=>({clear:()=>{d("")},focus:A,blur:D,get nativeElement(){return o.current}}));const M=()=>{const j=o.current;if(!j)return;j.style.height="auto";let Y=j.scrollHeight;if(Fp(n.autoSize)){const{maxHeight:K,minHeight:ee}=n.autoSize;K&&(Y=Math.min(Y,K)),ee&&(Y=Math.max(Y,ee))}Y&&(j.style.height=`${Y}px`)};G.useEffect(()=>{M()},[u]);const B=G.useMemo(()=>Cg("control",[{"min-height":!n.autoSize,clear:n.clearable}]),[n.autoSize]),F=j=>{var Y;let K=j;s.current||_i(C)&&K.length>+C&&(K=K.slice(0,C),(Y=n.onOverlimit)===null||Y===void 0||Y.call(n)),d(K)},I=j=>{var Y;i(!0),(Y=n.onFocus)===null||Y===void 0||Y.call(n,j),E&&D()},U=j=>{var Y;i(!1),(Y=n.onBlur)===null||Y===void 0||Y.call(n,j),Y7()},L=()=>{if(_){const j=(u?`${u}`:"").length;return q("div",Object.assign({className:Me(Cg("word-limit"))},{children:typeof _=="function"?_({currentCount:j,maxLength:C}):Ne(Jt,{children:[q("span",Object.assign({className:Me(Cg("word-num"))},{children:j})),C?`/${C}`:!1]})}))}return null},H=j=>{var Y;d(""),(Y=n.onClear)===null||Y===void 0||Y.call(n,j)},N=G.useMemo(()=>{if(n.clearable&&!E){const j=u!=="",Y=n.clearTrigger==="always"||n.clearTrigger==="focus"&&r;return j&&Y}return!1},[u,n.clearTrigger,r]);return Ne("div",Object.assign({className:Me(Cg(),c),style:p},{children:[q("textarea",{ref:o,name:v,rows:y,className:Me(B),value:u,disabled:S,autoFocus:O,readOnly:E,placeholder:g||"",onBlur:U,onFocus:I,onChange:j=>{var Y;return F((Y=j==null?void 0:j.currentTarget)===null||Y===void 0?void 0:Y.value)},onKeyPress:n.onKeyPress,onKeyDown:n.onKeyDown,onKeyUp:n.onKeyUp,autoComplete:n.autoComplete,onCompositionStart:j=>{var Y;s.current=!0,(Y=n.onCompositionStart)===null||Y===void 0||Y.call(n,j)},onCompositionEnd:j=>{var Y,K;s.current=!1,(Y=n.onCompositionEnd)===null||Y===void 0||Y.call(n,j),F((K=j==null?void 0:j.currentTarget)===null||K===void 0?void 0:K.value)},onClick:n.onClick}),N&&G.cloneElement(n.clearIcon,{className:Me(Cg("clear")),onTouchStart:H}),L()]}))}),dxe="",hxe="",Mc=Object.assign(lle,{TextArea:ule}),[Da]=_n("field"),cle=G.forwardRef((t,e)=>{var n;const r=Ti(t,{clearIcon:q(AS,{}),clearTrigger:"focus",formatTrigger:"onChange",defaultValue:""}),i=G.useRef(null),o=G.useRef(null),s=r.type==="textarea"?o:i,u=()=>{s.current&&s.current.focus()},d=()=>{s.current&&s.current.blur()},c=()=>{s.current&&s.current.clear()};G.useImperativeHandle(e,()=>({focus:u,blur:d,clear:c,get nativeElement(){return s.current.nativeElement}}));const p=W=>_i(r[W])?r[W]:null,v=()=>{const W=p("labelWidth");return W?{width:yl(W)}:{}},y=(W,te="onChange")=>{const{formatTrigger:ae,formatter:re}=r;return re&&te===ae?re(W):W},g=W=>{var te;(te=r.onChange)===null||te===void 0||te.call(r,y(W))},S=()=>{const{value:W,defaultValue:te,align:ae,type:re,placeholder:ce,name:ve,maxLength:Se,disabled:se,readOnly:Ae,clearable:Te,clearIcon:Pe,clearTrigger:ge,autoFocus:Ve,onClear:Fe,onBlur:gt,onFocus:dt,onKeyPress:en,onOverlimit:zn}=r;if(_i(r.children))return q("div",Object.assign({className:Me(Da("children"))},{children:r.children}));const qn={value:W,onChange:g,placeholder:ce,name:ve,defaultValue:te,disabled:se,clearable:Te,clearIcon:Pe,clearTrigger:ge,onClear:Fe,onBlur:gt,onFocus:dt,onKeyPress:en,onOverlimit:zn,autoFocus:Ve,readOnly:Ae,maxLength:Se,onClick:r.onClickInput};return re==="textarea"?q(Mc.TextArea,Object.assign({ref:o,autoSize:r.autoSize,showWordLimit:r.showWordLimit,rows:r.rows},qn)):q(Mc,Object.assign({ref:i,type:re,align:ae},qn))},E=()=>{const{leftIcon:W,onClickLeftIcon:te}=r;return W?q("div",Object.assign({className:Me(Da("left-icon")),onClick:te},{children:W})):null},C=()=>{const{rightIcon:W,onClickRightIcon:te}=r;return W?q("div",Object.assign({className:Me(Da("right-icon")),onClick:te},{children:W})):null},_=()=>{const W=r.errorMessage;return W?q("div",Object.assign({className:Me(Da("error-message"))},{children:W})):null},O=()=>r.intro?q("div",Object.assign({className:Me(Da("intro"))},{children:r.intro})):null,A=()=>{const{tooltip:W}=r;if(W){let te=q(Rse,{}),ae={message:W};if(!(G.isValidElement(W)||typeof W=="string")){const re=W,{icon:ce}=re,ve=Mo(re,["icon"]);te=ce||te,ae=ve}return q("div",Object.assign({className:Me(Da("tooltip")),onClick:()=>sle.show(ae)},{children:te}))}return null},D=()=>{const{label:W,colon:te}=r;return W?Ne(Jt,{children:[W,!!te&&":",A()]}):null},{size:M,center:B,border:F,isLink:I,required:U,clickable:L,labelAlign:H,className:N,labelClass:j,valueClass:Y,controlAlign:K,arrowDirection:ee,disabled:ne,titleStyle:$,error:Z}=r,X=(n=r.suffix)!==null&&n!==void 0?n:r.button;return Ne(h9,Object.assign({title:D(),size:M,icon:E(),center:B,border:F,isLink:I,required:U,clickable:L,extra:r.extra,titleStyle:Object.assign(Object.assign({},v()),$),valueClass:Me(Da("value",[K]),Y),titleClass:Me(Da("label",H),j),arrowDirection:ee,onClick:r.onClick,style:r.style,className:Me(Da({error:Z,disabled:ne,[`label-${H}`]:H}),N)},{children:[Ne("div",Object.assign({className:Me(Da("body"))},{children:[r.prefix&&q("div",Object.assign({className:Me(Da("prefix"))},{children:r.prefix})),q("div",Object.assign({className:Me(Da("control-wrapper"))},{children:S()})),C(),X&&q("div",Object.assign({className:Me(Da("suffix"))},{children:X}))]})),_(),O()]}))}),fle=Symbol("field"),wT=Object.assign(cle,{[hse]:fle}),mxe="",CT=t=>typeof t=="number"?`${t}px`:t,[ET]=_n("space"),kT=t=>{const{wrap:e,block:n,direction:r="horizontal",align:i,justify:o}=t,s=G.useMemo(()=>{if(t.gap!==void 0&&t.gap!==null){if(Array.isArray(t.gap)){const[d,c]=t.gap;return Object.assign(Object.assign({},t.style),{"--gap":`${CT(d)} ${CT(c)}`})}return Object.assign(Object.assign({},t.style),{"--gap":CT(t.gap)})}return t.style},[t.style,t.gap]),u=G.useMemo(()=>G.Children.map(t.children,d=>d).filter(d=>d!=null),[t.children]);return q("div",Object.assign({className:Me(t.className,ET({wrap:e,block:n,[`${r}`]:!!r,[`align-${i}`]:!!i,[`justify-${o}`]:!!o})),style:s,onClick:t.onClick},{children:u.map((d,c)=>Ne(G.Fragment,{children:[q("div",Object.assign({className:Me(ET("item"))},{children:d})),!!t.divider&&c!==u.length-1&&q("div",Object.assign({className:Me(ET("item-divider"))},{children:t.divider}))]},c))}))};function dle(t,e,n){return Math.max(e,Math.min(t,n))}const io={toVector(t,e){return t===void 0&&(t=e),Array.isArray(t)?t:[t,t]},add(t,e){return[t[0]+e[0],t[1]+e[1]]},sub(t,e){return[t[0]-e[0],t[1]-e[1]]},addTo(t,e){t[0]+=e[0],t[1]+=e[1]},subTo(t,e){t[0]-=e[0],t[1]-=e[1]}};function O9(t,e,n){return e===0||Math.abs(e)===1/0?Math.pow(t,n*5):t*e*n/(e+n*t)}function D9(t,e,n,r=.15){return r===0?dle(t,e,n):t<e?-O9(e-t,n-e,r)+e:t>n?+O9(t-n,n-e,r)+n:t}function hle(t,[e,n],[r,i]){const[[o,s],[u,d]]=t;return[D9(e,o,s,r),D9(n,u,d,i)]}function na(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function M9(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function _r(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?M9(Object(n),!0).forEach(function(r){na(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M9(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}const R9={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function N9(t){return t?t[0].toUpperCase()+t.slice(1):""}const ple=["enter","leave"];function mle(t=!1,e){return t&&!ple.includes(e)}function vle(t,e="",n=!1){const r=R9[t],i=r&&r[e]||e;return"on"+N9(t)+N9(i)+(mle(n,i)?"Capture":"")}const gle=["gotpointercapture","lostpointercapture"];function yle(t){let e=t.substring(2).toLowerCase();const n=!!~e.indexOf("passive");n&&(e=e.replace("passive",""));const r=gle.includes(e)?"capturecapture":"capture",i=!!~e.indexOf(r);return i&&(e=e.replace("capture","")),{device:e,capture:i,passive:n}}function xle(t,e=""){const n=R9[t],r=n&&n[e]||e;return t+r}function FS(t){return"touches"in t}function F9(t){return FS(t)?"touch":"pointerType"in t?t.pointerType:"mouse"}function ble(t){return Array.from(t.touches).filter(e=>{var n,r;return e.target===t.currentTarget||((n=t.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,e.target))})}function Sle(t){return t.type==="touchend"||t.type==="touchcancel"?t.changedTouches:t.targetTouches}function P9(t){return FS(t)?Sle(t)[0]:t}function wle(t){return ble(t).map(e=>e.identifier)}function _T(t){const e=P9(t);return FS(t)?e.identifier:e.pointerId}function L9(t){const e=P9(t);return[e.clientX,e.clientY]}function Cle(t){const e={};if("buttons"in t&&(e.buttons=t.buttons),"shiftKey"in t){const{shiftKey:n,altKey:r,metaKey:i,ctrlKey:o}=t;Object.assign(e,{shiftKey:n,altKey:r,metaKey:i,ctrlKey:o})}return e}function PS(t,...e){return typeof t=="function"?t(...e):t}function Ele(){}function kle(...t){return t.length===0?Ele:t.length===1?t[0]:function(){let e;for(const n of t)e=n.apply(this,arguments)||e;return e}}function B9(t,e){return Object.assign({},e,t||{})}const _le=32;class Tle{constructor(e,n,r){this.ctrl=e,this.args=n,this.key=r,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:n,ingKey:r,args:i}=this;n[r]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=i,e.axis=void 0,e.memo=void 0,e.elapsedTime=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const n=this.state,r=this.config;n._active||(this.reset(),this.computeInitial(),n._active=!0,n.target=e.target,n.currentTarget=e.currentTarget,n.lastOffset=r.from?PS(r.from,n):n.offset,n.offset=n.lastOffset),n.startTime=n.timeStamp=e.timeStamp}computeValues(e){const n=this.state;n._values=e,n.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:n,config:r,shared:i}=this;n.args=this.args;let o=0;if(e&&(n.event=e,r.preventDefault&&e.cancelable&&n.event.preventDefault(),n.type=e.type,i.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,i.locked=!!document.pointerLockElement,Object.assign(i,Cle(e)),i.down=i.pressed=i.buttons%2===1||i.touches>0,o=e.timeStamp-n.timeStamp,n.timeStamp=e.timeStamp,n.elapsedTime=n.timeStamp-n.startTime),n._active){const B=n._delta.map(Math.abs);io.addTo(n._distance,B)}this.axisIntent&&this.axisIntent(e);const[s,u]=n._movement,[d,c]=r.threshold,{_step:p,values:v}=n;if(r.hasCustomTransform?(p[0]===!1&&(p[0]=Math.abs(s)>=d&&v[0]),p[1]===!1&&(p[1]=Math.abs(u)>=c&&v[1])):(p[0]===!1&&(p[0]=Math.abs(s)>=d&&Math.sign(s)*d),p[1]===!1&&(p[1]=Math.abs(u)>=c&&Math.sign(u)*c)),n.intentional=p[0]!==!1||p[1]!==!1,!n.intentional)return;const y=[0,0];if(r.hasCustomTransform){const[B,F]=v;y[0]=p[0]!==!1?B-p[0]:0,y[1]=p[1]!==!1?F-p[1]:0}else y[0]=p[0]!==!1?s-p[0]:0,y[1]=p[1]!==!1?u-p[1]:0;this.restrictToAxis&&!n._blocked&&this.restrictToAxis(y);const g=n.offset,S=n._active&&!n._blocked||n.active;S&&(n.first=n._active&&!n.active,n.last=!n._active&&n.active,n.active=i[this.ingKey]=n._active,e&&(n.first&&("bounds"in r&&(n._bounds=PS(r.bounds,n)),this.setup&&this.setup()),n.movement=y,this.computeOffset()));const[E,C]=n.offset,[[_,O],[A,D]]=n._bounds;n.overflow=[E<_?-1:E>O?1:0,C<A?-1:C>D?1:0],n._movementBound[0]=n.overflow[0]?n._movementBound[0]===!1?n._movement[0]:n._movementBound[0]:!1,n._movementBound[1]=n.overflow[1]?n._movementBound[1]===!1?n._movement[1]:n._movementBound[1]:!1;const M=n._active?r.rubberband||[0,0]:[0,0];if(n.offset=hle(n._bounds,n.offset,M),n.delta=io.sub(n.offset,g),this.computeMovement(),S&&(!n.last||o>_le)){n.delta=io.sub(n.offset,g);const B=n.delta.map(Math.abs);io.addTo(n.distance,B),n.direction=n.delta.map(Math.sign),n._direction=n._delta.map(Math.sign),!n.first&&o>0&&(n.velocity=[B[0]/o,B[1]/o])}}emit(){const e=this.state,n=this.shared,r=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!r.triggerAllEvents)return;const i=this.handler(_r(_r(_r({},n),e),{},{[this.aliasKey]:e.values}));i!==void 0&&(e.memo=i)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function Ale([t,e],n){const r=Math.abs(t),i=Math.abs(e);if(r>i&&r>n)return"x";if(i>r&&i>n)return"y"}class Ole extends Tle{constructor(...e){super(...e),na(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=io.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=io.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const n=this.state,r=this.config;if(!n.axis&&e){const i=typeof r.axisThreshold=="object"?r.axisThreshold[F9(e)]:r.axisThreshold;n.axis=Ale(n._movement,i)}n._blocked=(r.lockDirection||!!r.axis)&&!n.axis||!!r.axis&&r.axis!==n.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0;break}}}const z9=t=>t,I9=.15,TT={enabled(t=!0){return t},eventOptions(t,e,n){return _r(_r({},n.shared.eventOptions),t)},preventDefault(t=!1){return t},triggerAllEvents(t=!1){return t},rubberband(t=0){switch(t){case!0:return[I9,I9];case!1:return[0,0];default:return io.toVector(t)}},from(t){if(typeof t=="function")return t;if(t!=null)return io.toVector(t)},transform(t,e,n){const r=t||n.shared.transform;if(this.hasCustomTransform=!!r,process.env.NODE_ENV==="development"){const i=r||z9;return o=>{const s=i(o);return!isFinite(s[0])||isFinite(s[1]),s}}return r||z9},threshold(t){return io.toVector(t,0)}};process.env.NODE_ENV==="development"&&Object.assign(TT,{domTarget(t){if(t!==void 0)throw Error("[@use-gesture]: `domTarget` option has been renamed to `target`.");return NaN},lockDirection(t){if(t!==void 0)throw Error("[@use-gesture]: `lockDirection` option has been merged with `axis`. Use it as in `{ axis: 'lock' }`");return NaN},initial(t){if(t!==void 0)throw Error("[@use-gesture]: `initial` option has been renamed to `from`.");return NaN}});const Dle=0,Eg=_r(_r({},TT),{},{axis(t,e,{axis:n}){if(this.lockDirection=n==="lock",!this.lockDirection)return n},axisThreshold(t=Dle){return t},bounds(t={}){if(typeof t=="function")return o=>Eg.bounds(t(o));if("current"in t)return()=>t.current;if(typeof HTMLElement=="function"&&t instanceof HTMLElement)return t;const{left:e=-1/0,right:n=1/0,top:r=-1/0,bottom:i=1/0}=t;return[[e,n],[r,i]]}}),LS=10,j9={ArrowRight:(t=1)=>[LS*t,0],ArrowLeft:(t=1)=>[-LS*t,0],ArrowUp:(t=1)=>[0,-LS*t],ArrowDown:(t=1)=>[0,LS*t]};class Mle extends Ole{constructor(...e){super(...e),na(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const n=e._bounds.getBoundingClientRect(),r=e.currentTarget.getBoundingClientRect(),i={left:n.left-r.left+e.offset[0],right:n.right-r.right+e.offset[0],top:n.top-r.top+e.offset[1],bottom:n.bottom-r.bottom+e.offset[1]};e._bounds=Eg.bounds(i)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const n=this.config,r=this.state;if(e.buttons!=null&&(Array.isArray(n.pointerButtons)?!n.pointerButtons.includes(e.buttons):n.pointerButtons!==-1&&n.pointerButtons!==e.buttons))return;const i=this.ctrl.setEventIds(e);n.pointerCapture&&e.target.setPointerCapture(e.pointerId),!(i&&i.size>1&&r._pointerActive)&&(this.start(e),this.setupPointer(e),r._pointerId=_T(e),r._pointerActive=!0,this.computeValues(L9(e)),this.computeInitial(),n.preventScrollAxis&&F9(e)!=="mouse"?(r._active=!1,this.setupScrollPrevention(e)):n.delay>0?(this.setupDelayTrigger(e),n.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const n=this.state;n._active=!0,n._preventScroll=!0,n._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const n=this.state,r=this.config;if(!n._pointerActive||n.type===e.type&&e.timeStamp===n.timeStamp)return;const i=_T(e);if(n._pointerId!==void 0&&i!==n._pointerId)return;const o=L9(e);if(document.pointerLockElement===e.target?n._delta=[e.movementX,e.movementY]:(n._delta=io.sub(o,n._values),this.computeValues(o)),io.addTo(n._movement,n._delta),this.compute(e),n._delayed&&n.intentional){this.timeoutStore.remove("dragDelay"),n.active=!1,this.startPointerDrag(e);return}if(r.preventScrollAxis&&!n._preventScroll)if(n.axis)if(n.axis===r.preventScrollAxis||r.preventScrollAxis==="xy"){n._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}else return;this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch{process.env.NODE_ENV}const n=this.state,r=this.config;if(!n._active||!n._pointerActive)return;const i=_T(e);if(n._pointerId!==void 0&&i!==n._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,s]=n._distance;if(n.tap=o<=r.tapsThreshold&&s<=r.tapsThreshold,n.tap&&r.filterTaps)n._force=!0;else{const[u,d]=n.direction,[c,p]=n.velocity,[v,y]=n.movement,[g,S]=r.swipe.velocity,[E,C]=r.swipe.distance,_=r.swipe.duration;n.elapsedTime<_&&(Math.abs(c)>g&&Math.abs(v)>E&&(n.swipe[0]=u),Math.abs(p)>S&&Math.abs(y)>C&&(n.swipe[1]=d))}this.emit()}pointerClick(e){this.state.tap||(e.preventDefault(),e.stopPropagation())}setupPointer(e){const n=this.config,r=n.device;if(process.env.NODE_ENV==="development")try{if(r==="pointer"&&n.preventScrollDelay===void 0){const i="uv"in e?e.sourceEvent.currentTarget:e.currentTarget;window.getComputedStyle(i).touchAction}}catch{}n.pointerLock&&e.currentTarget.requestPointerLock(),n.pointerCapture||(this.eventStore.add(this.sharedConfig.window,r,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,r,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,Rle(e);const n=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",n),this.eventStore.add(this.sharedConfig.window,"touch","cancel",n),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(e)},this.config.delay)}keyDown(e){const n=j9[e.key];if(n){const r=this.state,i=e.shiftKey?10:e.altKey?.1:1;this.start(e),r._delta=n(i),r._keyboardActive=!0,io.addTo(r._movement,r._delta),this.compute(e),this.emit()}}keyUp(e){e.key in j9&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const n=this.config.device;e(n,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(n,"change",this.pointerMove.bind(this)),e(n,"end",this.pointerUp.bind(this)),e(n,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function Rle(t){"persist"in t&&typeof t.persist=="function"&&t.persist()}const kg=typeof window<"u"&&window.document&&window.document.createElement;function Nle(){return kg&&"ontouchstart"in window}function H9(){return Nle()||kg&&window.navigator.maxTouchPoints>1}function Fle(){return kg&&"onpointerdown"in window}function Ple(){return kg&&"exitPointerLock"in window.document}function Lle(){try{return"constructor"in GestureEvent}catch{return!1}}const ns={isBrowser:kg,gesture:Lle(),touch:H9(),touchscreen:H9(),pointer:Fle(),pointerLock:Ple()},Ble=250,zle=180,Ile=.5,jle=50,Hle=250,U9={mouse:0,touch:0,pen:8},V9=_r(_r({},Eg),{},{device(t,e,{pointer:{touch:n=!1,lock:r=!1,mouse:i=!1}={}}){return this.pointerLock=r&&ns.pointerLock,ns.touch&&n?"touch":this.pointerLock?"mouse":ns.pointer&&!i?"pointer":ns.touch?"touch":"mouse"},preventScrollAxis(t,e,{preventScroll:n}){if(this.preventScrollDelay=typeof n=="number"?n:n||n===void 0&&t?Ble:void 0,!(!ns.touchscreen||n===!1))return t||(n!==void 0?"y":void 0)},pointerCapture(t,e,{pointer:{capture:n=!0,buttons:r=1}={}}){return this.pointerButtons=r,!this.pointerLock&&this.device==="pointer"&&n},keys(t=!0){return t},threshold(t,e,{filterTaps:n=!1,tapsThreshold:r=3,axis:i=void 0}){const o=io.toVector(t,n?r:i?1:0);return this.filterTaps=n,this.tapsThreshold=r,o},swipe({velocity:t=Ile,distance:e=jle,duration:n=Hle}={}){return{velocity:this.transform(io.toVector(t)),distance:this.transform(io.toVector(e)),duration:n}},delay(t=0){switch(t){case!0:return zle;case!1:return 0;default:return t}},axisThreshold(t){return t?_r(_r({},U9),t):U9}});process.env.NODE_ENV==="development"&&Object.assign(V9,{useTouch(t){if(t!==void 0)throw Error("[@use-gesture]: `useTouch` option has been renamed to `pointer.touch`. Use it as in `{ pointer: { touch: true } }`.");return NaN},experimental_preventWindowScrollY(t){if(t!==void 0)throw Error("[@use-gesture]: `experimental_preventWindowScrollY` option has been renamed to `preventScroll`.");return NaN},swipeVelocity(t){if(t!==void 0)throw Error("[@use-gesture]: `swipeVelocity` option has been renamed to `swipe.velocity`. Use it as in `{ swipe: { velocity: 0.5 } }`.");return NaN},swipeDistance(t){if(t!==void 0)throw Error("[@use-gesture]: `swipeDistance` option has been renamed to `swipe.distance`. Use it as in `{ swipe: { distance: 50 } }`.");return NaN},swipeDuration(t){if(t!==void 0)throw Error("[@use-gesture]: `swipeDuration` option has been renamed to `swipe.duration`. Use it as in `{ swipe: { duration: 250 } }`.");return NaN}}),_r(_r({},TT),{},{device(t,e,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!ns.touch&&ns.gesture)return"gesture";if(ns.touch&&r)return"touch";if(ns.touchscreen){if(ns.pointer)return"pointer";if(ns.touch)return"touch"}},bounds(t,e,{scaleBounds:n={},angleBounds:r={}}){const i=s=>{const u=B9(PS(n,s),{min:-1/0,max:1/0});return[u.min,u.max]},o=s=>{const u=B9(PS(r,s),{min:-1/0,max:1/0});return[u.min,u.max]};return typeof n!="function"&&typeof r!="function"?[i(),o()]:s=>[i(s),o(s)]},threshold(t,e,n){return this.lockDirection=n.axis==="lock",io.toVector(t,this.lockDirection?[.1,3]:0)},modifierKey(t){return t===void 0?"ctrlKey":t}}),_r(_r({},Eg),{},{mouseOnly:(t=!0)=>t}),_r(_r({},Eg),{},{mouseOnly:(t=!0)=>t});const $9=new Map,AT=new Map;function Ule(t){$9.set(t.key,t.engine),AT.set(t.key,t.resolver)}const Vle={key:"drag",engine:Mle,resolver:V9};function $le(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function qle(t,e){if(t==null)return{};var n=$le(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}const Yle={target(t){if(t)return()=>"current"in t?t.current:t},enabled(t=!0){return t},window(t=ns.isBrowser?window:void 0){return t},eventOptions({passive:t=!0,capture:e=!1}={}){return{passive:t,capture:e}},transform(t){return t}},Kle=["target","eventOptions","window","enabled","transform"];function BS(t={},e){const n={};for(const[r,i]of Object.entries(e))switch(typeof i){case"function":if(process.env.NODE_ENV==="development"){const o=i.call(n,t[r],r,t);Number.isNaN(o)||(n[r]=o)}else n[r]=i.call(n,t[r],r,t);break;case"object":n[r]=BS(t[r],i);break;case"boolean":i&&(n[r]=t[r]);break}return n}function Wle(t,e){const n=t,{target:r,eventOptions:i,window:o,enabled:s,transform:u}=n,d=qle(n,Kle),c={shared:BS({target:r,eventOptions:i,window:o,enabled:s,transform:u},Yle)};if(e){const p=AT.get(e);c[e]=BS(_r({shared:c.shared},d),p)}else for(const p in d){const v=AT.get(p);if(v)c[p]=BS(_r({shared:c.shared},d[p]),v);else if(process.env.NODE_ENV==="development"&&!["drag","pinch","scroll","wheel","move","hover"].includes(p)&&p==="domTarget")throw Error("[@use-gesture]: `domTarget` option has been renamed to `target`.")}return c}class q9{constructor(e,n){na(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=n}add(e,n,r,i,o){const s=this._listeners,u=xle(n,r),d=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},c=_r(_r({},d),o);e.addEventListener(u,i,c);const p=()=>{e.removeEventListener(u,i,c),s.delete(p)};return s.add(p),p}clean(){this._listeners.forEach(e=>e()),this._listeners.clear()}}class Gle{constructor(){na(this,"_timeouts",new Map)}add(e,n,r=140,...i){this.remove(e),this._timeouts.set(e,window.setTimeout(n,r,...i))}remove(e){const n=this._timeouts.get(e);n&&window.clearTimeout(n)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}let Qle=class{constructor(e){na(this,"gestures",new Set),na(this,"_targetEventStore",new q9(this)),na(this,"gestureEventStores",{}),na(this,"gestureTimeoutStores",{}),na(this,"handlers",{}),na(this,"config",{}),na(this,"pointerIds",new Set),na(this,"touchIds",new Set),na(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),Xle(this,e)}setEventIds(e){if(FS(e))return this.touchIds=new Set(wle(e)),this.touchIds;if("pointerId"in e)return e.type==="pointerup"||e.type==="pointercancel"?this.pointerIds.delete(e.pointerId):e.type==="pointerdown"&&this.pointerIds.add(e.pointerId),this.pointerIds}applyHandlers(e,n){this.handlers=e,this.nativeHandlers=n}applyConfig(e,n){this.config=Wle(e,n)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const n=this.config.shared,r={};let i;if(!(n.target&&(i=n.target(),!i))){if(n.enabled){for(const s of this.gestures){const u=this.config[s],d=Y9(r,u.eventOptions,!!i);if(u.enabled){const c=$9.get(s);new c(this,e,s).bind(d)}}const o=Y9(r,n.eventOptions,!!i);for(const s in this.nativeHandlers)o(s,"",u=>this.nativeHandlers[s](_r(_r({},this.state.shared),{},{event:u,args:e})),void 0,!0)}for(const o in r)r[o]=kle(...r[o]);if(!i)return r;for(const o in r){const{device:s,capture:u,passive:d}=yle(o);this._targetEventStore.add(i,s,"",r[o],{capture:u,passive:d})}}}};function Hp(t,e){t.gestures.add(e),t.gestureEventStores[e]=new q9(t,e),t.gestureTimeoutStores[e]=new Gle}function Xle(t,e){e.drag&&Hp(t,"drag"),e.wheel&&Hp(t,"wheel"),e.scroll&&Hp(t,"scroll"),e.move&&Hp(t,"move"),e.pinch&&Hp(t,"pinch"),e.hover&&Hp(t,"hover")}const Y9=(t,e,n)=>(r,i,o,s={},u=!1)=>{var d,c;const p=(d=s.capture)!==null&&d!==void 0?d:e.capture,v=(c=s.passive)!==null&&c!==void 0?c:e.passive;let y=u?r:vle(r,i,p);n&&v&&(y+="Passive"),t[y]=t[y]||[],t[y].push(o)};function Zle(t,e={},n,r){const i=G.useMemo(()=>new Qle(t),[]);if(i.applyHandlers(t,r),i.applyConfig(e,n),G.useEffect(i.effect.bind(i)),G.useEffect(()=>i.clean.bind(i),[]),e.target===void 0)return i.bind.bind(i)}function Jle(t,e){return Ule(Vle),Zle({drag:t},e||{},"drag")}var OT=Tg(),Ut=t=>_g(t,OT),DT=Tg();Ut.write=t=>_g(t,DT);var zS=Tg();Ut.onStart=t=>_g(t,zS);var MT=Tg();Ut.onFrame=t=>_g(t,MT);var RT=Tg();Ut.onFinish=t=>_g(t,RT);var Up=[];Ut.setTimeout=(t,e)=>{const n=Ut.now()+e,r=()=>{const o=Up.findIndex(s=>s.cancel==r);~o&&Up.splice(o,1),Nc-=~o?1:0},i={time:n,handler:t,cancel:r};return Up.splice(K9(n),0,i),Nc+=1,W9(),i};var K9=t=>~(~Up.findIndex(e=>e.time>t)||~Up.length);Ut.cancel=t=>{zS.delete(t),MT.delete(t),RT.delete(t),OT.delete(t),DT.delete(t)},Ut.sync=t=>{FT=!0,Ut.batchedUpdates(t),FT=!1},Ut.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function r(...i){e=i,Ut.onStart(n)}return r.handler=t,r.cancel=()=>{zS.delete(n),e=null},r};var NT=typeof window<"u"?window.requestAnimationFrame:()=>{};Ut.use=t=>NT=t,Ut.now=typeof performance<"u"?()=>performance.now():Date.now,Ut.batchedUpdates=t=>t(),Ut.catch=console.error,Ut.frameLoop="always",Ut.advance=()=>{Ut.frameLoop!=="demand"||Q9()};var Rc=-1,Nc=0,FT=!1;function _g(t,e){FT?(e.delete(t),t(0)):(e.add(t),W9())}function W9(){Rc<0&&(Rc=0,Ut.frameLoop!=="demand"&&NT(G9))}function eue(){Rc=-1}function G9(){~Rc&&(NT(G9),Ut.batchedUpdates(Q9))}function Q9(){const t=Rc;Rc=Ut.now();const e=K9(Rc);if(e&&(X9(Up.splice(0,e),n=>n.handler()),Nc-=e),!Nc){eue();return}zS.flush(),OT.flush(t?Math.min(64,Rc-t):16.667),MT.flush(),DT.flush(),RT.flush()}function Tg(){let t=new Set,e=t;return{add(n){Nc+=e==t&&!t.has(n)?1:0,t.add(n)},delete(n){return Nc-=e==t&&t.has(n)?1:0,t.delete(n)},flush(n){e.size&&(t=new Set,Nc-=e.size,X9(e,r=>r(n)&&t.add(r)),Nc+=t.size,e=t)}}}function X9(t,e){t.forEach(n=>{try{e(n)}catch(r){Ut.catch(r)}})}var tue=Object.defineProperty,nue=(t,e)=>{for(var n in e)tue(t,n,{get:e[n],enumerable:!0})},Ts={};nue(Ts,{assign:()=>iue,colors:()=>Fc,createStringInterpolator:()=>BT,skipAnimation:()=>J9,to:()=>Z9,willAdvance:()=>zT});function PT(){}var rue=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),Ge={arr:Array.isArray,obj:t=>!!t&&t.constructor.name==="Object",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0};function gu(t,e){if(Ge.arr(t)){if(!Ge.arr(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return t===e}var fn=(t,e)=>t.forEach(e);function bl(t,e,n){if(Ge.arr(t)){for(let r=0;r<t.length;r++)e.call(n,t[r],`${r}`);return}for(const r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r)}var Ma=t=>Ge.und(t)?[]:Ge.arr(t)?t:[t];function Ag(t,e){if(t.size){const n=Array.from(t);t.clear(),fn(n,e)}}var Og=(t,...e)=>Ag(t,n=>n(...e)),LT=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),BT,Z9,Fc=null,J9=!1,zT=PT,iue=t=>{t.to&&(Z9=t.to),t.now&&(Ut.now=t.now),t.colors!==void 0&&(Fc=t.colors),t.skipAnimation!=null&&(J9=t.skipAnimation),t.createStringInterpolator&&(BT=t.createStringInterpolator),t.requestAnimationFrame&&Ut.use(t.requestAnimationFrame),t.batchedUpdates&&(Ut.batchedUpdates=t.batchedUpdates),t.willAdvance&&(zT=t.willAdvance),t.frameLoop&&(Ut.frameLoop=t.frameLoop)},Dg=new Set,rs=[],IT=[],IS=0,jS={get idle(){return!Dg.size&&!rs.length},start(t){IS>t.priority?(Dg.add(t),Ut.onStart(oue)):(eB(t),Ut(jT))},advance:jT,sort(t){if(IS)Ut.onFrame(()=>jS.sort(t));else{const e=rs.indexOf(t);~e&&(rs.splice(e,1),tB(t))}},clear(){rs=[],Dg.clear()}};function oue(){Dg.forEach(eB),Dg.clear(),Ut(jT)}function eB(t){rs.includes(t)||tB(t)}function tB(t){rs.splice(aue(rs,e=>e.priority>t.priority),0,t)}function jT(t){const e=IT;for(let n=0;n<rs.length;n++){const r=rs[n];IS=r.priority,r.idle||(zT(r),r.advance(t),r.idle||e.push(r))}return IS=0,IT=rs,IT.length=0,rs=e,rs.length>0}function aue(t,e){const n=t.findIndex(e);return n<0?t.length:n}var sue=(t,e,n)=>Math.min(Math.max(n,t),e),lue={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},As="[-+]?\\d*\\.?\\d+",HS=As+"%";function US(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var uue=new RegExp("rgb"+US(As,As,As)),cue=new RegExp("rgba"+US(As,As,As,As)),fue=new RegExp("hsl"+US(As,HS,HS)),due=new RegExp("hsla"+US(As,HS,HS,As)),hue=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,pue=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,mue=/^#([0-9a-fA-F]{6})$/,vue=/^#([0-9a-fA-F]{8})$/;function gue(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=mue.exec(t))?parseInt(e[1]+"ff",16)>>>0:Fc&&Fc[t]!==void 0?Fc[t]:(e=uue.exec(t))?(Vp(e[1])<<24|Vp(e[2])<<16|Vp(e[3])<<8|255)>>>0:(e=cue.exec(t))?(Vp(e[1])<<24|Vp(e[2])<<16|Vp(e[3])<<8|iB(e[4]))>>>0:(e=hue.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=vue.exec(t))?parseInt(e[1],16)>>>0:(e=pue.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=fue.exec(t))?(nB(rB(e[1]),VS(e[2]),VS(e[3]))|255)>>>0:(e=due.exec(t))?(nB(rB(e[1]),VS(e[2]),VS(e[3]))|iB(e[4]))>>>0:null}function HT(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function nB(t,e,n){const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,o=HT(i,r,t+1/3),s=HT(i,r,t),u=HT(i,r,t-1/3);return Math.round(o*255)<<24|Math.round(s*255)<<16|Math.round(u*255)<<8}function Vp(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function rB(t){return(parseFloat(t)%360+360)%360/360}function iB(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function VS(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function oB(t){let e=gue(t);if(e===null)return t;e=e||0;const n=(e&4278190080)>>>24,r=(e&16711680)>>>16,i=(e&65280)>>>8,o=(e&255)/255;return`rgba(${n}, ${r}, ${i}, ${o})`}var Mg=(t,e,n)=>{if(Ge.fun(t))return t;if(Ge.arr(t))return Mg({range:t,output:e,extrapolate:n});if(Ge.str(t.output[0]))return BT(t);const r=t,i=r.output,o=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",u=r.extrapolateRight||r.extrapolate||"extend",d=r.easing||(c=>c);return c=>{const p=xue(c,o);return yue(c,o[p],o[p+1],i[p],i[p+1],d,s,u,r.map)}};function yue(t,e,n,r,i,o,s,u,d){let c=d?d(t):t;if(c<e){if(s==="identity")return c;s==="clamp"&&(c=e)}if(c>n){if(u==="identity")return c;u==="clamp"&&(c=n)}return r===i?r:e===n?t<=e?r:i:(e===-1/0?c=-c:n===1/0?c=c-e:c=(c-e)/(n-e),c=o(c),r===-1/0?c=-c:i===1/0?c=c+r:c=c*(i-r)+r,c)}function xue(t,e){for(var n=1;n<e.length-1&&!(e[n]>=t);++n);return n-1}var bue=(t,e="end")=>n=>{n=e==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*t,i=e==="end"?Math.floor(r):Math.ceil(r);return sue(0,1,i/t)},$S=1.70158,qS=$S*1.525,aB=$S+1,sB=2*Math.PI/3,lB=2*Math.PI/4.5,YS=t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,Sue={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>1-(1-t)*(1-t),easeInOutQuad:t=>t<.5?2*t*t:1-Math.pow(-2*t+2,2)/2,easeInCubic:t=>t*t*t,easeOutCubic:t=>1-Math.pow(1-t,3),easeInOutCubic:t=>t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1-Math.pow(1-t,4),easeInOutQuart:t=>t<.5?8*t*t*t*t:1-Math.pow(-2*t+2,4)/2,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1-Math.pow(1-t,5),easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1-Math.pow(-2*t+2,5)/2,easeInSine:t=>1-Math.cos(t*Math.PI/2),easeOutSine:t=>Math.sin(t*Math.PI/2),easeInOutSine:t=>-(Math.cos(Math.PI*t)-1)/2,easeInExpo:t=>t===0?0:Math.pow(2,10*t-10),easeOutExpo:t=>t===1?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>t===0?0:t===1?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2,easeInCirc:t=>1-Math.sqrt(1-Math.pow(t,2)),easeOutCirc:t=>Math.sqrt(1-Math.pow(t-1,2)),easeInOutCirc:t=>t<.5?(1-Math.sqrt(1-Math.pow(2*t,2)))/2:(Math.sqrt(1-Math.pow(-2*t+2,2))+1)/2,easeInBack:t=>aB*t*t*t-$S*t*t,easeOutBack:t=>1+aB*Math.pow(t-1,3)+$S*Math.pow(t-1,2),easeInOutBack:t=>t<.5?Math.pow(2*t,2)*((qS+1)*2*t-qS)/2:(Math.pow(2*t-2,2)*((qS+1)*(t*2-2)+qS)+2)/2,easeInElastic:t=>t===0?0:t===1?1:-Math.pow(2,10*t-10)*Math.sin((t*10-10.75)*sB),easeOutElastic:t=>t===0?0:t===1?1:Math.pow(2,-10*t)*Math.sin((t*10-.75)*sB)+1,easeInOutElastic:t=>t===0?0:t===1?1:t<.5?-(Math.pow(2,20*t-10)*Math.sin((20*t-11.125)*lB))/2:Math.pow(2,-20*t+10)*Math.sin((20*t-11.125)*lB)/2+1,easeInBounce:t=>1-YS(1-t),easeOutBounce:YS,easeInOutBounce:t=>t<.5?(1-YS(1-2*t))/2:(1+YS(2*t-1))/2,steps:bue},Rg=Symbol.for("FluidValue.get"),$p=Symbol.for("FluidValue.observers"),is=t=>!!(t&&t[Rg]),ra=t=>t&&t[Rg]?t[Rg]():t,uB=t=>t[$p]||null;function wue(t,e){t.eventObserved?t.eventObserved(e):t(e)}function Ng(t,e){const n=t[$p];n&&n.forEach(r=>{wue(r,e)})}var cB=class{constructor(t){if(!t&&!(t=this.get))throw Error("Unknown getter");Cue(this,t)}},Cue=(t,e)=>fB(t,Rg,e);function qp(t,e){if(t[Rg]){let n=t[$p];n||fB(t,$p,n=new Set),n.has(e)||(n.add(e),t.observerAdded&&t.observerAdded(n.size,e))}return e}function Fg(t,e){const n=t[$p];if(n&&n.has(e)){const r=n.size-1;r?n.delete(e):t[$p]=null,t.observerRemoved&&t.observerRemoved(r,e)}}var fB=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),KS=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Eue=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,dB=new RegExp(`(${KS.source})(%|[a-z]+)`,"i"),kue=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,WS=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,hB=t=>{const[e,n]=_ue(t);if(!e||LT())return t;const r=window.getComputedStyle(document.documentElement).getPropertyValue(e);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||t}else{if(n&&WS.test(n))return hB(n);if(n)return n}return t},_ue=t=>{const e=WS.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]},UT,Tue=(t,e,n,r,i)=>`rgba(${Math.round(e)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,pB=t=>{UT||(UT=Fc?new RegExp(`(${Object.keys(Fc).join("|")})(?!\\w)`,"g"):/^\b$/);const e=t.output.map(o=>ra(o).replace(WS,hB).replace(Eue,oB).replace(UT,oB)),n=e.map(o=>o.match(KS).map(Number)),i=n[0].map((o,s)=>n.map(u=>{if(!(s in u))throw Error('The arity of each "output" value must be equal');return u[s]})).map(o=>Mg({...t,output:o}));return o=>{var d;const s=!dB.test(e[0])&&((d=e.find(c=>dB.test(c)))==null?void 0:d.replace(KS,""));let u=0;return e[0].replace(KS,()=>`${i[u++](o)}${s||""}`).replace(kue,Tue)}},VT="react-spring: ",mB=t=>{const e=t;let n=!1;if(typeof e!="function")throw new TypeError(`${VT}once requires a function parameter`);return(...r)=>{n||(e(...r),n=!0)}},Aue=mB(console.warn);function Oue(){Aue(`${VT}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Due=mB(console.warn);function Mue(){Due(`${VT}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function GS(t){return Ge.str(t)&&(t[0]=="#"||/\d/.test(t)||!LT()&&WS.test(t)||t in(Fc||{}))}var $T=LT()?G.useEffect:G.useLayoutEffect,Rue=()=>{const t=G.useRef(!1);return $T(()=>(t.current=!0,()=>{t.current=!1}),[]),t};function vB(){const t=G.useState()[1],e=Rue();return()=>{e.current&&t(Math.random())}}function Nue(t,e){const[n]=G.useState(()=>({inputs:e,result:t()})),r=G.useRef(),i=r.current;let o=i;return o?e&&o.inputs&&Fue(e,o.inputs)||(o={inputs:e,result:t()}):o=n,G.useEffect(()=>{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}function Fue(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}var gB=t=>G.useEffect(t,Pue),Pue=[];function yB(t){const e=G.useRef();return G.useEffect(()=>{e.current=t}),e.current}var Pg=Symbol.for("Animated:node"),Lue=t=>!!t&&t[Pg]===t,Sl=t=>t&&t[Pg],qT=(t,e)=>rue(t,Pg,e),QS=t=>t&&t[Pg]&&t[Pg].getPayload(),xB=class{constructor(){qT(this,this)}getPayload(){return this.payload||[]}},Lg=class extends xB{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,Ge.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new Lg(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,e){return Ge.num(t)&&(this.lastPosition=t,e&&(t=Math.round(t/e)*e,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,Ge.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},Bg=class extends Lg{constructor(t){super(0),this._string=null,this._toString=Mg({output:[t,t]})}static create(t){return new Bg(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(Ge.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=Mg({output:[this.getValue(),t]})),this._value=0,super.reset()}},XS={dependencies:null},ZS=class extends xB{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){const e={};return bl(this.source,(n,r)=>{Lue(n)?e[r]=n.getValue(t):is(n)?e[r]=ra(n):t||(e[r]=n)}),e}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&fn(this.payload,t=>t.reset())}_makePayload(t){if(t){const e=new Set;return bl(t,this._addToPayload,e),Array.from(e)}}_addToPayload(t){XS.dependencies&&is(t)&&XS.dependencies.add(t);const e=QS(t);e&&fn(e,n=>this.add(n))}},bB=class extends ZS{constructor(t){super(t)}static create(t){return new bB(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const e=this.getPayload();return t.length==e.length?e.map((n,r)=>n.setValue(t[r])).some(Boolean):(super.setValue(t.map(Bue)),!0)}};function Bue(t){return(GS(t)?Bg:Lg).create(t)}function YT(t){const e=Sl(t);return e?e.constructor:Ge.arr(t)?bB:GS(t)?Bg:Lg}var SB=(t,e)=>{const n=!Ge.fun(t)||t.prototype&&t.prototype.isReactComponent;return G.forwardRef((r,i)=>{const o=G.useRef(null),s=n&&G.useCallback(S=>{o.current=jue(i,S)},[i]),[u,d]=Iue(r,e),c=vB(),p=()=>{const S=o.current;if(n&&!S)return;(S?e.applyAnimatedValues(S,u.getValue(!0)):!1)===!1&&c()},v=new zue(p,d),y=G.useRef();$T(()=>(y.current=v,fn(d,S=>qp(S,v)),()=>{y.current&&(fn(y.current.deps,S=>Fg(S,y.current)),Ut.cancel(y.current.update))})),G.useEffect(p,[]),gB(()=>()=>{const S=y.current;fn(S.deps,E=>Fg(E,S))});const g=e.getComponentProps(u.getValue());return _e.createElement(t,{...g,ref:s})})},zue=class{constructor(t,e){this.update=t,this.deps=e}eventObserved(t){t.type=="change"&&Ut.write(this.update)}};function Iue(t,e){const n=new Set;return XS.dependencies=n,t.style&&(t={...t,style:e.createAnimatedStyle(t.style)}),t=new ZS(t),XS.dependencies=null,[t,n]}function jue(t,e){return t&&(Ge.fun(t)?t(e):t.current=e),e}var wB=Symbol.for("AnimatedComponent"),Hue=(t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:n=i=>new ZS(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:e,createAnimatedStyle:n,getComponentProps:r},o=s=>{const u=CB(s)||"Anonymous";return Ge.str(s)?s=o[s]||(o[s]=SB(s,i)):s=s[wB]||(s[wB]=SB(s,i)),s.displayName=`Animated(${u})`,s};return bl(t,(s,u)=>{Ge.arr(t)&&(u=CB(s)),o[u]=o(s)}),{animated:o}},CB=t=>Ge.str(t)?t:t&&Ge.str(t.displayName)?t.displayName:Ge.fun(t)&&t.name||null;function Fd(t,...e){return Ge.fun(t)?t(...e):t}var zg=(t,e)=>t===!0||!!(e&&t&&(Ge.fun(t)?t(e):Ma(t).includes(e))),EB=(t,e)=>Ge.obj(t)?e&&t[e]:t,kB=(t,e)=>t.default===!0?t[e]:t.default?t.default[e]:void 0,Uue=t=>t,KT=(t,e=Uue)=>{let n=Vue;t.default&&t.default!==!0&&(t=t.default,n=Object.keys(t));const r={};for(const i of n){const o=e(t[i],i);Ge.und(o)||(r[i]=o)}return r},Vue=["config","onProps","onStart","onChange","onPause","onResume","onRest"],$ue={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function que(t){const e={};let n=0;if(bl(t,(r,i)=>{$ue[i]||(e[i]=r,n++)}),n)return e}function _B(t){const e=que(t);if(e){const n={to:e};return bl(t,(r,i)=>i in e||(n[i]=r)),n}return{...t}}function Ig(t){return t=ra(t),Ge.arr(t)?t.map(Ig):GS(t)?Ts.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function Yue(t){for(const e in t)return!0;return!1}function WT(t){return Ge.fun(t)||Ge.arr(t)&&Ge.obj(t[0])}function Kue(t,e){var n;(n=t.ref)==null||n.delete(t),e==null||e.delete(t)}function Wue(t,e){var n;e&&t.ref!==e&&((n=t.ref)==null||n.delete(t),e.add(t),t.ref=e)}var Gue={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},GT={...Gue.default,mass:1,damping:1,easing:Sue.linear,clamp:!1},Que=class{constructor(){this.velocity=0,Object.assign(this,GT)}};function Xue(t,e,n){n&&(n={...n},TB(n,e),e={...n,...e}),TB(t,e),Object.assign(t,e);for(const s in GT)t[s]==null&&(t[s]=GT[s]);let{frequency:r,damping:i}=t;const{mass:o}=t;return Ge.und(r)||(r<.01&&(r=.01),i<0&&(i=0),t.tension=Math.pow(2*Math.PI/r,2)*o,t.friction=4*Math.PI*i*o/r),t}function TB(t,e){if(!Ge.und(e.decay))t.duration=void 0;else{const n=!Ge.und(e.tension)||!Ge.und(e.friction);(n||!Ge.und(e.frequency)||!Ge.und(e.damping)||!Ge.und(e.mass))&&(t.duration=void 0,t.decay=void 0),n&&(t.frequency=void 0)}}var AB=[],Zue=class{constructor(){this.changed=!1,this.values=AB,this.toValues=null,this.fromValues=AB,this.config=new Que,this.immediate=!1}};function OB(t,{key:e,props:n,defaultProps:r,state:i,actions:o}){return new Promise((s,u)=>{let d,c,p=zg(n.cancel??(r==null?void 0:r.cancel),e);if(p)g();else{Ge.und(n.pause)||(i.paused=zg(n.pause,e));let S=r==null?void 0:r.pause;S!==!0&&(S=i.paused||zg(S,e)),d=Fd(n.delay||0,e),S?(i.resumeQueue.add(y),o.pause()):(o.resume(),y())}function v(){i.resumeQueue.add(y),i.timeouts.delete(c),c.cancel(),d=c.time-Ut.now()}function y(){d>0&&!Ts.skipAnimation?(i.delayed=!0,c=Ut.setTimeout(g,d),i.pauseQueue.add(v),i.timeouts.add(c)):g()}function g(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(v),i.timeouts.delete(c),t<=(i.cancelId||0)&&(p=!0);try{o.start({...n,callId:t,cancel:p},s)}catch(S){u(S)}}})}var QT=(t,e)=>e.length==1?e[0]:e.some(n=>n.cancelled)?Yp(t.get()):e.every(n=>n.noop)?DB(t.get()):Os(t.get(),e.every(n=>n.finished)),DB=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),Os=(t,e,n=!1)=>({value:t,finished:e,cancelled:n}),Yp=t=>({value:t,cancelled:!0,finished:!1});function MB(t,e,n,r){const{callId:i,parentId:o,onRest:s}=e,{asyncTo:u,promise:d}=n;return!o&&t===u&&!e.reset?d:n.promise=(async()=>{n.asyncId=i,n.asyncTo=t;const c=KT(e,(C,_)=>_==="onRest"?void 0:C);let p,v;const y=new Promise((C,_)=>(p=C,v=_)),g=C=>{const _=i<=(n.cancelId||0)&&Yp(r)||i!==n.asyncId&&Os(r,!1);if(_)throw C.result=_,v(C),C},S=(C,_)=>{const O=new RB,A=new NB;return(async()=>{if(Ts.skipAnimation)throw jg(n),A.result=Os(r,!1),v(A),A;g(O);const D=Ge.obj(C)?{...C}:{..._,to:C};D.parentId=i,bl(c,(B,F)=>{Ge.und(D[F])&&(D[F]=B)});const M=await r.start(D);return g(O),n.paused&&await new Promise(B=>{n.resumeQueue.add(B)}),M})()};let E;if(Ts.skipAnimation)return jg(n),Os(r,!1);try{let C;Ge.arr(t)?C=(async _=>{for(const O of _)await S(O)})(t):C=Promise.resolve(t(S,r.stop.bind(r))),await Promise.all([C.then(p),y]),E=Os(r.get(),!0,!1)}catch(C){if(C instanceof RB)E=C.result;else if(C instanceof NB)E=C.result;else throw C}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?u:void 0,n.promise=o?d:void 0)}return Ge.fun(s)&&Ut.batchedUpdates(()=>{s(E,r,r.item)}),E})()}function jg(t,e){Ag(t.timeouts,n=>n.cancel()),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}var RB=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},NB=class extends Error{constructor(){super("SkipAnimationSignal")}},XT=t=>t instanceof ZT,Jue=1,ZT=class extends cB{constructor(){super(...arguments),this.id=Jue++,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){const t=Sl(this);return t&&t.getValue()}to(...t){return Ts.to(this,t)}interpolate(...t){return Oue(),Ts.to(this,t)}toJSON(){return this.get()}observerAdded(t){t==1&&this._attach()}observerRemoved(t){t==0&&this._detach()}_attach(){}_detach(){}_onChange(t,e=!1){Ng(this,{type:"change",parent:this,value:t,idle:e})}_onPriorityChange(t){this.idle||jS.sort(this),Ng(this,{type:"priority",parent:this,priority:t})}},Pd=Symbol.for("SpringPhase"),FB=1,JT=2,e8=4,t8=t=>(t[Pd]&FB)>0,Pc=t=>(t[Pd]&JT)>0,Hg=t=>(t[Pd]&e8)>0,PB=(t,e)=>e?t[Pd]|=JT|FB:t[Pd]&=~JT,LB=(t,e)=>e?t[Pd]|=e8:t[Pd]&=~e8,ece=class extends ZT{constructor(t,e){if(super(),this.animation=new Zue,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Ge.und(t)||!Ge.und(e)){const n=Ge.obj(t)?{...t}:{...e,from:t};Ge.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Pc(this)||this._state.asyncTo)||Hg(this)}get goal(){return ra(this.animation.to)}get velocity(){const t=Sl(this);return t instanceof Lg?t.lastVelocity||0:t.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return t8(this)}get isAnimating(){return Pc(this)}get isPaused(){return Hg(this)}get isDelayed(){return this._state.delayed}advance(t){let e=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:o}=r,s=QS(r.to);!s&&is(r.to)&&(i=Ma(ra(r.to))),r.values.forEach((c,p)=>{if(c.done)return;const v=c.constructor==Bg?1:s?s[p].lastPosition:i[p];let y=r.immediate,g=v;if(!y){if(g=c.lastPosition,o.tension<=0){c.done=!0;return}let S=c.elapsedTime+=t;const E=r.fromValues[p],C=c.v0!=null?c.v0:c.v0=Ge.arr(o.velocity)?o.velocity[p]:o.velocity;let _;const O=o.precision||(E==v?.005:Math.min(1,Math.abs(v-E)*.001));if(Ge.und(o.duration))if(o.decay){const A=o.decay===!0?.998:o.decay,D=Math.exp(-(1-A)*S);g=E+C/(1-A)*(1-D),y=Math.abs(c.lastPosition-g)<=O,_=C*D}else{_=c.lastVelocity==null?C:c.lastVelocity;const A=o.restVelocity||O/10,D=o.clamp?0:o.bounce,M=!Ge.und(D),B=E==v?c.v0>0:E<v;let F,I=!1;const U=1,L=Math.ceil(t/U);for(let H=0;H<L&&(F=Math.abs(_)>A,!(!F&&(y=Math.abs(v-g)<=O,y)));++H){M&&(I=g==v||g>v==B,I&&(_=-_*D,g=v));const N=-o.tension*1e-6*(g-v),j=-o.friction*.001*_,Y=(N+j)/o.mass;_=_+Y*U,g=g+_*U}}else{let A=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,c.durationProgress>0&&(c.elapsedTime=o.duration*c.durationProgress,S=c.elapsedTime+=t)),A=(o.progress||0)+S/this._memoizedDuration,A=A>1?1:A<0?0:A,c.durationProgress=A),g=E+o.easing(A)*(v-E),_=(g-c.lastPosition)/t,y=A==1}c.lastVelocity=_,Number.isNaN(g)&&(y=!0)}s&&!s[p].done&&(y=!1),y?c.done=!0:e=!1,c.setValue(g,o.round)&&(n=!0)});const u=Sl(this),d=u.getValue();if(e){const c=ra(r.to);(d!==c||n)&&!o.decay?(u.setValue(c),this._onChange(c)):n&&o.decay&&this._onChange(d),this._stop()}else n&&this._onChange(d)}set(t){return Ut.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Pc(this)){const{to:t,config:e}=this.animation;Ut.batchedUpdates(()=>{this._onStart(),e.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,e){let n;return Ge.und(t)?(n=this.queue||[],this.queue=[]):n=[Ge.obj(t)?t:{...e,to:t}],Promise.all(n.map(r=>this._update(r))).then(r=>QT(this,r))}stop(t){const{to:e}=this.animation;return this._focus(this.get()),jg(this._state,t&&this._lastCallId),Ut.batchedUpdates(()=>this._stop(e,t)),this}reset(){this._update({reset:!0})}eventObserved(t){t.type=="change"?this._start():t.type=="priority"&&(this.priority=t.priority+1)}_prepareNode(t){const e=this.key||"";let{to:n,from:r}=t;n=Ge.obj(n)?n[e]:n,(n==null||WT(n))&&(n=void 0),r=Ge.obj(r)?r[e]:r,r==null&&(r=void 0);const i={to:n,from:r};return t8(this)||(t.reverse&&([n,r]=[r,n]),r=ra(r),Ge.und(r)?Sl(this)||this._set(n):this._set(r)),i}_update({...t},e){const{key:n,defaultProps:r}=this;t.default&&Object.assign(r,KT(t,(s,u)=>/^on/.test(u)?EB(s,n):s)),IB(this,t,"onProps"),$g(this,"onProps",t,this);const i=this._prepareNode(t);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return OB(++this._lastCallId,{key:n,props:t,defaultProps:r,state:o,actions:{pause:()=>{Hg(this)||(LB(this,!0),Og(o.pauseQueue),$g(this,"onPause",Os(this,Ug(this,this.animation.to)),this))},resume:()=>{Hg(this)&&(LB(this,!1),Pc(this)&&this._resume(),Og(o.resumeQueue),$g(this,"onResume",Os(this,Ug(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(s=>{if(t.loop&&s.finished&&!(e&&s.noop)){const u=BB(t);if(u)return this._update(u,!0)}return s})}_merge(t,e,n){if(e.cancel)return this.stop(!0),n(Yp(this));const r=!Ge.und(t.to),i=!Ge.und(t.from);if(r||i)if(e.callId>this._lastToId)this._lastToId=e.callId;else return n(Yp(this));const{key:o,defaultProps:s,animation:u}=this,{to:d,from:c}=u;let{to:p=d,from:v=c}=t;i&&!r&&(!e.default||Ge.und(p))&&(p=v),e.reverse&&([p,v]=[v,p]);const y=!gu(v,c);y&&(u.from=v),v=ra(v);const g=!gu(p,d);g&&this._focus(p);const S=WT(e.to),{config:E}=u,{decay:C,velocity:_}=E;(r||i)&&(E.velocity=0),e.config&&!S&&Xue(E,Fd(e.config,o),e.config!==s.config?Fd(s.config,o):void 0);let O=Sl(this);if(!O||Ge.und(p))return n(Os(this,!0));const A=Ge.und(e.reset)?i&&!e.default:!Ge.und(v)&&zg(e.reset,o),D=A?v:this.get(),M=Ig(p),B=Ge.num(M)||Ge.arr(M)||GS(M),F=!S&&(!B||zg(s.immediate||e.immediate,o));if(g){const H=YT(p);if(H!==O.constructor)if(F)O=this._set(M);else throw Error(`Cannot animate between ${O.constructor.name} and ${H.name}, as the "to" prop suggests`)}const I=O.constructor;let U=is(p),L=!1;if(!U){const H=A||!t8(this)&&y;(g||H)&&(L=gu(Ig(D),M),U=!L),(!gu(u.immediate,F)&&!F||!gu(E.decay,C)||!gu(E.velocity,_))&&(U=!0)}if(L&&Pc(this)&&(u.changed&&!A?U=!0:U||this._stop(d)),!S&&((U||is(d))&&(u.values=O.getPayload(),u.toValues=is(p)?null:I==Bg?[1]:Ma(M)),u.immediate!=F&&(u.immediate=F,!F&&!A&&this._set(d)),U)){const{onRest:H}=u;fn(nce,j=>IB(this,e,j));const N=Os(this,Ug(this,d));Og(this._pendingCalls,N),this._pendingCalls.add(n),u.changed&&Ut.batchedUpdates(()=>{var j;u.changed=!A,H==null||H(N,this),A?Fd(s.onRest,N):(j=u.onStart)==null||j.call(u,N,this)})}A&&this._set(D),S?n(MB(e.to,e,this._state,this)):U?this._start():Pc(this)&&!g?this._pendingCalls.add(n):n(DB(D))}_focus(t){const e=this.animation;t!==e.to&&(uB(this)&&this._detach(),e.to=t,uB(this)&&this._attach())}_attach(){let t=0;const{to:e}=this.animation;is(e)&&(qp(e,this),XT(e)&&(t=e.priority+1)),this.priority=t}_detach(){const{to:t}=this.animation;is(t)&&Fg(t,this)}_set(t,e=!0){const n=ra(t);if(!Ge.und(n)){const r=Sl(this);if(!r||!gu(n,r.getValue())){const i=YT(n);!r||r.constructor!=i?qT(this,i.create(n)):r.setValue(n),r&&Ut.batchedUpdates(()=>{this._onChange(n,e)})}}return Sl(this)}_onStart(){const t=this.animation;t.changed||(t.changed=!0,$g(this,"onStart",Os(this,Ug(this,t.to)),this))}_onChange(t,e){e||(this._onStart(),Fd(this.animation.onChange,t,this)),Fd(this.defaultProps.onChange,t,this),super._onChange(t,e)}_start(){const t=this.animation;Sl(this).reset(ra(t.to)),t.immediate||(t.fromValues=t.values.map(e=>e.lastPosition)),Pc(this)||(PB(this,!0),Hg(this)||this._resume())}_resume(){Ts.skipAnimation?this.finish():jS.start(this)}_stop(t,e){if(Pc(this)){PB(this,!1);const n=this.animation;fn(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ng(this,{type:"idle",parent:this});const r=e?Yp(this.get()):Os(this.get(),Ug(this,t??n.to));Og(this._pendingCalls,r),n.changed&&(n.changed=!1,$g(this,"onRest",r,this))}}};function Ug(t,e){const n=Ig(e),r=Ig(t.get());return gu(r,n)}function BB(t,e=t.loop,n=t.to){const r=Fd(e);if(r){const i=r!==!0&&_B(r),o=(i||t).reverse,s=!i||i.reset;return Vg({...t,loop:e,default:!1,pause:void 0,to:!o||WT(n)?n:void 0,from:s?t.from:void 0,reset:s,...i})}}function Vg(t){const{to:e,from:n}=t=_B(t),r=new Set;return Ge.obj(e)&&zB(e,r),Ge.obj(n)&&zB(n,r),t.keys=r.size?Array.from(r):null,t}function tce(t){const e=Vg(t);return Ge.und(e.default)&&(e.default=KT(e)),e}function zB(t,e){bl(t,(n,r)=>n!=null&&e.add(r))}var nce=["onStart","onRest","onChange","onPause","onResume"];function IB(t,e,n){t.animation[n]=e[n]!==kB(e,n)?EB(e[n],t.key):void 0}function $g(t,e,...n){var r,i,o,s;(i=(r=t.animation)[e])==null||i.call(r,...n),(s=(o=t.defaultProps)[e])==null||s.call(o,...n)}var rce=["onStart","onChange","onRest"],ice=1,oce=class{constructor(t,e){this.id=ice++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),e&&(this._flush=e),t&&this.start({default:!0,...t})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle&&!t.isDelayed&&!t.isPaused)}get item(){return this._item}set item(t){this._item=t}get(){const t={};return this.each((e,n)=>t[n]=e.get()),t}set(t){for(const e in t){const n=t[e];Ge.und(n)||this.springs[e].set(n)}}update(t){return t&&this.queue.push(Vg(t)),this}start(t){let{queue:e}=this;return t?e=Ma(t).map(Vg):this.queue=[],this._flush?this._flush(this,e):(qB(this,e),n8(this,e))}stop(t,e){if(t!==!!t&&(e=t),e){const n=this.springs;fn(Ma(e),r=>n[r].stop(!!t))}else jg(this._state,this._lastAsyncId),this.each(n=>n.stop(!!t));return this}pause(t){if(Ge.und(t))this.start({pause:!0});else{const e=this.springs;fn(Ma(t),n=>e[n].pause())}return this}resume(t){if(Ge.und(t))this.start({pause:!1});else{const e=this.springs;fn(Ma(t),n=>e[n].resume())}return this}each(t){bl(this.springs,t)}_onFrame(){const{onStart:t,onChange:e,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Ag(t,([u,d])=>{d.value=this.get(),u(d,this,this._item)}));const o=!r&&this._started,s=i||o&&n.size?this.get():null;i&&e.size&&Ag(e,([u,d])=>{d.value=s,u(d,this,this._item)}),o&&(this._started=!1,Ag(n,([u,d])=>{d.value=s,u(d,this,this._item)}))}eventObserved(t){if(t.type=="change")this._changed.add(t.parent),t.idle||this._active.add(t.parent);else if(t.type=="idle")this._active.delete(t.parent);else return;Ut.onFrame(this._onFrame)}};function n8(t,e){return Promise.all(e.map(n=>jB(t,n))).then(n=>QT(t,n))}async function jB(t,e,n){const{keys:r,to:i,from:o,loop:s,onRest:u,onResolve:d}=e,c=Ge.obj(e.default)&&e.default;s&&(e.loop=!1),i===!1&&(e.to=null),o===!1&&(e.from=null);const p=Ge.arr(i)||Ge.fun(i)?i:void 0;p?(e.to=void 0,e.onRest=void 0,c&&(c.onRest=void 0)):fn(rce,E=>{const C=e[E];if(Ge.fun(C)){const _=t._events[E];e[E]=({finished:O,cancelled:A})=>{const D=_.get(C);D?(O||(D.finished=!1),A&&(D.cancelled=!0)):_.set(C,{value:null,finished:O||!1,cancelled:A||!1})},c&&(c[E]=e[E])}});const v=t._state;e.pause===!v.paused?(v.paused=e.pause,Og(e.pause?v.pauseQueue:v.resumeQueue)):v.paused&&(e.pause=!0);const y=(r||Object.keys(t.springs)).map(E=>t.springs[E].start(e)),g=e.cancel===!0||kB(e,"cancel")===!0;(p||g&&v.asyncId)&&y.push(OB(++t._lastAsyncId,{props:e,state:v,actions:{pause:PT,resume:PT,start(E,C){g?(jg(v,t._lastAsyncId),C(Yp(t))):(E.onRest=u,C(MB(p,E,v,t)))}}})),v.paused&&await new Promise(E=>{v.resumeQueue.add(E)});const S=QT(t,await Promise.all(y));if(s&&S.finished&&!(n&&S.noop)){const E=BB(e,s,i);if(E)return qB(t,[E]),jB(t,E,!0)}return d&&Ut.batchedUpdates(()=>d(S,t,t.item)),S}function HB(t,e){const n={...t.springs};return e&&fn(Ma(e),r=>{Ge.und(r.keys)&&(r=Vg(r)),Ge.obj(r.to)||(r={...r,to:void 0}),$B(n,r,i=>VB(i))}),UB(t,n),n}function UB(t,e){bl(e,(n,r)=>{t.springs[r]||(t.springs[r]=n,qp(n,t))})}function VB(t,e){const n=new ece;return n.key=t,e&&qp(n,e),n}function $B(t,e,n){e.keys&&fn(e.keys,r=>{(t[r]||(t[r]=n(r)))._prepareNode(e)})}function qB(t,e){fn(e,n=>{$B(t.springs,n,r=>VB(r,t))})}var JS=({children:t,...e})=>{const n=G.useContext(e2),r=e.pause||!!n.pause,i=e.immediate||!!n.immediate;e=Nue(()=>({pause:r,immediate:i}),[r,i]);const{Provider:o}=e2;return _e.createElement(o,{value:e},t)},e2=ace(JS,{});JS.Provider=e2.Provider,JS.Consumer=e2.Consumer;function ace(t,e){return Object.assign(t,_e.createContext(e)),t.Provider._context=t,t.Consumer._context=t,t}var sce=()=>{const t=[],e=function(r){Mue();const i=[];return fn(t,(o,s)=>{if(Ge.und(r))i.push(o.start());else{const u=n(r,o,s);u&&i.push(o.start(u))}}),i};e.current=t,e.add=function(r){t.includes(r)||t.push(r)},e.delete=function(r){const i=t.indexOf(r);~i&&t.splice(i,1)},e.pause=function(){return fn(t,r=>r.pause(...arguments)),this},e.resume=function(){return fn(t,r=>r.resume(...arguments)),this},e.set=function(r){fn(t,(i,o)=>{const s=Ge.fun(r)?r(o,i):r;s&&i.set(s)})},e.start=function(r){const i=[];return fn(t,(o,s)=>{if(Ge.und(r))i.push(o.start());else{const u=this._getProps(r,o,s);u&&i.push(o.start(u))}}),i},e.stop=function(){return fn(t,r=>r.stop(...arguments)),this},e.update=function(r){return fn(t,(i,o)=>i.update(this._getProps(r,i,o))),this};const n=function(r,i,o){return Ge.fun(r)?r(o,i):r};return e._getProps=n,e};function lce(t,e,n){const r=Ge.fun(e)&&e;r&&!n&&(n=[]);const i=G.useMemo(()=>r||arguments.length==3?sce():void 0,[]),o=G.useRef(0),s=vB(),u=G.useMemo(()=>({ctrls:[],queue:[],flush(_,O){const A=HB(_,O);return o.current>0&&!u.queue.length&&!Object.keys(A).some(M=>!_.springs[M])?n8(_,O):new Promise(M=>{UB(_,A),u.queue.push(()=>{M(n8(_,O))}),s()})}}),[]),d=G.useRef([...u.ctrls]),c=[],p=yB(t)||0;G.useMemo(()=>{fn(d.current.slice(t,p),_=>{Kue(_,i),_.stop(!0)}),d.current.length=t,v(p,t)},[t]),G.useMemo(()=>{v(0,Math.min(p,t))},n);function v(_,O){for(let A=_;A<O;A++){const D=d.current[A]||(d.current[A]=new oce(null,u.flush)),M=r?r(A,D):e[A];M&&(c[A]=tce(M))}}const y=d.current.map((_,O)=>HB(_,c[O])),g=G.useContext(JS),S=yB(g),E=g!==S&&Yue(g);$T(()=>{o.current++,u.ctrls=d.current;const{queue:_}=u;_.length&&(u.queue=[],fn(_,O=>O())),fn(d.current,(O,A)=>{i==null||i.add(O),E&&O.start({default:g});const D=c[A];D&&(Wue(O,D.ref),O.ref?O.queue.push(D):O.start(D))})}),gB(()=>()=>{fn(u.ctrls,_=>_.stop(!0))});const C=y.map(_=>({..._}));return i?[C,i]:C}function uce(t,e){const n=Ge.fun(t),[[r],i]=lce(1,n?t:[t],n?e||[]:e);return n||arguments.length==2?[r,i]:r}var cce=class extends ZT{constructor(t,e){super(),this.source=t,this.idle=!0,this._active=new Set,this.calc=Mg(...e);const n=this._get(),r=YT(n);qT(this,r.create(n))}advance(t){const e=this._get(),n=this.get();gu(e,n)||(Sl(this).setValue(e),this._onChange(e,this.idle)),!this.idle&&YB(this._active)&&r8(this)}_get(){const t=Ge.arr(this.source)?this.source.map(ra):Ma(ra(this.source));return this.calc(...t)}_start(){this.idle&&!YB(this._active)&&(this.idle=!1,fn(QS(this),t=>{t.done=!1}),Ts.skipAnimation?(Ut.batchedUpdates(()=>this.advance()),r8(this)):jS.start(this))}_attach(){let t=1;fn(Ma(this.source),e=>{is(e)&&qp(e,this),XT(e)&&(e.idle||this._active.add(e),t=Math.max(t,e.priority+1))}),this.priority=t,this._start()}_detach(){fn(Ma(this.source),t=>{is(t)&&Fg(t,this)}),this._active.clear(),r8(this)}eventObserved(t){t.type=="change"?t.idle?this.advance():(this._active.add(t.parent),this._start()):t.type=="idle"?this._active.delete(t.parent):t.type=="priority"&&(this.priority=Ma(this.source).reduce((e,n)=>Math.max(e,(XT(n)?n.priority:0)+1),0))}};function fce(t){return t.idle!==!1}function YB(t){return!t.size||Array.from(t).every(fce)}function r8(t){t.idle||(t.idle=!0,fn(QS(t),e=>{e.done=!0}),Ng(t,{type:"idle",parent:t}))}Ts.assign({createStringInterpolator:pB,to:(t,e)=>new cce(t,e)});var KB=/^--/;function dce(t,e){return e==null||typeof e=="boolean"||e===""?"":typeof e=="number"&&e!==0&&!KB.test(t)&&!(qg.hasOwnProperty(t)&&qg[t])?e+"px":(""+e).trim()}var WB={};function hce(t,e){if(!t.nodeType||!t.setAttribute)return!1;const n=t.nodeName==="filter"||t.parentNode&&t.parentNode.nodeName==="filter",{className:r,style:i,children:o,scrollTop:s,scrollLeft:u,viewBox:d,...c}=e,p=Object.values(c),v=Object.keys(c).map(y=>n||t.hasAttribute(y)?y:WB[y]||(WB[y]=y.replace(/([A-Z])/g,g=>"-"+g.toLowerCase())));o!==void 0&&(t.textContent=o);for(const y in i)if(i.hasOwnProperty(y)){const g=dce(y,i[y]);KB.test(y)?t.style.setProperty(y,g):t.style[y]=g}v.forEach((y,g)=>{t.setAttribute(y,p[g])}),r!==void 0&&(t.className=r),s!==void 0&&(t.scrollTop=s),u!==void 0&&(t.scrollLeft=u),d!==void 0&&t.setAttribute("viewBox",d)}var qg={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pce=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1),mce=["Webkit","Ms","Moz","O"];qg=Object.keys(qg).reduce((t,e)=>(mce.forEach(n=>t[pce(n,e)]=t[e]),t),qg);var vce=/^(matrix|translate|scale|rotate|skew)/,gce=/^(translate)/,yce=/^(rotate|skew)/,i8=(t,e)=>Ge.num(t)&&t!==0?t+e:t,t2=(t,e)=>Ge.arr(t)?t.every(n=>t2(n,e)):Ge.num(t)?t===e:parseFloat(t)===e,xce=class extends ZS{constructor({x:t,y:e,z:n,...r}){const i=[],o=[];(t||e||n)&&(i.push([t||0,e||0,n||0]),o.push(s=>[`translate3d(${s.map(u=>i8(u,"px")).join(",")})`,t2(s,0)])),bl(r,(s,u)=>{if(u==="transform")i.push([s||""]),o.push(d=>[d,d===""]);else if(vce.test(u)){if(delete r[u],Ge.und(s))return;const d=gce.test(u)?"px":yce.test(u)?"deg":"";i.push(Ma(s)),o.push(u==="rotate3d"?([c,p,v,y])=>[`rotate3d(${c},${p},${v},${i8(y,d)})`,t2(y,0)]:c=>[`${u}(${c.map(p=>i8(p,d)).join(",")})`,t2(c,u.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new bce(i,o)),super(r)}},bce=class extends cB{constructor(t,e){super(),this.inputs=t,this.transforms=e,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let t="",e=!0;return fn(this.inputs,(n,r)=>{const i=ra(n[0]),[o,s]=this.transforms[r](Ge.arr(i)?i:n.map(ra));t+=" "+o,e=e&&s}),e?"none":t}observerAdded(t){t==1&&fn(this.inputs,e=>fn(e,n=>is(n)&&qp(n,this)))}observerRemoved(t){t==0&&fn(this.inputs,e=>fn(e,n=>is(n)&&Fg(n,this)))}eventObserved(t){t.type=="change"&&(this._value=null),Ng(this,t)}},Sce=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Ts.assign({batchedUpdates:Kf.unstable_batchedUpdates,createStringInterpolator:pB,colors:lue});var wce=Hue(Sce,{applyAnimatedValues:hce,createAnimatedStyle:t=>new xce(t),getComponentProps:({scrollTop:t,scrollLeft:e,...n})=>n}),GB=wce.animated;function QB(t,e,n){let r=t;return e!==void 0&&(r=Math.max(t,e)),n!==void 0&&(r=Math.min(r,n)),r}const[XB]=_n("indicator"),Cce=G.memo(t=>{var{vertical:e}=t,n=Mo(t,["vertical"]);const r=[];for(let i=0;i<n.total;i++)r.push(q("div",{className:Me(XB("dot",{active:n.current===i}))},i));return q("div",Object.assign({className:Me(n.className,XB({vertical:e})),style:n.style},{children:r}))});let Yg=0;function o8(t){t?(Yg||document.body.classList.add("rv-toast--unclickable"),Yg+=1):Yg&&(Yg-=1,Yg||document.body.classList.remove("rv-toast--unclickable"))}function Ece(t){return t===window}const ZB=t=>{const e=t;if(Ece(e)){const n=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:n,bottom:r,width:n,height:r}}return e&&e.getBoundingClientRect?e.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};function kce(t,e,n){let r,i,o,s,u,d,c=0,p=!1,v=!1,y=!0;const g=!e&&e!==0&&typeof Pp.requestAnimationFrame=="function";if(typeof t!="function")throw new TypeError("Expected a function");e=+e||0,Fp(n)&&(p=!!n.leading,v="maxWait"in n,o=v?Math.max(+n.maxWait||0,e):o,y="trailing"in n?!!n.trailing:y);function S(L){const H=r,N=i;return r=i=void 0,c=L,s=t.apply(N,H),s}function E(L,H){return g?(Pp.cancelAnimationFrame(u),Pp.requestAnimationFrame(L)):setTimeout(()=>L(),H)}function C(L){if(g)return Pp.cancelAnimationFrame(L);clearTimeout(L)}function _(L){return c=L,u=E(D,e),p?S(L):s}function O(L){const H=L-d,N=L-c,j=e-H;return v?Math.min(j,o-N):j}function A(L){const H=L-d,N=L-c;return d===void 0||H>=e||H<0||v&&N>=o}function D(){const L=Date.now();if(A(L))return M(L);u=E(D,O(L))}function M(L){return u=void 0,y&&r?S(L):(r=i=void 0,s)}function B(){u!==void 0&&C(u),c=0,r=d=i=u=void 0}function F(){return u===void 0?s:M(Date.now())}function I(){return u!==void 0}function U(...L){const H=Date.now(),N=A(H);if(r=L,i=this,d=H,N){if(u===void 0)return _(d);if(v)return u=E(D,e),S(d)}return u===void 0&&(u=E(D,e)),s}return U.cancel=B,U.flush=F,U.pending=I,U}const yxe="",[n2]=_n("toast"),_ce=t=>{const e=Ti(t,{type:"info",duration:2e3,position:"middle",transition:"rv-fade",loadingType:"circular",overlay:!1}),n=()=>{e.closeOnClick&&e.onClose()};G.useEffect(()=>{if(!e.visible){o8(!1);return}let o=!1;const s=e.visible&&e.forbidClick;o!==s&&(o=s,o8(o))},[e.visible,e.forbidClick]);const r=()=>{const{icon:o,type:s,iconSize:u,loadingType:d}=e;if(o||s==="success"||s==="fail"){const p=s==="fail"?q(mT,{}):q(f9,{});return G.cloneElement(o||p,{className:Me(n2("icon")),fontSize:u})}return s==="loading"?q(pT,{className:Me(n2("loading")),type:d}):null},i=()=>{const{message:o}=e;return _i(o)&&o!==""?q("div",Object.assign({className:Me(n2("info"))},{children:o})):null};return Ne(Nd,Object.assign({className:Me([n2([e.position,{[e.type]:!e.icon}]),e.className]),visible:e.visible,overlay:e.overlay,transition:e.transition,overlayClass:e.overlayClass,overlayStyle:e.overlayStyle,closeOnClickOverlay:e.closeOnClickOverlay,lockScroll:!1,onClick:n,onClose:e.onClose,onClosed:e.onClosed,onOpened:e.onOpened,teleport:e.teleport},{children:[r(),i()]}))},a8={message:"",className:"",type:"info",position:"middle",forbidClick:!1,duration:2e3,teleport:()=>document.body},s8=[];let JB=!1,l8=pg({},a8);const r2=new Map;function ez(){let t=s8.pop();for(;t;)t(),t=s8.pop()}function Tce(){setTimeout(ez)}const Ld=t=>{if(!bT())return null;const e=tz(t),n={config:()=>{},clear:()=>null};let r=0;const{onClose:i,teleport:o}=e,s=document.createElement("div");return xT(o).appendChild(s),T9(q(()=>{const c=Object.assign({duration:2e3},e),[p,v]=G.useState(!1),[y,g]=G.useState(Object.assign({},c)),S=G.useCallback(()=>{y.forbidClick&&o8(!1),v(!1),window.setTimeout(()=>{A9(s)&&s.parentNode&&s.parentNode.removeChild(s)},+y.duration||+a8.duration)},[s]),E=G.useCallback(()=>{v(!1),i&&i()},[]);return n.clear=S,n.config=G.useCallback(C=>{g(_=>typeof C=="function"?Object.assign(Object.assign({},_),C(_)):Object.assign(Object.assign({},_),C))},[g]),G.useEffect(()=>(v(!0),JB||ez(),s8.push(S),y.duration!==0&&"duration"in y&&(r=window.setTimeout(E,+y.duration)),()=>{r!==0&&window.clearTimeout(r)}),[]),q(_ce,Object.assign({},y,{visible:p,teleport:()=>s,onClose:E,onClosed:S}))},{}),s),n};function tz(t){return Fp(t)?t:{message:t}}const Ace=t=>e=>Ld(Object.assign(Object.assign(Object.assign(Object.assign({},l8),r2.get(t)),tz(e)),{type:t}));["info","loading","success","fail"].forEach(t=>{Ld[t]=Ace(t)}),Ld.allowMultiple=(t=!0)=>{JB=t},Ld.clear=Tce;function Oce(t,e){typeof t=="string"?r2.set(t,e):pg(l8,t)}Ld.setDefaultOptions=Oce,Ld.resetDefaultOptions=t=>{typeof t=="string"?r2.delete(t):(l8=pg({},a8),r2.clear())};const u8=Ld;function i2(){const t=G.useRef([]),e=G.useCallback(r=>i=>{i&&(t.current[r]=i)},[]),n=G.useCallback(()=>{t.current=[]},[]);return[t.current,e,n]}const nz=t=>{const{defaultValue:e,value:n}=t||{},[r,i]=G.useState(()=>{if(n!==void 0)return n;if(e!==void 0)return typeof e=="function"?e():e}),o=n!==void 0?n:r;function s(u){i(u)}return[o,s]},wxe="",[Dce]=_n("swiper-item"),rz=G.forwardRef((t,e)=>{const n=G.useRef(null);G.useImperativeHandle(e,()=>({self:n.current}));const[r]=Qae(n,{rootMargin:"-0.1px",threshold:0,root:()=>{var i;return(i=t.trackRef)===null||i===void 0?void 0:i.current}});return q("div",Object.assign({ref:n,className:Me(t.className,Dce({hidden:t.autoHeight&&r===!1})),onClick:t.onClick,style:t.style},{children:t.children}))}),[Bd]=_n("swiper"),Mce=G.forwardRef((t,e)=>{const n=Ti(t,{initialSwipe:0,loop:!0,touchable:!0,enabled:!0,rubberband:!0,autoplay:!1,slideSize:100,trackOffset:0,stuckAtBoundary:!1,preventScroll:!0}),{loop:r,autoplay:i,vertical:o,duration:s,autoHeight:u}=n,d=o?"y":"x",c=n.slideSize/100,p=n.trackOffset/100,{validChildren:v,count:y}=G.useMemo(()=>{let Z=0;return{validChildren:G.Children.map(n.children,W=>G.isValidElement(W)?W.type!==rz?null:(Z++,W):null),count:Z}},[n.children]),g=G.useRef(null),[S,E]=i2(),[C,_]=G.useState(()=>n.enabled),[O,A]=G.useState(n.initialSwipe),[D,M,B]=dT(!1),F=G.useMemo(()=>Object.assign({"--rv-swipe-slide-size":`${n.slideSize}%`,"--rv-swipe-track-offset":`${n.trackOffset}%`},n.style),[n.slideSize,n.trackOffset,n.style]),I=G.useMemo(()=>c*(y-1)<1?!1:r,[y,r,c]),U=()=>{const Z=g.current;return Z?(o?Z.offsetHeight:Z.offsetWidth)*n.slideSize/100:0},L=Z=>{let X=0,W=y-1;return n.stuckAtBoundary&&(X+=(1-c-p)/c,W-=(1-c-p)/c),QB(Z,X,W)},[{position:H},N]=uce(()=>({position:L(O)*100,config:{tension:200,friction:30,duration:s},onRest:()=>{if(B.current||!I)return;const Z=H.get(),X=100*y,W=c8(Z,X);W!==Z&&N.start({position:W,immediate:!0})}}),[y]),j=Jle(Z=>{var X;const W=U();if(!W||!n.preventScroll&&iz(Z.target,(X=S[O])===null||X===void 0?void 0:X.self))return;const te=o?1:0,ae=Z.offset[te],re=Z.direction[te],ce=Z.velocity[te];if(M(!0),!Z.last)N.start({position:ae*100/W,immediate:!0});else{const ve=Math.round((ae+Math.min(ce*2e3,W)*re)/W);K(ve),window.setTimeout(()=>{M(!1)})}},{enabled:C,transform:([Z,X])=>[-Z,-X],from:()=>{const Z=U();return[H.get()/100*Z,H.get()/100*Z]},bounds:()=>{if(I)return{};const Z=U(),X=L(0)*Z,W=L(y-1)*Z;return o?{top:X,bottom:W}:{left:X,right:W}},rubberband:n.rubberband,axis:d,preventScroll:d==="x"?n.preventScroll:!1,pointer:{touch:!0}}),Y=()=>n.indicator===void 0||n.indicator===!0?q("div",Object.assign({className:Me(Bd("indicator",{vertical:o}))},{children:q(Cce,Object.assign({},n.indicatorProps,{vertical:o,total:y,current:O}))})):typeof n.indicator=="function"?n.indicator(y,O):null;function K(Z,X=!1){const W=Math.round(Z),te=I?c8(W,y):QB(W,0,y-1);A(te),N.start({position:(I?W:L(W))*100,immediate:X})}const ee=()=>{K(Math.round(H.get()/100)+1)},ne=()=>{K(Math.round(H.get()/100)-1)};G.useImperativeHandle(e,()=>({activeIndex:O,swipeTo:K,swipeNext:ee,swipePrev:ne,enable:()=>{_(!0)},disable:()=>{_(!1)}})),vg(()=>{const Z=v.length-1;O>Z&&K(Z,!0)}),Dd(()=>{var Z;(Z=n.onChange)===null||Z===void 0||Z.call(n,O)},[O]),G.useEffect(()=>{if(!i||D)return Oa;const Z=typeof i=="boolean"?5e3:i,X=window.setInterval(()=>{ee()},Z);return()=>{window.clearInterval(X)}},[i,D]);const $=()=>I?q("div",Object.assign({className:Me(Bd("track-inner",{vertical:o}))},{children:G.Children.map(v,(Z,X)=>q(GB.div,Object.assign({className:Me(Bd("slide")),style:{[d]:H.to(W=>{let te=-W+X*100;const ae=y*100,re=ae/2;return te=c8(te+re,ae)-re,`${te}%`}),[o?"top":"left"]:`-${X*100}%`}},{children:G.cloneElement(Z,{ref:E(X),autoHeight:u,trackRef:g})})))})):q(GB.div,Object.assign({className:Me(Bd("track-inner")),style:{[d]:H.to(Z=>`${-Z}%`)}},{children:G.Children.map(v,(Z,X)=>q("div",Object.assign({className:Me(Bd("slide"))},{children:G.cloneElement(Z,{ref:E(X),autoHeight:u})})))}));return y===0&&void 0,Ne("div",Object.assign({className:Me(n.className,Bd({vertical:o})),style:F},{children:[q("div",Object.assign({ref:g,className:Me(Bd("track",{"allow-touch-move":n.touchable})),onClickCapture:Z=>{B.current&&Z.stopPropagation()}},n.touchable?j():{},{children:$()})),Y()]}))});function c8(t,e){const n=t%e;return n<0?n+e:n}function iz(t,e){return e?t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight?!0:t.parentElement&&t.parentElement!==e?iz(t.parentElement,e):!1:!1}const oz=Object.assign(Mce,{Item:rz}),Rce=t=>{const e=Ti(t,{shape:"round",bindGroup:!0}),n=G.useRef(null),r=p=>e.parent&&e.bindGroup?e.parent.props[p]:null,i=G.useMemo(()=>r("disabled")||e.disabled,[e.parent,e.disabled]),o=G.useMemo(()=>r("direction")||null,[e.parent]),s=G.useMemo(()=>{const p=e.checkedColor||r("checkedColor");return p&&e.checked&&!i?{borderColor:p,backgroundColor:p}:{}},[e.checkedColor,e.checked,i]),u=p=>{const{target:v}=p,y=n.current,g=y===v||(y==null?void 0:y.contains(v));!i&&(g||!e.labelDisabled)&&e.onToggle&&e.onToggle(),e.onClick&&e.onClick(p)},d=()=>{const{bem:p,shape:v,checked:y}=e,g=e.iconSize||r("iconSize");return q("div",Object.assign({ref:n,className:Me(p("icon",[v,{disabled:i,checked:y}])),style:{fontSize:yl(g)}},{children:e.iconRender?e.iconRender({checked:y,disabled:i}):q(f9,{style:s})}))},c=()=>e.children?q("span",Object.assign({className:e.bem("label",[e.labelPosition,{disabled:i}])},{children:e.children})):null;return Ne("div",Object.assign({role:e.role,className:Me(e.bem([{disabled:i,"label-disabled":e.labelDisabled},o]),e.className),style:e.style,tabIndex:i?-1:0,"aria-checked":e.checked,onClick:u},{children:[e.labelPosition==="left"&&c(),d(),e.labelPosition!=="left"&&c()]}))},Txe="";function Nce(t){return[t.getFullYear(),t.getMonth()+1]}function f8(t,e){const n=t.getFullYear(),r=e.getFullYear();if(n===r){const i=t.getMonth(),o=e.getMonth();return i===o?0:i>o?1:-1}return n>r?1:-1}function wl(t,e){const n=f8(t,e);if(n===0){const r=t.getDate(),i=e.getDate();return r===i?0:r>i?1:-1}return n}const o2=t=>new Date(t),az=t=>Array.isArray(t)?t.map(o2):o2(t);function d8(t,e){const n=o2(t);return n.setDate(n.getDate()+e),n}const sz=t=>d8(t,-1),lz=t=>d8(t,1),h8=()=>{const t=new Date;return t.setHours(0,0,0,0),t};function Fce(t){const e=t[0].getTime();return(t[1].getTime()-e)/(1e3*60*60*24)+1}function uz(t,e){let n=-1;const r=Array(t);for(;++n<t;)r[n]=e(n);return r}function Pce(t){if(!t)return 0;for(;W7(parseInt(t,10));)if(t.length>1)t=t.slice(1);else return 0;return parseInt(t,10)}function p8(t,e){return 32-new Date(t,e-1,32).getDate()}const[Kg]=_n("calendar"),Lce=t=>{const e=Ti(t,{offset:0}),n=G.useMemo(()=>{const{item:c,index:p,color:v,offset:y,rowHeight:g}=e,S={height:g};if(c.type==="placeholder")return S.width="100%",S;if(p===0&&(S.marginLeft=`${100*y/7}%`),v)switch(c.type){case"end":case"start":case"start-end":case"multiple-middle":case"multiple-selected":S.background=v;break;case"middle":S.color=v;break}return S},[e.item,e.index,e.color,e.offset,e.rowHeight]),r=()=>{var c;e.item.type!=="disabled"&&((c=e.onClick)===null||c===void 0||c.call(e,e.item))},i=()=>{const{topInfo:c}=e.item;return c||e.topInfoRender?q("div",Object.assign({className:Me(Kg("top-info"))},{children:e.topInfoRender?e.topInfoRender(e.item):c})):null},o=()=>{const{bottomInfo:c}=e.item;return c||e.bottomInfoRender?q("div",Object.assign({className:Me(Kg("bottom-info"))},{children:e.bottomInfoRender?e.bottomInfoRender(e.item):c})):null},s=()=>{const{item:c,color:p,rowHeight:v}=e,{type:y,text:g}=c,S=Ne(Jt,{children:[i(),g,o()]});return y==="selected"?q("div",Object.assign({className:Me(Kg("selected-day")),style:{width:v,height:v,background:p}},{children:S})):S},{type:u,className:d}=e.item;return u==="placeholder"?q("div",{className:Me(Kg("day")),style:n}):q("div",Object.assign({role:"gridcell",style:n,className:Me(Kg("day",u),d),tabIndex:u==="disabled"?void 0:-1,onClick:r},{children:s()}))},[a2]=_n("calendar"),Bce=G.forwardRef((t,e)=>{const[n,r]=G.useState(),i=G.useRef(),[o,s]=G.useState(),u=G.useRef(0),{locale:d}=G.useContext(Ip);G.useEffect(()=>{o&&(u.current=ZB(o).height)},[o]);const c=G.useMemo(()=>t.formatMonthTitle?t.formatMonthTitle(t.date):d.vanCalendar.monthTitle(...Nce(t.date)),[t.date,t.formatMonthTitle]),p=G.useMemo(()=>yl(t.rowHeight),[t.rowHeight]),v=G.useMemo(()=>{const L=t.date.getDay();return t.firstDayOfWeek?(L+7-t.firstDayOfWeek)%7:L},[t.date,t.firstDayOfWeek]),y=G.useMemo(()=>p8(t.date.getFullYear(),t.date.getMonth()+1),[t.date]),g=G.useMemo(()=>n||!t.lazyRender,[n]),S=()=>c,E=L=>{const H=t.showSubtitle?i.current:o,N=(H==null?void 0:H.getBoundingClientRect().top)-L.getBoundingClientRect().top+L.scrollTop;q7(L,N)},C=L=>{const H=N=>t.currentDate.some(j=>wl(j,N)===0);if(H(L)){const N=sz(L),j=lz(L),Y=H(N),K=H(j);return Y&&K?"multiple-middle":Y?"end":K?"start":"multiple-selected"}return""},_=L=>{const[H,N]=t.currentDate;if(!H)return"";const j=wl(L,H);if(!N)return j===0?"start":"";const Y=wl(L,N);return t.allowSameDay&&j===0&&Y===0?"start-end":j===0?"start":Y===0?"end":j>0&&Y<0?"middle":""},O=L=>{const{type:H,minDate:N,maxDate:j,currentDate:Y}=t;if(wl(L,N)<0||wl(L,j)>0)return"disabled";if(Y===null)return"";if(Array.isArray(Y)){if(H==="multiple")return C(L);if(H==="range")return _(L)}else if(H==="single")return wl(L,Y)===0?"selected":"";return""},A=L=>{if(t.type==="range"){if(L==="start")return d.vanCalendar.start;if(L==="end")return d.vanCalendar.end;if(L==="start-end")return d.vanCalendar.startEnd}return null},D=()=>t.showMonthTitle?q("div",Object.assign({className:Me(a2("month-title"))},{children:c})):null,M=()=>t.showMark&&g?q("div",Object.assign({className:Me(a2("month-mark"))},{children:t.date.getMonth()+1})):null,B=G.useMemo(()=>{const L=Math.ceil((y+v)/7);return Array(L).fill({type:"placeholder"})},[y,v]),F=G.useMemo(()=>{const L=[],H=t.date.getFullYear(),N=t.date.getMonth();for(let j=1;j<=y;j++){const Y=new Date(H,N,j),K=O(Y);let ee={date:Y,type:K,text:j,bottomInfo:A(K)};t.formatter&&(ee=t.formatter(ee)),L.push(ee)}return L},[O,t.date,t.formatter]),I=(L,H)=>q(Lce,{item:L,index:H,color:t.color,offset:v,rowHeight:p,onClick:t.onClick,topInfoRender:t.topInfoRender,bottomInfoRender:t.bottomInfoRender},H),U=()=>Ne("div",Object.assign({ref:i,role:"grid",className:Me(a2("days"))},{children:[M(),(g?F:B).map(I)]}));return G.useImperativeHandle(e,()=>({getTitle:S,getHeight:()=>u.current,setVisible:r,scrollIntoView:E})),Ne("div",Object.assign({className:Me(a2("month")),ref:s},{children:[D(),U()]}))}),[Wg]=_n("calendar"),zce=t=>{const{locale:e}=G.useContext(Ip),n=()=>{if(t.showTitle){const s=t.title||e.vanCalendar.title;return q("div",Object.assign({className:Me(Wg("header-title"))},{children:s}))}return null},r=s=>{var u;(u=t.onClickSubtitle)===null||u===void 0||u.call(t,s)},i=()=>t.showSubtitle?q("div",Object.assign({className:Me(Wg("header-subtitle")),onClick:r},{children:t.subtitle})):null,o=()=>{const{weekdays:s,firstDayOfWeek:u}=t,d=e.vanCalendar.weekdays,c=s?d.map((v,y)=>s[y]||v):d,p=[...c.slice(u,7),...c.slice(0,u)];return q("div",Object.assign({className:Me(Wg("weekdays"))},{children:p.map((v,y)=>q("span",Object.assign({className:Me(Wg("weekday"))},{children:v}),y))}))};return Ne("div",Object.assign({className:Me(Wg("header"))},{children:[n(),i(),o()]}))},[Kp]=_n("calendar"),Ice=h8(),jce=(()=>{const t=h8();return new Date(t.getFullYear(),t.getMonth()+6,t.getDate())})(),Hce=G.forwardRef((t,e)=>{var n,{className:r,style:i}=t,o=Mo(t,["className","style"]);const s=Ti(o,{round:!0,poppable:!0,showMark:!0,showTitle:!0,showConfirm:!0,showSubtitle:!0,closeOnPopstate:!0,closeOnClickOverlay:!0,safeAreaInsetBottom:!0,defaultValue:null,type:"single",position:"bottom",maxRange:null,minDate:Ice,maxDate:jce,firstDayOfWeek:0,showRangePrompt:!0}),{locale:u}=G.useContext(Ip),[d,c]=gg({value:s.visible,defaultValue:!1,onChange:W=>{var te;W===!1&&((te=s.onClose)===null||te===void 0||te.call(s))}}),p=(W,te=s.minDate,ae=s.maxDate)=>wl(W,te)===-1?te:wl(W,ae)===1?ae:W,v=(W=s.defaultValue)=>{const{type:te,minDate:ae,maxDate:re}=s;if(W===null)return W;const ce=h8();if(te==="range"){Array.isArray(W)||(W=[]);const ve=p(W[0]||ce,ae,sz(re)),Se=p(W[1]||ce,lz(ae));return[ve,Se]}return te==="multiple"?Array.isArray(W)?W.map(ve=>p(ve)):[p(ce)]:((!W||Array.isArray(W))&&(W=ce),p(W))},y=G.useRef(),g=G.useRef(0),[S,E]=G.useState(v(s.value===void 0?s.defaultValue:s.value)),[C,_]=Z7({subtitle:"",currentDate:S});Dd(()=>{s.value!==void 0&&JSON.stringify(S)!==JSON.stringify(s.value)&&E(s.value)},[s.value]),G.useEffect(()=>{JSON.stringify(C.currentDate)!==JSON.stringify(S)&&_({currentDate:S})},[S]);const[O,A]=i2(),D=G.useMemo(()=>s.firstDayOfWeek?+s.firstDayOfWeek%7:0,[s.firstDayOfWeek,s.firstDayOfWeek]),M=G.useMemo(()=>{const W=[],te=new Date(s.minDate);te.setDate(1);do W.push(new Date(te)),te.setMonth(te.getMonth()+1);while(f8(te,s.maxDate)!==1);return W},[s.minDate,s.maxDate]),B=G.useMemo(()=>{const{currentDate:W}=C;if(W){if(s.type==="range")return!W[0]||!W[1];if(s.type==="multiple")return!W.length}return!W},[s.type,C.currentDate]),F=()=>{var W;const te=Bae(y.current),ae=te+g.current,re=M.map((Ae,Te)=>O[Te].getHeight()),ce=re.reduce((Ae,Te)=>Ae+Te,0);if(ae>ce&&te>0)return;let ve=0,Se;const se=[-1,-1];for(let Ae=0;Ae<M.length;Ae++){const Te=O[Ae];ve<=ae&&ve+re[Ae]>=te&&(se[1]=Ae,Se||(Se=Te,se[0]=Ae),O[Ae].showed||(O[Ae].showed=!0,(W=s.onMonthShow)===null||W===void 0||W.call(s,{date:Te.date,title:Te.getTitle()}))),ve+=re[Ae]}M.forEach((Ae,Te)=>{const Pe=Te>=se[0]-1&&Te<=se[1]+1;O[Te].setVisible(Pe)}),Se&&Se.getTitle()!==C.subtitle&&!s.horizontal&&_({subtitle:Se.getTitle()})},I=W=>{uT(()=>{M.some((te,ae)=>f8(te,W)===0?(y.current&&O[ae].scrollIntoView(y.current),!0):!1),F()})},U=()=>{if(s.poppable&&!d)return;const{currentDate:W}=C;if(W){const te=s.type==="single"?W:W[0];I(te)}else uT(F)},L=()=>{uT(()=>{g.current=Math.floor(ZB(y.current).height),U()})},H=(W=v())=>{_({currentDate:W}),U()},N=W=>{var te;const{maxRange:ae,rangePrompt:re,showRangePrompt:ce}=s;return ae&&Fce(W)>ae?(ce&&u8.info(re||u.vanCalendar.rangePrompt(+ae)),(te=s.onOverRange)===null||te===void 0||te.call(s),!1):!0},j=()=>{var W;const te=az(C.currentDate);s.poppable&&E(te),(W=s.onConfirm)===null||W===void 0||W.call(s,te),X.close()},Y=(W,te)=>{const ae=re=>{var ce;C.currentDate=re,_({currentDate:re}),(ce=s.onSelect)===null||ce===void 0||ce.call(s,az(C.currentDate))};if(te&&s.type==="range"&&!N(W)){s.showConfirm?ae([W[0],d8(W[0],+s.maxRange-1)]):ae(W);return}ae(W),te&&!s.showConfirm&&j()},K=W=>{var te;if(s.readOnly||!W.date)return;const{date:ae}=W,{type:re}=s,{currentDate:ce}=C;if(re==="range"){if(!ce){Y([ae]);return}const[ve,Se]=ce;if(ve&&!Se){const se=wl(ae,ve);se===1?Y([ve,ae],!0):se===-1?Y([ae]):s.allowSameDay&&Y([ae,ae],!0)}else Y([ae])}else if(re==="multiple"){if(!ce){Y([ae]);return}let ve;if(C.currentDate.some((se,Ae)=>{const Te=wl(se,ae)===0;return Te&&(ve=Ae),Te})){const[se]=ce.splice(ve,1);(te=s.onUnselect)===null||te===void 0||te.call(s,o2(se)),Y([...ce])}else s.maxRange&&ce.length>=s.maxRange?u8(s.rangePrompt||`选择天数不能超过 ${s.maxRange} 天`):Y([...ce,ae])}else Y(ae,!0)},ee=(W,te)=>{const ae=!s.horizontal&&(te!==0||!s.showSubtitle);return q(Bce,Object.assign({ref:A(te),date:W,currentDate:C.currentDate,showMonthTitle:ae,firstDayOfWeek:D},U7(s,["type","color","minDate","maxDate","showMark","formatter","rowHeight","showSubtitle","lazyRender","allowSameDay","topInfoRender","bottomInfoRender","formatMonthTitle"]),{onClick:K}),te)},ne=()=>{if(s.footer)return s.footer;if(s.showConfirm){const W=B?s.confirmDisabledText:s.confirmText;return q(ta,Object.assign({round:!0,block:!0,type:"danger",color:s.color,className:Me(Kp("confirm")),disabled:B,nativeType:"button",onClick:j},{children:W||u.vanCalendar.confirm}))}return null},$=()=>q("div",Object.assign({className:Me(Kp("footer"),{"rv-safe-area-bottom":s.safeAreaInsetBottom})},{children:ne()})),Z=()=>Ne("div",Object.assign({className:Me(r,Kp()),style:i},{children:[q(zce,{weekdays:s.weekdays,title:s.title,subtitle:s.subtitle||C.subtitle,showTitle:s.showTitle,showSubtitle:s.showSubtitle,firstDayOfWeek:D,onClickSubtitle:W=>{var te;(te=s.onClickSubtitle)===null||te===void 0||te.call(s,W)}}),s.horizontal?q("div",Object.assign({ref:y,className:Me(Kp("horizontal-body"))},{children:q(oz,Object.assign({indicator:()=>null,onChange:W=>{_({subtitle:O[W].getTitle()})}},{children:M.map((W,te)=>q(oz.Item,{children:ee(W,te)},W))}))})):q("div",Object.assign({ref:y,className:Me(Kp("body")),onScroll:F},{children:M.map(ee)})),$()]})),X={toggle:()=>{s.poppable&&c(W=>!W)},open:()=>{s.poppable&&c(!0)},close:()=>{s.poppable&&c(!1)}};return G.useEffect(()=>{s.poppable||L()},[]),G.useEffect(()=>{s.poppable&&d&&L()},[d]),Dd(()=>{H(v(C.currentDate))},[s.type,s.minDate,s.maxDate]),G.useImperativeHandle(e,()=>Object.assign({reset:H,scrollToDate:I},X)),s.poppable?Ne(Jt,{children:[q(Nd,Object.assign({visible:d,className:Me(Kp("popup")),round:s.round,position:s.position,closeable:s.showTitle||s.showSubtitle,closeOnPopstate:s.closeOnPopstate,closeOnClickOverlay:s.closeOnClickOverlay,onClose:X.close,onClosed:()=>{var W;s.poppable&&JSON.stringify(C.currentDate)!==JSON.stringify(S)&&_({currentDate:S}),(W=s.onClosed)===null||W===void 0||W.call(s)}},{children:Z()})),(n=s.children)===null||n===void 0?void 0:n.call(s,S,X)]}):Z()});function Uce(t,e){var n;process.env.NODE_ENV==="development"&&(Od(t)||void 0);const r=J7(t),i=(n=e==null?void 0:e.wait)!==null&&n!==void 0?n:1e3,o=G.useMemo(()=>kce((...s)=>r.current(...s),i,e),[]);return e9(()=>{o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}function Vce(t,e,n){const[r,i]=G.useState({}),{run:o}=Uce(()=>{i({})},n);G.useEffect(()=>o(),e),Dd(t,[r])}const Rxe="",cz=G.createContext({}),[$ce]=_n("checkbox-group"),qce=G.forwardRef((t,e)=>{const[n,r]=i2(),[i,o]=nz({value:t.value,defaultValue:t.defaultValue}),s=(d={})=>{typeof d=="boolean"&&(d={checked:d});const{checked:c,skipDisabled:p}=d,y=n.filter(g=>g.props.bindGroup?g.props.disabled&&p?g.checked:c??!g.checked:!1).map(g=>g.props.name);o(y),t.onChange(y)},u=d=>{var c;o(d),(c=t.onChange)===null||c===void 0||c.call(t,d)};return G.useImperativeHandle(e,()=>({toggleAll:s})),q(cz.Provider,Object.assign({value:{parent:{props:t},toggle:u,checked:i||[]}},{children:q("div",Object.assign({className:Me(t.className,$ce([t.direction]))},{children:G.Children.toArray(t.children).filter(Boolean).map((d,c)=>{var p;return((p=d.type)===null||p===void 0?void 0:p.displayName)!=="Checkbox"?d:G.cloneElement(d,{ref:r(c)})})}))}))}),[Yce]=_n("checkbox"),fz=G.forwardRef((t,e)=>{const n=Ti(t,{bindGroup:!0}),r=G.useContext(cz),{parent:i}=r,o=Mo(r,["parent"]),[s,u]=nz({value:n.checked,defaultValue:n.defaultChecked}),d=v=>{const{name:y}=n,{max:g}=i.props,S=o.checked.slice();if(v)!(g&&S.length>=g)&&S.indexOf(y)===-1&&(S.push(y),n.bindGroup&&o.toggle(S));else{const E=S.indexOf(y);E!==-1&&(S.splice(E,1),n.bindGroup&&o.toggle(S))}},c=G.useMemo(()=>i&&n.bindGroup?o.checked.indexOf(n.name)!==-1:s,[o.checked,s]),p=(v=!c)=>{var y;i&&n.bindGroup?d(v):(u(v),(y=n.onChange)===null||y===void 0||y.call(n,v))};return G.useImperativeHandle(e,()=>({toggle:p,checked:c,props:n})),q(Rce,Object.assign({},n,{bem:Yce,role:"checkbox",parent:i,checked:c,className:n.className,bindGroup:n.bindGroup,onToggle:p}))});fz.displayName="Checkbox";const m8=Object.assign(fz,{Group:qce}),Lxe="",dz=200,hz=300,Kce=15;function Wce(t){const e=window.getComputedStyle(t),n=e.transform||e.webkitTransform,r=n.slice(7,n.length-1).split(", ")[5];return Number(r)}const[v8]=_n("picker-column"),Gce=G.memo(G.forwardRef((t,e)=>{const{locale:n}=G.useContext(Ip),{valueKey:r,textKey:i,itemHeight:o,visibleItemCount:s,placeholder:u,value:d}=t,c=G.useMemo(()=>G7(o),[o]),p=G.useMemo(()=>Array.isArray(t.options)&&!t.options.length?[]:u?[{[r]:void 0,[i]:u===!0?n.vanPicker.select:u},...t.options]:t.options,[t.options]),v=G.useRef(null),y=G.useRef(!1),g=G.useRef(0),S=G.useRef(null),E=G.useRef(0),C=G.useRef(0),[_,O,A]=Z7({offset:0,duration:0}),D=r9(),M=G.useMemo(()=>c*(+s-1)/2,[c,s]),B=$=>{var Z,X;$=mg($,0,p.length);for(let W=$;W<p.length;W+=1)if(!(!((Z=p[W])===null||Z===void 0)&&Z.disabled))return W;for(let W=$-1;W>=0;W-=1)if(!(!((X=p[W])===null||X===void 0)&&X.disabled))return W;return null},F=$=>{t.onSelect($,t.index)},I=$=>{$=B($)||0;const Z=-$*c,X=()=>{var W;((W=p[$])===null||W===void 0?void 0:W[r])!==d&&F(p[$])};y.current&&Z!==A.current.offset?S.current=X:X(),O({offset:Z})},U=$=>{$=B($)||0;const Z=-$*c;O({offset:Z})};vg(()=>{if(p.length===0)d!==void 0&&F(void 0);else{let $=p.findIndex(Z=>Z[r]===d);$<0&&($=0,F(p[0])),U($)}},[d,JSON.stringify(p)]);const L=$=>{y.current||t.readOnly||(S.current=null,O({duration:dz}),I($))},H=$=>mg(Math.round(-$/c),0,p.length-1),N=($,Z)=>{const X=Math.abs($/Z);$=A.current.offset+X/.003*($<0?-1:1);const W=H($);O({duration:+t.swipeDuration}),I(W)},j=()=>{y.current=!1,O({duration:0}),S.current&&(S.current(),S.current=null)},Y=$=>{if(t.readOnly)return;D.start($);let{offset:Z}=_;if(y.current){const X=Wce(v.current);Z=Math.min(0,X-M),g.current=Z}else g.current=Z;O({duration:0,offset:Z}),E.current=Date.now(),C.current=g.current,S.current=null},K=$=>{if(t.readOnly)return;D.move($),D.isVertical()&&(y.current=!0);const Z=mg(g.current+D.deltaY.current,-(p.length*c),c);O({offset:Z});const X=Date.now();X-E.current>hz&&(E.current=X,C.current=Z)},ee=()=>{if(t.readOnly||!y.current)return;const $=A.current.offset-C.current,Z=Date.now()-E.current;if(Z<hz&&Math.abs($)>Kce){N($,Z);return}const W=H(A.current.offset);O({duration:dz}),I(W),setTimeout(()=>{y.current=!1},0)},ne=()=>{const $={height:`${t.itemHeight}px`};return p.map((Z,X)=>{const{disabled:W}=Z,te={role:"button",style:$,tabIndex:W?-1:0,className:Me(v8("item",{disabled:W,selected:Z[r]===d})),onClick:()=>{L(X)}},ae={className:"rv-ellipsis",children:Z[i]};return G.createElement("li",Object.assign({},te,{key:X}),t.optionRender?t.optionRender(Z):q("div",Object.assign({},ae)))})};return G.useImperativeHandle(e,()=>({stopMomentum:j})),q("div",Object.assign({className:Me(v8(),t.className),onTouchStart:Y,onTouchMove:K,onTouchEnd:ee,onTouchCancel:ee},{children:q("ul",Object.assign({ref:v,style:{transform:`translate3d(0, ${_.offset+M}px, 0)`,transitionDuration:`${_.duration}ms`,transitionProperty:_.duration?"all":"none"},className:Me(v8("wrapper")),onTransitionEnd:j},{children:ne()}))}))}),(t,e)=>!(t.index!==e.index||t.value!==e.value||t.onSelect!==e.onSelect||JSON.stringify(t.options)!==JSON.stringify(e.options)));function Qce(t,e){const{textKey:n,valueKey:r,childrenKey:i}=e,o=G.useMemo(()=>{if(t.some(c=>typeof c=="object"&&i in c))return"cascade";const d=t[0]||{};return typeof d=="object"?i in d?"cascade":"object":"plain"},[t,i]),s=G.useMemo(()=>{let u=0;function d(c,p){p>u&&(u=p);const v=p+1;c.forEach(y=>{y[i]&&d(y[i],v)})}return d(t,1),u},[t,i]);return o!=="cascade"?t:u=>{const d=[];let c=t,p=0;for(;;){d.push(c.map(g=>{var S;return{[n]:g[n],[r]:(S=g[r])!==null&&S!==void 0?S:g[n]}}));const v=u[p],y=c.find(g=>{var S;return((S=g[r])!==null&&S!==void 0?S:g[n])===v});if(!y||!y[i])break;c=y[i],p++}for(;p<s-1;)d.push([]),p++;return d}}function g8(t){let e=null;return()=>(e===null&&(e=t()),e)}function Xce(t,e,n){const{textKey:r,valueKey:i}=e,o=g8(()=>{let c=typeof t=="function"?t(n):t;return Array.isArray(c[0])||(c=[c]),c.map(p=>p.map(v=>typeof v=="string"?{[r]:v,[i]:v}:(i in v||(v[i]=v[r]),v)))}),s=g8(()=>n.map((c,p)=>{var v;const y=o()[p];return y?(v=y.find(g=>g[i]===c))!==null&&v!==void 0?v:void 0:null})),u=g8(()=>n.map((c,p)=>{var v;const y=o()[p];return y&&(v=y.findIndex(g=>g[i]===c))!==null&&v!==void 0?v:null}));return{get columns(){return o()},get items(){return s()},get indexes(){return u()}}}function pz(t,e,n){const r=Qce(t,e);return G.useMemo(()=>Xce(r,e,n),[t,e,n])}const[yu]=_n("picker");function Zce(t){const{locale:e}=G.useContext(Ip),n=G.useRef(null),[r,i]=i2(),{text:o,value:s,children:u}=pg({text:"text",value:"value",children:"children"},t.columnsFieldNames),[d,c]=G.useState(t.value);G.useEffect(()=>{t.value!==void 0&&JSON.stringify(d)!==JSON.stringify(t.value)&&c(t.value)},[t.value]);const p=pz(t.columns,{textKey:o,valueKey:s,childrenKey:u},d),{columns:v,items:y,indexes:g}=p;Vce(()=>{var I;JSON.stringify(t.value)!==JSON.stringify(d)&&((I=t.onChange)===null||I===void 0||I.call(t,d,y,g))},[d],{wait:100,leading:!1,trailing:!0});const S=G.useMemo(()=>G7(t.itemHeight),[t.itemHeight]),E=(I,U)=>{c(L=>{const H=[...L];return H[U]=I==null?void 0:I[s],H})},C=()=>{var I;r.forEach(U=>U.stopMomentum()),(I=t.onConfirm)===null||I===void 0||I.call(t,d,y,g)},_=()=>{var I;(I=t.onCancel)===null||I===void 0||I.call(t)},O=()=>t.title?q("div",Object.assign({className:Me(yu("title"),"rv-ellipsis")},{children:t.title})):null,A=()=>{const I=t.cancelButtonText||e.cancel;return q("button",Object.assign({type:"button",className:Me(yu("cancel")),onClick:_},{children:I}))},D=()=>{const I=t.confirmButtonText||e.confirm;return q("button",Object.assign({type:"button",className:Me(yu("confirm")),onClick:C},{children:I}))},M=()=>t.showToolbar?q("div",Object.assign({className:Me(yu("toolbar"))},{children:t.toolbar||Ne(Jt,{children:[A(),O(),D()]})})):null,B=()=>v.map((I,U)=>{const L=Array.isArray(t.placeholder)?t.placeholder[U]:t.placeholder;return q(Gce,{textKey:o,valueKey:s,ref:i(U),placeholder:L,optionRender:t.optionRender,readOnly:t.readOnly,value:d[U],itemHeight:S,index:U,swipeDuration:t.swipeDuration,visibleItemCount:t.visibleItemCount,options:I,onSelect:E},U)}),F=()=>{const I=S*t.visibleItemCount,U={height:`${S}px`},L={height:`${I}px`},H={backgroundSize:`100% ${(I-S)/2}px`};return Ne("div",Object.assign({ref:n,className:Me(yu("columns")),style:L},{children:[B(),q("div",{className:Me(yu("mask")),style:H}),q("div",{className:Me(dse,yu("frame")),style:U})]}))};return fT("touchmove",lT,{target:n.current}),Ne("div",Object.assign({className:Me(yu(),t.className)},{children:[t.toolbarPosition==="top"?M():null,t.loading?q(pT,{className:Me(yu("loading"))}):null,t.columnsTop,F(),t.columnsBottom,t.toolbarPosition==="bottom"?M():null]}))}function Jce(t,e){const n=Ti(t,{columns:[],itemHeight:44,visibleItemCount:5,swipeDuration:300,showToolbar:!0,placeholder:!0,toolbarPosition:"top"}),{visible:r,popup:i,children:o,defaultValue:s=[]}=n,u=Mo(n,["visible","popup","children","defaultValue"]),[d,c]=gg({value:r,defaultValue:!1,onChange:N=>{var j;N===!1&&((j=n.onClose)===null||j===void 0||j.call(n))}}),p={toggle:()=>{i&&c(N=>!N)},open:()=>{i&&c(!0)},close:()=>{i&&c(!1)}};G.useImperativeHandle(e,()=>p);const v=Array.isArray(n.value)?n.value:n.value!==void 0?[n.value]:void 0,y=Array.isArray(s)?s:s!==void 0?[s]:[],{text:g,value:S,children:E}=pg({text:"text",value:"value",children:"children"},n.columnsFieldNames),C=G.useMemo(()=>{const N=n.columns[0]||{};return!(Array.isArray(N)||typeof N=="object"&&E in N)},[n.columns,E]),_=N=>C?N==null?void 0:N[0]:N,[O,A]=gg({value:v,defaultValue:y}),D=pz(n.columns,{textKey:g,valueKey:S,childrenKey:E},O),[M,B]=G.useState(O);G.useEffect(()=>{i&&JSON.stringify(M)!==JSON.stringify(O)&&B(O)},[d]),G.useEffect(()=>{!i&&JSON.stringify(M)!==JSON.stringify(O)&&B(O)},[O]);const F=(N,j,Y)=>{var K;A(M,!0),(K=n.onConfirm)===null||K===void 0||K.call(n,_(N),_(j),_(Y)),i&&p.close()},I=()=>{var N;(N=n.onCancel)===null||N===void 0||N.call(n),i&&p.close()},U=a9((N,j,Y)=>{var K,ee;B(N),i?d&&((K=n.onChange)===null||K===void 0||K.call(n,_(N),_(j),_(Y))):(ee=n.onChange)===null||ee===void 0||ee.call(n,_(N),_(j),_(Y))}),L=Fp(i)?Object.assign({closeOnClickOverlay:!0},i):{closeOnClickOverlay:!0},H=q(Zce,Object.assign({},u,{value:M,onCancel:I,onConfirm:F,onChange:U}));return i?Ne(Jt,{children:[q(Nd,Object.assign({round:!0,position:"bottom",visible:d,closeOnClickOverlay:!0,onClickOverlay:()=>{L!=null&&L.closeOnClickOverlay&&c(!1)}},L,{children:H})),o==null?void 0:o(_(O),_(D.items),p)]}):H}const y8=G.forwardRef(Jce);function efe(t){return Object.prototype.toString.call(t)==="[object Date]"&&!W7(t.getTime())}const tfe=G.forwardRef((t,e)=>{const n=Ti(t,{type:"datetime",placeholder:!1,minDate:nfe,maxDate:rfe,formatter:(F,I)=>I}),{value:r,defaultValue:i,formatter:o,columnsOrder:s,type:u,filter:d,minDate:c,maxDate:p}=n,v=Mo(n,["value","defaultValue","formatter","columnsOrder","type","filter","minDate","maxDate"]),y=F=>(efe(F)||(F=new Date),F=Math.max(F,c.getTime()),F=Math.min(F,p.getTime()),new Date(F)),[g,S,E]=dT(()=>y(r||i)),C=(F,I)=>{const U=n[`${F}Date`],L=U.getFullYear();let H=1,N=1,j=0,Y=0;return F==="max"&&(H=12,N=p8(I.getFullYear(),I.getMonth()+1),j=23,Y=59),I.getFullYear()===L&&(H=U.getMonth()+1,I.getMonth()+1===H&&(N=U.getDate(),I.getDate()===N&&(j=U.getHours(),I.getHours()===j&&(Y=U.getMinutes())))),{[`${F}Year`]:L,[`${F}Month`]:H,[`${F}Date`]:N,[`${F}Hour`]:j,[`${F}Minute`]:Y}},_=G.useMemo(()=>{const{maxYear:F,maxDate:I,maxMonth:U,maxHour:L,maxMinute:H}=C("max",E.current),{minYear:N,minDate:j,minMonth:Y,minHour:K,minMinute:ee}=C("min",E.current);let ne=[{type:"year",range:[N,F]},{type:"month",range:[Y,U]},{type:"day",range:[j,I]},{type:"hour",range:[K,L]},{type:"minute",range:[ee,H]}];switch(u){case"date":ne=ne.slice(0,3);break;case"year-month":ne=ne.slice(0,2);break;case"month-day":ne=ne.slice(1,3);break;case"datehour":ne=ne.slice(0,4);break}if(s){const $=s.concat(ne.map(Z=>Z.type));ne.sort((Z,X)=>$.indexOf(Z.type)-$.indexOf(X.type))}return ne.map(({type:$,range:Z})=>{let X=uz(Z[1]-Z[0]+1,W=>xl(Z[0]+W));return d&&(X=d($,X)),{type:$,values:X}})},[s,E.current,c,p]),O=G.useMemo(()=>_.map(F=>F.values.map(I=>o(F.type,I))),[_,o]),A=G.useMemo(()=>{const F=n.popup?y(E.current):E.current;return _.map(U=>{switch(U.type){case"year":return o("year",`${F.getFullYear()}`);case"month":return o("month",xl(F.getMonth()+1));case"day":return o("day",xl(F.getDate()));case"hour":return o("hour",xl(F.getHours()));case"minute":return o("minute",xl(F.getMinutes()));default:return""}})},[n.value,E.current,y]),D=F=>{const{type:I}=n,U=ee=>{let ne=0;_.forEach((Z,X)=>{ee===Z.type&&(ne=X)});const{values:$}=_[ne];return Pce($[F[ne]])};let L=null,H=null,N=null;I==="month-day"?(L=(g||c).getFullYear(),H=U("month"),N=U("day")):(L=U("year"),H=U("month"),N=I==="year-month"?1:U("day"));const j=p8(L,H);N=N>j?j:N;let Y=0,K=0;return I==="datehour"&&(Y=+U("hour")),I==="datetime"&&(Y=+U("hour"),K=+U("minute")),y(new Date(L,H-1,N,Y,K))},M=(F,I,U)=>{var L;const H=D(U);S(H),(L=n.onChange)===null||L===void 0||L.call(n,H)},B=()=>{var F;(F=n.onConfirm)===null||F===void 0||F.call(n,g)};return Dd(()=>{const F=y(r);F&&F.valueOf()!==(g==null?void 0:g.valueOf())&&S(F)},[r,d,c,p]),q(y8,Object.assign({},v,{value:A,ref:e,columns:O,onChange:M,onConfirm:B,onCancel:n.onCancel},{children:(F,I,U)=>{var L;return(L=n.children)===null||L===void 0?void 0:L.call(n,r||i,I,U)}}))}),mz=new Date().getFullYear(),nfe=new Date(mz-10,0,1),rfe=new Date(mz+10,11,31),ife=tfe,ofe=G.forwardRef((t,e)=>{const n=Ti(t,{minHour:0,maxHour:23,minMinute:0,maxMinute:59,placeholder:!1,defaultValue:"",formatter:(B,F)=>F}),{value:r,defaultValue:i,formatter:o,filter:s,minHour:u,maxHour:d,minMinute:c,maxMinute:p}=n,v=Mo(n,["value","defaultValue","formatter","filter","minHour","maxHour","minMinute","maxMinute"]),y=B=>{B||(B=`${xl(u)}:${xl(c)}`);let[F,I]=B.split(":");return F=xl(mg(F,+u,+d)),I=xl(mg(I,+c,+p)),`${F}:${I}`},[g,S]=G.useState(()=>y(r===void 0?i:r)),E=G.useMemo(()=>[{type:"hour",range:[+u,+d]},{type:"minute",range:[+c,+p]}],[u,d,c,p]),C=G.useMemo(()=>E.map(({type:B,range:F})=>{let I=uz(F[1]-F[0]+1,U=>xl(F[0]+U));return s&&(I=s(B,I)),{type:B,values:I}}),[E]),_=G.useMemo(()=>C.map(B=>B.values.map(F=>o(B.type,F))),[C]),O=G.useMemo(()=>{const B=(n.popup?y(n.value):g).split(":");return[o("hour",B[0]),o("minute",B[1])]},[n.value,g,y]),A=()=>{var B;(B=n.onConfirm)===null||B===void 0||B.call(n,g)},D=()=>{var B;(B=n.onCancel)===null||B===void 0||B.call(n)},M=B=>{var F;const I=y(B.join(":"));S(I),(F=n.onChange)===null||F===void 0||F.call(n,I)};return Dd(()=>{const B=y(g);S(B)},[s,u,d,c,p]),Dd(()=>{const B=y(r);B!==g&&S(B)},[r]),q(y8,Object.assign({},v,{ref:e,columns:_,value:O,onChange:M,onConfirm:A,onCancel:D},{children:(B,F,I)=>{var U;return(U=n.children)===null||U===void 0?void 0:U.call(n,r,F,I)}}))}),[vz]=_n("datetime-picker"),x8=G.forwardRef((t,e)=>t.type==="time"?q(ofe,Object.assign({ref:e,className:Me(vz())},t)):q(ife,Object.assign({ref:e,className:Me(vz())},t)));function b8(t){return Array.isArray(t)?t:[t]}const Hxe="";function gz(t,e){this.v=t,this.k=e}function oo(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}oo=function(s,u,d,c){function p(v,y){oo(s,v,function(g){return this._invoke(v,y,g)})}u?i?i(s,u,{value:d,enumerable:!c,configurable:!c,writable:!c}):s[u]=d:(p("next",0),p("throw",1),p("return",2))},oo(t,e,n,r)}function S8(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(g,S,E,C){var _=S&&S.prototype instanceof u?S:u,O=Object.create(_.prototype);return oo(O,"_invoke",function(A,D,M){var B,F,I,U=0,L=M||[],H=!1,N={p:0,n:0,v:t,a:j,f:j.bind(t,4),d:function(K,ee){return B=K,F=0,I=t,N.n=ee,s}};function j(Y,K){for(F=Y,I=K,e=0;!H&&U&&!ee&&e<L.length;e++){var ee,ne=L[e],$=N.p,Z=ne[2];Y>3?(ee=Z===K)&&(I=ne[(F=ne[4])?5:(F=3,3)],ne[4]=ne[5]=t):ne[0]<=$&&((ee=Y<2&&$<ne[1])?(F=0,N.v=K,N.n=ne[1]):$<Z&&(ee=Y<3||ne[0]>K||K>Z)&&(ne[4]=Y,ne[5]=K,N.n=Z,F=0))}if(ee||Y>1)return s;throw H=!0,K}return function(Y,K,ee){if(U>1)throw TypeError("Generator is already running");for(H&&K===1&&j(K,ee),F=K,I=ee;(e=F<2?t:I)||!H;){B||(F?F<3?(F>1&&(N.n=-1),j(F,I)):N.n=I:N.v=I);try{if(U=2,B){if(F||(Y="next"),e=B[Y]){if(!(e=e.call(B,I)))throw TypeError("iterator result is not an object");if(!e.done)return e;I=e.value,F<2&&(F=0)}else F===1&&(e=B.return)&&e.call(B),F<2&&(I=TypeError("The iterator does not provide a '"+Y+"' method"),F=1);B=t}else if((e=(H=N.n<0)?I:A.call(D,N))!==s)break}catch(ne){B=t,F=1,I=ne}finally{U=1}}return{value:e,done:H}}}(g,E,C),!0),O}var s={};function u(){}function d(){}function c(){}e=Object.getPrototypeOf;var p=[][r]?e(e([][r]())):(oo(e={},r,function(){return this}),e),v=c.prototype=u.prototype=Object.create(p);function y(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,c):(g.__proto__=c,oo(g,i,"GeneratorFunction")),g.prototype=Object.create(v),g}return d.prototype=c,oo(v,"constructor",c),oo(c,"constructor",d),d.displayName="GeneratorFunction",oo(c,i,"GeneratorFunction"),oo(v),oo(v,i,"Generator"),oo(v,r,function(){return this}),oo(v,"toString",function(){return"[object Generator]"}),(S8=function(){return{w:o,m:y}})()}function s2(t,e){function n(i,o,s,u){try{var d=t[i](o),c=d.value;return c instanceof gz?e.resolve(c.v).then(function(p){n("next",p,s,u)},function(p){n("throw",p,s,u)}):e.resolve(c).then(function(p){d.value=p,s(d)},function(p){return n("throw",p,s,u)})}catch(p){u(p)}}var r;this.next||(oo(s2.prototype),oo(s2.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),oo(this,"_invoke",function(i,o,s){function u(){return new e(function(d,c){n(i,s,d,c)})}return r=r?r.then(u,u):u()},!0)}function yz(t,e,n,r,i){return new s2(S8().w(t,e,n,r),i||Promise)}function afe(t,e,n,r,i){var o=yz(t,e,n,r,i);return o.next().then(function(s){return s.done?s.value:o.next()})}function sfe(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function i(){for(;n.length;)if((r=n.pop())in e)return i.value=r,i.done=!1,i;return i.done=!0,i}}function xz(t){if(t!=null){var e=t[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(ai(t)+" is not iterable")}function as(){var t=S8(),e=t.m(as),n=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function r(s){var u=typeof s=="function"&&s.constructor;return!!u&&(u===n||(u.displayName||u.name)==="GeneratorFunction")}var i={throw:1,return:2,break:3,continue:3};function o(s){var u,d;return function(c){u||(u={stop:function(){return d(c.a,2)},catch:function(){return c.v},abrupt:function(v,y){return d(c.a,i[v],y)},delegateYield:function(v,y,g){return u.resultName=y,d(c.d,xz(v),g)},finish:function(v){return d(c.f,v)}},d=function(v,y,g){c.p=u.prev,c.n=u.next;try{return v(y,g)}finally{u.next=c.n}}),u.resultName&&(u[u.resultName]=c.v,u.resultName=void 0),u.sent=c.v,u.next=c.n;try{return s.call(this,u)}finally{c.p=u.prev,c.n=u.next}}}return(as=function(){return{wrap:function(d,c,p,v){return t.w(o(d),c,p,v&&v.reverse())},isGeneratorFunction:r,mark:t.m,awrap:function(d,c){return new gz(d,c)},AsyncIterator:s2,async:function(d,c,p,v,y){return(r(c)?yz:afe)(o(d),c,p,v,y)},keys:sfe,values:xz}})()}function bz(t,e,n,r,i,o,s){try{var u=t[o](s),d=u.value}catch(c){return void n(c)}u.done?e(d):Promise.resolve(d).then(r,i)}function Gg(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function s(d){bz(o,r,i,s,u,"next",d)}function u(d){bz(o,r,i,s,u,"throw",d)}s(void 0)})}}function lfe(t){if(Array.isArray(t))return _E(t)}function Sz(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ufe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
503
503
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bn(t){return lfe(t)||Sz(t)||TE(t)||ufe()}function w8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,d3(r.key),r)}}function C8(t,e,n){return e&&wz(t.prototype,e),n&&wz(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function cfe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&OS(t,e)}function l2(t){return l2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l2(t)}function Cz(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Cz=function(){return!!t})()}function ffe(t,e){if(e&&(ai(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tn(t)}function dfe(t){var e=Cz();return function(){var n,r=l2(t);if(e){var i=l2(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ffe(this,n)}}function E8(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return G.Children.forEach(t,function(r){r==null&&!e.keepEmpty||(Array.isArray(r)?n=n.concat(E8(r)):sY(r)&&r.props?n=n.concat(E8(r.props.children,e)):n.push(r))}),n}function Ez(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,d=r.has(o);if(Wr(!d,"Warning: There may be circular references"),d)return!1;if(o===s)return!0;if(n&&u>1)return!1;r.add(o);var c=u+1;if(Array.isArray(o)){if(!Array.isArray(s)||o.length!==s.length)return!1;for(var p=0;p<o.length;p++)if(!i(o[p],s[p],c))return!1;return!0}if(o&&s&&ai(o)==="object"&&ai(s)==="object"){var v=Object.keys(o);return v.length!==Object.keys(s).length?!1:v.every(function(y){return i(o[y],s[y],c)})}return!1}return i(t,e)}var zd="RC_FORM_INTERNAL_HOOKS",$n=function(){Wr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Lc=_e.createContext({getFieldValue:$n,getFieldsValue:$n,getFieldError:$n,getFieldWarning:$n,getFieldsError:$n,isFieldsTouched:$n,isFieldTouched:$n,isFieldValidating:$n,isFieldsValidating:$n,resetFields:$n,setFields:$n,setFieldValue:$n,setFieldsValue:$n,validateFields:$n,submit:$n,getInternalHooks:function(){return $n(),{dispatch:$n,initEntityValue:$n,registerField:$n,useSubscribe:$n,setInitialValues:$n,destroyForm:$n,setCallbacks:$n,registerWatch:$n,getFields:$n,setValidateMessages:$n,setPreserve:$n,getInitialValue:$n}}}),u2=_e.createContext(null);function k8(t){return t==null?[]:Array.isArray(t)?t:[t]}function hfe(t){return t&&!!t._init}function Id(){return Id=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Id.apply(this,arguments)}function pfe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Qg(t,e)}function _8(t){return _8=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_8(t)}function Qg(t,e){return Qg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Qg(t,e)}function mfe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function c2(t,e,n){return mfe()?c2=Reflect.construct.bind():c2=function(i,o,s){var u=[null];u.push.apply(u,o);var d=Function.bind.apply(i,u),c=new d;return s&&Qg(c,s.prototype),c},c2.apply(null,arguments)}function vfe(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function T8(t){var e=typeof Map=="function"?new Map:void 0;return T8=function(r){if(r===null||!vfe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return c2(r,arguments,_8(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Qg(i,r)},T8(t)}var gfe=/%[sdj%]/g,kz=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(kz=function(e,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(r){return typeof r=="string"})});function A8(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var r=n.field;e[r]=e[r]||[],e[r].push(n)}),e}function Ra(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=0,o=n.length;if(typeof t=="function")return t.apply(null,n);if(typeof t=="string"){var s=t.replace(gfe,function(u){if(u==="%%")return"%";if(i>=o)return u;switch(u){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return u}});return s}return t}function yfe(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function ui(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||yfe(e)&&typeof t=="string"&&!t)}function xfe(t,e,n){var r=[],i=0,o=t.length;function s(u){r.push.apply(r,u||[]),i++,i===o&&n(r)}t.forEach(function(u){e(u,s)})}function _z(t,e,n){var r=0,i=t.length;function o(s){if(s&&s.length){n(s);return}var u=r;r=r+1,u<i?e(t[u],o):n([])}o([])}function bfe(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n]||[])}),e}var Tz=function(t){pfe(e,t);function e(n,r){var i;return i=t.call(this,"Async Validation Error")||this,i.errors=n,i.fields=r,i}return e}(T8(Error));function Sfe(t,e,n,r,i){if(e.first){var o=new Promise(function(y,g){var S=function(_){return r(_),_.length?g(new Tz(_,A8(_))):y(i)},E=bfe(t);_z(E,n,S)});return o.catch(function(y){return y}),o}var s=e.firstFields===!0?Object.keys(t):e.firstFields||[],u=Object.keys(t),d=u.length,c=0,p=[],v=new Promise(function(y,g){var S=function(C){if(p.push.apply(p,C),c++,c===d)return r(p),p.length?g(new Tz(p,A8(p))):y(i)};u.length||(r(p),y(i)),u.forEach(function(E){var C=t[E];s.indexOf(E)!==-1?_z(C,n,S):xfe(C,n,S)})});return v.catch(function(y){return y}),v}function wfe(t){return!!(t&&t.message!==void 0)}function Cfe(t,e){for(var n=t,r=0;r<e.length;r++){if(n==null)return n;n=n[e[r]]}return n}function Az(t,e){return function(n){var r;return t.fullFields?r=Cfe(e,t.fullFields):r=e[n.field||t.fullField],wfe(n)?(n.field=n.field||t.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||t.fullField}}}function Oz(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];typeof r=="object"&&typeof t[n]=="object"?t[n]=Id({},t[n],r):t[n]=r}}return t}var Dz=function(e,n,r,i,o,s){e.required&&(!r.hasOwnProperty(e.field)||ui(n,s||e.type))&&i.push(Ra(o.messages.required,e.fullField))},Efe=function(e,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push(Ra(o.messages.whitespace,e.fullField))},f2,kfe=function(){if(f2)return f2;var t="[a-fA-F\\d:]",e=function(D){return D&&D.includeBoundaries?"(?:(?<=\\s|^)(?="+t+")|(?<="+t+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=(`
504
504
  (?:
505
505
  (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
@@ -640,4 +640,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
640
640
  * Counter block mode compatible with Dr Brian Gladman fileenc.c
641
641
  * derived from CryptoJS.mode.CTR
642
642
  * Jan Hruby jhruby.web@gmail.com
643
- */return n.mode.CTRGladman=function(){var r=n.lib.BlockCipherMode.extend();function i(u){if((u>>24&255)===255){var d=u>>16&255,c=u>>8&255,p=u&255;d===255?(d=0,c===255?(c=0,p===255?p=0:++p):++c):++d,u=0,u+=d<<16,u+=c<<8,u+=p}else u+=1<<24;return u}function o(u){return(u[0]=i(u[0]))===0&&(u[1]=i(u[1])),u}var s=r.Encryptor=r.extend({processBlock:function(u,d){var c=this._cipher,p=c.blockSize,v=this._iv,y=this._counter;v&&(y=this._counter=v.slice(0),this._iv=void 0),o(y);var g=y.slice(0);c.encryptBlock(g,0);for(var S=0;S<p;S++)u[d+S]^=g[S]}});return r.Decryptor=s,r}(),n.mode.CTRGladman})}(dA)),dA.exports}var hA={exports:{}},bI;function hhe(){return bI||(bI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Ai())})(Vt,function(n){return n.mode.OFB=function(){var r=n.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(o,s){var u=this._cipher,d=u.blockSize,c=this._iv,p=this._keystream;c&&(p=this._keystream=c.slice(0),this._iv=void 0),u.encryptBlock(p,0);for(var v=0;v<d;v++)o[s+v]^=p[v]}});return r.Decryptor=i,r}(),n.mode.OFB})}(hA)),hA.exports}var pA={exports:{}},SI;function phe(){return SI||(SI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Ai())})(Vt,function(n){return n.mode.ECB=function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(i,o){this._cipher.encryptBlock(i,o)}}),r.Decryptor=r.extend({processBlock:function(i,o){this._cipher.decryptBlock(i,o)}}),r}(),n.mode.ECB})}(pA)),pA.exports}var mA={exports:{}},wI;function mhe(){return wI||(wI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Ai())})(Vt,function(n){return n.pad.AnsiX923={pad:function(r,i){var o=r.sigBytes,s=i*4,u=s-o%s,d=o+u-1;r.clamp(),r.words[d>>>2]|=u<<24-d%4*8,r.sigBytes+=u},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Ansix923})}(mA)),mA.exports}var vA={exports:{}},CI;function vhe(){return CI||(CI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Ai())})(Vt,function(n){return n.pad.Iso10126={pad:function(r,i){var o=i*4,s=o-r.sigBytes%o;r.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Iso10126})}(vA)),vA.exports}var gA={exports:{}},EI;function ghe(){return EI||(EI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Ai())})(Vt,function(n){return n.pad.Iso97971={pad:function(r,i){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,i)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})}(gA)),gA.exports}var yA={exports:{}},kI;function yhe(){return kI||(kI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Ai())})(Vt,function(n){return n.pad.ZeroPadding={pad:function(r,i){var o=i*4;r.clamp(),r.sigBytes+=o-(r.sigBytes%o||o)},unpad:function(r){for(var i=r.words,o=r.sigBytes-1,o=r.sigBytes-1;o>=0;o--)if(i[o>>>2]>>>24-o%4*8&255){r.sigBytes=o+1;break}}},n.pad.ZeroPadding})}(yA)),yA.exports}var xA={exports:{}},_I;function xhe(){return _I||(_I=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Ai())})(Vt,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(xA)),xA.exports}var bA={exports:{}},TI;function bhe(){return TI||(TI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Ai())})(Vt,function(n){return function(r){var i=n,o=i.lib,s=o.CipherParams,u=i.enc,d=u.Hex,c=i.format;c.Hex={stringify:function(p){return p.ciphertext.toString(d)},parse:function(p){var v=d.parse(p);return s.create({ciphertext:v})}}}(),n.format.Hex})}(bA)),bA.exports}var SA={exports:{}},AI;function She(){return AI||(AI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Hd(),Ud(),Bc(),Ai())})(Vt,function(n){return function(){var r=n,i=r.lib,o=i.BlockCipher,s=r.algo,u=[],d=[],c=[],p=[],v=[],y=[],g=[],S=[],E=[],C=[];(function(){for(var A=[],D=0;D<256;D++)D<128?A[D]=D<<1:A[D]=D<<1^283;for(var M=0,B=0,D=0;D<256;D++){var F=B^B<<1^B<<2^B<<3^B<<4;F=F>>>8^F&255^99,u[M]=F,d[F]=M;var I=A[M],U=A[I],L=A[U],H=A[F]*257^F*16843008;c[M]=H<<24|H>>>8,p[M]=H<<16|H>>>16,v[M]=H<<8|H>>>24,y[M]=H;var H=L*16843009^U*65537^I*257^M*16843008;g[F]=H<<24|H>>>8,S[F]=H<<16|H>>>16,E[F]=H<<8|H>>>24,C[F]=H,M?(M=I^A[A[A[L^I]]],B^=A[A[B]]):M=B=1}})();var _=[0,1,2,4,8,16,32,64,128,27,54],O=s.AES=o.extend({_doReset:function(){var A;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var D=this._keyPriorReset=this._key,M=D.words,B=D.sigBytes/4,F=this._nRounds=B+6,I=(F+1)*4,U=this._keySchedule=[],L=0;L<I;L++)L<B?U[L]=M[L]:(A=U[L-1],L%B?B>6&&L%B==4&&(A=u[A>>>24]<<24|u[A>>>16&255]<<16|u[A>>>8&255]<<8|u[A&255]):(A=A<<8|A>>>24,A=u[A>>>24]<<24|u[A>>>16&255]<<16|u[A>>>8&255]<<8|u[A&255],A^=_[L/B|0]<<24),U[L]=U[L-B]^A);for(var H=this._invKeySchedule=[],N=0;N<I;N++){var L=I-N;if(N%4)var A=U[L];else var A=U[L-4];N<4||L<=4?H[N]=A:H[N]=g[u[A>>>24]]^S[u[A>>>16&255]]^E[u[A>>>8&255]]^C[u[A&255]]}}},encryptBlock:function(A,D){this._doCryptBlock(A,D,this._keySchedule,c,p,v,y,u)},decryptBlock:function(A,D){var M=A[D+1];A[D+1]=A[D+3],A[D+3]=M,this._doCryptBlock(A,D,this._invKeySchedule,g,S,E,C,d);var M=A[D+1];A[D+1]=A[D+3],A[D+3]=M},_doCryptBlock:function(A,D,M,B,F,I,U,L){for(var H=this._nRounds,N=A[D]^M[0],j=A[D+1]^M[1],Y=A[D+2]^M[2],K=A[D+3]^M[3],ee=4,ne=1;ne<H;ne++){var $=B[N>>>24]^F[j>>>16&255]^I[Y>>>8&255]^U[K&255]^M[ee++],Z=B[j>>>24]^F[Y>>>16&255]^I[K>>>8&255]^U[N&255]^M[ee++],X=B[Y>>>24]^F[K>>>16&255]^I[N>>>8&255]^U[j&255]^M[ee++],W=B[K>>>24]^F[N>>>16&255]^I[j>>>8&255]^U[Y&255]^M[ee++];N=$,j=Z,Y=X,K=W}var $=(L[N>>>24]<<24|L[j>>>16&255]<<16|L[Y>>>8&255]<<8|L[K&255])^M[ee++],Z=(L[j>>>24]<<24|L[Y>>>16&255]<<16|L[K>>>8&255]<<8|L[N&255])^M[ee++],X=(L[Y>>>24]<<24|L[K>>>16&255]<<16|L[N>>>8&255]<<8|L[j&255])^M[ee++],W=(L[K>>>24]<<24|L[N>>>16&255]<<16|L[j>>>8&255]<<8|L[Y&255])^M[ee++];A[D]=$,A[D+1]=Z,A[D+2]=X,A[D+3]=W},keySize:256/32});r.AES=o._createHelper(O)}(),n.AES})}(SA)),SA.exports}var wA={exports:{}},OI;function whe(){return OI||(OI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Hd(),Ud(),Bc(),Ai())})(Vt,function(n){return function(){var r=n,i=r.lib,o=i.WordArray,s=i.BlockCipher,u=r.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],p=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],v=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],y=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],g=u.DES=s.extend({_doReset:function(){for(var _=this._key,O=_.words,A=[],D=0;D<56;D++){var M=d[D]-1;A[D]=O[M>>>5]>>>31-M%32&1}for(var B=this._subKeys=[],F=0;F<16;F++){for(var I=B[F]=[],U=p[F],D=0;D<24;D++)I[D/6|0]|=A[(c[D]-1+U)%28]<<31-D%6,I[4+(D/6|0)]|=A[28+(c[D+24]-1+U)%28]<<31-D%6;I[0]=I[0]<<1|I[0]>>>31;for(var D=1;D<7;D++)I[D]=I[D]>>>(D-1)*4+3;I[7]=I[7]<<5|I[7]>>>27}for(var L=this._invSubKeys=[],D=0;D<16;D++)L[D]=B[15-D]},encryptBlock:function(_,O){this._doCryptBlock(_,O,this._subKeys)},decryptBlock:function(_,O){this._doCryptBlock(_,O,this._invSubKeys)},_doCryptBlock:function(_,O,A){this._lBlock=_[O],this._rBlock=_[O+1],S.call(this,4,252645135),S.call(this,16,65535),E.call(this,2,858993459),E.call(this,8,16711935),S.call(this,1,1431655765);for(var D=0;D<16;D++){for(var M=A[D],B=this._lBlock,F=this._rBlock,I=0,U=0;U<8;U++)I|=v[U][((F^M[U])&y[U])>>>0];this._lBlock=F,this._rBlock=B^I}var L=this._lBlock;this._lBlock=this._rBlock,this._rBlock=L,S.call(this,1,1431655765),E.call(this,8,16711935),E.call(this,2,858993459),S.call(this,16,65535),S.call(this,4,252645135),_[O]=this._lBlock,_[O+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function S(_,O){var A=(this._lBlock>>>_^this._rBlock)&O;this._rBlock^=A,this._lBlock^=A<<_}function E(_,O){var A=(this._rBlock>>>_^this._lBlock)&O;this._lBlock^=A,this._rBlock^=A<<_}r.DES=s._createHelper(g);var C=u.TripleDES=s.extend({_doReset:function(){var _=this._key,O=_.words;if(O.length!==2&&O.length!==4&&O.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var A=O.slice(0,2),D=O.length<4?O.slice(0,2):O.slice(2,4),M=O.length<6?O.slice(0,2):O.slice(4,6);this._des1=g.createEncryptor(o.create(A)),this._des2=g.createEncryptor(o.create(D)),this._des3=g.createEncryptor(o.create(M))},encryptBlock:function(_,O){this._des1.encryptBlock(_,O),this._des2.decryptBlock(_,O),this._des3.encryptBlock(_,O)},decryptBlock:function(_,O){this._des3.decryptBlock(_,O),this._des2.encryptBlock(_,O),this._des1.decryptBlock(_,O)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=s._createHelper(C)}(),n.TripleDES})}(wA)),wA.exports}var CA={exports:{}},DI;function Che(){return DI||(DI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Hd(),Ud(),Bc(),Ai())})(Vt,function(n){return function(){var r=n,i=r.lib,o=i.StreamCipher,s=r.algo,u=s.RC4=o.extend({_doReset:function(){for(var p=this._key,v=p.words,y=p.sigBytes,g=this._S=[],S=0;S<256;S++)g[S]=S;for(var S=0,E=0;S<256;S++){var C=S%y,_=v[C>>>2]>>>24-C%4*8&255;E=(E+g[S]+_)%256;var O=g[S];g[S]=g[E],g[E]=O}this._i=this._j=0},_doProcessBlock:function(p,v){p[v]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var p=this._S,v=this._i,y=this._j,g=0,S=0;S<4;S++){v=(v+1)%256,y=(y+p[v])%256;var E=p[v];p[v]=p[y],p[y]=E,g|=p[(p[v]+p[y])%256]<<24-S*8}return this._i=v,this._j=y,g}r.RC4=o._createHelper(u);var c=s.RC4Drop=u.extend({cfg:u.cfg.extend({drop:192}),_doReset:function(){u._doReset.call(this);for(var p=this.cfg.drop;p>0;p--)d.call(this)}});r.RC4Drop=o._createHelper(c)}(),n.RC4})}(CA)),CA.exports}var EA={exports:{}},MI;function Ehe(){return MI||(MI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Hd(),Ud(),Bc(),Ai())})(Vt,function(n){return function(){var r=n,i=r.lib,o=i.StreamCipher,s=r.algo,u=[],d=[],c=[],p=s.Rabbit=o.extend({_doReset:function(){for(var y=this._key.words,g=this.cfg.iv,S=0;S<4;S++)y[S]=(y[S]<<8|y[S]>>>24)&16711935|(y[S]<<24|y[S]>>>8)&4278255360;var E=this._X=[y[0],y[3]<<16|y[2]>>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],C=this._C=[y[2]<<16|y[2]>>>16,y[0]&4294901760|y[1]&65535,y[3]<<16|y[3]>>>16,y[1]&4294901760|y[2]&65535,y[0]<<16|y[0]>>>16,y[2]&4294901760|y[3]&65535,y[1]<<16|y[1]>>>16,y[3]&4294901760|y[0]&65535];this._b=0;for(var S=0;S<4;S++)v.call(this);for(var S=0;S<8;S++)C[S]^=E[S+4&7];if(g){var _=g.words,O=_[0],A=_[1],D=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,M=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,B=D>>>16|M&4294901760,F=M<<16|D&65535;C[0]^=D,C[1]^=B,C[2]^=M,C[3]^=F,C[4]^=D,C[5]^=B,C[6]^=M,C[7]^=F;for(var S=0;S<4;S++)v.call(this)}},_doProcessBlock:function(y,g){var S=this._X;v.call(this),u[0]=S[0]^S[5]>>>16^S[3]<<16,u[1]=S[2]^S[7]>>>16^S[5]<<16,u[2]=S[4]^S[1]>>>16^S[7]<<16,u[3]=S[6]^S[3]>>>16^S[1]<<16;for(var E=0;E<4;E++)u[E]=(u[E]<<8|u[E]>>>24)&16711935|(u[E]<<24|u[E]>>>8)&4278255360,y[g+E]^=u[E]},blockSize:128/32,ivSize:64/32});function v(){for(var y=this._X,g=this._C,S=0;S<8;S++)d[S]=g[S];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<d[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<d[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<d[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<d[3]>>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<d[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<d[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<d[6]>>>0?1:0)|0,this._b=g[7]>>>0<d[7]>>>0?1:0;for(var S=0;S<8;S++){var E=y[S]+g[S],C=E&65535,_=E>>>16,O=((C*C>>>17)+C*_>>>15)+_*_,A=((E&4294901760)*E|0)+((E&65535)*E|0);c[S]=O^A}y[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,y[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,y[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,y[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,y[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,y[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,y[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,y[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.Rabbit=o._createHelper(p)}(),n.Rabbit})}(EA)),EA.exports}var kA={exports:{}},RI;function khe(){return RI||(RI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Hd(),Ud(),Bc(),Ai())})(Vt,function(n){return function(){var r=n,i=r.lib,o=i.StreamCipher,s=r.algo,u=[],d=[],c=[],p=s.RabbitLegacy=o.extend({_doReset:function(){var y=this._key.words,g=this.cfg.iv,S=this._X=[y[0],y[3]<<16|y[2]>>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],E=this._C=[y[2]<<16|y[2]>>>16,y[0]&4294901760|y[1]&65535,y[3]<<16|y[3]>>>16,y[1]&4294901760|y[2]&65535,y[0]<<16|y[0]>>>16,y[2]&4294901760|y[3]&65535,y[1]<<16|y[1]>>>16,y[3]&4294901760|y[0]&65535];this._b=0;for(var C=0;C<4;C++)v.call(this);for(var C=0;C<8;C++)E[C]^=S[C+4&7];if(g){var _=g.words,O=_[0],A=_[1],D=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,M=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,B=D>>>16|M&4294901760,F=M<<16|D&65535;E[0]^=D,E[1]^=B,E[2]^=M,E[3]^=F,E[4]^=D,E[5]^=B,E[6]^=M,E[7]^=F;for(var C=0;C<4;C++)v.call(this)}},_doProcessBlock:function(y,g){var S=this._X;v.call(this),u[0]=S[0]^S[5]>>>16^S[3]<<16,u[1]=S[2]^S[7]>>>16^S[5]<<16,u[2]=S[4]^S[1]>>>16^S[7]<<16,u[3]=S[6]^S[3]>>>16^S[1]<<16;for(var E=0;E<4;E++)u[E]=(u[E]<<8|u[E]>>>24)&16711935|(u[E]<<24|u[E]>>>8)&4278255360,y[g+E]^=u[E]},blockSize:128/32,ivSize:64/32});function v(){for(var y=this._X,g=this._C,S=0;S<8;S++)d[S]=g[S];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<d[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<d[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<d[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<d[3]>>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<d[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<d[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<d[6]>>>0?1:0)|0,this._b=g[7]>>>0<d[7]>>>0?1:0;for(var S=0;S<8;S++){var E=y[S]+g[S],C=E&65535,_=E>>>16,O=((C*C>>>17)+C*_>>>15)+_*_,A=((E&4294901760)*E|0)+((E&65535)*E|0);c[S]=O^A}y[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,y[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,y[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,y[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,y[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,y[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,y[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,y[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.RabbitLegacy=o._createHelper(p)}(),n.RabbitLegacy})}(kA)),kA.exports}var _A={exports:{}},NI;function _he(){return NI||(NI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Hd(),Ud(),Bc(),Ai())})(Vt,function(n){return function(){var r=n,i=r.lib,o=i.BlockCipher,s=r.algo;const u=16,d=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var p={pbox:[],sbox:[]};function v(C,_){let O=_>>24&255,A=_>>16&255,D=_>>8&255,M=_&255,B=C.sbox[0][O]+C.sbox[1][A];return B=B^C.sbox[2][D],B=B+C.sbox[3][M],B}function y(C,_,O){let A=_,D=O,M;for(let B=0;B<u;++B)A=A^C.pbox[B],D=v(C,A)^D,M=A,A=D,D=M;return M=A,A=D,D=M,D=D^C.pbox[u],A=A^C.pbox[u+1],{left:A,right:D}}function g(C,_,O){let A=_,D=O,M;for(let B=u+1;B>1;--B)A=A^C.pbox[B],D=v(C,A)^D,M=A,A=D,D=M;return M=A,A=D,D=M,D=D^C.pbox[1],A=A^C.pbox[0],{left:A,right:D}}function S(C,_,O){for(let F=0;F<4;F++){C.sbox[F]=[];for(let I=0;I<256;I++)C.sbox[F][I]=c[F][I]}let A=0;for(let F=0;F<u+2;F++)C.pbox[F]=d[F]^_[A],A++,A>=O&&(A=0);let D=0,M=0,B=0;for(let F=0;F<u+2;F+=2)B=y(C,D,M),D=B.left,M=B.right,C.pbox[F]=D,C.pbox[F+1]=M;for(let F=0;F<4;F++)for(let I=0;I<256;I+=2)B=y(C,D,M),D=B.left,M=B.right,C.sbox[F][I]=D,C.sbox[F][I+1]=M;return!0}var E=s.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var C=this._keyPriorReset=this._key,_=C.words,O=C.sigBytes/4;S(p,_,O)}},encryptBlock:function(C,_){var O=y(p,C[_],C[_+1]);C[_]=O.left,C[_+1]=O.right},decryptBlock:function(C,_){var O=g(p,C[_],C[_+1]);C[_]=O.left,C[_+1]=O.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=o._createHelper(E)}(),n.Blowfish})}(_A)),_A.exports}(function(t,e){(function(n,r,i){t.exports=r(dn(),h2(),nhe(),rhe(),Hd(),ihe(),Ud(),oI(),J8(),ohe(),uI(),ahe(),she(),lhe(),aA(),uhe(),Bc(),Ai(),che(),fhe(),dhe(),hhe(),phe(),mhe(),vhe(),ghe(),yhe(),xhe(),bhe(),She(),whe(),Che(),Ehe(),khe(),_he())})(Vt,function(n){return n})})(Qz);var The=Qz.exports;const xu=ep(The);class Ahe{constructor(){Jh(this,"salt","SzlDJd#4202")}encrypt(e){if(!e)return;const n=typeof e=="string"?e:JSON.stringify(e);return xu.AES.encrypt(n,this.salt).toString()}decrypt(e){if(e)return xu.AES.decrypt(e,this.salt).toString(xu.enc.Utf8)}}class Ohe{constructor(e){Jh(this,"salt");this.salt=e}encrypt(e){return xu.HmacSHA512(e,this.salt).toString()}}const Qn=class Qn{static rotateLeft(e,n){return e<<n|e>>>32-n}static FFj(e,n,r,i){return i>=0&&i<=15?e^n^r:e&n|e&r|n&r}static GGj(e,n,r,i){return i>=0&&i<=15?e^n^r:e&n|~e&r}static P0(e){return e^Qn.rotateLeft(e,9)^Qn.rotateLeft(e,17)}static P1(e){return e^Qn.rotateLeft(e,15)^Qn.rotateLeft(e,23)}static pad(e){const n=e.length*8,r=(448-(n+1)%512+512)%512,i=(n+1+r+64)/8,o=new Uint8Array(i);o.set(e),o[e.length]=128;const s=new Uint8Array(8);return new DataView(s.buffer).setBigUint64(0,BigInt(n),!1),o.set(s,i-8),o}static processBlock(e,n){const r=new Uint32Array(68),i=new Uint32Array(64);for(let g=0;g<16;g++){const S=new DataView(e.buffer,e.byteOffset+g*4,4);r[g]=S.getUint32(0,!1)}for(let g=16;g<68;g++)r[g]=Qn.P1(r[g-16]^r[g-9]^Qn.rotateLeft(r[g-3],15))^Qn.rotateLeft(r[g-13],7)^r[g-6];for(let g=0;g<64;g++)i[g]=r[g]^r[g+4];let o=n[0],s=n[1],u=n[2],d=n[3],c=n[4],p=n[5],v=n[6],y=n[7];for(let g=0;g<64;g++){const S=Qn.rotateLeft(Qn.rotateLeft(o,12)+c+Qn.rotateLeft(Qn.T[g],g),7),E=S^Qn.rotateLeft(o,12),C=Qn.FFj(o,s,u,g)+d+E+i[g],_=Qn.GGj(c,p,v,g)+y+S+r[g];d=u,u=Qn.rotateLeft(s,9),s=o,o=C,y=v,v=Qn.rotateLeft(p,19),p=c,c=Qn.P0(_)}n[0]^=o,n[1]^=s,n[2]^=u,n[3]^=d,n[4]^=c,n[5]^=p,n[6]^=v,n[7]^=y}static hash(e){const n=Qn.pad(e),r=new Uint32Array(Qn.IV);for(let s=0;s<n.length;s+=64){const u=n.slice(s,s+64);Qn.processBlock(u,r)}const i=new Uint8Array(32),o=new DataView(i.buffer);for(let s=0;s<8;s++)o.setUint32(s*4,r[s],!1);return i}static hashHex(e){const n=typeof e=="string"?new TextEncoder().encode(e):e,r=Qn.hash(n);return Array.from(r).map(i=>i.toString(16).padStart(2,"0")).join("")}};Jh(Qn,"IV",new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214])),Jh(Qn,"T",new Uint32Array(64)),(()=>{for(let e=0;e<16;e++)Qn.T[e]=2043430169;for(let e=16;e<64;e++)Qn.T[e]=2055708042})();let ty=Qn;class TA{constructor(e){Jh(this,"key");this.key=typeof e=="string"?new TextEncoder().encode(e):e}digest(e){const n=typeof e=="string"?new TextEncoder().encode(e):e,r=64;let i;if(this.key.length>r)i=ty.hash(this.key);else{i=new Uint8Array(r),i.set(this.key);for(let v=this.key.length;v<r;v++)i[v]=0}const o=new Uint8Array(r),s=new Uint8Array(r);for(let v=0;v<r;v++)o[v]=i[v]^54,s[v]=i[v]^92;const u=new Uint8Array(o.length+n.length);u.set(o),u.set(n,o.length);const d=ty.hash(u),c=new Uint8Array(s.length+d.length);return c.set(s),c.set(d,s.length),ty.hash(c)}digestHex(e){const n=this.digest(e);return Array.from(n).map(r=>r.toString(16).padStart(2,"0")).join("")}static hmac(e,n){return new TA(e).digestHex(n)}}function Dhe(t){const{imgKey:e="Img"}=t,{data:n,loading:r,error:i,refresh:o}=CE.useRequest(t.request,{debounceWait:300,ready:!0,retryCount:3});return{data:n,renderCaptcha:()=>i?q(fe.Button,{type:"link",title:"验证码加载失败,请重试",icon:q(Lq,{}),onClick:o,children:"点击重试"}):q("img",{src:ll.get(n,[e]),style:{height:"100%",objectFit:"contain",cursor:"pointer"},onClick:o}),loading:r,refresh:o}}function Mhe(t){const{modal:e,message:n}=fe.App.useApp(),[r]=fe.Form.useForm(),i=[{dataIndex:"Password",title:"新密码",valueType:"password",valueProps:{placeholder:"请输入新密码"},formItemProps:{rules:[{required:!0,message:"请输入新密码"},Gz.passwordNewRule]}},{dataIndex:"NewPassword",title:"确认密码",valueType:"password",valueProps:{placeholder:"请输入确认密码"},formItemProps:{rules:[{required:!0,message:"请输入确认密码"},({getFieldValue:s})=>({validator(u,d){return!d||s("Password")===d?Promise.resolve():Promise.reject(new Error("两次密码输入不一致"))}})]}}];return{handleChangePwd:CE.useLockFn(async(s,u)=>{const d=t==null?void 0:t.modalProps;let c;d!=null&&d.width&&(typeof d.width=="string"||typeof d.width=="number")&&(c=d.width),await e.confirm({title:u||"修改密码",icon:null,wrapClassName:"confirmWrapper",content:q(kk,{items:i,formProps:{form:r,preserve:!1,layout:"vertical",labelCol:{span:24},wrapperCol:{span:24}}}),onOk(){return new Promise((p,v)=>{r.validateFields().then(y=>{s({values:y,resolve:p,reject:v})}).catch(y=>{v(y)})})},...d,width:c})})}}const Rhe="SzlDJd#4202";function Nhe(t){const[e,n]=G.useState(null);G.useEffect(()=>{r()},[]);const r=()=>{const i=xu.AES.decrypt(t,Rhe);try{const o=JSON.parse(i.toString(xu.enc.Utf8));n(o)}catch{}};return e}function Fhe(t){const{secertKey:e,storageKey:n}=t;return{onParse:o=>{const s=localStorage.getItem(n);if(!s){o(null);return}const u=xu.AES.decrypt(s,e);try{const d=JSON.parse(u.toString(xu.enc.Utf8));o(d)}catch{o(null)}},onSave:o=>{const s=xu.AES.encrypt(JSON.stringify({...o,timestamp:Date.now()}),e);S5(n,s.toString())}}}function Phe(t){const{dataSource:e,rowKey:n,defaultRows:r=[]}=t,i=G.useRef(r),[o,s]=G.useState([]),[u,d]=G.useState([]);return G.useEffect(()=>{if(e&&e.length>0){const c=[...e,...i.current];i.current=c.filter((p,v,y)=>y.findIndex(g=>p[n]===g[n])===v)}},[e,n]),G.useEffect(()=>{if(i.current.length>0){let c=[];u.forEach(p=>{const v=i.current.find(y=>y[n]===p);v&&!c.map(y=>y[n]).includes(p)&&c.push(v)}),s(c)}},[i.current,u,n]),{selectedRows:o,selectedKeys:u,setSelectedKeys:d}}function Lhe({labelSpan:t=3,valueSpan:e=9,imgWidth:n=93,imgHeight:r=93,layoutType:i="row"}){const{message:o}=fe.App.useApp(),s=(g,S)=>{try{const E=JSON.parse((g==null?void 0:g.attrvalue)||"{}")||"";return Ne(G.Fragment,{children:[i==="flex"&&q(fe.Col,{span:S,children:Ne(fe.Flex,{children:[Ne("span",{style:{flexShrink:0},children:[g==null?void 0:g.attrname,":"]}),q("span",{style:{wordWrap:"break-word"},children:E==null?void 0:E.typename})]})}),i==="row"&&Ne(Jt,{children:[q(fe.Col,{span:t,children:g==null?void 0:g.attrname}),q(fe.Col,{span:e,style:{wordWrap:"break-word"},children:g==null?void 0:g.attrvalue})]})]},g==null?void 0:g.attrid)}catch{return o.error("房型数据格式错误,转json失败"),null}},u=(g,S)=>{if(typeof(g==null?void 0:g.attrvalue)!="string")return;const E=JSON.parse((g==null?void 0:g.attrvalue)||"[]"),C=()=>q(fe.Space,{wrap:!0,children:E.map((_,O)=>q("div",{style:{border:"1px solid rgba(0, 0, 0, 0.15)",borderRadius:4},children:q(fe.Image,{style:{objectFit:"cover",padding:5},width:n,height:r,src:_==null?void 0:_.FilePath,alt:(g==null?void 0:g.attrname)||"-"})},O))});return Ne(G.Fragment,{children:[i==="flex"&&q(fe.Col,{span:S,children:Ne(fe.Flex,{children:[Ne("span",{style:{flexShrink:0},children:[g==null?void 0:g.attrname,":"]}),C()]})}),i==="row"&&Ne(Jt,{children:[q(fe.Col,{span:t,children:g==null?void 0:g.attrname}),q(fe.Col,{span:e,style:{wordWrap:"break-word"},children:C()})]})]},g==null?void 0:g.attrid)},d=(g,S)=>{const E=JSON.parse((g==null?void 0:g.attrvalue)||"[]"),C=()=>q(fe.Space,{wrap:!0,children:E.map((_,O)=>q("a",{onClick:()=>window.open(_==null?void 0:_.FilePath),children:(_==null?void 0:_.FileName)||"-"},O))});return Ne(G.Fragment,{children:[i==="flex"&&q(fe.Col,{span:S,children:Ne(fe.Flex,{children:[Ne("span",{style:{flexShrink:0},children:[g==null?void 0:g.attrname,":"]}),C()]})}),i==="row"&&Ne(Jt,{children:[q(fe.Col,{span:t,children:g==null?void 0:g.attrname}),q(fe.Col,{span:e,style:{wordWrap:"break-word"},children:C()})]})]},g==null?void 0:g.attrid)},c=(g,S,E,C)=>Ne(G.Fragment,{children:[i==="flex"&&q(fe.Col,{span:S,children:Ne(fe.Flex,{children:[Ne("span",{style:{flexShrink:0},children:[g==null?void 0:g.attrname,":"]}),Ne("span",{style:{wordWrap:"break-word",wordBreak:"break-all",overflowWrap:"break-word",minWidth:0,flex:1},children:[E||""," ",Wa(C||[],(g==null?void 0:g.attrvalue)||"-")]})]})}),i==="row"&&Ne(Jt,{children:[q(fe.Col,{span:t,children:g==null?void 0:g.attrname}),Ne(fe.Col,{span:e,style:{wordWrap:"break-word",wordBreak:"break-all",overflowWrap:"break-word"},children:[E||"",Wa(C||[],(g==null?void 0:g.attrvalue)||"-")]})]})]},g==null?void 0:g.attrid),p=({detailList:g=[],attrList:S=[],universalHeader:E=[],operationColumn:C,langConfig:_=[]})=>{var D;let O=[];E!=null&&E.length?O=E==null?void 0:E.map(M=>({title:M==null?void 0:M["header-name"],dataIndex:M==null?void 0:M["header-attribute-id"],key:M==null?void 0:M["header-attribute-id"],width:M==null?void 0:M["header-width"],render:(B,F)=>Wa(_||[],B)})):O=(D=S==null?void 0:S[0])==null?void 0:D.map(M=>{var B;return{title:M==null?void 0:M.attrname,dataIndex:M==null?void 0:M.attrid,key:M==null?void 0:M.attrid,width:((B=M==null?void 0:M.json)==null?void 0:B["input-width"])||200,render:(F,I)=>Wa(_||[],F)}}),C&&(O!=null&&O.length)&&O.push(C);let A=g;return S!=null&&S.length&&(A=S==null?void 0:S.map((M,B)=>({jxqyglbh:B,...v(M)}))),q(fe.Flex,{align:"center",style:{width:"100%"},children:q(fe.Table,{style:{width:"100%"},columns:O,scroll:{x:"max-content"},size:"small",rowKey:"jxqyglbh",onRow:UR,dataSource:A,pagination:!1})})},v=g=>g==null?void 0:g.reduce((S,E)=>(S[E==null?void 0:E.attrid]=E==null?void 0:E.attrvalue,S),{});return{renderDetail:CE.useMemoizedFn(({attrList:g=[],detailList:S=[],span:E=24,type:C="form",universalHeader:_=[],beforeExtraValue:O="",operationColumn:A,langConfig:D=[]})=>C==="table"?q(G.Fragment,{children:p({detailList:S,attrList:g,universalHeader:_,operationColumn:A})}):q(fe.Row,{gutter:[10,8],children:g==null?void 0:g.map(M=>{if((M==null?void 0:M.attrtype)!==0)return q(G.Fragment,{},M==null?void 0:M.attrid);const B=M.info_base64===1?dc(id(M.info)):dc(M.info);return(B==null?void 0:B.input)==="image"?u(M,E):["file","audio","video"].includes(B==null?void 0:B.input)?d(M,E):(B==null?void 0:B.input)==="radio-card"?s(M,E):c(M,E,O,D)})}))}}Rt.AES=Ahe,Rt.AuthButton=_R,Rt.BackHeader=cY,Rt.CoralButton=qQ,Rt.CreateForm=kk,Rt.CustomPagination=WQ,Rt.DynamicForm=Tae,Rt.DynamicFormMobile=Qde,Rt.EditTable=$Q,Rt.FormRules=Xde,Rt.HmacSHA512=Ohe,Rt.HmacSM3=TA,Rt.LoopSlide=YQ,Rt.SearchTable=jQ,Rt.UploadFile=qM,Rt.WorkFlowNode=TR,Rt.compressionImage=VM,Rt.download=pX,Rt.fileType=vY,Rt.method=eX,Rt.showWorkFlow=KQ,Rt.szxkFunc=uX,Rt.useCaptcha=Dhe,Rt.useChangePwd=Mhe,Rt.useConfig=Nhe,Rt.useDetailRender=Lhe,Rt.useRemember=Fhe,Rt.useRowSelection=Phe,Rt.useUniversalTable=n4,Rt.utils=kY,Rt.verfyCode=Jde,Object.defineProperty(Rt,Symbol.toStringTag,{value:"Module"})});
643
+ */return n.mode.CTRGladman=function(){var r=n.lib.BlockCipherMode.extend();function i(u){if((u>>24&255)===255){var d=u>>16&255,c=u>>8&255,p=u&255;d===255?(d=0,c===255?(c=0,p===255?p=0:++p):++c):++d,u=0,u+=d<<16,u+=c<<8,u+=p}else u+=1<<24;return u}function o(u){return(u[0]=i(u[0]))===0&&(u[1]=i(u[1])),u}var s=r.Encryptor=r.extend({processBlock:function(u,d){var c=this._cipher,p=c.blockSize,v=this._iv,y=this._counter;v&&(y=this._counter=v.slice(0),this._iv=void 0),o(y);var g=y.slice(0);c.encryptBlock(g,0);for(var S=0;S<p;S++)u[d+S]^=g[S]}});return r.Decryptor=s,r}(),n.mode.CTRGladman})}(dA)),dA.exports}var hA={exports:{}},bI;function hhe(){return bI||(bI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Ai())})(Vt,function(n){return n.mode.OFB=function(){var r=n.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(o,s){var u=this._cipher,d=u.blockSize,c=this._iv,p=this._keystream;c&&(p=this._keystream=c.slice(0),this._iv=void 0),u.encryptBlock(p,0);for(var v=0;v<d;v++)o[s+v]^=p[v]}});return r.Decryptor=i,r}(),n.mode.OFB})}(hA)),hA.exports}var pA={exports:{}},SI;function phe(){return SI||(SI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Ai())})(Vt,function(n){return n.mode.ECB=function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(i,o){this._cipher.encryptBlock(i,o)}}),r.Decryptor=r.extend({processBlock:function(i,o){this._cipher.decryptBlock(i,o)}}),r}(),n.mode.ECB})}(pA)),pA.exports}var mA={exports:{}},wI;function mhe(){return wI||(wI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Ai())})(Vt,function(n){return n.pad.AnsiX923={pad:function(r,i){var o=r.sigBytes,s=i*4,u=s-o%s,d=o+u-1;r.clamp(),r.words[d>>>2]|=u<<24-d%4*8,r.sigBytes+=u},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Ansix923})}(mA)),mA.exports}var vA={exports:{}},CI;function vhe(){return CI||(CI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Ai())})(Vt,function(n){return n.pad.Iso10126={pad:function(r,i){var o=i*4,s=o-r.sigBytes%o;r.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Iso10126})}(vA)),vA.exports}var gA={exports:{}},EI;function ghe(){return EI||(EI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Ai())})(Vt,function(n){return n.pad.Iso97971={pad:function(r,i){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,i)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})}(gA)),gA.exports}var yA={exports:{}},kI;function yhe(){return kI||(kI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Ai())})(Vt,function(n){return n.pad.ZeroPadding={pad:function(r,i){var o=i*4;r.clamp(),r.sigBytes+=o-(r.sigBytes%o||o)},unpad:function(r){for(var i=r.words,o=r.sigBytes-1,o=r.sigBytes-1;o>=0;o--)if(i[o>>>2]>>>24-o%4*8&255){r.sigBytes=o+1;break}}},n.pad.ZeroPadding})}(yA)),yA.exports}var xA={exports:{}},_I;function xhe(){return _I||(_I=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Ai())})(Vt,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(xA)),xA.exports}var bA={exports:{}},TI;function bhe(){return TI||(TI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Ai())})(Vt,function(n){return function(r){var i=n,o=i.lib,s=o.CipherParams,u=i.enc,d=u.Hex,c=i.format;c.Hex={stringify:function(p){return p.ciphertext.toString(d)},parse:function(p){var v=d.parse(p);return s.create({ciphertext:v})}}}(),n.format.Hex})}(bA)),bA.exports}var SA={exports:{}},AI;function She(){return AI||(AI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Hd(),Ud(),Bc(),Ai())})(Vt,function(n){return function(){var r=n,i=r.lib,o=i.BlockCipher,s=r.algo,u=[],d=[],c=[],p=[],v=[],y=[],g=[],S=[],E=[],C=[];(function(){for(var A=[],D=0;D<256;D++)D<128?A[D]=D<<1:A[D]=D<<1^283;for(var M=0,B=0,D=0;D<256;D++){var F=B^B<<1^B<<2^B<<3^B<<4;F=F>>>8^F&255^99,u[M]=F,d[F]=M;var I=A[M],U=A[I],L=A[U],H=A[F]*257^F*16843008;c[M]=H<<24|H>>>8,p[M]=H<<16|H>>>16,v[M]=H<<8|H>>>24,y[M]=H;var H=L*16843009^U*65537^I*257^M*16843008;g[F]=H<<24|H>>>8,S[F]=H<<16|H>>>16,E[F]=H<<8|H>>>24,C[F]=H,M?(M=I^A[A[A[L^I]]],B^=A[A[B]]):M=B=1}})();var _=[0,1,2,4,8,16,32,64,128,27,54],O=s.AES=o.extend({_doReset:function(){var A;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var D=this._keyPriorReset=this._key,M=D.words,B=D.sigBytes/4,F=this._nRounds=B+6,I=(F+1)*4,U=this._keySchedule=[],L=0;L<I;L++)L<B?U[L]=M[L]:(A=U[L-1],L%B?B>6&&L%B==4&&(A=u[A>>>24]<<24|u[A>>>16&255]<<16|u[A>>>8&255]<<8|u[A&255]):(A=A<<8|A>>>24,A=u[A>>>24]<<24|u[A>>>16&255]<<16|u[A>>>8&255]<<8|u[A&255],A^=_[L/B|0]<<24),U[L]=U[L-B]^A);for(var H=this._invKeySchedule=[],N=0;N<I;N++){var L=I-N;if(N%4)var A=U[L];else var A=U[L-4];N<4||L<=4?H[N]=A:H[N]=g[u[A>>>24]]^S[u[A>>>16&255]]^E[u[A>>>8&255]]^C[u[A&255]]}}},encryptBlock:function(A,D){this._doCryptBlock(A,D,this._keySchedule,c,p,v,y,u)},decryptBlock:function(A,D){var M=A[D+1];A[D+1]=A[D+3],A[D+3]=M,this._doCryptBlock(A,D,this._invKeySchedule,g,S,E,C,d);var M=A[D+1];A[D+1]=A[D+3],A[D+3]=M},_doCryptBlock:function(A,D,M,B,F,I,U,L){for(var H=this._nRounds,N=A[D]^M[0],j=A[D+1]^M[1],Y=A[D+2]^M[2],K=A[D+3]^M[3],ee=4,ne=1;ne<H;ne++){var $=B[N>>>24]^F[j>>>16&255]^I[Y>>>8&255]^U[K&255]^M[ee++],Z=B[j>>>24]^F[Y>>>16&255]^I[K>>>8&255]^U[N&255]^M[ee++],X=B[Y>>>24]^F[K>>>16&255]^I[N>>>8&255]^U[j&255]^M[ee++],W=B[K>>>24]^F[N>>>16&255]^I[j>>>8&255]^U[Y&255]^M[ee++];N=$,j=Z,Y=X,K=W}var $=(L[N>>>24]<<24|L[j>>>16&255]<<16|L[Y>>>8&255]<<8|L[K&255])^M[ee++],Z=(L[j>>>24]<<24|L[Y>>>16&255]<<16|L[K>>>8&255]<<8|L[N&255])^M[ee++],X=(L[Y>>>24]<<24|L[K>>>16&255]<<16|L[N>>>8&255]<<8|L[j&255])^M[ee++],W=(L[K>>>24]<<24|L[N>>>16&255]<<16|L[j>>>8&255]<<8|L[Y&255])^M[ee++];A[D]=$,A[D+1]=Z,A[D+2]=X,A[D+3]=W},keySize:256/32});r.AES=o._createHelper(O)}(),n.AES})}(SA)),SA.exports}var wA={exports:{}},OI;function whe(){return OI||(OI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Hd(),Ud(),Bc(),Ai())})(Vt,function(n){return function(){var r=n,i=r.lib,o=i.WordArray,s=i.BlockCipher,u=r.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],p=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],v=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],y=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],g=u.DES=s.extend({_doReset:function(){for(var _=this._key,O=_.words,A=[],D=0;D<56;D++){var M=d[D]-1;A[D]=O[M>>>5]>>>31-M%32&1}for(var B=this._subKeys=[],F=0;F<16;F++){for(var I=B[F]=[],U=p[F],D=0;D<24;D++)I[D/6|0]|=A[(c[D]-1+U)%28]<<31-D%6,I[4+(D/6|0)]|=A[28+(c[D+24]-1+U)%28]<<31-D%6;I[0]=I[0]<<1|I[0]>>>31;for(var D=1;D<7;D++)I[D]=I[D]>>>(D-1)*4+3;I[7]=I[7]<<5|I[7]>>>27}for(var L=this._invSubKeys=[],D=0;D<16;D++)L[D]=B[15-D]},encryptBlock:function(_,O){this._doCryptBlock(_,O,this._subKeys)},decryptBlock:function(_,O){this._doCryptBlock(_,O,this._invSubKeys)},_doCryptBlock:function(_,O,A){this._lBlock=_[O],this._rBlock=_[O+1],S.call(this,4,252645135),S.call(this,16,65535),E.call(this,2,858993459),E.call(this,8,16711935),S.call(this,1,1431655765);for(var D=0;D<16;D++){for(var M=A[D],B=this._lBlock,F=this._rBlock,I=0,U=0;U<8;U++)I|=v[U][((F^M[U])&y[U])>>>0];this._lBlock=F,this._rBlock=B^I}var L=this._lBlock;this._lBlock=this._rBlock,this._rBlock=L,S.call(this,1,1431655765),E.call(this,8,16711935),E.call(this,2,858993459),S.call(this,16,65535),S.call(this,4,252645135),_[O]=this._lBlock,_[O+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function S(_,O){var A=(this._lBlock>>>_^this._rBlock)&O;this._rBlock^=A,this._lBlock^=A<<_}function E(_,O){var A=(this._rBlock>>>_^this._lBlock)&O;this._lBlock^=A,this._rBlock^=A<<_}r.DES=s._createHelper(g);var C=u.TripleDES=s.extend({_doReset:function(){var _=this._key,O=_.words;if(O.length!==2&&O.length!==4&&O.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var A=O.slice(0,2),D=O.length<4?O.slice(0,2):O.slice(2,4),M=O.length<6?O.slice(0,2):O.slice(4,6);this._des1=g.createEncryptor(o.create(A)),this._des2=g.createEncryptor(o.create(D)),this._des3=g.createEncryptor(o.create(M))},encryptBlock:function(_,O){this._des1.encryptBlock(_,O),this._des2.decryptBlock(_,O),this._des3.encryptBlock(_,O)},decryptBlock:function(_,O){this._des3.decryptBlock(_,O),this._des2.encryptBlock(_,O),this._des1.decryptBlock(_,O)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=s._createHelper(C)}(),n.TripleDES})}(wA)),wA.exports}var CA={exports:{}},DI;function Che(){return DI||(DI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Hd(),Ud(),Bc(),Ai())})(Vt,function(n){return function(){var r=n,i=r.lib,o=i.StreamCipher,s=r.algo,u=s.RC4=o.extend({_doReset:function(){for(var p=this._key,v=p.words,y=p.sigBytes,g=this._S=[],S=0;S<256;S++)g[S]=S;for(var S=0,E=0;S<256;S++){var C=S%y,_=v[C>>>2]>>>24-C%4*8&255;E=(E+g[S]+_)%256;var O=g[S];g[S]=g[E],g[E]=O}this._i=this._j=0},_doProcessBlock:function(p,v){p[v]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var p=this._S,v=this._i,y=this._j,g=0,S=0;S<4;S++){v=(v+1)%256,y=(y+p[v])%256;var E=p[v];p[v]=p[y],p[y]=E,g|=p[(p[v]+p[y])%256]<<24-S*8}return this._i=v,this._j=y,g}r.RC4=o._createHelper(u);var c=s.RC4Drop=u.extend({cfg:u.cfg.extend({drop:192}),_doReset:function(){u._doReset.call(this);for(var p=this.cfg.drop;p>0;p--)d.call(this)}});r.RC4Drop=o._createHelper(c)}(),n.RC4})}(CA)),CA.exports}var EA={exports:{}},MI;function Ehe(){return MI||(MI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Hd(),Ud(),Bc(),Ai())})(Vt,function(n){return function(){var r=n,i=r.lib,o=i.StreamCipher,s=r.algo,u=[],d=[],c=[],p=s.Rabbit=o.extend({_doReset:function(){for(var y=this._key.words,g=this.cfg.iv,S=0;S<4;S++)y[S]=(y[S]<<8|y[S]>>>24)&16711935|(y[S]<<24|y[S]>>>8)&4278255360;var E=this._X=[y[0],y[3]<<16|y[2]>>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],C=this._C=[y[2]<<16|y[2]>>>16,y[0]&4294901760|y[1]&65535,y[3]<<16|y[3]>>>16,y[1]&4294901760|y[2]&65535,y[0]<<16|y[0]>>>16,y[2]&4294901760|y[3]&65535,y[1]<<16|y[1]>>>16,y[3]&4294901760|y[0]&65535];this._b=0;for(var S=0;S<4;S++)v.call(this);for(var S=0;S<8;S++)C[S]^=E[S+4&7];if(g){var _=g.words,O=_[0],A=_[1],D=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,M=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,B=D>>>16|M&4294901760,F=M<<16|D&65535;C[0]^=D,C[1]^=B,C[2]^=M,C[3]^=F,C[4]^=D,C[5]^=B,C[6]^=M,C[7]^=F;for(var S=0;S<4;S++)v.call(this)}},_doProcessBlock:function(y,g){var S=this._X;v.call(this),u[0]=S[0]^S[5]>>>16^S[3]<<16,u[1]=S[2]^S[7]>>>16^S[5]<<16,u[2]=S[4]^S[1]>>>16^S[7]<<16,u[3]=S[6]^S[3]>>>16^S[1]<<16;for(var E=0;E<4;E++)u[E]=(u[E]<<8|u[E]>>>24)&16711935|(u[E]<<24|u[E]>>>8)&4278255360,y[g+E]^=u[E]},blockSize:128/32,ivSize:64/32});function v(){for(var y=this._X,g=this._C,S=0;S<8;S++)d[S]=g[S];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<d[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<d[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<d[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<d[3]>>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<d[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<d[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<d[6]>>>0?1:0)|0,this._b=g[7]>>>0<d[7]>>>0?1:0;for(var S=0;S<8;S++){var E=y[S]+g[S],C=E&65535,_=E>>>16,O=((C*C>>>17)+C*_>>>15)+_*_,A=((E&4294901760)*E|0)+((E&65535)*E|0);c[S]=O^A}y[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,y[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,y[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,y[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,y[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,y[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,y[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,y[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.Rabbit=o._createHelper(p)}(),n.Rabbit})}(EA)),EA.exports}var kA={exports:{}},RI;function khe(){return RI||(RI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Hd(),Ud(),Bc(),Ai())})(Vt,function(n){return function(){var r=n,i=r.lib,o=i.StreamCipher,s=r.algo,u=[],d=[],c=[],p=s.RabbitLegacy=o.extend({_doReset:function(){var y=this._key.words,g=this.cfg.iv,S=this._X=[y[0],y[3]<<16|y[2]>>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],E=this._C=[y[2]<<16|y[2]>>>16,y[0]&4294901760|y[1]&65535,y[3]<<16|y[3]>>>16,y[1]&4294901760|y[2]&65535,y[0]<<16|y[0]>>>16,y[2]&4294901760|y[3]&65535,y[1]<<16|y[1]>>>16,y[3]&4294901760|y[0]&65535];this._b=0;for(var C=0;C<4;C++)v.call(this);for(var C=0;C<8;C++)E[C]^=S[C+4&7];if(g){var _=g.words,O=_[0],A=_[1],D=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,M=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,B=D>>>16|M&4294901760,F=M<<16|D&65535;E[0]^=D,E[1]^=B,E[2]^=M,E[3]^=F,E[4]^=D,E[5]^=B,E[6]^=M,E[7]^=F;for(var C=0;C<4;C++)v.call(this)}},_doProcessBlock:function(y,g){var S=this._X;v.call(this),u[0]=S[0]^S[5]>>>16^S[3]<<16,u[1]=S[2]^S[7]>>>16^S[5]<<16,u[2]=S[4]^S[1]>>>16^S[7]<<16,u[3]=S[6]^S[3]>>>16^S[1]<<16;for(var E=0;E<4;E++)u[E]=(u[E]<<8|u[E]>>>24)&16711935|(u[E]<<24|u[E]>>>8)&4278255360,y[g+E]^=u[E]},blockSize:128/32,ivSize:64/32});function v(){for(var y=this._X,g=this._C,S=0;S<8;S++)d[S]=g[S];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<d[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<d[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<d[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<d[3]>>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<d[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<d[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<d[6]>>>0?1:0)|0,this._b=g[7]>>>0<d[7]>>>0?1:0;for(var S=0;S<8;S++){var E=y[S]+g[S],C=E&65535,_=E>>>16,O=((C*C>>>17)+C*_>>>15)+_*_,A=((E&4294901760)*E|0)+((E&65535)*E|0);c[S]=O^A}y[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,y[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,y[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,y[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,y[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,y[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,y[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,y[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}r.RabbitLegacy=o._createHelper(p)}(),n.RabbitLegacy})}(kA)),kA.exports}var _A={exports:{}},NI;function _he(){return NI||(NI=1,function(t,e){(function(n,r,i){t.exports=r(dn(),Hd(),Ud(),Bc(),Ai())})(Vt,function(n){return function(){var r=n,i=r.lib,o=i.BlockCipher,s=r.algo;const u=16,d=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var p={pbox:[],sbox:[]};function v(C,_){let O=_>>24&255,A=_>>16&255,D=_>>8&255,M=_&255,B=C.sbox[0][O]+C.sbox[1][A];return B=B^C.sbox[2][D],B=B+C.sbox[3][M],B}function y(C,_,O){let A=_,D=O,M;for(let B=0;B<u;++B)A=A^C.pbox[B],D=v(C,A)^D,M=A,A=D,D=M;return M=A,A=D,D=M,D=D^C.pbox[u],A=A^C.pbox[u+1],{left:A,right:D}}function g(C,_,O){let A=_,D=O,M;for(let B=u+1;B>1;--B)A=A^C.pbox[B],D=v(C,A)^D,M=A,A=D,D=M;return M=A,A=D,D=M,D=D^C.pbox[1],A=A^C.pbox[0],{left:A,right:D}}function S(C,_,O){for(let F=0;F<4;F++){C.sbox[F]=[];for(let I=0;I<256;I++)C.sbox[F][I]=c[F][I]}let A=0;for(let F=0;F<u+2;F++)C.pbox[F]=d[F]^_[A],A++,A>=O&&(A=0);let D=0,M=0,B=0;for(let F=0;F<u+2;F+=2)B=y(C,D,M),D=B.left,M=B.right,C.pbox[F]=D,C.pbox[F+1]=M;for(let F=0;F<4;F++)for(let I=0;I<256;I+=2)B=y(C,D,M),D=B.left,M=B.right,C.sbox[F][I]=D,C.sbox[F][I+1]=M;return!0}var E=s.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var C=this._keyPriorReset=this._key,_=C.words,O=C.sigBytes/4;S(p,_,O)}},encryptBlock:function(C,_){var O=y(p,C[_],C[_+1]);C[_]=O.left,C[_+1]=O.right},decryptBlock:function(C,_){var O=g(p,C[_],C[_+1]);C[_]=O.left,C[_+1]=O.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=o._createHelper(E)}(),n.Blowfish})}(_A)),_A.exports}(function(t,e){(function(n,r,i){t.exports=r(dn(),h2(),nhe(),rhe(),Hd(),ihe(),Ud(),oI(),J8(),ohe(),uI(),ahe(),she(),lhe(),aA(),uhe(),Bc(),Ai(),che(),fhe(),dhe(),hhe(),phe(),mhe(),vhe(),ghe(),yhe(),xhe(),bhe(),She(),whe(),Che(),Ehe(),khe(),_he())})(Vt,function(n){return n})})(Qz);var The=Qz.exports;const xu=ep(The);class Ahe{constructor(){Jh(this,"salt","SzlDJd#4202")}encrypt(e){if(!e)return;const n=typeof e=="string"?e:JSON.stringify(e);return xu.AES.encrypt(n,this.salt).toString()}decrypt(e){if(e)return xu.AES.decrypt(e,this.salt).toString(xu.enc.Utf8)}}class Ohe{constructor(e){Jh(this,"salt");this.salt=e}encrypt(e){return xu.HmacSHA512(e,this.salt).toString()}}const Qn=class Qn{static rotateLeft(e,n){return e<<n|e>>>32-n}static FFj(e,n,r,i){return i>=0&&i<=15?e^n^r:e&n|e&r|n&r}static GGj(e,n,r,i){return i>=0&&i<=15?e^n^r:e&n|~e&r}static P0(e){return e^Qn.rotateLeft(e,9)^Qn.rotateLeft(e,17)}static P1(e){return e^Qn.rotateLeft(e,15)^Qn.rotateLeft(e,23)}static pad(e){const n=e.length*8,r=(448-(n+1)%512+512)%512,i=(n+1+r+64)/8,o=new Uint8Array(i);o.set(e),o[e.length]=128;const s=new Uint8Array(8);return new DataView(s.buffer).setBigUint64(0,BigInt(n),!1),o.set(s,i-8),o}static processBlock(e,n){const r=new Uint32Array(68),i=new Uint32Array(64);for(let g=0;g<16;g++){const S=new DataView(e.buffer,e.byteOffset+g*4,4);r[g]=S.getUint32(0,!1)}for(let g=16;g<68;g++)r[g]=Qn.P1(r[g-16]^r[g-9]^Qn.rotateLeft(r[g-3],15))^Qn.rotateLeft(r[g-13],7)^r[g-6];for(let g=0;g<64;g++)i[g]=r[g]^r[g+4];let o=n[0],s=n[1],u=n[2],d=n[3],c=n[4],p=n[5],v=n[6],y=n[7];for(let g=0;g<64;g++){const S=Qn.rotateLeft(Qn.rotateLeft(o,12)+c+Qn.rotateLeft(Qn.T[g],g),7),E=S^Qn.rotateLeft(o,12),C=Qn.FFj(o,s,u,g)+d+E+i[g],_=Qn.GGj(c,p,v,g)+y+S+r[g];d=u,u=Qn.rotateLeft(s,9),s=o,o=C,y=v,v=Qn.rotateLeft(p,19),p=c,c=Qn.P0(_)}n[0]^=o,n[1]^=s,n[2]^=u,n[3]^=d,n[4]^=c,n[5]^=p,n[6]^=v,n[7]^=y}static hash(e){const n=Qn.pad(e),r=new Uint32Array(Qn.IV);for(let s=0;s<n.length;s+=64){const u=n.slice(s,s+64);Qn.processBlock(u,r)}const i=new Uint8Array(32),o=new DataView(i.buffer);for(let s=0;s<8;s++)o.setUint32(s*4,r[s],!1);return i}static hashHex(e){const n=typeof e=="string"?new TextEncoder().encode(e):e,r=Qn.hash(n);return Array.from(r).map(i=>i.toString(16).padStart(2,"0")).join("")}};Jh(Qn,"IV",new Uint32Array([1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214])),Jh(Qn,"T",new Uint32Array(64)),(()=>{for(let e=0;e<16;e++)Qn.T[e]=2043430169;for(let e=16;e<64;e++)Qn.T[e]=2055708042})();let ty=Qn;class TA{constructor(e){Jh(this,"key");this.key=typeof e=="string"?new TextEncoder().encode(e):e}digest(e){const n=typeof e=="string"?new TextEncoder().encode(e):e,r=64;let i;if(this.key.length>r)i=ty.hash(this.key);else{i=new Uint8Array(r),i.set(this.key);for(let v=this.key.length;v<r;v++)i[v]=0}const o=new Uint8Array(r),s=new Uint8Array(r);for(let v=0;v<r;v++)o[v]=i[v]^54,s[v]=i[v]^92;const u=new Uint8Array(o.length+n.length);u.set(o),u.set(n,o.length);const d=ty.hash(u),c=new Uint8Array(s.length+d.length);return c.set(s),c.set(d,s.length),ty.hash(c)}digestHex(e){const n=this.digest(e);return Array.from(n).map(r=>r.toString(16).padStart(2,"0")).join("")}static hmac(e,n){return new TA(e).digestHex(n)}}function Dhe(t){const{imgKey:e="Img"}=t,{data:n,loading:r,error:i,refresh:o}=CE.useRequest(t.request,{debounceWait:300,ready:!0,retryCount:3});return{data:n,renderCaptcha:()=>i?q(fe.Button,{type:"link",title:"验证码加载失败,请重试",icon:q(Lq,{}),onClick:o,children:"点击重试"}):q("img",{src:ll.get(n,[e]),style:{height:"100%",objectFit:"contain",cursor:"pointer"},onClick:o}),loading:r,refresh:o}}function Mhe(t){const{modal:e,message:n}=fe.App.useApp(),[r]=fe.Form.useForm(),i=[{dataIndex:"Password",title:"新密码",valueType:"password",valueProps:{placeholder:"请输入新密码"},formItemProps:{rules:[{required:!0,message:"请输入新密码"},Gz.passwordNewRule]}},{dataIndex:"NewPassword",title:"确认密码",valueType:"password",valueProps:{placeholder:"请输入确认密码"},formItemProps:{rules:[{required:!0,message:"请输入确认密码"},({getFieldValue:s})=>({validator(u,d){return!d||s("Password")===d?Promise.resolve():Promise.reject(new Error("两次密码输入不一致"))}})]}}];return{handleChangePwd:CE.useLockFn(async(s,u)=>{const d=t==null?void 0:t.modalProps;let c;d!=null&&d.width&&(typeof d.width=="string"||typeof d.width=="number")&&(c=d.width),await e.confirm({title:u||"修改密码",icon:null,wrapClassName:"confirmWrapper",content:q(kk,{items:i,formProps:{form:r,preserve:!1,layout:"vertical",labelCol:{span:24},wrapperCol:{span:24}}}),onOk(){return new Promise((p,v)=>{r.validateFields().then(y=>{s({values:y,resolve:p,reject:v})}).catch(y=>{v(y)})})},...d,width:c})})}}const Rhe="SzlDJd#4202";function Nhe(t){const[e,n]=G.useState(null);G.useEffect(()=>{r()},[]);const r=()=>{const i=xu.AES.decrypt(t,Rhe);try{const o=JSON.parse(i.toString(xu.enc.Utf8));n(o)}catch{}};return e}function Fhe(t){const{secertKey:e,storageKey:n}=t;return{onParse:o=>{const s=localStorage.getItem(n);if(!s){o(null);return}const u=xu.AES.decrypt(s,e);try{const d=JSON.parse(u.toString(xu.enc.Utf8));o(d)}catch{o(null)}},onSave:o=>{const s=xu.AES.encrypt(JSON.stringify({...o,timestamp:Date.now()}),e);S5(n,s.toString())}}}function Phe(t){const{dataSource:e,rowKey:n,defaultRows:r=[]}=t,i=G.useRef(r),[o,s]=G.useState([]),[u,d]=G.useState([]);return G.useEffect(()=>{if(e&&e.length>0){const c=[...e,...i.current];i.current=c.filter((p,v,y)=>y.findIndex(g=>p[n]===g[n])===v)}},[e,n]),G.useEffect(()=>{if(i.current.length>0){let c=[];u.forEach(p=>{const v=i.current.find(y=>y[n]===p);v&&!c.map(y=>y[n]).includes(p)&&c.push(v)}),s(c)}},[i.current,u,n]),{selectedRows:o,selectedKeys:u,setSelectedKeys:d}}function Lhe({labelSpan:t=3,valueSpan:e=9,imgWidth:n=93,imgHeight:r=93,layoutType:i="row"}){const{message:o}=fe.App.useApp(),s=(g,S)=>{try{const E=JSON.parse((g==null?void 0:g.attrvalue)||"{}")||"";return Ne(G.Fragment,{children:[i==="flex"&&q(fe.Col,{span:S,children:Ne(fe.Flex,{children:[Ne("span",{style:{flexShrink:0},children:[g==null?void 0:g.attrname,":"]}),q("span",{style:{wordWrap:"break-word"},children:E==null?void 0:E.typename})]})}),i==="row"&&Ne(Jt,{children:[q(fe.Col,{span:t,children:g==null?void 0:g.attrname}),q(fe.Col,{span:e,style:{wordWrap:"break-word"},children:g==null?void 0:g.attrvalue})]})]},g==null?void 0:g.attrid)}catch{return o.error("房型数据格式错误,转json失败"),null}},u=(g,S)=>{if(typeof(g==null?void 0:g.attrvalue)!="string")return;const E=JSON.parse((g==null?void 0:g.attrvalue)||"[]"),C=()=>q(fe.Space,{wrap:!0,children:E.map((_,O)=>q("div",{style:{border:"1px solid rgba(0, 0, 0, 0.15)",borderRadius:4},children:q(fe.Image,{style:{objectFit:"cover",padding:5},width:n,height:r,src:_==null?void 0:_.FilePath,alt:(g==null?void 0:g.attrname)||"-"})},O))});return Ne(G.Fragment,{children:[i==="flex"&&q(fe.Col,{span:S,children:Ne(fe.Flex,{children:[Ne("span",{style:{flexShrink:0},children:[g==null?void 0:g.attrname,":"]}),C()]})}),i==="row"&&Ne(Jt,{children:[q(fe.Col,{span:t,children:g==null?void 0:g.attrname}),q(fe.Col,{span:e,style:{wordWrap:"break-word"},children:C()})]})]},g==null?void 0:g.attrid)},d=(g,S)=>{const E=JSON.parse((g==null?void 0:g.attrvalue)||"[]"),C=()=>q(fe.Space,{wrap:!0,children:E.map((_,O)=>q("a",{onClick:()=>window.open(_==null?void 0:_.FilePath),children:(_==null?void 0:_.FileName)||"-"},O))});return Ne(G.Fragment,{children:[i==="flex"&&q(fe.Col,{span:S,children:Ne(fe.Flex,{children:[Ne("span",{style:{flexShrink:0},children:[g==null?void 0:g.attrname,":"]}),C()]})}),i==="row"&&Ne(Jt,{children:[q(fe.Col,{span:t,children:g==null?void 0:g.attrname}),q(fe.Col,{span:e,style:{wordWrap:"break-word"},children:C()})]})]},g==null?void 0:g.attrid)},c=(g,S,E,C)=>Ne(G.Fragment,{children:[i==="flex"&&q(fe.Col,{span:S,children:Ne(fe.Flex,{children:[Ne("span",{style:{flexShrink:0},children:[g==null?void 0:g.attrname,":"]}),Ne("span",{style:{wordWrap:"break-word",wordBreak:"break-all",overflowWrap:"break-word",minWidth:0,flex:1},children:[E||""," ",Wa(C||[],(g==null?void 0:g.attrvalue)||"-")]})]})}),i==="row"&&Ne(Jt,{children:[q(fe.Col,{span:t,children:g==null?void 0:g.attrname}),Ne(fe.Col,{span:e,style:{wordWrap:"break-word",wordBreak:"break-all",overflowWrap:"break-word"},children:[E||"",Wa(C||[],(g==null?void 0:g.attrvalue)||"-")]})]})]},g==null?void 0:g.attrid),p=({detailList:g=[],attrList:S=[],universalHeader:E=[],operationColumn:C,langConfig:_=[]})=>{var D;let O=[];E!=null&&E.length?O=E==null?void 0:E.map(M=>({title:M==null?void 0:M["header-name"],dataIndex:M==null?void 0:M["header-attribute-id"],key:M==null?void 0:M["header-attribute-id"],width:M==null?void 0:M["header-width"],render:(B,F)=>Wa(_||[],B)})):O=(D=S==null?void 0:S[0])==null?void 0:D.map(M=>{var B;return{title:M==null?void 0:M.attrname,dataIndex:M==null?void 0:M.attrid,key:M==null?void 0:M.attrid,width:((B=M==null?void 0:M.json)==null?void 0:B["input-width"])||200,render:(F,I)=>Wa(_||[],F)}}),C&&(O!=null&&O.length)&&O.push(C);let A=g;return S!=null&&S.length&&(A=S==null?void 0:S.map((M,B)=>({jxqyglbh:B,...v(M)}))),q(fe.Flex,{align:"center",style:{width:"100%"},children:q(fe.Table,{style:{width:"100%"},columns:O,scroll:{x:"max-content"},size:"small",rowKey:"jxqyglbh",onRow:UR,dataSource:A,pagination:!1})})},v=g=>g==null?void 0:g.reduce((S,E)=>(S[E==null?void 0:E.attrid]=E==null?void 0:E.attrvalue,S),{});return{renderDetail:CE.useMemoizedFn(({attrList:g=[],detailList:S=[],span:E=24,type:C="form",universalHeader:_=[],beforeExtraValue:O="",operationColumn:A,langConfig:D=[]})=>C==="table"?q(G.Fragment,{children:p({detailList:S,attrList:g,universalHeader:_,operationColumn:A})}):q(fe.Row,{gutter:[10,8],children:g==null?void 0:g.map(M=>{if((M==null?void 0:M.attrtype)!==0)return q(G.Fragment,{},M==null?void 0:M.attrid);try{const B=M.info_base64===1?dc(id(M.info)):dc(M.info);return(B==null?void 0:B.input)==="image"?u(M,E):["file","audio","video"].includes(B==null?void 0:B.input)?d(M,E):(B==null?void 0:B.input)==="radio-card"?s(M,E):c(M,E,O,D)}catch{return c(M,E,O,D)}})}))}}Rt.AES=Ahe,Rt.AuthButton=_R,Rt.BackHeader=cY,Rt.CoralButton=qQ,Rt.CreateForm=kk,Rt.CustomPagination=WQ,Rt.DynamicForm=Tae,Rt.DynamicFormMobile=Qde,Rt.EditTable=$Q,Rt.FormRules=Xde,Rt.HmacSHA512=Ohe,Rt.HmacSM3=TA,Rt.LoopSlide=YQ,Rt.SearchTable=jQ,Rt.UploadFile=qM,Rt.WorkFlowNode=TR,Rt.compressionImage=VM,Rt.download=pX,Rt.fileType=vY,Rt.method=eX,Rt.showWorkFlow=KQ,Rt.szxkFunc=uX,Rt.useCaptcha=Dhe,Rt.useChangePwd=Mhe,Rt.useConfig=Nhe,Rt.useDetailRender=Lhe,Rt.useRemember=Fhe,Rt.useRowSelection=Phe,Rt.useUniversalTable=n4,Rt.utils=kY,Rt.verfyCode=Jde,Object.defineProperty(Rt,Symbol.toStringTag,{value:"Module"})});