zhihao-ui 1.3.60 → 1.3.61
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.
- package/dist/es/{BaseInfo-Bx3C9ZBL.js → BaseInfo-BMpbILhK.js} +1 -1
- package/dist/es/{BaseItem-B1E_ckBc.js → BaseItem-DTeBOwt-.js} +1 -1
- package/dist/es/{DatePicker-BxalhOJm.js → DatePicker-CwQySLIQ.js} +1 -1
- package/dist/es/{DetailHeader-CTHrhLa3.js → DetailHeader-Blxh8--w.js} +1 -1
- package/dist/es/{DetailSubTitle-CeXkvL12.js → DetailSubTitle-BfIeXh75.js} +1 -1
- package/dist/es/{DiyDataTable-BIwNu91S.js → DiyDataTable-B1qF5iKa.js} +1 -1
- package/dist/es/{EditInfoPair-BuNjky_P.js → EditInfoPair-Dc0sqM1L.js} +1 -1
- package/dist/es/{FileWrapper-SNPju9Db.js → FileWrapper-D2Lz9uQo.js} +1 -1
- package/dist/es/{Grid-8CT6JVvo.js → Grid-CONHwqEB.js} +1 -1
- package/dist/es/{InfoPair-W4cuHn-N.js → InfoPair-CkgW5LoN.js} +1 -1
- package/dist/es/{MessageBox-BIQVuTBY.js → MessageBox-CvwRq0Fw.js} +2 -2
- package/dist/es/{MoneyInput-CSzkTtxb.js → MoneyInput-CA9Xlx86.js} +1 -1
- package/dist/es/{Table-BnXX6Zcr.js → Table-GWnpN6Gt.js} +19 -17
- package/dist/es/index.js +14 -14
- package/dist/index.css +1 -1
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/umd/index.umd.cjs
CHANGED
|
@@ -70,7 +70,7 @@ _e.version="2.30.1",JV(Pt),_e.fn=fe,_e.min=$6,_e.max=z6,_e.now=W6,_e.utc=yi,_e.u
|
|
|
70
70
|
<clipPath id="clip0_94_5585">
|
|
71
71
|
<rect width="64" height="64" fill="white"/>
|
|
72
72
|
</clipPath>
|
|
73
|
-
</defs>`,Tz=()=>{let t=i.reactive({});return{gridItemData:t,registerGridItem:(o,s)=>{var l;if(!s)return;t[o]||(t[o]={labels:[],maxLength:0,maxWidth:0}),(l=t[o])==null||l.labels.push(s),t[o].maxLength=Math.max(s.length,t[o].maxLength);const a=Math.ceil(ws(s,14));t[o].maxWidth=Math.max(a||0,t[o].maxWidth)},getColumnData:o=>t[o]||{},clearGridItemData:()=>{t=i.reactive({})}}},Mz={class:"multi-grid"},Rz=i.defineComponent({name:"MultiGrid",__name:"MultiGrid",setup(t){const{getColumnData:e,registerGridItem:n,clearGridItemData:r,gridItemData:o}=Tz();return i.provide("registerGridItem",n),i.provide("getColumnData",e),i.provide("clearGridItemData",r),i.provide("gridItemData",o),i.provide("isMultiGrid",i.ref(!0)),(s,a)=>(i.openBlock(),i.createElementBlock("div",Mz,[i.renderSlot(s.$slots,"default")]))}}),aE=Mt(iE),Lm=Mt(wz),lE=Mt(Rz),Dz={class:"info-pair"},Pz={class:"info-pair--title"},Iz={key:0,class:"info-pair--title--tip"},cE=Mt($t(i.defineComponent({name:"zh-info-pair",__name:"InfoPair",props:{title:{},value:{},ellipsis:{type:Boolean},tip:{}},setup(t){const e=t;return(n,r)=>(i.openBlock(),i.createElementBlock("div",Dz,[i.createElementVNode("div",Pz,[i.createTextVNode(i.toDisplayString(e.title)+" ",1),n.tip?(i.openBlock(),i.createElementBlock("div",Iz,i.toDisplayString(n.tip),1)):i.createCommentVNode("",!0)]),i.createElementVNode("div",{class:i.normalizeClass(["info-pair--value",{ellipsis:n.ellipsis}])},[i.renderSlot(n.$slots,"value",{},()=>[i.createTextVNode(i.toDisplayString(e.value||i.unref(Ut)),1)],!0)],2)]))}}),[["__scopeId","data-v-5a1b0655"]])),dE=Mt($t(i.defineComponent({name:"zh-input",__name:"Input",props:i.mergeModels({style:{},class:{default:"zh-default-input"},size:{default:"default"},className:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=i.useAttrs(),n=t,r=i.useModel(t,"modelValue"),o=()=>{(e.max||Number(e.max)===0)&&Number(r.value)>=e.max&&(r.value=e.max.toString()),(e.min||Number(e.min)===0)&&Number(r.value)<=e.min&&(r.value=e.min.toString())};return(s,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(n.class)},[i.createVNode(i.unref(Pn),i.mergeProps(s.$attrs,{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=l=>r.value=l),size:s.size,onBlur:o}),i.createSlots({_:2},[i.renderList(s.$slots,(l,c)=>({name:l,fn:i.withCtx(d=>[i.renderSlot(s.$slots,l,i.normalizeProps(i.guardReactiveProps(d)),void 0,!0)])}))]),1040,["modelValue","size"])],2))}}),[["__scopeId","data-v-ce1df798"]])),uE=$t(i.defineComponent({name:"zh-input-number",__name:"InputNumber",props:{style:{},class:{},modelValue:{}},emits:["update:modelValue","change"],setup(t,{emit:e}){const n=t,r=e,o=i.useAttrs(),s=(u,f=0,h=0,g=0)=>{let p=(u==null?void 0:u.toString())??"",y,m,b;return h===0?(p=p.replace(/[^\d]/g,""),p=p.replace(/^0\d+/g,"0"),f!==0&&(p=p.slice(0,f))):(p=p.replace(/[^\-\d.]/g,""),p=p.replace(/^[^\-\d]/g,""),p=p.replace(/\.{2}/g,"."),p=p.replace(/^0(\d+)/g,"$1"),y=p.split(".")||[],y.length>1?(f===0?m=y[0]:m=y[0].slice(0,f),b=y[1].slice(0,h),p=m+"."+b):f!==0&&(p=p.slice(0,f))),g!==0&&(p=p.slice(0,g)),p},a=()=>{n.modelValue===""||n.modelValue===void 0||(o.max&&Number(n.modelValue)>o.max&&r("update:modelValue",o.max.toString()),o.min&&Number(n.modelValue)<o.min&&r("update:modelValue",o.min.toString()))},l=u=>u?s(u,o.integer,o.precision,o.maxLength):"",c=u=>{/^\d+\.0*$/.test((u==null?void 0:u.toString())||"")||u===""?r("update:modelValue",l(u)):r("update:modelValue",Number(l(u)))},d=u=>{r("change",l(u))};return(u,f)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["input-number",n.class]),style:i.normalizeStyle(n.style)},[i.createVNode(i.unref(Pn),i.mergeProps(u.$attrs,{"model-value":n.modelValue,"onUpdate:modelValue":c,onBlur:a,style:{width:"100%"},formatter:l,onChange:d}),i.createSlots({_:2},[i.renderList(Object.keys(u.$slots),h=>({name:h,fn:i.withCtx(g=>[i.renderSlot(u.$slots,h,i.normalizeProps(i.guardReactiveProps(g)),void 0,!0)])}))]),1040,["model-value"])],6))}}),[["__scopeId","data-v-17c3b6e2"]]),fE=Mt(uE),Nz={class:"loading-box"},hE=Mt($t(i.defineComponent({name:"zh-loading",__name:"Loading",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",Nz,n[0]||(n[0]=[i.createElementVNode("div",{class:"loading-wrap"},[i.createElementVNode("span",{class:"dot dot-spin"},[i.createElementVNode("i"),i.createElementVNode("i"),i.createElementVNode("i"),i.createElementVNode("i")])],-1)])))}}),[["__scopeId","data-v-d30f17c3"]])),Am={type:"",showCancelButton:!0,showConfirmButton:!0,cancelButtonText:"取消",confirmButtonText:"确定",closeOnClickModal:!1,closeOnPressEscape:!1,showClose:!0,draggable:!1,center:!1,roundButton:!1},vu={confirm(t,e,n={}){return Qp.confirm(t,e,{...Am,...n,customClass:"zh-message-box zh-message-confirm"})},alert(t,e,n={}){return Qp.alert(t,e,{...Am,...n,showCancelButton:!1,customClass:"zh-message-box zh-message-alert"})},prompt(t,e,n={}){return Qp.prompt(t,e,{...Am,...n,customClass:"zh-message-box zh-message-prompt"})}},pE=vu.confirm,mE=vu.alert,gE=vu.prompt,yE=Mt(vu),_E=Mt($t(i.defineComponent({name:"zh-money-input",__name:"MoneyInput",props:i.mergeModels({style:{},class:{},showTooltip:{type:Boolean,default:!0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=t,n=i.useModel(t,"modelValue"),r=i.computed(()=>{if(n.value)return tz(n.value)&&Number(n.value)>=1e3?nz(Number(n.value)):""}),o=i.ref(!1);return(s,a)=>(i.openBlock(),i.createBlock(i.unref(sr),{effect:"dark",content:r.value,placement:"top",visible:s.showTooltip&&o.value&&!!r.value},{default:i.withCtx(()=>[i.createVNode(uE,i.mergeProps(s.$attrs,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=l=>n.value=l),style:e.style,class:e.class,onFocus:a[1]||(a[1]=()=>o.value=!0),onBlur:a[2]||(a[2]=()=>o.value=!1)}),i.createSlots({_:2},[i.renderList(Object.keys(s.$slots),l=>({name:l,fn:i.withCtx(c=>[i.renderSlot(s.$slots,l,i.normalizeProps(i.guardReactiveProps(c)),void 0,!0)])}))]),1040,["modelValue","style","class"])]),_:3},8,["content","visible"]))}}),[["__scopeId","data-v-cfd94d9e"]])),Oz={class:"page-head"},Lz={class:"left-wrap"},Az={class:"page-name"},Fz={class:"value"},Bz={class:"other-inform"},Vz={class:"label"},$z={class:"value mg-r-24"},zz={class:"status"},Wz=Mt($t(i.defineComponent({name:"zh-page-head-panel",__name:"PageHeadPanel",props:{dataSource:{}},setup(t){const e=t,{name:n,no:r,status:o,extendLabel:s,extendValue:a}=i.toRefs(e.dataSource);return(l,c)=>(i.openBlock(),i.createElementBlock("div",Oz,[i.createElementVNode("div",Lz,[i.createElementVNode("span",Az,i.toDisplayString(i.unref(n)),1),i.createElementVNode("div",null,[c[0]||(c[0]=i.createElementVNode("span",{class:"label mg-l-16"},"编号",-1)),i.createElementVNode("span",Fz,i.toDisplayString(i.unref(r)),1)])]),i.createElementVNode("div",Bz,[i.renderSlot(l.$slots,"extend",{},()=>[i.createElementVNode("span",Vz,i.toDisplayString(i.unref(s)),1),i.createElementVNode("span",$z,i.toDisplayString(i.unref(a)),1)],!0),i.createElementVNode("span",zz,i.toDisplayString(i.unref(o)),1)])]))}}),[["__scopeId","data-v-9f56969d"]])),bE=Mt($t(i.defineComponent({name:"zh-tool-tips",__name:"ToolTips",props:{placement:{default:"top"},content:{}},setup(t){const e=t;return(n,r)=>(i.openBlock(),i.createBlock(i.unref(sr),{class:"box-item",effect:"dark",content:e.content,placement:e.placement},{default:i.withCtx(()=>[i.renderSlot(n.$slots,"default",{},()=>[r[0]||(r[0]=i.createElementVNode("i",{class:"iconfont icon-Frame2"},null,-1))],!0)]),_:3},8,["content","placement"]))}}),[["__scopeId","data-v-e5a0ae09"]])),wE=Mt(i.defineComponent({name:"ZhBaseInfo",__name:"BaseInfo",props:{contentWidth:{default:void 0},labelWidth:{default:"70px"},infoDirection:{default:"horizontal"},cols:{default:4},gap:{default:16}},setup(t){const e=t,n=i.ref(),r=i.ref(),o=i.ref();i.provide("infoLabelWidth",n),i.provide("infoContentWidth",r),i.provide("infoDirection",o);function s(){n.value=e.labelWidth}function a(){r.value=e.contentWidth}function l(){o.value=e.infoDirection}return i.watch(()=>e.contentWidth,()=>a(),{immediate:!0}),i.watch(()=>e.labelWidth,()=>s(),{immediate:!0}),i.watch(()=>e.infoDirection,()=>l(),{immediate:!0}),(c,d)=>(i.openBlock(),i.createBlock(iE,{cols:c.cols,gap:c.gap},{default:i.withCtx(()=>[i.renderSlot(c.$slots,"default")]),_:3},8,["cols","gap"]))}})),Yz={class:"common-card"},Gz={class:"detail-header"},jz={class:"detail-header--left"},Hz={class:"title common-title"},Uz={class:"info-pair--label"},Kz={class:"info-pair--value"},Xz={key:1,class:"detail-header--right"},Zz={class:"info-pair--label"},qz={class:"info-pair--value"},CE=Mt($t(i.defineComponent({name:"ZhDetailHeader",__name:"DetailHeader",props:{title:{},leftInfos:{},rightInfos:{},stateMeta:{},stateDesc:{}},setup(t){const e=i.useSlots(),n=t;return(r,o)=>{var s,a;return i.openBlock(),i.createElementBlock("div",Yz,[i.createElementVNode("div",null,[i.renderSlot(r.$slots,"menu",{},void 0,!0)]),i.createElementVNode("div",Gz,[i.createElementVNode("div",jz,[i.createElementVNode("div",Hz,i.toDisplayString(n.title),1),i.renderSlot(r.$slots,"extra-info",{},void 0,!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.leftInfos,l=>(i.openBlock(),i.createElementBlock("div",{class:"info-pair",key:l.value},[i.createElementVNode("div",Uz,i.toDisplayString(l.label),1),i.createElementVNode("div",Kz,i.toDisplayString(l.value??i.unref(Ut)),1)]))),128))]),i.renderSlot(r.$slots,"default",{},void 0,!0),i.unref(e)["right-infos"]?i.renderSlot(r.$slots,"right-infos",{key:0},void 0,!0):(i.openBlock(),i.createElementBlock("div",Xz,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.rightInfos,l=>(i.openBlock(),i.createElementBlock("div",{class:"info-pair",key:l.value},[i.createElementVNode("div",Zz,i.toDisplayString(l.label),1),i.createElementVNode("div",qz,i.toDisplayString(l.value??i.unref(Ut)),1)]))),128)),r.stateDesc||r.stateMeta?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["state common-title",(s=r.stateMeta)==null?void 0:s.state])},i.toDisplayString(r.stateDesc||((a=r.stateMeta)==null?void 0:a.intro)),3)):i.createCommentVNode("",!0)]))])])}}}),[["__scopeId","data-v-8b185816"]]));var Ci=(t=>(t.AUTOCOMPLETE="autocomplete",t.FORMAT="format",t.TEXT="text",t.INDEX="index",t))(Ci||{});const Jz={key:0},Qz={key:1,class:"col-edit-header"},e9=["onClick"],t9={key:0},n9={class:"header-operation-container"},r9={class:"operation-container"},i9=["onClick"],EE="$ZH_DIV$",SE=Mt($t(i.defineComponent({name:"zh-diy-data-table",__name:"DiyDataTable",props:i.mergeModels({isEdit:{type:Boolean,default:!1},maxRowLength:{default:50},maxColLength:{default:10},defaultMinWidth:{default:120},beforeAddRow:{},addRowText:{default:"增行"},addColumnText:{default:"增列"},customAddRow:{type:Boolean,default:!0},customAddColumn:{type:Boolean,default:!0},operationOption:{},canOnlyEditNewlyColumnHeader:{type:Boolean,default:!1}},{rawData:{required:!0},rawDataModifiers:{}}),emits:["update:rawData"],setup(t,{expose:e}){const n=t,r=i.useModel(t,"rawData"),o=i.ref([]),s=i.ref({isShow:!0,width:150,customAddRow:!0,addRowText:"增行",customAddColumn:!0,addColumnText:"增列"}),a=i.computed(()=>n.operationOption?{...s.value,...n.operationOption||{}}:{...s.value,customAddRow:n.customAddRow!==void 0?n.customAddRow:s.value.customAddRow,addRowText:n.addRowText!==void 0?n.addRowText:s.value.addRowText,customAddColumn:n.customAddColumn!==void 0?n.customAddColumn:s.value.customAddColumn,addColumnText:n.addColumnText!==void 0?n.addColumnText:s.value.addColumnText}),l=()=>{if(r.value.length===n.maxRowLength){nu({message:`最多添加${n.maxRowLength}行`,type:"warning"});return}let b={};n.beforeAddRow&&(b=n.beforeAddRow(r.value)),r.value.push(b)},c=()=>{if(o.value.filter(w=>w.isAdd).length>=n.maxColLength){nu({message:`最多添加${n.maxColLength}列`,type:"warning"});return}const E=String(Date.now());o.value.push({prop:E,label:"",isEditHeader:!0,isAdd:!0,maxlength:15,minWidth:150,headerMaxlength:15,isNewlyColumn:!0})},d=(b,E)=>{o.value.splice(b,1),r.value.forEach(w=>{delete w[E.prop]})},u=b=>{b===0&&o.value.forEach(E=>{E.isSameData&&(r.value[1][E.prop]=r.value[0][E.prop])}),r.value.splice(b,1)},f=(b,E,w)=>{E(w.completeList.filter(_=>_.includes(b)).map(_=>({value:_})))},h=b=>[{validator:(E,w,_)=>{if(!o.value[b].label){_(new Error("请输入表头"));return}_()},message:"请输入表头",trigger:["blur","change"]}],g=(b,E,w)=>{const _=[];return b.required&&_.push({required:!0,message:b.requiredMessage||b.label+"不能为空",trigger:b.slot?void 0:"blur"}),b.varidate&&_.push({validator:(C,S,k)=>{const v=b.varidate(S,E,w);v!==!0?k(new Error(v)):k()}}),_},p=(b,E)=>{let w=b;return E.isSameData&&(w=r.value[0]||Ut),E.formatter?E.showFormatter?E.type===Ci.FORMAT?E.showFormatter(E.formatter(w)):E.showFormatter(w[E.prop]):E.formatter(w[E.prop]):w[E.prop]||Ut},y=i.ref(),m=i.ref({width:132,type:Ci.INDEX,prop:"index",label:"序号",fixed:"left",isShow:!0});return e({initData:(b,E)=>{const w=(E||[]).find(_=>_.type===Ci.INDEX)||null;w&&(m.value={...w,isShow:w.isShow!==!1}),b=Mn(b)||[],b.length===0&&b.push({}),E=[...E.filter(_=>_.type!==Ci.INDEX)],console.log("initData",b,E);for(const _ in b[0])if(!E.some(C=>C.prop===_)){const C=Date.now()+_,S=_.split(EE);if(S.length!==2){console.log("keySplit 失败",_);continue}const k=Number(S[1]);E[k]={prop:_,isEditHeader:!0,label:S[0],key:C,isAdd:!0,maxlength:15,headerMaxlength:15,isNewlyColumn:!1}}r.value=b,o.value=E.filter(_=>_)},getData:async()=>{await y.value.validate();for(const E in o.value){const w=o.value[E];for(const _ of o.value)if(w.prop!==_.prop&&w.label===_.label){nu({message:"所有列的表头不可重复",type:"warning"});return}}const b=Mn(r.value);for(const E in b){const w=b[E];for(const _ in o.value){const C=o.value[_];if(C.isSameData&&E!=="0"&&(w[C.prop]=b[0][C.prop]),C.varidate&&!C.varidate(w[C.prop],w,E))return;if(C.isAdd){const S=w[C.prop];delete w[C.prop];const k=C.label+EE+_;w[k]=S}C.formatter&&C.type===Ci.FORMAT&&(w[C.prop]=C.formatter(w))}}return{data:b,columns:o.value}},updateColumn:(b,E)=>{const w=o.value[b].prop;if(o.value[b]=E,w!==E.prop)for(const _ of r.value)_[E.prop]=_[w],delete _[w]},resetColumns:b=>{const w=o.value.filter(C=>!C.isAdd).reduce((C,S)=>(b.some(k=>k.prop===S.prop)||C.push(S.prop),C),[]);r.value.forEach(C=>{w.forEach(S=>{delete C[S]})});const _=b.filter(C=>C.isAdd);o.value=[...b,..._]},onAddRow:l,onAddColumn:c,formRef:y,getColumns:()=>o.value}),(b,E)=>(i.openBlock(),i.createBlock(i.unref(Wb),{class:"diy-data-table",model:t.rawData,ref_key:"formRef",ref:y},{default:i.withCtx(()=>[i.createVNode(i.unref(Jp),i.mergeProps({data:r.value},b.$attrs),{default:i.withCtx(()=>[m.value.isShow?(i.openBlock(),i.createBlock(i.unref(Io),{key:0,type:m.value.type,label:m.value.label,width:m.value.width,minWidth:m.value.minWidth,fixed:m.value.fixed},null,8,["type","label","width","minWidth","fixed"])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(w,_)=>(i.openBlock(),i.createBlock(i.unref(Io),{key:w.key||_,prop:w.prop,label:w.label,width:w.width,"min-width":w.minWidth||b.defaultMinWidth,fixed:w.fixed},{header:i.withCtx(()=>[b.isEdit?w.isEditHeader&&b.canOnlyEditNewlyColumnHeader&&w.isNewlyColumn||w.isEditHeader&&!b.canOnlyEditNewlyColumnHeader?(i.openBlock(),i.createElementBlock("div",Qz,[i.createVNode(i.unref(qh),{prop:`columns.${_}`,rules:h(_)},{default:i.withCtx(()=>[i.createVNode(i.unref(Pn),{modelValue:w.label,"onUpdate:modelValue":C=>w.label=C,maxlength:w.headerMaxlength||20,placeholder:"请输入表头"},null,8,["modelValue","onUpdate:modelValue","maxlength"])]),_:2},1032,["prop","rules"]),w.isAdd?(i.openBlock(),i.createElementBlock("i",{key:0,class:"iconfont icon-close",onClick:C=>d(_,w)},null,8,e9)):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass({"is-required-label":w.required})},i.toDisplayString(w.label),3)):(i.openBlock(),i.createElementBlock("div",Jz,i.toDisplayString(w.label),1))]),default:i.withCtx(C=>[n.isEdit&&(!w.isSameData||C.$index===0)&&w.type!==i.unref(Ci).TEXT&&!C.row.disabled?(i.openBlock(),i.createBlock(i.unref(qh),{key:0,prop:`${C.$index}.${w.prop}`,rules:g(w,C.row,C.$index),class:i.normalizeClass(["col-edit-container",{"close-padding":w.isAdd}])},{default:i.withCtx(()=>[w.type===i.unref(Ci).FORMAT&&w.formatter?(i.openBlock(),i.createElementBlock("div",t9,i.toDisplayString(w.showFormatter?w.showFormatter(w.formatter(C.row)):w.formatter(C.row)),1)):w.type===i.unref(Ci).AUTOCOMPLETE?(i.openBlock(),i.createBlock(i.unref(SL),{key:1,modelValue:C.row[w.prop],"onUpdate:modelValue":S=>C.row[w.prop]=S,placeholder:w.placeholder||"请输入","fetch-suggestions":(S,k)=>f(S,k,w),maxlength:w.maxlength||20},null,8,["modelValue","onUpdate:modelValue","placeholder","fetch-suggestions","maxlength"])):w.slot?i.renderSlot(b.$slots,w.slot,{key:2,row:C.row,$index:C.$index},void 0,!0):(i.openBlock(),i.createBlock(i.unref(Pn),{key:3,modelValue:C.row[w.prop],"onUpdate:modelValue":S=>C.row[w.prop]=S,placeholder:w.placeholder||"请输入",formatter:w.formatter,parser:w.parser,maxlength:w.maxlength||20,"show-word-limit":w.showWordLimit},null,8,["modelValue","onUpdate:modelValue","placeholder","formatter","parser","maxlength","show-word-limit"]))]),_:2},1032,["prop","rules","class"])):w.slot?i.renderSlot(b.$slots,w.slot,{key:1,row:C.row,$index:C.$index},void 0,!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode(i.toDisplayString(p(C.row,w)),1)],64))]),_:2},1032,["prop","label","width","min-width","fixed"]))),128)),n.isEdit&&a.value.isShow?(i.openBlock(),i.createBlock(i.unref(Io),{key:1,width:a.value.width,fixed:"right"},{header:i.withCtx(()=>[i.createElementVNode("div",n9,[a.value.customAddRow?(i.openBlock(),i.createBlock(i.unref(lr),{key:0,type:"primary",link:"",onClick:l},{default:i.withCtx(()=>[E[0]||(E[0]=i.createElementVNode("i",{class:"iconfont icon-Frame1"},null,-1)),i.createTextVNode(i.toDisplayString(a.value.addRowText),1)]),_:1})):i.createCommentVNode("",!0),a.value.customAddColumn?(i.openBlock(),i.createBlock(i.unref(lr),{key:1,type:"primary",link:"",onClick:c},{default:i.withCtx(()=>[E[1]||(E[1]=i.createElementVNode("i",{class:"iconfont icon-Frame-11"},null,-1)),i.createTextVNode(i.toDisplayString(a.value.addColumnText),1)]),_:1})):i.createCommentVNode("",!0)])]),default:i.withCtx(({$index:w,row:_})=>[i.createElementVNode("div",r9,[b.$slots.operation?i.renderSlot(b.$slots,"operation",{key:0,row:r.value[w],$index:w},void 0,!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[r.value.length>1&&!_.disabled?(i.openBlock(),i.createElementBlock("i",{key:0,class:"iconfont icon-close",onClick:C=>u(w)},null,8,i9)):i.createCommentVNode("",!0)],64))])]),_:3},8,["width"])):i.createCommentVNode("",!0)]),_:3},16,["data"])]),_:3},8,["model"]))}}),[["__scopeId","data-v-de69ead8"]])),xu="ol-hidden",o9="ol-selectable",ic="ol-unselectable",Fm="ol-control",kE="ol-collapsed",s9=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))",`?\\s*([-,\\"\\'\\sa-z0-9]+?)\\s*$`].join(""),"i"),vE=["style","variant","weight","size","lineHeight","family"],xE=function(t){const e=t.match(s9);if(!e)return null;const n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let r=0,o=vE.length;r<o;++r){const s=e[r+1];s!==void 0&&(n[vE[r]]=s)}return n.families=n.family.split(/,\s?/),n};function TE(...t){console.warn(...t)}const un={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function Bm(t){const e=Tr();for(let n=0,r=t.length;n<r;++n)sc(e,t[n]);return e}function a9(t,e,n){const r=Math.min.apply(null,t),o=Math.min.apply(null,e),s=Math.max.apply(null,t),a=Math.max.apply(null,e);return Ei(r,o,s,a,n)}function Tu(t,e,n){return n?(n[0]=t[0]-e,n[1]=t[1]-e,n[2]=t[2]+e,n[3]=t[3]+e,n):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function ME(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function Cs(t,e,n){let r,o;return e<t[0]?r=t[0]-e:t[2]<e?r=e-t[2]:r=0,n<t[1]?o=t[1]-n:t[3]<n?o=n-t[3]:o=0,r*r+o*o}function Es(t,e){return Vm(t,e[0],e[1])}function Ss(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function Vm(t,e,n){return t[0]<=e&&e<=t[2]&&t[1]<=n&&n<=t[3]}function $m(t,e){const n=t[0],r=t[1],o=t[2],s=t[3],a=e[0],l=e[1];let c=un.UNKNOWN;return a<n?c=c|un.LEFT:a>o&&(c=c|un.RIGHT),l<r?c=c|un.BELOW:l>s&&(c=c|un.ABOVE),c===un.UNKNOWN&&(c=un.INTERSECTING),c}function Tr(){return[1/0,1/0,-1/0,-1/0]}function Ei(t,e,n,r,o){return o?(o[0]=t,o[1]=e,o[2]=n,o[3]=r,o):[t,e,n,r]}function Ea(t){return Ei(1/0,1/0,-1/0,-1/0,t)}function RE(t,e){const n=t[0],r=t[1];return Ei(n,r,n,r,e)}function zm(t,e,n,r,o){const s=Ea(o);return PE(s,t,e,n,r)}function oc(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function DE(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function sc(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function PE(t,e,n,r,o){for(;n<r;n+=o)l9(t,e[n],e[n+1]);return t}function l9(t,e,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],n)}function Wm(t,e){let n;return n=e(Mu(t)),n||(n=e(Ru(t)),n)||(n=e(Du(t)),n)||(n=e(ks(t)),n)?n:!1}function Ym(t){let e=0;return vs(t)||(e=mt(t)*fn(t)),e}function Mu(t){return[t[0],t[1]]}function Ru(t){return[t[2],t[1]]}function Qi(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function c9(t,e){let n;if(e==="bottom-left")n=Mu(t);else if(e==="bottom-right")n=Ru(t);else if(e==="top-left")n=ks(t);else if(e==="top-right")n=Du(t);else throw new Error("Invalid corner");return n}function Gm(t,e,n,r,o){const[s,a,l,c,d,u,f,h]=IE(t,e,n,r);return Ei(Math.min(s,l,d,f),Math.min(a,c,u,h),Math.max(s,l,d,f),Math.max(a,c,u,h),o)}function IE(t,e,n,r){const o=e*r[0]/2,s=e*r[1]/2,a=Math.cos(n),l=Math.sin(n),c=o*a,d=o*l,u=s*a,f=s*l,h=t[0],g=t[1];return[h-c+f,g-d-u,h-c-f,g-d+u,h+c-f,g+d+u,h+c+f,g+d-u,h-c+f,g-d-u]}function fn(t){return t[3]-t[1]}function Fo(t,e,n){const r=n||Tr();return Sn(t,e)?(t[0]>e[0]?r[0]=t[0]:r[0]=e[0],t[1]>e[1]?r[1]=t[1]:r[1]=e[1],t[2]<e[2]?r[2]=t[2]:r[2]=e[2],t[3]<e[3]?r[3]=t[3]:r[3]=e[3]):Ea(r),r}function ks(t){return[t[0],t[3]]}function Du(t){return[t[2],t[3]]}function mt(t){return t[2]-t[0]}function Sn(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function vs(t){return t[2]<t[0]||t[3]<t[1]}function d9(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function u9(t,e){const n=(t[2]-t[0])/2*(e-1),r=(t[3]-t[1])/2*(e-1);t[0]-=n,t[2]+=n,t[1]-=r,t[3]+=r}function f9(t,e,n){let r=!1;const o=$m(t,e),s=$m(t,n);if(o===un.INTERSECTING||s===un.INTERSECTING)r=!0;else{const a=t[0],l=t[1],c=t[2],d=t[3],u=e[0],f=e[1],h=n[0],g=n[1],p=(g-f)/(h-u);let y,m;s&un.ABOVE&&!(o&un.ABOVE)&&(y=h-(g-d)/p,r=y>=a&&y<=c),!r&&s&un.RIGHT&&!(o&un.RIGHT)&&(m=g-(h-c)*p,r=m>=l&&m<=d),!r&&s&un.BELOW&&!(o&un.BELOW)&&(y=h-(g-l)/p,r=y>=a&&y<=c),!r&&s&un.LEFT&&!(o&un.LEFT)&&(m=g-(h-a)*p,r=m>=l&&m<=d)}return r}function h9(t,e,n,r){if(vs(t))return Ea(n);let o=[];o=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]],e(o,o,2);const s=[],a=[];for(let l=0,c=o.length;l<c;l+=2)s.push(o[l]),a.push(o[l+1]);return a9(s,a,n)}function NE(t,e){const n=e.getExtent(),r=Qi(t);if(e.canWrapX()&&(r[0]<n[0]||r[0]>=n[2])){const o=mt(n),a=Math.floor((r[0]-n[0])/o)*o;t[0]-=a,t[2]-=a}return t}function OE(t,e,n){if(e.canWrapX()){const r=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[r[0],t[1],r[2],t[3]]];NE(t,e);const o=mt(r);if(mt(t)>o&&!n)return[[r[0],t[1],r[2],t[3]]];if(t[0]<r[0])return[[t[0]+o,t[1],r[2],t[3]],[r[0],t[1],t[2],t[3]]];if(t[2]>r[2])return[[t[0],t[1],r[2],t[3]],[r[0],t[1],t[2]-o,t[3]]]}return[t]}function Ot(t,e,n){return Math.min(Math.max(t,e),n)}function p9(t,e,n,r,o,s){const a=o-n,l=s-r;if(a!==0||l!==0){const c=((t-n)*a+(e-r)*l)/(a*a+l*l);c>1?(n=o,r=s):c>0&&(n+=a*c,r+=l*c)}return eo(t,e,n,r)}function eo(t,e,n,r){const o=n-t,s=r-e;return o*o+s*s}function m9(t){const e=t.length;for(let r=0;r<e;r++){let o=r,s=Math.abs(t[r][r]);for(let l=r+1;l<e;l++){const c=Math.abs(t[l][r]);c>s&&(s=c,o=l)}if(s===0)return null;const a=t[o];t[o]=t[r],t[r]=a;for(let l=r+1;l<e;l++){const c=-t[l][r]/t[r][r];for(let d=r;d<e+1;d++)r==d?t[l][d]=0:t[l][d]+=c*t[r][d]}}const n=new Array(e);for(let r=e-1;r>=0;r--){n[r]=t[r][e]/t[r][r];for(let o=r-1;o>=0;o--)t[o][e]-=t[o][r]*n[r]}return n}function LE(t){return t*180/Math.PI}function ei(t){return t*Math.PI/180}function xs(t,e){const n=t%e;return n*e<0?n+e:n}function dr(t,e,n){return t+n*(e-t)}function ac(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}function Pu(t,e){return Math.floor(ac(t,e))}function Iu(t,e){return Math.ceil(ac(t,e))}function jm(t,e,n){if(t>=e&&t<n)return t;const r=n-e;return((t-e)%r+r)%r+e}function g9(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function Nu(t,e){let n=!0;for(let r=t.length-1;r>=0;--r)if(t[r]!=e[r]){n=!1;break}return n}function Hm(t,e){const n=Math.cos(e),r=Math.sin(e),o=t[0]*n-t[1]*r,s=t[1]*n+t[0]*r;return t[0]=o,t[1]=s,t}function y9(t,e){return t[0]*=e,t[1]*=e,t}function AE(t,e){const n=t[0]-e[0],r=t[1]-e[1];return n*n+r*r}function FE(t,e){return Math.sqrt(AE(t,e))}function BE(t,e){if(e.canWrapX()){const n=mt(e.getExtent()),r=_9(t,e,n);r&&(t[0]-=r*n)}return t}function _9(t,e,n){const r=e.getExtent();let o=0;return e.canWrapX()&&(t[0]<r[0]||t[0]>r[2])&&(n=n||mt(r),o=Math.floor((t[0]-r[0])/n)),o}const Sa={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};class Um{constructor(e){this.code_=e.code,this.units_=e.units,this.extent_=e.extent!==void 0?e.extent:null,this.worldExtent_=e.worldExtent!==void 0?e.worldExtent:null,this.axisOrientation_=e.axisOrientation!==void 0?e.axisOrientation:"enu",this.global_=e.global!==void 0?e.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||Sa[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(e){this.global_=e,this.canWrapX_=!!(e&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(e){this.defaultTileGrid_=e}setExtent(e){this.extent_=e,this.canWrapX_=!!(this.global_&&e)}setWorldExtent(e){this.worldExtent_=e}setGetPointResolution(e){this.getPointResolutionFunc_=e}getPointResolutionFunc(){return this.getPointResolutionFunc_}}const lc=6378137,ka=Math.PI*lc,b9=[-ka,-ka,ka,ka],w9=[-180,-85,180,85],Ou=lc*Math.log(Math.tan(Math.PI/2));class va extends Um{constructor(e){super({code:e,units:"m",extent:b9,global:!0,worldExtent:w9,getPointResolution:function(n,r){return n/Math.cosh(r[1]/lc)}})}}const VE=[new va("EPSG:3857"),new va("EPSG:102100"),new va("EPSG:102113"),new va("EPSG:900913"),new va("http://www.opengis.net/def/crs/EPSG/0/3857"),new va("http://www.opengis.net/gml/srs/epsg.xml#3857")];function C9(t,e,n,r){const o=t.length;n=n>1?n:2,r=r??n,e===void 0&&(n>2?e=t.slice():e=new Array(o));for(let s=0;s<o;s+=r){e[s]=ka*t[s]/180;let a=lc*Math.log(Math.tan(Math.PI*(+t[s+1]+90)/360));a>Ou?a=Ou:a<-Ou&&(a=-Ou),e[s+1]=a}return e}function E9(t,e,n,r){const o=t.length;n=n>1?n:2,r=r??n,e===void 0&&(n>2?e=t.slice():e=new Array(o));for(let s=0;s<o;s+=r)e[s]=180*t[s]/ka,e[s+1]=360*Math.atan(Math.exp(t[s+1]/lc))/Math.PI-90;return e}const S9=6378137,$E=[-180,-90,180,90],k9=Math.PI*S9/180;class Ts extends Um{constructor(e,n){super({code:e,units:"degrees",extent:$E,axisOrientation:n,global:!0,metersPerUnit:k9,worldExtent:$E})}}const zE=[new Ts("CRS:84"),new Ts("EPSG:4326","neu"),new Ts("urn:ogc:def:crs:OGC:1.3:CRS84"),new Ts("urn:ogc:def:crs:OGC:2:84"),new Ts("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new Ts("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new Ts("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];let Km={};function v9(t){return Km[t]||Km[t.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null}function x9(t,e){Km[t]=e}function cc(t){for(const e in t)delete t[e]}function xa(t){let e;for(e in t)return!1;return!e}let Ta={};function dc(t,e,n){const r=t.getCode(),o=e.getCode();r in Ta||(Ta[r]={}),Ta[r][o]=n}function Xm(t,e){return t in Ta&&e in Ta[t]?Ta[t][e]:null}const Lu=.9996,Mr=.00669438,Au=Mr*Mr,Fu=Au*Mr,Ms=Mr/(1-Mr),WE=Math.sqrt(1-Mr),Ma=(1-WE)/(1+WE),YE=Ma*Ma,Zm=YE*Ma,qm=Zm*Ma,GE=qm*Ma,jE=1-Mr/4-3*Au/64-5*Fu/256,T9=3*Mr/8+3*Au/32+45*Fu/1024,M9=15*Au/256+45*Fu/1024,R9=35*Fu/3072,D9=3/2*Ma-27/32*Zm+269/512*GE,P9=21/16*YE-55/32*qm,I9=151/96*Zm-417/128*GE,N9=1097/512*qm,Bu=6378137;function O9(t,e,n){const r=t-5e5,a=(n.north?e:e-1e7)/Lu/(Bu*jE),l=a+D9*Math.sin(2*a)+P9*Math.sin(4*a)+I9*Math.sin(6*a)+N9*Math.sin(8*a),c=Math.sin(l),d=c*c,u=Math.cos(l),f=c/u,h=f*f,g=h*h,p=1-Mr*d,y=Math.sqrt(1-Mr*d),m=Bu/y,b=(1-Mr)/p,E=Ms*u**2,w=E*E,_=r/(m*Lu),C=_*_,S=C*_,k=S*_,v=k*_,x=v*_,M=l-f/b*(C/2-k/24*(5+3*h+10*E-4*w-9*Ms))+x/720*(61+90*h+298*E+45*g-252*Ms-3*w);let I=(_-S/6*(1+2*h+E)+v/120*(5-2*E+28*h-3*w+8*Ms+24*g))/u;return I=jm(I+ei(KE(n.number)),-Math.PI,Math.PI),[LE(I),LE(M)]}const HE=-80,UE=84,L9=-180,A9=180;function F9(t,e,n){t=jm(t,L9,A9),e<HE?e=HE:e>UE&&(e=UE);const r=ei(e),o=Math.sin(r),s=Math.cos(r),a=o/s,l=a*a,c=l*l,d=ei(t),u=KE(n.number),f=ei(u),h=Bu/Math.sqrt(1-Mr*o**2),g=Ms*s**2,p=s*jm(d-f,-Math.PI,Math.PI),y=p*p,m=y*p,b=m*p,E=b*p,w=E*p,_=Bu*(jE*r-T9*Math.sin(2*r)+M9*Math.sin(4*r)-R9*Math.sin(6*r)),C=Lu*h*(p+m/6*(1-l+g)+E/120*(5-18*l+c+72*g-58*Ms))+5e5;let S=Lu*(_+h*a*(y/2+b/24*(5-l+9*g+4*g**2)+w/720*(61-58*l+c+600*g-330*Ms)));return n.north||(S+=1e7),[C,S]}function KE(t){return(t-1)*6-180+3}const B9=[/^EPSG:(\d+)$/,/^urn:ogc:def:crs:EPSG::(\d+)$/,/^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/];function XE(t){let e=0;for(const o of B9){const s=t.match(o);if(s){e=parseInt(s[1]);break}}if(!e)return null;let n=0,r=!1;return e>32700&&e<32761?n=e-32700:e>32600&&e<32661&&(r=!0,n=e-32600),n?{number:n,north:r}:null}function ZE(t,e){return function(n,r,o,s){const a=n.length;o=o>1?o:2,s=s??o,r||(o>2?r=n.slice():r=new Array(a));for(let l=0;l<a;l+=s){const c=n[l],d=n[l+1],u=t(c,d,e);r[l]=u[0],r[l+1]=u[1]}return r}}function V9(t){return XE(t)?new Um({code:t,units:"m"}):null}function $9(t){const e=XE(t.getCode());return e?{forward:ZE(F9,e),inverse:ZE(O9,e)}:null}const Jm=63710088e-1;function Qm(t,e,n){n=n||Jm;const r=ei(t[1]),o=ei(e[1]),s=(o-r)/2,a=ei(e[0]-t[0])/2,l=Math.sin(s)*Math.sin(s)+Math.sin(a)*Math.sin(a)*Math.cos(r)*Math.cos(o);return 2*n*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}function eg(t,e){let n=0;for(let r=0,o=t.length;r<o-1;++r)n+=Qm(t[r],t[r+1],e);return n}function Vu(t,e){e=e||{};const n=e.radius||Jm,r=e.projection||"EPSG:3857",o=t.getType();o!=="GeometryCollection"&&(t=t.clone().transform(r,"EPSG:4326"));let s=0,a,l,c,d,u,f;switch(o){case"Point":case"MultiPoint":break;case"LineString":case"LinearRing":{a=t.getCoordinates(),s=eg(a,n);break}case"MultiLineString":case"Polygon":{for(a=t.getCoordinates(),c=0,d=a.length;c<d;++c)s+=eg(a[c],n);break}case"MultiPolygon":{for(a=t.getCoordinates(),c=0,d=a.length;c<d;++c)for(l=a[c],u=0,f=l.length;u<f;++u)s+=eg(l[u],n);break}case"GeometryCollection":{const h=t.getGeometries();for(c=0,d=h.length;c<d;++c)s+=Vu(h[c],e);break}default:throw new Error("Unsupported geometry type: "+o)}return s}function $u(t,e){let n=0;const r=t.length;let o=t[r-1][0],s=t[r-1][1];for(let a=0;a<r;a++){const l=t[a][0],c=t[a][1];n+=ei(l-o)*(2+Math.sin(ei(s))+Math.sin(ei(c))),o=l,s=c}return n*e*e/2}function qE(t,e){e=e||{};const n=e.radius||Jm,r=e.projection||"EPSG:3857",o=t.getType();o!=="GeometryCollection"&&(t=t.clone().transform(r,"EPSG:4326"));let s=0,a,l,c,d,u,f;switch(o){case"Point":case"MultiPoint":case"LineString":case"MultiLineString":case"LinearRing":break;case"Polygon":{for(a=t.getCoordinates(),s=Math.abs($u(a[0],n)),c=1,d=a.length;c<d;++c)s-=Math.abs($u(a[c],n));break}case"MultiPolygon":{for(a=t.getCoordinates(),c=0,d=a.length;c<d;++c)for(l=a[c],s+=Math.abs($u(l[0],n)),u=1,f=l.length;u<f;++u)s-=Math.abs($u(l[u],n));break}case"GeometryCollection":{const h=t.getGeometries();for(c=0,d=h.length;c<d;++c)s+=qE(h[c],e);break}default:throw new Error("Unsupported geometry type: "+o)}return s}const z9=[$9],W9=[V9];let tg=!0;function JE(t){tg=!1}function ng(t,e){if(e!==void 0){for(let n=0,r=t.length;n<r;++n)e[n]=t[n];e=e}else e=t.slice();return e}function rg(t){x9(t.getCode(),t),dc(t,t,ng)}function Y9(t){t.forEach(rg)}function nn(t){if(typeof t!="string")return t;const e=v9(t);if(e)return e;for(const n of W9){const r=n(t);if(r)return r}return null}function zu(t,e,n,r){t=nn(t);let o;const s=t.getPointResolutionFunc();if(s){if(o=s(e,n),r&&r!==t.getUnits()){const a=t.getMetersPerUnit();a&&(o=o*a/Sa[r])}}else{const a=t.getUnits();if(a=="degrees"&&!r||r=="degrees")o=e;else{const l=og(t,nn("EPSG:4326"));if(!l&&a!=="degrees")o=e*t.getMetersPerUnit();else{let d=[n[0]-e/2,n[1],n[0]+e/2,n[1],n[0],n[1]-e/2,n[0],n[1]+e/2];d=l(d,d,2);const u=Qm(d.slice(0,2),d.slice(2,4)),f=Qm(d.slice(4,6),d.slice(6,8));o=(u+f)/2}const c=r?Sa[r]:t.getMetersPerUnit();c!==void 0&&(o/=c)}}return o}function QE(t){Y9(t),t.forEach(function(e){t.forEach(function(n){e!==n&&dc(e,n,ng)})})}function G9(t,e,n,r){t.forEach(function(o){e.forEach(function(s){dc(o,s,n),dc(s,o,r)})})}function ig(t,e){return t?typeof t=="string"?nn(t):t:nn(e)}function j9(t){return function(e,n,r,o){const s=e.length;r=r!==void 0?r:2,o=o??r,n=n!==void 0?n:new Array(s);for(let a=0;a<s;a+=o){const l=t(e.slice(a,a+r)),c=l.length;for(let d=0,u=o;d<u;++d)n[a+d]=d>=c?e[a+d]:l[d]}return n}}function Rr(t,e){return JE(),to(t,"EPSG:4326","EPSG:3857")}function H9(t,e){const n=to(t,"EPSG:3857","EPSG:4326"),r=n[0];return(r<-180||r>180)&&(n[0]=xs(r+180,360)-180),n}function Wu(t,e){if(t===e)return!0;const n=t.getUnits()===e.getUnits();return(t.getCode()===e.getCode()||og(t,e)===ng)&&n}function og(t,e){const n=t.getCode(),r=e.getCode();let o=Xm(n,r);if(o)return o;let s=null,a=null;for(const c of z9)s||(s=c(t)),a||(a=c(e));if(!s&&!a)return null;const l="EPSG:4326";if(a)if(s)o=sg(s.inverse,a.forward);else{const c=Xm(n,l);c&&(o=sg(c,a.forward))}else{const c=Xm(l,r);c&&(o=sg(s.inverse,c))}return o&&(rg(t),rg(e),dc(t,e,o)),o}function sg(t,e){return function(n,r,o,s){return r=t(n,r,o,s),e(r,r,o,s)}}function Ra(t,e){const n=nn(t),r=nn(e);return og(n,r)}function to(t,e,n){const r=Ra(e,n);if(!r){const o=nn(e).getCode(),s=nn(n).getCode();throw new Error(`No transform available between ${o} and ${s}`)}return r(t,void 0,t.length)}function U9(t,e,n,r){const o=Ra(e,n);return h9(t,o,void 0)}function ag(t,e){return t}function ti(t,e){return tg&&!Nu(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(tg=!1,TE("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t}function eS(t,e){return t}function Si(t,e){return t}function K9(){QE(VE),QE(zE),G9(zE,VE,C9,E9)}K9();const no={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"},Da={PROPERTYCHANGE:"propertychange"},Ge={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};class Yu{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}function X9(t,e,n){let r,o;n=n||ro;let s=0,a=t.length,l=!1;for(;s<a;)r=s+(a-s>>1),o=+n(t[r],e),o<0?s=r+1:(a=r,l=!o);return l?s:~s}function ro(t,e){return t>e?1:t<e?-1:0}function Z9(t,e){return t<e?1:t>e?-1:0}function lg(t,e,n){if(t[0]<=e)return 0;const r=t.length;if(e<=t[r-1])return r-1;if(typeof n=="function"){for(let o=1;o<r;++o){const s=t[o];if(s===e)return o;if(s<e)return n(e,t[o-1],s)>0?o-1:o}return r-1}if(n>0){for(let o=1;o<r;++o)if(t[o]<e)return o-1;return r-1}if(n<0){for(let o=1;o<r;++o)if(t[o]<=e)return o;return r-1}for(let o=1;o<r;++o){if(t[o]==e)return o;if(t[o]<e)return t[o-1]-e<e-t[o]?o-1:o}return r-1}function q9(t,e,n){for(;e<n;){const r=t[e];t[e]=t[n],t[n]=r,++e,--n}}function ki(t,e){const n=Array.isArray(e)?e:[e],r=n.length;for(let o=0;o<r;o++)t[t.length]=n[o]}function Bo(t,e){const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function J9(t,e,n){const r=e||ro;return t.every(function(o,s){if(s===0)return!0;const a=r(t[s-1],o);return!(a>0||a===0)})}function Pa(){return!0}function Ia(){return!1}function uc(){}function tS(t){let e,n,r;return function(){const o=Array.prototype.slice.call(arguments);return(!n||this!==r||!Bo(o,n))&&(r=this,n=o,e=t.apply(this,arguments)),e}}function nS(t){function e(){let n;try{n=t()}catch(r){return Promise.reject(r)}return n instanceof Promise?n:Promise.resolve(n)}return e()}class vi{constructor(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}class fc extends Yu{constructor(e){super(),this.eventTarget_=e,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(e,n){if(!e||!n)return;const r=this.listeners_||(this.listeners_={}),o=r[e]||(r[e]=[]);o.includes(n)||o.push(n)}dispatchEvent(e){const n=typeof e=="string",r=n?e:e.type,o=this.listeners_&&this.listeners_[r];if(!o)return;const s=n?new vi(e):e;s.target||(s.target=this.eventTarget_||this);const a=this.dispatching_||(this.dispatching_={}),l=this.pendingRemovals_||(this.pendingRemovals_={});r in a||(a[r]=0,l[r]=0),++a[r];let c;for(let d=0,u=o.length;d<u;++d)if("handleEvent"in o[d]?c=o[d].handleEvent(s):c=o[d].call(this,s),c===!1||s.propagationStopped){c=!1;break}if(--a[r]===0){let d=l[r];for(delete l[r];d--;)this.removeEventListener(r,uc);delete a[r]}return c}disposeInternal(){this.listeners_&&cc(this.listeners_)}getListeners(e){return this.listeners_&&this.listeners_[e]||void 0}hasListener(e){return this.listeners_?e?e in this.listeners_:Object.keys(this.listeners_).length>0:!1}removeEventListener(e,n){if(!this.listeners_)return;const r=this.listeners_[e];if(!r)return;const o=r.indexOf(n);o!==-1&&(this.pendingRemovals_&&e in this.pendingRemovals_?(r[o]=uc,++this.pendingRemovals_[e]):(r.splice(o,1),r.length===0&&delete this.listeners_[e]))}}function lt(t,e,n,r,o){if(o){const a=n;n=function(l){return t.removeEventListener(e,n),a.call(r??this,l)}}else r&&r!==t&&(n=n.bind(r));const s={target:t,type:e,listener:n};return t.addEventListener(e,n),s}function Gu(t,e,n,r){return lt(t,e,n,r,!0)}function xt(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),cc(t))}class hc extends fc{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(Ge.CHANGE)}getRevision(){return this.revision_}onInternal(e,n){if(Array.isArray(e)){const r=e.length,o=new Array(r);for(let s=0;s<r;++s)o[s]=lt(this,e[s],n);return o}return lt(this,e,n)}onceInternal(e,n){let r;if(Array.isArray(e)){const o=e.length;r=new Array(o);for(let s=0;s<o;++s)r[s]=Gu(this,e[s],n)}else r=Gu(this,e,n);return n.ol_key=r,r}unInternal(e,n){const r=n.ol_key;if(r)ju(r);else if(Array.isArray(e))for(let o=0,s=e.length;o<s;++o)this.removeEventListener(e[o],n);else this.removeEventListener(e,n)}}hc.prototype.on,hc.prototype.once,hc.prototype.un;function ju(t){if(Array.isArray(t))for(let e=0,n=t.length;e<n;++e)xt(t[e]);else xt(t)}function je(){throw new Error("Unimplemented abstract method.")}let Q9=0;function dt(t){return t.ol_uid||(t.ol_uid=String(++Q9))}class rS extends vi{constructor(e,n,r){super(e),this.key=n,this.oldValue=r}}class ni extends hc{constructor(e){super(),this.on,this.once,this.un,dt(this),this.values_=null,e!==void 0&&this.setProperties(e)}get(e){let n;return this.values_&&this.values_.hasOwnProperty(e)&&(n=this.values_[e]),n}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}getPropertiesInternal(){return this.values_}hasProperties(){return!!this.values_}notify(e,n){let r;r=`change:${e}`,this.hasListener(r)&&this.dispatchEvent(new rS(r,e,n)),r=Da.PROPERTYCHANGE,this.hasListener(r)&&this.dispatchEvent(new rS(r,e,n))}addChangeListener(e,n){this.addEventListener(`change:${e}`,n)}removeChangeListener(e,n){this.removeEventListener(`change:${e}`,n)}set(e,n,r){const o=this.values_||(this.values_={});if(r)o[e]=n;else{const s=o[e];o[e]=n,s!==n&&this.notify(e,s)}}setProperties(e,n){for(const r in e)this.set(r,e[r],n)}applyProperties(e){e.values_&&Object.assign(this.values_||(this.values_={}),e.values_)}unset(e,n){if(this.values_&&e in this.values_){const r=this.values_[e];delete this.values_[e],xa(this.values_)&&(this.values_=null),n||this.notify(e,r)}}}class Hu extends ni{constructor(e){super();const n=e.element;n&&!e.target&&!n.style.pointerEvents&&(n.style.pointerEvents="auto"),this.element=n||null,this.target_=null,this.map_=null,this.listenerKeys=[],e.render&&(this.render=e.render),e.target&&this.setTarget(e.target)}disposeInternal(){var e;(e=this.element)==null||e.remove(),super.disposeInternal()}getMap(){return this.map_}setMap(e){var n;this.map_&&((n=this.element)==null||n.remove());for(let r=0,o=this.listenerKeys.length;r<o;++r)xt(this.listenerKeys[r]);if(this.listenerKeys.length=0,this.map_=e,e){const r=this.target_??e.getOverlayContainerStopEvent();this.element&&r.appendChild(this.element),this.render!==uc&&this.listenerKeys.push(lt(e,no.POSTRENDER,this.render,this)),e.render()}}render(e){}setTarget(e){this.target_=typeof e=="string"?document.getElementById(e):e}}const cg="units",eW=[1,2,5],pc=25.4/.28;let tW=class extends Hu{constructor(e){e=e||{};const n=document.createElement("div");n.style.pointerEvents="none",super({element:n,render:e.render,target:e.target}),this.on,this.once,this.un;const r=e.className!==void 0?e.className:e.bar?"ol-scale-bar":"ol-scale-line";this.innerElement_=document.createElement("div"),this.innerElement_.className=r+"-inner",this.element.className=r+" "+ic,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=e.minWidth!==void 0?e.minWidth:64,this.maxWidth_=e.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",this.addChangeListener(cg,this.handleUnitsChanged_),this.setUnits(e.units||"metric"),this.scaleBar_=e.bar||!1,this.scaleBarSteps_=e.steps||4,this.scaleBarText_=e.text||!1,this.dpi_=e.dpi||void 0}getUnits(){return this.get(cg)}handleUnitsChanged_(){this.updateElement_()}setUnits(e){this.set(cg,e)}setDpi(e){this.dpi_=e}updateElement_(){const e=this.viewState_;if(!e){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}const n=e.center,r=e.projection,o=this.getUnits(),s=o=="degrees"?"degrees":"m";let a=zu(r,e.resolution,n,s);const l=this.minWidth_*(this.dpi_||pc)/pc,c=this.maxWidth_!==void 0?this.maxWidth_*(this.dpi_||pc)/pc:void 0;let d=l*a,u="";if(o=="degrees"){const w=Sa.degrees;d*=w,d<w/60?(u="″",a*=3600):d<w?(u="′",a*=60):u="°"}else if(o=="imperial")d<.9144?(u="in",a/=.0254):d<1609.344?(u="ft",a/=.3048):(u="mi",a/=1609.344);else if(o=="nautical")a/=1852,u="NM";else if(o=="metric")d<1e-6?(u="nm",a*=1e9):d<.001?(u="μm",a*=1e6):d<1?(u="mm",a*=1e3):d<1e3?u="m":(u="km",a/=1e3);else if(o=="us")d<.9144?(u="in",a*=39.37):d<1609.344?(u="ft",a/=.30480061):(u="mi",a/=1609.3472);else throw new Error("Invalid units");let f=3*Math.floor(Math.log(l*a)/Math.log(10)),h,g,p,y=0,m,b;for(;;){p=Math.floor(f/3);const w=Math.pow(10,p);if(h=eW[(f%3+3)%3]*w,g=Math.round(h/a),isNaN(g)){this.element.style.display="none",this.renderedVisible_=!1;return}if(c!==void 0&&g>=c){h=y,g=m,p=b;break}else if(g>=l)break;y=h,m=g,b=p,++f}const E=this.scaleBar_?this.createScaleBar(g,h,u):h.toFixed(p<0?-p:0)+" "+u;this.renderedHTML_!=E&&(this.innerElement_.innerHTML=E,this.renderedHTML_=E),this.renderedWidth_!=g&&(this.innerElement_.style.width=g+"px",this.renderedWidth_=g),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}createScaleBar(e,n,r){const o=this.getScaleForResolution(),s=o<1?Math.round(1/o).toLocaleString()+" : 1":"1 : "+Math.round(o).toLocaleString(),a=this.scaleBarSteps_,l=e/a,c=[this.createMarker("absolute")];for(let u=0;u<a;++u){const f=u%2===0?"ol-scale-singlebar-odd":"ol-scale-singlebar-even";c.push(`<div><div class="ol-scale-singlebar ${f}" style="width: ${l}px;"></div>`+this.createMarker("relative")+(u%2===0||a===2?this.createStepText(u,e,!1,n,r):"")+"</div>")}return c.push(this.createStepText(a,e,!0,n,r)),(this.scaleBarText_?`<div class="ol-scale-text" style="width: ${e}px;">`+s+"</div>":"")+c.join("")}createMarker(e){return`<div class="ol-scale-step-marker" style="position: ${e}; top: ${e==="absolute"?3:-10}px;"></div>`}createStepText(e,n,r,o,s){const l=(e===0?0:Math.round(o/this.scaleBarSteps_*e*100)/100)+(e===0?"":" "+s),c=e===0?-3:n/this.scaleBarSteps_*-1,d=e===0?0:n/this.scaleBarSteps_*2;return`<div class="ol-scale-step-text" style="margin-left: ${c}px;text-align: ${e===0?"left":"center"};min-width: ${d}px;left: ${r?n+"px":"unset"};">`+l+"</div>"}getScaleForResolution(){const e=zu(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,"m"),n=this.dpi_||pc,r=1e3/25.4;return e*r*n}render(e){const n=e.frameState;n?this.viewState_=n.viewState:this.viewState_=null,this.updateElement_()}};const Hn={ADD:"add",REMOVE:"remove"},iS={LENGTH:"length"};class Uu extends vi{constructor(e,n,r){super(e),this.element=n,this.index=r}}class xi extends ni{constructor(e,n){if(super(),this.on,this.once,this.un,n=n||{},this.unique_=!!n.unique,this.array_=e||[],this.unique_)for(let r=0,o=this.array_.length;r<o;++r)this.assertUnique_(this.array_[r],r);this.updateLength_()}clear(){for(;this.getLength()>0;)this.pop()}extend(e){for(let n=0,r=e.length;n<r;++n)this.push(e[n]);return this}forEach(e){const n=this.array_;for(let r=0,o=n.length;r<o;++r)e(n[r],r,n)}getArray(){return this.array_}item(e){return this.array_[e]}getLength(){return this.get(iS.LENGTH)}insertAt(e,n){if(e<0||e>this.getLength())throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(n),this.array_.splice(e,0,n),this.updateLength_(),this.dispatchEvent(new Uu(Hn.ADD,n,e))}pop(){return this.removeAt(this.getLength()-1)}push(e){this.unique_&&this.assertUnique_(e);const n=this.getLength();return this.insertAt(n,e),this.getLength()}remove(e){const n=this.array_;for(let r=0,o=n.length;r<o;++r)if(n[r]===e)return this.removeAt(r)}removeAt(e){if(e<0||e>=this.getLength())return;const n=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new Uu(Hn.REMOVE,n,e)),n}setAt(e,n){const r=this.getLength();if(e>=r){this.insertAt(e,n);return}if(e<0)throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(n,e);const o=this.array_[e];this.array_[e]=n,this.dispatchEvent(new Uu(Hn.REMOVE,o,e)),this.dispatchEvent(new Uu(Hn.ADD,n,e))}updateLength_(){this.set(iS.LENGTH,this.array_.length)}assertUnique_(e,n){for(let r=0,o=this.array_.length;r<o;++r)if(this.array_[r]===e&&r!==n)throw new Error("Duplicate item added to a unique collection")}}function bt(t,e){if(!t)throw new Error(e)}class Kt extends ni{constructor(e){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),e)if(typeof e.getSimplifiedGeometry=="function"){const n=e;this.setGeometry(n)}else{const n=e;this.setProperties(n)}}clone(){const e=new Kt(this.hasProperties()?this.getProperties():null);e.setGeometryName(this.getGeometryName());const n=this.getGeometry();n&&e.setGeometry(n.clone());const r=this.getStyle();return r&&e.setStyle(r),e}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&(xt(this.geometryChangeKey_),this.geometryChangeKey_=null);const e=this.getGeometry();e&&(this.geometryChangeKey_=lt(e,Ge.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(e){this.set(this.geometryName_,e)}setStyle(e){this.style_=e,this.styleFunction_=e?nW(e):void 0,this.changed()}setId(e){this.id_=e,this.changed()}setGeometryName(e){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=e,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}function nW(t){if(typeof t=="function")return t;let e;return Array.isArray(t)?e=t:(bt(typeof t.getZIndex=="function","Expected an `ol/style/Style` or an array of `ol/style/Style.js`"),e=[t]),function(){return e}}new Array(6);function Dr(){return[1,0,0,1,0,0]}function rW(t,e){const n=t[0],r=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=e[0],d=e[1],u=e[2],f=e[3],h=e[4],g=e[5];return t[0]=n*c+o*d,t[1]=r*c+s*d,t[2]=n*u+o*f,t[3]=r*u+s*f,t[4]=n*h+o*g+a,t[5]=r*h+s*g+l,t}function iW(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Wt(t,e){const n=e[0],r=e[1];return e[0]=t[0]*n+t[2]*r+t[4],e[1]=t[1]*n+t[3]*r+t[5],e}function ri(t,e,n,r,o,s,a,l){const c=Math.sin(s),d=Math.cos(s);return t[0]=r*d,t[1]=o*c,t[2]=-r*c,t[3]=o*d,t[4]=a*r*d-l*r*c+e,t[5]=a*o*c+l*o*d+n,t}function oS(t,e){const n=oW(e);bt(n!==0,"Transformation matrix cannot be inverted");const r=e[0],o=e[1],s=e[2],a=e[3],l=e[4],c=e[5];return t[0]=a/n,t[1]=-o/n,t[2]=-s/n,t[3]=r/n,t[4]=(s*c-a*l)/n,t[5]=-(r*c-o*l)/n,t}function oW(t){return t[0]*t[3]-t[1]*t[2]}const sW=[1e5,1e5,1e5,1e5,2,2];function aW(t){return"matrix("+t.join(", ")+")"}function sS(t){return t.substring(7,t.length-1).split(",").map(parseFloat)}function lW(t,e){const n=sS(t),r=sS(e);for(let o=0;o<6;++o)if(Math.round((n[o]-r[o])*sW[o])!==0)return!1;return!0}function Vo(t,e,n,r,o,s,a){s=s||[],a=a||2;let l=0;for(let c=e;c<n;c+=r){const d=t[c],u=t[c+1];s[l++]=o[0]*d+o[2]*u+o[4],s[l++]=o[1]*d+o[3]*u+o[5];for(let f=2;f<a;f++)s[l++]=t[c+f]}return s&&s.length!=l&&(s.length=l),s}function dg(t,e,n,r,o,s,a){a=a||[];const l=Math.cos(o),c=Math.sin(o),d=s[0],u=s[1];let f=0;for(let h=e;h<n;h+=r){const g=t[h]-d,p=t[h+1]-u;a[f++]=d+g*l-p*c,a[f++]=u+g*c+p*l;for(let y=h+2;y<h+r;++y)a[f++]=t[y]}return a&&a.length!=f&&(a.length=f),a}function cW(t,e,n,r,o,s,a,l){l=l||[];const c=a[0],d=a[1];let u=0;for(let f=e;f<n;f+=r){const h=t[f]-c,g=t[f+1]-d;l[u++]=c+o*h,l[u++]=d+s*g;for(let p=f+2;p<f+r;++p)l[u++]=t[p]}return l&&l.length!=u&&(l.length=u),l}function dW(t,e,n,r,o,s,a){a=a||[];let l=0;for(let c=e;c<n;c+=r){a[l++]=t[c]+o,a[l++]=t[c+1]+s;for(let d=c+2;d<c+r;++d)a[l++]=t[d]}return a&&a.length!=l&&(a.length=l),a}const aS=Dr(),uW=[NaN,NaN];class lS extends ni{constructor(){super(),this.extent_=Tr(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=tS((e,n,r)=>{if(!r)return this.getSimplifiedGeometry(n);const o=this.clone();return o.applyTransform(r),o.getSimplifiedGeometry(n)})}simplifyTransformed(e,n){return this.simplifyTransformedInternal(this.getRevision(),e,n)}clone(){return je()}closestPointXY(e,n,r,o){return je()}containsXY(e,n){return this.closestPointXY(e,n,uW,Number.MIN_VALUE)===0}getClosestPoint(e,n){return n=n||[NaN,NaN],this.closestPointXY(e[0],e[1],n,1/0),n}intersectsCoordinate(e){return this.containsXY(e[0],e[1])}computeExtent(e){return je()}getExtent(e){if(this.extentRevision_!=this.getRevision()){const n=this.computeExtent(this.extent_);(isNaN(n[0])||isNaN(n[1]))&&Ea(n),this.extentRevision_=this.getRevision()}return d9(this.extent_,e)}rotate(e,n){je()}scale(e,n,r){je()}simplify(e){return this.getSimplifiedGeometry(e*e)}getSimplifiedGeometry(e){return je()}getType(){return je()}applyTransform(e){je()}intersectsExtent(e){return je()}translate(e,n){je()}transform(e,n){const r=nn(e),o=r.getUnits()=="tile-pixels"?function(s,a,l){const c=r.getExtent(),d=r.getWorldExtent(),u=fn(d)/fn(c);ri(aS,d[0],d[3],u,-u,0,0,0);const f=Vo(s,0,s.length,l,aS,a),h=Ra(r,n);return h?h(f,f,l):f}:Ra(r,n);return this.applyTransform(o),this}}class $o extends lS{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(e){return zm(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinates(){return je()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const n=this.getSimplifiedGeometryInternal(e);return n.getFlatCoordinates().length<this.flatCoordinates.length?n:(this.simplifiedGeometryMaxMinSquaredTolerance=e,this)}getSimplifiedGeometryInternal(e){return this}getStride(){return this.stride}setFlatCoordinates(e,n){this.stride=mc(e),this.layout=e,this.flatCoordinates=n}setCoordinates(e,n){je()}setLayout(e,n,r){let o;if(e)o=mc(e);else{for(let s=0;s<r;++s){if(n.length===0){this.layout="XY",this.stride=2;return}n=n[0]}o=n.length,e=fW(o)}this.layout=e,this.stride=o}applyTransform(e){this.flatCoordinates&&(e(this.flatCoordinates,this.flatCoordinates,this.layout.startsWith("XYZ")?3:2,this.stride),this.changed())}rotate(e,n){const r=this.getFlatCoordinates();if(r){const o=this.getStride();dg(r,0,r.length,o,e,n,r),this.changed()}}scale(e,n,r){n===void 0&&(n=e),r||(r=Qi(this.getExtent()));const o=this.getFlatCoordinates();if(o){const s=this.getStride();cW(o,0,o.length,s,e,n,r,o),this.changed()}}translate(e,n){const r=this.getFlatCoordinates();if(r){const o=this.getStride();dW(r,0,r.length,o,e,n,r),this.changed()}}}function fW(t){let e;return t==2?e="XY":t==3?e="XYZ":t==4&&(e="XYZM"),e}function mc(t){let e;return t=="XY"?e=2:t=="XYZ"||t=="XYM"?e=3:t=="XYZM"&&(e=4),e}function hW(t,e,n){const r=t.getFlatCoordinates();if(!r)return null;const o=t.getStride();return Vo(r,0,r.length,o,e,n)}function cS(t,e,n,r){let o=0;const s=t[n-r],a=t[n-r+1];let l=0,c=0;for(;e<n;e+=r){const d=t[e]-s,u=t[e+1]-a;o+=c*d-l*u,l=d,c=u}return o/2}function dS(t,e,n,r){let o=0;for(let s=0,a=n.length;s<a;++s){const l=n[s];o+=cS(t,e,l,r),e=l}return o}function pW(t,e,n,r){let o=0;for(let s=0,a=n.length;s<a;++s){const l=n[s];o+=dS(t,e,l,r),e=l[l.length-1]}return o}function uS(t,e,n,r,o,s,a){const l=t[e],c=t[e+1],d=t[n]-l,u=t[n+1]-c;let f;if(d===0&&u===0)f=e;else{const h=((o-l)*d+(s-c)*u)/(d*d+u*u);if(h>1)f=n;else if(h>0){for(let g=0;g<r;++g)a[g]=dr(t[e+g],t[n+g],h);a.length=r;return}else f=e}for(let h=0;h<r;++h)a[h]=t[f+h];a.length=r}function ug(t,e,n,r,o){let s=t[e],a=t[e+1];for(e+=r;e<n;e+=r){const l=t[e],c=t[e+1],d=eo(s,a,l,c);d>o&&(o=d),s=l,a=c}return o}function fg(t,e,n,r,o){for(let s=0,a=n.length;s<a;++s){const l=n[s];o=ug(t,e,l,r,o),e=l}return o}function mW(t,e,n,r,o){for(let s=0,a=n.length;s<a;++s){const l=n[s];o=fg(t,e,l,r,o),e=l[l.length-1]}return o}function hg(t,e,n,r,o,s,a,l,c,d,u){if(e==n)return d;let f,h;if(o===0){if(h=eo(a,l,t[e],t[e+1]),h<d){for(f=0;f<r;++f)c[f]=t[e+f];return c.length=r,h}return d}u=u||[NaN,NaN];let g=e+r;for(;g<n;)if(uS(t,g-r,g,r,a,l,u),h=eo(a,l,u[0],u[1]),h<d){for(d=h,f=0;f<r;++f)c[f]=u[f];c.length=r,g+=r}else g+=r*Math.max((Math.sqrt(h)-Math.sqrt(d))/o|0,1);if(s&&(uS(t,n-r,e,r,a,l,u),h=eo(a,l,u[0],u[1]),h<d)){for(d=h,f=0;f<r;++f)c[f]=u[f];c.length=r}return d}function pg(t,e,n,r,o,s,a,l,c,d,u){u=u||[NaN,NaN];for(let f=0,h=n.length;f<h;++f){const g=n[f];d=hg(t,e,g,r,o,s,a,l,c,d,u),e=g}return d}function gW(t,e,n,r,o,s,a,l,c,d,u){u=u||[NaN,NaN];for(let f=0,h=n.length;f<h;++f){const g=n[f];d=pg(t,e,g,r,o,s,a,l,c,d,u),e=g[g.length-1]}return d}function fS(t,e,n,r){for(let o=0,s=n.length;o<s;++o)t[e++]=n[o];return e}function Ku(t,e,n,r){for(let o=0,s=n.length;o<s;++o){const a=n[o];for(let l=0;l<r;++l)t[e++]=a[l]}return e}function mg(t,e,n,r,o){o=o||[];let s=0;for(let a=0,l=n.length;a<l;++a){const c=Ku(t,e,n[a],r);o[s++]=c,e=c}return o.length=s,o}function yW(t,e,n,r,o){o=o||[];let s=0;for(let a=0,l=n.length;a<l;++a){const c=mg(t,e,n[a],r,o[s]);c.length===0&&(c[0]=e),o[s++]=c,e=c[c.length-1]}return o.length=s,o}function io(t,e,n,r,o){o=o!==void 0?o:[];let s=0;for(let a=e;a<n;a+=r)o[s++]=t.slice(a,a+r);return o.length=s,o}function gc(t,e,n,r,o){o=o!==void 0?o:[];let s=0;for(let a=0,l=n.length;a<l;++a){const c=n[a];o[s++]=io(t,e,c,r,o[s]),e=c}return o.length=s,o}function gg(t,e,n,r,o){o=o!==void 0?o:[];let s=0;for(let a=0,l=n.length;a<l;++a){const c=n[a];o[s++]=c.length===1&&c[0]===e?[]:gc(t,e,c,r,o[s]),e=c[c.length-1]}return o.length=s,o}function Xu(t,e,n,r,o,s,a){const l=(n-e)/r;if(l<3){for(;e<n;e+=r)s[a++]=t[e],s[a++]=t[e+1];return a}const c=new Array(l);c[0]=1,c[l-1]=1;const d=[e,n-r];let u=0;for(;d.length>0;){const f=d.pop(),h=d.pop();let g=0;const p=t[h],y=t[h+1],m=t[f],b=t[f+1];for(let E=h+r;E<f;E+=r){const w=t[E],_=t[E+1],C=p9(w,_,p,y,m,b);C>g&&(u=E,g=C)}g>o&&(c[(u-e)/r]=1,h+r<u&&d.push(h,u),u+r<f&&d.push(u,f))}for(let f=0;f<l;++f)c[f]&&(s[a++]=t[e+f*r],s[a++]=t[e+f*r+1]);return a}function hS(t,e,n,r,o,s,a,l){for(let c=0,d=n.length;c<d;++c){const u=n[c];a=Xu(t,e,u,r,o,s,a),l.push(a),e=u}return a}function Rs(t,e){return e*Math.round(t/e)}function _W(t,e,n,r,o,s,a){if(e==n)return a;let l=Rs(t[e],o),c=Rs(t[e+1],o);e+=r,s[a++]=l,s[a++]=c;let d,u;do if(d=Rs(t[e],o),u=Rs(t[e+1],o),e+=r,e==n)return s[a++]=d,s[a++]=u,a;while(d==l&&u==c);for(;e<n;){const f=Rs(t[e],o),h=Rs(t[e+1],o);if(e+=r,f==d&&h==u)continue;const g=d-l,p=u-c,y=f-l,m=h-c;if(g*m==p*y&&(g<0&&y<g||g==y||g>0&&y>g)&&(p<0&&m<p||p==m||p>0&&m>p)){d=f,u=h;continue}s[a++]=d,s[a++]=u,l=d,c=u,d=f,u=h}return s[a++]=d,s[a++]=u,a}function yg(t,e,n,r,o,s,a,l){for(let c=0,d=n.length;c<d;++c){const u=n[c];a=_W(t,e,u,r,o,s,a),l.push(a),e=u}return a}function bW(t,e,n,r,o,s,a,l){for(let c=0,d=n.length;c<d;++c){const u=n[c],f=[];a=yg(t,e,u,r,o,s,a,f),l.push(f),e=u[u.length-1]}return a}class yc extends $o{constructor(e,n){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,n!==void 0&&!Array.isArray(e[0])?this.setFlatCoordinates(n,e):this.setCoordinates(e,n)}clone(){return new yc(this.flatCoordinates.slice(),this.layout)}closestPointXY(e,n,r,o){return o<Cs(this.getExtent(),e,n)?o:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(ug(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),hg(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,e,n,r,o))}getArea(){return cS(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return io(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(e){const n=[];return n.length=Xu(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,0),new yc(n,"XY")}getType(){return"LinearRing"}intersectsExtent(e){return!1}setCoordinates(e,n){this.setLayout(n,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Ku(this.flatCoordinates,0,e,this.stride),this.changed()}}class Xt extends $o{constructor(e,n){super(),this.setCoordinates(e,n)}clone(){const e=new Xt(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e}closestPointXY(e,n,r,o){const s=this.flatCoordinates,a=eo(e,n,s[0],s[1]);if(a<o){const l=this.stride;for(let c=0;c<l;++c)r[c]=s[c];return r.length=l,a}return o}getCoordinates(){return this.flatCoordinates.slice()}computeExtent(e){return RE(this.flatCoordinates,e)}getType(){return"Point"}intersectsExtent(e){return Vm(e,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(e,n){this.setLayout(n,e,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=fS(this.flatCoordinates,0,e,this.stride),this.changed()}}function wW(t,e,n,r,o){return!Wm(o,function(a){return!Ds(t,e,n,r,a[0],a[1])})}function Ds(t,e,n,r,o,s){let a=0,l=t[n-r],c=t[n-r+1];for(;e<n;e+=r){const d=t[e],u=t[e+1];c<=s?u>s&&(d-l)*(s-c)-(o-l)*(u-c)>0&&a++:u<=s&&(d-l)*(s-c)-(o-l)*(u-c)<0&&a--,l=d,c=u}return a!==0}function _g(t,e,n,r,o,s){if(n.length===0||!Ds(t,e,n[0],r,o,s))return!1;for(let a=1,l=n.length;a<l;++a)if(Ds(t,n[a-1],n[a],r,o,s))return!1;return!0}function CW(t,e,n,r,o,s){if(n.length===0)return!1;for(let a=0,l=n.length;a<l;++a){const c=n[a];if(_g(t,e,c,r,o,s))return!0;e=c[c.length-1]}return!1}function bg(t,e,n,r,o,s,a){let l,c,d,u,f,h,g;const p=o[s+1],y=[];for(let E=0,w=n.length;E<w;++E){const _=n[E];for(u=t[_-r],h=t[_-r+1],l=e;l<_;l+=r)f=t[l],g=t[l+1],(p<=h&&g<=p||h<=p&&p<=g)&&(d=(p-h)/(g-h)*(f-u)+u,y.push(d)),u=f,h=g}let m=NaN,b=-1/0;for(y.sort(ro),u=y[0],l=1,c=y.length;l<c;++l){f=y[l];const E=Math.abs(f-u);E>b&&(d=(u+f)/2,_g(t,e,n,r,d,p)&&(m=d,b=E)),u=f}return isNaN(m)&&(m=o[s]),a?(a.push(m,p,b),a):[m,p,b]}function pS(t,e,n,r,o){let s=[];for(let a=0,l=n.length;a<l;++a){const c=n[a];s=bg(t,e,c,r,o,2*a,s),e=c[c.length-1]}return s}function mS(t,e,n,r,o){let s;for(e+=r;e<n;e+=r)if(s=o(t.slice(e-r,e),t.slice(e,e+r)),s)return s;return!1}function Zu(t,e,n,r,o,s){return s=s??PE(Tr(),t,e,n,r),Sn(o,s)?s[0]>=o[0]&&s[2]<=o[2]||s[1]>=o[1]&&s[3]<=o[3]?!0:mS(t,e,n,r,function(a,l){return f9(o,a,l)}):!1}function EW(t,e,n,r,o){for(let s=0,a=n.length;s<a;++s){if(Zu(t,e,n[s],r,o))return!0;e=n[s]}return!1}function gS(t,e,n,r,o){return!!(Zu(t,e,n,r,o)||Ds(t,e,n,r,o[0],o[1])||Ds(t,e,n,r,o[0],o[3])||Ds(t,e,n,r,o[2],o[1])||Ds(t,e,n,r,o[2],o[3]))}function yS(t,e,n,r,o){if(!gS(t,e,n[0],r,o))return!1;if(n.length===1)return!0;for(let s=1,a=n.length;s<a;++s)if(wW(t,n[s-1],n[s],r,o)&&!Zu(t,n[s-1],n[s],r,o))return!1;return!0}function SW(t,e,n,r,o){for(let s=0,a=n.length;s<a;++s){const l=n[s];if(yS(t,e,l,r,o))return!0;e=l[l.length-1]}return!1}function kW(t,e,n,r){for(;e<n-r;){for(let o=0;o<r;++o){const s=t[e+o];t[e+o]=t[n-r+o],t[n-r+o]=s}e+=r,n-=r}}function wg(t,e,n,r){let o=0,s=t[n-r],a=t[n-r+1];for(;e<n;e+=r){const l=t[e],c=t[e+1];o+=(l-s)*(c+a),s=l,a=c}return o===0?void 0:o>0}function _S(t,e,n,r,o){o=o!==void 0?o:!1;for(let s=0,a=n.length;s<a;++s){const l=n[s],c=wg(t,e,l,r);if(s===0){if(o&&c||!o&&!c)return!1}else if(o&&!c||!o&&c)return!1;e=l}return!0}function vW(t,e,n,r,o){for(let s=0,a=n.length;s<a;++s){const l=n[s];if(!_S(t,e,l,r,o))return!1;l.length&&(e=l[l.length-1])}return!0}function Cg(t,e,n,r,o){o=o!==void 0?o:!1;for(let s=0,a=n.length;s<a;++s){const l=n[s],c=wg(t,e,l,r);(s===0?o&&c||!o&&!c:o&&!c||!o&&c)&&kW(t,e,l,r),e=l}return e}function bS(t,e,n,r,o){for(let s=0,a=n.length;s<a;++s)e=Cg(t,e,n[s],r,o);return e}function xW(t,e){const n=[];let r=0,o=0,s;for(let a=0,l=e.length;a<l;++a){const c=e[a],d=wg(t,r,c,2);if(s===void 0&&(s=d),d===s)n.push(e.slice(o,a+1));else{if(n.length===0)continue;n[n.length-1].push(e[o])}o=a+1,r=c}return n}class oo extends $o{constructor(e,n,r){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,n!==void 0&&r?(this.setFlatCoordinates(n,e),this.ends_=r):this.setCoordinates(e,n)}appendLinearRing(e){this.flatCoordinates?ki(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const e=new oo(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e}closestPointXY(e,n,r,o){return o<Cs(this.getExtent(),e,n)?o:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(fg(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),pg(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,e,n,r,o))}containsXY(e,n){return _g(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,n)}getArea(){return dS(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(e){let n;return e!==void 0?(n=this.getOrientedFlatCoordinates().slice(),Cg(n,0,this.ends_,this.stride,e)):n=this.flatCoordinates,gc(n,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const e=Qi(this.getExtent());this.flatInteriorPoint_=bg(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new Xt(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(e){return e<0||this.ends_.length<=e?null:new yc(this.flatCoordinates.slice(e===0?0:this.ends_[e-1],this.ends_[e]),this.layout)}getLinearRings(){const e=this.layout,n=this.flatCoordinates,r=this.ends_,o=[];let s=0;for(let a=0,l=r.length;a<l;++a){const c=r[a],d=new yc(n.slice(s,c),e);o.push(d),s=c}return o}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const e=this.flatCoordinates;_S(e,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=Cg(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(e){const n=[],r=[];return n.length=yg(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(e),n,0,r),new oo(n,"XY",r)}getType(){return"Polygon"}intersectsExtent(e){return yS(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e)}setCoordinates(e,n){this.setLayout(n,e,2),this.flatCoordinates||(this.flatCoordinates=[]);const r=mg(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=r.length===0?0:r[r.length-1],this.changed()}}function wS(t){if(vs(t))throw new Error("Cannot create polygon from empty extent");const e=t[0],n=t[1],r=t[2],o=t[3],s=[e,n,e,o,r,o,r,n,e,n];return new oo(s,"XY",[s.length])}function qu(t,e,n,r,o,s,a){let l,c;const d=(n-e)/r;if(d===1)l=e;else if(d===2)l=e,c=o;else if(d!==0){let u=t[e],f=t[e+1],h=0;const g=[0];for(let m=e+r;m<n;m+=r){const b=t[m],E=t[m+1];h+=Math.sqrt((b-u)*(b-u)+(E-f)*(E-f)),g.push(h),u=b,f=E}const p=o*h,y=X9(g,p);y<0?(c=(p-g[-y-2])/(g[-y-1]-g[-y-2]),l=e+(-y-2)*r):l=e+y*r}a=a>1?a:2,s=s||new Array(a);for(let u=0;u<a;++u)s[u]=l===void 0?NaN:c===void 0?t[l+u]:dr(t[l+u],t[l+r+u],c);return s}function Eg(t,e,n,r,o,s){if(n==e)return null;let a;if(o<t[e+r-1])return s?(a=t.slice(e,e+r),a[r-1]=o,a):null;if(t[n-1]<o)return s?(a=t.slice(n-r,n),a[r-1]=o,a):null;if(o==t[e+r-1])return t.slice(e,e+r);let l=e/r,c=n/r;for(;l<c;){const h=l+c>>1;o<t[(h+1)*r-1]?c=h:l=h+1}const d=t[l*r-1];if(o==d)return t.slice((l-1)*r,(l-1)*r+r);const u=t[(l+1)*r-1],f=(o-d)/(u-d);a=[];for(let h=0;h<r-1;++h)a.push(dr(t[(l-1)*r+h],t[l*r+h],f));return a.push(o),a}function TW(t,e,n,r,o,s,a){if(a)return Eg(t,e,n[n.length-1],r,o,s);let l;if(o<t[r-1])return s?(l=t.slice(0,r),l[r-1]=o,l):null;if(t[t.length-1]<o)return s?(l=t.slice(t.length-r),l[r-1]=o,l):null;for(let c=0,d=n.length;c<d;++c){const u=n[c];if(e!=u){if(o<t[e+r-1])return null;if(o<=t[u-1])return Eg(t,e,u,r,o,!1);e=u}}return null}function Sg(t,e,n,r){let o=t[e],s=t[e+1],a=0;for(let l=e+r;l<n;l+=r){const c=t[l],d=t[l+1];a+=Math.sqrt((c-o)*(c-o)+(d-s)*(d-s)),o=c,s=d}return a}class Nn extends $o{constructor(e,n){super(),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,n!==void 0&&!Array.isArray(e[0])?this.setFlatCoordinates(n,e):this.setCoordinates(e,n)}appendCoordinate(e){ki(this.flatCoordinates,e),this.changed()}clone(){const e=new Nn(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e}closestPointXY(e,n,r,o){return o<Cs(this.getExtent(),e,n)?o:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(ug(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),hg(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,e,n,r,o))}forEachSegment(e){return mS(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinateAtM(e,n){return this.layout!="XYM"&&this.layout!="XYZM"?null:(n=n!==void 0?n:!1,Eg(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n))}getCoordinates(){return io(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinateAt(e,n){return qu(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,this.stride)}getLength(){return Sg(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getFlatMidpoint(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_??void 0),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_}getSimplifiedGeometryInternal(e){const n=[];return n.length=Xu(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,0),new Nn(n,"XY")}getType(){return"LineString"}intersectsExtent(e){return Zu(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,this.getExtent())}setCoordinates(e,n){this.setLayout(n,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Ku(this.flatCoordinates,0,e,this.stride),this.changed()}}const Pr={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"},Ps=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"";Ps.includes("safari")&&!Ps.includes("chrom")&&(Ps.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(Ps));const MW=Ps.includes("webkit")&&!Ps.includes("edge"),CS=Ps.includes("macintosh"),RW=typeof devicePixelRatio<"u"?devicePixelRatio:1,ES=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,SS=typeof Image<"u"&&Image.prototype.decode,DW=typeof createImageBitmap=="function",kS=function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch{}return t}(),Ne={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};function rn(t,e,n,r){let o;return n&&n.length?o=n.shift():ES?o=new OffscreenCanvas(t||300,e||300):o=document.createElement("canvas"),t&&(o.width=t),e&&(o.height=e),o.getContext("2d",r)}let kg;function Ju(){return kg||(kg=rn(1,1)),kg}function Qu(t){const e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function PW(t){let e=t.offsetWidth;const n=getComputedStyle(t);return e+=parseInt(n.marginLeft,10)+parseInt(n.marginRight,10),e}function IW(t){let e=t.offsetHeight;const n=getComputedStyle(t);return e+=parseInt(n.marginTop,10)+parseInt(n.marginBottom,10),e}function vS(t,e){const n=e.parentNode;n&&n.replaceChild(t,e)}function xS(t){for(;t.lastChild;)t.lastChild.remove()}function NW(t,e){const n=t.childNodes;for(let r=0;;++r){const o=n[r],s=e[r];if(!o&&!s)break;if(o!==s){if(!o){t.appendChild(s);continue}if(!s){t.removeChild(o),--r;continue}t.insertBefore(s,o)}}}const vg=[NaN,NaN,NaN,0];let xg;function OW(){return xg||(xg=rn(1,1,void 0,{willReadFrequently:!0,desynchronized:!0})),xg}const LW=/^rgba?\(\s*(\d+%?)\s+(\d+%?)\s+(\d+%?)(?:\s*\/\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,AW=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,FW=/^rgba?\(\s*(\d+%)\s*,\s*(\d+%)\s*,\s*(\d+%)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,BW=/^#([\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i;function ef(t,e){return t.endsWith("%")?Number(t.substring(0,t.length-1))/e:Number(t)}function _c(t){throw new Error('failed to parse "'+t+'" as color')}function TS(t){if(t.toLowerCase().startsWith("rgb")){const s=t.match(AW)||t.match(LW)||t.match(FW);if(s){const a=s[4],l=100/255;return[Ot(ef(s[1],l)+.5|0,0,255),Ot(ef(s[2],l)+.5|0,0,255),Ot(ef(s[3],l)+.5|0,0,255),a!==void 0?Ot(ef(a,100),0,1):1]}_c(t)}if(t.startsWith("#")){if(BW.test(t)){const s=t.substring(1),a=s.length<=4?1:2,l=[0,0,0,255];for(let c=0,d=s.length;c<d;c+=a){let u=parseInt(s.substring(c,c+a),16);a===1&&(u+=u<<4),l[c/a]=u}return l[3]=l[3]/255,l}_c(t)}const e=OW();e.fillStyle="#abcdef";let n=e.fillStyle;e.fillStyle=t,e.fillStyle===n&&(e.fillStyle="#fedcba",n=e.fillStyle,e.fillStyle=t,e.fillStyle===n&&_c(t));const r=e.fillStyle;if(r.startsWith("#")||r.startsWith("rgba"))return TS(r);e.clearRect(0,0,1,1),e.fillRect(0,0,1,1);const o=Array.from(e.getImageData(0,0,1,1).data);return o[3]=ac(o[3]/255,3),o}function VW(t){return typeof t=="string"?t:Ng(t)}const $W=1024,bc={};let Tg=0;function zW(t){if(t.length===4)return t;const e=t.slice();return e[3]=1,e}function Mg(t){return t>.0031308?Math.pow(t,1/2.4)*269.025-14.025:t*3294.6}function Rg(t){return t>.2068965?Math.pow(t,3):(t-4/29)*(108/841)}function Dg(t){return t>10.314724?Math.pow((t+14.025)/269.025,2.4):t/3294.6}function Pg(t){return t>.0088564?Math.pow(t,1/3):t/(108/841)+4/29}function MS(t){const e=Dg(t[0]),n=Dg(t[1]),r=Dg(t[2]),o=Pg(e*.222488403+n*.716873169+r*.06060791),s=500*(Pg(e*.452247074+n*.399439023+r*.148375274)-o),a=200*(o-Pg(e*.016863605+n*.117638439+r*.865350722)),l=Math.atan2(a,s)*(180/Math.PI);return[116*o-16,Math.sqrt(s*s+a*a),l<0?l+360:l,t[3]]}function WW(t){const e=(t[0]+16)/116,n=t[1],r=t[2]*Math.PI/180,o=Rg(e),s=Rg(e+n/500*Math.cos(r)),a=Rg(e-n/200*Math.sin(r)),l=Mg(s*3.021973625-o*1.617392459-a*.404875592),c=Mg(s*-.943766287+o*1.916279586+a*.027607165),d=Mg(s*.069407491-o*.22898585+a*1.159737864);return[Ot(l+.5|0,0,255),Ot(c+.5|0,0,255),Ot(d+.5|0,0,255),t[3]]}function Ig(t){if(t==="none")return vg;if(bc.hasOwnProperty(t))return bc[t];if(Tg>=$W){let n=0;for(const r in bc)n++&3||(delete bc[r],--Tg)}const e=TS(t);e.length!==4&&_c(t);for(const n of e)isNaN(n)&&_c(t);return bc[t]=e,++Tg,e}function Na(t){return Array.isArray(t)?t:Ig(t)}function Ng(t){let e=t[0];e!=(e|0)&&(e=e+.5|0);let n=t[1];n!=(n|0)&&(n=n+.5|0);let r=t[2];r!=(r|0)&&(r=r+.5|0);const o=t[3]===void 0?1:Math.round(t[3]*1e3)/1e3;return"rgba("+e+","+n+","+r+","+o+")"}class YW extends fc{constructor(e,n,r,o){super(),this.extent=e,this.pixelRatio_=r,this.resolution=n,this.state=typeof o=="function"?Ne.IDLE:o,this.image_=null,this.loader=typeof o=="function"?o:null}changed(){this.dispatchEvent(Ge.CHANGE)}getExtent(){return this.extent}getImage(){return this.image_}getPixelRatio(){return this.pixelRatio_}getResolution(){return this.resolution}getState(){return this.state}load(){if(this.state==Ne.IDLE&&this.loader){this.state=Ne.LOADING,this.changed();const e=this.getResolution(),n=Array.isArray(e)?e[0]:e;nS(()=>this.loader(this.getExtent(),n,this.getPixelRatio())).then(r=>{"image"in r&&(this.image_=r.image),"extent"in r&&(this.extent=r.extent),"resolution"in r&&(this.resolution=r.resolution),"pixelRatio"in r&&(this.pixelRatio_=r.pixelRatio),(r instanceof HTMLImageElement||DW&&r instanceof ImageBitmap||r instanceof HTMLCanvasElement||r instanceof HTMLVideoElement)&&(this.image_=r),this.state=Ne.LOADED}).catch(r=>{this.state=Ne.ERROR,console.error(r)}).finally(()=>this.changed())}}setImage(e){this.image_=e}setResolution(e){this.resolution=e}}function GW(t,e,n){const r=t;let o=!0,s=!1,a=!1;const l=[Gu(r,Ge.LOAD,function(){a=!0,s||e()})];return r.src&&SS?(s=!0,r.decode().then(function(){o&&e()}).catch(function(c){o&&(a?e():n())})):l.push(Gu(r,Ge.ERROR,n)),function(){o=!1,l.forEach(xt)}}function jW(t,e){return new Promise((n,r)=>{function o(){a(),n(t)}function s(){a(),r(new Error("Image load error"))}function a(){t.removeEventListener("load",o),t.removeEventListener("error",s)}t.addEventListener("load",o),t.addEventListener("error",s)})}function HW(t,e){return e&&(t.src=e),t.src&&SS?new Promise((n,r)=>t.decode().then(()=>n(t)).catch(o=>t.complete&&t.width?n(t):r(o))):jW(t)}class UW{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=1024}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let e=0;for(const n in this.cache_){const r=this.cache_[n];!(e++&3)&&!r.hasListener()&&(delete this.cache_[n],delete this.patternCache_[n],--this.cacheSize_)}}}get(e,n,r){const o=Og(e,n,r);return o in this.cache_?this.cache_[o]:null}getPattern(e,n,r){const o=Og(e,n,r);return o in this.patternCache_?this.patternCache_[o]:null}set(e,n,r,o,s){const a=Og(e,n,r),l=a in this.cache_;this.cache_[a]=o,s&&(o.getImageState()===Ne.IDLE&&o.load(),o.getImageState()===Ne.LOADING?o.ready().then(()=>{this.patternCache_[a]=Ju().createPattern(o.getImage(1),"repeat")}):this.patternCache_[a]=Ju().createPattern(o.getImage(1),"repeat")),l||++this.cacheSize_}setSize(e){this.maxCacheSize_=e,this.expire()}}function Og(t,e,n){const r=n?Na(n):"null";return e+":"+t+":"+r}const Ir=new UW;let wc=null;class RS extends fc{constructor(e,n,r,o,s){super(),this.hitDetectionImage_=null,this.image_=e,this.crossOrigin_=r,this.canvas_={},this.color_=s,this.imageState_=o===void 0?Ne.IDLE:o,this.size_=e&&e.width&&e.height?[e.width,e.height]:null,this.src_=n,this.tainted_,this.ready_=null}initializeImage_(){this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(this.tainted_===void 0&&this.imageState_===Ne.LOADED){wc||(wc=rn(1,1,void 0,{willReadFrequently:!0})),wc.drawImage(this.image_,0,0);try{wc.getImageData(0,0,1,1),this.tainted_=!1}catch{wc=null,this.tainted_=!0}}return this.tainted_===!0}dispatchChangeEvent_(){this.dispatchEvent(Ge.CHANGE)}handleImageError_(){this.imageState_=Ne.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=Ne.LOADED,this.size_=[this.image_.width,this.image_.height],this.dispatchChangeEvent_()}getImage(e){return this.image_||this.initializeImage_(),this.replaceColor_(e),this.canvas_[e]?this.canvas_[e]:this.image_}getPixelRatio(e){return this.replaceColor_(e),this.canvas_[e]?e:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const e=this.size_[0],n=this.size_[1],r=rn(e,n);r.fillRect(0,0,e,n),this.hitDetectionImage_=r.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===Ne.IDLE){this.image_||this.initializeImage_(),this.imageState_=Ne.LOADING;try{this.src_!==void 0&&(this.image_.src=this.src_)}catch{this.handleImageError_()}this.image_ instanceof HTMLImageElement&&HW(this.image_,this.src_).then(e=>{this.image_=e,this.handleImageLoad_()}).catch(this.handleImageError_.bind(this))}}replaceColor_(e){if(!this.color_||this.canvas_[e]||this.imageState_!==Ne.LOADED)return;const n=this.image_,r=rn(Math.ceil(n.width*e),Math.ceil(n.height*e)),o=r.canvas;r.scale(e,e),r.drawImage(n,0,0),r.globalCompositeOperation="multiply",r.fillStyle=VW(this.color_),r.fillRect(0,0,o.width/e,o.height/e),r.globalCompositeOperation="destination-in",r.drawImage(n,0,0),this.canvas_[e]=o}ready(){return this.ready_||(this.ready_=new Promise(e=>{if(this.imageState_===Ne.LOADED||this.imageState_===Ne.ERROR)e();else{const n=()=>{(this.imageState_===Ne.LOADED||this.imageState_===Ne.ERROR)&&(this.removeEventListener(Ge.CHANGE,n),e())};this.addEventListener(Ge.CHANGE,n)}})),this.ready_}}function Lg(t,e,n,r,o,s){let a=e===void 0?void 0:Ir.get(e,n,o);return a||(a=new RS(t,t&&"src"in t?t.src||void 0:e,n,r,o),Ir.set(e,n,o,a,s)),s&&a&&!Ir.getPattern(e,n,o)&&Ir.set(e,n,o,a,s),a}function Ti(t){return t?Array.isArray(t)?Ng(t):typeof t=="object"&&"src"in t?KW(t):t:null}function KW(t){if(!t.offset||!t.size)return Ir.getPattern(t.src,"anonymous",t.color);const e=t.src+":"+t.offset,n=Ir.getPattern(e,void 0,t.color);if(n)return n;const r=Ir.get(t.src,"anonymous",null);if(r.getImageState()!==Ne.LOADED)return null;const o=rn(t.size[0],t.size[1]);return o.drawImage(r.getImage(1),t.offset[0],t.offset[1],t.size[0],t.size[1],0,0,t.size[0],t.size[1]),Lg(o.canvas,e,void 0,Ne.LOADED,t.color,!0),Ir.getPattern(e,void 0,t.color)}class DS{drawCustom(e,n,r,o,s){}drawGeometry(e){}setStyle(e){}drawCircle(e,n,r){}drawFeature(e,n,r){}drawGeometryCollection(e,n,r){}drawLineString(e,n,r){}drawMultiLineString(e,n,r){}drawMultiPoint(e,n,r){}drawMultiPolygon(e,n,r){}drawPoint(e,n,r){}drawPolygon(e,n,r){}drawText(e,n,r){}setFillStrokeStyle(e,n){}setImageStyle(e,n){}setTextStyle(e,n){}}const PS="10px sans-serif",Un="#000",Oa="round",so=[],ao=0,La="round",Cc=10,Ec="#000",Sc="center",tf="middle",Is=[0,0,0,0],kc=1,lo=new ni;let Aa=null,Ag;const Fg={},XW=function(){const e="32px ",n=["monospace","serif"],r=n.length,o="wmytzilWMYTZIL@#/&?$%10";let s,a;function l(d,u,f){let h=!0;for(let g=0;g<r;++g){const p=n[g];if(a=nf(d+" "+u+" "+e+p,o),f!=p){const y=nf(d+" "+u+" "+e+f+","+p,o);h=h&&y!=a}}return!!h}function c(){let d=!0;const u=lo.getKeys();for(let f=0,h=u.length;f<h;++f){const g=u[f];if(lo.get(g)<100){const[p,y,m]=g.split(`
|
|
73
|
+
</defs>`,Tz=()=>{let t=i.reactive({});return{gridItemData:t,registerGridItem:(o,s)=>{var l;if(!s)return;t[o]||(t[o]={labels:[],maxLength:0,maxWidth:0}),(l=t[o])==null||l.labels.push(s),t[o].maxLength=Math.max(s.length,t[o].maxLength);const a=Math.ceil(ws(s,14));t[o].maxWidth=Math.max(a||0,t[o].maxWidth)},getColumnData:o=>t[o]||{},clearGridItemData:()=>{t=i.reactive({})}}},Mz={class:"multi-grid"},Rz=i.defineComponent({name:"MultiGrid",__name:"MultiGrid",setup(t){const{getColumnData:e,registerGridItem:n,clearGridItemData:r,gridItemData:o}=Tz();return i.provide("registerGridItem",n),i.provide("getColumnData",e),i.provide("clearGridItemData",r),i.provide("gridItemData",o),i.provide("isMultiGrid",i.ref(!0)),(s,a)=>(i.openBlock(),i.createElementBlock("div",Mz,[i.renderSlot(s.$slots,"default")]))}}),aE=Mt(iE),Lm=Mt(wz),lE=Mt(Rz),Dz={class:"info-pair"},Pz={class:"info-pair--title"},Iz={key:0,class:"info-pair--title--tip"},cE=Mt($t(i.defineComponent({name:"zh-info-pair",__name:"InfoPair",props:{title:{},value:{},ellipsis:{type:Boolean},tip:{}},setup(t){const e=t;return(n,r)=>(i.openBlock(),i.createElementBlock("div",Dz,[i.createElementVNode("div",Pz,[i.createTextVNode(i.toDisplayString(e.title)+" ",1),n.tip?(i.openBlock(),i.createElementBlock("div",Iz,i.toDisplayString(n.tip),1)):i.createCommentVNode("",!0)]),i.createElementVNode("div",{class:i.normalizeClass(["info-pair--value",{ellipsis:n.ellipsis}])},[i.renderSlot(n.$slots,"value",{},()=>[i.createTextVNode(i.toDisplayString(e.value||i.unref(Ut)),1)],!0)],2)]))}}),[["__scopeId","data-v-5a1b0655"]])),dE=Mt($t(i.defineComponent({name:"zh-input",__name:"Input",props:i.mergeModels({style:{},class:{default:"zh-default-input"},size:{default:"default"},className:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=i.useAttrs(),n=t,r=i.useModel(t,"modelValue"),o=()=>{(e.max||Number(e.max)===0)&&Number(r.value)>=e.max&&(r.value=e.max.toString()),(e.min||Number(e.min)===0)&&Number(r.value)<=e.min&&(r.value=e.min.toString())};return(s,a)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(n.class)},[i.createVNode(i.unref(Pn),i.mergeProps(s.$attrs,{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=l=>r.value=l),size:s.size,onBlur:o}),i.createSlots({_:2},[i.renderList(s.$slots,(l,c)=>({name:l,fn:i.withCtx(d=>[i.renderSlot(s.$slots,l,i.normalizeProps(i.guardReactiveProps(d)),void 0,!0)])}))]),1040,["modelValue","size"])],2))}}),[["__scopeId","data-v-ce1df798"]])),uE=$t(i.defineComponent({name:"zh-input-number",__name:"InputNumber",props:{style:{},class:{},modelValue:{}},emits:["update:modelValue","change"],setup(t,{emit:e}){const n=t,r=e,o=i.useAttrs(),s=(u,f=0,h=0,g=0)=>{let p=(u==null?void 0:u.toString())??"",y,m,b;return h===0?(p=p.replace(/[^\d]/g,""),p=p.replace(/^0\d+/g,"0"),f!==0&&(p=p.slice(0,f))):(p=p.replace(/[^\-\d.]/g,""),p=p.replace(/^[^\-\d]/g,""),p=p.replace(/\.{2}/g,"."),p=p.replace(/^0(\d+)/g,"$1"),y=p.split(".")||[],y.length>1?(f===0?m=y[0]:m=y[0].slice(0,f),b=y[1].slice(0,h),p=m+"."+b):f!==0&&(p=p.slice(0,f))),g!==0&&(p=p.slice(0,g)),p},a=()=>{n.modelValue===""||n.modelValue===void 0||(o.max&&Number(n.modelValue)>o.max&&r("update:modelValue",o.max.toString()),o.min&&Number(n.modelValue)<o.min&&r("update:modelValue",o.min.toString()))},l=u=>u?s(u,o.integer,o.precision,o.maxLength):"",c=u=>{/^\d+\.0*$/.test((u==null?void 0:u.toString())||"")||u===""?r("update:modelValue",l(u)):r("update:modelValue",Number(l(u)))},d=u=>{r("change",l(u))};return(u,f)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["input-number",n.class]),style:i.normalizeStyle(n.style)},[i.createVNode(i.unref(Pn),i.mergeProps(u.$attrs,{"model-value":n.modelValue,"onUpdate:modelValue":c,onBlur:a,style:{width:"100%"},formatter:l,onChange:d}),i.createSlots({_:2},[i.renderList(Object.keys(u.$slots),h=>({name:h,fn:i.withCtx(g=>[i.renderSlot(u.$slots,h,i.normalizeProps(i.guardReactiveProps(g)),void 0,!0)])}))]),1040,["model-value"])],6))}}),[["__scopeId","data-v-17c3b6e2"]]),fE=Mt(uE),Nz={class:"loading-box"},hE=Mt($t(i.defineComponent({name:"zh-loading",__name:"Loading",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",Nz,n[0]||(n[0]=[i.createElementVNode("div",{class:"loading-wrap"},[i.createElementVNode("span",{class:"dot dot-spin"},[i.createElementVNode("i"),i.createElementVNode("i"),i.createElementVNode("i"),i.createElementVNode("i")])],-1)])))}}),[["__scopeId","data-v-d30f17c3"]])),Am={type:"",showCancelButton:!0,showConfirmButton:!0,cancelButtonText:"取消",confirmButtonText:"确定",closeOnClickModal:!1,closeOnPressEscape:!1,showClose:!0,draggable:!1,center:!1,roundButton:!1},vu={confirm(t,e,n={}){return Qp.confirm(t,e,{...Am,customClass:"zh-message-box zh-message-confirm",...n})},alert(t,e,n={}){return Qp.alert(t,e,{...Am,...n,showCancelButton:!1,customClass:"zh-message-box zh-message-alert"})},prompt(t,e,n={}){return Qp.prompt(t,e,{...Am,...n,customClass:"zh-message-box zh-message-prompt"})}},pE=vu.confirm,mE=vu.alert,gE=vu.prompt,yE=Mt(vu),_E=Mt($t(i.defineComponent({name:"zh-money-input",__name:"MoneyInput",props:i.mergeModels({style:{},class:{},showTooltip:{type:Boolean,default:!0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=t,n=i.useModel(t,"modelValue"),r=i.computed(()=>{if(n.value)return tz(n.value)&&Number(n.value)>=1e3?nz(Number(n.value)):""}),o=i.ref(!1);return(s,a)=>(i.openBlock(),i.createBlock(i.unref(sr),{effect:"dark",content:r.value,placement:"top",visible:s.showTooltip&&o.value&&!!r.value},{default:i.withCtx(()=>[i.createVNode(uE,i.mergeProps(s.$attrs,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=l=>n.value=l),style:e.style,class:e.class,onFocus:a[1]||(a[1]=()=>o.value=!0),onBlur:a[2]||(a[2]=()=>o.value=!1)}),i.createSlots({_:2},[i.renderList(Object.keys(s.$slots),l=>({name:l,fn:i.withCtx(c=>[i.renderSlot(s.$slots,l,i.normalizeProps(i.guardReactiveProps(c)),void 0,!0)])}))]),1040,["modelValue","style","class"])]),_:3},8,["content","visible"]))}}),[["__scopeId","data-v-cfd94d9e"]])),Oz={class:"page-head"},Lz={class:"left-wrap"},Az={class:"page-name"},Fz={class:"value"},Bz={class:"other-inform"},Vz={class:"label"},$z={class:"value mg-r-24"},zz={class:"status"},Wz=Mt($t(i.defineComponent({name:"zh-page-head-panel",__name:"PageHeadPanel",props:{dataSource:{}},setup(t){const e=t,{name:n,no:r,status:o,extendLabel:s,extendValue:a}=i.toRefs(e.dataSource);return(l,c)=>(i.openBlock(),i.createElementBlock("div",Oz,[i.createElementVNode("div",Lz,[i.createElementVNode("span",Az,i.toDisplayString(i.unref(n)),1),i.createElementVNode("div",null,[c[0]||(c[0]=i.createElementVNode("span",{class:"label mg-l-16"},"编号",-1)),i.createElementVNode("span",Fz,i.toDisplayString(i.unref(r)),1)])]),i.createElementVNode("div",Bz,[i.renderSlot(l.$slots,"extend",{},()=>[i.createElementVNode("span",Vz,i.toDisplayString(i.unref(s)),1),i.createElementVNode("span",$z,i.toDisplayString(i.unref(a)),1)],!0),i.createElementVNode("span",zz,i.toDisplayString(i.unref(o)),1)])]))}}),[["__scopeId","data-v-9f56969d"]])),bE=Mt($t(i.defineComponent({name:"zh-tool-tips",__name:"ToolTips",props:{placement:{default:"top"},content:{}},setup(t){const e=t;return(n,r)=>(i.openBlock(),i.createBlock(i.unref(sr),{class:"box-item",effect:"dark",content:e.content,placement:e.placement},{default:i.withCtx(()=>[i.renderSlot(n.$slots,"default",{},()=>[r[0]||(r[0]=i.createElementVNode("i",{class:"iconfont icon-Frame2"},null,-1))],!0)]),_:3},8,["content","placement"]))}}),[["__scopeId","data-v-e5a0ae09"]])),wE=Mt(i.defineComponent({name:"ZhBaseInfo",__name:"BaseInfo",props:{contentWidth:{default:void 0},labelWidth:{default:"70px"},infoDirection:{default:"horizontal"},cols:{default:4},gap:{default:16}},setup(t){const e=t,n=i.ref(),r=i.ref(),o=i.ref();i.provide("infoLabelWidth",n),i.provide("infoContentWidth",r),i.provide("infoDirection",o);function s(){n.value=e.labelWidth}function a(){r.value=e.contentWidth}function l(){o.value=e.infoDirection}return i.watch(()=>e.contentWidth,()=>a(),{immediate:!0}),i.watch(()=>e.labelWidth,()=>s(),{immediate:!0}),i.watch(()=>e.infoDirection,()=>l(),{immediate:!0}),(c,d)=>(i.openBlock(),i.createBlock(iE,{cols:c.cols,gap:c.gap},{default:i.withCtx(()=>[i.renderSlot(c.$slots,"default")]),_:3},8,["cols","gap"]))}})),Yz={class:"common-card"},Gz={class:"detail-header"},jz={class:"detail-header--left"},Hz={class:"title common-title"},Uz={class:"info-pair--label"},Kz={class:"info-pair--value"},Xz={key:1,class:"detail-header--right"},Zz={class:"info-pair--label"},qz={class:"info-pair--value"},CE=Mt($t(i.defineComponent({name:"ZhDetailHeader",__name:"DetailHeader",props:{title:{},leftInfos:{},rightInfos:{},stateMeta:{},stateDesc:{}},setup(t){const e=i.useSlots(),n=t;return(r,o)=>{var s,a;return i.openBlock(),i.createElementBlock("div",Yz,[i.createElementVNode("div",null,[i.renderSlot(r.$slots,"menu",{},void 0,!0)]),i.createElementVNode("div",Gz,[i.createElementVNode("div",jz,[i.createElementVNode("div",Hz,i.toDisplayString(n.title),1),i.renderSlot(r.$slots,"extra-info",{},void 0,!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.leftInfos,l=>(i.openBlock(),i.createElementBlock("div",{class:"info-pair",key:l.value},[i.createElementVNode("div",Uz,i.toDisplayString(l.label),1),i.createElementVNode("div",Kz,i.toDisplayString(l.value??i.unref(Ut)),1)]))),128))]),i.renderSlot(r.$slots,"default",{},void 0,!0),i.unref(e)["right-infos"]?i.renderSlot(r.$slots,"right-infos",{key:0},void 0,!0):(i.openBlock(),i.createElementBlock("div",Xz,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.rightInfos,l=>(i.openBlock(),i.createElementBlock("div",{class:"info-pair",key:l.value},[i.createElementVNode("div",Zz,i.toDisplayString(l.label),1),i.createElementVNode("div",qz,i.toDisplayString(l.value??i.unref(Ut)),1)]))),128)),r.stateDesc||r.stateMeta?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["state common-title",(s=r.stateMeta)==null?void 0:s.state])},i.toDisplayString(r.stateDesc||((a=r.stateMeta)==null?void 0:a.intro)),3)):i.createCommentVNode("",!0)]))])])}}}),[["__scopeId","data-v-8b185816"]]));var Ci=(t=>(t.AUTOCOMPLETE="autocomplete",t.FORMAT="format",t.TEXT="text",t.INDEX="index",t))(Ci||{});const Jz={key:0},Qz={key:1,class:"col-edit-header"},e9=["onClick"],t9={key:0},n9={class:"header-operation-container"},r9={class:"operation-container"},i9=["onClick"],EE="$ZH_DIV$",SE=Mt($t(i.defineComponent({name:"zh-diy-data-table",__name:"DiyDataTable",props:i.mergeModels({isEdit:{type:Boolean,default:!1},maxRowLength:{default:50},maxColLength:{default:10},defaultMinWidth:{default:120},beforeAddRow:{},addRowText:{default:"增行"},addColumnText:{default:"增列"},customAddRow:{type:Boolean,default:!0},customAddColumn:{type:Boolean,default:!0},operationOption:{},canOnlyEditNewlyColumnHeader:{type:Boolean,default:!1}},{rawData:{required:!0},rawDataModifiers:{}}),emits:["update:rawData"],setup(t,{expose:e}){const n=t,r=i.useModel(t,"rawData"),o=i.ref([]),s=i.ref({isShow:!0,width:150,customAddRow:!0,addRowText:"增行",customAddColumn:!0,addColumnText:"增列"}),a=i.computed(()=>n.operationOption?{...s.value,...n.operationOption||{}}:{...s.value,customAddRow:n.customAddRow!==void 0?n.customAddRow:s.value.customAddRow,addRowText:n.addRowText!==void 0?n.addRowText:s.value.addRowText,customAddColumn:n.customAddColumn!==void 0?n.customAddColumn:s.value.customAddColumn,addColumnText:n.addColumnText!==void 0?n.addColumnText:s.value.addColumnText}),l=()=>{if(r.value.length===n.maxRowLength){nu({message:`最多添加${n.maxRowLength}行`,type:"warning"});return}let b={};n.beforeAddRow&&(b=n.beforeAddRow(r.value)),r.value.push(b)},c=()=>{if(o.value.filter(w=>w.isAdd).length>=n.maxColLength){nu({message:`最多添加${n.maxColLength}列`,type:"warning"});return}const E=String(Date.now());o.value.push({prop:E,label:"",isEditHeader:!0,isAdd:!0,maxlength:15,minWidth:150,headerMaxlength:15,isNewlyColumn:!0})},d=(b,E)=>{o.value.splice(b,1),r.value.forEach(w=>{delete w[E.prop]})},u=b=>{b===0&&o.value.forEach(E=>{E.isSameData&&(r.value[1][E.prop]=r.value[0][E.prop])}),r.value.splice(b,1)},f=(b,E,w)=>{E(w.completeList.filter(_=>_.includes(b)).map(_=>({value:_})))},h=b=>[{validator:(E,w,_)=>{if(!o.value[b].label){_(new Error("请输入表头"));return}_()},message:"请输入表头",trigger:["blur","change"]}],g=(b,E,w)=>{const _=[];return b.required&&_.push({required:!0,message:b.requiredMessage||b.label+"不能为空",trigger:b.slot?void 0:"blur"}),b.varidate&&_.push({validator:(C,S,k)=>{const v=b.varidate(S,E,w);v!==!0?k(new Error(v)):k()}}),_},p=(b,E)=>{let w=b;return E.isSameData&&(w=r.value[0]||Ut),E.formatter?E.showFormatter?E.type===Ci.FORMAT?E.showFormatter(E.formatter(w)):E.showFormatter(w[E.prop]):E.formatter(w[E.prop]):w[E.prop]||Ut},y=i.ref(),m=i.ref({width:132,type:Ci.INDEX,prop:"index",label:"序号",fixed:"left",isShow:!0});return e({initData:(b,E)=>{const w=(E||[]).find(_=>_.type===Ci.INDEX)||null;w&&(m.value={...w,isShow:w.isShow!==!1}),b=Mn(b)||[],b.length===0&&b.push({}),E=[...E.filter(_=>_.type!==Ci.INDEX)],console.log("initData",b,E);for(const _ in b[0])if(!E.some(C=>C.prop===_)){const C=Date.now()+_,S=_.split(EE);if(S.length!==2){console.log("keySplit 失败",_);continue}const k=Number(S[1]);E[k]={prop:_,isEditHeader:!0,label:S[0],key:C,isAdd:!0,maxlength:15,headerMaxlength:15,isNewlyColumn:!1}}r.value=b,o.value=E.filter(_=>_)},getData:async()=>{await y.value.validate();for(const E in o.value){const w=o.value[E];for(const _ of o.value)if(w.prop!==_.prop&&w.label===_.label){nu({message:"所有列的表头不可重复",type:"warning"});return}}const b=Mn(r.value);for(const E in b){const w=b[E];for(const _ in o.value){const C=o.value[_];if(C.isSameData&&E!=="0"&&(w[C.prop]=b[0][C.prop]),C.varidate&&!C.varidate(w[C.prop],w,E))return;if(C.isAdd){const S=w[C.prop];delete w[C.prop];const k=C.label+EE+_;w[k]=S}C.formatter&&C.type===Ci.FORMAT&&(w[C.prop]=C.formatter(w))}}return{data:b,columns:o.value}},updateColumn:(b,E)=>{const w=o.value[b].prop;if(o.value[b]=E,w!==E.prop)for(const _ of r.value)_[E.prop]=_[w],delete _[w]},resetColumns:b=>{const w=o.value.filter(C=>!C.isAdd).reduce((C,S)=>(b.some(k=>k.prop===S.prop)||C.push(S.prop),C),[]);r.value.forEach(C=>{w.forEach(S=>{delete C[S]})});const _=b.filter(C=>C.isAdd);o.value=[...b,..._]},onAddRow:l,onAddColumn:c,formRef:y,getColumns:()=>o.value}),(b,E)=>(i.openBlock(),i.createBlock(i.unref(Wb),{class:"diy-data-table",model:t.rawData,ref_key:"formRef",ref:y},{default:i.withCtx(()=>[i.createVNode(i.unref(Jp),i.mergeProps({data:r.value},b.$attrs),{default:i.withCtx(()=>[m.value.isShow?(i.openBlock(),i.createBlock(i.unref(Io),{key:0,type:m.value.type,label:m.value.label,width:m.value.width,minWidth:m.value.minWidth,fixed:m.value.fixed},null,8,["type","label","width","minWidth","fixed"])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.value,(w,_)=>(i.openBlock(),i.createBlock(i.unref(Io),{key:w.key||_,prop:w.prop,label:w.label,width:w.width,"min-width":w.minWidth||b.defaultMinWidth,fixed:w.fixed},{header:i.withCtx(()=>[b.isEdit?w.isEditHeader&&b.canOnlyEditNewlyColumnHeader&&w.isNewlyColumn||w.isEditHeader&&!b.canOnlyEditNewlyColumnHeader?(i.openBlock(),i.createElementBlock("div",Qz,[i.createVNode(i.unref(qh),{prop:`columns.${_}`,rules:h(_)},{default:i.withCtx(()=>[i.createVNode(i.unref(Pn),{modelValue:w.label,"onUpdate:modelValue":C=>w.label=C,maxlength:w.headerMaxlength||20,placeholder:"请输入表头"},null,8,["modelValue","onUpdate:modelValue","maxlength"])]),_:2},1032,["prop","rules"]),w.isAdd?(i.openBlock(),i.createElementBlock("i",{key:0,class:"iconfont icon-close",onClick:C=>d(_,w)},null,8,e9)):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass({"is-required-label":w.required})},i.toDisplayString(w.label),3)):(i.openBlock(),i.createElementBlock("div",Jz,i.toDisplayString(w.label),1))]),default:i.withCtx(C=>[n.isEdit&&(!w.isSameData||C.$index===0)&&w.type!==i.unref(Ci).TEXT&&!C.row.disabled?(i.openBlock(),i.createBlock(i.unref(qh),{key:0,prop:`${C.$index}.${w.prop}`,rules:g(w,C.row,C.$index),class:i.normalizeClass(["col-edit-container",{"close-padding":w.isAdd}])},{default:i.withCtx(()=>[w.type===i.unref(Ci).FORMAT&&w.formatter?(i.openBlock(),i.createElementBlock("div",t9,i.toDisplayString(w.showFormatter?w.showFormatter(w.formatter(C.row)):w.formatter(C.row)),1)):w.type===i.unref(Ci).AUTOCOMPLETE?(i.openBlock(),i.createBlock(i.unref(SL),{key:1,modelValue:C.row[w.prop],"onUpdate:modelValue":S=>C.row[w.prop]=S,placeholder:w.placeholder||"请输入","fetch-suggestions":(S,k)=>f(S,k,w),maxlength:w.maxlength||20},null,8,["modelValue","onUpdate:modelValue","placeholder","fetch-suggestions","maxlength"])):w.slot?i.renderSlot(b.$slots,w.slot,{key:2,row:C.row,$index:C.$index},void 0,!0):(i.openBlock(),i.createBlock(i.unref(Pn),{key:3,modelValue:C.row[w.prop],"onUpdate:modelValue":S=>C.row[w.prop]=S,placeholder:w.placeholder||"请输入",formatter:w.formatter,parser:w.parser,maxlength:w.maxlength||20,"show-word-limit":w.showWordLimit},null,8,["modelValue","onUpdate:modelValue","placeholder","formatter","parser","maxlength","show-word-limit"]))]),_:2},1032,["prop","rules","class"])):w.slot?i.renderSlot(b.$slots,w.slot,{key:1,row:C.row,$index:C.$index},void 0,!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createTextVNode(i.toDisplayString(p(C.row,w)),1)],64))]),_:2},1032,["prop","label","width","min-width","fixed"]))),128)),n.isEdit&&a.value.isShow?(i.openBlock(),i.createBlock(i.unref(Io),{key:1,width:a.value.width,fixed:"right"},{header:i.withCtx(()=>[i.createElementVNode("div",n9,[a.value.customAddRow?(i.openBlock(),i.createBlock(i.unref(lr),{key:0,type:"primary",link:"",onClick:l},{default:i.withCtx(()=>[E[0]||(E[0]=i.createElementVNode("i",{class:"iconfont icon-Frame1"},null,-1)),i.createTextVNode(i.toDisplayString(a.value.addRowText),1)]),_:1})):i.createCommentVNode("",!0),a.value.customAddColumn?(i.openBlock(),i.createBlock(i.unref(lr),{key:1,type:"primary",link:"",onClick:c},{default:i.withCtx(()=>[E[1]||(E[1]=i.createElementVNode("i",{class:"iconfont icon-Frame-11"},null,-1)),i.createTextVNode(i.toDisplayString(a.value.addColumnText),1)]),_:1})):i.createCommentVNode("",!0)])]),default:i.withCtx(({$index:w,row:_})=>[i.createElementVNode("div",r9,[b.$slots.operation?i.renderSlot(b.$slots,"operation",{key:0,row:r.value[w],$index:w},void 0,!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[r.value.length>1&&!_.disabled?(i.openBlock(),i.createElementBlock("i",{key:0,class:"iconfont icon-close",onClick:C=>u(w)},null,8,i9)):i.createCommentVNode("",!0)],64))])]),_:3},8,["width"])):i.createCommentVNode("",!0)]),_:3},16,["data"])]),_:3},8,["model"]))}}),[["__scopeId","data-v-de69ead8"]])),xu="ol-hidden",o9="ol-selectable",ic="ol-unselectable",Fm="ol-control",kE="ol-collapsed",s9=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))",`?\\s*([-,\\"\\'\\sa-z0-9]+?)\\s*$`].join(""),"i"),vE=["style","variant","weight","size","lineHeight","family"],xE=function(t){const e=t.match(s9);if(!e)return null;const n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let r=0,o=vE.length;r<o;++r){const s=e[r+1];s!==void 0&&(n[vE[r]]=s)}return n.families=n.family.split(/,\s?/),n};function TE(...t){console.warn(...t)}const un={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function Bm(t){const e=Tr();for(let n=0,r=t.length;n<r;++n)sc(e,t[n]);return e}function a9(t,e,n){const r=Math.min.apply(null,t),o=Math.min.apply(null,e),s=Math.max.apply(null,t),a=Math.max.apply(null,e);return Ei(r,o,s,a,n)}function Tu(t,e,n){return n?(n[0]=t[0]-e,n[1]=t[1]-e,n[2]=t[2]+e,n[3]=t[3]+e,n):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function ME(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function Cs(t,e,n){let r,o;return e<t[0]?r=t[0]-e:t[2]<e?r=e-t[2]:r=0,n<t[1]?o=t[1]-n:t[3]<n?o=n-t[3]:o=0,r*r+o*o}function Es(t,e){return Vm(t,e[0],e[1])}function Ss(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function Vm(t,e,n){return t[0]<=e&&e<=t[2]&&t[1]<=n&&n<=t[3]}function $m(t,e){const n=t[0],r=t[1],o=t[2],s=t[3],a=e[0],l=e[1];let c=un.UNKNOWN;return a<n?c=c|un.LEFT:a>o&&(c=c|un.RIGHT),l<r?c=c|un.BELOW:l>s&&(c=c|un.ABOVE),c===un.UNKNOWN&&(c=un.INTERSECTING),c}function Tr(){return[1/0,1/0,-1/0,-1/0]}function Ei(t,e,n,r,o){return o?(o[0]=t,o[1]=e,o[2]=n,o[3]=r,o):[t,e,n,r]}function Ea(t){return Ei(1/0,1/0,-1/0,-1/0,t)}function RE(t,e){const n=t[0],r=t[1];return Ei(n,r,n,r,e)}function zm(t,e,n,r,o){const s=Ea(o);return PE(s,t,e,n,r)}function oc(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function DE(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function sc(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function PE(t,e,n,r,o){for(;n<r;n+=o)l9(t,e[n],e[n+1]);return t}function l9(t,e,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],n)}function Wm(t,e){let n;return n=e(Mu(t)),n||(n=e(Ru(t)),n)||(n=e(Du(t)),n)||(n=e(ks(t)),n)?n:!1}function Ym(t){let e=0;return vs(t)||(e=mt(t)*fn(t)),e}function Mu(t){return[t[0],t[1]]}function Ru(t){return[t[2],t[1]]}function Qi(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function c9(t,e){let n;if(e==="bottom-left")n=Mu(t);else if(e==="bottom-right")n=Ru(t);else if(e==="top-left")n=ks(t);else if(e==="top-right")n=Du(t);else throw new Error("Invalid corner");return n}function Gm(t,e,n,r,o){const[s,a,l,c,d,u,f,h]=IE(t,e,n,r);return Ei(Math.min(s,l,d,f),Math.min(a,c,u,h),Math.max(s,l,d,f),Math.max(a,c,u,h),o)}function IE(t,e,n,r){const o=e*r[0]/2,s=e*r[1]/2,a=Math.cos(n),l=Math.sin(n),c=o*a,d=o*l,u=s*a,f=s*l,h=t[0],g=t[1];return[h-c+f,g-d-u,h-c-f,g-d+u,h+c-f,g+d+u,h+c+f,g+d-u,h-c+f,g-d-u]}function fn(t){return t[3]-t[1]}function Fo(t,e,n){const r=n||Tr();return Sn(t,e)?(t[0]>e[0]?r[0]=t[0]:r[0]=e[0],t[1]>e[1]?r[1]=t[1]:r[1]=e[1],t[2]<e[2]?r[2]=t[2]:r[2]=e[2],t[3]<e[3]?r[3]=t[3]:r[3]=e[3]):Ea(r),r}function ks(t){return[t[0],t[3]]}function Du(t){return[t[2],t[3]]}function mt(t){return t[2]-t[0]}function Sn(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function vs(t){return t[2]<t[0]||t[3]<t[1]}function d9(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function u9(t,e){const n=(t[2]-t[0])/2*(e-1),r=(t[3]-t[1])/2*(e-1);t[0]-=n,t[2]+=n,t[1]-=r,t[3]+=r}function f9(t,e,n){let r=!1;const o=$m(t,e),s=$m(t,n);if(o===un.INTERSECTING||s===un.INTERSECTING)r=!0;else{const a=t[0],l=t[1],c=t[2],d=t[3],u=e[0],f=e[1],h=n[0],g=n[1],p=(g-f)/(h-u);let y,m;s&un.ABOVE&&!(o&un.ABOVE)&&(y=h-(g-d)/p,r=y>=a&&y<=c),!r&&s&un.RIGHT&&!(o&un.RIGHT)&&(m=g-(h-c)*p,r=m>=l&&m<=d),!r&&s&un.BELOW&&!(o&un.BELOW)&&(y=h-(g-l)/p,r=y>=a&&y<=c),!r&&s&un.LEFT&&!(o&un.LEFT)&&(m=g-(h-a)*p,r=m>=l&&m<=d)}return r}function h9(t,e,n,r){if(vs(t))return Ea(n);let o=[];o=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]],e(o,o,2);const s=[],a=[];for(let l=0,c=o.length;l<c;l+=2)s.push(o[l]),a.push(o[l+1]);return a9(s,a,n)}function NE(t,e){const n=e.getExtent(),r=Qi(t);if(e.canWrapX()&&(r[0]<n[0]||r[0]>=n[2])){const o=mt(n),a=Math.floor((r[0]-n[0])/o)*o;t[0]-=a,t[2]-=a}return t}function OE(t,e,n){if(e.canWrapX()){const r=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[r[0],t[1],r[2],t[3]]];NE(t,e);const o=mt(r);if(mt(t)>o&&!n)return[[r[0],t[1],r[2],t[3]]];if(t[0]<r[0])return[[t[0]+o,t[1],r[2],t[3]],[r[0],t[1],t[2],t[3]]];if(t[2]>r[2])return[[t[0],t[1],r[2],t[3]],[r[0],t[1],t[2]-o,t[3]]]}return[t]}function Ot(t,e,n){return Math.min(Math.max(t,e),n)}function p9(t,e,n,r,o,s){const a=o-n,l=s-r;if(a!==0||l!==0){const c=((t-n)*a+(e-r)*l)/(a*a+l*l);c>1?(n=o,r=s):c>0&&(n+=a*c,r+=l*c)}return eo(t,e,n,r)}function eo(t,e,n,r){const o=n-t,s=r-e;return o*o+s*s}function m9(t){const e=t.length;for(let r=0;r<e;r++){let o=r,s=Math.abs(t[r][r]);for(let l=r+1;l<e;l++){const c=Math.abs(t[l][r]);c>s&&(s=c,o=l)}if(s===0)return null;const a=t[o];t[o]=t[r],t[r]=a;for(let l=r+1;l<e;l++){const c=-t[l][r]/t[r][r];for(let d=r;d<e+1;d++)r==d?t[l][d]=0:t[l][d]+=c*t[r][d]}}const n=new Array(e);for(let r=e-1;r>=0;r--){n[r]=t[r][e]/t[r][r];for(let o=r-1;o>=0;o--)t[o][e]-=t[o][r]*n[r]}return n}function LE(t){return t*180/Math.PI}function ei(t){return t*Math.PI/180}function xs(t,e){const n=t%e;return n*e<0?n+e:n}function dr(t,e,n){return t+n*(e-t)}function ac(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}function Pu(t,e){return Math.floor(ac(t,e))}function Iu(t,e){return Math.ceil(ac(t,e))}function jm(t,e,n){if(t>=e&&t<n)return t;const r=n-e;return((t-e)%r+r)%r+e}function g9(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function Nu(t,e){let n=!0;for(let r=t.length-1;r>=0;--r)if(t[r]!=e[r]){n=!1;break}return n}function Hm(t,e){const n=Math.cos(e),r=Math.sin(e),o=t[0]*n-t[1]*r,s=t[1]*n+t[0]*r;return t[0]=o,t[1]=s,t}function y9(t,e){return t[0]*=e,t[1]*=e,t}function AE(t,e){const n=t[0]-e[0],r=t[1]-e[1];return n*n+r*r}function FE(t,e){return Math.sqrt(AE(t,e))}function BE(t,e){if(e.canWrapX()){const n=mt(e.getExtent()),r=_9(t,e,n);r&&(t[0]-=r*n)}return t}function _9(t,e,n){const r=e.getExtent();let o=0;return e.canWrapX()&&(t[0]<r[0]||t[0]>r[2])&&(n=n||mt(r),o=Math.floor((t[0]-r[0])/n)),o}const Sa={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};class Um{constructor(e){this.code_=e.code,this.units_=e.units,this.extent_=e.extent!==void 0?e.extent:null,this.worldExtent_=e.worldExtent!==void 0?e.worldExtent:null,this.axisOrientation_=e.axisOrientation!==void 0?e.axisOrientation:"enu",this.global_=e.global!==void 0?e.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||Sa[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(e){this.global_=e,this.canWrapX_=!!(e&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(e){this.defaultTileGrid_=e}setExtent(e){this.extent_=e,this.canWrapX_=!!(this.global_&&e)}setWorldExtent(e){this.worldExtent_=e}setGetPointResolution(e){this.getPointResolutionFunc_=e}getPointResolutionFunc(){return this.getPointResolutionFunc_}}const lc=6378137,ka=Math.PI*lc,b9=[-ka,-ka,ka,ka],w9=[-180,-85,180,85],Ou=lc*Math.log(Math.tan(Math.PI/2));class va extends Um{constructor(e){super({code:e,units:"m",extent:b9,global:!0,worldExtent:w9,getPointResolution:function(n,r){return n/Math.cosh(r[1]/lc)}})}}const VE=[new va("EPSG:3857"),new va("EPSG:102100"),new va("EPSG:102113"),new va("EPSG:900913"),new va("http://www.opengis.net/def/crs/EPSG/0/3857"),new va("http://www.opengis.net/gml/srs/epsg.xml#3857")];function C9(t,e,n,r){const o=t.length;n=n>1?n:2,r=r??n,e===void 0&&(n>2?e=t.slice():e=new Array(o));for(let s=0;s<o;s+=r){e[s]=ka*t[s]/180;let a=lc*Math.log(Math.tan(Math.PI*(+t[s+1]+90)/360));a>Ou?a=Ou:a<-Ou&&(a=-Ou),e[s+1]=a}return e}function E9(t,e,n,r){const o=t.length;n=n>1?n:2,r=r??n,e===void 0&&(n>2?e=t.slice():e=new Array(o));for(let s=0;s<o;s+=r)e[s]=180*t[s]/ka,e[s+1]=360*Math.atan(Math.exp(t[s+1]/lc))/Math.PI-90;return e}const S9=6378137,$E=[-180,-90,180,90],k9=Math.PI*S9/180;class Ts extends Um{constructor(e,n){super({code:e,units:"degrees",extent:$E,axisOrientation:n,global:!0,metersPerUnit:k9,worldExtent:$E})}}const zE=[new Ts("CRS:84"),new Ts("EPSG:4326","neu"),new Ts("urn:ogc:def:crs:OGC:1.3:CRS84"),new Ts("urn:ogc:def:crs:OGC:2:84"),new Ts("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new Ts("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new Ts("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];let Km={};function v9(t){return Km[t]||Km[t.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null}function x9(t,e){Km[t]=e}function cc(t){for(const e in t)delete t[e]}function xa(t){let e;for(e in t)return!1;return!e}let Ta={};function dc(t,e,n){const r=t.getCode(),o=e.getCode();r in Ta||(Ta[r]={}),Ta[r][o]=n}function Xm(t,e){return t in Ta&&e in Ta[t]?Ta[t][e]:null}const Lu=.9996,Mr=.00669438,Au=Mr*Mr,Fu=Au*Mr,Ms=Mr/(1-Mr),WE=Math.sqrt(1-Mr),Ma=(1-WE)/(1+WE),YE=Ma*Ma,Zm=YE*Ma,qm=Zm*Ma,GE=qm*Ma,jE=1-Mr/4-3*Au/64-5*Fu/256,T9=3*Mr/8+3*Au/32+45*Fu/1024,M9=15*Au/256+45*Fu/1024,R9=35*Fu/3072,D9=3/2*Ma-27/32*Zm+269/512*GE,P9=21/16*YE-55/32*qm,I9=151/96*Zm-417/128*GE,N9=1097/512*qm,Bu=6378137;function O9(t,e,n){const r=t-5e5,a=(n.north?e:e-1e7)/Lu/(Bu*jE),l=a+D9*Math.sin(2*a)+P9*Math.sin(4*a)+I9*Math.sin(6*a)+N9*Math.sin(8*a),c=Math.sin(l),d=c*c,u=Math.cos(l),f=c/u,h=f*f,g=h*h,p=1-Mr*d,y=Math.sqrt(1-Mr*d),m=Bu/y,b=(1-Mr)/p,E=Ms*u**2,w=E*E,_=r/(m*Lu),C=_*_,S=C*_,k=S*_,v=k*_,x=v*_,M=l-f/b*(C/2-k/24*(5+3*h+10*E-4*w-9*Ms))+x/720*(61+90*h+298*E+45*g-252*Ms-3*w);let I=(_-S/6*(1+2*h+E)+v/120*(5-2*E+28*h-3*w+8*Ms+24*g))/u;return I=jm(I+ei(KE(n.number)),-Math.PI,Math.PI),[LE(I),LE(M)]}const HE=-80,UE=84,L9=-180,A9=180;function F9(t,e,n){t=jm(t,L9,A9),e<HE?e=HE:e>UE&&(e=UE);const r=ei(e),o=Math.sin(r),s=Math.cos(r),a=o/s,l=a*a,c=l*l,d=ei(t),u=KE(n.number),f=ei(u),h=Bu/Math.sqrt(1-Mr*o**2),g=Ms*s**2,p=s*jm(d-f,-Math.PI,Math.PI),y=p*p,m=y*p,b=m*p,E=b*p,w=E*p,_=Bu*(jE*r-T9*Math.sin(2*r)+M9*Math.sin(4*r)-R9*Math.sin(6*r)),C=Lu*h*(p+m/6*(1-l+g)+E/120*(5-18*l+c+72*g-58*Ms))+5e5;let S=Lu*(_+h*a*(y/2+b/24*(5-l+9*g+4*g**2)+w/720*(61-58*l+c+600*g-330*Ms)));return n.north||(S+=1e7),[C,S]}function KE(t){return(t-1)*6-180+3}const B9=[/^EPSG:(\d+)$/,/^urn:ogc:def:crs:EPSG::(\d+)$/,/^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/];function XE(t){let e=0;for(const o of B9){const s=t.match(o);if(s){e=parseInt(s[1]);break}}if(!e)return null;let n=0,r=!1;return e>32700&&e<32761?n=e-32700:e>32600&&e<32661&&(r=!0,n=e-32600),n?{number:n,north:r}:null}function ZE(t,e){return function(n,r,o,s){const a=n.length;o=o>1?o:2,s=s??o,r||(o>2?r=n.slice():r=new Array(a));for(let l=0;l<a;l+=s){const c=n[l],d=n[l+1],u=t(c,d,e);r[l]=u[0],r[l+1]=u[1]}return r}}function V9(t){return XE(t)?new Um({code:t,units:"m"}):null}function $9(t){const e=XE(t.getCode());return e?{forward:ZE(F9,e),inverse:ZE(O9,e)}:null}const Jm=63710088e-1;function Qm(t,e,n){n=n||Jm;const r=ei(t[1]),o=ei(e[1]),s=(o-r)/2,a=ei(e[0]-t[0])/2,l=Math.sin(s)*Math.sin(s)+Math.sin(a)*Math.sin(a)*Math.cos(r)*Math.cos(o);return 2*n*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}function eg(t,e){let n=0;for(let r=0,o=t.length;r<o-1;++r)n+=Qm(t[r],t[r+1],e);return n}function Vu(t,e){e=e||{};const n=e.radius||Jm,r=e.projection||"EPSG:3857",o=t.getType();o!=="GeometryCollection"&&(t=t.clone().transform(r,"EPSG:4326"));let s=0,a,l,c,d,u,f;switch(o){case"Point":case"MultiPoint":break;case"LineString":case"LinearRing":{a=t.getCoordinates(),s=eg(a,n);break}case"MultiLineString":case"Polygon":{for(a=t.getCoordinates(),c=0,d=a.length;c<d;++c)s+=eg(a[c],n);break}case"MultiPolygon":{for(a=t.getCoordinates(),c=0,d=a.length;c<d;++c)for(l=a[c],u=0,f=l.length;u<f;++u)s+=eg(l[u],n);break}case"GeometryCollection":{const h=t.getGeometries();for(c=0,d=h.length;c<d;++c)s+=Vu(h[c],e);break}default:throw new Error("Unsupported geometry type: "+o)}return s}function $u(t,e){let n=0;const r=t.length;let o=t[r-1][0],s=t[r-1][1];for(let a=0;a<r;a++){const l=t[a][0],c=t[a][1];n+=ei(l-o)*(2+Math.sin(ei(s))+Math.sin(ei(c))),o=l,s=c}return n*e*e/2}function qE(t,e){e=e||{};const n=e.radius||Jm,r=e.projection||"EPSG:3857",o=t.getType();o!=="GeometryCollection"&&(t=t.clone().transform(r,"EPSG:4326"));let s=0,a,l,c,d,u,f;switch(o){case"Point":case"MultiPoint":case"LineString":case"MultiLineString":case"LinearRing":break;case"Polygon":{for(a=t.getCoordinates(),s=Math.abs($u(a[0],n)),c=1,d=a.length;c<d;++c)s-=Math.abs($u(a[c],n));break}case"MultiPolygon":{for(a=t.getCoordinates(),c=0,d=a.length;c<d;++c)for(l=a[c],s+=Math.abs($u(l[0],n)),u=1,f=l.length;u<f;++u)s-=Math.abs($u(l[u],n));break}case"GeometryCollection":{const h=t.getGeometries();for(c=0,d=h.length;c<d;++c)s+=qE(h[c],e);break}default:throw new Error("Unsupported geometry type: "+o)}return s}const z9=[$9],W9=[V9];let tg=!0;function JE(t){tg=!1}function ng(t,e){if(e!==void 0){for(let n=0,r=t.length;n<r;++n)e[n]=t[n];e=e}else e=t.slice();return e}function rg(t){x9(t.getCode(),t),dc(t,t,ng)}function Y9(t){t.forEach(rg)}function nn(t){if(typeof t!="string")return t;const e=v9(t);if(e)return e;for(const n of W9){const r=n(t);if(r)return r}return null}function zu(t,e,n,r){t=nn(t);let o;const s=t.getPointResolutionFunc();if(s){if(o=s(e,n),r&&r!==t.getUnits()){const a=t.getMetersPerUnit();a&&(o=o*a/Sa[r])}}else{const a=t.getUnits();if(a=="degrees"&&!r||r=="degrees")o=e;else{const l=og(t,nn("EPSG:4326"));if(!l&&a!=="degrees")o=e*t.getMetersPerUnit();else{let d=[n[0]-e/2,n[1],n[0]+e/2,n[1],n[0],n[1]-e/2,n[0],n[1]+e/2];d=l(d,d,2);const u=Qm(d.slice(0,2),d.slice(2,4)),f=Qm(d.slice(4,6),d.slice(6,8));o=(u+f)/2}const c=r?Sa[r]:t.getMetersPerUnit();c!==void 0&&(o/=c)}}return o}function QE(t){Y9(t),t.forEach(function(e){t.forEach(function(n){e!==n&&dc(e,n,ng)})})}function G9(t,e,n,r){t.forEach(function(o){e.forEach(function(s){dc(o,s,n),dc(s,o,r)})})}function ig(t,e){return t?typeof t=="string"?nn(t):t:nn(e)}function j9(t){return function(e,n,r,o){const s=e.length;r=r!==void 0?r:2,o=o??r,n=n!==void 0?n:new Array(s);for(let a=0;a<s;a+=o){const l=t(e.slice(a,a+r)),c=l.length;for(let d=0,u=o;d<u;++d)n[a+d]=d>=c?e[a+d]:l[d]}return n}}function Rr(t,e){return JE(),to(t,"EPSG:4326","EPSG:3857")}function H9(t,e){const n=to(t,"EPSG:3857","EPSG:4326"),r=n[0];return(r<-180||r>180)&&(n[0]=xs(r+180,360)-180),n}function Wu(t,e){if(t===e)return!0;const n=t.getUnits()===e.getUnits();return(t.getCode()===e.getCode()||og(t,e)===ng)&&n}function og(t,e){const n=t.getCode(),r=e.getCode();let o=Xm(n,r);if(o)return o;let s=null,a=null;for(const c of z9)s||(s=c(t)),a||(a=c(e));if(!s&&!a)return null;const l="EPSG:4326";if(a)if(s)o=sg(s.inverse,a.forward);else{const c=Xm(n,l);c&&(o=sg(c,a.forward))}else{const c=Xm(l,r);c&&(o=sg(s.inverse,c))}return o&&(rg(t),rg(e),dc(t,e,o)),o}function sg(t,e){return function(n,r,o,s){return r=t(n,r,o,s),e(r,r,o,s)}}function Ra(t,e){const n=nn(t),r=nn(e);return og(n,r)}function to(t,e,n){const r=Ra(e,n);if(!r){const o=nn(e).getCode(),s=nn(n).getCode();throw new Error(`No transform available between ${o} and ${s}`)}return r(t,void 0,t.length)}function U9(t,e,n,r){const o=Ra(e,n);return h9(t,o,void 0)}function ag(t,e){return t}function ti(t,e){return tg&&!Nu(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(tg=!1,TE("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t}function eS(t,e){return t}function Si(t,e){return t}function K9(){QE(VE),QE(zE),G9(zE,VE,C9,E9)}K9();const no={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"},Da={PROPERTYCHANGE:"propertychange"},Ge={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};class Yu{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}function X9(t,e,n){let r,o;n=n||ro;let s=0,a=t.length,l=!1;for(;s<a;)r=s+(a-s>>1),o=+n(t[r],e),o<0?s=r+1:(a=r,l=!o);return l?s:~s}function ro(t,e){return t>e?1:t<e?-1:0}function Z9(t,e){return t<e?1:t>e?-1:0}function lg(t,e,n){if(t[0]<=e)return 0;const r=t.length;if(e<=t[r-1])return r-1;if(typeof n=="function"){for(let o=1;o<r;++o){const s=t[o];if(s===e)return o;if(s<e)return n(e,t[o-1],s)>0?o-1:o}return r-1}if(n>0){for(let o=1;o<r;++o)if(t[o]<e)return o-1;return r-1}if(n<0){for(let o=1;o<r;++o)if(t[o]<=e)return o;return r-1}for(let o=1;o<r;++o){if(t[o]==e)return o;if(t[o]<e)return t[o-1]-e<e-t[o]?o-1:o}return r-1}function q9(t,e,n){for(;e<n;){const r=t[e];t[e]=t[n],t[n]=r,++e,--n}}function ki(t,e){const n=Array.isArray(e)?e:[e],r=n.length;for(let o=0;o<r;o++)t[t.length]=n[o]}function Bo(t,e){const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function J9(t,e,n){const r=e||ro;return t.every(function(o,s){if(s===0)return!0;const a=r(t[s-1],o);return!(a>0||a===0)})}function Pa(){return!0}function Ia(){return!1}function uc(){}function tS(t){let e,n,r;return function(){const o=Array.prototype.slice.call(arguments);return(!n||this!==r||!Bo(o,n))&&(r=this,n=o,e=t.apply(this,arguments)),e}}function nS(t){function e(){let n;try{n=t()}catch(r){return Promise.reject(r)}return n instanceof Promise?n:Promise.resolve(n)}return e()}class vi{constructor(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}class fc extends Yu{constructor(e){super(),this.eventTarget_=e,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(e,n){if(!e||!n)return;const r=this.listeners_||(this.listeners_={}),o=r[e]||(r[e]=[]);o.includes(n)||o.push(n)}dispatchEvent(e){const n=typeof e=="string",r=n?e:e.type,o=this.listeners_&&this.listeners_[r];if(!o)return;const s=n?new vi(e):e;s.target||(s.target=this.eventTarget_||this);const a=this.dispatching_||(this.dispatching_={}),l=this.pendingRemovals_||(this.pendingRemovals_={});r in a||(a[r]=0,l[r]=0),++a[r];let c;for(let d=0,u=o.length;d<u;++d)if("handleEvent"in o[d]?c=o[d].handleEvent(s):c=o[d].call(this,s),c===!1||s.propagationStopped){c=!1;break}if(--a[r]===0){let d=l[r];for(delete l[r];d--;)this.removeEventListener(r,uc);delete a[r]}return c}disposeInternal(){this.listeners_&&cc(this.listeners_)}getListeners(e){return this.listeners_&&this.listeners_[e]||void 0}hasListener(e){return this.listeners_?e?e in this.listeners_:Object.keys(this.listeners_).length>0:!1}removeEventListener(e,n){if(!this.listeners_)return;const r=this.listeners_[e];if(!r)return;const o=r.indexOf(n);o!==-1&&(this.pendingRemovals_&&e in this.pendingRemovals_?(r[o]=uc,++this.pendingRemovals_[e]):(r.splice(o,1),r.length===0&&delete this.listeners_[e]))}}function lt(t,e,n,r,o){if(o){const a=n;n=function(l){return t.removeEventListener(e,n),a.call(r??this,l)}}else r&&r!==t&&(n=n.bind(r));const s={target:t,type:e,listener:n};return t.addEventListener(e,n),s}function Gu(t,e,n,r){return lt(t,e,n,r,!0)}function xt(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),cc(t))}class hc extends fc{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(Ge.CHANGE)}getRevision(){return this.revision_}onInternal(e,n){if(Array.isArray(e)){const r=e.length,o=new Array(r);for(let s=0;s<r;++s)o[s]=lt(this,e[s],n);return o}return lt(this,e,n)}onceInternal(e,n){let r;if(Array.isArray(e)){const o=e.length;r=new Array(o);for(let s=0;s<o;++s)r[s]=Gu(this,e[s],n)}else r=Gu(this,e,n);return n.ol_key=r,r}unInternal(e,n){const r=n.ol_key;if(r)ju(r);else if(Array.isArray(e))for(let o=0,s=e.length;o<s;++o)this.removeEventListener(e[o],n);else this.removeEventListener(e,n)}}hc.prototype.on,hc.prototype.once,hc.prototype.un;function ju(t){if(Array.isArray(t))for(let e=0,n=t.length;e<n;++e)xt(t[e]);else xt(t)}function je(){throw new Error("Unimplemented abstract method.")}let Q9=0;function dt(t){return t.ol_uid||(t.ol_uid=String(++Q9))}class rS extends vi{constructor(e,n,r){super(e),this.key=n,this.oldValue=r}}class ni extends hc{constructor(e){super(),this.on,this.once,this.un,dt(this),this.values_=null,e!==void 0&&this.setProperties(e)}get(e){let n;return this.values_&&this.values_.hasOwnProperty(e)&&(n=this.values_[e]),n}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}getPropertiesInternal(){return this.values_}hasProperties(){return!!this.values_}notify(e,n){let r;r=`change:${e}`,this.hasListener(r)&&this.dispatchEvent(new rS(r,e,n)),r=Da.PROPERTYCHANGE,this.hasListener(r)&&this.dispatchEvent(new rS(r,e,n))}addChangeListener(e,n){this.addEventListener(`change:${e}`,n)}removeChangeListener(e,n){this.removeEventListener(`change:${e}`,n)}set(e,n,r){const o=this.values_||(this.values_={});if(r)o[e]=n;else{const s=o[e];o[e]=n,s!==n&&this.notify(e,s)}}setProperties(e,n){for(const r in e)this.set(r,e[r],n)}applyProperties(e){e.values_&&Object.assign(this.values_||(this.values_={}),e.values_)}unset(e,n){if(this.values_&&e in this.values_){const r=this.values_[e];delete this.values_[e],xa(this.values_)&&(this.values_=null),n||this.notify(e,r)}}}class Hu extends ni{constructor(e){super();const n=e.element;n&&!e.target&&!n.style.pointerEvents&&(n.style.pointerEvents="auto"),this.element=n||null,this.target_=null,this.map_=null,this.listenerKeys=[],e.render&&(this.render=e.render),e.target&&this.setTarget(e.target)}disposeInternal(){var e;(e=this.element)==null||e.remove(),super.disposeInternal()}getMap(){return this.map_}setMap(e){var n;this.map_&&((n=this.element)==null||n.remove());for(let r=0,o=this.listenerKeys.length;r<o;++r)xt(this.listenerKeys[r]);if(this.listenerKeys.length=0,this.map_=e,e){const r=this.target_??e.getOverlayContainerStopEvent();this.element&&r.appendChild(this.element),this.render!==uc&&this.listenerKeys.push(lt(e,no.POSTRENDER,this.render,this)),e.render()}}render(e){}setTarget(e){this.target_=typeof e=="string"?document.getElementById(e):e}}const cg="units",eW=[1,2,5],pc=25.4/.28;let tW=class extends Hu{constructor(e){e=e||{};const n=document.createElement("div");n.style.pointerEvents="none",super({element:n,render:e.render,target:e.target}),this.on,this.once,this.un;const r=e.className!==void 0?e.className:e.bar?"ol-scale-bar":"ol-scale-line";this.innerElement_=document.createElement("div"),this.innerElement_.className=r+"-inner",this.element.className=r+" "+ic,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=e.minWidth!==void 0?e.minWidth:64,this.maxWidth_=e.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",this.addChangeListener(cg,this.handleUnitsChanged_),this.setUnits(e.units||"metric"),this.scaleBar_=e.bar||!1,this.scaleBarSteps_=e.steps||4,this.scaleBarText_=e.text||!1,this.dpi_=e.dpi||void 0}getUnits(){return this.get(cg)}handleUnitsChanged_(){this.updateElement_()}setUnits(e){this.set(cg,e)}setDpi(e){this.dpi_=e}updateElement_(){const e=this.viewState_;if(!e){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}const n=e.center,r=e.projection,o=this.getUnits(),s=o=="degrees"?"degrees":"m";let a=zu(r,e.resolution,n,s);const l=this.minWidth_*(this.dpi_||pc)/pc,c=this.maxWidth_!==void 0?this.maxWidth_*(this.dpi_||pc)/pc:void 0;let d=l*a,u="";if(o=="degrees"){const w=Sa.degrees;d*=w,d<w/60?(u="″",a*=3600):d<w?(u="′",a*=60):u="°"}else if(o=="imperial")d<.9144?(u="in",a/=.0254):d<1609.344?(u="ft",a/=.3048):(u="mi",a/=1609.344);else if(o=="nautical")a/=1852,u="NM";else if(o=="metric")d<1e-6?(u="nm",a*=1e9):d<.001?(u="μm",a*=1e6):d<1?(u="mm",a*=1e3):d<1e3?u="m":(u="km",a/=1e3);else if(o=="us")d<.9144?(u="in",a*=39.37):d<1609.344?(u="ft",a/=.30480061):(u="mi",a/=1609.3472);else throw new Error("Invalid units");let f=3*Math.floor(Math.log(l*a)/Math.log(10)),h,g,p,y=0,m,b;for(;;){p=Math.floor(f/3);const w=Math.pow(10,p);if(h=eW[(f%3+3)%3]*w,g=Math.round(h/a),isNaN(g)){this.element.style.display="none",this.renderedVisible_=!1;return}if(c!==void 0&&g>=c){h=y,g=m,p=b;break}else if(g>=l)break;y=h,m=g,b=p,++f}const E=this.scaleBar_?this.createScaleBar(g,h,u):h.toFixed(p<0?-p:0)+" "+u;this.renderedHTML_!=E&&(this.innerElement_.innerHTML=E,this.renderedHTML_=E),this.renderedWidth_!=g&&(this.innerElement_.style.width=g+"px",this.renderedWidth_=g),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}createScaleBar(e,n,r){const o=this.getScaleForResolution(),s=o<1?Math.round(1/o).toLocaleString()+" : 1":"1 : "+Math.round(o).toLocaleString(),a=this.scaleBarSteps_,l=e/a,c=[this.createMarker("absolute")];for(let u=0;u<a;++u){const f=u%2===0?"ol-scale-singlebar-odd":"ol-scale-singlebar-even";c.push(`<div><div class="ol-scale-singlebar ${f}" style="width: ${l}px;"></div>`+this.createMarker("relative")+(u%2===0||a===2?this.createStepText(u,e,!1,n,r):"")+"</div>")}return c.push(this.createStepText(a,e,!0,n,r)),(this.scaleBarText_?`<div class="ol-scale-text" style="width: ${e}px;">`+s+"</div>":"")+c.join("")}createMarker(e){return`<div class="ol-scale-step-marker" style="position: ${e}; top: ${e==="absolute"?3:-10}px;"></div>`}createStepText(e,n,r,o,s){const l=(e===0?0:Math.round(o/this.scaleBarSteps_*e*100)/100)+(e===0?"":" "+s),c=e===0?-3:n/this.scaleBarSteps_*-1,d=e===0?0:n/this.scaleBarSteps_*2;return`<div class="ol-scale-step-text" style="margin-left: ${c}px;text-align: ${e===0?"left":"center"};min-width: ${d}px;left: ${r?n+"px":"unset"};">`+l+"</div>"}getScaleForResolution(){const e=zu(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,"m"),n=this.dpi_||pc,r=1e3/25.4;return e*r*n}render(e){const n=e.frameState;n?this.viewState_=n.viewState:this.viewState_=null,this.updateElement_()}};const Hn={ADD:"add",REMOVE:"remove"},iS={LENGTH:"length"};class Uu extends vi{constructor(e,n,r){super(e),this.element=n,this.index=r}}class xi extends ni{constructor(e,n){if(super(),this.on,this.once,this.un,n=n||{},this.unique_=!!n.unique,this.array_=e||[],this.unique_)for(let r=0,o=this.array_.length;r<o;++r)this.assertUnique_(this.array_[r],r);this.updateLength_()}clear(){for(;this.getLength()>0;)this.pop()}extend(e){for(let n=0,r=e.length;n<r;++n)this.push(e[n]);return this}forEach(e){const n=this.array_;for(let r=0,o=n.length;r<o;++r)e(n[r],r,n)}getArray(){return this.array_}item(e){return this.array_[e]}getLength(){return this.get(iS.LENGTH)}insertAt(e,n){if(e<0||e>this.getLength())throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(n),this.array_.splice(e,0,n),this.updateLength_(),this.dispatchEvent(new Uu(Hn.ADD,n,e))}pop(){return this.removeAt(this.getLength()-1)}push(e){this.unique_&&this.assertUnique_(e);const n=this.getLength();return this.insertAt(n,e),this.getLength()}remove(e){const n=this.array_;for(let r=0,o=n.length;r<o;++r)if(n[r]===e)return this.removeAt(r)}removeAt(e){if(e<0||e>=this.getLength())return;const n=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new Uu(Hn.REMOVE,n,e)),n}setAt(e,n){const r=this.getLength();if(e>=r){this.insertAt(e,n);return}if(e<0)throw new Error("Index out of bounds: "+e);this.unique_&&this.assertUnique_(n,e);const o=this.array_[e];this.array_[e]=n,this.dispatchEvent(new Uu(Hn.REMOVE,o,e)),this.dispatchEvent(new Uu(Hn.ADD,n,e))}updateLength_(){this.set(iS.LENGTH,this.array_.length)}assertUnique_(e,n){for(let r=0,o=this.array_.length;r<o;++r)if(this.array_[r]===e&&r!==n)throw new Error("Duplicate item added to a unique collection")}}function bt(t,e){if(!t)throw new Error(e)}class Kt extends ni{constructor(e){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),e)if(typeof e.getSimplifiedGeometry=="function"){const n=e;this.setGeometry(n)}else{const n=e;this.setProperties(n)}}clone(){const e=new Kt(this.hasProperties()?this.getProperties():null);e.setGeometryName(this.getGeometryName());const n=this.getGeometry();n&&e.setGeometry(n.clone());const r=this.getStyle();return r&&e.setStyle(r),e}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&(xt(this.geometryChangeKey_),this.geometryChangeKey_=null);const e=this.getGeometry();e&&(this.geometryChangeKey_=lt(e,Ge.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(e){this.set(this.geometryName_,e)}setStyle(e){this.style_=e,this.styleFunction_=e?nW(e):void 0,this.changed()}setId(e){this.id_=e,this.changed()}setGeometryName(e){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=e,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}function nW(t){if(typeof t=="function")return t;let e;return Array.isArray(t)?e=t:(bt(typeof t.getZIndex=="function","Expected an `ol/style/Style` or an array of `ol/style/Style.js`"),e=[t]),function(){return e}}new Array(6);function Dr(){return[1,0,0,1,0,0]}function rW(t,e){const n=t[0],r=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=e[0],d=e[1],u=e[2],f=e[3],h=e[4],g=e[5];return t[0]=n*c+o*d,t[1]=r*c+s*d,t[2]=n*u+o*f,t[3]=r*u+s*f,t[4]=n*h+o*g+a,t[5]=r*h+s*g+l,t}function iW(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Wt(t,e){const n=e[0],r=e[1];return e[0]=t[0]*n+t[2]*r+t[4],e[1]=t[1]*n+t[3]*r+t[5],e}function ri(t,e,n,r,o,s,a,l){const c=Math.sin(s),d=Math.cos(s);return t[0]=r*d,t[1]=o*c,t[2]=-r*c,t[3]=o*d,t[4]=a*r*d-l*r*c+e,t[5]=a*o*c+l*o*d+n,t}function oS(t,e){const n=oW(e);bt(n!==0,"Transformation matrix cannot be inverted");const r=e[0],o=e[1],s=e[2],a=e[3],l=e[4],c=e[5];return t[0]=a/n,t[1]=-o/n,t[2]=-s/n,t[3]=r/n,t[4]=(s*c-a*l)/n,t[5]=-(r*c-o*l)/n,t}function oW(t){return t[0]*t[3]-t[1]*t[2]}const sW=[1e5,1e5,1e5,1e5,2,2];function aW(t){return"matrix("+t.join(", ")+")"}function sS(t){return t.substring(7,t.length-1).split(",").map(parseFloat)}function lW(t,e){const n=sS(t),r=sS(e);for(let o=0;o<6;++o)if(Math.round((n[o]-r[o])*sW[o])!==0)return!1;return!0}function Vo(t,e,n,r,o,s,a){s=s||[],a=a||2;let l=0;for(let c=e;c<n;c+=r){const d=t[c],u=t[c+1];s[l++]=o[0]*d+o[2]*u+o[4],s[l++]=o[1]*d+o[3]*u+o[5];for(let f=2;f<a;f++)s[l++]=t[c+f]}return s&&s.length!=l&&(s.length=l),s}function dg(t,e,n,r,o,s,a){a=a||[];const l=Math.cos(o),c=Math.sin(o),d=s[0],u=s[1];let f=0;for(let h=e;h<n;h+=r){const g=t[h]-d,p=t[h+1]-u;a[f++]=d+g*l-p*c,a[f++]=u+g*c+p*l;for(let y=h+2;y<h+r;++y)a[f++]=t[y]}return a&&a.length!=f&&(a.length=f),a}function cW(t,e,n,r,o,s,a,l){l=l||[];const c=a[0],d=a[1];let u=0;for(let f=e;f<n;f+=r){const h=t[f]-c,g=t[f+1]-d;l[u++]=c+o*h,l[u++]=d+s*g;for(let p=f+2;p<f+r;++p)l[u++]=t[p]}return l&&l.length!=u&&(l.length=u),l}function dW(t,e,n,r,o,s,a){a=a||[];let l=0;for(let c=e;c<n;c+=r){a[l++]=t[c]+o,a[l++]=t[c+1]+s;for(let d=c+2;d<c+r;++d)a[l++]=t[d]}return a&&a.length!=l&&(a.length=l),a}const aS=Dr(),uW=[NaN,NaN];class lS extends ni{constructor(){super(),this.extent_=Tr(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=tS((e,n,r)=>{if(!r)return this.getSimplifiedGeometry(n);const o=this.clone();return o.applyTransform(r),o.getSimplifiedGeometry(n)})}simplifyTransformed(e,n){return this.simplifyTransformedInternal(this.getRevision(),e,n)}clone(){return je()}closestPointXY(e,n,r,o){return je()}containsXY(e,n){return this.closestPointXY(e,n,uW,Number.MIN_VALUE)===0}getClosestPoint(e,n){return n=n||[NaN,NaN],this.closestPointXY(e[0],e[1],n,1/0),n}intersectsCoordinate(e){return this.containsXY(e[0],e[1])}computeExtent(e){return je()}getExtent(e){if(this.extentRevision_!=this.getRevision()){const n=this.computeExtent(this.extent_);(isNaN(n[0])||isNaN(n[1]))&&Ea(n),this.extentRevision_=this.getRevision()}return d9(this.extent_,e)}rotate(e,n){je()}scale(e,n,r){je()}simplify(e){return this.getSimplifiedGeometry(e*e)}getSimplifiedGeometry(e){return je()}getType(){return je()}applyTransform(e){je()}intersectsExtent(e){return je()}translate(e,n){je()}transform(e,n){const r=nn(e),o=r.getUnits()=="tile-pixels"?function(s,a,l){const c=r.getExtent(),d=r.getWorldExtent(),u=fn(d)/fn(c);ri(aS,d[0],d[3],u,-u,0,0,0);const f=Vo(s,0,s.length,l,aS,a),h=Ra(r,n);return h?h(f,f,l):f}:Ra(r,n);return this.applyTransform(o),this}}class $o extends lS{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(e){return zm(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinates(){return je()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const n=this.getSimplifiedGeometryInternal(e);return n.getFlatCoordinates().length<this.flatCoordinates.length?n:(this.simplifiedGeometryMaxMinSquaredTolerance=e,this)}getSimplifiedGeometryInternal(e){return this}getStride(){return this.stride}setFlatCoordinates(e,n){this.stride=mc(e),this.layout=e,this.flatCoordinates=n}setCoordinates(e,n){je()}setLayout(e,n,r){let o;if(e)o=mc(e);else{for(let s=0;s<r;++s){if(n.length===0){this.layout="XY",this.stride=2;return}n=n[0]}o=n.length,e=fW(o)}this.layout=e,this.stride=o}applyTransform(e){this.flatCoordinates&&(e(this.flatCoordinates,this.flatCoordinates,this.layout.startsWith("XYZ")?3:2,this.stride),this.changed())}rotate(e,n){const r=this.getFlatCoordinates();if(r){const o=this.getStride();dg(r,0,r.length,o,e,n,r),this.changed()}}scale(e,n,r){n===void 0&&(n=e),r||(r=Qi(this.getExtent()));const o=this.getFlatCoordinates();if(o){const s=this.getStride();cW(o,0,o.length,s,e,n,r,o),this.changed()}}translate(e,n){const r=this.getFlatCoordinates();if(r){const o=this.getStride();dW(r,0,r.length,o,e,n,r),this.changed()}}}function fW(t){let e;return t==2?e="XY":t==3?e="XYZ":t==4&&(e="XYZM"),e}function mc(t){let e;return t=="XY"?e=2:t=="XYZ"||t=="XYM"?e=3:t=="XYZM"&&(e=4),e}function hW(t,e,n){const r=t.getFlatCoordinates();if(!r)return null;const o=t.getStride();return Vo(r,0,r.length,o,e,n)}function cS(t,e,n,r){let o=0;const s=t[n-r],a=t[n-r+1];let l=0,c=0;for(;e<n;e+=r){const d=t[e]-s,u=t[e+1]-a;o+=c*d-l*u,l=d,c=u}return o/2}function dS(t,e,n,r){let o=0;for(let s=0,a=n.length;s<a;++s){const l=n[s];o+=cS(t,e,l,r),e=l}return o}function pW(t,e,n,r){let o=0;for(let s=0,a=n.length;s<a;++s){const l=n[s];o+=dS(t,e,l,r),e=l[l.length-1]}return o}function uS(t,e,n,r,o,s,a){const l=t[e],c=t[e+1],d=t[n]-l,u=t[n+1]-c;let f;if(d===0&&u===0)f=e;else{const h=((o-l)*d+(s-c)*u)/(d*d+u*u);if(h>1)f=n;else if(h>0){for(let g=0;g<r;++g)a[g]=dr(t[e+g],t[n+g],h);a.length=r;return}else f=e}for(let h=0;h<r;++h)a[h]=t[f+h];a.length=r}function ug(t,e,n,r,o){let s=t[e],a=t[e+1];for(e+=r;e<n;e+=r){const l=t[e],c=t[e+1],d=eo(s,a,l,c);d>o&&(o=d),s=l,a=c}return o}function fg(t,e,n,r,o){for(let s=0,a=n.length;s<a;++s){const l=n[s];o=ug(t,e,l,r,o),e=l}return o}function mW(t,e,n,r,o){for(let s=0,a=n.length;s<a;++s){const l=n[s];o=fg(t,e,l,r,o),e=l[l.length-1]}return o}function hg(t,e,n,r,o,s,a,l,c,d,u){if(e==n)return d;let f,h;if(o===0){if(h=eo(a,l,t[e],t[e+1]),h<d){for(f=0;f<r;++f)c[f]=t[e+f];return c.length=r,h}return d}u=u||[NaN,NaN];let g=e+r;for(;g<n;)if(uS(t,g-r,g,r,a,l,u),h=eo(a,l,u[0],u[1]),h<d){for(d=h,f=0;f<r;++f)c[f]=u[f];c.length=r,g+=r}else g+=r*Math.max((Math.sqrt(h)-Math.sqrt(d))/o|0,1);if(s&&(uS(t,n-r,e,r,a,l,u),h=eo(a,l,u[0],u[1]),h<d)){for(d=h,f=0;f<r;++f)c[f]=u[f];c.length=r}return d}function pg(t,e,n,r,o,s,a,l,c,d,u){u=u||[NaN,NaN];for(let f=0,h=n.length;f<h;++f){const g=n[f];d=hg(t,e,g,r,o,s,a,l,c,d,u),e=g}return d}function gW(t,e,n,r,o,s,a,l,c,d,u){u=u||[NaN,NaN];for(let f=0,h=n.length;f<h;++f){const g=n[f];d=pg(t,e,g,r,o,s,a,l,c,d,u),e=g[g.length-1]}return d}function fS(t,e,n,r){for(let o=0,s=n.length;o<s;++o)t[e++]=n[o];return e}function Ku(t,e,n,r){for(let o=0,s=n.length;o<s;++o){const a=n[o];for(let l=0;l<r;++l)t[e++]=a[l]}return e}function mg(t,e,n,r,o){o=o||[];let s=0;for(let a=0,l=n.length;a<l;++a){const c=Ku(t,e,n[a],r);o[s++]=c,e=c}return o.length=s,o}function yW(t,e,n,r,o){o=o||[];let s=0;for(let a=0,l=n.length;a<l;++a){const c=mg(t,e,n[a],r,o[s]);c.length===0&&(c[0]=e),o[s++]=c,e=c[c.length-1]}return o.length=s,o}function io(t,e,n,r,o){o=o!==void 0?o:[];let s=0;for(let a=e;a<n;a+=r)o[s++]=t.slice(a,a+r);return o.length=s,o}function gc(t,e,n,r,o){o=o!==void 0?o:[];let s=0;for(let a=0,l=n.length;a<l;++a){const c=n[a];o[s++]=io(t,e,c,r,o[s]),e=c}return o.length=s,o}function gg(t,e,n,r,o){o=o!==void 0?o:[];let s=0;for(let a=0,l=n.length;a<l;++a){const c=n[a];o[s++]=c.length===1&&c[0]===e?[]:gc(t,e,c,r,o[s]),e=c[c.length-1]}return o.length=s,o}function Xu(t,e,n,r,o,s,a){const l=(n-e)/r;if(l<3){for(;e<n;e+=r)s[a++]=t[e],s[a++]=t[e+1];return a}const c=new Array(l);c[0]=1,c[l-1]=1;const d=[e,n-r];let u=0;for(;d.length>0;){const f=d.pop(),h=d.pop();let g=0;const p=t[h],y=t[h+1],m=t[f],b=t[f+1];for(let E=h+r;E<f;E+=r){const w=t[E],_=t[E+1],C=p9(w,_,p,y,m,b);C>g&&(u=E,g=C)}g>o&&(c[(u-e)/r]=1,h+r<u&&d.push(h,u),u+r<f&&d.push(u,f))}for(let f=0;f<l;++f)c[f]&&(s[a++]=t[e+f*r],s[a++]=t[e+f*r+1]);return a}function hS(t,e,n,r,o,s,a,l){for(let c=0,d=n.length;c<d;++c){const u=n[c];a=Xu(t,e,u,r,o,s,a),l.push(a),e=u}return a}function Rs(t,e){return e*Math.round(t/e)}function _W(t,e,n,r,o,s,a){if(e==n)return a;let l=Rs(t[e],o),c=Rs(t[e+1],o);e+=r,s[a++]=l,s[a++]=c;let d,u;do if(d=Rs(t[e],o),u=Rs(t[e+1],o),e+=r,e==n)return s[a++]=d,s[a++]=u,a;while(d==l&&u==c);for(;e<n;){const f=Rs(t[e],o),h=Rs(t[e+1],o);if(e+=r,f==d&&h==u)continue;const g=d-l,p=u-c,y=f-l,m=h-c;if(g*m==p*y&&(g<0&&y<g||g==y||g>0&&y>g)&&(p<0&&m<p||p==m||p>0&&m>p)){d=f,u=h;continue}s[a++]=d,s[a++]=u,l=d,c=u,d=f,u=h}return s[a++]=d,s[a++]=u,a}function yg(t,e,n,r,o,s,a,l){for(let c=0,d=n.length;c<d;++c){const u=n[c];a=_W(t,e,u,r,o,s,a),l.push(a),e=u}return a}function bW(t,e,n,r,o,s,a,l){for(let c=0,d=n.length;c<d;++c){const u=n[c],f=[];a=yg(t,e,u,r,o,s,a,f),l.push(f),e=u[u.length-1]}return a}class yc extends $o{constructor(e,n){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,n!==void 0&&!Array.isArray(e[0])?this.setFlatCoordinates(n,e):this.setCoordinates(e,n)}clone(){return new yc(this.flatCoordinates.slice(),this.layout)}closestPointXY(e,n,r,o){return o<Cs(this.getExtent(),e,n)?o:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(ug(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),hg(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,e,n,r,o))}getArea(){return cS(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return io(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(e){const n=[];return n.length=Xu(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,0),new yc(n,"XY")}getType(){return"LinearRing"}intersectsExtent(e){return!1}setCoordinates(e,n){this.setLayout(n,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Ku(this.flatCoordinates,0,e,this.stride),this.changed()}}class Xt extends $o{constructor(e,n){super(),this.setCoordinates(e,n)}clone(){const e=new Xt(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e}closestPointXY(e,n,r,o){const s=this.flatCoordinates,a=eo(e,n,s[0],s[1]);if(a<o){const l=this.stride;for(let c=0;c<l;++c)r[c]=s[c];return r.length=l,a}return o}getCoordinates(){return this.flatCoordinates.slice()}computeExtent(e){return RE(this.flatCoordinates,e)}getType(){return"Point"}intersectsExtent(e){return Vm(e,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(e,n){this.setLayout(n,e,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=fS(this.flatCoordinates,0,e,this.stride),this.changed()}}function wW(t,e,n,r,o){return!Wm(o,function(a){return!Ds(t,e,n,r,a[0],a[1])})}function Ds(t,e,n,r,o,s){let a=0,l=t[n-r],c=t[n-r+1];for(;e<n;e+=r){const d=t[e],u=t[e+1];c<=s?u>s&&(d-l)*(s-c)-(o-l)*(u-c)>0&&a++:u<=s&&(d-l)*(s-c)-(o-l)*(u-c)<0&&a--,l=d,c=u}return a!==0}function _g(t,e,n,r,o,s){if(n.length===0||!Ds(t,e,n[0],r,o,s))return!1;for(let a=1,l=n.length;a<l;++a)if(Ds(t,n[a-1],n[a],r,o,s))return!1;return!0}function CW(t,e,n,r,o,s){if(n.length===0)return!1;for(let a=0,l=n.length;a<l;++a){const c=n[a];if(_g(t,e,c,r,o,s))return!0;e=c[c.length-1]}return!1}function bg(t,e,n,r,o,s,a){let l,c,d,u,f,h,g;const p=o[s+1],y=[];for(let E=0,w=n.length;E<w;++E){const _=n[E];for(u=t[_-r],h=t[_-r+1],l=e;l<_;l+=r)f=t[l],g=t[l+1],(p<=h&&g<=p||h<=p&&p<=g)&&(d=(p-h)/(g-h)*(f-u)+u,y.push(d)),u=f,h=g}let m=NaN,b=-1/0;for(y.sort(ro),u=y[0],l=1,c=y.length;l<c;++l){f=y[l];const E=Math.abs(f-u);E>b&&(d=(u+f)/2,_g(t,e,n,r,d,p)&&(m=d,b=E)),u=f}return isNaN(m)&&(m=o[s]),a?(a.push(m,p,b),a):[m,p,b]}function pS(t,e,n,r,o){let s=[];for(let a=0,l=n.length;a<l;++a){const c=n[a];s=bg(t,e,c,r,o,2*a,s),e=c[c.length-1]}return s}function mS(t,e,n,r,o){let s;for(e+=r;e<n;e+=r)if(s=o(t.slice(e-r,e),t.slice(e,e+r)),s)return s;return!1}function Zu(t,e,n,r,o,s){return s=s??PE(Tr(),t,e,n,r),Sn(o,s)?s[0]>=o[0]&&s[2]<=o[2]||s[1]>=o[1]&&s[3]<=o[3]?!0:mS(t,e,n,r,function(a,l){return f9(o,a,l)}):!1}function EW(t,e,n,r,o){for(let s=0,a=n.length;s<a;++s){if(Zu(t,e,n[s],r,o))return!0;e=n[s]}return!1}function gS(t,e,n,r,o){return!!(Zu(t,e,n,r,o)||Ds(t,e,n,r,o[0],o[1])||Ds(t,e,n,r,o[0],o[3])||Ds(t,e,n,r,o[2],o[1])||Ds(t,e,n,r,o[2],o[3]))}function yS(t,e,n,r,o){if(!gS(t,e,n[0],r,o))return!1;if(n.length===1)return!0;for(let s=1,a=n.length;s<a;++s)if(wW(t,n[s-1],n[s],r,o)&&!Zu(t,n[s-1],n[s],r,o))return!1;return!0}function SW(t,e,n,r,o){for(let s=0,a=n.length;s<a;++s){const l=n[s];if(yS(t,e,l,r,o))return!0;e=l[l.length-1]}return!1}function kW(t,e,n,r){for(;e<n-r;){for(let o=0;o<r;++o){const s=t[e+o];t[e+o]=t[n-r+o],t[n-r+o]=s}e+=r,n-=r}}function wg(t,e,n,r){let o=0,s=t[n-r],a=t[n-r+1];for(;e<n;e+=r){const l=t[e],c=t[e+1];o+=(l-s)*(c+a),s=l,a=c}return o===0?void 0:o>0}function _S(t,e,n,r,o){o=o!==void 0?o:!1;for(let s=0,a=n.length;s<a;++s){const l=n[s],c=wg(t,e,l,r);if(s===0){if(o&&c||!o&&!c)return!1}else if(o&&!c||!o&&c)return!1;e=l}return!0}function vW(t,e,n,r,o){for(let s=0,a=n.length;s<a;++s){const l=n[s];if(!_S(t,e,l,r,o))return!1;l.length&&(e=l[l.length-1])}return!0}function Cg(t,e,n,r,o){o=o!==void 0?o:!1;for(let s=0,a=n.length;s<a;++s){const l=n[s],c=wg(t,e,l,r);(s===0?o&&c||!o&&!c:o&&!c||!o&&c)&&kW(t,e,l,r),e=l}return e}function bS(t,e,n,r,o){for(let s=0,a=n.length;s<a;++s)e=Cg(t,e,n[s],r,o);return e}function xW(t,e){const n=[];let r=0,o=0,s;for(let a=0,l=e.length;a<l;++a){const c=e[a],d=wg(t,r,c,2);if(s===void 0&&(s=d),d===s)n.push(e.slice(o,a+1));else{if(n.length===0)continue;n[n.length-1].push(e[o])}o=a+1,r=c}return n}class oo extends $o{constructor(e,n,r){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,n!==void 0&&r?(this.setFlatCoordinates(n,e),this.ends_=r):this.setCoordinates(e,n)}appendLinearRing(e){this.flatCoordinates?ki(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const e=new oo(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return e.applyProperties(this),e}closestPointXY(e,n,r,o){return o<Cs(this.getExtent(),e,n)?o:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(fg(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),pg(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,e,n,r,o))}containsXY(e,n){return _g(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,n)}getArea(){return dS(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(e){let n;return e!==void 0?(n=this.getOrientedFlatCoordinates().slice(),Cg(n,0,this.ends_,this.stride,e)):n=this.flatCoordinates,gc(n,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const e=Qi(this.getExtent());this.flatInteriorPoint_=bg(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new Xt(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(e){return e<0||this.ends_.length<=e?null:new yc(this.flatCoordinates.slice(e===0?0:this.ends_[e-1],this.ends_[e]),this.layout)}getLinearRings(){const e=this.layout,n=this.flatCoordinates,r=this.ends_,o=[];let s=0;for(let a=0,l=r.length;a<l;++a){const c=r[a],d=new yc(n.slice(s,c),e);o.push(d),s=c}return o}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const e=this.flatCoordinates;_S(e,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=Cg(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(e){const n=[],r=[];return n.length=yg(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(e),n,0,r),new oo(n,"XY",r)}getType(){return"Polygon"}intersectsExtent(e){return yS(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e)}setCoordinates(e,n){this.setLayout(n,e,2),this.flatCoordinates||(this.flatCoordinates=[]);const r=mg(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=r.length===0?0:r[r.length-1],this.changed()}}function wS(t){if(vs(t))throw new Error("Cannot create polygon from empty extent");const e=t[0],n=t[1],r=t[2],o=t[3],s=[e,n,e,o,r,o,r,n,e,n];return new oo(s,"XY",[s.length])}function qu(t,e,n,r,o,s,a){let l,c;const d=(n-e)/r;if(d===1)l=e;else if(d===2)l=e,c=o;else if(d!==0){let u=t[e],f=t[e+1],h=0;const g=[0];for(let m=e+r;m<n;m+=r){const b=t[m],E=t[m+1];h+=Math.sqrt((b-u)*(b-u)+(E-f)*(E-f)),g.push(h),u=b,f=E}const p=o*h,y=X9(g,p);y<0?(c=(p-g[-y-2])/(g[-y-1]-g[-y-2]),l=e+(-y-2)*r):l=e+y*r}a=a>1?a:2,s=s||new Array(a);for(let u=0;u<a;++u)s[u]=l===void 0?NaN:c===void 0?t[l+u]:dr(t[l+u],t[l+r+u],c);return s}function Eg(t,e,n,r,o,s){if(n==e)return null;let a;if(o<t[e+r-1])return s?(a=t.slice(e,e+r),a[r-1]=o,a):null;if(t[n-1]<o)return s?(a=t.slice(n-r,n),a[r-1]=o,a):null;if(o==t[e+r-1])return t.slice(e,e+r);let l=e/r,c=n/r;for(;l<c;){const h=l+c>>1;o<t[(h+1)*r-1]?c=h:l=h+1}const d=t[l*r-1];if(o==d)return t.slice((l-1)*r,(l-1)*r+r);const u=t[(l+1)*r-1],f=(o-d)/(u-d);a=[];for(let h=0;h<r-1;++h)a.push(dr(t[(l-1)*r+h],t[l*r+h],f));return a.push(o),a}function TW(t,e,n,r,o,s,a){if(a)return Eg(t,e,n[n.length-1],r,o,s);let l;if(o<t[r-1])return s?(l=t.slice(0,r),l[r-1]=o,l):null;if(t[t.length-1]<o)return s?(l=t.slice(t.length-r),l[r-1]=o,l):null;for(let c=0,d=n.length;c<d;++c){const u=n[c];if(e!=u){if(o<t[e+r-1])return null;if(o<=t[u-1])return Eg(t,e,u,r,o,!1);e=u}}return null}function Sg(t,e,n,r){let o=t[e],s=t[e+1],a=0;for(let l=e+r;l<n;l+=r){const c=t[l],d=t[l+1];a+=Math.sqrt((c-o)*(c-o)+(d-s)*(d-s)),o=c,s=d}return a}class Nn extends $o{constructor(e,n){super(),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,n!==void 0&&!Array.isArray(e[0])?this.setFlatCoordinates(n,e):this.setCoordinates(e,n)}appendCoordinate(e){ki(this.flatCoordinates,e),this.changed()}clone(){const e=new Nn(this.flatCoordinates.slice(),this.layout);return e.applyProperties(this),e}closestPointXY(e,n,r,o){return o<Cs(this.getExtent(),e,n)?o:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(ug(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),hg(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,e,n,r,o))}forEachSegment(e){return mS(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinateAtM(e,n){return this.layout!="XYM"&&this.layout!="XYZM"?null:(n=n!==void 0?n:!1,Eg(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n))}getCoordinates(){return io(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinateAt(e,n){return qu(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,this.stride)}getLength(){return Sg(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getFlatMidpoint(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_??void 0),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_}getSimplifiedGeometryInternal(e){const n=[];return n.length=Xu(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,n,0),new Nn(n,"XY")}getType(){return"LineString"}intersectsExtent(e){return Zu(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e,this.getExtent())}setCoordinates(e,n){this.setLayout(n,e,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=Ku(this.flatCoordinates,0,e,this.stride),this.changed()}}const Pr={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"},Ps=typeof navigator<"u"&&typeof navigator.userAgent<"u"?navigator.userAgent.toLowerCase():"";Ps.includes("safari")&&!Ps.includes("chrom")&&(Ps.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(Ps));const MW=Ps.includes("webkit")&&!Ps.includes("edge"),CS=Ps.includes("macintosh"),RW=typeof devicePixelRatio<"u"?devicePixelRatio:1,ES=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,SS=typeof Image<"u"&&Image.prototype.decode,DW=typeof createImageBitmap=="function",kS=function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch{}return t}(),Ne={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};function rn(t,e,n,r){let o;return n&&n.length?o=n.shift():ES?o=new OffscreenCanvas(t||300,e||300):o=document.createElement("canvas"),t&&(o.width=t),e&&(o.height=e),o.getContext("2d",r)}let kg;function Ju(){return kg||(kg=rn(1,1)),kg}function Qu(t){const e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function PW(t){let e=t.offsetWidth;const n=getComputedStyle(t);return e+=parseInt(n.marginLeft,10)+parseInt(n.marginRight,10),e}function IW(t){let e=t.offsetHeight;const n=getComputedStyle(t);return e+=parseInt(n.marginTop,10)+parseInt(n.marginBottom,10),e}function vS(t,e){const n=e.parentNode;n&&n.replaceChild(t,e)}function xS(t){for(;t.lastChild;)t.lastChild.remove()}function NW(t,e){const n=t.childNodes;for(let r=0;;++r){const o=n[r],s=e[r];if(!o&&!s)break;if(o!==s){if(!o){t.appendChild(s);continue}if(!s){t.removeChild(o),--r;continue}t.insertBefore(s,o)}}}const vg=[NaN,NaN,NaN,0];let xg;function OW(){return xg||(xg=rn(1,1,void 0,{willReadFrequently:!0,desynchronized:!0})),xg}const LW=/^rgba?\(\s*(\d+%?)\s+(\d+%?)\s+(\d+%?)(?:\s*\/\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,AW=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,FW=/^rgba?\(\s*(\d+%)\s*,\s*(\d+%)\s*,\s*(\d+%)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,BW=/^#([\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i;function ef(t,e){return t.endsWith("%")?Number(t.substring(0,t.length-1))/e:Number(t)}function _c(t){throw new Error('failed to parse "'+t+'" as color')}function TS(t){if(t.toLowerCase().startsWith("rgb")){const s=t.match(AW)||t.match(LW)||t.match(FW);if(s){const a=s[4],l=100/255;return[Ot(ef(s[1],l)+.5|0,0,255),Ot(ef(s[2],l)+.5|0,0,255),Ot(ef(s[3],l)+.5|0,0,255),a!==void 0?Ot(ef(a,100),0,1):1]}_c(t)}if(t.startsWith("#")){if(BW.test(t)){const s=t.substring(1),a=s.length<=4?1:2,l=[0,0,0,255];for(let c=0,d=s.length;c<d;c+=a){let u=parseInt(s.substring(c,c+a),16);a===1&&(u+=u<<4),l[c/a]=u}return l[3]=l[3]/255,l}_c(t)}const e=OW();e.fillStyle="#abcdef";let n=e.fillStyle;e.fillStyle=t,e.fillStyle===n&&(e.fillStyle="#fedcba",n=e.fillStyle,e.fillStyle=t,e.fillStyle===n&&_c(t));const r=e.fillStyle;if(r.startsWith("#")||r.startsWith("rgba"))return TS(r);e.clearRect(0,0,1,1),e.fillRect(0,0,1,1);const o=Array.from(e.getImageData(0,0,1,1).data);return o[3]=ac(o[3]/255,3),o}function VW(t){return typeof t=="string"?t:Ng(t)}const $W=1024,bc={};let Tg=0;function zW(t){if(t.length===4)return t;const e=t.slice();return e[3]=1,e}function Mg(t){return t>.0031308?Math.pow(t,1/2.4)*269.025-14.025:t*3294.6}function Rg(t){return t>.2068965?Math.pow(t,3):(t-4/29)*(108/841)}function Dg(t){return t>10.314724?Math.pow((t+14.025)/269.025,2.4):t/3294.6}function Pg(t){return t>.0088564?Math.pow(t,1/3):t/(108/841)+4/29}function MS(t){const e=Dg(t[0]),n=Dg(t[1]),r=Dg(t[2]),o=Pg(e*.222488403+n*.716873169+r*.06060791),s=500*(Pg(e*.452247074+n*.399439023+r*.148375274)-o),a=200*(o-Pg(e*.016863605+n*.117638439+r*.865350722)),l=Math.atan2(a,s)*(180/Math.PI);return[116*o-16,Math.sqrt(s*s+a*a),l<0?l+360:l,t[3]]}function WW(t){const e=(t[0]+16)/116,n=t[1],r=t[2]*Math.PI/180,o=Rg(e),s=Rg(e+n/500*Math.cos(r)),a=Rg(e-n/200*Math.sin(r)),l=Mg(s*3.021973625-o*1.617392459-a*.404875592),c=Mg(s*-.943766287+o*1.916279586+a*.027607165),d=Mg(s*.069407491-o*.22898585+a*1.159737864);return[Ot(l+.5|0,0,255),Ot(c+.5|0,0,255),Ot(d+.5|0,0,255),t[3]]}function Ig(t){if(t==="none")return vg;if(bc.hasOwnProperty(t))return bc[t];if(Tg>=$W){let n=0;for(const r in bc)n++&3||(delete bc[r],--Tg)}const e=TS(t);e.length!==4&&_c(t);for(const n of e)isNaN(n)&&_c(t);return bc[t]=e,++Tg,e}function Na(t){return Array.isArray(t)?t:Ig(t)}function Ng(t){let e=t[0];e!=(e|0)&&(e=e+.5|0);let n=t[1];n!=(n|0)&&(n=n+.5|0);let r=t[2];r!=(r|0)&&(r=r+.5|0);const o=t[3]===void 0?1:Math.round(t[3]*1e3)/1e3;return"rgba("+e+","+n+","+r+","+o+")"}class YW extends fc{constructor(e,n,r,o){super(),this.extent=e,this.pixelRatio_=r,this.resolution=n,this.state=typeof o=="function"?Ne.IDLE:o,this.image_=null,this.loader=typeof o=="function"?o:null}changed(){this.dispatchEvent(Ge.CHANGE)}getExtent(){return this.extent}getImage(){return this.image_}getPixelRatio(){return this.pixelRatio_}getResolution(){return this.resolution}getState(){return this.state}load(){if(this.state==Ne.IDLE&&this.loader){this.state=Ne.LOADING,this.changed();const e=this.getResolution(),n=Array.isArray(e)?e[0]:e;nS(()=>this.loader(this.getExtent(),n,this.getPixelRatio())).then(r=>{"image"in r&&(this.image_=r.image),"extent"in r&&(this.extent=r.extent),"resolution"in r&&(this.resolution=r.resolution),"pixelRatio"in r&&(this.pixelRatio_=r.pixelRatio),(r instanceof HTMLImageElement||DW&&r instanceof ImageBitmap||r instanceof HTMLCanvasElement||r instanceof HTMLVideoElement)&&(this.image_=r),this.state=Ne.LOADED}).catch(r=>{this.state=Ne.ERROR,console.error(r)}).finally(()=>this.changed())}}setImage(e){this.image_=e}setResolution(e){this.resolution=e}}function GW(t,e,n){const r=t;let o=!0,s=!1,a=!1;const l=[Gu(r,Ge.LOAD,function(){a=!0,s||e()})];return r.src&&SS?(s=!0,r.decode().then(function(){o&&e()}).catch(function(c){o&&(a?e():n())})):l.push(Gu(r,Ge.ERROR,n)),function(){o=!1,l.forEach(xt)}}function jW(t,e){return new Promise((n,r)=>{function o(){a(),n(t)}function s(){a(),r(new Error("Image load error"))}function a(){t.removeEventListener("load",o),t.removeEventListener("error",s)}t.addEventListener("load",o),t.addEventListener("error",s)})}function HW(t,e){return e&&(t.src=e),t.src&&SS?new Promise((n,r)=>t.decode().then(()=>n(t)).catch(o=>t.complete&&t.width?n(t):r(o))):jW(t)}class UW{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=1024}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let e=0;for(const n in this.cache_){const r=this.cache_[n];!(e++&3)&&!r.hasListener()&&(delete this.cache_[n],delete this.patternCache_[n],--this.cacheSize_)}}}get(e,n,r){const o=Og(e,n,r);return o in this.cache_?this.cache_[o]:null}getPattern(e,n,r){const o=Og(e,n,r);return o in this.patternCache_?this.patternCache_[o]:null}set(e,n,r,o,s){const a=Og(e,n,r),l=a in this.cache_;this.cache_[a]=o,s&&(o.getImageState()===Ne.IDLE&&o.load(),o.getImageState()===Ne.LOADING?o.ready().then(()=>{this.patternCache_[a]=Ju().createPattern(o.getImage(1),"repeat")}):this.patternCache_[a]=Ju().createPattern(o.getImage(1),"repeat")),l||++this.cacheSize_}setSize(e){this.maxCacheSize_=e,this.expire()}}function Og(t,e,n){const r=n?Na(n):"null";return e+":"+t+":"+r}const Ir=new UW;let wc=null;class RS extends fc{constructor(e,n,r,o,s){super(),this.hitDetectionImage_=null,this.image_=e,this.crossOrigin_=r,this.canvas_={},this.color_=s,this.imageState_=o===void 0?Ne.IDLE:o,this.size_=e&&e.width&&e.height?[e.width,e.height]:null,this.src_=n,this.tainted_,this.ready_=null}initializeImage_(){this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(this.tainted_===void 0&&this.imageState_===Ne.LOADED){wc||(wc=rn(1,1,void 0,{willReadFrequently:!0})),wc.drawImage(this.image_,0,0);try{wc.getImageData(0,0,1,1),this.tainted_=!1}catch{wc=null,this.tainted_=!0}}return this.tainted_===!0}dispatchChangeEvent_(){this.dispatchEvent(Ge.CHANGE)}handleImageError_(){this.imageState_=Ne.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=Ne.LOADED,this.size_=[this.image_.width,this.image_.height],this.dispatchChangeEvent_()}getImage(e){return this.image_||this.initializeImage_(),this.replaceColor_(e),this.canvas_[e]?this.canvas_[e]:this.image_}getPixelRatio(e){return this.replaceColor_(e),this.canvas_[e]?e:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const e=this.size_[0],n=this.size_[1],r=rn(e,n);r.fillRect(0,0,e,n),this.hitDetectionImage_=r.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===Ne.IDLE){this.image_||this.initializeImage_(),this.imageState_=Ne.LOADING;try{this.src_!==void 0&&(this.image_.src=this.src_)}catch{this.handleImageError_()}this.image_ instanceof HTMLImageElement&&HW(this.image_,this.src_).then(e=>{this.image_=e,this.handleImageLoad_()}).catch(this.handleImageError_.bind(this))}}replaceColor_(e){if(!this.color_||this.canvas_[e]||this.imageState_!==Ne.LOADED)return;const n=this.image_,r=rn(Math.ceil(n.width*e),Math.ceil(n.height*e)),o=r.canvas;r.scale(e,e),r.drawImage(n,0,0),r.globalCompositeOperation="multiply",r.fillStyle=VW(this.color_),r.fillRect(0,0,o.width/e,o.height/e),r.globalCompositeOperation="destination-in",r.drawImage(n,0,0),this.canvas_[e]=o}ready(){return this.ready_||(this.ready_=new Promise(e=>{if(this.imageState_===Ne.LOADED||this.imageState_===Ne.ERROR)e();else{const n=()=>{(this.imageState_===Ne.LOADED||this.imageState_===Ne.ERROR)&&(this.removeEventListener(Ge.CHANGE,n),e())};this.addEventListener(Ge.CHANGE,n)}})),this.ready_}}function Lg(t,e,n,r,o,s){let a=e===void 0?void 0:Ir.get(e,n,o);return a||(a=new RS(t,t&&"src"in t?t.src||void 0:e,n,r,o),Ir.set(e,n,o,a,s)),s&&a&&!Ir.getPattern(e,n,o)&&Ir.set(e,n,o,a,s),a}function Ti(t){return t?Array.isArray(t)?Ng(t):typeof t=="object"&&"src"in t?KW(t):t:null}function KW(t){if(!t.offset||!t.size)return Ir.getPattern(t.src,"anonymous",t.color);const e=t.src+":"+t.offset,n=Ir.getPattern(e,void 0,t.color);if(n)return n;const r=Ir.get(t.src,"anonymous",null);if(r.getImageState()!==Ne.LOADED)return null;const o=rn(t.size[0],t.size[1]);return o.drawImage(r.getImage(1),t.offset[0],t.offset[1],t.size[0],t.size[1],0,0,t.size[0],t.size[1]),Lg(o.canvas,e,void 0,Ne.LOADED,t.color,!0),Ir.getPattern(e,void 0,t.color)}class DS{drawCustom(e,n,r,o,s){}drawGeometry(e){}setStyle(e){}drawCircle(e,n,r){}drawFeature(e,n,r){}drawGeometryCollection(e,n,r){}drawLineString(e,n,r){}drawMultiLineString(e,n,r){}drawMultiPoint(e,n,r){}drawMultiPolygon(e,n,r){}drawPoint(e,n,r){}drawPolygon(e,n,r){}drawText(e,n,r){}setFillStrokeStyle(e,n){}setImageStyle(e,n){}setTextStyle(e,n){}}const PS="10px sans-serif",Un="#000",Oa="round",so=[],ao=0,La="round",Cc=10,Ec="#000",Sc="center",tf="middle",Is=[0,0,0,0],kc=1,lo=new ni;let Aa=null,Ag;const Fg={},XW=function(){const e="32px ",n=["monospace","serif"],r=n.length,o="wmytzilWMYTZIL@#/&?$%10";let s,a;function l(d,u,f){let h=!0;for(let g=0;g<r;++g){const p=n[g];if(a=nf(d+" "+u+" "+e+p,o),f!=p){const y=nf(d+" "+u+" "+e+f+","+p,o);h=h&&y!=a}}return!!h}function c(){let d=!0;const u=lo.getKeys();for(let f=0,h=u.length;f<h;++f){const g=u[f];if(lo.get(g)<100){const[p,y,m]=g.split(`
|
|
74
74
|
`);l(p,y,m)?(cc(Fg),Aa=null,Ag=void 0,lo.set(g,100)):(lo.set(g,lo.get(g)+1,!0),d=!1)}}d&&(clearInterval(s),s=void 0)}return function(d){const u=xE(d);if(!u)return;const f=u.families;for(let h=0,g=f.length;h<g;++h){const p=f[h],y=u.style+`
|
|
75
75
|
`+u.weight+`
|
|
76
76
|
`+p;lo.get(y)===void 0&&(lo.set(y,100,!0),l(u.style,u.weight,p)||(lo.set(y,0,!0),s===void 0&&(s=setInterval(c,32))))}}}(),ZW=function(){let t;return function(e){let n=Fg[e];if(n==null){if(ES){const r=xE(e),o=IS(e,"Žg");n=(isNaN(Number(r.lineHeight))?1.2:Number(r.lineHeight))*(o.actualBoundingBoxAscent+o.actualBoundingBoxDescent)}else t||(t=document.createElement("div"),t.innerHTML="M",t.style.minHeight="0",t.style.maxHeight="none",t.style.height="auto",t.style.padding="0",t.style.border="none",t.style.position="absolute",t.style.display="block",t.style.left="-99999px"),t.style.font=e,document.body.appendChild(t),n=t.offsetHeight,document.body.removeChild(t);Fg[e]=n}return n}}();function IS(t,e){return Aa||(Aa=rn(1,1)),t!=Ag&&(Aa.font=t,Ag=Aa.font),Aa.measureText(e)}function nf(t,e){return IS(t,e).width}function NS(t,e,n){if(e in n)return n[e];const r=e.split(`
|
|
@@ -171,4 +171,4 @@ _e.version="2.30.1",JV(Pt),_e.fn=fe,_e.min=$6,_e.max=z6,_e.now=W6,_e.utc=yi,_e.u
|
|
|
171
171
|
* @author RubaXa <trash@rubaxa.org>
|
|
172
172
|
* @author owenm <owen23355@gmail.com>
|
|
173
173
|
* @license MIT
|
|
174
|
-
*/function av(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Pi(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?av(Object(n),!0).forEach(function(r){Qj(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):av(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Nf(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nf=function(e){return typeof e}:Nf=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nf(t)}function Qj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _o(){return _o=Object.assign||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},_o.apply(this,arguments)}function eH(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,s;for(s=0;s<r.length;s++)o=r[s],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function tH(t,e){if(t==null)return{};var n=eH(t,e),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o<s.length;o++)r=s[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}var nH="1.15.6";function bo(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var wo=bo(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),jc=bo(/Edge/i),lv=bo(/firefox/i),Hc=bo(/safari/i)&&!bo(/chrome/i)&&!bo(/android/i),D0=bo(/iP(ad|od|hone)/i),cv=bo(/chrome/i)&&bo(/android/i),dv={capture:!1,passive:!1};function st(t,e,n){t.addEventListener(e,n,!wo&&dv)}function it(t,e,n){t.removeEventListener(e,n,!wo&&dv)}function Of(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function uv(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function di(t,e,n,r){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&Of(t,e):Of(t,e))||r&&t===n)return t;if(t===n)break}while(t=uv(t))}return null}var fv=/\s+/g;function ur(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(fv," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(fv," ")}}function $e(t,e,n){var r=t&&t.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=n+(typeof n=="string"?"":"px")}}function il(t,e){var n="";if(typeof t=="string")n=t;else do{var r=$e(t,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function hv(t,e,n){if(t){var r=t.getElementsByTagName(e),o=0,s=r.length;if(n)for(;o<s;o++)n(r[o],o);return r}return[]}function Ii(){var t=document.scrollingElement;return t||document.documentElement}function qt(t,e,n,r,o){if(!(!t.getBoundingClientRect&&t!==window)){var s,a,l,c,d,u,f;if(t!==window&&t.parentNode&&t!==Ii()?(s=t.getBoundingClientRect(),a=s.top,l=s.left,c=s.bottom,d=s.right,u=s.height,f=s.width):(a=0,l=0,c=window.innerHeight,d=window.innerWidth,u=window.innerHeight,f=window.innerWidth),(e||n)&&t!==window&&(o=o||t.parentNode,!wo))do if(o&&o.getBoundingClientRect&&($e(o,"transform")!=="none"||n&&$e(o,"position")!=="static")){var h=o.getBoundingClientRect();a-=h.top+parseInt($e(o,"border-top-width")),l-=h.left+parseInt($e(o,"border-left-width")),c=a+s.height,d=l+s.width;break}while(o=o.parentNode);if(r&&t!==window){var g=il(o||t),p=g&&g.a,y=g&&g.d;g&&(a/=y,l/=p,f/=p,u/=y,c=a+u,d=l+f)}return{top:a,left:l,bottom:c,right:d,width:f,height:u}}}function pv(t,e,n){for(var r=Zo(t,!0),o=qt(t)[e];r;){var s=qt(r)[n],a=void 0;if(a=o>=s,!a)return r;if(r===Ii())break;r=Zo(r,!1)}return!1}function ol(t,e,n,r){for(var o=0,s=0,a=t.children;s<a.length;){if(a[s].style.display!=="none"&&a[s]!==Be.ghost&&(r||a[s]!==Be.dragged)&&di(a[s],n.draggable,t,!1)){if(o===e)return a[s];o++}s++}return null}function P0(t,e){for(var n=t.lastElementChild;n&&(n===Be.ghost||$e(n,"display")==="none"||e&&!Of(n,e));)n=n.previousElementSibling;return n||null}function Or(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Be.clone&&(!e||Of(t,e))&&n++;return n}function mv(t){var e=0,n=0,r=Ii();if(t)do{var o=il(t),s=o.a,a=o.d;e+=t.scrollLeft*s,n+=t.scrollTop*a}while(t!==r&&(t=t.parentNode));return[e,n]}function rH(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n)}return-1}function Zo(t,e){if(!t||!t.getBoundingClientRect)return Ii();var n=t,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=$e(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Ii();if(r||e)return n;r=!0}}while(n=n.parentNode);return Ii()}function iH(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function I0(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var Uc;function gv(t,e){return function(){if(!Uc){var n=arguments,r=this;n.length===1?t.call(r,n[0]):t.apply(r,n),Uc=setTimeout(function(){Uc=void 0},e)}}}function oH(){clearTimeout(Uc),Uc=void 0}function yv(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function _v(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function bv(t,e,n){var r={};return Array.from(t.children).forEach(function(o){var s,a,l,c;if(!(!di(o,e.draggable,t,!1)||o.animated||o===n)){var d=qt(o);r.left=Math.min((s=r.left)!==null&&s!==void 0?s:1/0,d.left),r.top=Math.min((a=r.top)!==null&&a!==void 0?a:1/0,d.top),r.right=Math.max((l=r.right)!==null&&l!==void 0?l:-1/0,d.right),r.bottom=Math.max((c=r.bottom)!==null&&c!==void 0?c:-1/0,d.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var er="Sortable"+new Date().getTime();function sH(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(o){if(!($e(o,"display")==="none"||o===Be.ghost)){t.push({target:o,rect:qt(o)});var s=Pi({},t[t.length-1].rect);if(o.thisAnimationDuration){var a=il(o,!0);a&&(s.top-=a.f,s.left-=a.e)}o.fromRect=s}})}},addAnimationState:function(r){t.push(r)},removeAnimationState:function(r){t.splice(rH(t,{target:r}),1)},animateAll:function(r){var o=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var s=!1,a=0;t.forEach(function(l){var c=0,d=l.target,u=d.fromRect,f=qt(d),h=d.prevFromRect,g=d.prevToRect,p=l.rect,y=il(d,!0);y&&(f.top-=y.f,f.left-=y.e),d.toRect=f,d.thisAnimationDuration&&I0(h,f)&&!I0(u,f)&&(p.top-f.top)/(p.left-f.left)===(u.top-f.top)/(u.left-f.left)&&(c=lH(p,h,g,o.options)),I0(f,u)||(d.prevFromRect=u,d.prevToRect=f,c||(c=o.options.animation),o.animate(d,p,f,c)),c&&(s=!0,a=Math.max(a,c),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},c),d.thisAnimationDuration=c)}),clearTimeout(e),s?e=setTimeout(function(){typeof r=="function"&&r()},a):typeof r=="function"&&r(),t=[]},animate:function(r,o,s,a){if(a){$e(r,"transition",""),$e(r,"transform","");var l=il(this.el),c=l&&l.a,d=l&&l.d,u=(o.left-s.left)/(c||1),f=(o.top-s.top)/(d||1);r.animatingX=!!u,r.animatingY=!!f,$e(r,"transform","translate3d("+u+"px,"+f+"px,0)"),this.forRepaintDummy=aH(r),$e(r,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),$e(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){$e(r,"transition",""),$e(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},a)}}}}function aH(t){return t.offsetWidth}function lH(t,e,n,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*r.animation}var sl=[],N0={initializeByDefault:!0},Kc={mount:function(e){for(var n in N0)N0.hasOwnProperty(n)&&!(n in e)&&(e[n]=N0[n]);sl.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),sl.push(e)},pluginEvent:function(e,n,r){var o=this;this.eventCanceled=!1,r.cancel=function(){o.eventCanceled=!0};var s=e+"Global";sl.forEach(function(a){n[a.pluginName]&&(n[a.pluginName][s]&&n[a.pluginName][s](Pi({sortable:n},r)),n.options[a.pluginName]&&n[a.pluginName][e]&&n[a.pluginName][e](Pi({sortable:n},r)))})},initializePlugins:function(e,n,r,o){sl.forEach(function(l){var c=l.pluginName;if(!(!e.options[c]&&!l.initializeByDefault)){var d=new l(e,n,e.options);d.sortable=e,d.options=e.options,e[c]=d,_o(r,d.defaults)}});for(var s in e.options)if(e.options.hasOwnProperty(s)){var a=this.modifyOption(e,s,e.options[s]);typeof a<"u"&&(e.options[s]=a)}},getEventProperties:function(e,n){var r={};return sl.forEach(function(o){typeof o.eventProperties=="function"&&_o(r,o.eventProperties.call(n[o.pluginName],e))}),r},modifyOption:function(e,n,r){var o;return sl.forEach(function(s){e[s.pluginName]&&s.optionListeners&&typeof s.optionListeners[n]=="function"&&(o=s.optionListeners[n].call(e[s.pluginName],r))}),o}};function cH(t){var e=t.sortable,n=t.rootEl,r=t.name,o=t.targetEl,s=t.cloneEl,a=t.toEl,l=t.fromEl,c=t.oldIndex,d=t.newIndex,u=t.oldDraggableIndex,f=t.newDraggableIndex,h=t.originalEvent,g=t.putSortable,p=t.extraEventProperties;if(e=e||n&&n[er],!!e){var y,m=e.options,b="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!wo&&!jc?y=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(r,!0,!0)),y.to=a||n,y.from=l||n,y.item=o||n,y.clone=s,y.oldIndex=c,y.newIndex=d,y.oldDraggableIndex=u,y.newDraggableIndex=f,y.originalEvent=h,y.pullMode=g?g.lastPutMode:void 0;var E=Pi(Pi({},p),Kc.getEventProperties(r,e));for(var w in E)y[w]=E[w];n&&n.dispatchEvent(y),m[b]&&m[b].call(e,y)}}var dH=["evt"],tr=function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,s=tH(r,dH);Kc.pluginEvent.bind(Be)(e,n,Pi({dragEl:me,parentEl:Bt,ghostEl:He,rootEl:Lt,nextEl:Vs,lastDownEl:Lf,cloneEl:Ft,cloneHidden:qo,dragStarted:Zc,putSortable:gn,activeSortable:Be.active,originalEvent:o,oldIndex:al,oldDraggableIndex:Xc,newIndex:fr,newDraggableIndex:Jo,hideGhostForTarget:xv,unhideGhostForTarget:Tv,cloneNowHidden:function(){qo=!0},cloneNowShown:function(){qo=!1},dispatchSortableEvent:function(l){An({sortable:n,name:l,originalEvent:o})}},s))};function An(t){cH(Pi({putSortable:gn,cloneEl:Ft,targetEl:me,rootEl:Lt,oldIndex:al,oldDraggableIndex:Xc,newIndex:fr,newDraggableIndex:Jo},t))}var me,Bt,He,Lt,Vs,Lf,Ft,qo,al,fr,Xc,Jo,Af,gn,ll=!1,Ff=!1,Bf=[],$s,ui,O0,L0,wv,Cv,Zc,cl,qc,Jc=!1,Vf=!1,$f,xn,A0=[],F0=!1,zf=[],Wf=typeof document<"u",Yf=D0,Ev=jc||wo?"cssFloat":"float",uH=Wf&&!cv&&!D0&&"draggable"in document.createElement("div"),Sv=function(){if(Wf){if(wo)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),kv=function(e,n){var r=$e(e),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),s=ol(e,0,n),a=ol(e,1,n),l=s&&$e(s),c=a&&$e(a),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+qt(s).width,u=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+qt(a).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(s&&l.float&&l.float!=="none"){var f=l.float==="left"?"left":"right";return a&&(c.clear==="both"||c.clear===f)?"vertical":"horizontal"}return s&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=o&&r[Ev]==="none"||a&&r[Ev]==="none"&&d+u>o)?"vertical":"horizontal"},fH=function(e,n,r){var o=r?e.left:e.top,s=r?e.right:e.bottom,a=r?e.width:e.height,l=r?n.left:n.top,c=r?n.right:n.bottom,d=r?n.width:n.height;return o===l||s===c||o+a/2===l+d/2},hH=function(e,n){var r;return Bf.some(function(o){var s=o[er].options.emptyInsertThreshold;if(!(!s||P0(o))){var a=qt(o),l=e>=a.left-s&&e<=a.right+s,c=n>=a.top-s&&n<=a.bottom+s;if(l&&c)return r=o}}),r},vv=function(e){function n(s,a){return function(l,c,d,u){var f=l.options.group.name&&c.options.group.name&&l.options.group.name===c.options.group.name;if(s==null&&(a||f))return!0;if(s==null||s===!1)return!1;if(a&&s==="clone")return s;if(typeof s=="function")return n(s(l,c,d,u),a)(l,c,d,u);var h=(a?l:c).options.group.name;return s===!0||typeof s=="string"&&s===h||s.join&&s.indexOf(h)>-1}}var r={},o=e.group;(!o||Nf(o)!="object")&&(o={name:o}),r.name=o.name,r.checkPull=n(o.pull,!0),r.checkPut=n(o.put),r.revertClone=o.revertClone,e.group=r},xv=function(){!Sv&&He&&$e(He,"display","none")},Tv=function(){!Sv&&He&&$e(He,"display","")};Wf&&!cv&&document.addEventListener("click",function(t){if(Ff)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Ff=!1,!1},!0);var zs=function(e){if(me){e=e.touches?e.touches[0]:e;var n=hH(e.clientX,e.clientY);if(n){var r={};for(var o in e)e.hasOwnProperty(o)&&(r[o]=e[o]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[er]._onDragOver(r)}}},pH=function(e){me&&me.parentNode[er]._isOutsideThisEl(e.target)};function Be(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=_o({},e),t[er]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return kv(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Be.supportPointer!==!1&&"PointerEvent"in window&&(!Hc||D0),emptyInsertThreshold:5};Kc.initializePlugins(this,t,n);for(var r in n)!(r in e)&&(e[r]=n[r]);vv(e);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=e.forceFallback?!1:uH,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?st(t,"pointerdown",this._onTapStart):(st(t,"mousedown",this._onTapStart),st(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(st(t,"dragover",this),st(t,"dragenter",this)),Bf.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),_o(this,sH())}Be.prototype={constructor:Be,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(cl=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,me):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,r=this.el,o=this.options,s=o.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,c=(l||e).target,d=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||c,u=o.filter;if(EH(r),!me&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||o.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Hc&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=di(c,o.draggable,r,!1),!(c&&c.animated)&&Lf!==c)){if(al=Or(c),Xc=Or(c,o.draggable),typeof u=="function"){if(u.call(this,e,c,this)){An({sortable:n,rootEl:d,name:"filter",targetEl:c,toEl:r,fromEl:r}),tr("filter",n,{evt:e}),s&&e.preventDefault();return}}else if(u&&(u=u.split(",").some(function(f){if(f=di(d,f.trim(),r,!1),f)return An({sortable:n,rootEl:f,name:"filter",targetEl:c,fromEl:r,toEl:r}),tr("filter",n,{evt:e}),!0}),u)){s&&e.preventDefault();return}o.handle&&!di(d,o.handle,r,!1)||this._prepareDragStart(e,l,c)}}},_prepareDragStart:function(e,n,r){var o=this,s=o.el,a=o.options,l=s.ownerDocument,c;if(r&&!me&&r.parentNode===s){var d=qt(r);if(Lt=s,me=r,Bt=me.parentNode,Vs=me.nextSibling,Lf=r,Af=a.group,Be.dragged=me,$s={target:me,clientX:(n||e).clientX,clientY:(n||e).clientY},wv=$s.clientX-d.left,Cv=$s.clientY-d.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,me.style["will-change"]="all",c=function(){if(tr("delayEnded",o,{evt:e}),Be.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!lv&&o.nativeDraggable&&(me.draggable=!0),o._triggerDragStart(e,n),An({sortable:o,name:"choose",originalEvent:e}),ur(me,a.chosenClass,!0)},a.ignore.split(",").forEach(function(u){hv(me,u.trim(),B0)}),st(l,"dragover",zs),st(l,"mousemove",zs),st(l,"touchmove",zs),a.supportPointer?(st(l,"pointerup",o._onDrop),!this.nativeDraggable&&st(l,"pointercancel",o._onDrop)):(st(l,"mouseup",o._onDrop),st(l,"touchend",o._onDrop),st(l,"touchcancel",o._onDrop)),lv&&this.nativeDraggable&&(this.options.touchStartThreshold=4,me.draggable=!0),tr("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(jc||wo))){if(Be.eventCanceled){this._onDrop();return}a.supportPointer?(st(l,"pointerup",o._disableDelayedDrag),st(l,"pointercancel",o._disableDelayedDrag)):(st(l,"mouseup",o._disableDelayedDrag),st(l,"touchend",o._disableDelayedDrag),st(l,"touchcancel",o._disableDelayedDrag)),st(l,"mousemove",o._delayedDragTouchMoveHandler),st(l,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&st(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(c,a.delay)}else c()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){me&&B0(me),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;it(e,"mouseup",this._disableDelayedDrag),it(e,"touchend",this._disableDelayedDrag),it(e,"touchcancel",this._disableDelayedDrag),it(e,"pointerup",this._disableDelayedDrag),it(e,"pointercancel",this._disableDelayedDrag),it(e,"mousemove",this._delayedDragTouchMoveHandler),it(e,"touchmove",this._delayedDragTouchMoveHandler),it(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?st(document,"pointermove",this._onTouchMove):n?st(document,"touchmove",this._onTouchMove):st(document,"mousemove",this._onTouchMove):(st(me,"dragend",this),st(Lt,"dragstart",this._onDragStart));try{document.selection?jf(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(ll=!1,Lt&&me){tr("dragStarted",this,{evt:n}),this.nativeDraggable&&st(document,"dragover",pH);var r=this.options;!e&&ur(me,r.dragClass,!1),ur(me,r.ghostClass,!0),Be.active=this,e&&this._appendGhost(),An({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(ui){this._lastX=ui.clientX,this._lastY=ui.clientY,xv();for(var e=document.elementFromPoint(ui.clientX,ui.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ui.clientX,ui.clientY),e!==n);)n=e;if(me.parentNode[er]._isOutsideThisEl(e),n)do{if(n[er]){var r=void 0;if(r=n[er]._onDragOver({clientX:ui.clientX,clientY:ui.clientY,target:e,rootEl:n}),r&&!this.options.dragoverBubble)break}e=n}while(n=uv(n));Tv()}},_onTouchMove:function(e){if($s){var n=this.options,r=n.fallbackTolerance,o=n.fallbackOffset,s=e.touches?e.touches[0]:e,a=He&&il(He,!0),l=He&&a&&a.a,c=He&&a&&a.d,d=Yf&&xn&&mv(xn),u=(s.clientX-$s.clientX+o.x)/(l||1)+(d?d[0]-A0[0]:0)/(l||1),f=(s.clientY-$s.clientY+o.y)/(c||1)+(d?d[1]-A0[1]:0)/(c||1);if(!Be.active&&!ll){if(r&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(He){a?(a.e+=u-(O0||0),a.f+=f-(L0||0)):a={a:1,b:0,c:0,d:1,e:u,f};var h="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");$e(He,"webkitTransform",h),$e(He,"mozTransform",h),$e(He,"msTransform",h),$e(He,"transform",h),O0=u,L0=f,ui=s}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!He){var e=this.options.fallbackOnBody?document.body:Lt,n=qt(me,!0,Yf,!0,e),r=this.options;if(Yf){for(xn=e;$e(xn,"position")==="static"&&$e(xn,"transform")==="none"&&xn!==document;)xn=xn.parentNode;xn!==document.body&&xn!==document.documentElement?(xn===document&&(xn=Ii()),n.top+=xn.scrollTop,n.left+=xn.scrollLeft):xn=Ii(),A0=mv(xn)}He=me.cloneNode(!0),ur(He,r.ghostClass,!1),ur(He,r.fallbackClass,!0),ur(He,r.dragClass,!0),$e(He,"transition",""),$e(He,"transform",""),$e(He,"box-sizing","border-box"),$e(He,"margin",0),$e(He,"top",n.top),$e(He,"left",n.left),$e(He,"width",n.width),$e(He,"height",n.height),$e(He,"opacity","0.8"),$e(He,"position",Yf?"absolute":"fixed"),$e(He,"zIndex","100000"),$e(He,"pointerEvents","none"),Be.ghost=He,e.appendChild(He),$e(He,"transform-origin",wv/parseInt(He.style.width)*100+"% "+Cv/parseInt(He.style.height)*100+"%")}},_onDragStart:function(e,n){var r=this,o=e.dataTransfer,s=r.options;if(tr("dragStart",this,{evt:e}),Be.eventCanceled){this._onDrop();return}tr("setupClone",this),Be.eventCanceled||(Ft=_v(me),Ft.removeAttribute("id"),Ft.draggable=!1,Ft.style["will-change"]="",this._hideClone(),ur(Ft,this.options.chosenClass,!1),Be.clone=Ft),r.cloneId=jf(function(){tr("clone",r),!Be.eventCanceled&&(r.options.removeCloneOnHide||Lt.insertBefore(Ft,me),r._hideClone(),An({sortable:r,name:"clone"}))}),!n&&ur(me,s.dragClass,!0),n?(Ff=!0,r._loopId=setInterval(r._emulateDragOver,50)):(it(document,"mouseup",r._onDrop),it(document,"touchend",r._onDrop),it(document,"touchcancel",r._onDrop),o&&(o.effectAllowed="move",s.setData&&s.setData.call(r,o,me)),st(document,"drop",r),$e(me,"transform","translateZ(0)")),ll=!0,r._dragStartId=jf(r._dragStarted.bind(r,n,e)),st(document,"selectstart",r),Zc=!0,window.getSelection().removeAllRanges(),Hc&&$e(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,r=e.target,o,s,a,l=this.options,c=l.group,d=Be.active,u=Af===c,f=l.sort,h=gn||d,g,p=this,y=!1;if(F0)return;function m(A,T){tr(A,p,Pi({evt:e,isOwner:u,axis:g?"vertical":"horizontal",revert:a,dragRect:o,targetRect:s,canSort:f,fromSortable:h,target:r,completed:E,onMove:function(F,B){return Gf(Lt,n,me,o,F,qt(F),e,B)},changed:w},T))}function b(){m("dragOverAnimationCapture"),p.captureAnimationState(),p!==h&&h.captureAnimationState()}function E(A){return m("dragOverCompleted",{insertion:A}),A&&(u?d._hideClone():d._showClone(p),p!==h&&(ur(me,gn?gn.options.ghostClass:d.options.ghostClass,!1),ur(me,l.ghostClass,!0)),gn!==p&&p!==Be.active?gn=p:p===Be.active&&gn&&(gn=null),h===p&&(p._ignoreWhileAnimating=r),p.animateAll(function(){m("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(r===me&&!me.animated||r===n&&!r.animated)&&(cl=null),!l.dragoverBubble&&!e.rootEl&&r!==document&&(me.parentNode[er]._isOutsideThisEl(e.target),!A&&zs(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),y=!0}function w(){fr=Or(me),Jo=Or(me,l.draggable),An({sortable:p,name:"change",toEl:n,newIndex:fr,newDraggableIndex:Jo,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=di(r,l.draggable,n,!0),m("dragOver"),Be.eventCanceled)return y;if(me.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||p._ignoreWhileAnimating===r)return E(!1);if(Ff=!1,d&&!l.disabled&&(u?f||(a=Bt!==Lt):gn===this||(this.lastPutMode=Af.checkPull(this,d,me,e))&&c.checkPut(this,d,me,e))){if(g=this._getDirection(e,r)==="vertical",o=qt(me),m("dragOverValid"),Be.eventCanceled)return y;if(a)return Bt=Lt,b(),this._hideClone(),m("revert"),Be.eventCanceled||(Vs?Lt.insertBefore(me,Vs):Lt.appendChild(me)),E(!0);var _=P0(n,l.draggable);if(!_||_H(e,g,this)&&!_.animated){if(_===me)return E(!1);if(_&&n===e.target&&(r=_),r&&(s=qt(r)),Gf(Lt,n,me,o,r,s,e,!!r)!==!1)return b(),_&&_.nextSibling?n.insertBefore(me,_.nextSibling):n.appendChild(me),Bt=n,w(),E(!0)}else if(_&&yH(e,g,this)){var C=ol(n,0,l,!0);if(C===me)return E(!1);if(r=C,s=qt(r),Gf(Lt,n,me,o,r,s,e,!1)!==!1)return b(),n.insertBefore(me,C),Bt=n,w(),E(!0)}else if(r.parentNode===n){s=qt(r);var S=0,k,v=me.parentNode!==n,x=!fH(me.animated&&me.toRect||o,r.animated&&r.toRect||s,g),M=g?"top":"left",I=pv(r,"top","top")||pv(me,"top","top"),N=I?I.scrollTop:void 0;cl!==r&&(k=s[M],Jc=!1,Vf=!x&&l.invertSwap||v),S=bH(e,r,s,g,x?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,Vf,cl===r);var L;if(S!==0){var $=Or(me);do $-=S,L=Bt.children[$];while(L&&($e(L,"display")==="none"||L===He))}if(S===0||L===r)return E(!1);cl=r,qc=S;var D=r.nextElementSibling,R=!1;R=S===1;var O=Gf(Lt,n,me,o,r,s,e,R);if(O!==!1)return(O===1||O===-1)&&(R=O===1),F0=!0,setTimeout(gH,30),b(),R&&!D?n.appendChild(me):r.parentNode.insertBefore(me,R?D:r),I&&yv(I,0,N-I.scrollTop),Bt=me.parentNode,k!==void 0&&!Vf&&($f=Math.abs(k-qt(r)[M])),w(),E(!0)}if(n.contains(me))return E(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){it(document,"mousemove",this._onTouchMove),it(document,"touchmove",this._onTouchMove),it(document,"pointermove",this._onTouchMove),it(document,"dragover",zs),it(document,"mousemove",zs),it(document,"touchmove",zs)},_offUpEvents:function(){var e=this.el.ownerDocument;it(e,"mouseup",this._onDrop),it(e,"touchend",this._onDrop),it(e,"pointerup",this._onDrop),it(e,"pointercancel",this._onDrop),it(e,"touchcancel",this._onDrop),it(document,"selectstart",this)},_onDrop:function(e){var n=this.el,r=this.options;if(fr=Or(me),Jo=Or(me,r.draggable),tr("drop",this,{evt:e}),Bt=me&&me.parentNode,fr=Or(me),Jo=Or(me,r.draggable),Be.eventCanceled){this._nulling();return}ll=!1,Vf=!1,Jc=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),V0(this.cloneId),V0(this._dragStartId),this.nativeDraggable&&(it(document,"drop",this),it(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Hc&&$e(document.body,"user-select",""),$e(me,"transform",""),e&&(Zc&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),He&&He.parentNode&&He.parentNode.removeChild(He),(Lt===Bt||gn&&gn.lastPutMode!=="clone")&&Ft&&Ft.parentNode&&Ft.parentNode.removeChild(Ft),me&&(this.nativeDraggable&&it(me,"dragend",this),B0(me),me.style["will-change"]="",Zc&&!ll&&ur(me,gn?gn.options.ghostClass:this.options.ghostClass,!1),ur(me,this.options.chosenClass,!1),An({sortable:this,name:"unchoose",toEl:Bt,newIndex:null,newDraggableIndex:null,originalEvent:e}),Lt!==Bt?(fr>=0&&(An({rootEl:Bt,name:"add",toEl:Bt,fromEl:Lt,originalEvent:e}),An({sortable:this,name:"remove",toEl:Bt,originalEvent:e}),An({rootEl:Bt,name:"sort",toEl:Bt,fromEl:Lt,originalEvent:e}),An({sortable:this,name:"sort",toEl:Bt,originalEvent:e})),gn&&gn.save()):fr!==al&&fr>=0&&(An({sortable:this,name:"update",toEl:Bt,originalEvent:e}),An({sortable:this,name:"sort",toEl:Bt,originalEvent:e})),Be.active&&((fr==null||fr===-1)&&(fr=al,Jo=Xc),An({sortable:this,name:"end",toEl:Bt,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){tr("nulling",this),Lt=me=Bt=He=Vs=Ft=Lf=qo=$s=ui=Zc=fr=Jo=al=Xc=cl=qc=gn=Af=Be.dragged=Be.ghost=Be.clone=Be.active=null,zf.forEach(function(e){e.checked=!0}),zf.length=O0=L0=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":me&&(this._onDragOver(e),mH(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,r=this.el.children,o=0,s=r.length,a=this.options;o<s;o++)n=r[o],di(n,a.draggable,this.el,!1)&&e.push(n.getAttribute(a.dataIdAttr)||CH(n));return e},sort:function(e,n){var r={},o=this.el;this.toArray().forEach(function(s,a){var l=o.children[a];di(l,this.options.draggable,o,!1)&&(r[s]=l)},this),n&&this.captureAnimationState(),e.forEach(function(s){r[s]&&(o.removeChild(r[s]),o.appendChild(r[s]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return di(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var r=this.options;if(n===void 0)return r[e];var o=Kc.modifyOption(this,e,n);typeof o<"u"?r[e]=o:r[e]=n,e==="group"&&vv(r)},destroy:function(){tr("destroy",this);var e=this.el;e[er]=null,it(e,"mousedown",this._onTapStart),it(e,"touchstart",this._onTapStart),it(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(it(e,"dragover",this),it(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Bf.splice(Bf.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!qo){if(tr("hideClone",this),Be.eventCanceled)return;$e(Ft,"display","none"),this.options.removeCloneOnHide&&Ft.parentNode&&Ft.parentNode.removeChild(Ft),qo=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(qo){if(tr("showClone",this),Be.eventCanceled)return;me.parentNode==Lt&&!this.options.group.revertClone?Lt.insertBefore(Ft,me):Vs?Lt.insertBefore(Ft,Vs):Lt.appendChild(Ft),this.options.group.revertClone&&this.animate(me,Ft),$e(Ft,"display",""),qo=!1}}};function mH(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Gf(t,e,n,r,o,s,a,l){var c,d=t[er],u=d.options.onMove,f;return window.CustomEvent&&!wo&&!jc?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=e,c.from=t,c.dragged=n,c.draggedRect=r,c.related=o||e,c.relatedRect=s||qt(e),c.willInsertAfter=l,c.originalEvent=a,t.dispatchEvent(c),u&&(f=u.call(d,c,a)),f}function B0(t){t.draggable=!1}function gH(){F0=!1}function yH(t,e,n){var r=qt(ol(n.el,0,n.options,!0)),o=bv(n.el,n.options,He),s=10;return e?t.clientX<o.left-s||t.clientY<r.top&&t.clientX<r.right:t.clientY<o.top-s||t.clientY<r.bottom&&t.clientX<r.left}function _H(t,e,n){var r=qt(P0(n.el,n.options.draggable)),o=bv(n.el,n.options,He),s=10;return e?t.clientX>o.right+s||t.clientY>r.bottom&&t.clientX>r.left:t.clientY>o.bottom+s||t.clientX>r.right&&t.clientY>r.top}function bH(t,e,n,r,o,s,a,l){var c=r?t.clientY:t.clientX,d=r?n.height:n.width,u=r?n.top:n.left,f=r?n.bottom:n.right,h=!1;if(!a){if(l&&$f<d*o){if(!Jc&&(qc===1?c>u+d*s/2:c<f-d*s/2)&&(Jc=!0),Jc)h=!0;else if(qc===1?c<u+$f:c>f-$f)return-qc}else if(c>u+d*(1-o)/2&&c<f-d*(1-o)/2)return wH(e)}return h=h||a,h&&(c<u+d*s/2||c>f-d*s/2)?c>u+d/2?1:-1:0}function wH(t){return Or(me)<Or(t)?1:-1}function CH(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function EH(t){zf.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&zf.push(r)}}function jf(t){return setTimeout(t,0)}function V0(t){return clearTimeout(t)}Wf&&st(document,"touchmove",function(t){(Be.active||ll)&&t.cancelable&&t.preventDefault()}),Be.utils={on:st,off:it,css:$e,find:hv,is:function(e,n){return!!di(e,n,e,!1)},extend:iH,throttle:gv,closest:di,toggleClass:ur,clone:_v,index:Or,nextTick:jf,cancelNextTick:V0,detectDirection:kv,getChild:ol,expando:er},Be.get=function(t){return t[er]},Be.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(Be.utils=Pi(Pi({},Be.utils),r.utils)),Kc.mount(r)})},Be.create=function(t,e){return new Be(t,e)},Be.version=nH;var Jt=[],Qc,$0,z0=!1,W0,Y0,Hf,ed;function SH(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?st(document,"dragover",this._handleAutoScroll):this.options.supportPointer?st(document,"pointermove",this._handleFallbackAutoScroll):r.touches?st(document,"touchmove",this._handleFallbackAutoScroll):st(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?it(document,"dragover",this._handleAutoScroll):(it(document,"pointermove",this._handleFallbackAutoScroll),it(document,"touchmove",this._handleFallbackAutoScroll),it(document,"mousemove",this._handleFallbackAutoScroll)),Mv(),Uf(),oH()},nulling:function(){Hf=$0=Qc=z0=ed=W0=Y0=null,Jt.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var o=this,s=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,l=document.elementFromPoint(s,a);if(Hf=n,r||this.options.forceAutoScrollFallback||jc||wo||Hc){G0(n,this.options,l,r);var c=Zo(l,!0);z0&&(!ed||s!==W0||a!==Y0)&&(ed&&Mv(),ed=setInterval(function(){var d=Zo(document.elementFromPoint(s,a),!0);d!==c&&(c=d,Uf()),G0(n,o.options,d,r)},10),W0=s,Y0=a)}else{if(!this.options.bubbleScroll||Zo(l,!0)===Ii()){Uf();return}G0(n,this.options,Zo(l,!1),!1)}}},_o(t,{pluginName:"scroll",initializeByDefault:!0})}function Uf(){Jt.forEach(function(t){clearInterval(t.pid)}),Jt=[]}function Mv(){clearInterval(ed)}var G0=gv(function(t,e,n,r){if(e.scroll){var o=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,l=e.scrollSpeed,c=Ii(),d=!1,u;$0!==n&&($0=n,Uf(),Qc=e.scroll,u=e.scrollFn,Qc===!0&&(Qc=Zo(n,!0)));var f=0,h=Qc;do{var g=h,p=qt(g),y=p.top,m=p.bottom,b=p.left,E=p.right,w=p.width,_=p.height,C=void 0,S=void 0,k=g.scrollWidth,v=g.scrollHeight,x=$e(g),M=g.scrollLeft,I=g.scrollTop;g===c?(C=w<k&&(x.overflowX==="auto"||x.overflowX==="scroll"||x.overflowX==="visible"),S=_<v&&(x.overflowY==="auto"||x.overflowY==="scroll"||x.overflowY==="visible")):(C=w<k&&(x.overflowX==="auto"||x.overflowX==="scroll"),S=_<v&&(x.overflowY==="auto"||x.overflowY==="scroll"));var N=C&&(Math.abs(E-o)<=a&&M+w<k)-(Math.abs(b-o)<=a&&!!M),L=S&&(Math.abs(m-s)<=a&&I+_<v)-(Math.abs(y-s)<=a&&!!I);if(!Jt[f])for(var $=0;$<=f;$++)Jt[$]||(Jt[$]={});(Jt[f].vx!=N||Jt[f].vy!=L||Jt[f].el!==g)&&(Jt[f].el=g,Jt[f].vx=N,Jt[f].vy=L,clearInterval(Jt[f].pid),(N!=0||L!=0)&&(d=!0,Jt[f].pid=setInterval((function(){r&&this.layer===0&&Be.active._onTouchMove(Hf);var D=Jt[this.layer].vy?Jt[this.layer].vy*l:0,R=Jt[this.layer].vx?Jt[this.layer].vx*l:0;typeof u=="function"&&u.call(Be.dragged.parentNode[er],R,D,t,Hf,Jt[this.layer].el)!=="continue"||yv(Jt[this.layer].el,R,D)}).bind({layer:f}),24))),f++}while(e.bubbleScroll&&h!==c&&(h=Zo(h,!1)));z0=d}},30),Rv=function(e){var n=e.originalEvent,r=e.putSortable,o=e.dragEl,s=e.activeSortable,a=e.dispatchSortableEvent,l=e.hideGhostForTarget,c=e.unhideGhostForTarget;if(n){var d=r||s;l();var u=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,f=document.elementFromPoint(u.clientX,u.clientY);c(),d&&!d.el.contains(f)&&(a("spill"),this.onSpill({dragEl:o,putSortable:r}))}};function j0(){}j0.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var o=ol(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:Rv},_o(j0,{pluginName:"revertOnSpill"});function H0(){}H0.prototype={onSpill:function(e){var n=e.dragEl,r=e.putSortable,o=r||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:Rv},_o(H0,{pluginName:"removeOnSpill"}),Be.mount(new SH),Be.mount(H0,j0);const kH=(t,e={},n=!0,r,o,s=a=>a)=>{const a=i.reactive({tableData:[],pageable:{page:1,size:10,total:0},searchParam:{},searchInitParam:{},totalParam:{},loading:!1}),l=i.computed({get:()=>({page:a.pageable.page,size:a.pageable.size}),set:y=>{console.log("我是分页更新之后的值",y)}}),c=async()=>{if(a.loading=!0,!t){a.loading=!1;return}try{Object.assign(a.totalParam,e,n?l.value:{});for(const m in a.searchParam)a.searchParam[m]===""&&delete a.searchParam[m];let y=await t(s({...a.searchInitParam,...a.totalParam}));if(r&&(y=await r(y)),a.tableData=n?y.list:y,n){const{currentPage:m,pageSize:b,total:E}=y;u({page:m,size:b,total:E})}}catch(y){o&&o(y)}finally{a.loading=!1}},d=()=>{a.totalParam={},a.searchInitParam={},e={};const y={};for(const m in a.searchParam)(a.searchParam[m]||a.searchParam[m]===!1||a.searchParam[m]===0)&&(y[m]=a.searchParam[m]);Object.assign(a.totalParam,y,n?l.value:{})},u=y=>{Object.assign(a.pageable,y)},f=()=>{a.pageable.page=1,d(),c().then()},h=()=>{a.pageable.page=1,a.searchParam={...a.searchInitParam},d(),c().then()},g=y=>{a.pageable.page=1,a.pageable.size=y,c().then()},p=y=>{a.pageable.page=y,c().then()};return{...i.toRefs(a),getTableList:c,search:f,reset:h,handleSizeChange:g,handleCurrentChange:p,updatedTotalParam:d}},vH=(t="id",e)=>{const n=i.ref(!1),r=i.ref([]),o=i.computed(()=>{const a=[];return r.value.forEach(l=>a.push(nr(l,t))),a});return{isSelected:n,selectedList:r,selectedListIds:o,selectionChange:a=>{a.length?n.value=!0:n.value=!1,r.value=a,e&&e(a)}}},xH={class:"w-100"},TH={key:1,class:"cascader-select-empty"},MH={key:2,class:"loading"},U0=Mt(i.defineComponent({name:"CascaderLoadMore",__name:"CascaderLoadMore",props:i.mergeModels({onChange:{type:Function,required:!1},initialValue:{type:[String,Number,Array],required:!1},pageSize:{type:Number,default:10},requestFunction:{type:Function,required:!0},handleOptionsFunction:{type:Function,required:!0},placeholder:{type:String,default:"输入关键字搜索名称"},forceSearch:{type:Boolean,default:!0},initialOptions:{type:Array,required:!1,default:()=>[]},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},collapseTagsTooltip:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},cascaderProps:{type:Object,default:()=>({})},placement:{type:String,default:"bottom-start"},trigger:{type:String,default:"click"},popperClass:{type:String},teleported:{type:Boolean,default:!1},noDataText:{type:String,default:"暂无数据"}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["change","removeTag"],["update:modelValue"]),setup(t,{expose:e,emit:n}){const r=t,o=i.useModel(t,"modelValue"),s=i.ref(o.value||[]),a=i.ref(!1),l=i.ref({page:1,size:r.pageSize}),c=i.ref(void 0),d=i.ref(!1),u=i.ref(!0),f=i.ref(r.initialOptions||[]),h=i.ref(r.initialOptions||[]),g=i.ref(void 0),p=i.ref(!1),y={expandTrigger:"hover",checkStrictly:!1,multiple:r.multiple,emitPath:!0,...r.cascaderProps},m=i.ref(),b=i.ref(),E=()=>{a.value=!0},w=()=>{a.value=!1},_=F=>{const B=new Map;return(F||[]).forEach(P=>{const Y=`${P.value}`;B.has(Y)||B.set(Y,P)}),Array.from(B.values())};function C(F){const B=[];function P(Y,G=""){const Q=G&&(r.cascaderProps.emitPath??!0)?`${G}/${Y.label}`:Y.label;B.push({...Y,value:Y.value,label:Q}),Y.children&&Y.children.length>0&&Y.children.forEach(H=>P(H,Q))}return F.forEach(Y=>P(Y)),B}const S=async F=>{var G;if(!r.forceSearch&&!F)return;const B=g.value===F||!g.value&&!F;if(B||(l.value.page=1),B&&c.value!==void 0&&l.value.page>c.value&&!p.value)return;p.value=!1,d.value=!0,h.value.length===0&&(u.value=!0);const Y=await r.requestFunction(l.value.page,l.value.size,F);if(Y&&Object.keys(Y).length){c.value=Y.totalPage;const Q=(G=Y==null?void 0:Y.list)==null?void 0:G.map(r.handleOptionsFunction);B&&l.value.page!==1?h.value=_([...h.value,...Q]):h.value=Q||[],s.value=Mn(o.value),f.value=C(h.value)}i.nextTick(()=>{V()}),g.value=F,d.value=!1,h.value.length!==0&&(u.value=!1)},k=()=>{l.value.page=l.value.page+1,S(g.value)},v=async F=>{o.value=F,s.value=F,await i.nextTick();const B=x(F),P=r.onChange;P&&P(F,B)},x=F=>{const B=F||o.value;return r.multiple?f.value.filter(P=>(B||[]).includes(P.value)):f.value.find(P=>P.value===B)},M=()=>{o.value=r.initialValue,s.value=r.initialValue,l.value.page=1,l.value.size=r.pageSize,f.value=r.initialOptions||[],h.value=r.initialOptions||[],c.value=void 0,g.value=void 0},I=n;i.watch(()=>r.initialOptions,()=>{f.value=C(r.initialOptions),console.log("options.value",f.value),h.value=r.initialOptions},{immediate:!0});const N=F=>{I("removeTag",F)},L=F=>{p.value=F},$=i.ref(null),D=i.ref(null),R=()=>{if(!a.value)return;const F=b.value.popperRef.contentRef,B=F==null?void 0:F.querySelector(".el-cascader-panel .el-scrollbar__wrap");B&&($.value=B,D.value=()=>A(B),B.addEventListener("scroll",D.value))},O=()=>{$.value&&D.value&&($.value.removeEventListener("scroll",D.value),$.value=null,D.value=null)},A=F=>{const{scrollTop:B,scrollHeight:P,clientHeight:Y}=F;let G=P-B;Y+10>G&&k()};i.nextTick(()=>R()),i.watch(a,F=>{F?(console.log("visible",F),i.nextTick(()=>R())):O()}),i.watch(h,F=>{F!=null&&F.length&&a.value?i.nextTick(()=>R()):O()});const T=async F=>{(r.cascaderProps.emitPath??!0)&&Array.isArray(F)?r.multiple?o.value=F.map(Y=>Y.at(-1)):o.value=F.at(-1):o.value=Mn(s.value),await i.nextTick();const B=x(o.value),P=r.onChange;P&&P(F,B)},V=()=>{var Y;const F=b.value.popperRef.contentRef,B=(Y=m.value)==null?void 0:Y.$el,P=F==null?void 0:F.querySelector(".cascader-select-empty");if(B&&P){const G=B.offsetWidth;P.style.width=`${G}px`}};return e({reset:M,getSelectedOption:x,remoteMethod:S,handleRequestParamsChanged:L,options:f,cascderOptions:h}),(F,B)=>i.withDirectives((i.openBlock(),i.createElementBlock("div",xH,[i.createVNode(i.unref(S3),{ref_key:"popoverRef",ref:b,teleported:t.teleported,placement:r.placement,trigger:r.trigger,"popper-class":"warp-cascade-panel "+r.popperClass,visible:a.value},{reference:i.withCtx(()=>[i.createVNode(i.unref(PC),i.mergeProps({ref_key:"remoteSelectRef",ref:m,modelValue:o.value,"onUpdate:modelValue":B[0]||(B[0]=P=>o.value=P),multiple:t.multiple,placeholder:t.placeholder,"remote-method":S,teleported:!0,clearable:t.clearable,"collapse-tags":t.collapseTags,"collapse-tags-tooltip":t.collapseTagsTooltip,filterable:"",height:"300",remote:"","remote-show-suffix":"","reserve-keyword":"","popper-class":"hidden-dropdown",class:"cascader-select"},F.$attrs,{onClick:E,onChange:v,onRemoveTag:N}),{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.value,P=>(i.openBlock(),i.createBlock(i.unref(IC),{key:P.value,label:P.label,value:P.value},null,8,["label","value"]))),128))]),_:1},16,["modelValue","multiple","placeholder","clearable","collapse-tags","collapse-tags-tooltip"])]),default:i.withCtx(()=>[!u.value&&h.value.length>0?(i.openBlock(),i.createBlock(i.unref(yF),{key:0,modelValue:s.value,"onUpdate:modelValue":B[1]||(B[1]=P=>s.value=P),border:!1,props:y,options:h.value,class:"select-cascader-panel",onChange:T},null,8,["modelValue","options"])):(i.openBlock(),i.createElementBlock("div",TH,i.toDisplayString(t.noDataText),1)),d.value?(i.openBlock(),i.createElementBlock("div",MH,"加载中...")):i.createCommentVNode("",!0)]),_:1},8,["teleported","placement","trigger","popper-class","visible"])])),[[i.unref(ia),w]])}})),RH={class:"search-form-item"},DH=$t(i.defineComponent({name:"SearchFormItem",__name:"SearchFormItem",props:{column:{},searchParam:{}},emits:["search"],setup(t,{emit:e}){i.useCssVars(m=>({"6720d772":f.value}));const n=t,r=e,o=i.computed(()=>n.searchParam),s=i.computed(()=>{var m,b,E;return{label:((m=n.column.fieldNames)==null?void 0:m.label)??"label",value:((b=n.column.fieldNames)==null?void 0:b.value)??"value",children:((E=n.column.fieldNames)==null?void 0:E.children)??"children"}}),a=i.inject("enumMap",i.ref(new Map)),l=i.computed(()=>{var b;let m=a.value.get(n.column.prop);return m?(((b=n.column.search)==null?void 0:b.el)==="select-v2"&&n.column.fieldNames&&(m=m.map(E=>({...E,label:E[s.value.label],value:E[s.value.value]}))),m):[]}),c=i.computed(()=>{var m,b;return((b=(m=n.column.search)==null?void 0:m.props)==null?void 0:b.options)??l.value??[]}),d=i.computed(()=>{var C,S;const m=s.value.label,b=s.value.value,E=s.value.children,w=(C=n.column.search)==null?void 0:C.el;let _=((S=n.column.search)==null?void 0:S.props)??{};return w==="tree-select"&&(_={..._,props:{..._.props,label:m,children:E},nodeKey:b}),w==="cascader"&&(_={..._,props:{..._.props,label:m,value:b,children:E}}),_}),u=i.computed(()=>{var E,w,_,C,S,k,v;const m=n.column.search;return["datetimerange","daterange","monthrange"].includes((E=m==null?void 0:m.props)==null?void 0:E.type)||(w=m==null?void 0:m.props)!=null&&w.isRange?{rangeSeparator:((_=m==null?void 0:m.props)==null?void 0:_.rangeSeparator)??"-",startPlaceholder:((C=m==null?void 0:m.props)==null?void 0:C.startPlaceholder)??"开始时间",endPlaceholder:((S=m==null?void 0:m.props)==null?void 0:S.endPlaceholder)??"结束时间"}:{placeholder:((k=m==null?void 0:m.props)==null?void 0:k.placeholder)??((v=m==null?void 0:m.el)!=null&&v.includes("input")?"请输入":"请选择")}}),f=i.computed(()=>{var _,C;const m=n.column.search,b=o.value[(m==null?void 0:m.key)??jn(n.column.prop)],E=m==null?void 0:m.el,w=(_=m==null?void 0:m.props)==null?void 0:_.placeholder;if(m!=null&&m.width)if(rd(m==null?void 0:m.width)){if(m==null?void 0:m.width(b))return(m==null?void 0:m.width(b))+"px"}else return(m==null?void 0:m.width)+"px";if(b&&b.length!==0&&["select","select-v2","tree-select","cascader"].includes(E||"")){if(cn(b)){let v=c.value;const x=[];if(b.forEach(M=>{const I=v.find(L=>L[s.value.value]===M);x.push(I?I[s.value.label]:M);const N=I[s.value.children]??c.value;v=I?N:[]}),(C=m==null?void 0:m.props)!=null&&C.multiple){const N=ws(x[0])+42;return b.length>1?N+26+ws("+ "+(b.length-1))+"px":N+"px"}return ws(x.join(" / "))+"px"}let S=c.value.find(v=>v[s.value.value]===b);const k=S?S[s.value.label]:b;return ws(k)+"px"}else return w?ws(w)+"px":["date-picker","time-picker","time-select"].includes(E||"")?"210px":"100px"}),h=i.computed(()=>{var m,b,E,w,_;return(E=(b=(m=n.column)==null?void 0:m.search)==null?void 0:b.props)!=null&&E.multiple&&((_=(w=n.column)==null?void 0:w.search)==null?void 0:_.el)==="select"?{collapseTags:!0,collapseTagsTooltip:!0}:{}}),g=i.computed(()=>{var b;const m=n.column.search;return((b=m==null?void 0:m.props)==null?void 0:b.clearable)??((m==null?void 0:m.defaultValue)==null||!1)}),p=m=>{var b,E,w,_,C,S,k,v,x;if(((w=(E=(b=n.column)==null?void 0:b.search)==null?void 0:E.props)==null?void 0:w.type)==="daterange"){const{searchParam:M}=i.toRefs(n);if(m!=null&&m.length){const I=((S=(C=(_=n.column)==null?void 0:_.search)==null?void 0:C.props)==null?void 0:S.beginTime)||"beginTime",N=((x=(v=(k=n.column)==null?void 0:k.search)==null?void 0:v.props)==null?void 0:x.endTime)||"endTime";M.value[I]=m[0],M.value[N]=m[1]}else delete M.value.beginTime,delete M.value.endTime}(m==null||m==="")&&r("search"),m instanceof Array&&!m.length&&r("search")},y=()=>{var m;["input","input-number"].includes(((m=n.column.search)==null?void 0:m.el)||"")&&r("search")};return(m,b)=>{var E,w,_,C,S,k,v,x,M,I,N;return i.openBlock(),i.createElementBlock("div",RH,[((E=m.column.search)==null?void 0:E.type)!=="custom"?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(((w=m.column.search)==null?void 0:w.render)??`el-${(_=m.column.search)==null?void 0:_.el}`),i.mergeProps({key:0},{...d.value,...u.value,searchParam:o.value,clearable:g.value,...h.value},{modelValue:o.value[((C=m.column.search)==null?void 0:C.key)??i.unref(jn)(m.column.prop)],"onUpdate:modelValue":b[0]||(b[0]=L=>{var $;return o.value[(($=m.column.search)==null?void 0:$.key)??i.unref(jn)(m.column.prop)]=L}),modelModifiers:{trim:!0},data:((S=m.column.search)==null?void 0:S.el)==="tree-select"?l.value:[],options:c.value,"prefix-icon":(v=(k=m.column.search)==null?void 0:k.props)==null?void 0:v.prefixIcon,onChange:p,onKeyup:i.withKeys(y,["enter"])}),i.createSlots({default:i.withCtx(()=>{var L;return[((L=m.column.search)==null?void 0:L.el)==="select"?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(l.value,($,D)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent("el-option"),{key:D,label:$[s.value.label]??"",value:$[s.value.value]},null,8,["label","value"]))),128)):i.renderSlot(m.$slots,"default",{key:1},void 0,!0)]}),_:2},[((x=m.column.search)==null?void 0:x.el)==="cascader"?{name:"default",fn:i.withCtx(({data:L})=>[i.createElementVNode("span",null,i.toDisplayString(L[s.value.label]),1)]),key:"0"}:void 0]),1040,["modelValue","data","options","prefix-icon"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[((M=m.column.search)==null?void 0:M.el)==="zhCascaderLoadMore"?(i.openBlock(),i.createBlock(i.unref(U0),i.mergeProps({key:0,modelValue:o.value[((I=m.column.search)==null?void 0:I.key)??i.unref(jn)(m.column.prop)],"onUpdate:modelValue":b[1]||(b[1]=L=>{var $;return o.value[(($=m.column.search)==null?void 0:$.key)??i.unref(jn)(m.column.prop)]=L}),modelModifiers:{trim:!0}},(N=m.column.search)==null?void 0:N.props),null,16,["modelValue"])):i.createCommentVNode("",!0)],64))])}}}),[["__scopeId","data-v-5c18e8bc"]]),PH={class:"table-search"},IH={key:0},NH={key:0,class:"operation"},OH=$t(i.defineComponent({name:"SearchForm",__name:"SearchForm",props:{columns:{default:()=>[]},searchParam:{default:()=>({})},search:{},reset:{},isShowResetBtn:{type:Boolean,default:!0},isShowSearchBtn:{type:Boolean,default:!0}},setup(t){const e=t;return(n,r)=>(i.openBlock(),i.createElementBlock("div",PH,[i.createVNode(i.unref(Wb),{ref:"formRef",model:n.searchParam,class:"table-search--left",onSubmit:r[0]||(r[0]=i.withModifiers(()=>{},["prevent"]))},{default:i.withCtx(()=>[i.renderSlot(n.$slots,"default",{},void 0,!0),n.columns.length?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.columns,o=>{var s,a,l;return i.openBlock(),i.createElementBlock(i.Fragment,{key:o.prop},[!i.unref(GR)((s=o.search)==null?void 0:s.isShow)||(a=o.search)!=null&&a.isShow?(i.openBlock(),i.createElementBlock("div",IH,[i.createVNode(i.unref(qh),null,i.createSlots({default:i.withCtx(()=>[i.createVNode(DH,{column:o,"search-param":n.searchParam,onSearch:n.search},null,8,["column","search-param","onSearch"])]),_:2},[(l=o.search)!=null&&l.label?{name:"label",fn:i.withCtx(()=>[i.createVNode(i.unref(M3),{size:4},{default:i.withCtx(()=>{var c,d;return[i.createElementVNode("span",null,i.toDisplayString(`${o.search.label}`),1),(c=o.search)!=null&&c.tooltip?(i.openBlock(),i.createBlock(i.unref(sr),{key:0,effect:"dark",content:(d=o.search)==null?void 0:d.tooltip,placement:"top"},{default:i.withCtx(()=>r[1]||(r[1]=[i.createElementVNode("i",{class:i.normalizeClass("iconfont icon-yiwen")},null,-1)])),_:2},1032,["content"])):i.createCommentVNode("",!0)]}),_:2},1024),r[2]||(r[2]=i.createElementVNode("span",null,":",-1))]),key:"0"}:void 0]),1024)])):i.createCommentVNode("",!0)],64)}),128)),e.isShowSearchBtn?(i.openBlock(),i.createBlock(i.unref(lr),{key:0,type:"primary",class:"table-search--search-btn",onClick:n.search},{icon:i.withCtx(()=>r[3]||(r[3]=[i.createElementVNode("i",{class:"ztable-iconfont icon-zhihao-table-search"},null,-1)])),default:i.withCtx(()=>[r[4]||(r[4]=i.createTextVNode(" 搜索 "))]),_:1},8,["onClick"])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0)]),_:3},8,["model"]),e.isShowResetBtn&&n.columns.length?(i.openBlock(),i.createElementBlock("div",NH,[i.createVNode(i.unref(sr),{class:"box-item",effect:"light",content:"重置",placement:"top"},{default:i.withCtx(()=>[i.createVNode(i.unref(lr),{class:"table-search--reset-btn",onClick:n.reset},{icon:i.withCtx(()=>[i.createVNode(i.unref(Te),{size:14},{default:i.withCtx(()=>[i.createVNode(i.unref(pP))]),_:1})]),_:1},8,["onClick"])]),_:1})])):i.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-e524e82e"]]),LH={class:"el-pagination__total zh-page-total"},AH=$t(i.defineComponent({name:"Pagination",__name:"tablePagination",props:{pageable:{},handleSizeChange:{type:Function},handleCurrentChange:{type:Function}},setup(t){return(e,n)=>e.pageable.total?(i.openBlock(),i.createBlock(i.unref(p3),{key:0,class:"zh-pagination",background:!0,"current-page":e.pageable.page,"page-size":e.pageable.size,total:e.pageable.total,teleported:!1,layout:"slot, sizes, prev, pager, next, jumper",onSizeChange:e.handleSizeChange,onCurrentChange:e.handleCurrentChange},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"zhPaginationLeftSlot",{pageable:e.pageable},()=>[i.createElementVNode("div",LH,"共"+i.toDisplayString(e.pageable.total)+"条数据",1)],!0)]),_:3},8,["current-page","page-size","total","onSizeChange","onCurrentChange"])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-5965b30c"]]);function K0(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!i.isVNode(t)}const FH=i.defineComponent({name:"TableColumn",__name:"TableColumn",props:{column:{},customColumn:{type:Boolean}},setup(t){const e=t,n=i.ref(e.column),r=i.useSlots(),o=i.inject("enumMap",i.ref(new Map)),s=(c,d)=>o.value.get(c.prop)&&c.isFilterEnum?sE(ku(d.row,c.prop),o.value.get(c.prop),c.fieldNames):kz(ku(d.row,c.prop)),a=(c,d)=>sE(ku(d.row,c.prop),o.value.get(c.prop),c.fieldNames,"tag"),l=c=>i.createVNode(i.Fragment,null,[c.isShow&&i.createVNode(Io,i.mergeProps(c,{"class-name":c.wrap&&"table-column--wrap",showOverflowTooltip:c.showOverflowTooltip??c.prop!=="operation"}),{default:d=>{var f,h,g;let u;if(c._children)return c._children.map(p=>l(p));if(c.render)return c.render(d);if(c.prop==="operation"){if(!r[jn(c.prop)]){n.value.width=0;return}const p=((h=(f=r[jn(c.prop)](d))==null?void 0:f.at(0))==null?void 0:h.children)||[],y=k=>Array.from(k).map(v=>{var x,M,I;return(((x=v.type)==null?void 0:x.name)==="ElButton"||((M=v.type)==null?void 0:M.name)==="ZhButton")&&v.children!=="v-if"?v:(I=v.children)!=null&&I.length?y(v.children):null}).filter(Boolean).flat(),m=y(p),b=k=>{let v="";return k.forEach(x=>{v+=x.children.default()[0].children}),ws(v,14)+16*(k.length>0?k.length-1:0)},E=k=>{n.value.hasOperationMaxWidth||(n.value.width=0,n.value.hasOperationMaxWidth=!0);const v=n.value.width;let x=0;k>0&&(x=Math.round(k)+32),x>Number.parseInt((v==null?void 0:v.toString())||"0")&&(n.value.width=x,n.value.hasOperationMaxWidth=!0)};if(m.length<=3||c.expandOperationButtons){const k=Math.ceil(b(m));let v=k;return e.customColumn&&(v=m.length?m.length===1?k+30:k:50),E(v),i.createVNode("div",{class:"operation-container all-action"},[r[jn(c.prop)](d)])}const w=[],_=m.slice(0,2),C=i.createVNode(lr,{link:!0,type:"primary"},{default:()=>[i.createTextVNode("更多")]});w.push(..._),w[3]=i.createVNode(fB,null,{default:()=>C,dropdown:()=>{let k;return i.createVNode(pB,null,K0(k=m.slice(2).map(v=>i.createVNode(hB,null,K0(v)?v:{default:()=>[v]})))?k:{default:()=>[k]})}});const S=b([..._,C]);return E(S),i.createVNode("div",{class:"operation-container"},[w])}return r[jn(c.prop)]?r[jn(c.prop)](d):c.tag?i.createVNode(Rp,{type:a(c,d)},K0(u=s(c,d))?u:{default:()=>[u]}):c.click&&s(c,d)!==Ut?i.createVNode("span",{class:"el-link el-link--primary scan-link",onClick:function(){c.click(d==null?void 0:d.row,d==null?void 0:d.$index)}},[c.formatter?c.formatter(d.row,d.column,d.row[c.prop],d.$index):s(c,d)]):i.createVNode("span",{class:((g=Sz(ku(d.row,c.prop),o.value.get(c.prop)))==null?void 0:g.state)||"text"},[c.formatter?c.formatter(d.row,d.column,d.row[c.prop],d.$index):s(c,d)])},header:d=>c.headerRender?c.headerRender(d):r[`${jn(c.prop)}Header`]?r[`${jn(c.prop)}Header`](d):c.label})]);return(c,d)=>(i.openBlock(),i.createBlock(l,i.normalizeProps(i.guardReactiveProps(n.value)),null,16))}}),BH={class:"custom-column-dialog"},VH={class:"table-body"},$H={class:"name"},zH={key:0,class:"ml-10"},WH={class:"custom-width-label text"},YH={key:0,class:"custom-width-input-box"},GH={class:"custom-column-footer"},jH={class:"flex-1"},HH=$t(i.defineComponent({name:"ColSetting",__name:"ColSetting",props:{originTableColumns:{default:()=>[]}},emits:["close","submit","dragSort"],setup(t,{expose:e,emit:n}){const r=i.ref(),o=i.ref(!1),s=t,a=i.ref([]),l=i.ref(new Date().getTime()),c=i.ref(!1),d=i.ref();let u=i.ref([]),f=i.ref([]);const h=w=>{f.value=w,u.value=[],a.value=w.filter(_=>(_.hideInCustomColumn&&u.value.push(_),!_.hideInCustomColumn)),c.value=!0,i.nextTick(()=>{m()})},g=w=>{o.value=w},p=n,y=async()=>{f.value=Mn([...u.value,...a.value]),p("submit",f.value),c.value=!1},m=()=>{d.value&&(d.value.destroy(),l.value=new Date().getTime(),r.value.doLayout()),i.nextTick(()=>{const w=document.querySelector(".custom-column-dialog tbody");d.value=Be.create(w,{handle:".move",animation:300,filter:".operation",onEnd({newIndex:_,oldIndex:C}){if(!_&&_!==0||!C&&C!==0)return;let S=Mn(a.value);const k=S[C];if(_<C)for(let v=_;v<C;v++)S[v].order=String(Number(v)+1);else for(let v=C+1;v<=_;v++)S[v].order=String(Number(v)-1);k.order=String(_),a.value=Mn(S)}})})},b=()=>{const w=Mn(s.originTableColumns);o.value?(a.value=w,u.value=[]):a.value=a.value.map(_=>{const C=a.value.find(S=>S.prop===_.prop);return!(C!=null&&C.isShow)||C.prop==="operation"?_:w.find(S=>S.prop===_.prop)}),m()},E=()=>{c.value=!1};return e({openColSetting:h}),(w,_)=>(i.openBlock(),i.createElementBlock("div",BH,[i.createVNode(nE,{modelValue:c.value,"onUpdate:modelValue":_[1]||(_[1]=C=>c.value=C),size:"middle"},{header:i.withCtx(()=>_[2]||(_[2]=[i.createElementVNode("div",{class:"title"},"自定义列",-1),i.createElementVNode("div",{class:"sub-title"},"勾选需要展示的列,拖动列名进行排序",-1)])),footer:i.withCtx(()=>[i.createElementVNode("div",GH,[i.createVNode(i.unref(Yi),{modelValue:o.value,"onUpdate:modelValue":_[0]||(_[0]=C=>o.value=C),class:"checkbox",label:"全局",onChange:g},null,8,["modelValue"]),i.createElementVNode("div",jH,[i.createVNode(fa,{onClick:E},{default:i.withCtx(()=>_[4]||(_[4]=[i.createTextVNode("取消")])),_:1}),i.createVNode(fa,{class:"w-auto",onClick:b},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(o.value?"全局恢复默认":"恢复默认"),1)]),_:1}),i.createVNode(fa,{type:"primary",onClick:y},{default:i.withCtx(()=>_[5]||(_[5]=[i.createTextVNode("保存")])),_:1})])])]),default:i.withCtx(()=>[i.createElementVNode("div",VH,[(i.openBlock(),i.createBlock(i.unref(Jp),{ref_key:"tableRef",ref:r,class:"custom-colum-table",key:l.value,data:a.value.filter(C=>!C.hideInCustomColumn),"row-class-name":C=>C.row.prop==="operation"?"operation":""},{default:i.withCtx(()=>[i.createVNode(i.unref(Io),{width:"100",label:"选择"},{default:i.withCtx(({row:C})=>[i.createVNode(i.unref(Yi),{class:"custom-column-check",modelValue:C.isShow,"onUpdate:modelValue":S=>C.isShow=S,disabled:C.readonly},null,8,["modelValue","onUpdate:modelValue","disabled"])]),_:1}),i.createVNode(i.unref(Io),{prop:"label",label:"名称"},{default:i.withCtx(({row:C})=>[i.createElementVNode("div",$H,[i.createTextVNode(i.toDisplayString(C.label)+" ",1),C.readonly?(i.openBlock(),i.createElementBlock("span",zH,"(必选)")):i.createCommentVNode("",!0),C.prop!=="operation"?(i.openBlock(),i.createBlock(i.unref(Te),{key:1,class:"move move-icon"},{default:i.withCtx(()=>[i.createVNode(i.unref(fP))]),_:1})):i.createCommentVNode("",!0)])]),_:1}),i.createVNode(i.unref(Io),{prop:"width",label:"宽度",width:"180"},{default:i.withCtx(({row:C})=>[i.createElementVNode("div",{class:i.normalizeClass(`custom-width-box ${C.readonly&&"readonly"}`)},[_[3]||(_[3]=i.createElementVNode("span",{class:"text"},"宽度",-1)),i.createElementVNode("span",WH,i.toDisplayString(C.width)+" px",1),C.readonly?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",YH,[i.createVNode(i.unref(xC),{modelValue:C.width,"onUpdate:modelValue":S=>C.width=S,class:"custom-width-input",min:10,max:1e3,controls:!1},null,8,["modelValue","onUpdate:modelValue"])]))],2)]),_:1})]),_:1},8,["data","row-class-name"]))])]),_:1},8,["modelValue"])]))}}),[["__scopeId","data-v-1ff4d8b0"]]),UH={class:"no-card table-main zh-table"},KH={class:"table-title-container"},XH={key:0,class:"table-title"},ZH={key:1,class:"table-header-tip"},qH={class:"table-header-container"},JH={key:0,class:"table-header"},QH={class:"header-button-ri"},eU={key:0},tU={class:"table-body-container"},nU={class:"text d-flex inline-input-text pointer"},rU={key:1,class:"inline-input-box d-flex"},iU={class:"table-empty"},oU=["src"],Dv=Mt($t(i.defineComponent({name:"ZhTable",__name:"Table",props:{columns:{default:()=>[]},data:{},requestApi:{},requestAuto:{type:Boolean,default:!0},requestError:{type:Function,default:t=>{console.error("protable中请求数据错误",t)}},handleParam:{},dataCallback:{},selectChangeCallback:{},title:{},pagination:{type:Boolean,default:!0},initParam:{default:{}},border:{type:Boolean,default:!1},rowKey:{default:"id"},isShowSearch:{type:Boolean,default:!0},maxHeight:{},isShowSearchBtn:{type:Boolean,default:!0},isShowResetBtn:{type:Boolean,default:!0},customColumn:{type:Boolean,default:!1},onSortChange:{},offset:{},customColumnCacheKey:{},customColumnPageCacheKey:{},beforeReset:{},searchClearSelection:{type:Boolean,default:!0}},emits:["search","reset","dargSort"],setup(t,{expose:e,emit:n}){var Ye;const r=i.ref(new Date().getTime()),o={mounted(ae){var he;(he=ae.querySelector("input"))==null||he.focus()}},s=i.useSlots(),a=t,l=i.ref(),c=["selection","radio","index","expand","sort","input"],d=i.ref(a.isShowSearch),u=i.ref(""),f=i.ref({}),h=i.ref(a.maxHeight),{selectionChange:g,selectedList:p,selectedListIds:y,isSelected:m}=vH(a.rowKey,a.selectChangeCallback),{loading:b,tableData:E,pageable:w,searchParam:_,searchInitParam:C,getTableList:S,search:k,reset:v,handleSizeChange:x,handleCurrentChange:M}=kH(a.requestApi,a.initParam,a.pagination,a.dataCallback,a.requestError,a.handleParam),I=ae=>{function he(le){return le.replace(/[A-Z]/g,ue=>"_"+ue.toLowerCase())}const de={ascending:"asc",descending:"desc"},{prop:X,order:be}=ae,Z=he(jn(X)),te=de[be];_.value={..._.value,sortKey:Z,sortOrder:te},w.value.page=1,k()},N=()=>l.value.clearSelection(),L=()=>l.value.clearSort(),$=i.ref(!1),D=()=>{H(),a.customColumn&&Qe(),a.requestAuto&&S(),a.data&&(w.value.total=a.data.length)};i.onMounted(()=>{D(),i.nextTick(()=>{$.value=!0})}),i.onActivated(()=>{$.value&&D()}),i.onDeactivated(()=>{}),i.onUnmounted(()=>{});const R=i.computed(()=>a.data?a.pagination?a.data.slice((w.value.page-1)*w.value.size,w.value.size*w.value.page):a.data:E.value),O=ae=>{w.value.total=ae};i.watch(()=>a.initParam,S,{deep:!0});let A=i.reactive(a.columns);const T=i.computed(()=>B(A)),V=i.ref(new Map),F=async({prop:ae,enum:he})=>{if(!he||V.value.has(ae)&&(typeof he=="function"||V.value.get(ae)===he))return;if(typeof he!="function")return V.value.set(ae,i.unref(he));V.value.set(ae,[]);const{data:de}=await he();V.value.set(ae,de)};i.provide("enumMap",V);const B=(ae,he=[])=>(ae.forEach(async de=>{var X;(X=de._children)!=null&&X.length&&he.push(...B(de._children)),he.push(de),de.isShow=de.isShow??!0,de.isFilterEnum=de.isFilterEnum??!0,await F(de)}),he.filter(de=>{var X;return!((X=de._children)!=null&&X.length)})),P=i.computed(()=>{var ae;return(ae=T.value)==null?void 0:ae.filter(he=>{var de,X;return((de=he.search)==null?void 0:de.el)||((X=he.search)==null?void 0:X.render)}).sort((he,de)=>he.search.order-de.search.order)});(Ye=P.value)==null||Ye.forEach((ae,he)=>{var be,Z,te;ae.search.order=((be=ae.search)==null?void 0:be.order)??he+2;const de=((Z=ae.search)==null?void 0:Z.key)??jn(ae.prop),X=(te=ae.search)==null?void 0:te.defaultValue;X!=null&&(C.value[de]=X,_.value[de]=X)});const Y=n,G=()=>{var ae;a.searchClearSelection&&((ae=l.value)==null||ae.clearSelection()),k(),Y("search")},Q=()=>{a.beforeReset&&a.beforeReset(),v(),L(),Y("reset")},H=()=>{const ae=document.querySelector(".el-table__body-wrapper tbody");ae&&Be.create(ae,{handle:".move",animation:300,onEnd({newIndex:he,oldIndex:de}){const[X]=R.value.splice(de,1);R.value.splice(he,0,X),Y("dargSort",{newIndex:he,oldIndex:de})}})},K=i.ref(0),ie=(ae,he)=>{const de=E.value.findIndex(X=>X.$showInput);de>-1&&(E.value[de]=Mn(f.value),E.value[de].$showInput=!1),K.value=oE(ae,String(he)),ae.$showInput=!0,f.value=Mn(ae)},se=async(ae,he,de)=>{c_(ae,he,K.value),de&&await de(ae),ae.$showInput=!1,nu.success("更新成功"),await S()},oe=async ae=>{const he=E.value.findIndex(de=>Fn(a_(de,Ws),a_(ae,Ws)));he>-1&&(E.value[he]=Mn(f.value),E.value[he].$showInput=!1)},Me=vz(a.customColumnCacheKey),xe=i.ref(null),We=()=>A.map((ae,he)=>({readonly:ae.isCustomDisable||["id","operation"].includes(String(ae.prop)),hideInCustomColumn:ae.hideInCustomColumn||ae.type==="selection",order:he,width:ae.width||ae.minWidth,...ae})).sort((ae,he)=>{const de=Number(ae.order),X=Number(he.order);return de-X}),Ke=()=>{Ue=i.reactive(We()),i.nextTick(()=>{xe.value.openColSetting(Mn(Ue))})},Qe=()=>{if(!a.customColumnPageCacheKey)return;const ae=Me.getColumnCache(a.customColumnPageCacheKey);if(ae!=null&&ae.length){const he=A.map(de=>{const X=ae.find(be=>be.prop===de.prop);if(X){const be={...de,order:X.order||de.order,isShow:X.isShow!==void 0?X.isShow:de.isShow,readonly:X.readonly!==void 0?X.readonly:de.readonly,prop:X.prop||de.prop,index:X.index||de.index};return de.minWidth&&(be.minWidth=X.minWidth||de.minWidth),de.width&&(be.width=X.width||de.width),be}return de});Ue=i.reactive(he),A=i.reactive(Ue)}};let Ue=i.reactive(We());const ct=Mn(We()),Re=ae=>{if(!a.customColumnPageCacheKey)return console.error("请添加自定义列缓存配置项:customColumnPageCacheKey");ae=ae.map(he=>{const de=ct.find(X=>X.prop===he.prop);return de&&de.minWidth&&(he.minWidth=he.width,delete he.width),he}),A=i.reactive(Mn(ae)),Me.setColumnCache(a.customColumnPageCacheKey,ae),r.value=new Date().getTime(),l.value.doLayout()};return e({element:l,tableData:R,radio:u,pageable:w,searchParam:_,searchInitParam:C,setPageTotal:O,getTableList:S,search:k,reset:v,handleSizeChange:x,handleCurrentChange:M,clearSelection:N,enumMap:V,isSelected:m,selectedList:p,selectedListIds:y}),(ae,he)=>{const de=i.resolveDirective("loading");return i.openBlock(),i.createBlock(i.unref(sN),{locale:i.unref(Jj)},{default:i.withCtx(()=>[i.createElementVNode("div",UH,[i.createElementVNode("div",KH,[ae.title?(i.openBlock(),i.createElementBlock("div",XH,i.toDisplayString(ae.title),1)):i.createCommentVNode("",!0),i.unref(s).headerTip?(i.openBlock(),i.createElementBlock("div",ZH,[i.renderSlot(ae.$slots,"headerTip",{},void 0,!0)])):i.createCommentVNode("",!0)]),i.createElementVNode("div",qH,[i.withDirectives(i.createVNode(OH,{search:G,reset:Q,columns:P.value,"search-param":i.unref(_),"is-show-reset-btn":a.isShowResetBtn,"is-show-search-btn":a.isShowSearchBtn},{default:i.withCtx(()=>[ae.$slots.tableHeader?(i.openBlock(),i.createElementBlock("div",JH,[i.createElementVNode("div",QH,[i.renderSlot(ae.$slots,"tableHeader",{selectedList:i.unref(p),selectedListIds:i.unref(y),isSelected:i.unref(m)},void 0,!0)])])):i.createCommentVNode("",!0)]),_:3},8,["columns","search-param","is-show-reset-btn","is-show-search-btn"]),[[i.vShow,d.value]])]),i.unref(s).searchBarBottom?(i.openBlock(),i.createElementBlock("div",eU,[i.renderSlot(ae.$slots,"searchBarBottom",{},void 0,!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",tU,[a.customColumn?(i.openBlock(),i.createElementBlock("div",{key:0,class:"col-setting-button",onClick:Ke},[i.createVNode(i.unref(sr),{class:"box-item",effect:"dark",content:"自定义列",placement:"top"},{default:i.withCtx(()=>[i.createVNode(i.unref(Te),{size:16,color:"#000000a6"},{default:i.withCtx(()=>[i.createVNode(i.unref(gP))]),_:1})]),_:1})])):i.createCommentVNode("",!0),i.withDirectives((i.openBlock(),i.createBlock(i.unref(Jp),i.mergeProps({ref_key:"tableRef",ref:l},ae.$attrs,{key:r.value,data:R.value,border:ae.border,"row-key":ae.rowKey,"max-height":h.value,"row-style":{height:"42px"},"tooltip-effect":"light","tooltip-options":{showArrow:!1,placement:"bottom-start",offset:a.offset?a.offset:-20},"element-loading-spinner":i.unref(xz),"element-loading-svg-view-box":"0 0 64 64"},i.toHandlers(ae.$attrs),{onSelectionChange:i.unref(g),onSortChange:he[1]||(he[1]=X=>a.onSortChange?a.onSortChange(X):I(X))}),{append:i.withCtx(()=>[i.renderSlot(ae.$slots,"append",{},void 0,!0)]),empty:i.withCtx(()=>[i.createElementVNode("div",iU,[i.renderSlot(ae.$slots,"empty",{},()=>[i.createElementVNode("img",{src:`${i.unref(ez)}ghy-components/empty.png`,class:"zh-empty-img",alt:"notData"},null,8,oU),he[5]||(he[5]=i.createElementVNode("div",null,"暂无数据",-1))],!0)])]),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(A).sort((X,be)=>X.order-be.order),X=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:X},[X.type&&c.includes(X.type)&&X.isShow?(i.openBlock(),i.createBlock(i.unref(Io),i.mergeProps({key:0,ref_for:!0},X,{align:X.align??"left","reserve-selection":X.type=="selection"}),i.createSlots({default:i.withCtx(be=>[X.type=="expand"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[X.render?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(X.render),i.mergeProps({key:0,ref_for:!0},be),null,16)):i.renderSlot(ae.$slots,X.type,i.mergeProps({key:1,ref_for:!0},be),void 0,!0)],64)):i.createCommentVNode("",!0),X.type=="sort"?(i.openBlock(),i.createBlock(i.unref(Rp),{key:1,class:"move"},{default:i.withCtx(()=>[i.createVNode(i.unref(Te),null,{default:i.withCtx(()=>[i.createVNode(i.unref(QD))]),_:1})]),_:1})):i.createCommentVNode("",!0),X.type=="input"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[be.row.$showInput?(i.openBlock(),i.createElementBlock("div",rU,[i.withDirectives(i.createVNode(i.unref(xC),{modelValue:K.value,"onUpdate:modelValue":he[0]||(he[0]=Z=>K.value=Z),min:0,controls:!1},null,8,["modelValue"]),[[o]]),i.createVNode(i.unref(la),{underline:!1,type:"primary",onClick:Z=>se(be.row,String(X.prop),X.blurCallback),class:"ml-5"},{default:i.withCtx(()=>he[3]||(he[3]=[i.createTextVNode(" 保存 ")])),_:2},1032,["onClick"]),i.createVNode(i.unref(la),{type:"primary",underline:!1,onClick:Z=>oe(be.row),class:"ml-5"},{default:i.withCtx(()=>he[4]||(he[4]=[i.createTextVNode(" 取消 ")])),_:2},1032,["onClick"])])):(i.openBlock(),i.createBlock(i.unref(sr),{key:0,content:"编辑",placement:"top"},{default:i.withCtx(()=>[i.createElementVNode("span",nU,[i.createTextVNode(i.toDisplayString(i.unref(oE)(be.row,String(X.prop)))+" ",1),i.createVNode(i.unref(la),{underline:!1,class:"text d-flex inline-input-text pointer",onClick:Z=>ie(be.row,X.prop)},{default:i.withCtx(()=>he[2]||(he[2]=[i.createElementVNode("i",{class:"iconfont icon-edit"},null,-1)])),_:2},1032,["onClick"])])]),_:2},1024))],64)):i.createCommentVNode("",!0)]),_:2},[X.headerRender?{name:"header",fn:i.withCtx(be=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(X.headerRender),i.mergeProps({ref_for:!0},be),null,16))]),key:"0"}:void 0]),1040,["align","reserve-selection"])):i.createCommentVNode("",!0),!X.type&&X.prop&&X.isShow?(i.openBlock(),i.createBlock(FH,{key:1,column:X,"custom-column":ae.customColumn},i.createSlots({_:2},[i.renderList(Object.keys(ae.$slots),be=>({name:be,fn:i.withCtx(Z=>[i.renderSlot(ae.$slots,be,i.mergeProps({ref_for:!0},Z),void 0,!0)])}))]),1032,["column","custom-column"])):i.createCommentVNode("",!0)],64))),128))]),_:3},16,["data","border","row-key","max-height","tooltip-options","element-loading-spinner","onSelectionChange"])),[[de,i.unref(b)]])]),i.renderSlot(ae.$slots,"pagination",{},()=>[ae.pagination?(i.openBlock(),i.createBlock(AH,{key:0,pageable:i.unref(w),"handle-size-change":i.unref(x),"handle-current-change":i.unref(M)},{zhPaginationLeftSlot:i.withCtx(X=>[i.renderSlot(ae.$slots,"zhPaginationLeft",i.normalizeProps(i.guardReactiveProps(X)),void 0,!0)]),_:3},8,["pageable","handle-size-change","handle-current-change"])):i.createCommentVNode("",!0)],!0)]),a.customColumn?(i.openBlock(),i.createBlock(HH,{key:0,ref_key:"colRef",ref:xe,"origin-table-columns":i.unref(ct),onSubmit:Re},null,8,["origin-table-columns"])):i.createCommentVNode("",!0)]),_:3},8,["locale"])}}}),[["__scopeId","data-v-d7faf199"]])),sU={key:1},aU={key:1,class:"zh-base-item--value--file"},lU={key:2},cU=Mt(i.defineComponent({name:"ZhBaseItem",__name:"BaseItem",props:{label:{},labelRender:{},colon:{type:Boolean,default:!1},value:{},fileId:{},rewriteFileName:{},valueRender:{},onClick:{},labelWidth:{},infoDirection:{default:"horizontal"},defaultValue:{default:Ut},className:{},labelClassName:{},valueClassName:{},span:{default:1},showFileName:{type:Boolean,default:!0},fetchFileById:{}},setup(t){const e=i.useSlots(),n=t,r=i.inject("infoLabelWidth"),o=i.computed(()=>!!(n.onClick&&n.value)),s=i.computed(()=>!!(!n.value&&n.fileId)),a=i.ref(),l=i.computed(()=>{var h;const f=(h=a.value)==null?void 0:h.name;if(!f)return"";if(n.rewriteFileName){const g=f.substring(f.lastIndexOf("."));return n.rewriteFileName+g}return f}),c=i.computed(()=>{const f={},h=n.labelWidth||(r==null?void 0:r.value);return h&&n.infoDirection==="horizontal"&&(isNaN(Number(h))?f.width=String(h):f.width=h+"px"),f}),d=i.computed(()=>({...c.value})),u=i.computed(()=>n.value===""?Ut:n.value??Ut);return i.watchEffect(async()=>{!s.value||!n.fileId||!n.fetchFileById||(a.value=await n.fetchFileById(n.fileId))}),(f,h)=>(i.openBlock(),i.createBlock(i.unref(Lm),{span:f.span,label:f.label},{default:i.withCtx(g=>{var p;return[i.createElementVNode("div",{class:i.normalizeClass(["zh-base-item",[f.infoDirection,f.className]])},[i.createElementVNode("div",{class:i.normalizeClass(["zh-base-item-label",[f.infoDirection,f.labelClassName]]),style:i.normalizeStyle({width:f.infoDirection==="horizontal"&&g.maxLabelWidthInCol?g.maxLabelWidthInCol+"px":void 0,...d.value})},[f.labelRender?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(f.labelRender),{key:0})):(i.openBlock(),i.createElementBlock("span",sU,i.toDisplayString(f.label)+i.toDisplayString(f.colon?":":""),1))],6),i.createElementVNode("div",{class:i.normalizeClass(["zh-base-item-value",f.valueClassName])},[i.unref(e).value?i.renderSlot(f.$slots,"value",{key:0,content:f.value}):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[o.value?(i.openBlock(),i.createBlock(i.unref(la),{key:0,type:"primary",class:"zh-base-item--value--link",onClick:h[0]||(h[0]=i.withModifiers(y=>f.onClick&&f.onClick(f.value??void 0),["stop"]))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(f.value),1)]),_:1})):s.value?(i.openBlock(),i.createElementBlock("div",aU,[f.showFileName?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(i.unref(Te),{class:"iconfont"},{default:i.withCtx(()=>[i.createVNode(i.unref(tP))]),_:1}),i.createTextVNode(" "+i.toDisplayString(l.value),1)],64)):i.createCommentVNode("",!0),i.createVNode(i.unref(la),{type:"primary",href:(p=a.value)==null?void 0:p.path,target:"_blank",class:i.normalizeClass({"ml-8":f.showFileName})},{default:i.withCtx(()=>h[1]||(h[1]=[i.createTextVNode(" 查看/下载 ")])),_:1},8,["href","class"])])):f.valueRender?(i.openBlock(),i.createElementBlock("div",lU,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(f.valueRender)))])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:3},[i.createTextVNode(i.toDisplayString(u.value),1)],64))],64))],2)],2)]}),_:3},8,["span","label"]))}})),dU=UR([wE,t1,tE,CE,rE,SE,aE,Lm,lE,cE,dE,fE,hE,yE,pE,mE,gE,_E,bE,sv,n1,Dv,U0]);Ie.DIY_DATA_TYPE=Ci,Ie.ZhAlert=mE,Ie.ZhBaseInfo=wE,Ie.ZhBaseItem=cU,Ie.ZhButton=t1,Ie.ZhButtonGroup=n1,Ie.ZhCascaderLoadMore=U0,Ie.ZhConfirm=pE,Ie.ZhDatePicker=tE,Ie.ZhDetailHeader=CE,Ie.ZhDetailSubTitle=sz,Ie.ZhDialog=rE,Ie.ZhDiyDataTable=SE,Ie.ZhEditInfoPair=hz,Ie.ZhFileWrapper=bz,Ie.ZhGrid=aE,Ie.ZhGridItem=Lm,Ie.ZhInfoPair=cE,Ie.ZhInput=dE,Ie.ZhInputNumber=fE,Ie.ZhLoading=hE,Ie.ZhMap=sv,Ie.ZhMessageBox=yE,Ie.ZhMoneyInput=_E,Ie.ZhMultiGrid=lE,Ie.ZhPageHeadPanel=Wz,Ie.ZhPrompt=gE,Ie.ZhTable=Dv,Ie.ZhToolTips=bE,Ie.default=dU,Object.defineProperties(Ie,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
174
|
+
*/function av(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Pi(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?av(Object(n),!0).forEach(function(r){Qj(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):av(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Nf(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nf=function(e){return typeof e}:Nf=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nf(t)}function Qj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _o(){return _o=Object.assign||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},_o.apply(this,arguments)}function eH(t,e){if(t==null)return{};var n={},r=Object.keys(t),o,s;for(s=0;s<r.length;s++)o=r[s],!(e.indexOf(o)>=0)&&(n[o]=t[o]);return n}function tH(t,e){if(t==null)return{};var n=eH(t,e),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(o=0;o<s.length;o++)r=s[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}var nH="1.15.6";function bo(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var wo=bo(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),jc=bo(/Edge/i),lv=bo(/firefox/i),Hc=bo(/safari/i)&&!bo(/chrome/i)&&!bo(/android/i),D0=bo(/iP(ad|od|hone)/i),cv=bo(/chrome/i)&&bo(/android/i),dv={capture:!1,passive:!1};function st(t,e,n){t.addEventListener(e,n,!wo&&dv)}function it(t,e,n){t.removeEventListener(e,n,!wo&&dv)}function Of(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function uv(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function di(t,e,n,r){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&Of(t,e):Of(t,e))||r&&t===n)return t;if(t===n)break}while(t=uv(t))}return null}var fv=/\s+/g;function ur(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(fv," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(fv," ")}}function $e(t,e,n){var r=t&&t.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=n+(typeof n=="string"?"":"px")}}function il(t,e){var n="";if(typeof t=="string")n=t;else do{var r=$e(t,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function hv(t,e,n){if(t){var r=t.getElementsByTagName(e),o=0,s=r.length;if(n)for(;o<s;o++)n(r[o],o);return r}return[]}function Ii(){var t=document.scrollingElement;return t||document.documentElement}function qt(t,e,n,r,o){if(!(!t.getBoundingClientRect&&t!==window)){var s,a,l,c,d,u,f;if(t!==window&&t.parentNode&&t!==Ii()?(s=t.getBoundingClientRect(),a=s.top,l=s.left,c=s.bottom,d=s.right,u=s.height,f=s.width):(a=0,l=0,c=window.innerHeight,d=window.innerWidth,u=window.innerHeight,f=window.innerWidth),(e||n)&&t!==window&&(o=o||t.parentNode,!wo))do if(o&&o.getBoundingClientRect&&($e(o,"transform")!=="none"||n&&$e(o,"position")!=="static")){var h=o.getBoundingClientRect();a-=h.top+parseInt($e(o,"border-top-width")),l-=h.left+parseInt($e(o,"border-left-width")),c=a+s.height,d=l+s.width;break}while(o=o.parentNode);if(r&&t!==window){var g=il(o||t),p=g&&g.a,y=g&&g.d;g&&(a/=y,l/=p,f/=p,u/=y,c=a+u,d=l+f)}return{top:a,left:l,bottom:c,right:d,width:f,height:u}}}function pv(t,e,n){for(var r=Zo(t,!0),o=qt(t)[e];r;){var s=qt(r)[n],a=void 0;if(a=o>=s,!a)return r;if(r===Ii())break;r=Zo(r,!1)}return!1}function ol(t,e,n,r){for(var o=0,s=0,a=t.children;s<a.length;){if(a[s].style.display!=="none"&&a[s]!==Be.ghost&&(r||a[s]!==Be.dragged)&&di(a[s],n.draggable,t,!1)){if(o===e)return a[s];o++}s++}return null}function P0(t,e){for(var n=t.lastElementChild;n&&(n===Be.ghost||$e(n,"display")==="none"||e&&!Of(n,e));)n=n.previousElementSibling;return n||null}function Or(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Be.clone&&(!e||Of(t,e))&&n++;return n}function mv(t){var e=0,n=0,r=Ii();if(t)do{var o=il(t),s=o.a,a=o.d;e+=t.scrollLeft*s,n+=t.scrollTop*a}while(t!==r&&(t=t.parentNode));return[e,n]}function rH(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n)}return-1}function Zo(t,e){if(!t||!t.getBoundingClientRect)return Ii();var n=t,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=$e(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Ii();if(r||e)return n;r=!0}}while(n=n.parentNode);return Ii()}function iH(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function I0(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var Uc;function gv(t,e){return function(){if(!Uc){var n=arguments,r=this;n.length===1?t.call(r,n[0]):t.apply(r,n),Uc=setTimeout(function(){Uc=void 0},e)}}}function oH(){clearTimeout(Uc),Uc=void 0}function yv(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function _v(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function bv(t,e,n){var r={};return Array.from(t.children).forEach(function(o){var s,a,l,c;if(!(!di(o,e.draggable,t,!1)||o.animated||o===n)){var d=qt(o);r.left=Math.min((s=r.left)!==null&&s!==void 0?s:1/0,d.left),r.top=Math.min((a=r.top)!==null&&a!==void 0?a:1/0,d.top),r.right=Math.max((l=r.right)!==null&&l!==void 0?l:-1/0,d.right),r.bottom=Math.max((c=r.bottom)!==null&&c!==void 0?c:-1/0,d.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var er="Sortable"+new Date().getTime();function sH(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(o){if(!($e(o,"display")==="none"||o===Be.ghost)){t.push({target:o,rect:qt(o)});var s=Pi({},t[t.length-1].rect);if(o.thisAnimationDuration){var a=il(o,!0);a&&(s.top-=a.f,s.left-=a.e)}o.fromRect=s}})}},addAnimationState:function(r){t.push(r)},removeAnimationState:function(r){t.splice(rH(t,{target:r}),1)},animateAll:function(r){var o=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var s=!1,a=0;t.forEach(function(l){var c=0,d=l.target,u=d.fromRect,f=qt(d),h=d.prevFromRect,g=d.prevToRect,p=l.rect,y=il(d,!0);y&&(f.top-=y.f,f.left-=y.e),d.toRect=f,d.thisAnimationDuration&&I0(h,f)&&!I0(u,f)&&(p.top-f.top)/(p.left-f.left)===(u.top-f.top)/(u.left-f.left)&&(c=lH(p,h,g,o.options)),I0(f,u)||(d.prevFromRect=u,d.prevToRect=f,c||(c=o.options.animation),o.animate(d,p,f,c)),c&&(s=!0,a=Math.max(a,c),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},c),d.thisAnimationDuration=c)}),clearTimeout(e),s?e=setTimeout(function(){typeof r=="function"&&r()},a):typeof r=="function"&&r(),t=[]},animate:function(r,o,s,a){if(a){$e(r,"transition",""),$e(r,"transform","");var l=il(this.el),c=l&&l.a,d=l&&l.d,u=(o.left-s.left)/(c||1),f=(o.top-s.top)/(d||1);r.animatingX=!!u,r.animatingY=!!f,$e(r,"transform","translate3d("+u+"px,"+f+"px,0)"),this.forRepaintDummy=aH(r),$e(r,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),$e(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){$e(r,"transition",""),$e(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},a)}}}}function aH(t){return t.offsetWidth}function lH(t,e,n,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*r.animation}var sl=[],N0={initializeByDefault:!0},Kc={mount:function(e){for(var n in N0)N0.hasOwnProperty(n)&&!(n in e)&&(e[n]=N0[n]);sl.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),sl.push(e)},pluginEvent:function(e,n,r){var o=this;this.eventCanceled=!1,r.cancel=function(){o.eventCanceled=!0};var s=e+"Global";sl.forEach(function(a){n[a.pluginName]&&(n[a.pluginName][s]&&n[a.pluginName][s](Pi({sortable:n},r)),n.options[a.pluginName]&&n[a.pluginName][e]&&n[a.pluginName][e](Pi({sortable:n},r)))})},initializePlugins:function(e,n,r,o){sl.forEach(function(l){var c=l.pluginName;if(!(!e.options[c]&&!l.initializeByDefault)){var d=new l(e,n,e.options);d.sortable=e,d.options=e.options,e[c]=d,_o(r,d.defaults)}});for(var s in e.options)if(e.options.hasOwnProperty(s)){var a=this.modifyOption(e,s,e.options[s]);typeof a<"u"&&(e.options[s]=a)}},getEventProperties:function(e,n){var r={};return sl.forEach(function(o){typeof o.eventProperties=="function"&&_o(r,o.eventProperties.call(n[o.pluginName],e))}),r},modifyOption:function(e,n,r){var o;return sl.forEach(function(s){e[s.pluginName]&&s.optionListeners&&typeof s.optionListeners[n]=="function"&&(o=s.optionListeners[n].call(e[s.pluginName],r))}),o}};function cH(t){var e=t.sortable,n=t.rootEl,r=t.name,o=t.targetEl,s=t.cloneEl,a=t.toEl,l=t.fromEl,c=t.oldIndex,d=t.newIndex,u=t.oldDraggableIndex,f=t.newDraggableIndex,h=t.originalEvent,g=t.putSortable,p=t.extraEventProperties;if(e=e||n&&n[er],!!e){var y,m=e.options,b="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!wo&&!jc?y=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(r,!0,!0)),y.to=a||n,y.from=l||n,y.item=o||n,y.clone=s,y.oldIndex=c,y.newIndex=d,y.oldDraggableIndex=u,y.newDraggableIndex=f,y.originalEvent=h,y.pullMode=g?g.lastPutMode:void 0;var E=Pi(Pi({},p),Kc.getEventProperties(r,e));for(var w in E)y[w]=E[w];n&&n.dispatchEvent(y),m[b]&&m[b].call(e,y)}}var dH=["evt"],tr=function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.evt,s=tH(r,dH);Kc.pluginEvent.bind(Be)(e,n,Pi({dragEl:me,parentEl:Bt,ghostEl:He,rootEl:Lt,nextEl:Vs,lastDownEl:Lf,cloneEl:Ft,cloneHidden:qo,dragStarted:Zc,putSortable:gn,activeSortable:Be.active,originalEvent:o,oldIndex:al,oldDraggableIndex:Xc,newIndex:fr,newDraggableIndex:Jo,hideGhostForTarget:xv,unhideGhostForTarget:Tv,cloneNowHidden:function(){qo=!0},cloneNowShown:function(){qo=!1},dispatchSortableEvent:function(l){An({sortable:n,name:l,originalEvent:o})}},s))};function An(t){cH(Pi({putSortable:gn,cloneEl:Ft,targetEl:me,rootEl:Lt,oldIndex:al,oldDraggableIndex:Xc,newIndex:fr,newDraggableIndex:Jo},t))}var me,Bt,He,Lt,Vs,Lf,Ft,qo,al,fr,Xc,Jo,Af,gn,ll=!1,Ff=!1,Bf=[],$s,ui,O0,L0,wv,Cv,Zc,cl,qc,Jc=!1,Vf=!1,$f,xn,A0=[],F0=!1,zf=[],Wf=typeof document<"u",Yf=D0,Ev=jc||wo?"cssFloat":"float",uH=Wf&&!cv&&!D0&&"draggable"in document.createElement("div"),Sv=function(){if(Wf){if(wo)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),kv=function(e,n){var r=$e(e),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),s=ol(e,0,n),a=ol(e,1,n),l=s&&$e(s),c=a&&$e(a),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+qt(s).width,u=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+qt(a).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(s&&l.float&&l.float!=="none"){var f=l.float==="left"?"left":"right";return a&&(c.clear==="both"||c.clear===f)?"vertical":"horizontal"}return s&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=o&&r[Ev]==="none"||a&&r[Ev]==="none"&&d+u>o)?"vertical":"horizontal"},fH=function(e,n,r){var o=r?e.left:e.top,s=r?e.right:e.bottom,a=r?e.width:e.height,l=r?n.left:n.top,c=r?n.right:n.bottom,d=r?n.width:n.height;return o===l||s===c||o+a/2===l+d/2},hH=function(e,n){var r;return Bf.some(function(o){var s=o[er].options.emptyInsertThreshold;if(!(!s||P0(o))){var a=qt(o),l=e>=a.left-s&&e<=a.right+s,c=n>=a.top-s&&n<=a.bottom+s;if(l&&c)return r=o}}),r},vv=function(e){function n(s,a){return function(l,c,d,u){var f=l.options.group.name&&c.options.group.name&&l.options.group.name===c.options.group.name;if(s==null&&(a||f))return!0;if(s==null||s===!1)return!1;if(a&&s==="clone")return s;if(typeof s=="function")return n(s(l,c,d,u),a)(l,c,d,u);var h=(a?l:c).options.group.name;return s===!0||typeof s=="string"&&s===h||s.join&&s.indexOf(h)>-1}}var r={},o=e.group;(!o||Nf(o)!="object")&&(o={name:o}),r.name=o.name,r.checkPull=n(o.pull,!0),r.checkPut=n(o.put),r.revertClone=o.revertClone,e.group=r},xv=function(){!Sv&&He&&$e(He,"display","none")},Tv=function(){!Sv&&He&&$e(He,"display","")};Wf&&!cv&&document.addEventListener("click",function(t){if(Ff)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Ff=!1,!1},!0);var zs=function(e){if(me){e=e.touches?e.touches[0]:e;var n=hH(e.clientX,e.clientY);if(n){var r={};for(var o in e)e.hasOwnProperty(o)&&(r[o]=e[o]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[er]._onDragOver(r)}}},pH=function(e){me&&me.parentNode[er]._isOutsideThisEl(e.target)};function Be(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=_o({},e),t[er]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return kv(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Be.supportPointer!==!1&&"PointerEvent"in window&&(!Hc||D0),emptyInsertThreshold:5};Kc.initializePlugins(this,t,n);for(var r in n)!(r in e)&&(e[r]=n[r]);vv(e);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=e.forceFallback?!1:uH,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?st(t,"pointerdown",this._onTapStart):(st(t,"mousedown",this._onTapStart),st(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(st(t,"dragover",this),st(t,"dragenter",this)),Bf.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),_o(this,sH())}Be.prototype={constructor:Be,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(cl=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,me):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,r=this.el,o=this.options,s=o.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,c=(l||e).target,d=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||c,u=o.filter;if(EH(r),!me&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||o.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Hc&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=di(c,o.draggable,r,!1),!(c&&c.animated)&&Lf!==c)){if(al=Or(c),Xc=Or(c,o.draggable),typeof u=="function"){if(u.call(this,e,c,this)){An({sortable:n,rootEl:d,name:"filter",targetEl:c,toEl:r,fromEl:r}),tr("filter",n,{evt:e}),s&&e.preventDefault();return}}else if(u&&(u=u.split(",").some(function(f){if(f=di(d,f.trim(),r,!1),f)return An({sortable:n,rootEl:f,name:"filter",targetEl:c,fromEl:r,toEl:r}),tr("filter",n,{evt:e}),!0}),u)){s&&e.preventDefault();return}o.handle&&!di(d,o.handle,r,!1)||this._prepareDragStart(e,l,c)}}},_prepareDragStart:function(e,n,r){var o=this,s=o.el,a=o.options,l=s.ownerDocument,c;if(r&&!me&&r.parentNode===s){var d=qt(r);if(Lt=s,me=r,Bt=me.parentNode,Vs=me.nextSibling,Lf=r,Af=a.group,Be.dragged=me,$s={target:me,clientX:(n||e).clientX,clientY:(n||e).clientY},wv=$s.clientX-d.left,Cv=$s.clientY-d.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,me.style["will-change"]="all",c=function(){if(tr("delayEnded",o,{evt:e}),Be.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!lv&&o.nativeDraggable&&(me.draggable=!0),o._triggerDragStart(e,n),An({sortable:o,name:"choose",originalEvent:e}),ur(me,a.chosenClass,!0)},a.ignore.split(",").forEach(function(u){hv(me,u.trim(),B0)}),st(l,"dragover",zs),st(l,"mousemove",zs),st(l,"touchmove",zs),a.supportPointer?(st(l,"pointerup",o._onDrop),!this.nativeDraggable&&st(l,"pointercancel",o._onDrop)):(st(l,"mouseup",o._onDrop),st(l,"touchend",o._onDrop),st(l,"touchcancel",o._onDrop)),lv&&this.nativeDraggable&&(this.options.touchStartThreshold=4,me.draggable=!0),tr("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(jc||wo))){if(Be.eventCanceled){this._onDrop();return}a.supportPointer?(st(l,"pointerup",o._disableDelayedDrag),st(l,"pointercancel",o._disableDelayedDrag)):(st(l,"mouseup",o._disableDelayedDrag),st(l,"touchend",o._disableDelayedDrag),st(l,"touchcancel",o._disableDelayedDrag)),st(l,"mousemove",o._delayedDragTouchMoveHandler),st(l,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&st(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(c,a.delay)}else c()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){me&&B0(me),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;it(e,"mouseup",this._disableDelayedDrag),it(e,"touchend",this._disableDelayedDrag),it(e,"touchcancel",this._disableDelayedDrag),it(e,"pointerup",this._disableDelayedDrag),it(e,"pointercancel",this._disableDelayedDrag),it(e,"mousemove",this._delayedDragTouchMoveHandler),it(e,"touchmove",this._delayedDragTouchMoveHandler),it(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?st(document,"pointermove",this._onTouchMove):n?st(document,"touchmove",this._onTouchMove):st(document,"mousemove",this._onTouchMove):(st(me,"dragend",this),st(Lt,"dragstart",this._onDragStart));try{document.selection?jf(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(ll=!1,Lt&&me){tr("dragStarted",this,{evt:n}),this.nativeDraggable&&st(document,"dragover",pH);var r=this.options;!e&&ur(me,r.dragClass,!1),ur(me,r.ghostClass,!0),Be.active=this,e&&this._appendGhost(),An({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(ui){this._lastX=ui.clientX,this._lastY=ui.clientY,xv();for(var e=document.elementFromPoint(ui.clientX,ui.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ui.clientX,ui.clientY),e!==n);)n=e;if(me.parentNode[er]._isOutsideThisEl(e),n)do{if(n[er]){var r=void 0;if(r=n[er]._onDragOver({clientX:ui.clientX,clientY:ui.clientY,target:e,rootEl:n}),r&&!this.options.dragoverBubble)break}e=n}while(n=uv(n));Tv()}},_onTouchMove:function(e){if($s){var n=this.options,r=n.fallbackTolerance,o=n.fallbackOffset,s=e.touches?e.touches[0]:e,a=He&&il(He,!0),l=He&&a&&a.a,c=He&&a&&a.d,d=Yf&&xn&&mv(xn),u=(s.clientX-$s.clientX+o.x)/(l||1)+(d?d[0]-A0[0]:0)/(l||1),f=(s.clientY-$s.clientY+o.y)/(c||1)+(d?d[1]-A0[1]:0)/(c||1);if(!Be.active&&!ll){if(r&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(He){a?(a.e+=u-(O0||0),a.f+=f-(L0||0)):a={a:1,b:0,c:0,d:1,e:u,f};var h="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");$e(He,"webkitTransform",h),$e(He,"mozTransform",h),$e(He,"msTransform",h),$e(He,"transform",h),O0=u,L0=f,ui=s}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!He){var e=this.options.fallbackOnBody?document.body:Lt,n=qt(me,!0,Yf,!0,e),r=this.options;if(Yf){for(xn=e;$e(xn,"position")==="static"&&$e(xn,"transform")==="none"&&xn!==document;)xn=xn.parentNode;xn!==document.body&&xn!==document.documentElement?(xn===document&&(xn=Ii()),n.top+=xn.scrollTop,n.left+=xn.scrollLeft):xn=Ii(),A0=mv(xn)}He=me.cloneNode(!0),ur(He,r.ghostClass,!1),ur(He,r.fallbackClass,!0),ur(He,r.dragClass,!0),$e(He,"transition",""),$e(He,"transform",""),$e(He,"box-sizing","border-box"),$e(He,"margin",0),$e(He,"top",n.top),$e(He,"left",n.left),$e(He,"width",n.width),$e(He,"height",n.height),$e(He,"opacity","0.8"),$e(He,"position",Yf?"absolute":"fixed"),$e(He,"zIndex","100000"),$e(He,"pointerEvents","none"),Be.ghost=He,e.appendChild(He),$e(He,"transform-origin",wv/parseInt(He.style.width)*100+"% "+Cv/parseInt(He.style.height)*100+"%")}},_onDragStart:function(e,n){var r=this,o=e.dataTransfer,s=r.options;if(tr("dragStart",this,{evt:e}),Be.eventCanceled){this._onDrop();return}tr("setupClone",this),Be.eventCanceled||(Ft=_v(me),Ft.removeAttribute("id"),Ft.draggable=!1,Ft.style["will-change"]="",this._hideClone(),ur(Ft,this.options.chosenClass,!1),Be.clone=Ft),r.cloneId=jf(function(){tr("clone",r),!Be.eventCanceled&&(r.options.removeCloneOnHide||Lt.insertBefore(Ft,me),r._hideClone(),An({sortable:r,name:"clone"}))}),!n&&ur(me,s.dragClass,!0),n?(Ff=!0,r._loopId=setInterval(r._emulateDragOver,50)):(it(document,"mouseup",r._onDrop),it(document,"touchend",r._onDrop),it(document,"touchcancel",r._onDrop),o&&(o.effectAllowed="move",s.setData&&s.setData.call(r,o,me)),st(document,"drop",r),$e(me,"transform","translateZ(0)")),ll=!0,r._dragStartId=jf(r._dragStarted.bind(r,n,e)),st(document,"selectstart",r),Zc=!0,window.getSelection().removeAllRanges(),Hc&&$e(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,r=e.target,o,s,a,l=this.options,c=l.group,d=Be.active,u=Af===c,f=l.sort,h=gn||d,g,p=this,y=!1;if(F0)return;function m(A,T){tr(A,p,Pi({evt:e,isOwner:u,axis:g?"vertical":"horizontal",revert:a,dragRect:o,targetRect:s,canSort:f,fromSortable:h,target:r,completed:E,onMove:function(F,B){return Gf(Lt,n,me,o,F,qt(F),e,B)},changed:w},T))}function b(){m("dragOverAnimationCapture"),p.captureAnimationState(),p!==h&&h.captureAnimationState()}function E(A){return m("dragOverCompleted",{insertion:A}),A&&(u?d._hideClone():d._showClone(p),p!==h&&(ur(me,gn?gn.options.ghostClass:d.options.ghostClass,!1),ur(me,l.ghostClass,!0)),gn!==p&&p!==Be.active?gn=p:p===Be.active&&gn&&(gn=null),h===p&&(p._ignoreWhileAnimating=r),p.animateAll(function(){m("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(r===me&&!me.animated||r===n&&!r.animated)&&(cl=null),!l.dragoverBubble&&!e.rootEl&&r!==document&&(me.parentNode[er]._isOutsideThisEl(e.target),!A&&zs(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),y=!0}function w(){fr=Or(me),Jo=Or(me,l.draggable),An({sortable:p,name:"change",toEl:n,newIndex:fr,newDraggableIndex:Jo,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=di(r,l.draggable,n,!0),m("dragOver"),Be.eventCanceled)return y;if(me.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||p._ignoreWhileAnimating===r)return E(!1);if(Ff=!1,d&&!l.disabled&&(u?f||(a=Bt!==Lt):gn===this||(this.lastPutMode=Af.checkPull(this,d,me,e))&&c.checkPut(this,d,me,e))){if(g=this._getDirection(e,r)==="vertical",o=qt(me),m("dragOverValid"),Be.eventCanceled)return y;if(a)return Bt=Lt,b(),this._hideClone(),m("revert"),Be.eventCanceled||(Vs?Lt.insertBefore(me,Vs):Lt.appendChild(me)),E(!0);var _=P0(n,l.draggable);if(!_||_H(e,g,this)&&!_.animated){if(_===me)return E(!1);if(_&&n===e.target&&(r=_),r&&(s=qt(r)),Gf(Lt,n,me,o,r,s,e,!!r)!==!1)return b(),_&&_.nextSibling?n.insertBefore(me,_.nextSibling):n.appendChild(me),Bt=n,w(),E(!0)}else if(_&&yH(e,g,this)){var C=ol(n,0,l,!0);if(C===me)return E(!1);if(r=C,s=qt(r),Gf(Lt,n,me,o,r,s,e,!1)!==!1)return b(),n.insertBefore(me,C),Bt=n,w(),E(!0)}else if(r.parentNode===n){s=qt(r);var S=0,k,v=me.parentNode!==n,x=!fH(me.animated&&me.toRect||o,r.animated&&r.toRect||s,g),M=g?"top":"left",I=pv(r,"top","top")||pv(me,"top","top"),N=I?I.scrollTop:void 0;cl!==r&&(k=s[M],Jc=!1,Vf=!x&&l.invertSwap||v),S=bH(e,r,s,g,x?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,Vf,cl===r);var L;if(S!==0){var $=Or(me);do $-=S,L=Bt.children[$];while(L&&($e(L,"display")==="none"||L===He))}if(S===0||L===r)return E(!1);cl=r,qc=S;var D=r.nextElementSibling,R=!1;R=S===1;var O=Gf(Lt,n,me,o,r,s,e,R);if(O!==!1)return(O===1||O===-1)&&(R=O===1),F0=!0,setTimeout(gH,30),b(),R&&!D?n.appendChild(me):r.parentNode.insertBefore(me,R?D:r),I&&yv(I,0,N-I.scrollTop),Bt=me.parentNode,k!==void 0&&!Vf&&($f=Math.abs(k-qt(r)[M])),w(),E(!0)}if(n.contains(me))return E(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){it(document,"mousemove",this._onTouchMove),it(document,"touchmove",this._onTouchMove),it(document,"pointermove",this._onTouchMove),it(document,"dragover",zs),it(document,"mousemove",zs),it(document,"touchmove",zs)},_offUpEvents:function(){var e=this.el.ownerDocument;it(e,"mouseup",this._onDrop),it(e,"touchend",this._onDrop),it(e,"pointerup",this._onDrop),it(e,"pointercancel",this._onDrop),it(e,"touchcancel",this._onDrop),it(document,"selectstart",this)},_onDrop:function(e){var n=this.el,r=this.options;if(fr=Or(me),Jo=Or(me,r.draggable),tr("drop",this,{evt:e}),Bt=me&&me.parentNode,fr=Or(me),Jo=Or(me,r.draggable),Be.eventCanceled){this._nulling();return}ll=!1,Vf=!1,Jc=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),V0(this.cloneId),V0(this._dragStartId),this.nativeDraggable&&(it(document,"drop",this),it(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Hc&&$e(document.body,"user-select",""),$e(me,"transform",""),e&&(Zc&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),He&&He.parentNode&&He.parentNode.removeChild(He),(Lt===Bt||gn&&gn.lastPutMode!=="clone")&&Ft&&Ft.parentNode&&Ft.parentNode.removeChild(Ft),me&&(this.nativeDraggable&&it(me,"dragend",this),B0(me),me.style["will-change"]="",Zc&&!ll&&ur(me,gn?gn.options.ghostClass:this.options.ghostClass,!1),ur(me,this.options.chosenClass,!1),An({sortable:this,name:"unchoose",toEl:Bt,newIndex:null,newDraggableIndex:null,originalEvent:e}),Lt!==Bt?(fr>=0&&(An({rootEl:Bt,name:"add",toEl:Bt,fromEl:Lt,originalEvent:e}),An({sortable:this,name:"remove",toEl:Bt,originalEvent:e}),An({rootEl:Bt,name:"sort",toEl:Bt,fromEl:Lt,originalEvent:e}),An({sortable:this,name:"sort",toEl:Bt,originalEvent:e})),gn&&gn.save()):fr!==al&&fr>=0&&(An({sortable:this,name:"update",toEl:Bt,originalEvent:e}),An({sortable:this,name:"sort",toEl:Bt,originalEvent:e})),Be.active&&((fr==null||fr===-1)&&(fr=al,Jo=Xc),An({sortable:this,name:"end",toEl:Bt,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){tr("nulling",this),Lt=me=Bt=He=Vs=Ft=Lf=qo=$s=ui=Zc=fr=Jo=al=Xc=cl=qc=gn=Af=Be.dragged=Be.ghost=Be.clone=Be.active=null,zf.forEach(function(e){e.checked=!0}),zf.length=O0=L0=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":me&&(this._onDragOver(e),mH(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,r=this.el.children,o=0,s=r.length,a=this.options;o<s;o++)n=r[o],di(n,a.draggable,this.el,!1)&&e.push(n.getAttribute(a.dataIdAttr)||CH(n));return e},sort:function(e,n){var r={},o=this.el;this.toArray().forEach(function(s,a){var l=o.children[a];di(l,this.options.draggable,o,!1)&&(r[s]=l)},this),n&&this.captureAnimationState(),e.forEach(function(s){r[s]&&(o.removeChild(r[s]),o.appendChild(r[s]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return di(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var r=this.options;if(n===void 0)return r[e];var o=Kc.modifyOption(this,e,n);typeof o<"u"?r[e]=o:r[e]=n,e==="group"&&vv(r)},destroy:function(){tr("destroy",this);var e=this.el;e[er]=null,it(e,"mousedown",this._onTapStart),it(e,"touchstart",this._onTapStart),it(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(it(e,"dragover",this),it(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Bf.splice(Bf.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!qo){if(tr("hideClone",this),Be.eventCanceled)return;$e(Ft,"display","none"),this.options.removeCloneOnHide&&Ft.parentNode&&Ft.parentNode.removeChild(Ft),qo=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(qo){if(tr("showClone",this),Be.eventCanceled)return;me.parentNode==Lt&&!this.options.group.revertClone?Lt.insertBefore(Ft,me):Vs?Lt.insertBefore(Ft,Vs):Lt.appendChild(Ft),this.options.group.revertClone&&this.animate(me,Ft),$e(Ft,"display",""),qo=!1}}};function mH(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Gf(t,e,n,r,o,s,a,l){var c,d=t[er],u=d.options.onMove,f;return window.CustomEvent&&!wo&&!jc?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=e,c.from=t,c.dragged=n,c.draggedRect=r,c.related=o||e,c.relatedRect=s||qt(e),c.willInsertAfter=l,c.originalEvent=a,t.dispatchEvent(c),u&&(f=u.call(d,c,a)),f}function B0(t){t.draggable=!1}function gH(){F0=!1}function yH(t,e,n){var r=qt(ol(n.el,0,n.options,!0)),o=bv(n.el,n.options,He),s=10;return e?t.clientX<o.left-s||t.clientY<r.top&&t.clientX<r.right:t.clientY<o.top-s||t.clientY<r.bottom&&t.clientX<r.left}function _H(t,e,n){var r=qt(P0(n.el,n.options.draggable)),o=bv(n.el,n.options,He),s=10;return e?t.clientX>o.right+s||t.clientY>r.bottom&&t.clientX>r.left:t.clientY>o.bottom+s||t.clientX>r.right&&t.clientY>r.top}function bH(t,e,n,r,o,s,a,l){var c=r?t.clientY:t.clientX,d=r?n.height:n.width,u=r?n.top:n.left,f=r?n.bottom:n.right,h=!1;if(!a){if(l&&$f<d*o){if(!Jc&&(qc===1?c>u+d*s/2:c<f-d*s/2)&&(Jc=!0),Jc)h=!0;else if(qc===1?c<u+$f:c>f-$f)return-qc}else if(c>u+d*(1-o)/2&&c<f-d*(1-o)/2)return wH(e)}return h=h||a,h&&(c<u+d*s/2||c>f-d*s/2)?c>u+d/2?1:-1:0}function wH(t){return Or(me)<Or(t)?1:-1}function CH(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function EH(t){zf.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&zf.push(r)}}function jf(t){return setTimeout(t,0)}function V0(t){return clearTimeout(t)}Wf&&st(document,"touchmove",function(t){(Be.active||ll)&&t.cancelable&&t.preventDefault()}),Be.utils={on:st,off:it,css:$e,find:hv,is:function(e,n){return!!di(e,n,e,!1)},extend:iH,throttle:gv,closest:di,toggleClass:ur,clone:_v,index:Or,nextTick:jf,cancelNextTick:V0,detectDirection:kv,getChild:ol,expando:er},Be.get=function(t){return t[er]},Be.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(Be.utils=Pi(Pi({},Be.utils),r.utils)),Kc.mount(r)})},Be.create=function(t,e){return new Be(t,e)},Be.version=nH;var Jt=[],Qc,$0,z0=!1,W0,Y0,Hf,ed;function SH(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?st(document,"dragover",this._handleAutoScroll):this.options.supportPointer?st(document,"pointermove",this._handleFallbackAutoScroll):r.touches?st(document,"touchmove",this._handleFallbackAutoScroll):st(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?it(document,"dragover",this._handleAutoScroll):(it(document,"pointermove",this._handleFallbackAutoScroll),it(document,"touchmove",this._handleFallbackAutoScroll),it(document,"mousemove",this._handleFallbackAutoScroll)),Mv(),Uf(),oH()},nulling:function(){Hf=$0=Qc=z0=ed=W0=Y0=null,Jt.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var o=this,s=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,l=document.elementFromPoint(s,a);if(Hf=n,r||this.options.forceAutoScrollFallback||jc||wo||Hc){G0(n,this.options,l,r);var c=Zo(l,!0);z0&&(!ed||s!==W0||a!==Y0)&&(ed&&Mv(),ed=setInterval(function(){var d=Zo(document.elementFromPoint(s,a),!0);d!==c&&(c=d,Uf()),G0(n,o.options,d,r)},10),W0=s,Y0=a)}else{if(!this.options.bubbleScroll||Zo(l,!0)===Ii()){Uf();return}G0(n,this.options,Zo(l,!1),!1)}}},_o(t,{pluginName:"scroll",initializeByDefault:!0})}function Uf(){Jt.forEach(function(t){clearInterval(t.pid)}),Jt=[]}function Mv(){clearInterval(ed)}var G0=gv(function(t,e,n,r){if(e.scroll){var o=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,l=e.scrollSpeed,c=Ii(),d=!1,u;$0!==n&&($0=n,Uf(),Qc=e.scroll,u=e.scrollFn,Qc===!0&&(Qc=Zo(n,!0)));var f=0,h=Qc;do{var g=h,p=qt(g),y=p.top,m=p.bottom,b=p.left,E=p.right,w=p.width,_=p.height,C=void 0,S=void 0,k=g.scrollWidth,v=g.scrollHeight,x=$e(g),M=g.scrollLeft,I=g.scrollTop;g===c?(C=w<k&&(x.overflowX==="auto"||x.overflowX==="scroll"||x.overflowX==="visible"),S=_<v&&(x.overflowY==="auto"||x.overflowY==="scroll"||x.overflowY==="visible")):(C=w<k&&(x.overflowX==="auto"||x.overflowX==="scroll"),S=_<v&&(x.overflowY==="auto"||x.overflowY==="scroll"));var N=C&&(Math.abs(E-o)<=a&&M+w<k)-(Math.abs(b-o)<=a&&!!M),L=S&&(Math.abs(m-s)<=a&&I+_<v)-(Math.abs(y-s)<=a&&!!I);if(!Jt[f])for(var $=0;$<=f;$++)Jt[$]||(Jt[$]={});(Jt[f].vx!=N||Jt[f].vy!=L||Jt[f].el!==g)&&(Jt[f].el=g,Jt[f].vx=N,Jt[f].vy=L,clearInterval(Jt[f].pid),(N!=0||L!=0)&&(d=!0,Jt[f].pid=setInterval((function(){r&&this.layer===0&&Be.active._onTouchMove(Hf);var D=Jt[this.layer].vy?Jt[this.layer].vy*l:0,R=Jt[this.layer].vx?Jt[this.layer].vx*l:0;typeof u=="function"&&u.call(Be.dragged.parentNode[er],R,D,t,Hf,Jt[this.layer].el)!=="continue"||yv(Jt[this.layer].el,R,D)}).bind({layer:f}),24))),f++}while(e.bubbleScroll&&h!==c&&(h=Zo(h,!1)));z0=d}},30),Rv=function(e){var n=e.originalEvent,r=e.putSortable,o=e.dragEl,s=e.activeSortable,a=e.dispatchSortableEvent,l=e.hideGhostForTarget,c=e.unhideGhostForTarget;if(n){var d=r||s;l();var u=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,f=document.elementFromPoint(u.clientX,u.clientY);c(),d&&!d.el.contains(f)&&(a("spill"),this.onSpill({dragEl:o,putSortable:r}))}};function j0(){}j0.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var o=ol(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:Rv},_o(j0,{pluginName:"revertOnSpill"});function H0(){}H0.prototype={onSpill:function(e){var n=e.dragEl,r=e.putSortable,o=r||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:Rv},_o(H0,{pluginName:"removeOnSpill"}),Be.mount(new SH),Be.mount(H0,j0);const kH=(t,e={},n=!0,r,o,s=a=>a)=>{const a=i.reactive({tableData:[],pageable:{page:1,size:10,total:0},searchParam:{},searchInitParam:{},totalParam:{},loading:!1}),l=i.computed({get:()=>({page:a.pageable.page,size:a.pageable.size}),set:y=>{console.log("我是分页更新之后的值",y)}}),c=async()=>{if(!a.loading){if(a.loading=!0,!t){a.loading=!1;return}try{Object.assign(a.totalParam,e,n?l.value:{});for(const m in a.searchParam)a.searchParam[m]===""&&delete a.searchParam[m];let y=await t(s({...a.searchInitParam,...a.totalParam}));if(r&&(y=await r(y)),a.tableData=n?y.list:y,n){const{currentPage:m,pageSize:b,total:E}=y;u({page:m,size:b,total:E})}}catch(y){o&&o(y)}finally{a.loading=!1}}},d=()=>{a.totalParam={},a.searchInitParam={},e={};const y={};for(const m in a.searchParam)(a.searchParam[m]||a.searchParam[m]===!1||a.searchParam[m]===0)&&(y[m]=a.searchParam[m]);Object.assign(a.totalParam,y,n?l.value:{})},u=y=>{Object.assign(a.pageable,y)},f=()=>{a.pageable.page=1,d(),c().then()},h=()=>{a.pageable.page=1,a.searchParam={...a.searchInitParam},d(),c().then()},g=y=>{a.pageable.page=1,a.pageable.size=y,c().then()},p=y=>{a.pageable.page=y,c().then()};return{...i.toRefs(a),getTableList:c,search:f,reset:h,handleSizeChange:g,handleCurrentChange:p,updatedTotalParam:d}},vH=(t="id",e)=>{const n=i.ref(!1),r=i.ref([]),o=i.computed(()=>{const a=[];return r.value.forEach(l=>a.push(nr(l,t))),a});return{isSelected:n,selectedList:r,selectedListIds:o,selectionChange:a=>{a.length?n.value=!0:n.value=!1,r.value=a,e&&e(a)}}},xH={class:"w-100"},TH={key:1,class:"cascader-select-empty"},MH={key:2,class:"loading"},U0=Mt(i.defineComponent({name:"CascaderLoadMore",__name:"CascaderLoadMore",props:i.mergeModels({onChange:{type:Function,required:!1},initialValue:{type:[String,Number,Array],required:!1},pageSize:{type:Number,default:10},requestFunction:{type:Function,required:!0},handleOptionsFunction:{type:Function,required:!0},placeholder:{type:String,default:"输入关键字搜索名称"},forceSearch:{type:Boolean,default:!0},initialOptions:{type:Array,required:!1,default:()=>[]},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},collapseTagsTooltip:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},cascaderProps:{type:Object,default:()=>({})},placement:{type:String,default:"bottom-start"},trigger:{type:String,default:"click"},popperClass:{type:String},teleported:{type:Boolean,default:!1},noDataText:{type:String,default:"暂无数据"}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["change","removeTag"],["update:modelValue"]),setup(t,{expose:e,emit:n}){const r=t,o=i.useModel(t,"modelValue"),s=i.ref(o.value||[]),a=i.ref(!1),l=i.ref({page:1,size:r.pageSize}),c=i.ref(void 0),d=i.ref(!1),u=i.ref(!0),f=i.ref(r.initialOptions||[]),h=i.ref(r.initialOptions||[]),g=i.ref(void 0),p=i.ref(!1),y={expandTrigger:"hover",checkStrictly:!1,multiple:r.multiple,emitPath:!0,...r.cascaderProps},m=i.ref(),b=i.ref(),E=()=>{a.value=!0},w=()=>{a.value=!1},_=F=>{const B=new Map;return(F||[]).forEach(P=>{const Y=`${P.value}`;B.has(Y)||B.set(Y,P)}),Array.from(B.values())};function C(F){const B=[];function P(Y,G=""){const Q=G&&(r.cascaderProps.emitPath??!0)?`${G}/${Y.label}`:Y.label;B.push({...Y,value:Y.value,label:Q}),Y.children&&Y.children.length>0&&Y.children.forEach(H=>P(H,Q))}return F.forEach(Y=>P(Y)),B}const S=async F=>{var G;if(!r.forceSearch&&!F)return;const B=g.value===F||!g.value&&!F;if(B||(l.value.page=1),B&&c.value!==void 0&&l.value.page>c.value&&!p.value)return;p.value=!1,d.value=!0,h.value.length===0&&(u.value=!0);const Y=await r.requestFunction(l.value.page,l.value.size,F);if(Y&&Object.keys(Y).length){c.value=Y.totalPage;const Q=(G=Y==null?void 0:Y.list)==null?void 0:G.map(r.handleOptionsFunction);B&&l.value.page!==1?h.value=_([...h.value,...Q]):h.value=Q||[],s.value=Mn(o.value),f.value=C(h.value)}i.nextTick(()=>{V()}),g.value=F,d.value=!1,h.value.length!==0&&(u.value=!1)},k=()=>{l.value.page=l.value.page+1,S(g.value)},v=async F=>{o.value=F,s.value=F,await i.nextTick();const B=x(F),P=r.onChange;P&&P(F,B)},x=F=>{const B=F||o.value;return r.multiple?f.value.filter(P=>(B||[]).includes(P.value)):f.value.find(P=>P.value===B)},M=()=>{o.value=r.initialValue,s.value=r.initialValue,l.value.page=1,l.value.size=r.pageSize,f.value=r.initialOptions||[],h.value=r.initialOptions||[],c.value=void 0,g.value=void 0},I=n;i.watch(()=>r.initialOptions,()=>{f.value=C(r.initialOptions),console.log("options.value",f.value),h.value=r.initialOptions},{immediate:!0});const N=F=>{I("removeTag",F)},L=F=>{p.value=F},$=i.ref(null),D=i.ref(null),R=()=>{if(!a.value)return;const F=b.value.popperRef.contentRef,B=F==null?void 0:F.querySelector(".el-cascader-panel .el-scrollbar__wrap");B&&($.value=B,D.value=()=>A(B),B.addEventListener("scroll",D.value))},O=()=>{$.value&&D.value&&($.value.removeEventListener("scroll",D.value),$.value=null,D.value=null)},A=F=>{const{scrollTop:B,scrollHeight:P,clientHeight:Y}=F;let G=P-B;Y+10>G&&k()};i.nextTick(()=>R()),i.watch(a,F=>{F?(console.log("visible",F),i.nextTick(()=>R())):O()}),i.watch(h,F=>{F!=null&&F.length&&a.value?i.nextTick(()=>R()):O()});const T=async F=>{(r.cascaderProps.emitPath??!0)&&Array.isArray(F)?r.multiple?o.value=F.map(Y=>Y.at(-1)):o.value=F.at(-1):o.value=Mn(s.value),await i.nextTick();const B=x(o.value),P=r.onChange;P&&P(F,B)},V=()=>{var Y;const F=b.value.popperRef.contentRef,B=(Y=m.value)==null?void 0:Y.$el,P=F==null?void 0:F.querySelector(".cascader-select-empty");if(B&&P){const G=B.offsetWidth;P.style.width=`${G}px`}};return e({reset:M,getSelectedOption:x,remoteMethod:S,handleRequestParamsChanged:L,options:f,cascderOptions:h}),(F,B)=>i.withDirectives((i.openBlock(),i.createElementBlock("div",xH,[i.createVNode(i.unref(S3),{ref_key:"popoverRef",ref:b,teleported:t.teleported,placement:r.placement,trigger:r.trigger,"popper-class":"warp-cascade-panel "+r.popperClass,visible:a.value},{reference:i.withCtx(()=>[i.createVNode(i.unref(PC),i.mergeProps({ref_key:"remoteSelectRef",ref:m,modelValue:o.value,"onUpdate:modelValue":B[0]||(B[0]=P=>o.value=P),multiple:t.multiple,placeholder:t.placeholder,"remote-method":S,teleported:!0,clearable:t.clearable,"collapse-tags":t.collapseTags,"collapse-tags-tooltip":t.collapseTagsTooltip,filterable:"",height:"300",remote:"","remote-show-suffix":"","reserve-keyword":"","popper-class":"hidden-dropdown",class:"cascader-select"},F.$attrs,{onClick:E,onChange:v,onRemoveTag:N}),{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.value,P=>(i.openBlock(),i.createBlock(i.unref(IC),{key:P.value,label:P.label,value:P.value},null,8,["label","value"]))),128))]),_:1},16,["modelValue","multiple","placeholder","clearable","collapse-tags","collapse-tags-tooltip"])]),default:i.withCtx(()=>[!u.value&&h.value.length>0?(i.openBlock(),i.createBlock(i.unref(yF),{key:0,modelValue:s.value,"onUpdate:modelValue":B[1]||(B[1]=P=>s.value=P),border:!1,props:y,options:h.value,class:"select-cascader-panel",onChange:T},null,8,["modelValue","options"])):(i.openBlock(),i.createElementBlock("div",TH,i.toDisplayString(t.noDataText),1)),d.value?(i.openBlock(),i.createElementBlock("div",MH,"加载中...")):i.createCommentVNode("",!0)]),_:1},8,["teleported","placement","trigger","popper-class","visible"])])),[[i.unref(ia),w]])}})),RH={class:"search-form-item"},DH=$t(i.defineComponent({name:"SearchFormItem",__name:"SearchFormItem",props:{column:{},searchParam:{}},emits:["search"],setup(t,{emit:e}){i.useCssVars(m=>({"6720d772":f.value}));const n=t,r=e,o=i.computed(()=>n.searchParam),s=i.computed(()=>{var m,b,E;return{label:((m=n.column.fieldNames)==null?void 0:m.label)??"label",value:((b=n.column.fieldNames)==null?void 0:b.value)??"value",children:((E=n.column.fieldNames)==null?void 0:E.children)??"children"}}),a=i.inject("enumMap",i.ref(new Map)),l=i.computed(()=>{var b;let m=a.value.get(n.column.prop);return m?(((b=n.column.search)==null?void 0:b.el)==="select-v2"&&n.column.fieldNames&&(m=m.map(E=>({...E,label:E[s.value.label],value:E[s.value.value]}))),m):[]}),c=i.computed(()=>{var m,b;return((b=(m=n.column.search)==null?void 0:m.props)==null?void 0:b.options)??l.value??[]}),d=i.computed(()=>{var C,S;const m=s.value.label,b=s.value.value,E=s.value.children,w=(C=n.column.search)==null?void 0:C.el;let _=((S=n.column.search)==null?void 0:S.props)??{};return w==="tree-select"&&(_={..._,props:{..._.props,label:m,children:E},nodeKey:b}),w==="cascader"&&(_={..._,props:{..._.props,label:m,value:b,children:E}}),_}),u=i.computed(()=>{var E,w,_,C,S,k,v;const m=n.column.search;return["datetimerange","daterange","monthrange"].includes((E=m==null?void 0:m.props)==null?void 0:E.type)||(w=m==null?void 0:m.props)!=null&&w.isRange?{rangeSeparator:((_=m==null?void 0:m.props)==null?void 0:_.rangeSeparator)??"-",startPlaceholder:((C=m==null?void 0:m.props)==null?void 0:C.startPlaceholder)??"开始时间",endPlaceholder:((S=m==null?void 0:m.props)==null?void 0:S.endPlaceholder)??"结束时间"}:{placeholder:((k=m==null?void 0:m.props)==null?void 0:k.placeholder)??((v=m==null?void 0:m.el)!=null&&v.includes("input")?"请输入":"请选择")}}),f=i.computed(()=>{var _,C;const m=n.column.search,b=o.value[(m==null?void 0:m.key)??jn(n.column.prop)],E=m==null?void 0:m.el,w=(_=m==null?void 0:m.props)==null?void 0:_.placeholder;if(m!=null&&m.width)if(rd(m==null?void 0:m.width)){if(m==null?void 0:m.width(b))return(m==null?void 0:m.width(b))+"px"}else return(m==null?void 0:m.width)+"px";if(b&&b.length!==0&&["select","select-v2","tree-select","cascader"].includes(E||"")){if(cn(b)){let v=c.value;const x=[];if(b.forEach(M=>{const I=v.find(L=>L[s.value.value]===M);x.push(I?I[s.value.label]:M);const N=I[s.value.children]??c.value;v=I?N:[]}),(C=m==null?void 0:m.props)!=null&&C.multiple){const N=ws(x[0])+42;return b.length>1?N+26+ws("+ "+(b.length-1))+"px":N+"px"}return ws(x.join(" / "))+"px"}let S=c.value.find(v=>v[s.value.value]===b);const k=S?S[s.value.label]:b;return ws(k)+"px"}else return w?ws(w)+"px":["date-picker","time-picker","time-select"].includes(E||"")?"210px":"100px"}),h=i.computed(()=>{var m,b,E,w,_;return(E=(b=(m=n.column)==null?void 0:m.search)==null?void 0:b.props)!=null&&E.multiple&&((_=(w=n.column)==null?void 0:w.search)==null?void 0:_.el)==="select"?{collapseTags:!0,collapseTagsTooltip:!0}:{}}),g=i.computed(()=>{var b;const m=n.column.search;return((b=m==null?void 0:m.props)==null?void 0:b.clearable)??((m==null?void 0:m.defaultValue)==null||!1)}),p=m=>{var b,E,w,_,C,S,k,v,x;if(((w=(E=(b=n.column)==null?void 0:b.search)==null?void 0:E.props)==null?void 0:w.type)==="daterange"){const{searchParam:M}=i.toRefs(n);if(m!=null&&m.length){const I=((S=(C=(_=n.column)==null?void 0:_.search)==null?void 0:C.props)==null?void 0:S.beginTime)||"beginTime",N=((x=(v=(k=n.column)==null?void 0:k.search)==null?void 0:v.props)==null?void 0:x.endTime)||"endTime";M.value[I]=m[0],M.value[N]=m[1]}else delete M.value.beginTime,delete M.value.endTime}(m==null||m==="")&&r("search"),m instanceof Array&&!m.length&&r("search")},y=()=>{var m;["input","input-number"].includes(((m=n.column.search)==null?void 0:m.el)||"")&&r("search")};return(m,b)=>{var E,w,_,C,S,k,v,x,M,I,N;return i.openBlock(),i.createElementBlock("div",RH,[((E=m.column.search)==null?void 0:E.type)!=="custom"?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(((w=m.column.search)==null?void 0:w.render)??`el-${(_=m.column.search)==null?void 0:_.el}`),i.mergeProps({key:0},{...d.value,...u.value,searchParam:o.value,clearable:g.value,...h.value},{modelValue:o.value[((C=m.column.search)==null?void 0:C.key)??i.unref(jn)(m.column.prop)],"onUpdate:modelValue":b[0]||(b[0]=L=>{var $;return o.value[(($=m.column.search)==null?void 0:$.key)??i.unref(jn)(m.column.prop)]=L}),modelModifiers:{trim:!0},data:((S=m.column.search)==null?void 0:S.el)==="tree-select"?l.value:[],options:c.value,"prefix-icon":(v=(k=m.column.search)==null?void 0:k.props)==null?void 0:v.prefixIcon,onChange:p,onKeyup:i.withKeys(y,["enter"])}),i.createSlots({default:i.withCtx(()=>{var L;return[((L=m.column.search)==null?void 0:L.el)==="select"?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(l.value,($,D)=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent("el-option"),{key:D,label:$[s.value.label]??"",value:$[s.value.value]},null,8,["label","value"]))),128)):i.renderSlot(m.$slots,"default",{key:1},void 0,!0)]}),_:2},[((x=m.column.search)==null?void 0:x.el)==="cascader"?{name:"default",fn:i.withCtx(({data:L})=>[i.createElementVNode("span",null,i.toDisplayString(L[s.value.label]),1)]),key:"0"}:void 0]),1040,["modelValue","data","options","prefix-icon"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[((M=m.column.search)==null?void 0:M.el)==="zhCascaderLoadMore"?(i.openBlock(),i.createBlock(i.unref(U0),i.mergeProps({key:0,modelValue:o.value[((I=m.column.search)==null?void 0:I.key)??i.unref(jn)(m.column.prop)],"onUpdate:modelValue":b[1]||(b[1]=L=>{var $;return o.value[(($=m.column.search)==null?void 0:$.key)??i.unref(jn)(m.column.prop)]=L}),modelModifiers:{trim:!0}},(N=m.column.search)==null?void 0:N.props),null,16,["modelValue"])):i.createCommentVNode("",!0)],64))])}}}),[["__scopeId","data-v-5c18e8bc"]]),PH={class:"table-search"},IH={key:0},NH={key:0,class:"operation"},OH=$t(i.defineComponent({name:"SearchForm",__name:"SearchForm",props:{columns:{default:()=>[]},searchParam:{default:()=>({})},search:{},reset:{},isShowResetBtn:{type:Boolean,default:!0},isShowSearchBtn:{type:Boolean,default:!0}},setup(t){const e=t;return(n,r)=>(i.openBlock(),i.createElementBlock("div",PH,[i.createVNode(i.unref(Wb),{ref:"formRef",model:n.searchParam,class:"table-search--left",onSubmit:r[0]||(r[0]=i.withModifiers(()=>{},["prevent"]))},{default:i.withCtx(()=>[i.renderSlot(n.$slots,"default",{},void 0,!0),n.columns.length?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.columns,o=>{var s,a,l;return i.openBlock(),i.createElementBlock(i.Fragment,{key:o.prop},[!i.unref(GR)((s=o.search)==null?void 0:s.isShow)||(a=o.search)!=null&&a.isShow?(i.openBlock(),i.createElementBlock("div",IH,[i.createVNode(i.unref(qh),null,i.createSlots({default:i.withCtx(()=>[i.createVNode(DH,{column:o,"search-param":n.searchParam,onSearch:n.search},null,8,["column","search-param","onSearch"])]),_:2},[(l=o.search)!=null&&l.label?{name:"label",fn:i.withCtx(()=>[i.createVNode(i.unref(M3),{size:4},{default:i.withCtx(()=>{var c,d;return[i.createElementVNode("span",null,i.toDisplayString(`${o.search.label}`),1),(c=o.search)!=null&&c.tooltip?(i.openBlock(),i.createBlock(i.unref(sr),{key:0,effect:"dark",content:(d=o.search)==null?void 0:d.tooltip,placement:"top"},{default:i.withCtx(()=>r[1]||(r[1]=[i.createElementVNode("i",{class:i.normalizeClass("iconfont icon-yiwen")},null,-1)])),_:2},1032,["content"])):i.createCommentVNode("",!0)]}),_:2},1024),r[2]||(r[2]=i.createElementVNode("span",null,":",-1))]),key:"0"}:void 0]),1024)])):i.createCommentVNode("",!0)],64)}),128)),e.isShowSearchBtn?(i.openBlock(),i.createBlock(i.unref(lr),{key:0,type:"primary",class:"table-search--search-btn",onClick:n.search},{icon:i.withCtx(()=>r[3]||(r[3]=[i.createElementVNode("i",{class:"ztable-iconfont icon-zhihao-table-search"},null,-1)])),default:i.withCtx(()=>[r[4]||(r[4]=i.createTextVNode(" 搜索 "))]),_:1},8,["onClick"])):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0)]),_:3},8,["model"]),e.isShowResetBtn&&n.columns.length?(i.openBlock(),i.createElementBlock("div",NH,[i.createVNode(i.unref(sr),{class:"box-item",effect:"light",content:"重置",placement:"top"},{default:i.withCtx(()=>[i.createVNode(i.unref(lr),{class:"table-search--reset-btn",onClick:n.reset},{icon:i.withCtx(()=>[i.createVNode(i.unref(Te),{size:14},{default:i.withCtx(()=>[i.createVNode(i.unref(pP))]),_:1})]),_:1},8,["onClick"])]),_:1})])):i.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-e524e82e"]]),LH={class:"el-pagination__total zh-page-total"},AH=$t(i.defineComponent({name:"Pagination",__name:"tablePagination",props:{pageable:{},handleSizeChange:{type:Function},handleCurrentChange:{type:Function}},setup(t){return(e,n)=>e.pageable.total?(i.openBlock(),i.createBlock(i.unref(p3),{key:0,class:"zh-pagination",background:!0,"current-page":e.pageable.page,"page-size":e.pageable.size,total:e.pageable.total,teleported:!1,layout:"slot, sizes, prev, pager, next, jumper",onSizeChange:e.handleSizeChange,onCurrentChange:e.handleCurrentChange},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"zhPaginationLeftSlot",{pageable:e.pageable},()=>[i.createElementVNode("div",LH,"共"+i.toDisplayString(e.pageable.total)+"条数据",1)],!0)]),_:3},8,["current-page","page-size","total","onSizeChange","onCurrentChange"])):i.createCommentVNode("",!0)}}),[["__scopeId","data-v-5965b30c"]]);function K0(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!i.isVNode(t)}const FH=i.defineComponent({name:"TableColumn",__name:"TableColumn",props:{column:{},customColumn:{type:Boolean}},setup(t){const e=t,n=i.ref(e.column),r=i.useSlots(),o=i.inject("enumMap",i.ref(new Map)),s=(c,d)=>o.value.get(c.prop)&&c.isFilterEnum?sE(ku(d.row,c.prop),o.value.get(c.prop),c.fieldNames):kz(ku(d.row,c.prop)),a=(c,d)=>sE(ku(d.row,c.prop),o.value.get(c.prop),c.fieldNames,"tag"),l=c=>i.createVNode(i.Fragment,null,[c.isShow&&i.createVNode(Io,i.mergeProps(c,{"class-name":c.wrap&&"table-column--wrap",showOverflowTooltip:c.showOverflowTooltip??c.prop!=="operation"}),{default:d=>{var f,h,g;let u;if(c._children)return c._children.map(p=>l(p));if(c.render)return c.render(d);if(c.prop==="operation"){if(!r[jn(c.prop)]){n.value.width=0;return}const p=((h=(f=r[jn(c.prop)](d))==null?void 0:f.at(0))==null?void 0:h.children)||[],y=k=>Array.from(k).map(v=>{var x,M,I;return(((x=v.type)==null?void 0:x.name)==="ElButton"||((M=v.type)==null?void 0:M.name)==="ZhButton")&&v.children!=="v-if"?v:(I=v.children)!=null&&I.length?y(v.children):null}).filter(Boolean).flat(),m=y(p),b=k=>{let v="";return k.forEach(x=>{v+=x.children.default()[0].children}),ws(v,14)+16*(k.length>0?k.length-1:0)},E=k=>{n.value.hasOperationMaxWidth||(n.value.width=0,n.value.hasOperationMaxWidth=!0);const v=n.value.width;let x=0;k>0&&(x=Math.round(k)+32),x>Number.parseInt((v==null?void 0:v.toString())||"0")&&(n.value.width=x,n.value.hasOperationMaxWidth=!0)};if(m.length<=3||c.expandOperationButtons){const k=Math.ceil(b(m));let v=k;return e.customColumn&&(v=m.length?m.length===1?k+30:k:50),E(v),i.createVNode("div",{class:"operation-container all-action"},[r[jn(c.prop)](d)])}const w=[],_=m.slice(0,2),C=i.createVNode(lr,{link:!0,type:"primary"},{default:()=>[i.createTextVNode("更多")]});w.push(..._),w[3]=i.createVNode(fB,null,{default:()=>C,dropdown:()=>{let k;return i.createVNode(pB,null,K0(k=m.slice(2).map(v=>i.createVNode(hB,null,K0(v)?v:{default:()=>[v]})))?k:{default:()=>[k]})}});const S=b([..._,C]);return E(S),i.createVNode("div",{class:"operation-container"},[w])}return r[jn(c.prop)]?r[jn(c.prop)](d):c.tag?i.createVNode(Rp,{type:a(c,d)},K0(u=s(c,d))?u:{default:()=>[u]}):c.click&&s(c,d)!==Ut?i.createVNode("span",{class:"el-link el-link--primary scan-link",onClick:function(){c.click(d==null?void 0:d.row,d==null?void 0:d.$index)}},[c.formatter?c.formatter(d.row,d.column,d.row[c.prop],d.$index):s(c,d)]):i.createVNode("span",{class:((g=Sz(ku(d.row,c.prop),o.value.get(c.prop)))==null?void 0:g.state)||"text"},[c.formatter?c.formatter(d.row,d.column,d.row[c.prop],d.$index):s(c,d)])},header:d=>c.headerRender?c.headerRender(d):r[`${jn(c.prop)}Header`]?r[`${jn(c.prop)}Header`](d):c.label})]);return(c,d)=>(i.openBlock(),i.createBlock(l,i.normalizeProps(i.guardReactiveProps(n.value)),null,16))}}),BH={class:"custom-column-dialog"},VH={class:"table-body"},$H={class:"name"},zH={key:0,class:"ml-10"},WH={class:"custom-width-label text"},YH={key:0,class:"custom-width-input-box"},GH={class:"custom-column-footer"},jH={class:"flex-1"},HH=$t(i.defineComponent({name:"ColSetting",__name:"ColSetting",props:{originTableColumns:{default:()=>[]}},emits:["close","submit","dragSort"],setup(t,{expose:e,emit:n}){const r=i.ref(),o=i.ref(!1),s=t,a=i.ref([]),l=i.ref(new Date().getTime()),c=i.ref(!1),d=i.ref();let u=i.ref([]),f=i.ref([]);const h=w=>{f.value=w,u.value=[],a.value=w.filter(_=>(_.hideInCustomColumn&&u.value.push(_),!_.hideInCustomColumn)),c.value=!0,i.nextTick(()=>{m()})},g=w=>{o.value=w},p=n,y=async()=>{f.value=Mn([...u.value,...a.value]),p("submit",f.value),c.value=!1},m=()=>{d.value&&(d.value.destroy(),l.value=new Date().getTime(),r.value.doLayout()),i.nextTick(()=>{const w=document.querySelector(".custom-column-dialog tbody");d.value=Be.create(w,{handle:".move",animation:300,filter:".operation",onEnd({newIndex:_,oldIndex:C}){if(!_&&_!==0||!C&&C!==0)return;let S=Mn(a.value);const k=S[C];if(_<C)for(let v=_;v<C;v++)S[v].order=String(Number(v)+1);else for(let v=C+1;v<=_;v++)S[v].order=String(Number(v)-1);k.order=String(_),a.value=Mn(S)}})})},b=()=>{const w=Mn(s.originTableColumns);o.value?(a.value=w,u.value=[]):a.value=a.value.map(_=>{const C=a.value.find(S=>S.prop===_.prop);return!(C!=null&&C.isShow)||C.prop==="operation"?_:w.find(S=>S.prop===_.prop)}),m()},E=()=>{c.value=!1};return e({openColSetting:h}),(w,_)=>(i.openBlock(),i.createElementBlock("div",BH,[i.createVNode(nE,{modelValue:c.value,"onUpdate:modelValue":_[1]||(_[1]=C=>c.value=C),size:"middle"},{header:i.withCtx(()=>_[2]||(_[2]=[i.createElementVNode("div",{class:"title"},"自定义列",-1),i.createElementVNode("div",{class:"sub-title"},"勾选需要展示的列,拖动列名进行排序",-1)])),footer:i.withCtx(()=>[i.createElementVNode("div",GH,[i.createVNode(i.unref(Yi),{modelValue:o.value,"onUpdate:modelValue":_[0]||(_[0]=C=>o.value=C),class:"checkbox",label:"全局",onChange:g},null,8,["modelValue"]),i.createElementVNode("div",jH,[i.createVNode(fa,{onClick:E},{default:i.withCtx(()=>_[4]||(_[4]=[i.createTextVNode("取消")])),_:1}),i.createVNode(fa,{class:"w-auto",onClick:b},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(o.value?"全局恢复默认":"恢复默认"),1)]),_:1}),i.createVNode(fa,{type:"primary",onClick:y},{default:i.withCtx(()=>_[5]||(_[5]=[i.createTextVNode("保存")])),_:1})])])]),default:i.withCtx(()=>[i.createElementVNode("div",VH,[(i.openBlock(),i.createBlock(i.unref(Jp),{ref_key:"tableRef",ref:r,class:"custom-colum-table",key:l.value,data:a.value.filter(C=>!C.hideInCustomColumn),"row-class-name":C=>C.row.prop==="operation"?"operation":""},{default:i.withCtx(()=>[i.createVNode(i.unref(Io),{width:"100",label:"选择"},{default:i.withCtx(({row:C})=>[i.createVNode(i.unref(Yi),{class:"custom-column-check",modelValue:C.isShow,"onUpdate:modelValue":S=>C.isShow=S,disabled:C.readonly},null,8,["modelValue","onUpdate:modelValue","disabled"])]),_:1}),i.createVNode(i.unref(Io),{prop:"label",label:"名称"},{default:i.withCtx(({row:C})=>[i.createElementVNode("div",$H,[i.createTextVNode(i.toDisplayString(C.label)+" ",1),C.readonly?(i.openBlock(),i.createElementBlock("span",zH,"(必选)")):i.createCommentVNode("",!0),C.prop!=="operation"?(i.openBlock(),i.createBlock(i.unref(Te),{key:1,class:"move move-icon"},{default:i.withCtx(()=>[i.createVNode(i.unref(fP))]),_:1})):i.createCommentVNode("",!0)])]),_:1}),i.createVNode(i.unref(Io),{prop:"width",label:"宽度",width:"180"},{default:i.withCtx(({row:C})=>[i.createElementVNode("div",{class:i.normalizeClass(`custom-width-box ${C.readonly&&"readonly"}`)},[_[3]||(_[3]=i.createElementVNode("span",{class:"text"},"宽度",-1)),i.createElementVNode("span",WH,i.toDisplayString(C.width)+" px",1),C.readonly?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",YH,[i.createVNode(i.unref(xC),{modelValue:C.width,"onUpdate:modelValue":S=>C.width=S,class:"custom-width-input",min:10,max:1e3,controls:!1},null,8,["modelValue","onUpdate:modelValue"])]))],2)]),_:1})]),_:1},8,["data","row-class-name"]))])]),_:1},8,["modelValue"])]))}}),[["__scopeId","data-v-1ff4d8b0"]]),UH={class:"no-card table-main zh-table"},KH={class:"table-title-container"},XH={key:0,class:"table-title"},ZH={key:1,class:"table-header-tip"},qH={class:"table-header-container"},JH={key:0,class:"table-header"},QH={class:"header-button-ri"},eU={key:0},tU={class:"table-body-container"},nU={class:"text d-flex inline-input-text pointer"},rU={key:1,class:"inline-input-box d-flex"},iU={class:"table-empty"},oU=["src"],Dv=Mt($t(i.defineComponent({name:"ZhTable",__name:"Table",props:{columns:{default:()=>[]},data:{},requestApi:{},requestAuto:{type:Boolean,default:!0},requestError:{type:Function,default:t=>{console.error("protable中请求数据错误",t)}},handleParam:{},dataCallback:{},selectChangeCallback:{},title:{},pagination:{type:Boolean,default:!0},initParam:{default:{}},border:{type:Boolean,default:!1},rowKey:{default:"id"},isShowSearch:{type:Boolean,default:!0},maxHeight:{},isShowSearchBtn:{type:Boolean,default:!0},isShowResetBtn:{type:Boolean,default:!0},customColumn:{type:Boolean,default:!1},onSortChange:{},offset:{},customColumnCacheKey:{},customColumnPageCacheKey:{},beforeReset:{},searchClearSelection:{type:Boolean,default:!0}},emits:["search","reset","dargSort"],setup(t,{expose:e,emit:n}){var Ye;const r=i.ref(new Date().getTime()),o={mounted(ae){var he;(he=ae.querySelector("input"))==null||he.focus()}},s=i.useSlots(),a=t,l=i.ref(),c=["selection","radio","index","expand","sort","input"],d=i.ref(a.isShowSearch),u=i.ref(""),f=i.ref({}),h=i.ref(a.maxHeight),{selectionChange:g,selectedList:p,selectedListIds:y,isSelected:m}=vH(a.rowKey,a.selectChangeCallback),{loading:b,tableData:E,pageable:w,searchParam:_,searchInitParam:C,getTableList:S,search:k,reset:v,handleSizeChange:x,handleCurrentChange:M}=kH(a.requestApi,a.initParam,a.pagination,a.dataCallback,a.requestError,a.handleParam),I=ae=>{function he(le){return le.replace(/[A-Z]/g,ue=>"_"+ue.toLowerCase())}const de={ascending:"asc",descending:"desc"},{prop:X,order:be}=ae,Z=he(jn(X)),te=de[be];_.value={..._.value,sortKey:Z,sortOrder:te},w.value.page=1,k()},N=()=>l.value.clearSelection(),L=()=>l.value.clearSort(),$=i.ref(!1),D=()=>{H(),a.customColumn&&Qe(),a.requestAuto&&S(),a.data&&(w.value.total=a.data.length)};i.onMounted(()=>{D(),i.nextTick(()=>{$.value=!0})}),i.onActivated(()=>{$.value&&D()}),i.onDeactivated(()=>{}),i.onUnmounted(()=>{});const R=i.computed(()=>a.data?a.pagination?a.data.slice((w.value.page-1)*w.value.size,w.value.size*w.value.page):a.data:E.value),O=ae=>{w.value.total=ae};i.watch(()=>a.initParam,S,{deep:!0});let A=i.reactive(a.columns);const T=i.computed(()=>B(A)),V=i.ref(new Map),F=async({prop:ae,enum:he})=>{if(!he||V.value.has(ae)&&(typeof he=="function"||V.value.get(ae)===he))return;if(typeof he!="function")return V.value.set(ae,i.unref(he));V.value.set(ae,[]);const{data:de}=await he();V.value.set(ae,de)};i.provide("enumMap",V);const B=(ae,he=[])=>(ae.forEach(async de=>{var X;(X=de._children)!=null&&X.length&&he.push(...B(de._children)),he.push(de),de.isShow=de.isShow??!0,de.isFilterEnum=de.isFilterEnum??!0,await F(de)}),he.filter(de=>{var X;return!((X=de._children)!=null&&X.length)})),P=i.computed(()=>{var ae;return(ae=T.value)==null?void 0:ae.filter(he=>{var de,X;return((de=he.search)==null?void 0:de.el)||((X=he.search)==null?void 0:X.render)}).sort((he,de)=>he.search.order-de.search.order)});(Ye=P.value)==null||Ye.forEach((ae,he)=>{var be,Z,te;ae.search.order=((be=ae.search)==null?void 0:be.order)??he+2;const de=((Z=ae.search)==null?void 0:Z.key)??jn(ae.prop),X=(te=ae.search)==null?void 0:te.defaultValue;X!=null&&(C.value[de]=X,_.value[de]=X)});const Y=n,G=()=>{var ae;a.searchClearSelection&&((ae=l.value)==null||ae.clearSelection()),k(),Y("search")},Q=()=>{a.beforeReset&&a.beforeReset(),v(),L(),Y("reset")},H=()=>{const ae=document.querySelector(".el-table__body-wrapper tbody");ae&&Be.create(ae,{handle:".move",animation:300,onEnd({newIndex:he,oldIndex:de}){const[X]=R.value.splice(de,1);R.value.splice(he,0,X),Y("dargSort",{newIndex:he,oldIndex:de})}})},K=i.ref(0),ie=(ae,he)=>{const de=E.value.findIndex(X=>X.$showInput);de>-1&&(E.value[de]=Mn(f.value),E.value[de].$showInput=!1),K.value=oE(ae,String(he)),ae.$showInput=!0,f.value=Mn(ae)},se=async(ae,he,de)=>{c_(ae,he,K.value),de&&await de(ae),ae.$showInput=!1,nu.success("更新成功"),await S()},oe=async ae=>{const he=E.value.findIndex(de=>Fn(a_(de,Ws),a_(ae,Ws)));he>-1&&(E.value[he]=Mn(f.value),E.value[he].$showInput=!1)},Me=vz(a.customColumnCacheKey),xe=i.ref(null),We=()=>A.map((ae,he)=>({readonly:ae.isCustomDisable||["id","operation"].includes(String(ae.prop)),hideInCustomColumn:ae.hideInCustomColumn||ae.type==="selection",order:he,width:ae.width||ae.minWidth,...ae})).sort((ae,he)=>{const de=Number(ae.order),X=Number(he.order);return de-X}),Ke=()=>{Ue=i.reactive(We()),i.nextTick(()=>{xe.value.openColSetting(Mn(Ue))})},Qe=()=>{if(!a.customColumnPageCacheKey)return;const ae=Me.getColumnCache(a.customColumnPageCacheKey);if(ae!=null&&ae.length){const he=A.map(de=>{const X=ae.find(be=>be.prop===de.prop);if(X){const be={...de,order:X.order||de.order,isShow:X.isShow!==void 0?X.isShow:de.isShow,readonly:X.readonly!==void 0?X.readonly:de.readonly,prop:X.prop||de.prop,index:X.index||de.index};return de.minWidth&&(be.minWidth=X.minWidth||de.minWidth),de.width&&(be.width=X.width||de.width),be}return de});Ue=i.reactive(he),A=i.reactive(Ue)}};let Ue=i.reactive(We());const ct=Mn(We()),Re=ae=>{if(!a.customColumnPageCacheKey)return console.error("请添加自定义列缓存配置项:customColumnPageCacheKey");ae=ae.map(he=>{const de=ct.find(X=>X.prop===he.prop);return de&&de.minWidth&&(he.minWidth=he.width,delete he.width),he}),A=i.reactive(Mn(ae)),Me.setColumnCache(a.customColumnPageCacheKey,ae),r.value=new Date().getTime(),l.value.doLayout()};return e({element:l,tableData:R,radio:u,pageable:w,searchParam:_,searchInitParam:C,setPageTotal:O,getTableList:S,search:k,reset:v,handleSizeChange:x,handleCurrentChange:M,clearSelection:N,enumMap:V,isSelected:m,selectedList:p,selectedListIds:y}),(ae,he)=>{const de=i.resolveDirective("loading");return i.openBlock(),i.createBlock(i.unref(sN),{locale:i.unref(Jj)},{default:i.withCtx(()=>[i.createElementVNode("div",UH,[i.createElementVNode("div",KH,[ae.title?(i.openBlock(),i.createElementBlock("div",XH,i.toDisplayString(ae.title),1)):i.createCommentVNode("",!0),i.unref(s).headerTip?(i.openBlock(),i.createElementBlock("div",ZH,[i.renderSlot(ae.$slots,"headerTip",{},void 0,!0)])):i.createCommentVNode("",!0)]),i.createElementVNode("div",qH,[i.withDirectives(i.createVNode(OH,{search:G,reset:Q,columns:P.value,"search-param":i.unref(_),"is-show-reset-btn":a.isShowResetBtn,"is-show-search-btn":a.isShowSearchBtn},{default:i.withCtx(()=>[ae.$slots.tableHeader?(i.openBlock(),i.createElementBlock("div",JH,[i.createElementVNode("div",QH,[i.renderSlot(ae.$slots,"tableHeader",{selectedList:i.unref(p),selectedListIds:i.unref(y),isSelected:i.unref(m)},void 0,!0)])])):i.createCommentVNode("",!0)]),_:3},8,["columns","search-param","is-show-reset-btn","is-show-search-btn"]),[[i.vShow,d.value]])]),i.unref(s).searchBarBottom?(i.openBlock(),i.createElementBlock("div",eU,[i.renderSlot(ae.$slots,"searchBarBottom",{},void 0,!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",tU,[a.customColumn?(i.openBlock(),i.createElementBlock("div",{key:0,class:"col-setting-button",onClick:Ke},[i.createVNode(i.unref(sr),{class:"box-item",effect:"dark",content:"自定义列",placement:"top"},{default:i.withCtx(()=>[i.createVNode(i.unref(Te),{size:16,color:"#000000a6"},{default:i.withCtx(()=>[i.createVNode(i.unref(gP))]),_:1})]),_:1})])):i.createCommentVNode("",!0),i.withDirectives((i.openBlock(),i.createBlock(i.unref(Jp),i.mergeProps({ref_key:"tableRef",ref:l},ae.$attrs,{key:r.value,data:R.value,border:ae.border,"row-key":ae.rowKey,"max-height":h.value,"row-style":{height:"42px"},"tooltip-effect":"light","tooltip-options":{showArrow:!1,placement:"bottom-start",offset:a.offset?a.offset:-20},"element-loading-spinner":i.unref(xz),"element-loading-svg-view-box":"0 0 64 64"},i.toHandlers(ae.$attrs),{onSelectionChange:i.unref(g),onSortChange:he[1]||(he[1]=X=>a.onSortChange?a.onSortChange(X):I(X))}),{append:i.withCtx(()=>[i.renderSlot(ae.$slots,"append",{},void 0,!0)]),empty:i.withCtx(()=>[i.createElementVNode("div",iU,[i.renderSlot(ae.$slots,"empty",{},()=>[i.createElementVNode("img",{src:`${i.unref(ez)}ghy-components/empty.png`,class:"zh-empty-img",alt:"notData"},null,8,oU),he[5]||(he[5]=i.createElementVNode("div",null,"暂无数据",-1))],!0)])]),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(A).sort((X,be)=>X.order-be.order),X=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:X},[X.type&&c.includes(X.type)&&X.isShow?(i.openBlock(),i.createBlock(i.unref(Io),i.mergeProps({key:0,ref_for:!0},X,{align:X.align??"left","reserve-selection":X.type=="selection"}),i.createSlots({default:i.withCtx(be=>[X.type=="expand"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[X.render?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(X.render),i.mergeProps({key:0,ref_for:!0},be),null,16)):i.renderSlot(ae.$slots,X.type,i.mergeProps({key:1,ref_for:!0},be),void 0,!0)],64)):i.createCommentVNode("",!0),X.type=="sort"?(i.openBlock(),i.createBlock(i.unref(Rp),{key:1,class:"move"},{default:i.withCtx(()=>[i.createVNode(i.unref(Te),null,{default:i.withCtx(()=>[i.createVNode(i.unref(QD))]),_:1})]),_:1})):i.createCommentVNode("",!0),X.type=="input"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[be.row.$showInput?(i.openBlock(),i.createElementBlock("div",rU,[i.withDirectives(i.createVNode(i.unref(xC),{modelValue:K.value,"onUpdate:modelValue":he[0]||(he[0]=Z=>K.value=Z),min:0,controls:!1},null,8,["modelValue"]),[[o]]),i.createVNode(i.unref(la),{underline:!1,type:"primary",onClick:Z=>se(be.row,String(X.prop),X.blurCallback),class:"ml-5"},{default:i.withCtx(()=>he[3]||(he[3]=[i.createTextVNode(" 保存 ")])),_:2},1032,["onClick"]),i.createVNode(i.unref(la),{type:"primary",underline:!1,onClick:Z=>oe(be.row),class:"ml-5"},{default:i.withCtx(()=>he[4]||(he[4]=[i.createTextVNode(" 取消 ")])),_:2},1032,["onClick"])])):(i.openBlock(),i.createBlock(i.unref(sr),{key:0,content:"编辑",placement:"top"},{default:i.withCtx(()=>[i.createElementVNode("span",nU,[i.createTextVNode(i.toDisplayString(i.unref(oE)(be.row,String(X.prop)))+" ",1),i.createVNode(i.unref(la),{underline:!1,class:"text d-flex inline-input-text pointer",onClick:Z=>ie(be.row,X.prop)},{default:i.withCtx(()=>he[2]||(he[2]=[i.createElementVNode("i",{class:"iconfont icon-edit"},null,-1)])),_:2},1032,["onClick"])])]),_:2},1024))],64)):i.createCommentVNode("",!0)]),_:2},[X.headerRender?{name:"header",fn:i.withCtx(be=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(X.headerRender),i.mergeProps({ref_for:!0},be),null,16))]),key:"0"}:void 0]),1040,["align","reserve-selection"])):i.createCommentVNode("",!0),!X.type&&X.prop&&X.isShow?(i.openBlock(),i.createBlock(FH,{key:1,column:X,"custom-column":ae.customColumn},i.createSlots({_:2},[i.renderList(Object.keys(ae.$slots),be=>({name:be,fn:i.withCtx(Z=>[i.renderSlot(ae.$slots,be,i.mergeProps({ref_for:!0},Z),void 0,!0)])}))]),1032,["column","custom-column"])):i.createCommentVNode("",!0)],64))),128))]),_:3},16,["data","border","row-key","max-height","tooltip-options","element-loading-spinner","onSelectionChange"])),[[de,i.unref(b)]])]),i.renderSlot(ae.$slots,"pagination",{},()=>[ae.pagination?(i.openBlock(),i.createBlock(AH,{key:0,pageable:i.unref(w),"handle-size-change":i.unref(x),"handle-current-change":i.unref(M)},{zhPaginationLeftSlot:i.withCtx(X=>[i.renderSlot(ae.$slots,"zhPaginationLeft",i.normalizeProps(i.guardReactiveProps(X)),void 0,!0)]),_:3},8,["pageable","handle-size-change","handle-current-change"])):i.createCommentVNode("",!0)],!0)]),a.customColumn?(i.openBlock(),i.createBlock(HH,{key:0,ref_key:"colRef",ref:xe,"origin-table-columns":i.unref(ct),onSubmit:Re},null,8,["origin-table-columns"])):i.createCommentVNode("",!0)]),_:3},8,["locale"])}}}),[["__scopeId","data-v-d7faf199"]])),sU={key:1},aU={key:1,class:"zh-base-item--value--file"},lU={key:2},cU=Mt(i.defineComponent({name:"ZhBaseItem",__name:"BaseItem",props:{label:{},labelRender:{},colon:{type:Boolean,default:!1},value:{},fileId:{},rewriteFileName:{},valueRender:{},onClick:{},labelWidth:{},infoDirection:{default:"horizontal"},defaultValue:{default:Ut},className:{},labelClassName:{},valueClassName:{},span:{default:1},showFileName:{type:Boolean,default:!0},fetchFileById:{}},setup(t){const e=i.useSlots(),n=t,r=i.inject("infoLabelWidth"),o=i.computed(()=>!!(n.onClick&&n.value)),s=i.computed(()=>!!(!n.value&&n.fileId)),a=i.ref(),l=i.computed(()=>{var h;const f=(h=a.value)==null?void 0:h.name;if(!f)return"";if(n.rewriteFileName){const g=f.substring(f.lastIndexOf("."));return n.rewriteFileName+g}return f}),c=i.computed(()=>{const f={},h=n.labelWidth||(r==null?void 0:r.value);return h&&n.infoDirection==="horizontal"&&(isNaN(Number(h))?f.width=String(h):f.width=h+"px"),f}),d=i.computed(()=>({...c.value})),u=i.computed(()=>n.value===""?Ut:n.value??Ut);return i.watchEffect(async()=>{!s.value||!n.fileId||!n.fetchFileById||(a.value=await n.fetchFileById(n.fileId))}),(f,h)=>(i.openBlock(),i.createBlock(i.unref(Lm),{span:f.span,label:f.label},{default:i.withCtx(g=>{var p;return[i.createElementVNode("div",{class:i.normalizeClass(["zh-base-item",[f.infoDirection,f.className]])},[i.createElementVNode("div",{class:i.normalizeClass(["zh-base-item-label",[f.infoDirection,f.labelClassName]]),style:i.normalizeStyle({width:f.infoDirection==="horizontal"&&g.maxLabelWidthInCol?g.maxLabelWidthInCol+"px":void 0,...d.value})},[f.labelRender?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(f.labelRender),{key:0})):(i.openBlock(),i.createElementBlock("span",sU,i.toDisplayString(f.label)+i.toDisplayString(f.colon?":":""),1))],6),i.createElementVNode("div",{class:i.normalizeClass(["zh-base-item-value",f.valueClassName])},[i.unref(e).value?i.renderSlot(f.$slots,"value",{key:0,content:f.value}):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[o.value?(i.openBlock(),i.createBlock(i.unref(la),{key:0,type:"primary",class:"zh-base-item--value--link",onClick:h[0]||(h[0]=i.withModifiers(y=>f.onClick&&f.onClick(f.value??void 0),["stop"]))},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(f.value),1)]),_:1})):s.value?(i.openBlock(),i.createElementBlock("div",aU,[f.showFileName?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(i.unref(Te),{class:"iconfont"},{default:i.withCtx(()=>[i.createVNode(i.unref(tP))]),_:1}),i.createTextVNode(" "+i.toDisplayString(l.value),1)],64)):i.createCommentVNode("",!0),i.createVNode(i.unref(la),{type:"primary",href:(p=a.value)==null?void 0:p.path,target:"_blank",class:i.normalizeClass({"ml-8":f.showFileName})},{default:i.withCtx(()=>h[1]||(h[1]=[i.createTextVNode(" 查看/下载 ")])),_:1},8,["href","class"])])):f.valueRender?(i.openBlock(),i.createElementBlock("div",lU,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(f.valueRender)))])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:3},[i.createTextVNode(i.toDisplayString(u.value),1)],64))],64))],2)],2)]}),_:3},8,["span","label"]))}})),dU=UR([wE,t1,tE,CE,rE,SE,aE,Lm,lE,cE,dE,fE,hE,yE,pE,mE,gE,_E,bE,sv,n1,Dv,U0]);Ie.DIY_DATA_TYPE=Ci,Ie.ZhAlert=mE,Ie.ZhBaseInfo=wE,Ie.ZhBaseItem=cU,Ie.ZhButton=t1,Ie.ZhButtonGroup=n1,Ie.ZhCascaderLoadMore=U0,Ie.ZhConfirm=pE,Ie.ZhDatePicker=tE,Ie.ZhDetailHeader=CE,Ie.ZhDetailSubTitle=sz,Ie.ZhDialog=rE,Ie.ZhDiyDataTable=SE,Ie.ZhEditInfoPair=hz,Ie.ZhFileWrapper=bz,Ie.ZhGrid=aE,Ie.ZhGridItem=Lm,Ie.ZhInfoPair=cE,Ie.ZhInput=dE,Ie.ZhInputNumber=fE,Ie.ZhLoading=hE,Ie.ZhMap=sv,Ie.ZhMessageBox=yE,Ie.ZhMoneyInput=_E,Ie.ZhMultiGrid=lE,Ie.ZhPageHeadPanel=Wz,Ie.ZhPrompt=gE,Ie.ZhTable=Dv,Ie.ZhToolTips=bE,Ie.default=dU,Object.defineProperties(Ie,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|