@hb-hellotech/hb-ui 2.5.0 → 2.6.0

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.
@@ -1,4 +1,4 @@
1
- (function(Ur,H){typeof exports=="object"&&typeof module<"u"?H(exports,require("vue"),require("vuedraggable"),require("ant-design-vue"),require("vue-router"),require("vue-i18n"),require("lodash"),require("@ant-design/icons-vue"),require("@vueuse/core"),require("dayjs")):typeof define=="function"&&define.amd?define(["exports","vue","vuedraggable","ant-design-vue","vue-router","vue-i18n","lodash","@ant-design/icons-vue","@vueuse/core","dayjs"],H):(Ur=typeof globalThis<"u"?globalThis:Ur||self,H(Ur.HbComponentLib={},Ur.Vue,Ur.draggable,Ur.antDesignVue,Ur.vueRouter,Ur.vueI18n,Ur.lodash$1,Ur.iconsVue,Ur.core,Ur.dayjs$1))})(this,(function(Ur,H,KI,Cr,nB,bs,sA,Wo,lA,qI){"use strict";const iB=(r="")=>{const t=`hb-${r}`;return vne(t)},cA=(r,t,e,n)=>(t&&(r+=`-${t}`),e&&(r+=`__${e}`),n&&(r+=`--${n}`),r),vne=r=>({b:t=>t?cA(r,t,"",""):cA(r,"","",""),e:t=>t?cA(r,"",t,""):"",m:t=>cA(r,"","",t),be:(t,e)=>cA(r,t,e,""),em:(t,e)=>cA(r,"",t,e),bem:(t,e,n)=>cA(r,t,e,n),is:(t,e)=>e?`is-${t}`:""}),yne=["onMouseenter","onMouseleave"],mne=["onClick"],Ine=H.defineComponent({name:"HbLibFormItemFilterModal",__name:"HbFormItemFilterModal",props:{list:{default:()=>[]},afterChange:{type:Function,default:()=>()=>{}},title:{},showNumber:{},saveKey:{default:""}},emits:["confirm"],setup(r,{expose:t,emit:e}){const n=H.inject("globalCompConfig",{}),i=bs.useI18n().t,a=bs.useI18n().messages.value.en_US,o=bs.useI18n().messages.value.ja_JP,s=bs.useI18n().messages.value.zh_CN,l=r,c=H.computed(()=>l.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),u=H.computed(()=>l.title||i("hbLibComp.hbFormItemFilterModal.title")),f=e,h=iB("sfcm"),A=nB.useRoute(),d=H.reactive({lan:window.localStorage.getItem("lan")}),g=H.ref(!1),y=H.ref(600);let v=[];const p=H.ref([]),m=H.ref([]),b=H.computed(()=>p.value.every(P=>P.isLinked||P.isFixed)),C=P=>({...P,label:Q(P)||`${x(P)||""} (${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,key:P.key,isFixed:P?.isFixed||!1,isLinked:P?.isLinked||!1,labelLanguage:P?.labelLanguage||void 0}),w=P=>{const U=P.draggedContext.element,F=P.relatedContext.index;if(U.isLinked||U.isFixed)return!1;const T=p.value.map((R,V)=>({item:R,index:V})).filter(({item:R})=>R.isLinked).map(({index:R})=>R);if(T.length===0)return!0;for(let R=0;R<T.length-1;R++){const V=T[R],re=T[R+1];if(F>V&&F<re)return!1}return!0},B=H.computed(()=>k()+"_"+l.saveKey),k=()=>{const P=localStorage.getItem("pro__Login_Userinfo");let U="anonymous";if(P)try{U=JSON.parse(P).value.jobNumber||"anonymous"}catch(T){console.warn("解析用户信息失败:",T)}let F=A?.path;return`searchFormConfig_${U}_${F}`},Q=P=>({ja_JP:()=>sA.get(o,P.labelLanguage||""),en_US:()=>sA.get(a,P.labelLanguage||""),zh_CN:()=>sA.get(s,P.labelLanguage||"")})[d.lan]?.()||P.label,x=P=>({ja_JP:()=>sA.get(o,P.subLabelLanguage||""),en_US:()=>sA.get(a,P.subLabelLanguage||""),zh_CN:()=>sA.get(s,P.subLabelLanguage||"")})[d.lan]?.()||P.subLabel,L=()=>{try{const P=localStorage.getItem(B.value);if(P){const U=JSON.parse(P);if(U.originalList&&Array.isArray(U.originalList)){v=JSON.parse(JSON.stringify(U.originalList));const F=v.filter(he=>he?.isFixed),T=v.filter(he=>he?.isLinked),R=U.showList.filter(he=>!he.isFixed&&!he.isLinked),V=c.value&&c.value>0?Math.max(0,c.value-F.length-T.length):R.length,re=F.map(he=>({...C(he)})),oe=T.map(he=>({...C(he)})),fe=R.slice(0,V).map(he=>({...C(he)}));p.value=[...re,...oe,...fe];const Ae=p.value.map(he=>he.key),le=v.map(he=>he.key).filter(he=>!Ae.includes(he));return m.value=v.filter(he=>le.includes(he.key)).map(he=>({...C(he),active:!1})),!0}}}catch(P){console.warn("加载保存的搜索配置失败:",P)}return!1},O=()=>{try{const P={originalList:v,showList:p.value.map(U=>({...U,key:U.key,label:U.label,isFixed:U.isFixed,isLinked:U.isLinked,labelLanguage:U?.labelLanguage||void 0}))};localStorage.setItem(B.value,JSON.stringify(P))}catch(P){console.warn("保存搜索配置失败:",P)}},W=H.computed(()=>{const P=p.value.filter(F=>!F.isFixed&&!F.isLinked).length,U=p.value.filter(F=>F.isFixed||F.isLinked).length;return P>=c.value-U});H.watch(()=>l.list,P=>{let U=JSON.stringify(p.value)!==JSON.stringify(P);if(!U)return;const F=localStorage.getItem(B.value),T=JSON.parse(F||"{}");if(T&&T?.originalList&&Array.isArray(T.originalList))L(),f("confirm",p.value);else if(U){v=JSON.parse(JSON.stringify(P));const R=P.filter(he=>he?.isFixed),V=P.filter(he=>he?.isLinked),re=P.filter(he=>!he?.isFixed&&!he?.isLinked),oe=c.value&&c.value>0?Math.max(0,c.value-R.length-V.length):re.length,fe=R.map(he=>C(he)),Ae=V.map(he=>C(he)),me=re.slice(0,oe).map(he=>C(he));p.value=[...fe,...Ae,...me];const le=re.slice(oe).map(he=>({...C(he),active:!1}));m.value=le,f("confirm",p.value)}},{immediate:!0});const M=P=>{const U=p.value.findIndex(F=>F.key===P.key);U!==-1&&(p.value.splice(U,1),m.value.push({...P,active:!1}))},J=P=>{if(W.value){Cr.message.warning(`当前已经超过${i(c.value)}个可选数量,请先删除已显示条件`);return}const U=m.value.findIndex(F=>F.key===P.key);if(U!==-1){const[F]=m.value.splice(U,1);p.value.push({...F,active:!1})}},G=()=>{g.value=!1},N=()=>{g.value=!0},_=()=>{O(),f("confirm",p.value),G()},S=P=>{const U=m.value.findIndex(F=>F.key===P.key);U!==-1&&(m.value[U].active=!0)},Y=P=>{const U=m.value.findIndex(F=>F.key===P.key);U!==-1&&(m.value[U].active=!1)};return t({toOpenModal:N}),H.onMounted(()=>{}),(P,U)=>(H.openBlock(),H.createElementBlock("div",{class:H.normalizeClass(H.unref(h).b())},[H.createVNode(H.unref(Cr.Modal),{visible:g.value,"onUpdate:visible":U[1]||(U[1]=F=>g.value=F),width:y.value,onCancel:G,onOk:_},{title:H.withCtx(()=>[H.createElementVNode("div",{class:H.normalizeClass(H.unref(h).e("title"))},H.toDisplayString(u.value),3)]),footer:H.withCtx(()=>[H.createVNode(H.unref(Cr.Button),{onClick:G},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),H.createVNode(H.unref(Cr.Button),{type:"primary",onClick:_},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:H.withCtx(()=>[H.createElementVNode("section",{class:H.normalizeClass(H.unref(h).e("show"))},[H.createElementVNode("div",{class:H.normalizeClass(H.unref(h).e("show__title"))},[H.createElementVNode("span",{class:H.normalizeClass(H.unref(h).e("title__tip"))},H.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),H.createElementVNode("span",null,H.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+H.toDisplayString(c.value)+H.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),H.createElementVNode("div",{class:H.normalizeClass(H.unref(h).e("show__tag"))},[H.createVNode(H.unref(KI),{modelValue:p.value,"onUpdate:modelValue":U[0]||(U[0]=F=>p.value=F),"item-key":"key",tag:"div",disabled:b.value,move:w},{item:H.withCtx(({element:F})=>[H.createElementVNode("div",{class:H.normalizeClass([H.unref(h).e("show__tag__item"),H.unref(h).is("fixed",F.isFixed),H.unref(h).is("linked",F.isLinked)])},[H.createTextVNode(H.toDisplayString(F.label)+" ",1),!F.isFixed&&!F.isLinked&&r.list.length>1?(H.openBlock(),H.createBlock(H.unref(Wo.CloseOutlined),{key:0,class:H.normalizeClass(H.unref(h).e("show__tag__item-close")),onClick:T=>M(F)},null,8,["class","onClick"])):H.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),H.createElementVNode("section",{class:H.normalizeClass(H.unref(h).e("unshow"))},[H.createElementVNode("div",{class:H.normalizeClass(H.unref(h).e("show__title"))},[H.createElementVNode("span",{class:H.normalizeClass(H.unref(h).e("title__tip"))},H.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),H.createElementVNode("div",{class:H.normalizeClass(H.unref(h).e("unshow__tag"))},[m.value.length>0?(H.openBlock(!0),H.createElementBlock(H.Fragment,{key:0},H.renderList(m.value,F=>(H.openBlock(),H.createElementBlock("div",{key:F.key,class:H.normalizeClass([H.unref(h).e("unshow__tag__item"),H.unref(h).is("fixed",F.isFixed||""),H.unref(h).is("linked",F.isLinked||"")]),onMouseenter:T=>S(F),onMouseleave:T=>Y(F)},[H.createTextVNode(H.toDisplayString(F.label)+" ",1),F.active?(H.openBlock(),H.createElementBlock("aside",{key:0,class:H.normalizeClass(H.unref(h).e("unshow__tag__item-add")),onClick:T=>J(F)},H.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.add")),11,mne)):H.createCommentVNode("",!0)],42,yne))),128)):(H.openBlock(),H.createElementBlock("div",{key:1,class:H.normalizeClass(H.unref(h).e("unshow__tag__empty"))},H.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),Gi=(r,t)=>{const e=r.__vccOpts||r;for(const[n,i]of t)e[n]=i;return e},bne=Gi(Ine,[["__scopeId","data-v-657502f3"]]);function Ii(r){const t=r;return t.install=e=>{const n=r.name;e.component(n??"AnonymousComponent",r)},t}const VM=Ii(bne),Cne={key:0,class:"form-footer"},wne={class:"scheme-fontWeight"},Ene={class:"scheme-fontWeight"},Bne={class:"scheme-fontWeight"},kne={class:"scheme-fontWeight"},zM=Ii(Gi(H.defineComponent({name:"HbLibListForm",__name:"HbListForm",props:{items:{default:()=>[]},formData:{},layoutConfig:{default:()=>({row:{gutter:20},col:{xs:24,sm:12,md:8,lg:6,xl:6}})},saveKey:{},needFooter:{type:Boolean},isFormExpanded:{type:Boolean,default:!0},needFilter:{type:Boolean,default:!0},needSearchCase:{type:Boolean,default:!1},showNumber:{},searchList:{},calTableHeight:{type:Function,default:()=>()=>{}}},emits:["handleSearch","handleReset","handleSfcmConfirm","handleMenuClick"],setup(r,{expose:t,emit:e}){const n=H.inject("globalCompConfig",{}),i=e,a=H.inject("HB_LIST_PAGE_CONTAINER"),o=H.computed(()=>l.searchList||[]),s=iB("form"),l=r,c=H.computed(()=>l.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),u=H.ref("show"),f=H.computed(()=>l.needFooter||n.HbLibListForm?.needFooter),h=H.computed(()=>[...l.items]),A=W=>W!==void 0,d=W=>typeof W=="function",g=W=>A(W.condition)?d(W.condition)?W.condition():W.condition:!0,y=H.computed(()=>[...l.items].map(W=>({...W,condition:g(W),label:W.label?.includes("多项搜索")?"":W.label})));console.log(y.value);const v=H.computed(()=>l.saveKey),p=H.ref(),m=()=>{i("handleSearch")},b=()=>{i("handleReset")},C=H.ref(),w=()=>{C.value&&C.value.toOpenModal()},B=W=>{i("handleMenuClick",W)},k=W=>{i("handleSfcmConfirm",W)};H.watch(()=>l.isFormExpanded,W=>{if(W){console.log(W);const M=document.querySelector("#subpackage_container");M instanceof HTMLElement&&(M.style.overflow="hidden",setTimeout(()=>{M.style.overflow="auto"},500))}});const Q=W=>{const M=W;M.style.height="",M.offsetHeight},x=W=>{const M=W;M.style.height="",M.style.overflow="",H.nextTick(()=>{a.calTableHeight&&a.calTableHeight()})},L=W=>{const M=W,J=M.querySelector(".hb-lib-form--container");if(J){const G=J.offsetHeight;M.style.height=G+"px",M.style.overflow="hidden",M.offsetHeight,requestAnimationFrame(()=>{M.style.height="0"})}},O=()=>{H.nextTick(()=>{a.calTableHeight&&a.calTableHeight()})};return t({formRef:p,SelectOption:Cr.SelectOption,Form:Cr.Form,FormItem:Cr.FormItem,Row:Cr.Row,Col:Cr.Col,Input:Cr.Input,Select:Cr.Select,CheckboxGroup:Cr.CheckboxGroup,Checkbox:Cr.Checkbox,DatePicker:Cr.DatePicker,InputNumber:Cr.InputNumber,RadioGroup:Cr.RadioGroup,Radio:Cr.Radio,Switch:Cr.Switch,Button:Cr.Button,Tooltip:Cr.Tooltip}),(W,M)=>{const J=H.resolveComponent("a-button"),G=H.resolveComponent("a-tooltip"),N=H.resolveComponent("a-menu-item"),_=H.resolveComponent("a-menu"),S=H.resolveComponent("a-dropdown"),Y=H.resolveComponent("HbLibFormItemFilterModal");return H.openBlock(),H.createElementBlock(H.Fragment,null,[H.createVNode(H.Transition,{name:"form-collapse",onEnter:Q,onAfterEnter:x,onLeave:L,onAfterLeave:O},{default:H.withCtx(()=>[H.withDirectives(H.createElementVNode("div",{class:H.normalizeClass([H.unref(s).b(),"hb-lib-list-page-form-box","hb-form-item-ui",f.value?"isNeedFooterCss":""])},[H.createVNode(H.unref(Cr.Form),H.mergeProps(W.$attrs,{model:r.formData,ref_key:"formRef",ref:p,class:["hb-lib-form--container",u.value=="show"?"":"hide"]}),{default:H.withCtx(()=>[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(y.value,(P,U)=>(H.openBlock(),H.createElementBlock(H.Fragment,{key:U},[P.condition?(H.openBlock(),H.createBlock(H.unref(Cr.FormItem),H.mergeProps({key:0,ref_for:!0},P,{name:P.key,class:{"hb-lib-form-item-border--unneed":P.isUnNeedBorder,"hb_lib_form_item--needShowAll":P.showAll}}),H.createSlots({default:H.withCtx(()=>[P.type==="slot"?H.renderSlot(W.$slots,P.key,{key:0,formData:r.formData,item:P},void 0,!0):H.createCommentVNode("",!0),P.type==="mixin"?H.renderSlot(W.$slots,P.key,{key:1,formData:r.formData,item:P},void 0,!0):H.createCommentVNode("",!0),P.type==="input"?(H.openBlock(),H.createBlock(H.unref(Cr.Input),H.mergeProps({key:2,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),null,16,["value","onUpdate:value"])):H.createCommentVNode("",!0),P.type==="select"?(H.openBlock(),H.createBlock(H.unref(Cr.Select),H.mergeProps({key:3,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),{default:H.withCtx(()=>[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(P.options,(F,T)=>(H.openBlock(),H.createBlock(H.unref(Cr.SelectOption),{key:T,value:F.value},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(F.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):H.createCommentVNode("",!0),P.type==="checkbox"?(H.openBlock(),H.createBlock(H.unref(Cr.CheckboxGroup),H.mergeProps({key:4,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),{default:H.withCtx(()=>[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(P.options,(F,T)=>(H.openBlock(),H.createBlock(H.unref(Cr.Checkbox),{key:T,value:F.value},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(F.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):H.createCommentVNode("",!0),P.type==="date-picker"?(H.openBlock(),H.createBlock(H.unref(Cr.DatePicker),H.mergeProps({key:5,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),null,16,["value","onUpdate:value"])):H.createCommentVNode("",!0),P.type==="input-number"?(H.openBlock(),H.createBlock(H.unref(Cr.InputNumber),H.mergeProps({key:6,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),null,16,["value","onUpdate:value"])):H.createCommentVNode("",!0),P.type==="radio"?(H.openBlock(),H.createBlock(H.unref(Cr.RadioGroup),H.mergeProps({key:7,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),{default:H.withCtx(()=>[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(P.options,(F,T)=>(H.openBlock(),H.createBlock(H.unref(Cr.Radio),{key:T,value:F.value},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(F.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):H.createCommentVNode("",!0),P.type==="switch"?(H.openBlock(),H.createBlock(H.unref(Cr.Switch),H.mergeProps({key:8,checked:r.formData[P.key],"onUpdate:checked":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),null,16,["checked","onUpdate:checked"])):H.createCommentVNode("",!0)]),_:2},[P.tooltip?{name:"label",fn:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(P.label)+" ",1),H.createVNode(H.unref(Cr.Tooltip),{title:P.tooltip},{default:H.withCtx(()=>[H.createVNode(H.unref(Wo.QuestionCircleOutlined),{style:{"margin-left":"4px",color:"#1890ff"}})]),_:1},8,["title"])]),key:"0"}:void 0]),1040,["name","class"])):H.createCommentVNode("",!0)],64))),128)),f.value?H.createCommentVNode("",!0):(H.openBlock(),H.createElementBlock("section",Cne,[H.createVNode(J,{type:"primary",onClick:m,class:"hb_list_page_button"},{icon:H.withCtx(()=>[H.createVNode(H.unref(Wo.SearchOutlined))]),default:H.withCtx(()=>[H.createTextVNode(" "+H.toDisplayString(W.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),H.createVNode(J,{type:"link",onClick:b},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(W.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),r.needFilter?(H.openBlock(),H.createBlock(G,{key:0,title:W.$t("hbLibComp.hbListPageAct.selfDefine")},{default:H.withCtx(()=>[H.createElementVNode("span",{class:"hb-lib-form-svg",onClick:w},[...M[0]||(M[0]=[H.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[H.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):H.createCommentVNode("",!0),H.renderSlot(W.$slots,"formBtns",{},()=>[r.needSearchCase?(H.openBlock(),H.createBlock(S,{key:0},{overlay:H.withCtx(()=>[H.createVNode(_,{onClick:B},{default:H.withCtx(()=>[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(o.value,P=>(H.openBlock(),H.createBlock(N,{key:P.id},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(P.title),1)]),_:2},1024))),128)),H.createVNode(N,{key:"add"},{default:H.withCtx(()=>[H.createElementVNode("span",wne,H.toDisplayString(W.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),H.createVNode(N,{key:"edit"},{default:H.withCtx(()=>[H.createElementVNode("span",Ene,H.toDisplayString(W.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:H.withCtx(()=>[H.createVNode(G,{title:W.$t("hbLibComp.hbLibListForm.queryCase")},{default:H.withCtx(()=>[...M[1]||(M[1]=[H.createElementVNode("span",{style:{width:"18px",height:"18px",cursor:"pointer"}},[H.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[H.createElementVNode("path",{d:"M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",fill:"#ff5000","p-id":"4752"}),H.createElementVNode("path",{d:"M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",fill:"#ff5000","p-id":"4753"}),H.createElementVNode("path",{d:"M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",fill:"#ff5000","p-id":"4754"})])],-1)])]),_:1},8,["title"])]),_:1})):H.createCommentVNode("",!0)],!0)]))]),_:3},16,["model","class"]),f.value?(H.openBlock(),H.createElementBlock("div",{key:0,class:H.normalizeClass([H.unref(s).e("footer"),"form-footer"])},[H.createElementVNode("div",{class:H.normalizeClass(H.unref(s).e("footer__left"))},[H.renderSlot(W.$slots,"form-footer-left",{},void 0,!0)],2),H.createElementVNode("div",{class:H.normalizeClass(H.unref(s).e("footer__right"))},[u.value=="show"?H.renderSlot(W.$slots,"form-footer-right",{key:0,formRef:p.value},()=>[H.createVNode(J,{type:"primary",onClick:m,class:"hb_list_page_button"},{icon:H.withCtx(()=>[H.createVNode(H.unref(Wo.SearchOutlined))]),default:H.withCtx(()=>[H.createTextVNode(" "+H.toDisplayString(W.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),H.createVNode(J,{type:"link",onClick:b,class:"hb_list_page_button"},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(W.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),r.needFilter?(H.openBlock(),H.createBlock(G,{key:0,title:W.$t("hbLibComp.hbListPageAct.selfDefine")},{default:H.withCtx(()=>[H.createElementVNode("span",{class:"hb-lib-form-svg",onClick:w},[...M[2]||(M[2]=[H.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[H.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):H.createCommentVNode("",!0),H.renderSlot(W.$slots,"formBtns",{},()=>[r.needSearchCase?(H.openBlock(),H.createBlock(S,{key:0},{overlay:H.withCtx(()=>[H.createVNode(_,{onClick:B},{default:H.withCtx(()=>[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(o.value,P=>(H.openBlock(),H.createBlock(N,{key:P.id},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(P.title),1)]),_:2},1024))),128)),H.createVNode(N,{key:"add"},{default:H.withCtx(()=>[H.createElementVNode("span",Bne,H.toDisplayString(W.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),H.createVNode(N,{key:"edit"},{default:H.withCtx(()=>[H.createElementVNode("span",kne,H.toDisplayString(W.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:H.withCtx(()=>[H.createVNode(G,{title:W.$t("hbLibComp.hbLibListForm.queryCase")},{default:H.withCtx(()=>[...M[3]||(M[3]=[H.createElementVNode("span",{class:"hb-lib-form-svg",style:{width:"18px",height:"18px",cursor:"pointer"}},[H.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[H.createElementVNode("path",{d:"M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",fill:"#ff5000","p-id":"4752"}),H.createElementVNode("path",{d:"M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",fill:"#ff5000","p-id":"4753"}),H.createElementVNode("path",{d:"M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",fill:"#ff5000","p-id":"4754"})])],-1)])]),_:1},8,["title"])]),_:1})):H.createCommentVNode("",!0)],!0)],!0):H.createCommentVNode("",!0)],2)],2)):H.createCommentVNode("",!0)],2),[[H.vShow,r.isFormExpanded]])]),_:3}),H.createVNode(Y,{showNumber:c.value,list:h.value,ref_key:"HbSfCmRef",ref:C,onConfirm:k,saveKey:v.value},null,8,["showNumber","list","saveKey"])],64)}}}),[["__scopeId","data-v-f513ff59"]])),Qne={class:"hb-lib-list-page-act-box"},xne={class:"hb-lib-list-page-breadcrumb"},_ne={class:"hb-lib-list-page-act"},Sne={key:0,t:"1757915338760",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"22885",width:"200",height:"200"},Dne={key:1,t:"1757915360496",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"23904",width:"200",height:"200"},KM=Ii(Gi(H.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{isShowFullScreen:{type:Boolean,default:!0},hideDomList:{}},setup(r){const t=H.inject("globalCompConfig",{}),e=r,{isFullscreen:n,toggle:i}=lA.useFullscreen(document.body);H.watch(()=>n.value,l=>{let c=["#globalHead","#globalLeft","#globalNavFrame"];Array.isArray(e.hideDomList)&&e.hideDomList.length?c=[...e.hideDomList]:t.HbLibListPageAct?.hideDomList&&(c=[...t.HbLibListPageAct.hideDomList]);const u=new Map;setTimeout(l?()=>{if(c?.length)for(let f=0;f<c.length;f++){const h=document.querySelector(c[f]);h&&(u.set(c[f],h.style.display),h.style.display="none")}}:()=>{if(c?.length)for(let f=0;f<c.length;f++){const h=document.querySelector(c[f]);if(h){const A=u.get(c[f]);h.style.display=A||"",u.delete(c[f])}}},0)});const a=H.ref(""),o=()=>{const l=nB.useRoute();let c=localStorage.getItem(t.HbLibListPageAct?.breadCrumbListKey||"BreadCrumb")||"[]",u=l?.path;if(c!=="[]"){let f=JSON.parse(c).find(h=>h.value===u);f&&(a.value=f.label.replace(/-/g," / "))}};H.onMounted(()=>{o()});const s=l=>{l.keyCode===192&&i()};return H.onMounted(()=>{window.addEventListener("keydown",s)}),H.onUnmounted(()=>{window.removeEventListener("keydown",s)}),(l,c)=>{const u=H.resolveComponent("a-tooltip");return H.openBlock(),H.createElementBlock("section",Qne,[H.createElementVNode("aside",xne,H.toDisplayString(a.value),1),H.createElementVNode("aside",_ne,[H.createVNode(u,{title:H.unref(n)?`${l.$t("hbLibComp.hbListPageAct.exitFullScreen")}`:`${l.$t("hbLibComp.hbListPageAct.fullScreen")}`,placement:"leftTop"},{default:H.withCtx(()=>[H.createElementVNode("span",{class:"hb-lib-list-page-act-svg",onClick:c[0]||(c[0]=(...f)=>H.unref(i)&&H.unref(i)(...f))},[H.unref(n)?(H.openBlock(),H.createElementBlock("svg",Dne,[...c[2]||(c[2]=[H.createElementVNode("path",{d:"M257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23905"},null,-1),H.createElementVNode("path",{d:"M896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333zM257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23906"},null,-1),H.createElementVNode("path",{d:"M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23907"},null,-1)])])):(H.openBlock(),H.createElementBlock("svg",Sne,[...c[1]||(c[1]=[H.createElementVNode("path",{d:"M85.333333 682.666667v128a128 128 0 0 0 128 128h128a42.666667 42.666667 0 0 0 0-85.333334H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666666v-128a42.666667 42.666667 0 0 0-85.333334 0z m597.333334 256h128a128 128 0 0 0 128-128v-128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 1-42.666666 42.666666h-128a42.666667 42.666667 0 0 0 0 85.333334z m256-597.333334V213.333333a128 128 0 0 0-128-128h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 1 42.666666 42.666666v128a42.666667 42.666667 0 0 0 85.333334 0zM341.333333 85.333333H213.333333a128 128 0 0 0-128 128v128a42.666667 42.666667 0 0 0 85.333334 0V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h128a42.666667 42.666667 0 0 0 0-85.333334z",fill:"#ff5000","p-id":"22886"},null,-1)])]))])]),_:1},8,["title"]),H.renderSlot(l.$slots,"listAct",{},void 0,!0)])])}}}),[["__scopeId","data-v-c7cd0710"]])),Rne={class:"hb-lib-list-btns-box"},Mne={class:"hb-lib-list-btns-left"},Tne={class:"hb-lib-list-btns-right"},qM=Ii(Gi(H.defineComponent({name:"HbLibListBtnsAct",__name:"HbListBtns",props:{needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},emits:["handleOpenOrClose","handleReload"],setup(r,{emit:t}){const e=t,n=H.ref(!0),i=()=>{n.value=!n.value,e("handleOpenOrClose",n.value)},a=()=>{e("handleReload")},o=s=>{};return H.onMounted(()=>{window.addEventListener("keydown",o)}),H.onUnmounted(()=>{window.removeEventListener("keydown",o)}),(s,l)=>{const c=H.resolveComponent("a-tooltip");return H.openBlock(),H.createElementBlock("section",Rne,[H.createElementVNode("aside",Mne,[H.renderSlot(s.$slots,"btnsLeft",{},void 0,!0)]),H.createElementVNode("aside",Tne,[r.needReload?(H.openBlock(),H.createBlock(c,{key:0,title:s.$t("hbLibComp.hbListBtnsAct.reload")},{default:H.withCtx(()=>[H.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:a},[...l[0]||(l[0]=[H.createElementVNode("svg",{t:"1759041224819",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4202",width:"200",height:"200"},[H.createElementVNode("path",{d:"M958.681412 457.499032c-6.170072-50.632177-20.854483-99.563886-43.643361-145.434552-45.779694-92.144205-122.249797-166.333021-215.325711-208.898719-20.083724-9.18513-43.810309-0.349891-52.995439 19.734833-9.18413 20.082724-0.349891 43.810309 19.733833 52.996438 159.26323 72.834239 245.755201 249.640987 205.658732 420.410622-30.735395 130.876101-129.201624 233.321087-256.187941 270.333521l-0.262918-70.800875-196.843487 114.650172 197.690222 113.176632-0.275914-74.43274c75.398438-17.911403 144.809747-54.929834 202.084849-108.039237 65.597501-60.827991 111.122274-139.186504 131.651859-226.606186 12.170197-51.828803 15.10328-104.683286 8.715276-157.089909zM408.299406-0.001l0.271915 74.43374c-75.404436 17.911403-144.820744 54.931834-202.099843 108.046235-65.6005 60.83099-111.124274 139.191503-131.651859 226.616183-7.987504 34.034364-11.994252 68.507591-11.994252 103.010809 0 17.994377 1.090659 35.996751 3.271978 53.946142 6.152077 50.59119 20.803499 99.48891 43.545392 145.333583 45.678725 92.080225 122.012871 166.270041 214.936832 208.900718 20.071728 9.209122 43.810309 0.401874 53.018432-19.670852 9.210122-20.076726 0.400875-43.810309-19.671853-53.019432-158.963324-72.92821-245.278351-249.658982-205.24886-420.22368 30.732396-130.883099 129.201624-233.333083 256.195939-270.345517l0.259919 70.801874 196.850484-114.640174L408.299406-0.001z",fill:"#ff5000","p-id":"4203"})],-1)])])]),_:1},8,["title"])):H.createCommentVNode("",!0),r.needOpenOrClose?(H.openBlock(),H.createBlock(c,{key:1,title:n.value?`${s.$t("hbLibComp.hbListBtnsAct.close")}`:`${s.$t("hbLibComp.hbListBtnsAct.open")}`},{default:H.withCtx(()=>[H.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:i},[n.value?(H.openBlock(),H.createBlock(H.unref(Wo.UpCircleOutlined),{key:0,style:{"font-size":"21px",color:"#ff5000"}})):(H.openBlock(),H.createBlock(H.unref(Wo.DownCircleOutlined),{key:1,style:{"font-size":"21px",color:"#ff5000"}}))])]),_:1},8,["title"])):H.createCommentVNode("",!0),H.renderSlot(s.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-40c1a746"]])),XM=(r={})=>{const{formRef:t,offsetBottom:e=50,minHeight:n=300,timeOut:i=100}=r,a=H.ref(0);let o=null,s=null,l=null,c=null,u=null;const f=()=>{u&&clearTimeout(u),u=setTimeout(()=>{requestAnimationFrame(()=>{H.nextTick(()=>{const p=document.querySelector(".ant-table"),m=document.querySelector(".ant-pagination");if(p){const b=Math.floor(p.getBoundingClientRect().top),C=window.innerHeight,B=(m?m.offsetHeight+20:40)+e;let k=C-b-B;k<n&&(k=n),a.value=k}})})},100)},h=()=>{const p=document.querySelector(".ant-pagination");if(p){const m=new MutationObserver(()=>{f()});return m.observe(p,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),m}return null},A=()=>{const p=document.querySelector(".hb-lib-list-page-form-box");p&&(o=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(b=>{b.style.display="none"}),f()}),o.observe(p))},d=()=>{const p=document.querySelector(".hb-lib-list-page-form-box");p&&(l=new MutationObserver(()=>{setTimeout(()=>{f()},i)}),l.observe(p,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},g=()=>{c&&clearTimeout(c),c=setTimeout(()=>{f()},i)},y=()=>{window.addEventListener("resize",g),H.nextTick(()=>{A(),d(),s=h()})},v=()=>{window.removeEventListener("resize",g),o&&o.disconnect(),l&&l.disconnect(),s&&s.disconnect(),c&&clearTimeout(c),u&&clearTimeout(u)};return t&&H.watch(()=>t,()=>{setTimeout(()=>{f()},200)},{deep:!0}),H.onMounted(()=>{f(),y()}),H.onUnmounted(()=>{v()}),{tableHeight:a,calTableHeight:f}},ZM=Ii(H.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{},tableData:{default:()=>[]},offsetBottom:{},minHeight:{},timeOut:{},offsetHeight:{},isUnFixTbHeight:{type:Boolean}},setup(r){const t=H.inject("globalCompConfig",{}),{isFullscreen:e}=lA.useFullscreen(document.body),n=r,i=H.useTemplateRef("PageContainerRef"),a=H.computed(()=>n.offsetHeight||t.HbLibListPageContainer?.offsetHeight||110),o=H.computed(()=>n.offsetBottom||t.HbLibListPageContainer?.offsetBottom||20),s=H.computed(()=>n.minHeight||t.HbLibListPageContainer?.minHeight||300),l=H.computed(()=>n.timeOut||t.HbLibListPageContainer?.timeOut||100),c=H.computed(()=>n.isUnFixTbHeight||t.HbLibListPageContainer?.isUnFixTbHeight||!1);console.log(n.isUnFixTbHeight);const{calTableHeight:u,tableHeight:f}=XM({offsetBottom:o.value,minHeight:s.value,timeOut:l.value}),h=H.computed(()=>f.value);return H.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:i,tableHeight:f,calTableHeight:u}),(A,d)=>(H.openBlock(),H.createElementBlock("section",{class:"hb-lib-list-page-container",ref_key:"PageContainerRef",ref:i},[H.renderSlot(A.$slots,"header"),H.createElementVNode("section",{class:"list-page-box",style:H.normalizeStyle(c.value?null:{"--hb-list-table-height":H.unref(e)?h.value-a.value+"px":h.value-o.value+"px","--hb-list-ttable-height":r.tableData.length?"":H.unref(e)?h.value-a.value+"px":h.value-o.value+"px"})},[H.renderSlot(A.$slots,"default")],4)],512))}})),Fne={style:{"font-weight":"500"}},Nne={key:0,class:"hb-lib-search-tag__description"},Lne={class:"hb-lib-selector-dropdown"},One={class:"hb-lib-selector-search"},Pne={class:"hb-lib-selector-list"},Gne=["onClick"],Une={class:"hb-lib-option-content"},Hne={class:"hb-lib-option-label"},jne={key:0,class:"hb-lib-selector-empty"},Yne={key:1,class:"hb-lib-selector-footer"},Wne={class:"hb-lib-footer-buttons"},Jne={key:2,class:"hb-lib-selector-footer"},Vne={class:"hb-lib-footer-buttons"},$M=Ii(Gi(H.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:H.mergeModels({placeholder:{default:"点击选择"},searchPlaceholder:{default:"搜索选项"},width:{default:600},options:{default:()=>[]},multiple:{type:Boolean,default:!0},prefix:{default:""},value:{},remoteSearch:{type:Boolean,default:!1},searchValue:{default:""},maxTagCount:{default:2},tagTextLength:{default:30}},{value:{},valueModifiers:{}}),emits:H.mergeModels(["update:value","update:searchValue","change","confirm","cancel","search"],["update:value"]),setup(r,{emit:t}){const e=r,n=t,i=H.useModel(r,"value"),a=H.ref(!1),o=H.ref(""),s=H.ref([]),l=H.ref(),c=H.computed(()=>{if(e.remoteSearch||!o.value)return e.options;const C=o.value.toLowerCase();return e.options.filter(w=>w.label.toLowerCase().includes(C)||w.description?.toLowerCase().includes(C))}),u=H.computed(()=>e.prefix?`${e.prefix.length*14+8}px`:"0px"),f=H.computed(()=>c.value.length===0?!1:c.value.every(C=>s.value.includes(C.value))),h=H.computed(()=>{if(c.value.length===0)return!1;const C=c.value.filter(w=>s.value.includes(w.value)).length;return C>0&&C<c.value.length});H.watch(()=>i.value,C=>{C?s.value=Array.isArray(C)?[...C]:[C]:s.value=[]},{immediate:!0}),H.watch(()=>e.searchValue,C=>{e.remoteSearch&&C!==void 0&&(o.value=C)},{immediate:!0});const A=C=>{C&&(a.value=C,d.value=[...s.value],o.value="",setTimeout(()=>{if(l.value){const w=l.value.input||l.value.$el?.querySelector("input");w&&w.focus()}},100))},d=H.ref([]),g=()=>{s.value=[...d.value],a.value=!1,n("cancel")},y=H.ref([]),v=()=>{const C=e.multiple?s.value:s.value[0]||"",w=e.options.filter(B=>s.value.includes(B.value));y.value=w,console.log(C,w),d.value=[...s.value],i.value=C,n("update:value",C),n("change",C,w),n("confirm",C,w),a.value=!1},p=lA.useDebounceFn(C=>{const w=C!==void 0?C:o.value;e.remoteSearch&&(n("search",w),n("update:searchValue",w))},300),m=C=>{if(e.multiple){const w=new Set(s.value);w.has(C.value)?w.delete(C.value):w.add(C.value),s.value=Array.from(w)}else s.value=[C.value],v()},b=C=>{if(C.target.checked){const B=new Set(s.value);c.value.forEach(k=>{B.add(k.value)}),s.value=Array.from(B)}else{const B=new Set(c.value.map(k=>k.value));s.value=s.value.filter(k=>!B.has(k))}};return(C,w)=>{const B=H.resolveComponent("a-tag"),k=H.resolveComponent("a-input"),Q=H.resolveComponent("a-checkbox"),x=H.resolveComponent("a-radio"),L=H.resolveComponent("a-button"),O=H.resolveComponent("a-select");return H.openBlock(),H.createElementBlock("div",H.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":u.value}},C.$attrs),[H.createVNode(O,{value:i.value,"onUpdate:value":w[5]||(w[5]=W=>i.value=W),mode:r.multiple?"multiple":void 0,placeholder:r.placeholder,"show-search":!0,"filter-option":!1,open:a.value,allowClear:"",maxTagCount:r.maxTagCount,options:c.value,onDropdownVisibleChange:A,onSearch:H.unref(p),"max-tag-text-length":r.tagTextLength,class:H.normalizeClass({"has-prefix":r.prefix}),"data-prefix":r.prefix,style:{width:"100%"}},{tagRender:H.withCtx(({value:W,label:M,closable:J,option:G})=>[H.createVNode(B,{class:"hb-lib-search-tag",onClick:w[0]||(w[0]=()=>A(!0))},{default:H.withCtx(()=>[H.createElementVNode("span",Fne,H.toDisplayString(M),1),G?.description?(H.openBlock(),H.createElementBlock("span",Nne," ("+H.toDisplayString(G.description)+") ",1)):H.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:H.withCtx(({menuNode:W})=>[H.createElementVNode("div",Lne,[H.createElementVNode("div",One,[H.createVNode(k,{ref_key:"searchInputRef",ref:l,class:"hb-lib-selector-search-input",value:o.value,"onUpdate:value":w[1]||(w[1]=M=>o.value=M),placeholder:"请输入关键词搜索","allow-clear":"",onInput:w[2]||(w[2]=M=>H.unref(p)(M.target.value))},{prefix:H.withCtx(()=>[H.createVNode(H.unref(Wo.SearchOutlined))]),_:1},8,["value"])]),H.createElementVNode("div",Pne,[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(c.value,M=>(H.openBlock(),H.createElementBlock("div",{key:M.value,class:H.normalizeClass(["hb-lib-selector-option",{selected:s.value.includes(M.value)}]),onClick:()=>m(M)},[r.multiple?(H.openBlock(),H.createBlock(Q,{key:0,checked:s.value.includes(M.value),onChange:()=>m(M),onClick:w[3]||(w[3]=H.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(H.openBlock(),H.createBlock(x,{key:1,checked:s.value.includes(M.value),onChange:()=>m(M),onClick:w[4]||(w[4]=H.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),H.createElementVNode("div",Une,[H.createElementVNode("div",Hne,H.toDisplayString(M.label),1)])],10,Gne))),128))]),c.value.length===0?(H.openBlock(),H.createElementBlock("div",jne,H.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):H.createCommentVNode("",!0),r.multiple?(H.openBlock(),H.createElementBlock("div",Yne,[H.createVNode(Q,{checked:f.value,indeterminate:h.value,onChange:b},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(C.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),H.createElementVNode("div",Wne,[H.createVNode(L,{size:"small",onClick:g},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),H.createVNode(L,{type:"primary",size:"small",onClick:v},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(H.openBlock(),H.createElementBlock("div",Jne,[w[6]||(w[6]=H.createElementVNode("div",null,null,-1)),H.createElementVNode("div",Vne,[H.createVNode(L,{size:"small",onClick:g},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(C.$t("hbLibComp.hbFormSelectFilter.close")),1)]),_:1})])]))])]),_:1},8,["value","mode","placeholder","open","maxTagCount","options","onSearch","max-tag-text-length","class","data-prefix"])],16)}}}),[["__scopeId","data-v-87177371"]])),zne={class:"hb-lib-form-item-filter-modal-search"},Kne={class:"hb-lib-form-item-filter-modal-buttons"},qne={key:0},eT=Ii(H.defineComponent({name:"HbLibMutilpleSelectModal",__name:"HbMutilpleSelectModal",props:{modelTitle:{default:"搜索弹窗"},modalWidth:{default:800},tableHeight:{default:500},tableColumn:{default:()=>[]},tableData:{default:()=>[]},tableKey:{default:"id"},labelKey:{default:"label"}},emits:["handleConfirm","handleCancel"],setup(r,{expose:t,emit:e}){const n=r,i=e,a=H.ref(!1),o=H.ref(""),s=H.ref(),l=H.ref(),c=H.ref([]),u=H.ref([]),f=H.ref(),h=H.reactive({searchText:"",searchedColumn:""}),A=H.computed(()=>n.tableData.map(B=>(B.id=B.id||Math.random(),B))),d=H.computed(()=>n.tableColumn.map(B=>(B.customFilterDropdown&&(B.onFilter=(k,Q)=>Q[B.dataIndex].toString().toLowerCase().includes(k.toLowerCase()),B.onFilterDropdownVisibleChange=k=>{k&&setTimeout(()=>{s.value?.focus()},100)}),{...B}))),g=()=>{let B="";u.value.forEach(k=>{B=B+k[n.labelKey]+","}),o.value=B.substring(0,B.length-1),a.value=!1,i("handleConfirm",u.value)},y=()=>{a.value=!1},v=()=>{a.value=!0,H.nextTick(()=>{const B=f.value?.$el?.querySelector(".ant-table-body");B&&(B.scrollTop=0)})},p=()=>{c.value=[],u.value=[]},m=()=>{o.value="",p()},b=(B,k,Q)=>{k(),h.searchText=B[0],h.searchedColumn=Q},C=(B,k)=>{B({confirm:!0}),h.searchText="",k()},w=(B,k)=>{c.value=B,u.value=k};return t({resetInputVal:m}),(B,k)=>{const Q=H.resolveComponent("a-input"),x=H.resolveComponent("a-button"),L=H.resolveComponent("a-table"),O=H.resolveComponent("a-modal");return H.openBlock(),H.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:l},[H.createVNode(Q,{readonly:"",onClick:v,value:o.value,"onUpdate:value":k[0]||(k[0]=W=>o.value=W),placeholder:B.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:H.withCtx(()=>[H.createVNode(H.unref(Wo.UnorderedListOutlined),{onClick:v})]),_:1},8,["value","placeholder"]),H.createVNode(O,{visible:a.value,"onUpdate:visible":k[1]||(k[1]=W=>a.value=W),title:r.modelTitle,width:r.modalWidth,class:"hb-lib-multipleSelectModal-modal"},{footer:H.withCtx(()=>[H.createVNode(x,{onClick:p},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(B.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),H.createVNode(x,{onClick:y},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),H.createVNode(x,{type:"primary",onClick:g},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:H.withCtx(()=>[H.createVNode(L,{ref_key:"tableRef",ref:f,columns:d.value,dataSource:A.value,rowSelection:{selectedRowKeys:c.value,onChange:w},rowKey:W=>W[r.tableKey],scroll:{y:r.tableHeight}},{customFilterDropdown:H.withCtx(({setSelectedKeys:W,selectedKeys:M,confirm:J,clearFilters:G,column:N})=>[H.createElementVNode("div",zne,[H.createVNode(Q,{ref_key:"searchInput",ref:s,placeholder:`请输入${N.title}`,value:M[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:_=>W(_.target.value?[_.target.value]:[]),onPressEnter:_=>b(M,J,N.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),H.createElementVNode("section",Kne,[H.createVNode(x,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:_=>C(G,J)},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(B.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),H.createVNode(x,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:_=>b(M,J,N.dataIndex)},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:H.withCtx(({filtered:W})=>[H.createVNode(H.unref(Wo.SearchOutlined),{style:H.normalizeStyle({color:W?"#108ee9":void 0})},null,8,["style"])]),bodyCell:H.withCtx(({text:W,column:M})=>[h.searchText&&h.searchedColumn===M.dataIndex?(H.openBlock(),H.createElementBlock("span",qne,[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(W.toString().split(new RegExp(`(?<=${h.searchText})|(?=${h.searchText})`,"i")),(J,G)=>(H.openBlock(),H.createElementBlock(H.Fragment,null,[J.toLowerCase()===h.searchText.toLowerCase()?(H.openBlock(),H.createElementBlock("mark",{key:G,class:"highlight"},H.toDisplayString(J),1)):(H.openBlock(),H.createElementBlock(H.Fragment,{key:1},[H.createTextVNode(H.toDisplayString(J),1)],64))],64))),256))])):H.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),Xne={class:"hb-lib-table-act-box"},Zne=["onClick"],$ne={href:"javascript:;",class:"hb-lib-table-main-action"},eie=["onClick"],tie={href:"javascript:;",class:"hb-lib-table-more-action"},rie=["onClick"],nie={href:"javascript:;"},iie=["onClick"],aie={class:"hb-lib-table-confirm-modal-content"},tT=Ii(Gi(H.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{filterPermission:{type:Function},actions:{},record:{},buttonDisplaysQuantity:{}},setup(r,{expose:t}){const e=r,{t:n}=bs.useI18n(),i=H.ref(!1),a=H.ref(!1),o=H.ref(null),s=H.computed(()=>e.actions.filter(y=>y.condition!==void 0?y.condition:!0)),l=H.computed(()=>s.value.slice(0,e.buttonDisplaysQuantity)),c=H.computed(()=>u(s.value.slice(e.buttonDisplaysQuantity)));function u(y){if(e.filterPermission)return e.filterPermission(y);let v=[],p=[];return v=JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH")||"[]"),!Array.isArray(v)||y.length===0?(v=[],[]):(v=v.filter(m=>m.type!="2"),y.forEach(m=>{(!m.permissionsTag||v.findIndex(b=>b.action===m.permissionsTag)!==-1)&&p.push(m)}),p)}const f=y=>{y.handler&&y.handler(e.record)},h=y=>{o.value=y,i.value=!0},A=()=>{if(o.value){a.value=!0;try{f(o.value),a.value=!1,i.value=!1}catch{a.value=!1}}},d=()=>{i.value=!1,o.value=null},g=H.computed(()=>o.value?{title:o.value.confirmTitle,content:o.value.confirmContent||o.value.confirmTitle}:{title:n("hbLibComp.hbTableAct.secendConfirm"),content:n("hbLibComp.hbTableAct.confirmContent")});return t({ADropdown:Cr.Dropdown,AMenu:Cr.Menu,AMenuItem:Cr.MenuItem,APopconfirm:Cr.Popconfirm,AModal:Cr.Modal,DownOutlined:Wo.DownOutlined}),(y,v)=>{const p=H.resolveComponent("a-divider"),m=H.resolveDirective("has");return H.openBlock(),H.createElementBlock("div",Xne,[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(l.value,(b,C)=>(H.openBlock(),H.createElementBlock(H.Fragment,{key:C},[b.needConfirm?(H.openBlock(),H.createElementBlock(H.Fragment,{key:0},[b.confirmType==="modal"?(H.openBlock(),H.createElementBlock(H.Fragment,{key:0},[H.withDirectives((H.openBlock(),H.createElementBlock("a",{href:"javascript:;",onClick:w=>h(b),class:"hb-lib-table-main-action"},[H.createTextVNode(H.toDisplayString(b.label),1)],8,Zne)),[[m,b.permissionsTag||null]]),c.value&&c.value.length>0||C!==l.value.length-1?(H.openBlock(),H.createBlock(p,{key:0,type:"vertical"})):H.createCommentVNode("",!0)],64)):(H.openBlock(),H.createElementBlock(H.Fragment,{key:1},[H.createVNode(H.unref(Cr.Popconfirm),{title:b.confirmTitle,onConfirm:w=>f(b)},{default:H.withCtx(()=>[H.withDirectives((H.openBlock(),H.createElementBlock("a",$ne,[H.createTextVNode(H.toDisplayString(b.label),1)])),[[m,b.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]),c.value&&c.value.length>0||C!==l.value.length-1?(H.openBlock(),H.createBlock(p,{key:0,type:"vertical"})):H.createCommentVNode("",!0)],64))],64)):b.slot?(H.openBlock(),H.createElementBlock(H.Fragment,{key:1},[H.renderSlot(y.$slots,b.slot,{item:b},void 0,!0),c.value&&c.value.length>0||C!==l.value.length-1?(H.openBlock(),H.createBlock(p,{key:0,type:"vertical"})):H.createCommentVNode("",!0)],64)):(H.openBlock(),H.createElementBlock(H.Fragment,{key:2},[H.withDirectives((H.openBlock(),H.createElementBlock("a",{href:"javascript:;",onClick:w=>f(b),class:"hb-lib-table-main-action"},[H.createTextVNode(H.toDisplayString(b.label),1)],8,eie)),[[m,b.permissionsTag||null]]),c.value&&c.value.length>0||C!==l.value.length-1?H.withDirectives((H.openBlock(),H.createBlock(p,{key:0,type:"vertical"},null,512)),[[m,b.permissionsTag||null]]):H.createCommentVNode("",!0)],64))],64))),128)),c.value&&c.value.length>0?(H.openBlock(),H.createBlock(H.unref(Cr.Dropdown),{key:0},{overlay:H.withCtx(()=>[H.createVNode(H.unref(Cr.Menu),null,{default:H.withCtx(()=>[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(c.value,(b,C)=>H.withDirectives((H.openBlock(),H.createBlock(H.unref(Cr.MenuItem),{key:C},{default:H.withCtx(()=>[b.needConfirm?(H.openBlock(),H.createElementBlock(H.Fragment,{key:0},[b.confirmType==="modal"?H.withDirectives((H.openBlock(),H.createElementBlock("a",{key:0,href:"javascript:;",onClick:w=>h(b)},[H.createTextVNode(H.toDisplayString(b.label),1)],8,rie)),[[m,b.permissionsTag||null]]):H.withDirectives((H.openBlock(),H.createBlock(H.unref(Cr.Popconfirm),{key:1,title:b.confirmTitle,onConfirm:w=>f(b)},{default:H.withCtx(()=>[H.withDirectives((H.openBlock(),H.createElementBlock("a",nie,[H.createTextVNode(H.toDisplayString(b.label),1)])),[[m,b.permissionsTag||null]])]),_:2},1032,["title","onConfirm"])),[[m,b.permissionsTag||null]])],64)):H.withDirectives((H.openBlock(),H.createElementBlock("a",{key:1,href:"javascript:;",onClick:w=>f(b)},[H.createTextVNode(H.toDisplayString(b.label),1)],8,iie)),[[m,b.permissionsTag||null]])]),_:2},1024)),[[m,b.permissionsTag||null]])),128))]),_:1})]),default:H.withCtx(()=>[H.createElementVNode("a",tie,[H.createTextVNode(H.toDisplayString(y.$t("hbLibComp.hbTableAct.more"))+" ",1),H.createVNode(H.unref(Wo.DownOutlined),{style:{"font-size":"12px","margin-left":"4px"}})])]),_:1})):H.createCommentVNode("",!0),H.createVNode(H.unref(Cr.Modal),{visible:i.value,title:g.value.title,"confirm-loading":a.value,onOk:A,onCancel:d},{default:H.withCtx(()=>[H.createElementVNode("p",aie,H.toDisplayString(g.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-25fd055e"]])),aB=r=>({tableWidth:H.computed(()=>{const e=Array.isArray(r)?r:r.value;return!e||e.length===0?0:e.map(n=>n.width&&Number(n.width.toString().replace("px",""))||0).reduce((n,i)=>n+i,0)})});var oie=typeof global=="object"&&global&&global.Object===Object&&global,sie=typeof self=="object"&&self&&self.Object===Object&&self,rT=oie||sie||Function("return this")(),XI=rT.Symbol,nT=Object.prototype,lie=nT.hasOwnProperty,cie=nT.toString,V0=XI?XI.toStringTag:void 0;function uie(r){var t=lie.call(r,V0),e=r[V0];try{r[V0]=void 0;var n=!0}catch{}var i=cie.call(r);return n&&(t?r[V0]=e:delete r[V0]),i}var fie=Object.prototype,hie=fie.toString;function Aie(r){return hie.call(r)}var die="[object Null]",gie="[object Undefined]",iT=XI?XI.toStringTag:void 0;function pie(r){return r==null?r===void 0?gie:die:iT&&iT in Object(r)?uie(r):Aie(r)}function vie(r){return r!=null&&typeof r=="object"}var yie="[object Symbol]";function mie(r){return typeof r=="symbol"||vie(r)&&pie(r)==yie}var Iie=/\s/;function bie(r){for(var t=r.length;t--&&Iie.test(r.charAt(t)););return t}var Cie=/^\s+/;function wie(r){return r&&r.slice(0,bie(r)+1).replace(Cie,"")}function oB(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var aT=NaN,Eie=/^[-+]0x[0-9a-f]+$/i,Bie=/^0b[01]+$/i,kie=/^0o[0-7]+$/i,Qie=parseInt;function oT(r){if(typeof r=="number")return r;if(mie(r))return aT;if(oB(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=oB(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=wie(r);var e=Bie.test(r);return e||kie.test(r)?Qie(r.slice(2),e?2:8):Eie.test(r)?aT:+r}var sB=function(){return rT.Date.now()},xie="Expected a function",_ie=Math.max,Sie=Math.min;function sT(r,t,e){var n,i,a,o,s,l,c=0,u=!1,f=!1,h=!0;if(typeof r!="function")throw new TypeError(xie);t=oT(t)||0,oB(e)&&(u=!!e.leading,f="maxWait"in e,a=f?_ie(oT(e.maxWait)||0,t):a,h="trailing"in e?!!e.trailing:h);function A(w){var B=n,k=i;return n=i=void 0,c=w,o=r.apply(k,B),o}function d(w){return c=w,s=setTimeout(v,t),u?A(w):o}function g(w){var B=w-l,k=w-c,Q=t-B;return f?Sie(Q,a-k):Q}function y(w){var B=w-l,k=w-c;return l===void 0||B>=t||B<0||f&&k>=a}function v(){var w=sB();if(y(w))return p(w);s=setTimeout(v,g(w))}function p(w){return s=void 0,h&&n?A(w):(n=i=void 0,o)}function m(){s!==void 0&&clearTimeout(s),c=0,n=l=i=s=void 0}function b(){return s===void 0?o:p(sB())}function C(){var w=sB(),B=y(w);if(n=arguments,i=this,l=w,B){if(s===void 0)return d(l);if(f)return clearTimeout(s),s=setTimeout(v,t),A(l)}return s===void 0&&(s=setTimeout(v,t)),o}return C.cancel=m,C.flush=b,C}const Die={key:0,class:"hb-lib-list-table-act"},Rie={class:"empty-container"},Mie={key:1},Tie={key:2},lT=Ii(Gi(H.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},rowHeight:{},defaultWidth:{},tooltipPlacement:{default:()=>"topLeft"},isFixTbHeight:{type:Boolean}},emits:["change","resizeCol"],setup(r,{emit:t}){const e=H.inject("globalCompConfig",{}),n=t,{t:i}=bs.useI18n(),a=r,o=H.ref([]),s=H.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:l}=aB(o),c=H.ref(l.value),u=H.computed(()=>a.isUnFixTbHeight||e.HbLibListPageContainer?.isUnFixTbHeight||!1);H.watch(()=>a.columns,v=>{const p=v.filter(b=>b!=null&&b.checked);o.value=p.map(b=>{let C={...b,title:b.title||b.label,align:b.align||e.listTable?.align||"center"};C.ellipsis&&!C.needTooltip&&(C.needTooltip=!0);let w=a.defaultWidth||e.listTable?.defaultColWidth||150;if(!C.width)C.width=w;else if(typeof C.width=="string"){const B=parseInt(C.width,10);C.width=isNaN(B)?w:B}return C.resizable===void 0&&(C.resizable=!0),C});const{tableWidth:m}=aB(o);c.value=m.value},{immediate:!0,deep:!0});const f=sT(()=>{n("resizeCol",o.value)},e.listTable?.colSaveTimeOut||800),h=(v,p)=>{if(p){const m=typeof v=="string"?parseInt(v,10):v;p.width=isNaN(m)?e.listTable?.defaultColWidth||150:m,H.nextTick(()=>{f()})}},A=(v,p,m)=>{v?.current&&n("change",v,p,m)},d=(v,p="YYYY-MM-DD HH:mm:ss")=>v?qI(v).format(p):"",g=(v,p)=>v&&p[v]||"",y=(v,p=e.listTable?.ellipsisNumber||20)=>v?v.length>p?`${v.substring(0,p)}...`:v:"";return(v,p)=>{const m=H.resolveComponent("a-empty"),b=H.resolveComponent("a-tooltip"),C=H.resolveComponent("HbLibCopy"),w=H.resolveComponent("a-tag"),B=H.resolveComponent("a-table");return H.openBlock(),H.createElementBlock("div",{class:H.normalizeClass(["hb-lib-list-table",{"nowrap-table":a.rowHeight}]),style:H.normalizeStyle({"--hb-lib-table-td-height":r.rowHeight&&r.rowHeight+"px"||""})},[v.$slots.tableActLeft?(H.openBlock(),H.createElementBlock("section",Die,[H.renderSlot(v.$slots,"tableActLeft",{},void 0,!0),H.renderSlot(v.$slots,"tableActRight",{},void 0,!0)])):H.createCommentVNode("",!0),H.createVNode(B,H.mergeProps(v.$attrs,{bordered:"",columns:o.value,"table-layout":"fixed",scroll:u.value?{x:c.value}:{x:c.value,y:H.unref(s).tableHeight},onResizeColumn:h,onChange:A}),H.createSlots({emptyText:H.withCtx(()=>[H.createElementVNode("div",Rie,[H.createVNode(m,{description:H.unref(i)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[v.$slots.headerCell?{name:"headerCell",fn:H.withCtx(({column:k})=>[H.renderSlot(v.$slots,"headerCell",{column:k,title:k.title},()=>[H.createTextVNode(H.toDisplayString(k.title),1)],!0)]),key:"0"}:void 0,v.$slots.bodyCell?{name:"bodyCell",fn:H.withCtx(({column:k,record:Q,index:x,text:L})=>[H.renderSlot(v.$slots,"bodyCell",{column:k,record:Q,index:x,text:L},void 0,!0),k&&k.needTooltip&&!k.needCopy?(H.openBlock(),H.createBlock(b,{key:0,placement:r.tooltipPlacement},{title:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(Q[k.dataIndex]),1)]),default:H.withCtx(()=>[H.createTextVNode(" "+H.toDisplayString(Q[k.dataIndex]),1)]),_:2},1032,["placement"])):k&&k.needCopy&&!k.needTooltip?(H.openBlock(),H.createElementBlock("div",Mie,[H.createTextVNode(H.toDisplayString(Q[k.dataIndex])+" ",1),H.createVNode(C,{"cp-text":Q[k.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):H.createCommentVNode("",!0),k&&k.needTooltip&&k.needCopy?(H.openBlock(),H.createElementBlock("div",Tie,[H.createVNode(b,{placement:r.tooltipPlacement},{title:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(Q[k.dataIndex]),1)]),default:H.withCtx(()=>[H.createTextVNode(" "+H.toDisplayString(y(Q[k.dataIndex],k.strLen)),1)]),_:2},1032,["placement"]),H.createVNode(C,{"cp-text":Q[k.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):k&&k.needFormat?(H.openBlock(),H.createElementBlock(H.Fragment,{key:3},[H.createTextVNode(H.toDisplayString(d(Q[k.dataIndex],k.format)),1)],64)):k&&k.tags?(H.openBlock(),H.createElementBlock(H.Fragment,{key:4},[g(Q[k.dataIndex],k.tags)?(H.openBlock(),H.createBlock(w,{key:0,color:g(Q[k.dataIndex],k.tags)},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(Q[k.dataIndex]),1)]),_:2},1032,["color"])):H.createCommentVNode("",!0)],64)):H.createCommentVNode("",!0)]),key:"1"}:void 0,v.$slots.expandedRowRender?{name:"expandedRowRender",fn:H.withCtx(({record:k,index:Q})=>[H.renderSlot(v.$slots,"expandedRowRender",{record:k,index:Q},void 0,!0)]),key:"2"}:void 0,v.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:H.withCtx(({column:k})=>[H.renderSlot(v.$slots,"customFilterDropdown",{column:k},void 0,!0)]),key:"3"}:void 0,v.$slots.customFilterIcon?{name:"customFilterIcon",fn:H.withCtx(({column:k})=>[H.renderSlot(v.$slots,"customFilterIcon",{column:k},void 0,!0)]),key:"4"}:void 0,v.$slots.expandIcon?{name:"expandIcon",fn:H.withCtx(({expanded:k,record:Q,index:x})=>[H.renderSlot(v.$slots,"expandIcon",{expanded:k,record:Q,index:x},void 0,!0)]),key:"5"}:void 0,v.$slots.footer?{name:"footer",fn:H.withCtx(()=>[H.renderSlot(v.$slots,"footer",{},void 0,!0)]),key:"6"}:void 0,v.$slots.summary?{name:"summary",fn:H.withCtx(()=>[H.renderSlot(v.$slots,"summary",{},void 0,!0)]),key:"7"}:void 0,v.$slots.title?{name:"title",fn:H.withCtx(()=>[H.renderSlot(v.$slots,"title",{},void 0,!0)]),key:"8"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-6c43044f"]])),Fie={class:"hb-lib-table-setting-box"},Nie={key:0,class:"hb-lib-table-drag-item"},Lie={key:0,class:"hb-lib-table-drag-item-act"},Oie=["onClick"],Pie=["onClick"],Gie={class:"hb-lib-table-set-btn-group"},Uie={class:"select-all-container",style:{"margin-right":"10px"}},cT=Ii(Gi(H.defineComponent({name:"HbLibTableColumnSet",__name:"HbTableColumnSet",props:{hasClean:{type:Boolean,default:!0},index:{type:Number,default:0},selectedRowKeysLength:{type:Number,default:0},change:{type:Function,default:()=>{}},tableColumns:{type:Array,default:[]},localColumns:{type:Array,default:[]}},emits:["on-get-columns"],setup(r,{emit:t}){const e=t,{t:n}=bs.useI18n(),i=r,a=H.ref([]),o=H.computed(()=>l.value.filter(k=>k.checked));H.ref([]);const s=H.ref(!1),l=H.ref([]),c=H.ref(null),u=H.computed(()=>o.value.length>0&&o.value.length===a.value.length),f=H.computed(()=>o.value.length>0&&o.value.length<a.value.length),h=k=>{c.value=k.oldIndex},A=k=>{const Q=k.newIndex;if(a.value.some(L=>L.fixed==="left"||L.fixed==="right"||L.fixed===!0)){const L=a.value.filter(W=>W.fixed==="left").length,O=a.value.length-a.value.filter(W=>W.fixed==="right").length;if((L>0&&Q<L||O<a.value.length&&Q>=O)&&(Cr.message.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")),c.value!==null)){const W=l.value.splice(Q,1)[0];l.value.splice(c.value,0,W)}}c.value=null},d=k=>{k.target.checked?l.value.forEach(x=>x.checked=!0):l.value.forEach(x=>{x.dataIndex!=="action"&&x.dataIndex!=="actions"&&(x.checked=!1)})},g=k=>{if(k.title&&k.title.tag)return C(k.title);if(typeof k.title=="function"){let Q=k.title();return typeof Q=="string"?Q:k.titleText||k.title2}return k.title||k.title2},y=()=>i.localColumns.map(k=>({...k,label:g(k),value:k.dataIndex,checked:k.checked||k.checked===void 0})),v=()=>{a.value=y(),l.value=[...a.value];let k=[];i.tableColumns.forEach(function(Q){k.push(Q.dataIndex)})},p=(k,Q)=>{Q?k.checked=!0:k.checked=!1},m=()=>{a.value=[...l.value],e("on-get-columns",a.value),s.value=!1},b=()=>{a.value=y(),l.value=[...a.value];let k=[];i.tableColumns.forEach(function(Q){k.push(Q.dataIndex)})},C=k=>k.children[0].text,w=k=>{delete k.fixed;const Q=l.value.findIndex(x=>x.value===k.value);if(Q!==-1){let x=-1;for(let L=0;L<l.value.length;L++)l.value[L].fixed==="left"&&(x=L);if(x!==-1&&Q!==x+1){const L=[...l.value],[O]=L.splice(Q,1);L.splice(x+1,0,O),l.value=L}}},B=k=>{const Q=l.value.findIndex(x=>x.value===k.value);if(Q!==-1){let x=-1;for(let M=0;M<l.value.length;M++)l.value[M].fixed==="left"&&(x=M);const L=[...l.value],[O]=L.splice(Q,1);O.fixed="left";const W=x===-1?0:x+1;L.splice(W,0,O),l.value=L}};return H.watch(()=>i.tableColumns,()=>{b()},{immediate:!0,deep:!0}),(k,Q)=>{const x=H.resolveComponent("a-tooltip"),L=H.resolveComponent("a-button");return H.openBlock(),H.createElementBlock("div",Fie,[H.createVNode(H.unref(Cr.Popover),{visible:s.value,"onUpdate:visible":Q[1]||(Q[1]=O=>s.value=O),title:H.unref(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop","overlay-class-name":"column_setting_popover"},{content:H.withCtx(()=>[H.createVNode(H.unref(KI),{modelValue:l.value,"onUpdate:modelValue":Q[0]||(Q[0]=O=>l.value=O),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:h,onEnd:A},{item:H.withCtx(({element:O})=>[O.fixed!=="right"?(H.openBlock(),H.createElementBlock("div",Nie,[H.createVNode(H.unref(Cr.Checkbox),{checked:O.checked,onChange:W=>p(O,W.target.checked)},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(O.label),1)]),_:2},1032,["checked","onChange"]),O.checked?(H.openBlock(),H.createElementBlock("section",Lie,[H.createElementVNode("span",{class:H.normalizeClass(O.fixed?"drag-hide":"drag-handle")}," ⋮⋮ ",2),O.fixed?(H.openBlock(),H.createBlock(x,{key:0},{title:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(H.unref(n)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:H.withCtx(()=>[H.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:W=>w(O)},[...Q[2]||(Q[2]=[H.createElementVNode("svg",{t:"1759048615600",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7283",width:"200",height:"200"},[H.createElementVNode("path",{d:"M771.798516 586.270988c-6.897306 8.296759-17.293245 12.894963-27.989067 12.894963h-0.299882l-175.931277-1.199532-55.178446 422.834831-0.399844 3.19875-0.399844-3.19875-55.178446-422.834831-175.931277 1.199532h-0.299882c-10.795783 0-21.191722-4.598204-27.989067-12.894963-6.897306-8.39672-8.796564-18.292854-8.596642-27.28934 0.399844-13.094885 5.697774-25.590004 14.394377-35.386177l61.87583-69.872706c15.393987-17.393206 24.790316-39.284654 26.589613-62.475596l20.292074-250.402187c0.599766-7.796954-2.199141-15.593909-7.796955-21.091761l-38.584927-38.584927c-19.692308-16.693479-21.891449-33.58688-17.79305-47.581414 5.897696-20.092152 24.690355-33.58688 45.582194-33.58688h0.199922l163.236236 0.499805h0.799688l163.236236-0.499805h0.199922c20.891839 0 39.684498 13.494729 45.582194 33.58688 4.098399 13.994533 1.899258 30.887934-17.79305 47.581414L664.940258 119.753221c-5.597813 5.597813-8.39672 13.294807-7.796955 21.091761L677.435377 391.247169c1.899258 23.190941 11.195627 45.08239 26.589613 62.475596l61.87583 69.872706c8.696603 9.796173 13.894572 22.291292 14.394377 35.386177 0.299883 8.996486-1.599375 18.89262-8.496681 27.28934z","p-id":"7284",fill:"#ff5000"})],-1)])],8,Oie)]),_:2},1024)):H.createCommentVNode("",!0),O.fixed?H.createCommentVNode("",!0):(H.openBlock(),H.createBlock(x,{key:1},{title:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(H.unref(n)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:H.withCtx(()=>[H.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:W=>B(O)},[...Q[3]||(Q[3]=[H.createElementVNode("svg",{t:"1759048735643",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7481",width:"200",height:"200"},[H.createElementVNode("path",{d:"M381.298 418.828h-157.703l-37.575 38.272 155.61 158.377-278.212 345.128 356.040-265.838 154.71 157.41 38.813-39.51 2.407-157.972 238.838-313.29 71.685 73.013 34.695-35.28-310.185-315.743-34.672 35.257 77.287 79.402-311.737 240.773z","p-id":"7482",fill:"#ff5000"})],-1)])],8,Pie)]),_:2},1024))])):H.createCommentVNode("",!0)])):H.createCommentVNode("",!0)]),_:1},8,["modelValue"]),H.createElementVNode("div",Gie,[H.createElementVNode("div",Uie,[H.createVNode(H.unref(Cr.Checkbox),{checked:u.value,indeterminate:f.value,onChange:d},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(H.unref(n)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),i.localColumns.length?(H.openBlock(),H.createBlock(L,{key:0,style:{"margin-right":"6px"},onClick:v},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(H.unref(n)("hbLibComp.hbLibListTableColumsSet.reset")),1)]),_:1})):H.createCommentVNode("",!0),H.createVNode(L,{type:"primary",onClick:m},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(H.unref(n)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:H.withCtx(()=>[H.createVNode(x,{title:H.unref(n)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:H.withCtx(()=>[...Q[4]||(Q[4]=[H.createElementVNode("span",{class:"hb-lib-table-col-set"},[H.createElementVNode("svg",{t:"1759041858618",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5219",width:"200",height:"200"},[H.createElementVNode("path",{d:"M460.8 49.216a102.4 102.4 0 0 1 102.4 0l323.968 187.072c31.68 18.304 51.2 52.096 51.2 88.64V576h-76.8V324.928a25.6 25.6 0 0 0-12.8-22.144L524.8 115.712a25.6 25.6 0 0 0-25.6 0L175.232 302.784a25.6 25.6 0 0 0-12.8 22.144v374.144a25.6 25.6 0 0 0 12.8 22.144L499.2 908.288a25.6 25.6 0 0 0 25.6 0l51.2-29.568v88.64l-12.8 7.424a102.4 102.4 0 0 1-102.4 0l-323.968-187.072a102.4 102.4 0 0 1-51.2-88.64V324.928c0-36.544 19.52-70.4 51.2-88.64L460.8 49.216z","p-id":"5220",fill:"#ff5000"}),H.createElementVNode("path",{d:"M345.6 512a166.4 166.4 0 1 1 332.8 0 166.4 166.4 0 0 1-332.8 0zM512 422.4a89.6 89.6 0 1 0 0 179.2 89.6 89.6 0 0 0 0-179.2zM670.208 736a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4zM670.208 896a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4z","p-id":"5221",fill:"#ff5000"})])],-1)])]),_:1},8,["title"])]),_:1},8,["visible","title"])])}}}),[["__scopeId","data-v-5dd5443c"]])),uT=Ii(Gi(H.defineComponent({name:"HbLibFormTooltipSelect",inheritAttrs:!1,__name:"HbTooltipSelect",props:H.mergeModels({options:{default:()=>[]},tooltipPlacement:{default:"right"},tooltipMaxWidth:{default:280},enableTooltip:{type:Boolean,default:!0},enableEllipsis:{type:Boolean,default:!0}},{value:{default:void 0},valueModifiers:{}}),emits:["update:value"],setup(r,{expose:t}){const e=r,n=H.useAttrs(),i=H.computed(()=>{const d=n,g=d.dropdownClassName;return{...d,dropdownClassName:g??"hb_lib_form_tooltip_select__dropdown"}}),a=H.ref(),o=H.useModel(r,"value"),s=H.computed(()=>e.options??[]),l=H.computed(()=>({maxWidth:typeof e.tooltipMaxWidth=="number"?`${e.tooltipMaxWidth}px`:e.tooltipMaxWidth})),c=d=>d.tooltip??d.label,u=d=>d.key??d.label,f=d=>!!(e.enableTooltip&&c(d));return t({focus:()=>{a.value?.focus?.()},blur:()=>{a.value?.blur?.()},selectRef:a}),(d,g)=>(H.openBlock(),H.createBlock(H.unref(Cr.Select),H.mergeProps({ref_key:"selectRef",ref:a},i.value,{value:o.value,"onUpdate:value":g[0]||(g[0]=y=>o.value=y),class:"hb_lib_form_tooltip_select"}),{default:H.withCtx(()=>[d.$slots.default?H.renderSlot(d.$slots,"default",{key:0},void 0,!0):(H.openBlock(!0),H.createElementBlock(H.Fragment,{key:1},H.renderList(s.value,y=>(H.openBlock(),H.createBlock(H.unref(Cr.SelectOption),H.mergeProps({key:u(y),value:y.value,disabled:y.disabled},{ref_for:!0},y.optionProps),{default:H.withCtx(()=>[f(y)?(H.openBlock(),H.createBlock(H.unref(Cr.Tooltip),{key:0,title:c(y),placement:e.tooltipPlacement,"overlay-style":l.value},{default:H.withCtx(()=>[H.createElementVNode("span",{class:H.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":e.enableEllipsis}])},H.toDisplayString(y.label),3)]),_:2},1032,["title","placement","overlay-style"])):(H.openBlock(),H.createElementBlock("span",{key:1,class:H.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":e.enableEllipsis}])},H.toDisplayString(y.label),3))]),_:2},1040,["value","disabled"]))),128))]),_:3},16,["value"]))}}),[["__scopeId","data-v-13285691"]])),Hie={class:"ant-upload-drag-icon"},jie={class:"ant-upload-text"},Yie={style:{color:"#ff5000"}},Wie={class:"ant-upload-hint"},Jie={key:0,class:"hb_import_btn"},Vie=["href"],fT=Ii(Gi(H.defineComponent({name:"HbLibImportFile",__name:"HbImportFile",props:{title:{default:()=>"文件导入"},modalWidth:{default:600},acceptFile:{default:".xlsx, .xls, .csv,.txt,.docx,.doc,.ppt,.pptx,.png,.jpg,.jpeg,.gif"},isRequired:{type:Boolean,default:!0},templateUrl:{},maxCount:{default:1},multiple:{type:Boolean,default:!1},btnText:{default:()=>"文件上传"},beforeUpload:{},beforeSubmit:{}},setup(r,{expose:t}){const{t:e}=bs.useI18n(),n=H.ref(),i=r,a=H.ref(!1),o=H.reactive({fileList:[],visible:!1}),s=h=>{if(h==null)return;const A=o.fileList.indexOf(h);if(A!==-1){const d=o.fileList.slice();d.splice(A,1),o.fileList=d}},l=()=>{o.visible=!1,o.fileList=[],a.value=!1},c=h=>(o.fileList=[h],i.beforeUpload?i.beforeUpload(h.originFileObj):!1),u=()=>{n.value.validateFields().then(()=>{i.beforeSubmit&&(a.value=!0,i.beforeSubmit(o.fileList).then(()=>{}).finally(()=>{a.value=!1}))})},f=()=>{o.visible=!0};return t({handleCancel:l,openModal:f,confirmLoading:a}),(h,A)=>{const d=H.resolveComponent("a-upload-dragger"),g=H.resolveComponent("a-form-item"),y=H.resolveComponent("a-form"),v=H.resolveComponent("a-modal"),p=H.resolveComponent("a-button");return H.openBlock(),H.createElementBlock(H.Fragment,null,[H.createVNode(v,H.mergeProps({visible:o.visible,"onUpdate:visible":A[0]||(A[0]=m=>o.visible=m),title:i.title,"confirm-loading":a.value},h.$attrs,{width:i.modalWidth,onCancel:l,onOk:u}),{default:H.withCtx(()=>[H.createVNode(y,{ref_key:"modalFormRef",ref:n,model:o},{default:H.withCtx(()=>[H.createVNode(g,{name:"fileList",label:H.unref(e)("hbLibComp.HbImportFile.fileLabel"),rules:[{required:i.isRequired,message:H.unref(e)("hbLibComp.HbImportFile.clickUp")}]},{default:H.withCtx(()=>[H.createVNode(d,{"max-count":i.maxCount,multiple:i.multiple,accept:i.acceptFile,name:"file","file-list":o.fileList,"before-upload":c,onRemove:s},{default:H.withCtx(()=>[H.createElementVNode("p",Hie,[H.createVNode(H.unref(Wo.PlusCircleOutlined),{style:{"font-size":"37px"}})]),H.createElementVNode("p",jie,[H.createTextVNode(H.toDisplayString(H.unref(e)("hbLibComp.HbImportFile.uploadText")),1),H.createElementVNode("span",Yie,H.toDisplayString(H.unref(e)("hbLibComp.HbImportFile.clickUp")),1)]),H.createElementVNode("p",Wie,H.toDisplayString(H.unref(e)("hbLibComp.HbFileUploadModal.format"))+": "+H.toDisplayString(i.acceptFile),1)]),_:1},8,["max-count","multiple","accept","file-list"])]),_:1},8,["label","rules"])]),_:1},8,["model"]),i.templateUrl?(H.openBlock(),H.createElementBlock("p",Jie,[H.createElementVNode("a",{download:"Import_number-template.xlsx",href:i.templateUrl},H.toDisplayString(H.unref(e)("hbLibComp.HbImportFile.downloadTemplate")),9,Vie)])):H.createCommentVNode("",!0)]),_:1},16,["visible","title","confirm-loading","width"]),H.renderSlot(h.$slots,"btn",{},()=>[H.createVNode(p,{type:"primary",onClick:f},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(r.btnText),1)]),_:1})],!0)],64)}}}),[["__scopeId","data-v-a11cda0f"]])),zie={class:"hb_lib_log_modal_content"},Kie={class:"log_remark"},hT=Ii(Gi(H.defineComponent({name:"HbLibLogModal",__name:"HbLogModal",props:{visible:{type:Boolean,default:!1},needBtn:{type:Boolean,default:!1},title:{default:""},width:{default:"45%"},height:{default:"60%"},dataStr:{default:"records"},scrollY:{default:500},params:{default:()=>({})},url:{},columns:{default:void 0},logBtnText:{default:"查看日志"},pagination:{},modalStyle:{},bodyStyle:{},getLogData:{}},emits:["update:visible"],setup(r,{expose:t,emit:e}){const{t:n}=bs.useI18n(),i=H.useSlots(),a=r,o=[{title:n("hbLibComp.HbLogModal.operator"),dataIndex:"userName",width:"15%"},{title:n("hbLibComp.HbLogModal.operateTime"),dataIndex:"operateTime",width:"25%"},{title:n("hbLibComp.HbLogModal.operateContent"),dataIndex:"remark"}],s=H.computed(()=>a.columns||o),l=H.computed(()=>a.title||n("hbLibComp.HbLogModal.operateLogs")),c=H.computed(()=>!!i.title),u=H.ref(!1),f=H.reactive({list:[],pagination:{current:1,pageSize:10,pageSizeOptions:["10","20","50","100"],showQuickJumper:!0,showSizeChanger:!0,showTotal:(p,m)=>m[0]+"-"+m[1]+" 总共"+p+"页",total:0}});H.watch(()=>a.pagination,p=>{p&&(f.pagination={...f.pagination,...p})},{deep:!0,immediate:!0});const h=()=>{const p={pageIndex:f.pagination.current,pageSize:f.pagination.pageSize,query:a.params};a.getLogData&&(u.value=!0,a.getLogData(p).then(m=>{Number(m.code)==200?(f.pagination.total=Number(m.data.total),f.list=m.data[a.dataStr]||[]):Cr.message.error(m.message)}).finally(()=>{u.value=!1}))},A=p=>{f.pagination.current=p.current,f.pagination.pageSize=p.pageSize,h()},d=()=>{f.list=[],v("update:visible",!1)},g=()=>{v("update:visible",!0)},y=(p,m="YYYY-MM-DD HH:mm:ss")=>p?qI(p).format(m):"",v=e;return H.watch(()=>a.visible,p=>{p&&h()}),t({close:d,loading:u}),(p,m)=>{const b=H.resolveComponent("a-tooltip"),C=H.resolveComponent("HbLibCopy"),w=H.resolveComponent("a-table"),B=H.resolveComponent("a-button"),k=H.resolveComponent("HbLibModal");return H.openBlock(),H.createElementBlock(H.Fragment,null,[H.createVNode(k,H.mergeProps(p.$attrs,{visible:r.visible,title:c.value?void 0:l.value,width:r.width,height:r.height,modalStyle:r.modalStyle,bodyStyle:r.bodyStyle,onCancel:d}),H.createSlots({footer:H.withCtx(()=>[H.createVNode(B,{onClick:d},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(H.unref(n)("hbLibComp.HbLogModal.close")),1)]),_:1})]),default:H.withCtx(()=>[H.createElementVNode("div",zie,[H.createVNode(w,{bordered:"",rowKey:"id",columns:s.value,dataSource:f.list,pagination:f.pagination,loading:u.value,scroll:{y:r.scrollY},onChange:A},H.createSlots({bodyCell:H.withCtx(({column:Q,record:x})=>[Q&&Q.needTooltip?(H.openBlock(),H.createElementBlock(H.Fragment,{key:0},[Q.needTooltip?(H.openBlock(),H.createBlock(b,{key:0},{title:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(x[Q.dataIndex]),1)]),default:H.withCtx(()=>[H.createTextVNode(" "+H.toDisplayString(x[Q.dataIndex]),1)]),_:2},1024)):H.createCommentVNode("",!0)],64)):H.createCommentVNode("",!0),Q&&Q.needCopy?(H.openBlock(),H.createElementBlock(H.Fragment,{key:1},[H.createElementVNode("div",Kie,H.toDisplayString(x[Q.dataIndex]),1),H.createVNode(C,{"cp-text":x[Q.dataIndex],style:{position:"relative"}},null,8,["cp-text"])],64)):H.createCommentVNode("",!0),Q&&Q.needFormat?(H.openBlock(),H.createElementBlock(H.Fragment,{key:2},[H.createTextVNode(H.toDisplayString(y(x[Q.dataIndex],Q.operateTime)),1)],64)):H.createCommentVNode("",!0)]),_:2},[p.$slots.headerCell?{name:"headerCell",fn:H.withCtx(({column:Q})=>[H.renderSlot(p.$slots,"headerCell",{column:Q},()=>[H.createTextVNode(H.toDisplayString(Q.title),1)],!0)]),key:"0"}:void 0]),1032,["columns","dataSource","pagination","loading","scroll"])])]),_:2},[c.value?{name:"title",fn:H.withCtx(()=>[H.renderSlot(p.$slots,"title",{},void 0,!0)]),key:"0"}:void 0]),1040,["visible","title","width","height","modalStyle","bodyStyle"]),r.needBtn?H.renderSlot(p.$slots,"default",{key:0},()=>[H.createVNode(B,{onClick:g},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(r.logBtnText),1)]),_:1})],!0):H.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-ac23253c"]])),lB=Symbol("GLOBAL_CONFIG_KEY"),qie={importFile:{isRequired:!1,modalWidth:800,maxCount:1,multiple:!1,acceptFile:"image/*"},listTable:{align:"left",colSaveTimeOut:800,defaultColWidth:200,ellipsisNumber:10},HbLibListPageContainer:{offsetBottom:20,minHeight:300,timeOut:100,offsetHeight:110,isUnFixTbHeight:!0},HbLibFormItemFilterModal:{modalWidth:800,defaultShowCount:2},HbLibDetailBox:{descLabelWidth:150,descValueWidth:200,needSetDesDefault:!1,desDefault:"-",setDefaultValueTimeOut:600,backTopBottom:150},HbLibUnDetailBox:{backTopBottom:150},HbLibCard:{formItemMb:10}},Xie={class:"hb_ui_config"},AT=Ii(H.defineComponent({name:"HbUiConfig",__name:"hbUiConfig",props:{config:{}},setup(r){const t=r;let e=null;return H.watch(()=>t.config,n=>{e=H.reactive(sA.merge({},qie,n))},{deep:!0,immediate:!0}),H.provide(lB,e),(n,i)=>(H.openBlock(),H.createElementBlock("div",Xie,[H.renderSlot(n.$slots,"default")]))}})),Zie={class:"hb_card"},$ie={key:0,class:"hb_card_header"},eae={class:"hb_fix"},tae={class:"hb_card_header-title"},rae={class:"hb_card_header-action"},nae={class:"hb_card_body"},dT=Ii(Gi(H.defineComponent({name:"HbLibCard",__name:"HbLibCard",props:{cardTitle:{type:String,default:""},isForm:{type:Boolean,default:!1},isModal:{type:Boolean,default:!1},layout:{type:Number,default:2},formItemMb:{type:Number}},setup(r){const t=H.inject(lB),e=r,n=H.computed(()=>{let i=e.formItemMb||t?.HbLibCard?.formItemMb;return i?{"--hb-card-form-item-mb":i+"px"}:{}});return(i,a)=>(H.openBlock(),H.createElementBlock("div",H.mergeProps({class:"hb_card_wrapper"},i.$attrs),[H.createElementVNode("div",{class:H.normalizeClass(r.isModal?"modal__module-card":"__module-card")},[H.createElementVNode("div",Zie,[r.cardTitle?(H.openBlock(),H.createElementBlock("div",$ie,[H.createElementVNode("div",eae,[H.createElementVNode("span",tae,[H.renderSlot(i.$slots,"cardTitle",{},()=>[H.createTextVNode(H.toDisplayString(r.cardTitle),1)],!0)]),H.createElementVNode("div",rae,[H.renderSlot(i.$slots,"cardAct",{},void 0,!0)])])])):H.createCommentVNode("",!0),H.createElementVNode("div",nae,[H.createElementVNode("section",{class:H.normalizeClass({hb_card_form:r.isForm&&!r.isModal,hb_card_flex_form:r.isForm&&r.isModal,l1c:r.layout==1,l3c:r.layout==3,l4c:r.layout==4}),style:H.normalizeStyle(n.value)},[H.renderSlot(i.$slots,"default",{},void 0,!0)],6)])])],2)],16))}}),[["__scopeId","data-v-4d8c1b1b"]])),iae=["onClick"],aae={class:"step"},oae={key:0,class:"line"},sae=["title"],gT=Ii(Gi(H.defineComponent({name:"HbLibAnchor",__name:"HbLibAnchor",props:{anchors:{},offsetTop:{},containerSelector:{}},setup(r){const t=r,e=H.ref(""),n=t.offsetTop??160,i=H.computed(()=>t.anchors.filter(l=>typeof l.visible=="function"?l.visible():l.visible!==!1)),a=()=>{const l=t.containerSelector||"#subpackage_container";return document.querySelector(l)||window},o=l=>{const c=a(),u=l.target.startsWith("#")||l.target.startsWith(".")?l.target:`#${l.target}`,f=document.querySelector(u);if(!f)return;let h=f.offsetTop;c instanceof HTMLElement&&(h-=c.offsetTop),h-=n,c instanceof Window?window.scrollTo({top:h,behavior:"smooth"}):c.scrollTo({top:h,behavior:"smooth"}),e.value=l.target},s=()=>{const l=a();let c=0;l instanceof Window?c=window.scrollY+n+5:c=l.scrollTop+n+5;let u=i.value[0]?.target||"";for(const f of i.value){const h=f.target.startsWith("#")||f.target.startsWith(".")?f.target:`#${f.target}`,A=document.querySelector(h);if(!A)continue;let d=A.offsetTop;l instanceof HTMLElement&&(d-=l.offsetTop),c>=d&&(u=f.target)}e.value=u};return H.onMounted(()=>{a().addEventListener("scroll",s),s()}),H.onBeforeUnmount(()=>{a().removeEventListener("scroll",s)}),(l,c)=>(H.openBlock(),H.createElementBlock("div",{class:"anchors",style:H.normalizeStyle({top:`${H.unref(n)}px`})},[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(i.value,(u,f)=>(H.openBlock(),H.createElementBlock("div",{key:u.target,class:H.normalizeClass(["anchor-item",{isActive:e.value===u.target}]),onClick:h=>o(u)},[H.createElementVNode("div",aae,[f!==i.value.length-1?(H.openBlock(),H.createElementBlock("div",oae)):H.createCommentVNode("",!0),c[0]||(c[0]=H.createElementVNode("div",{class:"circle"},null,-1))]),H.createElementVNode("span",{class:"title",title:u.title},H.toDisplayString(u.title.length>12?u.title.slice(0,12)+"...":u.title),9,sae)],10,iae))),128))],4))}}),[["__scopeId","data-v-d51548d8"]])),lae={class:"hb_detail_top_act_left"},cae={key:1,class:"hb_detail_top_wrapper_sticky"},uae={class:"hb_detail_top_act"},fae={key:0,class:"hb_detail_all_info"},hae={class:"hb_detail_all_info_left"},Aae={class:"hb_detail_info_title"},dae={key:0,class:"hb_detail_info_content"},gae={class:"create_by"},pae={class:"hb_detail_all_info_right"},vae={class:"hb_edit_detail_content_wrapper"},yae={class:"hb_detail_content"},mae={class:"hb-back-top-inner"},pT=Ii(Gi(H.defineComponent({name:"HbLibDetailBox",__name:"HbLibDetailBox",props:{stickyTitle:{type:String,default:""},needTotalInfoBox:{type:Boolean,default:!0},totalInfo:{type:Object,default:()=>({totalInfoTitle:"",totalInfoSubTitle1:"",totalInfoSubTitle2:"",totalInfoSubVal1:"",totalInfoSubVal2:""})},container:{type:String,default:"#subpackage_container"},backTopBottom:{type:Number},backFn:{type:Function},needFixWidth:{type:Boolean,default:!0},descLabelWidth:{type:Number},descValueWidth:{type:Number},spinning:{type:Boolean,default:!1}},setup(r){const{t}=bs.useI18n(),e=r,n=H.inject(lB),i=()=>{e.backFn?e.backFn():window.history.back()},a=H.computed(()=>e.backTopBottom||n?.HbLibDetailBox?.backTopBottom||80),o=H.computed(()=>{const g={};return e.needFixWidth?{hb_need_set_desc_label_width:e.descLabelWidth||n?.HbLibDetailBox?.descLabelWidth,hb_need_set_desc_value_width:e.descValueWidth||n?.HbLibDetailBox?.descValueWidth}:g}),s=()=>document.querySelector(e.container),l=H.ref(!1),c=H.ref(null),{top:u}=lA.useElementBounding(c),f=H.computed(s),{y:h}=lA.useScroll(f);H.watch(h,g=>{l.value=g>u.value},{immediate:!0});const A=g=>{document.querySelectorAll(".hb_card_body").forEach(v=>{v.querySelectorAll(".ant-descriptions-item-content span").forEach(m=>{m.textContent?.trim()||(m.textContent=g)})})};let d=null;return H.onMounted(()=>{n?.HbLibDetailBox?.needSetDesDefault&&(d=setTimeout(()=>{A(n?.HbLibDetailBox?.desDefault)},n?.HbLibDetailBox?.setValuetimeOut))}),H.onUnmounted(()=>{d&&clearTimeout(d)}),(g,y)=>{const v=H.resolveComponent("RollbackOutlined"),p=H.resolveComponent("a-divider"),m=H.resolveComponent("a-spin");return H.openBlock(),H.createBlock(m,{spinning:r.spinning},{default:H.withCtx(()=>[H.createElementVNode("div",{class:H.normalizeClass(["hb_detail_wrapper",o.value]),style:H.normalizeStyle({"--hb-detail-desc-label-width":o.value?.hb_need_set_desc_label_width+"px","--hb-detail-desc-value-width":o.value?.hb_need_set_desc_value_width+"px"})},[r.needTotalInfoBox?(H.openBlock(),H.createElementBlock("div",{key:0,class:H.normalizeClass(["hb_detail_top_act_sticky",l.value?"can_show":""])},[H.createElementVNode("div",lae,[H.createVNode(v,{style:{color:"#ff5000"}}),H.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:i},H.toDisplayString(H.unref(t)("hbLibComp.HbLibDetailBox.back")),1),H.createVNode(p,{type:"vertical"}),H.createElementVNode("span",null,H.toDisplayString(r.stickyTitle),1)]),y[0]||(y[0]=H.createElementVNode("div",{class:"hb_detail_top_act_right"},null,-1))],2)):H.createCommentVNode("",!0),r.needTotalInfoBox?(H.openBlock(),H.createElementBlock("div",cae,[H.createElementVNode("div",uae,[H.createVNode(v),H.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:i},H.toDisplayString(H.unref(t)("hbLibComp.HbLibDetailBox.back")),1),H.createVNode(p,{type:"vertical"}),H.createElementVNode("span",null,H.toDisplayString(r.stickyTitle),1)]),r.needTotalInfoBox?(H.openBlock(),H.createElementBlock("div",fae,[H.createElementVNode("aside",hae,[H.renderSlot(g.$slots,"totalInfoLeft",{},()=>[H.createElementVNode("div",Aae,H.toDisplayString(r.totalInfo.totalInfoTitle),1),r.totalInfo.totalInfoSubTitle1?(H.openBlock(),H.createElementBlock("div",dae,[H.createElementVNode("span",gae,H.toDisplayString(r.totalInfo.totalInfoSubTitle1)+H.toDisplayString(r.totalInfo.totalInfoSubVal1),1),H.createElementVNode("span",null,H.toDisplayString(r.totalInfo.totalInfoSubTitle2)+H.toDisplayString(r.totalInfo.totalInfoSubVal2),1)])):H.createCommentVNode("",!0)],!0)]),H.createElementVNode("aside",pae,[H.renderSlot(g.$slots,"totalInfoRight",{},void 0,!0)])])):H.createCommentVNode("",!0)])):H.createCommentVNode("",!0),H.createElementVNode("div",vae,[H.createElementVNode("div",yae,[H.renderSlot(g.$slots,"detailContent",{},void 0,!0)])]),H.createVNode(H.unref(Cr.BackTop),{target:s,style:H.normalizeStyle({bottom:a.value+"px"})},{default:H.withCtx(()=>[H.createElementVNode("div",mae,[H.createVNode(H.unref(Wo.ToTopOutlined))])]),_:1},8,["style"])],6)]),_:3},8,["spinning"])}}}),[["__scopeId","data-v-f2c2c397"]])),vT=Ii(Gi(H.defineComponent({name:"HbLibFooterBar",__name:"HbLibFooterBar",props:{buttons:{type:Array,default:()=>[]},getContainer:{type:Function,default:()=>{const r=document.querySelector("#subpackage_container");return r&&r.scrollHeight>r.clientHeight?r:window}},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},placeLeft:{type:Boolean,default:!1},placeRight:{type:Boolean,default:!1}},setup(r){const t=r,e=(l,c=300)=>sT(l,c),n=H.computed(()=>t.buttons.filter(c=>{if(c.condition===void 0||c.condition===null)return!0;if(typeof c.condition=="boolean")return c.condition;if(typeof c.condition=="function")return c.condition()}).map(c=>({...c,onClick:e(c.onClick,c.debounceTime||300)}))),i=H.ref(0),a=l=>{let c=0;return(Array.isArray(l)?l:[l]).forEach(f=>{let h=[];if(f.startsWith("#")){const A=document.getElementById(f.slice(1));A&&h.push(A)}else h=Array.from(document.getElementsByClassName(f));h.forEach(A=>{c+=A.offsetWidth||0})}),c},o=()=>{t.leftElements&&(i.value=a(t.leftElements)+1)};let s=null;return H.onMounted(()=>{const l=t.getContainer();l!==window&&l instanceof HTMLElement&&l.addEventListener("scroll",()=>{}),o(),s=new MutationObserver(()=>{o()});const c=document.body;s.observe(c,{childList:!0,subtree:!0,attributes:!0})}),H.onBeforeUnmount(()=>{s&&s.disconnect()}),(l,c)=>{const u=H.resolveComponent("a-button"),f=H.resolveComponent("a-space"),h=H.resolveComponent("a-affix"),A=H.resolveDirective("has");return H.openBlock(),H.createElementBlock("div",{class:"footer-affix-wrapper",style:H.normalizeStyle({"--pageHeaderOrFonterLeft":i.value+"px"})},[H.createVNode(h,{"offset-bottom":0,target:r.getContainer,style:{width:"100%"}},{default:H.withCtx(()=>[H.createElementVNode("div",{class:H.normalizeClass({"page-footer-bar":!0,page_footer_btn_left:r.placeLeft,page_footer_btn_right:r.placeRight})},[H.createVNode(f,null,{default:H.withCtx(()=>[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(n.value,d=>H.withDirectives((H.openBlock(),H.createBlock(u,{key:d.key,type:d.type||"default",danger:d.danger,loading:d.loading,disabled:d.disabled,onClick:d.onClick,class:"hb_list_page_button"},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(d.label),1)]),_:2},1032,["type","danger","loading","disabled","onClick"])),[[A,d.permissionsTag||null]])),128))]),_:1})],2)]),_:1},8,["target"])],4)}}}),[["__scopeId","data-v-23f13fb5"]])),Iae={class:"modal__detail-content"},yT=Ii(Gi(H.defineComponent({name:"HbLibModal",__name:"HbLibModal",props:{visible:{type:Boolean,default:!1},type:{type:String,default:"add"},title:{type:String,default:""},modalStyle:{type:Object,default:()=>({})},bodyStyle:{type:Object,default:()=>({top:"10px"})},wrapStyle:{type:Object,default:()=>({})},spinning:{type:Boolean,default:!1},descLabelWidth:{type:Number},descValueWidth:{type:Number}},emits:["update:visible","ok","cancel"],setup(r,{expose:t,emit:e}){const n=e,i=r,a=H.computed({get:()=>i.visible,set:x=>n("update:visible",x)}),o=H.ref(null),s=H.computed(()=>({top:"10px",...i.modalStyle})),l=H.computed(()=>({overflow:"hidden",...i.modalStyle})),c=H.computed(()=>({maxHeight:"calc(100vh - 120px)",overflowY:"auto",padding:"0 6px",...i.bodyStyle})),{x:u,y:f,isDragging:h}=lA.useDraggable(o),A=H.ref(0),d=H.ref(0),g=H.ref(!1),y=H.ref(0),v=H.ref(0),p=H.ref(0),m=H.ref(0),b=H.ref({left:0,right:0,top:0,bottom:0});let C=null;const w=()=>{y.value=0,v.value=0,p.value=0,m.value=0,g.value=!1};H.watch(a,x=>{x?setTimeout(()=>{w()},50):(C&&clearTimeout(C),C=setTimeout(()=>{y.value=0,v.value=0,p.value=0,m.value=0},300))}),H.watch([u,f],()=>{if(!g.value){A.value=u.value,d.value=f.value;const x=document.body.getBoundingClientRect(),L=o.value.getBoundingClientRect();b.value.right=x.width-L.width,b.value.bottom=x.height-L.height,p.value=y.value,m.value=v.value}g.value=!0}),H.watch(h,()=>{h||(g.value=!1)}),H.watchEffect(()=>{g.value&&(y.value=p.value+Math.min(Math.max(b.value.left,u.value),b.value.right)-A.value,v.value=m.value+Math.min(Math.max(b.value.top,f.value),b.value.bottom)-d.value)});const B=H.computed(()=>({transform:`translate(${y.value}px, ${v.value}px)`})),k=()=>{n("cancel")},Q=()=>{n("ok")};return H.onUnmounted(()=>{C&&clearTimeout(C)}),t({handleOk:Q,handleCancel:k}),(x,L)=>{const O=H.resolveComponent("a-spin"),W=H.resolveComponent("a-modal");return H.openBlock(),H.createBlock(W,H.mergeProps({style:s.value,bodyStyle:c.value,ref:"modalRef",visible:a.value,"onUpdate:visible":L[0]||(L[0]=M=>a.value=M),"wrap-style":l.value,onOk:Q,onCancel:k},x.$attrs),H.createSlots({title:H.withCtx(()=>[H.createElementVNode("div",{ref_key:"modalTitleRef",ref:o,style:{width:"100%",cursor:"move"}},[H.renderSlot(x.$slots,"title",{},()=>[H.createTextVNode(H.toDisplayString(r.title),1)],!0)],512)]),modalRender:H.withCtx(({originVNode:M})=>[(H.openBlock(),H.createElementBlock("div",{key:a.value,style:H.normalizeStyle(B.value)},[(H.openBlock(),H.createBlock(H.resolveDynamicComponent(M)))],4))]),default:H.withCtx(()=>[H.createVNode(O,{spinning:i.spinning},{default:H.withCtx(()=>[H.createElementVNode("div",{class:H.normalizeClass([r.type=="detail"?"hb_detail_modal_wrapper":"hb_modal_wrapper",r.descLabelWidth&&"hb_need_set_desc_label_width",r.descValueWidth&&"hb_need_set_desc_value_width"]),style:H.normalizeStyle({"--hb-detail-desc-label-width":r.descLabelWidth+"px","--hb-detail-desc-value-width":r.descValueWidth+"px"})},[H.createElementVNode("div",Iae,[H.renderSlot(x.$slots,"default",{},void 0,!0)])],6)]),_:3},8,["spinning"])]),_:2},[x.$slots.footer?{name:"footer",fn:H.withCtx(()=>[H.renderSlot(x.$slots,"footer",{},void 0,!0)]),key:"0"}:void 0]),1040,["style","bodyStyle","visible","wrap-style"])}}}),[["__scopeId","data-v-866a050a"]])),bae={key:0,class:"hb_edit_header"},Cae={class:"__detail-content"},wae={key:1,class:"hb_edit_footer"},Eae={class:"hb-back-top-inner"},mT=Ii(Gi(H.defineComponent({name:"HbLibUnDetailBox",__name:"HbLibUnDetailBox",props:{container:{type:String,default:"#subpackage_container"},formLabelWidth:{type:Number,default:0},backTopBottom:{type:Number},spinning:{type:Boolean,default:!1}},setup(r){const t=H.ref("vertical"),e=r,n=()=>document.querySelector(e.container),i=H.inject("GLOBAL_CONFIG_KEY"),a=H.computed(()=>e.backTopBottom||i?.HbLibUnDetailBox?.backTopBottom||80);return(o,s)=>(H.openBlock(),H.createBlock(H.unref(Cr.Spin),{spinning:r.spinning},{default:H.withCtx(()=>[H.createElementVNode("div",H.mergeProps({class:"hb_edit_wrapper"},o.$attrs,{style:{"--hb-edit-form-label":r.formLabelWidth},class:r.formLabelWidth?"isNeedSetLabelWidth":""}),[o.$slots.editHeader?(H.openBlock(),H.createElementBlock("div",bae,[H.renderSlot(o.$slots,"editHeader",{},void 0,!0)])):H.createCommentVNode("",!0),H.createElementVNode("div",{class:H.normalizeClass(["hb_edit_detail_content_wrapper",t.value==="vertical"?"form_vertical":""])},[H.createElementVNode("div",Cae,[H.renderSlot(o.$slots,"editContent",{},void 0,!0)])],2),o.$slots.editFooter?(H.openBlock(),H.createElementBlock("div",wae,[H.renderSlot(o.$slots,"editFooter",{},void 0,!0)])):H.createCommentVNode("",!0),H.createVNode(H.unref(Cr.BackTop),{target:n,style:H.normalizeStyle({bottom:a.value+"px"})},{default:H.withCtx(()=>[H.createElementVNode("div",Eae,[H.createVNode(H.unref(Wo.ToTopOutlined))])]),_:1},8,["style"])],16)]),_:3},8,["spinning"]))}}),[["__scopeId","data-v-41f1fc73"]])),Bae={class:"hb_edit_header_left"},kae={class:"hb_edit_header_title"},Qae={class:"hb_edit_header_right"},IT=Ii(Gi(H.defineComponent({name:"HbLibPageHeader",__name:"HbLibPageHeader",props:{topElements:{type:[String,Array],default:()=>["#globalHead","#globalNavFrame"]},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},backFn:{type:Function}},setup(r){const{t}=bs.useI18n(),e=r,n=nB.useRoute(),i=H.ref(0),a=H.computed(()=>n?.meta?.title||"");function o(h,A="offsetHeight"){let d=0;return(Array.isArray(h)?h:[h]).forEach(y=>{let v=[];if(y.startsWith("#")){const p=document.getElementById(y.slice(1));p&&v.push(p)}else v=Array.from(document.getElementsByClassName(y));v.forEach(p=>{d+=p[A]||0})}),d}const s=()=>{e.topElements&&(i.value=o(e.topElements))},l=H.ref(0),c=()=>{e.leftElements&&(l.value=o(e.leftElements,"offsetWidth")+1)};let u=null;H.onMounted(()=>{s(),c(),window.addEventListener("resize",s),u=new MutationObserver(()=>{c()});const h=document.body;u.observe(h,{childList:!0,subtree:!0,attributes:!0})}),H.onBeforeUnmount(()=>{window.removeEventListener("resize",s),u&&u.disconnect()}),H.watch(()=>e.topElements,()=>{s()},{immediate:!0});const f=()=>{e.backFn?e.backFn():window.history.back()};return(h,A)=>{const d=H.resolveComponent("a-divider");return H.openBlock(),H.createElementBlock("div",{class:"hb_edit_header",style:H.normalizeStyle({top:i.value+"px","--pageHeaderOrFonterLeft":l.value+"px"})},[H.createElementVNode("aside",Bae,[H.createElementVNode("a",{href:"#",class:"backBtn",onClick:f},H.toDisplayString(H.unref(t)("hbLibComp.HbLibDetailBox.back")),1),H.createVNode(d,{type:"vertical"}),H.createElementVNode("span",kae,H.toDisplayString(a.value),1)]),H.createElementVNode("aside",Qae,[H.renderSlot(h.$slots,"right",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-83fcd208"]])),xae={cpText:{type:String,default:""},K:{type:String,default:""},V:{type:String},L:{type:String},data:{type:[Array,Object]},tooltipTitle:{type:String,default:""},copySuccessTip:{type:String,default:""},copyFailTip:{type:String,default:""},cpStyle:{type:Object,default:()=>({})},classType:{type:String,default:"ab"}},cB=Ii(Gi(H.defineComponent({name:"HbLibCopy",__name:"copy",props:xae,setup(r){const t=r,e=H.ref();H.watchEffect(()=>{e.value=t.data});const n=H.computed(()=>t.tooltipTitle||"复制"),i=H.computed(()=>t.copySuccessTip||"复制成功"),a=H.computed(()=>t.copyFailTip||"复制失败"),o=H.computed(()=>{if(t.cpText)return t.cpText;let l="";if(t.data)if(Array.isArray(t.data)){if(t.K&&t.V&&t.L){const c=t.data.find(u=>u?.[t.K]===t.V);l=c?c[t.L]:""}}else t.K&&(l=t.data[t.K]);return l}),s=()=>{navigator.clipboard.writeText(o.value).then(()=>{Cr.message.success(i.value)}).catch(()=>{Cr.message.error(a.value)})};return(l,c)=>o.value?(H.openBlock(),H.createBlock(H.unref(Cr.Tooltip),{key:0,title:n.value},{default:H.withCtx(()=>[H.createElementVNode("span",{class:"hb-lib-copy-text-eyevue",style:H.normalizeStyle({...l.cpStyle}),onClick:H.withModifiers(s,["stop","prevent"])},[...c[0]||(c[0]=[H.createElementVNode("svg",{t:"1766643849597",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5022",width:"200",height:"200"},[H.createElementVNode("path",{d:"M720 192h-544A80.096 80.096 0 0 0 96 272v608C96 924.128 131.904 960 176 960h544c44.128 0 80-35.872 80-80v-608C800 227.904 764.128 192 720 192z m16 688c0 8.8-7.2 16-16 16h-544a16 16 0 0 1-16-16v-608a16 16 0 0 1 16-16h544a16 16 0 0 1 16 16v608z","p-id":"5023",fill:"#808080ba"}),H.createElementVNode("path",{d:"M848 64h-544a32 32 0 0 0 0 64h544a16 16 0 0 1 16 16v608a32 32 0 1 0 64 0v-608C928 99.904 892.128 64 848 64z","p-id":"5024",fill:"#808080ba"}),H.createElementVNode("path",{d:"M608 360H288a32 32 0 0 0 0 64h320a32 32 0 1 0 0-64zM608 520H288a32 32 0 1 0 0 64h320a32 32 0 1 0 0-64zM480 678.656H288a32 32 0 1 0 0 64h192a32 32 0 1 0 0-64z","p-id":"5025",fill:"#808080ba"})],-1)])],4)]),_:1},8,["title"])):H.createCommentVNode("",!0)}}),[["__scopeId","data-v-2b6710a1"]])),_ae={dragList:{type:Array,required:!0},childrenType:{type:String,default:"html"},dragClass:{type:String,default:"drag-item"},ghostClass:{type:String,default:null},chosenClass:{type:String,default:null},sort:{type:Boolean,default:!0},handle:{type:String,default:""},filter:{type:String,default:""},draggable:{type:String,default:""}},bT=Ii(Gi(H.defineComponent({name:"HbDrag",__name:"index",props:_ae,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(r,{emit:t}){const e=r,n=H.shallowRef([]);H.watch(()=>e.dragList,u=>{n.value=u},{deep:!0,immediate:!0});const i=iB("drag"),a=t,o=u=>{console.log("drag start",u),a("handleDragStart",u)},s=u=>{console.log("drag end",u),a("handleDragEnd",u)},l=u=>{console.log("drag add",u),a("handleDragAdd",u)},c=u=>{console.log("drag remove",u),a("handleDragRemove",u)};return(u,f)=>(H.openBlock(),H.createElementBlock("div",{class:H.normalizeClass(H.unref(i).b())},[u.childrenType=="component"?(H.openBlock(),H.createBlock(H.unref(KI),H.mergeProps({key:0,modelValue:n.value,"onUpdate:modelValue":f[0]||(f[0]=h=>n.value=h),"item-key":"key",class:{[u.dragClass]:u.dragClass}},u.$attrs,{"ghost-class":u.ghostClass,onStart:o,onEnd:s,onAdd:l,onRemove:c}),{item:H.withCtx(({element:h})=>[(H.openBlock(),H.createBlock(H.resolveDynamicComponent(h.component)))]),_:1},16,["modelValue","class","ghost-class"])):(H.openBlock(),H.createBlock(H.unref(KI),H.mergeProps({key:1,modelValue:n.value,"onUpdate:modelValue":f[1]||(f[1]=h=>n.value=h),"item-key":"id",class:{[u.dragClass]:u.dragClass}},u.$attrs,{"ghost-class":u.ghostClass,onStart:o,onEnd:s,onAdd:l,onRemove:c}),{item:H.withCtx(({element:h})=>[H.createElementVNode("div",null,[H.renderSlot(u.$slots,"default",{item:h},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-15b227f5"]])),Sae={triggerWay:{type:String,default:"click"},colText:{type:String,default:""},menuItems:{type:Array,default:()=>[]},getSort:{type:Function}},CT=Ii(Gi(H.defineComponent({name:"HbLibSort",__name:"sort",props:Sae,emits:["change"],setup(r,{expose:t,emit:e}){const n=r,i=e,a=H.ref([]),o=H.ref("");H.watch(()=>n.menuItems,l=>{let c=[];Array.isArray(l)&&l.length&&l.forEach(u=>{c=[...c,{label:`${u.label}升序`,value:`${u.value}`,sort:"Asc"},{label:`${u.label}降序`,value:`${u.value}`,sort:"Desc"}]}),a.value=c},{deep:!0,immediate:!0});const s=l=>{o.value=l.value+l.sort,n.getSort&&n.getSort({orderFeild:l.value,orderBy:l.sort}),i("change",o)};return t({currentActiveItem:o}),(l,c)=>{const u=H.resolveComponent("a-menu-item"),f=H.resolveComponent("a-menu"),h=H.resolveComponent("a-dropdown");return H.openBlock(),H.createBlock(h,{trigger:[n.triggerWay]},{overlay:H.withCtx(()=>[H.createVNode(f,null,{default:H.withCtx(()=>[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(a.value,A=>(H.openBlock(),H.createBlock(u,{key:A.value+A.sort,onClick:d=>s(A)},{default:H.withCtx(()=>[H.createElementVNode("span",{class:H.normalizeClass(o.value==A.value+A.sort?"activted":"")},H.toDisplayString(A.label),3)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:H.withCtx(()=>[H.createElementVNode("span",{class:"ant-dropdown-link",onClick:c[0]||(c[0]=H.withModifiers(()=>{},["prevent"]))},[H.createTextVNode(H.toDisplayString(n.colText)+" ",1),H.createVNode(H.unref(Wo.DownOutlined))])]),_:1},8,["trigger"])}}}),[["__scopeId","data-v-cf0b0a0d"]])),Dae={class:"hb_lib_loading"},Rae={class:"hb_lib_loading_loading_anima"},Mae={class:"hb_lib_loading_load_tips"},wT=Ii(Gi(H.defineComponent({name:"HbLibLoading",__name:"loading",props:{loadTips:{type:String,default:"页面加载中...如长时间加载请刷新页面!"}},setup(r){const{t}=bs.useI18n(),e=r,n=H.computed(()=>e.loadTips||t("hbLibComp.HbLibLoading.loadingTips"));return(i,a)=>(H.openBlock(),H.createElementBlock("div",Dae,[H.createElementVNode("div",Rae,[a[0]||(a[0]=H.createStaticVNode('<div class="cube" data-v-22f438b9><div class="side front" data-v-22f438b9></div><div class="side back" data-v-22f438b9></div><div class="side right" data-v-22f438b9></div><div class="side left" data-v-22f438b9></div><div class="side top" data-v-22f438b9></div><div class="side bottom" data-v-22f438b9></div></div>',1)),H.createElementVNode("div",Mae,H.toDisplayString(n.value),1)])]))}}),[["__scopeId","data-v-22f438b9"]])),Tae={class:"file-preview__body"},Fae={key:0,class:"file-preview__placeholder"},Nae={key:1,class:"file-preview__placeholder"},Lae=["src"],Oae={class:"file-preview__body"},Pae={key:0,class:"file-preview__placeholder"},Gae={key:1,class:"file-preview__placeholder"},Uae=["src"],Hae=["src"],jae={class:"file-preview__modal-footer"},ET=Ii(Gi(H.defineComponent({__name:"file_preview",props:{visible:{type:Boolean,default:!1},src:{default:""},fileName:{default:""},fileList:{default:void 0},fileIndex:{default:0},height:{default:"72vh"},excelOptions:{default:void 0},pdfStaticFileUrl:{default:void 0},modalWidth:{default:"90%"},modalTitlePrefix:{default:void 0},modalTitleOverride:{default:void 0},showDownload:{type:Boolean,default:!0},showNav:{type:Boolean,default:!0},centered:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},needSafe:{type:Boolean,default:!0},customDownload:{type:Function,default:void 0}},emits:["rendered","error","update:visible","update:fileIndex","fileChange","beforeDownload","downloaded","cancel"],setup(r,{expose:t,emit:e}){const n=r,i=e,{t:a}=bs.useI18n();function o(K){i("update:visible",K)}function s(){i("update:visible",!1),i("cancel")}function l(){return Promise.resolve().then(()=>poe).then(()=>Promise.resolve().then(()=>ole))}function c(){return Promise.resolve().then(()=>sle).then(()=>Promise.resolve().then(()=>B2e))}function u(){return Promise.resolve().then(()=>WRe)}function f(){return Promise.resolve().then(()=>mtt)}const h=H.defineAsyncComponent(()=>l().then(K=>K.default)),A=H.defineAsyncComponent(()=>c().then(K=>K.default)),d=H.defineAsyncComponent(()=>u().then(K=>K.default)),g=H.defineAsyncComponent(()=>f().then(K=>K.default)),y=new Set(["png","jpg","jpeg","gif","webp","bmp","svg","ico"]);function v(K){const te=K.split(/[/\\]/).pop()??K,Z=te.split("?")[0]??te,X=Z.lastIndexOf(".");return X>=0?Z.slice(X+1).toLowerCase():""}function p(K,te){if(K==null||K==="")return"unknown";const Z=te&&v(te)||(typeof K=="string"?v(K):"");return!Z&&(K instanceof ArrayBuffer||K instanceof Blob)?"unknown":Z==="docx"?"docx":Z==="xlsx"||Z==="xls"?"excel":Z==="pdf"?"pdf":Z==="pptx"?"pptx":y.has(Z)?"image":"unknown"}const m=H.computed(()=>n.fileList?.length??0),b=H.computed(()=>m.value>0&&n.fileList!=null),C=H.computed(()=>{if(!b.value)return 0;const K=m.value-1,te=Math.floor(Number(n.fileIndex));return Number.isNaN(te)?0:Math.min(Math.max(te,0),K)}),w=H.computed(()=>!b.value||!n.fileList?null:n.fileList[C.value]??null),B=H.computed(()=>w.value?w.value.src:n.src),k=H.computed(()=>w.value?.fileName?w.value.fileName:n.fileName);H.watch([b,m,()=>n.fileIndex],()=>{b.value&&n.fileIndex!==C.value&&i("update:fileIndex",C.value)},{immediate:!0}),H.watch(C,(K,te)=>{if(!b.value||K===te)return;const Z=n.fileList?.[K]??null;i("fileChange",{index:K,item:Z})});const Q=H.computed(()=>p(B.value,k.value)),x=H.computed(()=>{const K=B.value;return n.needSafe?K??"":`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(K)}`}),L=H.computed(()=>typeof x.value=="string"?x.value:""),O=H.computed(()=>{const K=b.value?C.value:"",te=B.value;return typeof te=="string"?`${K}:${Q.value}:${te}`:te instanceof ArrayBuffer?`${K}:${Q.value}:ab:${te.byteLength}`:te instanceof Blob?`${K}:${Q.value}:blob:${te.size}`:`${K}:${Q.value}`}),W=H.computed(()=>{const K=B.value;return K!=null&&K!==""}),M=H.computed(()=>n.height),J=H.computed(()=>({height:"100%",width:"100%",overflow:"auto"})),G=H.computed(()=>n.pdfStaticFileUrl!=null&&n.pdfStaticFileUrl!==""?{staticFileUrl:n.pdfStaticFileUrl}:{}),N=H.computed(()=>n.showNav&&b.value&&m.value>1),_=H.computed(()=>N.value&&C.value>0),S=H.computed(()=>N.value&&C.value<m.value-1);function Y(){_.value&&i("update:fileIndex",C.value-1)}function P(){S.value&&i("update:fileIndex",C.value+1)}const U=H.computed(()=>{if(!W.value)return"";const K=w.value;return K?.fileName?.trim()||K?.downloadName?.trim()||n.fileName?.trim()||(typeof B.value=="string"&&v(B.value)?(B.value.split(/[/\\]/).pop()??"").split("?")[0]:"")||a("hbLibComp.HbFilePreview.fileNameFallback",{index:C.value+1})}),F=H.computed(()=>{if(n.modalTitleOverride!=null&&n.modalTitleOverride!=="")return n.modalTitleOverride;const K=n.modalTitlePrefix??a("hbLibComp.HbFilePreview.modalTitle");if(!W.value)return K;const te=U.value;return b.value&&m.value>1?te?`${K} — ${te}(${C.value+1} / ${m.value})`:`${K}(${C.value+1} / ${m.value})`:te?`${K} — ${te}`:K});function T(K){const te=v(K);return{pdf:"application/pdf",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",bmp:"image/bmp",ico:"image/x-icon",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xls:"application/vnd.ms-excel",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}[te]||"application/octet-stream"}function R(K,te){const Z=URL.createObjectURL(K),X=document.createElement("a");X.href=Z,X.download=te||"download",X.rel="noopener",document.body.appendChild(X),X.click(),document.body.removeChild(X),URL.revokeObjectURL(Z)}const V=H.ref(!1);function re(){const K=w.value,te=K?.downloadName||K?.fileName||n.fileName||"";if(te)return te.split(/[/\\]/).pop()?.split("?")[0]||"download";if(typeof B.value=="string"){const Z=B.value.split(/[/\\]/).pop()?.split("?")[0]||"";if(Z.includes("."))return Z}return"download"}const oe=H.computed(()=>W.value);async function fe(){if(!oe.value)return;const K=w.value,te=b.value?C.value:0;i("beforeDownload",{item:K,index:te});const Z=re(),X=K?.downloadUrl;V.value=!0;try{if(n.customDownload)await n.customDownload({item:K,index:te,src:B.value,fileName:k.value,downloadName:Z});else if(X){const q=await fetch(X);if(!q.ok)throw new Error(String(q.status));const de=await q.blob();R(de,Z)}else{const q=B.value;if(typeof q=="string"){const de=await fetch(q);if(!de.ok)throw new Error(String(de.status));const Ce=await de.blob();R(Ce,Z)}else if(q instanceof Blob)R(q,Z);else if(q instanceof ArrayBuffer){const de=T(Z);R(new Blob([q],{type:de}),Z)}}i("downloaded",{item:K,index:te})}catch(q){i("error",q)}finally{V.value=!1}}const Ae=H.ref("");let me=null;function le(){me&&(URL.revokeObjectURL(me),me=null)}function he(){le();const K=B.value;if(Q.value!=="image"||K==null||K===""){Ae.value="";return}if(typeof K=="string"){Ae.value=K;return}if(K instanceof Blob){me=URL.createObjectURL(K),Ae.value=me;return}if(K instanceof ArrayBuffer){const Z=new Blob([K]);me=URL.createObjectURL(Z),Ae.value=me}}H.watch(()=>[B.value,Q.value],()=>he(),{immediate:!0}),H.onBeforeUnmount(()=>{le()});function j(){i("rendered")}function ae(K){i("error",K??new Error("office preview error"))}function ce(){i("rendered")}function ie(K){i("error",K)}return t({previewKind:Q,safeIndex:C,currentListItem:w,effectiveSrc:B,effectiveFileName:k,goPrev:Y,goNext:P,download:fe,closeModal:s}),(K,te)=>{const Z=H.resolveComponent("a-button"),X=H.resolveComponent("a-space"),q=H.resolveComponent("a-modal");return H.openBlock(),H.createBlock(q,{"wrap-class-name":"file-preview-modal-wrap",visible:r.visible,title:F.value,width:r.modalWidth,centered:r.centered,"destroy-on-close":r.destroyOnClose,"mask-closable":r.maskClosable,keyboard:r.keyboard,"body-style":{padding:"8px"},"onUpdate:visible":o,onCancel:s},{footer:H.withCtx(()=>[H.createElementVNode("div",jae,[H.createVNode(X,{size:8,wrap:""},{default:H.withCtx(()=>[N.value?(H.openBlock(),H.createBlock(Z,{key:0,disabled:!_.value,onClick:Y},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(H.unref(a)("hbLibComp.HbFilePreview.prev")),1)]),_:1},8,["disabled"])):H.createCommentVNode("",!0),N.value?(H.openBlock(),H.createBlock(Z,{key:1,disabled:!S.value,onClick:P},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(H.unref(a)("hbLibComp.HbFilePreview.next")),1)]),_:1},8,["disabled"])):H.createCommentVNode("",!0),r.showDownload?(H.openBlock(),H.createBlock(Z,{key:2,type:"primary",disabled:!oe.value,loading:V.value,onClick:fe},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(H.unref(a)("hbLibComp.HbFilePreview.download")),1)]),_:1},8,["disabled","loading"])):H.createCommentVNode("",!0),H.createVNode(Z,{onClick:s},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(H.unref(a)("hbLibComp.HbFilePreview.close")),1)]),_:1}),H.renderSlot(K.$slots,"footer-extra",{},void 0,!0)]),_:3})])]),default:H.withCtx(()=>[r.needSafe?(H.openBlock(),H.createElementBlock("div",{key:0,class:"file-preview",style:H.normalizeStyle({height:M.value})},[H.createElementVNode("div",Tae,[W.value?Q.value==="unknown"?(H.openBlock(),H.createElementBlock("div",Nae,[H.renderSlot(K.$slots,"unsupported",{},()=>[H.createTextVNode(H.toDisplayString(H.unref(a)("hbLibComp.HbFilePreview.unsupported")),1)],!0)])):Q.value==="image"?(H.openBlock(),H.createElementBlock("img",{key:2,src:Ae.value,class:"file-preview__image",alt:"",onLoad:ce,onError:ie},null,40,Lae)):Q.value==="docx"?(H.openBlock(),H.createBlock(H.unref(h),{key:`docx-${O.value}`,src:x.value,class:"file-preview__office",style:H.normalizeStyle(J.value),onRendered:j,onError:ae},null,8,["src","style"])):Q.value==="excel"?(H.openBlock(),H.createBlock(H.unref(A),{key:`xls-${O.value}`,src:x.value,class:"file-preview__office",style:H.normalizeStyle(J.value),options:r.excelOptions,onRendered:j,onError:ae},null,8,["src","style","options"])):Q.value==="pdf"?(H.openBlock(),H.createBlock(H.unref(d),H.mergeProps({key:`pdf-${O.value}`,src:x.value,class:"file-preview__office",style:J.value},G.value,{onRendered:j,onError:ae}),null,16,["src","style"])):Q.value==="pptx"?(H.openBlock(),H.createBlock(H.unref(g),{key:`pptx-${O.value}`,src:x.value,class:"file-preview__office",style:H.normalizeStyle(J.value),onRendered:j,onError:ae},null,8,["src","style"])):H.createCommentVNode("",!0):(H.openBlock(),H.createElementBlock("div",Fae,[H.renderSlot(K.$slots,"empty",{},()=>[H.createTextVNode(H.toDisplayString(H.unref(a)("hbLibComp.HbFilePreview.empty")),1)],!0)]))])],4)):(H.openBlock(),H.createElementBlock("div",{key:1,class:"file-preview",style:H.normalizeStyle({height:M.value})},[H.createElementVNode("div",Oae,[W.value?Q.value==="unknown"?(H.openBlock(),H.createElementBlock("div",Gae,[H.renderSlot(K.$slots,"unsupported",{},()=>[H.createTextVNode(H.toDisplayString(H.unref(a)("hbLibComp.HbFilePreview.unsupported")),1)],!0)])):Q.value==="image"?(H.openBlock(),H.createElementBlock("img",{key:2,src:Ae.value,class:"file-preview__image",alt:"",onLoad:ce,onError:ie},null,40,Uae)):(H.openBlock(),H.createElementBlock("iframe",{key:3,src:L.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Hae)):(H.openBlock(),H.createElementBlock("div",Pae,[H.renderSlot(K.$slots,"empty",{},()=>[H.createTextVNode(H.toDisplayString(H.unref(a)("hbLibComp.HbFilePreview.empty")),1)],!0)]))])],4))]),_:3},8,["visible","title","width","centered","destroy-on-close","mask-closable","keyboard"])}}}),[["__scopeId","data-v-513d7b3b"]])),BT="//at.alicdn.com/t/c/font_2862164_1wnr7wxlgxf.css",kT=Symbol("HB_ICON_GLOBAL_KEY");function Yae(r){const e=r.match(/@font-face\s*\{[\s\S]*?font-family\s*:\s*["']([^"']+)["']/)?.[1]??"",n=/\.([\w-]+)\s*:before\s*\{\s*content\s*:\s*["']\\[\da-fA-F]+["']\s*;?\s*\}/g,i=[];let a;for(;(a=n.exec(r))!==null;)i.push(a[1]);const o=Wae(i),s=o?i.map(l=>l.slice(o.length)):i.slice();return{baseClass:e,prefix:o,names:s}}function Wae(r){if(r.length===0)return"";let t=r[0];for(let e=1;e<r.length;e++){for(;t&&!r[e].startsWith(t);)t=t.slice(0,-1);if(!t)break}return t}function Jae(r,t){if(typeof document>"u"||document.getElementById(t))return;const e=document.createElement("style");e.id=t,e.textContent=r,document.head.appendChild(e)}function QT(r){const t=H.ref(""),e=H.ref(""),n=H.ref([]);let i=0;const a=async o=>{const s=++i;if(!o){t.value="",e.value="",n.value=[];return}try{const c=await(await fetch(o)).text();Jae(c,"hb-iconfont-"+o);const{baseClass:u,prefix:f,names:h}=Yae(c);if(s!==i)return;t.value=u,e.value=f,n.value=h}catch(l){console.error("[HbLibIcon] 加载 iconfont 失败:",o,l)}};return H.watch(()=>H.toValue(r),a,{immediate:!0}),{iconBaseClass:t,iconPrefix:e,iconClasses:n}}const Vae={class:"hb-icon-list"},zae=["onClick"],Kae={class:"hb-icon-list__name"},uB=Gi(H.defineComponent({name:"HbLibIcon",__name:"icon_list",props:{cssUrl:{default:""},selected:{default:""}},emits:["select","update:selected"],setup(r,{emit:t}){const e=r,n=t,i=H.inject(kT,{}),a=H.computed(()=>e.cssUrl||i?.cssUrl||BT),{iconBaseClass:o,iconPrefix:s,iconClasses:l}=QT(a),c=H.ref(e.selected);H.watch(()=>e.selected,f=>{c.value=f});const u=f=>{c.value=f,n("select",f),n("update:selected",f)};return(f,h)=>(H.openBlock(),H.createElementBlock("div",Vae,[H.renderSlot(f.$slots,"iconList",{iconClasses:H.unref(l),iconBaseClass:H.unref(o),iconPrefix:H.unref(s)},()=>[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(H.unref(l),A=>(H.openBlock(),H.createElementBlock("div",{key:A,class:H.normalizeClass(["hb-icon-list__item",{"hb-icon-list__item--active":A===c.value}]),onClick:d=>u(A)},[H.createElementVNode("i",{class:H.normalizeClass([H.unref(o),H.unref(s)+A])},null,2),H.createElementVNode("span",Kae,H.toDisplayString(A),1)],10,zae))),128))],!0)]))}}),[["__scopeId","data-v-cba0476b"]]),fB=uB;fB.install=(r,t)=>{r.provide(kT,{cssUrl:t?.cssUrl??BT});const e=uB.name??"HbLibIcon";r.component(e,uB)};const qae=Object.freeze(Object.defineProperty({__proto__:null,HbLibAnchor:gT,HbLibCard:dT,HbLibCopy:cB,HbLibDetailBox:pT,HbLibFilePreview:ET,HbLibFooterBar:vT,HbLibFormItemFilterModal:VM,HbLibFormTooltipSelect:uT,HbLibFuncCompDrag:bT,HbLibIcon:fB,HbLibImportFile:fT,HbLibListBtnsAct:qM,HbLibListForm:zM,HbLibListMultiSelect:$M,HbLibListPageAct:KM,HbLibListPageContainer:ZM,HbLibListTable:lT,HbLibLoading:wT,HbLibLogModal:hT,HbLibModal:yT,HbLibMutilpleSelectModal:eT,HbLibPageHeader:IT,HbLibSort:CT,HbLibTableAct:tT,HbLibTableColumnSet:cT,HbLibUnDetailBox:mT,HbUiConfig:AT},Symbol.toStringTag,{value:"Module"})),rh=new Map;let xT;lA.isClient&&(document.addEventListener("mousedown",r=>xT=r),document.addEventListener("mouseup",r=>{for(const t of rh.values())for(const{documentHandler:e}of t)e(r,xT)}));function _T(r,t){let e=[];return Array.isArray(t.arg)?e=t.arg:t.arg instanceof HTMLElement&&e.push(t.arg),function(n,i){const a=t.instance.popperRef,o=n.target,s=i?.target,l=!t||!t.instance,c=!o||!s,u=r.contains(o)||r.contains(s),f=r===o,h=e.length&&e.some(d=>d?.contains(o))||e.length&&e.includes(s),A=a&&(a.contains(o)||a.contains(s));l||c||u||f||h||A||t.value(n,i)}}const Xae={beforeMount(r,t){rh.has(r)||rh.set(r,[]),rh.get(r).push({documentHandler:_T(r,t),bindingFn:t.value})},updated(r,t){rh.has(r)||rh.set(r,[]);const e=rh.get(r),n=e.findIndex(a=>a.bindingFn===t.oldValue),i={documentHandler:_T(r,t),bindingFn:t.value};n>=0?e.splice(n,1,i):e.push(i)},unmounted(r){rh.delete(r)}},Zae={mounted(r,t){const{value:e,arg:n}=t;if(console.log(t),typeof e!="function"){console.warn("[v-debounce-click] 绑定值必须是一个函数");return}const i=parseInt(n,10)||300;let a;r.__debounceHandler__=function(...o){a&&clearTimeout(a),a=setTimeout(()=>{e(...o)},i)},r.addEventListener("click",r.__debounceHandler__)},unmounted(r){r.__debounceHandler__&&(r.removeEventListener("click",r.__debounceHandler__),delete r.__debounceHandler__)}},ST=(r,t)=>{r._dynamicApp&&(r._dynamicApp.unmount(),r._dynamicContainer.innerHTML="");const e=H.createApp(cB,{cpText:t});e.mount(r._dynamicContainer),r._dynamicApp=e,r._dynamicPrevValue=t},$ae={cos:Xae,dc:Zae,icp:{mounted(r,t){if(!r._dynamicContainer){const e=document.createElement("div");e.style.display="inline-flex",e.style.alignItems="center",e.setAttribute("data-dynamic-container",""),r.parentNode?.insertBefore(e,r.nextSibling),r._dynamicContainer=e}ST(r,t.value)},updated(r,t){t.value!==r._dynamicPrevValue&&ST(r,t.value)},unmounted(r){r._dynamicApp&&(r._dynamicApp.unmount(),delete r._dynamicApp),r._dynamicContainer&&(r._dynamicContainer.remove(),delete r._dynamicContainer),delete r._dynamicPrevValue}}},DT=r=>r.downloadUrl,eoe=(r,t,e)=>{const n=l=>l.previewUrl,i=e?.preferredIndex;if(typeof i=="number"&&i>=0&&i<r.length){const l=r[i];if(l===t)return i;const c="uploadDate"in l&&l.uploadDate||"",u="uploadDate"in t&&t.uploadDate||"";if(n(l)===n(t)&&(l.attachmentDesc||"")===(t.attachmentDesc||"")&&c===u)return i}const a=t.attachmentId;if(a){const l=r.findIndex(c=>c.attachmentId===a);if(l>=0)return l}const o=n(t);if(o){const l=r.findIndex(c=>n(c)===o);if(l>=0)return l}const s=DT(t);if(s){const l=r.findIndex(c=>DT(c)===s);if(l>=0)return l}return r.indexOf(t)};function RT(r){const t=r.trim();try{return new URL(t).href}catch{const e=t.replace(/ /g,"%20");try{return new URL(e).href}catch{return e}}}function MT(r){try{return typeof window>"u"||!window.location?.origin?!1:new URL(r).origin===window.location.origin}catch{return!1}}function TT(r){return new Promise((t,e)=>{const n=new XMLHttpRequest;n.open("GET",r,!0),n.responseType="blob",n.withCredentials=MT(r),n.onload=()=>{n.status>=200&&n.status<300?t(n.response):e(new Error(String(n.status)))},n.onerror=()=>e(new Error("xhr")),n.send()})}async function toe(r){const t=RT(r),e=typeof document<"u"?document.documentMode:void 0;if(typeof e=="number"&&e>0)return TT(t);if(typeof fetch=="function"){const n=await fetch(t,{credentials:MT(t)?"include":"omit",mode:"cors"});if(!n.ok)throw new Error(String(n.status));return n.blob()}return TT(t)}function roe(r,t){const e=t.trim()||"download",n=navigator;if(typeof n.msSaveOrOpenBlob=="function"){n.msSaveOrOpenBlob(r,e);return}const i=URL.createObjectURL(r);try{const a=document.createElement("a");a.href=i,a.rel="noopener noreferrer",a.setAttribute("download",e),a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a)}finally{URL.revokeObjectURL(i)}}function noe(r){const t=RT(r),e=document.createElement("iframe");e.style.cssText="position:fixed;left:-9999px;top:-9999px;width:0;height:0;border:0;",e.src=t,document.body.appendChild(e),window.setTimeout(()=>{try{document.body.removeChild(e)}catch{}},12e4)}async function hB(r,t){const e=(t||"download").trim()||"download";try{const n=await toe(r);roe(n,e);return}catch{noe(r)}}const ioe=400;function FT(r){return r.previewUrl?.trim()||""}function ZI(r){return r.downloadUrl?.trim()||""}function $I(r){return r.attachmentDesc?.trim()||r.fileName?.trim()||"download"}function aoe(r){const{t}=bs.useI18n(),e=H.ref(!1),n=H.ref(""),i=H.ref(""),a=H.ref(-1),o=H.ref(-1),s=H.computed(()=>r.value.attachmentInfos??[]),l=H.computed(()=>s.value.reduce((x,L,O)=>{const W=FT(L);if(!W)return x;const M=$I(L);return x.push({attachmentIndex:O,record:L,item:{src:W,fileName:M,downloadName:M,downloadUrl:ZI(L)||void 0}}),x},[])),c=H.computed(()=>l.value.map(x=>x.item)),u=H.computed(()=>o.value>=0?c.value:[]),f=H.computed(()=>{const x=o.value;return x>=0?l.value[x]??null:null}),h=H.computed(()=>f.value?.item??null),A=H.computed(()=>o.value>0&&c.value.length>1),d=H.computed(()=>o.value>=0&&o.value<c.value.length-1),g=H.computed(()=>c.value.length>1),y=(x,L,O,W)=>{a.value=O,o.value=W,n.value=x,i.value=L,e.value=!0},v=x=>{const L=l.value[x];L&&y(String(L.item.src),L.item.fileName||"",L.attachmentIndex,x)},p=x=>{const L=l.value.findIndex(O=>O.attachmentIndex===x);L<0||v(L)};return{filePreviewVisible:e,pdfPreviewUrlRef:n,previewFileNameRef:i,previewAttachmentIndexRef:a,previewFileIndexRef:o,filePreviewList:c,activeFilePreviewList:u,currentPreviewFile:h,hasPrevAttachment:A,hasNextAttachment:d,showAttachmentNavBar:g,handlePreview:(x,L)=>{const O=FT(x);if(!O){Cr.message.warning(t("hbLibComp.HbFilePreview.noPreviewUrl"));return}const W=eoe(s.value,x,{preferredIndex:L});if(W>=0){p(W);return}y(O,$I(x),-1,-1)},handleDownload:x=>{const L=ZI(x);if(!L){Cr.message.warning(t("hbLibComp.HbFilePreview.noDownloadUrl"));return}hB(L,$I(x))},handleClosePreview:()=>{e.value=!1,a.value=-1,o.value=-1,n.value="",i.value=""},handlePreviewFileIndexChange:x=>{v(x)},goPrevAttachment:()=>{A.value&&v(o.value-1)},goNextAttachment:()=>{d.value&&v(o.value+1)},triggerBrowserDownload:hB,handleBatchDownloadAttachment:async()=>{const x=s.value.filter(L=>!!ZI(L));if(x.length===0){Cr.message.warning(t("hbLibComp.HbFilePreview.noDownloadableFiles"));return}for(let L=0;L<x.length;L++){const O=x[L];await hB(ZI(O),$I(O)),L<x.length-1&&await new Promise(W=>setTimeout(W,ioe))}}}}const ooe=r=>{const t=H.ref();t.value=r.slice();const e=JSON.parse(JSON.stringify(t.value));return{formItems:t,DeepCloneFromItem:e,handleSearchCase:i=>{const a=[],o=Object.keys(i);e.forEach(s=>{o.includes(s.key)&&a.push(s)}),t.value=a}}},soe=r=>{let t=!0;return{start:()=>{H.nextTick(()=>{const a=document.querySelector(`.${r} .ant-modal`);if(a){let o=!1,s={x:0,y:0};const l=a.querySelector(".ant-modal-header"),c=a.querySelector(".ant-modal-footer");l&&(l.style.cursor="move",c.style.cursor="move",l.addEventListener("mousedown",u=>{o=!0,s.x=u.clientX-a.offsetLeft,s.y=u.clientY-a.offsetTop,document.body.style.userSelect="none"}),c.addEventListener("mousedown",u=>{o=!0,s.x=u.clientX-a.offsetLeft,s.y=u.clientY-a.offsetTop,document.body.style.userSelect="none"}),document.addEventListener("mousemove",u=>{if(!o||!t)return;const f=u.clientX-s.x,h=u.clientY-s.y;a.style.left=`${f}px`,a.style.top=`${h}px`}),document.addEventListener("mouseup",()=>{o=!1,document.body.style.userSelect=""}))}})},stop:()=>{t=!1},resetPosition:()=>{H.nextTick(()=>{const a=document.querySelector(`.${r} .ant-modal`);if(a){const o=window.innerWidth,s=window.innerHeight,l=a.offsetWidth,c=a.offsetHeight,u=(o-l)/2,f=(s-c)/2;a.style.left=`${u}px`,a.style.top=`${f}px`}})}}},loe={hbLibComp:{HbFileUploadModal:{cancel:"Cancel",clickUpload:"Click to upload",confirmImport:"Confirm import",dataImport:"Import data",downloadTemplate:"Import template download",dragFile:"Drag files here or",file:"document",fileUpload:"File import",maxSupport:"Most supported",onlySupport:"Only supports",placeSelect:"Please select",selectFile:"Please select the file to upload",format:"Supported formats"},HbLogModal:{close:"closure",operateContent:"Operation content",operateLogs:"Operation log",operateTime:"Operating time",operator:"operator"},hbFormItemFilterModal:{add:"Add to",cancel:"Cancel",confirm:"Sure",moreConditionSearch:"Multiple searches",mostMore:"Optional at most",mostMoreTip:"conditions, drag and drop to adjust the sorting",noData:"No data yet",notShowTip:"No conditions shown",titleTip:"Conditions shown",overTip1:"Currently has exceeded",overTip2:"Optional quantity, please delete the displayed conditions first",title:"Custom query conditions"},hbFormSelectFilter:{allSelect:"Select all",close:"closure"},hbLibListForm:{queryCase:"query plan",addScheme:"Add scenario",editScheme:"Edit plan"},hbLibListTableColumsSet:{allSelect:"Select all",cancelFix:"Unpin",confirm:"Sure",errorTip:"Cannot move column to fixed column position",fix:"fixed",popoverTitle:"Custom columns",title:"Table field settings",reset:"reduction"},hbListBtnsAct:{close:"Close query conditions",open:"Expand query conditions",reload:"Refresh data"},hbListPageAct:{close:"close",exitFullScreen:"Exit full screen",fullScreen:"full screen",open:"Expand",query:"Query",reset:"reset",selfDefine:"Filter query conditions"},hbListTable:{noData:"No data yet"},hbMultiSelectModal:{pleaseSelect:"Please select"},hbTableAct:{confirmContent:"Confirm content",more:"More",secendConfirm:"Second confirmation"},HbImportFile:{clickUp:"Click to upload",downloadTemplate:"Click to download template",pleaseUploadFiles:"Please upload files",uploadText:"Drag files here or",fileLabel:"document",importBtn:"File upload"},HbFilePreview:{empty:"Select or provide a file to preview",unsupported:"Preview is not supported for this file type",prev:"Previous",next:"Next",download:"Download",close:"Close",modalTitle:"File Preview",fileNameFallback:"File {index}",noPreviewUrl:"No preview URL available",noDownloadUrl:"No download URL available",noDownloadableFiles:"No downloadable attachments available"},HbFuncCompCopy:{copy:"copy",copyFail:"Copy failed",copySuccess:"Copied successfully"},HbLibDetailBox:{back:"return"}}},coe={hbLibComp:{HbFileUploadModal:{cancel:"キャンセル",clickUpload:"クリックしてアップロード",confirmImport:"インポートの確認",dataImport:"データのインポート",downloadTemplate:"インポートテンプレートのダウンロード",dragFile:"ここにファイルをドラッグするか、",file:"書類",fileUpload:"ファイルのインポート",maxSupport:"最も支持されている",onlySupport:"サポートのみ",placeSelect:"選択してください",selectFile:"アップロードするファイルを選択してください",format:"サポートされている形式"},HbLogModal:{close:"閉鎖",operateContent:"操作内容",operateLogs:"操作ログ",operateTime:"稼働時間",operator:"オペレーター"},hbFormItemFilterModal:{add:"に追加",cancel:"キャンセル",confirm:"もちろん",moreConditionSearch:"複数の検索",mostMore:"せいぜいオプション",mostMoreTip:"条件をドラッグアンドドロップして並べ替えを調整します",noData:"まだデータがありません",notShowTip:"条件が表示されていません",titleTip:"表示される条件",overTip1:"現在は超えています",overTip2:"オプションの数量です。最初に表示されている条件を削除してください",title:"カスタムクエリ条件"},hbFormSelectFilter:{allSelect:"すべて選択",close:"閉鎖"},hbLibListForm:{queryCase:"クエリプラン",addScheme:"シナリオの追加",editScheme:"計画の編集"},hbLibListTableColumsSet:{allSelect:"すべて選択",cancelFix:"固定を解除する",confirm:"もちろん",errorTip:"列を固定列位置に移動できません",fix:"修理済み",popoverTitle:"カスタム列",title:"テーブルフィールドの設定",reset:"削減"},hbListBtnsAct:{close:"クエリ条件を閉じる",open:"クエリ条件を拡張する",reload:"データを更新する"},hbListPageAct:{close:"近い",exitFullScreen:"全画面表示を終了する",fullScreen:"全画面表示",open:"拡大する",query:"クエリ",reset:"リセット",selfDefine:"フィルタークエリ条件"},hbListTable:{noData:"まだデータがありません"},hbMultiSelectModal:{pleaseSelect:"選択してください"},hbTableAct:{confirmContent:"内容を確認する",more:"もっと",secendConfirm:"2回目の確認"},HbImportFile:{clickUp:"クリックしてアップロード",downloadTemplate:"クリックしてテンプレートをダウンロード",pleaseUploadFiles:"ファイルをアップロードしてください",uploadText:"ファイルをここにドラッグするか、",fileLabel:"書類",importBtn:"ファイルのアップロード"},HbFilePreview:{empty:"プレビューするファイルを選択または指定してください",unsupported:"このファイル形式のプレビューはサポートされていません",prev:"前へ",next:"次へ",download:"ダウンロード",close:"閉じる",modalTitle:"ファイルプレビュー",fileNameFallback:"ファイル {index}",noPreviewUrl:"プレビューURLがありません",noDownloadUrl:"ダウンロードURLがありません",noDownloadableFiles:"ダウンロード可能な添付ファイルがありません"},HbFuncCompCopy:{copy:"コピー",copyFail:"コピーに失敗しました",copySuccess:"正常にコピーされました"},HbLibDetailBox:{back:"戻る"}}},uoe={hbLibComp:{hbFormItemFilterModal:{titleTip:"已显示条件",mostMore:"最多可选",mostMoreTip:"个条件,拖拽可以调整排序",notShowTip:"未显示条件",add:"添加",noData:"暂无数据",cancel:"取消",confirm:"确定",moreConditionSearch:"多项搜索",title:"自定义查询条件",overTip1:"当前已经超过",overTip2:"个可选数量,请先删除已显示条件"},hbFormSelectFilter:{allSelect:"全选",close:"关闭"},hbListPageAct:{query:"查询",reset:"重置",selfDefine:"筛选查询条件",open:"展开",close:"收起",fullScreen:"全屏",exitFullScreen:"退出全屏"},hbListBtnsAct:{reload:"刷新数据",open:"展开查询条件",close:"收起查询条件"},hbTableAct:{more:"更多",secendConfirm:"二次确认",confirmContent:"确认内容"},hbMultiSelectModal:{pleaseSelect:"请选择"},hbListTable:{noData:"暂时没有数据"},hbLibListTableColumsSet:{popoverTitle:"自定义列",title:"表格字段设置",fix:"固定",cancelFix:"取消固定",allSelect:"全选",confirm:"确定",errorTip:"不能将列移动到固定列位置",reset:"还原"},hbLibListForm:{queryCase:"查询方案",addScheme:"添加方案",editScheme:"编辑方案"},HbFileUploadModal:{fileUpload:"文件导入",confirmImport:"确认导入",cancel:"取消",maxSupport:"最多支持",dataImport:"条数据导入",placeSelect:"请选择",file:"文件",selectFile:"请选择上传的文件",dragFile:"将文件拖到此处或",clickUpload:"点击上传",onlySupport:"仅支持",downloadTemplate:"导入模板下载",format:"支持格式"},HbLogModal:{close:"关 闭",operateLogs:"操作日志",operator:"操作人",operateTime:"操作时间",operateContent:"操作内容"},HbImportFile:{uploadText:"将文件拖到此处或",clickUp:"请上传文件",downloadTemplate:"点击下载模板",pleaseUploadFiles:"请上传文件",fileLabel:"文件",importBtn:"文件上传"},HbFilePreview:{empty:"请选择或传入要预览的文件",unsupported:"暂不支持该类型预览",prev:"上一个",next:"下一个",download:"下载",close:"关闭",modalTitle:"文件预览",fileNameFallback:"文件 {index}",noPreviewUrl:"暂无预览地址",noDownloadUrl:"暂无下载地址",noDownloadableFiles:"暂无可下载附件"},HbFuncCompCopy:{copySuccess:"复制成功",copyFail:"复制失败",copy:"复制"},HbLibDetailBox:{back:"返回"},HbLibLoading:{loadingTips:"加载中...如长时间加载请重试!"}}},foe={hbLibComp:{HbFileUploadModal:{cancel:"Stornieren",clickUpload:"Klicken Sie zum Hochladen",confirmImport:"Bestätigen Sie den Import",dataImport:"Daten importieren",downloadTemplate:"Importvorlage herunterladen",dragFile:"Ziehen Sie Dateien hierher oder",file:"dokumentieren",fileUpload:"Dateiimport",maxSupport:"Am meisten unterstützt",onlySupport:"Unterstützt nur",placeSelect:"Bitte auswählen",selectFile:"Bitte wählen Sie die hochzuladende Datei aus",format:"Unterstützte Formate"},HbLogModal:{close:"Schließung",operateContent:"Inhalt der Operation",operateLogs:"Betriebsprotokoll",operateTime:"Betriebszeit",operator:"Operator"},hbFormItemFilterModal:{add:"Hinzufügen zu",cancel:"Stornieren",confirm:"Sicher",moreConditionSearch:"Mehrere Suchanfragen",mostMore:"Höchstens optional",mostMoreTip:"Bedingungen anpassen, per Drag-and-Drop die Sortierung anpassen",noData:"Noch keine Daten",notShowTip:"Keine Bedingungen angezeigt",titleTip:"Bedingungen angezeigt",overTip1:"Derzeit überschritten",overTip2:"Optionale Menge, bitte löschen Sie zuerst die angezeigten Konditionen",title:"Benutzerdefinierte Abfragebedingungen"},hbFormSelectFilter:{allSelect:"Alles auswählen",close:"Schließung"},hbLibListForm:{queryCase:"Abfrageplan",addScheme:"Szenario hinzufügen",editScheme:"Plan bearbeiten"},hbLibListTableColumsSet:{allSelect:"Alles auswählen",cancelFix:"Lösen",confirm:"Sicher",errorTip:"Die Spalte kann nicht in eine feste Spaltenposition verschoben werden",fix:"behoben",popoverTitle:"Benutzerdefinierte Spalten",title:"Tabellenfeldeinstellungen",reset:"Reduktion"},hbListBtnsAct:{close:"Abfragebedingungen schließen",open:"Abfragebedingungen erweitern",reload:"Daten aktualisieren"},hbListPageAct:{close:"schließen",exitFullScreen:"Verlassen Sie den Vollbildmodus",fullScreen:"Vollbild",open:"Expandieren",query:"Abfrage",reset:"zurücksetzen",selfDefine:"Abfragebedingungen filtern"},hbListTable:{noData:"Noch keine Daten"},hbMultiSelectModal:{pleaseSelect:"Bitte auswählen"},hbTableAct:{confirmContent:"Inhalt bestätigen",more:"Mehr",secendConfirm:"Zweite Bestätigung"},HbImportFile:{clickUp:"Klicken Sie zum Hochladen",downloadTemplate:"Klicken Sie hier, um die Vorlage herunterzuladen",pleaseUploadFiles:"Bitte laden Sie Dateien hoch",uploadText:"Ziehen Sie Dateien hierher oder",fileLabel:"dokumentieren",importBtn:"Datei-Upload"},HbFilePreview:{empty:"Bitte wählen Sie eine Datei zur Vorschau aus oder geben Sie sie an",unsupported:"Die Vorschau wird für diesen Dateityp nicht unterstützt",prev:"Zurück",next:"Weiter",download:"Herunterladen",close:"Schließen",modalTitle:"Dateivorschau",fileNameFallback:"Datei {index}",noPreviewUrl:"Keine Vorschau-URL verfügbar",noDownloadUrl:"Keine Download-URL verfügbar",noDownloadableFiles:"Keine herunterladbaren Anhänge verfügbar"},HbFuncCompCopy:{copy:"Kopie",copyFail:"Der Kopiervorgang ist fehlgeschlagen",copySuccess:"Erfolgreich kopiert"},HbLibDetailBox:{back:"zurückkehren"}}};var eb={exports:{}},hoe=eb.exports,NT;function Aoe(){return NT||(NT=1,(function(r,t){(function(e,n){r.exports=n(qI)})(hoe,(function(e){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(e),a={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(o,s){return s==="W"?o+"周":o+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(o,s){var l=100*o+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(a,null,!0),a}))})(eb)),eb.exports}Aoe(),qI.locale("zh-cn");const doe={en_US:loe,ja_JP:coe,zh_CN:uoe,de_DE:foe},goe=function(r,t={}){r.provide("globalCompConfig",t||{}),Object.values(qae).forEach(e=>{e&&typeof e.install=="function"&&r.use(e)}),Object.entries($ae).forEach(([e,n])=>{r.directive(e,n)})},poe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var voe=Object.defineProperty,yoe=Object.defineProperties,moe=Object.getOwnPropertyDescriptors,LT=Object.getOwnPropertySymbols,Ioe=Object.prototype.hasOwnProperty,boe=Object.prototype.propertyIsEnumerable,OT=(r,t,e)=>t in r?voe(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Cs=(r,t)=>{for(var e in t||(t={}))Ioe.call(t,e)&&OT(r,e,t[e]);if(LT)for(var e of LT(t))boe.call(t,e)&&OT(r,e,t[e]);return r},tb=(r,t)=>yoe(r,moe(t)),Ts=(r,t,e)=>new Promise((n,i)=>{var a=l=>{try{s(e.next(l))}catch(c){i(c)}},o=l=>{try{s(e.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(a,o);s((e=e.apply(r,t)).next())});typeof window.setImmediate>"u"&&(window.setImmediate=function(r,...t){setTimeout(()=>r(t))});var rb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Coe(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function nb(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var PT={exports:{}};/*!
1
+ (function(Ur,H){typeof exports=="object"&&typeof module<"u"?H(exports,require("vue"),require("vuedraggable"),require("ant-design-vue"),require("vue-router"),require("vue-i18n"),require("lodash"),require("@ant-design/icons-vue"),require("@vueuse/core"),require("dayjs")):typeof define=="function"&&define.amd?define(["exports","vue","vuedraggable","ant-design-vue","vue-router","vue-i18n","lodash","@ant-design/icons-vue","@vueuse/core","dayjs"],H):(Ur=typeof globalThis<"u"?globalThis:Ur||self,H(Ur.HbComponentLib={},Ur.Vue,Ur.draggable,Ur.antDesignVue,Ur.vueRouter,Ur.vueI18n,Ur.lodash$1,Ur.iconsVue,Ur.core,Ur.dayjs$1))})(this,(function(Ur,H,KI,Cr,nB,bs,sA,Wo,lA,qI){"use strict";const iB=(r="")=>{const t=`hb-${r}`;return vne(t)},cA=(r,t,e,n)=>(t&&(r+=`-${t}`),e&&(r+=`__${e}`),n&&(r+=`--${n}`),r),vne=r=>({b:t=>t?cA(r,t,"",""):cA(r,"","",""),e:t=>t?cA(r,"",t,""):"",m:t=>cA(r,"","",t),be:(t,e)=>cA(r,t,e,""),em:(t,e)=>cA(r,"",t,e),bem:(t,e,n)=>cA(r,t,e,n),is:(t,e)=>e?`is-${t}`:""}),yne=["onMouseenter","onMouseleave"],mne=["onClick"],Ine=H.defineComponent({name:"HbLibFormItemFilterModal",__name:"HbFormItemFilterModal",props:{list:{default:()=>[]},afterChange:{type:Function,default:()=>()=>{}},title:{},showNumber:{},saveKey:{default:""}},emits:["confirm"],setup(r,{expose:t,emit:e}){const n=H.inject("globalCompConfig",{}),i=bs.useI18n().t,a=bs.useI18n().messages.value.en_US,o=bs.useI18n().messages.value.ja_JP,s=bs.useI18n().messages.value.zh_CN,l=r,c=H.computed(()=>l.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),u=H.computed(()=>l.title||i("hbLibComp.hbFormItemFilterModal.title")),f=e,h=iB("sfcm"),A=nB.useRoute(),d=H.reactive({lan:window.localStorage.getItem("lan")}),g=H.ref(!1),y=H.ref(600);let v=[];const p=H.ref([]),m=H.ref([]),b=H.computed(()=>p.value.every(P=>P.isLinked||P.isFixed)),C=P=>({...P,label:Q(P)||`${x(P)||""} (${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,key:P.key,isFixed:P?.isFixed||!1,isLinked:P?.isLinked||!1,labelLanguage:P?.labelLanguage||void 0}),w=P=>{const U=P.draggedContext.element,F=P.relatedContext.index;if(U.isLinked||U.isFixed)return!1;const T=p.value.map((R,V)=>({item:R,index:V})).filter(({item:R})=>R.isLinked).map(({index:R})=>R);if(T.length===0)return!0;for(let R=0;R<T.length-1;R++){const V=T[R],re=T[R+1];if(F>V&&F<re)return!1}return!0},B=H.computed(()=>k()+"_"+l.saveKey),k=()=>{const P=localStorage.getItem("pro__Login_Userinfo");let U="anonymous";if(P)try{U=JSON.parse(P).value.jobNumber||"anonymous"}catch(T){console.warn("解析用户信息失败:",T)}let F=A?.path;return`searchFormConfig_${U}_${F}`},Q=P=>({ja_JP:()=>sA.get(o,P.labelLanguage||""),en_US:()=>sA.get(a,P.labelLanguage||""),zh_CN:()=>sA.get(s,P.labelLanguage||"")})[d.lan]?.()||P.label,x=P=>({ja_JP:()=>sA.get(o,P.subLabelLanguage||""),en_US:()=>sA.get(a,P.subLabelLanguage||""),zh_CN:()=>sA.get(s,P.subLabelLanguage||"")})[d.lan]?.()||P.subLabel,L=()=>{try{const P=localStorage.getItem(B.value);if(P){const U=JSON.parse(P);if(U.originalList&&Array.isArray(U.originalList)){v=JSON.parse(JSON.stringify(U.originalList));const F=v.filter(he=>he?.isFixed),T=v.filter(he=>he?.isLinked),R=U.showList.filter(he=>!he.isFixed&&!he.isLinked),V=c.value&&c.value>0?Math.max(0,c.value-F.length-T.length):R.length,re=F.map(he=>({...C(he)})),oe=T.map(he=>({...C(he)})),fe=R.slice(0,V).map(he=>({...C(he)}));p.value=[...re,...oe,...fe];const Ae=p.value.map(he=>he.key),le=v.map(he=>he.key).filter(he=>!Ae.includes(he));return m.value=v.filter(he=>le.includes(he.key)).map(he=>({...C(he),active:!1})),!0}}}catch(P){console.warn("加载保存的搜索配置失败:",P)}return!1},O=()=>{try{const P={originalList:v,showList:p.value.map(U=>({...U,key:U.key,label:U.label,isFixed:U.isFixed,isLinked:U.isLinked,labelLanguage:U?.labelLanguage||void 0}))};localStorage.setItem(B.value,JSON.stringify(P))}catch(P){console.warn("保存搜索配置失败:",P)}},W=H.computed(()=>{const P=p.value.filter(F=>!F.isFixed&&!F.isLinked).length,U=p.value.filter(F=>F.isFixed||F.isLinked).length;return P>=c.value-U});H.watch(()=>l.list,P=>{let U=JSON.stringify(p.value)!==JSON.stringify(P);if(!U)return;const F=localStorage.getItem(B.value),T=JSON.parse(F||"{}");if(T&&T?.originalList&&Array.isArray(T.originalList))L(),f("confirm",p.value);else if(U){v=JSON.parse(JSON.stringify(P));const R=P.filter(he=>he?.isFixed),V=P.filter(he=>he?.isLinked),re=P.filter(he=>!he?.isFixed&&!he?.isLinked),oe=c.value&&c.value>0?Math.max(0,c.value-R.length-V.length):re.length,fe=R.map(he=>C(he)),Ae=V.map(he=>C(he)),me=re.slice(0,oe).map(he=>C(he));p.value=[...fe,...Ae,...me];const le=re.slice(oe).map(he=>({...C(he),active:!1}));m.value=le,f("confirm",p.value)}},{immediate:!0});const M=P=>{const U=p.value.findIndex(F=>F.key===P.key);U!==-1&&(p.value.splice(U,1),m.value.push({...P,active:!1}))},J=P=>{if(W.value){Cr.message.warning(`当前已经超过${i(c.value)}个可选数量,请先删除已显示条件`);return}const U=m.value.findIndex(F=>F.key===P.key);if(U!==-1){const[F]=m.value.splice(U,1);p.value.push({...F,active:!1})}},G=()=>{g.value=!1},N=()=>{g.value=!0},_=()=>{O(),f("confirm",p.value),G()},S=P=>{const U=m.value.findIndex(F=>F.key===P.key);U!==-1&&(m.value[U].active=!0)},Y=P=>{const U=m.value.findIndex(F=>F.key===P.key);U!==-1&&(m.value[U].active=!1)};return t({toOpenModal:N}),H.onMounted(()=>{}),(P,U)=>(H.openBlock(),H.createElementBlock("div",{class:H.normalizeClass(H.unref(h).b())},[H.createVNode(H.unref(Cr.Modal),{visible:g.value,"onUpdate:visible":U[1]||(U[1]=F=>g.value=F),width:y.value,onCancel:G,onOk:_},{title:H.withCtx(()=>[H.createElementVNode("div",{class:H.normalizeClass(H.unref(h).e("title"))},H.toDisplayString(u.value),3)]),footer:H.withCtx(()=>[H.createVNode(H.unref(Cr.Button),{onClick:G},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),H.createVNode(H.unref(Cr.Button),{type:"primary",onClick:_},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:H.withCtx(()=>[H.createElementVNode("section",{class:H.normalizeClass(H.unref(h).e("show"))},[H.createElementVNode("div",{class:H.normalizeClass(H.unref(h).e("show__title"))},[H.createElementVNode("span",{class:H.normalizeClass(H.unref(h).e("title__tip"))},H.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),H.createElementVNode("span",null,H.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+H.toDisplayString(c.value)+H.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),H.createElementVNode("div",{class:H.normalizeClass(H.unref(h).e("show__tag"))},[H.createVNode(H.unref(KI),{modelValue:p.value,"onUpdate:modelValue":U[0]||(U[0]=F=>p.value=F),"item-key":"key",tag:"div",disabled:b.value,move:w},{item:H.withCtx(({element:F})=>[H.createElementVNode("div",{class:H.normalizeClass([H.unref(h).e("show__tag__item"),H.unref(h).is("fixed",F.isFixed),H.unref(h).is("linked",F.isLinked)])},[H.createTextVNode(H.toDisplayString(F.label)+" ",1),!F.isFixed&&!F.isLinked&&r.list.length>1?(H.openBlock(),H.createBlock(H.unref(Wo.CloseOutlined),{key:0,class:H.normalizeClass(H.unref(h).e("show__tag__item-close")),onClick:T=>M(F)},null,8,["class","onClick"])):H.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),H.createElementVNode("section",{class:H.normalizeClass(H.unref(h).e("unshow"))},[H.createElementVNode("div",{class:H.normalizeClass(H.unref(h).e("show__title"))},[H.createElementVNode("span",{class:H.normalizeClass(H.unref(h).e("title__tip"))},H.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),H.createElementVNode("div",{class:H.normalizeClass(H.unref(h).e("unshow__tag"))},[m.value.length>0?(H.openBlock(!0),H.createElementBlock(H.Fragment,{key:0},H.renderList(m.value,F=>(H.openBlock(),H.createElementBlock("div",{key:F.key,class:H.normalizeClass([H.unref(h).e("unshow__tag__item"),H.unref(h).is("fixed",F.isFixed||""),H.unref(h).is("linked",F.isLinked||"")]),onMouseenter:T=>S(F),onMouseleave:T=>Y(F)},[H.createTextVNode(H.toDisplayString(F.label)+" ",1),F.active?(H.openBlock(),H.createElementBlock("aside",{key:0,class:H.normalizeClass(H.unref(h).e("unshow__tag__item-add")),onClick:T=>J(F)},H.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.add")),11,mne)):H.createCommentVNode("",!0)],42,yne))),128)):(H.openBlock(),H.createElementBlock("div",{key:1,class:H.normalizeClass(H.unref(h).e("unshow__tag__empty"))},H.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),Gi=(r,t)=>{const e=r.__vccOpts||r;for(const[n,i]of t)e[n]=i;return e},bne=Gi(Ine,[["__scopeId","data-v-657502f3"]]);function Ii(r){const t=r;return t.install=e=>{const n=r.name;e.component(n??"AnonymousComponent",r)},t}const VM=Ii(bne),Cne={key:0,class:"form-footer"},wne={class:"scheme-fontWeight"},Ene={class:"scheme-fontWeight"},Bne={class:"scheme-fontWeight"},kne={class:"scheme-fontWeight"},zM=Ii(Gi(H.defineComponent({name:"HbLibListForm",__name:"HbListForm",props:{items:{default:()=>[]},formData:{},layoutConfig:{default:()=>({row:{gutter:20},col:{xs:24,sm:12,md:8,lg:6,xl:6}})},saveKey:{},needFooter:{type:Boolean},isFormExpanded:{type:Boolean,default:!0},needFilter:{type:Boolean,default:!0},needSearchCase:{type:Boolean,default:!1},showNumber:{},searchList:{},calTableHeight:{type:Function,default:()=>()=>{}}},emits:["handleSearch","handleReset","handleSfcmConfirm","handleMenuClick"],setup(r,{expose:t,emit:e}){const n=H.inject("globalCompConfig",{}),i=e,a=H.inject("HB_LIST_PAGE_CONTAINER"),o=H.computed(()=>l.searchList||[]),s=iB("form"),l=r,c=H.computed(()=>l.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),u=H.ref("show"),f=H.computed(()=>l.needFooter||n.HbLibListForm?.needFooter),h=H.computed(()=>[...l.items]),A=W=>W!==void 0,d=W=>typeof W=="function",g=W=>A(W.condition)?d(W.condition)?W.condition():W.condition:!0,y=H.computed(()=>[...l.items].map(W=>({...W,condition:g(W),label:W.label?.includes("多项搜索")?"":W.label})));console.log(y.value);const v=H.computed(()=>l.saveKey),p=H.ref(),m=()=>{i("handleSearch")},b=()=>{i("handleReset")},C=H.ref(),w=()=>{C.value&&C.value.toOpenModal()},B=W=>{i("handleMenuClick",W)},k=W=>{i("handleSfcmConfirm",W)};H.watch(()=>l.isFormExpanded,W=>{if(W){console.log(W);const M=document.querySelector("#subpackage_container");M instanceof HTMLElement&&(M.style.overflow="hidden",setTimeout(()=>{M.style.overflow="auto"},500))}});const Q=W=>{const M=W;M.style.height="",M.offsetHeight},x=W=>{const M=W;M.style.height="",M.style.overflow="",H.nextTick(()=>{a.calTableHeight&&a.calTableHeight()})},L=W=>{const M=W,J=M.querySelector(".hb-lib-form--container");if(J){const G=J.offsetHeight;M.style.height=G+"px",M.style.overflow="hidden",M.offsetHeight,requestAnimationFrame(()=>{M.style.height="0"})}},O=()=>{H.nextTick(()=>{a.calTableHeight&&a.calTableHeight()})};return t({formRef:p,SelectOption:Cr.SelectOption,Form:Cr.Form,FormItem:Cr.FormItem,Row:Cr.Row,Col:Cr.Col,Input:Cr.Input,Select:Cr.Select,CheckboxGroup:Cr.CheckboxGroup,Checkbox:Cr.Checkbox,DatePicker:Cr.DatePicker,InputNumber:Cr.InputNumber,RadioGroup:Cr.RadioGroup,Radio:Cr.Radio,Switch:Cr.Switch,Button:Cr.Button,Tooltip:Cr.Tooltip}),(W,M)=>{const J=H.resolveComponent("a-button"),G=H.resolveComponent("a-tooltip"),N=H.resolveComponent("a-menu-item"),_=H.resolveComponent("a-menu"),S=H.resolveComponent("a-dropdown"),Y=H.resolveComponent("HbLibFormItemFilterModal");return H.openBlock(),H.createElementBlock(H.Fragment,null,[H.createVNode(H.Transition,{name:"form-collapse",onEnter:Q,onAfterEnter:x,onLeave:L,onAfterLeave:O},{default:H.withCtx(()=>[H.withDirectives(H.createElementVNode("div",{class:H.normalizeClass([H.unref(s).b(),"hb-lib-list-page-form-box","hb-form-item-ui",f.value?"isNeedFooterCss":""])},[H.createVNode(H.unref(Cr.Form),H.mergeProps(W.$attrs,{model:r.formData,ref_key:"formRef",ref:p,class:["hb-lib-form--container",u.value=="show"?"":"hide"]}),{default:H.withCtx(()=>[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(y.value,(P,U)=>(H.openBlock(),H.createElementBlock(H.Fragment,{key:U},[P.condition?(H.openBlock(),H.createBlock(H.unref(Cr.FormItem),H.mergeProps({key:0,ref_for:!0},P,{name:P.key,class:{"hb-lib-form-item-border--unneed":P.isUnNeedBorder,"hb_lib_form_item--needShowAll":P.showAll}}),H.createSlots({default:H.withCtx(()=>[P.type==="slot"?H.renderSlot(W.$slots,P.key,{key:0,formData:r.formData,item:P},void 0,!0):H.createCommentVNode("",!0),P.type==="mixin"?H.renderSlot(W.$slots,P.key,{key:1,formData:r.formData,item:P},void 0,!0):H.createCommentVNode("",!0),P.type==="input"?(H.openBlock(),H.createBlock(H.unref(Cr.Input),H.mergeProps({key:2,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),null,16,["value","onUpdate:value"])):H.createCommentVNode("",!0),P.type==="select"?(H.openBlock(),H.createBlock(H.unref(Cr.Select),H.mergeProps({key:3,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),{default:H.withCtx(()=>[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(P.options,(F,T)=>(H.openBlock(),H.createBlock(H.unref(Cr.SelectOption),{key:T,value:F.value},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(F.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):H.createCommentVNode("",!0),P.type==="checkbox"?(H.openBlock(),H.createBlock(H.unref(Cr.CheckboxGroup),H.mergeProps({key:4,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),{default:H.withCtx(()=>[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(P.options,(F,T)=>(H.openBlock(),H.createBlock(H.unref(Cr.Checkbox),{key:T,value:F.value},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(F.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):H.createCommentVNode("",!0),P.type==="date-picker"?(H.openBlock(),H.createBlock(H.unref(Cr.DatePicker),H.mergeProps({key:5,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),null,16,["value","onUpdate:value"])):H.createCommentVNode("",!0),P.type==="input-number"?(H.openBlock(),H.createBlock(H.unref(Cr.InputNumber),H.mergeProps({key:6,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),null,16,["value","onUpdate:value"])):H.createCommentVNode("",!0),P.type==="radio"?(H.openBlock(),H.createBlock(H.unref(Cr.RadioGroup),H.mergeProps({key:7,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),{default:H.withCtx(()=>[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(P.options,(F,T)=>(H.openBlock(),H.createBlock(H.unref(Cr.Radio),{key:T,value:F.value},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(F.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):H.createCommentVNode("",!0),P.type==="switch"?(H.openBlock(),H.createBlock(H.unref(Cr.Switch),H.mergeProps({key:8,checked:r.formData[P.key],"onUpdate:checked":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),null,16,["checked","onUpdate:checked"])):H.createCommentVNode("",!0)]),_:2},[P.tooltip?{name:"label",fn:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(P.label)+" ",1),H.createVNode(H.unref(Cr.Tooltip),{title:P.tooltip},{default:H.withCtx(()=>[H.createVNode(H.unref(Wo.QuestionCircleOutlined),{style:{"margin-left":"4px",color:"#1890ff"}})]),_:1},8,["title"])]),key:"0"}:void 0]),1040,["name","class"])):H.createCommentVNode("",!0)],64))),128)),f.value?H.createCommentVNode("",!0):(H.openBlock(),H.createElementBlock("section",Cne,[H.createVNode(J,{type:"primary",onClick:m,class:"hb_list_page_button"},{icon:H.withCtx(()=>[H.createVNode(H.unref(Wo.SearchOutlined))]),default:H.withCtx(()=>[H.createTextVNode(" "+H.toDisplayString(W.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),H.createVNode(J,{type:"link",onClick:b},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(W.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),r.needFilter?(H.openBlock(),H.createBlock(G,{key:0,title:W.$t("hbLibComp.hbListPageAct.selfDefine")},{default:H.withCtx(()=>[H.createElementVNode("span",{class:"hb-lib-form-svg",onClick:w},[...M[0]||(M[0]=[H.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[H.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):H.createCommentVNode("",!0),H.renderSlot(W.$slots,"formBtns",{},()=>[r.needSearchCase?(H.openBlock(),H.createBlock(S,{key:0},{overlay:H.withCtx(()=>[H.createVNode(_,{onClick:B},{default:H.withCtx(()=>[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(o.value,P=>(H.openBlock(),H.createBlock(N,{key:P.id},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(P.title),1)]),_:2},1024))),128)),H.createVNode(N,{key:"add"},{default:H.withCtx(()=>[H.createElementVNode("span",wne,H.toDisplayString(W.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),H.createVNode(N,{key:"edit"},{default:H.withCtx(()=>[H.createElementVNode("span",Ene,H.toDisplayString(W.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:H.withCtx(()=>[H.createVNode(G,{title:W.$t("hbLibComp.hbLibListForm.queryCase")},{default:H.withCtx(()=>[...M[1]||(M[1]=[H.createElementVNode("span",{style:{width:"18px",height:"18px",cursor:"pointer"}},[H.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[H.createElementVNode("path",{d:"M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",fill:"#ff5000","p-id":"4752"}),H.createElementVNode("path",{d:"M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",fill:"#ff5000","p-id":"4753"}),H.createElementVNode("path",{d:"M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",fill:"#ff5000","p-id":"4754"})])],-1)])]),_:1},8,["title"])]),_:1})):H.createCommentVNode("",!0)],!0)]))]),_:3},16,["model","class"]),f.value?(H.openBlock(),H.createElementBlock("div",{key:0,class:H.normalizeClass([H.unref(s).e("footer"),"form-footer"])},[H.createElementVNode("div",{class:H.normalizeClass(H.unref(s).e("footer__left"))},[H.renderSlot(W.$slots,"form-footer-left",{},void 0,!0)],2),H.createElementVNode("div",{class:H.normalizeClass(H.unref(s).e("footer__right"))},[u.value=="show"?H.renderSlot(W.$slots,"form-footer-right",{key:0,formRef:p.value},()=>[H.createVNode(J,{type:"primary",onClick:m,class:"hb_list_page_button"},{icon:H.withCtx(()=>[H.createVNode(H.unref(Wo.SearchOutlined))]),default:H.withCtx(()=>[H.createTextVNode(" "+H.toDisplayString(W.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),H.createVNode(J,{type:"link",onClick:b,class:"hb_list_page_button"},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(W.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),r.needFilter?(H.openBlock(),H.createBlock(G,{key:0,title:W.$t("hbLibComp.hbListPageAct.selfDefine")},{default:H.withCtx(()=>[H.createElementVNode("span",{class:"hb-lib-form-svg",onClick:w},[...M[2]||(M[2]=[H.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[H.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):H.createCommentVNode("",!0),H.renderSlot(W.$slots,"formBtns",{},()=>[r.needSearchCase?(H.openBlock(),H.createBlock(S,{key:0},{overlay:H.withCtx(()=>[H.createVNode(_,{onClick:B},{default:H.withCtx(()=>[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(o.value,P=>(H.openBlock(),H.createBlock(N,{key:P.id},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(P.title),1)]),_:2},1024))),128)),H.createVNode(N,{key:"add"},{default:H.withCtx(()=>[H.createElementVNode("span",Bne,H.toDisplayString(W.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),H.createVNode(N,{key:"edit"},{default:H.withCtx(()=>[H.createElementVNode("span",kne,H.toDisplayString(W.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:H.withCtx(()=>[H.createVNode(G,{title:W.$t("hbLibComp.hbLibListForm.queryCase")},{default:H.withCtx(()=>[...M[3]||(M[3]=[H.createElementVNode("span",{class:"hb-lib-form-svg",style:{width:"18px",height:"18px",cursor:"pointer"}},[H.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[H.createElementVNode("path",{d:"M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",fill:"#ff5000","p-id":"4752"}),H.createElementVNode("path",{d:"M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",fill:"#ff5000","p-id":"4753"}),H.createElementVNode("path",{d:"M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",fill:"#ff5000","p-id":"4754"})])],-1)])]),_:1},8,["title"])]),_:1})):H.createCommentVNode("",!0)],!0)],!0):H.createCommentVNode("",!0)],2)],2)):H.createCommentVNode("",!0)],2),[[H.vShow,r.isFormExpanded]])]),_:3}),H.createVNode(Y,{showNumber:c.value,list:h.value,ref_key:"HbSfCmRef",ref:C,onConfirm:k,saveKey:v.value},null,8,["showNumber","list","saveKey"])],64)}}}),[["__scopeId","data-v-f513ff59"]])),Qne={class:"hb-lib-list-page-act-box"},xne={class:"hb-lib-list-page-breadcrumb"},_ne={class:"hb-lib-list-page-act"},Sne={key:0,t:"1757915338760",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"22885",width:"200",height:"200"},Dne={key:1,t:"1757915360496",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"23904",width:"200",height:"200"},KM=Ii(Gi(H.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{isShowFullScreen:{type:Boolean,default:!0},hideDomList:{}},setup(r){const t=H.inject("globalCompConfig",{}),e=r,{isFullscreen:n,toggle:i}=lA.useFullscreen(document.body);H.watch(()=>n.value,l=>{let c=["#globalHead","#globalLeft","#globalNavFrame"];Array.isArray(e.hideDomList)&&e.hideDomList.length?c=[...e.hideDomList]:t.HbLibListPageAct?.hideDomList&&(c=[...t.HbLibListPageAct.hideDomList]);const u=new Map;setTimeout(l?()=>{if(c?.length)for(let f=0;f<c.length;f++){const h=document.querySelector(c[f]);h&&(u.set(c[f],h.style.display),h.style.display="none")}}:()=>{if(c?.length)for(let f=0;f<c.length;f++){const h=document.querySelector(c[f]);if(h){const A=u.get(c[f]);h.style.display=A||"",u.delete(c[f])}}},0)});const a=H.ref(""),o=()=>{const l=nB.useRoute();let c=localStorage.getItem(t.HbLibListPageAct?.breadCrumbListKey||"BreadCrumb")||"[]",u=l?.path;if(c!=="[]"){let f=JSON.parse(c).find(h=>h.value===u);f&&(a.value=f.label.replace(/-/g," / "))}};H.onMounted(()=>{o()});const s=l=>{l.keyCode===192&&i()};return H.onMounted(()=>{window.addEventListener("keydown",s)}),H.onUnmounted(()=>{window.removeEventListener("keydown",s)}),(l,c)=>{const u=H.resolveComponent("a-tooltip");return H.openBlock(),H.createElementBlock("section",Qne,[H.createElementVNode("aside",xne,H.toDisplayString(a.value),1),H.createElementVNode("aside",_ne,[H.createVNode(u,{title:H.unref(n)?`${l.$t("hbLibComp.hbListPageAct.exitFullScreen")}`:`${l.$t("hbLibComp.hbListPageAct.fullScreen")}`,placement:"leftTop"},{default:H.withCtx(()=>[H.createElementVNode("span",{class:"hb-lib-list-page-act-svg",onClick:c[0]||(c[0]=(...f)=>H.unref(i)&&H.unref(i)(...f))},[H.unref(n)?(H.openBlock(),H.createElementBlock("svg",Dne,[...c[2]||(c[2]=[H.createElementVNode("path",{d:"M257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23905"},null,-1),H.createElementVNode("path",{d:"M896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333zM257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23906"},null,-1),H.createElementVNode("path",{d:"M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23907"},null,-1)])])):(H.openBlock(),H.createElementBlock("svg",Sne,[...c[1]||(c[1]=[H.createElementVNode("path",{d:"M85.333333 682.666667v128a128 128 0 0 0 128 128h128a42.666667 42.666667 0 0 0 0-85.333334H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666666v-128a42.666667 42.666667 0 0 0-85.333334 0z m597.333334 256h128a128 128 0 0 0 128-128v-128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 1-42.666666 42.666666h-128a42.666667 42.666667 0 0 0 0 85.333334z m256-597.333334V213.333333a128 128 0 0 0-128-128h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 1 42.666666 42.666666v128a42.666667 42.666667 0 0 0 85.333334 0zM341.333333 85.333333H213.333333a128 128 0 0 0-128 128v128a42.666667 42.666667 0 0 0 85.333334 0V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h128a42.666667 42.666667 0 0 0 0-85.333334z",fill:"#ff5000","p-id":"22886"},null,-1)])]))])]),_:1},8,["title"]),H.renderSlot(l.$slots,"listAct",{},void 0,!0)])])}}}),[["__scopeId","data-v-c7cd0710"]])),Rne={class:"hb-lib-list-btns-box"},Mne={class:"hb-lib-list-btns-left"},Tne={class:"hb-lib-list-btns-right"},qM=Ii(Gi(H.defineComponent({name:"HbLibListBtnsAct",__name:"HbListBtns",props:{needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},emits:["handleOpenOrClose","handleReload"],setup(r,{emit:t}){const e=t,n=H.ref(!0),i=()=>{n.value=!n.value,e("handleOpenOrClose",n.value)},a=()=>{e("handleReload")},o=s=>{};return H.onMounted(()=>{window.addEventListener("keydown",o)}),H.onUnmounted(()=>{window.removeEventListener("keydown",o)}),(s,l)=>{const c=H.resolveComponent("a-tooltip");return H.openBlock(),H.createElementBlock("section",Rne,[H.createElementVNode("aside",Mne,[H.renderSlot(s.$slots,"btnsLeft",{},void 0,!0)]),H.createElementVNode("aside",Tne,[r.needReload?(H.openBlock(),H.createBlock(c,{key:0,title:s.$t("hbLibComp.hbListBtnsAct.reload")},{default:H.withCtx(()=>[H.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:a},[...l[0]||(l[0]=[H.createElementVNode("svg",{t:"1759041224819",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4202",width:"200",height:"200"},[H.createElementVNode("path",{d:"M958.681412 457.499032c-6.170072-50.632177-20.854483-99.563886-43.643361-145.434552-45.779694-92.144205-122.249797-166.333021-215.325711-208.898719-20.083724-9.18513-43.810309-0.349891-52.995439 19.734833-9.18413 20.082724-0.349891 43.810309 19.733833 52.996438 159.26323 72.834239 245.755201 249.640987 205.658732 420.410622-30.735395 130.876101-129.201624 233.321087-256.187941 270.333521l-0.262918-70.800875-196.843487 114.650172 197.690222 113.176632-0.275914-74.43274c75.398438-17.911403 144.809747-54.929834 202.084849-108.039237 65.597501-60.827991 111.122274-139.186504 131.651859-226.606186 12.170197-51.828803 15.10328-104.683286 8.715276-157.089909zM408.299406-0.001l0.271915 74.43374c-75.404436 17.911403-144.820744 54.931834-202.099843 108.046235-65.6005 60.83099-111.124274 139.191503-131.651859 226.616183-7.987504 34.034364-11.994252 68.507591-11.994252 103.010809 0 17.994377 1.090659 35.996751 3.271978 53.946142 6.152077 50.59119 20.803499 99.48891 43.545392 145.333583 45.678725 92.080225 122.012871 166.270041 214.936832 208.900718 20.071728 9.209122 43.810309 0.401874 53.018432-19.670852 9.210122-20.076726 0.400875-43.810309-19.671853-53.019432-158.963324-72.92821-245.278351-249.658982-205.24886-420.22368 30.732396-130.883099 129.201624-233.333083 256.195939-270.345517l0.259919 70.801874 196.850484-114.640174L408.299406-0.001z",fill:"#ff5000","p-id":"4203"})],-1)])])]),_:1},8,["title"])):H.createCommentVNode("",!0),r.needOpenOrClose?(H.openBlock(),H.createBlock(c,{key:1,title:n.value?`${s.$t("hbLibComp.hbListBtnsAct.close")}`:`${s.$t("hbLibComp.hbListBtnsAct.open")}`},{default:H.withCtx(()=>[H.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:i},[n.value?(H.openBlock(),H.createBlock(H.unref(Wo.UpCircleOutlined),{key:0,style:{"font-size":"21px",color:"#ff5000"}})):(H.openBlock(),H.createBlock(H.unref(Wo.DownCircleOutlined),{key:1,style:{"font-size":"21px",color:"#ff5000"}}))])]),_:1},8,["title"])):H.createCommentVNode("",!0),H.renderSlot(s.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-40c1a746"]])),XM=(r={})=>{const{formRef:t,offsetBottom:e=50,minHeight:n=300,timeOut:i=100}=r,a=H.ref(0);let o=null,s=null,l=null,c=null,u=null;const f=()=>{u&&clearTimeout(u),u=setTimeout(()=>{requestAnimationFrame(()=>{H.nextTick(()=>{const p=document.querySelector(".ant-table"),m=document.querySelector(".ant-pagination");if(p){const b=Math.floor(p.getBoundingClientRect().top),C=window.innerHeight,B=(m?m.offsetHeight+20:40)+e;let k=C-b-B;k<n&&(k=n),a.value=k}})})},100)},h=()=>{const p=document.querySelector(".ant-pagination");if(p){const m=new MutationObserver(()=>{f()});return m.observe(p,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),m}return null},A=()=>{const p=document.querySelector(".hb-lib-list-page-form-box");p&&(o=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(b=>{b.style.display="none"}),f()}),o.observe(p))},d=()=>{const p=document.querySelector(".hb-lib-list-page-form-box");p&&(l=new MutationObserver(()=>{setTimeout(()=>{f()},i)}),l.observe(p,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},g=()=>{c&&clearTimeout(c),c=setTimeout(()=>{f()},i)},y=()=>{window.addEventListener("resize",g),H.nextTick(()=>{A(),d(),s=h()})},v=()=>{window.removeEventListener("resize",g),o&&o.disconnect(),l&&l.disconnect(),s&&s.disconnect(),c&&clearTimeout(c),u&&clearTimeout(u)};return t&&H.watch(()=>t,()=>{setTimeout(()=>{f()},200)},{deep:!0}),H.onMounted(()=>{f(),y()}),H.onUnmounted(()=>{v()}),{tableHeight:a,calTableHeight:f}},ZM=Ii(H.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{},tableData:{default:()=>[]},offsetBottom:{},minHeight:{},timeOut:{},offsetHeight:{},isUnFixTbHeight:{type:Boolean}},setup(r){const t=H.inject("globalCompConfig",{}),{isFullscreen:e}=lA.useFullscreen(document.body),n=r,i=H.useTemplateRef("PageContainerRef"),a=H.computed(()=>n.offsetHeight||t.HbLibListPageContainer?.offsetHeight||110),o=H.computed(()=>n.offsetBottom||t.HbLibListPageContainer?.offsetBottom||20),s=H.computed(()=>n.minHeight||t.HbLibListPageContainer?.minHeight||300),l=H.computed(()=>n.timeOut||t.HbLibListPageContainer?.timeOut||100),c=H.computed(()=>n.isUnFixTbHeight||t.HbLibListPageContainer?.isUnFixTbHeight||!1);console.log(n.isUnFixTbHeight);const{calTableHeight:u,tableHeight:f}=XM({offsetBottom:o.value,minHeight:s.value,timeOut:l.value}),h=H.computed(()=>f.value);return H.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:i,tableHeight:f,calTableHeight:u}),(A,d)=>(H.openBlock(),H.createElementBlock("section",{class:"hb-lib-list-page-container",ref_key:"PageContainerRef",ref:i},[H.renderSlot(A.$slots,"header"),H.createElementVNode("section",{class:"list-page-box",style:H.normalizeStyle(c.value?null:{"--hb-list-table-height":H.unref(e)?h.value-a.value+"px":h.value-o.value+"px","--hb-list-ttable-height":r.tableData.length?"":H.unref(e)?h.value-a.value+"px":h.value-o.value+"px"})},[H.renderSlot(A.$slots,"default")],4)],512))}})),Fne={style:{"font-weight":"500"}},Nne={key:0,class:"hb-lib-search-tag__description"},Lne={class:"hb-lib-selector-dropdown"},One={class:"hb-lib-selector-search"},Pne={class:"hb-lib-selector-list"},Gne=["onClick"],Une={class:"hb-lib-option-content"},Hne={class:"hb-lib-option-label"},jne={key:0,class:"hb-lib-selector-empty"},Yne={key:1,class:"hb-lib-selector-footer"},Wne={class:"hb-lib-footer-buttons"},Jne={key:2,class:"hb-lib-selector-footer"},Vne={class:"hb-lib-footer-buttons"},$M=Ii(Gi(H.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:H.mergeModels({placeholder:{default:"点击选择"},searchPlaceholder:{default:"搜索选项"},width:{default:600},options:{default:()=>[]},multiple:{type:Boolean,default:!0},prefix:{default:""},value:{},remoteSearch:{type:Boolean,default:!1},searchValue:{default:""},maxTagCount:{default:2},tagTextLength:{default:30}},{value:{},valueModifiers:{}}),emits:H.mergeModels(["update:value","update:searchValue","change","confirm","cancel","search"],["update:value"]),setup(r,{emit:t}){const e=r,n=t,i=H.useModel(r,"value"),a=H.ref(!1),o=H.ref(""),s=H.ref([]),l=H.ref(),c=H.computed(()=>{if(e.remoteSearch||!o.value)return e.options;const C=o.value.toLowerCase();return e.options.filter(w=>w.label.toLowerCase().includes(C)||w.description?.toLowerCase().includes(C))}),u=H.computed(()=>e.prefix?`${e.prefix.length*14+8}px`:"0px"),f=H.computed(()=>c.value.length===0?!1:c.value.every(C=>s.value.includes(C.value))),h=H.computed(()=>{if(c.value.length===0)return!1;const C=c.value.filter(w=>s.value.includes(w.value)).length;return C>0&&C<c.value.length});H.watch(()=>i.value,C=>{C?s.value=Array.isArray(C)?[...C]:[C]:s.value=[]},{immediate:!0}),H.watch(()=>e.searchValue,C=>{e.remoteSearch&&C!==void 0&&(o.value=C)},{immediate:!0});const A=C=>{C&&(a.value=C,d.value=[...s.value],o.value="",setTimeout(()=>{if(l.value){const w=l.value.input||l.value.$el?.querySelector("input");w&&w.focus()}},100))},d=H.ref([]),g=()=>{s.value=[...d.value],a.value=!1,n("cancel")},y=H.ref([]),v=()=>{const C=e.multiple?s.value:s.value[0]||"",w=e.options.filter(B=>s.value.includes(B.value));y.value=w,console.log(C,w),d.value=[...s.value],i.value=C,n("update:value",C),n("change",C,w),n("confirm",C,w),a.value=!1},p=lA.useDebounceFn(C=>{const w=C!==void 0?C:o.value;e.remoteSearch&&(n("search",w),n("update:searchValue",w))},300),m=C=>{if(e.multiple){const w=new Set(s.value);w.has(C.value)?w.delete(C.value):w.add(C.value),s.value=Array.from(w)}else s.value=[C.value],v()},b=C=>{if(C.target.checked){const B=new Set(s.value);c.value.forEach(k=>{B.add(k.value)}),s.value=Array.from(B)}else{const B=new Set(c.value.map(k=>k.value));s.value=s.value.filter(k=>!B.has(k))}};return(C,w)=>{const B=H.resolveComponent("a-tag"),k=H.resolveComponent("a-input"),Q=H.resolveComponent("a-checkbox"),x=H.resolveComponent("a-radio"),L=H.resolveComponent("a-button"),O=H.resolveComponent("a-select");return H.openBlock(),H.createElementBlock("div",H.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":u.value}},C.$attrs),[H.createVNode(O,{value:i.value,"onUpdate:value":w[5]||(w[5]=W=>i.value=W),mode:r.multiple?"multiple":void 0,placeholder:r.placeholder,"show-search":!0,"filter-option":!1,open:a.value,allowClear:"",maxTagCount:r.maxTagCount,options:c.value,onDropdownVisibleChange:A,onSearch:H.unref(p),"max-tag-text-length":r.tagTextLength,class:H.normalizeClass({"has-prefix":r.prefix}),"data-prefix":r.prefix,style:{width:"100%"}},{tagRender:H.withCtx(({value:W,label:M,closable:J,option:G})=>[H.createVNode(B,{class:"hb-lib-search-tag",onClick:w[0]||(w[0]=()=>A(!0))},{default:H.withCtx(()=>[H.createElementVNode("span",Fne,H.toDisplayString(M),1),G?.description?(H.openBlock(),H.createElementBlock("span",Nne," ("+H.toDisplayString(G.description)+") ",1)):H.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:H.withCtx(({menuNode:W})=>[H.createElementVNode("div",Lne,[H.createElementVNode("div",One,[H.createVNode(k,{ref_key:"searchInputRef",ref:l,class:"hb-lib-selector-search-input",value:o.value,"onUpdate:value":w[1]||(w[1]=M=>o.value=M),placeholder:"请输入关键词搜索","allow-clear":"",onInput:w[2]||(w[2]=M=>H.unref(p)(M.target.value))},{prefix:H.withCtx(()=>[H.createVNode(H.unref(Wo.SearchOutlined))]),_:1},8,["value"])]),H.createElementVNode("div",Pne,[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(c.value,M=>(H.openBlock(),H.createElementBlock("div",{key:M.value,class:H.normalizeClass(["hb-lib-selector-option",{selected:s.value.includes(M.value)}]),onClick:()=>m(M)},[r.multiple?(H.openBlock(),H.createBlock(Q,{key:0,checked:s.value.includes(M.value),onChange:()=>m(M),onClick:w[3]||(w[3]=H.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(H.openBlock(),H.createBlock(x,{key:1,checked:s.value.includes(M.value),onChange:()=>m(M),onClick:w[4]||(w[4]=H.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),H.createElementVNode("div",Une,[H.createElementVNode("div",Hne,H.toDisplayString(M.label),1)])],10,Gne))),128))]),c.value.length===0?(H.openBlock(),H.createElementBlock("div",jne,H.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):H.createCommentVNode("",!0),r.multiple?(H.openBlock(),H.createElementBlock("div",Yne,[H.createVNode(Q,{checked:f.value,indeterminate:h.value,onChange:b},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(C.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),H.createElementVNode("div",Wne,[H.createVNode(L,{size:"small",onClick:g},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),H.createVNode(L,{type:"primary",size:"small",onClick:v},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(H.openBlock(),H.createElementBlock("div",Jne,[w[6]||(w[6]=H.createElementVNode("div",null,null,-1)),H.createElementVNode("div",Vne,[H.createVNode(L,{size:"small",onClick:g},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(C.$t("hbLibComp.hbFormSelectFilter.close")),1)]),_:1})])]))])]),_:1},8,["value","mode","placeholder","open","maxTagCount","options","onSearch","max-tag-text-length","class","data-prefix"])],16)}}}),[["__scopeId","data-v-87177371"]])),zne={class:"hb-lib-form-item-filter-modal-search"},Kne={class:"hb-lib-form-item-filter-modal-buttons"},qne={key:0},eT=Ii(H.defineComponent({name:"HbLibMutilpleSelectModal",__name:"HbMutilpleSelectModal",props:{modelTitle:{default:"搜索弹窗"},modalWidth:{default:800},tableHeight:{default:500},tableColumn:{default:()=>[]},tableData:{default:()=>[]},tableKey:{default:"id"},labelKey:{default:"label"}},emits:["handleConfirm","handleCancel"],setup(r,{expose:t,emit:e}){const n=r,i=e,a=H.ref(!1),o=H.ref(""),s=H.ref(),l=H.ref(),c=H.ref([]),u=H.ref([]),f=H.ref(),h=H.reactive({searchText:"",searchedColumn:""}),A=H.computed(()=>n.tableData.map(B=>(B.id=B.id||Math.random(),B))),d=H.computed(()=>n.tableColumn.map(B=>(B.customFilterDropdown&&(B.onFilter=(k,Q)=>Q[B.dataIndex].toString().toLowerCase().includes(k.toLowerCase()),B.onFilterDropdownVisibleChange=k=>{k&&setTimeout(()=>{s.value?.focus()},100)}),{...B}))),g=()=>{let B="";u.value.forEach(k=>{B=B+k[n.labelKey]+","}),o.value=B.substring(0,B.length-1),a.value=!1,i("handleConfirm",u.value)},y=()=>{a.value=!1},v=()=>{a.value=!0,H.nextTick(()=>{const B=f.value?.$el?.querySelector(".ant-table-body");B&&(B.scrollTop=0)})},p=()=>{c.value=[],u.value=[]},m=()=>{o.value="",p()},b=(B,k,Q)=>{k(),h.searchText=B[0],h.searchedColumn=Q},C=(B,k)=>{B({confirm:!0}),h.searchText="",k()},w=(B,k)=>{c.value=B,u.value=k};return t({resetInputVal:m}),(B,k)=>{const Q=H.resolveComponent("a-input"),x=H.resolveComponent("a-button"),L=H.resolveComponent("a-table"),O=H.resolveComponent("a-modal");return H.openBlock(),H.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:l},[H.createVNode(Q,{readonly:"",onClick:v,value:o.value,"onUpdate:value":k[0]||(k[0]=W=>o.value=W),placeholder:B.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:H.withCtx(()=>[H.createVNode(H.unref(Wo.UnorderedListOutlined),{onClick:v})]),_:1},8,["value","placeholder"]),H.createVNode(O,{visible:a.value,"onUpdate:visible":k[1]||(k[1]=W=>a.value=W),title:r.modelTitle,width:r.modalWidth,class:"hb-lib-multipleSelectModal-modal"},{footer:H.withCtx(()=>[H.createVNode(x,{onClick:p},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(B.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),H.createVNode(x,{onClick:y},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),H.createVNode(x,{type:"primary",onClick:g},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:H.withCtx(()=>[H.createVNode(L,{ref_key:"tableRef",ref:f,columns:d.value,dataSource:A.value,rowSelection:{selectedRowKeys:c.value,onChange:w},rowKey:W=>W[r.tableKey],scroll:{y:r.tableHeight}},{customFilterDropdown:H.withCtx(({setSelectedKeys:W,selectedKeys:M,confirm:J,clearFilters:G,column:N})=>[H.createElementVNode("div",zne,[H.createVNode(Q,{ref_key:"searchInput",ref:s,placeholder:`请输入${N.title}`,value:M[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:_=>W(_.target.value?[_.target.value]:[]),onPressEnter:_=>b(M,J,N.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),H.createElementVNode("section",Kne,[H.createVNode(x,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:_=>C(G,J)},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(B.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),H.createVNode(x,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:_=>b(M,J,N.dataIndex)},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:H.withCtx(({filtered:W})=>[H.createVNode(H.unref(Wo.SearchOutlined),{style:H.normalizeStyle({color:W?"#108ee9":void 0})},null,8,["style"])]),bodyCell:H.withCtx(({text:W,column:M})=>[h.searchText&&h.searchedColumn===M.dataIndex?(H.openBlock(),H.createElementBlock("span",qne,[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(W.toString().split(new RegExp(`(?<=${h.searchText})|(?=${h.searchText})`,"i")),(J,G)=>(H.openBlock(),H.createElementBlock(H.Fragment,null,[J.toLowerCase()===h.searchText.toLowerCase()?(H.openBlock(),H.createElementBlock("mark",{key:G,class:"highlight"},H.toDisplayString(J),1)):(H.openBlock(),H.createElementBlock(H.Fragment,{key:1},[H.createTextVNode(H.toDisplayString(J),1)],64))],64))),256))])):H.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),Xne={class:"hb-lib-table-act-box"},Zne=["onClick"],$ne={href:"javascript:;",class:"hb-lib-table-main-action"},eie=["onClick"],tie={href:"javascript:;",class:"hb-lib-table-more-action"},rie=["onClick"],nie={href:"javascript:;"},iie=["onClick"],aie={class:"hb-lib-table-confirm-modal-content"},tT=Ii(Gi(H.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{filterPermission:{type:Function},actions:{},record:{},buttonDisplaysQuantity:{}},setup(r,{expose:t}){const e=r,{t:n}=bs.useI18n(),i=H.ref(!1),a=H.ref(!1),o=H.ref(null),s=H.computed(()=>e.actions.filter(y=>y.condition!==void 0?y.condition:!0)),l=H.computed(()=>s.value.slice(0,e.buttonDisplaysQuantity)),c=H.computed(()=>u(s.value.slice(e.buttonDisplaysQuantity)));function u(y){if(e.filterPermission)return e.filterPermission(y);let v=[],p=[];return v=JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH")||"[]"),!Array.isArray(v)||y.length===0?(v=[],[]):(v=v.filter(m=>m.type!="2"),y.forEach(m=>{(!m.permissionsTag||v.findIndex(b=>b.action===m.permissionsTag)!==-1)&&p.push(m)}),p)}const f=y=>{y.handler&&y.handler(e.record)},h=y=>{o.value=y,i.value=!0},A=()=>{if(o.value){a.value=!0;try{f(o.value),a.value=!1,i.value=!1}catch{a.value=!1}}},d=()=>{i.value=!1,o.value=null},g=H.computed(()=>o.value?{title:o.value.confirmTitle,content:o.value.confirmContent||o.value.confirmTitle}:{title:n("hbLibComp.hbTableAct.secendConfirm"),content:n("hbLibComp.hbTableAct.confirmContent")});return t({ADropdown:Cr.Dropdown,AMenu:Cr.Menu,AMenuItem:Cr.MenuItem,APopconfirm:Cr.Popconfirm,AModal:Cr.Modal,DownOutlined:Wo.DownOutlined}),(y,v)=>{const p=H.resolveComponent("a-divider"),m=H.resolveDirective("has");return H.openBlock(),H.createElementBlock("div",Xne,[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(l.value,(b,C)=>(H.openBlock(),H.createElementBlock(H.Fragment,{key:C},[b.needConfirm?(H.openBlock(),H.createElementBlock(H.Fragment,{key:0},[b.confirmType==="modal"?(H.openBlock(),H.createElementBlock(H.Fragment,{key:0},[H.withDirectives((H.openBlock(),H.createElementBlock("a",{href:"javascript:;",onClick:w=>h(b),class:"hb-lib-table-main-action"},[H.createTextVNode(H.toDisplayString(b.label),1)],8,Zne)),[[m,b.permissionsTag||null]]),c.value&&c.value.length>0||C!==l.value.length-1?(H.openBlock(),H.createBlock(p,{key:0,type:"vertical"})):H.createCommentVNode("",!0)],64)):(H.openBlock(),H.createElementBlock(H.Fragment,{key:1},[H.createVNode(H.unref(Cr.Popconfirm),{title:b.confirmTitle,onConfirm:w=>f(b)},{default:H.withCtx(()=>[H.withDirectives((H.openBlock(),H.createElementBlock("a",$ne,[H.createTextVNode(H.toDisplayString(b.label),1)])),[[m,b.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]),c.value&&c.value.length>0||C!==l.value.length-1?(H.openBlock(),H.createBlock(p,{key:0,type:"vertical"})):H.createCommentVNode("",!0)],64))],64)):b.slot?(H.openBlock(),H.createElementBlock(H.Fragment,{key:1},[H.renderSlot(y.$slots,b.slot,{item:b},void 0,!0),c.value&&c.value.length>0||C!==l.value.length-1?(H.openBlock(),H.createBlock(p,{key:0,type:"vertical"})):H.createCommentVNode("",!0)],64)):(H.openBlock(),H.createElementBlock(H.Fragment,{key:2},[H.withDirectives((H.openBlock(),H.createElementBlock("a",{href:"javascript:;",onClick:w=>f(b),class:"hb-lib-table-main-action"},[H.createTextVNode(H.toDisplayString(b.label),1)],8,eie)),[[m,b.permissionsTag||null]]),c.value&&c.value.length>0||C!==l.value.length-1?H.withDirectives((H.openBlock(),H.createBlock(p,{key:0,type:"vertical"},null,512)),[[m,b.permissionsTag||null]]):H.createCommentVNode("",!0)],64))],64))),128)),c.value&&c.value.length>0?(H.openBlock(),H.createBlock(H.unref(Cr.Dropdown),{key:0},{overlay:H.withCtx(()=>[H.createVNode(H.unref(Cr.Menu),null,{default:H.withCtx(()=>[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(c.value,(b,C)=>H.withDirectives((H.openBlock(),H.createBlock(H.unref(Cr.MenuItem),{key:C},{default:H.withCtx(()=>[b.needConfirm?(H.openBlock(),H.createElementBlock(H.Fragment,{key:0},[b.confirmType==="modal"?H.withDirectives((H.openBlock(),H.createElementBlock("a",{key:0,href:"javascript:;",onClick:w=>h(b)},[H.createTextVNode(H.toDisplayString(b.label),1)],8,rie)),[[m,b.permissionsTag||null]]):H.withDirectives((H.openBlock(),H.createBlock(H.unref(Cr.Popconfirm),{key:1,title:b.confirmTitle,onConfirm:w=>f(b)},{default:H.withCtx(()=>[H.withDirectives((H.openBlock(),H.createElementBlock("a",nie,[H.createTextVNode(H.toDisplayString(b.label),1)])),[[m,b.permissionsTag||null]])]),_:2},1032,["title","onConfirm"])),[[m,b.permissionsTag||null]])],64)):H.withDirectives((H.openBlock(),H.createElementBlock("a",{key:1,href:"javascript:;",onClick:w=>f(b)},[H.createTextVNode(H.toDisplayString(b.label),1)],8,iie)),[[m,b.permissionsTag||null]])]),_:2},1024)),[[m,b.permissionsTag||null]])),128))]),_:1})]),default:H.withCtx(()=>[H.createElementVNode("a",tie,[H.createTextVNode(H.toDisplayString(y.$t("hbLibComp.hbTableAct.more"))+" ",1),H.createVNode(H.unref(Wo.DownOutlined),{style:{"font-size":"12px","margin-left":"4px"}})])]),_:1})):H.createCommentVNode("",!0),H.createVNode(H.unref(Cr.Modal),{visible:i.value,title:g.value.title,"confirm-loading":a.value,onOk:A,onCancel:d},{default:H.withCtx(()=>[H.createElementVNode("p",aie,H.toDisplayString(g.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-25fd055e"]])),aB=r=>({tableWidth:H.computed(()=>{const e=Array.isArray(r)?r:r.value;return!e||e.length===0?0:e.map(n=>n.width&&Number(n.width.toString().replace("px",""))||0).reduce((n,i)=>n+i,0)})});var oie=typeof global=="object"&&global&&global.Object===Object&&global,sie=typeof self=="object"&&self&&self.Object===Object&&self,rT=oie||sie||Function("return this")(),XI=rT.Symbol,nT=Object.prototype,lie=nT.hasOwnProperty,cie=nT.toString,V0=XI?XI.toStringTag:void 0;function uie(r){var t=lie.call(r,V0),e=r[V0];try{r[V0]=void 0;var n=!0}catch{}var i=cie.call(r);return n&&(t?r[V0]=e:delete r[V0]),i}var fie=Object.prototype,hie=fie.toString;function Aie(r){return hie.call(r)}var die="[object Null]",gie="[object Undefined]",iT=XI?XI.toStringTag:void 0;function pie(r){return r==null?r===void 0?gie:die:iT&&iT in Object(r)?uie(r):Aie(r)}function vie(r){return r!=null&&typeof r=="object"}var yie="[object Symbol]";function mie(r){return typeof r=="symbol"||vie(r)&&pie(r)==yie}var Iie=/\s/;function bie(r){for(var t=r.length;t--&&Iie.test(r.charAt(t)););return t}var Cie=/^\s+/;function wie(r){return r&&r.slice(0,bie(r)+1).replace(Cie,"")}function oB(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var aT=NaN,Eie=/^[-+]0x[0-9a-f]+$/i,Bie=/^0b[01]+$/i,kie=/^0o[0-7]+$/i,Qie=parseInt;function oT(r){if(typeof r=="number")return r;if(mie(r))return aT;if(oB(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=oB(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=wie(r);var e=Bie.test(r);return e||kie.test(r)?Qie(r.slice(2),e?2:8):Eie.test(r)?aT:+r}var sB=function(){return rT.Date.now()},xie="Expected a function",_ie=Math.max,Sie=Math.min;function sT(r,t,e){var n,i,a,o,s,l,c=0,u=!1,f=!1,h=!0;if(typeof r!="function")throw new TypeError(xie);t=oT(t)||0,oB(e)&&(u=!!e.leading,f="maxWait"in e,a=f?_ie(oT(e.maxWait)||0,t):a,h="trailing"in e?!!e.trailing:h);function A(w){var B=n,k=i;return n=i=void 0,c=w,o=r.apply(k,B),o}function d(w){return c=w,s=setTimeout(v,t),u?A(w):o}function g(w){var B=w-l,k=w-c,Q=t-B;return f?Sie(Q,a-k):Q}function y(w){var B=w-l,k=w-c;return l===void 0||B>=t||B<0||f&&k>=a}function v(){var w=sB();if(y(w))return p(w);s=setTimeout(v,g(w))}function p(w){return s=void 0,h&&n?A(w):(n=i=void 0,o)}function m(){s!==void 0&&clearTimeout(s),c=0,n=l=i=s=void 0}function b(){return s===void 0?o:p(sB())}function C(){var w=sB(),B=y(w);if(n=arguments,i=this,l=w,B){if(s===void 0)return d(l);if(f)return clearTimeout(s),s=setTimeout(v,t),A(l)}return s===void 0&&(s=setTimeout(v,t)),o}return C.cancel=m,C.flush=b,C}const Die={key:0,class:"hb-lib-list-table-act"},Rie={class:"empty-container"},Mie={key:1},Tie={key:2},lT=Ii(Gi(H.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},rowHeight:{},defaultWidth:{},tooltipPlacement:{default:()=>"topLeft"},isFixTbHeight:{type:Boolean}},emits:["change","resizeCol"],setup(r,{emit:t}){const e=H.inject("globalCompConfig",{}),n=t,{t:i}=bs.useI18n(),a=r,o=H.ref([]),s=H.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:l}=aB(o),c=H.ref(l.value),u=H.computed(()=>a.isUnFixTbHeight||e.HbLibListPageContainer?.isUnFixTbHeight||!1);H.watch(()=>a.columns,v=>{const p=v.filter(b=>b!=null&&b.checked);o.value=p.map(b=>{let C={...b,title:b.title||b.label,align:b.align||e.listTable?.align||"center"};C.ellipsis&&!C.needTooltip&&(C.needTooltip=!0);let w=a.defaultWidth||e.listTable?.defaultColWidth||150;if(!C.width)C.width=w;else if(typeof C.width=="string"){const B=parseInt(C.width,10);C.width=isNaN(B)?w:B}return C.resizable===void 0&&(C.resizable=!0),C});const{tableWidth:m}=aB(o);c.value=m.value},{immediate:!0,deep:!0});const f=sT(()=>{n("resizeCol",o.value)},e.listTable?.colSaveTimeOut||800),h=(v,p)=>{if(p){const m=typeof v=="string"?parseInt(v,10):v;p.width=isNaN(m)?e.listTable?.defaultColWidth||150:m,H.nextTick(()=>{f()})}},A=(v,p,m)=>{v?.current&&n("change",v,p,m)},d=(v,p="YYYY-MM-DD HH:mm:ss")=>v?qI(v).format(p):"",g=(v,p)=>v&&p[v]||"",y=(v,p=e.listTable?.ellipsisNumber||20)=>v?v.length>p?`${v.substring(0,p)}...`:v:"";return(v,p)=>{const m=H.resolveComponent("a-empty"),b=H.resolveComponent("a-tooltip"),C=H.resolveComponent("HbLibCopy"),w=H.resolveComponent("a-tag"),B=H.resolveComponent("a-table");return H.openBlock(),H.createElementBlock("div",{class:H.normalizeClass(["hb-lib-list-table",{"nowrap-table":a.rowHeight}]),style:H.normalizeStyle({"--hb-lib-table-td-height":r.rowHeight&&r.rowHeight+"px"||""})},[v.$slots.tableActLeft?(H.openBlock(),H.createElementBlock("section",Die,[H.renderSlot(v.$slots,"tableActLeft",{},void 0,!0),H.renderSlot(v.$slots,"tableActRight",{},void 0,!0)])):H.createCommentVNode("",!0),H.createVNode(B,H.mergeProps(v.$attrs,{bordered:"",columns:o.value,"table-layout":"fixed",scroll:u.value?{x:c.value}:{x:c.value,y:H.unref(s).tableHeight},onResizeColumn:h,onChange:A}),H.createSlots({emptyText:H.withCtx(()=>[H.createElementVNode("div",Rie,[H.createVNode(m,{description:H.unref(i)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[v.$slots.headerCell?{name:"headerCell",fn:H.withCtx(({column:k})=>[H.renderSlot(v.$slots,"headerCell",{column:k,title:k.title},()=>[H.createTextVNode(H.toDisplayString(k.title),1)],!0)]),key:"0"}:void 0,v.$slots.bodyCell?{name:"bodyCell",fn:H.withCtx(({column:k,record:Q,index:x,text:L})=>[H.renderSlot(v.$slots,"bodyCell",{column:k,record:Q,index:x,text:L},void 0,!0),k&&k.needTooltip&&!k.needCopy?(H.openBlock(),H.createBlock(b,{key:0,placement:r.tooltipPlacement},{title:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(Q[k.dataIndex]),1)]),default:H.withCtx(()=>[H.createTextVNode(" "+H.toDisplayString(Q[k.dataIndex]),1)]),_:2},1032,["placement"])):k&&k.needCopy&&!k.needTooltip?(H.openBlock(),H.createElementBlock("div",Mie,[H.createTextVNode(H.toDisplayString(Q[k.dataIndex])+" ",1),H.createVNode(C,{"cp-text":Q[k.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):H.createCommentVNode("",!0),k&&k.needTooltip&&k.needCopy?(H.openBlock(),H.createElementBlock("div",Tie,[H.createVNode(b,{placement:r.tooltipPlacement},{title:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(Q[k.dataIndex]),1)]),default:H.withCtx(()=>[H.createTextVNode(" "+H.toDisplayString(y(Q[k.dataIndex],k.strLen)),1)]),_:2},1032,["placement"]),H.createVNode(C,{"cp-text":Q[k.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):k&&k.needFormat?(H.openBlock(),H.createElementBlock(H.Fragment,{key:3},[H.createTextVNode(H.toDisplayString(d(Q[k.dataIndex],k.format)),1)],64)):k&&k.tags?(H.openBlock(),H.createElementBlock(H.Fragment,{key:4},[g(Q[k.dataIndex],k.tags)?(H.openBlock(),H.createBlock(w,{key:0,color:g(Q[k.dataIndex],k.tags)},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(Q[k.dataIndex]),1)]),_:2},1032,["color"])):H.createCommentVNode("",!0)],64)):H.createCommentVNode("",!0)]),key:"1"}:void 0,v.$slots.expandedRowRender?{name:"expandedRowRender",fn:H.withCtx(({record:k,index:Q})=>[H.renderSlot(v.$slots,"expandedRowRender",{record:k,index:Q},void 0,!0)]),key:"2"}:void 0,v.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:H.withCtx(({column:k})=>[H.renderSlot(v.$slots,"customFilterDropdown",{column:k},void 0,!0)]),key:"3"}:void 0,v.$slots.customFilterIcon?{name:"customFilterIcon",fn:H.withCtx(({column:k})=>[H.renderSlot(v.$slots,"customFilterIcon",{column:k},void 0,!0)]),key:"4"}:void 0,v.$slots.expandIcon?{name:"expandIcon",fn:H.withCtx(({expanded:k,record:Q,index:x})=>[H.renderSlot(v.$slots,"expandIcon",{expanded:k,record:Q,index:x},void 0,!0)]),key:"5"}:void 0,v.$slots.footer?{name:"footer",fn:H.withCtx(()=>[H.renderSlot(v.$slots,"footer",{},void 0,!0)]),key:"6"}:void 0,v.$slots.summary?{name:"summary",fn:H.withCtx(()=>[H.renderSlot(v.$slots,"summary",{},void 0,!0)]),key:"7"}:void 0,v.$slots.title?{name:"title",fn:H.withCtx(()=>[H.renderSlot(v.$slots,"title",{},void 0,!0)]),key:"8"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-6c43044f"]])),Fie={class:"hb-lib-table-setting-box"},Nie={key:0,class:"hb-lib-table-drag-item"},Lie={key:0,class:"hb-lib-table-drag-item-act"},Oie=["onClick"],Pie=["onClick"],Gie={class:"hb-lib-table-set-btn-group"},Uie={class:"select-all-container",style:{"margin-right":"10px"}},cT=Ii(Gi(H.defineComponent({name:"HbLibTableColumnSet",__name:"HbTableColumnSet",props:{hasClean:{type:Boolean,default:!0},index:{type:Number,default:0},selectedRowKeysLength:{type:Number,default:0},change:{type:Function,default:()=>{}},tableColumns:{type:Array,default:[]},localColumns:{type:Array,default:[]}},emits:["on-get-columns"],setup(r,{emit:t}){const e=t,{t:n}=bs.useI18n(),i=r,a=H.ref([]),o=H.computed(()=>l.value.filter(k=>k.checked));H.ref([]);const s=H.ref(!1),l=H.ref([]),c=H.ref(null),u=H.computed(()=>o.value.length>0&&o.value.length===a.value.length),f=H.computed(()=>o.value.length>0&&o.value.length<a.value.length),h=k=>{c.value=k.oldIndex},A=k=>{const Q=k.newIndex;if(a.value.some(L=>L.fixed==="left"||L.fixed==="right"||L.fixed===!0)){const L=a.value.filter(W=>W.fixed==="left").length,O=a.value.length-a.value.filter(W=>W.fixed==="right").length;if((L>0&&Q<L||O<a.value.length&&Q>=O)&&(Cr.message.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")),c.value!==null)){const W=l.value.splice(Q,1)[0];l.value.splice(c.value,0,W)}}c.value=null},d=k=>{k.target.checked?l.value.forEach(x=>x.checked=!0):l.value.forEach(x=>{x.dataIndex!=="action"&&x.dataIndex!=="actions"&&(x.checked=!1)})},g=k=>{if(k.title&&k.title.tag)return C(k.title);if(typeof k.title=="function"){let Q=k.title();return typeof Q=="string"?Q:k.titleText||k.title2}return k.title||k.title2},y=()=>i.localColumns.map(k=>({...k,label:g(k),value:k.dataIndex,checked:k.checked||k.checked===void 0})),v=()=>{a.value=y(),l.value=[...a.value];let k=[];i.tableColumns.forEach(function(Q){k.push(Q.dataIndex)})},p=(k,Q)=>{Q?k.checked=!0:k.checked=!1},m=()=>{a.value=[...l.value],e("on-get-columns",a.value),s.value=!1},b=()=>{a.value=y(),l.value=[...a.value];let k=[];i.tableColumns.forEach(function(Q){k.push(Q.dataIndex)})},C=k=>k.children[0].text,w=k=>{delete k.fixed;const Q=l.value.findIndex(x=>x.value===k.value);if(Q!==-1){let x=-1;for(let L=0;L<l.value.length;L++)l.value[L].fixed==="left"&&(x=L);if(x!==-1&&Q!==x+1){const L=[...l.value],[O]=L.splice(Q,1);L.splice(x+1,0,O),l.value=L}}},B=k=>{const Q=l.value.findIndex(x=>x.value===k.value);if(Q!==-1){let x=-1;for(let M=0;M<l.value.length;M++)l.value[M].fixed==="left"&&(x=M);const L=[...l.value],[O]=L.splice(Q,1);O.fixed="left";const W=x===-1?0:x+1;L.splice(W,0,O),l.value=L}};return H.watch(()=>i.tableColumns,()=>{b()},{immediate:!0,deep:!0}),(k,Q)=>{const x=H.resolveComponent("a-tooltip"),L=H.resolveComponent("a-button");return H.openBlock(),H.createElementBlock("div",Fie,[H.createVNode(H.unref(Cr.Popover),{visible:s.value,"onUpdate:visible":Q[1]||(Q[1]=O=>s.value=O),title:H.unref(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop","overlay-class-name":"column_setting_popover"},{content:H.withCtx(()=>[H.createVNode(H.unref(KI),{modelValue:l.value,"onUpdate:modelValue":Q[0]||(Q[0]=O=>l.value=O),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:h,onEnd:A},{item:H.withCtx(({element:O})=>[O.fixed!=="right"?(H.openBlock(),H.createElementBlock("div",Nie,[H.createVNode(H.unref(Cr.Checkbox),{checked:O.checked,onChange:W=>p(O,W.target.checked)},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(O.label),1)]),_:2},1032,["checked","onChange"]),O.checked?(H.openBlock(),H.createElementBlock("section",Lie,[H.createElementVNode("span",{class:H.normalizeClass(O.fixed?"drag-hide":"drag-handle")}," ⋮⋮ ",2),O.fixed?(H.openBlock(),H.createBlock(x,{key:0},{title:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(H.unref(n)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:H.withCtx(()=>[H.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:W=>w(O)},[...Q[2]||(Q[2]=[H.createElementVNode("svg",{t:"1759048615600",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7283",width:"200",height:"200"},[H.createElementVNode("path",{d:"M771.798516 586.270988c-6.897306 8.296759-17.293245 12.894963-27.989067 12.894963h-0.299882l-175.931277-1.199532-55.178446 422.834831-0.399844 3.19875-0.399844-3.19875-55.178446-422.834831-175.931277 1.199532h-0.299882c-10.795783 0-21.191722-4.598204-27.989067-12.894963-6.897306-8.39672-8.796564-18.292854-8.596642-27.28934 0.399844-13.094885 5.697774-25.590004 14.394377-35.386177l61.87583-69.872706c15.393987-17.393206 24.790316-39.284654 26.589613-62.475596l20.292074-250.402187c0.599766-7.796954-2.199141-15.593909-7.796955-21.091761l-38.584927-38.584927c-19.692308-16.693479-21.891449-33.58688-17.79305-47.581414 5.897696-20.092152 24.690355-33.58688 45.582194-33.58688h0.199922l163.236236 0.499805h0.799688l163.236236-0.499805h0.199922c20.891839 0 39.684498 13.494729 45.582194 33.58688 4.098399 13.994533 1.899258 30.887934-17.79305 47.581414L664.940258 119.753221c-5.597813 5.597813-8.39672 13.294807-7.796955 21.091761L677.435377 391.247169c1.899258 23.190941 11.195627 45.08239 26.589613 62.475596l61.87583 69.872706c8.696603 9.796173 13.894572 22.291292 14.394377 35.386177 0.299883 8.996486-1.599375 18.89262-8.496681 27.28934z","p-id":"7284",fill:"#ff5000"})],-1)])],8,Oie)]),_:2},1024)):H.createCommentVNode("",!0),O.fixed?H.createCommentVNode("",!0):(H.openBlock(),H.createBlock(x,{key:1},{title:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(H.unref(n)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:H.withCtx(()=>[H.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:W=>B(O)},[...Q[3]||(Q[3]=[H.createElementVNode("svg",{t:"1759048735643",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7481",width:"200",height:"200"},[H.createElementVNode("path",{d:"M381.298 418.828h-157.703l-37.575 38.272 155.61 158.377-278.212 345.128 356.040-265.838 154.71 157.41 38.813-39.51 2.407-157.972 238.838-313.29 71.685 73.013 34.695-35.28-310.185-315.743-34.672 35.257 77.287 79.402-311.737 240.773z","p-id":"7482",fill:"#ff5000"})],-1)])],8,Pie)]),_:2},1024))])):H.createCommentVNode("",!0)])):H.createCommentVNode("",!0)]),_:1},8,["modelValue"]),H.createElementVNode("div",Gie,[H.createElementVNode("div",Uie,[H.createVNode(H.unref(Cr.Checkbox),{checked:u.value,indeterminate:f.value,onChange:d},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(H.unref(n)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),i.localColumns.length?(H.openBlock(),H.createBlock(L,{key:0,style:{"margin-right":"6px"},onClick:v},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(H.unref(n)("hbLibComp.hbLibListTableColumsSet.reset")),1)]),_:1})):H.createCommentVNode("",!0),H.createVNode(L,{type:"primary",onClick:m},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(H.unref(n)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:H.withCtx(()=>[H.createVNode(x,{title:H.unref(n)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:H.withCtx(()=>[...Q[4]||(Q[4]=[H.createElementVNode("span",{class:"hb-lib-table-col-set"},[H.createElementVNode("svg",{t:"1759041858618",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5219",width:"200",height:"200"},[H.createElementVNode("path",{d:"M460.8 49.216a102.4 102.4 0 0 1 102.4 0l323.968 187.072c31.68 18.304 51.2 52.096 51.2 88.64V576h-76.8V324.928a25.6 25.6 0 0 0-12.8-22.144L524.8 115.712a25.6 25.6 0 0 0-25.6 0L175.232 302.784a25.6 25.6 0 0 0-12.8 22.144v374.144a25.6 25.6 0 0 0 12.8 22.144L499.2 908.288a25.6 25.6 0 0 0 25.6 0l51.2-29.568v88.64l-12.8 7.424a102.4 102.4 0 0 1-102.4 0l-323.968-187.072a102.4 102.4 0 0 1-51.2-88.64V324.928c0-36.544 19.52-70.4 51.2-88.64L460.8 49.216z","p-id":"5220",fill:"#ff5000"}),H.createElementVNode("path",{d:"M345.6 512a166.4 166.4 0 1 1 332.8 0 166.4 166.4 0 0 1-332.8 0zM512 422.4a89.6 89.6 0 1 0 0 179.2 89.6 89.6 0 0 0 0-179.2zM670.208 736a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4zM670.208 896a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4z","p-id":"5221",fill:"#ff5000"})])],-1)])]),_:1},8,["title"])]),_:1},8,["visible","title"])])}}}),[["__scopeId","data-v-5dd5443c"]])),uT=Ii(Gi(H.defineComponent({name:"HbLibFormTooltipSelect",inheritAttrs:!1,__name:"HbTooltipSelect",props:H.mergeModels({options:{default:()=>[]},tooltipPlacement:{default:"right"},tooltipMaxWidth:{default:280},enableTooltip:{type:Boolean,default:!0},enableEllipsis:{type:Boolean,default:!0}},{value:{default:void 0},valueModifiers:{}}),emits:["update:value"],setup(r,{expose:t}){const e=r,n=H.useAttrs(),i=H.computed(()=>{const d=n,g=d.dropdownClassName;return{...d,dropdownClassName:g??"hb_lib_form_tooltip_select__dropdown"}}),a=H.ref(),o=H.useModel(r,"value"),s=H.computed(()=>e.options??[]),l=H.computed(()=>({maxWidth:typeof e.tooltipMaxWidth=="number"?`${e.tooltipMaxWidth}px`:e.tooltipMaxWidth})),c=d=>d.tooltip??d.label,u=d=>d.key??d.label,f=d=>!!(e.enableTooltip&&c(d));return t({focus:()=>{a.value?.focus?.()},blur:()=>{a.value?.blur?.()},selectRef:a}),(d,g)=>(H.openBlock(),H.createBlock(H.unref(Cr.Select),H.mergeProps({ref_key:"selectRef",ref:a},i.value,{value:o.value,"onUpdate:value":g[0]||(g[0]=y=>o.value=y),class:"hb_lib_form_tooltip_select"}),{default:H.withCtx(()=>[d.$slots.default?H.renderSlot(d.$slots,"default",{key:0},void 0,!0):(H.openBlock(!0),H.createElementBlock(H.Fragment,{key:1},H.renderList(s.value,y=>(H.openBlock(),H.createBlock(H.unref(Cr.SelectOption),H.mergeProps({key:u(y),value:y.value,disabled:y.disabled},{ref_for:!0},y.optionProps),{default:H.withCtx(()=>[f(y)?(H.openBlock(),H.createBlock(H.unref(Cr.Tooltip),{key:0,title:c(y),placement:e.tooltipPlacement,"overlay-style":l.value},{default:H.withCtx(()=>[H.createElementVNode("span",{class:H.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":e.enableEllipsis}])},H.toDisplayString(y.label),3)]),_:2},1032,["title","placement","overlay-style"])):(H.openBlock(),H.createElementBlock("span",{key:1,class:H.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":e.enableEllipsis}])},H.toDisplayString(y.label),3))]),_:2},1040,["value","disabled"]))),128))]),_:3},16,["value"]))}}),[["__scopeId","data-v-13285691"]])),Hie={class:"ant-upload-drag-icon"},jie={class:"ant-upload-text"},Yie={style:{color:"#ff5000"}},Wie={class:"ant-upload-hint"},Jie={key:0,class:"hb_import_btn"},Vie=["href"],fT=Ii(Gi(H.defineComponent({name:"HbLibImportFile",__name:"HbImportFile",props:{title:{default:()=>"文件导入"},modalWidth:{default:600},acceptFile:{default:".xlsx, .xls, .csv,.txt,.docx,.doc,.ppt,.pptx,.png,.jpg,.jpeg,.gif"},isRequired:{type:Boolean,default:!0},templateUrl:{},maxCount:{default:1},multiple:{type:Boolean,default:!1},btnText:{default:()=>"文件上传"},beforeUpload:{},beforeSubmit:{}},setup(r,{expose:t}){const{t:e}=bs.useI18n(),n=H.ref(),i=r,a=H.ref(!1),o=H.reactive({fileList:[],visible:!1}),s=h=>{if(h==null)return;const A=o.fileList.indexOf(h);if(A!==-1){const d=o.fileList.slice();d.splice(A,1),o.fileList=d}},l=()=>{o.visible=!1,o.fileList=[],a.value=!1},c=h=>(o.fileList=[h],i.beforeUpload?i.beforeUpload(h.originFileObj):!1),u=()=>{n.value.validateFields().then(()=>{i.beforeSubmit&&(a.value=!0,i.beforeSubmit(o.fileList).then(()=>{}).finally(()=>{a.value=!1}))})},f=()=>{o.visible=!0};return t({handleCancel:l,openModal:f,confirmLoading:a}),(h,A)=>{const d=H.resolveComponent("a-upload-dragger"),g=H.resolveComponent("a-form-item"),y=H.resolveComponent("a-form"),v=H.resolveComponent("a-modal"),p=H.resolveComponent("a-button");return H.openBlock(),H.createElementBlock(H.Fragment,null,[H.createVNode(v,H.mergeProps({visible:o.visible,"onUpdate:visible":A[0]||(A[0]=m=>o.visible=m),title:i.title,"confirm-loading":a.value},h.$attrs,{width:i.modalWidth,onCancel:l,onOk:u}),{default:H.withCtx(()=>[H.createVNode(y,{ref_key:"modalFormRef",ref:n,model:o},{default:H.withCtx(()=>[H.createVNode(g,{name:"fileList",label:H.unref(e)("hbLibComp.HbImportFile.fileLabel"),rules:[{required:i.isRequired,message:H.unref(e)("hbLibComp.HbImportFile.clickUp")}]},{default:H.withCtx(()=>[H.createVNode(d,{"max-count":i.maxCount,multiple:i.multiple,accept:i.acceptFile,name:"file","file-list":o.fileList,"before-upload":c,onRemove:s},{default:H.withCtx(()=>[H.createElementVNode("p",Hie,[H.createVNode(H.unref(Wo.PlusCircleOutlined),{style:{"font-size":"37px"}})]),H.createElementVNode("p",jie,[H.createTextVNode(H.toDisplayString(H.unref(e)("hbLibComp.HbImportFile.uploadText")),1),H.createElementVNode("span",Yie,H.toDisplayString(H.unref(e)("hbLibComp.HbImportFile.clickUp")),1)]),H.createElementVNode("p",Wie,H.toDisplayString(H.unref(e)("hbLibComp.HbFileUploadModal.format"))+": "+H.toDisplayString(i.acceptFile),1)]),_:1},8,["max-count","multiple","accept","file-list"])]),_:1},8,["label","rules"])]),_:1},8,["model"]),i.templateUrl?(H.openBlock(),H.createElementBlock("p",Jie,[H.createElementVNode("a",{download:"Import_number-template.xlsx",href:i.templateUrl},H.toDisplayString(H.unref(e)("hbLibComp.HbImportFile.downloadTemplate")),9,Vie)])):H.createCommentVNode("",!0)]),_:1},16,["visible","title","confirm-loading","width"]),H.renderSlot(h.$slots,"btn",{},()=>[H.createVNode(p,{type:"primary",onClick:f},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(r.btnText),1)]),_:1})],!0)],64)}}}),[["__scopeId","data-v-a11cda0f"]])),zie={class:"hb_lib_log_modal_content"},Kie={class:"log_remark"},hT=Ii(Gi(H.defineComponent({name:"HbLibLogModal",__name:"HbLogModal",props:{visible:{type:Boolean,default:!1},needBtn:{type:Boolean,default:!1},title:{default:""},width:{default:"45%"},height:{default:"60%"},dataStr:{default:"records"},scrollY:{default:500},params:{default:()=>({})},url:{},columns:{default:void 0},logBtnText:{default:"查看日志"},pagination:{},modalStyle:{},bodyStyle:{},getLogData:{}},emits:["update:visible"],setup(r,{expose:t,emit:e}){const{t:n}=bs.useI18n(),i=H.useSlots(),a=r,o=[{title:n("hbLibComp.HbLogModal.operator"),dataIndex:"userName",width:"15%"},{title:n("hbLibComp.HbLogModal.operateTime"),dataIndex:"operateTime",width:"25%"},{title:n("hbLibComp.HbLogModal.operateContent"),dataIndex:"remark"}],s=H.computed(()=>a.columns||o),l=H.computed(()=>a.title||n("hbLibComp.HbLogModal.operateLogs")),c=H.computed(()=>!!i.title),u=H.ref(!1),f=H.reactive({list:[],pagination:{current:1,pageSize:10,pageSizeOptions:["10","20","50","100"],showQuickJumper:!0,showSizeChanger:!0,showTotal:(p,m)=>m[0]+"-"+m[1]+" 总共"+p+"页",total:0}});H.watch(()=>a.pagination,p=>{p&&(f.pagination={...f.pagination,...p})},{deep:!0,immediate:!0});const h=()=>{const p={pageIndex:f.pagination.current,pageSize:f.pagination.pageSize,query:a.params};a.getLogData&&(u.value=!0,a.getLogData(p).then(m=>{Number(m.code)==200?(f.pagination.total=Number(m.data.total),f.list=m.data[a.dataStr]||[]):Cr.message.error(m.message)}).finally(()=>{u.value=!1}))},A=p=>{f.pagination.current=p.current,f.pagination.pageSize=p.pageSize,h()},d=()=>{f.list=[],v("update:visible",!1)},g=()=>{v("update:visible",!0)},y=(p,m="YYYY-MM-DD HH:mm:ss")=>p?qI(p).format(m):"",v=e;return H.watch(()=>a.visible,p=>{p&&h()}),t({close:d,loading:u}),(p,m)=>{const b=H.resolveComponent("a-tooltip"),C=H.resolveComponent("HbLibCopy"),w=H.resolveComponent("a-table"),B=H.resolveComponent("a-button"),k=H.resolveComponent("HbLibModal");return H.openBlock(),H.createElementBlock(H.Fragment,null,[H.createVNode(k,H.mergeProps(p.$attrs,{visible:r.visible,title:c.value?void 0:l.value,width:r.width,height:r.height,modalStyle:r.modalStyle,bodyStyle:r.bodyStyle,onCancel:d}),H.createSlots({footer:H.withCtx(()=>[H.createVNode(B,{onClick:d},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(H.unref(n)("hbLibComp.HbLogModal.close")),1)]),_:1})]),default:H.withCtx(()=>[H.createElementVNode("div",zie,[H.createVNode(w,{bordered:"",rowKey:"id",columns:s.value,dataSource:f.list,pagination:f.pagination,loading:u.value,scroll:{y:r.scrollY},onChange:A},H.createSlots({bodyCell:H.withCtx(({column:Q,record:x})=>[Q&&Q.needTooltip?(H.openBlock(),H.createElementBlock(H.Fragment,{key:0},[Q.needTooltip?(H.openBlock(),H.createBlock(b,{key:0},{title:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(x[Q.dataIndex]),1)]),default:H.withCtx(()=>[H.createTextVNode(" "+H.toDisplayString(x[Q.dataIndex]),1)]),_:2},1024)):H.createCommentVNode("",!0)],64)):H.createCommentVNode("",!0),Q&&Q.needCopy?(H.openBlock(),H.createElementBlock(H.Fragment,{key:1},[H.createElementVNode("div",Kie,H.toDisplayString(x[Q.dataIndex]),1),H.createVNode(C,{"cp-text":x[Q.dataIndex],style:{position:"relative"}},null,8,["cp-text"])],64)):H.createCommentVNode("",!0),Q&&Q.needFormat?(H.openBlock(),H.createElementBlock(H.Fragment,{key:2},[H.createTextVNode(H.toDisplayString(y(x[Q.dataIndex],Q.operateTime)),1)],64)):H.createCommentVNode("",!0)]),_:2},[p.$slots.headerCell?{name:"headerCell",fn:H.withCtx(({column:Q})=>[H.renderSlot(p.$slots,"headerCell",{column:Q},()=>[H.createTextVNode(H.toDisplayString(Q.title),1)],!0)]),key:"0"}:void 0]),1032,["columns","dataSource","pagination","loading","scroll"])])]),_:2},[c.value?{name:"title",fn:H.withCtx(()=>[H.renderSlot(p.$slots,"title",{},void 0,!0)]),key:"0"}:void 0]),1040,["visible","title","width","height","modalStyle","bodyStyle"]),r.needBtn?H.renderSlot(p.$slots,"default",{key:0},()=>[H.createVNode(B,{onClick:g},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(r.logBtnText),1)]),_:1})],!0):H.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-ac23253c"]])),lB=Symbol("GLOBAL_CONFIG_KEY"),qie={importFile:{isRequired:!1,modalWidth:800,maxCount:1,multiple:!1,acceptFile:"image/*"},listTable:{align:"left",colSaveTimeOut:800,defaultColWidth:200,ellipsisNumber:10},HbLibListPageContainer:{offsetBottom:20,minHeight:300,timeOut:100,offsetHeight:110,isUnFixTbHeight:!0},HbLibFormItemFilterModal:{modalWidth:800,defaultShowCount:2},HbLibDetailBox:{descLabelWidth:150,descValueWidth:200,needSetDesDefault:!1,desDefault:"-",setDefaultValueTimeOut:600,backTopBottom:150},HbLibUnDetailBox:{backTopBottom:150},HbLibCard:{formItemMb:10}},Xie={class:"hb_ui_config"},AT=Ii(H.defineComponent({name:"HbUiConfig",__name:"hbUiConfig",props:{config:{}},setup(r){const t=r;let e=null;return H.watch(()=>t.config,n=>{e=H.reactive(sA.merge({},qie,n))},{deep:!0,immediate:!0}),H.provide(lB,e),(n,i)=>(H.openBlock(),H.createElementBlock("div",Xie,[H.renderSlot(n.$slots,"default")]))}})),Zie={class:"hb_card"},$ie={key:0,class:"hb_card_header"},eae={class:"hb_fix"},tae={class:"hb_card_header-title"},rae={class:"hb_card_header-action"},nae={class:"hb_card_body"},dT=Ii(Gi(H.defineComponent({name:"HbLibCard",__name:"HbLibCard",props:{cardTitle:{type:String,default:""},isForm:{type:Boolean,default:!1},isModal:{type:Boolean,default:!1},layout:{type:Number,default:2},formItemMb:{type:Number}},setup(r){const t=H.inject(lB),e=r,n=H.computed(()=>{let i=e.formItemMb||t?.HbLibCard?.formItemMb;return i?{"--hb-card-form-item-mb":i+"px"}:{}});return(i,a)=>(H.openBlock(),H.createElementBlock("div",H.mergeProps({class:"hb_card_wrapper"},i.$attrs),[H.createElementVNode("div",{class:H.normalizeClass(r.isModal?"modal__module-card":"__module-card")},[H.createElementVNode("div",Zie,[r.cardTitle?(H.openBlock(),H.createElementBlock("div",$ie,[H.createElementVNode("div",eae,[H.createElementVNode("span",tae,[H.renderSlot(i.$slots,"cardTitle",{},()=>[H.createTextVNode(H.toDisplayString(r.cardTitle),1)],!0)]),H.createElementVNode("div",rae,[H.renderSlot(i.$slots,"cardAct",{},void 0,!0)])])])):H.createCommentVNode("",!0),H.createElementVNode("div",nae,[H.createElementVNode("section",{class:H.normalizeClass({hb_card_form:r.isForm&&!r.isModal,hb_card_flex_form:r.isForm&&r.isModal,l1c:r.layout==1,l3c:r.layout==3,l4c:r.layout==4}),style:H.normalizeStyle(n.value)},[H.renderSlot(i.$slots,"default",{},void 0,!0)],6)])])],2)],16))}}),[["__scopeId","data-v-4d8c1b1b"]])),iae=["onClick"],aae={class:"step"},oae={key:0,class:"line"},sae=["title"],gT=Ii(Gi(H.defineComponent({name:"HbLibAnchor",__name:"HbLibAnchor",props:{anchors:{},offsetTop:{},containerSelector:{}},setup(r){const t=r,e=H.ref(""),n=t.offsetTop??160,i=H.computed(()=>t.anchors.filter(l=>typeof l.visible=="function"?l.visible():l.visible!==!1)),a=()=>{const l=t.containerSelector||"#subpackage_container";return document.querySelector(l)||window},o=l=>{const c=a(),u=l.target.startsWith("#")||l.target.startsWith(".")?l.target:`#${l.target}`,f=document.querySelector(u);if(!f)return;let h=f.offsetTop;c instanceof HTMLElement&&(h-=c.offsetTop),h-=n,c instanceof Window?window.scrollTo({top:h,behavior:"smooth"}):c.scrollTo({top:h,behavior:"smooth"}),e.value=l.target},s=()=>{const l=a();let c=0;l instanceof Window?c=window.scrollY+n+5:c=l.scrollTop+n+5;let u=i.value[0]?.target||"";for(const f of i.value){const h=f.target.startsWith("#")||f.target.startsWith(".")?f.target:`#${f.target}`,A=document.querySelector(h);if(!A)continue;let d=A.offsetTop;l instanceof HTMLElement&&(d-=l.offsetTop),c>=d&&(u=f.target)}e.value=u};return H.onMounted(()=>{a().addEventListener("scroll",s),s()}),H.onBeforeUnmount(()=>{a().removeEventListener("scroll",s)}),(l,c)=>(H.openBlock(),H.createElementBlock("div",{class:"anchors",style:H.normalizeStyle({top:`${H.unref(n)}px`})},[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(i.value,(u,f)=>(H.openBlock(),H.createElementBlock("div",{key:u.target,class:H.normalizeClass(["anchor-item",{isActive:e.value===u.target}]),onClick:h=>o(u)},[H.createElementVNode("div",aae,[f!==i.value.length-1?(H.openBlock(),H.createElementBlock("div",oae)):H.createCommentVNode("",!0),c[0]||(c[0]=H.createElementVNode("div",{class:"circle"},null,-1))]),H.createElementVNode("span",{class:"title",title:u.title},H.toDisplayString(u.title.length>12?u.title.slice(0,12)+"...":u.title),9,sae)],10,iae))),128))],4))}}),[["__scopeId","data-v-d51548d8"]])),lae={class:"hb_detail_top_act_left"},cae={key:1,class:"hb_detail_top_wrapper_sticky"},uae={class:"hb_detail_top_act"},fae={key:0,class:"hb_detail_all_info"},hae={class:"hb_detail_all_info_left"},Aae={class:"hb_detail_info_title"},dae={key:0,class:"hb_detail_info_content"},gae={class:"create_by"},pae={class:"hb_detail_all_info_right"},vae={class:"hb_edit_detail_content_wrapper"},yae={class:"hb_detail_content"},mae={class:"hb-back-top-inner"},pT=Ii(Gi(H.defineComponent({name:"HbLibDetailBox",__name:"HbLibDetailBox",props:{stickyTitle:{type:String,default:""},needTotalInfoBox:{type:Boolean,default:!0},totalInfo:{type:Object,default:()=>({totalInfoTitle:"",totalInfoSubTitle1:"",totalInfoSubTitle2:"",totalInfoSubVal1:"",totalInfoSubVal2:""})},container:{type:String,default:"#subpackage_container"},backTopBottom:{type:Number},backFn:{type:Function},needFixWidth:{type:Boolean,default:!0},descLabelWidth:{type:Number},descValueWidth:{type:Number},spinning:{type:Boolean,default:!1}},setup(r){const{t}=bs.useI18n(),e=r,n=H.inject(lB),i=()=>{e.backFn?e.backFn():window.history.back()},a=H.computed(()=>e.backTopBottom||n?.HbLibDetailBox?.backTopBottom||80),o=H.computed(()=>{const g={};return e.needFixWidth?{hb_need_set_desc_label_width:e.descLabelWidth||n?.HbLibDetailBox?.descLabelWidth,hb_need_set_desc_value_width:e.descValueWidth||n?.HbLibDetailBox?.descValueWidth}:g}),s=()=>document.querySelector(e.container),l=H.ref(!1),c=H.ref(null),{top:u}=lA.useElementBounding(c),f=H.computed(s),{y:h}=lA.useScroll(f);H.watch(h,g=>{l.value=g>u.value},{immediate:!0});const A=g=>{document.querySelectorAll(".hb_card_body").forEach(v=>{v.querySelectorAll(".ant-descriptions-item-content span").forEach(m=>{m.textContent?.trim()||(m.textContent=g)})})};let d=null;return H.onMounted(()=>{n?.HbLibDetailBox?.needSetDesDefault&&(d=setTimeout(()=>{A(n?.HbLibDetailBox?.desDefault)},n?.HbLibDetailBox?.setValuetimeOut))}),H.onUnmounted(()=>{d&&clearTimeout(d)}),(g,y)=>{const v=H.resolveComponent("RollbackOutlined"),p=H.resolveComponent("a-divider"),m=H.resolveComponent("a-spin");return H.openBlock(),H.createBlock(m,{spinning:r.spinning},{default:H.withCtx(()=>[H.createElementVNode("div",{class:H.normalizeClass(["hb_detail_wrapper",o.value]),style:H.normalizeStyle({"--hb-detail-desc-label-width":o.value?.hb_need_set_desc_label_width+"px","--hb-detail-desc-value-width":o.value?.hb_need_set_desc_value_width+"px"})},[r.needTotalInfoBox?(H.openBlock(),H.createElementBlock("div",{key:0,class:H.normalizeClass(["hb_detail_top_act_sticky",l.value?"can_show":""])},[H.createElementVNode("div",lae,[H.createVNode(v,{style:{color:"#ff5000"}}),H.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:i},H.toDisplayString(H.unref(t)("hbLibComp.HbLibDetailBox.back")),1),H.createVNode(p,{type:"vertical"}),H.createElementVNode("span",null,H.toDisplayString(r.stickyTitle),1)]),y[0]||(y[0]=H.createElementVNode("div",{class:"hb_detail_top_act_right"},null,-1))],2)):H.createCommentVNode("",!0),r.needTotalInfoBox?(H.openBlock(),H.createElementBlock("div",cae,[H.createElementVNode("div",uae,[H.createVNode(v),H.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:i},H.toDisplayString(H.unref(t)("hbLibComp.HbLibDetailBox.back")),1),H.createVNode(p,{type:"vertical"}),H.createElementVNode("span",null,H.toDisplayString(r.stickyTitle),1)]),r.needTotalInfoBox?(H.openBlock(),H.createElementBlock("div",fae,[H.createElementVNode("aside",hae,[H.renderSlot(g.$slots,"totalInfoLeft",{},()=>[H.createElementVNode("div",Aae,H.toDisplayString(r.totalInfo.totalInfoTitle),1),r.totalInfo.totalInfoSubTitle1?(H.openBlock(),H.createElementBlock("div",dae,[H.createElementVNode("span",gae,H.toDisplayString(r.totalInfo.totalInfoSubTitle1)+H.toDisplayString(r.totalInfo.totalInfoSubVal1),1),H.createElementVNode("span",null,H.toDisplayString(r.totalInfo.totalInfoSubTitle2)+H.toDisplayString(r.totalInfo.totalInfoSubVal2),1)])):H.createCommentVNode("",!0)],!0)]),H.createElementVNode("aside",pae,[H.renderSlot(g.$slots,"totalInfoRight",{},void 0,!0)])])):H.createCommentVNode("",!0)])):H.createCommentVNode("",!0),H.createElementVNode("div",vae,[H.createElementVNode("div",yae,[H.renderSlot(g.$slots,"detailContent",{},void 0,!0)])]),H.createVNode(H.unref(Cr.BackTop),{target:s,style:H.normalizeStyle({bottom:a.value+"px"})},{default:H.withCtx(()=>[H.createElementVNode("div",mae,[H.createVNode(H.unref(Wo.ToTopOutlined))])]),_:1},8,["style"])],6)]),_:3},8,["spinning"])}}}),[["__scopeId","data-v-f2c2c397"]])),vT=Ii(Gi(H.defineComponent({name:"HbLibFooterBar",__name:"HbLibFooterBar",props:{buttons:{type:Array,default:()=>[]},getContainer:{type:Function,default:()=>{const r=document.querySelector("#subpackage_container");return r&&r.scrollHeight>r.clientHeight?r:window}},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},placeLeft:{type:Boolean,default:!1},placeRight:{type:Boolean,default:!1}},setup(r){const t=r,e=(l,c=300)=>sT(l,c),n=H.computed(()=>t.buttons.filter(c=>{if(c.condition===void 0||c.condition===null)return!0;if(typeof c.condition=="boolean")return c.condition;if(typeof c.condition=="function")return c.condition()}).map(c=>({...c,onClick:e(c.onClick,c.debounceTime||300)}))),i=H.ref(0),a=l=>{let c=0;return(Array.isArray(l)?l:[l]).forEach(f=>{let h=[];if(f.startsWith("#")){const A=document.getElementById(f.slice(1));A&&h.push(A)}else h=Array.from(document.getElementsByClassName(f));h.forEach(A=>{c+=A.offsetWidth||0})}),c},o=()=>{t.leftElements&&(i.value=a(t.leftElements)+1)};let s=null;return H.onMounted(()=>{const l=t.getContainer();l!==window&&l instanceof HTMLElement&&l.addEventListener("scroll",()=>{}),o(),s=new MutationObserver(()=>{o()});const c=document.body;s.observe(c,{childList:!0,subtree:!0,attributes:!0})}),H.onBeforeUnmount(()=>{s&&s.disconnect()}),(l,c)=>{const u=H.resolveComponent("a-button"),f=H.resolveComponent("a-space"),h=H.resolveComponent("a-affix"),A=H.resolveDirective("has");return H.openBlock(),H.createElementBlock("div",{class:"footer-affix-wrapper",style:H.normalizeStyle({"--pageHeaderOrFonterLeft":i.value+"px"})},[H.createVNode(h,{"offset-bottom":0,target:r.getContainer,style:{width:"100%"}},{default:H.withCtx(()=>[H.createElementVNode("div",{class:H.normalizeClass({"page-footer-bar":!0,page_footer_btn_left:r.placeLeft,page_footer_btn_right:r.placeRight})},[H.createVNode(f,null,{default:H.withCtx(()=>[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(n.value,d=>H.withDirectives((H.openBlock(),H.createBlock(u,{key:d.key,type:d.type||"default",danger:d.danger,loading:d.loading,disabled:d.disabled,onClick:d.onClick,class:"hb_list_page_button"},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(d.label),1)]),_:2},1032,["type","danger","loading","disabled","onClick"])),[[A,d.permissionsTag||null]])),128))]),_:1})],2)]),_:1},8,["target"])],4)}}}),[["__scopeId","data-v-23f13fb5"]])),Iae={class:"modal__detail-content"},yT=Ii(Gi(H.defineComponent({name:"HbLibModal",__name:"HbLibModal",props:{visible:{type:Boolean,default:!1},type:{type:String,default:"add"},title:{type:String,default:""},modalStyle:{type:Object,default:()=>({})},bodyStyle:{type:Object,default:()=>({top:"10px"})},wrapStyle:{type:Object,default:()=>({})},spinning:{type:Boolean,default:!1},descLabelWidth:{type:Number},descValueWidth:{type:Number}},emits:["update:visible","ok","cancel"],setup(r,{expose:t,emit:e}){const n=e,i=r,a=H.computed({get:()=>i.visible,set:x=>n("update:visible",x)}),o=H.ref(null),s=H.computed(()=>({top:"10px",...i.modalStyle})),l=H.computed(()=>({overflow:"hidden",...i.modalStyle})),c=H.computed(()=>({maxHeight:"calc(100vh - 120px)",overflowY:"auto",padding:"0 6px",...i.bodyStyle})),{x:u,y:f,isDragging:h}=lA.useDraggable(o),A=H.ref(0),d=H.ref(0),g=H.ref(!1),y=H.ref(0),v=H.ref(0),p=H.ref(0),m=H.ref(0),b=H.ref({left:0,right:0,top:0,bottom:0});let C=null;const w=()=>{y.value=0,v.value=0,p.value=0,m.value=0,g.value=!1};H.watch(a,x=>{x?setTimeout(()=>{w()},50):(C&&clearTimeout(C),C=setTimeout(()=>{y.value=0,v.value=0,p.value=0,m.value=0},300))}),H.watch([u,f],()=>{if(!g.value){A.value=u.value,d.value=f.value;const x=document.body.getBoundingClientRect(),L=o.value.getBoundingClientRect();b.value.right=x.width-L.width,b.value.bottom=x.height-L.height,p.value=y.value,m.value=v.value}g.value=!0}),H.watch(h,()=>{h||(g.value=!1)}),H.watchEffect(()=>{g.value&&(y.value=p.value+Math.min(Math.max(b.value.left,u.value),b.value.right)-A.value,v.value=m.value+Math.min(Math.max(b.value.top,f.value),b.value.bottom)-d.value)});const B=H.computed(()=>({transform:`translate(${y.value}px, ${v.value}px)`})),k=()=>{n("cancel")},Q=()=>{n("ok")};return H.onUnmounted(()=>{C&&clearTimeout(C)}),t({handleOk:Q,handleCancel:k}),(x,L)=>{const O=H.resolveComponent("a-spin"),W=H.resolveComponent("a-modal");return H.openBlock(),H.createBlock(W,H.mergeProps({style:s.value,bodyStyle:c.value,ref:"modalRef",visible:a.value,"onUpdate:visible":L[0]||(L[0]=M=>a.value=M),"wrap-style":l.value,onOk:Q,onCancel:k},x.$attrs),H.createSlots({title:H.withCtx(()=>[H.createElementVNode("div",{ref_key:"modalTitleRef",ref:o,style:{width:"100%",cursor:"move"}},[H.renderSlot(x.$slots,"title",{},()=>[H.createTextVNode(H.toDisplayString(r.title),1)],!0)],512)]),modalRender:H.withCtx(({originVNode:M})=>[(H.openBlock(),H.createElementBlock("div",{key:a.value,style:H.normalizeStyle(B.value)},[(H.openBlock(),H.createBlock(H.resolveDynamicComponent(M)))],4))]),default:H.withCtx(()=>[H.createVNode(O,{spinning:i.spinning},{default:H.withCtx(()=>[H.createElementVNode("div",{class:H.normalizeClass([r.type=="detail"?"hb_detail_modal_wrapper":"hb_modal_wrapper",r.descLabelWidth&&"hb_need_set_desc_label_width",r.descValueWidth&&"hb_need_set_desc_value_width"]),style:H.normalizeStyle({"--hb-detail-desc-label-width":r.descLabelWidth+"px","--hb-detail-desc-value-width":r.descValueWidth+"px"})},[H.createElementVNode("div",Iae,[H.renderSlot(x.$slots,"default",{},void 0,!0)])],6)]),_:3},8,["spinning"])]),_:2},[x.$slots.footer?{name:"footer",fn:H.withCtx(()=>[H.renderSlot(x.$slots,"footer",{},void 0,!0)]),key:"0"}:void 0]),1040,["style","bodyStyle","visible","wrap-style"])}}}),[["__scopeId","data-v-866a050a"]])),bae={key:0,class:"hb_edit_header"},Cae={class:"__detail-content"},wae={key:1,class:"hb_edit_footer"},Eae={class:"hb-back-top-inner"},mT=Ii(Gi(H.defineComponent({name:"HbLibUnDetailBox",__name:"HbLibUnDetailBox",props:{container:{type:String,default:"#subpackage_container"},formLabelWidth:{type:Number,default:0},backTopBottom:{type:Number},spinning:{type:Boolean,default:!1}},setup(r){const t=H.ref("vertical"),e=r,n=()=>document.querySelector(e.container),i=H.inject("GLOBAL_CONFIG_KEY"),a=H.computed(()=>e.backTopBottom||i?.HbLibUnDetailBox?.backTopBottom||80);return(o,s)=>(H.openBlock(),H.createBlock(H.unref(Cr.Spin),{spinning:r.spinning},{default:H.withCtx(()=>[H.createElementVNode("div",H.mergeProps({class:"hb_edit_wrapper"},o.$attrs,{style:{"--hb-edit-form-label":r.formLabelWidth},class:r.formLabelWidth?"isNeedSetLabelWidth":""}),[o.$slots.editHeader?(H.openBlock(),H.createElementBlock("div",bae,[H.renderSlot(o.$slots,"editHeader",{},void 0,!0)])):H.createCommentVNode("",!0),H.createElementVNode("div",{class:H.normalizeClass(["hb_edit_detail_content_wrapper",t.value==="vertical"?"form_vertical":""])},[H.createElementVNode("div",Cae,[H.renderSlot(o.$slots,"editContent",{},void 0,!0)])],2),o.$slots.editFooter?(H.openBlock(),H.createElementBlock("div",wae,[H.renderSlot(o.$slots,"editFooter",{},void 0,!0)])):H.createCommentVNode("",!0),H.createVNode(H.unref(Cr.BackTop),{target:n,style:H.normalizeStyle({bottom:a.value+"px"})},{default:H.withCtx(()=>[H.createElementVNode("div",Eae,[H.createVNode(H.unref(Wo.ToTopOutlined))])]),_:1},8,["style"])],16)]),_:3},8,["spinning"]))}}),[["__scopeId","data-v-41f1fc73"]])),Bae={class:"hb_edit_header_left"},kae={class:"hb_edit_header_title"},Qae={class:"hb_edit_header_right"},IT=Ii(Gi(H.defineComponent({name:"HbLibPageHeader",__name:"HbLibPageHeader",props:{topElements:{type:[String,Array],default:()=>["#globalHead","#globalNavFrame"]},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},backFn:{type:Function}},setup(r){const{t}=bs.useI18n(),e=r,n=nB.useRoute(),i=H.ref(0),a=H.computed(()=>n?.meta?.title||"");function o(h,A="offsetHeight"){let d=0;return(Array.isArray(h)?h:[h]).forEach(y=>{let v=[];if(y.startsWith("#")){const p=document.getElementById(y.slice(1));p&&v.push(p)}else v=Array.from(document.getElementsByClassName(y));v.forEach(p=>{d+=p[A]||0})}),d}const s=()=>{e.topElements&&(i.value=o(e.topElements))},l=H.ref(0),c=()=>{e.leftElements&&(l.value=o(e.leftElements,"offsetWidth")+1)};let u=null;H.onMounted(()=>{s(),c(),window.addEventListener("resize",s),u=new MutationObserver(()=>{c()});const h=document.body;u.observe(h,{childList:!0,subtree:!0,attributes:!0})}),H.onBeforeUnmount(()=>{window.removeEventListener("resize",s),u&&u.disconnect()}),H.watch(()=>e.topElements,()=>{s()},{immediate:!0});const f=()=>{e.backFn?e.backFn():window.history.back()};return(h,A)=>{const d=H.resolveComponent("a-divider");return H.openBlock(),H.createElementBlock("div",{class:"hb_edit_header",style:H.normalizeStyle({top:i.value+"px","--pageHeaderOrFonterLeft":l.value+"px"})},[H.createElementVNode("aside",Bae,[H.createElementVNode("a",{href:"#",class:"backBtn",onClick:f},H.toDisplayString(H.unref(t)("hbLibComp.HbLibDetailBox.back")),1),H.createVNode(d,{type:"vertical"}),H.createElementVNode("span",kae,H.toDisplayString(a.value),1)]),H.createElementVNode("aside",Qae,[H.renderSlot(h.$slots,"right",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-83fcd208"]])),xae={cpText:{type:String,default:""},K:{type:String,default:""},V:{type:String},L:{type:String},data:{type:[Array,Object]},tooltipTitle:{type:String,default:""},copySuccessTip:{type:String,default:""},copyFailTip:{type:String,default:""},cpStyle:{type:Object,default:()=>({})},classType:{type:String,default:"ab"}},cB=Ii(Gi(H.defineComponent({name:"HbLibCopy",__name:"copy",props:xae,setup(r){const t=r,e=H.ref();H.watchEffect(()=>{e.value=t.data});const n=H.computed(()=>t.tooltipTitle||"复制"),i=H.computed(()=>t.copySuccessTip||"复制成功"),a=H.computed(()=>t.copyFailTip||"复制失败"),o=H.computed(()=>{if(t.cpText)return t.cpText;let l="";if(t.data)if(Array.isArray(t.data)){if(t.K&&t.V&&t.L){const c=t.data.find(u=>u?.[t.K]===t.V);l=c?c[t.L]:""}}else t.K&&(l=t.data[t.K]);return l}),s=()=>{navigator.clipboard.writeText(o.value).then(()=>{Cr.message.success(i.value)}).catch(()=>{Cr.message.error(a.value)})};return(l,c)=>o.value?(H.openBlock(),H.createBlock(H.unref(Cr.Tooltip),{key:0,title:n.value},{default:H.withCtx(()=>[H.createElementVNode("span",{class:"hb-lib-copy-text-eyevue",style:H.normalizeStyle({...l.cpStyle}),onClick:H.withModifiers(s,["stop","prevent"])},[...c[0]||(c[0]=[H.createElementVNode("svg",{t:"1766643849597",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5022",width:"200",height:"200"},[H.createElementVNode("path",{d:"M720 192h-544A80.096 80.096 0 0 0 96 272v608C96 924.128 131.904 960 176 960h544c44.128 0 80-35.872 80-80v-608C800 227.904 764.128 192 720 192z m16 688c0 8.8-7.2 16-16 16h-544a16 16 0 0 1-16-16v-608a16 16 0 0 1 16-16h544a16 16 0 0 1 16 16v608z","p-id":"5023",fill:"#808080ba"}),H.createElementVNode("path",{d:"M848 64h-544a32 32 0 0 0 0 64h544a16 16 0 0 1 16 16v608a32 32 0 1 0 64 0v-608C928 99.904 892.128 64 848 64z","p-id":"5024",fill:"#808080ba"}),H.createElementVNode("path",{d:"M608 360H288a32 32 0 0 0 0 64h320a32 32 0 1 0 0-64zM608 520H288a32 32 0 1 0 0 64h320a32 32 0 1 0 0-64zM480 678.656H288a32 32 0 1 0 0 64h192a32 32 0 1 0 0-64z","p-id":"5025",fill:"#808080ba"})],-1)])],4)]),_:1},8,["title"])):H.createCommentVNode("",!0)}}),[["__scopeId","data-v-2b6710a1"]])),_ae={dragList:{type:Array,required:!0},childrenType:{type:String,default:"html"},dragClass:{type:String,default:"drag-item"},ghostClass:{type:String,default:null},chosenClass:{type:String,default:null},sort:{type:Boolean,default:!0},handle:{type:String,default:""},filter:{type:String,default:""},draggable:{type:String,default:""}},bT=Ii(Gi(H.defineComponent({name:"HbDrag",__name:"index",props:_ae,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(r,{emit:t}){const e=r,n=H.shallowRef([]);H.watch(()=>e.dragList,u=>{n.value=u},{deep:!0,immediate:!0});const i=iB("drag"),a=t,o=u=>{console.log("drag start",u),a("handleDragStart",u)},s=u=>{console.log("drag end",u),a("handleDragEnd",u)},l=u=>{console.log("drag add",u),a("handleDragAdd",u)},c=u=>{console.log("drag remove",u),a("handleDragRemove",u)};return(u,f)=>(H.openBlock(),H.createElementBlock("div",{class:H.normalizeClass(H.unref(i).b())},[u.childrenType=="component"?(H.openBlock(),H.createBlock(H.unref(KI),H.mergeProps({key:0,modelValue:n.value,"onUpdate:modelValue":f[0]||(f[0]=h=>n.value=h),"item-key":"key",class:{[u.dragClass]:u.dragClass}},u.$attrs,{"ghost-class":u.ghostClass,onStart:o,onEnd:s,onAdd:l,onRemove:c}),{item:H.withCtx(({element:h})=>[(H.openBlock(),H.createBlock(H.resolveDynamicComponent(h.component)))]),_:1},16,["modelValue","class","ghost-class"])):(H.openBlock(),H.createBlock(H.unref(KI),H.mergeProps({key:1,modelValue:n.value,"onUpdate:modelValue":f[1]||(f[1]=h=>n.value=h),"item-key":"id",class:{[u.dragClass]:u.dragClass}},u.$attrs,{"ghost-class":u.ghostClass,onStart:o,onEnd:s,onAdd:l,onRemove:c}),{item:H.withCtx(({element:h})=>[H.createElementVNode("div",null,[H.renderSlot(u.$slots,"default",{item:h},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-15b227f5"]])),Sae={triggerWay:{type:String,default:"click"},colText:{type:String,default:""},menuItems:{type:Array,default:()=>[]},getSort:{type:Function}},CT=Ii(Gi(H.defineComponent({name:"HbLibSort",__name:"sort",props:Sae,emits:["change"],setup(r,{expose:t,emit:e}){const n=r,i=e,a=H.ref([]),o=H.ref("");H.watch(()=>n.menuItems,l=>{let c=[];Array.isArray(l)&&l.length&&l.forEach(u=>{c=[...c,{label:`${u.label}升序`,value:`${u.value}`,sort:"Asc"},{label:`${u.label}降序`,value:`${u.value}`,sort:"Desc"}]}),a.value=c},{deep:!0,immediate:!0});const s=l=>{o.value=l.value+l.sort,n.getSort&&n.getSort({orderFeild:l.value,orderBy:l.sort}),i("change",o)};return t({currentActiveItem:o}),(l,c)=>{const u=H.resolveComponent("a-menu-item"),f=H.resolveComponent("a-menu"),h=H.resolveComponent("a-dropdown");return H.openBlock(),H.createBlock(h,{trigger:[n.triggerWay]},{overlay:H.withCtx(()=>[H.createVNode(f,null,{default:H.withCtx(()=>[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(a.value,A=>(H.openBlock(),H.createBlock(u,{key:A.value+A.sort,onClick:d=>s(A)},{default:H.withCtx(()=>[H.createElementVNode("span",{class:H.normalizeClass(o.value==A.value+A.sort?"activted":"")},H.toDisplayString(A.label),3)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:H.withCtx(()=>[H.createElementVNode("span",{class:"ant-dropdown-link",onClick:c[0]||(c[0]=H.withModifiers(()=>{},["prevent"]))},[H.createTextVNode(H.toDisplayString(n.colText)+" ",1),H.createVNode(H.unref(Wo.DownOutlined))])]),_:1},8,["trigger"])}}}),[["__scopeId","data-v-cf0b0a0d"]])),Dae={class:"hb_lib_loading"},Rae={class:"hb_lib_loading_loading_anima"},Mae={class:"hb_lib_loading_load_tips"},wT=Ii(Gi(H.defineComponent({name:"HbLibLoading",__name:"loading",props:{loadTips:{type:String,default:"页面加载中...如长时间加载请刷新页面!"}},setup(r){const{t}=bs.useI18n(),e=r,n=H.computed(()=>e.loadTips||t("hbLibComp.HbLibLoading.loadingTips"));return(i,a)=>(H.openBlock(),H.createElementBlock("div",Dae,[H.createElementVNode("div",Rae,[a[0]||(a[0]=H.createStaticVNode('<div class="cube" data-v-22f438b9><div class="side front" data-v-22f438b9></div><div class="side back" data-v-22f438b9></div><div class="side right" data-v-22f438b9></div><div class="side left" data-v-22f438b9></div><div class="side top" data-v-22f438b9></div><div class="side bottom" data-v-22f438b9></div></div>',1)),H.createElementVNode("div",Mae,H.toDisplayString(n.value),1)])]))}}),[["__scopeId","data-v-22f438b9"]])),Tae={class:"file-preview__body"},Fae={key:0,class:"file-preview__placeholder"},Nae={key:1,class:"file-preview__placeholder"},Lae=["src"],Oae={class:"file-preview__body"},Pae={key:0,class:"file-preview__placeholder"},Gae={key:1,class:"file-preview__placeholder"},Uae=["src"],Hae=["src"],jae={class:"file-preview__modal-footer"},ET=Ii(Gi(H.defineComponent({__name:"file_preview",props:{visible:{type:Boolean,default:!1},src:{default:""},fileName:{default:""},fileList:{default:void 0},fileIndex:{default:0},height:{default:"72vh"},excelOptions:{default:void 0},pdfStaticFileUrl:{default:void 0},modalWidth:{default:"90%"},modalTitlePrefix:{default:void 0},modalTitleOverride:{default:void 0},showDownload:{type:Boolean,default:!0},showNav:{type:Boolean,default:!0},centered:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},needSafe:{type:Boolean,default:!0},customDownload:{type:Function,default:void 0}},emits:["rendered","error","update:visible","update:fileIndex","fileChange","beforeDownload","downloaded","cancel"],setup(r,{expose:t,emit:e}){const n=r,i=e,{t:a}=bs.useI18n();function o(K){i("update:visible",K)}function s(){i("update:visible",!1),i("cancel")}function l(){return Promise.resolve().then(()=>poe).then(()=>Promise.resolve().then(()=>ole))}function c(){return Promise.resolve().then(()=>sle).then(()=>Promise.resolve().then(()=>B2e))}function u(){return Promise.resolve().then(()=>WRe)}function f(){return Promise.resolve().then(()=>mtt)}const h=H.defineAsyncComponent(()=>l().then(K=>K.default)),A=H.defineAsyncComponent(()=>c().then(K=>K.default)),d=H.defineAsyncComponent(()=>u().then(K=>K.default)),g=H.defineAsyncComponent(()=>f().then(K=>K.default)),y=new Set(["png","jpg","jpeg","gif","webp","bmp","svg","ico"]);function v(K){const te=K.split(/[/\\]/).pop()??K,Z=te.split("?")[0]??te,X=Z.lastIndexOf(".");return X>=0?Z.slice(X+1).toLowerCase():""}function p(K,te){if(K==null||K==="")return"unknown";const Z=te&&v(te)||(typeof K=="string"?v(K):"");return!Z&&(K instanceof ArrayBuffer||K instanceof Blob)?"unknown":Z==="docx"?"docx":Z==="xlsx"||Z==="xls"?"excel":Z==="pdf"?"pdf":Z==="pptx"?"pptx":y.has(Z)?"image":"unknown"}const m=H.computed(()=>n.fileList?.length??0),b=H.computed(()=>m.value>0&&n.fileList!=null),C=H.computed(()=>{if(!b.value)return 0;const K=m.value-1,te=Math.floor(Number(n.fileIndex));return Number.isNaN(te)?0:Math.min(Math.max(te,0),K)}),w=H.computed(()=>!b.value||!n.fileList?null:n.fileList[C.value]??null),B=H.computed(()=>w.value?w.value.src:n.src),k=H.computed(()=>w.value?.fileName?w.value.fileName:n.fileName);H.watch([b,m,()=>n.fileIndex],()=>{b.value&&n.fileIndex!==C.value&&i("update:fileIndex",C.value)},{immediate:!0}),H.watch(C,(K,te)=>{if(!b.value||K===te)return;const Z=n.fileList?.[K]??null;i("fileChange",{index:K,item:Z})});const Q=H.computed(()=>p(B.value,k.value)),x=H.computed(()=>{const K=B.value;return n.needSafe?K??"":`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(K)}`}),L=H.computed(()=>typeof x.value=="string"?x.value:""),O=H.computed(()=>{const K=b.value?C.value:"",te=B.value;return typeof te=="string"?`${K}:${Q.value}:${te}`:te instanceof ArrayBuffer?`${K}:${Q.value}:ab:${te.byteLength}`:te instanceof Blob?`${K}:${Q.value}:blob:${te.size}`:`${K}:${Q.value}`}),W=H.computed(()=>{const K=B.value;return K!=null&&K!==""}),M=H.computed(()=>n.height),J=H.computed(()=>({height:"100%",width:"100%",overflow:"auto"})),G=H.computed(()=>n.pdfStaticFileUrl!=null&&n.pdfStaticFileUrl!==""?{staticFileUrl:n.pdfStaticFileUrl}:{}),N=H.computed(()=>n.showNav&&b.value&&m.value>1),_=H.computed(()=>N.value&&C.value>0),S=H.computed(()=>N.value&&C.value<m.value-1);function Y(){_.value&&i("update:fileIndex",C.value-1)}function P(){S.value&&i("update:fileIndex",C.value+1)}const U=H.computed(()=>{if(!W.value)return"";const K=w.value;return K?.fileName?.trim()||K?.downloadName?.trim()||n.fileName?.trim()||(typeof B.value=="string"&&v(B.value)?(B.value.split(/[/\\]/).pop()??"").split("?")[0]:"")||a("hbLibComp.HbFilePreview.fileNameFallback",{index:C.value+1})}),F=H.computed(()=>{if(n.modalTitleOverride!=null&&n.modalTitleOverride!=="")return n.modalTitleOverride;const K=n.modalTitlePrefix??a("hbLibComp.HbFilePreview.modalTitle");if(!W.value)return K;const te=U.value;return b.value&&m.value>1?te?`${K} — ${te}(${C.value+1} / ${m.value})`:`${K}(${C.value+1} / ${m.value})`:te?`${K} — ${te}`:K});function T(K){const te=v(K);return{pdf:"application/pdf",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",bmp:"image/bmp",ico:"image/x-icon",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xls:"application/vnd.ms-excel",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}[te]||"application/octet-stream"}function R(K,te){const Z=URL.createObjectURL(K),X=document.createElement("a");X.href=Z,X.download=te||"download",X.rel="noopener",document.body.appendChild(X),X.click(),document.body.removeChild(X),URL.revokeObjectURL(Z)}const V=H.ref(!1);function re(){const K=w.value,te=K?.downloadName||K?.fileName||n.fileName||"";if(te)return te.split(/[/\\]/).pop()?.split("?")[0]||"download";if(typeof B.value=="string"){const Z=B.value.split(/[/\\]/).pop()?.split("?")[0]||"";if(Z.includes("."))return Z}return"download"}const oe=H.computed(()=>W.value);async function fe(){if(!oe.value)return;const K=w.value,te=b.value?C.value:0;i("beforeDownload",{item:K,index:te});const Z=re(),X=K?.downloadUrl;V.value=!0;try{if(n.customDownload)await n.customDownload({item:K,index:te,src:B.value,fileName:k.value,downloadName:Z});else if(X){const q=await fetch(X);if(!q.ok)throw new Error(String(q.status));const de=await q.blob();R(de,Z)}else{const q=B.value;if(typeof q=="string"){const de=await fetch(q);if(!de.ok)throw new Error(String(de.status));const Ce=await de.blob();R(Ce,Z)}else if(q instanceof Blob)R(q,Z);else if(q instanceof ArrayBuffer){const de=T(Z);R(new Blob([q],{type:de}),Z)}}i("downloaded",{item:K,index:te})}catch(q){i("error",q)}finally{V.value=!1}}const Ae=H.ref("");let me=null;function le(){me&&(URL.revokeObjectURL(me),me=null)}function he(){le();const K=B.value;if(Q.value!=="image"||K==null||K===""){Ae.value="";return}if(typeof K=="string"){Ae.value=K;return}if(K instanceof Blob){me=URL.createObjectURL(K),Ae.value=me;return}if(K instanceof ArrayBuffer){const Z=new Blob([K]);me=URL.createObjectURL(Z),Ae.value=me}}H.watch(()=>[B.value,Q.value],()=>he(),{immediate:!0}),H.onBeforeUnmount(()=>{le()});function j(){i("rendered")}function ae(K){i("error",K??new Error("office preview error"))}function ce(){i("rendered")}function ie(K){i("error",K)}return t({previewKind:Q,safeIndex:C,currentListItem:w,effectiveSrc:B,effectiveFileName:k,goPrev:Y,goNext:P,download:fe,closeModal:s}),(K,te)=>{const Z=H.resolveComponent("a-button"),X=H.resolveComponent("a-space"),q=H.resolveComponent("a-modal");return H.openBlock(),H.createBlock(q,{"wrap-class-name":"file-preview-modal-wrap",visible:r.visible,title:F.value,width:r.modalWidth,centered:r.centered,"destroy-on-close":r.destroyOnClose,"mask-closable":r.maskClosable,keyboard:r.keyboard,"body-style":{padding:"8px"},"onUpdate:visible":o,onCancel:s},{footer:H.withCtx(()=>[H.createElementVNode("div",jae,[H.createVNode(X,{size:8,wrap:""},{default:H.withCtx(()=>[N.value?(H.openBlock(),H.createBlock(Z,{key:0,disabled:!_.value,onClick:Y},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(H.unref(a)("hbLibComp.HbFilePreview.prev")),1)]),_:1},8,["disabled"])):H.createCommentVNode("",!0),N.value?(H.openBlock(),H.createBlock(Z,{key:1,disabled:!S.value,onClick:P},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(H.unref(a)("hbLibComp.HbFilePreview.next")),1)]),_:1},8,["disabled"])):H.createCommentVNode("",!0),r.showDownload?(H.openBlock(),H.createBlock(Z,{key:2,type:"primary",disabled:!oe.value,loading:V.value,onClick:fe},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(H.unref(a)("hbLibComp.HbFilePreview.download")),1)]),_:1},8,["disabled","loading"])):H.createCommentVNode("",!0),H.createVNode(Z,{onClick:s},{default:H.withCtx(()=>[H.createTextVNode(H.toDisplayString(H.unref(a)("hbLibComp.HbFilePreview.close")),1)]),_:1}),H.renderSlot(K.$slots,"footer-extra",{},void 0,!0)]),_:3})])]),default:H.withCtx(()=>[r.needSafe?(H.openBlock(),H.createElementBlock("div",{key:0,class:"file-preview",style:H.normalizeStyle({height:M.value})},[H.createElementVNode("div",Tae,[W.value?Q.value==="unknown"?(H.openBlock(),H.createElementBlock("div",Nae,[H.renderSlot(K.$slots,"unsupported",{},()=>[H.createTextVNode(H.toDisplayString(H.unref(a)("hbLibComp.HbFilePreview.unsupported")),1)],!0)])):Q.value==="image"?(H.openBlock(),H.createElementBlock("img",{key:2,src:Ae.value,class:"file-preview__image",alt:"",onLoad:ce,onError:ie},null,40,Lae)):Q.value==="docx"?(H.openBlock(),H.createBlock(H.unref(h),{key:`docx-${O.value}`,src:x.value,class:"file-preview__office",style:H.normalizeStyle(J.value),onRendered:j,onError:ae},null,8,["src","style"])):Q.value==="excel"?(H.openBlock(),H.createBlock(H.unref(A),{key:`xls-${O.value}`,src:x.value,class:"file-preview__office",style:H.normalizeStyle(J.value),options:r.excelOptions,onRendered:j,onError:ae},null,8,["src","style","options"])):Q.value==="pdf"?(H.openBlock(),H.createBlock(H.unref(d),H.mergeProps({key:`pdf-${O.value}`,src:x.value,class:"file-preview__office",style:J.value},G.value,{onRendered:j,onError:ae}),null,16,["src","style"])):Q.value==="pptx"?(H.openBlock(),H.createBlock(H.unref(g),{key:`pptx-${O.value}`,src:x.value,class:"file-preview__office",style:H.normalizeStyle(J.value),onRendered:j,onError:ae},null,8,["src","style"])):H.createCommentVNode("",!0):(H.openBlock(),H.createElementBlock("div",Fae,[H.renderSlot(K.$slots,"empty",{},()=>[H.createTextVNode(H.toDisplayString(H.unref(a)("hbLibComp.HbFilePreview.empty")),1)],!0)]))])],4)):(H.openBlock(),H.createElementBlock("div",{key:1,class:"file-preview",style:H.normalizeStyle({height:M.value})},[H.createElementVNode("div",Oae,[W.value?Q.value==="unknown"?(H.openBlock(),H.createElementBlock("div",Gae,[H.renderSlot(K.$slots,"unsupported",{},()=>[H.createTextVNode(H.toDisplayString(H.unref(a)("hbLibComp.HbFilePreview.unsupported")),1)],!0)])):Q.value==="image"?(H.openBlock(),H.createElementBlock("img",{key:2,src:Ae.value,class:"file-preview__image",alt:"",onLoad:ce,onError:ie},null,40,Uae)):(H.openBlock(),H.createElementBlock("iframe",{key:3,src:L.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Hae)):(H.openBlock(),H.createElementBlock("div",Pae,[H.renderSlot(K.$slots,"empty",{},()=>[H.createTextVNode(H.toDisplayString(H.unref(a)("hbLibComp.HbFilePreview.empty")),1)],!0)]))])],4))]),_:3},8,["visible","title","width","centered","destroy-on-close","mask-closable","keyboard"])}}}),[["__scopeId","data-v-513d7b3b"]])),BT="//at.alicdn.com/t/c/font_2862164_1wnr7wxlgxf.css",kT=Symbol("HB_ICON_GLOBAL_KEY");function Yae(r){const e=r.match(/@font-face\s*\{[\s\S]*?font-family\s*:\s*["']([^"']+)["']/)?.[1]??"",n=/\.([\w-]+)\s*:before\s*\{\s*content\s*:\s*["']\\[\da-fA-F]+["']\s*;?\s*\}/g,i=[];let a;for(;(a=n.exec(r))!==null;)i.push(a[1]);const o=Wae(i),s=o?i.map(l=>l.slice(o.length)):i.slice();return{baseClass:e,prefix:o,names:s}}function Wae(r){if(r.length===0)return"";let t=r[0];for(let e=1;e<r.length;e++){for(;t&&!r[e].startsWith(t);)t=t.slice(0,-1);if(!t)break}return t}function Jae(r,t){if(typeof document>"u"||document.getElementById(t))return;const e=document.createElement("style");e.id=t,e.textContent=r,document.head.appendChild(e)}function QT(r){const t=H.ref(""),e=H.ref(""),n=H.ref([]);let i=0;const a=async o=>{const s=++i;if(!o){t.value="",e.value="",n.value=[];return}try{const c=await(await fetch(o)).text();Jae(c,"hb-iconfont-"+o);const{baseClass:u,prefix:f,names:h}=Yae(c);if(s!==i)return;t.value=u,e.value=f,n.value=h}catch(l){console.error("[HbLibIcon] 加载 iconfont 失败:",o,l)}};return H.watch(()=>H.toValue(r),a,{immediate:!0}),{iconBaseClass:t,iconPrefix:e,iconClasses:n}}const Vae={class:"hb-icon-list"},zae=["onClick"],Kae={class:"hb-icon-list__name"},uB=Gi(H.defineComponent({name:"HbLibIcon",__name:"icon_list",props:{cssUrl:{default:""},selected:{default:""}},emits:["select","update:selected"],setup(r,{emit:t}){const e=r,n=t,i=H.inject(kT,{}),a=H.computed(()=>e.cssUrl||i?.cssUrl||BT),{iconBaseClass:o,iconPrefix:s,iconClasses:l}=QT(a),c=H.ref(e.selected);H.watch(()=>e.selected,f=>{c.value=f});const u=f=>{c.value=f,n("select",f),n("update:selected",f)};return(f,h)=>(H.openBlock(),H.createElementBlock("div",Vae,[H.renderSlot(f.$slots,"iconList",{iconClasses:H.unref(l),iconBaseClass:H.unref(o),iconPrefix:H.unref(s)},()=>[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(H.unref(l),A=>(H.openBlock(),H.createElementBlock("div",{key:A,class:H.normalizeClass(["hb-icon-list__item",{"hb-icon-list__item--active":A===c.value}]),onClick:d=>u(A)},[H.createElementVNode("i",{class:H.normalizeClass([H.unref(o),H.unref(s)+A])},null,2),H.createElementVNode("span",Kae,H.toDisplayString(A),1)],10,zae))),128))],!0)]))}}),[["__scopeId","data-v-cba0476b"]]),fB=uB;fB.install=(r,t)=>{r.provide(kT,{cssUrl:t?.cssUrl??BT});const e=uB.name??"HbLibIcon";r.component(e,uB)};const qae=Object.freeze(Object.defineProperty({__proto__:null,HbLibAnchor:gT,HbLibCard:dT,HbLibCopy:cB,HbLibDetailBox:pT,HbLibFilePreview:ET,HbLibFooterBar:vT,HbLibFormItemFilterModal:VM,HbLibFormTooltipSelect:uT,HbLibFuncCompDrag:bT,HbLibIconList:fB,HbLibImportFile:fT,HbLibListBtnsAct:qM,HbLibListForm:zM,HbLibListMultiSelect:$M,HbLibListPageAct:KM,HbLibListPageContainer:ZM,HbLibListTable:lT,HbLibLoading:wT,HbLibLogModal:hT,HbLibModal:yT,HbLibMutilpleSelectModal:eT,HbLibPageHeader:IT,HbLibSort:CT,HbLibTableAct:tT,HbLibTableColumnSet:cT,HbLibUnDetailBox:mT,HbUiConfig:AT},Symbol.toStringTag,{value:"Module"})),rh=new Map;let xT;lA.isClient&&(document.addEventListener("mousedown",r=>xT=r),document.addEventListener("mouseup",r=>{for(const t of rh.values())for(const{documentHandler:e}of t)e(r,xT)}));function _T(r,t){let e=[];return Array.isArray(t.arg)?e=t.arg:t.arg instanceof HTMLElement&&e.push(t.arg),function(n,i){const a=t.instance.popperRef,o=n.target,s=i?.target,l=!t||!t.instance,c=!o||!s,u=r.contains(o)||r.contains(s),f=r===o,h=e.length&&e.some(d=>d?.contains(o))||e.length&&e.includes(s),A=a&&(a.contains(o)||a.contains(s));l||c||u||f||h||A||t.value(n,i)}}const Xae={beforeMount(r,t){rh.has(r)||rh.set(r,[]),rh.get(r).push({documentHandler:_T(r,t),bindingFn:t.value})},updated(r,t){rh.has(r)||rh.set(r,[]);const e=rh.get(r),n=e.findIndex(a=>a.bindingFn===t.oldValue),i={documentHandler:_T(r,t),bindingFn:t.value};n>=0?e.splice(n,1,i):e.push(i)},unmounted(r){rh.delete(r)}},Zae={mounted(r,t){const{value:e,arg:n}=t;if(console.log(t),typeof e!="function"){console.warn("[v-debounce-click] 绑定值必须是一个函数");return}const i=parseInt(n,10)||300;let a;r.__debounceHandler__=function(...o){a&&clearTimeout(a),a=setTimeout(()=>{e(...o)},i)},r.addEventListener("click",r.__debounceHandler__)},unmounted(r){r.__debounceHandler__&&(r.removeEventListener("click",r.__debounceHandler__),delete r.__debounceHandler__)}},ST=(r,t)=>{r._dynamicApp&&(r._dynamicApp.unmount(),r._dynamicContainer.innerHTML="");const e=H.createApp(cB,{cpText:t});e.mount(r._dynamicContainer),r._dynamicApp=e,r._dynamicPrevValue=t},$ae={cos:Xae,dc:Zae,icp:{mounted(r,t){if(!r._dynamicContainer){const e=document.createElement("div");e.style.display="inline-flex",e.style.alignItems="center",e.setAttribute("data-dynamic-container",""),r.parentNode?.insertBefore(e,r.nextSibling),r._dynamicContainer=e}ST(r,t.value)},updated(r,t){t.value!==r._dynamicPrevValue&&ST(r,t.value)},unmounted(r){r._dynamicApp&&(r._dynamicApp.unmount(),delete r._dynamicApp),r._dynamicContainer&&(r._dynamicContainer.remove(),delete r._dynamicContainer),delete r._dynamicPrevValue}}},DT=r=>r.downloadUrl,eoe=(r,t,e)=>{const n=l=>l.previewUrl,i=e?.preferredIndex;if(typeof i=="number"&&i>=0&&i<r.length){const l=r[i];if(l===t)return i;const c="uploadDate"in l&&l.uploadDate||"",u="uploadDate"in t&&t.uploadDate||"";if(n(l)===n(t)&&(l.attachmentDesc||"")===(t.attachmentDesc||"")&&c===u)return i}const a=t.attachmentId;if(a){const l=r.findIndex(c=>c.attachmentId===a);if(l>=0)return l}const o=n(t);if(o){const l=r.findIndex(c=>n(c)===o);if(l>=0)return l}const s=DT(t);if(s){const l=r.findIndex(c=>DT(c)===s);if(l>=0)return l}return r.indexOf(t)};function RT(r){const t=r.trim();try{return new URL(t).href}catch{const e=t.replace(/ /g,"%20");try{return new URL(e).href}catch{return e}}}function MT(r){try{return typeof window>"u"||!window.location?.origin?!1:new URL(r).origin===window.location.origin}catch{return!1}}function TT(r){return new Promise((t,e)=>{const n=new XMLHttpRequest;n.open("GET",r,!0),n.responseType="blob",n.withCredentials=MT(r),n.onload=()=>{n.status>=200&&n.status<300?t(n.response):e(new Error(String(n.status)))},n.onerror=()=>e(new Error("xhr")),n.send()})}async function toe(r){const t=RT(r),e=typeof document<"u"?document.documentMode:void 0;if(typeof e=="number"&&e>0)return TT(t);if(typeof fetch=="function"){const n=await fetch(t,{credentials:MT(t)?"include":"omit",mode:"cors"});if(!n.ok)throw new Error(String(n.status));return n.blob()}return TT(t)}function roe(r,t){const e=t.trim()||"download",n=navigator;if(typeof n.msSaveOrOpenBlob=="function"){n.msSaveOrOpenBlob(r,e);return}const i=URL.createObjectURL(r);try{const a=document.createElement("a");a.href=i,a.rel="noopener noreferrer",a.setAttribute("download",e),a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a)}finally{URL.revokeObjectURL(i)}}function noe(r){const t=RT(r),e=document.createElement("iframe");e.style.cssText="position:fixed;left:-9999px;top:-9999px;width:0;height:0;border:0;",e.src=t,document.body.appendChild(e),window.setTimeout(()=>{try{document.body.removeChild(e)}catch{}},12e4)}async function hB(r,t){const e=(t||"download").trim()||"download";try{const n=await toe(r);roe(n,e);return}catch{noe(r)}}const ioe=400;function FT(r){return r.previewUrl?.trim()||""}function ZI(r){return r.downloadUrl?.trim()||""}function $I(r){return r.attachmentDesc?.trim()||r.fileName?.trim()||"download"}function aoe(r){const{t}=bs.useI18n(),e=H.ref(!1),n=H.ref(""),i=H.ref(""),a=H.ref(-1),o=H.ref(-1),s=H.computed(()=>r.value.attachmentInfos??[]),l=H.computed(()=>s.value.reduce((x,L,O)=>{const W=FT(L);if(!W)return x;const M=$I(L);return x.push({attachmentIndex:O,record:L,item:{src:W,fileName:M,downloadName:M,downloadUrl:ZI(L)||void 0}}),x},[])),c=H.computed(()=>l.value.map(x=>x.item)),u=H.computed(()=>o.value>=0?c.value:[]),f=H.computed(()=>{const x=o.value;return x>=0?l.value[x]??null:null}),h=H.computed(()=>f.value?.item??null),A=H.computed(()=>o.value>0&&c.value.length>1),d=H.computed(()=>o.value>=0&&o.value<c.value.length-1),g=H.computed(()=>c.value.length>1),y=(x,L,O,W)=>{a.value=O,o.value=W,n.value=x,i.value=L,e.value=!0},v=x=>{const L=l.value[x];L&&y(String(L.item.src),L.item.fileName||"",L.attachmentIndex,x)},p=x=>{const L=l.value.findIndex(O=>O.attachmentIndex===x);L<0||v(L)};return{filePreviewVisible:e,pdfPreviewUrlRef:n,previewFileNameRef:i,previewAttachmentIndexRef:a,previewFileIndexRef:o,filePreviewList:c,activeFilePreviewList:u,currentPreviewFile:h,hasPrevAttachment:A,hasNextAttachment:d,showAttachmentNavBar:g,handlePreview:(x,L)=>{const O=FT(x);if(!O){Cr.message.warning(t("hbLibComp.HbFilePreview.noPreviewUrl"));return}const W=eoe(s.value,x,{preferredIndex:L});if(W>=0){p(W);return}y(O,$I(x),-1,-1)},handleDownload:x=>{const L=ZI(x);if(!L){Cr.message.warning(t("hbLibComp.HbFilePreview.noDownloadUrl"));return}hB(L,$I(x))},handleClosePreview:()=>{e.value=!1,a.value=-1,o.value=-1,n.value="",i.value=""},handlePreviewFileIndexChange:x=>{v(x)},goPrevAttachment:()=>{A.value&&v(o.value-1)},goNextAttachment:()=>{d.value&&v(o.value+1)},triggerBrowserDownload:hB,handleBatchDownloadAttachment:async()=>{const x=s.value.filter(L=>!!ZI(L));if(x.length===0){Cr.message.warning(t("hbLibComp.HbFilePreview.noDownloadableFiles"));return}for(let L=0;L<x.length;L++){const O=x[L];await hB(ZI(O),$I(O)),L<x.length-1&&await new Promise(W=>setTimeout(W,ioe))}}}}const ooe=r=>{const t=H.ref();t.value=r.slice();const e=JSON.parse(JSON.stringify(t.value));return{formItems:t,DeepCloneFromItem:e,handleSearchCase:i=>{const a=[],o=Object.keys(i);e.forEach(s=>{o.includes(s.key)&&a.push(s)}),t.value=a}}},soe=r=>{let t=!0;return{start:()=>{H.nextTick(()=>{const a=document.querySelector(`.${r} .ant-modal`);if(a){let o=!1,s={x:0,y:0};const l=a.querySelector(".ant-modal-header"),c=a.querySelector(".ant-modal-footer");l&&(l.style.cursor="move",c.style.cursor="move",l.addEventListener("mousedown",u=>{o=!0,s.x=u.clientX-a.offsetLeft,s.y=u.clientY-a.offsetTop,document.body.style.userSelect="none"}),c.addEventListener("mousedown",u=>{o=!0,s.x=u.clientX-a.offsetLeft,s.y=u.clientY-a.offsetTop,document.body.style.userSelect="none"}),document.addEventListener("mousemove",u=>{if(!o||!t)return;const f=u.clientX-s.x,h=u.clientY-s.y;a.style.left=`${f}px`,a.style.top=`${h}px`}),document.addEventListener("mouseup",()=>{o=!1,document.body.style.userSelect=""}))}})},stop:()=>{t=!1},resetPosition:()=>{H.nextTick(()=>{const a=document.querySelector(`.${r} .ant-modal`);if(a){const o=window.innerWidth,s=window.innerHeight,l=a.offsetWidth,c=a.offsetHeight,u=(o-l)/2,f=(s-c)/2;a.style.left=`${u}px`,a.style.top=`${f}px`}})}}},loe={hbLibComp:{HbFileUploadModal:{cancel:"Cancel",clickUpload:"Click to upload",confirmImport:"Confirm import",dataImport:"Import data",downloadTemplate:"Import template download",dragFile:"Drag files here or",file:"document",fileUpload:"File import",maxSupport:"Most supported",onlySupport:"Only supports",placeSelect:"Please select",selectFile:"Please select the file to upload",format:"Supported formats"},HbLogModal:{close:"closure",operateContent:"Operation content",operateLogs:"Operation log",operateTime:"Operating time",operator:"operator"},hbFormItemFilterModal:{add:"Add to",cancel:"Cancel",confirm:"Sure",moreConditionSearch:"Multiple searches",mostMore:"Optional at most",mostMoreTip:"conditions, drag and drop to adjust the sorting",noData:"No data yet",notShowTip:"No conditions shown",titleTip:"Conditions shown",overTip1:"Currently has exceeded",overTip2:"Optional quantity, please delete the displayed conditions first",title:"Custom query conditions"},hbFormSelectFilter:{allSelect:"Select all",close:"closure"},hbLibListForm:{queryCase:"query plan",addScheme:"Add scenario",editScheme:"Edit plan"},hbLibListTableColumsSet:{allSelect:"Select all",cancelFix:"Unpin",confirm:"Sure",errorTip:"Cannot move column to fixed column position",fix:"fixed",popoverTitle:"Custom columns",title:"Table field settings",reset:"reduction"},hbListBtnsAct:{close:"Close query conditions",open:"Expand query conditions",reload:"Refresh data"},hbListPageAct:{close:"close",exitFullScreen:"Exit full screen",fullScreen:"full screen",open:"Expand",query:"Query",reset:"reset",selfDefine:"Filter query conditions"},hbListTable:{noData:"No data yet"},hbMultiSelectModal:{pleaseSelect:"Please select"},hbTableAct:{confirmContent:"Confirm content",more:"More",secendConfirm:"Second confirmation"},HbImportFile:{clickUp:"Click to upload",downloadTemplate:"Click to download template",pleaseUploadFiles:"Please upload files",uploadText:"Drag files here or",fileLabel:"document",importBtn:"File upload"},HbFilePreview:{empty:"Select or provide a file to preview",unsupported:"Preview is not supported for this file type",prev:"Previous",next:"Next",download:"Download",close:"Close",modalTitle:"File Preview",fileNameFallback:"File {index}",noPreviewUrl:"No preview URL available",noDownloadUrl:"No download URL available",noDownloadableFiles:"No downloadable attachments available"},HbFuncCompCopy:{copy:"copy",copyFail:"Copy failed",copySuccess:"Copied successfully"},HbLibDetailBox:{back:"return"}}},coe={hbLibComp:{HbFileUploadModal:{cancel:"キャンセル",clickUpload:"クリックしてアップロード",confirmImport:"インポートの確認",dataImport:"データのインポート",downloadTemplate:"インポートテンプレートのダウンロード",dragFile:"ここにファイルをドラッグするか、",file:"書類",fileUpload:"ファイルのインポート",maxSupport:"最も支持されている",onlySupport:"サポートのみ",placeSelect:"選択してください",selectFile:"アップロードするファイルを選択してください",format:"サポートされている形式"},HbLogModal:{close:"閉鎖",operateContent:"操作内容",operateLogs:"操作ログ",operateTime:"稼働時間",operator:"オペレーター"},hbFormItemFilterModal:{add:"に追加",cancel:"キャンセル",confirm:"もちろん",moreConditionSearch:"複数の検索",mostMore:"せいぜいオプション",mostMoreTip:"条件をドラッグアンドドロップして並べ替えを調整します",noData:"まだデータがありません",notShowTip:"条件が表示されていません",titleTip:"表示される条件",overTip1:"現在は超えています",overTip2:"オプションの数量です。最初に表示されている条件を削除してください",title:"カスタムクエリ条件"},hbFormSelectFilter:{allSelect:"すべて選択",close:"閉鎖"},hbLibListForm:{queryCase:"クエリプラン",addScheme:"シナリオの追加",editScheme:"計画の編集"},hbLibListTableColumsSet:{allSelect:"すべて選択",cancelFix:"固定を解除する",confirm:"もちろん",errorTip:"列を固定列位置に移動できません",fix:"修理済み",popoverTitle:"カスタム列",title:"テーブルフィールドの設定",reset:"削減"},hbListBtnsAct:{close:"クエリ条件を閉じる",open:"クエリ条件を拡張する",reload:"データを更新する"},hbListPageAct:{close:"近い",exitFullScreen:"全画面表示を終了する",fullScreen:"全画面表示",open:"拡大する",query:"クエリ",reset:"リセット",selfDefine:"フィルタークエリ条件"},hbListTable:{noData:"まだデータがありません"},hbMultiSelectModal:{pleaseSelect:"選択してください"},hbTableAct:{confirmContent:"内容を確認する",more:"もっと",secendConfirm:"2回目の確認"},HbImportFile:{clickUp:"クリックしてアップロード",downloadTemplate:"クリックしてテンプレートをダウンロード",pleaseUploadFiles:"ファイルをアップロードしてください",uploadText:"ファイルをここにドラッグするか、",fileLabel:"書類",importBtn:"ファイルのアップロード"},HbFilePreview:{empty:"プレビューするファイルを選択または指定してください",unsupported:"このファイル形式のプレビューはサポートされていません",prev:"前へ",next:"次へ",download:"ダウンロード",close:"閉じる",modalTitle:"ファイルプレビュー",fileNameFallback:"ファイル {index}",noPreviewUrl:"プレビューURLがありません",noDownloadUrl:"ダウンロードURLがありません",noDownloadableFiles:"ダウンロード可能な添付ファイルがありません"},HbFuncCompCopy:{copy:"コピー",copyFail:"コピーに失敗しました",copySuccess:"正常にコピーされました"},HbLibDetailBox:{back:"戻る"}}},uoe={hbLibComp:{hbFormItemFilterModal:{titleTip:"已显示条件",mostMore:"最多可选",mostMoreTip:"个条件,拖拽可以调整排序",notShowTip:"未显示条件",add:"添加",noData:"暂无数据",cancel:"取消",confirm:"确定",moreConditionSearch:"多项搜索",title:"自定义查询条件",overTip1:"当前已经超过",overTip2:"个可选数量,请先删除已显示条件"},hbFormSelectFilter:{allSelect:"全选",close:"关闭"},hbListPageAct:{query:"查询",reset:"重置",selfDefine:"筛选查询条件",open:"展开",close:"收起",fullScreen:"全屏",exitFullScreen:"退出全屏"},hbListBtnsAct:{reload:"刷新数据",open:"展开查询条件",close:"收起查询条件"},hbTableAct:{more:"更多",secendConfirm:"二次确认",confirmContent:"确认内容"},hbMultiSelectModal:{pleaseSelect:"请选择"},hbListTable:{noData:"暂时没有数据"},hbLibListTableColumsSet:{popoverTitle:"自定义列",title:"表格字段设置",fix:"固定",cancelFix:"取消固定",allSelect:"全选",confirm:"确定",errorTip:"不能将列移动到固定列位置",reset:"还原"},hbLibListForm:{queryCase:"查询方案",addScheme:"添加方案",editScheme:"编辑方案"},HbFileUploadModal:{fileUpload:"文件导入",confirmImport:"确认导入",cancel:"取消",maxSupport:"最多支持",dataImport:"条数据导入",placeSelect:"请选择",file:"文件",selectFile:"请选择上传的文件",dragFile:"将文件拖到此处或",clickUpload:"点击上传",onlySupport:"仅支持",downloadTemplate:"导入模板下载",format:"支持格式"},HbLogModal:{close:"关 闭",operateLogs:"操作日志",operator:"操作人",operateTime:"操作时间",operateContent:"操作内容"},HbImportFile:{uploadText:"将文件拖到此处或",clickUp:"请上传文件",downloadTemplate:"点击下载模板",pleaseUploadFiles:"请上传文件",fileLabel:"文件",importBtn:"文件上传"},HbFilePreview:{empty:"请选择或传入要预览的文件",unsupported:"暂不支持该类型预览",prev:"上一个",next:"下一个",download:"下载",close:"关闭",modalTitle:"文件预览",fileNameFallback:"文件 {index}",noPreviewUrl:"暂无预览地址",noDownloadUrl:"暂无下载地址",noDownloadableFiles:"暂无可下载附件"},HbFuncCompCopy:{copySuccess:"复制成功",copyFail:"复制失败",copy:"复制"},HbLibDetailBox:{back:"返回"},HbLibLoading:{loadingTips:"加载中...如长时间加载请重试!"}}},foe={hbLibComp:{HbFileUploadModal:{cancel:"Stornieren",clickUpload:"Klicken Sie zum Hochladen",confirmImport:"Bestätigen Sie den Import",dataImport:"Daten importieren",downloadTemplate:"Importvorlage herunterladen",dragFile:"Ziehen Sie Dateien hierher oder",file:"dokumentieren",fileUpload:"Dateiimport",maxSupport:"Am meisten unterstützt",onlySupport:"Unterstützt nur",placeSelect:"Bitte auswählen",selectFile:"Bitte wählen Sie die hochzuladende Datei aus",format:"Unterstützte Formate"},HbLogModal:{close:"Schließung",operateContent:"Inhalt der Operation",operateLogs:"Betriebsprotokoll",operateTime:"Betriebszeit",operator:"Operator"},hbFormItemFilterModal:{add:"Hinzufügen zu",cancel:"Stornieren",confirm:"Sicher",moreConditionSearch:"Mehrere Suchanfragen",mostMore:"Höchstens optional",mostMoreTip:"Bedingungen anpassen, per Drag-and-Drop die Sortierung anpassen",noData:"Noch keine Daten",notShowTip:"Keine Bedingungen angezeigt",titleTip:"Bedingungen angezeigt",overTip1:"Derzeit überschritten",overTip2:"Optionale Menge, bitte löschen Sie zuerst die angezeigten Konditionen",title:"Benutzerdefinierte Abfragebedingungen"},hbFormSelectFilter:{allSelect:"Alles auswählen",close:"Schließung"},hbLibListForm:{queryCase:"Abfrageplan",addScheme:"Szenario hinzufügen",editScheme:"Plan bearbeiten"},hbLibListTableColumsSet:{allSelect:"Alles auswählen",cancelFix:"Lösen",confirm:"Sicher",errorTip:"Die Spalte kann nicht in eine feste Spaltenposition verschoben werden",fix:"behoben",popoverTitle:"Benutzerdefinierte Spalten",title:"Tabellenfeldeinstellungen",reset:"Reduktion"},hbListBtnsAct:{close:"Abfragebedingungen schließen",open:"Abfragebedingungen erweitern",reload:"Daten aktualisieren"},hbListPageAct:{close:"schließen",exitFullScreen:"Verlassen Sie den Vollbildmodus",fullScreen:"Vollbild",open:"Expandieren",query:"Abfrage",reset:"zurücksetzen",selfDefine:"Abfragebedingungen filtern"},hbListTable:{noData:"Noch keine Daten"},hbMultiSelectModal:{pleaseSelect:"Bitte auswählen"},hbTableAct:{confirmContent:"Inhalt bestätigen",more:"Mehr",secendConfirm:"Zweite Bestätigung"},HbImportFile:{clickUp:"Klicken Sie zum Hochladen",downloadTemplate:"Klicken Sie hier, um die Vorlage herunterzuladen",pleaseUploadFiles:"Bitte laden Sie Dateien hoch",uploadText:"Ziehen Sie Dateien hierher oder",fileLabel:"dokumentieren",importBtn:"Datei-Upload"},HbFilePreview:{empty:"Bitte wählen Sie eine Datei zur Vorschau aus oder geben Sie sie an",unsupported:"Die Vorschau wird für diesen Dateityp nicht unterstützt",prev:"Zurück",next:"Weiter",download:"Herunterladen",close:"Schließen",modalTitle:"Dateivorschau",fileNameFallback:"Datei {index}",noPreviewUrl:"Keine Vorschau-URL verfügbar",noDownloadUrl:"Keine Download-URL verfügbar",noDownloadableFiles:"Keine herunterladbaren Anhänge verfügbar"},HbFuncCompCopy:{copy:"Kopie",copyFail:"Der Kopiervorgang ist fehlgeschlagen",copySuccess:"Erfolgreich kopiert"},HbLibDetailBox:{back:"zurückkehren"}}};var eb={exports:{}},hoe=eb.exports,NT;function Aoe(){return NT||(NT=1,(function(r,t){(function(e,n){r.exports=n(qI)})(hoe,(function(e){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(e),a={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(o,s){return s==="W"?o+"周":o+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(o,s){var l=100*o+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(a,null,!0),a}))})(eb)),eb.exports}Aoe(),qI.locale("zh-cn");const doe={en_US:loe,ja_JP:coe,zh_CN:uoe,de_DE:foe},goe=function(r,t={}){r.provide("globalCompConfig",t||{}),Object.values(qae).forEach(e=>{e&&typeof e.install=="function"&&r.use(e)}),Object.entries($ae).forEach(([e,n])=>{r.directive(e,n)})},poe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var voe=Object.defineProperty,yoe=Object.defineProperties,moe=Object.getOwnPropertyDescriptors,LT=Object.getOwnPropertySymbols,Ioe=Object.prototype.hasOwnProperty,boe=Object.prototype.propertyIsEnumerable,OT=(r,t,e)=>t in r?voe(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Cs=(r,t)=>{for(var e in t||(t={}))Ioe.call(t,e)&&OT(r,e,t[e]);if(LT)for(var e of LT(t))boe.call(t,e)&&OT(r,e,t[e]);return r},tb=(r,t)=>yoe(r,moe(t)),Ts=(r,t,e)=>new Promise((n,i)=>{var a=l=>{try{s(e.next(l))}catch(c){i(c)}},o=l=>{try{s(e.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(a,o);s((e=e.apply(r,t)).next())});typeof window.setImmediate>"u"&&(window.setImmediate=function(r,...t){setTimeout(()=>r(t))});var rb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Coe(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function nb(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var PT={exports:{}};/*!
2
2
 
3
3
  JSZip v3.10.1 - A JavaScript class for generating and reading zip files
4
4
  <http://stuartk.com/jszip>
@@ -342,4 +342,4 @@ echarts.use([`+O+"]);":"Unknown series "+L))}return}if(f==="tooltip"){if(m){proc
342
342
  `)),Sn(n));var p=A?oV(A):null;A&&!p&&(process.env.NODE_ENV!=="production"&&(n=ts("Invalid parser name "+A+`.
343
343
  `,"Illegal config:",u,`.
344
344
  `)),Sn(n)),a.push({dimIdx:v.index,parser:p,comparator:new lV(h,d)})});var o=t.sourceFormat;o!==Fo&&o!==Rl&&(process.env.NODE_ENV!=="production"&&(n='sourceFormat "'+o+'" is not supported yet'),Sn(n));for(var s=[],l=0,c=t.count();l<c;l++)s.push(t.getRawDataItem(l));return s.sort(function(u,f){for(var h=0;h<a.length;h++){var A=a[h],d=t.retrieveValueFromItem(u,A.dimIdx),g=t.retrieveValueFromItem(f,A.dimIdx);A.parser&&(d=A.parser(d),g=A.parser(g));var y=A.comparator.evaluate(d,g);if(y!==0)return y}return 0}),{data:s}}};function Eet(r){r.registerTransform(Cet),r.registerTransform(wet)}var Bet=(function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,n,i){r.prototype.init.call(this,e,n,i),this._sourceManager=new dV(this),gV(this)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),gV(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:su},t})(Kr),ket=(function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t})(Ci);function Qet(r){r.registerComponentModel(Bet),r.registerComponentView(ket)}var pu=iu.CMD;function j0(r,t){return Math.abs(r-t)<1e-5}function c8(r){var t=r.data,e=r.len(),n=[],i,a=0,o=0,s=0,l=0;function c(W,M){i&&i.length>2&&n.push(i),i=[W,M]}function u(W,M,J,G){j0(W,J)&&j0(M,G)||i.push(W,M,J,G,J,G)}function f(W,M,J,G,N,_){var S=Math.abs(M-W),Y=Math.tan(S/4)*4/3,P=M<W?-1:1,U=Math.cos(W),F=Math.sin(W),T=Math.cos(M),R=Math.sin(M),V=U*N+J,re=F*_+G,oe=T*N+J,fe=R*_+G,Ae=N*Y*P,me=_*Y*P;i.push(V-Ae*F,re+me*U,oe+Ae*R,fe-me*T,oe,fe)}for(var h,A,d,g,y=0;y<e;){var v=t[y++],p=y===1;switch(p&&(a=t[y],o=t[y+1],s=a,l=o,(v===pu.L||v===pu.C||v===pu.Q)&&(i=[s,l])),v){case pu.M:a=s=t[y++],o=l=t[y++],c(s,l);break;case pu.L:h=t[y++],A=t[y++],u(a,o,h,A),a=h,o=A;break;case pu.C:i.push(t[y++],t[y++],t[y++],t[y++],a=t[y++],o=t[y++]);break;case pu.Q:h=t[y++],A=t[y++],d=t[y++],g=t[y++],i.push(a+2/3*(h-a),o+2/3*(A-o),d+2/3*(h-d),g+2/3*(A-g),d,g),a=d,o=g;break;case pu.A:var m=t[y++],b=t[y++],C=t[y++],w=t[y++],B=t[y++],k=t[y++]+B;y+=1;var Q=!t[y++];h=Math.cos(B)*C+m,A=Math.sin(B)*w+b,p?(s=h,l=A,c(s,l)):u(a,o,h,A),a=Math.cos(k)*C+m,o=Math.sin(k)*w+b;for(var x=(Q?-1:1)*Math.PI/2,L=B;Q?L>k:L<k;L+=x){var O=Q?Math.max(L+x,k):Math.min(L+x,k);f(L,O,m,b,C,w)}break;case pu.R:s=a=t[y++],l=o=t[y++],h=s+t[y++],A=l+t[y++],c(h,l),u(h,l,h,A),u(h,A,s,A),u(s,A,s,l),u(s,l,h,l);break;case pu.Z:i&&u(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&n.push(i),n}function u8(r,t,e,n,i,a,o,s,l,c){if(j0(r,e)&&j0(t,n)&&j0(i,o)&&j0(a,s)){l.push(o,s);return}var u=2/c,f=u*u,h=o-r,A=s-t,d=Math.sqrt(h*h+A*A);h/=d,A/=d;var g=e-r,y=n-t,v=i-o,p=a-s,m=g*g+y*y,b=v*v+p*p;if(m<f&&b<f){l.push(o,s);return}var C=h*g+A*y,w=-h*v-A*p,B=m-C*C,k=b-w*w;if(B<f&&C>=0&&k<f&&w>=0){l.push(o,s);return}var Q=[],x=[];Eh(r,e,i,o,.5,Q),Eh(t,n,a,s,.5,x),u8(Q[0],x[0],Q[1],x[1],Q[2],x[2],Q[3],x[3],l,c),u8(Q[4],x[4],Q[5],x[5],Q[6],x[6],Q[7],x[7],l,c)}function xet(r,t){var e=c8(r),n=[];t=t||1;for(var i=0;i<e.length;i++){var a=e[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var c=2;c<a.length;){var u=a[c++],f=a[c++],h=a[c++],A=a[c++],d=a[c++],g=a[c++];u8(s,l,u,f,h,A,d,g,o,t),s=d,l=g}n.push(o)}return n}function Sre(r,t,e){var n=r[t],i=r[1-t],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*e)),s=Math.floor(e/o);s===0&&(s=1,o=e);for(var l=[],c=0;c<o;c++)l.push(s);var u=o*s,f=e-u;if(f>0)for(var c=0;c<f;c++)l[c%o]+=1;return l}function Dre(r,t,e){for(var n=r.r0,i=r.r,a=r.startAngle,o=r.endAngle,s=Math.abs(o-a),l=s*i,c=i-n,u=l>Math.abs(c),f=Sre([l,c],u?0:1,t),h=(u?s:c)/f.length,A=0;A<f.length;A++)for(var d=(u?c:s)/f[A],g=0;g<f[A];g++){var y={};u?(y.startAngle=a+h*A,y.endAngle=a+h*(A+1),y.r0=n+d*g,y.r=n+d*(g+1)):(y.startAngle=a+d*g,y.endAngle=a+d*(g+1),y.r0=n+h*A,y.r=n+h*(A+1)),y.clockwise=r.clockwise,y.cx=r.cx,y.cy=r.cy,e.push(y)}}function _et(r,t,e){for(var n=r.width,i=r.height,a=n>i,o=Sre([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",c=a?"x":"y",u=a?"y":"x",f=r[s]/o.length,h=0;h<o.length;h++)for(var A=r[l]/o[h],d=0;d<o[h];d++){var g={};g[c]=h*f,g[u]=d*A,g[s]=f,g[l]=A,g.x+=r.x,g.y+=r.y,e.push(g)}}function Rre(r,t,e,n){return r*n-e*t}function Det(r,t,e,n,i,a,o,s){var l=e-r,c=n-t,u=o-i,f=s-a,h=Rre(u,f,l,c);if(Math.abs(h)<1e-6)return null;var A=r-i,d=t-a,g=Rre(A,d,u,f)/h;return g<0||g>1?null:new Tr(g*l+r,g*c+t)}function Ret(r,t,e){var n=new Tr;Tr.sub(n,e,t),n.normalize();var i=new Tr;Tr.sub(i,r,t);var a=i.dot(n);return a}function Y0(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function Met(r,t,e){for(var n=r.length,i=[],a=0;a<n;a++){var o=r[a],s=r[(a+1)%n],l=Det(o[0],o[1],s[0],s[1],t.x,t.y,e.x,e.y);l&&i.push({projPt:Ret(l,t,e),pt:l,idx:a})}if(i.length<2)return[{points:r},{points:r}];i.sort(function(y,v){return y.projPt-v.projPt});var c=i[0],u=i[i.length-1];if(u.idx<c.idx){var f=c;c=u,u=f}for(var h=[c.pt.x,c.pt.y],A=[u.pt.x,u.pt.y],d=[h],g=[A],a=c.idx+1;a<=u.idx;a++)Y0(d,r[a].slice());Y0(d,A),Y0(d,h);for(var a=u.idx+1;a<=c.idx+n;a++)Y0(g,r[a%n].slice());return Y0(g,h),Y0(g,A),[{points:d},{points:g}]}function Mre(r){var t=r.points,e=[],n=[];SC(t,e,n);var i=new Fr(e[0],e[1],n[0]-e[0],n[1]-e[1]),a=i.width,o=i.height,s=i.x,l=i.y,c=new Tr,u=new Tr;return a>o?(c.x=u.x=s+a/2,c.y=l,u.y=l+o):(c.y=u.y=l+o/2,c.x=s,u.x=s+a),Met(t,c,u)}function VE(r,t,e,n){if(e===1)n.push(t);else{var i=Math.floor(e/2),a=r(t);VE(r,a[0],i,n),VE(r,a[1],e-i,n)}return n}function Tet(r,t){for(var e=[],n=0;n<t;n++)e.push(R4(r));return e}function Fet(r,t){t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel}function Net(r){for(var t=[],e=0;e<r.length;)t.push([r[e++],r[e++]]);return t}function Let(r,t){var e=[],n=r.shape,i;switch(r.type){case"rect":_et(n,t,e),i=fn;break;case"sector":Dre(n,t,e),i=is;break;case"circle":Dre({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,e),i=is;break;default:var a=r.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=bt(xet(r.getUpdatedPathProxy(),o),function(v){return Net(v)}),l=s.length;if(l===0)VE(Mre,{points:s[0]},t,e);else if(l===t)for(var c=0;c<l;c++)e.push({points:s[c]});else{var u=0,f=bt(s,function(v){var p=[],m=[];SC(v,p,m);var b=(m[1]-p[1])*(m[0]-p[0]);return u+=b,{poly:v,area:b}});f.sort(function(v,p){return p.area-v.area});for(var h=t,c=0;c<l;c++){var A=f[c];if(h<=0)break;var d=c===l-1?h:Math.ceil(A.area/u*t);d<0||(VE(Mre,{points:A.poly},d,e),h-=d)}}i=as;break}if(!i)return Tet(r,t);for(var g=[],c=0;c<e.length;c++){var y=new i;y.setShape(e[c]),Fet(r,y),g.push(y)}return g}function Oet(r,t){var e=r.length,n=t.length;if(e===n)return[r,t];for(var i=[],a=[],o=e<n?r:t,s=Math.min(e,n),l=Math.abs(n-e)/6,c=(s-2)/6,u=Math.ceil(l/c)+1,f=[o[0],o[1]],h=l,A=2;A<s;){var d=o[A-2],g=o[A-1],y=o[A++],v=o[A++],p=o[A++],m=o[A++],b=o[A++],C=o[A++];if(h<=0){f.push(y,v,p,m,b,C);continue}for(var w=Math.min(h,u-1)+1,B=1;B<=w;B++){var k=B/w;Eh(d,y,p,b,k,i),Eh(g,v,m,C,k,a),d=i[3],g=a[3],f.push(i[1],a[1],i[2],a[2],d,g),y=i[5],v=a[5],p=i[6],m=a[6]}h-=w-1}return o===r?[f,t]:[r,f]}function Tre(r,t){for(var e=r.length,n=r[e-2],i=r[e-1],a=[],o=0;o<t.length;)a[o++]=n,a[o++]=i;return a}function Pet(r,t){for(var e,n,i,a=[],o=[],s=0;s<Math.max(r.length,t.length);s++){var l=r[s],c=t[s],u=void 0,f=void 0;l?c?(e=Oet(l,c),u=e[0],f=e[1],n=u,i=f):(f=Tre(i||l,l),u=l):(u=Tre(n||c,c),f=c),a.push(u),o.push(f)}return[a,o]}function Fre(r){for(var t=0,e=0,n=0,i=r.length,a=0,o=i-2;a<i;o=a,a+=2){var s=r[o],l=r[o+1],c=r[a],u=r[a+1],f=s*u-c*l;t+=f,e+=(s+c)*f,n+=(l+u)*f}return t===0?[r[0]||0,r[1]||0]:[e/t/3,n/t/3,t]}function Get(r,t,e,n){for(var i=(r.length-2)/6,a=1/0,o=0,s=r.length,l=s-2,c=0;c<i;c++){for(var u=c*6,f=0,h=0;h<s;h+=2){var A=h===0?u:(u+h-2)%l+2,d=r[A]-e[0],g=r[A+1]-e[1],y=t[h]-n[0],v=t[h+1]-n[1],p=y-d,m=v-g;f+=p*p+m*m}f<a&&(a=f,o=c)}return o}function Uet(r){for(var t=[],e=r.length,n=0;n<e;n+=2)t[n]=r[e-n-2],t[n+1]=r[e-n-1];return t}function Het(r,t,e,n){for(var i=[],a,o=0;o<r.length;o++){var s=r[o],l=t[o],c=Fre(s),u=Fre(l);a==null&&(a=c[2]<0!=u[2]<0);var f=[],h=[],A=0,d=1/0,g=[],y=s.length;a&&(s=Uet(s));for(var v=Get(s,l,c,u)*6,p=y-2,m=0;m<p;m+=2){var b=(v+m)%p+2;f[m+2]=s[b]-c[0],f[m+3]=s[b+1]-c[1]}f[0]=s[v]-c[0],f[1]=s[v+1]-c[1];for(var C=n/e,w=-n/2;w<=n/2;w+=C){for(var B=Math.sin(w),k=Math.cos(w),Q=0,m=0;m<s.length;m+=2){var x=f[m],L=f[m+1],O=l[m]-u[0],W=l[m+1]-u[1],M=O*k-W*B,J=O*B+W*k;g[m]=M,g[m+1]=J;var G=M-x,N=J-L;Q+=G*G+N*N}if(Q<d){d=Q,A=w;for(var _=0;_<g.length;_++)h[_]=g[_]}}i.push({from:f,to:h,fromCp:c,toCp:u,rotation:-A})}return i}function zE(r){return r.__isCombineMorphing}var Nre="__mOriginal_";function KE(r,t,e){var n=Nre+t,i=r[n]||r[t];r[n]||(r[n]=r[t]);var a=e.replace,o=e.after,s=e.before;r[t]=function(){var l=arguments,c;return s&&s.apply(this,l),a?c=a.apply(this,l):c=i.apply(this,l),o&&o.apply(this,l),c}}function Jy(r,t){var e=Nre+t;r[e]&&(r[t]=r[e],r[e]=null)}function Lre(r,t){for(var e=0;e<r.length;e++)for(var n=r[e],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=t[0]*a+t[2]*o+t[4],n[i++]=t[1]*a+t[3]*o+t[5]}}function Ore(r,t){var e=r.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),i=Pet(c8(e),c8(n)),a=i[0],o=i[1],s=r.getComputedTransform(),l=t.getComputedTransform();function c(){this.transform=null}s&&Lre(a,s),l&&Lre(o,l),KE(t,"updateTransform",{replace:c}),t.transform=null;var u=Het(a,o,10,Math.PI),f=[];KE(t,"buildPath",{replace:function(h){for(var A=t.__morphT,d=1-A,g=[],y=0;y<u.length;y++){var v=u[y],p=v.from,m=v.to,b=v.rotation*A,C=v.fromCp,w=v.toCp,B=Math.sin(b),k=Math.cos(b);q2(g,C,w,A);for(var Q=0;Q<p.length;Q+=2){var x=p[Q],L=p[Q+1],O=m[Q],W=m[Q+1],M=x*d+O*A,J=L*d+W*A;f[Q]=M*k-J*B+g[0],f[Q+1]=M*B+J*k+g[1]}var G=f[0],N=f[1];h.moveTo(G,N);for(var Q=2;Q<p.length;){var O=f[Q++],W=f[Q++],_=f[Q++],S=f[Q++],Y=f[Q++],P=f[Q++];G===O&&N===W&&_===Y&&S===P?h.lineTo(Y,P):h.bezierCurveTo(O,W,_,S,Y,P),G=Y,N=P}}}})}function f8(r,t,e){if(!r||!t)return t;var n=e.done,i=e.during;Ore(r,t),t.__morphT=0;function a(){Jy(t,"buildPath"),Jy(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},fr({during:function(o){t.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},e)),t}function jet(r,t,e,n,i,a){var o=16;r=i===e?0:Math.round(32767*(r-e)/(i-e)),t=a===n?0:Math.round(32767*(t-n)/(a-n));for(var s=0,l,c=(1<<o)/2;c>0;c/=2){var u=0,f=0;(r&c)>0&&(u=1),(t&c)>0&&(f=1),s+=c*c*(3*u^f),f===0&&(u===1&&(r=c-1-r,t=c-1-t),l=r,r=t,t=l)}return s}function qE(r){var t=1/0,e=1/0,n=-1/0,i=-1/0,a=bt(r,function(s){var l=s.getBoundingRect(),c=s.getComputedTransform(),u=l.x+l.width/2+(c?c[4]:0),f=l.y+l.height/2+(c?c[5]:0);return t=Math.min(u,t),e=Math.min(f,e),n=Math.max(u,n),i=Math.max(f,i),[u,f]}),o=bt(a,function(s,l){return{cp:s,z:jet(s[0],s[1],t,e,n,i),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Pre(r){return Let(r.path,r.count)}function h8(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Yet(r,t,e){var n=[];function i(C){for(var w=0;w<C.length;w++){var B=C[w];zE(B)?i(B.childrenRef()):B instanceof Vr&&n.push(B)}}i(r);var a=n.length;if(!a)return h8();var o=e.dividePath||Pre,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),h8();n=qE(n),s=qE(s);for(var l=e.done,c=e.during,u=e.individualDelay,f=new Wu,h=0;h<a;h++){var A=n[h],d=s[h];d.parent=t,d.copyTransform(f),u||Ore(A,d)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function g(C){for(var w=0;w<s.length;w++)s[w].addSelfToZr(C)}KE(t,"addSelfToZr",{after:function(C){g(C)}}),KE(t,"removeSelfFromZr",{after:function(C){for(var w=0;w<s.length;w++)s[w].removeSelfFromZr(C)}});function y(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Jy(t,"addSelfToZr"),Jy(t,"removeSelfFromZr")}var v=s.length;if(u)for(var p=v,m=function(){p--,p===0&&(y(),l&&l())},h=0;h<v;h++){var b=u?fr({delay:(e.delay||0)+u(h,v,n[h],s[h]),done:m},e):e;f8(n[h],s[h],b)}else t.__morphT=0,t.animateTo({__morphT:1},fr({during:function(C){for(var w=0;w<v;w++){var B=s[w];B.__morphT=t.__morphT,B.dirtyShape()}c&&c(C)},done:function(){y();for(var C=0;C<r.length;C++)Jy(r[C],"updateTransform");l&&l()}},e));return t.__zr&&g(t.__zr),{fromIndividuals:n,toIndividuals:s,count:v}}function Wet(r,t,e){var n=t.length,i=[],a=e.dividePath||Pre;function o(A){for(var d=0;d<A.length;d++){var g=A[d];zE(g)?o(g.childrenRef()):g instanceof Vr&&i.push(g)}}if(zE(r)){o(r.childrenRef());var s=i.length;if(s<n)for(var l=0,c=s;c<n;c++)i.push(R4(i[l++%s]));i.length=n}else{i=a({path:r,count:n});for(var u=r.getComputedTransform(),c=0;c<i.length;c++)i[c].setLocalTransform(u);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),h8()}i=qE(i),t=qE(t);for(var f=e.individualDelay,c=0;c<n;c++){var h=f?fr({delay:(e.delay||0)+f(c,n,i[c],t[c])},e):e;f8(i[c],t[c],h)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function Gre(r){return mt(r[0])}function Ure(r,t){for(var e=[],n=r.length,i=0;i<n;i++)e.push({one:r[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)e[o%n].many.push(t[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!e[i].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var a=l.length,c=Math.ceil(a/2);e[i].many=l.slice(c,a),e[s].many=l.slice(0,c),s++}return e}var Jet={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var i=R4(r.path);i.setStyle("opacity",e),t.push(i)}return t},split:null};function A8(r,t,e,n,i,a){if(!r.length||!t.length)return;var o=Zp("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),c,u;Gre(r)&&(c=r,u=t),Gre(t)&&(c=t,u=r);function f(v,p,m,b,C){var w=v.many,B=v.one;if(w.length===1&&!C){var k=p?w[0]:B,Q=p?B:w[0];if(zE(k))f({many:[k],one:Q},!0,m,b,!0);else{var x=s?fr({delay:s(m,b)},l):l;f8(k,Q,x),a(k,Q,k,Q,x)}}else for(var L=fr({dividePath:Jet[e],individualDelay:s&&function(N,_,S,Y){return s(N+m,b)}},l),O=p?Yet(w,B,L):Wet(B,w,L),W=O.fromIndividuals,M=O.toIndividuals,J=W.length,G=0;G<J;G++){var x=s?fr({delay:s(G,J)},l):l;a(W[G],M[G],p?w[G]:v.one,p?v.one:w[G],x)}}for(var h=c?c===r:r.length>t.length,A=c?Ure(u,c):Ure(h?t:r,[h?r:t]),d=0,g=0;g<A.length;g++)d+=A[g].many.length;for(var y=0,g=0;g<A.length;g++)f(A[g],h,y,d),y+=A[g].many.length}function Xd(r){if(!r)return[];if(mt(r)){for(var t=[],e=0;e<r.length;e++)t.push(Xd(r[e]));return t}var n=[];return r.traverse(function(i){i instanceof Vr&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var Hre=1e4,Vet=0,jre=1,Yre=2,zet=un();function Ket(r,t){for(var e=r.dimensions,n=0;n<e.length;n++){var i=r.getDimensionInfo(e[n]);if(i&&i.otherDims[t]===0)return e[n]}}function qet(r,t,e){var n=r.getDimensionInfo(e),i=n&&n.ordinalMeta;if(n){var a=r.get(n.name,t);return i&&i.categories[a]||a+""}}function Wre(r,t,e,n){var i=n?"itemChildGroupId":"itemGroupId",a=Ket(r,i);if(a){var o=qet(r,t,a);return o}var s=r.getRawDataItem(t),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return e||r.getId(t)}function Jre(r){var t=[];return ge(r,function(e){var n=e.data,i=e.dataGroupId;if(n.count()>Hre){process.env.NODE_ENV!=="production"&&Di("Universal transition is disabled on large data > 10k.");return}for(var a=n.getIndices(),o=0;o<a.length;o++)t.push({data:n,groupId:Wre(n,o,i,!1),childGroupId:Wre(n,o,i,!0),divide:e.divide,dataIndex:o})}),t}function d8(r,t,e){r.traverse(function(n){n instanceof Vr&&Ai(n,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function g8(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function W0(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function Xet(r,t,e){var n=Zp("update",e,t);n&&r.traverse(function(i){if(i instanceof Ql){var a=GNe(i);a&&i.animateFrom({style:a},n)}})}function Zet(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++){var i=r[n],a=t[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function Vre(r,t,e){var n=Jre(r),i=Jre(t);function a(m,b,C,w,B){(C||m)&&b.animateFrom({style:C&&C!==m?ht(ht({},C.style),m.style):m.style},B)}var o=!1,s=Vet,l=Kt(),c=Kt();n.forEach(function(m){m.groupId&&l.set(m.groupId,!0),m.childGroupId&&c.set(m.childGroupId,!0)});for(var u=0;u<i.length;u++){var f=i[u].groupId;if(c.get(f)){s=jre;break}var h=i[u].childGroupId;if(h&&l.get(h)){s=Yre;break}}function A(m,b){return function(C){var w=C.data,B=C.dataIndex;return b?w.getId(B):m?s===jre?C.childGroupId:C.groupId:s===Yre?C.childGroupId:C.groupId}}var d=Zet(n,i),g={};if(!d)for(var u=0;u<i.length;u++){var y=i[u],v=y.data.getItemGraphicEl(y.dataIndex);v&&(g[v.id]=!0)}function p(m,b){var C=n[b],w=i[m],B=w.data.hostModel,k=C.data.getItemGraphicEl(C.dataIndex),Q=w.data.getItemGraphicEl(w.dataIndex);if(k===Q){Q&&Xet(Q,w.dataIndex,B);return}k&&g[k.id]||Q&&(W0(Q),k?(W0(k),g8(k),o=!0,A8(Xd(k),Xd(Q),w.divide,B,m,a)):d8(Q,B,m))}new tf(n,i,A(!0,d),A(!1,d),null,"multiple").update(p).updateManyToOne(function(m,b){var C=i[m],w=C.data,B=w.hostModel,k=w.getItemGraphicEl(C.dataIndex),Q=_n(bt(b,function(x){return n[x].data.getItemGraphicEl(n[x].dataIndex)}),function(x){return x&&x!==k&&!g[x.id]});k&&(W0(k),Q.length?(ge(Q,function(x){W0(x),g8(x)}),o=!0,A8(Xd(Q),Xd(k),C.divide,B,m,a)):d8(k,B,C.dataIndex))}).updateOneToMany(function(m,b){var C=n[b],w=C.data.getItemGraphicEl(C.dataIndex);if(!(w&&g[w.id])){var B=_n(bt(m,function(Q){return i[Q].data.getItemGraphicEl(i[Q].dataIndex)}),function(Q){return Q&&Q!==w}),k=i[m[0]].data.hostModel;B.length&&(ge(B,function(Q){return W0(Q)}),w?(W0(w),g8(w),o=!0,A8(Xd(w),Xd(B),C.divide,k,m[0],a)):ge(B,function(Q){return d8(Q,k,m[0])}))}}).updateManyToMany(function(m,b){new tf(b,m,function(C){return n[C].data.getId(n[C].dataIndex)},function(C){return i[C].data.getId(i[C].dataIndex)}).update(function(C,w){p(m[C],b[w])}).execute()}).execute(),o&&ge(t,function(m){var b=m.data,C=b.hostModel,w=C&&e.getViewOfSeriesModel(C),B=Zp("update",C,0);w&&C.isAnimationEnabled()&&B&&B.duration>0&&w.group.traverse(function(k){k instanceof Vr&&!k.animators.length&&k.animateFrom({style:{opacity:0}},B)})})}function zre(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Kre(r){return mt(r)?r.sort().join(","):r}function Zh(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function $et(r,t){var e=Kt(),n=Kt(),i=Kt();ge(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],c=r.oldData[s],u=zre(o),f=Kre(u);n.set(f,{dataGroupId:l,data:c}),mt(u)&&ge(u,function(h){i.set(h,{key:f,dataGroupId:l,data:c})})});function a(o){e.get(o)&&Di("Duplicated seriesKey in universalTransition "+o)}return ge(t.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),c=zre(o),u=Kre(c),f=n.get(u);if(f)process.env.NODE_ENV!=="production"&&a(u),e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Zh(f.data),data:f.data}],newSeries:[{dataGroupId:s,divide:Zh(l),data:l}]});else if(mt(c)){process.env.NODE_ENV!=="production"&&a(u);var h=[];ge(c,function(g){var y=n.get(g);y.data&&h.push({dataGroupId:y.dataGroupId,divide:Zh(y.data),data:y.data})}),h.length&&e.set(u,{oldSeries:h,newSeries:[{dataGroupId:s,data:l,divide:Zh(l)}]})}else{var A=i.get(c);if(A){var d=e.get(A.key);d||(d={oldSeries:[{dataGroupId:A.dataGroupId,data:A.data,divide:Zh(A.data)}],newSeries:[]},e.set(A.key,d)),d.newSeries.push({dataGroupId:s,data:l,divide:Zh(l)})}}}}),e}function qre(r,t){for(var e=0;e<r.length;e++){var n=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(n)return e}}function ett(r,t,e,n){var i=[],a=[];ge(jn(r.from),function(o){var s=qre(t.oldSeries,o);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Zh(t.oldData[s]),groupIdDim:o.dimension})}),ge(jn(r.to),function(o){var s=qre(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Zh(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&Vre(i,a,n)}function ttt(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){ge(jn(n.seriesTransition),function(i){ge(jn(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][gw]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,n){var i=zet(e);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)ge(jn(a),function(A){ett(A,i,n,e)});else{var o=$et(i,n);ge(o.keys(),function(A){var d=o.get(A);Vre(d.oldSeries,d.newSeries,e)})}ge(n.updatedSeries,function(A){A[gw]&&(A[gw]=!1)})}for(var s=t.getSeries(),l=i.oldSeries=[],c=i.oldDataGroupIds=[],u=i.oldData=[],f=0;f<s.length;f++){var h=s[f].getData();h.count()<Hre&&(l.push(s[f]),c.push(s[f].get("dataGroupId")),u.push(h))}})}Hr([uHe]),Hr([aHe]),Hr([SHe,WHe,tje,Tje,Wje,DYe,aWe,HWe,uJe,pJe,BJe,mVe,YVe,tze,vze,bze,Dze,Oze,Kze,tKe,fKe,VKe]),Hr(hqe),Hr(Oqe),Hr(HX),Hr(Xqe),Hr(c$),Hr(tXe),Hr(uXe),Hr(XXe),Hr(pZe),Hr(Ly),Hr(MZe),Hr(NZe),Hr(JZe),Hr($Ze),Hr(a$e),Hr(f$e),Hr(b$e),Hr(P$e),Hr(nre),Hr(sre),Hr(aet),Hr(wre),Hr(Bre),Hr(fet),Hr(Eet),Hr(Qet),Hr(ttt),Hr(BUe);var XE=1;function zs(r){var t=60,e=62,n=45,i=47,a=33,o=39,s=34,l=63,c=`\r
345
- >/= `,u=0;return XE=1,Xre((function f(){for(var h=[];r[u];){if(r.charCodeAt(u)==t){if(r.charCodeAt(u+1)===i)return u=r.indexOf(">",u),h;if(r.charCodeAt(u+1)===a){if(r.charCodeAt(u+2)==n){for(;r.charCodeAt(u)!==e||r.charCodeAt(u-1)!=n||r.charCodeAt(u-2)!=n||u==-1;)u=r.indexOf(">",u+1);u===-1&&(u=r.length)}else for(u+=2;r.charCodeAt(u)!==e;u++);u++;continue}if(r.charCodeAt(u+1)===l){u=r.indexOf(">",u),u++;continue}for(var A=++u;c.indexOf(r[u])===-1;u++);for(var d=r.slice(A,u),g=!1,y={};r.charCodeAt(u)!==e;u++){var v=r.charCodeAt(u);if(v>64&&v<91||v>96&&v<123){for(A=u;c.indexOf(r[u])===-1;u++);for(var p=r.slice(A,u),m=r.charCodeAt(u);m!==o&&m!==s;)u++,m=r.charCodeAt(u);var b=r[u],C=++u;u=r.indexOf(b,C);var w=r.slice(C,u);g||(y={},g=!0),y[p]=w}}var B=[];r.charCodeAt(u-1)!==i&&(u++,B=f()),h.push({children:B,tagName:d,attrs:y})}else{var k=u;(u=r.indexOf("<",u)-1)===-2&&(u=r.length);var Q=r.slice(k,u+1);Q.length>0&&h.push(Q)}u++}return h})())}function Xre(r){var t={};if(r===void 0)return{};if(r.length===1&&typeof r[0]=="string")return r[0];for(var e in r.forEach(function(n){if(t[n.tagName]||(t[n.tagName]=[]),typeof n=="object"){var i=Xre(n.children);typeof i=="object"&&(n.attrs&&(i.attrs=n.attrs),i.attrs===void 0?i.attrs={order:XE}:i.attrs.order=XE),XE++,t[n.tagName].push(i)}}),t)t[e].length==1&&(t[e]=t[e][0]);return t}function kn(r){return r/12700}function ZE(r){return r/100}function $E(r){return r/6e4}function $h(r){return r/1e5}function p8(r){var t=Math.ceil(r/26),e=(r%26||26)-1+65;return String.fromCharCode(e).repeat(t)}function Ji(r,t,e){var n={type:"solidFill"};if(r["a:srgbClr"])n.color="#"+r["a:srgbClr"].attrs.val;else if(r["a:schemeClr"]){var i=r["a:schemeClr"].attrs.val;e&&(i=e.getColorThemeName(i)),n.color=t.getColor(i)}else if(r["a:sysClr"])n.color="#"+r["a:sysClr"].attrs.lastClr;else if(r["a:prstClr"]){var a=Pe.get(r["a:prstClr"],["attrs","val"]);n.color=(function(h){var A,d=["white","AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquaMarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenRod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","RebeccaPurple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown","SeaGreen","SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","SlateGrey","Snow","SpringGreen","SteelBlue","Tan","Teal","Thistle","Tomato","Turquoise","Violet","Wheat","White","WhiteSmoke","Yellow","YellowGreen"],g=["ffffff","f0f8ff","faebd7","00ffff","7fffd4","f0ffff","f5f5dc","ffe4c4","000000","ffebcd","0000ff","8a2be2","a52a2a","deb887","5f9ea0","7fff00","d2691e","ff7f50","6495ed","fff8dc","dc143c","00ffff","00008b","008b8b","b8860b","a9a9a9","a9a9a9","006400","bdb76b","8b008b","556b2f","ff8c00","9932cc","8b0000","e9967a","8fbc8f","483d8b","2f4f4f","2f4f4f","00ced1","9400d3","ff1493","00bfff","696969","696969","1e90ff","b22222","fffaf0","228b22","ff00ff","dcdcdc","f8f8ff","ffd700","daa520","808080","808080","008000","adff2f","f0fff0","ff69b4","cd5c5c","4b0082","fffff0","f0e68c","e6e6fa","fff0f5","7cfc00","fffacd","add8e6","f08080","e0ffff","fafad2","d3d3d3","d3d3d3","90ee90","ffb6c1","ffa07a","20b2aa","87cefa","778899","778899","b0c4de","ffffe0","00ff00","32cd32","faf0e6","ff00ff","800000","66cdaa","0000cd","ba55d3","9370db","3cb371","7b68ee","00fa9a","48d1cc","c71585","191970","f5fffa","ffe4e1","ffe4b5","ffdead","000080","fdf5e6","808000","6b8e23","ffa500","ff4500","da70d6","eee8aa","98fb98","afeeee","db7093","ffefd5","ffdab9","cd853f","ffc0cb","dda0dd","b0e0e6","800080","663399","ff0000","bc8f8f","4169e1","8b4513","fa8072","f4a460","2e8b57","fff5ee","a0522d","c0c0c0","87ceeb","6a5acd","708090","708090","fffafa","00ff7f","4682b4","d2b48c","008080","d8bfd8","ff6347","40e0d0","ee82ee","f5deb3","ffffff","f5f5f5","ffff00","9acd32"],y=d.indexOf(h);return y!=-1&&(A=g[y]),"#".concat(A||"000000")})(a)}var o=r["a:srgbClr"]||r["a:schemeClr"]||r["a:sysClr"],s=Pe.get(o,["a:alpha","attrs","val"],1e5);n.alpha=s/1e5;var l=Pe.get(o,["a:shade","attrs","val"]);l&&(n.shade=l/1e5);var c=Pe.get(o,["a:lumMod","attrs","val"]);c&&(n.lumMod=c/1e5);var u=Pe.get(o,["a:lumOff","attrs","val"]);u&&(n.lumOff=u/1e5);var f=Pe.get(o,["a:tint","attrs","val"]);return f&&(n.tint=f/1e5),n}function Vy(r,t,e){var n,i={type:"blipFill"},a=Pe.get(r,["a:blip","attrs","r:embed"]);if(a){var o=(n=e.rels[a])===null||n===void 0?void 0:n.target;o&&(i.base64=t.getMedia(o))}var s=Pe.get(r,["a:blip","a:alphaModFix","attrs","amt"]);s&&(i.alpha=s/1e5);var l=Pe.get(r,["a:stretch","a:fillRect","attrs"]);return l&&(i.fillRect={},l.b&&(i.fillRect.b=l.b/1e5),l.t&&(i.fillRect.t=l.t/1e5),l.r&&(i.fillRect.r=l.r/1e5),l.l&&(i.fillRect.l=l.l/1e5)),i}function zy(r,t,e){var n={type:"gradFill",tileRect:{},lin:{},gsList:[]};n.flip=r.attrs.flip,n.path=Pe.get(r,["a:path","attrs","path"])||"linear",n.rotWithShape=r.attrs.rotWithShape==="1",Pe.get(r,["a:lin","attrs","ang"])&&(n.lin.ang=$E(r["a:lin"].attrs.ang)),Pe.get(r,["a:lin","attrs","scaled"])&&(n.lin.scaled=r["a:lin"].attrs.scaled==="1");var i=Pe.get(r,["a:gsLst","a:gs"])||[];return n.gsList=i.map(function(a){return{color:Ji(a,t,e),pos:$h(a.attrs.pos)}}),Pe.get(r,["a:tileRect","attrs","l"])&&(n.tileRect.l=$h(r["a:tileRect"].attrs.l)),Pe.get(r,["a:tileRect","attrs","t"])&&(n.tileRect.t=$h(r["a:tileRect"].attrs.t)),Pe.get(r,["a:tileRect","attrs","r"])&&(n.tileRect.r=$h(r["a:tileRect"].attrs.r)),Pe.get(r,["a:tileRect","attrs","b"])&&(n.tileRect.b=$h(r["a:tileRect"].attrs.b)),n}function v8(r){return r<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function y8(r){return r<.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055}function Zre(r,t){var e=r[0],n=r[1],i=r[2],a=v8(e/255)*t,o=v8(n/255)*t,s=v8(i/255)*t;return[Math.round(255*y8(a)),Math.round(255*y8(o)),Math.round(255*y8(s))]}function m8(r,t,e){var n=r/255,i=t/255,a=e/255,o=Math.max(n,i,a),s=Math.min(n,i,a),l=o-s,c=0,u=(o+s)/2;return l===0?c=0:o===n?c=(i-a)/l%6:o===i?c=(a-n)/l+2:o===a&&(c=(n-i)/l+4),(c=Math.round(60*c))<0&&(c+=360),{h:c,s:l===0||u===0||u===1?0:l/(1-Math.abs(2*u-1)),l:u}}function I8(r,t,e){var n,i,a,o=(1-Math.abs(2*e-1))*t,s=o*(1-Math.abs(r/60%2-1)),l=e-o/2;return r<60?(n=o,i=s,a=0):r<120?(n=s,i=o,a=0):r<180?(n=0,i=o,a=s):r<240?(n=0,i=s,a=o):r<300?(n=s,i=0,a=o):(n=o,i=0,a=s),[n=Math.round(255*(n+l)),i=Math.round(255*(i+l)),a=Math.round(255*(a+l))]}function Tn(r,t){if(!r||r.type==="none")return"";if(r.type==="solidFill"&&/^#[\da-fA-F]{3,6}$/.test(r.color)){var e=parseInt(r.color.substr(1,2),16),n=parseInt(r.color.substr(3,2),16),i=parseInt(r.color.substr(5,2),16);if(r.shade){var a=Zre([e,n,i],r.shade);e=a[0],n=a[1],i=a[2]}if(r.lumMod){var o=(function(u,f,h,A){var d=m8(u,f,h),g=d.h,y=d.l*A;return y>=1&&(y=1),I8(g,d.s,y)})(e,n,i,r.lumMod);e=o[0],n=o[1],i=o[2]}if(r.lumOff&&(o=(function(u,f,h,A){var d=m8(u,f,h),g=d.h,y=A+d.l;return y>1&&(y=1),I8(g,d.s,y)})(e,n,i,r.lumOff),e=o[0],n=o[1],i=o[2]),r.tint||t!=null&&t.light){var s=(function(u,f,h,A){var d=m8(u,f,h),g=d.h,y=d.l;return A>=1&&(A=1),I8(g,d.s,y*A+(1-A))})(e,n,i,r.tint||t?.light);e=s[0],n=s[1],i=s[2]}if(t!=null&&t.dark){var l=Zre([e,n,i],t?.dark);e=l[0],n=l[1],i=l[2]}var c=r.alpha;return"rgba(".concat(e,",").concat(n,",").concat(i,",").concat(c,")")}}var Ky=(function(){function r(t,e,n){this.uuid=$Re(),this.offset={x:0,y:0},this.extend={w:0,h:0},this.rotate=0,this.order=0,this.flipV=!1,this.flipH=!1,this.source=t,this.ctx=e,this.group=n;var i=Pe.get(t,["p:nvSpPr","p:nvPr"]);if(i){var a=Pe.get(i,"p:ph");a&&a.attrs&&(this.idx=a.attrs.idx,this.type=a.attrs.type),Pe.get(i,["attrs","userDrawn"])&&(this.userDrawn=Pe.get(i,["attrs","userDrawn"])==="1")}if(this.order=Pe.get(t,"attrs.order",0),this.source["p:spPr"])(o=this.getXfrm())&&(this.offset={x:Math.round(kn(parseInt(o["a:off"].attrs.x))),y:Math.round(kn(parseInt(o["a:off"].attrs.y)))},this.extend={w:Math.round(kn(parseInt(o["a:ext"].attrs.cx))),h:Math.round(kn(parseInt(o["a:ext"].attrs.cy||"0")))},this.rotate=$E(parseInt(Pe.get(o,"attrs.rot",0))),this.flipV=Pe.get(o,"attrs.flipV")==="1",this.flipH=Pe.get(o,"attrs.flipH")==="1");else if(this.source["p:xfrm"]){var o=this.source["p:xfrm"];this.offset={x:Math.round(kn(parseInt(o["a:off"].attrs.x))),y:Math.round(kn(parseInt(o["a:off"].attrs.y)))},this.extend={w:Math.round(kn(parseInt(o["a:ext"].attrs.cx))),h:Math.round(kn(parseInt(o["a:ext"].attrs.cy)))}}if(n){var s=n.extend,l=n.chExtend,c=n.chOffset,u=l.w===0?0:s.w/l.w,f=l.h===0?0:s.h/l.h;this.extend.w=this.extend.w*u,this.extend.h=this.extend.h*f,this.offset.x=(this.offset.x-c.x)*u,this.offset.y=(this.offset.y-c.y)*f}}return Object.defineProperty(r.prototype,"theme",{get:function(){return(this.ctx.sliderMaster||this.ctx).theme},enumerable:!1,configurable:!0}),r.prototype.getColorThemeName=function(t){return this.ctx.getColorThemeName(t)},r.prototype.getXfrm=function(){var t=this.source["p:spPr"]["a:xfrm"];return t||(this.idx?t=this.ctx.getNodeInheritAttrsByIdx(this.idx,["p:spPr","a:xfrm"]):this.type&&(t=this.ctx.getNodeInheritAttrsByType(this.type,["p:spPr","a:xfrm"]))),t},r})(),rtt=(function(){function r(t,e){this.props={},this.inheritProps={},this.source=t,this.node=e,this._getInheritBodyProps(),this._parseBodyProps(),this._parseLstStyle(),this._parseText()}return r.prototype._getInheritBodyProps=function(){var t,e=this.node.ctx,n=this.node.type,i=this.node.idx;if(n||i)switch(e.slideType){case"slideMaster":break;case"slideLayout":(t=n?e.slideMaster.getNodeByType(n):e.slideMaster.getNodeByIdx(i))&&(this.inheritProps=Pe.get(t,["textBody","props"])||{});break;case"slide":(t=n?e.slideLayout.slideMaster.getNodeByType(n):e.slideLayout.slideMaster.getNodeByIdx(i))&&Object.assign(this.inheritProps,Pe.get(t,["textBody","props"])||{}),(t=n?e.slideLayout.getNodeByType(n):e.slideLayout.getNodeByIdx(i))&&Object.assign(this.inheritProps,Pe.get(t,["textBody","props"])||{})}},r.prototype._parseBodyProps=function(){var t=this,e=Pe.get(this.source,["a:bodyPr","attrs"])||{};Object.keys(e).forEach(function(o){switch(o){case"anchor":t.props.anchor=e[o];break;case"rtlCol":t.props.rtlCol=e[o]==="1";break;case"lIns":case"rIns":case"tIns":case"bIns":t.props[o]=kn(parseInt(e[o]));break;case"order":break;default:t.props[o]=e[o]}});var n=Pe.get(this.source,["a:bodyPr","a:normAutofit","attrs"]);if(n){this.props.normAutofit={};var i=n.fontScale;i&&(this.props.normAutofit.fontScale=$h(parseInt(i)));var a=n.lnSpcReduction;a&&(this.props.normAutofit.lnSpcReduction=$h(parseInt(a)))}},r.prototype._parseLstStyle=function(){var t=this,e={},n=Pe.get(this.source,"a:lstStyle")||{};Object.keys(n).forEach(function(i){if(i.startsWith("a:")&&i.endsWith("pPr")){var a=i.substr(2,i.length-5);e[a]={props:t._formatPPr(n[i])};var o=Pe.get(n[i],["a:defRPr"]);e[a].defRPr=t._formatRPr(o)}}),this.lstStyle=e},r.prototype._parseText=function(){var t=this,e=Pe.get(this.source,["a:p"])||[];Array.isArray(e)||(e=[e]),this.paragraphs=e.map(function(n){return t._parseParagraph(n)})},r.prototype._parseParagraph=function(t){var e=this,n={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},i=Pe.get(t,["a:pPr"])||{};n.props=this._formatPPr(i);var a=Pe.get(t,["a:endParaRPr"]);n.endParaRProps=this._formatRPr(a);var o=Pe.get(t,["a:r"])||[];Array.isArray(o)||(o=[o]);var s=Pe.get(t,["a:br"])||[];return Array.isArray(s)||(s=[s]),(o=o.concat(s.map(function(l){return jt({isBr:!0},l)}))).sort(function(l,c){return Pe.get(l,["attrs","order"])-Pe.get(c,["attrs","order"])}),n.rows=o.map(function(l){return e._parseRow(l)}),n.inheritProps=this._getInheritPProps(n.props.level),n.inheritRProps=this._getInheritRProps(n.props.level),n},r.prototype._getInheritPProps=function(t){t===void 0&&(t="0");var e,n={},i=this.node.ctx,a=this.node.type,o=this.node.idx;switch(i.slideType){case"slideMaster":this.node.isTextBox?Object.assign(n,Pe.get(i.defaultTextStyle,["lvl".concat(t?+t+1:1),"props"])||{}):Object.assign(n,Pe.get(i,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"props"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(n,Pe.get(i.slideMaster.defaultTextStyle,["lvl".concat(t?+t+1:1),"props"])||{}):Object.assign(n,Pe.get(i.slideMaster,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"props"])||{}),(a||o)&&(e=a?i.slideMaster.getNodeByType(a):i.slideMaster.getNodeByIdx(o))&&Object.assign(n,Pe.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"props"])||{});break;case"slide":this.node.isTextBox?Object.assign(n,Pe.get(i.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(t?+t+1:1),"props"])||{}):Object.assign(n,Pe.get(i.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"props"])||{}),(a||o)&&(["subTitle","ctrTitle","title"].includes(a)&&Object.assign(n,Pe.get(i.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(t?+t+1:1),"props"])||{}),(e=a?i.slideLayout.slideMaster.getNodeByType(a):i.slideLayout.slideMaster.getNodeByIdx(o))&&Object.assign(n,Pe.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"props"])||{}),(e=a?i.slideLayout.getNodeByType(a):i.slideLayout.getNodeByIdx(o))&&Object.assign(n,Pe.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"props"])||{}))}return n},r.prototype._getInheritRProps=function(t){t===void 0&&(t="0");var e,n={},i=this.node.ctx,a=this.node.type,o=this.node.idx;switch(i.slideType){case"slideMaster":this.node.isTextBox?Object.assign(n,Pe.get(i.defaultTextStyle,["lvl".concat(t?+t+1:1),"defRPr"])||{}):Object.assign(n,Pe.get(i,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"defRPr"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(n,Pe.get(i.slideMaster.defaultTextStyle,["lvl".concat(t?+t+1:1),"defRPr"])||{}):Object.assign(n,Pe.get(i.slideMaster,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}),(a||o)&&(e=a?i.slideMaster.getNodeByType(a):i.slideMaster.getNodeByIdx(o))&&(n=Pe.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"defRPr"])||{});break;case"slide":this.node.isTextBox?Object.assign(n,Pe.get(i.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(t?+t+1:1),"defRPr"])||{}):Object.assign(n,Pe.get(i.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}),(a||o)&&(["subTitle","ctrTitle","title"].includes(a)&&Object.assign(n,Pe.get(i.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}),(e=a?i.slideLayout.slideMaster.getNodeByType(a):i.slideLayout.slideMaster.getNodeByIdx(o))&&Object.assign(n,Pe.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}),(e=a?i.slideLayout.getNodeByType(a):i.slideLayout.getNodeByIdx(o))&&Object.assign(n,Pe.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}))}var s=Pe.get(this.node.source,["p:style","a:fontRef"]);return Pe.get(s,"a:schemeClr")&&(n.color=Ji(s,this.node.theme,this.node)),Pe.get(this.lstStyle,["lvl".concat(t?+t+1:1),"defRPr"])&&Object.assign(n,Pe.get(this.lstStyle,["lvl".concat(t?+t+1:1),"defRPr"])),n},r.prototype._formatPPr=function(t){var e={},n=Pe.get(t,"attrs")||{};return Object.keys(n).forEach(function(i){switch(i){case"algn":e.align=n[i];break;case"marL":e.marginLeft=kn(parseInt(n[i]));break;case"indent":e.indent=kn(parseInt(n[i]));break;case"lvl":e.level=n[i]}}),Pe.get(t,["a:lnSpc","a:spcPct","attrs","val"])&&(e.lineHeight=parseInt(t["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),Pe.get(t,["a:buAutoNum","attrs","type"])&&(e.buAutoNum=t["a:buAutoNum"].attrs.type),Pe.get(t,["a:buChar","attrs","char"])&&(e.buChar=t["a:buChar"].attrs.char),Pe.get(t,["a:spcBef","a:spcPts","attrs","val"])&&(e.spaceBefore=ZE(parseInt(t["a:spcBef"]["a:spcPts"].attrs.val))),Pe.get(t,["a:spcAft","a:spcPts","attrs","val"])&&(e.spaceAfter=ZE(parseInt(t["a:spcAft"]["a:spcPts"].attrs.val))),e},r.prototype._parseRow=function(t){if(t.isBr)return{isBr:!0};var e={props:{},text:""},n=Pe.get(t,["a:rPr"])||{};return e.props=this._formatRPr(n),e.text=Pe.get(t,"a:t")||"",e},r.prototype._formatRPr=function(t){var e={},n=Pe.get(t,"attrs")||{};Object.keys(n).forEach(function(o){switch(o){case"sz":e.size=parseInt(n[o])/100;break;case"b":e.bold=n[o]==="1";break;case"i":e.italic=n[o]==="1";break;case"u":e.underline=n[o];break;case"strike":e.strike=n[o];break;case"order":case"dirty":break;default:e[o]=n[o]}});var i=Pe.get(t,"a:solidFill");i&&(e.color=Ji(i,this.node.theme,this.node));var a=Pe.get(t,"a:highlight");return a&&(e.background=Ji(a,this.node.theme,this.node)),e.typeface=Pe.get(t,["a:ea","attrs","typeface"]),e},r})();function J0(r,t,e){var n={};if(!Pe.get(r,"a:noFill")){Pe.get(r,"attrs.w")&&(n.width=kn(parseInt(Pe.get(r,"attrs.w"))));var i=Pe.get(r,"a:solidFill");i&&(n.color=Ji(i,t,e));var a=Pe.get(r,"a:prstDash");if(a&&(n.type=a.attrs.val),Pe.get(r,["a:miter"])&&(n.lineJoin="miter"),Pe.get(r,["a:bevel"])&&(n.lineJoin="bevel"),Pe.get(r,["a:round"])&&(n.lineJoin="round"),Pe.get(r,["a:miter","attrs","lim"])&&(n.miterLim=kn(parseInt(Pe.get(r,["a:miter","attrs","lim"])))),Pe.get(r,["a:headEnd"])){var o=Pe.get(r,["a:headEnd","attrs"]);n.headEnd={type:o.type,len:o.len,w:o.w}}if(Pe.get(r,["a:tailEnd"])){var s=Pe.get(r,["a:tailEnd","attrs"]);n.tailEnd={type:s.type,len:s.len,w:s.w}}return n}}var qy=(function(r){function t(e,n,i,a){var o=r.call(this,e,i,a)||this;return o.border={},o.prstGeom={},o.isTextBox=!1,o.pptx=n,o._parseShape(),o._parIsTextBox(),o._parsePrstGeom(),o._parseBackground(),o._parseBorder(),o._parseTxt(),o}return zv(t,r),t.prototype._parseShape=function(){if(this.shape=Pe.get(this.source,["p:spPr","a:prstGeom","attrs","prst"]),!this.shape&&Pe.get(this.source,["p:spPr","a:custGeom"])){this.shape="customGeom";var e=Pe.get(this.source,["p:spPr","a:custGeom","a:pathLst","a:path"]),n=[],i=[],a=function(s){switch(s){case"a:moveTo":case"a:cubicBezTo":case"a:lnTo":i=Array.isArray(e[s])?e[s]:[e[s]],n=n.concat(i.map(function(l){return{order:l.attrs.order,type:s.split(":")[1],points:(Array.isArray(l["a:pt"])?l["a:pt"]:[l["a:pt"]]).map(function(c){return[kn(parseInt(Pe.get(c,["attrs","x"]))),kn(parseInt(Pe.get(c,["attrs","y"])))]})}}));break;case"a:close":i=Array.isArray(e[s])?e[s]:[e[s]],n=n.concat(i.map(function(l){return{order:l.attrs.order,type:s.split(":")[1]}}))}};for(var o in e)a(o);n.sort(function(s,l){return s.order-l.order}),this.prstGeom.pathList=n,Pe.get(e,["attrs","w"])&&(this.prstGeom.w=kn(parseInt(Pe.get(e,["attrs","w"])))),Pe.get(e,["attrs","h"])&&(this.prstGeom.h=kn(parseInt(Pe.get(e,["attrs","h"]))))}},t.prototype._parIsTextBox=function(){this.isTextBox=Pe.get(this.source,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])==="1"},t.prototype._parsePrstGeom=function(){var e=this,n=Pe.get(this.source,["p:spPr","a:prstGeom"]),i=Pe.get(n,["a:avLst","a:gd"]);i&&(Array.isArray(i)||(i=[i]),this.prstGeom.gd=i.map(function(a){var o=["pie","chord","arc"].includes(e.shape)||["blockArc"].includes(e.shape)&&["adj1","adj2"].includes(a.attrs.name)?$E(parseInt(a.attrs.fmla.split(" ")[1])):$h(parseInt(a.attrs.fmla.split(" ")[1]));return{name:a.attrs.name,fmla:o}}))},t.prototype._parseBackground=function(){if(!Pe.get(this.source,["p:spPr","a:noFill"]))if(Pe.get(this.source,["p:spPr","a:grpFill"])&&this.group)this.background=this.group.getBackground();else{var e=Pe.get(this.source,["p:spPr","a:solidFill"]);if(e)this.background=Ji(e,this.theme,this);else{var n=Pe.get(this.source,["p:spPr","a:gradFill"]);if(n)this.background=zy(n,this.theme,this);else{var i=Pe.get(this.source,["p:spPr","a:blipFill"]);if(i)this.background=Vy(i,this.pptx,this.ctx);else{var a=Pe.get(this.source,["p:style","a:fillRef"]);a&&(this.background=Ji(a,this.theme,this))}}}}},t.prototype._parseBorder=function(){var e=Pe.get(this.source,["p:style","a:lnRef"]);if(e){var n=parseInt(e.attrs.idx),i=this.theme.getLineStyle(n);this.border=jt(jt({},i),this.border),this.border.color&&this.border.color.color||(this.border.color=Ji(e,this.theme,this))}var a=Pe.get(this.source,["p:spPr","a:ln"]);a&&Object.assign(this.border,J0(a,this.theme,this)),this.border.color&&this.border.color.color&&!this.border.width&&(this.border.width=t.defaultBorderWidth)},t.prototype._parseTxt=function(){this.textBody=new rtt(Pe.get(this.source,["p:txBody"]),this)},t.defaultBorderWidth=.75,t})(Ky),eB=(function(r){function t(e,n,i,a,o){var s,l,c=r.call(this,n,a,o)||this;c.userDrawn=!0,c.pptx=i,c.path=e;var u=Pe.get(c.source,["p:blipFill","a:srcRect"]);u&&(c.clip={},u.attrs.b&&(c.clip.b=parseInt(u.attrs.b)/1e5),u.attrs.t&&(c.clip.t=parseInt(u.attrs.t)/1e5),u.attrs.l&&(c.clip.l=parseInt(u.attrs.l)/1e5),u.attrs.r&&(c.clip.r=parseInt(u.attrs.r)/1e5));var f=Pe.get(n,["p:nvPicPr","p:nvPr","a:audioFile","attrs","r:link"]);if(f){var h=(s=c.ctx.rels[f])===null||s===void 0?void 0:s.target;c.audioFile=c.pptx.getMedia(h)}var A=Pe.get(n,["p:nvPicPr","p:nvPr","a:videoFile","attrs","r:link"]);if(A){var d=(l=c.ctx.rels[A])===null||l===void 0?void 0:l.target;c.videoFile=c.pptx.getMedia(d)}return c}return zv(t,r),Object.defineProperty(t.prototype,"base64",{get:function(){return this.pptx.getMedia(this.path)},enumerable:!1,configurable:!0}),t})(Ky),$re=(function(r){function t(e,n,i,a){var o=r.call(this,e,i,a)||this;return o.userDrawn=!0,o.props={tableStyleId:""},o.tableGrid={gridCol:[]},o.tr=[],o.tableStyles={},o.pptx=n,o._parseTableProps(),o._parseTableGrid(),o._parseTr(),o._parseInheritStyles(),o}return zv(t,r),Object.defineProperty(t.prototype,"slideMaster",{get:function(){return this.ctx.slideMaster||this.ctx},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),t.prototype._parseTableProps=function(){var e=Pe.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblPr"]);this.props.tableStyleId=Pe.get(e,"a:tableStyleId"),this.tableStyles=Pe.get(this.slideMaster.tableStyles,this.props.tableStyleId)||{},Pe.get(e,["attrs","bandCol"])==="1"&&(this.props.bandCol=!0),Pe.get(e,["attrs","bandRow"])==="1"&&(this.props.bandRow=!0),Pe.get(e,["attrs","firstCol"])==="1"&&(this.props.firstCol=!0),Pe.get(e,["attrs","firstRow"])==="1"&&(this.props.firstRow=!0),Pe.get(e,["attrs","lastCol"])==="1"&&(this.props.lastCol=!0),Pe.get(e,["attrs","lastRow"])==="1"&&(this.props.lastRow=!0)},t.prototype._parseTableGrid=function(){var e=Pe.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblGrid","a:gridCol"]);if(e)for(var n=0;n<e.length;n++){var i=Pe.get(e[n],["attrs","w"]);this.tableGrid.gridCol.push({width:kn(parseInt(i))})}},t.prototype._parseTr=function(){var e=[],n=Pe.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tr"]);Array.isArray(n)||(n=[n]);for(var i=0;i<n.length;i++){var a={props:{},td:[]},o=n[i];a.props.height=kn(parseInt(Pe.get(o,["attrs","h"])));var s=Pe.get(o,["a:tc"]);Array.isArray(s)||(s=[s]);for(var l=0;l<s.length;l++)a.td.push(this._parseTd(s[l]));e.push(a)}this.tr=e},t.prototype._parseTd=function(e){var n,i,a,o,s=this,l={props:{border:{}},paragraphs:[]},c=Pe.get(e,["a:tcPr","attrs"]);c!=null&&c.marB&&(l.props.marB=kn(parseInt(c?.marB))),c!=null&&c.marT&&(l.props.marT=kn(parseInt(c?.marT))),c!=null&&c.marL&&(l.props.marL=kn(parseInt(c?.marL))),c!=null&&c.marR&&(l.props.marR=kn(parseInt(c?.marR))),c!=null&&c.anchor&&(l.props.anchor=c?.anchor);var u=Pe.get(e,["a:tcPr"]);Pe.get(u,["a:lnR"])&&(l.props.border.right=J0(Pe.get(u,["a:lnR"]),this.theme,this.ctx)),Pe.get(u,["a:lnL"])&&(l.props.border.left=J0(Pe.get(u,["a:lnL"]),this.theme,this.ctx)),Pe.get(u,["a:lnT"])&&(l.props.border.top=J0(Pe.get(u,["a:lnT"]),this.theme,this.ctx)),Pe.get(u,["a:lnB"])&&(l.props.border.bottom=J0(Pe.get(u,["a:lnB"]),this.theme,this.ctx)),!((n=e?.attrs)===null||n===void 0)&&n.rowSpan&&(l.props.rowSpan=parseInt(e.attrs.rowSpan)),!((i=e?.attrs)===null||i===void 0)&&i.gridSpan&&(l.props.gridSpan=parseInt(e.attrs.gridSpan)),!((a=e?.attrs)===null||a===void 0)&&a.vMerge&&(l.props.vMerge=e.attrs.vMerge==="1"),!((o=e?.attrs)===null||o===void 0)&&o.hMerge&&(l.props.hMerge=e.attrs.hMerge==="1");var f=Pe.get(e,["a:tcPr","a:solidFill"]);f&&(l.props.background=Ji(f,this.theme,this.ctx));var h=Pe.get(e,["a:txBody"]),A=Pe.get(h,["a:p"]);return Array.isArray(A)||(A=[A]),l.paragraphs=A.map(function(d){return s._parseParagraph(d)}),l},t.prototype._parseParagraph=function(e){var n=this,i={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},a=Pe.get(e,["a:pPr"])||{};i.props=this._formatPPr(a);var o=Pe.get(e,["a:endParaRPr"]);i.endParaRProps=this._formatRPr(o);var s=Pe.get(e,["a:r"])||[];Array.isArray(s)||(s=[s]);var l=Pe.get(e,["a:br"])||[];return Array.isArray(l)||(l=[l]),(s=s.concat(l.map(function(c){return jt({isBr:!0},c)}))).sort(function(c,u){return Pe.get(c,["attrs","order"])-Pe.get(u,["attrs","order"])}),i.rows=s.map(function(c){return n._parseRow(c)}),i},t.prototype._parseRow=function(e){if(e.isBr)return{isBr:!0};var n={props:{},text:""},i=Pe.get(e,["a:rPr"])||{};return n.props=this._formatRPr(i),n.text=Pe.get(e,"a:t")||"",n},t.prototype._formatPPr=function(e){var n={},i=Pe.get(e,"attrs")||{};return Object.keys(i).forEach(function(a){a==="algn"&&(n.align=i[a])}),Pe.get(e,["a:lnSpc","a:spcPct","attrs","val"])&&(n.lineHeight=parseInt(e["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),Pe.get(e,["a:buAutoNum","attrs","type"])&&(n.buAutoNum=e["a:buAutoNum"].attrs.type),Pe.get(e,["a:buChar","attrs","char"])&&(n.buChar=e["a:buChar"].attrs.char),Pe.get(e,["a:spcBef","a:spcPts","attrs","val"])&&(n.spaceBefore=ZE(parseInt(e["a:spcBef"]["a:spcPts"].attrs.val))),Pe.get(e,["a:spcAft","a:spcPts","attrs","val"])&&(n.spaceAfter=ZE(parseInt(e["a:spcAft"]["a:spcPts"].attrs.val))),n},t.prototype._formatRPr=function(e){var n={},i=Pe.get(e,"attrs")||{};Object.keys(i).forEach(function(s){switch(s){case"sz":n.size=parseInt(i[s])/100;break;case"b":n.bold=i[s]==="1";break;case"i":n.italic=i[s]==="1";break;case"u":n.underline=i[s];break;case"strike":n.strike=i[s];break;case"order":case"dirty":break;default:n[s]=i[s]}});var a=Pe.get(e,"a:solidFill");a&&(n.color=Ji(a,this.theme,this.ctx));var o=Pe.get(e,"a:highlight");return o&&(n.background=Ji(o,this.theme,this.ctx)),n.typeface=Pe.get(e,["a:ea","attrs","typeface"]),n},t.prototype._isLastCol=function(e,n){var i,a;if(n===e.length-1)return!0;for(var o=n+1;o<e.length;o++)if(!(!((i=e[o].props)===null||i===void 0)&&i.hMerge)&&!(!((a=e[o].props)===null||a===void 0)&&a.vMerge))return!1;return!0},t.prototype._isBandRow=function(e){var n;return!((n=this.props)===null||n===void 0)&&n.firstRow?e%2==1:e%2==0},t.prototype._isBandCol=function(e){var n;return!((n=this.props)===null||n===void 0)&&n.firstCol?e%2==1:e%2==0},t.prototype._parseInheritStyles=function(){var e,n,i,a,o,s,l,c,u=this,f=(n=(e=this.tableStyles)===null||e===void 0?void 0:e.wholeTbl)===null||n===void 0?void 0:n.tcStyle,h=(a=(i=this.tableStyles)===null||i===void 0?void 0:i.wholeTbl)===null||a===void 0?void 0:a.tcTxStyle,A=(s=(o=this.slideMaster.defaultTextStyle)===null||o===void 0?void 0:o.lvl1)===null||s===void 0?void 0:s.props,d=(c=(l=this.slideMaster.defaultTextStyle)===null||l===void 0?void 0:l.lvl1)===null||c===void 0?void 0:c.defRPr;this.tr.forEach(function(g,y){g.td.forEach(function(v,p){var m,b,C,w,B,k,Q,x,L,O,W,M,J,G,N,_,S,Y,P,U,F,T,R,V,re,oe,fe,Ae,me,le,he,j,ae,ce,ie,K,te,Z,X,q,de,Ce,ne,be,De,ye,ve,_e,Oe,qe,Ne,$e,gt,Re,He,lt,ot=jt(jt({},A),f),Et=jt(jt({},d),h);u.props.firstRow&&y===0?(ot=jt(jt(jt({},ot),(b=(m=u.tableStyles)===null||m===void 0?void 0:m.firstRow)===null||b===void 0?void 0:b.tcStyle),{border:jt(jt({},ot?.border),(B=(w=(C=u.tableStyles)===null||C===void 0?void 0:C.firstRow)===null||w===void 0?void 0:w.tcStyle)===null||B===void 0?void 0:B.border)}),Et=jt(jt({},Et),(Q=(k=u.tableStyles)===null||k===void 0?void 0:k.firstRow)===null||Q===void 0?void 0:Q.tcTxStyle)):u.props.lastRow&&y===u.tr.length-1?(ot=jt(jt(jt({},ot),(L=(x=u.tableStyles)===null||x===void 0?void 0:x.lastRow)===null||L===void 0?void 0:L.tcStyle),{border:jt(jt({},ot?.border),(M=(W=(O=u.tableStyles)===null||O===void 0?void 0:O.lastRow)===null||W===void 0?void 0:W.tcStyle)===null||M===void 0?void 0:M.border)}),Et=jt(jt({},Et),(G=(J=u.tableStyles)===null||J===void 0?void 0:J.lastRow)===null||G===void 0?void 0:G.tcTxStyle)):u.props.firstCol&&p===0?(ot=jt(jt(jt({},ot),(_=(N=u.tableStyles)===null||N===void 0?void 0:N.firstCol)===null||_===void 0?void 0:_.tcStyle),{border:jt(jt({},ot?.border),(P=(Y=(S=u.tableStyles)===null||S===void 0?void 0:S.firstCol)===null||Y===void 0?void 0:Y.tcStyle)===null||P===void 0?void 0:P.border)}),Et=jt(jt({},Et),(F=(U=u.tableStyles)===null||U===void 0?void 0:U.firstCol)===null||F===void 0?void 0:F.tcTxStyle)):u.props.lastCol&&u._isLastCol(g.td,p)?(ot=jt(jt(jt({},ot),(R=(T=u.tableStyles)===null||T===void 0?void 0:T.lastCol)===null||R===void 0?void 0:R.tcStyle),{border:jt(jt({},ot?.border),(oe=(re=(V=u.tableStyles)===null||V===void 0?void 0:V.lastCol)===null||re===void 0?void 0:re.tcStyle)===null||oe===void 0?void 0:oe.border)}),Et=jt(jt({},Et),(Ae=(fe=u.tableStyles)===null||fe===void 0?void 0:fe.lastCol)===null||Ae===void 0?void 0:Ae.tcTxStyle)):(u.props.bandRow&&(u._isBandRow(y)?(ot=jt(jt(jt({},ot),(le=(me=u.tableStyles)===null||me===void 0?void 0:me.band1H)===null||le===void 0?void 0:le.tcStyle),{border:jt(jt({},ot?.border),(ae=(j=(he=u.tableStyles)===null||he===void 0?void 0:he.band1H)===null||j===void 0?void 0:j.tcStyle)===null||ae===void 0?void 0:ae.border)}),Et=jt(jt({},Et),(ie=(ce=u.tableStyles)===null||ce===void 0?void 0:ce.band1H)===null||ie===void 0?void 0:ie.tcTxStyle)):(ot=jt(jt(jt({},ot),(te=(K=u.tableStyles)===null||K===void 0?void 0:K.band2V)===null||te===void 0?void 0:te.tcStyle),{border:jt(jt({},ot?.border),(q=(X=(Z=u.tableStyles)===null||Z===void 0?void 0:Z.band2V)===null||X===void 0?void 0:X.tcStyle)===null||q===void 0?void 0:q.border)}),Et=jt(jt({},Et),(Ce=(de=u.tableStyles)===null||de===void 0?void 0:de.band2V)===null||Ce===void 0?void 0:Ce.tcTxStyle))),u.props.bandCol&&(u._isBandCol(p)?(ot=jt(jt(jt({},ot),(be=(ne=u.tableStyles)===null||ne===void 0?void 0:ne.band1V)===null||be===void 0?void 0:be.tcStyle),{border:jt(jt({},ot?.border),(ve=(ye=(De=u.tableStyles)===null||De===void 0?void 0:De.band1V)===null||ye===void 0?void 0:ye.tcStyle)===null||ve===void 0?void 0:ve.border)}),Et=jt(jt({},Et),(Oe=(_e=u.tableStyles)===null||_e===void 0?void 0:_e.band1V)===null||Oe===void 0?void 0:Oe.tcTxStyle)):(ot=jt(jt(jt({},ot),(Ne=(qe=u.tableStyles)===null||qe===void 0?void 0:qe.band2H)===null||Ne===void 0?void 0:Ne.tcStyle),{border:jt(jt({},ot?.border),(Re=(gt=($e=u.tableStyles)===null||$e===void 0?void 0:$e.band2H)===null||gt===void 0?void 0:gt.tcStyle)===null||Re===void 0?void 0:Re.border)}),Et=jt(jt({},Et),(lt=(He=u.tableStyles)===null||He===void 0?void 0:He.band2H)===null||lt===void 0?void 0:lt.tcTxStyle)))),v.inheritTcStyle=ot,v.inheritTcTxStyle=Et})})},t})(Ky),b8=(function(){function r(t,e,n,i){if(this.offset={x:0,y:0},this.chOffset={x:0,y:0},this.extend={w:0,h:0},this.chExtend={w:0,h:0},this.rotate=0,this.nodes=[],this.flipV=!1,this.flipH=!1,this.userDrawn=!0,this.order=Pe.get(t,["attrs","order"]),this.pptx=e,this.ctx=n,this.source=t,this.group=i,this.source["p:grpSpPr"]){var a=Pe.get(this.source,["p:grpSpPr","a:xfrm"]);if(a&&(this.offset={x:Math.round(kn(parseInt(a["a:off"].attrs.x))),y:Math.round(kn(parseInt(a["a:off"].attrs.y)))},this.chOffset={x:Math.round(kn(parseInt(a["a:chOff"].attrs.x))),y:Math.round(kn(parseInt(a["a:chOff"].attrs.y)))},this.extend={w:Math.round(kn(parseInt(a["a:ext"].attrs.cx))),h:Math.round(kn(parseInt(a["a:ext"].attrs.cy)))},this.chExtend={w:Math.round(kn(parseInt(a["a:chExt"].attrs.cx))),h:Math.round(kn(parseInt(a["a:chExt"].attrs.cy)))},this.rotate=$E(parseInt(Pe.get(a,"attrs.rot",0))),this.flipV=Pe.get(a,"attrs.flipV")==="1",this.flipH=Pe.get(a,"attrs.flipH")==="1"),i){var o=i.extend,s=i.chExtend,l=i.chOffset,c=o.w/s.w,u=o.h/s.h;this.extend.w=this.extend.w*c,this.extend.h=this.extend.h*u,this.offset.x=(this.offset.x-l.x)*c,this.offset.y=(this.offset.y-l.y)*u}}this._parseBackground(),this._parseNodes()}return r.prototype.getBackground=function(){return this.background&&this.background.type!=="none"?this.background:this.group?this.group.getBackground():void 0},r.prototype._parseBackground=function(){var t=Pe.get(this.source,["p:grpSpPr"]);t&&t["a:solidFill"]?this.background=Ji(t["a:solidFill"],this.ctx.theme,this.ctx):t&&t["a:gradFill"]?this.background=zy(t["a:gradFill"],this.ctx.theme,this.ctx):t&&t["a:blipFill"]&&(this.background=Vy(t["a:blipFill"],this.pptx,this.ctx))},r.prototype._parseNodes=function(){var t=this.source;Xy(this.nodes,t,this.pptx,this.ctx,this)},r})(),ene=(function(r){function t(e,n,i,a){var o=r.call(this,e,i,a)||this;return o.nodes=[],o.pptx=n,o}return zv(t,r),t.prototype.parseNode=function(){return Ma(this,void 0,void 0,function(){var e,n,i,a,o,s,l,c,u;return Ta(this,function(f){switch(f.label){case 0:return f.trys.push([0,3,,4]),(e=Pe.get(this.source,["a:graphic","a:graphicData","dgm:relIds","attrs","r:dm"]))&&this.ctx.rels[e]?(n=this.ctx.rels[e].target,a=zs,[4,this.pptx.getXmlByPath(n)]):[2];case 1:return i=a.apply(void 0,[f.sent()]),(o=Pe.get(i,["dgm:dataModel","dgm:extLst","a:ext","dsp:dataModelExt","attrs","relId"]))&&this.ctx.rels[o]?(s=this.ctx.rels[o].target,[4,this.pptx.getXmlByPath(s)]):[2];case 2:return l=(l=f.sent()).replace(/dsp:/g,"p:"),c=zs(l),u=Pe.get(c,["p:drawing","p:spTree"]),Xy(this.nodes,u,this.pptx,this.ctx),[3,4];case 3:return f.sent(),[3,4];case 4:return[2]}})})},t})(Ky),tne=(function(r){function t(e,n,i,a){var o=r.call(this,e,i,a)||this;return o.options={title:{},tooltip:{},legend:{},series:[],color:[]},o.userDrawn=!0,o.pptx=n,o}return zv(t,r),Object.defineProperty(t.prototype,"slideMaster",{get:function(){return this.ctx.slideMaster||this.ctx},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),t.prototype.parseNode=function(){return Ma(this,void 0,void 0,function(){var e,n,i,a,o,s;return Ta(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),(e=Pe.get(this.source,["a:graphic","a:graphicData","c:chart","attrs","r:id"]))&&this.ctx.rels[e]?(n=this.ctx.rels[e].target,a=zs,[4,this.pptx.getXmlByPath(n)]):[2];case 1:return i=a.apply(void 0,[l.sent()]),o=Pe.get(i,["c:chartSpace","c:chart"]),s=Pe.get(o,["c:plotArea"]),Pe.get(s,["c:lineChart"])?this.parseLine(Pe.get(s,["c:lineChart"]),o):Pe.get(s,["c:line3DChart"])?this.parseLine(Pe.get(s,["c:line3DChart"]),o):Pe.get(s,["c:areaChart"])?this.parseAreaLine(Pe.get(s,["c:areaChart"]),o):Pe.get(s,["c:area3DChart"])?this.parseAreaLine(Pe.get(s,["c:area3DChart"]),o):Pe.get(s,["c:barChart"])?this.parseBar(Pe.get(s,["c:barChart"]),o):Pe.get(s,["c:bar3DChart"])?this.parseBar(Pe.get(s,["c:bar3DChart"]),o):Pe.get(s,["c:pieChart"])?this.parsePie(Pe.get(s,["c:pieChart"])):Pe.get(s,["c:pie3DChart"])?this.parsePie(Pe.get(s,["c:pie3DChart"])):Pe.get(s,["c:doughnutChart"])&&this.parseDoughnutChart(Pe.get(s,["c:doughnutChart"])),[3,3];case 2:return l.sent(),[3,3];case 3:return[2]}})})},t.prototype.parseAreaLine=function(e,n){this.parseLine(e,n),this.options.series=this.options.series.map(function(i){return i.areaStyle={},i})},t.prototype.parseLine=function(e,n){var i=Pe.get(e,["c:ser"]);Array.isArray(i)||(i=[i]),this.options.title={top:"top",left:"center",text:this.parseChartTitle(Pe.get(n,["c:title"]))},this.options.xAxis={type:"category",data:this.getCategory(i[0])},this.options.yAxis={type:"value"},this.options.series=this.parseLineSeries(i,e),this.options.color=this.parseLineColors(i),this.options.legend={bottom:"bottom",left:"center"},Pe.get(e,["c:grouping","attrs","val"])==="percentStacked"&&(this.options.tooltip.valueFormatter=function(a){return(100*a).toFixed(2)+"%"})},t.prototype.parseBar=function(e,n){var i=Pe.get(e,["c:ser"]);Array.isArray(i)||(i=[i]),this.options.title={top:"top",left:"center",text:this.parseChartTitle(Pe.get(n,["c:title"]))},Pe.get(e,["c:barDir","attrs","val"])==="bar"?(this.options.yAxis={type:"category",data:this.getCategory(i[0])},this.options.xAxis={type:"value"}):(this.options.xAxis={type:"category",data:this.getCategory(i[0])},this.options.yAxis={type:"value"}),this.options.series=this.parseBarSeries(i,e),this.options.color=this.parseBarColors(i),this.options.legend={bottom:"bottom",left:"center"},Pe.get(e,["c:grouping","attrs","val"])==="percentStacked"&&(this.options.tooltip.valueFormatter=function(a){return(100*a).toFixed(2)+"%"})},t.prototype.parsePie=function(e){var n=Pe.get(e,["c:ser"]);this.options.title={top:"top",left:"center",text:this.parsePieTitle(n)},this.options.color=this.parsePieColors(n),this.options.series=[this.parsePieSeries(n,e)],this.options.legend={bottom:"bottom",left:"center"}},t.prototype.parseDoughnutChart=function(e){var n=Pe.get(e,["c:ser"]);this.options.title.text=this.parsePieTitle(n),this.options.color=this.parsePieColors(n),this.options.series=[this.parsePieSeries(n,e)],this.options.legend={bottom:"bottom",left:"center"}},t.prototype.parsePieTitle=function(e){return Pe.get(e,["c:tx","c:strRef","c:strCache","c:pt","c:v"])},t.prototype.parseChartTitle=function(e){var n=Pe.get(e,["c:tx","c:rich","a:p"]);return Array.isArray(n)||(n=[n]),n.map(function(i){var a=Pe.get(i,["a:r"]);return Array.isArray(a)||(a=[a]),a.map(function(o){return Pe.get(o,["a:t"])||""}).join("")}).join("")||"图表标题"},t.prototype.parseBarColors=function(e){var n=this;return e.map(function(i){return Tn(Ji(Pe.get(i,["c:spPr","a:solidFill"]),n.theme,n.ctx))})},t.prototype.parseLineColors=function(e){var n=this;return e.map(function(i){return Tn(Ji(Pe.get(i,["c:spPr","a:ln","a:solidFill"])||Pe.get(i,["c:spPr","a:solidFill"]),n.theme,n.ctx))})},t.prototype.parsePieColors=function(e){var n=this,i=[],a=Pe.get(e,["c:dPt"]);return Array.isArray(a)||(a=[a]),a.forEach(function(o){i.push(Tn(Ji(Pe.get(o,["c:spPr","a:solidFill"]),n.theme,n.ctx)))}),i},t.prototype.parsePieSeries=function(e,n){var i={type:"pie",radius:"80%",startAngle:90,data:[]};Pe.get(n,["c:holeSize","attrs","val"])&&(i.radius=["".concat(.8*Pe.get(n,["c:holeSize","attrs","val"]),"%"),"80%"]);var a=Pe.get(n,["c:firstSliceAng","attrs","val"]);a&&(i.startAngle=90-a);for(var o=this.getCategory(e),s=this.getVal(e),l=0;l<o.length;l++)i.data.push({name:o[l],value:s[l]});return i},t.prototype.parseBarSeries=function(e,n){var i,a=this,o=Pe.get(n,["c:grouping","attrs","val"]);o==="stacked"?i="Ad":o==="percentStacked"&&(i="total");var s=e.map(function(c){return{type:"bar",name:Pe.get(c,["c:tx","c:strRef","c:strCache","c:pt","c:v"]),data:a.getVal(c),stack:i}});if(o==="percentStacked"){var l=[];s.forEach(function(c,u){l=u===0?Kv([],c.data):l.map(function(f,h){return f+c.data[h]})}),s.forEach(function(c){c.data=c.data.map(function(u,f){return l[f]<=0?0:u/l[f]})})}return s},t.prototype.parseLineSeries=function(e,n){var i,a=this,o=Pe.get(n,["c:grouping","attrs","val"]);o==="stacked"?i="Ad":o==="percentStacked"&&(i="total");var s=e.map(function(c){return{type:"line",name:Pe.get(c,["c:tx","c:strRef","c:strCache","c:pt","c:v"]),data:a.getVal(c),stack:i}});if(i==="total"){var l=[];s.forEach(function(c,u){l=u===0?Kv([],c.data):l.map(function(f,h){return f+c.data[h]})}),s.forEach(function(c){c.data=c.data.map(function(u,f){return l[f]<=0?0:u/l[f]})})}return s},t.prototype.getCategory=function(e){if(Pe.get(e,["c:cat","c:strRef"])){var n=Pe.get(e,["c:cat","c:strRef","c:strCache","c:pt"]);return Array.isArray(n)||(n=[n]),n.map(function(i){return Pe.get(i,["c:v"])})}if(Pe.get(e,["c:cat","c:numRef"]))return n=Pe.get(e,["c:cat","c:numRef","c:numCache","c:pt"]),Array.isArray(n)||(n=[n]),n.map(function(i){return Pe.get(i,["c:v"])})},t.prototype.getVal=function(e){var n=Pe.get(e,["c:val","c:numRef","c:numCache","c:pt"]);return Array.isArray(n)||(n=[n]),n.map(function(i){return+Pe.get(i,["c:v"])})},t})(Ky);function rne(r){var t={},e=Pe.get(r,"attrs")||{};return Object.keys(e).forEach(function(n){switch(n){case"algn":t.align=e[n];break;case"marL":t.marginLeft=kn(parseInt(e[n]));break;case"indent":t.indent=kn(parseInt(e[n]));break;case"lvl":t.level=e[n]}}),Pe.get(r,["a:lnSpc","a:spcPct","attrs","val"])&&(t.lineHeight=parseInt(r["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),t}function nne(r,t,e){var n={},i=Pe.get(r,"attrs")||{};Object.keys(i).forEach(function(o){switch(o){case"sz":n.size=parseInt(i[o])/100;break;case"b":n.bold=i[o]==="1";break;case"i":n.italic=i[o]==="1";break;case"u":n.underline=i[o];break;case"strike":n.strike=i[o];break;case"order":case"dirty":break;default:n[o]=i[o]}});var a=Pe.get(r,"a:solidFill");return a&&(n.color=Ji(a,t,e)),n}function Xy(r,t,e,n,i){return Ma(this,void 0,void 0,function(){var a,o,s,l,c,u,f,h,A,d,g,y,v,p,m,b,C,w,B,k,Q;return Ta(this,function(x){switch(x.label){case 0:for(s in o=[],a=t)o.push(s);l=0,x.label=1;case 1:if(!(l<o.length))return[3,17];if(!((s=o[l])in a))return[3,16];switch(c=s){case"p:sp":return[3,2];case"p:pic":return[3,3];case"p:cxnSp":return[3,4];case"p:graphicFrame":return[3,5];case"p:grpSp":return[3,14]}return[3,15];case 2:for(u=Array.isArray(t[c])?t[c]:[t[c]],k=0;k<u.length;k++)v=u[k],r.push(new qy(v,e,n,i));return[3,16];case 3:for(f=Array.isArray(t[c])?t[c]:[t[c]],k=0;k<f.length;k++)h=f[k],A=h["p:blipFill"]["a:blip"].attrs["r:embed"],d=n.rels[A].target,g=new eB(d,h,e,n,i),r.push(g);return[3,16];case 4:for(y=Array.isArray(t[c])?t[c]:[t[c]],k=0;k<y.length;k++)v=y[k],r.push(new qy(v,e,n,i));return[3,16];case 5:p=Array.isArray(t[c])?t[c]:[t[c]],k=0,x.label=6;case 6:if(!(k<p.length))return[3,13];switch(m=p[k],b=Pe.get(m,["a:graphic","a:graphicData","attrs","uri"]),b){case"http://schemas.openxmlformats.org/drawingml/2006/table":return[3,7];case"http://schemas.openxmlformats.org/drawingml/2006/diagram":return[3,8];case"http://schemas.openxmlformats.org/drawingml/2006/chart":return[3,10]}return[3,12];case 7:return r.push(new $re(m,e,n,i)),[3,12];case 8:return[4,(C=new ene(m,e,n,i)).parseNode()];case 9:return x.sent(),r.push(C),[3,12];case 10:return[4,(w=new tne(m,e,n,i)).parseNode()];case 11:return x.sent(),r.push(w),[3,12];case 12:return k++,[3,6];case 13:return[3,16];case 14:for(B=Array.isArray(t[c])?t[c]:[t[c]],k=0;k<B.length;k++)Q=B[k],r.push(new b8(Q,e,n,i));return[3,16];case 15:return[3,16];case 16:return l++,[3,1];case 17:return[2]}})})}var ntt=(function(){function r(t,e,n){this.slideType="slide",this.rels={},this.background={type:"none"},this.nodes=[],this.name=t,this.source=e,this.pptx=n}return Object.defineProperty(r.prototype,"index",{get:function(){if(!this.name)return 0;var t=this.name.match(/(\d+)/);return t?parseInt(t[0]):1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"slideMaster",{get:function(){return this.slideLayout&&this.slideLayout.slideMaster},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"_relsPath",{get:function(){return this.name.replace("slides/slide","slides/_rels/slide")+".rels"},enumerable:!1,configurable:!0}),r.prototype.load=function(){return Ma(this,void 0,void 0,function(){return Ta(this,function(t){switch(t.label){case 0:return[4,this._loadRels()];case 1:return t.sent(),this._loadBackground(),[4,this._loadNodes()];case 2:return t.sent(),[2]}})})},r.prototype._loadRels=function(){return Ma(this,void 0,void 0,function(){var t,e,n,i=this;return Ta(this,function(a){switch(a.label){case 0:return e=zs,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return t=e.apply(void 0,[a.sent()]),n=Pe.get(t,["Relationships","Relationship"])||[],Array.isArray(n)||(n=[n]),n.forEach(function(o){switch(Pe.get(o,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout":var s=o.attrs.Target.replace("../","ppt/");s.startsWith("/ppt")&&(s=s.substr(1)),i.slideLayout=i.pptx.getSlideLayout(s);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData":case"http://schemas.microsoft.com/office/2007/relationships/diagramDrawing":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart":var l=o.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),i.rels[o.attrs.Id]={type:o.attrs.Type.split("/").pop(),target:l}}}),[2]}})})},r.prototype._loadBackground=function(){var t=Pe.get(this.source,["p:sld","p:cSld","p:bg","p:bgPr"]);t&&t["a:solidFill"]?this.background=Ji(t["a:solidFill"],this.theme,this):t&&t["a:gradFill"]?this.background=zy(t["a:gradFill"],this.theme,this):t&&t["a:blipFill"]&&(this.background=Vy(t["a:blipFill"],this.pptx,this))},r.prototype._loadNodes=function(){return Ma(this,void 0,void 0,function(){var t;return Ta(this,function(e){switch(e.label){case 0:return t=Pe.get(this.source,["p:sld","p:cSld","p:spTree"]),[4,Xy(this.nodes,t,this.pptx,this)];case 1:return e.sent(),[2]}})})},r.prototype.getColorThemeName=function(t){return this.slideLayout.getColorThemeName(t)},r.prototype.getNodeInheritAttrsByType=function(t,e){var n=this.slideLayout.getNodeByType(t),i=Pe.get(n.source,e);return i||this.slideLayout.getNodeInheritAttrsByType(t,e)},r.prototype.getNodeInheritAttrsByIdx=function(t,e){var n=this.slideLayout.getNodeByIdx(t),i=Pe.get(n.source,e);return i||this.slideLayout.getNodeInheritAttrsByIdx(t,e)},r})(),itt=(function(){function r(t,e,n){this.slideType="slideLayout",this.rels={},this.background={type:"none"},this.nodes=[],this.name=t,this.source=e,this.pptx=n}return Object.defineProperty(r.prototype,"_relsPath",{get:function(){return this.name.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels"},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),r.prototype.load=function(){return Ma(this,void 0,void 0,function(){return Ta(this,function(t){switch(t.label){case 0:return[4,this._loadRels()];case 1:return t.sent(),[4,this._loadBackground()];case 2:return t.sent(),[4,this._loadNodes()];case 3:return t.sent(),[2]}})})},r.prototype._loadRels=function(){return Ma(this,void 0,void 0,function(){var t,e,n,i=this;return Ta(this,function(a){switch(a.label){case 0:return e=zs,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return t=e.apply(void 0,[a.sent()]),n=Pe.get(t,["Relationships","Relationship"])||[],Array.isArray(n)||(n=[n]),n.forEach(function(o){switch(Pe.get(o,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster":var s=o.attrs.Target.replace("../","ppt/");s.startsWith("/ppt")&&(s=s.substr(1)),i.slideMaster=i.pptx.getSlideMaster(s);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":var l=o.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),i.rels[o.attrs.Id]={type:o.attrs.Type.split("/").pop(),target:l}}}),[2]}})})},r.prototype._loadBackground=function(){return Ma(this,void 0,void 0,function(){var t;return Ta(this,function(e){return(t=Pe.get(this.source,["p:sldLayout","p:cSld","p:bg","p:bgPr"]))&&t["a:solidFill"]?this.background=Ji(t["a:solidFill"],this.theme):t&&t["a:gradFill"]?this.background=zy(t["a:gradFill"],this.theme,this):t&&t["a:blipFill"]&&(this.background=Vy(t["a:blipFill"],this.pptx,this)),[2]})})},r.prototype._loadNodes=function(){return Ma(this,void 0,void 0,function(){var t;return Ta(this,function(e){return t=Pe.get(this.source,["p:sldLayout","p:cSld","p:spTree"]),Xy(this.nodes,t,this.pptx,this),[2]})})},r.prototype.getColorThemeName=function(t){return this.slideMaster.getColorThemeName(t)},r.prototype.getNodeByType=function(t){return this.nodes.find(function(e){return e.type===t})},r.prototype.getNodeByIdx=function(t){return this.nodes.find(function(e){return e.idx===t})},r.prototype.getNodeInheritAttrsByType=function(t,e){var n=this.slideMaster.getNodeByType(t);return n&&Pe.get(n.source,e)},r.prototype.getNodeInheritAttrsByIdx=function(t,e){var n=this.slideMaster.getNodeByIdx(t);return n&&Pe.get(n.source,e)},r})(),att=(function(){function r(t,e,n){this.slideType="slideMaster",this.rels={},this.background={type:"none"},this.textStyles={titleStyle:{},bodyStyle:{},otherStyle:{}},this.defaultTextStyle={},this.nodes=[],this.tableStyles={},this.name=t,this.source=e,this.pptx=n,this.load()}return Object.defineProperty(r.prototype,"_relsPath",{get:function(){return this.name.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels"},enumerable:!1,configurable:!0}),r.prototype.load=function(){return Ma(this,void 0,void 0,function(){return Ta(this,function(t){switch(t.label){case 0:return[4,this._parseRels()];case 1:return t.sent(),this._parseColorMap(),this._parseBackground(),this._parseTextStyles(),this._parseTableStyles(),this._parseDefaultTextStyle(),this._loadNodes(),[2]}})})},r.prototype._parseRels=function(){return Ma(this,void 0,void 0,function(){var t,e,n,i=this;return Ta(this,function(a){switch(a.label){case 0:return e=zs,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return t=e.apply(void 0,[a.sent()]),n=Pe.get(t,["Relationships","Relationship"])||[],Array.isArray(n)||(n=[n]),n.forEach(function(o){switch(Pe.get(o,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme":var s=o.attrs.Target.replace("../","ppt/");s.startsWith("/ppt")&&(s=s.substr(1)),i.theme=i.pptx.getTheme(s);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":var l=o.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),i.rels[o.attrs.Id]={type:o.attrs.Type.split("/").pop(),target:l}}}),[2]}})})},r.prototype._parseColorMap=function(){this.colorMap=Pe.omit(Pe.get(this.source,["p:sldMaster","p:clrMap","attrs"])||{},["order"])},r.prototype.getColorThemeName=function(t){return this.colorMap[t]||t},r.prototype._parseBackground=function(){var t=Pe.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgPr"]),e=Pe.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgRef"]);t&&t["a:solidFill"]?this.background=Ji(t["a:solidFill"],this.theme,this):t&&t["a:gradFill"]?this.background=zy(t["a:gradFill"],this.theme,this):t&&t["a:blipFill"]?this.background=Vy(t["a:blipFill"],this.pptx,this):e&&(this.background=Ji(e,this.theme,this))},r.prototype._parseDefaultTextStyle=function(){var t=this,e=this.pptx.defaultTextStyleSource;Object.keys(e).forEach(function(n){if(n.startsWith("a:")&&n.endsWith("pPr")){var i=n.substr(2,n.length-5),a=Pe.get(e[n],["a:defRPr"]);t.defaultTextStyle[i]={props:rne(e[n]),defRPr:nne(a,t.theme,t)}}})},r.prototype._parseTextStyles=function(){var t=this,e=Pe.get(this.source,["p:sldMaster","p:txStyles"]);["titleStyle","bodyStyle","otherStyle"].forEach(function(n){var i=t.textStyles[n],a=Pe.get(e,"p:".concat(n))||{};Object.keys(a).forEach(function(o){if(o.startsWith("a:")&&o.endsWith("pPr")){var s=o.substr(2,o.length-5);i[s]={},i[s].props=rne(a[o]);var l=Pe.get(a[o],["a:defRPr"]);i[s].defRPr=nne(l,t.theme,t)}})})},r.prototype._parseTableStyles=function(){var t=this,e={},n=Pe.get(this.pptx.tableStyles,["a:tblStyleLst","a:tblStyle"])||[];Array.isArray(n)||(n=[n]),n.forEach(function(i){var a=Pe.get(i,["attrs","styleId"]);e[a]={},Object.keys(i).forEach(function(o){if(o.startsWith("a:")){var s=o.substr(2);e[a][s]={};var l=Pe.get(i[o],["a:tcStyle"]);if(l){var c={};Pe.get(l,["a:fill","a:solidFill"])&&(c.background=Ji(Pe.get(l,["a:fill","a:solidFill"]),t.theme,t));var u=Pe.get(l,"a:tcBdr");u&&(c.border={},Object.keys(u).forEach(function(A){if(A.startsWith("a:")){var d=A.substr(2),g=Pe.get(u[A],["a:ln"]);c.border[d]=J0(g,t.theme,t)}})),e[a][s].tcStyle=c}var f=Pe.get(i[o],["a:tcTxStyle"]);if(f){var h={};h.color=Ji(f,t.theme,t),Pe.get(f,["attrs","b"])==="on"&&(h.bold=!0),e[a][s].tcTxStyle=h}}})}),this.tableStyles=e},r.prototype._loadNodes=function(){return Ma(this,void 0,void 0,function(){var t;return Ta(this,function(e){return t=Pe.get(this.source,["p:sldMaster","p:cSld","p:spTree"]),Xy(this.nodes,t,this.pptx,this),[2]})})},r.prototype.getNodeByType=function(t){return this.nodes.find(function(e){return e.type===t})},r.prototype.getNodeByIdx=function(t){return this.nodes.find(function(e){return e.idx===t})},r.prototype.getNodeInheritAttrsByType=function(t,e){},r.prototype.getNodeInheritAttrsByIdx=function(t,e){},r})(),ott=(function(){function r(t,e,n){this.clrScheme={},this.borderScheme=[],this.name=t,this.source=e,this.pptx=n,this._parseClrScheme(),this._parseLineStyleLst()}return r.prototype._parseClrScheme=function(){var t=Pe.get(this.source,["a:theme","a:themeElements","a:clrScheme"]);for(var e in t)if(e.startsWith("a:")){var n=e.substring(2),i=Pe.get(t[e],["a:sysClr","attrs","lastClr"])||Pe.get(t[e],["a:srgbClr","attrs","val"]);this.clrScheme[n]="#"+i}},r.prototype._parseLineStyleLst=function(){var t=this,e=Pe.get(this.source,["a:theme","a:themeElements","a:fmtScheme","a:lnStyleLst","a:ln"])||[];this.borderScheme=e.map(function(n){var i={color:{}};return Pe.get(n,["attrs","w"])&&(i.width=kn(parseInt(Pe.get(n,["attrs","w"])))),Pe.get(n,["attrs","algn"])&&(i.algn=Pe.get(n,["attrs","algn"])),Pe.get(n,["attrs","cap"])&&(i.cap=Pe.get(n,["attrs","cap"])),Pe.get(n,["attrs","cmpd"])&&(i.cmpd=Pe.get(n,["attrs","cmpd"])),Pe.get(n,["a:miter","attrs","lim"])&&(i.miterLim=kn(parseInt(Pe.get(n,["a:miter","attrs","lim"])))),Pe.get(n,["a:prstDash","attrs","val"])&&(i.type=Pe.get(n,["a:prstDash","attrs","val"])),Pe.get(n,["a:solidFill"])&&(i.color=Ji(Pe.get(n,["a:solidFill"]),t)),i})},r.prototype.getColor=function(t){if(t!=="phClr")return this.clrScheme[t]||this.defaultColor},r.prototype.getLineStyle=function(t){return this.borderScheme[t-1]},r})(),stt=(function(){function r(){this.slides=[],this.slideLayouts=[],this.slideMaster=[],this.themes=[],this.medias={}}return r.prototype.load=function(t){return Ma(this,void 0,void 0,function(){var e,n;return Ta(this,function(i){switch(i.label){case 0:return e=new zRe,n=this,[4,e.loadAsync(t)];case 1:return n._zipContents=i.sent(),[4,this._loadThumbnail()];case 2:return i.sent(),[4,this._loadMedia()];case 3:return i.sent(),[4,this._loadPresentation()];case 4:return i.sent(),[4,this._loadContentTypes()];case 5:return i.sent(),[2]}})})},r.prototype._loadThumbnail=function(){return Ma(this,void 0,void 0,function(){var t;return Ta(this,function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),this._zipContents.files["docProps/thumbnail.jpeg"]?[4,this._zipContents.files["docProps/thumbnail.jpeg"].async("base64")]:[3,2];case 1:t=e.sent(),this.thumbnail="data:image/jpeg;base64,"+t,e.label=2;case 2:return[3,4];case 3:return e.sent(),[3,4];case 4:return[2]}})})},r.prototype._loadPresentation=function(){return Ma(this,void 0,void 0,function(){var t,e,n;return Ta(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this._zipContents.files["ppt/presentation.xml"].async("text")];case 1:return t=i.sent(),e=zs(t),n=e["p:presentation"]["p:sldSz"].attrs,this.width=kn(parseInt(n.cx)),this.height=kn(parseInt(n.cy)),this.defaultTextStyleSource=Pe.get(e,["p:presentation","p:defaultTextStyle"]),[3,3];case 2:return i.sent(),[3,3];case 3:return[2]}})})},r.prototype._loadContentTypes=function(){return Ma(this,void 0,void 0,function(){var t,e,n,i,a,o,s,l,c,u,f,h,A,d,g,y,v,p,m,b,C;return Ta(this,function(w){switch(w.label){case 0:return w.trys.push([0,22,,23]),e=zs,[4,this._zipContents.files["[Content_Types].xml"].async("text")];case 1:if(t=e.apply(void 0,[w.sent()]),n=t.Types.Override,!(i=n.filter(function(B){return B.attrs.ContentType==="application/vnd.openxmlformats-officedocument.theme+xml"})))return[3,5];a=0,o=i,w.label=2;case 2:return a<o.length?(s=o[a],p=s.attrs.PartName.substr(1),l=zs,[4,this._zipContents.files[p].async("text")]):[3,5];case 3:m=l.apply(void 0,[w.sent()]),this.themes.push(new ott(p,m,this)),w.label=4;case 4:return a++,[3,2];case 5:return(c=n.find(function(B){return B.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml"}))?(p=c.attrs.PartName.substr(1),u=zs,[4,this._zipContents.files[p].async("text")]):[3,7];case 6:m=u.apply(void 0,[w.sent()]),this.tableStyles=m,w.label=7;case 7:f=n.filter(function(B){return B.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"}),v=0,w.label=8;case 8:return v<f.length?(p=f[v].attrs.PartName.substr(1),h=zs,[4,this._zipContents.files[p].async("text")]):[3,11];case 9:m=h.apply(void 0,[w.sent()]),this.slideMaster.push(new att(p,m,this)),w.label=10;case 10:return v++,[3,8];case 11:A=n.filter(function(B){return B.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"}),v=0,w.label=12;case 12:return v<A.length?(p=A[v].attrs.PartName.substr(1),d=zs,[4,this._zipContents.files[p].async("text")]):[3,16];case 13:return m=d.apply(void 0,[w.sent()]),[4,(g=new itt(p,m,this)).load()];case 14:w.sent(),this.slideLayouts.push(g),w.label=15;case 15:return v++,[3,12];case 16:y=n.filter(function(B){return B.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"}),v=0,w.label=17;case 17:return v<y.length?(p=y[v].attrs.PartName.substr(1),b=zs,[4,this._zipContents.files[p].async("text")]):[3,21];case 18:return m=b.apply(void 0,[w.sent()]),[4,(C=new ntt(p,m,this)).load()];case 19:w.sent(),this.slides.push(C),w.label=20;case 20:return v++,[3,17];case 21:return this.slides.sort(function(B,k){return B.index-k.index}),[3,23];case 22:return w.sent(),[3,23];case 23:return[2]}})})},r.prototype._loadMedia=function(){return Ma(this,void 0,void 0,function(){var t,e,n,i,a,o,s,l,c,u,f,h,A,d=this;return Ta(this,function(g){switch(g.label){case 0:t=Object.keys(this._zipContents.files).filter(function(v){return v.startsWith("ppt/media/image")}).map(function(v){return d._zipContents.files[v]}),e=0,n=t,g.label=1;case 1:return e<n.length?(i=n[e],a=(function(v){var p;switch(v){case"jpg":case"jpeg":p="image/jpeg";break;case"png":p="image/png";break;case"gif":p="image/gif";break;case"emf":p="image/x-emf";break;case"wmf":p="image/x-wmf";break;default:p="image/*"}return p})((y=i.name).substr(2+(~-y.lastIndexOf(".")>>>0))),[4,i.async("base64")]):[3,4];case 2:o=g.sent(),this.medias[i.name]="data:".concat(a,";base64,").concat(o),g.label=3;case 3:return e++,[3,1];case 4:s=Object.keys(this._zipContents.files).filter(function(v){return v.startsWith("ppt/media/media")&&["mp3","wav","ogg","mp4","webm"].includes(v.split(".").pop().toLowerCase())}).map(function(v){return d._zipContents.files[v]}),l=0,c=s,g.label=5;case 5:return l<c.length?(u=c[l],f=u.name.split(".").pop().toLowerCase(),[4,u.async("arraybuffer")]):[3,8];case 6:h=g.sent(),A=new Blob([h],{type:"".concat(["mp3","wav"].includes(f)?"audio":"video","/").concat(f)}),this.medias[u.name]=URL.createObjectURL(A),g.label=7;case 7:return l++,[3,5];case 8:return[2]}var y})})},r.prototype.getXmlByPath=function(t){return Ma(this,void 0,void 0,function(){return Ta(this,function(e){switch(e.label){case 0:if(!this._zipContents.files[t])throw new Error("文件不存在");return[4,this._zipContents.files[t].async("text")];case 1:return[2,e.sent()]}})})},r.prototype.getSlideLayout=function(t){return this.slideLayouts.find(function(e){return e.name===t})},r.prototype.getSlideMaster=function(t){return this.slideMaster.find(function(e){return e.name===t})},r.prototype.getTheme=function(t){return this.themes.find(function(e){return e.name===t})},r.prototype.getMedia=function(t){return this.medias[t]},r})();function C8(r){var t=r.extend,e=r.offset,n=r.clip,i=r.base64,a=r.audioFile,o=r.videoFile,s=document.createElement("div");s.style.setProperty("position","absolute"),s.style.setProperty("left",e.x+"px"),s.style.setProperty("top",e.y+"px");var l,c,u,f,h=document.createElement("div");h.style.setProperty("position","absolute"),h.style.setProperty("left","0"),h.style.setProperty("top","0"),h.style.setProperty("width",t.w+"px"),h.style.setProperty("height",t.h+"px"),h.style.setProperty("overflow","hidden"),n?(l=t.w/(1-(n.l===void 0?0:n.l)-(n.r===void 0?0:n.r)),c=t.h/(1-(n.t===void 0?0:n.t)-(n.b===void 0?0:n.b)),u=-1*l*(n.l===void 0?0:n.l),f=-1*c*(n.t===void 0?0:n.t)):(l=t.w,c=t.h,u=0);var A=document.createElement("img");if(A.src=i,A.width=l,A.height=c,A.style.setProperty("position","absolute"),A.style.setProperty("left",u+"px"),A.style.setProperty("top",f+"px"),h.append(A),s.append(h),a){var d=document.createElement("audio");d.style.position="absolute",d.style.left="0",d.style.top="0",d.src=a,d.controls=!0,d.style.transform="translate(-50%)",s.append(d)}if(o){var g=document.createElement("video");g.style.position="absolute",g.style.left="0",g.style.top="0",g.width=t.w,g.height=t.h,g.src=o,g.controls=!0,s.append(g)}return s}function ltt(r,t,e){var n,i=r.props,a=r.text,o=jt(jt({},t),i),s=document.createElement("span");s.innerHTML=a;var l=18;o.size&&(!((n=e?.normAutofit)===null||n===void 0)&&n.fontScale?(l=o.size*e.normAutofit.fontScale,s.style.fontSize=l+"px"):(l=o.size,s.style.fontSize=l+"px"));var c=Tn(o.color);c&&(s.style.color=c);var u=/^[^\u4e00-\u9fff]+$/;if(o.typeface)switch(s.style.fontFamily=o.typeface,o.typeface){case"DengXian":u.test(a)&&(s.style.letterSpacing=-.04*l+"px");break;case"DengXian Light":u.test(a)&&(s.style.letterSpacing=-.05*l+"px");break;case"STLiti":case"SimSun":case"NSimSun":case"SimHei":u.test(a)&&(s.style.fontSize=.85*parseInt(s.style.fontSize)+"px");break;case"华文中宋":s.style.fontSize=.85*parseInt(s.style.fontSize)+"px";break;case"FangSong":s.style.letterSpacing=-.08*l+"px"}else u.test(a)&&(s.style.letterSpacing=-.04*l+"px");return o.bold&&(s.style.fontWeight="bold"),o.italic&&(s.style.fontStyle="italic"),o.underline&&o.underline!=="none"&&(s.style.textDecoration="underline"),o.background&&(s.style.backgroundColor=Tn(o.background)),s.style.wordBreak="break-word",s}function ctt(r,t,e){var n=document.createElement("span"),i=r.firstElementChild;switch(n.style.fontSize=i.style.fontSize,n.style.color=i.style.color,n.style.fontWeight=i.style.fontWeight,n.style.fontStyle=i.style.fontStyle,n.style.marginRight="10px",t.buAutoNum){case"arabicPeriod":default:n.textContent=e+".";break;case"circleNumDbPlain":n.textContent=["①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳"][e-1]||e+"";break;case"romanUcPeriod":n.textContent=(function(a){var o=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];if(typeof a!="number"||a<1||a>3999)throw new Error("Input must be a number between 1 and 3999.");for(var s="",l=0;l<o.length;l++)for(;a>=o[l].value;)s+=o[l].numeral,a-=o[l].value;return s})(e)+".";break;case"alphaUcPeriod":n.textContent=p8(e)+".";break;case"alphaLcPeriod":n.textContent=p8(e).toLowerCase()+".";break;case"alphaLcParenR":n.textContent=p8(e).toLowerCase()+")";break;case"ea1JpnChsDbPeriod":n.textContent=(function(a){var o=["〇","一","二","三","四","五","六","七","八","九"];if(!Number.isInteger(a)||a<0)return"";for(var s="",l=a.toString(),c=0;c<l.length;c++)s+=o[parseInt(l[c],10)];return s})(e)+"."}r.prepend(n)}function tB(r,t,e){var n,i,a,o;t===void 0&&(t=0),e===void 0&&(e={});var s=r.inheritProps,l=r.inheritRProps,c=r.props,u=r.rows,f=jt(jt({},s),c),h=function(){for(var w,B,k=0,Q=0,x=u;Q<x.length;Q++){var L=x[Q];L.props&&L.props.size&&(k=Math.max(k,L.props.size))}var O=((B=(w=e?.bodyProps)===null||w===void 0?void 0:w.normAutofit)===null||B===void 0?void 0:B.fontScale)||1;return(k||l.size||18)*O},A=document.createElement("div"),d=e.isFirst?0:f.spaceBefore||0,g=e.isLast?0:f.spaceAfter||0;A.style.margin="".concat(Math.floor(.2*h()),"px 0 0 0"),A.style.padding="".concat(Math.floor(d),"px 0px ").concat(Math.floor(g),"px 0px");var y=document.createElement("p");y.style.margin="0",y.style.padding="0px",y.style.wordBreak="break-word",y.style.textAlign=f.align&&{ctr:"center",l:"left",r:"right",dist:"justify"}[f.align]||"center",f.align==="dist"&&(y.style.textAlignLast="justify");var v=f.hasOwnProperty("lineHeight")?f.lineHeight:1;if(!((i=(n=e.bodyProps)===null||n===void 0?void 0:n.normAutofit)===null||i===void 0)&&i.lnSpcReduction&&(v*=1-((o=(a=e.bodyProps)===null||a===void 0?void 0:a.normAutofit)===null||o===void 0?void 0:o.lnSpcReduction)),y.style.lineHeight=v+"",y.style.fontSize=h()+"px",u.length){for(var p=0,m=u;p<m.length;p++){var b=m[p];y.appendChild(ltt(b,jt(jt({},l),{marginTop:Math.floor(.2*h())}),e.bodyProps))}f.buAutoNum?ctt(y,f,t):f.buChar&&(function(w,B){var k=document.createElement("span"),Q=w.firstElementChild;k.style.color=Q.style.color,k.style.fontSize=Q.style.fontSize,k.textContent={n:"■",l:"●",u:"◆",p:"□",ü:"✔",Ø:"➢","•":"•"}[B.buChar]||"■",k.style.marginRight="10px",w.prepend(k)})(y,f),y.style.paddingLeft=(f.marginLeft||0)+(f.indent||0)+"px"}else{var C=document.createElement("span");C.innerHTML="&nbsp;",C.style.fontSize=l.size+"px",y.appendChild(C)}return A.appendChild(y),A}var ine="http://www.w3.org/2000/svg";function xt(r){return document.createElementNS(ine,r)}function ff(r){var t=r.extend;return .16667*Math.min(t.w,t.h)}function xr(r,t,e){e===void 0&&(e=0);var n=t.prstGeom,i=(n?.gd||[]).find(function(a){return a.name===r});return i?i.fmla:e}function Qt(r,t,e){e===void 0&&(e=0);var n=t.extend,i=t.prstGeom,a=(i?.gd||[]).find(function(o){return o.name===r});return a?Math.min(n.w,n.h)*a.fmla:e}function ane(r,t,e){e===void 0&&(e=0);var n=t.extend,i=t.prstGeom,a=(i?.gd||[]).find(function(o){return o.name===r});return a?Math.max(n.w,n.h)*a.fmla:e}function vu(r,t){var e=0;switch(r){case"sm":e=1*t;break;case"med":e=1.5*t;break;case"lg":e=2.5*t}return Math.max(e,2)}function one(r,t,e,n){n===void 0&&(n=!1);var i=r.border,a=i===void 0?{}:i,o=r.uuid,s=a.headEnd,l=a.width,c=a.color,u=a.tailEnd,f=n?s:u,h=f.len,A=h===void 0?"med":h,d=f.w,g=d===void 0?"med":d,y=vu(A,l),v=vu(g,l),p=xt("defs"),m=xt("marker"),b="marker-".concat(o,"-").concat(n?"start":"end");m.setAttribute("id",b),m.setAttribute("viewBox","0 0 ".concat(2*y," ").concat(2*v)),m.setAttribute("refX",y+"px"),m.setAttribute("refY",v+"px"),m.setAttribute("markerWidth",2*y+"px"),m.setAttribute("markerHeight",2*v+"px"),m.setAttribute("orient","auto"),m.setAttribute("markerUnits","userSpaceOnUse");var C=xt("ellipse");C.setAttribute("cx",y+"px"),C.setAttribute("cy",v+"px"),C.setAttribute("rx",y+"px"),C.setAttribute("ry",v+"px"),C.setAttribute("fill",Tn(c)||"transparent"),m.appendChild(C),p.appendChild(m),t.appendChild(p),e.setAttribute(n?"marker-start":"marker-end","url(#".concat(b,")"))}function sne(r,t,e,n){n===void 0&&(n=!1);var i=r.border,a=i===void 0?{}:i,o=r.uuid,s=a.headEnd,l=a.width,c=a.color,u=a.tailEnd,f=n?s:u,h=f.len,A=h===void 0?"med":h,d=f.w,g=d===void 0?"med":d,y=vu(A,l),v=vu(g,l),p=xt("defs"),m=xt("marker"),b="marker-".concat(o,"-").concat(n?"start":"end");m.setAttribute("id",b),m.setAttribute("viewBox","0 0 ".concat(2*y," ").concat(2*v)),m.setAttribute("refX",(n?.9*y:1.1*y)+"px"),m.setAttribute("refY",v+"px"),m.setAttribute("markerWidth",2*y+"px"),m.setAttribute("markerHeight",2*v+"px"),m.setAttribute("orient","auto"),m.setAttribute("markerUnits","userSpaceOnUse");var C=xt("path"),w=n?["M ".concat(2*y,",0"),"L 0,".concat(v),"L ".concat(2*y,",").concat(2*v),"Z"].join(" "):["M 0,0","L ".concat(2*y,",").concat(v),"L 0,".concat(2*v),"Z"].join(" ");C.setAttribute("d",w),C.setAttribute("fill",Tn(c)||"transparent"),m.appendChild(C),p.appendChild(m),t.appendChild(p),e.setAttribute(n?"marker-start":"marker-end","url(#".concat(b,")"))}function lne(r,t,e,n){n===void 0&&(n=!1);var i=r.border,a=i===void 0?{}:i,o=r.uuid,s=a.headEnd,l=a.width,c=a.color,u=a.tailEnd,f=n?s:u,h=f.len,A=h===void 0?"med":h,d=f.w,g=d===void 0?"med":d,y=vu(A,l),v=vu(g,l),p=xt("defs"),m=xt("marker"),b="marker-".concat(o,"-").concat(n?"start":"end");m.setAttribute("id",b),m.setAttribute("viewBox","0 0 ".concat(2*y," ").concat(2*v)),m.setAttribute("refX",y+"px"),m.setAttribute("refY",v+"px"),m.setAttribute("markerWidth",2*y+"px"),m.setAttribute("markerHeight",2*v+"px"),m.setAttribute("orient","auto"),m.setAttribute("markerUnits","userSpaceOnUse");var C=xt("path"),w=["M 0,".concat(v),"L ".concat(y,",0"),"L ".concat(2*y,",").concat(v),"L ".concat(y,",").concat(2*v),"Z"].join(" ");C.setAttribute("d",w),C.setAttribute("fill",Tn(c)||"transparent"),m.appendChild(C),p.appendChild(m),t.appendChild(p),e.setAttribute(n?"marker-start":"marker-end","url(#".concat(b,")"))}function cne(r,t,e,n){n===void 0&&(n=!1);var i=r.border,a=i===void 0?{}:i,o=r.uuid,s=a.headEnd,l=a.width,c=a.color,u=a.tailEnd,f=n?s:u,h=f.len,A=h===void 0?"med":h,d=f.w,g=d===void 0?"med":d,y=vu(A,l),v=vu(g,l),p=xt("defs"),m=xt("marker"),b="marker-".concat(o,"-").concat(n?"start":"end");m.setAttribute("id",b),m.setAttribute("viewBox","0 0 ".concat(2*y+2*l," ").concat(2*v+2*l));var C=n?g==="lg"?2*l:3*l:g==="lg"?2*y:2*y-l;m.setAttribute("refX",C+"px"),m.setAttribute("refY",v+l+"px"),m.setAttribute("markerWidth",2*y+"px"),m.setAttribute("markerHeight",2*v+"px"),m.setAttribute("orient","auto"),m.setAttribute("markerUnits","userSpaceOnUse");var w=xt("path"),B=n?["M ".concat(2*y+l,", ").concat(l),"L ".concat(l,",").concat(v+l),"L ".concat(2*y+l,",").concat(2*v+l)].join(" "):["M ".concat(l,", ").concat(l),"L ".concat(2*y+l,",").concat(v+l),"L ".concat(l,",").concat(2*v+l)].join(" ");w.setAttribute("d",B),w.setAttribute("stroke-width",l+"px"),w.setAttribute("stroke",Tn(c)||"transparent"),w.setAttribute("fill","transparent"),w.setAttribute("stroke-linecap","round"),w.setAttribute("stroke-linejoin","miter"),w.style.overflow="visible",m.appendChild(w),p.appendChild(m),t.appendChild(p),e.setAttribute(n?"marker-start":"marker-end","url(#".concat(b,")"))}function une(r,t,e,n){n===void 0&&(n=!1);var i=r.border,a=i===void 0?{}:i,o=r.uuid,s=a.headEnd,l=a.width,c=a.color,u=a.tailEnd,f=n?s:u,h=f.len,A=h===void 0?"med":h,d=f.w,g=d===void 0?"med":d,y=vu(A,l),v=vu(g,l),p=xt("defs"),m=xt("marker"),b="marker-".concat(o,"-").concat(n?"start":"end");m.setAttribute("id",b),m.setAttribute("viewBox","0 0 ".concat(2*y," ").concat(2*v));var C=n?g==="sm"?1.5*l:2*l:g==="sm"?2*y-1.5*l:2*y-2*l;m.setAttribute("refX",C+"px"),m.setAttribute("refY",v+"px"),m.setAttribute("markerWidth",2*y+"px"),m.setAttribute("markerHeight",2*v+"px"),m.setAttribute("orient","auto"),m.setAttribute("markerUnits","userSpaceOnUse");var w=xt("path"),B=n?["M 0, ".concat(v),"L ".concat(2*y,",0"),"L ".concat(y,",").concat(v),"L ".concat(2*y,",").concat(2*v),"Z"].join(" "):["M 0,0","L ".concat(2*y,",").concat(v),"L 0,".concat(2*v),"L ".concat(y,",").concat(v),"Z"].join(" ");w.setAttribute("d",B),w.setAttribute("fill",Tn(c)||"transparent"),w.style.overflow="visible",m.appendChild(w),p.appendChild(m),t.appendChild(p),e.setAttribute(n?"marker-start":"marker-end","url(#".concat(b,")"))}function Zy(r,t,e){var n=r.border,i=n===void 0?{}:n;r.extend;var a=i.headEnd,o=i.tailEnd;if(a&&a.type!=="none")switch(a.type){case"triangle":sne(r,t,e,!0);break;case"oval":one(r,t,e,!0);break;case"diamond":lne(r,t,e,!0);break;case"arrow":cne(r,t,e,!0);break;case"stealth":une(r,t,e,!0)}if(o&&o.type!=="none")switch(o.type){case"triangle":sne(r,t,e,!1);break;case"oval":one(r,t,e,!1);break;case"diamond":lne(r,t,e,!1);break;case"arrow":cne(r,t,e,!1);break;case"stealth":une(r,t,e,!1)}}function fne(r){var t=r.extend,e=xt("rect");return e.setAttribute("x","0"),e.setAttribute("y","0"),e.setAttribute("width",t.w+"px"),e.setAttribute("height",t.h+"px"),e}function Po(r,t,e,n,i){var a=r*Math.PI/180;return[a===0||a===2*Math.PI?t+n:a===Math.PI?t-n:a===Math.PI/2||a===3*Math.PI/2?t:a>0&&a<Math.PI/2||a>3*Math.PI/2&&a<2*Math.PI?t+Math.sqrt(1/(1/Math.pow(n,2)+Math.pow(Math.tan(a),2)/Math.pow(i,2))):t-Math.sqrt(1/(1/Math.pow(n,2)+Math.pow(Math.tan(a),2)/Math.pow(i,2))),a===0||a===2*Math.PI||a===Math.PI?e:a===Math.PI/2?e+i:a===3*Math.PI/2?e-i:a>Math.PI&&a<2*Math.PI?e-Math.sqrt(1/(1/Math.pow(i,2)+Math.pow(1/Math.tan(a),2)/Math.pow(n,2))):e+Math.sqrt(1/(1/Math.pow(i,2)+Math.pow(1/Math.tan(a),2)/Math.pow(n,2)))]}function $y(r,t){var e=0;return(t>r&&t-r>180||t<r&&r-t<180)&&(e=1),e}function em(r){var t=r.extend,e=.146*t.w,n=.146*t.h;return{top:n,bottom:n,left:e,right:e,w:t.w-2*e,h:t.h-2*n}}function w8(r){var t=r.extend,e=r.offset,n=r.border,i=r.background,a=r.rotate,o=r.flipH,s=r.flipV,l=document.createElement("div"),c=e.x,u=e.y;l.className="shape-wrapper shape-".concat(r.shape),l.style.setProperty("position","absolute"),l.style.setProperty("width",(t.w||1)+"px"),l.style.setProperty("height",(t.h||1)+"px"),l.style.setProperty("left",c+"px"),l.style.setProperty("top",u+"px");var f,h=document.createElementNS(ine,"svg");h.style.setProperty("position","absolute"),h.setAttribute("width","100%"),h.setAttribute("height","100%"),h.style.setProperty("left","0"),h.style.setProperty("top","0"),h.style.overflow="visible";var A={left:0,top:0,bottom:0,w:t.w,h:t.h},d=!0;switch(r.shape){case"customGeom":f=(function(v){var p=v.prstGeom,m=p===void 0?{}:p,b=v.extend,C=m.pathList,w=m.w,B=m.h,k=xt("path"),Q={moveTo:"M",lnTo:"L",cubicBezTo:"C",close:"Z"},x=b.w/w,L=b.h/B,O=C.map(function(W){var M=Q[W.type],J=Array.isArray(W.points)?W.points.map(function(G){return"".concat(G[0]*x,",").concat(G[1]*L)}).join(" "):"";return J?"".concat(M," ").concat(J):"".concat(M)}).join(" ");return k.setAttribute("d",O),k.style.fillRule="evenodd",k})(r),Zy(r,h,f);break;case"flowChartProcess":case"rect":f=fne(r);break;case"snip1Rect":f=(function(v){var p=v.extend,m=xt("polygon"),b=Qt("adj",v,ff(v)),C=["0,0","".concat(p.w-b,",0"),"".concat(p.w,",").concat(b),"".concat(p.w,",").concat(p.h),"0,".concat(p.h)].join(" ");return m.setAttribute("points",C),m})(r);break;case"snip2SameRect":f=(function(v){var p=v.extend,m=xt("polygon"),b=Qt("adj1",v,ff(v)),C=Qt("adj2",v,0),w=[[b,0],[p.w-b,0],[p.w,b],[p.w,p.h-C],[p.w-C,p.h],[C,p.h],[0,p.h-C],[0,b]].map(function(B){return"".concat(B[0],",").concat(B[1])}).join(" ");return m.setAttribute("points",w),m})(r);break;case"snip2DiagRect":f=(function(v){var p=v.extend,m=xt("polygon"),b=Qt("adj1",v,0),C=Qt("adj2",v,ff(v)),w=[[b,0],[p.w-C,0],[p.w,C],[p.w,p.h-b],[p.w-b,p.h],[C,p.h],[0,p.h-C],[0,b]].map(function(B){return"".concat(B[0],",").concat(B[1])}).join(" ");return m.setAttribute("points",w),m})(r);break;case"snipRoundRect":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj1",v,ff(v)),C=Qt("adj2",v,ff(v)),w=["M ".concat(b,",0"),"L ".concat(p.w-C,",0"),"L ".concat(p.w,",").concat(C),"L ".concat(p.w,",").concat(p.h),"L 0,".concat(p.h),"L 0,".concat(b),"Q 0,0 ".concat(b,",0"),"Z"].join(" ");return m.setAttribute("d",w),m})(r);break;case"roundRect":f=(function(v){var p=fne(v),m=Qt("adj",v,ff(v));return p.setAttribute("rx",m+"px"),p.setAttribute("ry",m+"px"),p})(r);break;case"round1Rect":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj",v,ff(v)),C=["M 0,0","L ".concat(p.w-b,",0"),"Q ".concat(p.w,",0 ").concat(p.w,",").concat(b),"L ".concat(p.w,",").concat(p.h),"L 0,".concat(p.h),"Z"].join(" ");return m.setAttribute("d",C),m})(r);break;case"round2SameRect":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj1",v,ff(v)),C=Qt("adj2",v,0),w=["M ".concat(b,",0"),"L ".concat(p.w-b,",0"),"Q ".concat(p.w,",0 ").concat(p.w,",").concat(b),"L ".concat(p.w,",").concat(p.h-C),"Q ".concat(p.w,",").concat(p.h," ").concat(p.w-C,",").concat(p.h),"L ".concat(C,",").concat(p.h),"Q 0,".concat(p.h," 0,").concat(p.h-C),"L 0,".concat(b),"Q 0,0 ".concat(b,",0"),"Z"].join(" ");return m.setAttribute("d",w),m})(r);break;case"round2DiagRect":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj1",v,ff(v)),C=Qt("adj2",v,0),w=["M ".concat(b,",0"),"L ".concat(p.w-C,",0"),"Q ".concat(p.w,",0 ").concat(p.w,",").concat(C),"L ".concat(p.w,",").concat(p.h-b),"Q ".concat(p.w,",").concat(p.h," ").concat(p.w-b,",").concat(p.h),"L ".concat(C,",").concat(p.h),"Q 0,".concat(p.h," 0,").concat(p.h-C),"L 0,".concat(b),"Q 0,0 ".concat(b,",0"),"Z"].join(" ");return m.setAttribute("d",w),m})(r);break;case"triangle":f=(function(v){var p=v.extend,m=xt("polygon"),b=["".concat(p.w/2,",0"),"0,".concat(p.h),"".concat(p.w,",").concat(p.h)].join(" ");return m.setAttribute("points",b),m})(r);break;case"rtTriangle":f=(function(v){var p=v.extend,m=xt("polygon"),b=["0,".concat(p.h),"0,0","".concat(p.w,",").concat(p.h)].join(" ");return m.setAttribute("points",b),m})(r);break;case"ellipse":f=(function(v){var p=v.extend,m=xt("ellipse"),b=p.w/2,C=p.h/2,w=b,B=C;return m.setAttribute("cx",b+"px"),m.setAttribute("cy",C+"px"),m.setAttribute("rx",w+"px"),m.setAttribute("ry",B+"px"),m})(r);break;case"line":f=(function(v){var p=v.extend,m=xt("path"),b=["M 0,0","L ".concat(p.w,",").concat(p.h)].join(" ");return m.setAttribute("d",b),m})(r),Zy(r,h,f),d=!1;break;case"straightConnector1":f=(function(v){var p=v.extend,m=xt("path"),b=["M 0,0","L ".concat(p.w,",").concat(p.h)].join(" ");return m.setAttribute("d",b),m})(r),Zy(r,h,f),d=!1;break;case"bentConnector3":f=(function(v){var p=v.extend,m=xt("path"),b=ane("adj1",v,.5*Math.max(p.w,p.h)),C=["M 0,0","L ".concat(b,",0"),"L ".concat(b,",").concat(p.h),"L ".concat(p.w,",").concat(p.h)].join(" ");return m.setAttribute("d",C),m})(r),Zy(r,h,f),d=!1;break;case"curvedConnector3":f=(function(v){var p=v.extend,m=xt("path"),b=ane("adj1",v,.5*Math.max(p.w,p.h)),C=["M0,0","Q".concat(b,",0 ").concat(b,",").concat(p.h/2),"T".concat(p.w,",").concat(p.h)].join(" ");return m.setAttribute("d",C),m})(r),Zy(r,h,f),d=!1;break;case"parallelogram":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj",v,.5*Math.min(p.w,p.h)),C=["M".concat(b,",0"),"L".concat(p.w,",0"),"L".concat(p.w-b,",").concat(p.h),"L0,".concat(p.h),"Z"].join(" ");return m.setAttribute("d",C),m})(r),A=(function(v){var p=v.extend,m=Qt("adj",v,.5*Math.min(p.w,p.h)),b=.84*(p.w-m),C=.08*p.h+m/p.w*p.h*.42;return{top:C,bottom:C,left:(p.w-b)/2,right:(p.w-b)/2,w:b,h:p.h-2*C}})(r);break;case"trapezoid":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj",v,.25*Math.min(p.w,p.h)),C=["M".concat(b,",0"),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(p.h),"L0,".concat(p.h),"Z"].join(" ");return m.setAttribute("d",C),m})(r),A=(function(v){var p=v.extend,m=Qt("adj",v,.5*Math.min(p.w,p.h)),b=m/p.w*.66*p.h,C=.66*m;return{top:b,bottom:0,left:C,right:C,w:p.w-2*C,h:p.h-b}})(r);break;case"diamond":f=(function(v){var p=v.extend,m=xt("path"),b=["M".concat(p.w/2,",0"),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w/2,",").concat(p.h),"L0,".concat(p.h/2),"Z"].join(" ");return m.setAttribute("d",b),m})(r),A=(function(v){var p=v.extend,m=.25*p.h,b=.25*p.w;return{top:m,bottom:m,left:b,right:b,w:.5*p.w,h:.5*p.h}})(r);break;case"pentagon":f=(function(v){var p=v.extend,m=xt("path"),b=["M".concat(p.w/2,",0"),"L".concat(p.w,",").concat(.3771*p.h),"L".concat(.808*p.w,",").concat(p.h),"L".concat(.192*p.w,",").concat(p.h),"L0,".concat(.3771*p.h),"Z"].join(" ");return m.setAttribute("d",b),m})(r),A=(function(v){var p=v.extend,m=.227*p.h,b=.192*p.w;return{top:m,bottom:0,left:b,right:b,w:.616*p.w,h:.773*p.h}})(r);break;case"hexagon":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj",v,.25*Math.min(p.w,p.h)),C=["M".concat(b,",0"),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-b,",").concat(p.h),"L".concat(b,",").concat(p.h),"L0,".concat(p.h/2),"Z"].join(" ");return m.setAttribute("d",C),m})(r),A=(function(v){var p=v.extend,m=Qt("adj",v,.25*Math.min(p.w,p.h)),b=.098*p.h+m/p.w*.38*p.h,C=.088*p.w+.422*m;return{top:b,bottom:b,left:C,right:C,w:p.w-2*C,h:p.h-2*b}})(r);break;case"heptagon":f=(function(v){var p=v.extend,m=xt("path"),b=["M".concat(p.w/2,",0"),"L".concat(.9*p.w,",").concat(.2*p.h),"L".concat(p.w,",").concat(.642*p.h),"L".concat(.722*p.w,",").concat(p.h),"L".concat(.278*p.w,",").concat(p.h),"L0,".concat(.642*p.h),"L".concat(.1*p.w,",").concat(.2*p.h),"Z"].join(" ");return m.setAttribute("d",b),m})(r),A=(function(v){var p=v.extend;return{top:.2*p.h,bottom:.2*p.h,left:.1*p.w,right:.1*p.w,w:.8*p.w,h:.6*p.h}})(r);break;case"octagon":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj",v,.29*Math.min(p.w,p.h)),C=["M".concat(b,",0"),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(b),"L".concat(p.w,",").concat(p.h-b),"L".concat(p.w-b,",").concat(p.h),"L".concat(b,",").concat(p.h),"L0,".concat(p.h-b),"L0,".concat(b),"Z"].join(" ");return m.setAttribute("d",C),m})(r),A=(function(v){var p=v.extend,m=Qt("adj",v,.29*Math.min(p.w,p.h));return{top:.5*m,bottom:.5*m,left:.5*m,right:.5*m,w:p.w-m,h:p.h-m}})(r);break;case"decagon":f=(function(v){var p=v.extend,m=xt("path"),b=.344,C=.117,w=.19,B=["M".concat(p.w*b,",0"),"L".concat(.656*p.w,",0"),"L".concat(.883*p.w,",").concat(p.h*w),"L".concat(p.w,",").concat(.5*p.h),"L".concat(.883*p.w,",").concat(.81*p.h),"L".concat(.656*p.w,",").concat(p.h),"L".concat(p.w*b,",").concat(p.h),"L".concat(p.w*C,",").concat(.81*p.h),"L0,".concat(.5*p.h),"L".concat(p.w*C,",").concat(p.h*w),"Z"].join(" ");return m.setAttribute("d",B),m})(r),A=(function(v){var p=v.extend,m=.117,b=.19;return{top:p.h*b,bottom:p.h*b,left:p.w*m,right:p.w*m,w:.766*p.w,h:.62*p.h}})(r);break;case"dodecagon":f=(function(v){var p=v.extend,m=xt("path"),b=.364,C=.133,w=.135,B=["M".concat(p.w*b,",0"),"L".concat(.636*p.w,",0"),"L".concat(.867*p.w,",").concat(p.h*w),"L".concat(p.w,",").concat(p.h*b),"L".concat(p.w,",").concat(.636*p.h),"L".concat(.867*p.w,",").concat(.865*p.h),"L".concat(.636*p.w,",").concat(p.h),"L".concat(p.w*b,",").concat(p.h),"L".concat(p.w*C,",").concat(.865*p.h),"L0,".concat(.636*p.h),"L0,".concat(p.h*b),"L".concat(p.w*C,",").concat(p.h*w),"Z"].join(" ");return m.setAttribute("d",B),m})(r),A=(function(v){var p=v.extend,m=.133,b=.135;return{top:p.h*b,bottom:p.h*b,left:p.w*m,right:p.w*m,w:.734*p.w,h:.73*p.h}})(r);break;case"pie":f=(function(v){var p=v.extend,m=xt("path"),b=xr("adj1",v,360),C=xr("adj2",v,270),w=p.w/2,B=p.h/2,k=p.w/2,Q=p.h/2,x=Po(b,k,Q,w,B),L=x[0],O=x[1],W=Po(C,k,Q,w,B),M=W[0],J=W[1],G=$y(b,C),N="M".concat(k,",").concat(Q,", L").concat(L," ").concat(O," A ").concat(w," ").concat(B," 0 ").concat(G," ").concat(1," ").concat(M," ").concat(J," Z");return m.setAttribute("d",N),m})(r),A=em(r);break;case"arc":f=(function(v){var p=v.extend,m=xt("path"),b=xr("adj1",v,270),C=xr("adj2",v,0),w=p.w/2,B=p.h/2,k=p.w/2,Q=p.h/2,x=Po(b,k,Q,w,B),L=x[0],O=x[1],W=Po(C,k,Q,w,B),M=W[0],J=W[1],G=$y(b,C),N="M".concat(L,",").concat(O," A ").concat(w," ").concat(B," 0 ").concat(G," ").concat(1," ").concat(M," ").concat(J);return m.setAttribute("d",N),m})(r),d=!1;break;case"bracketPair":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj",v,.16667*Math.min(p.w,p.h)),C=["M".concat(b,",").concat(p.h),"Q".concat(0,",").concat(p.h," ").concat(0,",").concat(p.h-b),"L".concat(0,",").concat(b),"Q".concat(0,",").concat(0," ").concat(b,",").concat(0),"M".concat(p.w-b,",").concat(0),"Q".concat(p.w,",").concat(0," ").concat(p.w,",").concat(b),"L".concat(p.w,",").concat(p.h-b),"Q".concat(p.w,",").concat(p.h," ").concat(p.w-b,",").concat(p.h)].join(" ");return m.setAttribute("d",C),m})(r),A=(function(v){var p=v.extend,m=.285*Qt("adj",v,.16667*Math.min(p.w,p.h));return{top:m,bottom:m,left:m,right:m,w:p.w-2*m,h:p.h-2*m}})(r),d=!1;break;case"bracePair":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj",v,.083335*Math.min(p.w,p.h)),C=["M".concat(2*b,",").concat(p.h),"Q".concat(b,",").concat(p.h," ").concat(b,",").concat(p.h-b),"L".concat(b,",").concat(p.h/2+b),"Q".concat(b,",").concat(p.h/2," ").concat(0,",").concat(p.h/2),"Q".concat(b,",").concat(p.h/2," ").concat(b,",").concat(p.h/2-b),"L".concat(b,",").concat(b),"Q".concat(b,",").concat(0," ").concat(2*b,",").concat(0),"M".concat(p.w-2*b,",").concat(0),"Q".concat(p.w-b,",").concat(0," ").concat(p.w-b,",").concat(b),"L".concat(p.w-b,",").concat(p.h/2-b),"Q".concat(p.w-b,",").concat(p.h/2," ").concat(p.w,",").concat(p.h/2),"Q".concat(p.w-b,",").concat(p.h/2," ").concat(p.w-b,",").concat(p.h/2+b),"L".concat(p.w-b,",").concat(p.h-b),"Q".concat(p.w-b,",").concat(p.h," ").concat(p.w-2*b,",").concat(p.h)].join(" ");return m.setAttribute("d",C),m})(r),A=(function(v){var p=v.extend,m=.285*Qt("adj",v,.16667*Math.min(p.w,p.h));return{top:m,bottom:m,left:m,right:m,w:p.w-2*m,h:p.h-2*m}})(r),d=!1;break;case"chord":f=(function(v){var p=v.extend,m=xt("path"),b=xr("adj1",v,45),C=xr("adj2",v,270),w=p.w/2,B=p.h/2,k=p.w/2,Q=p.h/2,x=Po(b,k,Q,w,B),L=x[0],O=x[1],W=Po(C,k,Q,w,B),M=W[0],J=W[1],G=$y(b,C),N="M".concat(L," ").concat(O," A ").concat(w," ").concat(B," 0 ").concat(G," ").concat(1," ").concat(M," ").concat(J," Z");return m.setAttribute("d",N),m})(r),A=em(r);break;case"teardrop":f=(function(v){var p=v.extend,m=xt("path"),b=xr("adj",v,1),C=p.w/2,w=p.h/2,B=p.w/2,k=p.h/2,Q=Po(0,B,k,C,w),x=Q[0],L=Q[1],O=Po(270,B,k,C,w),W=O[0],M=O[1],J=$y(0,270),G="M".concat(x," ").concat(L," A ").concat(C," ").concat(w," 0 ").concat(J," ").concat(1," ").concat(W," ").concat(M),N=C*b,_=B+N,S=k-w*N/(p.w/2),Y=(p.w/2+_)/2,P=(p.h/2+S)/2;return G+=" Q".concat(Y,",0 ").concat(_,",").concat(S),G+=" Q".concat(p.w,",").concat(P," ").concat(B+C,",").concat(k),m.setAttribute("d",G),m})(r),A=em(r);break;case"frame":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj1",v,.12*Math.min(p.w,p.h)),C=["M0,0","L".concat(p.w,",0"),"L".concat(p.w,",").concat(p.h),"L0,".concat(p.h),"Z","M".concat(b,",").concat(b),"L".concat(b,",").concat(p.h-b),"L".concat(p.w-b,",").concat(p.h-b),"L".concat(p.w-b,",").concat(b),"Z"].join(" ");return m.setAttribute("d",C),m})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.12*Math.min(p.w,p.h));return{top:m,bottom:m,left:m,right:m,w:p.w-2*m,h:p.h-2*m}})(r);break;case"halfFrame":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj1",v,.333*Math.min(p.w,p.h)),C=Math.min(Qt("adj2",v,.333*Math.min(p.w,p.h)),p.w*(1-b/p.h)),w=["M0,0","L".concat(p.w,",0"),"L".concat(p.w*(1-b/p.h),",").concat(b),"L".concat(C,",").concat(b),"L".concat(C,",").concat(p.h*(1-C/p.w)),"L0,".concat(p.h),"Z"].join(" ");return m.setAttribute("d",w),m})(r);break;case"corner":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj1",v,.5*Math.min(p.w,p.h)),C=Qt("adj2",v,.5*Math.min(p.w,p.h)),w=["M0,0","L".concat(C,",0"),"L".concat(C,",").concat(p.h-b),"L".concat(p.w,",").concat(p.h-b),"L".concat(p.w,",").concat(p.h),"L0,".concat(p.h),"Z"].join(" ");return m.setAttribute("d",w),m})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h));return{top:p.h-m,bottom:0,left:0,right:0,w:p.w,h:m}})(r);break;case"diagStripe":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj",v,.5*Math.min(p.w,p.h)),C=p.w*b/p.h,w=["M".concat(C,",0"),"L".concat(p.w,",0"),"L0,".concat(p.h),"L0,".concat(b),"Z"].join(" ");return m.setAttribute("d",w),m})(r),A=(function(v){var p=v.extend,m=xr("adj",v,.5),b=.5*(1-m)*p.h,C=.5*(1-m)*p.w;return{top:0,bottom:b,left:0,right:C,w:p.w-C,h:p.h-b}})(r);break;case"plus":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj",v,.25*Math.min(p.w,p.h)),C=["M".concat(b,",0"),"L".concat(p.w-b,",0"),"L".concat(p.w-b,",").concat(b),"L".concat(p.w,",").concat(b),"L".concat(p.w,",").concat(p.h-b),"L".concat(p.w-b,",").concat(p.h-b),"L".concat(p.w-b,",").concat(p.h),"L".concat(b,",").concat(p.h),"L".concat(b,",").concat(p.h-b),"L0,".concat(p.h-b),"L0,".concat(b),"L".concat(b,",").concat(b),"Z"].join(" ");return m.setAttribute("d",C),m})(r),A=(function(v){var p=v.extend,m=Qt("adj",v,.25*Math.min(p.w,p.h));return{top:m,bottom:m,left:0,right:0,w:p.w,h:p.h-2*m}})(r);break;case"plaque":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj",v,.16667*Math.min(p.w,p.h)),C=["M".concat(b,",0"),"L".concat(p.w-b,",0"),"Q".concat(p.w-b,",").concat(b," ").concat(p.w,",").concat(b),"L".concat(p.w,",").concat(p.h-b),"Q".concat(p.w-b,",").concat(p.h-b," ").concat(p.w-b,",").concat(p.h),"L".concat(b,",").concat(p.h),"Q".concat(b,",").concat(p.h-b," 0,").concat(p.h-b),"L0,".concat(b),"Q".concat(b,",").concat(b," ").concat(b,",0"),"Z"].join(" ");return m.setAttribute("d",C),m})(r),A=(function(v){var p=v.extend,m=Qt("adj",v,.16667*Math.min(p.w,p.h));return{top:.72*m,bottom:.72*m,left:.72*m,right:.72*m,w:p.w-1.44*m,h:p.w-1.44*m}})(r);break;case"can":f=(function(v){var p=v.extend,m=v.background,b=xt("g"),C=xt("path"),w=Qt("adj",v,.25*Math.min(p.w,p.h)),B=["M0,".concat(w/2),"L0,".concat(p.h-w/2),"A".concat(p.w/2,",").concat(w/2," 0 0 0 ").concat(p.w,",").concat(p.h-w/2),"L".concat(p.w,",").concat(w/2),"A".concat(p.w/2,",").concat(w/2," 0 0 1 0,").concat(w/2),"Z"].join(" ");C.setAttribute("d",B);var k=xt("ellipse"),Q=p.w/2,x=w/2,L=p.w/2,O=w/2;return k.setAttribute("cx",Q+"px"),k.setAttribute("cy",x+"px"),k.setAttribute("rx",L+"px"),k.setAttribute("ry",O+"px"),m?.type==="solidFill"&&k.setAttribute("fill",Tn(m,{light:.5})||"transparent"),b.appendChild(C),b.appendChild(k),b})(r),A=(function(v){var p=v.extend,m=Qt("adj",v,.25*Math.min(p.w,p.h));return{top:m,bottom:0,left:0,right:0,w:p.w,h:p.h-m}})(r);break;case"cube":f=(function(v){var p=v.extend,m=v.background,b=Qt("adj",v,.25*Math.min(p.w,p.h)),C=xt("g"),w=xt("path"),B=["M0,".concat(b),"L".concat(p.w-b,",").concat(b),"L".concat(p.w-b,",").concat(p.h),"L0,".concat(p.h),"Z"].join(" ");w.setAttribute("d",B);var k=xt("path"),Q=["M0,".concat(b),"L".concat(b,",0"),"L".concat(p.w,",0"),"L".concat(p.w-b,",").concat(b),"Z"].join(" ");k.setAttribute("d",Q),m?.type==="solidFill"&&k.setAttribute("fill",Tn(m,{light:.8})||"transparent");var x=xt("path"),L=["M".concat(p.w,",0"),"L".concat(p.w-b,",").concat(b),"L".concat(p.w-b,",").concat(p.h),"L".concat(p.w,",").concat(p.h-b),"Z"].join(" ");return x.setAttribute("d",L),m?.type==="solidFill"&&x.setAttribute("fill",Tn(m,{dark:.6})||"transparent"),C.appendChild(w),C.appendChild(k),C.appendChild(x),C})(r),A=(function(v){var p=v.extend,m=Qt("adj",v,.25*Math.min(p.w,p.h));return{top:m,bottom:0,left:0,right:m,w:p.w-m,h:p.h-m}})(r);break;case"bevel":f=(function(v){var p=v.extend,m=v.background,b=Qt("adj",v,.125*Math.min(p.w,p.h)),C=xt("g"),w=xt("path"),B=["M".concat(b,",").concat(b),"L".concat(p.w-b,",").concat(b),"L".concat(p.w-b,",").concat(p.h-b),"L".concat(b,",").concat(p.h-b),"Z"].join(" ");w.setAttribute("d",B);var k=xt("path"),Q=["M0,0","L".concat(b,",").concat(b),"L".concat(p.w-b,",").concat(b),"L".concat(p.w,",0"),"Z"].join(" ");k.setAttribute("d",Q),m?.type==="solidFill"&&k.setAttribute("fill",Tn(m,{light:.8})||"transparent");var x=xt("path"),L=["M".concat(p.w,",0"),"L".concat(p.w-b,",").concat(b),"L".concat(p.w-b,",").concat(p.h-b),"L".concat(p.w,",").concat(p.h),"Z"].join(" ");x.setAttribute("d",L),m?.type==="solidFill"&&x.setAttribute("fill",Tn(m,{dark:.6})||"transparent");var O=xt("path"),W=["M".concat(p.w,",").concat(p.h),"L".concat(p.w-b,",").concat(p.h-b),"L".concat(b,",").concat(p.h-b),"L0,".concat(p.h),"Z"].join(" ");O.setAttribute("d",W),m?.type==="solidFill"&&O.setAttribute("fill",Tn(m,{dark:.625})||"transparent");var M=xt("path"),J=["M0,".concat(p.h),"L".concat(b,",").concat(p.h-b),"L".concat(b,",").concat(b),"L0,0","Z"].join(" ");return M.setAttribute("d",J),m?.type==="solidFill"&&M.setAttribute("fill",Tn(m,{light:.6})||"transparent"),C.appendChild(w),C.appendChild(k),C.appendChild(x),C.appendChild(O),C.appendChild(M),C})(r),A=(function(v){var p=v.extend,m=Qt("adj",v,.125*Math.min(p.w,p.h));return{top:m,bottom:m,left:m,right:m,w:p.w-2*m,h:p.h-2*m}})(r);break;case"donut":f=(function(v){var p=v.extend,m=Qt("adj",v,.25*Math.min(p.w,p.h)),b=xt("path"),C=["M0,".concat(p.h/2),"A".concat(p.w/2,",").concat(p.h/2," 0 1,1 0,").concat(p.h/2+1),"Z","M".concat(p.w-m,",").concat(p.h/2),"A".concat(p.w/2-m,",").concat(p.h/2-m," 0 1,0 ").concat(p.w-m,",").concat(p.h/2+1),"Z"].join(" ");return b.setAttribute("d",C),b})(r),A=em(r);break;case"noSmoking":f=(function(v){var p=v.extend,m=Qt("adj",v,.25*Math.min(p.w,p.h)),b=xt("path"),C=Math.atan(p.h/p.w),w=m/2/Math.sin(C),B=p.w/2,k=p.h/2,Q=-1*p.h/p.w,x=p.h*w/p.w,L=p.w/2-m,O=p.h/2-m,W=-2*L*L*Q*x,M=Math.sqrt(Math.pow(2*L*L*Q*x,2)-4*(O*O+L*L*Q*Q)*L*L*(x*x-O*O)),J=2*(O*O+L*L*Q*Q),G=(W-M)/J,N=Q*G+x,_=(W+M)/J,S=Q*_+x,Y=-p.h*w/p.w,P=-2*L*L*Q*Y,U=Math.sqrt(Math.pow(2*L*L*Q*Y,2)-4*(O*O+L*L*Q*Q)*L*L*(Y*Y-O*O)),F=2*(O*O+L*L*Q*Q),T=(P-U)/F,R=Q*T+Y,V=(P+U)/F,re=Q*V+Y,oe=["M0,".concat(p.h/2),"A".concat(p.w/2,",").concat(p.h/2," 0 1,1 0,").concat(p.h/2+1),"Z","M".concat(B+_,",").concat(k-S),"A".concat(L,",").concat(O," 0 0 0 ").concat(B+G,",").concat(k-N),"Z","M".concat(B+T,",").concat(k-R),"A".concat(L,",").concat(O," 0 0 0 ").concat(B+V,",").concat(k-re),"Z"].join(" ");return b.setAttribute("d",oe),b})(r),A=em(r);break;case"rightArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=Qt("adj2",v,.5*Math.min(p.w,p.h)),C=xt("path"),w=["M0,".concat(p.h/2-m/2),"L".concat(p.w-b,",").concat(p.h/2-m/2),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-b,",").concat(p.h),"L".concat(p.w-b,",").concat(p.h/2+m/2),"L0,".concat(p.h/2+m/2),"Z"].join(" ");return C.setAttribute("d",w),C})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=m*Qt("adj2",v,.5*Math.min(p.w,p.h))/p.h;return{top:p.h/2-m/2,bottom:p.h/2-m/2,left:0,right:b,w:p.w-b,h:m}})(r);break;case"leftArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=Qt("adj2",v,.5*Math.min(p.w,p.h)),C=xt("path"),w=["M0,".concat(p.h/2),"L".concat(b,",0"),"L".concat(b,",").concat(p.h/2-m/2),"L".concat(p.w,",").concat(p.h/2-m/2),"L".concat(p.w,",").concat(p.h/2+m/2),"L".concat(b,",").concat(p.h/2+m/2),"L".concat(b,",").concat(p.h),"Z"].join(" ");return C.setAttribute("d",w),C})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=m*Qt("adj2",v,.5*Math.min(p.w,p.h))/p.h;return{top:p.h/2-m/2,bottom:p.h/2-m/2,left:b,right:0,w:p.w-b,h:m}})(r);break;case"upArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=Qt("adj2",v,.5*Math.min(p.w,p.h)),C=xt("path"),w=["M".concat(p.w/2,",0"),"L".concat(p.w,",").concat(b),"L".concat(p.w/2+m/2,",").concat(b),"L".concat(p.w/2+m/2,",").concat(p.h),"L".concat(p.w/2-m/2,",").concat(p.h),"L".concat(p.w/2-m/2,",").concat(b),"L0,".concat(b),"Z"].join(" ");return C.setAttribute("d",w),C})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=m*Qt("adj2",v,.5*Math.min(p.w,p.h))/p.w;return{top:b,bottom:0,left:p.w/2-m/2,right:p.w/2-m/2,w:m,h:p.h-b}})(r);break;case"downArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=Qt("adj2",v,.5*Math.min(p.w,p.h)),C=xt("path"),w=["M".concat(p.w/2,",").concat(p.h),"L0,".concat(p.h-b),"L".concat(p.w/2-m/2,",").concat(p.h-b),"L".concat(p.w/2-m/2,",0"),"L".concat(p.w/2+m/2,",0"),"L".concat(p.w/2+m/2,",").concat(p.h-b),"L".concat(p.w,",").concat(p.h-b),"Z"].join(" ");return C.setAttribute("d",w),C})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=m*Qt("adj2",v,.5*Math.min(p.w,p.h))/p.w;return{top:0,bottom:b,left:p.w/2-m/2,right:p.w/2-m/2,w:m,h:p.h-b}})(r);break;case"leftRightArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=Qt("adj2",v,.5*Math.min(p.w,p.h)),C=xt("path"),w=["M0,".concat(p.h/2),"L".concat(b,",0"),"L".concat(b,",").concat(p.h/2-m/2),"L".concat(p.w-b,",").concat(p.h/2-m/2),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-b,",").concat(p.h),"L".concat(p.w-b,",").concat(p.h/2+m/2),"L".concat(b,",").concat(p.h/2+m/2),"L".concat(b,",").concat(p.h),"Z"].join(" ");return C.setAttribute("d",w),C})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=m*Qt("adj2",v,.5*Math.min(p.w,p.h))/p.h;return{top:p.h/2-m/2,bottom:p.h/2-m/2,left:b,right:b,w:p.w-2*b,h:m}})(r);break;case"upDownArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=Qt("adj2",v,.5*Math.min(p.w,p.h)),C=xt("path"),w=["M".concat(p.w/2,",").concat(p.h),"L0,".concat(p.h-b),"L".concat(p.w/2-m/2,",").concat(p.h-b),"L".concat(p.w/2-m/2,",").concat(b),"L0,".concat(b),"L".concat(p.w/2,",0"),"L".concat(p.w,",").concat(b),"L".concat(p.w/2+m/2,",").concat(b),"L".concat(p.w/2+m/2,",").concat(p.h-b),"L".concat(p.w,",").concat(p.h-b),"Z"].join(" ");return C.setAttribute("d",w),C})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=m*Qt("adj2",v,.5*Math.min(p.w,p.h))/p.w;return{top:b,bottom:b,left:p.w/2-m/2,right:p.w/2-m/2,w:m,h:p.h-2*b}})(r);break;case"quadArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.225*Math.min(p.w,p.h)),b=Qt("adj2",v,.225*Math.min(p.w,p.h)),C=Qt("adj3",v,.225*Math.min(p.w,p.h)),w=xt("path"),B=["M0,".concat(p.h/2),"L".concat(C,",").concat(p.h/2-b),"L".concat(C,",").concat(p.h/2-m/2),"L".concat(p.w/2-m/2,",").concat(p.h/2-m/2),"L".concat(p.w/2-m/2,",").concat(C),"L".concat(p.w/2-b,",").concat(C),"L".concat(p.w/2,",0"),"L".concat(p.w/2+b,",").concat(C),"L".concat(p.w/2+m/2,",").concat(C),"L".concat(p.w/2+m/2,",").concat(p.h/2-m/2),"L".concat(p.w-C,",").concat(p.h/2-m/2),"L".concat(p.w-C,",").concat(p.h/2-b),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-C,",").concat(p.h/2+b),"L".concat(p.w-C,",").concat(p.h/2+m/2),"L".concat(p.w/2+m/2,",").concat(p.h/2+m/2),"L".concat(p.w/2+m/2,",").concat(p.h-C),"L".concat(p.w/2+b,",").concat(p.h-C),"L".concat(p.w/2,",").concat(p.h),"L".concat(p.w/2-b,",").concat(p.h-C),"L".concat(p.w/2-m/2,",").concat(p.h-C),"L".concat(p.w/2-m/2,",").concat(p.h/2+m/2),"L".concat(C,",").concat(p.h/2+m/2),"L".concat(C,",").concat(p.h/2+b),"Z"].join(" ");return w.setAttribute("d",B),w})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.225*Math.min(p.w,p.h)),b=Qt("adj2",v,.225*Math.min(p.w,p.h)),C=Qt("adj3",v,.225*Math.min(p.w,p.h)),w=b===0?0:m*C/b/2;return{top:p.h/2-m/2,bottom:p.h/2-m/2,left:w,right:w,w:p.w-2*w,h:m}})(r);break;case"leftRightUpArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.225*Math.min(p.w,p.h)),b=Qt("adj2",v,.225*Math.min(p.w,p.h)),C=Qt("adj3",v,.225*Math.min(p.w,p.h)),w=xt("path");m>2*b&&(m=2*b);var B=["M0,".concat(p.h-b),"L".concat(C,",").concat(p.h-2*b),"L".concat(C,",").concat(p.h-b-m/2),"L".concat(p.w/2-m/2,",").concat(p.h-b-m/2),"L".concat(p.w/2-m/2,",").concat(C),"L".concat(p.w/2-b,",").concat(C),"L".concat(p.w/2,",0"),"L".concat(p.w/2+b,",").concat(C),"L".concat(p.w/2+m/2,",").concat(C),"L".concat(p.w/2+m/2,",").concat(p.h-b-m/2),"L".concat(p.w-C,",").concat(p.h-b-m/2),"L".concat(p.w-C,",").concat(p.h-2*b),"L".concat(p.w,",").concat(p.h-b),"L".concat(p.w-C,",").concat(p.h),"L".concat(p.w-C,",").concat(p.h-b+m/2),"L".concat(C,",").concat(p.h-b+m/2),"L".concat(C,",").concat(p.h),"Z"].join(" ");return w.setAttribute("d",B),w})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.225*Math.min(p.w,p.h)),b=Qt("adj2",v,.225*Math.min(p.w,p.h)),C=Qt("adj3",v,.225*Math.min(p.w,p.h)),w=b===0?0:m*C/b/2;return{top:p.h-b-m/2,bottom:b-m/2,left:w,right:w,w:p.w-2*w,h:m}})(r);break;case"bentArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.25*Math.min(p.w,p.h)),b=Qt("adj2",v,.25*Math.min(p.w,p.h)),C=Qt("adj3",v,.25*Math.min(p.w,p.h)),w=Qt("adj4",v,.4375*Math.min(p.w,p.h)),B=xt("path");m>2*b&&(m=2*b);var k=w-m;k<0&&(k=0);var Q=["M0,".concat(p.h),"L0,".concat(b-m/2+w),"A".concat(w," ").concat(w," 0 0 1 ").concat(w," ").concat(b-m/2),"L".concat(p.w-C,",").concat(b-m/2),"L".concat(p.w-C,",0"),"L".concat(p.w,",").concat(b),"L".concat(p.w-C,",").concat(2*b),"L".concat(p.w-C,",").concat(b+m/2),"L".concat(m+k,",").concat(b+m/2),"A".concat(k," ").concat(k," 0 0 0 ").concat(m," ").concat(b+m/2+k),"L".concat(m,",").concat(p.h),"Z"].join(" ");return B.setAttribute("d",Q),B})(r);break;case"uturnArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.25*Math.min(p.w,p.h)),b=Qt("adj2",v,.25*Math.min(p.w,p.h)),C=Qt("adj3",v,.25*Math.min(p.w,p.h)),w=Qt("adj4",v,.4375*Math.min(p.w,p.h)),B=Qt("adj5",v,.75*Math.min(p.w,p.h)),k=xt("path");m>2*b&&(m=2*b),B<C&&(B=C+m),w>B-C&&(w=B-C);var Q=w-m;Q>B-C-m&&(Q=B-C-m),Q<0&&(Q=0);var x=b-m/2,L=["M0,".concat(p.h),"L0,".concat(w),"A".concat(w," ").concat(w," 0 0 1 ").concat(w," 0"),"L".concat(p.w-w-x,",0"),"A".concat(w," ").concat(w," 0 0 1 ").concat(p.w-x," ").concat(w),"L".concat(p.w-x,",").concat(B-C),"L".concat(p.w,",").concat(B-C),"L".concat(p.w-b,",").concat(B),"L".concat(p.w-2*b,",").concat(B-C),"L".concat(p.w-b-m/2,",").concat(B-C),"L".concat(p.w-b-m/2,",").concat(m+Q),"A".concat(Q," ").concat(Q," 0 0 0 ").concat(p.w-Q-b-m/2," ").concat(m),"L".concat(m+Q,",").concat(m),"A".concat(Q," ").concat(Q," 0 0 0 ").concat(m," ").concat(m+Q),"L".concat(m,",").concat(p.h),"Z"].join(" ");return k.setAttribute("d",L),k})(r);break;case"leftUpArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.25*Math.min(p.w,p.h)),b=Qt("adj2",v,.25*Math.min(p.w,p.h)),C=Qt("adj3",v,.25*Math.min(p.w,p.h));m>2*b&&(m=2*b);var w=Math.min(p.w,p.h)-2*b;C>w&&(C=w),C<0&&(C=0);var B=b-m/2,k=xt("path"),Q=["M0,".concat(p.h-b),"L".concat(C,",").concat(p.h-2*b),"L".concat(C,",").concat(p.h-b-m/2),"L".concat(p.w-b-m/2,",").concat(p.h-b-m/2),"L".concat(p.w-b-m/2,",").concat(C),"L".concat(p.w-2*b,",").concat(C),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(C),"L".concat(p.w-B,",").concat(C),"L".concat(p.w-B,",").concat(p.h-B),"L".concat(C,",").concat(p.h-B),"L".concat(C,",").concat(p.h),"Z"].join(" ");return k.setAttribute("d",Q),k})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.25*Math.min(p.w,p.h)),b=Qt("adj2",v,.25*Math.min(p.w,p.h)),C=Qt("adj3",v,.25*Math.min(p.w,p.h));m>2*b&&(m=2*b);var w=Math.min(p.w,p.h)-2*b;C>w&&(C=w),C<0&&(C=0);var B=b===0?0:m*C/b/2;return{top:p.h-b-m/2,bottom:b-m/2,left:B,right:b,w:p.w-B-b,h:m}})(r);break;case"bentUpArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.25*Math.min(p.w,p.h)),b=Qt("adj2",v,.25*Math.min(p.w,p.h)),C=Qt("adj3",v,.25*Math.min(p.w,p.h));m>2*b&&(m=2*b);var w=Math.min(p.w,p.h)-2*b;C>w&&(C=w),C<0&&(C=0);var B=b-m/2,k=xt("path"),Q=["M0,".concat(p.h),"L0,".concat(p.h-m),"L".concat(p.w-b-m/2,",").concat(p.h-m),"L".concat(p.w-b-m/2,",").concat(C),"L".concat(p.w-2*b,",").concat(C),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(C),"L".concat(p.w-B,",").concat(C),"L".concat(p.w-B,",").concat(p.h),"Z"].join(" ");return k.setAttribute("d",Q),k})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.25*Math.min(p.w,p.h));return{top:p.h-m,bottom:0,left:0,right:0,w:p.w,h:m}})(r);break;case"curvedRightArrow":f=(function(v){var p=v.extend,m=v.background,b=Qt("adj1",v,.25*Math.min(p.w,p.h)),C=Qt("adj2",v,.5*Math.min(p.w,p.h)),w=Qt("adj3",v,.25*Math.min(p.w,p.h));b>C&&(b=C);var B=C/2-b/2,k=(p.h-C/2-b/2)/2,Q=(p.h-B-b)/2,x=xt("g"),L=xt("path"),O=["M".concat(p.w,",0"),"A ".concat(p.w," ").concat(k," 0 0 0 ").concat(0," ").concat(k),"L0,".concat(Q+b),"A ".concat(p.w," ").concat(Q," 0 0 1 ").concat(p.w," ").concat(b),"Z"].join(" ");L.setAttribute("d",O),m?.type==="solidFill"&&L.setAttribute("fill",Tn(m,{dark:.6})||"transparent");var W=xt("path"),M=["M0,".concat(k),"A ".concat(p.w," ").concat(k," 0 0 0 ").concat(p.w-w," ").concat(p.h-C/2-b/2),"L".concat(p.w-w,",").concat(p.h-C),"L".concat(p.w,",").concat(p.h-C/2),"L".concat(p.w-w,",").concat(p.h),"L".concat(p.w-w,",").concat(p.h-B),"A ".concat(p.w," ").concat(Q," 0 0 1 0 ").concat(b+Q),"Z"].join(" ");return W.setAttribute("d",M),x.appendChild(L),x.appendChild(W),x})(r);break;case"curvedLeftArrow":f=(function(v){var p=v.extend,m=v.background,b=Qt("adj1",v,.25*Math.min(p.w,p.h)),C=Qt("adj2",v,.5*Math.min(p.w,p.h)),w=Qt("adj3",v,.25*Math.min(p.w,p.h));b>C&&(b=C);var B=C/2-b/2,k=(p.h-C/2-b/2)/2,Q=(p.h-B-b)/2,x=xt("g"),L=xt("path"),O=["M0,".concat(p.h-C/2),"L".concat(w,",").concat(p.h-C),"L".concat(w,",").concat(p.h-C/2-b/2),"A".concat(p.w," ").concat(k," 0 0 0 ").concat(p.w," ").concat(k),"L".concat(p.w,",").concat(Q+b),"A ".concat(p.w," ").concat(Q," 0 0 1 ").concat(w," ").concat(p.h-B),"L".concat(w,",").concat(p.h),"Z"].join(" ");L.setAttribute("d",O);var W=xt("path"),M=["M0,0","A ".concat(p.w," ").concat(k," 0 0 1 ").concat(p.w," ").concat(k),"L".concat(p.w,",").concat(Q+b),"A ".concat(p.w," ").concat(Q," 0 0 0 ").concat(0," ").concat(b),"Z"].join(" ");return W.setAttribute("d",M),m?.type==="solidFill"&&W.setAttribute("fill",Tn(m,{dark:.6})||"transparent"),x.appendChild(L),x.appendChild(W),x})(r);break;case"curvedUpArrow":f=(function(v){var p=v.extend,m=v.background,b=Qt("adj1",v,.25*Math.min(p.w,p.h)),C=Qt("adj2",v,.5*Math.min(p.w,p.h)),w=Qt("adj3",v,.25*Math.min(p.w,p.h));b>C&&(b=C);var B=C/2-b/2,k=(p.w-C/2-b/2)/2,Q=(p.w-B-b)/2,x=xt("g"),L=xt("path"),O=["M".concat(p.w-C/2,",").concat(0),"L".concat(p.w-C,",").concat(w),"L".concat(p.w-C/2-b/2,",").concat(w),"A".concat(k," ").concat(p.h," 0 0 1 ").concat(k," ").concat(p.h),"L".concat(k+b,",").concat(p.h),"A".concat(Q," ").concat(p.h," 0 0 0 ").concat(p.w-B," ").concat(w),"L".concat(p.w,",").concat(w),"Z"].join(" ");L.setAttribute("d",O);var W=xt("path"),M=["M".concat(b,",0"),"L".concat(0,",").concat(0),"A ".concat(k," ").concat(p.h," 0 0 0 ").concat(k," ").concat(p.h),"L".concat(k+b,",").concat(p.h),"A ".concat(Q," ").concat(p.h," 0 0 1 ").concat(b," ").concat(0),"Z"].join(" ");return W.setAttribute("d",M),m?.type==="solidFill"&&W.setAttribute("fill",Tn(m,{dark:.6})||"transparent"),x.appendChild(L),x.appendChild(W),x})(r);break;case"curvedDownArrow":f=(function(v){var p=v.extend,m=v.background,b=Qt("adj1",v,.25*Math.min(p.w,p.h)),C=Qt("adj2",v,.5*Math.min(p.w,p.h)),w=Qt("adj3",v,.25*Math.min(p.w,p.h));b>C&&(b=C);var B=C/2-b/2,k=(p.w-C/2-b/2)/2,Q=(p.w-B-b)/2,x=xt("g"),L=xt("path"),O=["M".concat(0,",").concat(p.h),"L".concat(b,",").concat(p.h),"A".concat(Q," ").concat(p.h," 0 0 1 ").concat(Q+b," ").concat(0),"L".concat(k,",").concat(0),"A".concat(k," ").concat(p.h," 0 0 0 ").concat(0," ").concat(p.h),"Z"].join(" ");L.setAttribute("d",O),m?.type==="solidFill"&&L.setAttribute("fill",Tn(m,{dark:.6})||"transparent");var W=xt("path"),M=["M".concat(p.w-C/2,",").concat(p.h),"L".concat(p.w-C,",").concat(p.h-w),"L".concat(p.w-C/2-b/2,",").concat(p.h-w),"A ".concat(k," ").concat(p.h," 0 0 0 ").concat(k," ").concat(0),"L".concat(k+b,",").concat(0),"A ".concat(Q," ").concat(p.h," 0 0 1 ").concat(p.w-B," ").concat(p.h-w),"L".concat(p.w,",").concat(p.h-w),"Z"].join(" ");return W.setAttribute("d",M),x.appendChild(L),x.appendChild(W),x})(r);break;case"stripedRightArrow":f=(function(v){var p=v.extend,m=xt("g"),b=Math.min(p.w,p.h),C=xr("adj1",v,.5)*p.h,w=xr("adj2",v,.5)*b,B=b/8,k=b/16,Q=b/32,x=5*b/32,L=p.h/2-C/2,O=p.h/2+C/2,W=xt("path");W.setAttribute("d",["M".concat(0,",").concat(L),"L".concat(Q,",").concat(L),"L".concat(Q,",").concat(O),"L".concat(0,",").concat(O),"Z"].join(" "));var M=xt("path");M.setAttribute("d",["M".concat(k,",").concat(L),"L".concat(B,",").concat(L),"L".concat(B,",").concat(O),"L".concat(k,",").concat(O),"Z"].join(" "));var J=xt("path"),G=["M".concat(x,",").concat(L),"L".concat(p.w-w,",").concat(L),"L".concat(p.w-w,",").concat(0),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-w,",").concat(p.h),"L".concat(p.w-w,",").concat(O),"L".concat(x,",").concat(O),"Z"].join(" ");return J.setAttribute("d",G),m.appendChild(J),m.appendChild(W),m.appendChild(M),m})(r),A=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj1",v,.5)*p.h,C=b*(xr("adj2",v,.5)*m)/p.h;return{top:p.h/2-b/2,bottom:p.h/2-b/2,left:0,right:C,w:p.w-C,h:b}})(r);break;case"notchedRightArrow":f=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj1",v,.5)*p.h,C=xr("adj2",v,.5)*m,w=b*C/p.h,B=p.h/2-b/2,k=p.h/2+b/2,Q=xt("path"),x=["M".concat(0,",").concat(B),"L".concat(p.w-C,",").concat(B),"L".concat(p.w-C,",").concat(0),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-C,",").concat(p.h),"L".concat(p.w-C,",").concat(k),"L".concat(0,",").concat(k),"L".concat(w,",").concat(p.h/2),"Z"].join(" ");return Q.setAttribute("d",x),Q})(r),A=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj1",v,.5)*p.h,C=xr("adj2",v,.5)*m,w=b*C/p.h,B=b*C/p.h;return{top:p.h/2-b/2,bottom:p.h/2-b/2,left:w,right:B,w:p.w-w-B,h:b}})(r);break;case"homePlate":f=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj",v,.5)*m,C=xt("path"),w=["M".concat(0,",").concat(0),"L".concat(p.w-b,",").concat(0),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-b,",").concat(p.h),"L".concat(0,",").concat(p.h),"Z"].join(" ");return C.setAttribute("d",w),C})(r),A=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj",v,.5)*m;return{top:0,bottom:0,left:0,right:b/2,w:p.w-b/2,h:p.h}})(r);break;case"chevron":f=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj",v,.5)*m,C=xt("path"),w=["M".concat(0,",").concat(0),"L".concat(p.w-b,",").concat(0),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-b,",").concat(p.h),"L".concat(0,",").concat(p.h),"L".concat(b,",").concat(p.h/2),"Z"].join(" ");return C.setAttribute("d",w),C})(r),A=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj",v,.5)*m;return{top:0,bottom:0,left:b,right:b,w:p.w-2*b,h:p.h}})(r);break;case"blockArc":f=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xt("path"),C=xr("adj1",v,180),w=xr("adj2",v,0),B=Qt("adj3",v,.25*m),k=p.w/2,Q=p.h/2,x=p.w/2,L=p.h/2,O=p.w/2-B,W=p.h/2-B,M=Po(C,k,Q,x,L),J=M[0],G=M[1],N=Po(w,k,Q,x,L),_=N[0],S=N[1],Y=Po(C,k,Q,O,W),P=Y[0],U=Y[1],F=Po(w,k,Q,O,W),T=F[0],R=F[1],V=$y(C,w),re=["M".concat(J,",").concat(G),"A".concat(x," ").concat(L," 0 ").concat(V," 1 ").concat(_," ").concat(S),"L".concat(T,",").concat(R),"A".concat(O," ").concat(W," 0 ").concat(V," 0 ").concat(P," ").concat(U),"Z"].join(" ");return b.setAttribute("d",re),b})(r),A=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj1",v,180),C=xr("adj2",v,0),w=Qt("adj3",v,.25*m),B=p.w/2,k=p.h/2,Q=p.w/2,x=p.h/2,L=p.w/2-w,O=p.h/2-w,W=Po(b,B,k,Q,x),M=W[0],J=W[1],G=Po(C,B,k,Q,x),N=G[0],_=G[1],S=Po(b,B,k,L,O),Y=S[0],P=S[1],U=Po(C,B,k,L,O),F=[[M,J],[N,_],[Y,P],[U[0],U[1]]];F.push(),b>C&&F.push([p.w,p.h/2]),(C>180&&C<=360&&b<180||b>C&&C>=0&&C<180&&b<180)&&F.push([0,p.h/2]),(b<C&&b<90&&C>90||b>C&&C>90||b>C&&b<90)&&F.push([p.w/2,p.h]),(b<C&&b<270&&C>270||b>C&&C>270||b>C&&b<270)&&F.push([p.w/2,0]);var T=1/0,R=1/0,V=-1/0,re=-1/0;return F.forEach(function(oe){T=Math.min(oe[0],T),R=Math.min(oe[1],R),V=Math.max(oe[0],V),re=Math.max(oe[1],re)}),{top:R,bottom:p.h-re,left:T,right:p.w-V,w:V-T,h:re-R}})(r);break;case"foldedCorner":f=(function(v){var p=v.extend,m=v.background,b=xt("g"),C=xt("path"),w=Qt("adj",v,.16667*Math.min(p.w,p.h)),B=["M0,0","L".concat(p.w,",0"),"L".concat(p.w,",").concat(p.h-w),"L".concat(p.w-w,",").concat(p.h),"L".concat(0,",").concat(p.h),"Z"].join(" ");C.setAttribute("d",B);var k=w*Math.cos(Math.PI/4)/Math.cos(Math.PI/6)*Math.cos(75/180*Math.PI),Q=xt("path"),x=["M".concat(p.w-w+k,", ").concat(p.h-w+k),"L".concat(p.w,",").concat(p.h-w),"L".concat(p.w-w,",").concat(p.h),"Z"].join(" ");return Q.setAttribute("d",x),m?.type==="solidFill"&&Q.setAttribute("fill",Tn(m,{dark:.6})||"transparent"),b.appendChild(C),b.appendChild(Q),b})(r),A=(function(v){var p=v.extend,m=Qt("adj",v,.16667*Math.min(p.w,p.h));return{top:0,bottom:m,left:0,right:0,w:p.w,h:p.h-m}})(r);break;case"rightArrowCallout":f=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj1",v,.25)*m,C=xr("adj2",v,.25)*m,w=xr("adj3",v,.25)*m,B=xr("adj4",v,.64977)*p.w,k=xt("path"),Q=["M".concat(0,",").concat(0),"L".concat(B,",").concat(0),"L".concat(B,",").concat(p.h/2-b/2),"L".concat(p.w-w,",").concat(p.h/2-b/2),"L".concat(p.w-w,",").concat(p.h/2-C),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-w,",").concat(p.h/2+C),"L".concat(p.w-w,",").concat(p.h/2+b/2),"L".concat(B,",").concat(p.h/2+b/2),"L".concat(B,",").concat(p.h),"L".concat(0,",").concat(p.h),"Z"].join(" ");return k.setAttribute("d",Q),k})(r),A=(function(v){var p=v.extend,m=xr("adj4",v,.64977)*p.w;return{top:0,bottom:0,left:0,right:p.w-m,w:m,h:p.h}})(r);break;case"leftArrowCallout":f=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj1",v,.25)*m,C=xr("adj2",v,.25)*m,w=xr("adj3",v,.25)*m,B=xr("adj4",v,.64977)*p.w,k=xt("path"),Q=["M".concat(0,",").concat(p.h/2),"L".concat(w,",").concat(p.h/2-C),"L".concat(w,",").concat(p.h/2-b/2),"L".concat(p.w-B,",").concat(p.h/2-b/2),"L".concat(p.w-B,",").concat(0),"L".concat(p.w,",").concat(0),"L".concat(p.w,",").concat(p.h),"L".concat(p.w-B,",").concat(p.h),"L".concat(p.w-B,",").concat(p.h/2+b/2),"L".concat(w,",").concat(p.h/2+b/2),"L".concat(w,",").concat(p.h/2+C),"Z"].join(" ");return k.setAttribute("d",Q),k})(r),A=(function(v){var p=v.extend,m=xr("adj4",v,.64977)*p.w;return{top:0,bottom:0,left:p.w-m,right:0,w:m,h:p.h}})(r);break;case"upArrowCallout":f=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj1",v,.25)*m,C=xr("adj2",v,.25)*m,w=xr("adj3",v,.25)*m,B=xr("adj4",v,.64977)*p.h,k=xt("path"),Q=["M".concat(0,",").concat(p.h-B),"L".concat(p.w/2-b/2,",").concat(p.h-B),"L".concat(p.w/2-b/2,",").concat(w),"L".concat(p.w/2-C,",").concat(w),"L".concat(p.w/2,",").concat(0),"L".concat(p.w/2+C,",").concat(w),"L".concat(p.w/2+b/2,",").concat(w),"L".concat(p.w/2+b/2,",").concat(p.h-B),"L".concat(p.w,",").concat(p.h-B),"L".concat(p.w,",").concat(p.h),"L".concat(0,",").concat(p.h),"Z"].join(" ");return k.setAttribute("d",Q),k})(r),A=(function(v){var p=v.extend,m=xr("adj4",v,.64977)*p.h;return{top:p.h-m,bottom:0,left:0,right:0,w:p.w,h:m}})(r);break;case"downArrowCallout":f=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj1",v,.25)*m,C=xr("adj2",v,.25)*m,w=xr("adj3",v,.25)*m,B=xr("adj4",v,.64977)*p.h,k=xt("path"),Q=["M".concat(0,",").concat(0),"L".concat(p.w,",").concat(0),"L".concat(p.w,",").concat(B),"L".concat(p.w/2+b/2,",").concat(B),"L".concat(p.w/2+b/2,",").concat(p.h-w),"L".concat(p.w/2+C,",").concat(p.h-w),"L".concat(p.w/2,",").concat(p.h),"L".concat(p.w/2-C,",").concat(p.h-w),"L".concat(p.w/2-b/2,",").concat(p.h-w),"L".concat(p.w/2-b/2,",").concat(B),"L".concat(0,",").concat(B),"Z"].join(" ");return k.setAttribute("d",Q),k})(r),A=(function(v){var p=v.extend,m=xr("adj4",v,.64977)*p.h;return{top:0,bottom:p.h-m,left:0,right:0,w:p.w,h:m}})(r);break;case"leftRightArrowCallout":f=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj1",v,.25)*m,C=xr("adj2",v,.25)*m,w=xr("adj3",v,.25)*m,B=xr("adj4",v,.48123)*p.w,k=xt("path"),Q=["M".concat(0,",").concat(p.h/2),"L".concat(w,",").concat(p.h/2-C),"L".concat(w,",").concat(p.h/2-b/2),"L".concat(p.w/2-B/2,",").concat(p.h/2-b/2),"L".concat(p.w/2-B/2,",").concat(0),"L".concat(p.w/2+B/2,",").concat(0),"L".concat(p.w/2+B/2,",").concat(p.h/2-b/2),"L".concat(p.w-w,",").concat(p.h/2-b/2),"L".concat(p.w-w,",").concat(p.h/2-C),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-w,",").concat(p.h/2+C),"L".concat(p.w-w,",").concat(p.h/2+b/2),"L".concat(p.w/2+B/2,",").concat(p.h/2+b/2),"L".concat(p.w/2+B/2,",").concat(p.h),"L".concat(p.w/2-B/2,",").concat(p.h),"L".concat(p.w/2-B/2,",").concat(p.h/2+b/2),"L".concat(w,",").concat(p.h/2+b/2),"L".concat(w,",").concat(p.h/2+C),"Z"].join(" ");return k.setAttribute("d",Q),k})(r),A=(function(v){var p=v.extend,m=xr("adj4",v,.48123)*p.w;return{top:0,bottom:0,left:p.w/2-m/2,right:p.w/2-m/2,w:m,h:p.h}})(r);break;case"quadArrowCallout":f=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj1",v,.18515)*m,C=xr("adj2",v,.18515)*m,w=xr("adj3",v,.18515)*m,B=xr("adj4",v,.48123)*p.w,k=xr("adj4",v,.48123)*p.h,Q=xt("path"),x=["M".concat(0,",").concat(p.h/2),"L".concat(w,",").concat(p.h/2-C),"L".concat(w,",").concat(p.h/2-b/2),"L".concat(p.w/2-B/2,",").concat(p.h/2-b/2),"L".concat(p.w/2-B/2,",").concat(p.h/2-k/2),"L".concat(p.w/2-b/2,",").concat(p.h/2-k/2),"L".concat(p.w/2-b/2,",").concat(w),"L".concat(p.w/2-C,",").concat(w),"L".concat(p.w/2,",").concat(0),"L".concat(p.w/2+C,",").concat(w),"L".concat(p.w/2+b/2,",").concat(w),"L".concat(p.w/2+b/2,",").concat(p.h/2-k/2),"L".concat(p.w/2+B/2,",").concat(p.h/2-k/2),"L".concat(p.w/2+B/2,",").concat(p.h/2-b/2),"L".concat(p.w-w,",").concat(p.h/2-b/2),"L".concat(p.w-w,",").concat(p.h/2-C),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-w,",").concat(p.h/2+C),"L".concat(p.w-w,",").concat(p.h/2+b/2),"L".concat(p.w/2+B/2,",").concat(p.h/2+b/2),"L".concat(p.w/2+B/2,",").concat(p.h/2+k/2),"L".concat(p.w/2+b/2,",").concat(p.h/2+k/2),"L".concat(p.w/2+b/2,",").concat(p.h-w),"L".concat(p.w/2+C,",").concat(p.h-w),"L".concat(p.w/2,",").concat(p.h),"L".concat(p.w/2-C,",").concat(p.h-w),"L".concat(p.w/2-b/2,",").concat(p.h-w),"L".concat(p.w/2-b/2,",").concat(p.h/2+k/2),"L".concat(p.w/2-B/2,",").concat(p.h/2+k/2),"L".concat(p.w/2-B/2,",").concat(p.h/2+b/2),"L".concat(w,",").concat(p.h/2+b/2),"L".concat(w,",").concat(p.h/2+C),"Z"].join(" ");return Q.setAttribute("d",x),Q})(r),A=(function(v){var p=v.extend,m=xr("adj4",v,.48123)*p.w,b=xr("adj4",v,.48123)*p.h;return{top:p.h/2-b/2,bottom:p.h/2-b/2,left:p.w/2-m/2,right:p.w/2-m/2,w:m,h:b}})(r)}f&&(d?i?.type==="blipFill"?(function(v,p,m){var b=v.background,C=b===void 0?{}:b,w=v.extend,B=C.base64,k=C.alpha,Q=C.fillRect,x=Q===void 0?{}:Q,L=x.b,O=L===void 0?0:L,W=x.t,M=W===void 0?0:W,J=x.l,G=J===void 0?0:J,N=x.r,_=N===void 0?0:N,S=xt("defs"),Y=xt("pattern");Y.setAttribute("id","background_"+v.uuid),Y.setAttribute("patternUnits","userSpaceOnUse"),Y.setAttribute("width",w.w+""),Y.setAttribute("height",w.h+"");var P=xt("image");P.setAttribute("href",B),P.setAttribute("preserveAspectRatio","none");var U=w.w*G,F=w.h*M,T=w.w*(1-G-_),R=w.h*(1-M-O);P.setAttribute("width",T+""),P.setAttribute("height",R+""),P.setAttribute("x",U+""),P.setAttribute("y",F+""),typeof k=="number"&&P.setAttribute("opacity",k+""),Y.appendChild(P),S.appendChild(Y),p.appendChild(S),m.setAttribute("fill","url(#background_".concat(v.uuid,")"))})(r,h,f):i?.type==="gradFill"?(function(v,p,m){var b=v.background,C=b===void 0?{}:b;v.extend;var w=C.gsList,B=C.lin,k=C.path,Q=C.tileRect,x=Q===void 0?{}:Q,L=xt("defs"),O=xt(k==="circle"?"radialGradient":"linearGradient");O.setAttribute("id","background_grad_fill_"+v.uuid);var W=w||[];if(W.sort(function(_,S){return _.pos-S.pos}),W.forEach(function(_){var S=xt("stop");S.setAttribute("offset","".concat(100*_.pos,"%")),S.setAttribute("stop-color",Tn(_.color)),O.appendChild(S)}),k==="circle"){var M=x.r,J=x.l,G=x.t,N=x.b;M===-1?O.setAttribute("cx","100%"):J===-1&&O.setAttribute("cx","0%"),G===-1?O.setAttribute("cy","0%"):N===-1&&O.setAttribute("cy","100%")}else B!=null&&B.ang&&O.setAttribute("gradientTransform","rotate(".concat(B.ang,")"));L.appendChild(O),p.appendChild(L),m.setAttribute("fill","url(#background_grad_fill_".concat(v.uuid,")"))})(r,h,f):f.setAttribute("fill",Tn(i)||"transparent"):f.setAttribute("fill","transparent"),n.width?(f.setAttribute("stroke-width",n.width+"px"),f.setAttribute("stroke",Tn(n.color)||"transparent")):f.setAttribute("stroke-width","0"),f.setAttribute("stroke-dasharray",(function(v){return v&&v.type!=="solid"?({sysDot:[1,1],sysDash:[3,1],dash:[4,3],dashDot:[4,3,1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3]}[v.type]||[]).map(function(p){return p*v.width}).join(","):""})(n)),f.setAttribute("stroke-linecap",n.cap&&{sq:"square",rnd:"round",flat:"butt"}[n.cap]||"square"),f.setAttribute("stroke-linejoin",n.lineJoin||"round"),n.lineJoin==="miter"&&f.setAttribute("stroke-miterlimit",n.miterLim+""),h.appendChild(f));var g=[];o&&g.push("scaleX(-1)"),s&&g.push("scaleY(-1)"),h.style.setProperty("transform",g.join(" ")),l.appendChild(h);var y=(function(v,p,m){var b;m===void 0&&(m=!1);var C=v.inheritProps,w=v.props,B=v.paragraphs;if(!B||B.length===0)return null;var k=jt(jt({},C),w),Q=document.createElement("div");switch(Q.className="text-wrapper",Q.style.boxSizing="border-box",Q.style.position="absolute",Q.style.left=p.left+"px",k.vert==="eaVert"?(Q.style.writingMode="vertical-rl",Q.style.height=p.h+"px"):Q.style.width=p.w+"px",k.anchor){case"b":Q.style.bottom=p.bottom+"px";break;case"t":Q.style.top=p.top+"px";break;case"ctr":Q.style.top=p.top+p.h/2+"px",Q.style.transform="translateY(-50%)";break;default:m?Q.style.top=p.top+"px":(Q.style.top=p.top+p.h/2+"px",Q.style.transform="translateY(-50%)")}var x=[k.hasOwnProperty("tIns")?Math.floor(k.tIns)+"px":"3px",k.hasOwnProperty("rIns")?Math.floor(k.rIns)+"px":"5px",k.hasOwnProperty("bIns")?Math.floor(k.bIns)+"px":"3px",k.hasOwnProperty("lIns")?Math.floor(k.lIns)+"px":"5px"];Q.style.padding=x.join(" ");for(var L={},O=0,W=function(G){var N=jt(jt({},G.inheritProps),G.props),_=void 0;if(N.buAutoNum){var S=N.level?+N.level:0;L[S]||(L[S]=0),!((b=G.rows)===null||b===void 0)&&b.length&&L[S]++,Object.keys(L).forEach(function(Y){+Y>S&&(L[Y]=0)}),_=tB(G,L[S],{isFirst:O===0,isLast:B.length-1===O,bodyProps:k})}else _=tB(G,0,{isFirst:O===0,isLast:B.length-1===O,bodyProps:k});Q.appendChild(_),O++},M=0,J=B;M<J.length;M++)W(J[M]);return Q})(r.textBody,A,r.isTextBox);return y&&l.appendChild(y),a&&l.style.setProperty("transform","rotate(".concat(a,"deg)")),l}function hne(r){var t=document.createElement("div"),e=r.extend;r.chExtend;var n=r.offset;r.chOffset;var i=r.flipV,a=r.flipH,o=r.rotate,s=n.x,l=n.y,c=e.w,u=e.h;t.className="group",t.style.position="absolute",t.style.left=s+"px",t.style.top=l+"px",t.style.width=c+"px",t.style.height=u+"px";var f=[];a&&f.push("scaleX(-1)"),i&&f.push("scaleY(-1)"),o&&f.push("rotate(".concat(o,"deg)")),t.style.transformOrigin="center center",t.style.transform=f.join(" ");for(var h=0;h<r.nodes.length;h++){var A=r.nodes[h],d=void 0;A instanceof eB?d=C8(A):A instanceof qy?d=w8(A):A instanceof b8&&(d=hne(A)),t.appendChild(d)}return t}var hf={};function Ane(r,t){if(hf[r])for(var e=0;e<hf[r].length;e++)hf[r][e](t)}function dne(r,t){hf[r]&&(hf[r]=hf[r].filter(function(e){return e!==t}))}function utt(r){var t=document.createElement("div"),e=r.extend,n=r.offset,i=r.flipV,a=r.flipH,o=r.rotate,s=r.options,l=n.x,c=n.y,u=e.w,f=e.h;t.className="chart-node",t.style.position="absolute",t.style.left=l+"px",t.style.top=c+"px",t.style.width=u+"px",t.style.height=f+"px";var h=[];return a&&h.push("scaleX(-1)"),i&&h.push("scaleY(-1)"),o&&h.push("rotate(".concat(o,"deg)")),t.style.transformOrigin="center center",t.style.transform=h.join(" "),setTimeout(function(){var A,d,g=VPe(t,null,{renderer:"svg"});g.setOption(s),d=function(){g&&g.dispose(),g&&(g=null)},hf[A="destroy"]||(hf[A]=[]),hf[A].push(d)},0),t}var ftt=(function(){function r(t,e,n){this.scale=1,this.wrapper=t,this.pptx=e,this.options=n,this._calcScaleAndRenderPort()}return r.prototype._calcScaleAndRenderPort=function(){var t=this.options.viewPort.width/this.pptx.width;this.scale=t;var e=this.options.viewPort.width,n=this.pptx.height*this.scale;this.renderPort={width:e,height:n,left:0,top:0}},r.prototype.renderSlide=function(t){var e=this.pptx.slides[t],n=document.createElement("div");n.classList.add("pptx-preview-slide-wrapper"),n.style.setProperty("width",this.renderPort.width+"px"),n.style.setProperty("height",this.renderPort.height+"px"),n.style.setProperty("position","relative"),n.style.margin="0 auto 10px",n.style.setProperty("background","#fff"),n.style.setProperty("overflow","hidden"),this._renderBackground(e,n),this._renderSlideMaster(e.slideMaster,n),this._renderSlideLayout(e.slideLayout,n),this._renderSlide(e,n),this.wrapper.append(n)},r.prototype._renderSlideMaster=function(t,e){var n=document.createElement("div");n.classList.add("slide-master-wrapper"),n.style.setProperty("position","absolute"),n.style.setProperty("left","0"),n.style.setProperty("top","0"),n.style.setProperty("width",this.pptx.width+"px"),n.style.setProperty("height",this.pptx.height+"px"),n.style.setProperty("transform","scale(".concat(this.scale,")")),n.style.setProperty("transform-origin","0 0");var i=Kv([],t.nodes).filter(function(s){return s.userDrawn});i.sort(function(s,l){return s.order>l.order?1:-1});for(var a=0;a<i.length;a++){var o=this._renderNode(i[a]);o&&n.append(o)}e.append(n)},r.prototype._renderSlideLayout=function(t,e){var n=document.createElement("div");n.classList.add("slide-layout-wrapper"),n.style.setProperty("position","absolute"),n.style.setProperty("left","0"),n.style.setProperty("top","0"),n.style.setProperty("width",this.pptx.width+"px"),n.style.setProperty("height",this.pptx.height+"px"),n.style.setProperty("transform","scale(".concat(this.scale,")")),n.style.setProperty("transform-origin","0 0");var i=Kv([],t.nodes).filter(function(s){return s.userDrawn});i.sort(function(s,l){return s.order>l.order?1:-1});for(var a=0;a<i.length;a++){var o=this._renderNode(i[a]);o&&n.append(o)}e.append(n)},r.prototype._renderSlide=function(t,e){var n=document.createElement("div");n.classList.add("slide-wrapper"),n.style.setProperty("position","absolute"),n.style.setProperty("left","0"),n.style.setProperty("top","0"),n.style.setProperty("width",this.pptx.width+"px"),n.style.setProperty("height",this.pptx.height+"px"),n.style.setProperty("transform","scale(".concat(this.scale,")")),n.style.setProperty("transform-origin","0 0");var i=Kv([],t.nodes);i.sort(function(s,l){return s.order>l.order?1:-1});for(var a=0;a<i.length;a++){var o=this._renderNode(i[a]);o&&n.append(o)}e.append(n)},r.prototype._renderNode=function(t){return t instanceof eB?C8(t):t instanceof qy?w8(t):t instanceof b8?hne(t):t instanceof ene?(function(e){var n=document.createElement("div"),i=e.extend,a=e.offset,o=e.flipV,s=e.flipH,l=e.rotate,c=a.x,u=a.y,f=i.w,h=i.h;n.className="smart-chart-diagram",n.style.position="absolute",n.style.left=c+"px",n.style.top=u+"px",n.style.width=f+"px",n.style.height=h+"px";var A=[];s&&A.push("scaleX(-1)"),o&&A.push("scaleY(-1)"),l&&A.push("rotate(".concat(l,"deg)")),n.style.transformOrigin="center center",n.style.transform=A.join(" ");for(var d=0;d<e.nodes.length;d++){var g=e.nodes[d],y=void 0;g instanceof eB?y=C8(g):g instanceof qy&&(y=w8(g)),n.appendChild(y)}return n})(t):t instanceof $re?(function(e){var n=e.extend,i=e.offset,a=e.tr,o=e.tableGrid.gridCol,s=document.createElement("div");s.style.position="absolute",s.style.left=i.x+"px",s.style.top=i.y+"px",s.style.width=n.w+"px",s.style.height=n.h+"px";var l=document.createElement("table");return l.style.borderCollapse="collapse",a.forEach(function(c){var u=c.props,f=c.td,h=u.height,A=document.createElement("tr");A.style.height=h+"px",f.forEach(function(d,g){var y,v,p=d.props,m=d.inheritTcStyle,b=d.inheritTcTxStyle,C=d.paragraphs;if(!p.vMerge&&!p.hMerge){var w=document.createElement("td");w.style.width=(((y=o[g])===null||y===void 0?void 0:y.width)||30)+"px",p.rowSpan&&w.setAttribute("rowspan",p.rowSpan+""),p.gridSpan&&w.setAttribute("colspan",p.gridSpan+"");var B=p.background||m.background;B&&(w.style.background=Tn(B));var k=jt(jt({},m.border),p.border),Q=function(S){return S?S.toLowerCase().includes("dash")?"dashed":S.toLowerCase().includes("dot")?"dotted":"solid":"solid"};k.bottom&&(w.style.borderBottom="".concat(k.bottom.width,"px ").concat(Q(k.bottom.type)," ").concat(Tn(k.bottom.color))),k.top&&(w.style.borderTop="".concat(k.top.width,"px ").concat(Q(k.top.type)," ").concat(Tn(k.top.color))),k.left&&(w.style.borderLeft="".concat(k.left.width,"px ").concat(Q(k.left.type)," ").concat(Tn(k.left.color))),k.right&&(w.style.borderRight="".concat(k.right.width,"px ").concat(Q(k.right.type)," ").concat(Tn(k.right.color)));var x=document.createElement("div");switch(x.className="text-wrapper",x.style.boxSizing="border-box",x.style.width="100%",x.style.height="100%",x.style.overflow="hidden",x.style.display="flex",x.style.flexDirection="column",p.anchor){case"b":x.style.justifyContent="flex-end";break;case"t":x.style.justifyContent="flex-start";break;case"ctr":x.style.justifyContent="center"}var L=[p.hasOwnProperty("marT")?Math.floor(p.marT)+"px":"3px",p.hasOwnProperty("marR")?Math.floor(p.marR-1)+"px":"5px",p.hasOwnProperty("marB")?Math.floor(p.marB)+"px":"3px",p.hasOwnProperty("marL")?Math.floor(p.marL-1)+"px":"5px"];x.style.padding=L.join(" ");for(var O=jt({},p),W={},M=C.map(function(S){return jt(jt({},S),{props:jt({align:"l"},S.props),inheritRProps:jt(jt({},S.inheritRProps),b)})}),J=0,G=function(S){var Y=jt(jt({},S.inheritProps),S.props),P=void 0;if(Y.buAutoNum){var U=Y.level?+Y.level:0;W[U]||(W[U]=0),!((v=S.rows)===null||v===void 0)&&v.length&&W[U]++,Object.keys(W).forEach(function(F){+F>U&&(W[F]=0)}),P=tB(S,W[U],{isFirst:J===0,isLast:C.length-1===J,bodyProps:O})}else P=tB(S,0,{isFirst:J===0,isLast:C.length-1===J,bodyProps:O});x.appendChild(P),J++},N=0,_=M;N<_.length;N++)G(_[N]);w.append(x),A.append(w)}}),l.append(A)}),s.append(l),s})(t):t instanceof tne?utt(t):void 0},r.prototype._renderBackground=function(t,e){var n,i=document.createElement("div");i.classList.add("slide-background"),i.style.setProperty("position","absolute"),i.style.setProperty("left","0"),i.style.setProperty("top","0"),i.style.setProperty("width","100%"),i.style.setProperty("height","100%");var a=t.background;if(a.type==="none"&&(a=t.slideLayout.background),a.type==="none"&&(a=t.slideMaster.background),a.type==="blipFill"){var o=a,s=o.base64,l=o.alpha,c=o.fillRect,u=c===void 0?{}:c,f=u.b,h=f===void 0?0:f,A=u.t,d=A===void 0?0:A,g=u.l,y=g===void 0?0:g,v=u.r,p=v===void 0?0:v,m=this.renderPort.width*y,b=this.renderPort.height*d,C=this.renderPort.width*(1-y-p),w=this.renderPort.height*(1-d-h);i.style.backgroundImage="url(".concat(s,")"),i.style.backgroundSize="".concat(C," ").concat(w),i.style.backgroundPosition="".concat(m,"px ").concat(b,"px"),l&&(i.style.opacity=l+""),i.style.backgroundRepeat="no-repeat"}else if(a.type==="solidFill"){var B=Tn(t.background)||Tn(t.slideLayout.background)||Tn(t.slideMaster.background);B?i.style.setProperty("background",B):i.style.setProperty("background","#fff")}else if(a.type==="gradFill")if(a.path==="circle"){var k=a.tileRect||{},Q=(h=k.b,d=k.t,y=k.l,"radial-gradient(circle at ");(p=k.r)===-1?Q+=" right":y===-1&&(Q+=" left"),d===-1?Q+=" top":h===-1&&(Q+=" bottom"),h||d||y||p||(Q+=" center"),Q+=",",Q+=a.gsList.map(function(L){return"".concat(Tn(L.color)," ").concat(100*L.pos+"%")}).join(","),i.style.setProperty("background",Q)}else{var x=((n=a?.lin)===null||n===void 0?void 0:n.ang)||0;Q="linear-gradient(".concat(x+90,"deg,"),Q+=a.gsList.map(function(L){return"".concat(Tn(L.color)," ").concat(100*L.pos+"%")}).join(","),i.style.setProperty("background",Q)}e.append(i)},r})(),htt=(function(){function r(t,e){this.dom=t,this.options=e,this._renderWrapper()}return r.prototype._renderWrapper=function(){var t=document.createElement("div");t.classList.add("pptx-preview-wrapper"),t.style.setProperty("background","#000"),t.style.setProperty("width",this.options.width+"px"),this.options.height&&t.style.setProperty("height",this.options.height+"px"),t.style.setProperty("position","relative"),t.style.setProperty("margin","0 auto"),this.options.height&&t.style.setProperty("overflow-y","auto"),this.dom.append(t),this.wrapper=t},r.prototype.preview=function(t){var e=this;return Ane("destroy"),dne("destroy"),new Promise(function(n,i){e.wrapper.innerHTML="";var a=new stt;a.load(t).then(function(){try{for(var o=new ftt(e.wrapper,a,{viewPort:{width:e.options.width,height:e.options.height}}),s=0;s<a.slides.length;s++)o.renderSlide(s);n(a)}catch(l){i(l)}}).catch(function(o){i(o)})})},r.prototype.destroy=function(){Ane("destroy"),dne("destroy")},r})();function Att(r,t){return new htt(r,t)}const dtt=(r,t)=>{const e=r.__vccOpts||r;for(const[n,i]of t)e[n]=i;return e},gtt=H.defineComponent({name:"VueOfficePptx",props:{src:[String,ArrayBuffer,Blob],requestOptions:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["rendered","error"],setup(r,{emit:t}){let e=null;const n=H.ref(null);function i(){let s=n.value,l=r.options.width||s.getBoundingClientRect().width||960,c=r.options.height||s.getBoundingClientRect().height||540;e=Att(s,{width:l,height:c})}function a(s){if(typeof s=="string")return fetch(s,r.requestOptions).then(l=>l.arrayBuffer());if(s instanceof ArrayBuffer)return Promise.resolve(s)}function o(){r.src&&a(r.src).then(s=>{e.preview(s).then(l=>{t("rendered",l)}).catch(l=>{t("error",l)})}).catch(s=>{t("error",s)})}return H.onMounted(()=>{i(),o()}),H.watch(()=>r.src,()=>{o()}),{rootRef:n}}}),ptt={class:"vue-office-pptx"},vtt={class:"vue-office-pptx-main",ref:"rootRef",style:{width:"100%",height:"100%"}};function ytt(r,t,e,n,i,a){return H.openBlock(),H.createElementBlock("div",ptt,[H.createElementVNode("div",vtt,null,512)])}const rB=dtt(gtt,[["render",ytt]]);rB.install=function(r){r.component(rB.name,rB)};const mtt=Object.freeze(Object.defineProperty({__proto__:null,default:rB},Symbol.toStringTag,{value:"Module"}));Ur.HbLibAnchor=gT,Ur.HbLibCard=dT,Ur.HbLibCopy=cB,Ur.HbLibDetailBox=pT,Ur.HbLibFilePreview=ET,Ur.HbLibFooterBar=vT,Ur.HbLibFormItemFilterModal=VM,Ur.HbLibFormTooltipSelect=uT,Ur.HbLibFuncCompDrag=bT,Ur.HbLibIcon=fB,Ur.HbLibImportFile=fT,Ur.HbLibListBtnsAct=qM,Ur.HbLibListForm=zM,Ur.HbLibListMultiSelect=$M,Ur.HbLibListPageAct=KM,Ur.HbLibListPageContainer=ZM,Ur.HbLibListTable=lT,Ur.HbLibLoading=wT,Ur.HbLibLogModal=hT,Ur.HbLibModal=yT,Ur.HbLibMutilpleSelectModal=eT,Ur.HbLibPageHeader=IT,Ur.HbLibSort=CT,Ur.HbLibTableAct=tT,Ur.HbLibTableColumnSet=cT,Ur.HbLibUnDetailBox=mT,Ur.HbUiConfig=AT,Ur.install=goe,Ur.locales=doe,Ur.useCalTableHeight=XM,Ur.useCalTableWidth=aB,Ur.useFilePreview=aoe,Ur.useIconfont=QT,Ur.useListFormItem=ooe,Ur.useModalDrag=soe,Object.defineProperty(Ur,Symbol.toStringTag,{value:"Module"})}));
345
+ >/= `,u=0;return XE=1,Xre((function f(){for(var h=[];r[u];){if(r.charCodeAt(u)==t){if(r.charCodeAt(u+1)===i)return u=r.indexOf(">",u),h;if(r.charCodeAt(u+1)===a){if(r.charCodeAt(u+2)==n){for(;r.charCodeAt(u)!==e||r.charCodeAt(u-1)!=n||r.charCodeAt(u-2)!=n||u==-1;)u=r.indexOf(">",u+1);u===-1&&(u=r.length)}else for(u+=2;r.charCodeAt(u)!==e;u++);u++;continue}if(r.charCodeAt(u+1)===l){u=r.indexOf(">",u),u++;continue}for(var A=++u;c.indexOf(r[u])===-1;u++);for(var d=r.slice(A,u),g=!1,y={};r.charCodeAt(u)!==e;u++){var v=r.charCodeAt(u);if(v>64&&v<91||v>96&&v<123){for(A=u;c.indexOf(r[u])===-1;u++);for(var p=r.slice(A,u),m=r.charCodeAt(u);m!==o&&m!==s;)u++,m=r.charCodeAt(u);var b=r[u],C=++u;u=r.indexOf(b,C);var w=r.slice(C,u);g||(y={},g=!0),y[p]=w}}var B=[];r.charCodeAt(u-1)!==i&&(u++,B=f()),h.push({children:B,tagName:d,attrs:y})}else{var k=u;(u=r.indexOf("<",u)-1)===-2&&(u=r.length);var Q=r.slice(k,u+1);Q.length>0&&h.push(Q)}u++}return h})())}function Xre(r){var t={};if(r===void 0)return{};if(r.length===1&&typeof r[0]=="string")return r[0];for(var e in r.forEach(function(n){if(t[n.tagName]||(t[n.tagName]=[]),typeof n=="object"){var i=Xre(n.children);typeof i=="object"&&(n.attrs&&(i.attrs=n.attrs),i.attrs===void 0?i.attrs={order:XE}:i.attrs.order=XE),XE++,t[n.tagName].push(i)}}),t)t[e].length==1&&(t[e]=t[e][0]);return t}function kn(r){return r/12700}function ZE(r){return r/100}function $E(r){return r/6e4}function $h(r){return r/1e5}function p8(r){var t=Math.ceil(r/26),e=(r%26||26)-1+65;return String.fromCharCode(e).repeat(t)}function Ji(r,t,e){var n={type:"solidFill"};if(r["a:srgbClr"])n.color="#"+r["a:srgbClr"].attrs.val;else if(r["a:schemeClr"]){var i=r["a:schemeClr"].attrs.val;e&&(i=e.getColorThemeName(i)),n.color=t.getColor(i)}else if(r["a:sysClr"])n.color="#"+r["a:sysClr"].attrs.lastClr;else if(r["a:prstClr"]){var a=Pe.get(r["a:prstClr"],["attrs","val"]);n.color=(function(h){var A,d=["white","AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquaMarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenRod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","RebeccaPurple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown","SeaGreen","SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","SlateGrey","Snow","SpringGreen","SteelBlue","Tan","Teal","Thistle","Tomato","Turquoise","Violet","Wheat","White","WhiteSmoke","Yellow","YellowGreen"],g=["ffffff","f0f8ff","faebd7","00ffff","7fffd4","f0ffff","f5f5dc","ffe4c4","000000","ffebcd","0000ff","8a2be2","a52a2a","deb887","5f9ea0","7fff00","d2691e","ff7f50","6495ed","fff8dc","dc143c","00ffff","00008b","008b8b","b8860b","a9a9a9","a9a9a9","006400","bdb76b","8b008b","556b2f","ff8c00","9932cc","8b0000","e9967a","8fbc8f","483d8b","2f4f4f","2f4f4f","00ced1","9400d3","ff1493","00bfff","696969","696969","1e90ff","b22222","fffaf0","228b22","ff00ff","dcdcdc","f8f8ff","ffd700","daa520","808080","808080","008000","adff2f","f0fff0","ff69b4","cd5c5c","4b0082","fffff0","f0e68c","e6e6fa","fff0f5","7cfc00","fffacd","add8e6","f08080","e0ffff","fafad2","d3d3d3","d3d3d3","90ee90","ffb6c1","ffa07a","20b2aa","87cefa","778899","778899","b0c4de","ffffe0","00ff00","32cd32","faf0e6","ff00ff","800000","66cdaa","0000cd","ba55d3","9370db","3cb371","7b68ee","00fa9a","48d1cc","c71585","191970","f5fffa","ffe4e1","ffe4b5","ffdead","000080","fdf5e6","808000","6b8e23","ffa500","ff4500","da70d6","eee8aa","98fb98","afeeee","db7093","ffefd5","ffdab9","cd853f","ffc0cb","dda0dd","b0e0e6","800080","663399","ff0000","bc8f8f","4169e1","8b4513","fa8072","f4a460","2e8b57","fff5ee","a0522d","c0c0c0","87ceeb","6a5acd","708090","708090","fffafa","00ff7f","4682b4","d2b48c","008080","d8bfd8","ff6347","40e0d0","ee82ee","f5deb3","ffffff","f5f5f5","ffff00","9acd32"],y=d.indexOf(h);return y!=-1&&(A=g[y]),"#".concat(A||"000000")})(a)}var o=r["a:srgbClr"]||r["a:schemeClr"]||r["a:sysClr"],s=Pe.get(o,["a:alpha","attrs","val"],1e5);n.alpha=s/1e5;var l=Pe.get(o,["a:shade","attrs","val"]);l&&(n.shade=l/1e5);var c=Pe.get(o,["a:lumMod","attrs","val"]);c&&(n.lumMod=c/1e5);var u=Pe.get(o,["a:lumOff","attrs","val"]);u&&(n.lumOff=u/1e5);var f=Pe.get(o,["a:tint","attrs","val"]);return f&&(n.tint=f/1e5),n}function Vy(r,t,e){var n,i={type:"blipFill"},a=Pe.get(r,["a:blip","attrs","r:embed"]);if(a){var o=(n=e.rels[a])===null||n===void 0?void 0:n.target;o&&(i.base64=t.getMedia(o))}var s=Pe.get(r,["a:blip","a:alphaModFix","attrs","amt"]);s&&(i.alpha=s/1e5);var l=Pe.get(r,["a:stretch","a:fillRect","attrs"]);return l&&(i.fillRect={},l.b&&(i.fillRect.b=l.b/1e5),l.t&&(i.fillRect.t=l.t/1e5),l.r&&(i.fillRect.r=l.r/1e5),l.l&&(i.fillRect.l=l.l/1e5)),i}function zy(r,t,e){var n={type:"gradFill",tileRect:{},lin:{},gsList:[]};n.flip=r.attrs.flip,n.path=Pe.get(r,["a:path","attrs","path"])||"linear",n.rotWithShape=r.attrs.rotWithShape==="1",Pe.get(r,["a:lin","attrs","ang"])&&(n.lin.ang=$E(r["a:lin"].attrs.ang)),Pe.get(r,["a:lin","attrs","scaled"])&&(n.lin.scaled=r["a:lin"].attrs.scaled==="1");var i=Pe.get(r,["a:gsLst","a:gs"])||[];return n.gsList=i.map(function(a){return{color:Ji(a,t,e),pos:$h(a.attrs.pos)}}),Pe.get(r,["a:tileRect","attrs","l"])&&(n.tileRect.l=$h(r["a:tileRect"].attrs.l)),Pe.get(r,["a:tileRect","attrs","t"])&&(n.tileRect.t=$h(r["a:tileRect"].attrs.t)),Pe.get(r,["a:tileRect","attrs","r"])&&(n.tileRect.r=$h(r["a:tileRect"].attrs.r)),Pe.get(r,["a:tileRect","attrs","b"])&&(n.tileRect.b=$h(r["a:tileRect"].attrs.b)),n}function v8(r){return r<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function y8(r){return r<.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055}function Zre(r,t){var e=r[0],n=r[1],i=r[2],a=v8(e/255)*t,o=v8(n/255)*t,s=v8(i/255)*t;return[Math.round(255*y8(a)),Math.round(255*y8(o)),Math.round(255*y8(s))]}function m8(r,t,e){var n=r/255,i=t/255,a=e/255,o=Math.max(n,i,a),s=Math.min(n,i,a),l=o-s,c=0,u=(o+s)/2;return l===0?c=0:o===n?c=(i-a)/l%6:o===i?c=(a-n)/l+2:o===a&&(c=(n-i)/l+4),(c=Math.round(60*c))<0&&(c+=360),{h:c,s:l===0||u===0||u===1?0:l/(1-Math.abs(2*u-1)),l:u}}function I8(r,t,e){var n,i,a,o=(1-Math.abs(2*e-1))*t,s=o*(1-Math.abs(r/60%2-1)),l=e-o/2;return r<60?(n=o,i=s,a=0):r<120?(n=s,i=o,a=0):r<180?(n=0,i=o,a=s):r<240?(n=0,i=s,a=o):r<300?(n=s,i=0,a=o):(n=o,i=0,a=s),[n=Math.round(255*(n+l)),i=Math.round(255*(i+l)),a=Math.round(255*(a+l))]}function Tn(r,t){if(!r||r.type==="none")return"";if(r.type==="solidFill"&&/^#[\da-fA-F]{3,6}$/.test(r.color)){var e=parseInt(r.color.substr(1,2),16),n=parseInt(r.color.substr(3,2),16),i=parseInt(r.color.substr(5,2),16);if(r.shade){var a=Zre([e,n,i],r.shade);e=a[0],n=a[1],i=a[2]}if(r.lumMod){var o=(function(u,f,h,A){var d=m8(u,f,h),g=d.h,y=d.l*A;return y>=1&&(y=1),I8(g,d.s,y)})(e,n,i,r.lumMod);e=o[0],n=o[1],i=o[2]}if(r.lumOff&&(o=(function(u,f,h,A){var d=m8(u,f,h),g=d.h,y=A+d.l;return y>1&&(y=1),I8(g,d.s,y)})(e,n,i,r.lumOff),e=o[0],n=o[1],i=o[2]),r.tint||t!=null&&t.light){var s=(function(u,f,h,A){var d=m8(u,f,h),g=d.h,y=d.l;return A>=1&&(A=1),I8(g,d.s,y*A+(1-A))})(e,n,i,r.tint||t?.light);e=s[0],n=s[1],i=s[2]}if(t!=null&&t.dark){var l=Zre([e,n,i],t?.dark);e=l[0],n=l[1],i=l[2]}var c=r.alpha;return"rgba(".concat(e,",").concat(n,",").concat(i,",").concat(c,")")}}var Ky=(function(){function r(t,e,n){this.uuid=$Re(),this.offset={x:0,y:0},this.extend={w:0,h:0},this.rotate=0,this.order=0,this.flipV=!1,this.flipH=!1,this.source=t,this.ctx=e,this.group=n;var i=Pe.get(t,["p:nvSpPr","p:nvPr"]);if(i){var a=Pe.get(i,"p:ph");a&&a.attrs&&(this.idx=a.attrs.idx,this.type=a.attrs.type),Pe.get(i,["attrs","userDrawn"])&&(this.userDrawn=Pe.get(i,["attrs","userDrawn"])==="1")}if(this.order=Pe.get(t,"attrs.order",0),this.source["p:spPr"])(o=this.getXfrm())&&(this.offset={x:Math.round(kn(parseInt(o["a:off"].attrs.x))),y:Math.round(kn(parseInt(o["a:off"].attrs.y)))},this.extend={w:Math.round(kn(parseInt(o["a:ext"].attrs.cx))),h:Math.round(kn(parseInt(o["a:ext"].attrs.cy||"0")))},this.rotate=$E(parseInt(Pe.get(o,"attrs.rot",0))),this.flipV=Pe.get(o,"attrs.flipV")==="1",this.flipH=Pe.get(o,"attrs.flipH")==="1");else if(this.source["p:xfrm"]){var o=this.source["p:xfrm"];this.offset={x:Math.round(kn(parseInt(o["a:off"].attrs.x))),y:Math.round(kn(parseInt(o["a:off"].attrs.y)))},this.extend={w:Math.round(kn(parseInt(o["a:ext"].attrs.cx))),h:Math.round(kn(parseInt(o["a:ext"].attrs.cy)))}}if(n){var s=n.extend,l=n.chExtend,c=n.chOffset,u=l.w===0?0:s.w/l.w,f=l.h===0?0:s.h/l.h;this.extend.w=this.extend.w*u,this.extend.h=this.extend.h*f,this.offset.x=(this.offset.x-c.x)*u,this.offset.y=(this.offset.y-c.y)*f}}return Object.defineProperty(r.prototype,"theme",{get:function(){return(this.ctx.sliderMaster||this.ctx).theme},enumerable:!1,configurable:!0}),r.prototype.getColorThemeName=function(t){return this.ctx.getColorThemeName(t)},r.prototype.getXfrm=function(){var t=this.source["p:spPr"]["a:xfrm"];return t||(this.idx?t=this.ctx.getNodeInheritAttrsByIdx(this.idx,["p:spPr","a:xfrm"]):this.type&&(t=this.ctx.getNodeInheritAttrsByType(this.type,["p:spPr","a:xfrm"]))),t},r})(),rtt=(function(){function r(t,e){this.props={},this.inheritProps={},this.source=t,this.node=e,this._getInheritBodyProps(),this._parseBodyProps(),this._parseLstStyle(),this._parseText()}return r.prototype._getInheritBodyProps=function(){var t,e=this.node.ctx,n=this.node.type,i=this.node.idx;if(n||i)switch(e.slideType){case"slideMaster":break;case"slideLayout":(t=n?e.slideMaster.getNodeByType(n):e.slideMaster.getNodeByIdx(i))&&(this.inheritProps=Pe.get(t,["textBody","props"])||{});break;case"slide":(t=n?e.slideLayout.slideMaster.getNodeByType(n):e.slideLayout.slideMaster.getNodeByIdx(i))&&Object.assign(this.inheritProps,Pe.get(t,["textBody","props"])||{}),(t=n?e.slideLayout.getNodeByType(n):e.slideLayout.getNodeByIdx(i))&&Object.assign(this.inheritProps,Pe.get(t,["textBody","props"])||{})}},r.prototype._parseBodyProps=function(){var t=this,e=Pe.get(this.source,["a:bodyPr","attrs"])||{};Object.keys(e).forEach(function(o){switch(o){case"anchor":t.props.anchor=e[o];break;case"rtlCol":t.props.rtlCol=e[o]==="1";break;case"lIns":case"rIns":case"tIns":case"bIns":t.props[o]=kn(parseInt(e[o]));break;case"order":break;default:t.props[o]=e[o]}});var n=Pe.get(this.source,["a:bodyPr","a:normAutofit","attrs"]);if(n){this.props.normAutofit={};var i=n.fontScale;i&&(this.props.normAutofit.fontScale=$h(parseInt(i)));var a=n.lnSpcReduction;a&&(this.props.normAutofit.lnSpcReduction=$h(parseInt(a)))}},r.prototype._parseLstStyle=function(){var t=this,e={},n=Pe.get(this.source,"a:lstStyle")||{};Object.keys(n).forEach(function(i){if(i.startsWith("a:")&&i.endsWith("pPr")){var a=i.substr(2,i.length-5);e[a]={props:t._formatPPr(n[i])};var o=Pe.get(n[i],["a:defRPr"]);e[a].defRPr=t._formatRPr(o)}}),this.lstStyle=e},r.prototype._parseText=function(){var t=this,e=Pe.get(this.source,["a:p"])||[];Array.isArray(e)||(e=[e]),this.paragraphs=e.map(function(n){return t._parseParagraph(n)})},r.prototype._parseParagraph=function(t){var e=this,n={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},i=Pe.get(t,["a:pPr"])||{};n.props=this._formatPPr(i);var a=Pe.get(t,["a:endParaRPr"]);n.endParaRProps=this._formatRPr(a);var o=Pe.get(t,["a:r"])||[];Array.isArray(o)||(o=[o]);var s=Pe.get(t,["a:br"])||[];return Array.isArray(s)||(s=[s]),(o=o.concat(s.map(function(l){return jt({isBr:!0},l)}))).sort(function(l,c){return Pe.get(l,["attrs","order"])-Pe.get(c,["attrs","order"])}),n.rows=o.map(function(l){return e._parseRow(l)}),n.inheritProps=this._getInheritPProps(n.props.level),n.inheritRProps=this._getInheritRProps(n.props.level),n},r.prototype._getInheritPProps=function(t){t===void 0&&(t="0");var e,n={},i=this.node.ctx,a=this.node.type,o=this.node.idx;switch(i.slideType){case"slideMaster":this.node.isTextBox?Object.assign(n,Pe.get(i.defaultTextStyle,["lvl".concat(t?+t+1:1),"props"])||{}):Object.assign(n,Pe.get(i,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"props"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(n,Pe.get(i.slideMaster.defaultTextStyle,["lvl".concat(t?+t+1:1),"props"])||{}):Object.assign(n,Pe.get(i.slideMaster,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"props"])||{}),(a||o)&&(e=a?i.slideMaster.getNodeByType(a):i.slideMaster.getNodeByIdx(o))&&Object.assign(n,Pe.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"props"])||{});break;case"slide":this.node.isTextBox?Object.assign(n,Pe.get(i.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(t?+t+1:1),"props"])||{}):Object.assign(n,Pe.get(i.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"props"])||{}),(a||o)&&(["subTitle","ctrTitle","title"].includes(a)&&Object.assign(n,Pe.get(i.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(t?+t+1:1),"props"])||{}),(e=a?i.slideLayout.slideMaster.getNodeByType(a):i.slideLayout.slideMaster.getNodeByIdx(o))&&Object.assign(n,Pe.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"props"])||{}),(e=a?i.slideLayout.getNodeByType(a):i.slideLayout.getNodeByIdx(o))&&Object.assign(n,Pe.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"props"])||{}))}return n},r.prototype._getInheritRProps=function(t){t===void 0&&(t="0");var e,n={},i=this.node.ctx,a=this.node.type,o=this.node.idx;switch(i.slideType){case"slideMaster":this.node.isTextBox?Object.assign(n,Pe.get(i.defaultTextStyle,["lvl".concat(t?+t+1:1),"defRPr"])||{}):Object.assign(n,Pe.get(i,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"defRPr"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(n,Pe.get(i.slideMaster.defaultTextStyle,["lvl".concat(t?+t+1:1),"defRPr"])||{}):Object.assign(n,Pe.get(i.slideMaster,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}),(a||o)&&(e=a?i.slideMaster.getNodeByType(a):i.slideMaster.getNodeByIdx(o))&&(n=Pe.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"defRPr"])||{});break;case"slide":this.node.isTextBox?Object.assign(n,Pe.get(i.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(t?+t+1:1),"defRPr"])||{}):Object.assign(n,Pe.get(i.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}),(a||o)&&(["subTitle","ctrTitle","title"].includes(a)&&Object.assign(n,Pe.get(i.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}),(e=a?i.slideLayout.slideMaster.getNodeByType(a):i.slideLayout.slideMaster.getNodeByIdx(o))&&Object.assign(n,Pe.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}),(e=a?i.slideLayout.getNodeByType(a):i.slideLayout.getNodeByIdx(o))&&Object.assign(n,Pe.get(e,["textBody","lstStyle","lvl".concat(t?+t+1:1),"defRPr"])||{}))}var s=Pe.get(this.node.source,["p:style","a:fontRef"]);return Pe.get(s,"a:schemeClr")&&(n.color=Ji(s,this.node.theme,this.node)),Pe.get(this.lstStyle,["lvl".concat(t?+t+1:1),"defRPr"])&&Object.assign(n,Pe.get(this.lstStyle,["lvl".concat(t?+t+1:1),"defRPr"])),n},r.prototype._formatPPr=function(t){var e={},n=Pe.get(t,"attrs")||{};return Object.keys(n).forEach(function(i){switch(i){case"algn":e.align=n[i];break;case"marL":e.marginLeft=kn(parseInt(n[i]));break;case"indent":e.indent=kn(parseInt(n[i]));break;case"lvl":e.level=n[i]}}),Pe.get(t,["a:lnSpc","a:spcPct","attrs","val"])&&(e.lineHeight=parseInt(t["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),Pe.get(t,["a:buAutoNum","attrs","type"])&&(e.buAutoNum=t["a:buAutoNum"].attrs.type),Pe.get(t,["a:buChar","attrs","char"])&&(e.buChar=t["a:buChar"].attrs.char),Pe.get(t,["a:spcBef","a:spcPts","attrs","val"])&&(e.spaceBefore=ZE(parseInt(t["a:spcBef"]["a:spcPts"].attrs.val))),Pe.get(t,["a:spcAft","a:spcPts","attrs","val"])&&(e.spaceAfter=ZE(parseInt(t["a:spcAft"]["a:spcPts"].attrs.val))),e},r.prototype._parseRow=function(t){if(t.isBr)return{isBr:!0};var e={props:{},text:""},n=Pe.get(t,["a:rPr"])||{};return e.props=this._formatRPr(n),e.text=Pe.get(t,"a:t")||"",e},r.prototype._formatRPr=function(t){var e={},n=Pe.get(t,"attrs")||{};Object.keys(n).forEach(function(o){switch(o){case"sz":e.size=parseInt(n[o])/100;break;case"b":e.bold=n[o]==="1";break;case"i":e.italic=n[o]==="1";break;case"u":e.underline=n[o];break;case"strike":e.strike=n[o];break;case"order":case"dirty":break;default:e[o]=n[o]}});var i=Pe.get(t,"a:solidFill");i&&(e.color=Ji(i,this.node.theme,this.node));var a=Pe.get(t,"a:highlight");return a&&(e.background=Ji(a,this.node.theme,this.node)),e.typeface=Pe.get(t,["a:ea","attrs","typeface"]),e},r})();function J0(r,t,e){var n={};if(!Pe.get(r,"a:noFill")){Pe.get(r,"attrs.w")&&(n.width=kn(parseInt(Pe.get(r,"attrs.w"))));var i=Pe.get(r,"a:solidFill");i&&(n.color=Ji(i,t,e));var a=Pe.get(r,"a:prstDash");if(a&&(n.type=a.attrs.val),Pe.get(r,["a:miter"])&&(n.lineJoin="miter"),Pe.get(r,["a:bevel"])&&(n.lineJoin="bevel"),Pe.get(r,["a:round"])&&(n.lineJoin="round"),Pe.get(r,["a:miter","attrs","lim"])&&(n.miterLim=kn(parseInt(Pe.get(r,["a:miter","attrs","lim"])))),Pe.get(r,["a:headEnd"])){var o=Pe.get(r,["a:headEnd","attrs"]);n.headEnd={type:o.type,len:o.len,w:o.w}}if(Pe.get(r,["a:tailEnd"])){var s=Pe.get(r,["a:tailEnd","attrs"]);n.tailEnd={type:s.type,len:s.len,w:s.w}}return n}}var qy=(function(r){function t(e,n,i,a){var o=r.call(this,e,i,a)||this;return o.border={},o.prstGeom={},o.isTextBox=!1,o.pptx=n,o._parseShape(),o._parIsTextBox(),o._parsePrstGeom(),o._parseBackground(),o._parseBorder(),o._parseTxt(),o}return zv(t,r),t.prototype._parseShape=function(){if(this.shape=Pe.get(this.source,["p:spPr","a:prstGeom","attrs","prst"]),!this.shape&&Pe.get(this.source,["p:spPr","a:custGeom"])){this.shape="customGeom";var e=Pe.get(this.source,["p:spPr","a:custGeom","a:pathLst","a:path"]),n=[],i=[],a=function(s){switch(s){case"a:moveTo":case"a:cubicBezTo":case"a:lnTo":i=Array.isArray(e[s])?e[s]:[e[s]],n=n.concat(i.map(function(l){return{order:l.attrs.order,type:s.split(":")[1],points:(Array.isArray(l["a:pt"])?l["a:pt"]:[l["a:pt"]]).map(function(c){return[kn(parseInt(Pe.get(c,["attrs","x"]))),kn(parseInt(Pe.get(c,["attrs","y"])))]})}}));break;case"a:close":i=Array.isArray(e[s])?e[s]:[e[s]],n=n.concat(i.map(function(l){return{order:l.attrs.order,type:s.split(":")[1]}}))}};for(var o in e)a(o);n.sort(function(s,l){return s.order-l.order}),this.prstGeom.pathList=n,Pe.get(e,["attrs","w"])&&(this.prstGeom.w=kn(parseInt(Pe.get(e,["attrs","w"])))),Pe.get(e,["attrs","h"])&&(this.prstGeom.h=kn(parseInt(Pe.get(e,["attrs","h"]))))}},t.prototype._parIsTextBox=function(){this.isTextBox=Pe.get(this.source,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])==="1"},t.prototype._parsePrstGeom=function(){var e=this,n=Pe.get(this.source,["p:spPr","a:prstGeom"]),i=Pe.get(n,["a:avLst","a:gd"]);i&&(Array.isArray(i)||(i=[i]),this.prstGeom.gd=i.map(function(a){var o=["pie","chord","arc"].includes(e.shape)||["blockArc"].includes(e.shape)&&["adj1","adj2"].includes(a.attrs.name)?$E(parseInt(a.attrs.fmla.split(" ")[1])):$h(parseInt(a.attrs.fmla.split(" ")[1]));return{name:a.attrs.name,fmla:o}}))},t.prototype._parseBackground=function(){if(!Pe.get(this.source,["p:spPr","a:noFill"]))if(Pe.get(this.source,["p:spPr","a:grpFill"])&&this.group)this.background=this.group.getBackground();else{var e=Pe.get(this.source,["p:spPr","a:solidFill"]);if(e)this.background=Ji(e,this.theme,this);else{var n=Pe.get(this.source,["p:spPr","a:gradFill"]);if(n)this.background=zy(n,this.theme,this);else{var i=Pe.get(this.source,["p:spPr","a:blipFill"]);if(i)this.background=Vy(i,this.pptx,this.ctx);else{var a=Pe.get(this.source,["p:style","a:fillRef"]);a&&(this.background=Ji(a,this.theme,this))}}}}},t.prototype._parseBorder=function(){var e=Pe.get(this.source,["p:style","a:lnRef"]);if(e){var n=parseInt(e.attrs.idx),i=this.theme.getLineStyle(n);this.border=jt(jt({},i),this.border),this.border.color&&this.border.color.color||(this.border.color=Ji(e,this.theme,this))}var a=Pe.get(this.source,["p:spPr","a:ln"]);a&&Object.assign(this.border,J0(a,this.theme,this)),this.border.color&&this.border.color.color&&!this.border.width&&(this.border.width=t.defaultBorderWidth)},t.prototype._parseTxt=function(){this.textBody=new rtt(Pe.get(this.source,["p:txBody"]),this)},t.defaultBorderWidth=.75,t})(Ky),eB=(function(r){function t(e,n,i,a,o){var s,l,c=r.call(this,n,a,o)||this;c.userDrawn=!0,c.pptx=i,c.path=e;var u=Pe.get(c.source,["p:blipFill","a:srcRect"]);u&&(c.clip={},u.attrs.b&&(c.clip.b=parseInt(u.attrs.b)/1e5),u.attrs.t&&(c.clip.t=parseInt(u.attrs.t)/1e5),u.attrs.l&&(c.clip.l=parseInt(u.attrs.l)/1e5),u.attrs.r&&(c.clip.r=parseInt(u.attrs.r)/1e5));var f=Pe.get(n,["p:nvPicPr","p:nvPr","a:audioFile","attrs","r:link"]);if(f){var h=(s=c.ctx.rels[f])===null||s===void 0?void 0:s.target;c.audioFile=c.pptx.getMedia(h)}var A=Pe.get(n,["p:nvPicPr","p:nvPr","a:videoFile","attrs","r:link"]);if(A){var d=(l=c.ctx.rels[A])===null||l===void 0?void 0:l.target;c.videoFile=c.pptx.getMedia(d)}return c}return zv(t,r),Object.defineProperty(t.prototype,"base64",{get:function(){return this.pptx.getMedia(this.path)},enumerable:!1,configurable:!0}),t})(Ky),$re=(function(r){function t(e,n,i,a){var o=r.call(this,e,i,a)||this;return o.userDrawn=!0,o.props={tableStyleId:""},o.tableGrid={gridCol:[]},o.tr=[],o.tableStyles={},o.pptx=n,o._parseTableProps(),o._parseTableGrid(),o._parseTr(),o._parseInheritStyles(),o}return zv(t,r),Object.defineProperty(t.prototype,"slideMaster",{get:function(){return this.ctx.slideMaster||this.ctx},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),t.prototype._parseTableProps=function(){var e=Pe.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblPr"]);this.props.tableStyleId=Pe.get(e,"a:tableStyleId"),this.tableStyles=Pe.get(this.slideMaster.tableStyles,this.props.tableStyleId)||{},Pe.get(e,["attrs","bandCol"])==="1"&&(this.props.bandCol=!0),Pe.get(e,["attrs","bandRow"])==="1"&&(this.props.bandRow=!0),Pe.get(e,["attrs","firstCol"])==="1"&&(this.props.firstCol=!0),Pe.get(e,["attrs","firstRow"])==="1"&&(this.props.firstRow=!0),Pe.get(e,["attrs","lastCol"])==="1"&&(this.props.lastCol=!0),Pe.get(e,["attrs","lastRow"])==="1"&&(this.props.lastRow=!0)},t.prototype._parseTableGrid=function(){var e=Pe.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblGrid","a:gridCol"]);if(e)for(var n=0;n<e.length;n++){var i=Pe.get(e[n],["attrs","w"]);this.tableGrid.gridCol.push({width:kn(parseInt(i))})}},t.prototype._parseTr=function(){var e=[],n=Pe.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tr"]);Array.isArray(n)||(n=[n]);for(var i=0;i<n.length;i++){var a={props:{},td:[]},o=n[i];a.props.height=kn(parseInt(Pe.get(o,["attrs","h"])));var s=Pe.get(o,["a:tc"]);Array.isArray(s)||(s=[s]);for(var l=0;l<s.length;l++)a.td.push(this._parseTd(s[l]));e.push(a)}this.tr=e},t.prototype._parseTd=function(e){var n,i,a,o,s=this,l={props:{border:{}},paragraphs:[]},c=Pe.get(e,["a:tcPr","attrs"]);c!=null&&c.marB&&(l.props.marB=kn(parseInt(c?.marB))),c!=null&&c.marT&&(l.props.marT=kn(parseInt(c?.marT))),c!=null&&c.marL&&(l.props.marL=kn(parseInt(c?.marL))),c!=null&&c.marR&&(l.props.marR=kn(parseInt(c?.marR))),c!=null&&c.anchor&&(l.props.anchor=c?.anchor);var u=Pe.get(e,["a:tcPr"]);Pe.get(u,["a:lnR"])&&(l.props.border.right=J0(Pe.get(u,["a:lnR"]),this.theme,this.ctx)),Pe.get(u,["a:lnL"])&&(l.props.border.left=J0(Pe.get(u,["a:lnL"]),this.theme,this.ctx)),Pe.get(u,["a:lnT"])&&(l.props.border.top=J0(Pe.get(u,["a:lnT"]),this.theme,this.ctx)),Pe.get(u,["a:lnB"])&&(l.props.border.bottom=J0(Pe.get(u,["a:lnB"]),this.theme,this.ctx)),!((n=e?.attrs)===null||n===void 0)&&n.rowSpan&&(l.props.rowSpan=parseInt(e.attrs.rowSpan)),!((i=e?.attrs)===null||i===void 0)&&i.gridSpan&&(l.props.gridSpan=parseInt(e.attrs.gridSpan)),!((a=e?.attrs)===null||a===void 0)&&a.vMerge&&(l.props.vMerge=e.attrs.vMerge==="1"),!((o=e?.attrs)===null||o===void 0)&&o.hMerge&&(l.props.hMerge=e.attrs.hMerge==="1");var f=Pe.get(e,["a:tcPr","a:solidFill"]);f&&(l.props.background=Ji(f,this.theme,this.ctx));var h=Pe.get(e,["a:txBody"]),A=Pe.get(h,["a:p"]);return Array.isArray(A)||(A=[A]),l.paragraphs=A.map(function(d){return s._parseParagraph(d)}),l},t.prototype._parseParagraph=function(e){var n=this,i={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},a=Pe.get(e,["a:pPr"])||{};i.props=this._formatPPr(a);var o=Pe.get(e,["a:endParaRPr"]);i.endParaRProps=this._formatRPr(o);var s=Pe.get(e,["a:r"])||[];Array.isArray(s)||(s=[s]);var l=Pe.get(e,["a:br"])||[];return Array.isArray(l)||(l=[l]),(s=s.concat(l.map(function(c){return jt({isBr:!0},c)}))).sort(function(c,u){return Pe.get(c,["attrs","order"])-Pe.get(u,["attrs","order"])}),i.rows=s.map(function(c){return n._parseRow(c)}),i},t.prototype._parseRow=function(e){if(e.isBr)return{isBr:!0};var n={props:{},text:""},i=Pe.get(e,["a:rPr"])||{};return n.props=this._formatRPr(i),n.text=Pe.get(e,"a:t")||"",n},t.prototype._formatPPr=function(e){var n={},i=Pe.get(e,"attrs")||{};return Object.keys(i).forEach(function(a){a==="algn"&&(n.align=i[a])}),Pe.get(e,["a:lnSpc","a:spcPct","attrs","val"])&&(n.lineHeight=parseInt(e["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),Pe.get(e,["a:buAutoNum","attrs","type"])&&(n.buAutoNum=e["a:buAutoNum"].attrs.type),Pe.get(e,["a:buChar","attrs","char"])&&(n.buChar=e["a:buChar"].attrs.char),Pe.get(e,["a:spcBef","a:spcPts","attrs","val"])&&(n.spaceBefore=ZE(parseInt(e["a:spcBef"]["a:spcPts"].attrs.val))),Pe.get(e,["a:spcAft","a:spcPts","attrs","val"])&&(n.spaceAfter=ZE(parseInt(e["a:spcAft"]["a:spcPts"].attrs.val))),n},t.prototype._formatRPr=function(e){var n={},i=Pe.get(e,"attrs")||{};Object.keys(i).forEach(function(s){switch(s){case"sz":n.size=parseInt(i[s])/100;break;case"b":n.bold=i[s]==="1";break;case"i":n.italic=i[s]==="1";break;case"u":n.underline=i[s];break;case"strike":n.strike=i[s];break;case"order":case"dirty":break;default:n[s]=i[s]}});var a=Pe.get(e,"a:solidFill");a&&(n.color=Ji(a,this.theme,this.ctx));var o=Pe.get(e,"a:highlight");return o&&(n.background=Ji(o,this.theme,this.ctx)),n.typeface=Pe.get(e,["a:ea","attrs","typeface"]),n},t.prototype._isLastCol=function(e,n){var i,a;if(n===e.length-1)return!0;for(var o=n+1;o<e.length;o++)if(!(!((i=e[o].props)===null||i===void 0)&&i.hMerge)&&!(!((a=e[o].props)===null||a===void 0)&&a.vMerge))return!1;return!0},t.prototype._isBandRow=function(e){var n;return!((n=this.props)===null||n===void 0)&&n.firstRow?e%2==1:e%2==0},t.prototype._isBandCol=function(e){var n;return!((n=this.props)===null||n===void 0)&&n.firstCol?e%2==1:e%2==0},t.prototype._parseInheritStyles=function(){var e,n,i,a,o,s,l,c,u=this,f=(n=(e=this.tableStyles)===null||e===void 0?void 0:e.wholeTbl)===null||n===void 0?void 0:n.tcStyle,h=(a=(i=this.tableStyles)===null||i===void 0?void 0:i.wholeTbl)===null||a===void 0?void 0:a.tcTxStyle,A=(s=(o=this.slideMaster.defaultTextStyle)===null||o===void 0?void 0:o.lvl1)===null||s===void 0?void 0:s.props,d=(c=(l=this.slideMaster.defaultTextStyle)===null||l===void 0?void 0:l.lvl1)===null||c===void 0?void 0:c.defRPr;this.tr.forEach(function(g,y){g.td.forEach(function(v,p){var m,b,C,w,B,k,Q,x,L,O,W,M,J,G,N,_,S,Y,P,U,F,T,R,V,re,oe,fe,Ae,me,le,he,j,ae,ce,ie,K,te,Z,X,q,de,Ce,ne,be,De,ye,ve,_e,Oe,qe,Ne,$e,gt,Re,He,lt,ot=jt(jt({},A),f),Et=jt(jt({},d),h);u.props.firstRow&&y===0?(ot=jt(jt(jt({},ot),(b=(m=u.tableStyles)===null||m===void 0?void 0:m.firstRow)===null||b===void 0?void 0:b.tcStyle),{border:jt(jt({},ot?.border),(B=(w=(C=u.tableStyles)===null||C===void 0?void 0:C.firstRow)===null||w===void 0?void 0:w.tcStyle)===null||B===void 0?void 0:B.border)}),Et=jt(jt({},Et),(Q=(k=u.tableStyles)===null||k===void 0?void 0:k.firstRow)===null||Q===void 0?void 0:Q.tcTxStyle)):u.props.lastRow&&y===u.tr.length-1?(ot=jt(jt(jt({},ot),(L=(x=u.tableStyles)===null||x===void 0?void 0:x.lastRow)===null||L===void 0?void 0:L.tcStyle),{border:jt(jt({},ot?.border),(M=(W=(O=u.tableStyles)===null||O===void 0?void 0:O.lastRow)===null||W===void 0?void 0:W.tcStyle)===null||M===void 0?void 0:M.border)}),Et=jt(jt({},Et),(G=(J=u.tableStyles)===null||J===void 0?void 0:J.lastRow)===null||G===void 0?void 0:G.tcTxStyle)):u.props.firstCol&&p===0?(ot=jt(jt(jt({},ot),(_=(N=u.tableStyles)===null||N===void 0?void 0:N.firstCol)===null||_===void 0?void 0:_.tcStyle),{border:jt(jt({},ot?.border),(P=(Y=(S=u.tableStyles)===null||S===void 0?void 0:S.firstCol)===null||Y===void 0?void 0:Y.tcStyle)===null||P===void 0?void 0:P.border)}),Et=jt(jt({},Et),(F=(U=u.tableStyles)===null||U===void 0?void 0:U.firstCol)===null||F===void 0?void 0:F.tcTxStyle)):u.props.lastCol&&u._isLastCol(g.td,p)?(ot=jt(jt(jt({},ot),(R=(T=u.tableStyles)===null||T===void 0?void 0:T.lastCol)===null||R===void 0?void 0:R.tcStyle),{border:jt(jt({},ot?.border),(oe=(re=(V=u.tableStyles)===null||V===void 0?void 0:V.lastCol)===null||re===void 0?void 0:re.tcStyle)===null||oe===void 0?void 0:oe.border)}),Et=jt(jt({},Et),(Ae=(fe=u.tableStyles)===null||fe===void 0?void 0:fe.lastCol)===null||Ae===void 0?void 0:Ae.tcTxStyle)):(u.props.bandRow&&(u._isBandRow(y)?(ot=jt(jt(jt({},ot),(le=(me=u.tableStyles)===null||me===void 0?void 0:me.band1H)===null||le===void 0?void 0:le.tcStyle),{border:jt(jt({},ot?.border),(ae=(j=(he=u.tableStyles)===null||he===void 0?void 0:he.band1H)===null||j===void 0?void 0:j.tcStyle)===null||ae===void 0?void 0:ae.border)}),Et=jt(jt({},Et),(ie=(ce=u.tableStyles)===null||ce===void 0?void 0:ce.band1H)===null||ie===void 0?void 0:ie.tcTxStyle)):(ot=jt(jt(jt({},ot),(te=(K=u.tableStyles)===null||K===void 0?void 0:K.band2V)===null||te===void 0?void 0:te.tcStyle),{border:jt(jt({},ot?.border),(q=(X=(Z=u.tableStyles)===null||Z===void 0?void 0:Z.band2V)===null||X===void 0?void 0:X.tcStyle)===null||q===void 0?void 0:q.border)}),Et=jt(jt({},Et),(Ce=(de=u.tableStyles)===null||de===void 0?void 0:de.band2V)===null||Ce===void 0?void 0:Ce.tcTxStyle))),u.props.bandCol&&(u._isBandCol(p)?(ot=jt(jt(jt({},ot),(be=(ne=u.tableStyles)===null||ne===void 0?void 0:ne.band1V)===null||be===void 0?void 0:be.tcStyle),{border:jt(jt({},ot?.border),(ve=(ye=(De=u.tableStyles)===null||De===void 0?void 0:De.band1V)===null||ye===void 0?void 0:ye.tcStyle)===null||ve===void 0?void 0:ve.border)}),Et=jt(jt({},Et),(Oe=(_e=u.tableStyles)===null||_e===void 0?void 0:_e.band1V)===null||Oe===void 0?void 0:Oe.tcTxStyle)):(ot=jt(jt(jt({},ot),(Ne=(qe=u.tableStyles)===null||qe===void 0?void 0:qe.band2H)===null||Ne===void 0?void 0:Ne.tcStyle),{border:jt(jt({},ot?.border),(Re=(gt=($e=u.tableStyles)===null||$e===void 0?void 0:$e.band2H)===null||gt===void 0?void 0:gt.tcStyle)===null||Re===void 0?void 0:Re.border)}),Et=jt(jt({},Et),(lt=(He=u.tableStyles)===null||He===void 0?void 0:He.band2H)===null||lt===void 0?void 0:lt.tcTxStyle)))),v.inheritTcStyle=ot,v.inheritTcTxStyle=Et})})},t})(Ky),b8=(function(){function r(t,e,n,i){if(this.offset={x:0,y:0},this.chOffset={x:0,y:0},this.extend={w:0,h:0},this.chExtend={w:0,h:0},this.rotate=0,this.nodes=[],this.flipV=!1,this.flipH=!1,this.userDrawn=!0,this.order=Pe.get(t,["attrs","order"]),this.pptx=e,this.ctx=n,this.source=t,this.group=i,this.source["p:grpSpPr"]){var a=Pe.get(this.source,["p:grpSpPr","a:xfrm"]);if(a&&(this.offset={x:Math.round(kn(parseInt(a["a:off"].attrs.x))),y:Math.round(kn(parseInt(a["a:off"].attrs.y)))},this.chOffset={x:Math.round(kn(parseInt(a["a:chOff"].attrs.x))),y:Math.round(kn(parseInt(a["a:chOff"].attrs.y)))},this.extend={w:Math.round(kn(parseInt(a["a:ext"].attrs.cx))),h:Math.round(kn(parseInt(a["a:ext"].attrs.cy)))},this.chExtend={w:Math.round(kn(parseInt(a["a:chExt"].attrs.cx))),h:Math.round(kn(parseInt(a["a:chExt"].attrs.cy)))},this.rotate=$E(parseInt(Pe.get(a,"attrs.rot",0))),this.flipV=Pe.get(a,"attrs.flipV")==="1",this.flipH=Pe.get(a,"attrs.flipH")==="1"),i){var o=i.extend,s=i.chExtend,l=i.chOffset,c=o.w/s.w,u=o.h/s.h;this.extend.w=this.extend.w*c,this.extend.h=this.extend.h*u,this.offset.x=(this.offset.x-l.x)*c,this.offset.y=(this.offset.y-l.y)*u}}this._parseBackground(),this._parseNodes()}return r.prototype.getBackground=function(){return this.background&&this.background.type!=="none"?this.background:this.group?this.group.getBackground():void 0},r.prototype._parseBackground=function(){var t=Pe.get(this.source,["p:grpSpPr"]);t&&t["a:solidFill"]?this.background=Ji(t["a:solidFill"],this.ctx.theme,this.ctx):t&&t["a:gradFill"]?this.background=zy(t["a:gradFill"],this.ctx.theme,this.ctx):t&&t["a:blipFill"]&&(this.background=Vy(t["a:blipFill"],this.pptx,this.ctx))},r.prototype._parseNodes=function(){var t=this.source;Xy(this.nodes,t,this.pptx,this.ctx,this)},r})(),ene=(function(r){function t(e,n,i,a){var o=r.call(this,e,i,a)||this;return o.nodes=[],o.pptx=n,o}return zv(t,r),t.prototype.parseNode=function(){return Ma(this,void 0,void 0,function(){var e,n,i,a,o,s,l,c,u;return Ta(this,function(f){switch(f.label){case 0:return f.trys.push([0,3,,4]),(e=Pe.get(this.source,["a:graphic","a:graphicData","dgm:relIds","attrs","r:dm"]))&&this.ctx.rels[e]?(n=this.ctx.rels[e].target,a=zs,[4,this.pptx.getXmlByPath(n)]):[2];case 1:return i=a.apply(void 0,[f.sent()]),(o=Pe.get(i,["dgm:dataModel","dgm:extLst","a:ext","dsp:dataModelExt","attrs","relId"]))&&this.ctx.rels[o]?(s=this.ctx.rels[o].target,[4,this.pptx.getXmlByPath(s)]):[2];case 2:return l=(l=f.sent()).replace(/dsp:/g,"p:"),c=zs(l),u=Pe.get(c,["p:drawing","p:spTree"]),Xy(this.nodes,u,this.pptx,this.ctx),[3,4];case 3:return f.sent(),[3,4];case 4:return[2]}})})},t})(Ky),tne=(function(r){function t(e,n,i,a){var o=r.call(this,e,i,a)||this;return o.options={title:{},tooltip:{},legend:{},series:[],color:[]},o.userDrawn=!0,o.pptx=n,o}return zv(t,r),Object.defineProperty(t.prototype,"slideMaster",{get:function(){return this.ctx.slideMaster||this.ctx},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),t.prototype.parseNode=function(){return Ma(this,void 0,void 0,function(){var e,n,i,a,o,s;return Ta(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),(e=Pe.get(this.source,["a:graphic","a:graphicData","c:chart","attrs","r:id"]))&&this.ctx.rels[e]?(n=this.ctx.rels[e].target,a=zs,[4,this.pptx.getXmlByPath(n)]):[2];case 1:return i=a.apply(void 0,[l.sent()]),o=Pe.get(i,["c:chartSpace","c:chart"]),s=Pe.get(o,["c:plotArea"]),Pe.get(s,["c:lineChart"])?this.parseLine(Pe.get(s,["c:lineChart"]),o):Pe.get(s,["c:line3DChart"])?this.parseLine(Pe.get(s,["c:line3DChart"]),o):Pe.get(s,["c:areaChart"])?this.parseAreaLine(Pe.get(s,["c:areaChart"]),o):Pe.get(s,["c:area3DChart"])?this.parseAreaLine(Pe.get(s,["c:area3DChart"]),o):Pe.get(s,["c:barChart"])?this.parseBar(Pe.get(s,["c:barChart"]),o):Pe.get(s,["c:bar3DChart"])?this.parseBar(Pe.get(s,["c:bar3DChart"]),o):Pe.get(s,["c:pieChart"])?this.parsePie(Pe.get(s,["c:pieChart"])):Pe.get(s,["c:pie3DChart"])?this.parsePie(Pe.get(s,["c:pie3DChart"])):Pe.get(s,["c:doughnutChart"])&&this.parseDoughnutChart(Pe.get(s,["c:doughnutChart"])),[3,3];case 2:return l.sent(),[3,3];case 3:return[2]}})})},t.prototype.parseAreaLine=function(e,n){this.parseLine(e,n),this.options.series=this.options.series.map(function(i){return i.areaStyle={},i})},t.prototype.parseLine=function(e,n){var i=Pe.get(e,["c:ser"]);Array.isArray(i)||(i=[i]),this.options.title={top:"top",left:"center",text:this.parseChartTitle(Pe.get(n,["c:title"]))},this.options.xAxis={type:"category",data:this.getCategory(i[0])},this.options.yAxis={type:"value"},this.options.series=this.parseLineSeries(i,e),this.options.color=this.parseLineColors(i),this.options.legend={bottom:"bottom",left:"center"},Pe.get(e,["c:grouping","attrs","val"])==="percentStacked"&&(this.options.tooltip.valueFormatter=function(a){return(100*a).toFixed(2)+"%"})},t.prototype.parseBar=function(e,n){var i=Pe.get(e,["c:ser"]);Array.isArray(i)||(i=[i]),this.options.title={top:"top",left:"center",text:this.parseChartTitle(Pe.get(n,["c:title"]))},Pe.get(e,["c:barDir","attrs","val"])==="bar"?(this.options.yAxis={type:"category",data:this.getCategory(i[0])},this.options.xAxis={type:"value"}):(this.options.xAxis={type:"category",data:this.getCategory(i[0])},this.options.yAxis={type:"value"}),this.options.series=this.parseBarSeries(i,e),this.options.color=this.parseBarColors(i),this.options.legend={bottom:"bottom",left:"center"},Pe.get(e,["c:grouping","attrs","val"])==="percentStacked"&&(this.options.tooltip.valueFormatter=function(a){return(100*a).toFixed(2)+"%"})},t.prototype.parsePie=function(e){var n=Pe.get(e,["c:ser"]);this.options.title={top:"top",left:"center",text:this.parsePieTitle(n)},this.options.color=this.parsePieColors(n),this.options.series=[this.parsePieSeries(n,e)],this.options.legend={bottom:"bottom",left:"center"}},t.prototype.parseDoughnutChart=function(e){var n=Pe.get(e,["c:ser"]);this.options.title.text=this.parsePieTitle(n),this.options.color=this.parsePieColors(n),this.options.series=[this.parsePieSeries(n,e)],this.options.legend={bottom:"bottom",left:"center"}},t.prototype.parsePieTitle=function(e){return Pe.get(e,["c:tx","c:strRef","c:strCache","c:pt","c:v"])},t.prototype.parseChartTitle=function(e){var n=Pe.get(e,["c:tx","c:rich","a:p"]);return Array.isArray(n)||(n=[n]),n.map(function(i){var a=Pe.get(i,["a:r"]);return Array.isArray(a)||(a=[a]),a.map(function(o){return Pe.get(o,["a:t"])||""}).join("")}).join("")||"图表标题"},t.prototype.parseBarColors=function(e){var n=this;return e.map(function(i){return Tn(Ji(Pe.get(i,["c:spPr","a:solidFill"]),n.theme,n.ctx))})},t.prototype.parseLineColors=function(e){var n=this;return e.map(function(i){return Tn(Ji(Pe.get(i,["c:spPr","a:ln","a:solidFill"])||Pe.get(i,["c:spPr","a:solidFill"]),n.theme,n.ctx))})},t.prototype.parsePieColors=function(e){var n=this,i=[],a=Pe.get(e,["c:dPt"]);return Array.isArray(a)||(a=[a]),a.forEach(function(o){i.push(Tn(Ji(Pe.get(o,["c:spPr","a:solidFill"]),n.theme,n.ctx)))}),i},t.prototype.parsePieSeries=function(e,n){var i={type:"pie",radius:"80%",startAngle:90,data:[]};Pe.get(n,["c:holeSize","attrs","val"])&&(i.radius=["".concat(.8*Pe.get(n,["c:holeSize","attrs","val"]),"%"),"80%"]);var a=Pe.get(n,["c:firstSliceAng","attrs","val"]);a&&(i.startAngle=90-a);for(var o=this.getCategory(e),s=this.getVal(e),l=0;l<o.length;l++)i.data.push({name:o[l],value:s[l]});return i},t.prototype.parseBarSeries=function(e,n){var i,a=this,o=Pe.get(n,["c:grouping","attrs","val"]);o==="stacked"?i="Ad":o==="percentStacked"&&(i="total");var s=e.map(function(c){return{type:"bar",name:Pe.get(c,["c:tx","c:strRef","c:strCache","c:pt","c:v"]),data:a.getVal(c),stack:i}});if(o==="percentStacked"){var l=[];s.forEach(function(c,u){l=u===0?Kv([],c.data):l.map(function(f,h){return f+c.data[h]})}),s.forEach(function(c){c.data=c.data.map(function(u,f){return l[f]<=0?0:u/l[f]})})}return s},t.prototype.parseLineSeries=function(e,n){var i,a=this,o=Pe.get(n,["c:grouping","attrs","val"]);o==="stacked"?i="Ad":o==="percentStacked"&&(i="total");var s=e.map(function(c){return{type:"line",name:Pe.get(c,["c:tx","c:strRef","c:strCache","c:pt","c:v"]),data:a.getVal(c),stack:i}});if(i==="total"){var l=[];s.forEach(function(c,u){l=u===0?Kv([],c.data):l.map(function(f,h){return f+c.data[h]})}),s.forEach(function(c){c.data=c.data.map(function(u,f){return l[f]<=0?0:u/l[f]})})}return s},t.prototype.getCategory=function(e){if(Pe.get(e,["c:cat","c:strRef"])){var n=Pe.get(e,["c:cat","c:strRef","c:strCache","c:pt"]);return Array.isArray(n)||(n=[n]),n.map(function(i){return Pe.get(i,["c:v"])})}if(Pe.get(e,["c:cat","c:numRef"]))return n=Pe.get(e,["c:cat","c:numRef","c:numCache","c:pt"]),Array.isArray(n)||(n=[n]),n.map(function(i){return Pe.get(i,["c:v"])})},t.prototype.getVal=function(e){var n=Pe.get(e,["c:val","c:numRef","c:numCache","c:pt"]);return Array.isArray(n)||(n=[n]),n.map(function(i){return+Pe.get(i,["c:v"])})},t})(Ky);function rne(r){var t={},e=Pe.get(r,"attrs")||{};return Object.keys(e).forEach(function(n){switch(n){case"algn":t.align=e[n];break;case"marL":t.marginLeft=kn(parseInt(e[n]));break;case"indent":t.indent=kn(parseInt(e[n]));break;case"lvl":t.level=e[n]}}),Pe.get(r,["a:lnSpc","a:spcPct","attrs","val"])&&(t.lineHeight=parseInt(r["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),t}function nne(r,t,e){var n={},i=Pe.get(r,"attrs")||{};Object.keys(i).forEach(function(o){switch(o){case"sz":n.size=parseInt(i[o])/100;break;case"b":n.bold=i[o]==="1";break;case"i":n.italic=i[o]==="1";break;case"u":n.underline=i[o];break;case"strike":n.strike=i[o];break;case"order":case"dirty":break;default:n[o]=i[o]}});var a=Pe.get(r,"a:solidFill");return a&&(n.color=Ji(a,t,e)),n}function Xy(r,t,e,n,i){return Ma(this,void 0,void 0,function(){var a,o,s,l,c,u,f,h,A,d,g,y,v,p,m,b,C,w,B,k,Q;return Ta(this,function(x){switch(x.label){case 0:for(s in o=[],a=t)o.push(s);l=0,x.label=1;case 1:if(!(l<o.length))return[3,17];if(!((s=o[l])in a))return[3,16];switch(c=s){case"p:sp":return[3,2];case"p:pic":return[3,3];case"p:cxnSp":return[3,4];case"p:graphicFrame":return[3,5];case"p:grpSp":return[3,14]}return[3,15];case 2:for(u=Array.isArray(t[c])?t[c]:[t[c]],k=0;k<u.length;k++)v=u[k],r.push(new qy(v,e,n,i));return[3,16];case 3:for(f=Array.isArray(t[c])?t[c]:[t[c]],k=0;k<f.length;k++)h=f[k],A=h["p:blipFill"]["a:blip"].attrs["r:embed"],d=n.rels[A].target,g=new eB(d,h,e,n,i),r.push(g);return[3,16];case 4:for(y=Array.isArray(t[c])?t[c]:[t[c]],k=0;k<y.length;k++)v=y[k],r.push(new qy(v,e,n,i));return[3,16];case 5:p=Array.isArray(t[c])?t[c]:[t[c]],k=0,x.label=6;case 6:if(!(k<p.length))return[3,13];switch(m=p[k],b=Pe.get(m,["a:graphic","a:graphicData","attrs","uri"]),b){case"http://schemas.openxmlformats.org/drawingml/2006/table":return[3,7];case"http://schemas.openxmlformats.org/drawingml/2006/diagram":return[3,8];case"http://schemas.openxmlformats.org/drawingml/2006/chart":return[3,10]}return[3,12];case 7:return r.push(new $re(m,e,n,i)),[3,12];case 8:return[4,(C=new ene(m,e,n,i)).parseNode()];case 9:return x.sent(),r.push(C),[3,12];case 10:return[4,(w=new tne(m,e,n,i)).parseNode()];case 11:return x.sent(),r.push(w),[3,12];case 12:return k++,[3,6];case 13:return[3,16];case 14:for(B=Array.isArray(t[c])?t[c]:[t[c]],k=0;k<B.length;k++)Q=B[k],r.push(new b8(Q,e,n,i));return[3,16];case 15:return[3,16];case 16:return l++,[3,1];case 17:return[2]}})})}var ntt=(function(){function r(t,e,n){this.slideType="slide",this.rels={},this.background={type:"none"},this.nodes=[],this.name=t,this.source=e,this.pptx=n}return Object.defineProperty(r.prototype,"index",{get:function(){if(!this.name)return 0;var t=this.name.match(/(\d+)/);return t?parseInt(t[0]):1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"slideMaster",{get:function(){return this.slideLayout&&this.slideLayout.slideMaster},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"_relsPath",{get:function(){return this.name.replace("slides/slide","slides/_rels/slide")+".rels"},enumerable:!1,configurable:!0}),r.prototype.load=function(){return Ma(this,void 0,void 0,function(){return Ta(this,function(t){switch(t.label){case 0:return[4,this._loadRels()];case 1:return t.sent(),this._loadBackground(),[4,this._loadNodes()];case 2:return t.sent(),[2]}})})},r.prototype._loadRels=function(){return Ma(this,void 0,void 0,function(){var t,e,n,i=this;return Ta(this,function(a){switch(a.label){case 0:return e=zs,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return t=e.apply(void 0,[a.sent()]),n=Pe.get(t,["Relationships","Relationship"])||[],Array.isArray(n)||(n=[n]),n.forEach(function(o){switch(Pe.get(o,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout":var s=o.attrs.Target.replace("../","ppt/");s.startsWith("/ppt")&&(s=s.substr(1)),i.slideLayout=i.pptx.getSlideLayout(s);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData":case"http://schemas.microsoft.com/office/2007/relationships/diagramDrawing":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart":var l=o.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),i.rels[o.attrs.Id]={type:o.attrs.Type.split("/").pop(),target:l}}}),[2]}})})},r.prototype._loadBackground=function(){var t=Pe.get(this.source,["p:sld","p:cSld","p:bg","p:bgPr"]);t&&t["a:solidFill"]?this.background=Ji(t["a:solidFill"],this.theme,this):t&&t["a:gradFill"]?this.background=zy(t["a:gradFill"],this.theme,this):t&&t["a:blipFill"]&&(this.background=Vy(t["a:blipFill"],this.pptx,this))},r.prototype._loadNodes=function(){return Ma(this,void 0,void 0,function(){var t;return Ta(this,function(e){switch(e.label){case 0:return t=Pe.get(this.source,["p:sld","p:cSld","p:spTree"]),[4,Xy(this.nodes,t,this.pptx,this)];case 1:return e.sent(),[2]}})})},r.prototype.getColorThemeName=function(t){return this.slideLayout.getColorThemeName(t)},r.prototype.getNodeInheritAttrsByType=function(t,e){var n=this.slideLayout.getNodeByType(t),i=Pe.get(n.source,e);return i||this.slideLayout.getNodeInheritAttrsByType(t,e)},r.prototype.getNodeInheritAttrsByIdx=function(t,e){var n=this.slideLayout.getNodeByIdx(t),i=Pe.get(n.source,e);return i||this.slideLayout.getNodeInheritAttrsByIdx(t,e)},r})(),itt=(function(){function r(t,e,n){this.slideType="slideLayout",this.rels={},this.background={type:"none"},this.nodes=[],this.name=t,this.source=e,this.pptx=n}return Object.defineProperty(r.prototype,"_relsPath",{get:function(){return this.name.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels"},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),r.prototype.load=function(){return Ma(this,void 0,void 0,function(){return Ta(this,function(t){switch(t.label){case 0:return[4,this._loadRels()];case 1:return t.sent(),[4,this._loadBackground()];case 2:return t.sent(),[4,this._loadNodes()];case 3:return t.sent(),[2]}})})},r.prototype._loadRels=function(){return Ma(this,void 0,void 0,function(){var t,e,n,i=this;return Ta(this,function(a){switch(a.label){case 0:return e=zs,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return t=e.apply(void 0,[a.sent()]),n=Pe.get(t,["Relationships","Relationship"])||[],Array.isArray(n)||(n=[n]),n.forEach(function(o){switch(Pe.get(o,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster":var s=o.attrs.Target.replace("../","ppt/");s.startsWith("/ppt")&&(s=s.substr(1)),i.slideMaster=i.pptx.getSlideMaster(s);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":var l=o.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),i.rels[o.attrs.Id]={type:o.attrs.Type.split("/").pop(),target:l}}}),[2]}})})},r.prototype._loadBackground=function(){return Ma(this,void 0,void 0,function(){var t;return Ta(this,function(e){return(t=Pe.get(this.source,["p:sldLayout","p:cSld","p:bg","p:bgPr"]))&&t["a:solidFill"]?this.background=Ji(t["a:solidFill"],this.theme):t&&t["a:gradFill"]?this.background=zy(t["a:gradFill"],this.theme,this):t&&t["a:blipFill"]&&(this.background=Vy(t["a:blipFill"],this.pptx,this)),[2]})})},r.prototype._loadNodes=function(){return Ma(this,void 0,void 0,function(){var t;return Ta(this,function(e){return t=Pe.get(this.source,["p:sldLayout","p:cSld","p:spTree"]),Xy(this.nodes,t,this.pptx,this),[2]})})},r.prototype.getColorThemeName=function(t){return this.slideMaster.getColorThemeName(t)},r.prototype.getNodeByType=function(t){return this.nodes.find(function(e){return e.type===t})},r.prototype.getNodeByIdx=function(t){return this.nodes.find(function(e){return e.idx===t})},r.prototype.getNodeInheritAttrsByType=function(t,e){var n=this.slideMaster.getNodeByType(t);return n&&Pe.get(n.source,e)},r.prototype.getNodeInheritAttrsByIdx=function(t,e){var n=this.slideMaster.getNodeByIdx(t);return n&&Pe.get(n.source,e)},r})(),att=(function(){function r(t,e,n){this.slideType="slideMaster",this.rels={},this.background={type:"none"},this.textStyles={titleStyle:{},bodyStyle:{},otherStyle:{}},this.defaultTextStyle={},this.nodes=[],this.tableStyles={},this.name=t,this.source=e,this.pptx=n,this.load()}return Object.defineProperty(r.prototype,"_relsPath",{get:function(){return this.name.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels"},enumerable:!1,configurable:!0}),r.prototype.load=function(){return Ma(this,void 0,void 0,function(){return Ta(this,function(t){switch(t.label){case 0:return[4,this._parseRels()];case 1:return t.sent(),this._parseColorMap(),this._parseBackground(),this._parseTextStyles(),this._parseTableStyles(),this._parseDefaultTextStyle(),this._loadNodes(),[2]}})})},r.prototype._parseRels=function(){return Ma(this,void 0,void 0,function(){var t,e,n,i=this;return Ta(this,function(a){switch(a.label){case 0:return e=zs,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return t=e.apply(void 0,[a.sent()]),n=Pe.get(t,["Relationships","Relationship"])||[],Array.isArray(n)||(n=[n]),n.forEach(function(o){switch(Pe.get(o,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme":var s=o.attrs.Target.replace("../","ppt/");s.startsWith("/ppt")&&(s=s.substr(1)),i.theme=i.pptx.getTheme(s);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":var l=o.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),i.rels[o.attrs.Id]={type:o.attrs.Type.split("/").pop(),target:l}}}),[2]}})})},r.prototype._parseColorMap=function(){this.colorMap=Pe.omit(Pe.get(this.source,["p:sldMaster","p:clrMap","attrs"])||{},["order"])},r.prototype.getColorThemeName=function(t){return this.colorMap[t]||t},r.prototype._parseBackground=function(){var t=Pe.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgPr"]),e=Pe.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgRef"]);t&&t["a:solidFill"]?this.background=Ji(t["a:solidFill"],this.theme,this):t&&t["a:gradFill"]?this.background=zy(t["a:gradFill"],this.theme,this):t&&t["a:blipFill"]?this.background=Vy(t["a:blipFill"],this.pptx,this):e&&(this.background=Ji(e,this.theme,this))},r.prototype._parseDefaultTextStyle=function(){var t=this,e=this.pptx.defaultTextStyleSource;Object.keys(e).forEach(function(n){if(n.startsWith("a:")&&n.endsWith("pPr")){var i=n.substr(2,n.length-5),a=Pe.get(e[n],["a:defRPr"]);t.defaultTextStyle[i]={props:rne(e[n]),defRPr:nne(a,t.theme,t)}}})},r.prototype._parseTextStyles=function(){var t=this,e=Pe.get(this.source,["p:sldMaster","p:txStyles"]);["titleStyle","bodyStyle","otherStyle"].forEach(function(n){var i=t.textStyles[n],a=Pe.get(e,"p:".concat(n))||{};Object.keys(a).forEach(function(o){if(o.startsWith("a:")&&o.endsWith("pPr")){var s=o.substr(2,o.length-5);i[s]={},i[s].props=rne(a[o]);var l=Pe.get(a[o],["a:defRPr"]);i[s].defRPr=nne(l,t.theme,t)}})})},r.prototype._parseTableStyles=function(){var t=this,e={},n=Pe.get(this.pptx.tableStyles,["a:tblStyleLst","a:tblStyle"])||[];Array.isArray(n)||(n=[n]),n.forEach(function(i){var a=Pe.get(i,["attrs","styleId"]);e[a]={},Object.keys(i).forEach(function(o){if(o.startsWith("a:")){var s=o.substr(2);e[a][s]={};var l=Pe.get(i[o],["a:tcStyle"]);if(l){var c={};Pe.get(l,["a:fill","a:solidFill"])&&(c.background=Ji(Pe.get(l,["a:fill","a:solidFill"]),t.theme,t));var u=Pe.get(l,"a:tcBdr");u&&(c.border={},Object.keys(u).forEach(function(A){if(A.startsWith("a:")){var d=A.substr(2),g=Pe.get(u[A],["a:ln"]);c.border[d]=J0(g,t.theme,t)}})),e[a][s].tcStyle=c}var f=Pe.get(i[o],["a:tcTxStyle"]);if(f){var h={};h.color=Ji(f,t.theme,t),Pe.get(f,["attrs","b"])==="on"&&(h.bold=!0),e[a][s].tcTxStyle=h}}})}),this.tableStyles=e},r.prototype._loadNodes=function(){return Ma(this,void 0,void 0,function(){var t;return Ta(this,function(e){return t=Pe.get(this.source,["p:sldMaster","p:cSld","p:spTree"]),Xy(this.nodes,t,this.pptx,this),[2]})})},r.prototype.getNodeByType=function(t){return this.nodes.find(function(e){return e.type===t})},r.prototype.getNodeByIdx=function(t){return this.nodes.find(function(e){return e.idx===t})},r.prototype.getNodeInheritAttrsByType=function(t,e){},r.prototype.getNodeInheritAttrsByIdx=function(t,e){},r})(),ott=(function(){function r(t,e,n){this.clrScheme={},this.borderScheme=[],this.name=t,this.source=e,this.pptx=n,this._parseClrScheme(),this._parseLineStyleLst()}return r.prototype._parseClrScheme=function(){var t=Pe.get(this.source,["a:theme","a:themeElements","a:clrScheme"]);for(var e in t)if(e.startsWith("a:")){var n=e.substring(2),i=Pe.get(t[e],["a:sysClr","attrs","lastClr"])||Pe.get(t[e],["a:srgbClr","attrs","val"]);this.clrScheme[n]="#"+i}},r.prototype._parseLineStyleLst=function(){var t=this,e=Pe.get(this.source,["a:theme","a:themeElements","a:fmtScheme","a:lnStyleLst","a:ln"])||[];this.borderScheme=e.map(function(n){var i={color:{}};return Pe.get(n,["attrs","w"])&&(i.width=kn(parseInt(Pe.get(n,["attrs","w"])))),Pe.get(n,["attrs","algn"])&&(i.algn=Pe.get(n,["attrs","algn"])),Pe.get(n,["attrs","cap"])&&(i.cap=Pe.get(n,["attrs","cap"])),Pe.get(n,["attrs","cmpd"])&&(i.cmpd=Pe.get(n,["attrs","cmpd"])),Pe.get(n,["a:miter","attrs","lim"])&&(i.miterLim=kn(parseInt(Pe.get(n,["a:miter","attrs","lim"])))),Pe.get(n,["a:prstDash","attrs","val"])&&(i.type=Pe.get(n,["a:prstDash","attrs","val"])),Pe.get(n,["a:solidFill"])&&(i.color=Ji(Pe.get(n,["a:solidFill"]),t)),i})},r.prototype.getColor=function(t){if(t!=="phClr")return this.clrScheme[t]||this.defaultColor},r.prototype.getLineStyle=function(t){return this.borderScheme[t-1]},r})(),stt=(function(){function r(){this.slides=[],this.slideLayouts=[],this.slideMaster=[],this.themes=[],this.medias={}}return r.prototype.load=function(t){return Ma(this,void 0,void 0,function(){var e,n;return Ta(this,function(i){switch(i.label){case 0:return e=new zRe,n=this,[4,e.loadAsync(t)];case 1:return n._zipContents=i.sent(),[4,this._loadThumbnail()];case 2:return i.sent(),[4,this._loadMedia()];case 3:return i.sent(),[4,this._loadPresentation()];case 4:return i.sent(),[4,this._loadContentTypes()];case 5:return i.sent(),[2]}})})},r.prototype._loadThumbnail=function(){return Ma(this,void 0,void 0,function(){var t;return Ta(this,function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),this._zipContents.files["docProps/thumbnail.jpeg"]?[4,this._zipContents.files["docProps/thumbnail.jpeg"].async("base64")]:[3,2];case 1:t=e.sent(),this.thumbnail="data:image/jpeg;base64,"+t,e.label=2;case 2:return[3,4];case 3:return e.sent(),[3,4];case 4:return[2]}})})},r.prototype._loadPresentation=function(){return Ma(this,void 0,void 0,function(){var t,e,n;return Ta(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this._zipContents.files["ppt/presentation.xml"].async("text")];case 1:return t=i.sent(),e=zs(t),n=e["p:presentation"]["p:sldSz"].attrs,this.width=kn(parseInt(n.cx)),this.height=kn(parseInt(n.cy)),this.defaultTextStyleSource=Pe.get(e,["p:presentation","p:defaultTextStyle"]),[3,3];case 2:return i.sent(),[3,3];case 3:return[2]}})})},r.prototype._loadContentTypes=function(){return Ma(this,void 0,void 0,function(){var t,e,n,i,a,o,s,l,c,u,f,h,A,d,g,y,v,p,m,b,C;return Ta(this,function(w){switch(w.label){case 0:return w.trys.push([0,22,,23]),e=zs,[4,this._zipContents.files["[Content_Types].xml"].async("text")];case 1:if(t=e.apply(void 0,[w.sent()]),n=t.Types.Override,!(i=n.filter(function(B){return B.attrs.ContentType==="application/vnd.openxmlformats-officedocument.theme+xml"})))return[3,5];a=0,o=i,w.label=2;case 2:return a<o.length?(s=o[a],p=s.attrs.PartName.substr(1),l=zs,[4,this._zipContents.files[p].async("text")]):[3,5];case 3:m=l.apply(void 0,[w.sent()]),this.themes.push(new ott(p,m,this)),w.label=4;case 4:return a++,[3,2];case 5:return(c=n.find(function(B){return B.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml"}))?(p=c.attrs.PartName.substr(1),u=zs,[4,this._zipContents.files[p].async("text")]):[3,7];case 6:m=u.apply(void 0,[w.sent()]),this.tableStyles=m,w.label=7;case 7:f=n.filter(function(B){return B.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"}),v=0,w.label=8;case 8:return v<f.length?(p=f[v].attrs.PartName.substr(1),h=zs,[4,this._zipContents.files[p].async("text")]):[3,11];case 9:m=h.apply(void 0,[w.sent()]),this.slideMaster.push(new att(p,m,this)),w.label=10;case 10:return v++,[3,8];case 11:A=n.filter(function(B){return B.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"}),v=0,w.label=12;case 12:return v<A.length?(p=A[v].attrs.PartName.substr(1),d=zs,[4,this._zipContents.files[p].async("text")]):[3,16];case 13:return m=d.apply(void 0,[w.sent()]),[4,(g=new itt(p,m,this)).load()];case 14:w.sent(),this.slideLayouts.push(g),w.label=15;case 15:return v++,[3,12];case 16:y=n.filter(function(B){return B.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"}),v=0,w.label=17;case 17:return v<y.length?(p=y[v].attrs.PartName.substr(1),b=zs,[4,this._zipContents.files[p].async("text")]):[3,21];case 18:return m=b.apply(void 0,[w.sent()]),[4,(C=new ntt(p,m,this)).load()];case 19:w.sent(),this.slides.push(C),w.label=20;case 20:return v++,[3,17];case 21:return this.slides.sort(function(B,k){return B.index-k.index}),[3,23];case 22:return w.sent(),[3,23];case 23:return[2]}})})},r.prototype._loadMedia=function(){return Ma(this,void 0,void 0,function(){var t,e,n,i,a,o,s,l,c,u,f,h,A,d=this;return Ta(this,function(g){switch(g.label){case 0:t=Object.keys(this._zipContents.files).filter(function(v){return v.startsWith("ppt/media/image")}).map(function(v){return d._zipContents.files[v]}),e=0,n=t,g.label=1;case 1:return e<n.length?(i=n[e],a=(function(v){var p;switch(v){case"jpg":case"jpeg":p="image/jpeg";break;case"png":p="image/png";break;case"gif":p="image/gif";break;case"emf":p="image/x-emf";break;case"wmf":p="image/x-wmf";break;default:p="image/*"}return p})((y=i.name).substr(2+(~-y.lastIndexOf(".")>>>0))),[4,i.async("base64")]):[3,4];case 2:o=g.sent(),this.medias[i.name]="data:".concat(a,";base64,").concat(o),g.label=3;case 3:return e++,[3,1];case 4:s=Object.keys(this._zipContents.files).filter(function(v){return v.startsWith("ppt/media/media")&&["mp3","wav","ogg","mp4","webm"].includes(v.split(".").pop().toLowerCase())}).map(function(v){return d._zipContents.files[v]}),l=0,c=s,g.label=5;case 5:return l<c.length?(u=c[l],f=u.name.split(".").pop().toLowerCase(),[4,u.async("arraybuffer")]):[3,8];case 6:h=g.sent(),A=new Blob([h],{type:"".concat(["mp3","wav"].includes(f)?"audio":"video","/").concat(f)}),this.medias[u.name]=URL.createObjectURL(A),g.label=7;case 7:return l++,[3,5];case 8:return[2]}var y})})},r.prototype.getXmlByPath=function(t){return Ma(this,void 0,void 0,function(){return Ta(this,function(e){switch(e.label){case 0:if(!this._zipContents.files[t])throw new Error("文件不存在");return[4,this._zipContents.files[t].async("text")];case 1:return[2,e.sent()]}})})},r.prototype.getSlideLayout=function(t){return this.slideLayouts.find(function(e){return e.name===t})},r.prototype.getSlideMaster=function(t){return this.slideMaster.find(function(e){return e.name===t})},r.prototype.getTheme=function(t){return this.themes.find(function(e){return e.name===t})},r.prototype.getMedia=function(t){return this.medias[t]},r})();function C8(r){var t=r.extend,e=r.offset,n=r.clip,i=r.base64,a=r.audioFile,o=r.videoFile,s=document.createElement("div");s.style.setProperty("position","absolute"),s.style.setProperty("left",e.x+"px"),s.style.setProperty("top",e.y+"px");var l,c,u,f,h=document.createElement("div");h.style.setProperty("position","absolute"),h.style.setProperty("left","0"),h.style.setProperty("top","0"),h.style.setProperty("width",t.w+"px"),h.style.setProperty("height",t.h+"px"),h.style.setProperty("overflow","hidden"),n?(l=t.w/(1-(n.l===void 0?0:n.l)-(n.r===void 0?0:n.r)),c=t.h/(1-(n.t===void 0?0:n.t)-(n.b===void 0?0:n.b)),u=-1*l*(n.l===void 0?0:n.l),f=-1*c*(n.t===void 0?0:n.t)):(l=t.w,c=t.h,u=0);var A=document.createElement("img");if(A.src=i,A.width=l,A.height=c,A.style.setProperty("position","absolute"),A.style.setProperty("left",u+"px"),A.style.setProperty("top",f+"px"),h.append(A),s.append(h),a){var d=document.createElement("audio");d.style.position="absolute",d.style.left="0",d.style.top="0",d.src=a,d.controls=!0,d.style.transform="translate(-50%)",s.append(d)}if(o){var g=document.createElement("video");g.style.position="absolute",g.style.left="0",g.style.top="0",g.width=t.w,g.height=t.h,g.src=o,g.controls=!0,s.append(g)}return s}function ltt(r,t,e){var n,i=r.props,a=r.text,o=jt(jt({},t),i),s=document.createElement("span");s.innerHTML=a;var l=18;o.size&&(!((n=e?.normAutofit)===null||n===void 0)&&n.fontScale?(l=o.size*e.normAutofit.fontScale,s.style.fontSize=l+"px"):(l=o.size,s.style.fontSize=l+"px"));var c=Tn(o.color);c&&(s.style.color=c);var u=/^[^\u4e00-\u9fff]+$/;if(o.typeface)switch(s.style.fontFamily=o.typeface,o.typeface){case"DengXian":u.test(a)&&(s.style.letterSpacing=-.04*l+"px");break;case"DengXian Light":u.test(a)&&(s.style.letterSpacing=-.05*l+"px");break;case"STLiti":case"SimSun":case"NSimSun":case"SimHei":u.test(a)&&(s.style.fontSize=.85*parseInt(s.style.fontSize)+"px");break;case"华文中宋":s.style.fontSize=.85*parseInt(s.style.fontSize)+"px";break;case"FangSong":s.style.letterSpacing=-.08*l+"px"}else u.test(a)&&(s.style.letterSpacing=-.04*l+"px");return o.bold&&(s.style.fontWeight="bold"),o.italic&&(s.style.fontStyle="italic"),o.underline&&o.underline!=="none"&&(s.style.textDecoration="underline"),o.background&&(s.style.backgroundColor=Tn(o.background)),s.style.wordBreak="break-word",s}function ctt(r,t,e){var n=document.createElement("span"),i=r.firstElementChild;switch(n.style.fontSize=i.style.fontSize,n.style.color=i.style.color,n.style.fontWeight=i.style.fontWeight,n.style.fontStyle=i.style.fontStyle,n.style.marginRight="10px",t.buAutoNum){case"arabicPeriod":default:n.textContent=e+".";break;case"circleNumDbPlain":n.textContent=["①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳"][e-1]||e+"";break;case"romanUcPeriod":n.textContent=(function(a){var o=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];if(typeof a!="number"||a<1||a>3999)throw new Error("Input must be a number between 1 and 3999.");for(var s="",l=0;l<o.length;l++)for(;a>=o[l].value;)s+=o[l].numeral,a-=o[l].value;return s})(e)+".";break;case"alphaUcPeriod":n.textContent=p8(e)+".";break;case"alphaLcPeriod":n.textContent=p8(e).toLowerCase()+".";break;case"alphaLcParenR":n.textContent=p8(e).toLowerCase()+")";break;case"ea1JpnChsDbPeriod":n.textContent=(function(a){var o=["〇","一","二","三","四","五","六","七","八","九"];if(!Number.isInteger(a)||a<0)return"";for(var s="",l=a.toString(),c=0;c<l.length;c++)s+=o[parseInt(l[c],10)];return s})(e)+"."}r.prepend(n)}function tB(r,t,e){var n,i,a,o;t===void 0&&(t=0),e===void 0&&(e={});var s=r.inheritProps,l=r.inheritRProps,c=r.props,u=r.rows,f=jt(jt({},s),c),h=function(){for(var w,B,k=0,Q=0,x=u;Q<x.length;Q++){var L=x[Q];L.props&&L.props.size&&(k=Math.max(k,L.props.size))}var O=((B=(w=e?.bodyProps)===null||w===void 0?void 0:w.normAutofit)===null||B===void 0?void 0:B.fontScale)||1;return(k||l.size||18)*O},A=document.createElement("div"),d=e.isFirst?0:f.spaceBefore||0,g=e.isLast?0:f.spaceAfter||0;A.style.margin="".concat(Math.floor(.2*h()),"px 0 0 0"),A.style.padding="".concat(Math.floor(d),"px 0px ").concat(Math.floor(g),"px 0px");var y=document.createElement("p");y.style.margin="0",y.style.padding="0px",y.style.wordBreak="break-word",y.style.textAlign=f.align&&{ctr:"center",l:"left",r:"right",dist:"justify"}[f.align]||"center",f.align==="dist"&&(y.style.textAlignLast="justify");var v=f.hasOwnProperty("lineHeight")?f.lineHeight:1;if(!((i=(n=e.bodyProps)===null||n===void 0?void 0:n.normAutofit)===null||i===void 0)&&i.lnSpcReduction&&(v*=1-((o=(a=e.bodyProps)===null||a===void 0?void 0:a.normAutofit)===null||o===void 0?void 0:o.lnSpcReduction)),y.style.lineHeight=v+"",y.style.fontSize=h()+"px",u.length){for(var p=0,m=u;p<m.length;p++){var b=m[p];y.appendChild(ltt(b,jt(jt({},l),{marginTop:Math.floor(.2*h())}),e.bodyProps))}f.buAutoNum?ctt(y,f,t):f.buChar&&(function(w,B){var k=document.createElement("span"),Q=w.firstElementChild;k.style.color=Q.style.color,k.style.fontSize=Q.style.fontSize,k.textContent={n:"■",l:"●",u:"◆",p:"□",ü:"✔",Ø:"➢","•":"•"}[B.buChar]||"■",k.style.marginRight="10px",w.prepend(k)})(y,f),y.style.paddingLeft=(f.marginLeft||0)+(f.indent||0)+"px"}else{var C=document.createElement("span");C.innerHTML="&nbsp;",C.style.fontSize=l.size+"px",y.appendChild(C)}return A.appendChild(y),A}var ine="http://www.w3.org/2000/svg";function xt(r){return document.createElementNS(ine,r)}function ff(r){var t=r.extend;return .16667*Math.min(t.w,t.h)}function xr(r,t,e){e===void 0&&(e=0);var n=t.prstGeom,i=(n?.gd||[]).find(function(a){return a.name===r});return i?i.fmla:e}function Qt(r,t,e){e===void 0&&(e=0);var n=t.extend,i=t.prstGeom,a=(i?.gd||[]).find(function(o){return o.name===r});return a?Math.min(n.w,n.h)*a.fmla:e}function ane(r,t,e){e===void 0&&(e=0);var n=t.extend,i=t.prstGeom,a=(i?.gd||[]).find(function(o){return o.name===r});return a?Math.max(n.w,n.h)*a.fmla:e}function vu(r,t){var e=0;switch(r){case"sm":e=1*t;break;case"med":e=1.5*t;break;case"lg":e=2.5*t}return Math.max(e,2)}function one(r,t,e,n){n===void 0&&(n=!1);var i=r.border,a=i===void 0?{}:i,o=r.uuid,s=a.headEnd,l=a.width,c=a.color,u=a.tailEnd,f=n?s:u,h=f.len,A=h===void 0?"med":h,d=f.w,g=d===void 0?"med":d,y=vu(A,l),v=vu(g,l),p=xt("defs"),m=xt("marker"),b="marker-".concat(o,"-").concat(n?"start":"end");m.setAttribute("id",b),m.setAttribute("viewBox","0 0 ".concat(2*y," ").concat(2*v)),m.setAttribute("refX",y+"px"),m.setAttribute("refY",v+"px"),m.setAttribute("markerWidth",2*y+"px"),m.setAttribute("markerHeight",2*v+"px"),m.setAttribute("orient","auto"),m.setAttribute("markerUnits","userSpaceOnUse");var C=xt("ellipse");C.setAttribute("cx",y+"px"),C.setAttribute("cy",v+"px"),C.setAttribute("rx",y+"px"),C.setAttribute("ry",v+"px"),C.setAttribute("fill",Tn(c)||"transparent"),m.appendChild(C),p.appendChild(m),t.appendChild(p),e.setAttribute(n?"marker-start":"marker-end","url(#".concat(b,")"))}function sne(r,t,e,n){n===void 0&&(n=!1);var i=r.border,a=i===void 0?{}:i,o=r.uuid,s=a.headEnd,l=a.width,c=a.color,u=a.tailEnd,f=n?s:u,h=f.len,A=h===void 0?"med":h,d=f.w,g=d===void 0?"med":d,y=vu(A,l),v=vu(g,l),p=xt("defs"),m=xt("marker"),b="marker-".concat(o,"-").concat(n?"start":"end");m.setAttribute("id",b),m.setAttribute("viewBox","0 0 ".concat(2*y," ").concat(2*v)),m.setAttribute("refX",(n?.9*y:1.1*y)+"px"),m.setAttribute("refY",v+"px"),m.setAttribute("markerWidth",2*y+"px"),m.setAttribute("markerHeight",2*v+"px"),m.setAttribute("orient","auto"),m.setAttribute("markerUnits","userSpaceOnUse");var C=xt("path"),w=n?["M ".concat(2*y,",0"),"L 0,".concat(v),"L ".concat(2*y,",").concat(2*v),"Z"].join(" "):["M 0,0","L ".concat(2*y,",").concat(v),"L 0,".concat(2*v),"Z"].join(" ");C.setAttribute("d",w),C.setAttribute("fill",Tn(c)||"transparent"),m.appendChild(C),p.appendChild(m),t.appendChild(p),e.setAttribute(n?"marker-start":"marker-end","url(#".concat(b,")"))}function lne(r,t,e,n){n===void 0&&(n=!1);var i=r.border,a=i===void 0?{}:i,o=r.uuid,s=a.headEnd,l=a.width,c=a.color,u=a.tailEnd,f=n?s:u,h=f.len,A=h===void 0?"med":h,d=f.w,g=d===void 0?"med":d,y=vu(A,l),v=vu(g,l),p=xt("defs"),m=xt("marker"),b="marker-".concat(o,"-").concat(n?"start":"end");m.setAttribute("id",b),m.setAttribute("viewBox","0 0 ".concat(2*y," ").concat(2*v)),m.setAttribute("refX",y+"px"),m.setAttribute("refY",v+"px"),m.setAttribute("markerWidth",2*y+"px"),m.setAttribute("markerHeight",2*v+"px"),m.setAttribute("orient","auto"),m.setAttribute("markerUnits","userSpaceOnUse");var C=xt("path"),w=["M 0,".concat(v),"L ".concat(y,",0"),"L ".concat(2*y,",").concat(v),"L ".concat(y,",").concat(2*v),"Z"].join(" ");C.setAttribute("d",w),C.setAttribute("fill",Tn(c)||"transparent"),m.appendChild(C),p.appendChild(m),t.appendChild(p),e.setAttribute(n?"marker-start":"marker-end","url(#".concat(b,")"))}function cne(r,t,e,n){n===void 0&&(n=!1);var i=r.border,a=i===void 0?{}:i,o=r.uuid,s=a.headEnd,l=a.width,c=a.color,u=a.tailEnd,f=n?s:u,h=f.len,A=h===void 0?"med":h,d=f.w,g=d===void 0?"med":d,y=vu(A,l),v=vu(g,l),p=xt("defs"),m=xt("marker"),b="marker-".concat(o,"-").concat(n?"start":"end");m.setAttribute("id",b),m.setAttribute("viewBox","0 0 ".concat(2*y+2*l," ").concat(2*v+2*l));var C=n?g==="lg"?2*l:3*l:g==="lg"?2*y:2*y-l;m.setAttribute("refX",C+"px"),m.setAttribute("refY",v+l+"px"),m.setAttribute("markerWidth",2*y+"px"),m.setAttribute("markerHeight",2*v+"px"),m.setAttribute("orient","auto"),m.setAttribute("markerUnits","userSpaceOnUse");var w=xt("path"),B=n?["M ".concat(2*y+l,", ").concat(l),"L ".concat(l,",").concat(v+l),"L ".concat(2*y+l,",").concat(2*v+l)].join(" "):["M ".concat(l,", ").concat(l),"L ".concat(2*y+l,",").concat(v+l),"L ".concat(l,",").concat(2*v+l)].join(" ");w.setAttribute("d",B),w.setAttribute("stroke-width",l+"px"),w.setAttribute("stroke",Tn(c)||"transparent"),w.setAttribute("fill","transparent"),w.setAttribute("stroke-linecap","round"),w.setAttribute("stroke-linejoin","miter"),w.style.overflow="visible",m.appendChild(w),p.appendChild(m),t.appendChild(p),e.setAttribute(n?"marker-start":"marker-end","url(#".concat(b,")"))}function une(r,t,e,n){n===void 0&&(n=!1);var i=r.border,a=i===void 0?{}:i,o=r.uuid,s=a.headEnd,l=a.width,c=a.color,u=a.tailEnd,f=n?s:u,h=f.len,A=h===void 0?"med":h,d=f.w,g=d===void 0?"med":d,y=vu(A,l),v=vu(g,l),p=xt("defs"),m=xt("marker"),b="marker-".concat(o,"-").concat(n?"start":"end");m.setAttribute("id",b),m.setAttribute("viewBox","0 0 ".concat(2*y," ").concat(2*v));var C=n?g==="sm"?1.5*l:2*l:g==="sm"?2*y-1.5*l:2*y-2*l;m.setAttribute("refX",C+"px"),m.setAttribute("refY",v+"px"),m.setAttribute("markerWidth",2*y+"px"),m.setAttribute("markerHeight",2*v+"px"),m.setAttribute("orient","auto"),m.setAttribute("markerUnits","userSpaceOnUse");var w=xt("path"),B=n?["M 0, ".concat(v),"L ".concat(2*y,",0"),"L ".concat(y,",").concat(v),"L ".concat(2*y,",").concat(2*v),"Z"].join(" "):["M 0,0","L ".concat(2*y,",").concat(v),"L 0,".concat(2*v),"L ".concat(y,",").concat(v),"Z"].join(" ");w.setAttribute("d",B),w.setAttribute("fill",Tn(c)||"transparent"),w.style.overflow="visible",m.appendChild(w),p.appendChild(m),t.appendChild(p),e.setAttribute(n?"marker-start":"marker-end","url(#".concat(b,")"))}function Zy(r,t,e){var n=r.border,i=n===void 0?{}:n;r.extend;var a=i.headEnd,o=i.tailEnd;if(a&&a.type!=="none")switch(a.type){case"triangle":sne(r,t,e,!0);break;case"oval":one(r,t,e,!0);break;case"diamond":lne(r,t,e,!0);break;case"arrow":cne(r,t,e,!0);break;case"stealth":une(r,t,e,!0)}if(o&&o.type!=="none")switch(o.type){case"triangle":sne(r,t,e,!1);break;case"oval":one(r,t,e,!1);break;case"diamond":lne(r,t,e,!1);break;case"arrow":cne(r,t,e,!1);break;case"stealth":une(r,t,e,!1)}}function fne(r){var t=r.extend,e=xt("rect");return e.setAttribute("x","0"),e.setAttribute("y","0"),e.setAttribute("width",t.w+"px"),e.setAttribute("height",t.h+"px"),e}function Po(r,t,e,n,i){var a=r*Math.PI/180;return[a===0||a===2*Math.PI?t+n:a===Math.PI?t-n:a===Math.PI/2||a===3*Math.PI/2?t:a>0&&a<Math.PI/2||a>3*Math.PI/2&&a<2*Math.PI?t+Math.sqrt(1/(1/Math.pow(n,2)+Math.pow(Math.tan(a),2)/Math.pow(i,2))):t-Math.sqrt(1/(1/Math.pow(n,2)+Math.pow(Math.tan(a),2)/Math.pow(i,2))),a===0||a===2*Math.PI||a===Math.PI?e:a===Math.PI/2?e+i:a===3*Math.PI/2?e-i:a>Math.PI&&a<2*Math.PI?e-Math.sqrt(1/(1/Math.pow(i,2)+Math.pow(1/Math.tan(a),2)/Math.pow(n,2))):e+Math.sqrt(1/(1/Math.pow(i,2)+Math.pow(1/Math.tan(a),2)/Math.pow(n,2)))]}function $y(r,t){var e=0;return(t>r&&t-r>180||t<r&&r-t<180)&&(e=1),e}function em(r){var t=r.extend,e=.146*t.w,n=.146*t.h;return{top:n,bottom:n,left:e,right:e,w:t.w-2*e,h:t.h-2*n}}function w8(r){var t=r.extend,e=r.offset,n=r.border,i=r.background,a=r.rotate,o=r.flipH,s=r.flipV,l=document.createElement("div"),c=e.x,u=e.y;l.className="shape-wrapper shape-".concat(r.shape),l.style.setProperty("position","absolute"),l.style.setProperty("width",(t.w||1)+"px"),l.style.setProperty("height",(t.h||1)+"px"),l.style.setProperty("left",c+"px"),l.style.setProperty("top",u+"px");var f,h=document.createElementNS(ine,"svg");h.style.setProperty("position","absolute"),h.setAttribute("width","100%"),h.setAttribute("height","100%"),h.style.setProperty("left","0"),h.style.setProperty("top","0"),h.style.overflow="visible";var A={left:0,top:0,bottom:0,w:t.w,h:t.h},d=!0;switch(r.shape){case"customGeom":f=(function(v){var p=v.prstGeom,m=p===void 0?{}:p,b=v.extend,C=m.pathList,w=m.w,B=m.h,k=xt("path"),Q={moveTo:"M",lnTo:"L",cubicBezTo:"C",close:"Z"},x=b.w/w,L=b.h/B,O=C.map(function(W){var M=Q[W.type],J=Array.isArray(W.points)?W.points.map(function(G){return"".concat(G[0]*x,",").concat(G[1]*L)}).join(" "):"";return J?"".concat(M," ").concat(J):"".concat(M)}).join(" ");return k.setAttribute("d",O),k.style.fillRule="evenodd",k})(r),Zy(r,h,f);break;case"flowChartProcess":case"rect":f=fne(r);break;case"snip1Rect":f=(function(v){var p=v.extend,m=xt("polygon"),b=Qt("adj",v,ff(v)),C=["0,0","".concat(p.w-b,",0"),"".concat(p.w,",").concat(b),"".concat(p.w,",").concat(p.h),"0,".concat(p.h)].join(" ");return m.setAttribute("points",C),m})(r);break;case"snip2SameRect":f=(function(v){var p=v.extend,m=xt("polygon"),b=Qt("adj1",v,ff(v)),C=Qt("adj2",v,0),w=[[b,0],[p.w-b,0],[p.w,b],[p.w,p.h-C],[p.w-C,p.h],[C,p.h],[0,p.h-C],[0,b]].map(function(B){return"".concat(B[0],",").concat(B[1])}).join(" ");return m.setAttribute("points",w),m})(r);break;case"snip2DiagRect":f=(function(v){var p=v.extend,m=xt("polygon"),b=Qt("adj1",v,0),C=Qt("adj2",v,ff(v)),w=[[b,0],[p.w-C,0],[p.w,C],[p.w,p.h-b],[p.w-b,p.h],[C,p.h],[0,p.h-C],[0,b]].map(function(B){return"".concat(B[0],",").concat(B[1])}).join(" ");return m.setAttribute("points",w),m})(r);break;case"snipRoundRect":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj1",v,ff(v)),C=Qt("adj2",v,ff(v)),w=["M ".concat(b,",0"),"L ".concat(p.w-C,",0"),"L ".concat(p.w,",").concat(C),"L ".concat(p.w,",").concat(p.h),"L 0,".concat(p.h),"L 0,".concat(b),"Q 0,0 ".concat(b,",0"),"Z"].join(" ");return m.setAttribute("d",w),m})(r);break;case"roundRect":f=(function(v){var p=fne(v),m=Qt("adj",v,ff(v));return p.setAttribute("rx",m+"px"),p.setAttribute("ry",m+"px"),p})(r);break;case"round1Rect":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj",v,ff(v)),C=["M 0,0","L ".concat(p.w-b,",0"),"Q ".concat(p.w,",0 ").concat(p.w,",").concat(b),"L ".concat(p.w,",").concat(p.h),"L 0,".concat(p.h),"Z"].join(" ");return m.setAttribute("d",C),m})(r);break;case"round2SameRect":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj1",v,ff(v)),C=Qt("adj2",v,0),w=["M ".concat(b,",0"),"L ".concat(p.w-b,",0"),"Q ".concat(p.w,",0 ").concat(p.w,",").concat(b),"L ".concat(p.w,",").concat(p.h-C),"Q ".concat(p.w,",").concat(p.h," ").concat(p.w-C,",").concat(p.h),"L ".concat(C,",").concat(p.h),"Q 0,".concat(p.h," 0,").concat(p.h-C),"L 0,".concat(b),"Q 0,0 ".concat(b,",0"),"Z"].join(" ");return m.setAttribute("d",w),m})(r);break;case"round2DiagRect":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj1",v,ff(v)),C=Qt("adj2",v,0),w=["M ".concat(b,",0"),"L ".concat(p.w-C,",0"),"Q ".concat(p.w,",0 ").concat(p.w,",").concat(C),"L ".concat(p.w,",").concat(p.h-b),"Q ".concat(p.w,",").concat(p.h," ").concat(p.w-b,",").concat(p.h),"L ".concat(C,",").concat(p.h),"Q 0,".concat(p.h," 0,").concat(p.h-C),"L 0,".concat(b),"Q 0,0 ".concat(b,",0"),"Z"].join(" ");return m.setAttribute("d",w),m})(r);break;case"triangle":f=(function(v){var p=v.extend,m=xt("polygon"),b=["".concat(p.w/2,",0"),"0,".concat(p.h),"".concat(p.w,",").concat(p.h)].join(" ");return m.setAttribute("points",b),m})(r);break;case"rtTriangle":f=(function(v){var p=v.extend,m=xt("polygon"),b=["0,".concat(p.h),"0,0","".concat(p.w,",").concat(p.h)].join(" ");return m.setAttribute("points",b),m})(r);break;case"ellipse":f=(function(v){var p=v.extend,m=xt("ellipse"),b=p.w/2,C=p.h/2,w=b,B=C;return m.setAttribute("cx",b+"px"),m.setAttribute("cy",C+"px"),m.setAttribute("rx",w+"px"),m.setAttribute("ry",B+"px"),m})(r);break;case"line":f=(function(v){var p=v.extend,m=xt("path"),b=["M 0,0","L ".concat(p.w,",").concat(p.h)].join(" ");return m.setAttribute("d",b),m})(r),Zy(r,h,f),d=!1;break;case"straightConnector1":f=(function(v){var p=v.extend,m=xt("path"),b=["M 0,0","L ".concat(p.w,",").concat(p.h)].join(" ");return m.setAttribute("d",b),m})(r),Zy(r,h,f),d=!1;break;case"bentConnector3":f=(function(v){var p=v.extend,m=xt("path"),b=ane("adj1",v,.5*Math.max(p.w,p.h)),C=["M 0,0","L ".concat(b,",0"),"L ".concat(b,",").concat(p.h),"L ".concat(p.w,",").concat(p.h)].join(" ");return m.setAttribute("d",C),m})(r),Zy(r,h,f),d=!1;break;case"curvedConnector3":f=(function(v){var p=v.extend,m=xt("path"),b=ane("adj1",v,.5*Math.max(p.w,p.h)),C=["M0,0","Q".concat(b,",0 ").concat(b,",").concat(p.h/2),"T".concat(p.w,",").concat(p.h)].join(" ");return m.setAttribute("d",C),m})(r),Zy(r,h,f),d=!1;break;case"parallelogram":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj",v,.5*Math.min(p.w,p.h)),C=["M".concat(b,",0"),"L".concat(p.w,",0"),"L".concat(p.w-b,",").concat(p.h),"L0,".concat(p.h),"Z"].join(" ");return m.setAttribute("d",C),m})(r),A=(function(v){var p=v.extend,m=Qt("adj",v,.5*Math.min(p.w,p.h)),b=.84*(p.w-m),C=.08*p.h+m/p.w*p.h*.42;return{top:C,bottom:C,left:(p.w-b)/2,right:(p.w-b)/2,w:b,h:p.h-2*C}})(r);break;case"trapezoid":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj",v,.25*Math.min(p.w,p.h)),C=["M".concat(b,",0"),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(p.h),"L0,".concat(p.h),"Z"].join(" ");return m.setAttribute("d",C),m})(r),A=(function(v){var p=v.extend,m=Qt("adj",v,.5*Math.min(p.w,p.h)),b=m/p.w*.66*p.h,C=.66*m;return{top:b,bottom:0,left:C,right:C,w:p.w-2*C,h:p.h-b}})(r);break;case"diamond":f=(function(v){var p=v.extend,m=xt("path"),b=["M".concat(p.w/2,",0"),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w/2,",").concat(p.h),"L0,".concat(p.h/2),"Z"].join(" ");return m.setAttribute("d",b),m})(r),A=(function(v){var p=v.extend,m=.25*p.h,b=.25*p.w;return{top:m,bottom:m,left:b,right:b,w:.5*p.w,h:.5*p.h}})(r);break;case"pentagon":f=(function(v){var p=v.extend,m=xt("path"),b=["M".concat(p.w/2,",0"),"L".concat(p.w,",").concat(.3771*p.h),"L".concat(.808*p.w,",").concat(p.h),"L".concat(.192*p.w,",").concat(p.h),"L0,".concat(.3771*p.h),"Z"].join(" ");return m.setAttribute("d",b),m})(r),A=(function(v){var p=v.extend,m=.227*p.h,b=.192*p.w;return{top:m,bottom:0,left:b,right:b,w:.616*p.w,h:.773*p.h}})(r);break;case"hexagon":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj",v,.25*Math.min(p.w,p.h)),C=["M".concat(b,",0"),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-b,",").concat(p.h),"L".concat(b,",").concat(p.h),"L0,".concat(p.h/2),"Z"].join(" ");return m.setAttribute("d",C),m})(r),A=(function(v){var p=v.extend,m=Qt("adj",v,.25*Math.min(p.w,p.h)),b=.098*p.h+m/p.w*.38*p.h,C=.088*p.w+.422*m;return{top:b,bottom:b,left:C,right:C,w:p.w-2*C,h:p.h-2*b}})(r);break;case"heptagon":f=(function(v){var p=v.extend,m=xt("path"),b=["M".concat(p.w/2,",0"),"L".concat(.9*p.w,",").concat(.2*p.h),"L".concat(p.w,",").concat(.642*p.h),"L".concat(.722*p.w,",").concat(p.h),"L".concat(.278*p.w,",").concat(p.h),"L0,".concat(.642*p.h),"L".concat(.1*p.w,",").concat(.2*p.h),"Z"].join(" ");return m.setAttribute("d",b),m})(r),A=(function(v){var p=v.extend;return{top:.2*p.h,bottom:.2*p.h,left:.1*p.w,right:.1*p.w,w:.8*p.w,h:.6*p.h}})(r);break;case"octagon":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj",v,.29*Math.min(p.w,p.h)),C=["M".concat(b,",0"),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(b),"L".concat(p.w,",").concat(p.h-b),"L".concat(p.w-b,",").concat(p.h),"L".concat(b,",").concat(p.h),"L0,".concat(p.h-b),"L0,".concat(b),"Z"].join(" ");return m.setAttribute("d",C),m})(r),A=(function(v){var p=v.extend,m=Qt("adj",v,.29*Math.min(p.w,p.h));return{top:.5*m,bottom:.5*m,left:.5*m,right:.5*m,w:p.w-m,h:p.h-m}})(r);break;case"decagon":f=(function(v){var p=v.extend,m=xt("path"),b=.344,C=.117,w=.19,B=["M".concat(p.w*b,",0"),"L".concat(.656*p.w,",0"),"L".concat(.883*p.w,",").concat(p.h*w),"L".concat(p.w,",").concat(.5*p.h),"L".concat(.883*p.w,",").concat(.81*p.h),"L".concat(.656*p.w,",").concat(p.h),"L".concat(p.w*b,",").concat(p.h),"L".concat(p.w*C,",").concat(.81*p.h),"L0,".concat(.5*p.h),"L".concat(p.w*C,",").concat(p.h*w),"Z"].join(" ");return m.setAttribute("d",B),m})(r),A=(function(v){var p=v.extend,m=.117,b=.19;return{top:p.h*b,bottom:p.h*b,left:p.w*m,right:p.w*m,w:.766*p.w,h:.62*p.h}})(r);break;case"dodecagon":f=(function(v){var p=v.extend,m=xt("path"),b=.364,C=.133,w=.135,B=["M".concat(p.w*b,",0"),"L".concat(.636*p.w,",0"),"L".concat(.867*p.w,",").concat(p.h*w),"L".concat(p.w,",").concat(p.h*b),"L".concat(p.w,",").concat(.636*p.h),"L".concat(.867*p.w,",").concat(.865*p.h),"L".concat(.636*p.w,",").concat(p.h),"L".concat(p.w*b,",").concat(p.h),"L".concat(p.w*C,",").concat(.865*p.h),"L0,".concat(.636*p.h),"L0,".concat(p.h*b),"L".concat(p.w*C,",").concat(p.h*w),"Z"].join(" ");return m.setAttribute("d",B),m})(r),A=(function(v){var p=v.extend,m=.133,b=.135;return{top:p.h*b,bottom:p.h*b,left:p.w*m,right:p.w*m,w:.734*p.w,h:.73*p.h}})(r);break;case"pie":f=(function(v){var p=v.extend,m=xt("path"),b=xr("adj1",v,360),C=xr("adj2",v,270),w=p.w/2,B=p.h/2,k=p.w/2,Q=p.h/2,x=Po(b,k,Q,w,B),L=x[0],O=x[1],W=Po(C,k,Q,w,B),M=W[0],J=W[1],G=$y(b,C),N="M".concat(k,",").concat(Q,", L").concat(L," ").concat(O," A ").concat(w," ").concat(B," 0 ").concat(G," ").concat(1," ").concat(M," ").concat(J," Z");return m.setAttribute("d",N),m})(r),A=em(r);break;case"arc":f=(function(v){var p=v.extend,m=xt("path"),b=xr("adj1",v,270),C=xr("adj2",v,0),w=p.w/2,B=p.h/2,k=p.w/2,Q=p.h/2,x=Po(b,k,Q,w,B),L=x[0],O=x[1],W=Po(C,k,Q,w,B),M=W[0],J=W[1],G=$y(b,C),N="M".concat(L,",").concat(O," A ").concat(w," ").concat(B," 0 ").concat(G," ").concat(1," ").concat(M," ").concat(J);return m.setAttribute("d",N),m})(r),d=!1;break;case"bracketPair":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj",v,.16667*Math.min(p.w,p.h)),C=["M".concat(b,",").concat(p.h),"Q".concat(0,",").concat(p.h," ").concat(0,",").concat(p.h-b),"L".concat(0,",").concat(b),"Q".concat(0,",").concat(0," ").concat(b,",").concat(0),"M".concat(p.w-b,",").concat(0),"Q".concat(p.w,",").concat(0," ").concat(p.w,",").concat(b),"L".concat(p.w,",").concat(p.h-b),"Q".concat(p.w,",").concat(p.h," ").concat(p.w-b,",").concat(p.h)].join(" ");return m.setAttribute("d",C),m})(r),A=(function(v){var p=v.extend,m=.285*Qt("adj",v,.16667*Math.min(p.w,p.h));return{top:m,bottom:m,left:m,right:m,w:p.w-2*m,h:p.h-2*m}})(r),d=!1;break;case"bracePair":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj",v,.083335*Math.min(p.w,p.h)),C=["M".concat(2*b,",").concat(p.h),"Q".concat(b,",").concat(p.h," ").concat(b,",").concat(p.h-b),"L".concat(b,",").concat(p.h/2+b),"Q".concat(b,",").concat(p.h/2," ").concat(0,",").concat(p.h/2),"Q".concat(b,",").concat(p.h/2," ").concat(b,",").concat(p.h/2-b),"L".concat(b,",").concat(b),"Q".concat(b,",").concat(0," ").concat(2*b,",").concat(0),"M".concat(p.w-2*b,",").concat(0),"Q".concat(p.w-b,",").concat(0," ").concat(p.w-b,",").concat(b),"L".concat(p.w-b,",").concat(p.h/2-b),"Q".concat(p.w-b,",").concat(p.h/2," ").concat(p.w,",").concat(p.h/2),"Q".concat(p.w-b,",").concat(p.h/2," ").concat(p.w-b,",").concat(p.h/2+b),"L".concat(p.w-b,",").concat(p.h-b),"Q".concat(p.w-b,",").concat(p.h," ").concat(p.w-2*b,",").concat(p.h)].join(" ");return m.setAttribute("d",C),m})(r),A=(function(v){var p=v.extend,m=.285*Qt("adj",v,.16667*Math.min(p.w,p.h));return{top:m,bottom:m,left:m,right:m,w:p.w-2*m,h:p.h-2*m}})(r),d=!1;break;case"chord":f=(function(v){var p=v.extend,m=xt("path"),b=xr("adj1",v,45),C=xr("adj2",v,270),w=p.w/2,B=p.h/2,k=p.w/2,Q=p.h/2,x=Po(b,k,Q,w,B),L=x[0],O=x[1],W=Po(C,k,Q,w,B),M=W[0],J=W[1],G=$y(b,C),N="M".concat(L," ").concat(O," A ").concat(w," ").concat(B," 0 ").concat(G," ").concat(1," ").concat(M," ").concat(J," Z");return m.setAttribute("d",N),m})(r),A=em(r);break;case"teardrop":f=(function(v){var p=v.extend,m=xt("path"),b=xr("adj",v,1),C=p.w/2,w=p.h/2,B=p.w/2,k=p.h/2,Q=Po(0,B,k,C,w),x=Q[0],L=Q[1],O=Po(270,B,k,C,w),W=O[0],M=O[1],J=$y(0,270),G="M".concat(x," ").concat(L," A ").concat(C," ").concat(w," 0 ").concat(J," ").concat(1," ").concat(W," ").concat(M),N=C*b,_=B+N,S=k-w*N/(p.w/2),Y=(p.w/2+_)/2,P=(p.h/2+S)/2;return G+=" Q".concat(Y,",0 ").concat(_,",").concat(S),G+=" Q".concat(p.w,",").concat(P," ").concat(B+C,",").concat(k),m.setAttribute("d",G),m})(r),A=em(r);break;case"frame":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj1",v,.12*Math.min(p.w,p.h)),C=["M0,0","L".concat(p.w,",0"),"L".concat(p.w,",").concat(p.h),"L0,".concat(p.h),"Z","M".concat(b,",").concat(b),"L".concat(b,",").concat(p.h-b),"L".concat(p.w-b,",").concat(p.h-b),"L".concat(p.w-b,",").concat(b),"Z"].join(" ");return m.setAttribute("d",C),m})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.12*Math.min(p.w,p.h));return{top:m,bottom:m,left:m,right:m,w:p.w-2*m,h:p.h-2*m}})(r);break;case"halfFrame":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj1",v,.333*Math.min(p.w,p.h)),C=Math.min(Qt("adj2",v,.333*Math.min(p.w,p.h)),p.w*(1-b/p.h)),w=["M0,0","L".concat(p.w,",0"),"L".concat(p.w*(1-b/p.h),",").concat(b),"L".concat(C,",").concat(b),"L".concat(C,",").concat(p.h*(1-C/p.w)),"L0,".concat(p.h),"Z"].join(" ");return m.setAttribute("d",w),m})(r);break;case"corner":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj1",v,.5*Math.min(p.w,p.h)),C=Qt("adj2",v,.5*Math.min(p.w,p.h)),w=["M0,0","L".concat(C,",0"),"L".concat(C,",").concat(p.h-b),"L".concat(p.w,",").concat(p.h-b),"L".concat(p.w,",").concat(p.h),"L0,".concat(p.h),"Z"].join(" ");return m.setAttribute("d",w),m})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h));return{top:p.h-m,bottom:0,left:0,right:0,w:p.w,h:m}})(r);break;case"diagStripe":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj",v,.5*Math.min(p.w,p.h)),C=p.w*b/p.h,w=["M".concat(C,",0"),"L".concat(p.w,",0"),"L0,".concat(p.h),"L0,".concat(b),"Z"].join(" ");return m.setAttribute("d",w),m})(r),A=(function(v){var p=v.extend,m=xr("adj",v,.5),b=.5*(1-m)*p.h,C=.5*(1-m)*p.w;return{top:0,bottom:b,left:0,right:C,w:p.w-C,h:p.h-b}})(r);break;case"plus":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj",v,.25*Math.min(p.w,p.h)),C=["M".concat(b,",0"),"L".concat(p.w-b,",0"),"L".concat(p.w-b,",").concat(b),"L".concat(p.w,",").concat(b),"L".concat(p.w,",").concat(p.h-b),"L".concat(p.w-b,",").concat(p.h-b),"L".concat(p.w-b,",").concat(p.h),"L".concat(b,",").concat(p.h),"L".concat(b,",").concat(p.h-b),"L0,".concat(p.h-b),"L0,".concat(b),"L".concat(b,",").concat(b),"Z"].join(" ");return m.setAttribute("d",C),m})(r),A=(function(v){var p=v.extend,m=Qt("adj",v,.25*Math.min(p.w,p.h));return{top:m,bottom:m,left:0,right:0,w:p.w,h:p.h-2*m}})(r);break;case"plaque":f=(function(v){var p=v.extend,m=xt("path"),b=Qt("adj",v,.16667*Math.min(p.w,p.h)),C=["M".concat(b,",0"),"L".concat(p.w-b,",0"),"Q".concat(p.w-b,",").concat(b," ").concat(p.w,",").concat(b),"L".concat(p.w,",").concat(p.h-b),"Q".concat(p.w-b,",").concat(p.h-b," ").concat(p.w-b,",").concat(p.h),"L".concat(b,",").concat(p.h),"Q".concat(b,",").concat(p.h-b," 0,").concat(p.h-b),"L0,".concat(b),"Q".concat(b,",").concat(b," ").concat(b,",0"),"Z"].join(" ");return m.setAttribute("d",C),m})(r),A=(function(v){var p=v.extend,m=Qt("adj",v,.16667*Math.min(p.w,p.h));return{top:.72*m,bottom:.72*m,left:.72*m,right:.72*m,w:p.w-1.44*m,h:p.w-1.44*m}})(r);break;case"can":f=(function(v){var p=v.extend,m=v.background,b=xt("g"),C=xt("path"),w=Qt("adj",v,.25*Math.min(p.w,p.h)),B=["M0,".concat(w/2),"L0,".concat(p.h-w/2),"A".concat(p.w/2,",").concat(w/2," 0 0 0 ").concat(p.w,",").concat(p.h-w/2),"L".concat(p.w,",").concat(w/2),"A".concat(p.w/2,",").concat(w/2," 0 0 1 0,").concat(w/2),"Z"].join(" ");C.setAttribute("d",B);var k=xt("ellipse"),Q=p.w/2,x=w/2,L=p.w/2,O=w/2;return k.setAttribute("cx",Q+"px"),k.setAttribute("cy",x+"px"),k.setAttribute("rx",L+"px"),k.setAttribute("ry",O+"px"),m?.type==="solidFill"&&k.setAttribute("fill",Tn(m,{light:.5})||"transparent"),b.appendChild(C),b.appendChild(k),b})(r),A=(function(v){var p=v.extend,m=Qt("adj",v,.25*Math.min(p.w,p.h));return{top:m,bottom:0,left:0,right:0,w:p.w,h:p.h-m}})(r);break;case"cube":f=(function(v){var p=v.extend,m=v.background,b=Qt("adj",v,.25*Math.min(p.w,p.h)),C=xt("g"),w=xt("path"),B=["M0,".concat(b),"L".concat(p.w-b,",").concat(b),"L".concat(p.w-b,",").concat(p.h),"L0,".concat(p.h),"Z"].join(" ");w.setAttribute("d",B);var k=xt("path"),Q=["M0,".concat(b),"L".concat(b,",0"),"L".concat(p.w,",0"),"L".concat(p.w-b,",").concat(b),"Z"].join(" ");k.setAttribute("d",Q),m?.type==="solidFill"&&k.setAttribute("fill",Tn(m,{light:.8})||"transparent");var x=xt("path"),L=["M".concat(p.w,",0"),"L".concat(p.w-b,",").concat(b),"L".concat(p.w-b,",").concat(p.h),"L".concat(p.w,",").concat(p.h-b),"Z"].join(" ");return x.setAttribute("d",L),m?.type==="solidFill"&&x.setAttribute("fill",Tn(m,{dark:.6})||"transparent"),C.appendChild(w),C.appendChild(k),C.appendChild(x),C})(r),A=(function(v){var p=v.extend,m=Qt("adj",v,.25*Math.min(p.w,p.h));return{top:m,bottom:0,left:0,right:m,w:p.w-m,h:p.h-m}})(r);break;case"bevel":f=(function(v){var p=v.extend,m=v.background,b=Qt("adj",v,.125*Math.min(p.w,p.h)),C=xt("g"),w=xt("path"),B=["M".concat(b,",").concat(b),"L".concat(p.w-b,",").concat(b),"L".concat(p.w-b,",").concat(p.h-b),"L".concat(b,",").concat(p.h-b),"Z"].join(" ");w.setAttribute("d",B);var k=xt("path"),Q=["M0,0","L".concat(b,",").concat(b),"L".concat(p.w-b,",").concat(b),"L".concat(p.w,",0"),"Z"].join(" ");k.setAttribute("d",Q),m?.type==="solidFill"&&k.setAttribute("fill",Tn(m,{light:.8})||"transparent");var x=xt("path"),L=["M".concat(p.w,",0"),"L".concat(p.w-b,",").concat(b),"L".concat(p.w-b,",").concat(p.h-b),"L".concat(p.w,",").concat(p.h),"Z"].join(" ");x.setAttribute("d",L),m?.type==="solidFill"&&x.setAttribute("fill",Tn(m,{dark:.6})||"transparent");var O=xt("path"),W=["M".concat(p.w,",").concat(p.h),"L".concat(p.w-b,",").concat(p.h-b),"L".concat(b,",").concat(p.h-b),"L0,".concat(p.h),"Z"].join(" ");O.setAttribute("d",W),m?.type==="solidFill"&&O.setAttribute("fill",Tn(m,{dark:.625})||"transparent");var M=xt("path"),J=["M0,".concat(p.h),"L".concat(b,",").concat(p.h-b),"L".concat(b,",").concat(b),"L0,0","Z"].join(" ");return M.setAttribute("d",J),m?.type==="solidFill"&&M.setAttribute("fill",Tn(m,{light:.6})||"transparent"),C.appendChild(w),C.appendChild(k),C.appendChild(x),C.appendChild(O),C.appendChild(M),C})(r),A=(function(v){var p=v.extend,m=Qt("adj",v,.125*Math.min(p.w,p.h));return{top:m,bottom:m,left:m,right:m,w:p.w-2*m,h:p.h-2*m}})(r);break;case"donut":f=(function(v){var p=v.extend,m=Qt("adj",v,.25*Math.min(p.w,p.h)),b=xt("path"),C=["M0,".concat(p.h/2),"A".concat(p.w/2,",").concat(p.h/2," 0 1,1 0,").concat(p.h/2+1),"Z","M".concat(p.w-m,",").concat(p.h/2),"A".concat(p.w/2-m,",").concat(p.h/2-m," 0 1,0 ").concat(p.w-m,",").concat(p.h/2+1),"Z"].join(" ");return b.setAttribute("d",C),b})(r),A=em(r);break;case"noSmoking":f=(function(v){var p=v.extend,m=Qt("adj",v,.25*Math.min(p.w,p.h)),b=xt("path"),C=Math.atan(p.h/p.w),w=m/2/Math.sin(C),B=p.w/2,k=p.h/2,Q=-1*p.h/p.w,x=p.h*w/p.w,L=p.w/2-m,O=p.h/2-m,W=-2*L*L*Q*x,M=Math.sqrt(Math.pow(2*L*L*Q*x,2)-4*(O*O+L*L*Q*Q)*L*L*(x*x-O*O)),J=2*(O*O+L*L*Q*Q),G=(W-M)/J,N=Q*G+x,_=(W+M)/J,S=Q*_+x,Y=-p.h*w/p.w,P=-2*L*L*Q*Y,U=Math.sqrt(Math.pow(2*L*L*Q*Y,2)-4*(O*O+L*L*Q*Q)*L*L*(Y*Y-O*O)),F=2*(O*O+L*L*Q*Q),T=(P-U)/F,R=Q*T+Y,V=(P+U)/F,re=Q*V+Y,oe=["M0,".concat(p.h/2),"A".concat(p.w/2,",").concat(p.h/2," 0 1,1 0,").concat(p.h/2+1),"Z","M".concat(B+_,",").concat(k-S),"A".concat(L,",").concat(O," 0 0 0 ").concat(B+G,",").concat(k-N),"Z","M".concat(B+T,",").concat(k-R),"A".concat(L,",").concat(O," 0 0 0 ").concat(B+V,",").concat(k-re),"Z"].join(" ");return b.setAttribute("d",oe),b})(r),A=em(r);break;case"rightArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=Qt("adj2",v,.5*Math.min(p.w,p.h)),C=xt("path"),w=["M0,".concat(p.h/2-m/2),"L".concat(p.w-b,",").concat(p.h/2-m/2),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-b,",").concat(p.h),"L".concat(p.w-b,",").concat(p.h/2+m/2),"L0,".concat(p.h/2+m/2),"Z"].join(" ");return C.setAttribute("d",w),C})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=m*Qt("adj2",v,.5*Math.min(p.w,p.h))/p.h;return{top:p.h/2-m/2,bottom:p.h/2-m/2,left:0,right:b,w:p.w-b,h:m}})(r);break;case"leftArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=Qt("adj2",v,.5*Math.min(p.w,p.h)),C=xt("path"),w=["M0,".concat(p.h/2),"L".concat(b,",0"),"L".concat(b,",").concat(p.h/2-m/2),"L".concat(p.w,",").concat(p.h/2-m/2),"L".concat(p.w,",").concat(p.h/2+m/2),"L".concat(b,",").concat(p.h/2+m/2),"L".concat(b,",").concat(p.h),"Z"].join(" ");return C.setAttribute("d",w),C})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=m*Qt("adj2",v,.5*Math.min(p.w,p.h))/p.h;return{top:p.h/2-m/2,bottom:p.h/2-m/2,left:b,right:0,w:p.w-b,h:m}})(r);break;case"upArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=Qt("adj2",v,.5*Math.min(p.w,p.h)),C=xt("path"),w=["M".concat(p.w/2,",0"),"L".concat(p.w,",").concat(b),"L".concat(p.w/2+m/2,",").concat(b),"L".concat(p.w/2+m/2,",").concat(p.h),"L".concat(p.w/2-m/2,",").concat(p.h),"L".concat(p.w/2-m/2,",").concat(b),"L0,".concat(b),"Z"].join(" ");return C.setAttribute("d",w),C})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=m*Qt("adj2",v,.5*Math.min(p.w,p.h))/p.w;return{top:b,bottom:0,left:p.w/2-m/2,right:p.w/2-m/2,w:m,h:p.h-b}})(r);break;case"downArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=Qt("adj2",v,.5*Math.min(p.w,p.h)),C=xt("path"),w=["M".concat(p.w/2,",").concat(p.h),"L0,".concat(p.h-b),"L".concat(p.w/2-m/2,",").concat(p.h-b),"L".concat(p.w/2-m/2,",0"),"L".concat(p.w/2+m/2,",0"),"L".concat(p.w/2+m/2,",").concat(p.h-b),"L".concat(p.w,",").concat(p.h-b),"Z"].join(" ");return C.setAttribute("d",w),C})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=m*Qt("adj2",v,.5*Math.min(p.w,p.h))/p.w;return{top:0,bottom:b,left:p.w/2-m/2,right:p.w/2-m/2,w:m,h:p.h-b}})(r);break;case"leftRightArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=Qt("adj2",v,.5*Math.min(p.w,p.h)),C=xt("path"),w=["M0,".concat(p.h/2),"L".concat(b,",0"),"L".concat(b,",").concat(p.h/2-m/2),"L".concat(p.w-b,",").concat(p.h/2-m/2),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-b,",").concat(p.h),"L".concat(p.w-b,",").concat(p.h/2+m/2),"L".concat(b,",").concat(p.h/2+m/2),"L".concat(b,",").concat(p.h),"Z"].join(" ");return C.setAttribute("d",w),C})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=m*Qt("adj2",v,.5*Math.min(p.w,p.h))/p.h;return{top:p.h/2-m/2,bottom:p.h/2-m/2,left:b,right:b,w:p.w-2*b,h:m}})(r);break;case"upDownArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=Qt("adj2",v,.5*Math.min(p.w,p.h)),C=xt("path"),w=["M".concat(p.w/2,",").concat(p.h),"L0,".concat(p.h-b),"L".concat(p.w/2-m/2,",").concat(p.h-b),"L".concat(p.w/2-m/2,",").concat(b),"L0,".concat(b),"L".concat(p.w/2,",0"),"L".concat(p.w,",").concat(b),"L".concat(p.w/2+m/2,",").concat(b),"L".concat(p.w/2+m/2,",").concat(p.h-b),"L".concat(p.w,",").concat(p.h-b),"Z"].join(" ");return C.setAttribute("d",w),C})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.5*Math.min(p.w,p.h)),b=m*Qt("adj2",v,.5*Math.min(p.w,p.h))/p.w;return{top:b,bottom:b,left:p.w/2-m/2,right:p.w/2-m/2,w:m,h:p.h-2*b}})(r);break;case"quadArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.225*Math.min(p.w,p.h)),b=Qt("adj2",v,.225*Math.min(p.w,p.h)),C=Qt("adj3",v,.225*Math.min(p.w,p.h)),w=xt("path"),B=["M0,".concat(p.h/2),"L".concat(C,",").concat(p.h/2-b),"L".concat(C,",").concat(p.h/2-m/2),"L".concat(p.w/2-m/2,",").concat(p.h/2-m/2),"L".concat(p.w/2-m/2,",").concat(C),"L".concat(p.w/2-b,",").concat(C),"L".concat(p.w/2,",0"),"L".concat(p.w/2+b,",").concat(C),"L".concat(p.w/2+m/2,",").concat(C),"L".concat(p.w/2+m/2,",").concat(p.h/2-m/2),"L".concat(p.w-C,",").concat(p.h/2-m/2),"L".concat(p.w-C,",").concat(p.h/2-b),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-C,",").concat(p.h/2+b),"L".concat(p.w-C,",").concat(p.h/2+m/2),"L".concat(p.w/2+m/2,",").concat(p.h/2+m/2),"L".concat(p.w/2+m/2,",").concat(p.h-C),"L".concat(p.w/2+b,",").concat(p.h-C),"L".concat(p.w/2,",").concat(p.h),"L".concat(p.w/2-b,",").concat(p.h-C),"L".concat(p.w/2-m/2,",").concat(p.h-C),"L".concat(p.w/2-m/2,",").concat(p.h/2+m/2),"L".concat(C,",").concat(p.h/2+m/2),"L".concat(C,",").concat(p.h/2+b),"Z"].join(" ");return w.setAttribute("d",B),w})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.225*Math.min(p.w,p.h)),b=Qt("adj2",v,.225*Math.min(p.w,p.h)),C=Qt("adj3",v,.225*Math.min(p.w,p.h)),w=b===0?0:m*C/b/2;return{top:p.h/2-m/2,bottom:p.h/2-m/2,left:w,right:w,w:p.w-2*w,h:m}})(r);break;case"leftRightUpArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.225*Math.min(p.w,p.h)),b=Qt("adj2",v,.225*Math.min(p.w,p.h)),C=Qt("adj3",v,.225*Math.min(p.w,p.h)),w=xt("path");m>2*b&&(m=2*b);var B=["M0,".concat(p.h-b),"L".concat(C,",").concat(p.h-2*b),"L".concat(C,",").concat(p.h-b-m/2),"L".concat(p.w/2-m/2,",").concat(p.h-b-m/2),"L".concat(p.w/2-m/2,",").concat(C),"L".concat(p.w/2-b,",").concat(C),"L".concat(p.w/2,",0"),"L".concat(p.w/2+b,",").concat(C),"L".concat(p.w/2+m/2,",").concat(C),"L".concat(p.w/2+m/2,",").concat(p.h-b-m/2),"L".concat(p.w-C,",").concat(p.h-b-m/2),"L".concat(p.w-C,",").concat(p.h-2*b),"L".concat(p.w,",").concat(p.h-b),"L".concat(p.w-C,",").concat(p.h),"L".concat(p.w-C,",").concat(p.h-b+m/2),"L".concat(C,",").concat(p.h-b+m/2),"L".concat(C,",").concat(p.h),"Z"].join(" ");return w.setAttribute("d",B),w})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.225*Math.min(p.w,p.h)),b=Qt("adj2",v,.225*Math.min(p.w,p.h)),C=Qt("adj3",v,.225*Math.min(p.w,p.h)),w=b===0?0:m*C/b/2;return{top:p.h-b-m/2,bottom:b-m/2,left:w,right:w,w:p.w-2*w,h:m}})(r);break;case"bentArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.25*Math.min(p.w,p.h)),b=Qt("adj2",v,.25*Math.min(p.w,p.h)),C=Qt("adj3",v,.25*Math.min(p.w,p.h)),w=Qt("adj4",v,.4375*Math.min(p.w,p.h)),B=xt("path");m>2*b&&(m=2*b);var k=w-m;k<0&&(k=0);var Q=["M0,".concat(p.h),"L0,".concat(b-m/2+w),"A".concat(w," ").concat(w," 0 0 1 ").concat(w," ").concat(b-m/2),"L".concat(p.w-C,",").concat(b-m/2),"L".concat(p.w-C,",0"),"L".concat(p.w,",").concat(b),"L".concat(p.w-C,",").concat(2*b),"L".concat(p.w-C,",").concat(b+m/2),"L".concat(m+k,",").concat(b+m/2),"A".concat(k," ").concat(k," 0 0 0 ").concat(m," ").concat(b+m/2+k),"L".concat(m,",").concat(p.h),"Z"].join(" ");return B.setAttribute("d",Q),B})(r);break;case"uturnArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.25*Math.min(p.w,p.h)),b=Qt("adj2",v,.25*Math.min(p.w,p.h)),C=Qt("adj3",v,.25*Math.min(p.w,p.h)),w=Qt("adj4",v,.4375*Math.min(p.w,p.h)),B=Qt("adj5",v,.75*Math.min(p.w,p.h)),k=xt("path");m>2*b&&(m=2*b),B<C&&(B=C+m),w>B-C&&(w=B-C);var Q=w-m;Q>B-C-m&&(Q=B-C-m),Q<0&&(Q=0);var x=b-m/2,L=["M0,".concat(p.h),"L0,".concat(w),"A".concat(w," ").concat(w," 0 0 1 ").concat(w," 0"),"L".concat(p.w-w-x,",0"),"A".concat(w," ").concat(w," 0 0 1 ").concat(p.w-x," ").concat(w),"L".concat(p.w-x,",").concat(B-C),"L".concat(p.w,",").concat(B-C),"L".concat(p.w-b,",").concat(B),"L".concat(p.w-2*b,",").concat(B-C),"L".concat(p.w-b-m/2,",").concat(B-C),"L".concat(p.w-b-m/2,",").concat(m+Q),"A".concat(Q," ").concat(Q," 0 0 0 ").concat(p.w-Q-b-m/2," ").concat(m),"L".concat(m+Q,",").concat(m),"A".concat(Q," ").concat(Q," 0 0 0 ").concat(m," ").concat(m+Q),"L".concat(m,",").concat(p.h),"Z"].join(" ");return k.setAttribute("d",L),k})(r);break;case"leftUpArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.25*Math.min(p.w,p.h)),b=Qt("adj2",v,.25*Math.min(p.w,p.h)),C=Qt("adj3",v,.25*Math.min(p.w,p.h));m>2*b&&(m=2*b);var w=Math.min(p.w,p.h)-2*b;C>w&&(C=w),C<0&&(C=0);var B=b-m/2,k=xt("path"),Q=["M0,".concat(p.h-b),"L".concat(C,",").concat(p.h-2*b),"L".concat(C,",").concat(p.h-b-m/2),"L".concat(p.w-b-m/2,",").concat(p.h-b-m/2),"L".concat(p.w-b-m/2,",").concat(C),"L".concat(p.w-2*b,",").concat(C),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(C),"L".concat(p.w-B,",").concat(C),"L".concat(p.w-B,",").concat(p.h-B),"L".concat(C,",").concat(p.h-B),"L".concat(C,",").concat(p.h),"Z"].join(" ");return k.setAttribute("d",Q),k})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.25*Math.min(p.w,p.h)),b=Qt("adj2",v,.25*Math.min(p.w,p.h)),C=Qt("adj3",v,.25*Math.min(p.w,p.h));m>2*b&&(m=2*b);var w=Math.min(p.w,p.h)-2*b;C>w&&(C=w),C<0&&(C=0);var B=b===0?0:m*C/b/2;return{top:p.h-b-m/2,bottom:b-m/2,left:B,right:b,w:p.w-B-b,h:m}})(r);break;case"bentUpArrow":f=(function(v){var p=v.extend,m=Qt("adj1",v,.25*Math.min(p.w,p.h)),b=Qt("adj2",v,.25*Math.min(p.w,p.h)),C=Qt("adj3",v,.25*Math.min(p.w,p.h));m>2*b&&(m=2*b);var w=Math.min(p.w,p.h)-2*b;C>w&&(C=w),C<0&&(C=0);var B=b-m/2,k=xt("path"),Q=["M0,".concat(p.h),"L0,".concat(p.h-m),"L".concat(p.w-b-m/2,",").concat(p.h-m),"L".concat(p.w-b-m/2,",").concat(C),"L".concat(p.w-2*b,",").concat(C),"L".concat(p.w-b,",0"),"L".concat(p.w,",").concat(C),"L".concat(p.w-B,",").concat(C),"L".concat(p.w-B,",").concat(p.h),"Z"].join(" ");return k.setAttribute("d",Q),k})(r),A=(function(v){var p=v.extend,m=Qt("adj1",v,.25*Math.min(p.w,p.h));return{top:p.h-m,bottom:0,left:0,right:0,w:p.w,h:m}})(r);break;case"curvedRightArrow":f=(function(v){var p=v.extend,m=v.background,b=Qt("adj1",v,.25*Math.min(p.w,p.h)),C=Qt("adj2",v,.5*Math.min(p.w,p.h)),w=Qt("adj3",v,.25*Math.min(p.w,p.h));b>C&&(b=C);var B=C/2-b/2,k=(p.h-C/2-b/2)/2,Q=(p.h-B-b)/2,x=xt("g"),L=xt("path"),O=["M".concat(p.w,",0"),"A ".concat(p.w," ").concat(k," 0 0 0 ").concat(0," ").concat(k),"L0,".concat(Q+b),"A ".concat(p.w," ").concat(Q," 0 0 1 ").concat(p.w," ").concat(b),"Z"].join(" ");L.setAttribute("d",O),m?.type==="solidFill"&&L.setAttribute("fill",Tn(m,{dark:.6})||"transparent");var W=xt("path"),M=["M0,".concat(k),"A ".concat(p.w," ").concat(k," 0 0 0 ").concat(p.w-w," ").concat(p.h-C/2-b/2),"L".concat(p.w-w,",").concat(p.h-C),"L".concat(p.w,",").concat(p.h-C/2),"L".concat(p.w-w,",").concat(p.h),"L".concat(p.w-w,",").concat(p.h-B),"A ".concat(p.w," ").concat(Q," 0 0 1 0 ").concat(b+Q),"Z"].join(" ");return W.setAttribute("d",M),x.appendChild(L),x.appendChild(W),x})(r);break;case"curvedLeftArrow":f=(function(v){var p=v.extend,m=v.background,b=Qt("adj1",v,.25*Math.min(p.w,p.h)),C=Qt("adj2",v,.5*Math.min(p.w,p.h)),w=Qt("adj3",v,.25*Math.min(p.w,p.h));b>C&&(b=C);var B=C/2-b/2,k=(p.h-C/2-b/2)/2,Q=(p.h-B-b)/2,x=xt("g"),L=xt("path"),O=["M0,".concat(p.h-C/2),"L".concat(w,",").concat(p.h-C),"L".concat(w,",").concat(p.h-C/2-b/2),"A".concat(p.w," ").concat(k," 0 0 0 ").concat(p.w," ").concat(k),"L".concat(p.w,",").concat(Q+b),"A ".concat(p.w," ").concat(Q," 0 0 1 ").concat(w," ").concat(p.h-B),"L".concat(w,",").concat(p.h),"Z"].join(" ");L.setAttribute("d",O);var W=xt("path"),M=["M0,0","A ".concat(p.w," ").concat(k," 0 0 1 ").concat(p.w," ").concat(k),"L".concat(p.w,",").concat(Q+b),"A ".concat(p.w," ").concat(Q," 0 0 0 ").concat(0," ").concat(b),"Z"].join(" ");return W.setAttribute("d",M),m?.type==="solidFill"&&W.setAttribute("fill",Tn(m,{dark:.6})||"transparent"),x.appendChild(L),x.appendChild(W),x})(r);break;case"curvedUpArrow":f=(function(v){var p=v.extend,m=v.background,b=Qt("adj1",v,.25*Math.min(p.w,p.h)),C=Qt("adj2",v,.5*Math.min(p.w,p.h)),w=Qt("adj3",v,.25*Math.min(p.w,p.h));b>C&&(b=C);var B=C/2-b/2,k=(p.w-C/2-b/2)/2,Q=(p.w-B-b)/2,x=xt("g"),L=xt("path"),O=["M".concat(p.w-C/2,",").concat(0),"L".concat(p.w-C,",").concat(w),"L".concat(p.w-C/2-b/2,",").concat(w),"A".concat(k," ").concat(p.h," 0 0 1 ").concat(k," ").concat(p.h),"L".concat(k+b,",").concat(p.h),"A".concat(Q," ").concat(p.h," 0 0 0 ").concat(p.w-B," ").concat(w),"L".concat(p.w,",").concat(w),"Z"].join(" ");L.setAttribute("d",O);var W=xt("path"),M=["M".concat(b,",0"),"L".concat(0,",").concat(0),"A ".concat(k," ").concat(p.h," 0 0 0 ").concat(k," ").concat(p.h),"L".concat(k+b,",").concat(p.h),"A ".concat(Q," ").concat(p.h," 0 0 1 ").concat(b," ").concat(0),"Z"].join(" ");return W.setAttribute("d",M),m?.type==="solidFill"&&W.setAttribute("fill",Tn(m,{dark:.6})||"transparent"),x.appendChild(L),x.appendChild(W),x})(r);break;case"curvedDownArrow":f=(function(v){var p=v.extend,m=v.background,b=Qt("adj1",v,.25*Math.min(p.w,p.h)),C=Qt("adj2",v,.5*Math.min(p.w,p.h)),w=Qt("adj3",v,.25*Math.min(p.w,p.h));b>C&&(b=C);var B=C/2-b/2,k=(p.w-C/2-b/2)/2,Q=(p.w-B-b)/2,x=xt("g"),L=xt("path"),O=["M".concat(0,",").concat(p.h),"L".concat(b,",").concat(p.h),"A".concat(Q," ").concat(p.h," 0 0 1 ").concat(Q+b," ").concat(0),"L".concat(k,",").concat(0),"A".concat(k," ").concat(p.h," 0 0 0 ").concat(0," ").concat(p.h),"Z"].join(" ");L.setAttribute("d",O),m?.type==="solidFill"&&L.setAttribute("fill",Tn(m,{dark:.6})||"transparent");var W=xt("path"),M=["M".concat(p.w-C/2,",").concat(p.h),"L".concat(p.w-C,",").concat(p.h-w),"L".concat(p.w-C/2-b/2,",").concat(p.h-w),"A ".concat(k," ").concat(p.h," 0 0 0 ").concat(k," ").concat(0),"L".concat(k+b,",").concat(0),"A ".concat(Q," ").concat(p.h," 0 0 1 ").concat(p.w-B," ").concat(p.h-w),"L".concat(p.w,",").concat(p.h-w),"Z"].join(" ");return W.setAttribute("d",M),x.appendChild(L),x.appendChild(W),x})(r);break;case"stripedRightArrow":f=(function(v){var p=v.extend,m=xt("g"),b=Math.min(p.w,p.h),C=xr("adj1",v,.5)*p.h,w=xr("adj2",v,.5)*b,B=b/8,k=b/16,Q=b/32,x=5*b/32,L=p.h/2-C/2,O=p.h/2+C/2,W=xt("path");W.setAttribute("d",["M".concat(0,",").concat(L),"L".concat(Q,",").concat(L),"L".concat(Q,",").concat(O),"L".concat(0,",").concat(O),"Z"].join(" "));var M=xt("path");M.setAttribute("d",["M".concat(k,",").concat(L),"L".concat(B,",").concat(L),"L".concat(B,",").concat(O),"L".concat(k,",").concat(O),"Z"].join(" "));var J=xt("path"),G=["M".concat(x,",").concat(L),"L".concat(p.w-w,",").concat(L),"L".concat(p.w-w,",").concat(0),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-w,",").concat(p.h),"L".concat(p.w-w,",").concat(O),"L".concat(x,",").concat(O),"Z"].join(" ");return J.setAttribute("d",G),m.appendChild(J),m.appendChild(W),m.appendChild(M),m})(r),A=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj1",v,.5)*p.h,C=b*(xr("adj2",v,.5)*m)/p.h;return{top:p.h/2-b/2,bottom:p.h/2-b/2,left:0,right:C,w:p.w-C,h:b}})(r);break;case"notchedRightArrow":f=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj1",v,.5)*p.h,C=xr("adj2",v,.5)*m,w=b*C/p.h,B=p.h/2-b/2,k=p.h/2+b/2,Q=xt("path"),x=["M".concat(0,",").concat(B),"L".concat(p.w-C,",").concat(B),"L".concat(p.w-C,",").concat(0),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-C,",").concat(p.h),"L".concat(p.w-C,",").concat(k),"L".concat(0,",").concat(k),"L".concat(w,",").concat(p.h/2),"Z"].join(" ");return Q.setAttribute("d",x),Q})(r),A=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj1",v,.5)*p.h,C=xr("adj2",v,.5)*m,w=b*C/p.h,B=b*C/p.h;return{top:p.h/2-b/2,bottom:p.h/2-b/2,left:w,right:B,w:p.w-w-B,h:b}})(r);break;case"homePlate":f=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj",v,.5)*m,C=xt("path"),w=["M".concat(0,",").concat(0),"L".concat(p.w-b,",").concat(0),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-b,",").concat(p.h),"L".concat(0,",").concat(p.h),"Z"].join(" ");return C.setAttribute("d",w),C})(r),A=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj",v,.5)*m;return{top:0,bottom:0,left:0,right:b/2,w:p.w-b/2,h:p.h}})(r);break;case"chevron":f=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj",v,.5)*m,C=xt("path"),w=["M".concat(0,",").concat(0),"L".concat(p.w-b,",").concat(0),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-b,",").concat(p.h),"L".concat(0,",").concat(p.h),"L".concat(b,",").concat(p.h/2),"Z"].join(" ");return C.setAttribute("d",w),C})(r),A=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj",v,.5)*m;return{top:0,bottom:0,left:b,right:b,w:p.w-2*b,h:p.h}})(r);break;case"blockArc":f=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xt("path"),C=xr("adj1",v,180),w=xr("adj2",v,0),B=Qt("adj3",v,.25*m),k=p.w/2,Q=p.h/2,x=p.w/2,L=p.h/2,O=p.w/2-B,W=p.h/2-B,M=Po(C,k,Q,x,L),J=M[0],G=M[1],N=Po(w,k,Q,x,L),_=N[0],S=N[1],Y=Po(C,k,Q,O,W),P=Y[0],U=Y[1],F=Po(w,k,Q,O,W),T=F[0],R=F[1],V=$y(C,w),re=["M".concat(J,",").concat(G),"A".concat(x," ").concat(L," 0 ").concat(V," 1 ").concat(_," ").concat(S),"L".concat(T,",").concat(R),"A".concat(O," ").concat(W," 0 ").concat(V," 0 ").concat(P," ").concat(U),"Z"].join(" ");return b.setAttribute("d",re),b})(r),A=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj1",v,180),C=xr("adj2",v,0),w=Qt("adj3",v,.25*m),B=p.w/2,k=p.h/2,Q=p.w/2,x=p.h/2,L=p.w/2-w,O=p.h/2-w,W=Po(b,B,k,Q,x),M=W[0],J=W[1],G=Po(C,B,k,Q,x),N=G[0],_=G[1],S=Po(b,B,k,L,O),Y=S[0],P=S[1],U=Po(C,B,k,L,O),F=[[M,J],[N,_],[Y,P],[U[0],U[1]]];F.push(),b>C&&F.push([p.w,p.h/2]),(C>180&&C<=360&&b<180||b>C&&C>=0&&C<180&&b<180)&&F.push([0,p.h/2]),(b<C&&b<90&&C>90||b>C&&C>90||b>C&&b<90)&&F.push([p.w/2,p.h]),(b<C&&b<270&&C>270||b>C&&C>270||b>C&&b<270)&&F.push([p.w/2,0]);var T=1/0,R=1/0,V=-1/0,re=-1/0;return F.forEach(function(oe){T=Math.min(oe[0],T),R=Math.min(oe[1],R),V=Math.max(oe[0],V),re=Math.max(oe[1],re)}),{top:R,bottom:p.h-re,left:T,right:p.w-V,w:V-T,h:re-R}})(r);break;case"foldedCorner":f=(function(v){var p=v.extend,m=v.background,b=xt("g"),C=xt("path"),w=Qt("adj",v,.16667*Math.min(p.w,p.h)),B=["M0,0","L".concat(p.w,",0"),"L".concat(p.w,",").concat(p.h-w),"L".concat(p.w-w,",").concat(p.h),"L".concat(0,",").concat(p.h),"Z"].join(" ");C.setAttribute("d",B);var k=w*Math.cos(Math.PI/4)/Math.cos(Math.PI/6)*Math.cos(75/180*Math.PI),Q=xt("path"),x=["M".concat(p.w-w+k,", ").concat(p.h-w+k),"L".concat(p.w,",").concat(p.h-w),"L".concat(p.w-w,",").concat(p.h),"Z"].join(" ");return Q.setAttribute("d",x),m?.type==="solidFill"&&Q.setAttribute("fill",Tn(m,{dark:.6})||"transparent"),b.appendChild(C),b.appendChild(Q),b})(r),A=(function(v){var p=v.extend,m=Qt("adj",v,.16667*Math.min(p.w,p.h));return{top:0,bottom:m,left:0,right:0,w:p.w,h:p.h-m}})(r);break;case"rightArrowCallout":f=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj1",v,.25)*m,C=xr("adj2",v,.25)*m,w=xr("adj3",v,.25)*m,B=xr("adj4",v,.64977)*p.w,k=xt("path"),Q=["M".concat(0,",").concat(0),"L".concat(B,",").concat(0),"L".concat(B,",").concat(p.h/2-b/2),"L".concat(p.w-w,",").concat(p.h/2-b/2),"L".concat(p.w-w,",").concat(p.h/2-C),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-w,",").concat(p.h/2+C),"L".concat(p.w-w,",").concat(p.h/2+b/2),"L".concat(B,",").concat(p.h/2+b/2),"L".concat(B,",").concat(p.h),"L".concat(0,",").concat(p.h),"Z"].join(" ");return k.setAttribute("d",Q),k})(r),A=(function(v){var p=v.extend,m=xr("adj4",v,.64977)*p.w;return{top:0,bottom:0,left:0,right:p.w-m,w:m,h:p.h}})(r);break;case"leftArrowCallout":f=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj1",v,.25)*m,C=xr("adj2",v,.25)*m,w=xr("adj3",v,.25)*m,B=xr("adj4",v,.64977)*p.w,k=xt("path"),Q=["M".concat(0,",").concat(p.h/2),"L".concat(w,",").concat(p.h/2-C),"L".concat(w,",").concat(p.h/2-b/2),"L".concat(p.w-B,",").concat(p.h/2-b/2),"L".concat(p.w-B,",").concat(0),"L".concat(p.w,",").concat(0),"L".concat(p.w,",").concat(p.h),"L".concat(p.w-B,",").concat(p.h),"L".concat(p.w-B,",").concat(p.h/2+b/2),"L".concat(w,",").concat(p.h/2+b/2),"L".concat(w,",").concat(p.h/2+C),"Z"].join(" ");return k.setAttribute("d",Q),k})(r),A=(function(v){var p=v.extend,m=xr("adj4",v,.64977)*p.w;return{top:0,bottom:0,left:p.w-m,right:0,w:m,h:p.h}})(r);break;case"upArrowCallout":f=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj1",v,.25)*m,C=xr("adj2",v,.25)*m,w=xr("adj3",v,.25)*m,B=xr("adj4",v,.64977)*p.h,k=xt("path"),Q=["M".concat(0,",").concat(p.h-B),"L".concat(p.w/2-b/2,",").concat(p.h-B),"L".concat(p.w/2-b/2,",").concat(w),"L".concat(p.w/2-C,",").concat(w),"L".concat(p.w/2,",").concat(0),"L".concat(p.w/2+C,",").concat(w),"L".concat(p.w/2+b/2,",").concat(w),"L".concat(p.w/2+b/2,",").concat(p.h-B),"L".concat(p.w,",").concat(p.h-B),"L".concat(p.w,",").concat(p.h),"L".concat(0,",").concat(p.h),"Z"].join(" ");return k.setAttribute("d",Q),k})(r),A=(function(v){var p=v.extend,m=xr("adj4",v,.64977)*p.h;return{top:p.h-m,bottom:0,left:0,right:0,w:p.w,h:m}})(r);break;case"downArrowCallout":f=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj1",v,.25)*m,C=xr("adj2",v,.25)*m,w=xr("adj3",v,.25)*m,B=xr("adj4",v,.64977)*p.h,k=xt("path"),Q=["M".concat(0,",").concat(0),"L".concat(p.w,",").concat(0),"L".concat(p.w,",").concat(B),"L".concat(p.w/2+b/2,",").concat(B),"L".concat(p.w/2+b/2,",").concat(p.h-w),"L".concat(p.w/2+C,",").concat(p.h-w),"L".concat(p.w/2,",").concat(p.h),"L".concat(p.w/2-C,",").concat(p.h-w),"L".concat(p.w/2-b/2,",").concat(p.h-w),"L".concat(p.w/2-b/2,",").concat(B),"L".concat(0,",").concat(B),"Z"].join(" ");return k.setAttribute("d",Q),k})(r),A=(function(v){var p=v.extend,m=xr("adj4",v,.64977)*p.h;return{top:0,bottom:p.h-m,left:0,right:0,w:p.w,h:m}})(r);break;case"leftRightArrowCallout":f=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj1",v,.25)*m,C=xr("adj2",v,.25)*m,w=xr("adj3",v,.25)*m,B=xr("adj4",v,.48123)*p.w,k=xt("path"),Q=["M".concat(0,",").concat(p.h/2),"L".concat(w,",").concat(p.h/2-C),"L".concat(w,",").concat(p.h/2-b/2),"L".concat(p.w/2-B/2,",").concat(p.h/2-b/2),"L".concat(p.w/2-B/2,",").concat(0),"L".concat(p.w/2+B/2,",").concat(0),"L".concat(p.w/2+B/2,",").concat(p.h/2-b/2),"L".concat(p.w-w,",").concat(p.h/2-b/2),"L".concat(p.w-w,",").concat(p.h/2-C),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-w,",").concat(p.h/2+C),"L".concat(p.w-w,",").concat(p.h/2+b/2),"L".concat(p.w/2+B/2,",").concat(p.h/2+b/2),"L".concat(p.w/2+B/2,",").concat(p.h),"L".concat(p.w/2-B/2,",").concat(p.h),"L".concat(p.w/2-B/2,",").concat(p.h/2+b/2),"L".concat(w,",").concat(p.h/2+b/2),"L".concat(w,",").concat(p.h/2+C),"Z"].join(" ");return k.setAttribute("d",Q),k})(r),A=(function(v){var p=v.extend,m=xr("adj4",v,.48123)*p.w;return{top:0,bottom:0,left:p.w/2-m/2,right:p.w/2-m/2,w:m,h:p.h}})(r);break;case"quadArrowCallout":f=(function(v){var p=v.extend,m=Math.min(p.w,p.h),b=xr("adj1",v,.18515)*m,C=xr("adj2",v,.18515)*m,w=xr("adj3",v,.18515)*m,B=xr("adj4",v,.48123)*p.w,k=xr("adj4",v,.48123)*p.h,Q=xt("path"),x=["M".concat(0,",").concat(p.h/2),"L".concat(w,",").concat(p.h/2-C),"L".concat(w,",").concat(p.h/2-b/2),"L".concat(p.w/2-B/2,",").concat(p.h/2-b/2),"L".concat(p.w/2-B/2,",").concat(p.h/2-k/2),"L".concat(p.w/2-b/2,",").concat(p.h/2-k/2),"L".concat(p.w/2-b/2,",").concat(w),"L".concat(p.w/2-C,",").concat(w),"L".concat(p.w/2,",").concat(0),"L".concat(p.w/2+C,",").concat(w),"L".concat(p.w/2+b/2,",").concat(w),"L".concat(p.w/2+b/2,",").concat(p.h/2-k/2),"L".concat(p.w/2+B/2,",").concat(p.h/2-k/2),"L".concat(p.w/2+B/2,",").concat(p.h/2-b/2),"L".concat(p.w-w,",").concat(p.h/2-b/2),"L".concat(p.w-w,",").concat(p.h/2-C),"L".concat(p.w,",").concat(p.h/2),"L".concat(p.w-w,",").concat(p.h/2+C),"L".concat(p.w-w,",").concat(p.h/2+b/2),"L".concat(p.w/2+B/2,",").concat(p.h/2+b/2),"L".concat(p.w/2+B/2,",").concat(p.h/2+k/2),"L".concat(p.w/2+b/2,",").concat(p.h/2+k/2),"L".concat(p.w/2+b/2,",").concat(p.h-w),"L".concat(p.w/2+C,",").concat(p.h-w),"L".concat(p.w/2,",").concat(p.h),"L".concat(p.w/2-C,",").concat(p.h-w),"L".concat(p.w/2-b/2,",").concat(p.h-w),"L".concat(p.w/2-b/2,",").concat(p.h/2+k/2),"L".concat(p.w/2-B/2,",").concat(p.h/2+k/2),"L".concat(p.w/2-B/2,",").concat(p.h/2+b/2),"L".concat(w,",").concat(p.h/2+b/2),"L".concat(w,",").concat(p.h/2+C),"Z"].join(" ");return Q.setAttribute("d",x),Q})(r),A=(function(v){var p=v.extend,m=xr("adj4",v,.48123)*p.w,b=xr("adj4",v,.48123)*p.h;return{top:p.h/2-b/2,bottom:p.h/2-b/2,left:p.w/2-m/2,right:p.w/2-m/2,w:m,h:b}})(r)}f&&(d?i?.type==="blipFill"?(function(v,p,m){var b=v.background,C=b===void 0?{}:b,w=v.extend,B=C.base64,k=C.alpha,Q=C.fillRect,x=Q===void 0?{}:Q,L=x.b,O=L===void 0?0:L,W=x.t,M=W===void 0?0:W,J=x.l,G=J===void 0?0:J,N=x.r,_=N===void 0?0:N,S=xt("defs"),Y=xt("pattern");Y.setAttribute("id","background_"+v.uuid),Y.setAttribute("patternUnits","userSpaceOnUse"),Y.setAttribute("width",w.w+""),Y.setAttribute("height",w.h+"");var P=xt("image");P.setAttribute("href",B),P.setAttribute("preserveAspectRatio","none");var U=w.w*G,F=w.h*M,T=w.w*(1-G-_),R=w.h*(1-M-O);P.setAttribute("width",T+""),P.setAttribute("height",R+""),P.setAttribute("x",U+""),P.setAttribute("y",F+""),typeof k=="number"&&P.setAttribute("opacity",k+""),Y.appendChild(P),S.appendChild(Y),p.appendChild(S),m.setAttribute("fill","url(#background_".concat(v.uuid,")"))})(r,h,f):i?.type==="gradFill"?(function(v,p,m){var b=v.background,C=b===void 0?{}:b;v.extend;var w=C.gsList,B=C.lin,k=C.path,Q=C.tileRect,x=Q===void 0?{}:Q,L=xt("defs"),O=xt(k==="circle"?"radialGradient":"linearGradient");O.setAttribute("id","background_grad_fill_"+v.uuid);var W=w||[];if(W.sort(function(_,S){return _.pos-S.pos}),W.forEach(function(_){var S=xt("stop");S.setAttribute("offset","".concat(100*_.pos,"%")),S.setAttribute("stop-color",Tn(_.color)),O.appendChild(S)}),k==="circle"){var M=x.r,J=x.l,G=x.t,N=x.b;M===-1?O.setAttribute("cx","100%"):J===-1&&O.setAttribute("cx","0%"),G===-1?O.setAttribute("cy","0%"):N===-1&&O.setAttribute("cy","100%")}else B!=null&&B.ang&&O.setAttribute("gradientTransform","rotate(".concat(B.ang,")"));L.appendChild(O),p.appendChild(L),m.setAttribute("fill","url(#background_grad_fill_".concat(v.uuid,")"))})(r,h,f):f.setAttribute("fill",Tn(i)||"transparent"):f.setAttribute("fill","transparent"),n.width?(f.setAttribute("stroke-width",n.width+"px"),f.setAttribute("stroke",Tn(n.color)||"transparent")):f.setAttribute("stroke-width","0"),f.setAttribute("stroke-dasharray",(function(v){return v&&v.type!=="solid"?({sysDot:[1,1],sysDash:[3,1],dash:[4,3],dashDot:[4,3,1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3]}[v.type]||[]).map(function(p){return p*v.width}).join(","):""})(n)),f.setAttribute("stroke-linecap",n.cap&&{sq:"square",rnd:"round",flat:"butt"}[n.cap]||"square"),f.setAttribute("stroke-linejoin",n.lineJoin||"round"),n.lineJoin==="miter"&&f.setAttribute("stroke-miterlimit",n.miterLim+""),h.appendChild(f));var g=[];o&&g.push("scaleX(-1)"),s&&g.push("scaleY(-1)"),h.style.setProperty("transform",g.join(" ")),l.appendChild(h);var y=(function(v,p,m){var b;m===void 0&&(m=!1);var C=v.inheritProps,w=v.props,B=v.paragraphs;if(!B||B.length===0)return null;var k=jt(jt({},C),w),Q=document.createElement("div");switch(Q.className="text-wrapper",Q.style.boxSizing="border-box",Q.style.position="absolute",Q.style.left=p.left+"px",k.vert==="eaVert"?(Q.style.writingMode="vertical-rl",Q.style.height=p.h+"px"):Q.style.width=p.w+"px",k.anchor){case"b":Q.style.bottom=p.bottom+"px";break;case"t":Q.style.top=p.top+"px";break;case"ctr":Q.style.top=p.top+p.h/2+"px",Q.style.transform="translateY(-50%)";break;default:m?Q.style.top=p.top+"px":(Q.style.top=p.top+p.h/2+"px",Q.style.transform="translateY(-50%)")}var x=[k.hasOwnProperty("tIns")?Math.floor(k.tIns)+"px":"3px",k.hasOwnProperty("rIns")?Math.floor(k.rIns)+"px":"5px",k.hasOwnProperty("bIns")?Math.floor(k.bIns)+"px":"3px",k.hasOwnProperty("lIns")?Math.floor(k.lIns)+"px":"5px"];Q.style.padding=x.join(" ");for(var L={},O=0,W=function(G){var N=jt(jt({},G.inheritProps),G.props),_=void 0;if(N.buAutoNum){var S=N.level?+N.level:0;L[S]||(L[S]=0),!((b=G.rows)===null||b===void 0)&&b.length&&L[S]++,Object.keys(L).forEach(function(Y){+Y>S&&(L[Y]=0)}),_=tB(G,L[S],{isFirst:O===0,isLast:B.length-1===O,bodyProps:k})}else _=tB(G,0,{isFirst:O===0,isLast:B.length-1===O,bodyProps:k});Q.appendChild(_),O++},M=0,J=B;M<J.length;M++)W(J[M]);return Q})(r.textBody,A,r.isTextBox);return y&&l.appendChild(y),a&&l.style.setProperty("transform","rotate(".concat(a,"deg)")),l}function hne(r){var t=document.createElement("div"),e=r.extend;r.chExtend;var n=r.offset;r.chOffset;var i=r.flipV,a=r.flipH,o=r.rotate,s=n.x,l=n.y,c=e.w,u=e.h;t.className="group",t.style.position="absolute",t.style.left=s+"px",t.style.top=l+"px",t.style.width=c+"px",t.style.height=u+"px";var f=[];a&&f.push("scaleX(-1)"),i&&f.push("scaleY(-1)"),o&&f.push("rotate(".concat(o,"deg)")),t.style.transformOrigin="center center",t.style.transform=f.join(" ");for(var h=0;h<r.nodes.length;h++){var A=r.nodes[h],d=void 0;A instanceof eB?d=C8(A):A instanceof qy?d=w8(A):A instanceof b8&&(d=hne(A)),t.appendChild(d)}return t}var hf={};function Ane(r,t){if(hf[r])for(var e=0;e<hf[r].length;e++)hf[r][e](t)}function dne(r,t){hf[r]&&(hf[r]=hf[r].filter(function(e){return e!==t}))}function utt(r){var t=document.createElement("div"),e=r.extend,n=r.offset,i=r.flipV,a=r.flipH,o=r.rotate,s=r.options,l=n.x,c=n.y,u=e.w,f=e.h;t.className="chart-node",t.style.position="absolute",t.style.left=l+"px",t.style.top=c+"px",t.style.width=u+"px",t.style.height=f+"px";var h=[];return a&&h.push("scaleX(-1)"),i&&h.push("scaleY(-1)"),o&&h.push("rotate(".concat(o,"deg)")),t.style.transformOrigin="center center",t.style.transform=h.join(" "),setTimeout(function(){var A,d,g=VPe(t,null,{renderer:"svg"});g.setOption(s),d=function(){g&&g.dispose(),g&&(g=null)},hf[A="destroy"]||(hf[A]=[]),hf[A].push(d)},0),t}var ftt=(function(){function r(t,e,n){this.scale=1,this.wrapper=t,this.pptx=e,this.options=n,this._calcScaleAndRenderPort()}return r.prototype._calcScaleAndRenderPort=function(){var t=this.options.viewPort.width/this.pptx.width;this.scale=t;var e=this.options.viewPort.width,n=this.pptx.height*this.scale;this.renderPort={width:e,height:n,left:0,top:0}},r.prototype.renderSlide=function(t){var e=this.pptx.slides[t],n=document.createElement("div");n.classList.add("pptx-preview-slide-wrapper"),n.style.setProperty("width",this.renderPort.width+"px"),n.style.setProperty("height",this.renderPort.height+"px"),n.style.setProperty("position","relative"),n.style.margin="0 auto 10px",n.style.setProperty("background","#fff"),n.style.setProperty("overflow","hidden"),this._renderBackground(e,n),this._renderSlideMaster(e.slideMaster,n),this._renderSlideLayout(e.slideLayout,n),this._renderSlide(e,n),this.wrapper.append(n)},r.prototype._renderSlideMaster=function(t,e){var n=document.createElement("div");n.classList.add("slide-master-wrapper"),n.style.setProperty("position","absolute"),n.style.setProperty("left","0"),n.style.setProperty("top","0"),n.style.setProperty("width",this.pptx.width+"px"),n.style.setProperty("height",this.pptx.height+"px"),n.style.setProperty("transform","scale(".concat(this.scale,")")),n.style.setProperty("transform-origin","0 0");var i=Kv([],t.nodes).filter(function(s){return s.userDrawn});i.sort(function(s,l){return s.order>l.order?1:-1});for(var a=0;a<i.length;a++){var o=this._renderNode(i[a]);o&&n.append(o)}e.append(n)},r.prototype._renderSlideLayout=function(t,e){var n=document.createElement("div");n.classList.add("slide-layout-wrapper"),n.style.setProperty("position","absolute"),n.style.setProperty("left","0"),n.style.setProperty("top","0"),n.style.setProperty("width",this.pptx.width+"px"),n.style.setProperty("height",this.pptx.height+"px"),n.style.setProperty("transform","scale(".concat(this.scale,")")),n.style.setProperty("transform-origin","0 0");var i=Kv([],t.nodes).filter(function(s){return s.userDrawn});i.sort(function(s,l){return s.order>l.order?1:-1});for(var a=0;a<i.length;a++){var o=this._renderNode(i[a]);o&&n.append(o)}e.append(n)},r.prototype._renderSlide=function(t,e){var n=document.createElement("div");n.classList.add("slide-wrapper"),n.style.setProperty("position","absolute"),n.style.setProperty("left","0"),n.style.setProperty("top","0"),n.style.setProperty("width",this.pptx.width+"px"),n.style.setProperty("height",this.pptx.height+"px"),n.style.setProperty("transform","scale(".concat(this.scale,")")),n.style.setProperty("transform-origin","0 0");var i=Kv([],t.nodes);i.sort(function(s,l){return s.order>l.order?1:-1});for(var a=0;a<i.length;a++){var o=this._renderNode(i[a]);o&&n.append(o)}e.append(n)},r.prototype._renderNode=function(t){return t instanceof eB?C8(t):t instanceof qy?w8(t):t instanceof b8?hne(t):t instanceof ene?(function(e){var n=document.createElement("div"),i=e.extend,a=e.offset,o=e.flipV,s=e.flipH,l=e.rotate,c=a.x,u=a.y,f=i.w,h=i.h;n.className="smart-chart-diagram",n.style.position="absolute",n.style.left=c+"px",n.style.top=u+"px",n.style.width=f+"px",n.style.height=h+"px";var A=[];s&&A.push("scaleX(-1)"),o&&A.push("scaleY(-1)"),l&&A.push("rotate(".concat(l,"deg)")),n.style.transformOrigin="center center",n.style.transform=A.join(" ");for(var d=0;d<e.nodes.length;d++){var g=e.nodes[d],y=void 0;g instanceof eB?y=C8(g):g instanceof qy&&(y=w8(g)),n.appendChild(y)}return n})(t):t instanceof $re?(function(e){var n=e.extend,i=e.offset,a=e.tr,o=e.tableGrid.gridCol,s=document.createElement("div");s.style.position="absolute",s.style.left=i.x+"px",s.style.top=i.y+"px",s.style.width=n.w+"px",s.style.height=n.h+"px";var l=document.createElement("table");return l.style.borderCollapse="collapse",a.forEach(function(c){var u=c.props,f=c.td,h=u.height,A=document.createElement("tr");A.style.height=h+"px",f.forEach(function(d,g){var y,v,p=d.props,m=d.inheritTcStyle,b=d.inheritTcTxStyle,C=d.paragraphs;if(!p.vMerge&&!p.hMerge){var w=document.createElement("td");w.style.width=(((y=o[g])===null||y===void 0?void 0:y.width)||30)+"px",p.rowSpan&&w.setAttribute("rowspan",p.rowSpan+""),p.gridSpan&&w.setAttribute("colspan",p.gridSpan+"");var B=p.background||m.background;B&&(w.style.background=Tn(B));var k=jt(jt({},m.border),p.border),Q=function(S){return S?S.toLowerCase().includes("dash")?"dashed":S.toLowerCase().includes("dot")?"dotted":"solid":"solid"};k.bottom&&(w.style.borderBottom="".concat(k.bottom.width,"px ").concat(Q(k.bottom.type)," ").concat(Tn(k.bottom.color))),k.top&&(w.style.borderTop="".concat(k.top.width,"px ").concat(Q(k.top.type)," ").concat(Tn(k.top.color))),k.left&&(w.style.borderLeft="".concat(k.left.width,"px ").concat(Q(k.left.type)," ").concat(Tn(k.left.color))),k.right&&(w.style.borderRight="".concat(k.right.width,"px ").concat(Q(k.right.type)," ").concat(Tn(k.right.color)));var x=document.createElement("div");switch(x.className="text-wrapper",x.style.boxSizing="border-box",x.style.width="100%",x.style.height="100%",x.style.overflow="hidden",x.style.display="flex",x.style.flexDirection="column",p.anchor){case"b":x.style.justifyContent="flex-end";break;case"t":x.style.justifyContent="flex-start";break;case"ctr":x.style.justifyContent="center"}var L=[p.hasOwnProperty("marT")?Math.floor(p.marT)+"px":"3px",p.hasOwnProperty("marR")?Math.floor(p.marR-1)+"px":"5px",p.hasOwnProperty("marB")?Math.floor(p.marB)+"px":"3px",p.hasOwnProperty("marL")?Math.floor(p.marL-1)+"px":"5px"];x.style.padding=L.join(" ");for(var O=jt({},p),W={},M=C.map(function(S){return jt(jt({},S),{props:jt({align:"l"},S.props),inheritRProps:jt(jt({},S.inheritRProps),b)})}),J=0,G=function(S){var Y=jt(jt({},S.inheritProps),S.props),P=void 0;if(Y.buAutoNum){var U=Y.level?+Y.level:0;W[U]||(W[U]=0),!((v=S.rows)===null||v===void 0)&&v.length&&W[U]++,Object.keys(W).forEach(function(F){+F>U&&(W[F]=0)}),P=tB(S,W[U],{isFirst:J===0,isLast:C.length-1===J,bodyProps:O})}else P=tB(S,0,{isFirst:J===0,isLast:C.length-1===J,bodyProps:O});x.appendChild(P),J++},N=0,_=M;N<_.length;N++)G(_[N]);w.append(x),A.append(w)}}),l.append(A)}),s.append(l),s})(t):t instanceof tne?utt(t):void 0},r.prototype._renderBackground=function(t,e){var n,i=document.createElement("div");i.classList.add("slide-background"),i.style.setProperty("position","absolute"),i.style.setProperty("left","0"),i.style.setProperty("top","0"),i.style.setProperty("width","100%"),i.style.setProperty("height","100%");var a=t.background;if(a.type==="none"&&(a=t.slideLayout.background),a.type==="none"&&(a=t.slideMaster.background),a.type==="blipFill"){var o=a,s=o.base64,l=o.alpha,c=o.fillRect,u=c===void 0?{}:c,f=u.b,h=f===void 0?0:f,A=u.t,d=A===void 0?0:A,g=u.l,y=g===void 0?0:g,v=u.r,p=v===void 0?0:v,m=this.renderPort.width*y,b=this.renderPort.height*d,C=this.renderPort.width*(1-y-p),w=this.renderPort.height*(1-d-h);i.style.backgroundImage="url(".concat(s,")"),i.style.backgroundSize="".concat(C," ").concat(w),i.style.backgroundPosition="".concat(m,"px ").concat(b,"px"),l&&(i.style.opacity=l+""),i.style.backgroundRepeat="no-repeat"}else if(a.type==="solidFill"){var B=Tn(t.background)||Tn(t.slideLayout.background)||Tn(t.slideMaster.background);B?i.style.setProperty("background",B):i.style.setProperty("background","#fff")}else if(a.type==="gradFill")if(a.path==="circle"){var k=a.tileRect||{},Q=(h=k.b,d=k.t,y=k.l,"radial-gradient(circle at ");(p=k.r)===-1?Q+=" right":y===-1&&(Q+=" left"),d===-1?Q+=" top":h===-1&&(Q+=" bottom"),h||d||y||p||(Q+=" center"),Q+=",",Q+=a.gsList.map(function(L){return"".concat(Tn(L.color)," ").concat(100*L.pos+"%")}).join(","),i.style.setProperty("background",Q)}else{var x=((n=a?.lin)===null||n===void 0?void 0:n.ang)||0;Q="linear-gradient(".concat(x+90,"deg,"),Q+=a.gsList.map(function(L){return"".concat(Tn(L.color)," ").concat(100*L.pos+"%")}).join(","),i.style.setProperty("background",Q)}e.append(i)},r})(),htt=(function(){function r(t,e){this.dom=t,this.options=e,this._renderWrapper()}return r.prototype._renderWrapper=function(){var t=document.createElement("div");t.classList.add("pptx-preview-wrapper"),t.style.setProperty("background","#000"),t.style.setProperty("width",this.options.width+"px"),this.options.height&&t.style.setProperty("height",this.options.height+"px"),t.style.setProperty("position","relative"),t.style.setProperty("margin","0 auto"),this.options.height&&t.style.setProperty("overflow-y","auto"),this.dom.append(t),this.wrapper=t},r.prototype.preview=function(t){var e=this;return Ane("destroy"),dne("destroy"),new Promise(function(n,i){e.wrapper.innerHTML="";var a=new stt;a.load(t).then(function(){try{for(var o=new ftt(e.wrapper,a,{viewPort:{width:e.options.width,height:e.options.height}}),s=0;s<a.slides.length;s++)o.renderSlide(s);n(a)}catch(l){i(l)}}).catch(function(o){i(o)})})},r.prototype.destroy=function(){Ane("destroy"),dne("destroy")},r})();function Att(r,t){return new htt(r,t)}const dtt=(r,t)=>{const e=r.__vccOpts||r;for(const[n,i]of t)e[n]=i;return e},gtt=H.defineComponent({name:"VueOfficePptx",props:{src:[String,ArrayBuffer,Blob],requestOptions:{type:Object,default:()=>({})},options:{type:Object,default:()=>({})}},emits:["rendered","error"],setup(r,{emit:t}){let e=null;const n=H.ref(null);function i(){let s=n.value,l=r.options.width||s.getBoundingClientRect().width||960,c=r.options.height||s.getBoundingClientRect().height||540;e=Att(s,{width:l,height:c})}function a(s){if(typeof s=="string")return fetch(s,r.requestOptions).then(l=>l.arrayBuffer());if(s instanceof ArrayBuffer)return Promise.resolve(s)}function o(){r.src&&a(r.src).then(s=>{e.preview(s).then(l=>{t("rendered",l)}).catch(l=>{t("error",l)})}).catch(s=>{t("error",s)})}return H.onMounted(()=>{i(),o()}),H.watch(()=>r.src,()=>{o()}),{rootRef:n}}}),ptt={class:"vue-office-pptx"},vtt={class:"vue-office-pptx-main",ref:"rootRef",style:{width:"100%",height:"100%"}};function ytt(r,t,e,n,i,a){return H.openBlock(),H.createElementBlock("div",ptt,[H.createElementVNode("div",vtt,null,512)])}const rB=dtt(gtt,[["render",ytt]]);rB.install=function(r){r.component(rB.name,rB)};const mtt=Object.freeze(Object.defineProperty({__proto__:null,default:rB},Symbol.toStringTag,{value:"Module"}));Ur.HbLibAnchor=gT,Ur.HbLibCard=dT,Ur.HbLibCopy=cB,Ur.HbLibDetailBox=pT,Ur.HbLibFilePreview=ET,Ur.HbLibFooterBar=vT,Ur.HbLibFormItemFilterModal=VM,Ur.HbLibFormTooltipSelect=uT,Ur.HbLibFuncCompDrag=bT,Ur.HbLibIconList=fB,Ur.HbLibImportFile=fT,Ur.HbLibListBtnsAct=qM,Ur.HbLibListForm=zM,Ur.HbLibListMultiSelect=$M,Ur.HbLibListPageAct=KM,Ur.HbLibListPageContainer=ZM,Ur.HbLibListTable=lT,Ur.HbLibLoading=wT,Ur.HbLibLogModal=hT,Ur.HbLibModal=yT,Ur.HbLibMutilpleSelectModal=eT,Ur.HbLibPageHeader=IT,Ur.HbLibSort=CT,Ur.HbLibTableAct=tT,Ur.HbLibTableColumnSet=cT,Ur.HbLibUnDetailBox=mT,Ur.HbUiConfig=AT,Ur.install=goe,Ur.locales=doe,Ur.useCalTableHeight=XM,Ur.useCalTableWidth=aB,Ur.useFilePreview=aoe,Ur.useIconfont=QT,Ur.useListFormItem=ooe,Ur.useModalDrag=soe,Object.defineProperty(Ur,Symbol.toStringTag,{value:"Module"})}));