@a2simcode/dui 0.0.58 → 0.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dui.es.js +1 -1
- package/dist/dui.umd.js +1 -1
- package/package.json +4 -4
package/dist/dui.es.js
CHANGED
package/dist/dui.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(ne,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("@a2simcode/ui")):typeof define=="function"&&define.amd?define(["exports","vue","@a2simcode/ui"],o):(ne=typeof globalThis<"u"?globalThis:ne||self,o(ne.DuiUI={},ne.Vue,ne.SimCodeUI))})(this,function(ne,o,me){Object.defineProperties(ne,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var bu=Object.create,ur=Object.defineProperty,Hu=Object.getOwnPropertyDescriptor,Iu=Object.getOwnPropertyNames,_u=Object.getPrototypeOf,Su=Object.prototype.hasOwnProperty,xu=(e,A)=>()=>(A||(e((A={exports:{}}).exports,A),e=null),A.exports),Du=(e,A)=>{let t={};for(var n in e)ur(t,n,{get:e[n],enumerable:!0});return A||ur(t,Symbol.toStringTag,{value:"Module"}),t},ko=(e,A,t,n)=>{if(A&&typeof A=="object"||typeof A=="function")for(var r=Iu(A),a=0,u=r.length,d;a<u;a++)d=r[a],!Su.call(e,d)&&d!==t&&ur(e,d,{get:(g=>A[g]).bind(null,d),enumerable:!(n=Hu(A,d))||n.enumerable});return e},Nu=(e,A,t)=>(ko(e,A,"default"),t&&ko(t,A,"default")),Bs=(e,A,t)=>(t=e!=null?bu(_u(e)):{},ko(A||!e||!e.__esModule?ur(t,"default",{value:e,enumerable:!0}):t,e));o=Bs(o,1);var dt=(e,A)=>(e.install=t=>{t.component(e.name,e),A&&A.forEach(n=>{t.component(n.name,n)})},e),ft=(e="")=>{const A=Date.now(),t=Math.floor(Math.random()*1e9);return e===""?String(t)+String(A):e+"_"+t+String(A)},zt=e=>{if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(zt);const A={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=zt(e[t]));return A},Lu=e=>{if(Array.isArray(e))e.length=0;else if(e&&typeof e=="object")for(const A in e)Object.prototype.hasOwnProperty.call(e,A)&&delete e[A]},Mo={},Tu=(e,A,t)=>{t[e]=t[e]||{};const n=ft();return t[e][n]=A,n},ku=(e,A,t)=>{const n=[],r=t[e]||{};return Object.keys(r).forEach(a=>{const u=r[a];try{u&&n.push(u(A))}catch(d){console.error(d)}}),n},Mu=(e,A,t)=>{if(A){const n=t[e];n&&delete n[A]}else delete t[e]},ps=(e,A)=>Tu(e,A,Mo),re=(e,A)=>ku(e,A,Mo),Ou=(e,A)=>{Mu(e,A,Mo)},ms=(e,A,t,n,r,a)=>{const u=A.id,d=A.level,{getDesignLocals:g,selectComponent:h,getComponent:B,isMyChildComponent:w,addComponent:m,deleteComponent:v,getParentComponents:y,removeComponentFromContainer:I,addComponentToContainer:L,copyComponent:T,activedComponent:K,top:b}=(0,o.inject)("d-drag-design-provide",{}),O=[],aA=(0,o.ref)(!1),Z=(0,o.ref)(!1),cA=(0,o.ref)(!1),lA=(0,o.ref)(!1),iA=(0,o.ref)(!1),oA={id:"",type:""},tA=(0,o.ref)(!1),x=(0,o.ref)(!1);let eA="",H=null;const X=J=>{if(eA===J)return H;eA=J;const{top:uA,left:wA,width:QA,height:_A}=e.value.getBoundingClientRect();return H=[{x:wA,y:uA},{x:wA+QA,y:uA},{x:wA+QA,y:uA+_A},{x:wA,y:uA+_A}],H},F=(J,uA,wA)=>{let QA=uA-wA[0].y;QA<0&&(QA=-QA);let _A=uA-wA[3].y;_A<0&&(_A=-_A);let gA=J-wA[0].x;gA<0&&(gA=-gA);let j=J-wA[1].x;return j<0&&(j=-j),{ly:QA>_A?_A:QA,typey:QA>_A?"bottom":"top",lx:gA>j?j:gA,lallx:gA+j}},D=(J,uA,wA)=>J>=wA[0].x&&J<=wA[1].x&&uA>=wA[0].y&&uA<=wA[3].y,k=()=>{if(r){re("dragClick",{id:u});return}if(!Z.value){if(h(u),d!==0){const J=e.value.getBoundingClientRect(),uA=g();J.top-uA.top<22?lA.value=!0:lA.value=!1}Z.value=!0,re("dragClick",{id:u})}},N=J=>{const uA=v(J);uA&&(0,o.nextTick)(()=>{re("dragClick",{id:uA})})},R=()=>{oA.id="",oA.type="",d===0&&(iA.value=!1)},$=()=>{re("mouseEnterOrLeave",{id:u,type:"enter"})},nA=()=>{re("mouseEnterOrLeave",{id:u,type:"leave"})},BA=J=>{re("dragClick",{id:J})},FA={mouseEnterOrLeave:({id:J,type:uA})=>{uA==="enter"?O.push(J):O.length>0&&O.splice(O.length-1,1);const wA=O.length;wA>0&&u===O[wA-1]?aA.value=!0:aA.value=!1},dragAciveChild:({type:J,id:uA})=>{uA===u?J==="top"?(tA.value=!0,x.value=!1):(x.value=!0,tA.value=!1):(x.value=!1,tA.value=!1)},dragClick({id:J,isAgain:uA}){J!==u?Z.value=!1:(uA&&(Z.value=!1),k())}};FA[`dragGetChildDistance_${u}`]=({dragX:J,dragY:uA,moveId:wA})=>F(J,uA,X(wA));const sA={isInContainer({x:J,y:uA,id:wA,moveId:QA}){if(u===wA||w(wA,u))return cA.value=!1,{isIn:!1,level:d,id:u,groupId:a};const _A=X(QA);if(D(J,uA,_A))return d===0&&(iA.value=!0),{isIn:!0,level:d,id:u,groupId:a};if(d===0){const{ly:gA,lx:j}=F(J,uA,_A);if(gA<20&&j<20)return iA.value=!0,{isIn:!0,level:d,id:u,groupId:a};iA.value=!1}return cA.value=!1,{isIn:!1,level:d,id:u,groupId:a}},dragActiveContainer:({containerId:J,containerGroupId:uA,dragX:wA,dragY:QA,moveId:_A})=>{if(J===u&&uA===a)if(cA.value=!0,n&&n.value.length>0){let gA={ly:9999999,lx:0,lallx:0,id:"",typey:""};n?.value.forEach(j=>{if(a&&j.groupId!==a)return;const _=re(`dragGetChildDistance_${j.id}`,{dragX:wA,dragY:QA,moveId:_A})[0];_&&(gA.ly>_.ly||gA.ly===_.ly&&(gA.lx>_.lx||gA.lx===_.lx&&gA.lallx>_.lallx))&&(gA=_,gA.id=j.id)}),oA.id=gA.id,oA.type=gA.typey,re("dragAciveChild",{id:gA.id,type:gA.typey})}else re("dragAciveChild",{id:""});else cA.value=!1},dragAdd:J=>{if(cA.value){let uA=n?.value.length||0;oA.id!==""&&oA.id!==void 0&&(uA=n?.value.findIndex(wA=>wA.id===oA.id)||0,oA.type==="bottom"&&(uA+=1)),m(J,u,uA,a),cA.value=!1}R()},dragAddByClick:J=>{if(!K.value&&u===b.id||K.value?.id===u||K.value?.containerId===u&&K.value?.dragType!=="container"){const uA=m(J,u,n?.value.length||0,a,!0);uA&&J.config&&Object.keys(J.config).forEach(wA=>{uA.config[wA]=J.config[wA]})}},dragUpdate(J){if(cA.value){const uA=B(J);if(uA.level=d+1,oA.id!==uA.id){I(uA.containerId,J);let wA=n?.value.findIndex(QA=>QA.id===oA.id)||0;oA.type==="bottom"&&(wA+=1),L(uA,u,wA,a)}cA.value=!1,(0,o.nextTick)(()=>{re("dragClick",{id:uA.id,isAgain:!0})})}R()}},Y={};return(0,o.onMounted)(()=>{(!r||t!=="container")&&Object.keys(FA).forEach(J=>{Y[J]=ps(J,FA[J])}),t==="container"&&Object.keys(sA).forEach(J=>{Y[J]=ps(J,sA[J])}),A.isNewAdd&&(0,o.nextTick)(()=>{k(),delete A.isNewAdd})}),(0,o.onUnmounted)(()=>{Object.keys(Y).forEach(J=>{Ou(J,Y[J])})}),{onMouseenter:$,onMouseleave:nA,activeComponent:k,handleComponentClick:BA,deleteComponentByClick:N,copyComponent:T,getParentComponents:y,isBottomToolBar:lA,isHover:aA,isSelect:Z,isToContainer:cA,isMoveingInTopLevel:iA,isTopActive:tA,isBottomActive:x}},ws=(e,A)=>{const t={x:0,y:0,clientX:0,clientY:0,dragElement:null,dragElementId:"jcode-darg-move-id",toContainerLevel:-1,toContainerId:"",groupId:"",id:""};let n=!1;const r=(v,y)=>{n!==!0&&(n=!0,setTimeout(()=>{v(),n=!1},y))},a=(0,o.ref)(!1),u=(v,y,I)=>{const L=document.createElement("div");return L.id=t.dragElementId,L.innerText=v,L.className="d-drag-move",L.style.top=`${y}px`,L.style.left=`${I}px`,document.body.appendChild(L),L},d=()=>{document.onmousemove=null,document.onmouseup=null,a.value=!1,re("dragAciveChild",{id:""})},g=()=>{d(),t.dragElement&&(t.dragElement.remove(),t.dragElement=null,A?re("dragAdd",e):re("dragUpdate",e.id))},h=v=>{const{clientY:y,clientX:I}=v;if(!t.dragElement){const L=Math.abs(t.x-I),T=Math.abs(t.y-y);if(L<=1&&T<=1)return;a.value=!0,t.dragElement=u(e.name,y-11,I-32)}t.dragElement.style.top=`${y-11}px`,t.dragElement.style.left=`${I-32}px`,t.clientX=I,t.clientY=y,r(()=>{if(!a.value)return;const L=re("isInContainer",{x:I,y,id:e.id,moveId:t.id});t.toContainerLevel=-1,t.toContainerId="",t.groupId="",L.forEach(({level:T,id:K,isIn:b,groupId:O})=>{b&&t.toContainerLevel<T&&(t.toContainerLevel=T,t.toContainerId=K,t.groupId=O)}),t.toContainerId!==""?re("dragActiveContainer",{containerId:t.toContainerId,containerGroupId:t.groupId,dragX:I,dragY:y,moveId:t.id}):re("dragAciveChild",{id:""})},100)};return{onContextmenu:()=>{d()},onMousedown:v=>{t.x=v.clientX,t.y=v.clientY,t.id=ft(),document.onmouseup=g,document.onmousemove=h},onClick:()=>{re("dragAddByClick",e)},moveActive:a}},Ku={class:"d-drag-btns-pname"},Ru={key:0,class:"d-drag-mask"},Vu=(0,o.defineComponent)({name:"DDrag",__name:"drag",props:{componentData:{default:()=>({})},isContainer:{type:Boolean,default:!1}},setup(e){const A=e,t=(0,o.ref)(),{onMouseenter:n,onMouseleave:r,activeComponent:a,handleComponentClick:u,deleteComponentByClick:d,copyComponent:g,getParentComponents:h,isHover:B,isSelect:w,isTopActive:m,isBottomActive:v,isBottomToolBar:y}=ms(t,A.componentData,"component"),{onContextmenu:I,onMousedown:L,moveActive:T}=ws(A.componentData,!1);return(K,b)=>{const O=(0,o.resolveComponent)("j-button"),aA=(0,o.resolveComponent)("el-space");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["d-drag-component",{selected:(0,o.unref)(w),hovered:(0,o.unref)(B),isBottomToolBar:(0,o.unref)(y),active:(0,o.unref)(T),isTopActive:(0,o.unref)(m),isBottomActive:(0,o.unref)(v)}])},[b[11]||(b[11]=(0,o.createElementVNode)("div",{class:"d-drag-line"},null,-1)),(0,o.createElementVNode)("div",{class:"d-drag-btns",onMouseenter:b[4]||(b[4]=(...Z)=>(0,o.unref)(n)&&(0,o.unref)(n)(...Z)),onMouseleave:b[5]||(b[5]=(...Z)=>(0,o.unref)(r)&&(0,o.unref)(r)(...Z))},[(0,o.createVNode)(aA,{size:4},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,o.withModifiers)(()=>{},["stop"])},[(0,o.createVNode)(O,{class:"d-drag-btn",type:"primary",size:"small",label:e.componentData.name},null,8,["label"]),(0,o.createElementVNode)("div",Ku,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)((0,o.unref)(h)(e.componentData.containerId),Z=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:Z.id},[(0,o.createVNode)(O,{class:"d-drag-btn",type:"primary",size:"small",label:Z.name,onClick:cA=>(0,o.unref)(u)(Z.id)},null,8,["label","onClick"])]))),128))])]),(0,o.createVNode)(O,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:content-copy",onClick:b[0]||(b[0]=(0,o.withModifiers)(Z=>(0,o.unref)(g)(e.componentData.id),["stop"]))}),(0,o.createElementVNode)("div",{onContextmenu:b[1]||(b[1]=(0,o.withModifiers)((...Z)=>(0,o.unref)(I)&&(0,o.unref)(I)(...Z),["stop"])),onMousedown:b[2]||(b[2]=(0,o.withModifiers)((...Z)=>(0,o.unref)(L)&&(0,o.unref)(L)(...Z),["stop"])),style:{display:"flex"}},[(0,o.createVNode)(O,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:drag"})],32),(0,o.createVNode)(O,{class:"d-drag-btn",danger:"",type:"primary",size:"small",icon:"mdi:delete",onClick:b[3]||(b[3]=(0,o.withModifiers)(Z=>(0,o.unref)(d)(e.componentData.id),["stop"]))})]),_:1})],32),(0,o.createElementVNode)("div",{ref_key:"refDrag",ref:t,class:"d-drag-body",onClick:b[6]||(b[6]=(0,o.withModifiers)((...Z)=>(0,o.unref)(a)&&(0,o.unref)(a)(...Z),["stop"])),onContextmenu:b[7]||(b[7]=(0,o.withModifiers)((...Z)=>(0,o.unref)(I)&&(0,o.unref)(I)(...Z),["stop"])),onMousedown:b[8]||(b[8]=(0,o.withModifiers)((...Z)=>(0,o.unref)(L)&&(0,o.unref)(L)(...Z),["stop"])),onMouseenter:b[9]||(b[9]=(...Z)=>(0,o.unref)(n)&&(0,o.unref)(n)(...Z)),onMouseleave:b[10]||(b[10]=(...Z)=>(0,o.unref)(r)&&(0,o.unref)(r)(...Z))},[(0,o.renderSlot)(K.$slots,"default"),e.isContainer?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",Ru))],544)],2)}}}),Oo=Vu,Pu=(0,o.defineComponent)({name:"DDragTool",__name:"tool",props:{config:{}},setup(e){const{onContextmenu:A,onMousedown:t,onClick:n}=ws(e.config??{name:"",id:""},!0);return(r,a)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"d-drag-tool",onClick:a[0]||(a[0]=(0,o.withModifiers)((...u)=>(0,o.unref)(n)&&(0,o.unref)(n)(...u),["stop"])),onContextmenu:a[1]||(a[1]=(0,o.withModifiers)((...u)=>(0,o.unref)(A)&&(0,o.unref)(A)(...u),["stop"])),onMousedown:a[2]||(a[2]=(0,o.withModifiers)((...u)=>(0,o.unref)(t)&&(0,o.unref)(t)(...u),["stop"]))},[(0,o.renderSlot)(r.$slots,"default")],32))}}),Ko=Pu,Gu={key:0,class:"d-drag-line"},zu={key:1,class:"d-drag-btns"},Xu=(0,o.defineComponent)({name:"DDragContainer",__name:"container",props:{componentData:{default:()=>({})},isComponentContainer:{type:Boolean,default:!0},groupId:{default:void 0}},setup(e){const A=e,t=(0,o.ref)(),n=(0,o.computed)(()=>A.componentData?.children||[]),{onMouseenter:r,onMouseleave:a,activeComponent:u,isHover:d,isSelect:g,isToContainer:h,isMoveingInTopLevel:B,isTopActive:w,isBottomActive:m}=ms(t,A.componentData,"container",n,A.isComponentContainer,A.groupId),v=(0,o.computed)(()=>!!(n.value.findIndex(y=>y.groupId===A.groupId)===-1&&h.value));return(y,I)=>{const L=(0,o.resolveComponent)("j-button");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{ref_key:"refDrag",ref:t,class:(0,o.normalizeClass)(["d-drag-container",{selected:(0,o.unref)(g)&&!e.isComponentContainer,hovered:(0,o.unref)(d)&&!e.isComponentContainer,isTopLevel:e.componentData.level===0,active:v.value,isMoveingInTopLevel:(0,o.unref)(B),isTopActive:(0,o.unref)(w),isBottomActive:(0,o.unref)(m)}])},[e.isComponentContainer?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",Gu)),e.isComponentContainer?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",zu,[(0,o.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,o.withModifiers)(()=>{},["stop"])},[(0,o.createVNode)(L,{class:"d-drag-btn",type:"primary",size:"small",label:e.componentData.name},null,8,["label"])])])),(0,o.createElementVNode)("div",{class:"d-drag-body",onClick:I[0]||(I[0]=(0,o.withModifiers)((...T)=>(0,o.unref)(u)&&(0,o.unref)(u)(...T),["stop"])),onMouseenter:I[1]||(I[1]=(...T)=>(0,o.unref)(r)&&(0,o.unref)(r)(...T)),onMouseleave:I[2]||(I[2]=(...T)=>(0,o.unref)(a)&&(0,o.unref)(a)(...T))},[(0,o.renderSlot)(y.$slots,"default")],32)],2)}}}),Ro=Xu,$u=(0,o.defineComponent)({name:"DDragFormList",__name:"dragFormList",props:{componentList:{default:()=>[]},globalConfig:{default:()=>({})}},setup(e){const{designItemName:A}=(0,o.inject)("dui-design-provide",{});return(t,n)=>{const r=(0,o.resolveComponent)("el-col");return(0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.componentList,a=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:a.id},[a.type!="pkey"?((0,o.openBlock)(),(0,o.createBlock)(r,{key:0,span:a.config.span||24},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(Oo,{"is-container":a.dragType!=="component","component-data":a},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)((0,o.unref)(A)),{"component-data":a,"global-config":e.globalConfig},null,8,["component-data","global-config"]))]),_:2},1032,["is-container","component-data"])]),_:2},1032,["span"])):(0,o.createCommentVNode)("",!0)],64))),128)}}}),Vo=$u,Yu=(0,o.defineComponent)({name:"DDragIndexList",__name:"dragIndexList",props:{componentList:{default:()=>[]},globalConfig:{default:()=>({})}},setup(e){const{designItemName:A}=(0,o.inject)("dui-design-provide",{}),t=n=>{if(n.flexWidth)return{width:n.flexWidth+"%"}};return(n,r)=>((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.componentList,a=>((0,o.openBlock)(),(0,o.createBlock)(Oo,{key:a.id,style:(0,o.normalizeStyle)(t(a.config)),"is-container":a.dragType!=="component","component-data":a},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)((0,o.unref)(A)),{"component-data":a,"global-config":e.globalConfig},null,8,["component-data","global-config"]))]),_:2},1032,["style","is-container","component-data"]))),128))}}),Po=Yu,Cs=dt(Oo,[Ko,Ro,Vo,Po]);function Un(e){return(0,o.getCurrentScope)()?((0,o.onScopeDispose)(e),!0):!1}function je(e){return typeof e=="function"?e():(0,o.unref)(e)}var Wu=typeof window<"u"&&typeof document<"u",Ju=e=>typeof e<"u",Zu=Object.prototype.toString,ju=e=>Zu.call(e)==="[object Object]",qu=()=>{};function Ad(e,A){function t(...n){return new Promise((r,a)=>{Promise.resolve(e(()=>A.apply(this,n),{fn:A,thisArg:this,args:n})).then(r).catch(a)})}return t}var vs=e=>e();function ed(e=vs){const A=(0,o.ref)(!0);function t(){A.value=!1}function n(){A.value=!0}const r=(...a)=>{A.value&&e(...a)};return{isActive:(0,o.readonly)(A),pause:t,resume:n,eventFilter:r}}function ys(e,A=!1,t="Timeout"){return new Promise((n,r)=>{setTimeout(A?()=>r(t):n,e)})}function td(e,A,t={}){const{eventFilter:n=vs,...r}=t;return(0,o.watch)(e,Ad(n,A),r)}function Xt(e,A,t={}){const{eventFilter:n,...r}=t,{eventFilter:a,pause:u,resume:d,isActive:g}=ed(n);return{stop:td(e,A,{...r,eventFilter:a}),pause:u,resume:d,isActive:g}}function nd(e,A={}){if(!(0,o.isRef)(e))return(0,o.toRefs)(e);const t=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const n in e.value)t[n]=(0,o.customRef)(()=>({get(){return e.value[n]},set(r){var a;if((a=je(A.replaceRef))==null||a)if(Array.isArray(e.value)){const u=[...e.value];u[n]=r,e.value=u}else{const u={...e.value,[n]:r};Object.setPrototypeOf(u,Object.getPrototypeOf(e.value)),e.value=u}else e.value[n]=r}}));return t}function Go(e,A=!1){function t(w,{flush:m="sync",deep:v=!1,timeout:y,throwOnTimeout:I}={}){let L=null;const T=[new Promise(K=>{L=(0,o.watch)(e,b=>{w(b)!==A&&(L?.(),K(b))},{flush:m,deep:v,immediate:!0})})];return y!=null&&T.push(ys(y,I).then(()=>je(e)).finally(()=>L?.())),Promise.race(T)}function n(w,m){if(!(0,o.isRef)(w))return t(b=>b===w,m);const{flush:v="sync",deep:y=!1,timeout:I,throwOnTimeout:L}=m??{};let T=null;const K=[new Promise(b=>{T=(0,o.watch)([e,w],([O,aA])=>{A!==(O===aA)&&(T?.(),b(O))},{flush:v,deep:y,immediate:!0})})];return I!=null&&K.push(ys(I,L).then(()=>je(e)).finally(()=>(T?.(),je(e)))),Promise.race(K)}function r(w){return t(m=>!!m,w)}function a(w){return n(null,w)}function u(w){return n(void 0,w)}function d(w){return t(Number.isNaN,w)}function g(w,m){return t(v=>{const y=Array.from(v);return y.includes(w)||y.includes(je(w))},m)}function h(w){return B(1,w)}function B(w=1,m){let v=-1;return t(()=>(v+=1,v>=w),m)}return Array.isArray(je(e))?{toMatch:t,toContains:g,changed:h,changedTimes:B,get not(){return Go(e,!A)}}:{toMatch:t,toBe:n,toBeTruthy:r,toBeNull:a,toBeNaN:d,toBeUndefined:u,changed:h,changedTimes:B,get not(){return Go(e,!A)}}}function zo(e){return Go(e)}function rd(e){var A;const t=je(e);return(A=t?.$el)!=null?A:t}var Qs=Wu?window:void 0;function Es(...e){let A,t,n,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,n,r]=e,A=Qs):[A,t,n,r]=e,!A)return qu;Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);const a=[],u=()=>{a.forEach(B=>B()),a.length=0},d=(B,w,m,v)=>(B.addEventListener(w,m,v),()=>B.removeEventListener(w,m,v)),g=(0,o.watch)(()=>[rd(A),je(r)],([B,w])=>{if(u(),!B)return;const m=ju(w)?{...w}:w;a.push(...t.flatMap(v=>n.map(y=>d(B,v,y,m))))},{immediate:!0,flush:"post"}),h=()=>{g(),u()};return Un(h),h}function od(e){return typeof e=="function"?e:typeof e=="string"?A=>A.key===e:Array.isArray(e)?A=>e.includes(A.key):()=>!0}function Fs(...e){let A,t,n={};e.length===3?(A=e[0],t=e[1],n=e[2]):e.length===2?typeof e[1]=="object"?(A=!0,t=e[0],n=e[1]):(A=e[0],t=e[1]):(A=!0,t=e[0]);const{target:r=Qs,eventName:a="keydown",passive:u=!1,dedupe:d=!1}=n,g=od(A);return Es(r,a,B=>{B.repeat&&je(d)||g(B)&&t(B)},u)}function id(e){return JSON.parse(JSON.stringify(e))}function Xo(e,A,t,n={}){var r,a,u;const{clone:d=!1,passive:g=!1,eventName:h,deep:B=!1,defaultValue:w,shouldEmit:m}=n,v=(0,o.getCurrentInstance)(),y=t||v?.emit||((r=v?.$emit)==null?void 0:r.bind(v))||((u=(a=v?.proxy)==null?void 0:a.$emit)==null?void 0:u.bind(v?.proxy));let I=h;A||(A="modelValue"),I=I||`update:${A.toString()}`;const L=b=>d?typeof d=="function"?d(b):id(b):b,T=()=>Ju(e[A])?L(e[A]):w,K=b=>{m?m(b)&&y(I,b):y(I,b)};if(g){const b=(0,o.ref)(T());let O=!1;return(0,o.watch)(()=>e[A],aA=>{O||(O=!0,b.value=L(aA),(0,o.nextTick)(()=>O=!1))}),(0,o.watch)(b,aA=>{!O&&(aA!==e[A]||B)&&K(aA)},{deep:B}),b}else return(0,o.computed)({get(){return T()},set(b){K(b)}})}var sd={value:()=>{}};function dr(){for(var e=0,A=arguments.length,t={},n;e<A;++e){if(!(n=arguments[e]+"")||n in t||/[\s.]/.test(n))throw new Error("illegal type: "+n);t[n]=[]}return new fr(t)}function fr(e){this._=e}function ad(e,A){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!A.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}fr.prototype=dr.prototype={constructor:fr,on:function(e,A){var t=this._,n=ad(e+"",t),r,a=-1,u=n.length;if(arguments.length<2){for(;++a<u;)if((r=(e=n[a]).type)&&(r=ld(t[r],e.name)))return r;return}if(A!=null&&typeof A!="function")throw new Error("invalid callback: "+A);for(;++a<u;)if(r=(e=n[a]).type)t[r]=Us(t[r],e.name,A);else if(A==null)for(r in t)t[r]=Us(t[r],e.name,null);return this},copy:function(){var e={},A=this._;for(var t in A)e[t]=A[t].slice();return new fr(e)},call:function(e,A){if((r=arguments.length-2)>0)for(var t=new Array(r),n=0,r,a;n<r;++n)t[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],n=0,r=a.length;n<r;++n)a[n].value.apply(A,t)},apply:function(e,A,t){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],r=0,a=n.length;r<a;++r)n[r].value.apply(A,t)}};function ld(e,A){for(var t=0,n=e.length,r;t<n;++t)if((r=e[t]).name===A)return r.value}function Us(e,A,t){for(var n=0,r=e.length;n<r;++n)if(e[n].name===A){e[n]=sd,e=e.slice(0,n).concat(e.slice(n+1));break}return t!=null&&e.push({name:A,value:t}),e}var $o="http://www.w3.org/1999/xhtml",bs={svg:"http://www.w3.org/2000/svg",xhtml:$o,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function gr(e){var A=e+="",t=A.indexOf(":");return t>=0&&(A=e.slice(0,t))!=="xmlns"&&(e=e.slice(t+1)),bs.hasOwnProperty(A)?{space:bs[A],local:e}:e}function cd(e){return function(){var A=this.ownerDocument,t=this.namespaceURI;return t===$o&&A.documentElement.namespaceURI===$o?A.createElement(e):A.createElementNS(t,e)}}function ud(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Hs(e){var A=gr(e);return(A.local?ud:cd)(A)}function dd(){}function Yo(e){return e==null?dd:function(){return this.querySelector(e)}}function fd(e){typeof e!="function"&&(e=Yo(e));for(var A=this._groups,t=A.length,n=new Array(t),r=0;r<t;++r)for(var a=A[r],u=a.length,d=n[r]=new Array(u),g,h,B=0;B<u;++B)(g=a[B])&&(h=e.call(g,g.__data__,B,a))&&("__data__"in g&&(h.__data__=g.__data__),d[B]=h);return new Fe(n,this._parents)}function gd(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function hd(){return[]}function Is(e){return e==null?hd:function(){return this.querySelectorAll(e)}}function Bd(e){return function(){return gd(e.apply(this,arguments))}}function pd(e){typeof e=="function"?e=Bd(e):e=Is(e);for(var A=this._groups,t=A.length,n=[],r=[],a=0;a<t;++a)for(var u=A[a],d=u.length,g,h=0;h<d;++h)(g=u[h])&&(n.push(e.call(g,g.__data__,h,u)),r.push(g));return new Fe(n,r)}function _s(e){return function(){return this.matches(e)}}function Ss(e){return function(A){return A.matches(e)}}var md=Array.prototype.find;function wd(e){return function(){return md.call(this.children,e)}}function Cd(){return this.firstElementChild}function vd(e){return this.select(e==null?Cd:wd(typeof e=="function"?e:Ss(e)))}var yd=Array.prototype.filter;function Qd(){return Array.from(this.children)}function Ed(e){return function(){return yd.call(this.children,e)}}function Fd(e){return this.selectAll(e==null?Qd:Ed(typeof e=="function"?e:Ss(e)))}function Ud(e){typeof e!="function"&&(e=_s(e));for(var A=this._groups,t=A.length,n=new Array(t),r=0;r<t;++r)for(var a=A[r],u=a.length,d=n[r]=[],g,h=0;h<u;++h)(g=a[h])&&e.call(g,g.__data__,h,a)&&d.push(g);return new Fe(n,this._parents)}function xs(e){return new Array(e.length)}function bd(){return new Fe(this._enter||this._groups.map(xs),this._parents)}function hr(e,A){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=A}hr.prototype={constructor:hr,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,A){return this._parent.insertBefore(e,A)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Hd(e){return function(){return e}}function Id(e,A,t,n,r,a){for(var u=0,d,g=A.length,h=a.length;u<h;++u)(d=A[u])?(d.__data__=a[u],n[u]=d):t[u]=new hr(e,a[u]);for(;u<g;++u)(d=A[u])&&(r[u]=d)}function _d(e,A,t,n,r,a,u){var d,g,h=new Map,B=A.length,w=a.length,m=new Array(B),v;for(d=0;d<B;++d)(g=A[d])&&(m[d]=v=u.call(g,g.__data__,d,A)+"",h.has(v)?r[d]=g:h.set(v,g));for(d=0;d<w;++d)v=u.call(e,a[d],d,a)+"",(g=h.get(v))?(n[d]=g,g.__data__=a[d],h.delete(v)):t[d]=new hr(e,a[d]);for(d=0;d<B;++d)(g=A[d])&&h.get(m[d])===g&&(r[d]=g)}function Sd(e){return e.__data__}function xd(e,A){if(!arguments.length)return Array.from(this,Sd);var t=A?_d:Id,n=this._parents,r=this._groups;typeof e!="function"&&(e=Hd(e));for(var a=r.length,u=new Array(a),d=new Array(a),g=new Array(a),h=0;h<a;++h){var B=n[h],w=r[h],m=w.length,v=Dd(e.call(B,B&&B.__data__,h,n)),y=v.length,I=d[h]=new Array(y),L=u[h]=new Array(y);t(B,w,I,L,g[h]=new Array(m),v,A);for(var T=0,K=0,b,O;T<y;++T)if(b=I[T]){for(T>=K&&(K=T+1);!(O=L[K])&&++K<y;);b._next=O||null}}return u=new Fe(u,n),u._enter=d,u._exit=g,u}function Dd(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Nd(){return new Fe(this._exit||this._groups.map(xs),this._parents)}function Ld(e,A,t){var n=this.enter(),r=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),A!=null&&(r=A(r),r&&(r=r.selection())),t==null?a.remove():t(a),n&&r?n.merge(r).order():r}function Td(e){for(var A=e.selection?e.selection():e,t=this._groups,n=A._groups,r=t.length,a=n.length,u=Math.min(r,a),d=new Array(r),g=0;g<u;++g)for(var h=t[g],B=n[g],w=h.length,m=d[g]=new Array(w),v,y=0;y<w;++y)(v=h[y]||B[y])&&(m[y]=v);for(;g<r;++g)d[g]=t[g];return new Fe(d,this._parents)}function kd(){for(var e=this._groups,A=-1,t=e.length;++A<t;)for(var n=e[A],r=n.length-1,a=n[r],u;--r>=0;)(u=n[r])&&(a&&u.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(u,a),a=u);return this}function Md(e){e||(e=Od);function A(w,m){return w&&m?e(w.__data__,m.__data__):!w-!m}for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a){for(var u=t[a],d=u.length,g=r[a]=new Array(d),h,B=0;B<d;++B)(h=u[B])&&(g[B]=h);g.sort(A)}return new Fe(r,this._parents).order()}function Od(e,A){return e<A?-1:e>A?1:e>=A?0:NaN}function Kd(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Rd(){return Array.from(this)}function Vd(){for(var e=this._groups,A=0,t=e.length;A<t;++A)for(var n=e[A],r=0,a=n.length;r<a;++r){var u=n[r];if(u)return u}return null}function Pd(){let e=0;for(const A of this)++e;return e}function Gd(){return!this.node()}function zd(e){for(var A=this._groups,t=0,n=A.length;t<n;++t)for(var r=A[t],a=0,u=r.length,d;a<u;++a)(d=r[a])&&e.call(d,d.__data__,a,r);return this}function Xd(e){return function(){this.removeAttribute(e)}}function $d(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Yd(e,A){return function(){this.setAttribute(e,A)}}function Wd(e,A){return function(){this.setAttributeNS(e.space,e.local,A)}}function Jd(e,A){return function(){var t=A.apply(this,arguments);t==null?this.removeAttribute(e):this.setAttribute(e,t)}}function Zd(e,A){return function(){var t=A.apply(this,arguments);t==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}}function jd(e,A){var t=gr(e);if(arguments.length<2){var n=this.node();return t.local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}return this.each((A==null?t.local?$d:Xd:typeof A=="function"?t.local?Zd:Jd:t.local?Wd:Yd)(t,A))}function Ds(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function qd(e){return function(){this.style.removeProperty(e)}}function Af(e,A,t){return function(){this.style.setProperty(e,A,t)}}function ef(e,A,t){return function(){var n=A.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,t)}}function tf(e,A,t){return arguments.length>1?this.each((A==null?qd:typeof A=="function"?ef:Af)(e,A,t??"")):$t(this.node(),e)}function $t(e,A){return e.style.getPropertyValue(A)||Ds(e).getComputedStyle(e,null).getPropertyValue(A)}function nf(e){return function(){delete this[e]}}function rf(e,A){return function(){this[e]=A}}function of(e,A){return function(){var t=A.apply(this,arguments);t==null?delete this[e]:this[e]=t}}function sf(e,A){return arguments.length>1?this.each((A==null?nf:typeof A=="function"?of:rf)(e,A)):this.node()[e]}function Ns(e){return e.trim().split(/^|\s+/)}function Wo(e){return e.classList||new Ls(e)}function Ls(e){this._node=e,this._names=Ns(e.getAttribute("class")||"")}Ls.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var A=this._names.indexOf(e);A>=0&&(this._names.splice(A,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Ts(e,A){for(var t=Wo(e),n=-1,r=A.length;++n<r;)t.add(A[n])}function ks(e,A){for(var t=Wo(e),n=-1,r=A.length;++n<r;)t.remove(A[n])}function af(e){return function(){Ts(this,e)}}function lf(e){return function(){ks(this,e)}}function cf(e,A){return function(){(A.apply(this,arguments)?Ts:ks)(this,e)}}function uf(e,A){var t=Ns(e+"");if(arguments.length<2){for(var n=Wo(this.node()),r=-1,a=t.length;++r<a;)if(!n.contains(t[r]))return!1;return!0}return this.each((typeof A=="function"?cf:A?af:lf)(t,A))}function df(){this.textContent=""}function ff(e){return function(){this.textContent=e}}function gf(e){return function(){var A=e.apply(this,arguments);this.textContent=A??""}}function hf(e){return arguments.length?this.each(e==null?df:(typeof e=="function"?gf:ff)(e)):this.node().textContent}function Bf(){this.innerHTML=""}function pf(e){return function(){this.innerHTML=e}}function mf(e){return function(){var A=e.apply(this,arguments);this.innerHTML=A??""}}function wf(e){return arguments.length?this.each(e==null?Bf:(typeof e=="function"?mf:pf)(e)):this.node().innerHTML}function Cf(){this.nextSibling&&this.parentNode.appendChild(this)}function vf(){return this.each(Cf)}function yf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Qf(){return this.each(yf)}function Ef(e){var A=typeof e=="function"?e:Hs(e);return this.select(function(){return this.appendChild(A.apply(this,arguments))})}function Ff(){return null}function Uf(e,A){var t=typeof e=="function"?e:Hs(e),n=A==null?Ff:typeof A=="function"?A:Yo(A);return this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})}function bf(){var e=this.parentNode;e&&e.removeChild(this)}function Hf(){return this.each(bf)}function If(){var e=this.cloneNode(!1),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function _f(){var e=this.cloneNode(!0),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function Sf(e){return this.select(e?_f:If)}function xf(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Df(e){return function(A){e.call(this,A,this.__data__)}}function Nf(e){return e.trim().split(/^|\s+/).map(function(A){var t="",n=A.indexOf(".");return n>=0&&(t=A.slice(n+1),A=A.slice(0,n)),{type:A,name:t}})}function Lf(e){return function(){var A=this.__on;if(A){for(var t=0,n=-1,r=A.length,a;t<r;++t)a=A[t],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):A[++n]=a;++n?A.length=n:delete this.__on}}}function Tf(e,A,t){return function(){var n=this.__on,r,a=Df(A);if(n){for(var u=0,d=n.length;u<d;++u)if((r=n[u]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=t),r.value=A;return}}this.addEventListener(e.type,a,t),r={type:e.type,name:e.name,value:A,listener:a,options:t},n?n.push(r):this.__on=[r]}}function kf(e,A,t){var n=Nf(e+""),r,a=n.length,u;if(arguments.length<2){var d=this.node().__on;if(d){for(var g=0,h=d.length,B;g<h;++g)for(r=0,B=d[g];r<a;++r)if((u=n[r]).type===B.type&&u.name===B.name)return B.value}return}for(d=A?Tf:Lf,r=0;r<a;++r)this.each(d(n[r],A,t));return this}function Ms(e,A,t){var n=Ds(e),r=n.CustomEvent;typeof r=="function"?r=new r(A,t):(r=n.document.createEvent("Event"),t?(r.initEvent(A,t.bubbles,t.cancelable),r.detail=t.detail):r.initEvent(A,!1,!1)),e.dispatchEvent(r)}function Mf(e,A){return function(){return Ms(this,e,A)}}function Of(e,A){return function(){return Ms(this,e,A.apply(this,arguments))}}function Kf(e,A){return this.each((typeof A=="function"?Of:Mf)(e,A))}function*Rf(){for(var e=this._groups,A=0,t=e.length;A<t;++A)for(var n=e[A],r=0,a=n.length,u;r<a;++r)(u=n[r])&&(yield u)}var Os=[null];function Fe(e,A){this._groups=e,this._parents=A}function bn(){return new Fe([[document.documentElement]],Os)}function Vf(){return this}Fe.prototype=bn.prototype={constructor:Fe,select:fd,selectAll:pd,selectChild:vd,selectChildren:Fd,filter:Ud,data:xd,enter:bd,exit:Nd,join:Ld,merge:Td,selection:Vf,order:kd,sort:Md,call:Kd,nodes:Rd,node:Vd,size:Pd,empty:Gd,each:zd,attr:jd,style:tf,property:sf,classed:uf,text:hf,html:wf,raise:vf,lower:Qf,append:Ef,insert:Uf,remove:Hf,clone:Sf,datum:xf,on:kf,dispatch:Kf,[Symbol.iterator]:Rf};function Le(e){return typeof e=="string"?new Fe([[document.querySelector(e)]],[document.documentElement]):new Fe([[e]],Os)}function Pf(e){let A;for(;A=e.sourceEvent;)e=A;return e}function Ke(e,A){if(e=Pf(e),A===void 0&&(A=e.currentTarget),A){var t=A.ownerSVGElement||A;if(t.createSVGPoint){var n=t.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,n=n.matrixTransform(A.getScreenCTM().inverse()),[n.x,n.y]}if(A.getBoundingClientRect){var r=A.getBoundingClientRect();return[e.clientX-r.left-A.clientLeft,e.clientY-r.top-A.clientTop]}}return[e.pageX,e.pageY]}var Gf={passive:!1},Hn={capture:!0,passive:!1};function Jo(e){e.stopImmediatePropagation()}function Yt(e){e.preventDefault(),e.stopImmediatePropagation()}function Ks(e){var A=e.document.documentElement,t=Le(e).on("dragstart.drag",Yt,Hn);"onselectstart"in A?t.on("selectstart.drag",Yt,Hn):(A.__noselect=A.style.MozUserSelect,A.style.MozUserSelect="none")}function Rs(e,A){var t=e.document.documentElement,n=Le(e).on("dragstart.drag",null);A&&(n.on("click.drag",Yt,Hn),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in t?n.on("selectstart.drag",null):(t.style.MozUserSelect=t.__noselect,delete t.__noselect)}var Br=e=>()=>e;function Zo(e,{sourceEvent:A,subject:t,target:n,identifier:r,active:a,x:u,y:d,dx:g,dy:h,dispatch:B}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:A,enumerable:!0,configurable:!0},subject:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},identifier:{value:r,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:u,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:g,enumerable:!0,configurable:!0},dy:{value:h,enumerable:!0,configurable:!0},_:{value:B}})}Zo.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function zf(e){return!e.ctrlKey&&!e.button}function Xf(){return this.parentNode}function $f(e,A){return A??{x:e.x,y:e.y}}function Yf(){return navigator.maxTouchPoints||"ontouchstart"in this}function Wf(){var e=zf,A=Xf,t=$f,n=Yf,r={},a=dr("start","drag","end"),u=0,d,g,h,B,w=0;function m(O){O.on("mousedown.drag",v).filter(n).on("touchstart.drag",L).on("touchmove.drag",T,Gf).on("touchend.drag touchcancel.drag",K).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(O,aA){if(!(B||!e.call(this,O,aA))){var Z=b(this,A.call(this,O,aA),O,aA,"mouse");Z&&(Le(O.view).on("mousemove.drag",y,Hn).on("mouseup.drag",I,Hn),Ks(O.view),Jo(O),h=!1,d=O.clientX,g=O.clientY,Z("start",O))}}function y(O){if(Yt(O),!h){var aA=O.clientX-d,Z=O.clientY-g;h=aA*aA+Z*Z>w}r.mouse("drag",O)}function I(O){Le(O.view).on("mousemove.drag mouseup.drag",null),Rs(O.view,h),Yt(O),r.mouse("end",O)}function L(O,aA){if(e.call(this,O,aA)){var Z=O.changedTouches,cA=A.call(this,O,aA),lA=Z.length,iA,oA;for(iA=0;iA<lA;++iA)(oA=b(this,cA,O,aA,Z[iA].identifier,Z[iA]))&&(Jo(O),oA("start",O,Z[iA]))}}function T(O){var aA=O.changedTouches,Z=aA.length,cA,lA;for(cA=0;cA<Z;++cA)(lA=r[aA[cA].identifier])&&(Yt(O),lA("drag",O,aA[cA]))}function K(O){var aA=O.changedTouches,Z=aA.length,cA,lA;for(B&&clearTimeout(B),B=setTimeout(function(){B=null},500),cA=0;cA<Z;++cA)(lA=r[aA[cA].identifier])&&(Jo(O),lA("end",O,aA[cA]))}function b(O,aA,Z,cA,lA,iA){var oA=a.copy(),tA=Ke(iA||Z,aA),x,eA,H;if((H=t.call(O,new Zo("beforestart",{sourceEvent:Z,target:m,identifier:lA,active:u,x:tA[0],y:tA[1],dx:0,dy:0,dispatch:oA}),cA))!=null)return x=H.x-tA[0]||0,eA=H.y-tA[1]||0,function X(F,D,k){var N=tA,R;switch(F){case"start":r[lA]=X,R=u++;break;case"end":delete r[lA],--u;case"drag":tA=Ke(k||D,aA),R=u;break}oA.call(F,O,new Zo(F,{sourceEvent:D,subject:H,target:m,identifier:lA,active:R,x:tA[0]+x,y:tA[1]+eA,dx:tA[0]-N[0],dy:tA[1]-N[1],dispatch:oA}),cA)}}return m.filter=function(O){return arguments.length?(e=typeof O=="function"?O:Br(!!O),m):e},m.container=function(O){return arguments.length?(A=typeof O=="function"?O:Br(O),m):A},m.subject=function(O){return arguments.length?(t=typeof O=="function"?O:Br(O),m):t},m.touchable=function(O){return arguments.length?(n=typeof O=="function"?O:Br(!!O),m):n},m.on=function(){var O=a.on.apply(a,arguments);return O===a?m:O},m.clickDistance=function(O){return arguments.length?(w=(O=+O)*O,m):Math.sqrt(w)},m}function jo(e,A,t){e.prototype=A.prototype=t,t.constructor=e}function Vs(e,A){var t=Object.create(e.prototype);for(var n in A)t[n]=A[n];return t}function In(){}var _n=.7,pr=1/_n,Wt="\\s*([+-]?\\d+)\\s*",Sn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Re="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Jf=/^#([0-9a-f]{3,8})$/,Zf=new RegExp(`^rgb\\(${Wt},${Wt},${Wt}\\)$`),jf=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),qf=new RegExp(`^rgba\\(${Wt},${Wt},${Wt},${Sn}\\)$`),Ag=new RegExp(`^rgba\\(${Re},${Re},${Re},${Sn}\\)$`),eg=new RegExp(`^hsl\\(${Sn},${Re},${Re}\\)$`),tg=new RegExp(`^hsla\\(${Sn},${Re},${Re},${Sn}\\)$`),Ps={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};jo(In,Ht,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Gs,formatHex:Gs,formatHex8:ng,formatHsl:rg,formatRgb:zs,toString:zs});function Gs(){return this.rgb().formatHex()}function ng(){return this.rgb().formatHex8()}function rg(){return Js(this).formatHsl()}function zs(){return this.rgb().formatRgb()}function Ht(e){var A,t;return e=(e+"").trim().toLowerCase(),(A=Jf.exec(e))?(t=A[1].length,A=parseInt(A[1],16),t===6?Xs(A):t===3?new Ce(A>>8&15|A>>4&240,A>>4&15|A&240,(A&15)<<4|A&15,1):t===8?mr(A>>24&255,A>>16&255,A>>8&255,(A&255)/255):t===4?mr(A>>12&15|A>>8&240,A>>8&15|A>>4&240,A>>4&15|A&240,((A&15)<<4|A&15)/255):null):(A=Zf.exec(e))?new Ce(A[1],A[2],A[3],1):(A=jf.exec(e))?new Ce(A[1]*255/100,A[2]*255/100,A[3]*255/100,1):(A=qf.exec(e))?mr(A[1],A[2],A[3],A[4]):(A=Ag.exec(e))?mr(A[1]*255/100,A[2]*255/100,A[3]*255/100,A[4]):(A=eg.exec(e))?Ws(A[1],A[2]/100,A[3]/100,1):(A=tg.exec(e))?Ws(A[1],A[2]/100,A[3]/100,A[4]):Ps.hasOwnProperty(e)?Xs(Ps[e]):e==="transparent"?new Ce(NaN,NaN,NaN,0):null}function Xs(e){return new Ce(e>>16&255,e>>8&255,e&255,1)}function mr(e,A,t,n){return n<=0&&(e=A=t=NaN),new Ce(e,A,t,n)}function og(e){return e instanceof In||(e=Ht(e)),e?(e=e.rgb(),new Ce(e.r,e.g,e.b,e.opacity)):new Ce}function qo(e,A,t,n){return arguments.length===1?og(e):new Ce(e,A,t,n??1)}function Ce(e,A,t,n){this.r=+e,this.g=+A,this.b=+t,this.opacity=+n}jo(Ce,qo,Vs(In,{brighter(e){return e=e==null?pr:Math.pow(pr,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?_n:Math.pow(_n,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ce(It(this.r),It(this.g),It(this.b),wr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:$s,formatHex:$s,formatHex8:ig,formatRgb:Ys,toString:Ys}));function $s(){return`#${_t(this.r)}${_t(this.g)}${_t(this.b)}`}function ig(){return`#${_t(this.r)}${_t(this.g)}${_t(this.b)}${_t((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ys(){const e=wr(this.opacity);return`${e===1?"rgb(":"rgba("}${It(this.r)}, ${It(this.g)}, ${It(this.b)}${e===1?")":`, ${e})`}`}function wr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function It(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function _t(e){return e=It(e),(e<16?"0":"")+e.toString(16)}function Ws(e,A,t,n){return n<=0?e=A=t=NaN:t<=0||t>=1?e=A=NaN:A<=0&&(e=NaN),new Te(e,A,t,n)}function Js(e){if(e instanceof Te)return new Te(e.h,e.s,e.l,e.opacity);if(e instanceof In||(e=Ht(e)),!e)return new Te;if(e instanceof Te)return e;e=e.rgb();var A=e.r/255,t=e.g/255,n=e.b/255,r=Math.min(A,t,n),a=Math.max(A,t,n),u=NaN,d=a-r,g=(a+r)/2;return d?(A===a?u=(t-n)/d+(t<n)*6:t===a?u=(n-A)/d+2:u=(A-t)/d+4,d/=g<.5?a+r:2-a-r,u*=60):d=g>0&&g<1?0:u,new Te(u,d,g,e.opacity)}function sg(e,A,t,n){return arguments.length===1?Js(e):new Te(e,A,t,n??1)}function Te(e,A,t,n){this.h=+e,this.s=+A,this.l=+t,this.opacity=+n}jo(Te,sg,Vs(In,{brighter(e){return e=e==null?pr:Math.pow(pr,e),new Te(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?_n:Math.pow(_n,e),new Te(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,A=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*A,r=2*t-n;return new Ce(Ai(e>=240?e-240:e+120,r,n),Ai(e,r,n),Ai(e<120?e+240:e-120,r,n),this.opacity)},clamp(){return new Te(Zs(this.h),Cr(this.s),Cr(this.l),wr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=wr(this.opacity);return`${e===1?"hsl(":"hsla("}${Zs(this.h)}, ${Cr(this.s)*100}%, ${Cr(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Zs(e){return e=(e||0)%360,e<0?e+360:e}function Cr(e){return Math.max(0,Math.min(1,e||0))}function Ai(e,A,t){return(e<60?A+(t-A)*e/60:e<180?t:e<240?A+(t-A)*(240-e)/60:A)*255}var ei=e=>()=>e;function ag(e,A){return function(t){return e+t*A}}function lg(e,A,t){return e=Math.pow(e,t),A=Math.pow(A,t)-e,t=1/t,function(n){return Math.pow(e+n*A,t)}}function cg(e){return(e=+e)==1?js:function(A,t){return t-A?lg(A,t,e):ei(isNaN(A)?t:A)}}function js(e,A){var t=A-e;return t?ag(e,t):ei(isNaN(e)?A:e)}var vr=(function e(A){var t=cg(A);function n(r,a){var u=t((r=qo(r)).r,(a=qo(a)).r),d=t(r.g,a.g),g=t(r.b,a.b),h=js(r.opacity,a.opacity);return function(B){return r.r=u(B),r.g=d(B),r.b=g(B),r.opacity=h(B),r+""}}return n.gamma=e,n})(1);function ug(e,A){A||(A=[]);var t=e?Math.min(A.length,e.length):0,n=A.slice(),r;return function(a){for(r=0;r<t;++r)n[r]=e[r]*(1-a)+A[r]*a;return n}}function dg(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function fg(e,A){var t=A?A.length:0,n=e?Math.min(t,e.length):0,r=new Array(n),a=new Array(t),u;for(u=0;u<n;++u)r[u]=xn(e[u],A[u]);for(;u<t;++u)a[u]=A[u];return function(d){for(u=0;u<n;++u)a[u]=r[u](d);return a}}function gg(e,A){var t=new Date;return e=+e,A=+A,function(n){return t.setTime(e*(1-n)+A*n),t}}function Ve(e,A){return e=+e,A=+A,function(t){return e*(1-t)+A*t}}function hg(e,A){var t={},n={},r;(e===null||typeof e!="object")&&(e={}),(A===null||typeof A!="object")&&(A={});for(r in A)r in e?t[r]=xn(e[r],A[r]):n[r]=A[r];return function(a){for(r in t)n[r]=t[r](a);return n}}var ti=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ni=new RegExp(ti.source,"g");function Bg(e){return function(){return e}}function pg(e){return function(A){return e(A)+""}}function qs(e,A){var t=ti.lastIndex=ni.lastIndex=0,n,r,a,u=-1,d=[],g=[];for(e=e+"",A=A+"";(n=ti.exec(e))&&(r=ni.exec(A));)(a=r.index)>t&&(a=A.slice(t,a),d[u]?d[u]+=a:d[++u]=a),(n=n[0])===(r=r[0])?d[u]?d[u]+=r:d[++u]=r:(d[++u]=null,g.push({i:u,x:Ve(n,r)})),t=ni.lastIndex;return t<A.length&&(a=A.slice(t),d[u]?d[u]+=a:d[++u]=a),d.length<2?g[0]?pg(g[0].x):Bg(A):(A=g.length,function(h){for(var B=0,w;B<A;++B)d[(w=g[B]).i]=w.x(h);return d.join("")})}function xn(e,A){var t=typeof A,n;return A==null||t==="boolean"?ei(A):(t==="number"?Ve:t==="string"?(n=Ht(A))?(A=n,vr):qs:A instanceof Ht?vr:A instanceof Date?gg:dg(A)?ug:Array.isArray(A)?fg:typeof A.valueOf!="function"&&typeof A.toString!="function"||isNaN(A)?hg:Ve)(e,A)}var Aa=180/Math.PI,ri={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ea(e,A,t,n,r,a){var u,d,g;return(u=Math.sqrt(e*e+A*A))&&(e/=u,A/=u),(g=e*t+A*n)&&(t-=e*g,n-=A*g),(d=Math.sqrt(t*t+n*n))&&(t/=d,n/=d,g/=d),e*n<A*t&&(e=-e,A=-A,g=-g,u=-u),{translateX:r,translateY:a,rotate:Math.atan2(A,e)*Aa,skewX:Math.atan(g)*Aa,scaleX:u,scaleY:d}}var yr;function mg(e){const A=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return A.isIdentity?ri:ea(A.a,A.b,A.c,A.d,A.e,A.f)}function wg(e){return e==null||(yr||(yr=document.createElementNS("http://www.w3.org/2000/svg","g")),yr.setAttribute("transform",e),!(e=yr.transform.baseVal.consolidate()))?ri:(e=e.matrix,ea(e.a,e.b,e.c,e.d,e.e,e.f))}function ta(e,A,t,n){function r(h){return h.length?h.pop()+" ":""}function a(h,B,w,m,v,y){if(h!==w||B!==m){var I=v.push("translate(",null,A,null,t);y.push({i:I-4,x:Ve(h,w)},{i:I-2,x:Ve(B,m)})}else(w||m)&&v.push("translate("+w+A+m+t)}function u(h,B,w,m){h!==B?(h-B>180?B+=360:B-h>180&&(h+=360),m.push({i:w.push(r(w)+"rotate(",null,n)-2,x:Ve(h,B)})):B&&w.push(r(w)+"rotate("+B+n)}function d(h,B,w,m){h!==B?m.push({i:w.push(r(w)+"skewX(",null,n)-2,x:Ve(h,B)}):B&&w.push(r(w)+"skewX("+B+n)}function g(h,B,w,m,v,y){if(h!==w||B!==m){var I=v.push(r(v)+"scale(",null,",",null,")");y.push({i:I-4,x:Ve(h,w)},{i:I-2,x:Ve(B,m)})}else(w!==1||m!==1)&&v.push(r(v)+"scale("+w+","+m+")")}return function(h,B){var w=[],m=[];return h=e(h),B=e(B),a(h.translateX,h.translateY,B.translateX,B.translateY,w,m),u(h.rotate,B.rotate,w,m),d(h.skewX,B.skewX,w,m),g(h.scaleX,h.scaleY,B.scaleX,B.scaleY,w,m),h=B=null,function(v){for(var y=-1,I=m.length,L;++y<I;)w[(L=m[y]).i]=L.x(v);return w.join("")}}}var Cg=ta(mg,"px, ","px)","deg)"),vg=ta(wg,", ",")",")"),yg=1e-12;function na(e){return((e=Math.exp(e))+1/e)/2}function Qg(e){return((e=Math.exp(e))-1/e)/2}function Eg(e){return((e=Math.exp(2*e))-1)/(e+1)}var Qr=(function e(A,t,n){function r(a,u){var d=a[0],g=a[1],h=a[2],B=u[0],w=u[1],m=u[2],v=B-d,y=w-g,I=v*v+y*y,L,T;if(I<yg)T=Math.log(m/h)/A,L=function(Z){return[d+Z*v,g+Z*y,h*Math.exp(A*Z*T)]};else{var K=Math.sqrt(I),b=(m*m-h*h+n*I)/(2*h*t*K),O=(m*m-h*h-n*I)/(2*m*t*K),aA=Math.log(Math.sqrt(b*b+1)-b);T=(Math.log(Math.sqrt(O*O+1)-O)-aA)/A,L=function(Z){var cA=Z*T,lA=na(aA),iA=h/(t*K)*(lA*Eg(A*cA+aA)-Qg(aA));return[d+iA*v,g+iA*y,h*lA/na(A*cA+aA)]}}return L.duration=T*1e3*A/Math.SQRT2,L}return r.rho=function(a){var u=Math.max(.001,+a),d=u*u;return e(u,d,d*d)},r})(Math.SQRT2,2,4),Jt=0,Dn=0,Nn=0,ra=1e3,Er,Ln,Fr=0,St=0,Ur=0,Tn=typeof performance=="object"&&performance.now?performance:Date,oa=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function oi(){return St||(oa(Fg),St=Tn.now()+Ur)}function Fg(){St=0}function br(){this._call=this._time=this._next=null}br.prototype=ia.prototype={constructor:br,restart:function(e,A,t){if(typeof e!="function")throw new TypeError("callback is not a function");t=(t==null?oi():+t)+(A==null?0:+A),!this._next&&Ln!==this&&(Ln?Ln._next=this:Er=this,Ln=this),this._call=e,this._time=t,ii()},stop:function(){this._call&&(this._call=null,this._time=1/0,ii())}};function ia(e,A,t){var n=new br;return n.restart(e,A,t),n}function Ug(){oi(),++Jt;for(var e=Er,A;e;)(A=St-e._time)>=0&&e._call.call(void 0,A),e=e._next;--Jt}function sa(){St=(Fr=Tn.now())+Ur,Jt=Dn=0;try{Ug()}finally{Jt=0,Hg(),St=0}}function bg(){var e=Tn.now(),A=e-Fr;A>ra&&(Ur-=A,Fr=e)}function Hg(){for(var e,A=Er,t,n=1/0;A;)A._call?(n>A._time&&(n=A._time),e=A,A=A._next):(t=A._next,A._next=null,A=e?e._next=t:Er=t);Ln=e,ii(n)}function ii(e){Jt||(Dn&&(Dn=clearTimeout(Dn)),e-St>24?(e<1/0&&(Dn=setTimeout(sa,e-Tn.now()-Ur)),Nn&&(Nn=clearInterval(Nn))):(Nn||(Fr=Tn.now(),Nn=setInterval(bg,ra)),Jt=1,oa(sa)))}function aa(e,A,t){var n=new br;return A=A==null?0:+A,n.restart(r=>{n.stop(),e(r+A)},A,t),n}var Ig=dr("start","end","cancel","interrupt"),_g=[],la=0,ca=1,si=2,Hr=3,ua=4,ai=5,Ir=6;function _r(e,A,t,n,r,a){var u=e.__transition;if(!u)e.__transition={};else if(t in u)return;Sg(e,t,{name:A,index:n,group:r,on:Ig,tween:_g,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:la})}function li(e,A){var t=ke(e,A);if(t.state>la)throw new Error("too late; already scheduled");return t}function Pe(e,A){var t=ke(e,A);if(t.state>Hr)throw new Error("too late; already running");return t}function ke(e,A){var t=e.__transition;if(!t||!(t=t[A]))throw new Error("transition not found");return t}function Sg(e,A,t){var n=e.__transition,r;n[A]=t,t.timer=ia(a,0,t.time);function a(h){t.state=ca,t.timer.restart(u,t.delay,t.time),t.delay<=h&&u(h-t.delay)}function u(h){var B,w,m,v;if(t.state!==ca)return g();for(B in n)if(v=n[B],v.name===t.name){if(v.state===Hr)return aa(u);v.state===ua?(v.state=Ir,v.timer.stop(),v.on.call("interrupt",e,e.__data__,v.index,v.group),delete n[B]):+B<A&&(v.state=Ir,v.timer.stop(),v.on.call("cancel",e,e.__data__,v.index,v.group),delete n[B])}if(aa(function(){t.state===Hr&&(t.state=ua,t.timer.restart(d,t.delay,t.time),d(h))}),t.state=si,t.on.call("start",e,e.__data__,t.index,t.group),t.state===si){for(t.state=Hr,r=new Array(m=t.tween.length),B=0,w=-1;B<m;++B)(v=t.tween[B].value.call(e,e.__data__,t.index,t.group))&&(r[++w]=v);r.length=w+1}}function d(h){for(var B=h<t.duration?t.ease.call(null,h/t.duration):(t.timer.restart(g),t.state=ai,1),w=-1,m=r.length;++w<m;)r[w].call(e,B);t.state===ai&&(t.on.call("end",e,e.__data__,t.index,t.group),g())}function g(){t.state=Ir,t.timer.stop(),delete n[A];for(var h in n)return;delete e.__transition}}function Sr(e,A){var t=e.__transition,n,r,a=!0,u;if(t){A=A==null?null:A+"";for(u in t){if((n=t[u]).name!==A){a=!1;continue}r=n.state>si&&n.state<ai,n.state=Ir,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete t[u]}a&&delete e.__transition}}function xg(e){return this.each(function(){Sr(this,e)})}function Dg(e,A){var t,n;return function(){var r=Pe(this,e),a=r.tween;if(a!==t){n=t=a;for(var u=0,d=n.length;u<d;++u)if(n[u].name===A){n=n.slice(),n.splice(u,1);break}}r.tween=n}}function Ng(e,A,t){var n,r;if(typeof t!="function")throw new Error;return function(){var a=Pe(this,e),u=a.tween;if(u!==n){r=(n=u).slice();for(var d={name:A,value:t},g=0,h=r.length;g<h;++g)if(r[g].name===A){r[g]=d;break}g===h&&r.push(d)}a.tween=r}}function Lg(e,A){var t=this._id;if(e+="",arguments.length<2){for(var n=ke(this.node(),t).tween,r=0,a=n.length,u;r<a;++r)if((u=n[r]).name===e)return u.value;return null}return this.each((A==null?Dg:Ng)(t,e,A))}function ci(e,A,t){var n=e._id;return e.each(function(){var r=Pe(this,n);(r.value||(r.value={}))[A]=t.apply(this,arguments)}),function(r){return ke(r,n).value[A]}}function da(e,A){var t;return(typeof A=="number"?Ve:A instanceof Ht?vr:(t=Ht(A))?(A=t,vr):qs)(e,A)}function Tg(e){return function(){this.removeAttribute(e)}}function kg(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Mg(e,A,t){var n,r=t+"",a;return function(){var u=this.getAttribute(e);return u===r?null:u===n?a:a=A(n=u,t)}}function Og(e,A,t){var n,r=t+"",a;return function(){var u=this.getAttributeNS(e.space,e.local);return u===r?null:u===n?a:a=A(n=u,t)}}function Kg(e,A,t){var n,r,a;return function(){var u,d=t(this),g;return d==null?void this.removeAttribute(e):(u=this.getAttribute(e),g=d+"",u===g?null:u===n&&g===r?a:(r=g,a=A(n=u,d)))}}function Rg(e,A,t){var n,r,a;return function(){var u,d=t(this),g;return d==null?void this.removeAttributeNS(e.space,e.local):(u=this.getAttributeNS(e.space,e.local),g=d+"",u===g?null:u===n&&g===r?a:(r=g,a=A(n=u,d)))}}function Vg(e,A){var t=gr(e),n=t==="transform"?vg:da;return this.attrTween(e,typeof A=="function"?(t.local?Rg:Kg)(t,n,ci(this,"attr."+e,A)):A==null?(t.local?kg:Tg)(t):(t.local?Og:Mg)(t,n,A))}function Pg(e,A){return function(t){this.setAttribute(e,A.call(this,t))}}function Gg(e,A){return function(t){this.setAttributeNS(e.space,e.local,A.call(this,t))}}function zg(e,A){var t,n;function r(){var a=A.apply(this,arguments);return a!==n&&(t=(n=a)&&Gg(e,a)),t}return r._value=A,r}function Xg(e,A){var t,n;function r(){var a=A.apply(this,arguments);return a!==n&&(t=(n=a)&&Pg(e,a)),t}return r._value=A,r}function $g(e,A){var t="attr."+e;if(arguments.length<2)return(t=this.tween(t))&&t._value;if(A==null)return this.tween(t,null);if(typeof A!="function")throw new Error;var n=gr(e);return this.tween(t,(n.local?zg:Xg)(n,A))}function Yg(e,A){return function(){li(this,e).delay=+A.apply(this,arguments)}}function Wg(e,A){return A=+A,function(){li(this,e).delay=A}}function Jg(e){var A=this._id;return arguments.length?this.each((typeof e=="function"?Yg:Wg)(A,e)):ke(this.node(),A).delay}function Zg(e,A){return function(){Pe(this,e).duration=+A.apply(this,arguments)}}function jg(e,A){return A=+A,function(){Pe(this,e).duration=A}}function qg(e){var A=this._id;return arguments.length?this.each((typeof e=="function"?Zg:jg)(A,e)):ke(this.node(),A).duration}function Ah(e,A){if(typeof A!="function")throw new Error;return function(){Pe(this,e).ease=A}}function eh(e){var A=this._id;return arguments.length?this.each(Ah(A,e)):ke(this.node(),A).ease}function th(e,A){return function(){var t=A.apply(this,arguments);if(typeof t!="function")throw new Error;Pe(this,e).ease=t}}function nh(e){if(typeof e!="function")throw new Error;return this.each(th(this._id,e))}function rh(e){typeof e!="function"&&(e=_s(e));for(var A=this._groups,t=A.length,n=new Array(t),r=0;r<t;++r)for(var a=A[r],u=a.length,d=n[r]=[],g,h=0;h<u;++h)(g=a[h])&&e.call(g,g.__data__,h,a)&&d.push(g);return new qe(n,this._parents,this._name,this._id)}function oh(e){if(e._id!==this._id)throw new Error;for(var A=this._groups,t=e._groups,n=A.length,r=t.length,a=Math.min(n,r),u=new Array(n),d=0;d<a;++d)for(var g=A[d],h=t[d],B=g.length,w=u[d]=new Array(B),m,v=0;v<B;++v)(m=g[v]||h[v])&&(w[v]=m);for(;d<n;++d)u[d]=A[d];return new qe(u,this._parents,this._name,this._id)}function ih(e){return(e+"").trim().split(/^|\s+/).every(function(A){var t=A.indexOf(".");return t>=0&&(A=A.slice(0,t)),!A||A==="start"})}function sh(e,A,t){var n,r,a=ih(A)?li:Pe;return function(){var u=a(this,e),d=u.on;d!==n&&(r=(n=d).copy()).on(A,t),u.on=r}}function ah(e,A){var t=this._id;return arguments.length<2?ke(this.node(),t).on.on(e):this.each(sh(t,e,A))}function lh(e){return function(){var A=this.parentNode;for(var t in this.__transition)if(+t!==e)return;A&&A.removeChild(this)}}function ch(){return this.on("end.remove",lh(this._id))}function uh(e){var A=this._name,t=this._id;typeof e!="function"&&(e=Yo(e));for(var n=this._groups,r=n.length,a=new Array(r),u=0;u<r;++u)for(var d=n[u],g=d.length,h=a[u]=new Array(g),B,w,m=0;m<g;++m)(B=d[m])&&(w=e.call(B,B.__data__,m,d))&&("__data__"in B&&(w.__data__=B.__data__),h[m]=w,_r(h[m],A,t,m,h,ke(B,t)));return new qe(a,this._parents,A,t)}function dh(e){var A=this._name,t=this._id;typeof e!="function"&&(e=Is(e));for(var n=this._groups,r=n.length,a=[],u=[],d=0;d<r;++d)for(var g=n[d],h=g.length,B,w=0;w<h;++w)if(B=g[w]){for(var m=e.call(B,B.__data__,w,g),v,y=ke(B,t),I=0,L=m.length;I<L;++I)(v=m[I])&&_r(v,A,t,I,m,y);a.push(m),u.push(B)}return new qe(a,u,A,t)}var fh=bn.prototype.constructor;function gh(){return new fh(this._groups,this._parents)}function hh(e,A){var t,n,r;return function(){var a=$t(this,e),u=(this.style.removeProperty(e),$t(this,e));return a===u?null:a===t&&u===n?r:r=A(t=a,n=u)}}function fa(e){return function(){this.style.removeProperty(e)}}function Bh(e,A,t){var n,r=t+"",a;return function(){var u=$t(this,e);return u===r?null:u===n?a:a=A(n=u,t)}}function ph(e,A,t){var n,r,a;return function(){var u=$t(this,e),d=t(this),g=d+"";return d==null&&(g=d=(this.style.removeProperty(e),$t(this,e))),u===g?null:u===n&&g===r?a:(r=g,a=A(n=u,d))}}function mh(e,A){var t,n,r,a="style."+A,u="end."+a,d;return function(){var g=Pe(this,e),h=g.on,B=g.value[a]==null?d||(d=fa(A)):void 0;(h!==t||r!==B)&&(n=(t=h).copy()).on(u,r=B),g.on=n}}function wh(e,A,t){var n=(e+="")=="transform"?Cg:da;return A==null?this.styleTween(e,hh(e,n)).on("end.style."+e,fa(e)):typeof A=="function"?this.styleTween(e,ph(e,n,ci(this,"style."+e,A))).each(mh(this._id,e)):this.styleTween(e,Bh(e,n,A),t).on("end.style."+e,null)}function Ch(e,A,t){return function(n){this.style.setProperty(e,A.call(this,n),t)}}function vh(e,A,t){var n,r;function a(){var u=A.apply(this,arguments);return u!==r&&(n=(r=u)&&Ch(e,u,t)),n}return a._value=A,a}function yh(e,A,t){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(A==null)return this.tween(n,null);if(typeof A!="function")throw new Error;return this.tween(n,vh(e,A,t??""))}function Qh(e){return function(){this.textContent=e}}function Eh(e){return function(){var A=e(this);this.textContent=A??""}}function Fh(e){return this.tween("text",typeof e=="function"?Eh(ci(this,"text",e)):Qh(e==null?"":e+""))}function Uh(e){return function(A){this.textContent=e.call(this,A)}}function bh(e){var A,t;function n(){var r=e.apply(this,arguments);return r!==t&&(A=(t=r)&&Uh(r)),A}return n._value=e,n}function Hh(e){var A="text";if(arguments.length<1)return(A=this.tween(A))&&A._value;if(e==null)return this.tween(A,null);if(typeof e!="function")throw new Error;return this.tween(A,bh(e))}function Ih(){for(var e=this._name,A=this._id,t=ga(),n=this._groups,r=n.length,a=0;a<r;++a)for(var u=n[a],d=u.length,g,h=0;h<d;++h)if(g=u[h]){var B=ke(g,A);_r(g,e,t,h,u,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new qe(n,this._parents,e,t)}function _h(){var e,A,t=this,n=t._id,r=t.size();return new Promise(function(a,u){var d={value:u},g={value:function(){--r===0&&a()}};t.each(function(){var h=Pe(this,n),B=h.on;B!==e&&(A=(e=B).copy(),A._.cancel.push(d),A._.interrupt.push(d),A._.end.push(g)),h.on=A}),r===0&&a()})}var Sh=0;function qe(e,A,t,n){this._groups=e,this._parents=A,this._name=t,this._id=n}function ga(){return++Sh}var At=bn.prototype;qe.prototype={constructor:qe,select:uh,selectAll:dh,selectChild:At.selectChild,selectChildren:At.selectChildren,filter:rh,merge:oh,selection:gh,transition:Ih,call:At.call,nodes:At.nodes,node:At.node,size:At.size,empty:At.empty,each:At.each,on:ah,attr:Vg,attrTween:$g,style:wh,styleTween:yh,text:Fh,textTween:Hh,remove:ch,tween:Lg,delay:Jg,duration:qg,ease:eh,easeVarying:nh,end:_h,[Symbol.iterator]:At[Symbol.iterator]};function xh(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Dh={time:null,delay:0,duration:250,ease:xh};function Nh(e,A){for(var t;!(t=e.__transition)||!(t=t[A]);)if(!(e=e.parentNode))throw new Error(`transition ${A} not found`);return t}function Lh(e){var A,t;e instanceof qe?(A=e._id,e=e._name):(A=ga(),(t=Dh).time=oi(),e=e==null?null:e+"");for(var n=this._groups,r=n.length,a=0;a<r;++a)for(var u=n[a],d=u.length,g,h=0;h<d;++h)(g=u[h])&&_r(g,e,A,h,u,t||Nh(g,A));return new qe(n,this._parents,e,A)}bn.prototype.interrupt=xg,bn.prototype.transition=Lh;var xr=e=>()=>e;function Th(e,{sourceEvent:A,target:t,transform:n,dispatch:r}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:A,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},transform:{value:n,enumerable:!0,configurable:!0},_:{value:r}})}function et(e,A,t){this.k=e,this.x=A,this.y=t}et.prototype={constructor:et,scale:function(e){return e===1?this:new et(this.k*e,this.x,this.y)},translate:function(e,A){return e===0&A===0?this:new et(this.k,this.x+this.k*e,this.y+this.k*A)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Zt=new et(1,0,0);et.prototype;function ui(e){e.stopImmediatePropagation()}function kn(e){e.preventDefault(),e.stopImmediatePropagation()}function kh(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Mh(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function ha(){return this.__zoom||Zt}function Oh(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Kh(){return navigator.maxTouchPoints||"ontouchstart"in this}function Rh(e,A,t){var n=e.invertX(A[0][0])-t[0][0],r=e.invertX(A[1][0])-t[1][0],a=e.invertY(A[0][1])-t[0][1],u=e.invertY(A[1][1])-t[1][1];return e.translate(r>n?(n+r)/2:Math.min(0,n)||Math.max(0,r),u>a?(a+u)/2:Math.min(0,a)||Math.max(0,u))}function Vh(){var e=kh,A=Mh,t=Rh,n=Oh,r=Kh,a=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],d=250,g=Qr,h=dr("start","zoom","end"),B,w,m,v=500,y=150,I=0,L=10;function T(H){H.property("__zoom",ha).on("wheel.zoom",lA,{passive:!1}).on("mousedown.zoom",iA).on("dblclick.zoom",oA).filter(r).on("touchstart.zoom",tA).on("touchmove.zoom",x).on("touchend.zoom touchcancel.zoom",eA).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}T.transform=function(H,X,F,D){var k=H.selection?H.selection():H;k.property("__zoom",ha),H!==k?aA(H,X,F,D):k.interrupt().each(function(){Z(this,arguments).event(D).start().zoom(null,typeof X=="function"?X.apply(this,arguments):X).end()})},T.scaleBy=function(H,X,F,D){T.scaleTo(H,function(){return this.__zoom.k*(typeof X=="function"?X.apply(this,arguments):X)},F,D)},T.scaleTo=function(H,X,F,D){T.transform(H,function(){var k=A.apply(this,arguments),N=this.__zoom,R=F==null?O(k):typeof F=="function"?F.apply(this,arguments):F,$=N.invert(R),nA=typeof X=="function"?X.apply(this,arguments):X;return t(b(K(N,nA),R,$),k,u)},F,D)},T.translateBy=function(H,X,F,D){T.transform(H,function(){return t(this.__zoom.translate(typeof X=="function"?X.apply(this,arguments):X,typeof F=="function"?F.apply(this,arguments):F),A.apply(this,arguments),u)},null,D)},T.translateTo=function(H,X,F,D,k){T.transform(H,function(){var N=A.apply(this,arguments),R=this.__zoom,$=D==null?O(N):typeof D=="function"?D.apply(this,arguments):D;return t(Zt.translate($[0],$[1]).scale(R.k).translate(typeof X=="function"?-X.apply(this,arguments):-X,typeof F=="function"?-F.apply(this,arguments):-F),N,u)},D,k)};function K(H,X){return X=Math.max(a[0],Math.min(a[1],X)),X===H.k?H:new et(X,H.x,H.y)}function b(H,X,F){var D=X[0]-F[0]*H.k,k=X[1]-F[1]*H.k;return D===H.x&&k===H.y?H:new et(H.k,D,k)}function O(H){return[(+H[0][0]+ +H[1][0])/2,(+H[0][1]+ +H[1][1])/2]}function aA(H,X,F,D){H.on("start.zoom",function(){Z(this,arguments).event(D).start()}).on("interrupt.zoom end.zoom",function(){Z(this,arguments).event(D).end()}).tween("zoom",function(){var k=this,N=arguments,R=Z(k,N).event(D),$=A.apply(k,N),nA=F==null?O($):typeof F=="function"?F.apply(k,N):F,BA=Math.max($[1][0]-$[0][0],$[1][1]-$[0][1]),FA=k.__zoom,sA=typeof X=="function"?X.apply(k,N):X,Y=g(FA.invert(nA).concat(BA/FA.k),sA.invert(nA).concat(BA/sA.k));return function(J){if(J===1)J=sA;else{var uA=Y(J),wA=BA/uA[2];J=new et(wA,nA[0]-uA[0]*wA,nA[1]-uA[1]*wA)}R.zoom(null,J)}})}function Z(H,X,F){return!F&&H.__zooming||new cA(H,X)}function cA(H,X){this.that=H,this.args=X,this.active=0,this.sourceEvent=null,this.extent=A.apply(H,X),this.taps=0}cA.prototype={event:function(H){return H&&(this.sourceEvent=H),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(H,X){return this.mouse&&H!=="mouse"&&(this.mouse[1]=X.invert(this.mouse[0])),this.touch0&&H!=="touch"&&(this.touch0[1]=X.invert(this.touch0[0])),this.touch1&&H!=="touch"&&(this.touch1[1]=X.invert(this.touch1[0])),this.that.__zoom=X,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(H){var X=Le(this.that).datum();h.call(H,this.that,new Th(H,{sourceEvent:this.sourceEvent,target:T,type:H,transform:this.that.__zoom,dispatch:h}),X)}};function lA(H,...X){if(!e.apply(this,arguments))return;var F=Z(this,X).event(H),D=this.__zoom,k=Math.max(a[0],Math.min(a[1],D.k*Math.pow(2,n.apply(this,arguments)))),N=Ke(H);if(F.wheel)(F.mouse[0][0]!==N[0]||F.mouse[0][1]!==N[1])&&(F.mouse[1]=D.invert(F.mouse[0]=N)),clearTimeout(F.wheel);else{if(D.k===k)return;F.mouse=[N,D.invert(N)],Sr(this),F.start()}kn(H),F.wheel=setTimeout(R,y),F.zoom("mouse",t(b(K(D,k),F.mouse[0],F.mouse[1]),F.extent,u));function R(){F.wheel=null,F.end()}}function iA(H,...X){if(m||!e.apply(this,arguments))return;var F=H.currentTarget,D=Z(this,X,!0).event(H),k=Le(H.view).on("mousemove.zoom",nA,!0).on("mouseup.zoom",BA,!0),N=Ke(H,F),R=H.clientX,$=H.clientY;Ks(H.view),ui(H),D.mouse=[N,this.__zoom.invert(N)],Sr(this),D.start();function nA(FA){if(kn(FA),!D.moved){var sA=FA.clientX-R,Y=FA.clientY-$;D.moved=sA*sA+Y*Y>I}D.event(FA).zoom("mouse",t(b(D.that.__zoom,D.mouse[0]=Ke(FA,F),D.mouse[1]),D.extent,u))}function BA(FA){k.on("mousemove.zoom mouseup.zoom",null),Rs(FA.view,D.moved),kn(FA),D.event(FA).end()}}function oA(H,...X){if(e.apply(this,arguments)){var F=this.__zoom,D=Ke(H.changedTouches?H.changedTouches[0]:H,this),k=F.invert(D),N=F.k*(H.shiftKey?.5:2),R=t(b(K(F,N),D,k),A.apply(this,X),u);kn(H),d>0?Le(this).transition().duration(d).call(aA,R,D,H):Le(this).call(T.transform,R,D,H)}}function tA(H,...X){if(e.apply(this,arguments)){var F=H.touches,D=F.length,k=Z(this,X,H.changedTouches.length===D).event(H),N,R,$,nA;for(ui(H),R=0;R<D;++R)$=F[R],nA=Ke($,this),nA=[nA,this.__zoom.invert(nA),$.identifier],k.touch0?!k.touch1&&k.touch0[2]!==nA[2]&&(k.touch1=nA,k.taps=0):(k.touch0=nA,N=!0,k.taps=1+!!B);B&&(B=clearTimeout(B)),N&&(k.taps<2&&(w=nA[0],B=setTimeout(function(){B=null},v)),Sr(this),k.start())}}function x(H,...X){if(this.__zooming){var F=Z(this,X).event(H),D=H.changedTouches,k=D.length,N,R,$,nA;for(kn(H),N=0;N<k;++N)R=D[N],$=Ke(R,this),F.touch0&&F.touch0[2]===R.identifier?F.touch0[0]=$:F.touch1&&F.touch1[2]===R.identifier&&(F.touch1[0]=$);if(R=F.that.__zoom,F.touch1){var BA=F.touch0[0],FA=F.touch0[1],sA=F.touch1[0],Y=F.touch1[1],J=(J=sA[0]-BA[0])*J+(J=sA[1]-BA[1])*J,uA=(uA=Y[0]-FA[0])*uA+(uA=Y[1]-FA[1])*uA;R=K(R,Math.sqrt(J/uA)),$=[(BA[0]+sA[0])/2,(BA[1]+sA[1])/2],nA=[(FA[0]+Y[0])/2,(FA[1]+Y[1])/2]}else if(F.touch0)$=F.touch0[0],nA=F.touch0[1];else return;F.zoom("touch",t(b(R,$,nA),F.extent,u))}}function eA(H,...X){if(this.__zooming){var F=Z(this,X).event(H),D=H.changedTouches,k=D.length,N,R;for(ui(H),m&&clearTimeout(m),m=setTimeout(function(){m=null},v),N=0;N<k;++N)R=D[N],F.touch0&&F.touch0[2]===R.identifier?delete F.touch0:F.touch1&&F.touch1[2]===R.identifier&&delete F.touch1;if(F.touch1&&!F.touch0&&(F.touch0=F.touch1,delete F.touch1),F.touch0)F.touch0[1]=this.__zoom.invert(F.touch0[0]);else if(F.end(),F.taps===2&&(R=Ke(R,this),Math.hypot(w[0]-R[0],w[1]-R[1])<L)){var $=Le(this).on("dblclick.zoom");$&&$.apply(this,arguments)}}}return T.wheelDelta=function(H){return arguments.length?(n=typeof H=="function"?H:xr(+H),T):n},T.filter=function(H){return arguments.length?(e=typeof H=="function"?H:xr(!!H),T):e},T.touchable=function(H){return arguments.length?(r=typeof H=="function"?H:xr(!!H),T):r},T.extent=function(H){return arguments.length?(A=typeof H=="function"?H:xr([[+H[0][0],+H[0][1]],[+H[1][0],+H[1][1]]]),T):A},T.scaleExtent=function(H){return arguments.length?(a[0]=+H[0],a[1]=+H[1],T):[a[0],a[1]]},T.translateExtent=function(H){return arguments.length?(u[0][0]=+H[0][0],u[1][0]=+H[1][0],u[0][1]=+H[0][1],u[1][1]=+H[1][1],T):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},T.constrain=function(H){return arguments.length?(t=H,T):t},T.duration=function(H){return arguments.length?(d=+H,T):d},T.interpolate=function(H){return arguments.length?(g=H,T):g},T.on=function(){var H=h.on.apply(h,arguments);return H===h?T:H},T.clickDistance=function(H){return arguments.length?(I=(H=+H)*H,T):Math.sqrt(I)},T.tapDistance=function(H){return arguments.length?(L=+H,T):L},T}var IA=(e=>(e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom",e))(IA||{}),di=(e=>(e.Partial="partial",e.Full="full",e))(di||{}),xt=(e=>(e.Bezier="default",e.SimpleBezier="simple-bezier",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e))(xt||{}),tt=(e=>(e.Strict="strict",e.Loose="loose",e))(tt||{}),nt=(e=>(e.Arrow="arrow",e.ArrowClosed="arrowclosed",e))(nt||{}),Mn=(e=>(e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal",e))(Mn||{}),Ba=(e=>(e.TopLeft="top-left",e.TopCenter="top-center",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomCenter="bottom-center",e.BottomRight="bottom-right",e))(Ba||{}),Ph=["INPUT","SELECT","TEXTAREA"],Gh=typeof document<"u"?document:null;function fi(e){var A,t;const n=((t=(A=e.composedPath)==null?void 0:A.call(e))==null?void 0:t[0])||e.target,r=typeof n?.hasAttribute=="function"?n.hasAttribute("contenteditable"):!1,a=typeof n?.closest=="function"?n.closest(".nokey"):null;return Ph.includes(n?.nodeName)||r||!!a}function zh(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function pa(e,A,t,n){const r=A.replace("+",`
|
|
1
|
+
(function(ne,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("@a2simcode/ui")):typeof define=="function"&&define.amd?define(["exports","vue","@a2simcode/ui"],o):(ne=typeof globalThis<"u"?globalThis:ne||self,o(ne.DuiUI={},ne.Vue,ne.SimCodeUI))})(this,function(ne,o,me){Object.defineProperties(ne,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var bu=Object.create,ur=Object.defineProperty,Hu=Object.getOwnPropertyDescriptor,Iu=Object.getOwnPropertyNames,_u=Object.getPrototypeOf,Su=Object.prototype.hasOwnProperty,xu=(e,A)=>()=>(A||(e((A={exports:{}}).exports,A),e=null),A.exports),Du=(e,A)=>{let t={};for(var n in e)ur(t,n,{get:e[n],enumerable:!0});return A||ur(t,Symbol.toStringTag,{value:"Module"}),t},ko=(e,A,t,n)=>{if(A&&typeof A=="object"||typeof A=="function")for(var r=Iu(A),a=0,u=r.length,d;a<u;a++)d=r[a],!Su.call(e,d)&&d!==t&&ur(e,d,{get:(g=>A[g]).bind(null,d),enumerable:!(n=Hu(A,d))||n.enumerable});return e},Nu=(e,A,t)=>(ko(e,A,"default"),t&&ko(t,A,"default")),Bs=(e,A,t)=>(t=e!=null?bu(_u(e)):{},ko(A||!e||!e.__esModule?ur(t,"default",{value:e,enumerable:!0}):t,e));o=Bs(o,1);var dt=(e,A)=>(e.install=t=>{t.component(e.name,e),A&&A.forEach(n=>{t.component(n.name,n)})},e),ft=(e="")=>{const A=Date.now(),t=Math.floor(Math.random()*1e9);return e===""?String(t)+String(A):e+"_"+t+String(A)},zt=e=>{if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(zt);const A={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=zt(e[t]));return A},Lu=e=>{if(Array.isArray(e))e.length=0;else if(e&&typeof e=="object")for(const A in e)Object.prototype.hasOwnProperty.call(e,A)&&delete e[A]},Mo={},Tu=(e,A,t)=>{t[e]=t[e]||{};const n=ft();return t[e][n]=A,n},ku=(e,A,t)=>{const n=[],r=t[e]||{};return Object.keys(r).forEach(a=>{const u=r[a];try{u&&n.push(u(A))}catch(d){console.error(d)}}),n},Mu=(e,A,t)=>{if(A){const n=t[e];n&&delete n[A]}else delete t[e]},ps=(e,A)=>Tu(e,A,Mo),re=(e,A)=>ku(e,A,Mo),Ou=(e,A)=>{Mu(e,A,Mo)},ms=(e,A,t,n,r,a)=>{const u=A.id,d=A.level,{getDesignLocals:g,selectComponent:h,getComponent:B,isMyChildComponent:w,addComponent:m,deleteComponent:v,getParentComponents:y,removeComponentFromContainer:I,addComponentToContainer:L,copyComponent:T,activedComponent:K,top:b}=(0,o.inject)("d-drag-design-provide",{}),O=[],aA=(0,o.ref)(!1),Z=(0,o.ref)(!1),cA=(0,o.ref)(!1),lA=(0,o.ref)(!1),iA=(0,o.ref)(!1),oA={id:"",type:""},tA=(0,o.ref)(!1),x=(0,o.ref)(!1);let eA="",H=null;const X=J=>{if(eA===J)return H;eA=J;const{top:uA,left:wA,width:QA,height:_A}=e.value.getBoundingClientRect();return H=[{x:wA,y:uA},{x:wA+QA,y:uA},{x:wA+QA,y:uA+_A},{x:wA,y:uA+_A}],H},F=(J,uA,wA)=>{let QA=uA-wA[0].y;QA<0&&(QA=-QA);let _A=uA-wA[3].y;_A<0&&(_A=-_A);let gA=J-wA[0].x;gA<0&&(gA=-gA);let j=J-wA[1].x;return j<0&&(j=-j),{ly:QA>_A?_A:QA,typey:QA>_A?"bottom":"top",lx:gA>j?j:gA,lallx:gA+j}},D=(J,uA,wA)=>J>=wA[0].x&&J<=wA[1].x&&uA>=wA[0].y&&uA<=wA[3].y,k=()=>{if(r){re("dragClick",{id:u});return}if(!Z.value){if(h(u),d!==0){const J=e.value.getBoundingClientRect(),uA=g();J.top-uA.top<22?lA.value=!0:lA.value=!1}Z.value=!0,re("dragClick",{id:u})}},N=J=>{const uA=v(J);uA&&(0,o.nextTick)(()=>{re("dragClick",{id:uA})})},R=()=>{oA.id="",oA.type="",d===0&&(iA.value=!1)},$=()=>{re("mouseEnterOrLeave",{id:u,type:"enter"})},nA=()=>{re("mouseEnterOrLeave",{id:u,type:"leave"})},BA=J=>{re("dragClick",{id:J})},FA={mouseEnterOrLeave:({id:J,type:uA})=>{uA==="enter"?O.push(J):O.length>0&&O.splice(O.length-1,1);const wA=O.length;wA>0&&u===O[wA-1]?aA.value=!0:aA.value=!1},dragAciveChild:({type:J,id:uA})=>{uA===u?J==="top"?(tA.value=!0,x.value=!1):(x.value=!0,tA.value=!1):(x.value=!1,tA.value=!1)},dragClick({id:J,isAgain:uA}){J!==u?Z.value=!1:(uA&&(Z.value=!1),k())}};FA[`dragGetChildDistance_${u}`]=({dragX:J,dragY:uA,moveId:wA})=>F(J,uA,X(wA));const sA={isInContainer({x:J,y:uA,id:wA,moveId:QA}){if(u===wA||w(wA,u))return cA.value=!1,{isIn:!1,level:d,id:u,groupId:a};const _A=X(QA);if(D(J,uA,_A))return d===0&&(iA.value=!0),{isIn:!0,level:d,id:u,groupId:a};if(d===0){const{ly:gA,lx:j}=F(J,uA,_A);if(gA<20&&j<20)return iA.value=!0,{isIn:!0,level:d,id:u,groupId:a};iA.value=!1}return cA.value=!1,{isIn:!1,level:d,id:u,groupId:a}},dragActiveContainer:({containerId:J,containerGroupId:uA,dragX:wA,dragY:QA,moveId:_A})=>{if(J===u&&uA===a)if(cA.value=!0,n&&n.value.length>0){let gA={ly:9999999,lx:0,lallx:0,id:"",typey:""};n?.value.forEach(j=>{if(a&&j.groupId!==a)return;const _=re(`dragGetChildDistance_${j.id}`,{dragX:wA,dragY:QA,moveId:_A})[0];_&&(gA.ly>_.ly||gA.ly===_.ly&&(gA.lx>_.lx||gA.lx===_.lx&&gA.lallx>_.lallx))&&(gA=_,gA.id=j.id)}),oA.id=gA.id,oA.type=gA.typey,re("dragAciveChild",{id:gA.id,type:gA.typey})}else re("dragAciveChild",{id:""});else cA.value=!1},dragAdd:J=>{if(cA.value){let uA=n?.value.length||0;oA.id!==""&&oA.id!==void 0&&(uA=n?.value.findIndex(wA=>wA.id===oA.id)||0,oA.type==="bottom"&&(uA+=1)),m(J,u,uA,a),cA.value=!1}R()},dragAddByClick:J=>{if(!K.value&&u===b.id||K.value?.id===u||K.value?.containerId===u&&K.value?.dragType!=="container"){const uA=m(J,u,n?.value.length||0,a,!0);uA&&J.config&&Object.keys(J.config).forEach(wA=>{uA.config[wA]=J.config[wA]})}},dragUpdate(J){if(cA.value){const uA=B(J);if(uA.level=d+1,oA.id!==uA.id){I(uA.containerId,J);let wA=n?.value.findIndex(QA=>QA.id===oA.id)||0;oA.type==="bottom"&&(wA+=1),L(uA,u,wA,a)}cA.value=!1,(0,o.nextTick)(()=>{re("dragClick",{id:uA.id,isAgain:!0})})}R()}},Y={};return(0,o.onMounted)(()=>{(!r||t!=="container")&&Object.keys(FA).forEach(J=>{Y[J]=ps(J,FA[J])}),t==="container"&&Object.keys(sA).forEach(J=>{Y[J]=ps(J,sA[J])}),A.isNewAdd&&(0,o.nextTick)(()=>{k(),delete A.isNewAdd})}),(0,o.onUnmounted)(()=>{Object.keys(Y).forEach(J=>{Ou(J,Y[J])})}),{onMouseenter:$,onMouseleave:nA,activeComponent:k,handleComponentClick:BA,deleteComponentByClick:N,copyComponent:T,getParentComponents:y,isBottomToolBar:lA,isHover:aA,isSelect:Z,isToContainer:cA,isMoveingInTopLevel:iA,isTopActive:tA,isBottomActive:x}},ws=(e,A)=>{const t={x:0,y:0,clientX:0,clientY:0,dragElement:null,dragElementId:"jcode-darg-move-id",toContainerLevel:-1,toContainerId:"",groupId:"",id:""};let n=!1;const r=(v,y)=>{n!==!0&&(n=!0,setTimeout(()=>{v(),n=!1},y))},a=(0,o.ref)(!1),u=(v,y,I)=>{const L=document.createElement("div");return L.id=t.dragElementId,L.innerText=v,L.className="d-drag-move",L.style.top=`${y}px`,L.style.left=`${I}px`,document.body.appendChild(L),L},d=()=>{document.onmousemove=null,document.onmouseup=null,a.value=!1,re("dragAciveChild",{id:""})},g=()=>{d(),t.dragElement&&(t.dragElement.remove(),t.dragElement=null,A?re("dragAdd",e):re("dragUpdate",e.id))},h=v=>{const{clientY:y,clientX:I}=v;if(!t.dragElement){const L=Math.abs(t.x-I),T=Math.abs(t.y-y);if(L<=1&&T<=1)return;a.value=!0,t.dragElement=u(e.name,y-11,I-32)}t.dragElement.style.top=`${y-11}px`,t.dragElement.style.left=`${I-32}px`,t.clientX=I,t.clientY=y,r(()=>{if(!a.value)return;const L=re("isInContainer",{x:I,y,id:e.id,moveId:t.id});t.toContainerLevel=-1,t.toContainerId="",t.groupId="",L.forEach(({level:T,id:K,isIn:b,groupId:O})=>{b&&t.toContainerLevel<T&&(t.toContainerLevel=T,t.toContainerId=K,t.groupId=O)}),t.toContainerId!==""?re("dragActiveContainer",{containerId:t.toContainerId,containerGroupId:t.groupId,dragX:I,dragY:y,moveId:t.id}):re("dragAciveChild",{id:""})},100)};return{onContextmenu:()=>{d()},onMousedown:v=>{t.x=v.clientX,t.y=v.clientY,t.id=ft(),document.onmouseup=g,document.onmousemove=h},onClick:()=>{re("dragAddByClick",e)},moveActive:a}},Ku={class:"d-drag-btns-pname"},Ru={key:0,class:"d-drag-mask"},Vu=(0,o.defineComponent)({name:"DDrag",__name:"drag",props:{componentData:{default:()=>({})},isContainer:{type:Boolean,default:!1}},setup(e){const A=e,t=(0,o.ref)(),{onMouseenter:n,onMouseleave:r,activeComponent:a,handleComponentClick:u,deleteComponentByClick:d,copyComponent:g,getParentComponents:h,isHover:B,isSelect:w,isTopActive:m,isBottomActive:v,isBottomToolBar:y}=ms(t,A.componentData,"component"),{onContextmenu:I,onMousedown:L,moveActive:T}=ws(A.componentData,!1);return(K,b)=>{const O=(0,o.resolveComponent)("j-button"),aA=(0,o.resolveComponent)("el-space");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["d-drag-component",{selected:(0,o.unref)(w),hovered:(0,o.unref)(B),isBottomToolBar:(0,o.unref)(y),active:(0,o.unref)(T),isTopActive:(0,o.unref)(m),isBottomActive:(0,o.unref)(v)}])},[b[11]||(b[11]=(0,o.createElementVNode)("div",{class:"d-drag-line"},null,-1)),(0,o.createElementVNode)("div",{class:"d-drag-btns",onMouseenter:b[4]||(b[4]=(...Z)=>(0,o.unref)(n)&&(0,o.unref)(n)(...Z)),onMouseleave:b[5]||(b[5]=(...Z)=>(0,o.unref)(r)&&(0,o.unref)(r)(...Z))},[(0,o.createVNode)(aA,{size:4},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,o.withModifiers)(()=>{},["stop"])},[(0,o.createVNode)(O,{class:"d-drag-btn",type:"primary",size:"small",label:e.componentData.name},null,8,["label"]),(0,o.createElementVNode)("div",Ku,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)((0,o.unref)(h)(e.componentData.containerId),Z=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:Z.id},[(0,o.createVNode)(O,{class:"d-drag-btn",type:"primary",size:"small",label:Z.name,onClick:cA=>(0,o.unref)(u)(Z.id)},null,8,["label","onClick"])]))),128))])]),(0,o.createVNode)(O,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:content-copy",onClick:b[0]||(b[0]=(0,o.withModifiers)(Z=>(0,o.unref)(g)(e.componentData.id),["stop"]))}),(0,o.createElementVNode)("div",{onContextmenu:b[1]||(b[1]=(0,o.withModifiers)((...Z)=>(0,o.unref)(I)&&(0,o.unref)(I)(...Z),["stop"])),onMousedown:b[2]||(b[2]=(0,o.withModifiers)((...Z)=>(0,o.unref)(L)&&(0,o.unref)(L)(...Z),["stop"])),style:{display:"flex"}},[(0,o.createVNode)(O,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:drag"})],32),(0,o.createVNode)(O,{class:"d-drag-btn",status:"danger",type:"primary",size:"small",icon:"mdi:delete",onClick:b[3]||(b[3]=(0,o.withModifiers)(Z=>(0,o.unref)(d)(e.componentData.id),["stop"]))})]),_:1})],32),(0,o.createElementVNode)("div",{ref_key:"refDrag",ref:t,class:"d-drag-body",onClick:b[6]||(b[6]=(0,o.withModifiers)((...Z)=>(0,o.unref)(a)&&(0,o.unref)(a)(...Z),["stop"])),onContextmenu:b[7]||(b[7]=(0,o.withModifiers)((...Z)=>(0,o.unref)(I)&&(0,o.unref)(I)(...Z),["stop"])),onMousedown:b[8]||(b[8]=(0,o.withModifiers)((...Z)=>(0,o.unref)(L)&&(0,o.unref)(L)(...Z),["stop"])),onMouseenter:b[9]||(b[9]=(...Z)=>(0,o.unref)(n)&&(0,o.unref)(n)(...Z)),onMouseleave:b[10]||(b[10]=(...Z)=>(0,o.unref)(r)&&(0,o.unref)(r)(...Z))},[(0,o.renderSlot)(K.$slots,"default"),e.isContainer?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",Ru))],544)],2)}}}),Oo=Vu,Pu=(0,o.defineComponent)({name:"DDragTool",__name:"tool",props:{config:{}},setup(e){const{onContextmenu:A,onMousedown:t,onClick:n}=ws(e.config??{name:"",id:""},!0);return(r,a)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"d-drag-tool",onClick:a[0]||(a[0]=(0,o.withModifiers)((...u)=>(0,o.unref)(n)&&(0,o.unref)(n)(...u),["stop"])),onContextmenu:a[1]||(a[1]=(0,o.withModifiers)((...u)=>(0,o.unref)(A)&&(0,o.unref)(A)(...u),["stop"])),onMousedown:a[2]||(a[2]=(0,o.withModifiers)((...u)=>(0,o.unref)(t)&&(0,o.unref)(t)(...u),["stop"]))},[(0,o.renderSlot)(r.$slots,"default")],32))}}),Ko=Pu,Gu={key:0,class:"d-drag-line"},zu={key:1,class:"d-drag-btns"},Xu=(0,o.defineComponent)({name:"DDragContainer",__name:"container",props:{componentData:{default:()=>({})},isComponentContainer:{type:Boolean,default:!0},groupId:{default:void 0}},setup(e){const A=e,t=(0,o.ref)(),n=(0,o.computed)(()=>A.componentData?.children||[]),{onMouseenter:r,onMouseleave:a,activeComponent:u,isHover:d,isSelect:g,isToContainer:h,isMoveingInTopLevel:B,isTopActive:w,isBottomActive:m}=ms(t,A.componentData,"container",n,A.isComponentContainer,A.groupId),v=(0,o.computed)(()=>!!(n.value.findIndex(y=>y.groupId===A.groupId)===-1&&h.value));return(y,I)=>{const L=(0,o.resolveComponent)("j-button");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{ref_key:"refDrag",ref:t,class:(0,o.normalizeClass)(["d-drag-container",{selected:(0,o.unref)(g)&&!e.isComponentContainer,hovered:(0,o.unref)(d)&&!e.isComponentContainer,isTopLevel:e.componentData.level===0,active:v.value,isMoveingInTopLevel:(0,o.unref)(B),isTopActive:(0,o.unref)(w),isBottomActive:(0,o.unref)(m)}])},[e.isComponentContainer?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",Gu)),e.isComponentContainer?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",zu,[(0,o.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,o.withModifiers)(()=>{},["stop"])},[(0,o.createVNode)(L,{class:"d-drag-btn",type:"primary",size:"small",label:e.componentData.name},null,8,["label"])])])),(0,o.createElementVNode)("div",{class:"d-drag-body",onClick:I[0]||(I[0]=(0,o.withModifiers)((...T)=>(0,o.unref)(u)&&(0,o.unref)(u)(...T),["stop"])),onMouseenter:I[1]||(I[1]=(...T)=>(0,o.unref)(r)&&(0,o.unref)(r)(...T)),onMouseleave:I[2]||(I[2]=(...T)=>(0,o.unref)(a)&&(0,o.unref)(a)(...T))},[(0,o.renderSlot)(y.$slots,"default")],32)],2)}}}),Ro=Xu,$u=(0,o.defineComponent)({name:"DDragFormList",__name:"dragFormList",props:{componentList:{default:()=>[]},globalConfig:{default:()=>({})}},setup(e){const{designItemName:A}=(0,o.inject)("dui-design-provide",{});return(t,n)=>{const r=(0,o.resolveComponent)("el-col");return(0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.componentList,a=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:a.id},[a.type!="pkey"?((0,o.openBlock)(),(0,o.createBlock)(r,{key:0,span:a.config.span||24},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(Oo,{"is-container":a.dragType!=="component","component-data":a},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)((0,o.unref)(A)),{"component-data":a,"global-config":e.globalConfig},null,8,["component-data","global-config"]))]),_:2},1032,["is-container","component-data"])]),_:2},1032,["span"])):(0,o.createCommentVNode)("",!0)],64))),128)}}}),Vo=$u,Yu=(0,o.defineComponent)({name:"DDragIndexList",__name:"dragIndexList",props:{componentList:{default:()=>[]},globalConfig:{default:()=>({})}},setup(e){const{designItemName:A}=(0,o.inject)("dui-design-provide",{}),t=n=>{if(n.flexWidth)return{width:n.flexWidth+"%"}};return(n,r)=>((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.componentList,a=>((0,o.openBlock)(),(0,o.createBlock)(Oo,{key:a.id,style:(0,o.normalizeStyle)(t(a.config)),"is-container":a.dragType!=="component","component-data":a},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)((0,o.unref)(A)),{"component-data":a,"global-config":e.globalConfig},null,8,["component-data","global-config"]))]),_:2},1032,["style","is-container","component-data"]))),128))}}),Po=Yu,Cs=dt(Oo,[Ko,Ro,Vo,Po]);function Un(e){return(0,o.getCurrentScope)()?((0,o.onScopeDispose)(e),!0):!1}function je(e){return typeof e=="function"?e():(0,o.unref)(e)}var Wu=typeof window<"u"&&typeof document<"u",Ju=e=>typeof e<"u",Zu=Object.prototype.toString,ju=e=>Zu.call(e)==="[object Object]",qu=()=>{};function Ad(e,A){function t(...n){return new Promise((r,a)=>{Promise.resolve(e(()=>A.apply(this,n),{fn:A,thisArg:this,args:n})).then(r).catch(a)})}return t}var vs=e=>e();function ed(e=vs){const A=(0,o.ref)(!0);function t(){A.value=!1}function n(){A.value=!0}const r=(...a)=>{A.value&&e(...a)};return{isActive:(0,o.readonly)(A),pause:t,resume:n,eventFilter:r}}function ys(e,A=!1,t="Timeout"){return new Promise((n,r)=>{setTimeout(A?()=>r(t):n,e)})}function td(e,A,t={}){const{eventFilter:n=vs,...r}=t;return(0,o.watch)(e,Ad(n,A),r)}function Xt(e,A,t={}){const{eventFilter:n,...r}=t,{eventFilter:a,pause:u,resume:d,isActive:g}=ed(n);return{stop:td(e,A,{...r,eventFilter:a}),pause:u,resume:d,isActive:g}}function nd(e,A={}){if(!(0,o.isRef)(e))return(0,o.toRefs)(e);const t=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const n in e.value)t[n]=(0,o.customRef)(()=>({get(){return e.value[n]},set(r){var a;if((a=je(A.replaceRef))==null||a)if(Array.isArray(e.value)){const u=[...e.value];u[n]=r,e.value=u}else{const u={...e.value,[n]:r};Object.setPrototypeOf(u,Object.getPrototypeOf(e.value)),e.value=u}else e.value[n]=r}}));return t}function Go(e,A=!1){function t(w,{flush:m="sync",deep:v=!1,timeout:y,throwOnTimeout:I}={}){let L=null;const T=[new Promise(K=>{L=(0,o.watch)(e,b=>{w(b)!==A&&(L?.(),K(b))},{flush:m,deep:v,immediate:!0})})];return y!=null&&T.push(ys(y,I).then(()=>je(e)).finally(()=>L?.())),Promise.race(T)}function n(w,m){if(!(0,o.isRef)(w))return t(b=>b===w,m);const{flush:v="sync",deep:y=!1,timeout:I,throwOnTimeout:L}=m??{};let T=null;const K=[new Promise(b=>{T=(0,o.watch)([e,w],([O,aA])=>{A!==(O===aA)&&(T?.(),b(O))},{flush:v,deep:y,immediate:!0})})];return I!=null&&K.push(ys(I,L).then(()=>je(e)).finally(()=>(T?.(),je(e)))),Promise.race(K)}function r(w){return t(m=>!!m,w)}function a(w){return n(null,w)}function u(w){return n(void 0,w)}function d(w){return t(Number.isNaN,w)}function g(w,m){return t(v=>{const y=Array.from(v);return y.includes(w)||y.includes(je(w))},m)}function h(w){return B(1,w)}function B(w=1,m){let v=-1;return t(()=>(v+=1,v>=w),m)}return Array.isArray(je(e))?{toMatch:t,toContains:g,changed:h,changedTimes:B,get not(){return Go(e,!A)}}:{toMatch:t,toBe:n,toBeTruthy:r,toBeNull:a,toBeNaN:d,toBeUndefined:u,changed:h,changedTimes:B,get not(){return Go(e,!A)}}}function zo(e){return Go(e)}function rd(e){var A;const t=je(e);return(A=t?.$el)!=null?A:t}var Qs=Wu?window:void 0;function Es(...e){let A,t,n,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,n,r]=e,A=Qs):[A,t,n,r]=e,!A)return qu;Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);const a=[],u=()=>{a.forEach(B=>B()),a.length=0},d=(B,w,m,v)=>(B.addEventListener(w,m,v),()=>B.removeEventListener(w,m,v)),g=(0,o.watch)(()=>[rd(A),je(r)],([B,w])=>{if(u(),!B)return;const m=ju(w)?{...w}:w;a.push(...t.flatMap(v=>n.map(y=>d(B,v,y,m))))},{immediate:!0,flush:"post"}),h=()=>{g(),u()};return Un(h),h}function od(e){return typeof e=="function"?e:typeof e=="string"?A=>A.key===e:Array.isArray(e)?A=>e.includes(A.key):()=>!0}function Fs(...e){let A,t,n={};e.length===3?(A=e[0],t=e[1],n=e[2]):e.length===2?typeof e[1]=="object"?(A=!0,t=e[0],n=e[1]):(A=e[0],t=e[1]):(A=!0,t=e[0]);const{target:r=Qs,eventName:a="keydown",passive:u=!1,dedupe:d=!1}=n,g=od(A);return Es(r,a,B=>{B.repeat&&je(d)||g(B)&&t(B)},u)}function id(e){return JSON.parse(JSON.stringify(e))}function Xo(e,A,t,n={}){var r,a,u;const{clone:d=!1,passive:g=!1,eventName:h,deep:B=!1,defaultValue:w,shouldEmit:m}=n,v=(0,o.getCurrentInstance)(),y=t||v?.emit||((r=v?.$emit)==null?void 0:r.bind(v))||((u=(a=v?.proxy)==null?void 0:a.$emit)==null?void 0:u.bind(v?.proxy));let I=h;A||(A="modelValue"),I=I||`update:${A.toString()}`;const L=b=>d?typeof d=="function"?d(b):id(b):b,T=()=>Ju(e[A])?L(e[A]):w,K=b=>{m?m(b)&&y(I,b):y(I,b)};if(g){const b=(0,o.ref)(T());let O=!1;return(0,o.watch)(()=>e[A],aA=>{O||(O=!0,b.value=L(aA),(0,o.nextTick)(()=>O=!1))}),(0,o.watch)(b,aA=>{!O&&(aA!==e[A]||B)&&K(aA)},{deep:B}),b}else return(0,o.computed)({get(){return T()},set(b){K(b)}})}var sd={value:()=>{}};function dr(){for(var e=0,A=arguments.length,t={},n;e<A;++e){if(!(n=arguments[e]+"")||n in t||/[\s.]/.test(n))throw new Error("illegal type: "+n);t[n]=[]}return new fr(t)}function fr(e){this._=e}function ad(e,A){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!A.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}fr.prototype=dr.prototype={constructor:fr,on:function(e,A){var t=this._,n=ad(e+"",t),r,a=-1,u=n.length;if(arguments.length<2){for(;++a<u;)if((r=(e=n[a]).type)&&(r=ld(t[r],e.name)))return r;return}if(A!=null&&typeof A!="function")throw new Error("invalid callback: "+A);for(;++a<u;)if(r=(e=n[a]).type)t[r]=Us(t[r],e.name,A);else if(A==null)for(r in t)t[r]=Us(t[r],e.name,null);return this},copy:function(){var e={},A=this._;for(var t in A)e[t]=A[t].slice();return new fr(e)},call:function(e,A){if((r=arguments.length-2)>0)for(var t=new Array(r),n=0,r,a;n<r;++n)t[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],n=0,r=a.length;n<r;++n)a[n].value.apply(A,t)},apply:function(e,A,t){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],r=0,a=n.length;r<a;++r)n[r].value.apply(A,t)}};function ld(e,A){for(var t=0,n=e.length,r;t<n;++t)if((r=e[t]).name===A)return r.value}function Us(e,A,t){for(var n=0,r=e.length;n<r;++n)if(e[n].name===A){e[n]=sd,e=e.slice(0,n).concat(e.slice(n+1));break}return t!=null&&e.push({name:A,value:t}),e}var $o="http://www.w3.org/1999/xhtml",bs={svg:"http://www.w3.org/2000/svg",xhtml:$o,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function gr(e){var A=e+="",t=A.indexOf(":");return t>=0&&(A=e.slice(0,t))!=="xmlns"&&(e=e.slice(t+1)),bs.hasOwnProperty(A)?{space:bs[A],local:e}:e}function cd(e){return function(){var A=this.ownerDocument,t=this.namespaceURI;return t===$o&&A.documentElement.namespaceURI===$o?A.createElement(e):A.createElementNS(t,e)}}function ud(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Hs(e){var A=gr(e);return(A.local?ud:cd)(A)}function dd(){}function Yo(e){return e==null?dd:function(){return this.querySelector(e)}}function fd(e){typeof e!="function"&&(e=Yo(e));for(var A=this._groups,t=A.length,n=new Array(t),r=0;r<t;++r)for(var a=A[r],u=a.length,d=n[r]=new Array(u),g,h,B=0;B<u;++B)(g=a[B])&&(h=e.call(g,g.__data__,B,a))&&("__data__"in g&&(h.__data__=g.__data__),d[B]=h);return new Fe(n,this._parents)}function gd(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function hd(){return[]}function Is(e){return e==null?hd:function(){return this.querySelectorAll(e)}}function Bd(e){return function(){return gd(e.apply(this,arguments))}}function pd(e){typeof e=="function"?e=Bd(e):e=Is(e);for(var A=this._groups,t=A.length,n=[],r=[],a=0;a<t;++a)for(var u=A[a],d=u.length,g,h=0;h<d;++h)(g=u[h])&&(n.push(e.call(g,g.__data__,h,u)),r.push(g));return new Fe(n,r)}function _s(e){return function(){return this.matches(e)}}function Ss(e){return function(A){return A.matches(e)}}var md=Array.prototype.find;function wd(e){return function(){return md.call(this.children,e)}}function Cd(){return this.firstElementChild}function vd(e){return this.select(e==null?Cd:wd(typeof e=="function"?e:Ss(e)))}var yd=Array.prototype.filter;function Qd(){return Array.from(this.children)}function Ed(e){return function(){return yd.call(this.children,e)}}function Fd(e){return this.selectAll(e==null?Qd:Ed(typeof e=="function"?e:Ss(e)))}function Ud(e){typeof e!="function"&&(e=_s(e));for(var A=this._groups,t=A.length,n=new Array(t),r=0;r<t;++r)for(var a=A[r],u=a.length,d=n[r]=[],g,h=0;h<u;++h)(g=a[h])&&e.call(g,g.__data__,h,a)&&d.push(g);return new Fe(n,this._parents)}function xs(e){return new Array(e.length)}function bd(){return new Fe(this._enter||this._groups.map(xs),this._parents)}function hr(e,A){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=A}hr.prototype={constructor:hr,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,A){return this._parent.insertBefore(e,A)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Hd(e){return function(){return e}}function Id(e,A,t,n,r,a){for(var u=0,d,g=A.length,h=a.length;u<h;++u)(d=A[u])?(d.__data__=a[u],n[u]=d):t[u]=new hr(e,a[u]);for(;u<g;++u)(d=A[u])&&(r[u]=d)}function _d(e,A,t,n,r,a,u){var d,g,h=new Map,B=A.length,w=a.length,m=new Array(B),v;for(d=0;d<B;++d)(g=A[d])&&(m[d]=v=u.call(g,g.__data__,d,A)+"",h.has(v)?r[d]=g:h.set(v,g));for(d=0;d<w;++d)v=u.call(e,a[d],d,a)+"",(g=h.get(v))?(n[d]=g,g.__data__=a[d],h.delete(v)):t[d]=new hr(e,a[d]);for(d=0;d<B;++d)(g=A[d])&&h.get(m[d])===g&&(r[d]=g)}function Sd(e){return e.__data__}function xd(e,A){if(!arguments.length)return Array.from(this,Sd);var t=A?_d:Id,n=this._parents,r=this._groups;typeof e!="function"&&(e=Hd(e));for(var a=r.length,u=new Array(a),d=new Array(a),g=new Array(a),h=0;h<a;++h){var B=n[h],w=r[h],m=w.length,v=Dd(e.call(B,B&&B.__data__,h,n)),y=v.length,I=d[h]=new Array(y),L=u[h]=new Array(y);t(B,w,I,L,g[h]=new Array(m),v,A);for(var T=0,K=0,b,O;T<y;++T)if(b=I[T]){for(T>=K&&(K=T+1);!(O=L[K])&&++K<y;);b._next=O||null}}return u=new Fe(u,n),u._enter=d,u._exit=g,u}function Dd(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Nd(){return new Fe(this._exit||this._groups.map(xs),this._parents)}function Ld(e,A,t){var n=this.enter(),r=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),A!=null&&(r=A(r),r&&(r=r.selection())),t==null?a.remove():t(a),n&&r?n.merge(r).order():r}function Td(e){for(var A=e.selection?e.selection():e,t=this._groups,n=A._groups,r=t.length,a=n.length,u=Math.min(r,a),d=new Array(r),g=0;g<u;++g)for(var h=t[g],B=n[g],w=h.length,m=d[g]=new Array(w),v,y=0;y<w;++y)(v=h[y]||B[y])&&(m[y]=v);for(;g<r;++g)d[g]=t[g];return new Fe(d,this._parents)}function kd(){for(var e=this._groups,A=-1,t=e.length;++A<t;)for(var n=e[A],r=n.length-1,a=n[r],u;--r>=0;)(u=n[r])&&(a&&u.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(u,a),a=u);return this}function Md(e){e||(e=Od);function A(w,m){return w&&m?e(w.__data__,m.__data__):!w-!m}for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a){for(var u=t[a],d=u.length,g=r[a]=new Array(d),h,B=0;B<d;++B)(h=u[B])&&(g[B]=h);g.sort(A)}return new Fe(r,this._parents).order()}function Od(e,A){return e<A?-1:e>A?1:e>=A?0:NaN}function Kd(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Rd(){return Array.from(this)}function Vd(){for(var e=this._groups,A=0,t=e.length;A<t;++A)for(var n=e[A],r=0,a=n.length;r<a;++r){var u=n[r];if(u)return u}return null}function Pd(){let e=0;for(const A of this)++e;return e}function Gd(){return!this.node()}function zd(e){for(var A=this._groups,t=0,n=A.length;t<n;++t)for(var r=A[t],a=0,u=r.length,d;a<u;++a)(d=r[a])&&e.call(d,d.__data__,a,r);return this}function Xd(e){return function(){this.removeAttribute(e)}}function $d(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Yd(e,A){return function(){this.setAttribute(e,A)}}function Wd(e,A){return function(){this.setAttributeNS(e.space,e.local,A)}}function Jd(e,A){return function(){var t=A.apply(this,arguments);t==null?this.removeAttribute(e):this.setAttribute(e,t)}}function Zd(e,A){return function(){var t=A.apply(this,arguments);t==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}}function jd(e,A){var t=gr(e);if(arguments.length<2){var n=this.node();return t.local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}return this.each((A==null?t.local?$d:Xd:typeof A=="function"?t.local?Zd:Jd:t.local?Wd:Yd)(t,A))}function Ds(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function qd(e){return function(){this.style.removeProperty(e)}}function Af(e,A,t){return function(){this.style.setProperty(e,A,t)}}function ef(e,A,t){return function(){var n=A.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,t)}}function tf(e,A,t){return arguments.length>1?this.each((A==null?qd:typeof A=="function"?ef:Af)(e,A,t??"")):$t(this.node(),e)}function $t(e,A){return e.style.getPropertyValue(A)||Ds(e).getComputedStyle(e,null).getPropertyValue(A)}function nf(e){return function(){delete this[e]}}function rf(e,A){return function(){this[e]=A}}function of(e,A){return function(){var t=A.apply(this,arguments);t==null?delete this[e]:this[e]=t}}function sf(e,A){return arguments.length>1?this.each((A==null?nf:typeof A=="function"?of:rf)(e,A)):this.node()[e]}function Ns(e){return e.trim().split(/^|\s+/)}function Wo(e){return e.classList||new Ls(e)}function Ls(e){this._node=e,this._names=Ns(e.getAttribute("class")||"")}Ls.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var A=this._names.indexOf(e);A>=0&&(this._names.splice(A,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Ts(e,A){for(var t=Wo(e),n=-1,r=A.length;++n<r;)t.add(A[n])}function ks(e,A){for(var t=Wo(e),n=-1,r=A.length;++n<r;)t.remove(A[n])}function af(e){return function(){Ts(this,e)}}function lf(e){return function(){ks(this,e)}}function cf(e,A){return function(){(A.apply(this,arguments)?Ts:ks)(this,e)}}function uf(e,A){var t=Ns(e+"");if(arguments.length<2){for(var n=Wo(this.node()),r=-1,a=t.length;++r<a;)if(!n.contains(t[r]))return!1;return!0}return this.each((typeof A=="function"?cf:A?af:lf)(t,A))}function df(){this.textContent=""}function ff(e){return function(){this.textContent=e}}function gf(e){return function(){var A=e.apply(this,arguments);this.textContent=A??""}}function hf(e){return arguments.length?this.each(e==null?df:(typeof e=="function"?gf:ff)(e)):this.node().textContent}function Bf(){this.innerHTML=""}function pf(e){return function(){this.innerHTML=e}}function mf(e){return function(){var A=e.apply(this,arguments);this.innerHTML=A??""}}function wf(e){return arguments.length?this.each(e==null?Bf:(typeof e=="function"?mf:pf)(e)):this.node().innerHTML}function Cf(){this.nextSibling&&this.parentNode.appendChild(this)}function vf(){return this.each(Cf)}function yf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Qf(){return this.each(yf)}function Ef(e){var A=typeof e=="function"?e:Hs(e);return this.select(function(){return this.appendChild(A.apply(this,arguments))})}function Ff(){return null}function Uf(e,A){var t=typeof e=="function"?e:Hs(e),n=A==null?Ff:typeof A=="function"?A:Yo(A);return this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})}function bf(){var e=this.parentNode;e&&e.removeChild(this)}function Hf(){return this.each(bf)}function If(){var e=this.cloneNode(!1),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function _f(){var e=this.cloneNode(!0),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function Sf(e){return this.select(e?_f:If)}function xf(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Df(e){return function(A){e.call(this,A,this.__data__)}}function Nf(e){return e.trim().split(/^|\s+/).map(function(A){var t="",n=A.indexOf(".");return n>=0&&(t=A.slice(n+1),A=A.slice(0,n)),{type:A,name:t}})}function Lf(e){return function(){var A=this.__on;if(A){for(var t=0,n=-1,r=A.length,a;t<r;++t)a=A[t],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):A[++n]=a;++n?A.length=n:delete this.__on}}}function Tf(e,A,t){return function(){var n=this.__on,r,a=Df(A);if(n){for(var u=0,d=n.length;u<d;++u)if((r=n[u]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=t),r.value=A;return}}this.addEventListener(e.type,a,t),r={type:e.type,name:e.name,value:A,listener:a,options:t},n?n.push(r):this.__on=[r]}}function kf(e,A,t){var n=Nf(e+""),r,a=n.length,u;if(arguments.length<2){var d=this.node().__on;if(d){for(var g=0,h=d.length,B;g<h;++g)for(r=0,B=d[g];r<a;++r)if((u=n[r]).type===B.type&&u.name===B.name)return B.value}return}for(d=A?Tf:Lf,r=0;r<a;++r)this.each(d(n[r],A,t));return this}function Ms(e,A,t){var n=Ds(e),r=n.CustomEvent;typeof r=="function"?r=new r(A,t):(r=n.document.createEvent("Event"),t?(r.initEvent(A,t.bubbles,t.cancelable),r.detail=t.detail):r.initEvent(A,!1,!1)),e.dispatchEvent(r)}function Mf(e,A){return function(){return Ms(this,e,A)}}function Of(e,A){return function(){return Ms(this,e,A.apply(this,arguments))}}function Kf(e,A){return this.each((typeof A=="function"?Of:Mf)(e,A))}function*Rf(){for(var e=this._groups,A=0,t=e.length;A<t;++A)for(var n=e[A],r=0,a=n.length,u;r<a;++r)(u=n[r])&&(yield u)}var Os=[null];function Fe(e,A){this._groups=e,this._parents=A}function bn(){return new Fe([[document.documentElement]],Os)}function Vf(){return this}Fe.prototype=bn.prototype={constructor:Fe,select:fd,selectAll:pd,selectChild:vd,selectChildren:Fd,filter:Ud,data:xd,enter:bd,exit:Nd,join:Ld,merge:Td,selection:Vf,order:kd,sort:Md,call:Kd,nodes:Rd,node:Vd,size:Pd,empty:Gd,each:zd,attr:jd,style:tf,property:sf,classed:uf,text:hf,html:wf,raise:vf,lower:Qf,append:Ef,insert:Uf,remove:Hf,clone:Sf,datum:xf,on:kf,dispatch:Kf,[Symbol.iterator]:Rf};function Le(e){return typeof e=="string"?new Fe([[document.querySelector(e)]],[document.documentElement]):new Fe([[e]],Os)}function Pf(e){let A;for(;A=e.sourceEvent;)e=A;return e}function Ke(e,A){if(e=Pf(e),A===void 0&&(A=e.currentTarget),A){var t=A.ownerSVGElement||A;if(t.createSVGPoint){var n=t.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,n=n.matrixTransform(A.getScreenCTM().inverse()),[n.x,n.y]}if(A.getBoundingClientRect){var r=A.getBoundingClientRect();return[e.clientX-r.left-A.clientLeft,e.clientY-r.top-A.clientTop]}}return[e.pageX,e.pageY]}var Gf={passive:!1},Hn={capture:!0,passive:!1};function Jo(e){e.stopImmediatePropagation()}function Yt(e){e.preventDefault(),e.stopImmediatePropagation()}function Ks(e){var A=e.document.documentElement,t=Le(e).on("dragstart.drag",Yt,Hn);"onselectstart"in A?t.on("selectstart.drag",Yt,Hn):(A.__noselect=A.style.MozUserSelect,A.style.MozUserSelect="none")}function Rs(e,A){var t=e.document.documentElement,n=Le(e).on("dragstart.drag",null);A&&(n.on("click.drag",Yt,Hn),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in t?n.on("selectstart.drag",null):(t.style.MozUserSelect=t.__noselect,delete t.__noselect)}var Br=e=>()=>e;function Zo(e,{sourceEvent:A,subject:t,target:n,identifier:r,active:a,x:u,y:d,dx:g,dy:h,dispatch:B}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:A,enumerable:!0,configurable:!0},subject:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},identifier:{value:r,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:u,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:g,enumerable:!0,configurable:!0},dy:{value:h,enumerable:!0,configurable:!0},_:{value:B}})}Zo.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function zf(e){return!e.ctrlKey&&!e.button}function Xf(){return this.parentNode}function $f(e,A){return A??{x:e.x,y:e.y}}function Yf(){return navigator.maxTouchPoints||"ontouchstart"in this}function Wf(){var e=zf,A=Xf,t=$f,n=Yf,r={},a=dr("start","drag","end"),u=0,d,g,h,B,w=0;function m(O){O.on("mousedown.drag",v).filter(n).on("touchstart.drag",L).on("touchmove.drag",T,Gf).on("touchend.drag touchcancel.drag",K).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(O,aA){if(!(B||!e.call(this,O,aA))){var Z=b(this,A.call(this,O,aA),O,aA,"mouse");Z&&(Le(O.view).on("mousemove.drag",y,Hn).on("mouseup.drag",I,Hn),Ks(O.view),Jo(O),h=!1,d=O.clientX,g=O.clientY,Z("start",O))}}function y(O){if(Yt(O),!h){var aA=O.clientX-d,Z=O.clientY-g;h=aA*aA+Z*Z>w}r.mouse("drag",O)}function I(O){Le(O.view).on("mousemove.drag mouseup.drag",null),Rs(O.view,h),Yt(O),r.mouse("end",O)}function L(O,aA){if(e.call(this,O,aA)){var Z=O.changedTouches,cA=A.call(this,O,aA),lA=Z.length,iA,oA;for(iA=0;iA<lA;++iA)(oA=b(this,cA,O,aA,Z[iA].identifier,Z[iA]))&&(Jo(O),oA("start",O,Z[iA]))}}function T(O){var aA=O.changedTouches,Z=aA.length,cA,lA;for(cA=0;cA<Z;++cA)(lA=r[aA[cA].identifier])&&(Yt(O),lA("drag",O,aA[cA]))}function K(O){var aA=O.changedTouches,Z=aA.length,cA,lA;for(B&&clearTimeout(B),B=setTimeout(function(){B=null},500),cA=0;cA<Z;++cA)(lA=r[aA[cA].identifier])&&(Jo(O),lA("end",O,aA[cA]))}function b(O,aA,Z,cA,lA,iA){var oA=a.copy(),tA=Ke(iA||Z,aA),x,eA,H;if((H=t.call(O,new Zo("beforestart",{sourceEvent:Z,target:m,identifier:lA,active:u,x:tA[0],y:tA[1],dx:0,dy:0,dispatch:oA}),cA))!=null)return x=H.x-tA[0]||0,eA=H.y-tA[1]||0,function X(F,D,k){var N=tA,R;switch(F){case"start":r[lA]=X,R=u++;break;case"end":delete r[lA],--u;case"drag":tA=Ke(k||D,aA),R=u;break}oA.call(F,O,new Zo(F,{sourceEvent:D,subject:H,target:m,identifier:lA,active:R,x:tA[0]+x,y:tA[1]+eA,dx:tA[0]-N[0],dy:tA[1]-N[1],dispatch:oA}),cA)}}return m.filter=function(O){return arguments.length?(e=typeof O=="function"?O:Br(!!O),m):e},m.container=function(O){return arguments.length?(A=typeof O=="function"?O:Br(O),m):A},m.subject=function(O){return arguments.length?(t=typeof O=="function"?O:Br(O),m):t},m.touchable=function(O){return arguments.length?(n=typeof O=="function"?O:Br(!!O),m):n},m.on=function(){var O=a.on.apply(a,arguments);return O===a?m:O},m.clickDistance=function(O){return arguments.length?(w=(O=+O)*O,m):Math.sqrt(w)},m}function jo(e,A,t){e.prototype=A.prototype=t,t.constructor=e}function Vs(e,A){var t=Object.create(e.prototype);for(var n in A)t[n]=A[n];return t}function In(){}var _n=.7,pr=1/_n,Wt="\\s*([+-]?\\d+)\\s*",Sn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Re="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Jf=/^#([0-9a-f]{3,8})$/,Zf=new RegExp(`^rgb\\(${Wt},${Wt},${Wt}\\)$`),jf=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),qf=new RegExp(`^rgba\\(${Wt},${Wt},${Wt},${Sn}\\)$`),Ag=new RegExp(`^rgba\\(${Re},${Re},${Re},${Sn}\\)$`),eg=new RegExp(`^hsl\\(${Sn},${Re},${Re}\\)$`),tg=new RegExp(`^hsla\\(${Sn},${Re},${Re},${Sn}\\)$`),Ps={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};jo(In,Ht,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Gs,formatHex:Gs,formatHex8:ng,formatHsl:rg,formatRgb:zs,toString:zs});function Gs(){return this.rgb().formatHex()}function ng(){return this.rgb().formatHex8()}function rg(){return Js(this).formatHsl()}function zs(){return this.rgb().formatRgb()}function Ht(e){var A,t;return e=(e+"").trim().toLowerCase(),(A=Jf.exec(e))?(t=A[1].length,A=parseInt(A[1],16),t===6?Xs(A):t===3?new Ce(A>>8&15|A>>4&240,A>>4&15|A&240,(A&15)<<4|A&15,1):t===8?mr(A>>24&255,A>>16&255,A>>8&255,(A&255)/255):t===4?mr(A>>12&15|A>>8&240,A>>8&15|A>>4&240,A>>4&15|A&240,((A&15)<<4|A&15)/255):null):(A=Zf.exec(e))?new Ce(A[1],A[2],A[3],1):(A=jf.exec(e))?new Ce(A[1]*255/100,A[2]*255/100,A[3]*255/100,1):(A=qf.exec(e))?mr(A[1],A[2],A[3],A[4]):(A=Ag.exec(e))?mr(A[1]*255/100,A[2]*255/100,A[3]*255/100,A[4]):(A=eg.exec(e))?Ws(A[1],A[2]/100,A[3]/100,1):(A=tg.exec(e))?Ws(A[1],A[2]/100,A[3]/100,A[4]):Ps.hasOwnProperty(e)?Xs(Ps[e]):e==="transparent"?new Ce(NaN,NaN,NaN,0):null}function Xs(e){return new Ce(e>>16&255,e>>8&255,e&255,1)}function mr(e,A,t,n){return n<=0&&(e=A=t=NaN),new Ce(e,A,t,n)}function og(e){return e instanceof In||(e=Ht(e)),e?(e=e.rgb(),new Ce(e.r,e.g,e.b,e.opacity)):new Ce}function qo(e,A,t,n){return arguments.length===1?og(e):new Ce(e,A,t,n??1)}function Ce(e,A,t,n){this.r=+e,this.g=+A,this.b=+t,this.opacity=+n}jo(Ce,qo,Vs(In,{brighter(e){return e=e==null?pr:Math.pow(pr,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?_n:Math.pow(_n,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ce(It(this.r),It(this.g),It(this.b),wr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:$s,formatHex:$s,formatHex8:ig,formatRgb:Ys,toString:Ys}));function $s(){return`#${_t(this.r)}${_t(this.g)}${_t(this.b)}`}function ig(){return`#${_t(this.r)}${_t(this.g)}${_t(this.b)}${_t((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ys(){const e=wr(this.opacity);return`${e===1?"rgb(":"rgba("}${It(this.r)}, ${It(this.g)}, ${It(this.b)}${e===1?")":`, ${e})`}`}function wr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function It(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function _t(e){return e=It(e),(e<16?"0":"")+e.toString(16)}function Ws(e,A,t,n){return n<=0?e=A=t=NaN:t<=0||t>=1?e=A=NaN:A<=0&&(e=NaN),new Te(e,A,t,n)}function Js(e){if(e instanceof Te)return new Te(e.h,e.s,e.l,e.opacity);if(e instanceof In||(e=Ht(e)),!e)return new Te;if(e instanceof Te)return e;e=e.rgb();var A=e.r/255,t=e.g/255,n=e.b/255,r=Math.min(A,t,n),a=Math.max(A,t,n),u=NaN,d=a-r,g=(a+r)/2;return d?(A===a?u=(t-n)/d+(t<n)*6:t===a?u=(n-A)/d+2:u=(A-t)/d+4,d/=g<.5?a+r:2-a-r,u*=60):d=g>0&&g<1?0:u,new Te(u,d,g,e.opacity)}function sg(e,A,t,n){return arguments.length===1?Js(e):new Te(e,A,t,n??1)}function Te(e,A,t,n){this.h=+e,this.s=+A,this.l=+t,this.opacity=+n}jo(Te,sg,Vs(In,{brighter(e){return e=e==null?pr:Math.pow(pr,e),new Te(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?_n:Math.pow(_n,e),new Te(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,A=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*A,r=2*t-n;return new Ce(Ai(e>=240?e-240:e+120,r,n),Ai(e,r,n),Ai(e<120?e+240:e-120,r,n),this.opacity)},clamp(){return new Te(Zs(this.h),Cr(this.s),Cr(this.l),wr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=wr(this.opacity);return`${e===1?"hsl(":"hsla("}${Zs(this.h)}, ${Cr(this.s)*100}%, ${Cr(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Zs(e){return e=(e||0)%360,e<0?e+360:e}function Cr(e){return Math.max(0,Math.min(1,e||0))}function Ai(e,A,t){return(e<60?A+(t-A)*e/60:e<180?t:e<240?A+(t-A)*(240-e)/60:A)*255}var ei=e=>()=>e;function ag(e,A){return function(t){return e+t*A}}function lg(e,A,t){return e=Math.pow(e,t),A=Math.pow(A,t)-e,t=1/t,function(n){return Math.pow(e+n*A,t)}}function cg(e){return(e=+e)==1?js:function(A,t){return t-A?lg(A,t,e):ei(isNaN(A)?t:A)}}function js(e,A){var t=A-e;return t?ag(e,t):ei(isNaN(e)?A:e)}var vr=(function e(A){var t=cg(A);function n(r,a){var u=t((r=qo(r)).r,(a=qo(a)).r),d=t(r.g,a.g),g=t(r.b,a.b),h=js(r.opacity,a.opacity);return function(B){return r.r=u(B),r.g=d(B),r.b=g(B),r.opacity=h(B),r+""}}return n.gamma=e,n})(1);function ug(e,A){A||(A=[]);var t=e?Math.min(A.length,e.length):0,n=A.slice(),r;return function(a){for(r=0;r<t;++r)n[r]=e[r]*(1-a)+A[r]*a;return n}}function dg(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function fg(e,A){var t=A?A.length:0,n=e?Math.min(t,e.length):0,r=new Array(n),a=new Array(t),u;for(u=0;u<n;++u)r[u]=xn(e[u],A[u]);for(;u<t;++u)a[u]=A[u];return function(d){for(u=0;u<n;++u)a[u]=r[u](d);return a}}function gg(e,A){var t=new Date;return e=+e,A=+A,function(n){return t.setTime(e*(1-n)+A*n),t}}function Ve(e,A){return e=+e,A=+A,function(t){return e*(1-t)+A*t}}function hg(e,A){var t={},n={},r;(e===null||typeof e!="object")&&(e={}),(A===null||typeof A!="object")&&(A={});for(r in A)r in e?t[r]=xn(e[r],A[r]):n[r]=A[r];return function(a){for(r in t)n[r]=t[r](a);return n}}var ti=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ni=new RegExp(ti.source,"g");function Bg(e){return function(){return e}}function pg(e){return function(A){return e(A)+""}}function qs(e,A){var t=ti.lastIndex=ni.lastIndex=0,n,r,a,u=-1,d=[],g=[];for(e=e+"",A=A+"";(n=ti.exec(e))&&(r=ni.exec(A));)(a=r.index)>t&&(a=A.slice(t,a),d[u]?d[u]+=a:d[++u]=a),(n=n[0])===(r=r[0])?d[u]?d[u]+=r:d[++u]=r:(d[++u]=null,g.push({i:u,x:Ve(n,r)})),t=ni.lastIndex;return t<A.length&&(a=A.slice(t),d[u]?d[u]+=a:d[++u]=a),d.length<2?g[0]?pg(g[0].x):Bg(A):(A=g.length,function(h){for(var B=0,w;B<A;++B)d[(w=g[B]).i]=w.x(h);return d.join("")})}function xn(e,A){var t=typeof A,n;return A==null||t==="boolean"?ei(A):(t==="number"?Ve:t==="string"?(n=Ht(A))?(A=n,vr):qs:A instanceof Ht?vr:A instanceof Date?gg:dg(A)?ug:Array.isArray(A)?fg:typeof A.valueOf!="function"&&typeof A.toString!="function"||isNaN(A)?hg:Ve)(e,A)}var Aa=180/Math.PI,ri={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ea(e,A,t,n,r,a){var u,d,g;return(u=Math.sqrt(e*e+A*A))&&(e/=u,A/=u),(g=e*t+A*n)&&(t-=e*g,n-=A*g),(d=Math.sqrt(t*t+n*n))&&(t/=d,n/=d,g/=d),e*n<A*t&&(e=-e,A=-A,g=-g,u=-u),{translateX:r,translateY:a,rotate:Math.atan2(A,e)*Aa,skewX:Math.atan(g)*Aa,scaleX:u,scaleY:d}}var yr;function mg(e){const A=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return A.isIdentity?ri:ea(A.a,A.b,A.c,A.d,A.e,A.f)}function wg(e){return e==null||(yr||(yr=document.createElementNS("http://www.w3.org/2000/svg","g")),yr.setAttribute("transform",e),!(e=yr.transform.baseVal.consolidate()))?ri:(e=e.matrix,ea(e.a,e.b,e.c,e.d,e.e,e.f))}function ta(e,A,t,n){function r(h){return h.length?h.pop()+" ":""}function a(h,B,w,m,v,y){if(h!==w||B!==m){var I=v.push("translate(",null,A,null,t);y.push({i:I-4,x:Ve(h,w)},{i:I-2,x:Ve(B,m)})}else(w||m)&&v.push("translate("+w+A+m+t)}function u(h,B,w,m){h!==B?(h-B>180?B+=360:B-h>180&&(h+=360),m.push({i:w.push(r(w)+"rotate(",null,n)-2,x:Ve(h,B)})):B&&w.push(r(w)+"rotate("+B+n)}function d(h,B,w,m){h!==B?m.push({i:w.push(r(w)+"skewX(",null,n)-2,x:Ve(h,B)}):B&&w.push(r(w)+"skewX("+B+n)}function g(h,B,w,m,v,y){if(h!==w||B!==m){var I=v.push(r(v)+"scale(",null,",",null,")");y.push({i:I-4,x:Ve(h,w)},{i:I-2,x:Ve(B,m)})}else(w!==1||m!==1)&&v.push(r(v)+"scale("+w+","+m+")")}return function(h,B){var w=[],m=[];return h=e(h),B=e(B),a(h.translateX,h.translateY,B.translateX,B.translateY,w,m),u(h.rotate,B.rotate,w,m),d(h.skewX,B.skewX,w,m),g(h.scaleX,h.scaleY,B.scaleX,B.scaleY,w,m),h=B=null,function(v){for(var y=-1,I=m.length,L;++y<I;)w[(L=m[y]).i]=L.x(v);return w.join("")}}}var Cg=ta(mg,"px, ","px)","deg)"),vg=ta(wg,", ",")",")"),yg=1e-12;function na(e){return((e=Math.exp(e))+1/e)/2}function Qg(e){return((e=Math.exp(e))-1/e)/2}function Eg(e){return((e=Math.exp(2*e))-1)/(e+1)}var Qr=(function e(A,t,n){function r(a,u){var d=a[0],g=a[1],h=a[2],B=u[0],w=u[1],m=u[2],v=B-d,y=w-g,I=v*v+y*y,L,T;if(I<yg)T=Math.log(m/h)/A,L=function(Z){return[d+Z*v,g+Z*y,h*Math.exp(A*Z*T)]};else{var K=Math.sqrt(I),b=(m*m-h*h+n*I)/(2*h*t*K),O=(m*m-h*h-n*I)/(2*m*t*K),aA=Math.log(Math.sqrt(b*b+1)-b);T=(Math.log(Math.sqrt(O*O+1)-O)-aA)/A,L=function(Z){var cA=Z*T,lA=na(aA),iA=h/(t*K)*(lA*Eg(A*cA+aA)-Qg(aA));return[d+iA*v,g+iA*y,h*lA/na(A*cA+aA)]}}return L.duration=T*1e3*A/Math.SQRT2,L}return r.rho=function(a){var u=Math.max(.001,+a),d=u*u;return e(u,d,d*d)},r})(Math.SQRT2,2,4),Jt=0,Dn=0,Nn=0,ra=1e3,Er,Ln,Fr=0,St=0,Ur=0,Tn=typeof performance=="object"&&performance.now?performance:Date,oa=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function oi(){return St||(oa(Fg),St=Tn.now()+Ur)}function Fg(){St=0}function br(){this._call=this._time=this._next=null}br.prototype=ia.prototype={constructor:br,restart:function(e,A,t){if(typeof e!="function")throw new TypeError("callback is not a function");t=(t==null?oi():+t)+(A==null?0:+A),!this._next&&Ln!==this&&(Ln?Ln._next=this:Er=this,Ln=this),this._call=e,this._time=t,ii()},stop:function(){this._call&&(this._call=null,this._time=1/0,ii())}};function ia(e,A,t){var n=new br;return n.restart(e,A,t),n}function Ug(){oi(),++Jt;for(var e=Er,A;e;)(A=St-e._time)>=0&&e._call.call(void 0,A),e=e._next;--Jt}function sa(){St=(Fr=Tn.now())+Ur,Jt=Dn=0;try{Ug()}finally{Jt=0,Hg(),St=0}}function bg(){var e=Tn.now(),A=e-Fr;A>ra&&(Ur-=A,Fr=e)}function Hg(){for(var e,A=Er,t,n=1/0;A;)A._call?(n>A._time&&(n=A._time),e=A,A=A._next):(t=A._next,A._next=null,A=e?e._next=t:Er=t);Ln=e,ii(n)}function ii(e){Jt||(Dn&&(Dn=clearTimeout(Dn)),e-St>24?(e<1/0&&(Dn=setTimeout(sa,e-Tn.now()-Ur)),Nn&&(Nn=clearInterval(Nn))):(Nn||(Fr=Tn.now(),Nn=setInterval(bg,ra)),Jt=1,oa(sa)))}function aa(e,A,t){var n=new br;return A=A==null?0:+A,n.restart(r=>{n.stop(),e(r+A)},A,t),n}var Ig=dr("start","end","cancel","interrupt"),_g=[],la=0,ca=1,si=2,Hr=3,ua=4,ai=5,Ir=6;function _r(e,A,t,n,r,a){var u=e.__transition;if(!u)e.__transition={};else if(t in u)return;Sg(e,t,{name:A,index:n,group:r,on:Ig,tween:_g,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:la})}function li(e,A){var t=ke(e,A);if(t.state>la)throw new Error("too late; already scheduled");return t}function Pe(e,A){var t=ke(e,A);if(t.state>Hr)throw new Error("too late; already running");return t}function ke(e,A){var t=e.__transition;if(!t||!(t=t[A]))throw new Error("transition not found");return t}function Sg(e,A,t){var n=e.__transition,r;n[A]=t,t.timer=ia(a,0,t.time);function a(h){t.state=ca,t.timer.restart(u,t.delay,t.time),t.delay<=h&&u(h-t.delay)}function u(h){var B,w,m,v;if(t.state!==ca)return g();for(B in n)if(v=n[B],v.name===t.name){if(v.state===Hr)return aa(u);v.state===ua?(v.state=Ir,v.timer.stop(),v.on.call("interrupt",e,e.__data__,v.index,v.group),delete n[B]):+B<A&&(v.state=Ir,v.timer.stop(),v.on.call("cancel",e,e.__data__,v.index,v.group),delete n[B])}if(aa(function(){t.state===Hr&&(t.state=ua,t.timer.restart(d,t.delay,t.time),d(h))}),t.state=si,t.on.call("start",e,e.__data__,t.index,t.group),t.state===si){for(t.state=Hr,r=new Array(m=t.tween.length),B=0,w=-1;B<m;++B)(v=t.tween[B].value.call(e,e.__data__,t.index,t.group))&&(r[++w]=v);r.length=w+1}}function d(h){for(var B=h<t.duration?t.ease.call(null,h/t.duration):(t.timer.restart(g),t.state=ai,1),w=-1,m=r.length;++w<m;)r[w].call(e,B);t.state===ai&&(t.on.call("end",e,e.__data__,t.index,t.group),g())}function g(){t.state=Ir,t.timer.stop(),delete n[A];for(var h in n)return;delete e.__transition}}function Sr(e,A){var t=e.__transition,n,r,a=!0,u;if(t){A=A==null?null:A+"";for(u in t){if((n=t[u]).name!==A){a=!1;continue}r=n.state>si&&n.state<ai,n.state=Ir,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete t[u]}a&&delete e.__transition}}function xg(e){return this.each(function(){Sr(this,e)})}function Dg(e,A){var t,n;return function(){var r=Pe(this,e),a=r.tween;if(a!==t){n=t=a;for(var u=0,d=n.length;u<d;++u)if(n[u].name===A){n=n.slice(),n.splice(u,1);break}}r.tween=n}}function Ng(e,A,t){var n,r;if(typeof t!="function")throw new Error;return function(){var a=Pe(this,e),u=a.tween;if(u!==n){r=(n=u).slice();for(var d={name:A,value:t},g=0,h=r.length;g<h;++g)if(r[g].name===A){r[g]=d;break}g===h&&r.push(d)}a.tween=r}}function Lg(e,A){var t=this._id;if(e+="",arguments.length<2){for(var n=ke(this.node(),t).tween,r=0,a=n.length,u;r<a;++r)if((u=n[r]).name===e)return u.value;return null}return this.each((A==null?Dg:Ng)(t,e,A))}function ci(e,A,t){var n=e._id;return e.each(function(){var r=Pe(this,n);(r.value||(r.value={}))[A]=t.apply(this,arguments)}),function(r){return ke(r,n).value[A]}}function da(e,A){var t;return(typeof A=="number"?Ve:A instanceof Ht?vr:(t=Ht(A))?(A=t,vr):qs)(e,A)}function Tg(e){return function(){this.removeAttribute(e)}}function kg(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Mg(e,A,t){var n,r=t+"",a;return function(){var u=this.getAttribute(e);return u===r?null:u===n?a:a=A(n=u,t)}}function Og(e,A,t){var n,r=t+"",a;return function(){var u=this.getAttributeNS(e.space,e.local);return u===r?null:u===n?a:a=A(n=u,t)}}function Kg(e,A,t){var n,r,a;return function(){var u,d=t(this),g;return d==null?void this.removeAttribute(e):(u=this.getAttribute(e),g=d+"",u===g?null:u===n&&g===r?a:(r=g,a=A(n=u,d)))}}function Rg(e,A,t){var n,r,a;return function(){var u,d=t(this),g;return d==null?void this.removeAttributeNS(e.space,e.local):(u=this.getAttributeNS(e.space,e.local),g=d+"",u===g?null:u===n&&g===r?a:(r=g,a=A(n=u,d)))}}function Vg(e,A){var t=gr(e),n=t==="transform"?vg:da;return this.attrTween(e,typeof A=="function"?(t.local?Rg:Kg)(t,n,ci(this,"attr."+e,A)):A==null?(t.local?kg:Tg)(t):(t.local?Og:Mg)(t,n,A))}function Pg(e,A){return function(t){this.setAttribute(e,A.call(this,t))}}function Gg(e,A){return function(t){this.setAttributeNS(e.space,e.local,A.call(this,t))}}function zg(e,A){var t,n;function r(){var a=A.apply(this,arguments);return a!==n&&(t=(n=a)&&Gg(e,a)),t}return r._value=A,r}function Xg(e,A){var t,n;function r(){var a=A.apply(this,arguments);return a!==n&&(t=(n=a)&&Pg(e,a)),t}return r._value=A,r}function $g(e,A){var t="attr."+e;if(arguments.length<2)return(t=this.tween(t))&&t._value;if(A==null)return this.tween(t,null);if(typeof A!="function")throw new Error;var n=gr(e);return this.tween(t,(n.local?zg:Xg)(n,A))}function Yg(e,A){return function(){li(this,e).delay=+A.apply(this,arguments)}}function Wg(e,A){return A=+A,function(){li(this,e).delay=A}}function Jg(e){var A=this._id;return arguments.length?this.each((typeof e=="function"?Yg:Wg)(A,e)):ke(this.node(),A).delay}function Zg(e,A){return function(){Pe(this,e).duration=+A.apply(this,arguments)}}function jg(e,A){return A=+A,function(){Pe(this,e).duration=A}}function qg(e){var A=this._id;return arguments.length?this.each((typeof e=="function"?Zg:jg)(A,e)):ke(this.node(),A).duration}function Ah(e,A){if(typeof A!="function")throw new Error;return function(){Pe(this,e).ease=A}}function eh(e){var A=this._id;return arguments.length?this.each(Ah(A,e)):ke(this.node(),A).ease}function th(e,A){return function(){var t=A.apply(this,arguments);if(typeof t!="function")throw new Error;Pe(this,e).ease=t}}function nh(e){if(typeof e!="function")throw new Error;return this.each(th(this._id,e))}function rh(e){typeof e!="function"&&(e=_s(e));for(var A=this._groups,t=A.length,n=new Array(t),r=0;r<t;++r)for(var a=A[r],u=a.length,d=n[r]=[],g,h=0;h<u;++h)(g=a[h])&&e.call(g,g.__data__,h,a)&&d.push(g);return new qe(n,this._parents,this._name,this._id)}function oh(e){if(e._id!==this._id)throw new Error;for(var A=this._groups,t=e._groups,n=A.length,r=t.length,a=Math.min(n,r),u=new Array(n),d=0;d<a;++d)for(var g=A[d],h=t[d],B=g.length,w=u[d]=new Array(B),m,v=0;v<B;++v)(m=g[v]||h[v])&&(w[v]=m);for(;d<n;++d)u[d]=A[d];return new qe(u,this._parents,this._name,this._id)}function ih(e){return(e+"").trim().split(/^|\s+/).every(function(A){var t=A.indexOf(".");return t>=0&&(A=A.slice(0,t)),!A||A==="start"})}function sh(e,A,t){var n,r,a=ih(A)?li:Pe;return function(){var u=a(this,e),d=u.on;d!==n&&(r=(n=d).copy()).on(A,t),u.on=r}}function ah(e,A){var t=this._id;return arguments.length<2?ke(this.node(),t).on.on(e):this.each(sh(t,e,A))}function lh(e){return function(){var A=this.parentNode;for(var t in this.__transition)if(+t!==e)return;A&&A.removeChild(this)}}function ch(){return this.on("end.remove",lh(this._id))}function uh(e){var A=this._name,t=this._id;typeof e!="function"&&(e=Yo(e));for(var n=this._groups,r=n.length,a=new Array(r),u=0;u<r;++u)for(var d=n[u],g=d.length,h=a[u]=new Array(g),B,w,m=0;m<g;++m)(B=d[m])&&(w=e.call(B,B.__data__,m,d))&&("__data__"in B&&(w.__data__=B.__data__),h[m]=w,_r(h[m],A,t,m,h,ke(B,t)));return new qe(a,this._parents,A,t)}function dh(e){var A=this._name,t=this._id;typeof e!="function"&&(e=Is(e));for(var n=this._groups,r=n.length,a=[],u=[],d=0;d<r;++d)for(var g=n[d],h=g.length,B,w=0;w<h;++w)if(B=g[w]){for(var m=e.call(B,B.__data__,w,g),v,y=ke(B,t),I=0,L=m.length;I<L;++I)(v=m[I])&&_r(v,A,t,I,m,y);a.push(m),u.push(B)}return new qe(a,u,A,t)}var fh=bn.prototype.constructor;function gh(){return new fh(this._groups,this._parents)}function hh(e,A){var t,n,r;return function(){var a=$t(this,e),u=(this.style.removeProperty(e),$t(this,e));return a===u?null:a===t&&u===n?r:r=A(t=a,n=u)}}function fa(e){return function(){this.style.removeProperty(e)}}function Bh(e,A,t){var n,r=t+"",a;return function(){var u=$t(this,e);return u===r?null:u===n?a:a=A(n=u,t)}}function ph(e,A,t){var n,r,a;return function(){var u=$t(this,e),d=t(this),g=d+"";return d==null&&(g=d=(this.style.removeProperty(e),$t(this,e))),u===g?null:u===n&&g===r?a:(r=g,a=A(n=u,d))}}function mh(e,A){var t,n,r,a="style."+A,u="end."+a,d;return function(){var g=Pe(this,e),h=g.on,B=g.value[a]==null?d||(d=fa(A)):void 0;(h!==t||r!==B)&&(n=(t=h).copy()).on(u,r=B),g.on=n}}function wh(e,A,t){var n=(e+="")=="transform"?Cg:da;return A==null?this.styleTween(e,hh(e,n)).on("end.style."+e,fa(e)):typeof A=="function"?this.styleTween(e,ph(e,n,ci(this,"style."+e,A))).each(mh(this._id,e)):this.styleTween(e,Bh(e,n,A),t).on("end.style."+e,null)}function Ch(e,A,t){return function(n){this.style.setProperty(e,A.call(this,n),t)}}function vh(e,A,t){var n,r;function a(){var u=A.apply(this,arguments);return u!==r&&(n=(r=u)&&Ch(e,u,t)),n}return a._value=A,a}function yh(e,A,t){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(A==null)return this.tween(n,null);if(typeof A!="function")throw new Error;return this.tween(n,vh(e,A,t??""))}function Qh(e){return function(){this.textContent=e}}function Eh(e){return function(){var A=e(this);this.textContent=A??""}}function Fh(e){return this.tween("text",typeof e=="function"?Eh(ci(this,"text",e)):Qh(e==null?"":e+""))}function Uh(e){return function(A){this.textContent=e.call(this,A)}}function bh(e){var A,t;function n(){var r=e.apply(this,arguments);return r!==t&&(A=(t=r)&&Uh(r)),A}return n._value=e,n}function Hh(e){var A="text";if(arguments.length<1)return(A=this.tween(A))&&A._value;if(e==null)return this.tween(A,null);if(typeof e!="function")throw new Error;return this.tween(A,bh(e))}function Ih(){for(var e=this._name,A=this._id,t=ga(),n=this._groups,r=n.length,a=0;a<r;++a)for(var u=n[a],d=u.length,g,h=0;h<d;++h)if(g=u[h]){var B=ke(g,A);_r(g,e,t,h,u,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new qe(n,this._parents,e,t)}function _h(){var e,A,t=this,n=t._id,r=t.size();return new Promise(function(a,u){var d={value:u},g={value:function(){--r===0&&a()}};t.each(function(){var h=Pe(this,n),B=h.on;B!==e&&(A=(e=B).copy(),A._.cancel.push(d),A._.interrupt.push(d),A._.end.push(g)),h.on=A}),r===0&&a()})}var Sh=0;function qe(e,A,t,n){this._groups=e,this._parents=A,this._name=t,this._id=n}function ga(){return++Sh}var At=bn.prototype;qe.prototype={constructor:qe,select:uh,selectAll:dh,selectChild:At.selectChild,selectChildren:At.selectChildren,filter:rh,merge:oh,selection:gh,transition:Ih,call:At.call,nodes:At.nodes,node:At.node,size:At.size,empty:At.empty,each:At.each,on:ah,attr:Vg,attrTween:$g,style:wh,styleTween:yh,text:Fh,textTween:Hh,remove:ch,tween:Lg,delay:Jg,duration:qg,ease:eh,easeVarying:nh,end:_h,[Symbol.iterator]:At[Symbol.iterator]};function xh(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Dh={time:null,delay:0,duration:250,ease:xh};function Nh(e,A){for(var t;!(t=e.__transition)||!(t=t[A]);)if(!(e=e.parentNode))throw new Error(`transition ${A} not found`);return t}function Lh(e){var A,t;e instanceof qe?(A=e._id,e=e._name):(A=ga(),(t=Dh).time=oi(),e=e==null?null:e+"");for(var n=this._groups,r=n.length,a=0;a<r;++a)for(var u=n[a],d=u.length,g,h=0;h<d;++h)(g=u[h])&&_r(g,e,A,h,u,t||Nh(g,A));return new qe(n,this._parents,e,A)}bn.prototype.interrupt=xg,bn.prototype.transition=Lh;var xr=e=>()=>e;function Th(e,{sourceEvent:A,target:t,transform:n,dispatch:r}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:A,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},transform:{value:n,enumerable:!0,configurable:!0},_:{value:r}})}function et(e,A,t){this.k=e,this.x=A,this.y=t}et.prototype={constructor:et,scale:function(e){return e===1?this:new et(this.k*e,this.x,this.y)},translate:function(e,A){return e===0&A===0?this:new et(this.k,this.x+this.k*e,this.y+this.k*A)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Zt=new et(1,0,0);et.prototype;function ui(e){e.stopImmediatePropagation()}function kn(e){e.preventDefault(),e.stopImmediatePropagation()}function kh(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Mh(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function ha(){return this.__zoom||Zt}function Oh(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Kh(){return navigator.maxTouchPoints||"ontouchstart"in this}function Rh(e,A,t){var n=e.invertX(A[0][0])-t[0][0],r=e.invertX(A[1][0])-t[1][0],a=e.invertY(A[0][1])-t[0][1],u=e.invertY(A[1][1])-t[1][1];return e.translate(r>n?(n+r)/2:Math.min(0,n)||Math.max(0,r),u>a?(a+u)/2:Math.min(0,a)||Math.max(0,u))}function Vh(){var e=kh,A=Mh,t=Rh,n=Oh,r=Kh,a=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],d=250,g=Qr,h=dr("start","zoom","end"),B,w,m,v=500,y=150,I=0,L=10;function T(H){H.property("__zoom",ha).on("wheel.zoom",lA,{passive:!1}).on("mousedown.zoom",iA).on("dblclick.zoom",oA).filter(r).on("touchstart.zoom",tA).on("touchmove.zoom",x).on("touchend.zoom touchcancel.zoom",eA).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}T.transform=function(H,X,F,D){var k=H.selection?H.selection():H;k.property("__zoom",ha),H!==k?aA(H,X,F,D):k.interrupt().each(function(){Z(this,arguments).event(D).start().zoom(null,typeof X=="function"?X.apply(this,arguments):X).end()})},T.scaleBy=function(H,X,F,D){T.scaleTo(H,function(){return this.__zoom.k*(typeof X=="function"?X.apply(this,arguments):X)},F,D)},T.scaleTo=function(H,X,F,D){T.transform(H,function(){var k=A.apply(this,arguments),N=this.__zoom,R=F==null?O(k):typeof F=="function"?F.apply(this,arguments):F,$=N.invert(R),nA=typeof X=="function"?X.apply(this,arguments):X;return t(b(K(N,nA),R,$),k,u)},F,D)},T.translateBy=function(H,X,F,D){T.transform(H,function(){return t(this.__zoom.translate(typeof X=="function"?X.apply(this,arguments):X,typeof F=="function"?F.apply(this,arguments):F),A.apply(this,arguments),u)},null,D)},T.translateTo=function(H,X,F,D,k){T.transform(H,function(){var N=A.apply(this,arguments),R=this.__zoom,$=D==null?O(N):typeof D=="function"?D.apply(this,arguments):D;return t(Zt.translate($[0],$[1]).scale(R.k).translate(typeof X=="function"?-X.apply(this,arguments):-X,typeof F=="function"?-F.apply(this,arguments):-F),N,u)},D,k)};function K(H,X){return X=Math.max(a[0],Math.min(a[1],X)),X===H.k?H:new et(X,H.x,H.y)}function b(H,X,F){var D=X[0]-F[0]*H.k,k=X[1]-F[1]*H.k;return D===H.x&&k===H.y?H:new et(H.k,D,k)}function O(H){return[(+H[0][0]+ +H[1][0])/2,(+H[0][1]+ +H[1][1])/2]}function aA(H,X,F,D){H.on("start.zoom",function(){Z(this,arguments).event(D).start()}).on("interrupt.zoom end.zoom",function(){Z(this,arguments).event(D).end()}).tween("zoom",function(){var k=this,N=arguments,R=Z(k,N).event(D),$=A.apply(k,N),nA=F==null?O($):typeof F=="function"?F.apply(k,N):F,BA=Math.max($[1][0]-$[0][0],$[1][1]-$[0][1]),FA=k.__zoom,sA=typeof X=="function"?X.apply(k,N):X,Y=g(FA.invert(nA).concat(BA/FA.k),sA.invert(nA).concat(BA/sA.k));return function(J){if(J===1)J=sA;else{var uA=Y(J),wA=BA/uA[2];J=new et(wA,nA[0]-uA[0]*wA,nA[1]-uA[1]*wA)}R.zoom(null,J)}})}function Z(H,X,F){return!F&&H.__zooming||new cA(H,X)}function cA(H,X){this.that=H,this.args=X,this.active=0,this.sourceEvent=null,this.extent=A.apply(H,X),this.taps=0}cA.prototype={event:function(H){return H&&(this.sourceEvent=H),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(H,X){return this.mouse&&H!=="mouse"&&(this.mouse[1]=X.invert(this.mouse[0])),this.touch0&&H!=="touch"&&(this.touch0[1]=X.invert(this.touch0[0])),this.touch1&&H!=="touch"&&(this.touch1[1]=X.invert(this.touch1[0])),this.that.__zoom=X,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(H){var X=Le(this.that).datum();h.call(H,this.that,new Th(H,{sourceEvent:this.sourceEvent,target:T,type:H,transform:this.that.__zoom,dispatch:h}),X)}};function lA(H,...X){if(!e.apply(this,arguments))return;var F=Z(this,X).event(H),D=this.__zoom,k=Math.max(a[0],Math.min(a[1],D.k*Math.pow(2,n.apply(this,arguments)))),N=Ke(H);if(F.wheel)(F.mouse[0][0]!==N[0]||F.mouse[0][1]!==N[1])&&(F.mouse[1]=D.invert(F.mouse[0]=N)),clearTimeout(F.wheel);else{if(D.k===k)return;F.mouse=[N,D.invert(N)],Sr(this),F.start()}kn(H),F.wheel=setTimeout(R,y),F.zoom("mouse",t(b(K(D,k),F.mouse[0],F.mouse[1]),F.extent,u));function R(){F.wheel=null,F.end()}}function iA(H,...X){if(m||!e.apply(this,arguments))return;var F=H.currentTarget,D=Z(this,X,!0).event(H),k=Le(H.view).on("mousemove.zoom",nA,!0).on("mouseup.zoom",BA,!0),N=Ke(H,F),R=H.clientX,$=H.clientY;Ks(H.view),ui(H),D.mouse=[N,this.__zoom.invert(N)],Sr(this),D.start();function nA(FA){if(kn(FA),!D.moved){var sA=FA.clientX-R,Y=FA.clientY-$;D.moved=sA*sA+Y*Y>I}D.event(FA).zoom("mouse",t(b(D.that.__zoom,D.mouse[0]=Ke(FA,F),D.mouse[1]),D.extent,u))}function BA(FA){k.on("mousemove.zoom mouseup.zoom",null),Rs(FA.view,D.moved),kn(FA),D.event(FA).end()}}function oA(H,...X){if(e.apply(this,arguments)){var F=this.__zoom,D=Ke(H.changedTouches?H.changedTouches[0]:H,this),k=F.invert(D),N=F.k*(H.shiftKey?.5:2),R=t(b(K(F,N),D,k),A.apply(this,X),u);kn(H),d>0?Le(this).transition().duration(d).call(aA,R,D,H):Le(this).call(T.transform,R,D,H)}}function tA(H,...X){if(e.apply(this,arguments)){var F=H.touches,D=F.length,k=Z(this,X,H.changedTouches.length===D).event(H),N,R,$,nA;for(ui(H),R=0;R<D;++R)$=F[R],nA=Ke($,this),nA=[nA,this.__zoom.invert(nA),$.identifier],k.touch0?!k.touch1&&k.touch0[2]!==nA[2]&&(k.touch1=nA,k.taps=0):(k.touch0=nA,N=!0,k.taps=1+!!B);B&&(B=clearTimeout(B)),N&&(k.taps<2&&(w=nA[0],B=setTimeout(function(){B=null},v)),Sr(this),k.start())}}function x(H,...X){if(this.__zooming){var F=Z(this,X).event(H),D=H.changedTouches,k=D.length,N,R,$,nA;for(kn(H),N=0;N<k;++N)R=D[N],$=Ke(R,this),F.touch0&&F.touch0[2]===R.identifier?F.touch0[0]=$:F.touch1&&F.touch1[2]===R.identifier&&(F.touch1[0]=$);if(R=F.that.__zoom,F.touch1){var BA=F.touch0[0],FA=F.touch0[1],sA=F.touch1[0],Y=F.touch1[1],J=(J=sA[0]-BA[0])*J+(J=sA[1]-BA[1])*J,uA=(uA=Y[0]-FA[0])*uA+(uA=Y[1]-FA[1])*uA;R=K(R,Math.sqrt(J/uA)),$=[(BA[0]+sA[0])/2,(BA[1]+sA[1])/2],nA=[(FA[0]+Y[0])/2,(FA[1]+Y[1])/2]}else if(F.touch0)$=F.touch0[0],nA=F.touch0[1];else return;F.zoom("touch",t(b(R,$,nA),F.extent,u))}}function eA(H,...X){if(this.__zooming){var F=Z(this,X).event(H),D=H.changedTouches,k=D.length,N,R;for(ui(H),m&&clearTimeout(m),m=setTimeout(function(){m=null},v),N=0;N<k;++N)R=D[N],F.touch0&&F.touch0[2]===R.identifier?delete F.touch0:F.touch1&&F.touch1[2]===R.identifier&&delete F.touch1;if(F.touch1&&!F.touch0&&(F.touch0=F.touch1,delete F.touch1),F.touch0)F.touch0[1]=this.__zoom.invert(F.touch0[0]);else if(F.end(),F.taps===2&&(R=Ke(R,this),Math.hypot(w[0]-R[0],w[1]-R[1])<L)){var $=Le(this).on("dblclick.zoom");$&&$.apply(this,arguments)}}}return T.wheelDelta=function(H){return arguments.length?(n=typeof H=="function"?H:xr(+H),T):n},T.filter=function(H){return arguments.length?(e=typeof H=="function"?H:xr(!!H),T):e},T.touchable=function(H){return arguments.length?(r=typeof H=="function"?H:xr(!!H),T):r},T.extent=function(H){return arguments.length?(A=typeof H=="function"?H:xr([[+H[0][0],+H[0][1]],[+H[1][0],+H[1][1]]]),T):A},T.scaleExtent=function(H){return arguments.length?(a[0]=+H[0],a[1]=+H[1],T):[a[0],a[1]]},T.translateExtent=function(H){return arguments.length?(u[0][0]=+H[0][0],u[1][0]=+H[1][0],u[0][1]=+H[0][1],u[1][1]=+H[1][1],T):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},T.constrain=function(H){return arguments.length?(t=H,T):t},T.duration=function(H){return arguments.length?(d=+H,T):d},T.interpolate=function(H){return arguments.length?(g=H,T):g},T.on=function(){var H=h.on.apply(h,arguments);return H===h?T:H},T.clickDistance=function(H){return arguments.length?(I=(H=+H)*H,T):Math.sqrt(I)},T.tapDistance=function(H){return arguments.length?(L=+H,T):L},T}var IA=(e=>(e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom",e))(IA||{}),di=(e=>(e.Partial="partial",e.Full="full",e))(di||{}),xt=(e=>(e.Bezier="default",e.SimpleBezier="simple-bezier",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e))(xt||{}),tt=(e=>(e.Strict="strict",e.Loose="loose",e))(tt||{}),nt=(e=>(e.Arrow="arrow",e.ArrowClosed="arrowclosed",e))(nt||{}),Mn=(e=>(e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal",e))(Mn||{}),Ba=(e=>(e.TopLeft="top-left",e.TopCenter="top-center",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomCenter="bottom-center",e.BottomRight="bottom-right",e))(Ba||{}),Ph=["INPUT","SELECT","TEXTAREA"],Gh=typeof document<"u"?document:null;function fi(e){var A,t;const n=((t=(A=e.composedPath)==null?void 0:A.call(e))==null?void 0:t[0])||e.target,r=typeof n?.hasAttribute=="function"?n.hasAttribute("contenteditable"):!1,a=typeof n?.closest=="function"?n.closest(".nokey"):null;return Ph.includes(n?.nodeName)||r||!!a}function zh(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function pa(e,A,t,n){const r=A.replace("+",`
|
|
2
2
|
`).replace(`
|
|
3
3
|
|
|
4
4
|
`,`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@a2simcode/dui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.59",
|
|
4
4
|
"description": "A Vue 3 DUI Component Library - 独立可发布的 DUI 组件子集",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/dui.umd.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"html2canvas": "1.4.1",
|
|
60
60
|
"sortablejs": "1.15.7",
|
|
61
61
|
"sql-formatter": "15.7.2",
|
|
62
|
-
"vue": "3.5.
|
|
62
|
+
"vue": "3.5.39",
|
|
63
63
|
"vue3-sketch-ruler": "1.3.9",
|
|
64
64
|
"@wangeditor/editor": "5.1.23",
|
|
65
65
|
"diagram-js": "15.13.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@vue-flow/background": "^1.3.2",
|
|
73
73
|
"@vue-flow/controls": "^1.1.3",
|
|
74
74
|
"gridstack": "^12.4.2",
|
|
75
|
-
"@a2simcode/ui": "0.0.
|
|
75
|
+
"@a2simcode/ui": "0.0.249"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@types/codemirror": "^5.60.17",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"vite-plugin-dts": "^4.5.4",
|
|
102
102
|
"vitepress": "^1.6.4",
|
|
103
103
|
"vitest": "^4.0.18",
|
|
104
|
-
"vue": "3.5.
|
|
104
|
+
"vue": "3.5.39",
|
|
105
105
|
"vue-docgen-api": "^4.79.2",
|
|
106
106
|
"vue-tsc": "3.2.7"
|
|
107
107
|
},
|