@a2simcode/dui 0.0.38 → 0.0.39
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/components-dui/biDesign/index.d.ts +6 -6
- package/dist/components-dui/formDesign/index.d.ts +6 -63
- package/dist/components-dui/formDesign/src/formDesign.vue.d.ts +1 -55
- package/dist/components-dui/formDesign/src/interface.d.ts +0 -44
- package/dist/components-dui/indexDesign/index.d.ts +12 -12
- package/dist/components-dui/indexDesign/src/utils.d.ts +1 -0
- package/dist/dui.css +1 -1
- package/dist/dui.es.js +6414 -6772
- package/dist/dui.umd.js +8 -8
- package/package.json +7 -7
- package/LICENSE +0 -53
- package/dist/components-dui/formDesign/src/importComponent.vue.d.ts +0 -35
package/dist/dui.umd.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(oe,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@a2simcode/ui")):typeof define=="function"&&define.amd?define(["exports","vue","@a2simcode/ui"],r):(oe=typeof globalThis<"u"?globalThis:oe||self,r(oe.DuiUI={},oe.Vue,oe.SimCodeUI))})(this,function(oe,r,Te){Object.defineProperties(oe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var wu=Object.create,er=Object.defineProperty,Cu=Object.getOwnPropertyDescriptor,yu=Object.getOwnPropertyNames,vu=Object.getPrototypeOf,Qu=Object.prototype.hasOwnProperty,Eu=(e,A)=>()=>(A||(e((A={exports:{}}).exports,A),e=null),A.exports),Fu=(e,A)=>{let t={};for(var n in e)er(t,n,{get:e[n],enumerable:!0});return A||er(t,Symbol.toStringTag,{value:"Module"}),t},Io=(e,A,t,n)=>{if(A&&typeof A=="object"||typeof A=="function")for(var o=yu(A),a=0,c=o.length,d;a<c;a++)d=o[a],!Qu.call(e,d)&&d!==t&&er(e,d,{get:(h=>A[h]).bind(null,d),enumerable:!(n=Cu(A,d))||n.enumerable});return e},Uu=(e,A,t)=>(Io(e,A,"default"),t&&Io(t,A,"default")),os=(e,A,t)=>(t=e!=null?wu(vu(e)):{},Io(A||!e||!e.__esModule?er(t,"default",{value:e,enumerable:!0}):t,e));r=os(r,1);var ft=(e,A)=>(e.install=t=>{t.component(e.name,e),A&&A.forEach(n=>{t.component(n.name,n)})},e),gt=(e="")=>{const A=Date.now(),t=Math.floor(Math.random()*1e9);return e===""?String(t)+String(A):e+"_"+t+String(A)},pn=e=>{if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(pn);const A={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=pn(e[t]));return A},bu=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]},Ho={},Iu=(e,A,t)=>{t[e]=t[e]||{};const n=gt();return t[e][n]=A,n},Hu=(e,A,t)=>{const n=[],o=t[e]||{};return Object.keys(o).forEach(a=>{const c=o[a];try{c&&n.push(c(A))}catch(d){console.error(d)}}),n},_u=(e,A,t)=>{if(A){const n=t[e];n&&delete n[A]}else delete t[e]},is=(e,A)=>Iu(e,A,Ho),ie=(e,A)=>Hu(e,A,Ho),Su=(e,A)=>{_u(e,A,Ho)},ss=(e,A,t,n,o,a)=>{const c=A.id,d=A.level,{getDesignLocals:h,selectComponent:g,getComponent:B,isMyChildComponent:w,addComponent:m,deleteComponent:y,getParentComponents:v,removeComponentFromContainer:I,addComponentToContainer:L,copyComponent:k,activedComponent:V,top:F}=(0,r.inject)("d-drag-design-provide",{}),M=[],tA=(0,r.ref)(!1),W=(0,r.ref)(!1),aA=(0,r.ref)(!1),dA=(0,r.ref)(!1),rA=(0,r.ref)(!1),oA={id:"",type:""},AA=(0,r.ref)(!1),O=(0,r.ref)(!1);let lA="",_=null;const Z=Y=>{if(lA===Y)return _;lA=Y;const{top:cA,left:mA,width:yA,height:IA}=e.value.getBoundingClientRect();return _=[{x:mA,y:cA},{x:mA+yA,y:cA},{x:mA+yA,y:cA+IA},{x:mA,y:cA+IA}],_},U=(Y,cA,mA)=>{let yA=cA-mA[0].y;yA<0&&(yA=-yA);let IA=cA-mA[3].y;IA<0&&(IA=-IA);let fA=Y-mA[0].x;fA<0&&(fA=-fA);let vA=Y-mA[1].x;return vA<0&&(vA=-vA),{ly:yA>IA?IA:yA,typey:yA>IA?"bottom":"top",lx:fA>vA?vA:fA,lallx:fA+vA}},x=(Y,cA,mA)=>Y>=mA[0].x&&Y<=mA[1].x&&cA>=mA[0].y&&cA<=mA[3].y,G=()=>{if(o){ie("dragClick",{id:c});return}if(!W.value){if(g(c),d!==0){const Y=e.value.getBoundingClientRect(),cA=h();Y.top-cA.top<22?dA.value=!0:dA.value=!1}W.value=!0,ie("dragClick",{id:c})}},R=Y=>{const cA=y(Y);cA&&(0,r.nextTick)(()=>{ie("dragClick",{id:cA})})},$=()=>{oA.id="",oA.type="",d===0&&(rA.value=!1)},J=()=>{ie("mouseEnterOrLeave",{id:c,type:"enter"})},nA=()=>{ie("mouseEnterOrLeave",{id:c,type:"leave"})},hA=Y=>{ie("dragClick",{id:Y})},UA={mouseEnterOrLeave:({id:Y,type:cA})=>{cA==="enter"?M.push(Y):M.length>0&&M.splice(M.length-1,1);const mA=M.length;mA>0&&c===M[mA-1]?tA.value=!0:tA.value=!1},dragAciveChild:({type:Y,id:cA})=>{cA===c?Y==="top"?(AA.value=!0,O.value=!1):(O.value=!0,AA.value=!1):(O.value=!1,AA.value=!1)},dragClick({id:Y,isAgain:cA}){console.log("dragClick",Y,c),Y!==c?W.value=!1:(cA&&(W.value=!1),G())}};UA[`dragGetChildDistance_${c}`]=({dragX:Y,dragY:cA,moveId:mA})=>U(Y,cA,Z(mA));const eA={isInContainer({x:Y,y:cA,id:mA,moveId:yA}){if(c===mA||w(mA,c))return aA.value=!1,{isIn:!1,level:d,id:c,groupId:a};const IA=Z(yA);if(x(Y,cA,IA))return d===0&&(rA.value=!0),{isIn:!0,level:d,id:c,groupId:a};if(d===0){const{ly:fA,lx:vA}=U(Y,cA,IA);if(fA<20&&vA<20)return rA.value=!0,{isIn:!0,level:d,id:c,groupId:a};rA.value=!1}return aA.value=!1,{isIn:!1,level:d,id:c,groupId:a}},dragActiveContainer:({containerId:Y,containerGroupId:cA,dragX:mA,dragY:yA,moveId:IA})=>{if(Y===c&&cA===a)if(aA.value=!0,n&&n.value.length>0){let fA={ly:9999999,lx:0,lallx:0,id:"",typey:""};n?.value.forEach(vA=>{if(a&&vA.groupId!==a)return;const S=ie(`dragGetChildDistance_${vA.id}`,{dragX:mA,dragY:yA,moveId:IA})[0];S&&(fA.ly>S.ly||fA.ly===S.ly&&(fA.lx>S.lx||fA.lx===S.lx&&fA.lallx>S.lallx))&&(fA=S,fA.id=vA.id)}),oA.id=fA.id,oA.type=fA.typey,ie("dragAciveChild",{id:fA.id,type:fA.typey})}else ie("dragAciveChild",{id:""});else aA.value=!1},dragAdd:Y=>{if(aA.value){let cA=n?.value.length||0;oA.id!==""&&oA.id!==void 0&&(cA=n?.value.findIndex(mA=>mA.id===oA.id)||0,oA.type==="bottom"&&(cA+=1)),m(Y,c,cA,a),aA.value=!1}$()},dragAddByClick:Y=>{if(!V.value&&c===F.id||V.value?.id===c||V.value?.containerId===c&&V.value?.dragType!=="container"){const cA=m(Y,c,n?.value.length||0,a,!0);cA&&Y.config&&Object.keys(Y.config).forEach(mA=>{cA.config[mA]=Y.config[mA]})}},dragUpdate(Y){if(aA.value){const cA=B(Y);if(cA.level=d+1,oA.id!==cA.id){I(cA.containerId,Y);let mA=n?.value.findIndex(yA=>yA.id===oA.id)||0;oA.type==="bottom"&&(mA+=1),L(cA,c,mA,a)}aA.value=!1,(0,r.nextTick)(()=>{ie("dragClick",{id:cA.id,isAgain:!0})})}$()}},uA={};return(0,r.onMounted)(()=>{(!o||t!=="container")&&Object.keys(UA).forEach(Y=>{uA[Y]=is(Y,UA[Y])}),t==="container"&&Object.keys(eA).forEach(Y=>{uA[Y]=is(Y,eA[Y])}),A.isNewAdd&&(0,r.nextTick)(()=>{G(),delete A.isNewAdd})}),(0,r.onUnmounted)(()=>{Object.keys(uA).forEach(Y=>{Su(Y,uA[Y])})}),{onMouseenter:J,onMouseleave:nA,activeComponent:G,handleComponentClick:hA,deleteComponentByClick:R,copyComponent:k,getParentComponents:v,isBottomToolBar:dA,isHover:tA,isSelect:W,isToContainer:aA,isMoveingInTopLevel:rA,isTopActive:AA,isBottomActive:O}},as=(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 o=(y,v)=>{n!==!0&&(n=!0,setTimeout(()=>{y(),n=!1},v))},a=(0,r.ref)(!1),c=(y,v,I)=>{const L=document.createElement("div");return L.id=t.dragElementId,L.innerText=y,L.className="d-drag-move",L.style.top=`${v}px`,L.style.left=`${I}px`,document.body.appendChild(L),L},d=()=>{document.onmousemove=null,document.onmouseup=null,a.value=!1,ie("dragAciveChild",{id:""})},h=()=>{d(),t.dragElement&&(t.dragElement.remove(),t.dragElement=null,A?ie("dragAdd",e):ie("dragUpdate",e.id))},g=y=>{const{clientY:v,clientX:I}=y;if(!t.dragElement){const L=Math.abs(t.x-I),k=Math.abs(t.y-v);if(L<=1&&k<=1)return;a.value=!0,t.dragElement=c(e.name,v-11,I-32)}t.dragElement.style.top=`${v-11}px`,t.dragElement.style.left=`${I-32}px`,t.clientX=I,t.clientY=v,o(()=>{if(!a.value)return;const L=ie("isInContainer",{x:I,y:v,id:e.id,moveId:t.id});t.toContainerLevel=-1,t.toContainerId="",t.groupId="",L.forEach(({level:k,id:V,isIn:F,groupId:M})=>{F&&t.toContainerLevel<k&&(t.toContainerLevel=k,t.toContainerId=V,t.groupId=M)}),t.toContainerId!==""?ie("dragActiveContainer",{containerId:t.toContainerId,containerGroupId:t.groupId,dragX:I,dragY:v,moveId:t.id}):ie("dragAciveChild",{id:""})},100)};return{onContextmenu:()=>{d()},onMousedown:y=>{t.x=y.clientX,t.y=y.clientY,t.id=gt(),document.onmouseup=h,document.onmousemove=g},onClick:()=>{ie("dragAddByClick",e)},moveActive:a}},xu={class:"d-drag-btns-pname"},Du={key:0,class:"d-drag-mask"},Nu=(0,r.defineComponent)({name:"DDrag",__name:"drag",props:{componentData:{default:()=>({})},isContainer:{type:Boolean,default:!1}},setup(e){const A=e,t=(0,r.ref)(),{onMouseenter:n,onMouseleave:o,activeComponent:a,handleComponentClick:c,deleteComponentByClick:d,copyComponent:h,getParentComponents:g,isHover:B,isSelect:w,isTopActive:m,isBottomActive:y,isBottomToolBar:v}=ss(t,A.componentData,"component"),{onContextmenu:I,onMousedown:L,moveActive:k}=as(A.componentData,!1);return(V,F)=>{const M=(0,r.resolveComponent)("j-button"),tA=(0,r.resolveComponent)("el-space");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["d-drag-component",{selected:(0,r.unref)(w),hovered:(0,r.unref)(B),isBottomToolBar:(0,r.unref)(v),active:(0,r.unref)(k),isTopActive:(0,r.unref)(m),isBottomActive:(0,r.unref)(y)}])},[F[11]||(F[11]=(0,r.createElementVNode)("div",{class:"d-drag-line"},null,-1)),(0,r.createElementVNode)("div",{class:"d-drag-btns",onMouseenter:F[4]||(F[4]=(...W)=>(0,r.unref)(n)&&(0,r.unref)(n)(...W)),onMouseleave:F[5]||(F[5]=(...W)=>(0,r.unref)(o)&&(0,r.unref)(o)(...W))},[(0,r.createVNode)(tA,{size:4},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,r.withModifiers)(()=>{},["stop"])},[(0,r.createVNode)(M,{class:"d-drag-btn",type:"primary",size:"small",label:e.componentData.name},null,8,["label"]),(0,r.createElementVNode)("div",xu,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(g)(e.componentData.containerId),W=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:W.id},[(0,r.createVNode)(M,{class:"d-drag-btn",type:"primary",size:"small",label:W.name,onClick:aA=>(0,r.unref)(c)(W.id)},null,8,["label","onClick"])]))),128))])]),(0,r.createVNode)(M,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:content-copy",onClick:F[0]||(F[0]=(0,r.withModifiers)(W=>(0,r.unref)(h)(e.componentData.id),["stop"]))}),(0,r.createElementVNode)("div",{onContextmenu:F[1]||(F[1]=(0,r.withModifiers)((...W)=>(0,r.unref)(I)&&(0,r.unref)(I)(...W),["stop"])),onMousedown:F[2]||(F[2]=(0,r.withModifiers)((...W)=>(0,r.unref)(L)&&(0,r.unref)(L)(...W),["stop"])),style:{display:"flex"}},[(0,r.createVNode)(M,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:drag"})],32),(0,r.createVNode)(M,{class:"d-drag-btn",danger:"",type:"primary",size:"small",icon:"mdi:delete",onClick:F[3]||(F[3]=(0,r.withModifiers)(W=>(0,r.unref)(d)(e.componentData.id),["stop"]))})]),_:1})],32),(0,r.createElementVNode)("div",{ref_key:"refDrag",ref:t,class:"d-drag-body",onClick:F[6]||(F[6]=(0,r.withModifiers)((...W)=>(0,r.unref)(a)&&(0,r.unref)(a)(...W),["stop"])),onContextmenu:F[7]||(F[7]=(0,r.withModifiers)((...W)=>(0,r.unref)(I)&&(0,r.unref)(I)(...W),["stop"])),onMousedown:F[8]||(F[8]=(0,r.withModifiers)((...W)=>(0,r.unref)(L)&&(0,r.unref)(L)(...W),["stop"])),onMouseenter:F[9]||(F[9]=(...W)=>(0,r.unref)(n)&&(0,r.unref)(n)(...W)),onMouseleave:F[10]||(F[10]=(...W)=>(0,r.unref)(o)&&(0,r.unref)(o)(...W))},[(0,r.renderSlot)(V.$slots,"default"),e.isContainer?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",Du))],544)],2)}}}),_o=Nu,Lu=(0,r.defineComponent)({name:"DDragTool",__name:"tool",props:{config:{}},setup(e){const{onContextmenu:A,onMousedown:t,onClick:n}=as(e.config??{name:"",id:""},!0);return(o,a)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"d-drag-tool",onClick:a[0]||(a[0]=(0,r.withModifiers)((...c)=>(0,r.unref)(n)&&(0,r.unref)(n)(...c),["stop"])),onContextmenu:a[1]||(a[1]=(0,r.withModifiers)((...c)=>(0,r.unref)(A)&&(0,r.unref)(A)(...c),["stop"])),onMousedown:a[2]||(a[2]=(0,r.withModifiers)((...c)=>(0,r.unref)(t)&&(0,r.unref)(t)(...c),["stop"]))},[(0,r.renderSlot)(o.$slots,"default")],32))}}),So=Lu,Tu={key:0,class:"d-drag-line"},ku={key:1,class:"d-drag-btns"},Mu=(0,r.defineComponent)({name:"DDragContainer",__name:"container",props:{componentData:{default:()=>({})},isComponentContainer:{type:Boolean,default:!0},groupId:{default:void 0}},setup(e){const A=e,t=(0,r.ref)(),n=(0,r.computed)(()=>A.componentData?.children||[]),{onMouseenter:o,onMouseleave:a,activeComponent:c,isHover:d,isSelect:h,isToContainer:g,isMoveingInTopLevel:B,isTopActive:w,isBottomActive:m}=ss(t,A.componentData,"container",n,A.isComponentContainer,A.groupId),y=(0,r.computed)(()=>!!(n.value.findIndex(v=>v.groupId===A.groupId)===-1&&g.value));return(v,I)=>{const L=(0,r.resolveComponent)("j-button");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"refDrag",ref:t,class:(0,r.normalizeClass)(["d-drag-container",{selected:(0,r.unref)(h)&&!e.isComponentContainer,hovered:(0,r.unref)(d)&&!e.isComponentContainer,isTopLevel:e.componentData.level===0,active:y.value,isMoveingInTopLevel:(0,r.unref)(B),isTopActive:(0,r.unref)(w),isBottomActive:(0,r.unref)(m)}])},[e.isComponentContainer?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",Tu)),e.isComponentContainer?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",ku,[(0,r.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,r.withModifiers)(()=>{},["stop"])},[(0,r.createVNode)(L,{class:"d-drag-btn",type:"primary",size:"small",label:e.componentData.name},null,8,["label"])])])),(0,r.createElementVNode)("div",{class:"d-drag-body",onClick:I[0]||(I[0]=(0,r.withModifiers)((...k)=>(0,r.unref)(c)&&(0,r.unref)(c)(...k),["stop"])),onMouseenter:I[1]||(I[1]=(...k)=>(0,r.unref)(o)&&(0,r.unref)(o)(...k)),onMouseleave:I[2]||(I[2]=(...k)=>(0,r.unref)(a)&&(0,r.unref)(a)(...k))},[(0,r.renderSlot)(v.$slots,"default")],32)],2)}}}),xo=Mu,Ou=(0,r.defineComponent)({name:"DDragFormList",__name:"dragFormList",props:{componentList:{default:()=>[]},globalConfig:{default:()=>({})}},setup(e){const{designItemName:A}=(0,r.inject)("dui-design-provide",{});return(t,n)=>{const o=(0,r.resolveComponent)("el-col");return(0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.componentList,a=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:a.id},[a.type!="pkey"?((0,r.openBlock)(),(0,r.createBlock)(o,{key:0,span:a.config.span||24},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(_o,{"is-container":a.dragType!=="component","component-data":a},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.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,r.createCommentVNode)("",!0)],64))),128)}}}),Do=Ou,Ku=(0,r.defineComponent)({name:"DDragIndexList",__name:"dragIndexList",props:{componentList:{default:()=>[]},globalConfig:{default:()=>({})}},setup(e){const{designItemName:A}=(0,r.inject)("dui-design-provide",{}),t=n=>{if(n.flexWidth)return{width:n.flexWidth+"%"}};return(n,o)=>((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.componentList,a=>((0,r.openBlock)(),(0,r.createBlock)(_o,{key:a.id,style:(0,r.normalizeStyle)(t(a.config)),"is-container":a.dragType!=="component","component-data":a},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(A)),{"component-data":a,"global-config":e.globalConfig},null,8,["component-data","global-config"]))]),_:2},1032,["style","is-container","component-data"]))),128))}}),No=Ku,ls=ft(_o,[So,xo,Do,No]);function mn(e){return(0,r.getCurrentScope)()?((0,r.onScopeDispose)(e),!0):!1}function qe(e){return typeof e=="function"?e():(0,r.unref)(e)}var Ru=typeof window<"u"&&typeof document<"u",Vu=e=>typeof e<"u",Pu=Object.prototype.toString,Gu=e=>Pu.call(e)==="[object Object]",zu=()=>{};function $u(e,A){function t(...n){return new Promise((o,a)=>{Promise.resolve(e(()=>A.apply(this,n),{fn:A,thisArg:this,args:n})).then(o).catch(a)})}return t}var cs=e=>e();function Xu(e=cs){const A=(0,r.ref)(!0);function t(){A.value=!1}function n(){A.value=!0}const o=(...a)=>{A.value&&e(...a)};return{isActive:(0,r.readonly)(A),pause:t,resume:n,eventFilter:o}}function us(e,A=!1,t="Timeout"){return new Promise((n,o)=>{setTimeout(A?()=>o(t):n,e)})}function Wu(e,A,t={}){const{eventFilter:n=cs,...o}=t;return(0,r.watch)(e,$u(n,A),o)}function zt(e,A,t={}){const{eventFilter:n,...o}=t,{eventFilter:a,pause:c,resume:d,isActive:h}=Xu(n);return{stop:Wu(e,A,{...o,eventFilter:a}),pause:c,resume:d,isActive:h}}function Yu(e,A={}){if(!(0,r.isRef)(e))return(0,r.toRefs)(e);const t=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const n in e.value)t[n]=(0,r.customRef)(()=>({get(){return e.value[n]},set(o){var a;if((a=qe(A.replaceRef))==null||a)if(Array.isArray(e.value)){const c=[...e.value];c[n]=o,e.value=c}else{const c={...e.value,[n]:o};Object.setPrototypeOf(c,Object.getPrototypeOf(e.value)),e.value=c}else e.value[n]=o}}));return t}function Lo(e,A=!1){function t(w,{flush:m="sync",deep:y=!1,timeout:v,throwOnTimeout:I}={}){let L=null;const k=[new Promise(V=>{L=(0,r.watch)(e,F=>{w(F)!==A&&(L?.(),V(F))},{flush:m,deep:y,immediate:!0})})];return v!=null&&k.push(us(v,I).then(()=>qe(e)).finally(()=>L?.())),Promise.race(k)}function n(w,m){if(!(0,r.isRef)(w))return t(F=>F===w,m);const{flush:y="sync",deep:v=!1,timeout:I,throwOnTimeout:L}=m??{};let k=null;const V=[new Promise(F=>{k=(0,r.watch)([e,w],([M,tA])=>{A!==(M===tA)&&(k?.(),F(M))},{flush:y,deep:v,immediate:!0})})];return I!=null&&V.push(us(I,L).then(()=>qe(e)).finally(()=>(k?.(),qe(e)))),Promise.race(V)}function o(w){return t(m=>!!m,w)}function a(w){return n(null,w)}function c(w){return n(void 0,w)}function d(w){return t(Number.isNaN,w)}function h(w,m){return t(y=>{const v=Array.from(y);return v.includes(w)||v.includes(qe(w))},m)}function g(w){return B(1,w)}function B(w=1,m){let y=-1;return t(()=>(y+=1,y>=w),m)}return Array.isArray(qe(e))?{toMatch:t,toContains:h,changed:g,changedTimes:B,get not(){return Lo(e,!A)}}:{toMatch:t,toBe:n,toBeTruthy:o,toBeNull:a,toBeNaN:d,toBeUndefined:c,changed:g,changedTimes:B,get not(){return Lo(e,!A)}}}function To(e){return Lo(e)}function Ju(e){var A;const t=qe(e);return(A=t?.$el)!=null?A:t}var ds=Ru?window:void 0;function fs(...e){let A,t,n,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,n,o]=e,A=ds):[A,t,n,o]=e,!A)return zu;Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);const a=[],c=()=>{a.forEach(B=>B()),a.length=0},d=(B,w,m,y)=>(B.addEventListener(w,m,y),()=>B.removeEventListener(w,m,y)),h=(0,r.watch)(()=>[Ju(A),qe(o)],([B,w])=>{if(c(),!B)return;const m=Gu(w)?{...w}:w;a.push(...t.flatMap(y=>n.map(v=>d(B,y,v,m))))},{immediate:!0,flush:"post"}),g=()=>{h(),c()};return mn(g),g}function Zu(e){return typeof e=="function"?e:typeof e=="string"?A=>A.key===e:Array.isArray(e)?A=>e.includes(A.key):()=>!0}function gs(...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:o=ds,eventName:a="keydown",passive:c=!1,dedupe:d=!1}=n,h=Zu(A);return fs(o,a,B=>{B.repeat&&qe(d)||h(B)&&t(B)},c)}function ju(e){return JSON.parse(JSON.stringify(e))}function ko(e,A,t,n={}){var o,a,c;const{clone:d=!1,passive:h=!1,eventName:g,deep:B=!1,defaultValue:w,shouldEmit:m}=n,y=(0,r.getCurrentInstance)(),v=t||y?.emit||((o=y?.$emit)==null?void 0:o.bind(y))||((c=(a=y?.proxy)==null?void 0:a.$emit)==null?void 0:c.bind(y?.proxy));let I=g;A||(A="modelValue"),I=I||`update:${A.toString()}`;const L=F=>d?typeof d=="function"?d(F):ju(F):F,k=()=>Vu(e[A])?L(e[A]):w,V=F=>{m?m(F)&&v(I,F):v(I,F)};if(h){const F=(0,r.ref)(k());let M=!1;return(0,r.watch)(()=>e[A],tA=>{M||(M=!0,F.value=L(tA),(0,r.nextTick)(()=>M=!1))}),(0,r.watch)(F,tA=>{!M&&(tA!==e[A]||B)&&V(tA)},{deep:B}),F}else return(0,r.computed)({get(){return k()},set(F){V(F)}})}var qu={value:()=>{}};function tr(){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 nr(t)}function nr(e){this._=e}function Ad(e,A){return e.trim().split(/^|\s+/).map(function(t){var n="",o=t.indexOf(".");if(o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),t&&!A.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}nr.prototype=tr.prototype={constructor:nr,on:function(e,A){var t=this._,n=Ad(e+"",t),o,a=-1,c=n.length;if(arguments.length<2){for(;++a<c;)if((o=(e=n[a]).type)&&(o=ed(t[o],e.name)))return o;return}if(A!=null&&typeof A!="function")throw new Error("invalid callback: "+A);for(;++a<c;)if(o=(e=n[a]).type)t[o]=hs(t[o],e.name,A);else if(A==null)for(o in t)t[o]=hs(t[o],e.name,null);return this},copy:function(){var e={},A=this._;for(var t in A)e[t]=A[t].slice();return new nr(e)},call:function(e,A){if((o=arguments.length-2)>0)for(var t=new Array(o),n=0,o,a;n<o;++n)t[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],n=0,o=a.length;n<o;++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],o=0,a=n.length;o<a;++o)n[o].value.apply(A,t)}};function ed(e,A){for(var t=0,n=e.length,o;t<n;++t)if((o=e[t]).name===A)return o.value}function hs(e,A,t){for(var n=0,o=e.length;n<o;++n)if(e[n].name===A){e[n]=qu,e=e.slice(0,n).concat(e.slice(n+1));break}return t!=null&&e.push({name:A,value:t}),e}var Mo="http://www.w3.org/1999/xhtml",Bs={svg:"http://www.w3.org/2000/svg",xhtml:Mo,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function rr(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 td(e){return function(){var A=this.ownerDocument,t=this.namespaceURI;return t===Mo&&A.documentElement.namespaceURI===Mo?A.createElement(e):A.createElementNS(t,e)}}function nd(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function ps(e){var A=rr(e);return(A.local?nd:td)(A)}function rd(){}function Oo(e){return e==null?rd:function(){return this.querySelector(e)}}function od(e){typeof e!="function"&&(e=Oo(e));for(var A=this._groups,t=A.length,n=new Array(t),o=0;o<t;++o)for(var a=A[o],c=a.length,d=n[o]=new Array(c),h,g,B=0;B<c;++B)(h=a[B])&&(g=e.call(h,h.__data__,B,a))&&("__data__"in h&&(g.__data__=h.__data__),d[B]=g);return new be(n,this._parents)}function id(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function sd(){return[]}function ms(e){return e==null?sd:function(){return this.querySelectorAll(e)}}function ad(e){return function(){return id(e.apply(this,arguments))}}function ld(e){typeof e=="function"?e=ad(e):e=ms(e);for(var A=this._groups,t=A.length,n=[],o=[],a=0;a<t;++a)for(var c=A[a],d=c.length,h,g=0;g<d;++g)(h=c[g])&&(n.push(e.call(h,h.__data__,g,c)),o.push(h));return new be(n,o)}function ws(e){return function(){return this.matches(e)}}function Cs(e){return function(A){return A.matches(e)}}var cd=Array.prototype.find;function ud(e){return function(){return cd.call(this.children,e)}}function dd(){return this.firstElementChild}function fd(e){return this.select(e==null?dd:ud(typeof e=="function"?e:Cs(e)))}var gd=Array.prototype.filter;function hd(){return Array.from(this.children)}function Bd(e){return function(){return gd.call(this.children,e)}}function pd(e){return this.selectAll(e==null?hd:Bd(typeof e=="function"?e:Cs(e)))}function md(e){typeof e!="function"&&(e=ws(e));for(var A=this._groups,t=A.length,n=new Array(t),o=0;o<t;++o)for(var a=A[o],c=a.length,d=n[o]=[],h,g=0;g<c;++g)(h=a[g])&&e.call(h,h.__data__,g,a)&&d.push(h);return new be(n,this._parents)}function ys(e){return new Array(e.length)}function wd(){return new be(this._enter||this._groups.map(ys),this._parents)}function or(e,A){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=A}or.prototype={constructor:or,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 Cd(e){return function(){return e}}function yd(e,A,t,n,o,a){for(var c=0,d,h=A.length,g=a.length;c<g;++c)(d=A[c])?(d.__data__=a[c],n[c]=d):t[c]=new or(e,a[c]);for(;c<h;++c)(d=A[c])&&(o[c]=d)}function vd(e,A,t,n,o,a,c){var d,h,g=new Map,B=A.length,w=a.length,m=new Array(B),y;for(d=0;d<B;++d)(h=A[d])&&(m[d]=y=c.call(h,h.__data__,d,A)+"",g.has(y)?o[d]=h:g.set(y,h));for(d=0;d<w;++d)y=c.call(e,a[d],d,a)+"",(h=g.get(y))?(n[d]=h,h.__data__=a[d],g.delete(y)):t[d]=new or(e,a[d]);for(d=0;d<B;++d)(h=A[d])&&g.get(m[d])===h&&(o[d]=h)}function Qd(e){return e.__data__}function Ed(e,A){if(!arguments.length)return Array.from(this,Qd);var t=A?vd:yd,n=this._parents,o=this._groups;typeof e!="function"&&(e=Cd(e));for(var a=o.length,c=new Array(a),d=new Array(a),h=new Array(a),g=0;g<a;++g){var B=n[g],w=o[g],m=w.length,y=Fd(e.call(B,B&&B.__data__,g,n)),v=y.length,I=d[g]=new Array(v),L=c[g]=new Array(v);t(B,w,I,L,h[g]=new Array(m),y,A);for(var k=0,V=0,F,M;k<v;++k)if(F=I[k]){for(k>=V&&(V=k+1);!(M=L[V])&&++V<v;);F._next=M||null}}return c=new be(c,n),c._enter=d,c._exit=h,c}function Fd(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Ud(){return new be(this._exit||this._groups.map(ys),this._parents)}function bd(e,A,t){var n=this.enter(),o=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),A!=null&&(o=A(o),o&&(o=o.selection())),t==null?a.remove():t(a),n&&o?n.merge(o).order():o}function Id(e){for(var A=e.selection?e.selection():e,t=this._groups,n=A._groups,o=t.length,a=n.length,c=Math.min(o,a),d=new Array(o),h=0;h<c;++h)for(var g=t[h],B=n[h],w=g.length,m=d[h]=new Array(w),y,v=0;v<w;++v)(y=g[v]||B[v])&&(m[v]=y);for(;h<o;++h)d[h]=t[h];return new be(d,this._parents)}function Hd(){for(var e=this._groups,A=-1,t=e.length;++A<t;)for(var n=e[A],o=n.length-1,a=n[o],c;--o>=0;)(c=n[o])&&(a&&c.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(c,a),a=c);return this}function _d(e){e||(e=Sd);function A(w,m){return w&&m?e(w.__data__,m.__data__):!w-!m}for(var t=this._groups,n=t.length,o=new Array(n),a=0;a<n;++a){for(var c=t[a],d=c.length,h=o[a]=new Array(d),g,B=0;B<d;++B)(g=c[B])&&(h[B]=g);h.sort(A)}return new be(o,this._parents).order()}function Sd(e,A){return e<A?-1:e>A?1:e>=A?0:NaN}function xd(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Dd(){return Array.from(this)}function Nd(){for(var e=this._groups,A=0,t=e.length;A<t;++A)for(var n=e[A],o=0,a=n.length;o<a;++o){var c=n[o];if(c)return c}return null}function Ld(){let e=0;for(const A of this)++e;return e}function Td(){return!this.node()}function kd(e){for(var A=this._groups,t=0,n=A.length;t<n;++t)for(var o=A[t],a=0,c=o.length,d;a<c;++a)(d=o[a])&&e.call(d,d.__data__,a,o);return this}function Md(e){return function(){this.removeAttribute(e)}}function Od(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Kd(e,A){return function(){this.setAttribute(e,A)}}function Rd(e,A){return function(){this.setAttributeNS(e.space,e.local,A)}}function Vd(e,A){return function(){var t=A.apply(this,arguments);t==null?this.removeAttribute(e):this.setAttribute(e,t)}}function Pd(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 Gd(e,A){var t=rr(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?Od:Md:typeof A=="function"?t.local?Pd:Vd:t.local?Rd:Kd)(t,A))}function vs(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function zd(e){return function(){this.style.removeProperty(e)}}function $d(e,A,t){return function(){this.style.setProperty(e,A,t)}}function Xd(e,A,t){return function(){var n=A.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,t)}}function Wd(e,A,t){return arguments.length>1?this.each((A==null?zd:typeof A=="function"?Xd:$d)(e,A,t??"")):$t(this.node(),e)}function $t(e,A){return e.style.getPropertyValue(A)||vs(e).getComputedStyle(e,null).getPropertyValue(A)}function Yd(e){return function(){delete this[e]}}function Jd(e,A){return function(){this[e]=A}}function Zd(e,A){return function(){var t=A.apply(this,arguments);t==null?delete this[e]:this[e]=t}}function jd(e,A){return arguments.length>1?this.each((A==null?Yd:typeof A=="function"?Zd:Jd)(e,A)):this.node()[e]}function Qs(e){return e.trim().split(/^|\s+/)}function Ko(e){return e.classList||new Es(e)}function Es(e){this._node=e,this._names=Qs(e.getAttribute("class")||"")}Es.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 Fs(e,A){for(var t=Ko(e),n=-1,o=A.length;++n<o;)t.add(A[n])}function Us(e,A){for(var t=Ko(e),n=-1,o=A.length;++n<o;)t.remove(A[n])}function qd(e){return function(){Fs(this,e)}}function Af(e){return function(){Us(this,e)}}function ef(e,A){return function(){(A.apply(this,arguments)?Fs:Us)(this,e)}}function tf(e,A){var t=Qs(e+"");if(arguments.length<2){for(var n=Ko(this.node()),o=-1,a=t.length;++o<a;)if(!n.contains(t[o]))return!1;return!0}return this.each((typeof A=="function"?ef:A?qd:Af)(t,A))}function nf(){this.textContent=""}function rf(e){return function(){this.textContent=e}}function of(e){return function(){var A=e.apply(this,arguments);this.textContent=A??""}}function sf(e){return arguments.length?this.each(e==null?nf:(typeof e=="function"?of:rf)(e)):this.node().textContent}function af(){this.innerHTML=""}function lf(e){return function(){this.innerHTML=e}}function cf(e){return function(){var A=e.apply(this,arguments);this.innerHTML=A??""}}function uf(e){return arguments.length?this.each(e==null?af:(typeof e=="function"?cf:lf)(e)):this.node().innerHTML}function df(){this.nextSibling&&this.parentNode.appendChild(this)}function ff(){return this.each(df)}function gf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function hf(){return this.each(gf)}function Bf(e){var A=typeof e=="function"?e:ps(e);return this.select(function(){return this.appendChild(A.apply(this,arguments))})}function pf(){return null}function mf(e,A){var t=typeof e=="function"?e:ps(e),n=A==null?pf:typeof A=="function"?A:Oo(A);return this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})}function wf(){var e=this.parentNode;e&&e.removeChild(this)}function Cf(){return this.each(wf)}function yf(){var e=this.cloneNode(!1),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function vf(){var e=this.cloneNode(!0),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function Qf(e){return this.select(e?vf:yf)}function Ef(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Ff(e){return function(A){e.call(this,A,this.__data__)}}function Uf(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 bf(e){return function(){var A=this.__on;if(A){for(var t=0,n=-1,o=A.length,a;t<o;++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 If(e,A,t){return function(){var n=this.__on,o,a=Ff(A);if(n){for(var c=0,d=n.length;c<d;++c)if((o=n[c]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=a,o.options=t),o.value=A;return}}this.addEventListener(e.type,a,t),o={type:e.type,name:e.name,value:A,listener:a,options:t},n?n.push(o):this.__on=[o]}}function Hf(e,A,t){var n=Uf(e+""),o,a=n.length,c;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,g=d.length,B;h<g;++h)for(o=0,B=d[h];o<a;++o)if((c=n[o]).type===B.type&&c.name===B.name)return B.value}return}for(d=A?If:bf,o=0;o<a;++o)this.each(d(n[o],A,t));return this}function bs(e,A,t){var n=vs(e),o=n.CustomEvent;typeof o=="function"?o=new o(A,t):(o=n.document.createEvent("Event"),t?(o.initEvent(A,t.bubbles,t.cancelable),o.detail=t.detail):o.initEvent(A,!1,!1)),e.dispatchEvent(o)}function _f(e,A){return function(){return bs(this,e,A)}}function Sf(e,A){return function(){return bs(this,e,A.apply(this,arguments))}}function xf(e,A){return this.each((typeof A=="function"?Sf:_f)(e,A))}function*Df(){for(var e=this._groups,A=0,t=e.length;A<t;++A)for(var n=e[A],o=0,a=n.length,c;o<a;++o)(c=n[o])&&(yield c)}var Is=[null];function be(e,A){this._groups=e,this._parents=A}function wn(){return new be([[document.documentElement]],Is)}function Nf(){return this}be.prototype=wn.prototype={constructor:be,select:od,selectAll:ld,selectChild:fd,selectChildren:pd,filter:md,data:Ed,enter:wd,exit:Ud,join:bd,merge:Id,selection:Nf,order:Hd,sort:_d,call:xd,nodes:Dd,node:Nd,size:Ld,empty:Td,each:kd,attr:Gd,style:Wd,property:jd,classed:tf,text:sf,html:uf,raise:ff,lower:hf,append:Bf,insert:mf,remove:Cf,clone:Qf,datum:Ef,on:Hf,dispatch:xf,[Symbol.iterator]:Df};function ke(e){return typeof e=="string"?new be([[document.querySelector(e)]],[document.documentElement]):new be([[e]],Is)}function Lf(e){let A;for(;A=e.sourceEvent;)e=A;return e}function Ge(e,A){if(e=Lf(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 o=A.getBoundingClientRect();return[e.clientX-o.left-A.clientLeft,e.clientY-o.top-A.clientTop]}}return[e.pageX,e.pageY]}var Tf={passive:!1},Cn={capture:!0,passive:!1};function Ro(e){e.stopImmediatePropagation()}function Xt(e){e.preventDefault(),e.stopImmediatePropagation()}function Hs(e){var A=e.document.documentElement,t=ke(e).on("dragstart.drag",Xt,Cn);"onselectstart"in A?t.on("selectstart.drag",Xt,Cn):(A.__noselect=A.style.MozUserSelect,A.style.MozUserSelect="none")}function _s(e,A){var t=e.document.documentElement,n=ke(e).on("dragstart.drag",null);A&&(n.on("click.drag",Xt,Cn),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 ir=e=>()=>e;function Vo(e,{sourceEvent:A,subject:t,target:n,identifier:o,active:a,x:c,y:d,dx:h,dy:g,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:o,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:c,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:g,enumerable:!0,configurable:!0},_:{value:B}})}Vo.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function kf(e){return!e.ctrlKey&&!e.button}function Mf(){return this.parentNode}function Of(e,A){return A??{x:e.x,y:e.y}}function Kf(){return navigator.maxTouchPoints||"ontouchstart"in this}function Rf(){var e=kf,A=Mf,t=Of,n=Kf,o={},a=tr("start","drag","end"),c=0,d,h,g,B,w=0;function m(M){M.on("mousedown.drag",y).filter(n).on("touchstart.drag",L).on("touchmove.drag",k,Tf).on("touchend.drag touchcancel.drag",V).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(M,tA){if(!(B||!e.call(this,M,tA))){var W=F(this,A.call(this,M,tA),M,tA,"mouse");W&&(ke(M.view).on("mousemove.drag",v,Cn).on("mouseup.drag",I,Cn),Hs(M.view),Ro(M),g=!1,d=M.clientX,h=M.clientY,W("start",M))}}function v(M){if(Xt(M),!g){var tA=M.clientX-d,W=M.clientY-h;g=tA*tA+W*W>w}o.mouse("drag",M)}function I(M){ke(M.view).on("mousemove.drag mouseup.drag",null),_s(M.view,g),Xt(M),o.mouse("end",M)}function L(M,tA){if(e.call(this,M,tA)){var W=M.changedTouches,aA=A.call(this,M,tA),dA=W.length,rA,oA;for(rA=0;rA<dA;++rA)(oA=F(this,aA,M,tA,W[rA].identifier,W[rA]))&&(Ro(M),oA("start",M,W[rA]))}}function k(M){var tA=M.changedTouches,W=tA.length,aA,dA;for(aA=0;aA<W;++aA)(dA=o[tA[aA].identifier])&&(Xt(M),dA("drag",M,tA[aA]))}function V(M){var tA=M.changedTouches,W=tA.length,aA,dA;for(B&&clearTimeout(B),B=setTimeout(function(){B=null},500),aA=0;aA<W;++aA)(dA=o[tA[aA].identifier])&&(Ro(M),dA("end",M,tA[aA]))}function F(M,tA,W,aA,dA,rA){var oA=a.copy(),AA=Ge(rA||W,tA),O,lA,_;if((_=t.call(M,new Vo("beforestart",{sourceEvent:W,target:m,identifier:dA,active:c,x:AA[0],y:AA[1],dx:0,dy:0,dispatch:oA}),aA))!=null)return O=_.x-AA[0]||0,lA=_.y-AA[1]||0,function Z(U,x,G){var R=AA,$;switch(U){case"start":o[dA]=Z,$=c++;break;case"end":delete o[dA],--c;case"drag":AA=Ge(G||x,tA),$=c;break}oA.call(U,M,new Vo(U,{sourceEvent:x,subject:_,target:m,identifier:dA,active:$,x:AA[0]+O,y:AA[1]+lA,dx:AA[0]-R[0],dy:AA[1]-R[1],dispatch:oA}),aA)}}return m.filter=function(M){return arguments.length?(e=typeof M=="function"?M:ir(!!M),m):e},m.container=function(M){return arguments.length?(A=typeof M=="function"?M:ir(M),m):A},m.subject=function(M){return arguments.length?(t=typeof M=="function"?M:ir(M),m):t},m.touchable=function(M){return arguments.length?(n=typeof M=="function"?M:ir(!!M),m):n},m.on=function(){var M=a.on.apply(a,arguments);return M===a?m:M},m.clickDistance=function(M){return arguments.length?(w=(M=+M)*M,m):Math.sqrt(w)},m}function Po(e,A,t){e.prototype=A.prototype=t,t.constructor=e}function Ss(e,A){var t=Object.create(e.prototype);for(var n in A)t[n]=A[n];return t}function yn(){}var vn=.7,sr=1/vn,Wt="\\s*([+-]?\\d+)\\s*",Qn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ze="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vf=/^#([0-9a-f]{3,8})$/,Pf=new RegExp(`^rgb\\(${Wt},${Wt},${Wt}\\)$`),Gf=new RegExp(`^rgb\\(${ze},${ze},${ze}\\)$`),zf=new RegExp(`^rgba\\(${Wt},${Wt},${Wt},${Qn}\\)$`),$f=new RegExp(`^rgba\\(${ze},${ze},${ze},${Qn}\\)$`),Xf=new RegExp(`^hsl\\(${Qn},${ze},${ze}\\)$`),Wf=new RegExp(`^hsla\\(${Qn},${ze},${ze},${Qn}\\)$`),xs={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};Po(yn,Ht,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ds,formatHex:Ds,formatHex8:Yf,formatHsl:Jf,formatRgb:Ns,toString:Ns});function Ds(){return this.rgb().formatHex()}function Yf(){return this.rgb().formatHex8()}function Jf(){return Os(this).formatHsl()}function Ns(){return this.rgb().formatRgb()}function Ht(e){var A,t;return e=(e+"").trim().toLowerCase(),(A=Vf.exec(e))?(t=A[1].length,A=parseInt(A[1],16),t===6?Ls(A):t===3?new Ce(A>>8&15|A>>4&240,A>>4&15|A&240,(A&15)<<4|A&15,1):t===8?ar(A>>24&255,A>>16&255,A>>8&255,(A&255)/255):t===4?ar(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=Pf.exec(e))?new Ce(A[1],A[2],A[3],1):(A=Gf.exec(e))?new Ce(A[1]*255/100,A[2]*255/100,A[3]*255/100,1):(A=zf.exec(e))?ar(A[1],A[2],A[3],A[4]):(A=$f.exec(e))?ar(A[1]*255/100,A[2]*255/100,A[3]*255/100,A[4]):(A=Xf.exec(e))?Ms(A[1],A[2]/100,A[3]/100,1):(A=Wf.exec(e))?Ms(A[1],A[2]/100,A[3]/100,A[4]):xs.hasOwnProperty(e)?Ls(xs[e]):e==="transparent"?new Ce(NaN,NaN,NaN,0):null}function Ls(e){return new Ce(e>>16&255,e>>8&255,e&255,1)}function ar(e,A,t,n){return n<=0&&(e=A=t=NaN),new Ce(e,A,t,n)}function Zf(e){return e instanceof yn||(e=Ht(e)),e?(e=e.rgb(),new Ce(e.r,e.g,e.b,e.opacity)):new Ce}function Go(e,A,t,n){return arguments.length===1?Zf(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}Po(Ce,Go,Ss(yn,{brighter(e){return e=e==null?sr:Math.pow(sr,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?vn:Math.pow(vn,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ce(_t(this.r),_t(this.g),_t(this.b),lr(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:Ts,formatHex:Ts,formatHex8:jf,formatRgb:ks,toString:ks}));function Ts(){return`#${St(this.r)}${St(this.g)}${St(this.b)}`}function jf(){return`#${St(this.r)}${St(this.g)}${St(this.b)}${St((isNaN(this.opacity)?1:this.opacity)*255)}`}function ks(){const e=lr(this.opacity);return`${e===1?"rgb(":"rgba("}${_t(this.r)}, ${_t(this.g)}, ${_t(this.b)}${e===1?")":`, ${e})`}`}function lr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _t(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function St(e){return e=_t(e),(e<16?"0":"")+e.toString(16)}function Ms(e,A,t,n){return n<=0?e=A=t=NaN:t<=0||t>=1?e=A=NaN:A<=0&&(e=NaN),new Me(e,A,t,n)}function Os(e){if(e instanceof Me)return new Me(e.h,e.s,e.l,e.opacity);if(e instanceof yn||(e=Ht(e)),!e)return new Me;if(e instanceof Me)return e;e=e.rgb();var A=e.r/255,t=e.g/255,n=e.b/255,o=Math.min(A,t,n),a=Math.max(A,t,n),c=NaN,d=a-o,h=(a+o)/2;return d?(A===a?c=(t-n)/d+(t<n)*6:t===a?c=(n-A)/d+2:c=(A-t)/d+4,d/=h<.5?a+o:2-a-o,c*=60):d=h>0&&h<1?0:c,new Me(c,d,h,e.opacity)}function qf(e,A,t,n){return arguments.length===1?Os(e):new Me(e,A,t,n??1)}function Me(e,A,t,n){this.h=+e,this.s=+A,this.l=+t,this.opacity=+n}Po(Me,qf,Ss(yn,{brighter(e){return e=e==null?sr:Math.pow(sr,e),new Me(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?vn:Math.pow(vn,e),new Me(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,o=2*t-n;return new Ce(zo(e>=240?e-240:e+120,o,n),zo(e,o,n),zo(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Me(Ks(this.h),cr(this.s),cr(this.l),lr(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=lr(this.opacity);return`${e===1?"hsl(":"hsla("}${Ks(this.h)}, ${cr(this.s)*100}%, ${cr(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ks(e){return e=(e||0)%360,e<0?e+360:e}function cr(e){return Math.max(0,Math.min(1,e||0))}function zo(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 $o=e=>()=>e;function Ag(e,A){return function(t){return e+t*A}}function eg(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 tg(e){return(e=+e)==1?Rs:function(A,t){return t-A?eg(A,t,e):$o(isNaN(A)?t:A)}}function Rs(e,A){var t=A-e;return t?Ag(e,t):$o(isNaN(e)?A:e)}var ur=(function e(A){var t=tg(A);function n(o,a){var c=t((o=Go(o)).r,(a=Go(a)).r),d=t(o.g,a.g),h=t(o.b,a.b),g=Rs(o.opacity,a.opacity);return function(B){return o.r=c(B),o.g=d(B),o.b=h(B),o.opacity=g(B),o+""}}return n.gamma=e,n})(1);function ng(e,A){A||(A=[]);var t=e?Math.min(A.length,e.length):0,n=A.slice(),o;return function(a){for(o=0;o<t;++o)n[o]=e[o]*(1-a)+A[o]*a;return n}}function rg(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function og(e,A){var t=A?A.length:0,n=e?Math.min(t,e.length):0,o=new Array(n),a=new Array(t),c;for(c=0;c<n;++c)o[c]=En(e[c],A[c]);for(;c<t;++c)a[c]=A[c];return function(d){for(c=0;c<n;++c)a[c]=o[c](d);return a}}function ig(e,A){var t=new Date;return e=+e,A=+A,function(n){return t.setTime(e*(1-n)+A*n),t}}function $e(e,A){return e=+e,A=+A,function(t){return e*(1-t)+A*t}}function sg(e,A){var t={},n={},o;(e===null||typeof e!="object")&&(e={}),(A===null||typeof A!="object")&&(A={});for(o in A)o in e?t[o]=En(e[o],A[o]):n[o]=A[o];return function(a){for(o in t)n[o]=t[o](a);return n}}var Xo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wo=new RegExp(Xo.source,"g");function ag(e){return function(){return e}}function lg(e){return function(A){return e(A)+""}}function Vs(e,A){var t=Xo.lastIndex=Wo.lastIndex=0,n,o,a,c=-1,d=[],h=[];for(e=e+"",A=A+"";(n=Xo.exec(e))&&(o=Wo.exec(A));)(a=o.index)>t&&(a=A.slice(t,a),d[c]?d[c]+=a:d[++c]=a),(n=n[0])===(o=o[0])?d[c]?d[c]+=o:d[++c]=o:(d[++c]=null,h.push({i:c,x:$e(n,o)})),t=Wo.lastIndex;return t<A.length&&(a=A.slice(t),d[c]?d[c]+=a:d[++c]=a),d.length<2?h[0]?lg(h[0].x):ag(A):(A=h.length,function(g){for(var B=0,w;B<A;++B)d[(w=h[B]).i]=w.x(g);return d.join("")})}function En(e,A){var t=typeof A,n;return A==null||t==="boolean"?$o(A):(t==="number"?$e:t==="string"?(n=Ht(A))?(A=n,ur):Vs:A instanceof Ht?ur:A instanceof Date?ig:rg(A)?ng:Array.isArray(A)?og:typeof A.valueOf!="function"&&typeof A.toString!="function"||isNaN(A)?sg:$e)(e,A)}var Ps=180/Math.PI,Yo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Gs(e,A,t,n,o,a){var c,d,h;return(c=Math.sqrt(e*e+A*A))&&(e/=c,A/=c),(h=e*t+A*n)&&(t-=e*h,n-=A*h),(d=Math.sqrt(t*t+n*n))&&(t/=d,n/=d,h/=d),e*n<A*t&&(e=-e,A=-A,h=-h,c=-c),{translateX:o,translateY:a,rotate:Math.atan2(A,e)*Ps,skewX:Math.atan(h)*Ps,scaleX:c,scaleY:d}}var dr;function cg(e){const A=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return A.isIdentity?Yo:Gs(A.a,A.b,A.c,A.d,A.e,A.f)}function ug(e){return e==null||(dr||(dr=document.createElementNS("http://www.w3.org/2000/svg","g")),dr.setAttribute("transform",e),!(e=dr.transform.baseVal.consolidate()))?Yo:(e=e.matrix,Gs(e.a,e.b,e.c,e.d,e.e,e.f))}function zs(e,A,t,n){function o(g){return g.length?g.pop()+" ":""}function a(g,B,w,m,y,v){if(g!==w||B!==m){var I=y.push("translate(",null,A,null,t);v.push({i:I-4,x:$e(g,w)},{i:I-2,x:$e(B,m)})}else(w||m)&&y.push("translate("+w+A+m+t)}function c(g,B,w,m){g!==B?(g-B>180?B+=360:B-g>180&&(g+=360),m.push({i:w.push(o(w)+"rotate(",null,n)-2,x:$e(g,B)})):B&&w.push(o(w)+"rotate("+B+n)}function d(g,B,w,m){g!==B?m.push({i:w.push(o(w)+"skewX(",null,n)-2,x:$e(g,B)}):B&&w.push(o(w)+"skewX("+B+n)}function h(g,B,w,m,y,v){if(g!==w||B!==m){var I=y.push(o(y)+"scale(",null,",",null,")");v.push({i:I-4,x:$e(g,w)},{i:I-2,x:$e(B,m)})}else(w!==1||m!==1)&&y.push(o(y)+"scale("+w+","+m+")")}return function(g,B){var w=[],m=[];return g=e(g),B=e(B),a(g.translateX,g.translateY,B.translateX,B.translateY,w,m),c(g.rotate,B.rotate,w,m),d(g.skewX,B.skewX,w,m),h(g.scaleX,g.scaleY,B.scaleX,B.scaleY,w,m),g=B=null,function(y){for(var v=-1,I=m.length,L;++v<I;)w[(L=m[v]).i]=L.x(y);return w.join("")}}}var dg=zs(cg,"px, ","px)","deg)"),fg=zs(ug,", ",")",")"),gg=1e-12;function $s(e){return((e=Math.exp(e))+1/e)/2}function hg(e){return((e=Math.exp(e))-1/e)/2}function Bg(e){return((e=Math.exp(2*e))-1)/(e+1)}var fr=(function e(A,t,n){function o(a,c){var d=a[0],h=a[1],g=a[2],B=c[0],w=c[1],m=c[2],y=B-d,v=w-h,I=y*y+v*v,L,k;if(I<gg)k=Math.log(m/g)/A,L=function(W){return[d+W*y,h+W*v,g*Math.exp(A*W*k)]};else{var V=Math.sqrt(I),F=(m*m-g*g+n*I)/(2*g*t*V),M=(m*m-g*g-n*I)/(2*m*t*V),tA=Math.log(Math.sqrt(F*F+1)-F);k=(Math.log(Math.sqrt(M*M+1)-M)-tA)/A,L=function(W){var aA=W*k,dA=$s(tA),rA=g/(t*V)*(dA*Bg(A*aA+tA)-hg(tA));return[d+rA*y,h+rA*v,g*dA/$s(A*aA+tA)]}}return L.duration=k*1e3*A/Math.SQRT2,L}return o.rho=function(a){var c=Math.max(.001,+a),d=c*c;return e(c,d,d*d)},o})(Math.SQRT2,2,4),Yt=0,Fn=0,Un=0,Xs=1e3,gr,bn,hr=0,xt=0,Br=0,In=typeof performance=="object"&&performance.now?performance:Date,Ws=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Jo(){return xt||(Ws(pg),xt=In.now()+Br)}function pg(){xt=0}function pr(){this._call=this._time=this._next=null}pr.prototype=Ys.prototype={constructor:pr,restart:function(e,A,t){if(typeof e!="function")throw new TypeError("callback is not a function");t=(t==null?Jo():+t)+(A==null?0:+A),!this._next&&bn!==this&&(bn?bn._next=this:gr=this,bn=this),this._call=e,this._time=t,Zo()},stop:function(){this._call&&(this._call=null,this._time=1/0,Zo())}};function Ys(e,A,t){var n=new pr;return n.restart(e,A,t),n}function mg(){Jo(),++Yt;for(var e=gr,A;e;)(A=xt-e._time)>=0&&e._call.call(void 0,A),e=e._next;--Yt}function Js(){xt=(hr=In.now())+Br,Yt=Fn=0;try{mg()}finally{Yt=0,Cg(),xt=0}}function wg(){var e=In.now(),A=e-hr;A>Xs&&(Br-=A,hr=e)}function Cg(){for(var e,A=gr,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:gr=t);bn=e,Zo(n)}function Zo(e){Yt||(Fn&&(Fn=clearTimeout(Fn)),e-xt>24?(e<1/0&&(Fn=setTimeout(Js,e-In.now()-Br)),Un&&(Un=clearInterval(Un))):(Un||(hr=In.now(),Un=setInterval(wg,Xs)),Yt=1,Ws(Js)))}function Zs(e,A,t){var n=new pr;return A=A==null?0:+A,n.restart(o=>{n.stop(),e(o+A)},A,t),n}var yg=tr("start","end","cancel","interrupt"),vg=[],js=0,qs=1,jo=2,mr=3,Aa=4,qo=5,wr=6;function Cr(e,A,t,n,o,a){var c=e.__transition;if(!c)e.__transition={};else if(t in c)return;Qg(e,t,{name:A,index:n,group:o,on:yg,tween:vg,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:js})}function Ai(e,A){var t=Oe(e,A);if(t.state>js)throw new Error("too late; already scheduled");return t}function Xe(e,A){var t=Oe(e,A);if(t.state>mr)throw new Error("too late; already running");return t}function Oe(e,A){var t=e.__transition;if(!t||!(t=t[A]))throw new Error("transition not found");return t}function Qg(e,A,t){var n=e.__transition,o;n[A]=t,t.timer=Ys(a,0,t.time);function a(g){t.state=qs,t.timer.restart(c,t.delay,t.time),t.delay<=g&&c(g-t.delay)}function c(g){var B,w,m,y;if(t.state!==qs)return h();for(B in n)if(y=n[B],y.name===t.name){if(y.state===mr)return Zs(c);y.state===Aa?(y.state=wr,y.timer.stop(),y.on.call("interrupt",e,e.__data__,y.index,y.group),delete n[B]):+B<A&&(y.state=wr,y.timer.stop(),y.on.call("cancel",e,e.__data__,y.index,y.group),delete n[B])}if(Zs(function(){t.state===mr&&(t.state=Aa,t.timer.restart(d,t.delay,t.time),d(g))}),t.state=jo,t.on.call("start",e,e.__data__,t.index,t.group),t.state===jo){for(t.state=mr,o=new Array(m=t.tween.length),B=0,w=-1;B<m;++B)(y=t.tween[B].value.call(e,e.__data__,t.index,t.group))&&(o[++w]=y);o.length=w+1}}function d(g){for(var B=g<t.duration?t.ease.call(null,g/t.duration):(t.timer.restart(h),t.state=qo,1),w=-1,m=o.length;++w<m;)o[w].call(e,B);t.state===qo&&(t.on.call("end",e,e.__data__,t.index,t.group),h())}function h(){t.state=wr,t.timer.stop(),delete n[A];for(var g in n)return;delete e.__transition}}function yr(e,A){var t=e.__transition,n,o,a=!0,c;if(t){A=A==null?null:A+"";for(c in t){if((n=t[c]).name!==A){a=!1;continue}o=n.state>jo&&n.state<qo,n.state=wr,n.timer.stop(),n.on.call(o?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete t[c]}a&&delete e.__transition}}function Eg(e){return this.each(function(){yr(this,e)})}function Fg(e,A){var t,n;return function(){var o=Xe(this,e),a=o.tween;if(a!==t){n=t=a;for(var c=0,d=n.length;c<d;++c)if(n[c].name===A){n=n.slice(),n.splice(c,1);break}}o.tween=n}}function Ug(e,A,t){var n,o;if(typeof t!="function")throw new Error;return function(){var a=Xe(this,e),c=a.tween;if(c!==n){o=(n=c).slice();for(var d={name:A,value:t},h=0,g=o.length;h<g;++h)if(o[h].name===A){o[h]=d;break}h===g&&o.push(d)}a.tween=o}}function bg(e,A){var t=this._id;if(e+="",arguments.length<2){for(var n=Oe(this.node(),t).tween,o=0,a=n.length,c;o<a;++o)if((c=n[o]).name===e)return c.value;return null}return this.each((A==null?Fg:Ug)(t,e,A))}function ei(e,A,t){var n=e._id;return e.each(function(){var o=Xe(this,n);(o.value||(o.value={}))[A]=t.apply(this,arguments)}),function(o){return Oe(o,n).value[A]}}function ea(e,A){var t;return(typeof A=="number"?$e:A instanceof Ht?ur:(t=Ht(A))?(A=t,ur):Vs)(e,A)}function Ig(e){return function(){this.removeAttribute(e)}}function Hg(e){return function(){this.removeAttributeNS(e.space,e.local)}}function _g(e,A,t){var n,o=t+"",a;return function(){var c=this.getAttribute(e);return c===o?null:c===n?a:a=A(n=c,t)}}function Sg(e,A,t){var n,o=t+"",a;return function(){var c=this.getAttributeNS(e.space,e.local);return c===o?null:c===n?a:a=A(n=c,t)}}function xg(e,A,t){var n,o,a;return function(){var c,d=t(this),h;return d==null?void this.removeAttribute(e):(c=this.getAttribute(e),h=d+"",c===h?null:c===n&&h===o?a:(o=h,a=A(n=c,d)))}}function Dg(e,A,t){var n,o,a;return function(){var c,d=t(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(c=this.getAttributeNS(e.space,e.local),h=d+"",c===h?null:c===n&&h===o?a:(o=h,a=A(n=c,d)))}}function Ng(e,A){var t=rr(e),n=t==="transform"?fg:ea;return this.attrTween(e,typeof A=="function"?(t.local?Dg:xg)(t,n,ei(this,"attr."+e,A)):A==null?(t.local?Hg:Ig)(t):(t.local?Sg:_g)(t,n,A))}function Lg(e,A){return function(t){this.setAttribute(e,A.call(this,t))}}function Tg(e,A){return function(t){this.setAttributeNS(e.space,e.local,A.call(this,t))}}function kg(e,A){var t,n;function o(){var a=A.apply(this,arguments);return a!==n&&(t=(n=a)&&Tg(e,a)),t}return o._value=A,o}function Mg(e,A){var t,n;function o(){var a=A.apply(this,arguments);return a!==n&&(t=(n=a)&&Lg(e,a)),t}return o._value=A,o}function Og(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=rr(e);return this.tween(t,(n.local?kg:Mg)(n,A))}function Kg(e,A){return function(){Ai(this,e).delay=+A.apply(this,arguments)}}function Rg(e,A){return A=+A,function(){Ai(this,e).delay=A}}function Vg(e){var A=this._id;return arguments.length?this.each((typeof e=="function"?Kg:Rg)(A,e)):Oe(this.node(),A).delay}function Pg(e,A){return function(){Xe(this,e).duration=+A.apply(this,arguments)}}function Gg(e,A){return A=+A,function(){Xe(this,e).duration=A}}function zg(e){var A=this._id;return arguments.length?this.each((typeof e=="function"?Pg:Gg)(A,e)):Oe(this.node(),A).duration}function $g(e,A){if(typeof A!="function")throw new Error;return function(){Xe(this,e).ease=A}}function Xg(e){var A=this._id;return arguments.length?this.each($g(A,e)):Oe(this.node(),A).ease}function Wg(e,A){return function(){var t=A.apply(this,arguments);if(typeof t!="function")throw new Error;Xe(this,e).ease=t}}function Yg(e){if(typeof e!="function")throw new Error;return this.each(Wg(this._id,e))}function Jg(e){typeof e!="function"&&(e=ws(e));for(var A=this._groups,t=A.length,n=new Array(t),o=0;o<t;++o)for(var a=A[o],c=a.length,d=n[o]=[],h,g=0;g<c;++g)(h=a[g])&&e.call(h,h.__data__,g,a)&&d.push(h);return new At(n,this._parents,this._name,this._id)}function Zg(e){if(e._id!==this._id)throw new Error;for(var A=this._groups,t=e._groups,n=A.length,o=t.length,a=Math.min(n,o),c=new Array(n),d=0;d<a;++d)for(var h=A[d],g=t[d],B=h.length,w=c[d]=new Array(B),m,y=0;y<B;++y)(m=h[y]||g[y])&&(w[y]=m);for(;d<n;++d)c[d]=A[d];return new At(c,this._parents,this._name,this._id)}function jg(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 qg(e,A,t){var n,o,a=jg(A)?Ai:Xe;return function(){var c=a(this,e),d=c.on;d!==n&&(o=(n=d).copy()).on(A,t),c.on=o}}function Ah(e,A){var t=this._id;return arguments.length<2?Oe(this.node(),t).on.on(e):this.each(qg(t,e,A))}function eh(e){return function(){var A=this.parentNode;for(var t in this.__transition)if(+t!==e)return;A&&A.removeChild(this)}}function th(){return this.on("end.remove",eh(this._id))}function nh(e){var A=this._name,t=this._id;typeof e!="function"&&(e=Oo(e));for(var n=this._groups,o=n.length,a=new Array(o),c=0;c<o;++c)for(var d=n[c],h=d.length,g=a[c]=new Array(h),B,w,m=0;m<h;++m)(B=d[m])&&(w=e.call(B,B.__data__,m,d))&&("__data__"in B&&(w.__data__=B.__data__),g[m]=w,Cr(g[m],A,t,m,g,Oe(B,t)));return new At(a,this._parents,A,t)}function rh(e){var A=this._name,t=this._id;typeof e!="function"&&(e=ms(e));for(var n=this._groups,o=n.length,a=[],c=[],d=0;d<o;++d)for(var h=n[d],g=h.length,B,w=0;w<g;++w)if(B=h[w]){for(var m=e.call(B,B.__data__,w,h),y,v=Oe(B,t),I=0,L=m.length;I<L;++I)(y=m[I])&&Cr(y,A,t,I,m,v);a.push(m),c.push(B)}return new At(a,c,A,t)}var oh=wn.prototype.constructor;function ih(){return new oh(this._groups,this._parents)}function sh(e,A){var t,n,o;return function(){var a=$t(this,e),c=(this.style.removeProperty(e),$t(this,e));return a===c?null:a===t&&c===n?o:o=A(t=a,n=c)}}function ta(e){return function(){this.style.removeProperty(e)}}function ah(e,A,t){var n,o=t+"",a;return function(){var c=$t(this,e);return c===o?null:c===n?a:a=A(n=c,t)}}function lh(e,A,t){var n,o,a;return function(){var c=$t(this,e),d=t(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),$t(this,e))),c===h?null:c===n&&h===o?a:(o=h,a=A(n=c,d))}}function ch(e,A){var t,n,o,a="style."+A,c="end."+a,d;return function(){var h=Xe(this,e),g=h.on,B=h.value[a]==null?d||(d=ta(A)):void 0;(g!==t||o!==B)&&(n=(t=g).copy()).on(c,o=B),h.on=n}}function uh(e,A,t){var n=(e+="")=="transform"?dg:ea;return A==null?this.styleTween(e,sh(e,n)).on("end.style."+e,ta(e)):typeof A=="function"?this.styleTween(e,lh(e,n,ei(this,"style."+e,A))).each(ch(this._id,e)):this.styleTween(e,ah(e,n,A),t).on("end.style."+e,null)}function dh(e,A,t){return function(n){this.style.setProperty(e,A.call(this,n),t)}}function fh(e,A,t){var n,o;function a(){var c=A.apply(this,arguments);return c!==o&&(n=(o=c)&&dh(e,c,t)),n}return a._value=A,a}function gh(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,fh(e,A,t??""))}function hh(e){return function(){this.textContent=e}}function Bh(e){return function(){var A=e(this);this.textContent=A??""}}function ph(e){return this.tween("text",typeof e=="function"?Bh(ei(this,"text",e)):hh(e==null?"":e+""))}function mh(e){return function(A){this.textContent=e.call(this,A)}}function wh(e){var A,t;function n(){var o=e.apply(this,arguments);return o!==t&&(A=(t=o)&&mh(o)),A}return n._value=e,n}function Ch(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,wh(e))}function yh(){for(var e=this._name,A=this._id,t=na(),n=this._groups,o=n.length,a=0;a<o;++a)for(var c=n[a],d=c.length,h,g=0;g<d;++g)if(h=c[g]){var B=Oe(h,A);Cr(h,e,t,g,c,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new At(n,this._parents,e,t)}function vh(){var e,A,t=this,n=t._id,o=t.size();return new Promise(function(a,c){var d={value:c},h={value:function(){--o===0&&a()}};t.each(function(){var g=Xe(this,n),B=g.on;B!==e&&(A=(e=B).copy(),A._.cancel.push(d),A._.interrupt.push(d),A._.end.push(h)),g.on=A}),o===0&&a()})}var Qh=0;function At(e,A,t,n){this._groups=e,this._parents=A,this._name=t,this._id=n}function na(){return++Qh}var et=wn.prototype;At.prototype={constructor:At,select:nh,selectAll:rh,selectChild:et.selectChild,selectChildren:et.selectChildren,filter:Jg,merge:Zg,selection:ih,transition:yh,call:et.call,nodes:et.nodes,node:et.node,size:et.size,empty:et.empty,each:et.each,on:Ah,attr:Ng,attrTween:Og,style:uh,styleTween:gh,text:ph,textTween:Ch,remove:th,tween:bg,delay:Vg,duration:zg,ease:Xg,easeVarying:Yg,end:vh,[Symbol.iterator]:et[Symbol.iterator]};function Eh(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Fh={time:null,delay:0,duration:250,ease:Eh};function Uh(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 bh(e){var A,t;e instanceof At?(A=e._id,e=e._name):(A=na(),(t=Fh).time=Jo(),e=e==null?null:e+"");for(var n=this._groups,o=n.length,a=0;a<o;++a)for(var c=n[a],d=c.length,h,g=0;g<d;++g)(h=c[g])&&Cr(h,e,A,g,c,t||Uh(h,A));return new At(n,this._parents,e,A)}wn.prototype.interrupt=Eg,wn.prototype.transition=bh;var vr=e=>()=>e;function Ih(e,{sourceEvent:A,target:t,transform:n,dispatch:o}){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:o}})}function tt(e,A,t){this.k=e,this.x=A,this.y=t}tt.prototype={constructor:tt,scale:function(e){return e===1?this:new tt(this.k*e,this.x,this.y)},translate:function(e,A){return e===0&A===0?this:new tt(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 Jt=new tt(1,0,0);tt.prototype;function ti(e){e.stopImmediatePropagation()}function Hn(e){e.preventDefault(),e.stopImmediatePropagation()}function Hh(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function _h(){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 ra(){return this.__zoom||Jt}function Sh(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function xh(){return navigator.maxTouchPoints||"ontouchstart"in this}function Dh(e,A,t){var n=e.invertX(A[0][0])-t[0][0],o=e.invertX(A[1][0])-t[1][0],a=e.invertY(A[0][1])-t[0][1],c=e.invertY(A[1][1])-t[1][1];return e.translate(o>n?(n+o)/2:Math.min(0,n)||Math.max(0,o),c>a?(a+c)/2:Math.min(0,a)||Math.max(0,c))}function Nh(){var e=Hh,A=_h,t=Dh,n=Sh,o=xh,a=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=fr,g=tr("start","zoom","end"),B,w,m,y=500,v=150,I=0,L=10;function k(_){_.property("__zoom",ra).on("wheel.zoom",dA,{passive:!1}).on("mousedown.zoom",rA).on("dblclick.zoom",oA).filter(o).on("touchstart.zoom",AA).on("touchmove.zoom",O).on("touchend.zoom touchcancel.zoom",lA).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}k.transform=function(_,Z,U,x){var G=_.selection?_.selection():_;G.property("__zoom",ra),_!==G?tA(_,Z,U,x):G.interrupt().each(function(){W(this,arguments).event(x).start().zoom(null,typeof Z=="function"?Z.apply(this,arguments):Z).end()})},k.scaleBy=function(_,Z,U,x){k.scaleTo(_,function(){return this.__zoom.k*(typeof Z=="function"?Z.apply(this,arguments):Z)},U,x)},k.scaleTo=function(_,Z,U,x){k.transform(_,function(){var G=A.apply(this,arguments),R=this.__zoom,$=U==null?M(G):typeof U=="function"?U.apply(this,arguments):U,J=R.invert($),nA=typeof Z=="function"?Z.apply(this,arguments):Z;return t(F(V(R,nA),$,J),G,c)},U,x)},k.translateBy=function(_,Z,U,x){k.transform(_,function(){return t(this.__zoom.translate(typeof Z=="function"?Z.apply(this,arguments):Z,typeof U=="function"?U.apply(this,arguments):U),A.apply(this,arguments),c)},null,x)},k.translateTo=function(_,Z,U,x,G){k.transform(_,function(){var R=A.apply(this,arguments),$=this.__zoom,J=x==null?M(R):typeof x=="function"?x.apply(this,arguments):x;return t(Jt.translate(J[0],J[1]).scale($.k).translate(typeof Z=="function"?-Z.apply(this,arguments):-Z,typeof U=="function"?-U.apply(this,arguments):-U),R,c)},x,G)};function V(_,Z){return Z=Math.max(a[0],Math.min(a[1],Z)),Z===_.k?_:new tt(Z,_.x,_.y)}function F(_,Z,U){var x=Z[0]-U[0]*_.k,G=Z[1]-U[1]*_.k;return x===_.x&&G===_.y?_:new tt(_.k,x,G)}function M(_){return[(+_[0][0]+ +_[1][0])/2,(+_[0][1]+ +_[1][1])/2]}function tA(_,Z,U,x){_.on("start.zoom",function(){W(this,arguments).event(x).start()}).on("interrupt.zoom end.zoom",function(){W(this,arguments).event(x).end()}).tween("zoom",function(){var G=this,R=arguments,$=W(G,R).event(x),J=A.apply(G,R),nA=U==null?M(J):typeof U=="function"?U.apply(G,R):U,hA=Math.max(J[1][0]-J[0][0],J[1][1]-J[0][1]),UA=G.__zoom,eA=typeof Z=="function"?Z.apply(G,R):Z,uA=h(UA.invert(nA).concat(hA/UA.k),eA.invert(nA).concat(hA/eA.k));return function(Y){if(Y===1)Y=eA;else{var cA=uA(Y),mA=hA/cA[2];Y=new tt(mA,nA[0]-cA[0]*mA,nA[1]-cA[1]*mA)}$.zoom(null,Y)}})}function W(_,Z,U){return!U&&_.__zooming||new aA(_,Z)}function aA(_,Z){this.that=_,this.args=Z,this.active=0,this.sourceEvent=null,this.extent=A.apply(_,Z),this.taps=0}aA.prototype={event:function(_){return _&&(this.sourceEvent=_),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(_,Z){return this.mouse&&_!=="mouse"&&(this.mouse[1]=Z.invert(this.mouse[0])),this.touch0&&_!=="touch"&&(this.touch0[1]=Z.invert(this.touch0[0])),this.touch1&&_!=="touch"&&(this.touch1[1]=Z.invert(this.touch1[0])),this.that.__zoom=Z,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(_){var Z=ke(this.that).datum();g.call(_,this.that,new Ih(_,{sourceEvent:this.sourceEvent,target:k,type:_,transform:this.that.__zoom,dispatch:g}),Z)}};function dA(_,...Z){if(!e.apply(this,arguments))return;var U=W(this,Z).event(_),x=this.__zoom,G=Math.max(a[0],Math.min(a[1],x.k*Math.pow(2,n.apply(this,arguments)))),R=Ge(_);if(U.wheel)(U.mouse[0][0]!==R[0]||U.mouse[0][1]!==R[1])&&(U.mouse[1]=x.invert(U.mouse[0]=R)),clearTimeout(U.wheel);else{if(x.k===G)return;U.mouse=[R,x.invert(R)],yr(this),U.start()}Hn(_),U.wheel=setTimeout($,v),U.zoom("mouse",t(F(V(x,G),U.mouse[0],U.mouse[1]),U.extent,c));function $(){U.wheel=null,U.end()}}function rA(_,...Z){if(m||!e.apply(this,arguments))return;var U=_.currentTarget,x=W(this,Z,!0).event(_),G=ke(_.view).on("mousemove.zoom",nA,!0).on("mouseup.zoom",hA,!0),R=Ge(_,U),$=_.clientX,J=_.clientY;Hs(_.view),ti(_),x.mouse=[R,this.__zoom.invert(R)],yr(this),x.start();function nA(UA){if(Hn(UA),!x.moved){var eA=UA.clientX-$,uA=UA.clientY-J;x.moved=eA*eA+uA*uA>I}x.event(UA).zoom("mouse",t(F(x.that.__zoom,x.mouse[0]=Ge(UA,U),x.mouse[1]),x.extent,c))}function hA(UA){G.on("mousemove.zoom mouseup.zoom",null),_s(UA.view,x.moved),Hn(UA),x.event(UA).end()}}function oA(_,...Z){if(e.apply(this,arguments)){var U=this.__zoom,x=Ge(_.changedTouches?_.changedTouches[0]:_,this),G=U.invert(x),R=U.k*(_.shiftKey?.5:2),$=t(F(V(U,R),x,G),A.apply(this,Z),c);Hn(_),d>0?ke(this).transition().duration(d).call(tA,$,x,_):ke(this).call(k.transform,$,x,_)}}function AA(_,...Z){if(e.apply(this,arguments)){var U=_.touches,x=U.length,G=W(this,Z,_.changedTouches.length===x).event(_),R,$,J,nA;for(ti(_),$=0;$<x;++$)J=U[$],nA=Ge(J,this),nA=[nA,this.__zoom.invert(nA),J.identifier],G.touch0?!G.touch1&&G.touch0[2]!==nA[2]&&(G.touch1=nA,G.taps=0):(G.touch0=nA,R=!0,G.taps=1+!!B);B&&(B=clearTimeout(B)),R&&(G.taps<2&&(w=nA[0],B=setTimeout(function(){B=null},y)),yr(this),G.start())}}function O(_,...Z){if(this.__zooming){var U=W(this,Z).event(_),x=_.changedTouches,G=x.length,R,$,J,nA;for(Hn(_),R=0;R<G;++R)$=x[R],J=Ge($,this),U.touch0&&U.touch0[2]===$.identifier?U.touch0[0]=J:U.touch1&&U.touch1[2]===$.identifier&&(U.touch1[0]=J);if($=U.that.__zoom,U.touch1){var hA=U.touch0[0],UA=U.touch0[1],eA=U.touch1[0],uA=U.touch1[1],Y=(Y=eA[0]-hA[0])*Y+(Y=eA[1]-hA[1])*Y,cA=(cA=uA[0]-UA[0])*cA+(cA=uA[1]-UA[1])*cA;$=V($,Math.sqrt(Y/cA)),J=[(hA[0]+eA[0])/2,(hA[1]+eA[1])/2],nA=[(UA[0]+uA[0])/2,(UA[1]+uA[1])/2]}else if(U.touch0)J=U.touch0[0],nA=U.touch0[1];else return;U.zoom("touch",t(F($,J,nA),U.extent,c))}}function lA(_,...Z){if(this.__zooming){var U=W(this,Z).event(_),x=_.changedTouches,G=x.length,R,$;for(ti(_),m&&clearTimeout(m),m=setTimeout(function(){m=null},y),R=0;R<G;++R)$=x[R],U.touch0&&U.touch0[2]===$.identifier?delete U.touch0:U.touch1&&U.touch1[2]===$.identifier&&delete U.touch1;if(U.touch1&&!U.touch0&&(U.touch0=U.touch1,delete U.touch1),U.touch0)U.touch0[1]=this.__zoom.invert(U.touch0[0]);else if(U.end(),U.taps===2&&($=Ge($,this),Math.hypot(w[0]-$[0],w[1]-$[1])<L)){var J=ke(this).on("dblclick.zoom");J&&J.apply(this,arguments)}}}return k.wheelDelta=function(_){return arguments.length?(n=typeof _=="function"?_:vr(+_),k):n},k.filter=function(_){return arguments.length?(e=typeof _=="function"?_:vr(!!_),k):e},k.touchable=function(_){return arguments.length?(o=typeof _=="function"?_:vr(!!_),k):o},k.extent=function(_){return arguments.length?(A=typeof _=="function"?_:vr([[+_[0][0],+_[0][1]],[+_[1][0],+_[1][1]]]),k):A},k.scaleExtent=function(_){return arguments.length?(a[0]=+_[0],a[1]=+_[1],k):[a[0],a[1]]},k.translateExtent=function(_){return arguments.length?(c[0][0]=+_[0][0],c[1][0]=+_[1][0],c[0][1]=+_[0][1],c[1][1]=+_[1][1],k):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},k.constrain=function(_){return arguments.length?(t=_,k):t},k.duration=function(_){return arguments.length?(d=+_,k):d},k.interpolate=function(_){return arguments.length?(h=_,k):h},k.on=function(){var _=g.on.apply(g,arguments);return _===g?k:_},k.clickDistance=function(_){return arguments.length?(I=(_=+_)*_,k):Math.sqrt(I)},k.tapDistance=function(_){return arguments.length?(L=+_,k):L},k}var HA=(e=>(e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom",e))(HA||{}),ni=(e=>(e.Partial="partial",e.Full="full",e))(ni||{}),Dt=(e=>(e.Bezier="default",e.SimpleBezier="simple-bezier",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e))(Dt||{}),nt=(e=>(e.Strict="strict",e.Loose="loose",e))(nt||{}),rt=(e=>(e.Arrow="arrow",e.ArrowClosed="arrowclosed",e))(rt||{}),_n=(e=>(e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal",e))(_n||{}),oa=(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))(oa||{}),Lh=["INPUT","SELECT","TEXTAREA"],Th=typeof document<"u"?document:null;function ri(e){var A,t;const n=((t=(A=e.composedPath)==null?void 0:A.call(e))==null?void 0:t[0])||e.target,o=typeof n?.hasAttribute=="function"?n.hasAttribute("contenteditable"):!1,a=typeof n?.closest=="function"?n.closest(".nokey"):null;return Lh.includes(n?.nodeName)||o||!!a}function kh(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function ia(e,A,t,n){const o=A.replace("+",`
|
|
1
|
+
(function(te,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@a2simcode/ui")):typeof define=="function"&&define.amd?define(["exports","vue","@a2simcode/ui"],r):(te=typeof globalThis<"u"?globalThis:te||self,r(te.DuiUI={},te.Vue,te.SimCodeUI))})(this,function(te,r,Ht){Object.defineProperties(te,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var wu=Object.create,er=Object.defineProperty,Cu=Object.getOwnPropertyDescriptor,vu=Object.getOwnPropertyNames,yu=Object.getPrototypeOf,Qu=Object.prototype.hasOwnProperty,Eu=(e,A)=>()=>(A||(e((A={exports:{}}).exports,A),e=null),A.exports),Uu=(e,A)=>{let t={};for(var n in e)er(t,n,{get:e[n],enumerable:!0});return A||er(t,Symbol.toStringTag,{value:"Module"}),t},bo=(e,A,t,n)=>{if(A&&typeof A=="object"||typeof A=="function")for(var o=vu(A),a=0,u=o.length,d;a<u;a++)d=o[a],!Qu.call(e,d)&&d!==t&&er(e,d,{get:(h=>A[h]).bind(null,d),enumerable:!(n=Cu(A,d))||n.enumerable});return e},Fu=(e,A,t)=>(bo(e,A,"default"),t&&bo(t,A,"default")),rs=(e,A,t)=>(t=e!=null?wu(yu(e)):{},bo(A||!e||!e.__esModule?er(t,"default",{value:e,enumerable:!0}):t,e));r=rs(r,1);var ut=(e,A)=>(e.install=t=>{t.component(e.name,e),A&&A.forEach(n=>{t.component(n.name,n)})},e),dt=(e="")=>{const A=Date.now(),t=Math.floor(Math.random()*1e9);return e===""?String(t)+String(A):e+"_"+t+String(A)},pn=e=>{if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(pn);const A={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=pn(e[t]));return A},bu=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]},Ho={},Hu=(e,A,t)=>{t[e]=t[e]||{};const n=dt();return t[e][n]=A,n},Iu=(e,A,t)=>{const n=[],o=t[e]||{};return Object.keys(o).forEach(a=>{const u=o[a];try{u&&n.push(u(A))}catch(d){console.error(d)}}),n},_u=(e,A,t)=>{if(A){const n=t[e];n&&delete n[A]}else delete t[e]},os=(e,A)=>Hu(e,A,Ho),ne=(e,A)=>Iu(e,A,Ho),Su=(e,A)=>{_u(e,A,Ho)},is=(e,A,t,n,o,a)=>{const u=A.id,d=A.level,{getDesignLocals:h,selectComponent:g,getComponent:B,isMyChildComponent:w,addComponent:m,deleteComponent:v,getParentComponents:Q,removeComponentFromContainer:H,addComponentToContainer:N,copyComponent:T,activedComponent:M,top:U}=(0,r.inject)("d-drag-design-provide",{}),K=[],eA=(0,r.ref)(!1),W=(0,r.ref)(!1),iA=(0,r.ref)(!1),lA=(0,r.ref)(!1),nA=(0,r.ref)(!1),tA={id:"",type:""},q=(0,r.ref)(!1),k=(0,r.ref)(!1);let sA="",I=null;const Y=V=>{if(sA===V)return I;sA=V;const{top:$,left:uA,width:BA,height:HA}=e.value.getBoundingClientRect();return I=[{x:uA,y:$},{x:uA+BA,y:$},{x:uA+BA,y:$+HA},{x:uA,y:$+HA}],I},F=(V,$,uA)=>{let BA=$-uA[0].y;BA<0&&(BA=-BA);let HA=$-uA[3].y;HA<0&&(HA=-HA);let aA=V-uA[0].x;aA<0&&(aA=-aA);let wA=V-uA[1].x;return wA<0&&(wA=-wA),{ly:BA>HA?HA:BA,typey:BA>HA?"bottom":"top",lx:aA>wA?wA:aA,lallx:aA+wA}},S=(V,$,uA)=>V>=uA[0].x&&V<=uA[1].x&&$>=uA[0].y&&$<=uA[3].y,P=()=>{if(o){ne("dragClick",{id:u});return}if(!W.value){if(g(u),d!==0){const V=e.value.getBoundingClientRect(),$=h();V.top-$.top<22?lA.value=!0:lA.value=!1}W.value=!0,ne("dragClick",{id:u})}},R=V=>{const $=v(V);$&&(0,r.nextTick)(()=>{ne("dragClick",{id:$})})},z=()=>{tA.id="",tA.type="",d===0&&(nA.value=!1)},J=()=>{ne("mouseEnterOrLeave",{id:u,type:"enter"})},rA=()=>{ne("mouseEnterOrLeave",{id:u,type:"leave"})},dA=V=>{ne("dragClick",{id:V})},bA={mouseEnterOrLeave:({id:V,type:$})=>{$==="enter"?K.push(V):K.length>0&&K.splice(K.length-1,1);const uA=K.length;uA>0&&u===K[uA-1]?eA.value=!0:eA.value=!1},dragAciveChild:({type:V,id:$})=>{$===u?V==="top"?(q.value=!0,k.value=!1):(k.value=!0,q.value=!1):(k.value=!1,q.value=!1)},dragClick({id:V,isAgain:$}){console.log("dragClick",V,u),V!==u?W.value=!1:($&&(W.value=!1),P())}};bA[`dragGetChildDistance_${u}`]=({dragX:V,dragY:$,moveId:uA})=>F(V,$,Y(uA));const AA={isInContainer({x:V,y:$,id:uA,moveId:BA}){if(u===uA||w(uA,u))return iA.value=!1,{isIn:!1,level:d,id:u,groupId:a};const HA=Y(BA);if(S(V,$,HA))return d===0&&(nA.value=!0),{isIn:!0,level:d,id:u,groupId:a};if(d===0){const{ly:aA,lx:wA}=F(V,$,HA);if(aA<20&&wA<20)return nA.value=!0,{isIn:!0,level:d,id:u,groupId:a};nA.value=!1}return iA.value=!1,{isIn:!1,level:d,id:u,groupId:a}},dragActiveContainer:({containerId:V,containerGroupId:$,dragX:uA,dragY:BA,moveId:HA})=>{if(V===u&&$===a)if(iA.value=!0,n&&n.value.length>0){let aA={ly:9999999,lx:0,lallx:0,id:"",typey:""};n?.value.forEach(wA=>{if(a&&wA.groupId!==a)return;const _=ne(`dragGetChildDistance_${wA.id}`,{dragX:uA,dragY:BA,moveId:HA})[0];_&&(aA.ly>_.ly||aA.ly===_.ly&&(aA.lx>_.lx||aA.lx===_.lx&&aA.lallx>_.lallx))&&(aA=_,aA.id=wA.id)}),tA.id=aA.id,tA.type=aA.typey,ne("dragAciveChild",{id:aA.id,type:aA.typey})}else ne("dragAciveChild",{id:""});else iA.value=!1},dragAdd:V=>{if(iA.value){let $=n?.value.length||0;tA.id!==""&&tA.id!==void 0&&($=n?.value.findIndex(uA=>uA.id===tA.id)||0,tA.type==="bottom"&&($+=1)),m(V,u,$,a),iA.value=!1}z()},dragAddByClick:V=>{if(!M.value&&u===U.id||M.value?.id===u||M.value?.containerId===u&&M.value?.dragType!=="container"){const $=m(V,u,n?.value.length||0,a,!0);$&&V.config&&Object.keys(V.config).forEach(uA=>{$.config[uA]=V.config[uA]})}},dragUpdate(V){if(iA.value){const $=B(V);if($.level=d+1,tA.id!==$.id){H($.containerId,V);let uA=n?.value.findIndex(BA=>BA.id===tA.id)||0;tA.type==="bottom"&&(uA+=1),N($,u,uA,a)}iA.value=!1,(0,r.nextTick)(()=>{ne("dragClick",{id:$.id,isAgain:!0})})}z()}},cA={};return(0,r.onMounted)(()=>{(!o||t!=="container")&&Object.keys(bA).forEach(V=>{cA[V]=os(V,bA[V])}),t==="container"&&Object.keys(AA).forEach(V=>{cA[V]=os(V,AA[V])}),A.isNewAdd&&(0,r.nextTick)(()=>{P(),delete A.isNewAdd})}),(0,r.onUnmounted)(()=>{Object.keys(cA).forEach(V=>{Su(V,cA[V])})}),{onMouseenter:J,onMouseleave:rA,activeComponent:P,handleComponentClick:dA,deleteComponentByClick:R,copyComponent:T,getParentComponents:Q,isBottomToolBar:lA,isHover:eA,isSelect:W,isToContainer:iA,isMoveingInTopLevel:nA,isTopActive:q,isBottomActive:k}},ss=(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 o=(v,Q)=>{n!==!0&&(n=!0,setTimeout(()=>{v(),n=!1},Q))},a=(0,r.ref)(!1),u=(v,Q,H)=>{const N=document.createElement("div");return N.id=t.dragElementId,N.innerText=v,N.className="d-drag-move",N.style.top=`${Q}px`,N.style.left=`${H}px`,document.body.appendChild(N),N},d=()=>{document.onmousemove=null,document.onmouseup=null,a.value=!1,ne("dragAciveChild",{id:""})},h=()=>{d(),t.dragElement&&(t.dragElement.remove(),t.dragElement=null,A?ne("dragAdd",e):ne("dragUpdate",e.id))},g=v=>{const{clientY:Q,clientX:H}=v;if(!t.dragElement){const N=Math.abs(t.x-H),T=Math.abs(t.y-Q);if(N<=1&&T<=1)return;a.value=!0,t.dragElement=u(e.name,Q-11,H-32)}t.dragElement.style.top=`${Q-11}px`,t.dragElement.style.left=`${H-32}px`,t.clientX=H,t.clientY=Q,o(()=>{if(!a.value)return;const N=ne("isInContainer",{x:H,y:Q,id:e.id,moveId:t.id});t.toContainerLevel=-1,t.toContainerId="",t.groupId="",N.forEach(({level:T,id:M,isIn:U,groupId:K})=>{U&&t.toContainerLevel<T&&(t.toContainerLevel=T,t.toContainerId=M,t.groupId=K)}),t.toContainerId!==""?ne("dragActiveContainer",{containerId:t.toContainerId,containerGroupId:t.groupId,dragX:H,dragY:Q,moveId:t.id}):ne("dragAciveChild",{id:""})},100)};return{onContextmenu:()=>{d()},onMousedown:v=>{t.x=v.clientX,t.y=v.clientY,t.id=dt(),document.onmouseup=h,document.onmousemove=g},onClick:()=>{ne("dragAddByClick",e)},moveActive:a}},xu={class:"d-drag-btns-pname"},Du={key:0,class:"d-drag-mask"},Nu=(0,r.defineComponent)({name:"DDrag",__name:"drag",props:{componentData:{default:()=>({})},isContainer:{type:Boolean,default:!1}},setup(e){const A=e,t=(0,r.ref)(),{onMouseenter:n,onMouseleave:o,activeComponent:a,handleComponentClick:u,deleteComponentByClick:d,copyComponent:h,getParentComponents:g,isHover:B,isSelect:w,isTopActive:m,isBottomActive:v,isBottomToolBar:Q}=is(t,A.componentData,"component"),{onContextmenu:H,onMousedown:N,moveActive:T}=ss(A.componentData,!1);return(M,U)=>{const K=(0,r.resolveComponent)("j-button"),eA=(0,r.resolveComponent)("el-space");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["d-drag-component",{selected:(0,r.unref)(w),hovered:(0,r.unref)(B),isBottomToolBar:(0,r.unref)(Q),active:(0,r.unref)(T),isTopActive:(0,r.unref)(m),isBottomActive:(0,r.unref)(v)}])},[U[11]||(U[11]=(0,r.createElementVNode)("div",{class:"d-drag-line"},null,-1)),(0,r.createElementVNode)("div",{class:"d-drag-btns",onMouseenter:U[4]||(U[4]=(...W)=>(0,r.unref)(n)&&(0,r.unref)(n)(...W)),onMouseleave:U[5]||(U[5]=(...W)=>(0,r.unref)(o)&&(0,r.unref)(o)(...W))},[(0,r.createVNode)(eA,{size:4},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,r.withModifiers)(()=>{},["stop"])},[(0,r.createVNode)(K,{class:"d-drag-btn",type:"primary",size:"small",label:e.componentData.name},null,8,["label"]),(0,r.createElementVNode)("div",xu,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(g)(e.componentData.containerId),W=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:W.id},[(0,r.createVNode)(K,{class:"d-drag-btn",type:"primary",size:"small",label:W.name,onClick:iA=>(0,r.unref)(u)(W.id)},null,8,["label","onClick"])]))),128))])]),(0,r.createVNode)(K,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:content-copy",onClick:U[0]||(U[0]=(0,r.withModifiers)(W=>(0,r.unref)(h)(e.componentData.id),["stop"]))}),(0,r.createElementVNode)("div",{onContextmenu:U[1]||(U[1]=(0,r.withModifiers)((...W)=>(0,r.unref)(H)&&(0,r.unref)(H)(...W),["stop"])),onMousedown:U[2]||(U[2]=(0,r.withModifiers)((...W)=>(0,r.unref)(N)&&(0,r.unref)(N)(...W),["stop"])),style:{display:"flex"}},[(0,r.createVNode)(K,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:drag"})],32),(0,r.createVNode)(K,{class:"d-drag-btn",danger:"",type:"primary",size:"small",icon:"mdi:delete",onClick:U[3]||(U[3]=(0,r.withModifiers)(W=>(0,r.unref)(d)(e.componentData.id),["stop"]))})]),_:1})],32),(0,r.createElementVNode)("div",{ref_key:"refDrag",ref:t,class:"d-drag-body",onClick:U[6]||(U[6]=(0,r.withModifiers)((...W)=>(0,r.unref)(a)&&(0,r.unref)(a)(...W),["stop"])),onContextmenu:U[7]||(U[7]=(0,r.withModifiers)((...W)=>(0,r.unref)(H)&&(0,r.unref)(H)(...W),["stop"])),onMousedown:U[8]||(U[8]=(0,r.withModifiers)((...W)=>(0,r.unref)(N)&&(0,r.unref)(N)(...W),["stop"])),onMouseenter:U[9]||(U[9]=(...W)=>(0,r.unref)(n)&&(0,r.unref)(n)(...W)),onMouseleave:U[10]||(U[10]=(...W)=>(0,r.unref)(o)&&(0,r.unref)(o)(...W))},[(0,r.renderSlot)(M.$slots,"default"),e.isContainer?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",Du))],544)],2)}}}),Io=Nu,Lu=(0,r.defineComponent)({name:"DDragTool",__name:"tool",props:{config:{}},setup(e){const{onContextmenu:A,onMousedown:t,onClick:n}=ss(e.config??{name:"",id:""},!0);return(o,a)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"d-drag-tool",onClick:a[0]||(a[0]=(0,r.withModifiers)((...u)=>(0,r.unref)(n)&&(0,r.unref)(n)(...u),["stop"])),onContextmenu:a[1]||(a[1]=(0,r.withModifiers)((...u)=>(0,r.unref)(A)&&(0,r.unref)(A)(...u),["stop"])),onMousedown:a[2]||(a[2]=(0,r.withModifiers)((...u)=>(0,r.unref)(t)&&(0,r.unref)(t)(...u),["stop"]))},[(0,r.renderSlot)(o.$slots,"default")],32))}}),_o=Lu,Tu={key:0,class:"d-drag-line"},ku={key:1,class:"d-drag-btns"},Mu=(0,r.defineComponent)({name:"DDragContainer",__name:"container",props:{componentData:{default:()=>({})},isComponentContainer:{type:Boolean,default:!0},groupId:{default:void 0}},setup(e){const A=e,t=(0,r.ref)(),n=(0,r.computed)(()=>A.componentData?.children||[]),{onMouseenter:o,onMouseleave:a,activeComponent:u,isHover:d,isSelect:h,isToContainer:g,isMoveingInTopLevel:B,isTopActive:w,isBottomActive:m}=is(t,A.componentData,"container",n,A.isComponentContainer,A.groupId),v=(0,r.computed)(()=>!!(n.value.findIndex(Q=>Q.groupId===A.groupId)===-1&&g.value));return(Q,H)=>{const N=(0,r.resolveComponent)("j-button");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"refDrag",ref:t,class:(0,r.normalizeClass)(["d-drag-container",{selected:(0,r.unref)(h)&&!e.isComponentContainer,hovered:(0,r.unref)(d)&&!e.isComponentContainer,isTopLevel:e.componentData.level===0,active:v.value,isMoveingInTopLevel:(0,r.unref)(B),isTopActive:(0,r.unref)(w),isBottomActive:(0,r.unref)(m)}])},[e.isComponentContainer?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",Tu)),e.isComponentContainer?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",ku,[(0,r.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,r.withModifiers)(()=>{},["stop"])},[(0,r.createVNode)(N,{class:"d-drag-btn",type:"primary",size:"small",label:e.componentData.name},null,8,["label"])])])),(0,r.createElementVNode)("div",{class:"d-drag-body",onClick:H[0]||(H[0]=(0,r.withModifiers)((...T)=>(0,r.unref)(u)&&(0,r.unref)(u)(...T),["stop"])),onMouseenter:H[1]||(H[1]=(...T)=>(0,r.unref)(o)&&(0,r.unref)(o)(...T)),onMouseleave:H[2]||(H[2]=(...T)=>(0,r.unref)(a)&&(0,r.unref)(a)(...T))},[(0,r.renderSlot)(Q.$slots,"default")],32)],2)}}}),So=Mu,Ku=(0,r.defineComponent)({name:"DDragFormList",__name:"dragFormList",props:{componentList:{default:()=>[]},globalConfig:{default:()=>({})}},setup(e){const{designItemName:A}=(0,r.inject)("dui-design-provide",{});return(t,n)=>{const o=(0,r.resolveComponent)("el-col");return(0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.componentList,a=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:a.id},[a.type!="pkey"?((0,r.openBlock)(),(0,r.createBlock)(o,{key:0,span:a.config.span||24},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(Io,{"is-container":a.dragType!=="component","component-data":a},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.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,r.createCommentVNode)("",!0)],64))),128)}}}),xo=Ku,Ou=(0,r.defineComponent)({name:"DDragIndexList",__name:"dragIndexList",props:{componentList:{default:()=>[]},globalConfig:{default:()=>({})}},setup(e){const{designItemName:A}=(0,r.inject)("dui-design-provide",{}),t=n=>{if(n.flexWidth)return{width:n.flexWidth+"%"}};return(n,o)=>((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.componentList,a=>((0,r.openBlock)(),(0,r.createBlock)(Io,{key:a.id,style:(0,r.normalizeStyle)(t(a.config)),"is-container":a.dragType!=="component","component-data":a},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(A)),{"component-data":a,"global-config":e.globalConfig},null,8,["component-data","global-config"]))]),_:2},1032,["style","is-container","component-data"]))),128))}}),Do=Ou,as=ut(Io,[_o,So,xo,Do]);function mn(e){return(0,r.getCurrentScope)()?((0,r.onScopeDispose)(e),!0):!1}function Je(e){return typeof e=="function"?e():(0,r.unref)(e)}var Ru=typeof window<"u"&&typeof document<"u",Vu=e=>typeof e<"u",Pu=Object.prototype.toString,Gu=e=>Pu.call(e)==="[object Object]",zu=()=>{};function Xu(e,A){function t(...n){return new Promise((o,a)=>{Promise.resolve(e(()=>A.apply(this,n),{fn:A,thisArg:this,args:n})).then(o).catch(a)})}return t}var ls=e=>e();function $u(e=ls){const A=(0,r.ref)(!0);function t(){A.value=!1}function n(){A.value=!0}const o=(...a)=>{A.value&&e(...a)};return{isActive:(0,r.readonly)(A),pause:t,resume:n,eventFilter:o}}function cs(e,A=!1,t="Timeout"){return new Promise((n,o)=>{setTimeout(A?()=>o(t):n,e)})}function Wu(e,A,t={}){const{eventFilter:n=ls,...o}=t;return(0,r.watch)(e,Xu(n,A),o)}function zt(e,A,t={}){const{eventFilter:n,...o}=t,{eventFilter:a,pause:u,resume:d,isActive:h}=$u(n);return{stop:Wu(e,A,{...o,eventFilter:a}),pause:u,resume:d,isActive:h}}function Yu(e,A={}){if(!(0,r.isRef)(e))return(0,r.toRefs)(e);const t=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const n in e.value)t[n]=(0,r.customRef)(()=>({get(){return e.value[n]},set(o){var a;if((a=Je(A.replaceRef))==null||a)if(Array.isArray(e.value)){const u=[...e.value];u[n]=o,e.value=u}else{const u={...e.value,[n]:o};Object.setPrototypeOf(u,Object.getPrototypeOf(e.value)),e.value=u}else e.value[n]=o}}));return t}function No(e,A=!1){function t(w,{flush:m="sync",deep:v=!1,timeout:Q,throwOnTimeout:H}={}){let N=null;const T=[new Promise(M=>{N=(0,r.watch)(e,U=>{w(U)!==A&&(N?.(),M(U))},{flush:m,deep:v,immediate:!0})})];return Q!=null&&T.push(cs(Q,H).then(()=>Je(e)).finally(()=>N?.())),Promise.race(T)}function n(w,m){if(!(0,r.isRef)(w))return t(U=>U===w,m);const{flush:v="sync",deep:Q=!1,timeout:H,throwOnTimeout:N}=m??{};let T=null;const M=[new Promise(U=>{T=(0,r.watch)([e,w],([K,eA])=>{A!==(K===eA)&&(T?.(),U(K))},{flush:v,deep:Q,immediate:!0})})];return H!=null&&M.push(cs(H,N).then(()=>Je(e)).finally(()=>(T?.(),Je(e)))),Promise.race(M)}function o(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 h(w,m){return t(v=>{const Q=Array.from(v);return Q.includes(w)||Q.includes(Je(w))},m)}function g(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:h,changed:g,changedTimes:B,get not(){return No(e,!A)}}:{toMatch:t,toBe:n,toBeTruthy:o,toBeNull:a,toBeNaN:d,toBeUndefined:u,changed:g,changedTimes:B,get not(){return No(e,!A)}}}function Lo(e){return No(e)}function Ju(e){var A;const t=Je(e);return(A=t?.$el)!=null?A:t}var us=Ru?window:void 0;function ds(...e){let A,t,n,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,n,o]=e,A=us):[A,t,n,o]=e,!A)return zu;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)),h=(0,r.watch)(()=>[Ju(A),Je(o)],([B,w])=>{if(u(),!B)return;const m=Gu(w)?{...w}:w;a.push(...t.flatMap(v=>n.map(Q=>d(B,v,Q,m))))},{immediate:!0,flush:"post"}),g=()=>{h(),u()};return mn(g),g}function Zu(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:o=us,eventName:a="keydown",passive:u=!1,dedupe:d=!1}=n,h=Zu(A);return ds(o,a,B=>{B.repeat&&Je(d)||h(B)&&t(B)},u)}function ju(e){return JSON.parse(JSON.stringify(e))}function To(e,A,t,n={}){var o,a,u;const{clone:d=!1,passive:h=!1,eventName:g,deep:B=!1,defaultValue:w,shouldEmit:m}=n,v=(0,r.getCurrentInstance)(),Q=t||v?.emit||((o=v?.$emit)==null?void 0:o.bind(v))||((u=(a=v?.proxy)==null?void 0:a.$emit)==null?void 0:u.bind(v?.proxy));let H=g;A||(A="modelValue"),H=H||`update:${A.toString()}`;const N=U=>d?typeof d=="function"?d(U):ju(U):U,T=()=>Vu(e[A])?N(e[A]):w,M=U=>{m?m(U)&&Q(H,U):Q(H,U)};if(h){const U=(0,r.ref)(T());let K=!1;return(0,r.watch)(()=>e[A],eA=>{K||(K=!0,U.value=N(eA),(0,r.nextTick)(()=>K=!1))}),(0,r.watch)(U,eA=>{!K&&(eA!==e[A]||B)&&M(eA)},{deep:B}),U}else return(0,r.computed)({get(){return T()},set(U){M(U)}})}var qu={value:()=>{}};function tr(){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 nr(t)}function nr(e){this._=e}function Ad(e,A){return e.trim().split(/^|\s+/).map(function(t){var n="",o=t.indexOf(".");if(o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),t&&!A.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}nr.prototype=tr.prototype={constructor:nr,on:function(e,A){var t=this._,n=Ad(e+"",t),o,a=-1,u=n.length;if(arguments.length<2){for(;++a<u;)if((o=(e=n[a]).type)&&(o=ed(t[o],e.name)))return o;return}if(A!=null&&typeof A!="function")throw new Error("invalid callback: "+A);for(;++a<u;)if(o=(e=n[a]).type)t[o]=gs(t[o],e.name,A);else if(A==null)for(o in t)t[o]=gs(t[o],e.name,null);return this},copy:function(){var e={},A=this._;for(var t in A)e[t]=A[t].slice();return new nr(e)},call:function(e,A){if((o=arguments.length-2)>0)for(var t=new Array(o),n=0,o,a;n<o;++n)t[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],n=0,o=a.length;n<o;++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],o=0,a=n.length;o<a;++o)n[o].value.apply(A,t)}};function ed(e,A){for(var t=0,n=e.length,o;t<n;++t)if((o=e[t]).name===A)return o.value}function gs(e,A,t){for(var n=0,o=e.length;n<o;++n)if(e[n].name===A){e[n]=qu,e=e.slice(0,n).concat(e.slice(n+1));break}return t!=null&&e.push({name:A,value:t}),e}var ko="http://www.w3.org/1999/xhtml",hs={svg:"http://www.w3.org/2000/svg",xhtml:ko,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function rr(e){var A=e+="",t=A.indexOf(":");return t>=0&&(A=e.slice(0,t))!=="xmlns"&&(e=e.slice(t+1)),hs.hasOwnProperty(A)?{space:hs[A],local:e}:e}function td(e){return function(){var A=this.ownerDocument,t=this.namespaceURI;return t===ko&&A.documentElement.namespaceURI===ko?A.createElement(e):A.createElementNS(t,e)}}function nd(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Bs(e){var A=rr(e);return(A.local?nd:td)(A)}function rd(){}function Mo(e){return e==null?rd:function(){return this.querySelector(e)}}function od(e){typeof e!="function"&&(e=Mo(e));for(var A=this._groups,t=A.length,n=new Array(t),o=0;o<t;++o)for(var a=A[o],u=a.length,d=n[o]=new Array(u),h,g,B=0;B<u;++B)(h=a[B])&&(g=e.call(h,h.__data__,B,a))&&("__data__"in h&&(g.__data__=h.__data__),d[B]=g);return new Ue(n,this._parents)}function id(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function sd(){return[]}function ps(e){return e==null?sd:function(){return this.querySelectorAll(e)}}function ad(e){return function(){return id(e.apply(this,arguments))}}function ld(e){typeof e=="function"?e=ad(e):e=ps(e);for(var A=this._groups,t=A.length,n=[],o=[],a=0;a<t;++a)for(var u=A[a],d=u.length,h,g=0;g<d;++g)(h=u[g])&&(n.push(e.call(h,h.__data__,g,u)),o.push(h));return new Ue(n,o)}function ms(e){return function(){return this.matches(e)}}function ws(e){return function(A){return A.matches(e)}}var cd=Array.prototype.find;function ud(e){return function(){return cd.call(this.children,e)}}function dd(){return this.firstElementChild}function fd(e){return this.select(e==null?dd:ud(typeof e=="function"?e:ws(e)))}var gd=Array.prototype.filter;function hd(){return Array.from(this.children)}function Bd(e){return function(){return gd.call(this.children,e)}}function pd(e){return this.selectAll(e==null?hd:Bd(typeof e=="function"?e:ws(e)))}function md(e){typeof e!="function"&&(e=ms(e));for(var A=this._groups,t=A.length,n=new Array(t),o=0;o<t;++o)for(var a=A[o],u=a.length,d=n[o]=[],h,g=0;g<u;++g)(h=a[g])&&e.call(h,h.__data__,g,a)&&d.push(h);return new Ue(n,this._parents)}function Cs(e){return new Array(e.length)}function wd(){return new Ue(this._enter||this._groups.map(Cs),this._parents)}function or(e,A){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=A}or.prototype={constructor:or,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 Cd(e){return function(){return e}}function vd(e,A,t,n,o,a){for(var u=0,d,h=A.length,g=a.length;u<g;++u)(d=A[u])?(d.__data__=a[u],n[u]=d):t[u]=new or(e,a[u]);for(;u<h;++u)(d=A[u])&&(o[u]=d)}function yd(e,A,t,n,o,a,u){var d,h,g=new Map,B=A.length,w=a.length,m=new Array(B),v;for(d=0;d<B;++d)(h=A[d])&&(m[d]=v=u.call(h,h.__data__,d,A)+"",g.has(v)?o[d]=h:g.set(v,h));for(d=0;d<w;++d)v=u.call(e,a[d],d,a)+"",(h=g.get(v))?(n[d]=h,h.__data__=a[d],g.delete(v)):t[d]=new or(e,a[d]);for(d=0;d<B;++d)(h=A[d])&&g.get(m[d])===h&&(o[d]=h)}function Qd(e){return e.__data__}function Ed(e,A){if(!arguments.length)return Array.from(this,Qd);var t=A?yd:vd,n=this._parents,o=this._groups;typeof e!="function"&&(e=Cd(e));for(var a=o.length,u=new Array(a),d=new Array(a),h=new Array(a),g=0;g<a;++g){var B=n[g],w=o[g],m=w.length,v=Ud(e.call(B,B&&B.__data__,g,n)),Q=v.length,H=d[g]=new Array(Q),N=u[g]=new Array(Q);t(B,w,H,N,h[g]=new Array(m),v,A);for(var T=0,M=0,U,K;T<Q;++T)if(U=H[T]){for(T>=M&&(M=T+1);!(K=N[M])&&++M<Q;);U._next=K||null}}return u=new Ue(u,n),u._enter=d,u._exit=h,u}function Ud(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Fd(){return new Ue(this._exit||this._groups.map(Cs),this._parents)}function bd(e,A,t){var n=this.enter(),o=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),A!=null&&(o=A(o),o&&(o=o.selection())),t==null?a.remove():t(a),n&&o?n.merge(o).order():o}function Hd(e){for(var A=e.selection?e.selection():e,t=this._groups,n=A._groups,o=t.length,a=n.length,u=Math.min(o,a),d=new Array(o),h=0;h<u;++h)for(var g=t[h],B=n[h],w=g.length,m=d[h]=new Array(w),v,Q=0;Q<w;++Q)(v=g[Q]||B[Q])&&(m[Q]=v);for(;h<o;++h)d[h]=t[h];return new Ue(d,this._parents)}function Id(){for(var e=this._groups,A=-1,t=e.length;++A<t;)for(var n=e[A],o=n.length-1,a=n[o],u;--o>=0;)(u=n[o])&&(a&&u.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(u,a),a=u);return this}function _d(e){e||(e=Sd);function A(w,m){return w&&m?e(w.__data__,m.__data__):!w-!m}for(var t=this._groups,n=t.length,o=new Array(n),a=0;a<n;++a){for(var u=t[a],d=u.length,h=o[a]=new Array(d),g,B=0;B<d;++B)(g=u[B])&&(h[B]=g);h.sort(A)}return new Ue(o,this._parents).order()}function Sd(e,A){return e<A?-1:e>A?1:e>=A?0:NaN}function xd(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Dd(){return Array.from(this)}function Nd(){for(var e=this._groups,A=0,t=e.length;A<t;++A)for(var n=e[A],o=0,a=n.length;o<a;++o){var u=n[o];if(u)return u}return null}function Ld(){let e=0;for(const A of this)++e;return e}function Td(){return!this.node()}function kd(e){for(var A=this._groups,t=0,n=A.length;t<n;++t)for(var o=A[t],a=0,u=o.length,d;a<u;++a)(d=o[a])&&e.call(d,d.__data__,a,o);return this}function Md(e){return function(){this.removeAttribute(e)}}function Kd(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Od(e,A){return function(){this.setAttribute(e,A)}}function Rd(e,A){return function(){this.setAttributeNS(e.space,e.local,A)}}function Vd(e,A){return function(){var t=A.apply(this,arguments);t==null?this.removeAttribute(e):this.setAttribute(e,t)}}function Pd(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 Gd(e,A){var t=rr(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?Kd:Md:typeof A=="function"?t.local?Pd:Vd:t.local?Rd:Od)(t,A))}function vs(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function zd(e){return function(){this.style.removeProperty(e)}}function Xd(e,A,t){return function(){this.style.setProperty(e,A,t)}}function $d(e,A,t){return function(){var n=A.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,t)}}function Wd(e,A,t){return arguments.length>1?this.each((A==null?zd:typeof A=="function"?$d:Xd)(e,A,t??"")):Xt(this.node(),e)}function Xt(e,A){return e.style.getPropertyValue(A)||vs(e).getComputedStyle(e,null).getPropertyValue(A)}function Yd(e){return function(){delete this[e]}}function Jd(e,A){return function(){this[e]=A}}function Zd(e,A){return function(){var t=A.apply(this,arguments);t==null?delete this[e]:this[e]=t}}function jd(e,A){return arguments.length>1?this.each((A==null?Yd:typeof A=="function"?Zd:Jd)(e,A)):this.node()[e]}function ys(e){return e.trim().split(/^|\s+/)}function Ko(e){return e.classList||new Qs(e)}function Qs(e){this._node=e,this._names=ys(e.getAttribute("class")||"")}Qs.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 Es(e,A){for(var t=Ko(e),n=-1,o=A.length;++n<o;)t.add(A[n])}function Us(e,A){for(var t=Ko(e),n=-1,o=A.length;++n<o;)t.remove(A[n])}function qd(e){return function(){Es(this,e)}}function Af(e){return function(){Us(this,e)}}function ef(e,A){return function(){(A.apply(this,arguments)?Es:Us)(this,e)}}function tf(e,A){var t=ys(e+"");if(arguments.length<2){for(var n=Ko(this.node()),o=-1,a=t.length;++o<a;)if(!n.contains(t[o]))return!1;return!0}return this.each((typeof A=="function"?ef:A?qd:Af)(t,A))}function nf(){this.textContent=""}function rf(e){return function(){this.textContent=e}}function of(e){return function(){var A=e.apply(this,arguments);this.textContent=A??""}}function sf(e){return arguments.length?this.each(e==null?nf:(typeof e=="function"?of:rf)(e)):this.node().textContent}function af(){this.innerHTML=""}function lf(e){return function(){this.innerHTML=e}}function cf(e){return function(){var A=e.apply(this,arguments);this.innerHTML=A??""}}function uf(e){return arguments.length?this.each(e==null?af:(typeof e=="function"?cf:lf)(e)):this.node().innerHTML}function df(){this.nextSibling&&this.parentNode.appendChild(this)}function ff(){return this.each(df)}function gf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function hf(){return this.each(gf)}function Bf(e){var A=typeof e=="function"?e:Bs(e);return this.select(function(){return this.appendChild(A.apply(this,arguments))})}function pf(){return null}function mf(e,A){var t=typeof e=="function"?e:Bs(e),n=A==null?pf:typeof A=="function"?A:Mo(A);return this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})}function wf(){var e=this.parentNode;e&&e.removeChild(this)}function Cf(){return this.each(wf)}function vf(){var e=this.cloneNode(!1),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function yf(){var e=this.cloneNode(!0),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function Qf(e){return this.select(e?yf:vf)}function Ef(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Uf(e){return function(A){e.call(this,A,this.__data__)}}function Ff(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 bf(e){return function(){var A=this.__on;if(A){for(var t=0,n=-1,o=A.length,a;t<o;++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 Hf(e,A,t){return function(){var n=this.__on,o,a=Uf(A);if(n){for(var u=0,d=n.length;u<d;++u)if((o=n[u]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=a,o.options=t),o.value=A;return}}this.addEventListener(e.type,a,t),o={type:e.type,name:e.name,value:A,listener:a,options:t},n?n.push(o):this.__on=[o]}}function If(e,A,t){var n=Ff(e+""),o,a=n.length,u;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,g=d.length,B;h<g;++h)for(o=0,B=d[h];o<a;++o)if((u=n[o]).type===B.type&&u.name===B.name)return B.value}return}for(d=A?Hf:bf,o=0;o<a;++o)this.each(d(n[o],A,t));return this}function Fs(e,A,t){var n=vs(e),o=n.CustomEvent;typeof o=="function"?o=new o(A,t):(o=n.document.createEvent("Event"),t?(o.initEvent(A,t.bubbles,t.cancelable),o.detail=t.detail):o.initEvent(A,!1,!1)),e.dispatchEvent(o)}function _f(e,A){return function(){return Fs(this,e,A)}}function Sf(e,A){return function(){return Fs(this,e,A.apply(this,arguments))}}function xf(e,A){return this.each((typeof A=="function"?Sf:_f)(e,A))}function*Df(){for(var e=this._groups,A=0,t=e.length;A<t;++A)for(var n=e[A],o=0,a=n.length,u;o<a;++o)(u=n[o])&&(yield u)}var bs=[null];function Ue(e,A){this._groups=e,this._parents=A}function wn(){return new Ue([[document.documentElement]],bs)}function Nf(){return this}Ue.prototype=wn.prototype={constructor:Ue,select:od,selectAll:ld,selectChild:fd,selectChildren:pd,filter:md,data:Ed,enter:wd,exit:Fd,join:bd,merge:Hd,selection:Nf,order:Id,sort:_d,call:xd,nodes:Dd,node:Nd,size:Ld,empty:Td,each:kd,attr:Gd,style:Wd,property:jd,classed:tf,text:sf,html:uf,raise:ff,lower:hf,append:Bf,insert:mf,remove:Cf,clone:Qf,datum:Ef,on:If,dispatch:xf,[Symbol.iterator]:Df};function Ne(e){return typeof e=="string"?new Ue([[document.querySelector(e)]],[document.documentElement]):new Ue([[e]],bs)}function Lf(e){let A;for(;A=e.sourceEvent;)e=A;return e}function Oe(e,A){if(e=Lf(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 o=A.getBoundingClientRect();return[e.clientX-o.left-A.clientLeft,e.clientY-o.top-A.clientTop]}}return[e.pageX,e.pageY]}var Tf={passive:!1},Cn={capture:!0,passive:!1};function Oo(e){e.stopImmediatePropagation()}function $t(e){e.preventDefault(),e.stopImmediatePropagation()}function Hs(e){var A=e.document.documentElement,t=Ne(e).on("dragstart.drag",$t,Cn);"onselectstart"in A?t.on("selectstart.drag",$t,Cn):(A.__noselect=A.style.MozUserSelect,A.style.MozUserSelect="none")}function Is(e,A){var t=e.document.documentElement,n=Ne(e).on("dragstart.drag",null);A&&(n.on("click.drag",$t,Cn),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 ir=e=>()=>e;function Ro(e,{sourceEvent:A,subject:t,target:n,identifier:o,active:a,x:u,y:d,dx:h,dy:g,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:o,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:h,enumerable:!0,configurable:!0},dy:{value:g,enumerable:!0,configurable:!0},_:{value:B}})}Ro.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function kf(e){return!e.ctrlKey&&!e.button}function Mf(){return this.parentNode}function Kf(e,A){return A??{x:e.x,y:e.y}}function Of(){return navigator.maxTouchPoints||"ontouchstart"in this}function Rf(){var e=kf,A=Mf,t=Kf,n=Of,o={},a=tr("start","drag","end"),u=0,d,h,g,B,w=0;function m(K){K.on("mousedown.drag",v).filter(n).on("touchstart.drag",N).on("touchmove.drag",T,Tf).on("touchend.drag touchcancel.drag",M).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(K,eA){if(!(B||!e.call(this,K,eA))){var W=U(this,A.call(this,K,eA),K,eA,"mouse");W&&(Ne(K.view).on("mousemove.drag",Q,Cn).on("mouseup.drag",H,Cn),Hs(K.view),Oo(K),g=!1,d=K.clientX,h=K.clientY,W("start",K))}}function Q(K){if($t(K),!g){var eA=K.clientX-d,W=K.clientY-h;g=eA*eA+W*W>w}o.mouse("drag",K)}function H(K){Ne(K.view).on("mousemove.drag mouseup.drag",null),Is(K.view,g),$t(K),o.mouse("end",K)}function N(K,eA){if(e.call(this,K,eA)){var W=K.changedTouches,iA=A.call(this,K,eA),lA=W.length,nA,tA;for(nA=0;nA<lA;++nA)(tA=U(this,iA,K,eA,W[nA].identifier,W[nA]))&&(Oo(K),tA("start",K,W[nA]))}}function T(K){var eA=K.changedTouches,W=eA.length,iA,lA;for(iA=0;iA<W;++iA)(lA=o[eA[iA].identifier])&&($t(K),lA("drag",K,eA[iA]))}function M(K){var eA=K.changedTouches,W=eA.length,iA,lA;for(B&&clearTimeout(B),B=setTimeout(function(){B=null},500),iA=0;iA<W;++iA)(lA=o[eA[iA].identifier])&&(Oo(K),lA("end",K,eA[iA]))}function U(K,eA,W,iA,lA,nA){var tA=a.copy(),q=Oe(nA||W,eA),k,sA,I;if((I=t.call(K,new Ro("beforestart",{sourceEvent:W,target:m,identifier:lA,active:u,x:q[0],y:q[1],dx:0,dy:0,dispatch:tA}),iA))!=null)return k=I.x-q[0]||0,sA=I.y-q[1]||0,function Y(F,S,P){var R=q,z;switch(F){case"start":o[lA]=Y,z=u++;break;case"end":delete o[lA],--u;case"drag":q=Oe(P||S,eA),z=u;break}tA.call(F,K,new Ro(F,{sourceEvent:S,subject:I,target:m,identifier:lA,active:z,x:q[0]+k,y:q[1]+sA,dx:q[0]-R[0],dy:q[1]-R[1],dispatch:tA}),iA)}}return m.filter=function(K){return arguments.length?(e=typeof K=="function"?K:ir(!!K),m):e},m.container=function(K){return arguments.length?(A=typeof K=="function"?K:ir(K),m):A},m.subject=function(K){return arguments.length?(t=typeof K=="function"?K:ir(K),m):t},m.touchable=function(K){return arguments.length?(n=typeof K=="function"?K:ir(!!K),m):n},m.on=function(){var K=a.on.apply(a,arguments);return K===a?m:K},m.clickDistance=function(K){return arguments.length?(w=(K=+K)*K,m):Math.sqrt(w)},m}function Vo(e,A,t){e.prototype=A.prototype=t,t.constructor=e}function _s(e,A){var t=Object.create(e.prototype);for(var n in A)t[n]=A[n];return t}function vn(){}var yn=.7,sr=1/yn,Wt="\\s*([+-]?\\d+)\\s*",Qn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Re="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vf=/^#([0-9a-f]{3,8})$/,Pf=new RegExp(`^rgb\\(${Wt},${Wt},${Wt}\\)$`),Gf=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),zf=new RegExp(`^rgba\\(${Wt},${Wt},${Wt},${Qn}\\)$`),Xf=new RegExp(`^rgba\\(${Re},${Re},${Re},${Qn}\\)$`),$f=new RegExp(`^hsl\\(${Qn},${Re},${Re}\\)$`),Wf=new RegExp(`^hsla\\(${Qn},${Re},${Re},${Qn}\\)$`),Ss={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};Vo(vn,It,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:xs,formatHex:xs,formatHex8:Yf,formatHsl:Jf,formatRgb:Ds,toString:Ds});function xs(){return this.rgb().formatHex()}function Yf(){return this.rgb().formatHex8()}function Jf(){return Ms(this).formatHsl()}function Ds(){return this.rgb().formatRgb()}function It(e){var A,t;return e=(e+"").trim().toLowerCase(),(A=Vf.exec(e))?(t=A[1].length,A=parseInt(A[1],16),t===6?Ns(A):t===3?new we(A>>8&15|A>>4&240,A>>4&15|A&240,(A&15)<<4|A&15,1):t===8?ar(A>>24&255,A>>16&255,A>>8&255,(A&255)/255):t===4?ar(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=Pf.exec(e))?new we(A[1],A[2],A[3],1):(A=Gf.exec(e))?new we(A[1]*255/100,A[2]*255/100,A[3]*255/100,1):(A=zf.exec(e))?ar(A[1],A[2],A[3],A[4]):(A=Xf.exec(e))?ar(A[1]*255/100,A[2]*255/100,A[3]*255/100,A[4]):(A=$f.exec(e))?ks(A[1],A[2]/100,A[3]/100,1):(A=Wf.exec(e))?ks(A[1],A[2]/100,A[3]/100,A[4]):Ss.hasOwnProperty(e)?Ns(Ss[e]):e==="transparent"?new we(NaN,NaN,NaN,0):null}function Ns(e){return new we(e>>16&255,e>>8&255,e&255,1)}function ar(e,A,t,n){return n<=0&&(e=A=t=NaN),new we(e,A,t,n)}function Zf(e){return e instanceof vn||(e=It(e)),e?(e=e.rgb(),new we(e.r,e.g,e.b,e.opacity)):new we}function Po(e,A,t,n){return arguments.length===1?Zf(e):new we(e,A,t,n??1)}function we(e,A,t,n){this.r=+e,this.g=+A,this.b=+t,this.opacity=+n}Vo(we,Po,_s(vn,{brighter(e){return e=e==null?sr:Math.pow(sr,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?yn:Math.pow(yn,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new we(_t(this.r),_t(this.g),_t(this.b),lr(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:Ls,formatHex:Ls,formatHex8:jf,formatRgb:Ts,toString:Ts}));function Ls(){return`#${St(this.r)}${St(this.g)}${St(this.b)}`}function jf(){return`#${St(this.r)}${St(this.g)}${St(this.b)}${St((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ts(){const e=lr(this.opacity);return`${e===1?"rgb(":"rgba("}${_t(this.r)}, ${_t(this.g)}, ${_t(this.b)}${e===1?")":`, ${e})`}`}function lr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _t(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function St(e){return e=_t(e),(e<16?"0":"")+e.toString(16)}function ks(e,A,t,n){return n<=0?e=A=t=NaN:t<=0||t>=1?e=A=NaN:A<=0&&(e=NaN),new Le(e,A,t,n)}function Ms(e){if(e instanceof Le)return new Le(e.h,e.s,e.l,e.opacity);if(e instanceof vn||(e=It(e)),!e)return new Le;if(e instanceof Le)return e;e=e.rgb();var A=e.r/255,t=e.g/255,n=e.b/255,o=Math.min(A,t,n),a=Math.max(A,t,n),u=NaN,d=a-o,h=(a+o)/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/=h<.5?a+o:2-a-o,u*=60):d=h>0&&h<1?0:u,new Le(u,d,h,e.opacity)}function qf(e,A,t,n){return arguments.length===1?Ms(e):new Le(e,A,t,n??1)}function Le(e,A,t,n){this.h=+e,this.s=+A,this.l=+t,this.opacity=+n}Vo(Le,qf,_s(vn,{brighter(e){return e=e==null?sr:Math.pow(sr,e),new Le(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?yn:Math.pow(yn,e),new Le(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,o=2*t-n;return new we(Go(e>=240?e-240:e+120,o,n),Go(e,o,n),Go(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Le(Ks(this.h),cr(this.s),cr(this.l),lr(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=lr(this.opacity);return`${e===1?"hsl(":"hsla("}${Ks(this.h)}, ${cr(this.s)*100}%, ${cr(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ks(e){return e=(e||0)%360,e<0?e+360:e}function cr(e){return Math.max(0,Math.min(1,e||0))}function Go(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 zo=e=>()=>e;function Ag(e,A){return function(t){return e+t*A}}function eg(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 tg(e){return(e=+e)==1?Os:function(A,t){return t-A?eg(A,t,e):zo(isNaN(A)?t:A)}}function Os(e,A){var t=A-e;return t?Ag(e,t):zo(isNaN(e)?A:e)}var ur=(function e(A){var t=tg(A);function n(o,a){var u=t((o=Po(o)).r,(a=Po(a)).r),d=t(o.g,a.g),h=t(o.b,a.b),g=Os(o.opacity,a.opacity);return function(B){return o.r=u(B),o.g=d(B),o.b=h(B),o.opacity=g(B),o+""}}return n.gamma=e,n})(1);function ng(e,A){A||(A=[]);var t=e?Math.min(A.length,e.length):0,n=A.slice(),o;return function(a){for(o=0;o<t;++o)n[o]=e[o]*(1-a)+A[o]*a;return n}}function rg(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function og(e,A){var t=A?A.length:0,n=e?Math.min(t,e.length):0,o=new Array(n),a=new Array(t),u;for(u=0;u<n;++u)o[u]=En(e[u],A[u]);for(;u<t;++u)a[u]=A[u];return function(d){for(u=0;u<n;++u)a[u]=o[u](d);return a}}function ig(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 sg(e,A){var t={},n={},o;(e===null||typeof e!="object")&&(e={}),(A===null||typeof A!="object")&&(A={});for(o in A)o in e?t[o]=En(e[o],A[o]):n[o]=A[o];return function(a){for(o in t)n[o]=t[o](a);return n}}var Xo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$o=new RegExp(Xo.source,"g");function ag(e){return function(){return e}}function lg(e){return function(A){return e(A)+""}}function Rs(e,A){var t=Xo.lastIndex=$o.lastIndex=0,n,o,a,u=-1,d=[],h=[];for(e=e+"",A=A+"";(n=Xo.exec(e))&&(o=$o.exec(A));)(a=o.index)>t&&(a=A.slice(t,a),d[u]?d[u]+=a:d[++u]=a),(n=n[0])===(o=o[0])?d[u]?d[u]+=o:d[++u]=o:(d[++u]=null,h.push({i:u,x:Ve(n,o)})),t=$o.lastIndex;return t<A.length&&(a=A.slice(t),d[u]?d[u]+=a:d[++u]=a),d.length<2?h[0]?lg(h[0].x):ag(A):(A=h.length,function(g){for(var B=0,w;B<A;++B)d[(w=h[B]).i]=w.x(g);return d.join("")})}function En(e,A){var t=typeof A,n;return A==null||t==="boolean"?zo(A):(t==="number"?Ve:t==="string"?(n=It(A))?(A=n,ur):Rs:A instanceof It?ur:A instanceof Date?ig:rg(A)?ng:Array.isArray(A)?og:typeof A.valueOf!="function"&&typeof A.toString!="function"||isNaN(A)?sg:Ve)(e,A)}var Vs=180/Math.PI,Wo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ps(e,A,t,n,o,a){var u,d,h;return(u=Math.sqrt(e*e+A*A))&&(e/=u,A/=u),(h=e*t+A*n)&&(t-=e*h,n-=A*h),(d=Math.sqrt(t*t+n*n))&&(t/=d,n/=d,h/=d),e*n<A*t&&(e=-e,A=-A,h=-h,u=-u),{translateX:o,translateY:a,rotate:Math.atan2(A,e)*Vs,skewX:Math.atan(h)*Vs,scaleX:u,scaleY:d}}var dr;function cg(e){const A=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return A.isIdentity?Wo:Ps(A.a,A.b,A.c,A.d,A.e,A.f)}function ug(e){return e==null||(dr||(dr=document.createElementNS("http://www.w3.org/2000/svg","g")),dr.setAttribute("transform",e),!(e=dr.transform.baseVal.consolidate()))?Wo:(e=e.matrix,Ps(e.a,e.b,e.c,e.d,e.e,e.f))}function Gs(e,A,t,n){function o(g){return g.length?g.pop()+" ":""}function a(g,B,w,m,v,Q){if(g!==w||B!==m){var H=v.push("translate(",null,A,null,t);Q.push({i:H-4,x:Ve(g,w)},{i:H-2,x:Ve(B,m)})}else(w||m)&&v.push("translate("+w+A+m+t)}function u(g,B,w,m){g!==B?(g-B>180?B+=360:B-g>180&&(g+=360),m.push({i:w.push(o(w)+"rotate(",null,n)-2,x:Ve(g,B)})):B&&w.push(o(w)+"rotate("+B+n)}function d(g,B,w,m){g!==B?m.push({i:w.push(o(w)+"skewX(",null,n)-2,x:Ve(g,B)}):B&&w.push(o(w)+"skewX("+B+n)}function h(g,B,w,m,v,Q){if(g!==w||B!==m){var H=v.push(o(v)+"scale(",null,",",null,")");Q.push({i:H-4,x:Ve(g,w)},{i:H-2,x:Ve(B,m)})}else(w!==1||m!==1)&&v.push(o(v)+"scale("+w+","+m+")")}return function(g,B){var w=[],m=[];return g=e(g),B=e(B),a(g.translateX,g.translateY,B.translateX,B.translateY,w,m),u(g.rotate,B.rotate,w,m),d(g.skewX,B.skewX,w,m),h(g.scaleX,g.scaleY,B.scaleX,B.scaleY,w,m),g=B=null,function(v){for(var Q=-1,H=m.length,N;++Q<H;)w[(N=m[Q]).i]=N.x(v);return w.join("")}}}var dg=Gs(cg,"px, ","px)","deg)"),fg=Gs(ug,", ",")",")"),gg=1e-12;function zs(e){return((e=Math.exp(e))+1/e)/2}function hg(e){return((e=Math.exp(e))-1/e)/2}function Bg(e){return((e=Math.exp(2*e))-1)/(e+1)}var fr=(function e(A,t,n){function o(a,u){var d=a[0],h=a[1],g=a[2],B=u[0],w=u[1],m=u[2],v=B-d,Q=w-h,H=v*v+Q*Q,N,T;if(H<gg)T=Math.log(m/g)/A,N=function(W){return[d+W*v,h+W*Q,g*Math.exp(A*W*T)]};else{var M=Math.sqrt(H),U=(m*m-g*g+n*H)/(2*g*t*M),K=(m*m-g*g-n*H)/(2*m*t*M),eA=Math.log(Math.sqrt(U*U+1)-U);T=(Math.log(Math.sqrt(K*K+1)-K)-eA)/A,N=function(W){var iA=W*T,lA=zs(eA),nA=g/(t*M)*(lA*Bg(A*iA+eA)-hg(eA));return[d+nA*v,h+nA*Q,g*lA/zs(A*iA+eA)]}}return N.duration=T*1e3*A/Math.SQRT2,N}return o.rho=function(a){var u=Math.max(.001,+a),d=u*u;return e(u,d,d*d)},o})(Math.SQRT2,2,4),Yt=0,Un=0,Fn=0,Xs=1e3,gr,bn,hr=0,xt=0,Br=0,Hn=typeof performance=="object"&&performance.now?performance:Date,$s=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Yo(){return xt||($s(pg),xt=Hn.now()+Br)}function pg(){xt=0}function pr(){this._call=this._time=this._next=null}pr.prototype=Ws.prototype={constructor:pr,restart:function(e,A,t){if(typeof e!="function")throw new TypeError("callback is not a function");t=(t==null?Yo():+t)+(A==null?0:+A),!this._next&&bn!==this&&(bn?bn._next=this:gr=this,bn=this),this._call=e,this._time=t,Jo()},stop:function(){this._call&&(this._call=null,this._time=1/0,Jo())}};function Ws(e,A,t){var n=new pr;return n.restart(e,A,t),n}function mg(){Yo(),++Yt;for(var e=gr,A;e;)(A=xt-e._time)>=0&&e._call.call(void 0,A),e=e._next;--Yt}function Ys(){xt=(hr=Hn.now())+Br,Yt=Un=0;try{mg()}finally{Yt=0,Cg(),xt=0}}function wg(){var e=Hn.now(),A=e-hr;A>Xs&&(Br-=A,hr=e)}function Cg(){for(var e,A=gr,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:gr=t);bn=e,Jo(n)}function Jo(e){Yt||(Un&&(Un=clearTimeout(Un)),e-xt>24?(e<1/0&&(Un=setTimeout(Ys,e-Hn.now()-Br)),Fn&&(Fn=clearInterval(Fn))):(Fn||(hr=Hn.now(),Fn=setInterval(wg,Xs)),Yt=1,$s(Ys)))}function Js(e,A,t){var n=new pr;return A=A==null?0:+A,n.restart(o=>{n.stop(),e(o+A)},A,t),n}var vg=tr("start","end","cancel","interrupt"),yg=[],Zs=0,js=1,Zo=2,mr=3,qs=4,jo=5,wr=6;function Cr(e,A,t,n,o,a){var u=e.__transition;if(!u)e.__transition={};else if(t in u)return;Qg(e,t,{name:A,index:n,group:o,on:vg,tween:yg,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Zs})}function qo(e,A){var t=Te(e,A);if(t.state>Zs)throw new Error("too late; already scheduled");return t}function Pe(e,A){var t=Te(e,A);if(t.state>mr)throw new Error("too late; already running");return t}function Te(e,A){var t=e.__transition;if(!t||!(t=t[A]))throw new Error("transition not found");return t}function Qg(e,A,t){var n=e.__transition,o;n[A]=t,t.timer=Ws(a,0,t.time);function a(g){t.state=js,t.timer.restart(u,t.delay,t.time),t.delay<=g&&u(g-t.delay)}function u(g){var B,w,m,v;if(t.state!==js)return h();for(B in n)if(v=n[B],v.name===t.name){if(v.state===mr)return Js(u);v.state===qs?(v.state=wr,v.timer.stop(),v.on.call("interrupt",e,e.__data__,v.index,v.group),delete n[B]):+B<A&&(v.state=wr,v.timer.stop(),v.on.call("cancel",e,e.__data__,v.index,v.group),delete n[B])}if(Js(function(){t.state===mr&&(t.state=qs,t.timer.restart(d,t.delay,t.time),d(g))}),t.state=Zo,t.on.call("start",e,e.__data__,t.index,t.group),t.state===Zo){for(t.state=mr,o=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))&&(o[++w]=v);o.length=w+1}}function d(g){for(var B=g<t.duration?t.ease.call(null,g/t.duration):(t.timer.restart(h),t.state=jo,1),w=-1,m=o.length;++w<m;)o[w].call(e,B);t.state===jo&&(t.on.call("end",e,e.__data__,t.index,t.group),h())}function h(){t.state=wr,t.timer.stop(),delete n[A];for(var g in n)return;delete e.__transition}}function vr(e,A){var t=e.__transition,n,o,a=!0,u;if(t){A=A==null?null:A+"";for(u in t){if((n=t[u]).name!==A){a=!1;continue}o=n.state>Zo&&n.state<jo,n.state=wr,n.timer.stop(),n.on.call(o?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete t[u]}a&&delete e.__transition}}function Eg(e){return this.each(function(){vr(this,e)})}function Ug(e,A){var t,n;return function(){var o=Pe(this,e),a=o.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}}o.tween=n}}function Fg(e,A,t){var n,o;if(typeof t!="function")throw new Error;return function(){var a=Pe(this,e),u=a.tween;if(u!==n){o=(n=u).slice();for(var d={name:A,value:t},h=0,g=o.length;h<g;++h)if(o[h].name===A){o[h]=d;break}h===g&&o.push(d)}a.tween=o}}function bg(e,A){var t=this._id;if(e+="",arguments.length<2){for(var n=Te(this.node(),t).tween,o=0,a=n.length,u;o<a;++o)if((u=n[o]).name===e)return u.value;return null}return this.each((A==null?Ug:Fg)(t,e,A))}function Ai(e,A,t){var n=e._id;return e.each(function(){var o=Pe(this,n);(o.value||(o.value={}))[A]=t.apply(this,arguments)}),function(o){return Te(o,n).value[A]}}function Aa(e,A){var t;return(typeof A=="number"?Ve:A instanceof It?ur:(t=It(A))?(A=t,ur):Rs)(e,A)}function Hg(e){return function(){this.removeAttribute(e)}}function Ig(e){return function(){this.removeAttributeNS(e.space,e.local)}}function _g(e,A,t){var n,o=t+"",a;return function(){var u=this.getAttribute(e);return u===o?null:u===n?a:a=A(n=u,t)}}function Sg(e,A,t){var n,o=t+"",a;return function(){var u=this.getAttributeNS(e.space,e.local);return u===o?null:u===n?a:a=A(n=u,t)}}function xg(e,A,t){var n,o,a;return function(){var u,d=t(this),h;return d==null?void this.removeAttribute(e):(u=this.getAttribute(e),h=d+"",u===h?null:u===n&&h===o?a:(o=h,a=A(n=u,d)))}}function Dg(e,A,t){var n,o,a;return function(){var u,d=t(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(u=this.getAttributeNS(e.space,e.local),h=d+"",u===h?null:u===n&&h===o?a:(o=h,a=A(n=u,d)))}}function Ng(e,A){var t=rr(e),n=t==="transform"?fg:Aa;return this.attrTween(e,typeof A=="function"?(t.local?Dg:xg)(t,n,Ai(this,"attr."+e,A)):A==null?(t.local?Ig:Hg)(t):(t.local?Sg:_g)(t,n,A))}function Lg(e,A){return function(t){this.setAttribute(e,A.call(this,t))}}function Tg(e,A){return function(t){this.setAttributeNS(e.space,e.local,A.call(this,t))}}function kg(e,A){var t,n;function o(){var a=A.apply(this,arguments);return a!==n&&(t=(n=a)&&Tg(e,a)),t}return o._value=A,o}function Mg(e,A){var t,n;function o(){var a=A.apply(this,arguments);return a!==n&&(t=(n=a)&&Lg(e,a)),t}return o._value=A,o}function Kg(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=rr(e);return this.tween(t,(n.local?kg:Mg)(n,A))}function Og(e,A){return function(){qo(this,e).delay=+A.apply(this,arguments)}}function Rg(e,A){return A=+A,function(){qo(this,e).delay=A}}function Vg(e){var A=this._id;return arguments.length?this.each((typeof e=="function"?Og:Rg)(A,e)):Te(this.node(),A).delay}function Pg(e,A){return function(){Pe(this,e).duration=+A.apply(this,arguments)}}function Gg(e,A){return A=+A,function(){Pe(this,e).duration=A}}function zg(e){var A=this._id;return arguments.length?this.each((typeof e=="function"?Pg:Gg)(A,e)):Te(this.node(),A).duration}function Xg(e,A){if(typeof A!="function")throw new Error;return function(){Pe(this,e).ease=A}}function $g(e){var A=this._id;return arguments.length?this.each(Xg(A,e)):Te(this.node(),A).ease}function Wg(e,A){return function(){var t=A.apply(this,arguments);if(typeof t!="function")throw new Error;Pe(this,e).ease=t}}function Yg(e){if(typeof e!="function")throw new Error;return this.each(Wg(this._id,e))}function Jg(e){typeof e!="function"&&(e=ms(e));for(var A=this._groups,t=A.length,n=new Array(t),o=0;o<t;++o)for(var a=A[o],u=a.length,d=n[o]=[],h,g=0;g<u;++g)(h=a[g])&&e.call(h,h.__data__,g,a)&&d.push(h);return new Ze(n,this._parents,this._name,this._id)}function Zg(e){if(e._id!==this._id)throw new Error;for(var A=this._groups,t=e._groups,n=A.length,o=t.length,a=Math.min(n,o),u=new Array(n),d=0;d<a;++d)for(var h=A[d],g=t[d],B=h.length,w=u[d]=new Array(B),m,v=0;v<B;++v)(m=h[v]||g[v])&&(w[v]=m);for(;d<n;++d)u[d]=A[d];return new Ze(u,this._parents,this._name,this._id)}function jg(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 qg(e,A,t){var n,o,a=jg(A)?qo:Pe;return function(){var u=a(this,e),d=u.on;d!==n&&(o=(n=d).copy()).on(A,t),u.on=o}}function Ah(e,A){var t=this._id;return arguments.length<2?Te(this.node(),t).on.on(e):this.each(qg(t,e,A))}function eh(e){return function(){var A=this.parentNode;for(var t in this.__transition)if(+t!==e)return;A&&A.removeChild(this)}}function th(){return this.on("end.remove",eh(this._id))}function nh(e){var A=this._name,t=this._id;typeof e!="function"&&(e=Mo(e));for(var n=this._groups,o=n.length,a=new Array(o),u=0;u<o;++u)for(var d=n[u],h=d.length,g=a[u]=new Array(h),B,w,m=0;m<h;++m)(B=d[m])&&(w=e.call(B,B.__data__,m,d))&&("__data__"in B&&(w.__data__=B.__data__),g[m]=w,Cr(g[m],A,t,m,g,Te(B,t)));return new Ze(a,this._parents,A,t)}function rh(e){var A=this._name,t=this._id;typeof e!="function"&&(e=ps(e));for(var n=this._groups,o=n.length,a=[],u=[],d=0;d<o;++d)for(var h=n[d],g=h.length,B,w=0;w<g;++w)if(B=h[w]){for(var m=e.call(B,B.__data__,w,h),v,Q=Te(B,t),H=0,N=m.length;H<N;++H)(v=m[H])&&Cr(v,A,t,H,m,Q);a.push(m),u.push(B)}return new Ze(a,u,A,t)}var oh=wn.prototype.constructor;function ih(){return new oh(this._groups,this._parents)}function sh(e,A){var t,n,o;return function(){var a=Xt(this,e),u=(this.style.removeProperty(e),Xt(this,e));return a===u?null:a===t&&u===n?o:o=A(t=a,n=u)}}function ea(e){return function(){this.style.removeProperty(e)}}function ah(e,A,t){var n,o=t+"",a;return function(){var u=Xt(this,e);return u===o?null:u===n?a:a=A(n=u,t)}}function lh(e,A,t){var n,o,a;return function(){var u=Xt(this,e),d=t(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Xt(this,e))),u===h?null:u===n&&h===o?a:(o=h,a=A(n=u,d))}}function ch(e,A){var t,n,o,a="style."+A,u="end."+a,d;return function(){var h=Pe(this,e),g=h.on,B=h.value[a]==null?d||(d=ea(A)):void 0;(g!==t||o!==B)&&(n=(t=g).copy()).on(u,o=B),h.on=n}}function uh(e,A,t){var n=(e+="")=="transform"?dg:Aa;return A==null?this.styleTween(e,sh(e,n)).on("end.style."+e,ea(e)):typeof A=="function"?this.styleTween(e,lh(e,n,Ai(this,"style."+e,A))).each(ch(this._id,e)):this.styleTween(e,ah(e,n,A),t).on("end.style."+e,null)}function dh(e,A,t){return function(n){this.style.setProperty(e,A.call(this,n),t)}}function fh(e,A,t){var n,o;function a(){var u=A.apply(this,arguments);return u!==o&&(n=(o=u)&&dh(e,u,t)),n}return a._value=A,a}function gh(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,fh(e,A,t??""))}function hh(e){return function(){this.textContent=e}}function Bh(e){return function(){var A=e(this);this.textContent=A??""}}function ph(e){return this.tween("text",typeof e=="function"?Bh(Ai(this,"text",e)):hh(e==null?"":e+""))}function mh(e){return function(A){this.textContent=e.call(this,A)}}function wh(e){var A,t;function n(){var o=e.apply(this,arguments);return o!==t&&(A=(t=o)&&mh(o)),A}return n._value=e,n}function Ch(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,wh(e))}function vh(){for(var e=this._name,A=this._id,t=ta(),n=this._groups,o=n.length,a=0;a<o;++a)for(var u=n[a],d=u.length,h,g=0;g<d;++g)if(h=u[g]){var B=Te(h,A);Cr(h,e,t,g,u,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new Ze(n,this._parents,e,t)}function yh(){var e,A,t=this,n=t._id,o=t.size();return new Promise(function(a,u){var d={value:u},h={value:function(){--o===0&&a()}};t.each(function(){var g=Pe(this,n),B=g.on;B!==e&&(A=(e=B).copy(),A._.cancel.push(d),A._.interrupt.push(d),A._.end.push(h)),g.on=A}),o===0&&a()})}var Qh=0;function Ze(e,A,t,n){this._groups=e,this._parents=A,this._name=t,this._id=n}function ta(){return++Qh}var je=wn.prototype;Ze.prototype={constructor:Ze,select:nh,selectAll:rh,selectChild:je.selectChild,selectChildren:je.selectChildren,filter:Jg,merge:Zg,selection:ih,transition:vh,call:je.call,nodes:je.nodes,node:je.node,size:je.size,empty:je.empty,each:je.each,on:Ah,attr:Ng,attrTween:Kg,style:uh,styleTween:gh,text:ph,textTween:Ch,remove:th,tween:bg,delay:Vg,duration:zg,ease:$g,easeVarying:Yg,end:yh,[Symbol.iterator]:je[Symbol.iterator]};function Eh(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Uh={time:null,delay:0,duration:250,ease:Eh};function Fh(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 bh(e){var A,t;e instanceof Ze?(A=e._id,e=e._name):(A=ta(),(t=Uh).time=Yo(),e=e==null?null:e+"");for(var n=this._groups,o=n.length,a=0;a<o;++a)for(var u=n[a],d=u.length,h,g=0;g<d;++g)(h=u[g])&&Cr(h,e,A,g,u,t||Fh(h,A));return new Ze(n,this._parents,e,A)}wn.prototype.interrupt=Eg,wn.prototype.transition=bh;var yr=e=>()=>e;function Hh(e,{sourceEvent:A,target:t,transform:n,dispatch:o}){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:o}})}function qe(e,A,t){this.k=e,this.x=A,this.y=t}qe.prototype={constructor:qe,scale:function(e){return e===1?this:new qe(this.k*e,this.x,this.y)},translate:function(e,A){return e===0&A===0?this:new qe(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 Jt=new qe(1,0,0);qe.prototype;function ei(e){e.stopImmediatePropagation()}function In(e){e.preventDefault(),e.stopImmediatePropagation()}function Ih(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function _h(){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 na(){return this.__zoom||Jt}function Sh(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function xh(){return navigator.maxTouchPoints||"ontouchstart"in this}function Dh(e,A,t){var n=e.invertX(A[0][0])-t[0][0],o=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(o>n?(n+o)/2:Math.min(0,n)||Math.max(0,o),u>a?(a+u)/2:Math.min(0,a)||Math.max(0,u))}function Nh(){var e=Ih,A=_h,t=Dh,n=Sh,o=xh,a=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],d=250,h=fr,g=tr("start","zoom","end"),B,w,m,v=500,Q=150,H=0,N=10;function T(I){I.property("__zoom",na).on("wheel.zoom",lA,{passive:!1}).on("mousedown.zoom",nA).on("dblclick.zoom",tA).filter(o).on("touchstart.zoom",q).on("touchmove.zoom",k).on("touchend.zoom touchcancel.zoom",sA).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}T.transform=function(I,Y,F,S){var P=I.selection?I.selection():I;P.property("__zoom",na),I!==P?eA(I,Y,F,S):P.interrupt().each(function(){W(this,arguments).event(S).start().zoom(null,typeof Y=="function"?Y.apply(this,arguments):Y).end()})},T.scaleBy=function(I,Y,F,S){T.scaleTo(I,function(){return this.__zoom.k*(typeof Y=="function"?Y.apply(this,arguments):Y)},F,S)},T.scaleTo=function(I,Y,F,S){T.transform(I,function(){var P=A.apply(this,arguments),R=this.__zoom,z=F==null?K(P):typeof F=="function"?F.apply(this,arguments):F,J=R.invert(z),rA=typeof Y=="function"?Y.apply(this,arguments):Y;return t(U(M(R,rA),z,J),P,u)},F,S)},T.translateBy=function(I,Y,F,S){T.transform(I,function(){return t(this.__zoom.translate(typeof Y=="function"?Y.apply(this,arguments):Y,typeof F=="function"?F.apply(this,arguments):F),A.apply(this,arguments),u)},null,S)},T.translateTo=function(I,Y,F,S,P){T.transform(I,function(){var R=A.apply(this,arguments),z=this.__zoom,J=S==null?K(R):typeof S=="function"?S.apply(this,arguments):S;return t(Jt.translate(J[0],J[1]).scale(z.k).translate(typeof Y=="function"?-Y.apply(this,arguments):-Y,typeof F=="function"?-F.apply(this,arguments):-F),R,u)},S,P)};function M(I,Y){return Y=Math.max(a[0],Math.min(a[1],Y)),Y===I.k?I:new qe(Y,I.x,I.y)}function U(I,Y,F){var S=Y[0]-F[0]*I.k,P=Y[1]-F[1]*I.k;return S===I.x&&P===I.y?I:new qe(I.k,S,P)}function K(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function eA(I,Y,F,S){I.on("start.zoom",function(){W(this,arguments).event(S).start()}).on("interrupt.zoom end.zoom",function(){W(this,arguments).event(S).end()}).tween("zoom",function(){var P=this,R=arguments,z=W(P,R).event(S),J=A.apply(P,R),rA=F==null?K(J):typeof F=="function"?F.apply(P,R):F,dA=Math.max(J[1][0]-J[0][0],J[1][1]-J[0][1]),bA=P.__zoom,AA=typeof Y=="function"?Y.apply(P,R):Y,cA=h(bA.invert(rA).concat(dA/bA.k),AA.invert(rA).concat(dA/AA.k));return function(V){if(V===1)V=AA;else{var $=cA(V),uA=dA/$[2];V=new qe(uA,rA[0]-$[0]*uA,rA[1]-$[1]*uA)}z.zoom(null,V)}})}function W(I,Y,F){return!F&&I.__zooming||new iA(I,Y)}function iA(I,Y){this.that=I,this.args=Y,this.active=0,this.sourceEvent=null,this.extent=A.apply(I,Y),this.taps=0}iA.prototype={event:function(I){return I&&(this.sourceEvent=I),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(I,Y){return this.mouse&&I!=="mouse"&&(this.mouse[1]=Y.invert(this.mouse[0])),this.touch0&&I!=="touch"&&(this.touch0[1]=Y.invert(this.touch0[0])),this.touch1&&I!=="touch"&&(this.touch1[1]=Y.invert(this.touch1[0])),this.that.__zoom=Y,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(I){var Y=Ne(this.that).datum();g.call(I,this.that,new Hh(I,{sourceEvent:this.sourceEvent,target:T,type:I,transform:this.that.__zoom,dispatch:g}),Y)}};function lA(I,...Y){if(!e.apply(this,arguments))return;var F=W(this,Y).event(I),S=this.__zoom,P=Math.max(a[0],Math.min(a[1],S.k*Math.pow(2,n.apply(this,arguments)))),R=Oe(I);if(F.wheel)(F.mouse[0][0]!==R[0]||F.mouse[0][1]!==R[1])&&(F.mouse[1]=S.invert(F.mouse[0]=R)),clearTimeout(F.wheel);else{if(S.k===P)return;F.mouse=[R,S.invert(R)],vr(this),F.start()}In(I),F.wheel=setTimeout(z,Q),F.zoom("mouse",t(U(M(S,P),F.mouse[0],F.mouse[1]),F.extent,u));function z(){F.wheel=null,F.end()}}function nA(I,...Y){if(m||!e.apply(this,arguments))return;var F=I.currentTarget,S=W(this,Y,!0).event(I),P=Ne(I.view).on("mousemove.zoom",rA,!0).on("mouseup.zoom",dA,!0),R=Oe(I,F),z=I.clientX,J=I.clientY;Hs(I.view),ei(I),S.mouse=[R,this.__zoom.invert(R)],vr(this),S.start();function rA(bA){if(In(bA),!S.moved){var AA=bA.clientX-z,cA=bA.clientY-J;S.moved=AA*AA+cA*cA>H}S.event(bA).zoom("mouse",t(U(S.that.__zoom,S.mouse[0]=Oe(bA,F),S.mouse[1]),S.extent,u))}function dA(bA){P.on("mousemove.zoom mouseup.zoom",null),Is(bA.view,S.moved),In(bA),S.event(bA).end()}}function tA(I,...Y){if(e.apply(this,arguments)){var F=this.__zoom,S=Oe(I.changedTouches?I.changedTouches[0]:I,this),P=F.invert(S),R=F.k*(I.shiftKey?.5:2),z=t(U(M(F,R),S,P),A.apply(this,Y),u);In(I),d>0?Ne(this).transition().duration(d).call(eA,z,S,I):Ne(this).call(T.transform,z,S,I)}}function q(I,...Y){if(e.apply(this,arguments)){var F=I.touches,S=F.length,P=W(this,Y,I.changedTouches.length===S).event(I),R,z,J,rA;for(ei(I),z=0;z<S;++z)J=F[z],rA=Oe(J,this),rA=[rA,this.__zoom.invert(rA),J.identifier],P.touch0?!P.touch1&&P.touch0[2]!==rA[2]&&(P.touch1=rA,P.taps=0):(P.touch0=rA,R=!0,P.taps=1+!!B);B&&(B=clearTimeout(B)),R&&(P.taps<2&&(w=rA[0],B=setTimeout(function(){B=null},v)),vr(this),P.start())}}function k(I,...Y){if(this.__zooming){var F=W(this,Y).event(I),S=I.changedTouches,P=S.length,R,z,J,rA;for(In(I),R=0;R<P;++R)z=S[R],J=Oe(z,this),F.touch0&&F.touch0[2]===z.identifier?F.touch0[0]=J:F.touch1&&F.touch1[2]===z.identifier&&(F.touch1[0]=J);if(z=F.that.__zoom,F.touch1){var dA=F.touch0[0],bA=F.touch0[1],AA=F.touch1[0],cA=F.touch1[1],V=(V=AA[0]-dA[0])*V+(V=AA[1]-dA[1])*V,$=($=cA[0]-bA[0])*$+($=cA[1]-bA[1])*$;z=M(z,Math.sqrt(V/$)),J=[(dA[0]+AA[0])/2,(dA[1]+AA[1])/2],rA=[(bA[0]+cA[0])/2,(bA[1]+cA[1])/2]}else if(F.touch0)J=F.touch0[0],rA=F.touch0[1];else return;F.zoom("touch",t(U(z,J,rA),F.extent,u))}}function sA(I,...Y){if(this.__zooming){var F=W(this,Y).event(I),S=I.changedTouches,P=S.length,R,z;for(ei(I),m&&clearTimeout(m),m=setTimeout(function(){m=null},v),R=0;R<P;++R)z=S[R],F.touch0&&F.touch0[2]===z.identifier?delete F.touch0:F.touch1&&F.touch1[2]===z.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&&(z=Oe(z,this),Math.hypot(w[0]-z[0],w[1]-z[1])<N)){var J=Ne(this).on("dblclick.zoom");J&&J.apply(this,arguments)}}}return T.wheelDelta=function(I){return arguments.length?(n=typeof I=="function"?I:yr(+I),T):n},T.filter=function(I){return arguments.length?(e=typeof I=="function"?I:yr(!!I),T):e},T.touchable=function(I){return arguments.length?(o=typeof I=="function"?I:yr(!!I),T):o},T.extent=function(I){return arguments.length?(A=typeof I=="function"?I:yr([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),T):A},T.scaleExtent=function(I){return arguments.length?(a[0]=+I[0],a[1]=+I[1],T):[a[0],a[1]]},T.translateExtent=function(I){return arguments.length?(u[0][0]=+I[0][0],u[1][0]=+I[1][0],u[0][1]=+I[0][1],u[1][1]=+I[1][1],T):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},T.constrain=function(I){return arguments.length?(t=I,T):t},T.duration=function(I){return arguments.length?(d=+I,T):d},T.interpolate=function(I){return arguments.length?(h=I,T):h},T.on=function(){var I=g.on.apply(g,arguments);return I===g?T:I},T.clickDistance=function(I){return arguments.length?(H=(I=+I)*I,T):Math.sqrt(H)},T.tapDistance=function(I){return arguments.length?(N=+I,T):N},T}var IA=(e=>(e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom",e))(IA||{}),ti=(e=>(e.Partial="partial",e.Full="full",e))(ti||{}),Dt=(e=>(e.Bezier="default",e.SimpleBezier="simple-bezier",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e))(Dt||{}),At=(e=>(e.Strict="strict",e.Loose="loose",e))(At||{}),et=(e=>(e.Arrow="arrow",e.ArrowClosed="arrowclosed",e))(et||{}),_n=(e=>(e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal",e))(_n||{}),ra=(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))(ra||{}),Lh=["INPUT","SELECT","TEXTAREA"],Th=typeof document<"u"?document:null;function ni(e){var A,t;const n=((t=(A=e.composedPath)==null?void 0:A.call(e))==null?void 0:t[0])||e.target,o=typeof n?.hasAttribute=="function"?n.hasAttribute("contenteditable"):!1,a=typeof n?.closest=="function"?n.closest(".nokey"):null;return Lh.includes(n?.nodeName)||o||!!a}function kh(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function oa(e,A,t,n){const o=A.replace("+",`
|
|
2
2
|
`).replace(`
|
|
3
3
|
|
|
4
4
|
`,`
|
|
5
5
|
+`).split(`
|
|
6
|
-
`).map(c=>c.trim().toLowerCase());if(o.length===1)return e.toLowerCase()===A.toLowerCase();n||t.add(e.toLowerCase());const a=o.every((c,d)=>t.has(c)&&Array.from(t.values())[d]===o[d]);return n&&t.delete(e.toLowerCase()),a}function Mh(e,A){return t=>{if(!t.code&&!t.key)return!1;const n=Oh(t.code,e);return Array.isArray(e)?e.some(o=>ia(t[n],o,A,t.type==="keyup")):ia(t[n],e,A,t.type==="keyup")}}function Oh(e,A){return A.includes(e)?"code":"key"}function Sn(e,A){const t=(0,r.computed)(()=>(0,r.toValue)(A?.target)??Th),n=(0,r.shallowRef)((0,r.toValue)(e)===!0);let o=!1;const a=new Set;let c=h((0,r.toValue)(e));(0,r.watch)(()=>(0,r.toValue)(e),(g,B)=>{typeof B=="boolean"&&typeof g!="boolean"&&d(),c=h(g)},{immediate:!0}),fs(["blur","contextmenu"],d),gs((...g)=>c(...g),g=>{var B,w;const m=(0,r.toValue)(A?.actInsideInputWithModifier)??!0,y=(0,r.toValue)(A?.preventDefault)??!1;if(o=kh(g),(!o||o&&!m)&&ri(g))return;const v=((w=(B=g.composedPath)==null?void 0:B.call(g))==null?void 0:w[0])||g.target,I=v?.nodeName==="BUTTON"||v?.nodeName==="A";!y&&(o||!I)&&g.preventDefault(),n.value=!0},{eventName:"keydown",target:t}),gs((...g)=>c(...g),g=>{const B=(0,r.toValue)(A?.actInsideInputWithModifier)??!0;if(n.value){if((!o||o&&!B)&&ri(g))return;o=!1,n.value=!1}},{eventName:"keyup",target:t});function d(){o=!1,a.clear(),n.value=(0,r.toValue)(e)===!0}function h(g){return g===null?(d(),()=>!1):typeof g=="boolean"?(d(),n.value=g,()=>!1):Array.isArray(g)||typeof g=="string"?Mh(g,a):g}return n}var sa="vue-flow__node-desc",aa="vue-flow__edge-desc",Kh="vue-flow__aria-live",la=["Enter"," ","Escape"],Zt={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function Qr(e){return{...e.computedPosition||{x:0,y:0},width:e.dimensions.width||0,height:e.dimensions.height||0}}function Er(e,A){const t=Math.max(0,Math.min(e.x+e.width,A.x+A.width)-Math.max(e.x,A.x)),n=Math.max(0,Math.min(e.y+e.height,A.y+A.height)-Math.max(e.y,A.y));return Math.ceil(t*n)}function Fr(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Nt(e,A=0,t=1){return Math.min(Math.max(e,A),t)}function ca(e,A){return{x:Nt(e.x,A[0][0],A[1][0]),y:Nt(e.y,A[0][1],A[1][1])}}function ua(e){const A=e.getRootNode();return"elementFromPoint"in A?A:window.document}function ht(e){return e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e}function Lt(e){return e&&typeof e=="object"&&"id"in e&&"position"in e&&!ht(e)}function xn(e){return Lt(e)&&"computedPosition"in e}function Ur(e){return!Number.isNaN(e)&&Number.isFinite(e)}function Rh(e){return Ur(e.width)&&Ur(e.height)&&Ur(e.x)&&Ur(e.y)}function Vh(e,A,t){const n={id:e.id.toString(),type:e.type??"default",dimensions:(0,r.markRaw)({width:0,height:0}),computedPosition:(0,r.markRaw)({z:0,...e.position}),handleBounds:{source:[],target:[]},draggable:void 0,selectable:void 0,connectable:void 0,focusable:void 0,selected:!1,dragging:!1,resizing:!1,initialized:!1,isParent:!1,position:{x:0,y:0},data:le(e.data)?e.data:{},events:(0,r.markRaw)(le(e.events)?e.events:{})};return Object.assign(A??n,e,{id:e.id.toString(),parentNode:t})}function da(e,A,t){var n,o;const a={id:e.id.toString(),type:e.type??A?.type??"default",source:e.source.toString(),target:e.target.toString(),sourceHandle:(n=e.sourceHandle)==null?void 0:n.toString(),targetHandle:(o=e.targetHandle)==null?void 0:o.toString(),updatable:e.updatable??t?.updatable,selectable:e.selectable??t?.selectable,focusable:e.focusable??t?.focusable,data:le(e.data)?e.data:{},events:(0,r.markRaw)(le(e.events)?e.events:{}),label:e.label??"",interactionWidth:e.interactionWidth??t?.interactionWidth,...t??{}};return Object.assign(A??a,e,{id:e.id.toString()})}function fa(e,A,t,n){const o=typeof e=="string"?e:e.id,a=new Set,c=n==="source"?"target":"source";for(const d of t)d[c]===o&&a.add(d[n]);return A.filter(d=>a.has(d.id))}function Ph(...e){if(e.length===3){const[o,a,c]=e;return fa(o,a,c,"target")}const[A,t]=e,n=typeof A=="string"?A:A.id;return t.filter(o=>ht(o)&&o.source===n).map(o=>t.find(a=>Lt(a)&&a.id===o.target))}function Gh(...e){if(e.length===3){const[o,a,c]=e;return fa(o,a,c,"source")}const[A,t]=e,n=typeof A=="string"?A:A.id;return t.filter(o=>ht(o)&&o.target===n).map(o=>t.find(a=>Lt(a)&&a.id===o.source))}function ga({source:e,sourceHandle:A,target:t,targetHandle:n}){return`vueflow__edge-${e}${A??""}-${t}${n??""}`}function zh(e,A){return A.some(t=>ht(t)&&t.source===e.source&&t.target===e.target&&(t.sourceHandle===e.sourceHandle||!t.sourceHandle&&!e.sourceHandle)&&(t.targetHandle===e.targetHandle||!t.targetHandle&&!e.targetHandle))}function Dn({x:e,y:A},{x:t,y:n,zoom:o}){return{x:e*o+t,y:A*o+n}}function Nn({x:e,y:A},{x:t,y:n,zoom:o},a=!1,c=[1,1]){const d={x:(e-t)/o,y:(A-n)/o};return a?Ir(d,c):d}function $h(e,A){return{x:Math.min(e.x,A.x),y:Math.min(e.y,A.y),x2:Math.max(e.x2,A.x2),y2:Math.max(e.y2,A.y2)}}function ha({x:e,y:A,width:t,height:n}){return{x:e,y:A,x2:e+t,y2:A+n}}function Xh({x:e,y:A,x2:t,y2:n}){return{x:e,y:A,width:t-e,height:n-A}}function Ba(e){let A={x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY,x2:Number.NEGATIVE_INFINITY,y2:Number.NEGATIVE_INFINITY};for(let t=0;t<e.length;t++){const n=e[t];A=$h(A,ha({...n.computedPosition,...n.dimensions}))}return Xh(A)}function pa(e,A,t={x:0,y:0,zoom:1},n=!1,o=!1){const a={...Nn(A,t),width:A.width/t.zoom,height:A.height/t.zoom},c=[];for(const d of e){const{dimensions:h,selectable:g=!0,hidden:B=!1}=d,w=h.width??d.width??null,m=h.height??d.height??null;if(o&&!g||B)continue;const y=Er(a,Qr(d)),v=w===null||m===null,I=n&&y>0,L=(w??0)*(m??0);(v||I||y>=L||d.dragging)&&c.push(d)}return c}function ma(e,A){const t=new Set;if(typeof e=="string")t.add(e);else if(e.length>=1)for(const n of e)t.add(n.id);return A.filter(n=>t.has(n.source)||t.has(n.target))}function jt(e,A){if(typeof e=="number")return Math.floor((A-A/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const t=Number.parseFloat(e);if(!Number.isNaN(t))return Math.floor(t)}if(typeof e=="string"&&e.endsWith("%")){const t=Number.parseFloat(e);if(!Number.isNaN(t))return Math.floor(A*t*.01)}return Tn(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function Wh(e,A,t){if(typeof e=="string"||typeof e=="number"){const n=jt(e,t),o=jt(e,A);return{top:n,right:o,bottom:n,left:o,x:o*2,y:n*2}}if(typeof e=="object"){const n=jt(e.top??e.y??0,t),o=jt(e.bottom??e.y??0,t),a=jt(e.left??e.x??0,A),c=jt(e.right??e.x??0,A);return{top:n,right:c,bottom:o,left:a,x:a+c,y:n+o}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function Yh(e,A,t,n,o,a){const{x:c,y:d}=Dn(e,{x:A,y:t,zoom:n}),{x:h,y:g}=Dn({x:e.x+e.width,y:e.y+e.height},{x:A,y:t,zoom:n}),B=o-h,w=a-g;return{left:Math.floor(c),top:Math.floor(d),right:Math.floor(B),bottom:Math.floor(w)}}function wa(e,A,t,n,o,a=.1){const c=Wh(a,A,t),d=(A-c.x)/e.width,h=(t-c.y)/e.height,g=Nt(Math.min(d,h),n,o),B=e.x+e.width/2,w=e.y+e.height/2,m=A/2-B*g,y=t/2-w*g,v=Yh(e,m,y,g,A,t),I={left:Math.min(v.left-c.left,0),top:Math.min(v.top-c.top,0),right:Math.min(v.right-c.right,0),bottom:Math.min(v.bottom-c.bottom,0)};return{x:m-I.left+I.right,y:y-I.top+I.bottom,zoom:g}}function Jh(e,A){return{x:A.x+e.x,y:A.y+e.y,z:(e.z>A.z?e.z:A.z)+1}}function Ca(e,A){if(!e.parentNode)return!1;const t=A.get(e.parentNode);return t?t.selected?!0:Ca(t,A):!1}function Ln(e,A){return typeof e>"u"?"":typeof e=="string"?e:`${A?`${A}__`:""}${Object.keys(e).sort().map(t=>`${t}=${e[t]}`).join("&")}`}function ya(e){const A=e.ctrlKey&&br()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*A}function va(e,A,t){return e<A?Nt(Math.abs(e-A),1,A)/A:e>t?-Nt(Math.abs(e-t),1,A)/A:0}function Qa(e,A,t=15,n=40){return[va(e.x,n,A.width-n)*t,va(e.y,n,A.height-n)*t]}function oi(e,A){if(A){const t=e.position.x+e.dimensions.width-A.dimensions.width,n=e.position.y+e.dimensions.height-A.dimensions.height;if(t>0||n>0||e.position.x<0||e.position.y<0){let o={};if(typeof A.style=="function"?o={...A.style(A)}:A.style&&(o={...A.style}),o.width=o.width??`${A.dimensions.width}px`,o.height=o.height??`${A.dimensions.height}px`,t>0)if(typeof o.width=="string"){const a=Number(o.width.replace("px",""));o.width=`${a+t}px`}else o.width+=t;if(n>0)if(typeof o.height=="string"){const a=Number(o.height.replace("px",""));o.height=`${a+n}px`}else o.height+=n;if(e.position.x<0){const a=Math.abs(e.position.x);if(A.position.x=A.position.x-a,typeof o.width=="string"){const c=Number(o.width.replace("px",""));o.width=`${c+a}px`}else o.width+=a;e.position.x=0}if(e.position.y<0){const a=Math.abs(e.position.y);if(A.position.y=A.position.y-a,typeof o.height=="string"){const c=Number(o.height.replace("px",""));o.height=`${c+a}px`}else o.height+=a;e.position.y=0}A.dimensions.width=Number(o.width.toString().replace("px","")),A.dimensions.height=Number(o.height.toString().replace("px","")),typeof A.style=="function"?A.style=a=>{const c=A.style;return{...c(a),...o}}:A.style={...A.style,...o}}}}function Ea(e,A){var t,n;const o=e.filter(c=>c.type==="add"||c.type==="remove");for(const c of o)if(c.type==="add")A.findIndex(d=>d.id===c.item.id)===-1&&A.push(c.item);else if(c.type==="remove"){const d=A.findIndex(h=>h.id===c.id);d!==-1&&A.splice(d,1)}const a=A.map(c=>c.id);for(const c of A)for(const d of e)if(d.id===c.id)switch(d.type){case"select":c.selected=d.selected;break;case"position":if(xn(c)&&(typeof d.position<"u"&&(c.position=d.position),typeof d.dragging<"u"&&(c.dragging=d.dragging),c.expandParent&&c.parentNode)){const h=A[a.indexOf(c.parentNode)];h&&xn(h)&&oi(c,h)}break;case"dimensions":if(xn(c)&&(typeof d.dimensions<"u"&&(c.dimensions=d.dimensions),typeof d.updateStyle<"u"&&d.updateStyle&&(c.style={...c.style||{},width:`${(t=d.dimensions)==null?void 0:t.width}px`,height:`${(n=d.dimensions)==null?void 0:n.height}px`}),typeof d.resizing<"u"&&(c.resizing=d.resizing),c.expandParent&&c.parentNode)){const h=A[a.indexOf(c.parentNode)];h&&xn(h)&&(h.dimensions.width&&h.dimensions.height?oi(c,h):(0,r.nextTick)(()=>{oi(c,h)}))}break}return A}function Bt(e,A){return{id:e,type:"select",selected:A}}function Fa(e){return{item:e,type:"add"}}function Ua(e){return{id:e,type:"remove"}}function ba(e,A,t,n,o){return{id:e,source:A,target:t,sourceHandle:n||null,targetHandle:o||null,type:"remove"}}function pt(e,A=new Set,t=!1){const n=[];for(const[o,a]of e){const c=A.has(o);!(a.selected===void 0&&!c)&&a.selected!==c&&(t&&(a.selected=c),n.push(Bt(a.id,c)))}return n}var Ia=()=>{};function EA(e){const A=new Set;let t=Ia,n=()=>!1;const o=()=>A.size>0||n(),a=m=>{t=m},c=()=>{t=Ia},d=m=>{n=m},h=()=>{n=()=>!1},g=m=>{A.delete(m)};return{on:m=>{A.add(m);const y=()=>g(m);return mn(y),{off:y}},off:g,trigger:m=>{const y=[t];return o()?y.push(...A):e&&y.push(e),Promise.allSettled(y.map(v=>v(m)))},hasListeners:o,listeners:A,setEmitter:a,removeEmitter:c,setHasEmitListeners:d,removeHasEmitListeners:h}}function Ha(e,A,t){let n=e;do{if(n&&n.matches(A))return!0;if(n===t)return!1;n=n.parentElement}while(n);return!1}function Zh(e,A,t,n){var o,a;const c=new Map;for(const[d,h]of e)(h.selected||h.id===n)&&(!h.parentNode||!Ca(h,e))&&(h.draggable||A&&typeof h.draggable>"u")&&e.get(d)&&c.set(d,{id:h.id,position:h.position||{x:0,y:0},distance:{x:t.x-((o=h.computedPosition)==null?void 0:o.x)||0,y:t.y-((a=h.computedPosition)==null?void 0:a.y)||0},from:{x:h.computedPosition.x,y:h.computedPosition.y},extent:h.extent,parentNode:h.parentNode,dimensions:{...h.dimensions},expandParent:h.expandParent});return Array.from(c.values())}function ii({id:e,dragItems:A,findNode:t}){const n=[];for(const o of A){const a=t(o.id);a&&n.push(a)}return[e?n.find(o=>o.id===e):n[0],n]}function _a(e){if(Array.isArray(e))switch(e.length){case 1:return[e[0],e[0],e[0],e[0]];case 2:return[e[0],e[1],e[0],e[1]];case 3:return[e[0],e[1],e[2],e[1]];case 4:return e;default:return[0,0,0,0]}return[e,e,e,e]}function jh(e,A,t){const[n,o,a,c]=typeof e!="string"?_a(e.padding):[0,0,0,0];return t&&typeof t.computedPosition.x<"u"&&typeof t.computedPosition.y<"u"&&typeof t.dimensions.width<"u"&&typeof t.dimensions.height<"u"?[[t.computedPosition.x+c,t.computedPosition.y+n],[t.computedPosition.x+t.dimensions.width-o,t.computedPosition.y+t.dimensions.height-a]]:!1}function qh(e,A,t,n){let o=e.extent||t;if((o==="parent"||!Array.isArray(o)&&o?.range==="parent")&&!e.expandParent)if(e.parentNode&&n&&e.dimensions.width&&e.dimensions.height){const a=jh(o,e,n);a&&(o=a)}else A(new de(ae.NODE_EXTENT_INVALID,e.id)),o=t;else if(Array.isArray(o)){const a=n?.computedPosition.x||0,c=n?.computedPosition.y||0;o=[[o[0][0]+a,o[0][1]+c],[o[1][0]+a,o[1][1]+c]]}else if(o!=="parent"&&o?.range&&Array.isArray(o.range)){const[a,c,d,h]=_a(o.padding),g=n?.computedPosition.x||0,B=n?.computedPosition.y||0;o=[[o.range[0][0]+g+h,o.range[0][1]+B+a],[o.range[1][0]+g-c,o.range[1][1]+B-d]]}return o==="parent"?[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]]:o}function AB({width:e,height:A},t){return[t[0],[t[1][0]-(e||0),t[1][1]-(A||0)]]}function si(e,A,t,n,o){const a=ca(A,AB(e.dimensions,qh(e,t,n,o)));return{position:{x:a.x-(o?.computedPosition.x||0),y:a.y-(o?.computedPosition.y||0)},computedPosition:a}}function qt(e,A,t=HA.Left,n=!1){const o=(A?.x??0)+e.computedPosition.x,a=(A?.y??0)+e.computedPosition.y,{width:c,height:d}=A??rB(e);if(n)return{x:o+c/2,y:a+d/2};switch(A?.position??t){case HA.Top:return{x:o+c/2,y:a};case HA.Right:return{x:o+c,y:a+d/2};case HA.Bottom:return{x:o+c/2,y:a+d};case HA.Left:return{x:o,y:a+d/2}}}function Sa(e,A){return e&&(A?e.find(t=>t.id===A):e[0])||null}function eB({sourcePos:e,targetPos:A,sourceWidth:t,sourceHeight:n,targetWidth:o,targetHeight:a,width:c,height:d,viewport:h}){const g={x:Math.min(e.x,A.x),y:Math.min(e.y,A.y),x2:Math.max(e.x+t,A.x+o),y2:Math.max(e.y+n,A.y+a)};g.x===g.x2&&(g.x2+=1),g.y===g.y2&&(g.y2+=1);const B=ha({x:(0-h.x)/h.zoom,y:(0-h.y)/h.zoom,width:c/h.zoom,height:d/h.zoom}),w=Math.max(0,Math.min(B.x2,g.x2)-Math.max(B.x,g.x)),m=Math.max(0,Math.min(B.y2,g.y2)-Math.max(B.y,g.y));return Math.ceil(w*m)>0}function tB(e,A,t=!1){const n=typeof e.zIndex=="number";let o=n?e.zIndex:0;const a=A(e.source),c=A(e.target);return!a||!c?0:(t&&(o=n?e.zIndex:Math.max(a.computedPosition.z||0,c.computedPosition.z||0)),o)}var ae=(e=>(e.MISSING_STYLES="MISSING_STYLES",e.MISSING_VIEWPORT_DIMENSIONS="MISSING_VIEWPORT_DIMENSIONS",e.NODE_INVALID="NODE_INVALID",e.NODE_NOT_FOUND="NODE_NOT_FOUND",e.NODE_MISSING_PARENT="NODE_MISSING_PARENT",e.NODE_TYPE_MISSING="NODE_TYPE_MISSING",e.NODE_EXTENT_INVALID="NODE_EXTENT_INVALID",e.EDGE_INVALID="EDGE_INVALID",e.EDGE_NOT_FOUND="EDGE_NOT_FOUND",e.EDGE_SOURCE_MISSING="EDGE_SOURCE_MISSING",e.EDGE_TARGET_MISSING="EDGE_TARGET_MISSING",e.EDGE_TYPE_MISSING="EDGE_TYPE_MISSING",e.EDGE_SOURCE_TARGET_SAME="EDGE_SOURCE_TARGET_SAME",e.EDGE_SOURCE_TARGET_MISSING="EDGE_SOURCE_TARGET_MISSING",e.EDGE_ORPHANED="EDGE_ORPHANED",e.USEVUEFLOW_OPTIONS="USEVUEFLOW_OPTIONS",e))(ae||{}),xa={MISSING_STYLES:()=>"It seems that you haven't loaded the necessary styles. Please import '@vue-flow/core/dist/style.css' to ensure that the graph is rendered correctly",MISSING_VIEWPORT_DIMENSIONS:()=>"The Vue Flow parent container needs a width and a height to render the graph",NODE_INVALID:e=>`Node is invalid
|
|
6
|
+
`).map(u=>u.trim().toLowerCase());if(o.length===1)return e.toLowerCase()===A.toLowerCase();n||t.add(e.toLowerCase());const a=o.every((u,d)=>t.has(u)&&Array.from(t.values())[d]===o[d]);return n&&t.delete(e.toLowerCase()),a}function Mh(e,A){return t=>{if(!t.code&&!t.key)return!1;const n=Kh(t.code,e);return Array.isArray(e)?e.some(o=>oa(t[n],o,A,t.type==="keyup")):oa(t[n],e,A,t.type==="keyup")}}function Kh(e,A){return A.includes(e)?"code":"key"}function Sn(e,A){const t=(0,r.computed)(()=>(0,r.toValue)(A?.target)??Th),n=(0,r.shallowRef)((0,r.toValue)(e)===!0);let o=!1;const a=new Set;let u=h((0,r.toValue)(e));(0,r.watch)(()=>(0,r.toValue)(e),(g,B)=>{typeof B=="boolean"&&typeof g!="boolean"&&d(),u=h(g)},{immediate:!0}),ds(["blur","contextmenu"],d),fs((...g)=>u(...g),g=>{var B,w;const m=(0,r.toValue)(A?.actInsideInputWithModifier)??!0,v=(0,r.toValue)(A?.preventDefault)??!1;if(o=kh(g),(!o||o&&!m)&&ni(g))return;const Q=((w=(B=g.composedPath)==null?void 0:B.call(g))==null?void 0:w[0])||g.target,H=Q?.nodeName==="BUTTON"||Q?.nodeName==="A";!v&&(o||!H)&&g.preventDefault(),n.value=!0},{eventName:"keydown",target:t}),fs((...g)=>u(...g),g=>{const B=(0,r.toValue)(A?.actInsideInputWithModifier)??!0;if(n.value){if((!o||o&&!B)&&ni(g))return;o=!1,n.value=!1}},{eventName:"keyup",target:t});function d(){o=!1,a.clear(),n.value=(0,r.toValue)(e)===!0}function h(g){return g===null?(d(),()=>!1):typeof g=="boolean"?(d(),n.value=g,()=>!1):Array.isArray(g)||typeof g=="string"?Mh(g,a):g}return n}var ia="vue-flow__node-desc",sa="vue-flow__edge-desc",Oh="vue-flow__aria-live",aa=["Enter"," ","Escape"],Zt={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function Qr(e){return{...e.computedPosition||{x:0,y:0},width:e.dimensions.width||0,height:e.dimensions.height||0}}function Er(e,A){const t=Math.max(0,Math.min(e.x+e.width,A.x+A.width)-Math.max(e.x,A.x)),n=Math.max(0,Math.min(e.y+e.height,A.y+A.height)-Math.max(e.y,A.y));return Math.ceil(t*n)}function Ur(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Nt(e,A=0,t=1){return Math.min(Math.max(e,A),t)}function la(e,A){return{x:Nt(e.x,A[0][0],A[1][0]),y:Nt(e.y,A[0][1],A[1][1])}}function ca(e){const A=e.getRootNode();return"elementFromPoint"in A?A:window.document}function ft(e){return e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e}function Lt(e){return e&&typeof e=="object"&&"id"in e&&"position"in e&&!ft(e)}function xn(e){return Lt(e)&&"computedPosition"in e}function Fr(e){return!Number.isNaN(e)&&Number.isFinite(e)}function Rh(e){return Fr(e.width)&&Fr(e.height)&&Fr(e.x)&&Fr(e.y)}function Vh(e,A,t){const n={id:e.id.toString(),type:e.type??"default",dimensions:(0,r.markRaw)({width:0,height:0}),computedPosition:(0,r.markRaw)({z:0,...e.position}),handleBounds:{source:[],target:[]},draggable:void 0,selectable:void 0,connectable:void 0,focusable:void 0,selected:!1,dragging:!1,resizing:!1,initialized:!1,isParent:!1,position:{x:0,y:0},data:se(e.data)?e.data:{},events:(0,r.markRaw)(se(e.events)?e.events:{})};return Object.assign(A??n,e,{id:e.id.toString(),parentNode:t})}function ua(e,A,t){var n,o;const a={id:e.id.toString(),type:e.type??A?.type??"default",source:e.source.toString(),target:e.target.toString(),sourceHandle:(n=e.sourceHandle)==null?void 0:n.toString(),targetHandle:(o=e.targetHandle)==null?void 0:o.toString(),updatable:e.updatable??t?.updatable,selectable:e.selectable??t?.selectable,focusable:e.focusable??t?.focusable,data:se(e.data)?e.data:{},events:(0,r.markRaw)(se(e.events)?e.events:{}),label:e.label??"",interactionWidth:e.interactionWidth??t?.interactionWidth,...t??{}};return Object.assign(A??a,e,{id:e.id.toString()})}function da(e,A,t,n){const o=typeof e=="string"?e:e.id,a=new Set,u=n==="source"?"target":"source";for(const d of t)d[u]===o&&a.add(d[n]);return A.filter(d=>a.has(d.id))}function Ph(...e){if(e.length===3){const[o,a,u]=e;return da(o,a,u,"target")}const[A,t]=e,n=typeof A=="string"?A:A.id;return t.filter(o=>ft(o)&&o.source===n).map(o=>t.find(a=>Lt(a)&&a.id===o.target))}function Gh(...e){if(e.length===3){const[o,a,u]=e;return da(o,a,u,"source")}const[A,t]=e,n=typeof A=="string"?A:A.id;return t.filter(o=>ft(o)&&o.target===n).map(o=>t.find(a=>Lt(a)&&a.id===o.source))}function fa({source:e,sourceHandle:A,target:t,targetHandle:n}){return`vueflow__edge-${e}${A??""}-${t}${n??""}`}function zh(e,A){return A.some(t=>ft(t)&&t.source===e.source&&t.target===e.target&&(t.sourceHandle===e.sourceHandle||!t.sourceHandle&&!e.sourceHandle)&&(t.targetHandle===e.targetHandle||!t.targetHandle&&!e.targetHandle))}function Dn({x:e,y:A},{x:t,y:n,zoom:o}){return{x:e*o+t,y:A*o+n}}function Nn({x:e,y:A},{x:t,y:n,zoom:o},a=!1,u=[1,1]){const d={x:(e-t)/o,y:(A-n)/o};return a?Hr(d,u):d}function Xh(e,A){return{x:Math.min(e.x,A.x),y:Math.min(e.y,A.y),x2:Math.max(e.x2,A.x2),y2:Math.max(e.y2,A.y2)}}function ga({x:e,y:A,width:t,height:n}){return{x:e,y:A,x2:e+t,y2:A+n}}function $h({x:e,y:A,x2:t,y2:n}){return{x:e,y:A,width:t-e,height:n-A}}function ha(e){let A={x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY,x2:Number.NEGATIVE_INFINITY,y2:Number.NEGATIVE_INFINITY};for(let t=0;t<e.length;t++){const n=e[t];A=Xh(A,ga({...n.computedPosition,...n.dimensions}))}return $h(A)}function Ba(e,A,t={x:0,y:0,zoom:1},n=!1,o=!1){const a={...Nn(A,t),width:A.width/t.zoom,height:A.height/t.zoom},u=[];for(const d of e){const{dimensions:h,selectable:g=!0,hidden:B=!1}=d,w=h.width??d.width??null,m=h.height??d.height??null;if(o&&!g||B)continue;const v=Er(a,Qr(d)),Q=w===null||m===null,H=n&&v>0,N=(w??0)*(m??0);(Q||H||v>=N||d.dragging)&&u.push(d)}return u}function pa(e,A){const t=new Set;if(typeof e=="string")t.add(e);else if(e.length>=1)for(const n of e)t.add(n.id);return A.filter(n=>t.has(n.source)||t.has(n.target))}function jt(e,A){if(typeof e=="number")return Math.floor((A-A/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const t=Number.parseFloat(e);if(!Number.isNaN(t))return Math.floor(t)}if(typeof e=="string"&&e.endsWith("%")){const t=Number.parseFloat(e);if(!Number.isNaN(t))return Math.floor(A*t*.01)}return Tn(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function Wh(e,A,t){if(typeof e=="string"||typeof e=="number"){const n=jt(e,t),o=jt(e,A);return{top:n,right:o,bottom:n,left:o,x:o*2,y:n*2}}if(typeof e=="object"){const n=jt(e.top??e.y??0,t),o=jt(e.bottom??e.y??0,t),a=jt(e.left??e.x??0,A),u=jt(e.right??e.x??0,A);return{top:n,right:u,bottom:o,left:a,x:a+u,y:n+o}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function Yh(e,A,t,n,o,a){const{x:u,y:d}=Dn(e,{x:A,y:t,zoom:n}),{x:h,y:g}=Dn({x:e.x+e.width,y:e.y+e.height},{x:A,y:t,zoom:n}),B=o-h,w=a-g;return{left:Math.floor(u),top:Math.floor(d),right:Math.floor(B),bottom:Math.floor(w)}}function ma(e,A,t,n,o,a=.1){const u=Wh(a,A,t),d=(A-u.x)/e.width,h=(t-u.y)/e.height,g=Nt(Math.min(d,h),n,o),B=e.x+e.width/2,w=e.y+e.height/2,m=A/2-B*g,v=t/2-w*g,Q=Yh(e,m,v,g,A,t),H={left:Math.min(Q.left-u.left,0),top:Math.min(Q.top-u.top,0),right:Math.min(Q.right-u.right,0),bottom:Math.min(Q.bottom-u.bottom,0)};return{x:m-H.left+H.right,y:v-H.top+H.bottom,zoom:g}}function Jh(e,A){return{x:A.x+e.x,y:A.y+e.y,z:(e.z>A.z?e.z:A.z)+1}}function wa(e,A){if(!e.parentNode)return!1;const t=A.get(e.parentNode);return t?t.selected?!0:wa(t,A):!1}function Ln(e,A){return typeof e>"u"?"":typeof e=="string"?e:`${A?`${A}__`:""}${Object.keys(e).sort().map(t=>`${t}=${e[t]}`).join("&")}`}function Ca(e){const A=e.ctrlKey&&br()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*A}function va(e,A,t){return e<A?Nt(Math.abs(e-A),1,A)/A:e>t?-Nt(Math.abs(e-t),1,A)/A:0}function ya(e,A,t=15,n=40){return[va(e.x,n,A.width-n)*t,va(e.y,n,A.height-n)*t]}function ri(e,A){if(A){const t=e.position.x+e.dimensions.width-A.dimensions.width,n=e.position.y+e.dimensions.height-A.dimensions.height;if(t>0||n>0||e.position.x<0||e.position.y<0){let o={};if(typeof A.style=="function"?o={...A.style(A)}:A.style&&(o={...A.style}),o.width=o.width??`${A.dimensions.width}px`,o.height=o.height??`${A.dimensions.height}px`,t>0)if(typeof o.width=="string"){const a=Number(o.width.replace("px",""));o.width=`${a+t}px`}else o.width+=t;if(n>0)if(typeof o.height=="string"){const a=Number(o.height.replace("px",""));o.height=`${a+n}px`}else o.height+=n;if(e.position.x<0){const a=Math.abs(e.position.x);if(A.position.x=A.position.x-a,typeof o.width=="string"){const u=Number(o.width.replace("px",""));o.width=`${u+a}px`}else o.width+=a;e.position.x=0}if(e.position.y<0){const a=Math.abs(e.position.y);if(A.position.y=A.position.y-a,typeof o.height=="string"){const u=Number(o.height.replace("px",""));o.height=`${u+a}px`}else o.height+=a;e.position.y=0}A.dimensions.width=Number(o.width.toString().replace("px","")),A.dimensions.height=Number(o.height.toString().replace("px","")),typeof A.style=="function"?A.style=a=>{const u=A.style;return{...u(a),...o}}:A.style={...A.style,...o}}}}function Qa(e,A){var t,n;const o=e.filter(u=>u.type==="add"||u.type==="remove");for(const u of o)if(u.type==="add")A.findIndex(d=>d.id===u.item.id)===-1&&A.push(u.item);else if(u.type==="remove"){const d=A.findIndex(h=>h.id===u.id);d!==-1&&A.splice(d,1)}const a=A.map(u=>u.id);for(const u of A)for(const d of e)if(d.id===u.id)switch(d.type){case"select":u.selected=d.selected;break;case"position":if(xn(u)&&(typeof d.position<"u"&&(u.position=d.position),typeof d.dragging<"u"&&(u.dragging=d.dragging),u.expandParent&&u.parentNode)){const h=A[a.indexOf(u.parentNode)];h&&xn(h)&&ri(u,h)}break;case"dimensions":if(xn(u)&&(typeof d.dimensions<"u"&&(u.dimensions=d.dimensions),typeof d.updateStyle<"u"&&d.updateStyle&&(u.style={...u.style||{},width:`${(t=d.dimensions)==null?void 0:t.width}px`,height:`${(n=d.dimensions)==null?void 0:n.height}px`}),typeof d.resizing<"u"&&(u.resizing=d.resizing),u.expandParent&&u.parentNode)){const h=A[a.indexOf(u.parentNode)];h&&xn(h)&&(h.dimensions.width&&h.dimensions.height?ri(u,h):(0,r.nextTick)(()=>{ri(u,h)}))}break}return A}function gt(e,A){return{id:e,type:"select",selected:A}}function Ea(e){return{item:e,type:"add"}}function Ua(e){return{id:e,type:"remove"}}function Fa(e,A,t,n,o){return{id:e,source:A,target:t,sourceHandle:n||null,targetHandle:o||null,type:"remove"}}function ht(e,A=new Set,t=!1){const n=[];for(const[o,a]of e){const u=A.has(o);!(a.selected===void 0&&!u)&&a.selected!==u&&(t&&(a.selected=u),n.push(gt(a.id,u)))}return n}var ba=()=>{};function QA(e){const A=new Set;let t=ba,n=()=>!1;const o=()=>A.size>0||n(),a=m=>{t=m},u=()=>{t=ba},d=m=>{n=m},h=()=>{n=()=>!1},g=m=>{A.delete(m)};return{on:m=>{A.add(m);const v=()=>g(m);return mn(v),{off:v}},off:g,trigger:m=>{const v=[t];return o()?v.push(...A):e&&v.push(e),Promise.allSettled(v.map(Q=>Q(m)))},hasListeners:o,listeners:A,setEmitter:a,removeEmitter:u,setHasEmitListeners:d,removeHasEmitListeners:h}}function Ha(e,A,t){let n=e;do{if(n&&n.matches(A))return!0;if(n===t)return!1;n=n.parentElement}while(n);return!1}function Zh(e,A,t,n){var o,a;const u=new Map;for(const[d,h]of e)(h.selected||h.id===n)&&(!h.parentNode||!wa(h,e))&&(h.draggable||A&&typeof h.draggable>"u")&&e.get(d)&&u.set(d,{id:h.id,position:h.position||{x:0,y:0},distance:{x:t.x-((o=h.computedPosition)==null?void 0:o.x)||0,y:t.y-((a=h.computedPosition)==null?void 0:a.y)||0},from:{x:h.computedPosition.x,y:h.computedPosition.y},extent:h.extent,parentNode:h.parentNode,dimensions:{...h.dimensions},expandParent:h.expandParent});return Array.from(u.values())}function oi({id:e,dragItems:A,findNode:t}){const n=[];for(const o of A){const a=t(o.id);a&&n.push(a)}return[e?n.find(o=>o.id===e):n[0],n]}function Ia(e){if(Array.isArray(e))switch(e.length){case 1:return[e[0],e[0],e[0],e[0]];case 2:return[e[0],e[1],e[0],e[1]];case 3:return[e[0],e[1],e[2],e[1]];case 4:return e;default:return[0,0,0,0]}return[e,e,e,e]}function jh(e,A,t){const[n,o,a,u]=typeof e!="string"?Ia(e.padding):[0,0,0,0];return t&&typeof t.computedPosition.x<"u"&&typeof t.computedPosition.y<"u"&&typeof t.dimensions.width<"u"&&typeof t.dimensions.height<"u"?[[t.computedPosition.x+u,t.computedPosition.y+n],[t.computedPosition.x+t.dimensions.width-o,t.computedPosition.y+t.dimensions.height-a]]:!1}function qh(e,A,t,n){let o=e.extent||t;if((o==="parent"||!Array.isArray(o)&&o?.range==="parent")&&!e.expandParent)if(e.parentNode&&n&&e.dimensions.width&&e.dimensions.height){const a=jh(o,e,n);a&&(o=a)}else A(new ce(ie.NODE_EXTENT_INVALID,e.id)),o=t;else if(Array.isArray(o)){const a=n?.computedPosition.x||0,u=n?.computedPosition.y||0;o=[[o[0][0]+a,o[0][1]+u],[o[1][0]+a,o[1][1]+u]]}else if(o!=="parent"&&o?.range&&Array.isArray(o.range)){const[a,u,d,h]=Ia(o.padding),g=n?.computedPosition.x||0,B=n?.computedPosition.y||0;o=[[o.range[0][0]+g+h,o.range[0][1]+B+a],[o.range[1][0]+g-u,o.range[1][1]+B-d]]}return o==="parent"?[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]]:o}function AB({width:e,height:A},t){return[t[0],[t[1][0]-(e||0),t[1][1]-(A||0)]]}function ii(e,A,t,n,o){const a=la(A,AB(e.dimensions,qh(e,t,n,o)));return{position:{x:a.x-(o?.computedPosition.x||0),y:a.y-(o?.computedPosition.y||0)},computedPosition:a}}function qt(e,A,t=IA.Left,n=!1){const o=(A?.x??0)+e.computedPosition.x,a=(A?.y??0)+e.computedPosition.y,{width:u,height:d}=A??rB(e);if(n)return{x:o+u/2,y:a+d/2};switch(A?.position??t){case IA.Top:return{x:o+u/2,y:a};case IA.Right:return{x:o+u,y:a+d/2};case IA.Bottom:return{x:o+u/2,y:a+d};case IA.Left:return{x:o,y:a+d/2}}}function _a(e,A){return e&&(A?e.find(t=>t.id===A):e[0])||null}function eB({sourcePos:e,targetPos:A,sourceWidth:t,sourceHeight:n,targetWidth:o,targetHeight:a,width:u,height:d,viewport:h}){const g={x:Math.min(e.x,A.x),y:Math.min(e.y,A.y),x2:Math.max(e.x+t,A.x+o),y2:Math.max(e.y+n,A.y+a)};g.x===g.x2&&(g.x2+=1),g.y===g.y2&&(g.y2+=1);const B=ga({x:(0-h.x)/h.zoom,y:(0-h.y)/h.zoom,width:u/h.zoom,height:d/h.zoom}),w=Math.max(0,Math.min(B.x2,g.x2)-Math.max(B.x,g.x)),m=Math.max(0,Math.min(B.y2,g.y2)-Math.max(B.y,g.y));return Math.ceil(w*m)>0}function tB(e,A,t=!1){const n=typeof e.zIndex=="number";let o=n?e.zIndex:0;const a=A(e.source),u=A(e.target);return!a||!u?0:(t&&(o=n?e.zIndex:Math.max(a.computedPosition.z||0,u.computedPosition.z||0)),o)}var ie=(e=>(e.MISSING_STYLES="MISSING_STYLES",e.MISSING_VIEWPORT_DIMENSIONS="MISSING_VIEWPORT_DIMENSIONS",e.NODE_INVALID="NODE_INVALID",e.NODE_NOT_FOUND="NODE_NOT_FOUND",e.NODE_MISSING_PARENT="NODE_MISSING_PARENT",e.NODE_TYPE_MISSING="NODE_TYPE_MISSING",e.NODE_EXTENT_INVALID="NODE_EXTENT_INVALID",e.EDGE_INVALID="EDGE_INVALID",e.EDGE_NOT_FOUND="EDGE_NOT_FOUND",e.EDGE_SOURCE_MISSING="EDGE_SOURCE_MISSING",e.EDGE_TARGET_MISSING="EDGE_TARGET_MISSING",e.EDGE_TYPE_MISSING="EDGE_TYPE_MISSING",e.EDGE_SOURCE_TARGET_SAME="EDGE_SOURCE_TARGET_SAME",e.EDGE_SOURCE_TARGET_MISSING="EDGE_SOURCE_TARGET_MISSING",e.EDGE_ORPHANED="EDGE_ORPHANED",e.USEVUEFLOW_OPTIONS="USEVUEFLOW_OPTIONS",e))(ie||{}),Sa={MISSING_STYLES:()=>"It seems that you haven't loaded the necessary styles. Please import '@vue-flow/core/dist/style.css' to ensure that the graph is rendered correctly",MISSING_VIEWPORT_DIMENSIONS:()=>"The Vue Flow parent container needs a width and a height to render the graph",NODE_INVALID:e=>`Node is invalid
|
|
7
7
|
Node: ${e}`,NODE_NOT_FOUND:e=>`Node not found
|
|
8
8
|
Node: ${e}`,NODE_MISSING_PARENT:(e,A)=>`Node is missing a parent
|
|
9
9
|
Node: ${e}
|
|
@@ -23,13 +23,13 @@ Edge: ${e}
|
|
|
23
23
|
Source: ${A}
|
|
24
24
|
Target: ${t}`,EDGE_ORPHANED:e=>`Edge was orphaned (suddenly missing source or target) and has been removed
|
|
25
25
|
Edge: ${e}`,EDGE_NOT_FOUND:e=>`Edge not found
|
|
26
|
-
Edge: ${e}`,USEVUEFLOW_OPTIONS:()=>"The options parameter is deprecated and will be removed in the next major version. Please use the id parameter instead"},de=class extends Error{constructor(e,...A){var t;super((t=xa[e])==null?void 0:t.call(xa,...A)),this.name="VueFlowError",this.code=e,this.args=A}};function ai(e){return"clientX"in e}function nB(e){return"sourceEvent"in e}function We(e,A){const t=ai(e);let n,o;return t?(n=e.clientX,o=e.clientY):"touches"in e&&e.touches.length>0?(n=e.touches[0].clientX,o=e.touches[0].clientY):"changedTouches"in e&&e.changedTouches.length>0?(n=e.changedTouches[0].clientX,o=e.changedTouches[0].clientY):(n=0,o=0),{x:n-(A?.left??0),y:o-(A?.top??0)}}var br=()=>{var e;return typeof navigator<"u"&&((e=navigator?.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function rB(e){var A,t;return{width:((A=e.dimensions)==null?void 0:A.width)??e.width??0,height:((t=e.dimensions)==null?void 0:t.height)??e.height??0}}function Ir(e,A=[1,1]){return{x:A[0]*Math.round(e.x/A[0]),y:A[1]*Math.round(e.y/A[1])}}var oB=()=>!0;function li(e){e?.classList.remove("valid","connecting","vue-flow__handle-valid","vue-flow__handle-connecting")}function iB(e,A,t){const n=[],o={x:e.x-t,y:e.y-t,width:t*2,height:t*2};for(const a of A.values())Er(o,Qr(a))>0&&n.push(a);return n}var sB=250;function aB(e,A,t,n){var o,a;let c=[],d=Number.POSITIVE_INFINITY;const h=iB(e,t,A+sB);for(const g of h){const B=[...((o=g.handleBounds)==null?void 0:o.source)??[],...((a=g.handleBounds)==null?void 0:a.target)??[]];for(const w of B){if(n.nodeId===w.nodeId&&n.type===w.type&&n.id===w.id)continue;const{x:m,y}=qt(g,w,w.position,!0),v=Math.sqrt((m-e.x)**2+(y-e.y)**2);v>A||(v<d?(c=[{...w,x:m,y}],d=v):v===d&&c.push({...w,x:m,y}))}}if(!c.length)return null;if(c.length>1){const g=n.type==="source"?"target":"source";return c.find(B=>B.type===g)??c[0]}return c[0]}function Da(e,{handle:A,connectionMode:t,fromNodeId:n,fromHandleId:o,fromType:a,doc:c,lib:d,flowId:h,isValidConnection:g=oB},B,w,m,y){const v=a==="target",I=A?c.querySelector(`.${d}-flow__handle[data-id="${h}-${A?.nodeId}-${A?.id}-${A?.type}"]`):null,{x:L,y:k}=We(e),V=c.elementFromPoint(L,k),F=V?.classList.contains(`${d}-flow__handle`)?V:I,M={handleDomNode:F,isValid:!1,connection:null,toHandle:null};if(F){const tA=Na(void 0,F),W=F.getAttribute("data-nodeid"),aA=F.getAttribute("data-handleid"),dA=F.classList.contains("connectable"),rA=F.classList.contains("connectableend");if(!W||!tA)return M;const oA={source:v?W:n,sourceHandle:v?aA:o,target:v?n:W,targetHandle:v?o:aA};M.connection=oA,M.isValid=dA&&rA&&(t===nt.Strict?v&&tA==="source"||!v&&tA==="target":W!==n||aA!==o)&&g(oA,{nodes:w,edges:B,sourceNode:m(oA.source),targetNode:m(oA.target)}),M.toHandle=La(W,tA,aA,y,t,!0)}return M}function Na(e,A){return e||(A?.classList.contains("target")?"target":A?.classList.contains("source")?"source":null)}function lB(e,A){let t=null;return A?t="valid":e&&!A&&(t="invalid"),t}function cB(e,A){let t=null;return A?t=!0:e&&!A&&(t=!1),t}function La(e,A,t,n,o,a=!1){var c,d,h;const g=n.get(e);if(!g)return null;const B=o===nt.Strict?(c=g.handleBounds)==null?void 0:c[A]:[...((d=g.handleBounds)==null?void 0:d.source)??[],...((h=g.handleBounds)==null?void 0:h.target)??[]],w=(t?B?.find(m=>m.id===t):B?.[0])??null;return w&&a?{...w,...qt(g,w,w.position,!0)}:w}var ci={[HA.Left]:HA.Right,[HA.Right]:HA.Left,[HA.Top]:HA.Bottom,[HA.Bottom]:HA.Top},uB=["production","prod"];function Tn(e,...A){Ta()&&console.warn(`[Vue Flow]: ${e}`,...A)}function Ta(){return!uB.includes(process.env.NODE_ENV||"")}function ka(e,A,t,n,o){const a=A.querySelectorAll(`.vue-flow__handle.${e}`);return a?.length?Array.from(a).map(c=>{const d=c.getBoundingClientRect();return{id:c.getAttribute("data-handleid"),type:e,nodeId:o,position:c.getAttribute("data-handlepos"),x:(d.left-t.left)/n,y:(d.top-t.top)/n,...Fr(c)}}):null}function ui(e,A,t,n,o,a=!1,c){o.value=!1,e.selected?(a||e.selected&&A)&&(n([e]),(0,r.nextTick)(()=>{c.blur()})):t([e])}function le(e){return typeof(0,r.unref)(e)<"u"}function dB(e,A,t,n){if(!e||!e.source||!e.target)return t(new de(ae.EDGE_INVALID,e?.id??"[ID UNKNOWN]")),!1;let o;return ht(e)?o=e:o={...e,id:ga(e)},o=da(o,void 0,n),zh(o,A)?!1:o}function fB(e,A,t,n,o){if(!A.source||!A.target)return o(new de(ae.EDGE_INVALID,e.id)),!1;if(!t)return o(new de(ae.EDGE_NOT_FOUND,e.id)),!1;const{id:a,...c}=e;return{...c,id:n?ga(A):a,source:A.source,target:A.target,sourceHandle:A.sourceHandle,targetHandle:A.targetHandle}}function Ma(e,A,t){const n={},o=[];for(let a=0;a<e.length;++a){const c=e[a];if(!Lt(c)){t(new de(ae.NODE_INVALID,c?.id));continue}const d=Vh(c,A(c.id),c.parentNode);c.parentNode&&(n[c.parentNode]=!0),o[a]=d}for(const a of o){const c=A(a.parentNode)||o.find(d=>d.id===a.parentNode);a.parentNode&&!c&&t(new de(ae.NODE_MISSING_PARENT,a.id,a.parentNode)),(a.parentNode||n[a.id])&&(n[a.id]&&(a.isParent=!0),c&&(c.isParent=!0))}return o}function Oa(e,A,t,n,o,a){let c=o;const d=n.get(c)||new Map;n.set(c,d.set(t,A)),c=`${o}-${e}`;const h=n.get(c)||new Map;if(n.set(c,h.set(t,A)),a){c=`${o}-${e}-${a}`;const g=n.get(c)||new Map;n.set(c,g.set(t,A))}}function di(e,A,t){e.clear();for(const n of t){const{source:o,target:a,sourceHandle:c=null,targetHandle:d=null}=n,h={edgeId:n.id,source:o,target:a,sourceHandle:c,targetHandle:d},g=`${o}-${c}--${a}-${d}`;Oa("source",h,`${a}-${d}--${o}-${c}`,e,o,c),Oa("target",h,g,e,a,d)}}function Ka(e,A){if(e.size!==A.size)return!1;for(const t of e)if(!A.has(t))return!1;return!0}function fi(e,A,t,n,o,a,c,d){const h=[];for(const g of e){const B=ht(g)?g:dB(g,d,o,a);if(!B)continue;const w=t(B.source),m=t(B.target);if(!w||!m){o(new de(ae.EDGE_SOURCE_TARGET_MISSING,B.id,B.source,B.target));continue}if(!w){o(new de(ae.EDGE_SOURCE_MISSING,B.id,B.source));continue}if(!m){o(new de(ae.EDGE_TARGET_MISSING,B.id,B.target));continue}if(A&&!A(B,{edges:d,nodes:c,sourceNode:w,targetNode:m})){o(new de(ae.EDGE_INVALID,B.id));continue}const y=n(B.id);h.push({...da(B,y,a),sourceNode:w,targetNode:m})}return h}var Ra=Symbol("vueFlow"),Va=Symbol("nodeId"),Pa=Symbol("nodeRef"),gB=Symbol("edgeId"),hB=Symbol("edgeRef"),Hr=Symbol("slots");function Ga(e){const{vueFlowRef:A,snapToGrid:t,snapGrid:n,noDragClassName:o,nodeLookup:a,nodeExtent:c,nodeDragThreshold:d,viewport:h,autoPanOnNodeDrag:g,autoPanSpeed:B,nodesDraggable:w,panBy:m,findNode:y,multiSelectionActive:v,nodesSelectionActive:I,selectNodesOnDrag:L,removeSelectedElements:k,addSelectedNodes:V,updateNodePositions:F,emits:M}=ZA(),{onStart:tA,onDrag:W,onStop:aA,onClick:dA,el:rA,disabled:oA,id:AA,selectable:O,dragHandle:lA}=e,_=(0,r.shallowRef)(!1);let Z=[],U,x=null,G={x:void 0,y:void 0},R={x:0,y:0},$=null,J=!1,nA=!1,hA=0,UA=!1;const eA=mB(),uA=({x:fA,y:vA})=>{G={x:fA,y:vA};let S=!1;if(Z=Z.map(H=>{const T={x:fA-H.distance.x,y:vA-H.distance.y},{computedPosition:D}=si(H,t.value?Ir(T,n.value):T,M.error,c.value,H.parentNode?y(H.parentNode):void 0);return S=S||H.position.x!==D.x||H.position.y!==D.y,H.position=D,H}),nA=nA||S,!!S&&(F(Z,!0,!0),_.value=!0,$)){const[H,T]=ii({id:AA,dragItems:Z,findNode:y});W({event:$,node:H,nodes:T})}},Y=()=>{if(!x)return;const[fA,vA]=Qa(R,x,B.value);if(fA!==0||vA!==0){const S={x:(G.x??0)-fA/h.value.zoom,y:(G.y??0)-vA/h.value.zoom};m({x:fA,y:vA})&&uA(S)}hA=requestAnimationFrame(Y)},cA=(fA,vA)=>{J=!0;const S=y(AA);!L.value&&!v.value&&S&&(S.selected||k()),S&&(0,r.toValue)(O)&&L.value&&ui(S,v.value,V,k,I,!1,vA);const H=eA(fA.sourceEvent);if(G=H,Z=Zh(a.value,w.value,H,AA),Z.length){const[T,D]=ii({id:AA,dragItems:Z,findNode:y});tA({event:fA.sourceEvent,node:T,nodes:D})}},mA=(fA,vA)=>{var S;fA.sourceEvent.type==="touchmove"&&fA.sourceEvent.touches.length>1||(nA=!1,d.value===0&&cA(fA,vA),G=eA(fA.sourceEvent),x=((S=A.value)==null?void 0:S.getBoundingClientRect())||null,R=We(fA.sourceEvent,x))},yA=(fA,vA)=>{const S=eA(fA.sourceEvent);if(!UA&&J&&g.value&&(UA=!0,Y()),!J){const H=S.xSnapped-(G.x??0),T=S.ySnapped-(G.y??0);Math.sqrt(H*H+T*T)>d.value&&cA(fA,vA)}(G.x!==S.xSnapped||G.y!==S.ySnapped)&&Z.length&&J&&($=fA.sourceEvent,R=We(fA.sourceEvent,x),uA(S))},IA=fA=>{let vA=!1;if(!J&&!_.value&&!v.value){const S=fA.sourceEvent,H=eA(S),T=H.xSnapped-(G.x??0),D=H.ySnapped-(G.y??0),b=Math.sqrt(T*T+D*D);b!==0&&b<=d.value&&(dA?.(S),vA=!0)}if(Z.length&&!vA){nA&&(F(Z,!1,!1),nA=!1);const[S,H]=ii({id:AA,dragItems:Z,findNode:y});aA({event:fA.sourceEvent,node:S,nodes:H})}Z=[],_.value=!1,UA=!1,J=!1,G={x:void 0,y:void 0},cancelAnimationFrame(hA)};return(0,r.watch)([()=>(0,r.toValue)(oA),rA],([fA,vA],S,H)=>{if(vA){const T=ke(vA);fA||(U=Rf().on("start",D=>mA(D,vA)).on("drag",D=>yA(D,vA)).on("end",D=>IA(D)).filter(D=>{const b=D.target,z=(0,r.toValue)(lA);return!D.button&&(!o.value||!Ha(b,`.${o.value}`,vA)&&(!z||Ha(b,z,vA)))}),T.call(U)),H(()=>{T.on(".drag",null),U&&(U.on("start",null),U.on("drag",null),U.on("end",null))})}}),_}function BB(){return{doubleClick:EA(),click:EA(),mouseEnter:EA(),mouseMove:EA(),mouseLeave:EA(),contextMenu:EA(),updateStart:EA(),update:EA(),updateEnd:EA()}}function pB(e,A){const t=BB();return t.doubleClick.on(n=>{var o,a;A.edgeDoubleClick(n),(a=(o=e.events)==null?void 0:o.doubleClick)==null||a.call(o,n)}),t.click.on(n=>{var o,a;A.edgeClick(n),(a=(o=e.events)==null?void 0:o.click)==null||a.call(o,n)}),t.mouseEnter.on(n=>{var o,a;A.edgeMouseEnter(n),(a=(o=e.events)==null?void 0:o.mouseEnter)==null||a.call(o,n)}),t.mouseMove.on(n=>{var o,a;A.edgeMouseMove(n),(a=(o=e.events)==null?void 0:o.mouseMove)==null||a.call(o,n)}),t.mouseLeave.on(n=>{var o,a;A.edgeMouseLeave(n),(a=(o=e.events)==null?void 0:o.mouseLeave)==null||a.call(o,n)}),t.contextMenu.on(n=>{var o,a;A.edgeContextMenu(n),(a=(o=e.events)==null?void 0:o.contextMenu)==null||a.call(o,n)}),t.updateStart.on(n=>{var o,a;A.edgeUpdateStart(n),(a=(o=e.events)==null?void 0:o.updateStart)==null||a.call(o,n)}),t.update.on(n=>{var o,a;A.edgeUpdate(n),(a=(o=e.events)==null?void 0:o.update)==null||a.call(o,n)}),t.updateEnd.on(n=>{var o,a;A.edgeUpdateEnd(n),(a=(o=e.events)==null?void 0:o.updateEnd)==null||a.call(o,n)}),Object.entries(t).reduce((n,[o,a])=>(n.emit[o]=a.trigger,n.on[o]=a.on,n),{emit:{},on:{}})}function mB(){const{viewport:e,snapGrid:A,snapToGrid:t,vueFlowRef:n}=ZA();return o=>{var a;const c=((a=n.value)==null?void 0:a.getBoundingClientRect())??{left:0,top:0},{x:d,y:h}=We(nB(o)?o.sourceEvent:o,c),g=Nn({x:d,y:h},e.value),{x:B,y:w}=t.value?Ir(g,A.value):g;return{xSnapped:B,ySnapped:w,...g}}}function _r(){return!0}function za({handleId:e,nodeId:A,type:t,isValidConnection:n,edgeUpdaterType:o,onEdgeUpdate:a,onEdgeUpdateEnd:c}){const{id:d,vueFlowRef:h,connectionMode:g,connectionRadius:B,connectOnClick:w,connectionClickStartHandle:m,nodesConnectable:y,autoPanOnConnect:v,autoPanSpeed:I,findNode:L,panBy:k,startConnection:V,updateConnection:F,endConnection:M,emits:tA,viewport:W,edges:aA,nodes:dA,isValidConnection:rA,nodeLookup:oA}=ZA();let AA=null,O=!1,lA=null;function _(U){var x;const G=(0,r.toValue)(t)==="target",R=ai(U),$=ua(U.target),J=U.currentTarget;if(J&&(R&&U.button===0||!R)){let nA=function(gA){S=We(gA,IA),uA=aB(Nn(S,W.value,!1,[1,1]),B.value,oA.value,D),H||(T(),H=!0);const iA=Da(gA,{handle:uA,connectionMode:g.value,fromNodeId:(0,r.toValue)(A),fromHandleId:(0,r.toValue)(e),fromType:G?"target":"source",isValidConnection:eA,doc:$,lib:"vue",flowId:d,nodeLookup:oA.value},aA.value,dA.value,L,oA.value);lA=iA.handleDomNode,AA=iA.connection,O=cB(!!uA,iA.isValid);const SA={...P,isValid:O,to:iA.toHandle&&O?Dn({x:iA.toHandle.x,y:iA.toHandle.y},W.value):S,toHandle:iA.toHandle,toPosition:O&&iA.toHandle?iA.toHandle.position:ci[D.position],toNode:iA.toHandle?oA.value.get(iA.toHandle.nodeId):null};if(O&&uA&&P?.toHandle&&SA.toHandle&&P.toHandle.type===SA.toHandle.type&&P.toHandle.nodeId===SA.toHandle.nodeId&&P.toHandle.id===SA.toHandle.id&&P.to.x===SA.to.x&&P.to.y===SA.to.y)return;const xA=uA??iA.toHandle;if(F(xA&&O?Dn({x:xA.x,y:xA.y},W.value):S,xA,lB(!!xA,O)),P=SA,!uA&&!O&&!lA)return li(vA);AA&&AA.source!==AA.target&&lA&&(li(vA),vA=lA,lA.classList.add("connecting","vue-flow__handle-connecting"),lA.classList.toggle("valid",!!O),lA.classList.toggle("vue-flow__handle-valid",!!O))},hA=function(gA){"touches"in gA&&gA.touches.length>0||((uA||lA)&&AA&&O&&(a?a(gA,AA):tA.connect(AA)),tA.connectEnd(gA),o&&c?.(gA),li(vA),cancelAnimationFrame(Y),M(gA),H=!1,O=!1,AA=null,lA=null,$.removeEventListener("mousemove",nA),$.removeEventListener("mouseup",hA),$.removeEventListener("touchmove",nA),$.removeEventListener("touchend",hA))};const UA=L((0,r.toValue)(A));let eA=(0,r.toValue)(n)||rA.value||_r;!eA&&UA&&(eA=(G?UA.isValidSourcePos:UA.isValidTargetPos)||_r);let uA,Y=0;const{x:cA,y:mA}=We(U),yA=Na((0,r.toValue)(o),J),IA=(x=h.value)==null?void 0:x.getBoundingClientRect();if(!IA||!yA)return;const fA=La((0,r.toValue)(A),yA,(0,r.toValue)(e),oA.value,g.value);if(!fA)return;let vA,S=We(U,IA),H=!1;const T=()=>{if(!v.value)return;const[gA,iA]=Qa(S,IA,I.value);k({x:gA,y:iA}),Y=requestAnimationFrame(T)},D={...fA,nodeId:(0,r.toValue)(A),type:yA,position:fA.position},b=oA.value.get((0,r.toValue)(A)),z={inProgress:!0,isValid:null,from:qt(b,D,HA.Left,!0),fromHandle:D,fromPosition:D.position,fromNode:b,to:S,toHandle:null,toPosition:ci[D.position],toNode:null};V({nodeId:(0,r.toValue)(A),id:(0,r.toValue)(e),type:yA,position:J?.getAttribute("data-handlepos")||HA.Top,...S},{x:cA-IA.left,y:mA-IA.top}),tA.connectStart({event:U,nodeId:(0,r.toValue)(A),handleId:(0,r.toValue)(e),handleType:yA});let P=z;$.addEventListener("mousemove",nA),$.addEventListener("mouseup",hA),$.addEventListener("touchmove",nA),$.addEventListener("touchend",hA)}}function Z(U){var x,G;if(!w.value)return;const R=(0,r.toValue)(t)==="target";if(!m.value){tA.clickConnectStart({event:U,nodeId:(0,r.toValue)(A),handleId:(0,r.toValue)(e)}),V({nodeId:(0,r.toValue)(A),type:(0,r.toValue)(t),id:(0,r.toValue)(e),position:HA.Top,...We(U)},void 0,!0);return}let $=(0,r.toValue)(n)||rA.value||_r;const J=L((0,r.toValue)(A));if(!$&&J&&($=(R?J.isValidSourcePos:J.isValidTargetPos)||_r),J&&(typeof J.connectable>"u"?y.value:J.connectable)===!1)return;const nA=ua(U.target),hA=Da(U,{handle:{nodeId:(0,r.toValue)(A),id:(0,r.toValue)(e),type:(0,r.toValue)(t),position:HA.Top,...We(U)},connectionMode:g.value,fromNodeId:m.value.nodeId,fromHandleId:m.value.id??null,fromType:m.value.type,isValidConnection:$,doc:nA,lib:"vue",flowId:d,nodeLookup:oA.value},aA.value,dA.value,L,oA.value),UA=((x=hA.connection)==null?void 0:x.source)===((G=hA.connection)==null?void 0:G.target);hA.isValid&&hA.connection&&!UA&&tA.connect(hA.connection),tA.clickConnectEnd(U),M(U,!0)}return{handlePointerDown:_,handleClick:Z}}function wB(){return(0,r.inject)(Va,"")}function $a(e){const A=e??wB()??"",t=(0,r.inject)(Pa,(0,r.ref)(null)),{findNode:n,edges:o,emits:a}=ZA(),c=n(A);return c||a.error(new de(ae.NODE_NOT_FOUND,A)),{id:A,nodeEl:t,node:c,parentNode:(0,r.computed)(()=>n(c.parentNode)),connectedEdges:(0,r.computed)(()=>ma([c],o.value))}}function CB(){return{doubleClick:EA(),click:EA(),mouseEnter:EA(),mouseMove:EA(),mouseLeave:EA(),contextMenu:EA(),dragStart:EA(),drag:EA(),dragStop:EA()}}function yB(e,A){const t=CB();return t.doubleClick.on(n=>{var o,a;A.nodeDoubleClick(n),(a=(o=e.events)==null?void 0:o.doubleClick)==null||a.call(o,n)}),t.click.on(n=>{var o,a;A.nodeClick(n),(a=(o=e.events)==null?void 0:o.click)==null||a.call(o,n)}),t.mouseEnter.on(n=>{var o,a;A.nodeMouseEnter(n),(a=(o=e.events)==null?void 0:o.mouseEnter)==null||a.call(o,n)}),t.mouseMove.on(n=>{var o,a;A.nodeMouseMove(n),(a=(o=e.events)==null?void 0:o.mouseMove)==null||a.call(o,n)}),t.mouseLeave.on(n=>{var o,a;A.nodeMouseLeave(n),(a=(o=e.events)==null?void 0:o.mouseLeave)==null||a.call(o,n)}),t.contextMenu.on(n=>{var o,a;A.nodeContextMenu(n),(a=(o=e.events)==null?void 0:o.contextMenu)==null||a.call(o,n)}),t.dragStart.on(n=>{var o,a;A.nodeDragStart(n),(a=(o=e.events)==null?void 0:o.dragStart)==null||a.call(o,n)}),t.drag.on(n=>{var o,a;A.nodeDrag(n),(a=(o=e.events)==null?void 0:o.drag)==null||a.call(o,n)}),t.dragStop.on(n=>{var o,a;A.nodeDragStop(n),(a=(o=e.events)==null?void 0:o.dragStop)==null||a.call(o,n)}),Object.entries(t).reduce((n,[o,a])=>(n.emit[o]=a.trigger,n.on[o]=a.on,n),{emit:{},on:{}})}function Xa(){const{getSelectedNodes:e,nodeExtent:A,updateNodePositions:t,findNode:n,snapGrid:o,snapToGrid:a,nodesDraggable:c,emits:d}=ZA();return(h,g=!1)=>{const B=a.value?o.value[0]:5,w=a.value?o.value[1]:5,m=g?4:1,y=h.x*B*m,v=h.y*w*m,I=[];for(const L of e.value)if(L.draggable||c&&typeof L.draggable>"u"){const{position:k}=si(L,{x:L.computedPosition.x+y,y:L.computedPosition.y+v},d.error,A.value,L.parentNode?n(L.parentNode):void 0);I.push({id:L.id,position:k,from:L.position,distance:{x:h.x,y:h.y},dimensions:L.dimensions})}t(I,!0,!1)}}var Sr=.1,vB=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2;function mt(){return Tn("Viewport not initialized yet."),Promise.resolve(!1)}var QB={zoomIn:mt,zoomOut:mt,zoomTo:mt,fitView:mt,setCenter:mt,fitBounds:mt,project:e=>e,screenToFlowCoordinate:e=>e,flowToScreenCoordinate:e=>e,setViewport:mt,setTransform:mt,getViewport:()=>({x:0,y:0,zoom:1}),getTransform:()=>({x:0,y:0,zoom:1}),viewportInitialized:!1};function EB(e){function A(n,o){return new Promise(a=>{e.d3Selection&&e.d3Zoom?e.d3Zoom.interpolate(o?.interpolate==="linear"?En:fr).scaleBy(gi(e.d3Selection,o?.duration,o?.ease,()=>{a(!0)}),n):a(!1)})}function t(n,o,a,c){return new Promise(d=>{var h;const{x:g,y:B}=ca({x:-n,y:-o},e.translateExtent),w=Jt.translate(-g,-B).scale(a);e.d3Selection&&e.d3Zoom?(h=e.d3Zoom)==null||h.interpolate(c?.interpolate==="linear"?En:fr).transform(gi(e.d3Selection,c?.duration,c?.ease,()=>{d(!0)}),w):d(!1)})}return(0,r.computed)(()=>e.d3Zoom&&e.d3Selection&&e.dimensions.width&&e.dimensions.height?{viewportInitialized:!0,zoomIn:n=>A(1.2,n),zoomOut:n=>A(1/1.2,n),zoomTo:(n,o)=>new Promise(a=>{e.d3Selection&&e.d3Zoom?e.d3Zoom.interpolate(o?.interpolate==="linear"?En:fr).scaleTo(gi(e.d3Selection,o?.duration,o?.ease,()=>{a(!0)}),n):a(!1)}),setViewport:(n,o)=>t(n.x,n.y,n.zoom,o),setTransform:(n,o)=>t(n.x,n.y,n.zoom,o),getViewport:()=>({x:e.viewport.x,y:e.viewport.y,zoom:e.viewport.zoom}),getTransform:()=>({x:e.viewport.x,y:e.viewport.y,zoom:e.viewport.zoom}),fitView:(n={padding:Sr,includeHiddenNodes:!1,duration:0})=>{var o,a;const c=[];for(const B of e.nodes)B.dimensions.width&&B.dimensions.height&&(n?.includeHiddenNodes||!B.hidden)&&(!((o=n.nodes)!=null&&o.length)||(a=n.nodes)!=null&&a.length&&n.nodes.includes(B.id))&&c.push(B);if(!c.length)return Promise.resolve(!1);const{x:d,y:h,zoom:g}=wa(Ba(c),e.dimensions.width,e.dimensions.height,n.minZoom??e.minZoom,n.maxZoom??e.maxZoom,n.padding??Sr);return t(d,h,g,n)},setCenter:(n,o,a)=>{const c=typeof a?.zoom<"u"?a.zoom:e.maxZoom;return t(e.dimensions.width/2-n*c,e.dimensions.height/2-o*c,c,a)},fitBounds:(n,o={padding:Sr})=>{const{x:a,y:c,zoom:d}=wa(n,e.dimensions.width,e.dimensions.height,e.minZoom,e.maxZoom,o.padding??Sr);return t(a,c,d,o)},project:n=>Nn(n,e.viewport,e.snapToGrid,e.snapGrid),screenToFlowCoordinate:n=>{if(e.vueFlowRef){const{x:o,y:a}=e.vueFlowRef.getBoundingClientRect();return Nn({x:n.x-o,y:n.y-a},e.viewport,e.snapToGrid,e.snapGrid)}return{x:0,y:0}},flowToScreenCoordinate:n=>{if(e.vueFlowRef){const{x:o,y:a}=e.vueFlowRef.getBoundingClientRect();return Dn({x:n.x+o,y:n.y+a},e.viewport)}return{x:0,y:0}}}:QB)}function gi(e,A=0,t=vB,n=()=>{}){const o=typeof A=="number"&&A>0;return o||n(),o?e.transition().duration(A).ease(t).on("end",n):e}function FB(e,A,t){const n=(0,r.effectScope)(!0);return n.run(()=>{const o=()=>{n.run(()=>{let I,L,k=!!(t.nodes.value.length||t.edges.value.length);I=zt([e.modelValue,()=>{var V,F;return(F=(V=e.modelValue)==null?void 0:V.value)==null?void 0:F.length}],([V])=>{V&&Array.isArray(V)&&(L?.pause(),t.setElements(V),!L&&!k&&V.length?k=!0:L?.resume())}),L=zt([t.nodes,t.edges,()=>t.edges.value.length,()=>t.nodes.value.length],([V,F])=>{var M;(M=e.modelValue)!=null&&M.value&&Array.isArray(e.modelValue.value)&&(I?.pause(),e.modelValue.value=[...V,...F],(0,r.nextTick)(()=>{I?.resume()}))},{immediate:k}),(0,r.onScopeDispose)(()=>{I?.stop(),L?.stop()})})},a=()=>{n.run(()=>{let I,L,k=!!t.nodes.value.length;I=zt([e.nodes,()=>{var V,F;return(F=(V=e.nodes)==null?void 0:V.value)==null?void 0:F.length}],([V])=>{V&&Array.isArray(V)&&(L?.pause(),t.setNodes(V),!L&&!k&&V.length?k=!0:L?.resume())}),L=zt([t.nodes,()=>t.nodes.value.length],([V])=>{var F;(F=e.nodes)!=null&&F.value&&Array.isArray(e.nodes.value)&&(I?.pause(),e.nodes.value=[...V],(0,r.nextTick)(()=>{I?.resume()}))},{immediate:k}),(0,r.onScopeDispose)(()=>{I?.stop(),L?.stop()})})},c=()=>{n.run(()=>{let I,L,k=!!t.edges.value.length;I=zt([e.edges,()=>{var V,F;return(F=(V=e.edges)==null?void 0:V.value)==null?void 0:F.length}],([V])=>{V&&Array.isArray(V)&&(L?.pause(),t.setEdges(V),!L&&!k&&V.length?k=!0:L?.resume())}),L=zt([t.edges,()=>t.edges.value.length],([V])=>{var F;(F=e.edges)!=null&&F.value&&Array.isArray(e.edges.value)&&(I?.pause(),e.edges.value=[...V],(0,r.nextTick)(()=>{I?.resume()}))},{immediate:k}),(0,r.onScopeDispose)(()=>{I?.stop(),L?.stop()})})},d=()=>{n.run(()=>{(0,r.watch)(()=>A.maxZoom,()=>{A.maxZoom&&le(A.maxZoom)&&t.setMaxZoom(A.maxZoom)},{immediate:!0})})},h=()=>{n.run(()=>{(0,r.watch)(()=>A.minZoom,()=>{A.minZoom&&le(A.minZoom)&&t.setMinZoom(A.minZoom)},{immediate:!0})})},g=()=>{n.run(()=>{(0,r.watch)(()=>A.translateExtent,()=>{A.translateExtent&&le(A.translateExtent)&&t.setTranslateExtent(A.translateExtent)},{immediate:!0})})},B=()=>{n.run(()=>{(0,r.watch)(()=>A.nodeExtent,()=>{A.nodeExtent&&le(A.nodeExtent)&&t.setNodeExtent(A.nodeExtent)},{immediate:!0})})},w=()=>{n.run(()=>{(0,r.watch)(()=>A.applyDefault,()=>{le(A.applyDefault)&&(t.applyDefault.value=A.applyDefault)},{immediate:!0})})},m=()=>{n.run(()=>{const I=async L=>{let k=L;typeof A.autoConnect=="function"&&(k=await A.autoConnect(L)),k!==!1&&t.addEdges([k])};(0,r.watch)(()=>A.autoConnect,()=>{le(A.autoConnect)&&(t.autoConnect.value=A.autoConnect)},{immediate:!0}),(0,r.watch)(t.autoConnect,(L,k,V)=>{L?t.onConnect(I):t.hooks.value.connect.off(I),V(()=>{t.hooks.value.connect.off(I)})},{immediate:!0})})},y=()=>{const I=["id","modelValue","translateExtent","nodeExtent","edges","nodes","maxZoom","minZoom","applyDefault","autoConnect"];for(const L of Object.keys(A)){const k=L;if(!I.includes(k)){const V=(0,r.toRef)(()=>A[k]),F=t[k];(0,r.isRef)(F)&&n.run(()=>{(0,r.watch)(V,M=>{le(M)&&(F.value=M)},{immediate:!0})})}}};o(),a(),c(),h(),d(),g(),B(),w(),m(),y()}),()=>n.stop()}function UB(){return{edgesChange:EA(),nodesChange:EA(),nodeDoubleClick:EA(),nodeClick:EA(),nodeMouseEnter:EA(),nodeMouseMove:EA(),nodeMouseLeave:EA(),nodeContextMenu:EA(),nodeDragStart:EA(),nodeDrag:EA(),nodeDragStop:EA(),nodesInitialized:EA(),miniMapNodeClick:EA(),miniMapNodeDoubleClick:EA(),miniMapNodeMouseEnter:EA(),miniMapNodeMouseMove:EA(),miniMapNodeMouseLeave:EA(),connect:EA(),connectStart:EA(),connectEnd:EA(),clickConnectStart:EA(),clickConnectEnd:EA(),paneReady:EA(),init:EA(),move:EA(),moveStart:EA(),moveEnd:EA(),selectionDragStart:EA(),selectionDrag:EA(),selectionDragStop:EA(),selectionContextMenu:EA(),selectionStart:EA(),selectionEnd:EA(),viewportChangeStart:EA(),viewportChange:EA(),viewportChangeEnd:EA(),paneScroll:EA(),paneClick:EA(),paneContextMenu:EA(),paneMouseEnter:EA(),paneMouseMove:EA(),paneMouseLeave:EA(),edgeContextMenu:EA(),edgeMouseEnter:EA(),edgeMouseMove:EA(),edgeMouseLeave:EA(),edgeDoubleClick:EA(),edgeClick:EA(),edgeUpdateStart:EA(),edgeUpdate:EA(),edgeUpdateEnd:EA(),updateNodeInternals:EA(),error:EA(e=>Tn(e.message))}}function bB(e,A){const t=(0,r.getCurrentInstance)();(0,r.onBeforeMount)(()=>{for(const[o,a]of Object.entries(A.value)){const c=d=>{e(o,d)};a.setEmitter(c),mn(a.removeEmitter),a.setHasEmitListeners(()=>n(o)),mn(a.removeHasEmitListeners)}});function n(o){var a;const c=IB(o);return!!((a=t?.vnode.props)!=null&&a[c])}}function IB(e){const[A,...t]=e.split(":");return`on${A.replace(/(?:^|-)(\w)/g,(n,o)=>o.toUpperCase())}${t.length?`:${t.join(":")}`:""}`}function Wa(){return{vueFlowRef:null,viewportRef:null,nodes:[],edges:[],connectionLookup:new Map,nodeTypes:{},edgeTypes:{},initialized:!1,dimensions:{width:0,height:0},viewport:{x:0,y:0,zoom:1},d3Zoom:null,d3Selection:null,d3ZoomHandler:null,minZoom:.5,maxZoom:2,translateExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],nodeExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],selectionMode:ni.Full,paneDragging:!1,preventScrolling:!0,zoomOnScroll:!0,zoomOnPinch:!0,zoomOnDoubleClick:!0,panOnScroll:!1,panOnScrollSpeed:.5,panOnScrollMode:_n.Free,paneClickDistance:0,panOnDrag:!0,edgeUpdaterRadius:10,onlyRenderVisibleElements:!1,defaultViewport:{x:0,y:0,zoom:1},nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,defaultMarkerColor:"#b1b1b7",connectionLineStyle:{},connectionLineType:null,connectionLineOptions:{type:Dt.Bezier,style:{}},connectionMode:nt.Loose,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectionPosition:{x:NaN,y:NaN},connectionRadius:20,connectOnClick:!0,connectionStatus:null,isValidConnection:null,snapGrid:[15,15],snapToGrid:!1,edgesUpdatable:!1,edgesFocusable:!0,nodesFocusable:!0,nodesConnectable:!0,nodesDraggable:!0,nodeDragThreshold:1,elementsSelectable:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,selectionKeyCode:"Shift",multiSelectionKeyCode:br()?"Meta":"Control",zoomActivationKeyCode:br()?"Meta":"Control",deleteKeyCode:"Backspace",panActivationKeyCode:"Space",hooks:UB(),applyDefault:!0,autoConnect:!1,fitViewOnInit:!1,fitViewOnInitDone:!1,noDragClassName:"nodrag",noWheelClassName:"nowheel",noPanClassName:"nopan",defaultEdgeOptions:void 0,elevateEdgesOnSelect:!1,elevateNodesOnSelect:!0,autoPanOnNodeDrag:!0,autoPanOnConnect:!0,autoPanSpeed:15,disableKeyboardA11y:!1,ariaLiveMessage:""}}var HB=["id","vueFlowRef","viewportRef","initialized","modelValue","nodes","edges","maxZoom","minZoom","translateExtent","hooks","defaultEdgeOptions"];function _B(e,A,t){const n=EB(e),o=S=>{const H=S??[];e.hooks.updateNodeInternals.trigger(H)},a=S=>Gh(S,e.nodes,e.edges),c=S=>Ph(S,e.nodes,e.edges),d=S=>ma(S,e.edges),h=({id:S,type:H,nodeId:T})=>{var D;const b=S?`-${H}-${S}`:`-${H}`;return Array.from(((D=e.connectionLookup.get(`${T}${b}`))==null?void 0:D.values())??[])},g=S=>{if(S)return A.value.get(S)},B=S=>{if(S)return t.value.get(S)},w=(S,H,T)=>{var D,b;const z=[];for(const P of S){const gA={id:P.id,type:"position",dragging:T,from:P.from};if(H&&(gA.position=P.position,P.parentNode)){const iA=g(P.parentNode);gA.position={x:gA.position.x-(((D=iA?.computedPosition)==null?void 0:D.x)??0),y:gA.position.y-(((b=iA?.computedPosition)==null?void 0:b.y)??0)}}z.push(gA)}z?.length&&e.hooks.nodesChange.trigger(z)},m=S=>{if(!e.vueFlowRef)return;const H=e.vueFlowRef.querySelector(".vue-flow__transformationpane");if(!H)return;const T=window.getComputedStyle(H),{m22:D}=new window.DOMMatrixReadOnly(T.transform),b=[];for(const z of S){const P=z,gA=g(P.id);if(gA){const iA=Fr(P.nodeElement);if(iA.width&&iA.height&&(gA.dimensions.width!==iA.width||gA.dimensions.height!==iA.height||P.forceUpdate)){const SA=P.nodeElement.getBoundingClientRect();gA.dimensions=iA,gA.handleBounds.source=ka("source",P.nodeElement,SA,D,gA.id),gA.handleBounds.target=ka("target",P.nodeElement,SA,D,gA.id),b.push({id:gA.id,type:"dimensions",dimensions:iA})}}}!e.fitViewOnInitDone&&e.fitViewOnInit&&n.value.fitView().then(()=>{e.fitViewOnInitDone=!0}),b.length&&e.hooks.nodesChange.trigger(b)},y=(S,H)=>{const T=new Set,D=new Set;for(const P of S)Lt(P)?T.add(P.id):ht(P)&&D.add(P.id);const b=pt(A.value,T,!0),z=pt(t.value,D);if(e.multiSelectionActive){for(const P of T)b.push(Bt(P,H));for(const P of D)z.push(Bt(P,H))}b.length&&e.hooks.nodesChange.trigger(b),z.length&&e.hooks.edgesChange.trigger(z)},v=S=>{if(e.multiSelectionActive){const H=S.map(T=>Bt(T.id,!0));e.hooks.nodesChange.trigger(H);return}e.hooks.nodesChange.trigger(pt(A.value,new Set(S.map(H=>H.id)),!0)),e.hooks.edgesChange.trigger(pt(t.value))},I=S=>{if(e.multiSelectionActive){const H=S.map(T=>Bt(T.id,!0));e.hooks.edgesChange.trigger(H);return}e.hooks.edgesChange.trigger(pt(t.value,new Set(S.map(H=>H.id)))),e.hooks.nodesChange.trigger(pt(A.value,new Set,!0))},L=S=>{y(S,!0)},k=S=>{const H=(S||e.nodes).map(T=>(T.selected=!1,Bt(T.id,!1)));e.hooks.nodesChange.trigger(H)},V=S=>{const H=(S||e.edges).map(T=>(T.selected=!1,Bt(T.id,!1)));e.hooks.edgesChange.trigger(H)},F=S=>{if(!S||!S.length)return y([],!1);const H=S.reduce((T,D)=>{const b=Bt(D.id,!1);return Lt(D)?T.nodes.push(b):T.edges.push(b),T},{nodes:[],edges:[]});H.nodes.length&&e.hooks.nodesChange.trigger(H.nodes),H.edges.length&&e.hooks.edgesChange.trigger(H.edges)},M=S=>{var H;(H=e.d3Zoom)==null||H.scaleExtent([S,e.maxZoom]),e.minZoom=S},tA=S=>{var H;(H=e.d3Zoom)==null||H.scaleExtent([e.minZoom,S]),e.maxZoom=S},W=S=>{var H;(H=e.d3Zoom)==null||H.translateExtent(S),e.translateExtent=S},aA=S=>{e.nodeExtent=S,o()},dA=S=>{var H;(H=e.d3Zoom)==null||H.clickDistance(S)},rA=S=>{e.nodesDraggable=S,e.nodesConnectable=S,e.elementsSelectable=S},oA=S=>{const H=S instanceof Function?S(e.nodes):S;!e.initialized&&!H.length||(e.nodes=Ma(H,g,e.hooks.error.trigger))},AA=S=>{const H=S instanceof Function?S(e.edges):S;if(!e.initialized&&!H.length)return;const T=fi(H,e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);di(e.connectionLookup,t.value,T),e.edges=T},O=S=>{const H=S instanceof Function?S([...e.nodes,...e.edges]):S;!e.initialized&&!H.length||(oA(H.filter(Lt)),AA(H.filter(ht)))},lA=S=>{let H=S instanceof Function?S(e.nodes):S;H=Array.isArray(H)?H:[H];const T=Ma(H,g,e.hooks.error.trigger),D=[];for(const b of T)D.push(Fa(b));D.length&&e.hooks.nodesChange.trigger(D)},_=S=>{let H=S instanceof Function?S(e.edges):S;H=Array.isArray(H)?H:[H];const T=fi(H,e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges),D=[];for(const b of T)D.push(Fa(b));D.length&&e.hooks.edgesChange.trigger(D)},Z=(S,H=!0,T=!1)=>{const D=S instanceof Function?S(e.nodes):S,b=Array.isArray(D)?D:[D],z=[],P=[];function gA(SA){const xA=d(SA);for(const KA of xA)(!le(KA.deletable)||KA.deletable)&&P.push(ba(KA.id,KA.source,KA.target,KA.sourceHandle,KA.targetHandle))}function iA(SA){const xA=[];for(const KA of e.nodes)KA.parentNode===SA&&xA.push(KA);if(xA.length){for(const KA of xA)z.push(Ua(KA.id));H&&gA(xA);for(const KA of xA)iA(KA.id)}}for(const SA of b){const xA=typeof SA=="string"?g(SA):SA;xA&&(le(xA.deletable)&&!xA.deletable||(z.push(Ua(xA.id)),H&&gA([xA]),T&&iA(xA.id)))}P.length&&e.hooks.edgesChange.trigger(P),z.length&&e.hooks.nodesChange.trigger(z)},U=S=>{const H=S instanceof Function?S(e.edges):S,T=Array.isArray(H)?H:[H],D=[];for(const b of T){const z=typeof b=="string"?B(b):b;z&&(le(z.deletable)&&!z.deletable||D.push(ba(typeof b=="string"?b:b.id,z.source,z.target,z.sourceHandle,z.targetHandle)))}e.hooks.edgesChange.trigger(D)},x=(S,H,T=!0)=>{const D=B(S.id);if(!D)return!1;const b=e.edges.indexOf(D),z=fB(S,H,D,T,e.hooks.error.trigger);if(z){const[P]=fi([z],e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);return e.edges=e.edges.map((gA,iA)=>iA===b?P:gA),di(e.connectionLookup,t.value,[P]),P}return!1},G=(S,H,T={replace:!1})=>{const D=B(S);if(!D)return;const b=typeof H=="function"?H(D):H;D.data=T.replace?b:{...D.data,...b}},R=S=>Ea(S,e.nodes),$=S=>{const H=Ea(S,e.edges);return di(e.connectionLookup,t.value,H),H},J=(S,H,T={replace:!1})=>{const D=g(S);if(!D)return;const b=typeof H=="function"?H(D):H;T.replace?e.nodes.splice(e.nodes.indexOf(D),1,b):Object.assign(D,b)},nA=(S,H,T={replace:!1})=>{const D=g(S);if(!D)return;const b=typeof H=="function"?H(D):H;D.data=T.replace?b:{...D.data,...b}},hA=(S,H,T=!1)=>{T?e.connectionClickStartHandle=S:e.connectionStartHandle=S,e.connectionEndHandle=null,e.connectionStatus=null,H&&(e.connectionPosition=H)},UA=(S,H=null,T=null)=>{e.connectionStartHandle&&(e.connectionPosition=S,e.connectionEndHandle=H,e.connectionStatus=T)},eA=(S,H)=>{e.connectionPosition={x:NaN,y:NaN},e.connectionEndHandle=null,e.connectionStatus=null,H?e.connectionClickStartHandle=null:e.connectionStartHandle=null},uA=S=>{const H=Rh(S),T=H?null:xn(S)?S:g(S.id);return!H&&!T?[null,null,H]:[H?S:Qr(T),T,H]},Y=(S,H=!0,T=e.nodes)=>{const[D,b,z]=uA(S);if(!D)return[];const P=[];for(const gA of T||e.nodes){if(!z&&(gA.id===b.id||!gA.computedPosition))continue;const iA=Qr(gA),SA=Er(iA,D);(H&&SA>0||SA>=iA.width*iA.height||SA>=Number(D.width)*Number(D.height))&&P.push(gA)}return P},cA=(S,H,T=!0)=>{const[D]=uA(S);if(!D)return!1;const b=Er(D,H);return T&&b>0||b>=Number(D.width)*Number(D.height)},mA=S=>{const{viewport:H,dimensions:T,d3Zoom:D,d3Selection:b,translateExtent:z}=e;if(!D||!b||!S.x&&!S.y)return!1;const P=Jt.translate(H.x+S.x,H.y+S.y).scale(H.zoom),gA=[[0,0],[T.width,T.height]],iA=D.constrain()(P,gA,z),SA=e.viewport.x!==iA.x||e.viewport.y!==iA.y||e.viewport.zoom!==iA.k;return D.transform(b,iA),SA},yA=S=>{const H=S instanceof Function?S(e):S,T=["d3Zoom","d3Selection","d3ZoomHandler","viewportRef","vueFlowRef","dimensions","hooks"];le(H.defaultEdgeOptions)&&(e.defaultEdgeOptions=H.defaultEdgeOptions);const D=H.modelValue||H.nodes||H.edges?[]:void 0;D&&(H.modelValue&&D.push(...H.modelValue),H.nodes&&D.push(...H.nodes),H.edges&&D.push(...H.edges),O(D));const b=()=>{le(H.maxZoom)&&tA(H.maxZoom),le(H.minZoom)&&M(H.minZoom),le(H.translateExtent)&&W(H.translateExtent)};for(const z of Object.keys(H)){const P=z,gA=H[P];![...HB,...T].includes(P)&&le(gA)&&(e[P]=gA)}To(()=>e.d3Zoom).not.toBeNull().then(b),e.initialized||(e.initialized=!0)};return{updateNodePositions:w,updateNodeDimensions:m,setElements:O,setNodes:oA,setEdges:AA,addNodes:lA,addEdges:_,removeNodes:Z,removeEdges:U,findNode:g,findEdge:B,updateEdge:x,updateEdgeData:G,updateNode:J,updateNodeData:nA,applyEdgeChanges:$,applyNodeChanges:R,addSelectedElements:L,addSelectedNodes:v,addSelectedEdges:I,setMinZoom:M,setMaxZoom:tA,setTranslateExtent:W,setNodeExtent:aA,setPaneClickDistance:dA,removeSelectedElements:F,removeSelectedNodes:k,removeSelectedEdges:V,startConnection:hA,updateConnection:UA,endConnection:eA,setInteractive:rA,setState:yA,getIntersectingNodes:Y,getIncomers:a,getOutgoers:c,getConnectedEdges:d,getHandleConnections:h,isNodeIntersecting:cA,panBy:mA,fitView:S=>n.value.fitView(S),zoomIn:S=>n.value.zoomIn(S),zoomOut:S=>n.value.zoomOut(S),zoomTo:(S,H)=>n.value.zoomTo(S,H),setViewport:(S,H)=>n.value.setViewport(S,H),setTransform:(S,H)=>n.value.setTransform(S,H),getViewport:()=>n.value.getViewport(),getTransform:()=>n.value.getTransform(),setCenter:(S,H,T)=>n.value.setCenter(S,H,T),fitBounds:(S,H)=>n.value.fitBounds(S,H),project:S=>n.value.project(S),screenToFlowCoordinate:S=>n.value.screenToFlowCoordinate(S),flowToScreenCoordinate:S=>n.value.flowToScreenCoordinate(S),toObject:()=>{const S=[],H=[];for(const T of e.nodes){const{computedPosition:D,handleBounds:b,selected:z,dimensions:P,isParent:gA,resizing:iA,dragging:SA,events:xA,...KA}=T;S.push(KA)}for(const T of e.edges){const{selected:D,sourceNode:b,targetNode:z,events:P,...gA}=T;H.push(gA)}return JSON.parse(JSON.stringify({nodes:S,edges:H,position:[e.viewport.x,e.viewport.y],zoom:e.viewport.zoom,viewport:e.viewport}))},fromObject:S=>new Promise(H=>{const{nodes:T,edges:D,position:b,zoom:z,viewport:P}=S;T&&oA(T),D&&AA(D);const[gA,iA]=P?.x&&P?.y?[P.x,P.y]:b??[null,null];if(gA&&iA){const SA=P?.zoom||z||e.viewport.zoom;return To(()=>n.value.viewportInitialized).toBe(!0).then(()=>{n.value.setViewport({x:gA,y:iA,zoom:SA}).then(()=>{H(!0)})})}else H(!0)}),updateNodeInternals:o,viewportHelper:n,$reset:()=>{const S=Wa();if(e.edges=[],e.nodes=[],e.d3Zoom&&e.d3Selection){const H=Jt.translate(S.defaultViewport.x??0,S.defaultViewport.y??0).scale(Nt(S.defaultViewport.zoom??1,S.minZoom,S.maxZoom)),T=e.viewportRef.getBoundingClientRect(),D=[[0,0],[T.width,T.height]],b=e.d3Zoom.constrain()(H,D,S.translateExtent);e.d3Zoom.transform(e.d3Selection,b)}yA(S)},$destroy:()=>{}}}var SB=["data-id","data-handleid","data-nodeid","data-handlepos"],An=(0,r.defineComponent)({name:"Handle",compatConfig:{MODE:3},props:{id:{default:null},type:{},position:{default:()=>HA.Top},isValidConnection:{type:Function},connectable:{type:[Boolean,Number,String,Function],default:void 0},connectableStart:{type:Boolean,default:!0},connectableEnd:{type:Boolean,default:!0}},setup(e,{expose:A}){const t=(0,r.createPropsRestProxy)(e,["position","connectable","connectableStart","connectableEnd","id"]),n=(0,r.toRef)(()=>t.type??"source"),o=(0,r.toRef)(()=>t.isValidConnection??null),{id:a,connectionStartHandle:c,connectionClickStartHandle:d,connectionEndHandle:h,vueFlowRef:g,nodesConnectable:B,noDragClassName:w,noPanClassName:m}=ZA(),{id:y,node:v,nodeEl:I,connectedEdges:L}=$a(),k=(0,r.ref)(),V=(0,r.toRef)(()=>typeof e.connectableStart<"u"?e.connectableStart:!0),F=(0,r.toRef)(()=>typeof e.connectableEnd<"u"?e.connectableEnd:!0),M=(0,r.toRef)(()=>{var AA,O,lA,_,Z,U;return((AA=c.value)==null?void 0:AA.nodeId)===y&&((O=c.value)==null?void 0:O.id)===e.id&&((lA=c.value)==null?void 0:lA.type)===n.value||((_=h.value)==null?void 0:_.nodeId)===y&&((Z=h.value)==null?void 0:Z.id)===e.id&&((U=h.value)==null?void 0:U.type)===n.value}),tA=(0,r.toRef)(()=>{var AA,O,lA;return((AA=d.value)==null?void 0:AA.nodeId)===y&&((O=d.value)==null?void 0:O.id)===e.id&&((lA=d.value)==null?void 0:lA.type)===n.value}),{handlePointerDown:W,handleClick:aA}=za({nodeId:y,handleId:e.id,isValidConnection:o,type:n}),dA=(0,r.computed)(()=>typeof e.connectable=="string"&&e.connectable==="single"?!L.value.some(AA=>{const O=AA[`${n.value}Handle`];return AA[n.value]!==y?!1:O?O===e.id:!0}):typeof e.connectable=="number"?L.value.filter(AA=>{const O=AA[`${n.value}Handle`];return AA[n.value]!==y?!1:O?O===e.id:!0}).length<e.connectable:typeof e.connectable=="function"?e.connectable(v,L.value):le(e.connectable)?e.connectable:B.value);(0,r.onMounted)(()=>{var AA;if(!v.dimensions.width||!v.dimensions.height)return;const O=(AA=v.handleBounds[n.value])==null?void 0:AA.find(R=>R.id===e.id);if(!g.value||O)return;const lA=g.value.querySelector(".vue-flow__transformationpane");if(!I.value||!k.value||!lA||!e.id)return;const _=I.value.getBoundingClientRect(),Z=k.value.getBoundingClientRect(),U=window.getComputedStyle(lA),{m22:x}=new window.DOMMatrixReadOnly(U.transform),G={id:e.id,position:e.position,x:(Z.left-_.left)/x,y:(Z.top-_.top)/x,type:n.value,nodeId:y,...Fr(k.value)};v.handleBounds[n.value]=[...v.handleBounds[n.value]??[],G]});function rA(AA){const O=ai(AA);dA.value&&V.value&&(O&&AA.button===0||!O)&&W(AA)}function oA(AA){!y||!d.value&&!V.value||dA.value&&aA(AA)}return A({handleClick:aA,handlePointerDown:W,onClick:oA,onPointerDown:rA}),(AA,O)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"handle",ref:k,"data-id":`${(0,r.unref)(a)}-${(0,r.unref)(y)}-${e.id}-${n.value}`,"data-handleid":e.id,"data-nodeid":(0,r.unref)(y),"data-handlepos":AA.position,class:(0,r.normalizeClass)(["vue-flow__handle",[`vue-flow__handle-${AA.position}`,`vue-flow__handle-${e.id}`,(0,r.unref)(w),(0,r.unref)(m),n.value,{connectable:dA.value,connecting:tA.value,connectablestart:V.value,connectableend:F.value,connectionindicator:dA.value&&(V.value&&!M.value||F.value&&M.value)}]]),onMousedown:rA,onTouchstartPassive:rA,onClick:oA},[(0,r.renderSlot)(AA.$slots,"default",{id:AA.id})],42,SB))}}),xr=function({sourcePosition:e=HA.Bottom,targetPosition:A=HA.Top,label:t,connectable:n=!0,isValidTargetPos:o,isValidSourcePos:a,data:c}){const d=c.label??t;return[(0,r.h)(An,{type:"target",position:A,connectable:n,isValidConnection:o}),typeof d!="string"&&d?(0,r.h)(d):(0,r.h)(r.Fragment,[d]),(0,r.h)(An,{type:"source",position:e,connectable:n,isValidConnection:a})]};xr.props=["sourcePosition","targetPosition","label","isValidTargetPos","isValidSourcePos","connectable","data"],xr.inheritAttrs=!1,xr.compatConfig={MODE:3};var xB=xr,Dr=function({targetPosition:e=HA.Top,label:A,connectable:t=!0,isValidTargetPos:n,data:o}){const a=o.label??A;return[(0,r.h)(An,{type:"target",position:e,connectable:t,isValidConnection:n}),typeof a!="string"&&a?(0,r.h)(a):(0,r.h)(r.Fragment,[a])]};Dr.props=["targetPosition","label","isValidTargetPos","connectable","data"],Dr.inheritAttrs=!1,Dr.compatConfig={MODE:3};var DB=Dr,Nr=function({sourcePosition:e=HA.Bottom,label:A,connectable:t=!0,isValidSourcePos:n,data:o}){const a=o.label??A;return[typeof a!="string"&&a?(0,r.h)(a):(0,r.h)(r.Fragment,[a]),(0,r.h)(An,{type:"source",position:e,connectable:t,isValidConnection:n})]};Nr.props=["sourcePosition","label","isValidSourcePos","connectable","data"],Nr.inheritAttrs=!1,Nr.compatConfig={MODE:3};var NB=Nr,LB=["transform"],TB=["width","height","x","y","rx","ry"],kB=["y"],MB=(0,r.defineComponent)({name:"EdgeText",compatConfig:{MODE:3},props:{x:{},y:{},label:{},labelStyle:{default:()=>({})},labelShowBg:{type:Boolean,default:!0},labelBgStyle:{default:()=>({})},labelBgPadding:{default:()=>[2,4]},labelBgBorderRadius:{default:2}},setup(e){const A=(0,r.ref)({x:0,y:0,width:0,height:0}),t=(0,r.ref)(null),n=(0,r.computed)(()=>`translate(${e.x-A.value.width/2} ${e.y-A.value.height/2})`);(0,r.onMounted)(o),(0,r.watch)([()=>e.x,()=>e.y,t,()=>e.label],o);function o(){if(!t.value)return;const a=t.value.getBBox();(a.width!==A.value.width||a.height!==A.value.height)&&(A.value=a)}return(a,c)=>((0,r.openBlock)(),(0,r.createElementBlock)("g",{transform:n.value,class:"vue-flow__edge-textwrapper"},[a.labelShowBg?((0,r.openBlock)(),(0,r.createElementBlock)("rect",{key:0,class:"vue-flow__edge-textbg",width:`${A.value.width+2*a.labelBgPadding[0]}px`,height:`${A.value.height+2*a.labelBgPadding[1]}px`,x:-a.labelBgPadding[0],y:-a.labelBgPadding[1],style:(0,r.normalizeStyle)(a.labelBgStyle),rx:a.labelBgBorderRadius,ry:a.labelBgBorderRadius},null,12,TB)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("text",(0,r.mergeProps)(a.$attrs,{ref_key:"el",ref:t,class:"vue-flow__edge-text",y:A.value.height/2,dy:"0.3em",style:a.labelStyle}),[(0,r.renderSlot)(a.$slots,"default",{},()=>[typeof a.label!="string"?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(a.label),{key:0})):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(a.label),1)],64))])],16,kB)],8,LB))}}),OB=["id","d","marker-end","marker-start"],KB=["d","stroke-width"],kn=(0,r.defineComponent)({name:"BaseEdge",inheritAttrs:!1,compatConfig:{MODE:3},props:{id:{},labelX:{},labelY:{},path:{},label:{},markerStart:{},markerEnd:{},interactionWidth:{default:20},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{}},setup(e,{expose:A}){const t=(0,r.ref)(null),n=(0,r.ref)(null),o=(0,r.ref)(null),a=(0,r.useAttrs)();return A({pathEl:t,interactionEl:n,labelEl:o}),(c,d)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("path",(0,r.mergeProps)((0,r.unref)(a),{id:c.id,ref_key:"pathEl",ref:t,d:c.path,class:"vue-flow__edge-path","marker-end":c.markerEnd,"marker-start":c.markerStart}),null,16,OB),c.interactionWidth?((0,r.openBlock)(),(0,r.createElementBlock)("path",{key:0,ref_key:"interactionEl",ref:n,fill:"none",d:c.path,"stroke-width":c.interactionWidth,"stroke-opacity":0,class:"vue-flow__edge-interaction"},null,8,KB)):(0,r.createCommentVNode)("",!0),c.label&&c.labelX&&c.labelY?((0,r.openBlock)(),(0,r.createBlock)(MB,{key:1,ref_key:"labelEl",ref:o,x:c.labelX,y:c.labelY,label:c.label,"label-show-bg":c.labelShowBg,"label-bg-style":c.labelBgStyle,"label-bg-padding":c.labelBgPadding,"label-bg-border-radius":c.labelBgBorderRadius,"label-style":c.labelStyle},null,8,["x","y","label","label-show-bg","label-bg-style","label-bg-padding","label-bg-border-radius","label-style"])):(0,r.createCommentVNode)("",!0)],64))}});function Ya({sourceX:e,sourceY:A,targetX:t,targetY:n}){const o=Math.abs(t-e)/2,a=t<e?t+o:t-o,c=Math.abs(n-A)/2;return[a,n<A?n+c:n-c,o,c]}function Ja({sourceX:e,sourceY:A,targetX:t,targetY:n,sourceControlX:o,sourceControlY:a,targetControlX:c,targetControlY:d}){const h=e*.125+o*.375+c*.375+t*.125,g=A*.125+a*.375+d*.375+n*.125;return[h,g,Math.abs(h-e),Math.abs(g-A)]}function Lr(e,A){return e>=0?.5*e:A*25*Math.sqrt(-e)}function Za({pos:e,x1:A,y1:t,x2:n,y2:o,c:a}){let c,d;switch(e){case HA.Left:c=A-Lr(A-n,a),d=t;break;case HA.Right:c=A+Lr(n-A,a),d=t;break;case HA.Top:c=A,d=t-Lr(t-o,a);break;case HA.Bottom:c=A,d=t+Lr(o-t,a);break}return[c,d]}function hi(e){const{sourceX:A,sourceY:t,sourcePosition:n=HA.Bottom,targetX:o,targetY:a,targetPosition:c=HA.Top,curvature:d=.25}=e,[h,g]=Za({pos:n,x1:A,y1:t,x2:o,y2:a,c:d}),[B,w]=Za({pos:c,x1:o,y1:a,x2:A,y2:t,c:d}),[m,y,v,I]=Ja({sourceX:A,sourceY:t,targetX:o,targetY:a,sourceControlX:h,sourceControlY:g,targetControlX:B,targetControlY:w});return[`M${A},${t} C${h},${g} ${B},${w} ${o},${a}`,m,y,v,I]}function ja({pos:e,x1:A,y1:t,x2:n,y2:o}){let a,c;switch(e){case HA.Left:case HA.Right:a=.5*(A+n),c=t;break;case HA.Top:case HA.Bottom:a=A,c=.5*(t+o);break}return[a,c]}function qa(e){const{sourceX:A,sourceY:t,sourcePosition:n=HA.Bottom,targetX:o,targetY:a,targetPosition:c=HA.Top}=e,[d,h]=ja({pos:n,x1:A,y1:t,x2:o,y2:a}),[g,B]=ja({pos:c,x1:o,y1:a,x2:A,y2:t}),[w,m,y,v]=Ja({sourceX:A,sourceY:t,targetX:o,targetY:a,sourceControlX:d,sourceControlY:h,targetControlX:g,targetControlY:B});return[`M${A},${t} C${d},${h} ${g},${B} ${o},${a}`,w,m,y,v]}var Al={[HA.Left]:{x:-1,y:0},[HA.Right]:{x:1,y:0},[HA.Top]:{x:0,y:-1},[HA.Bottom]:{x:0,y:1}};function RB({source:e,sourcePosition:A=HA.Bottom,target:t}){return A===HA.Left||A===HA.Right?e.x<t.x?{x:1,y:0}:{x:-1,y:0}:e.y<t.y?{x:0,y:1}:{x:0,y:-1}}function el(e,A){return Math.sqrt((A.x-e.x)**2+(A.y-e.y)**2)}function VB({source:e,sourcePosition:A=HA.Bottom,target:t,targetPosition:n=HA.Top,center:o,offset:a}){const c=Al[A],d=Al[n],h={x:e.x+c.x*a,y:e.y+c.y*a},g={x:t.x+d.x*a,y:t.y+d.y*a},B=RB({source:h,sourcePosition:A,target:g}),w=B.x!==0?"x":"y",m=B[w];let y,v,I;const L={x:0,y:0},k={x:0,y:0},[V,F,M,tA]=Ya({sourceX:e.x,sourceY:e.y,targetX:t.x,targetY:t.y});if(c[w]*d[w]===-1){v=o.x??V,I=o.y??F;const W=[{x:v,y:h.y},{x:v,y:g.y}],aA=[{x:h.x,y:I},{x:g.x,y:I}];c[w]===m?y=w==="x"?W:aA:y=w==="x"?aA:W}else{const W=[{x:h.x,y:g.y}],aA=[{x:g.x,y:h.y}];if(w==="x"?y=c.x===m?aA:W:y=c.y===m?W:aA,A===n){const oA=Math.abs(e[w]-t[w]);if(oA<=a){const AA=Math.min(a-1,a-oA);c[w]===m?L[w]=(h[w]>e[w]?-1:1)*AA:k[w]=(g[w]>t[w]?-1:1)*AA}}if(A!==n){const oA=w==="x"?"y":"x",AA=c[w]===d[oA],O=h[oA]>g[oA],lA=h[oA]<g[oA];(c[w]===1&&(!AA&&O||AA&&lA)||c[w]!==1&&(!AA&&lA||AA&&O))&&(y=w==="x"?W:aA)}const dA={x:h.x+L.x,y:h.y+L.y},rA={x:g.x+k.x,y:g.y+k.y};Math.max(Math.abs(dA.x-y[0].x),Math.abs(rA.x-y[0].x))>=Math.max(Math.abs(dA.y-y[0].y),Math.abs(rA.y-y[0].y))?(v=(dA.x+rA.x)/2,I=y[0].y):(v=y[0].x,I=(dA.y+rA.y)/2)}return[[e,{x:h.x+L.x,y:h.y+L.y},...y,{x:g.x+k.x,y:g.y+k.y},t],v,I,M,tA]}function PB(e,A,t,n){const o=Math.min(el(e,A)/2,el(A,t)/2,n),{x:a,y:c}=A;if(e.x===a&&a===t.x||e.y===c&&c===t.y)return`L${a} ${c}`;if(e.y===c){const h=e.x<t.x?-1:1,g=e.y<t.y?1:-1;return`L ${a+o*h},${c}Q ${a},${c} ${a},${c+o*g}`}const d=e.x<t.x?1:-1;return`L ${a},${c+o*(e.y<t.y?-1:1)}Q ${a},${c} ${a+o*d},${c}`}function Bi(e){const{sourceX:A,sourceY:t,sourcePosition:n=HA.Bottom,targetX:o,targetY:a,targetPosition:c=HA.Top,borderRadius:d=5,centerX:h,centerY:g,offset:B=20}=e,[w,m,y,v,I]=VB({source:{x:A,y:t},sourcePosition:n,target:{x:o,y:a},targetPosition:c,center:{x:h,y:g},offset:B});return[w.reduce((L,k,V)=>{let F;return V>0&&V<w.length-1?F=PB(w[V-1],k,w[V+1],d):F=`${V===0?"M":"L"}${k.x} ${k.y}`,L+=F,L},""),m,y,v,I]}function GB(e){const{sourceX:A,sourceY:t,targetX:n,targetY:o}=e,[a,c,d,h]=Ya({sourceX:A,sourceY:t,targetX:n,targetY:o});return[`M ${A},${t}L ${n},${o}`,a,c,d,h]}var zB=(0,r.defineComponent)({name:"StraightEdge",props:["label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(e,{attrs:A}){return()=>{const[t,n,o]=GB(e);return(0,r.h)(kn,{path:t,labelX:n,labelY:o,...A,...e})}}}),tl=(0,r.defineComponent)({name:"SmoothStepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","borderRadius","markerEnd","markerStart","interactionWidth","offset"],compatConfig:{MODE:3},setup(e,{attrs:A}){return()=>{const[t,n,o]=Bi({...e,sourcePosition:e.sourcePosition??HA.Bottom,targetPosition:e.targetPosition??HA.Top});return(0,r.h)(kn,{path:t,labelX:n,labelY:o,...A,...e})}}}),$B=(0,r.defineComponent)({name:"StepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],setup(e,{attrs:A}){return()=>(0,r.h)(tl,{...e,...A,borderRadius:0})}}),XB=(0,r.defineComponent)({name:"BezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","curvature","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(e,{attrs:A}){return()=>{const[t,n,o]=hi({...e,sourcePosition:e.sourcePosition??HA.Bottom,targetPosition:e.targetPosition??HA.Top});return(0,r.h)(kn,{path:t,labelX:n,labelY:o,...A,...e})}}}),WB=(0,r.defineComponent)({name:"SimpleBezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(e,{attrs:A}){return()=>{const[t,n,o]=qa({...e,sourcePosition:e.sourcePosition??HA.Bottom,targetPosition:e.targetPosition??HA.Top});return(0,r.h)(kn,{path:t,labelX:n,labelY:o,...A,...e})}}}),YB={input:NB,default:xB,output:DB},JB={default:XB,straight:zB,step:$B,smoothstep:tl,simplebezier:WB};function ZB(e,A,t){const n=(0,r.computed)(()=>v=>A.value.get(v)),o=(0,r.computed)(()=>v=>t.value.get(v)),a=(0,r.computed)(()=>{const v={...JB,...e.edgeTypes},I=Object.keys(v);for(const L of e.edges)L.type&&!I.includes(L.type)&&(v[L.type]=L.type);return v}),c=(0,r.computed)(()=>{const v={...YB,...e.nodeTypes},I=Object.keys(v);for(const L of e.nodes)L.type&&!I.includes(L.type)&&(v[L.type]=L.type);return v}),d=(0,r.computed)(()=>e.onlyRenderVisibleElements?pa(e.nodes,{x:0,y:0,width:e.dimensions.width,height:e.dimensions.height},e.viewport,!0):e.nodes),h=(0,r.computed)(()=>{if(e.onlyRenderVisibleElements){const v=[];for(const I of e.edges){const L=A.value.get(I.source),k=A.value.get(I.target);eB({sourcePos:L.computedPosition||{x:0,y:0},targetPos:k.computedPosition||{x:0,y:0},sourceWidth:L.dimensions.width,sourceHeight:L.dimensions.height,targetWidth:k.dimensions.width,targetHeight:k.dimensions.height,width:e.dimensions.width,height:e.dimensions.height,viewport:e.viewport})&&v.push(I)}return v}return e.edges}),g=(0,r.computed)(()=>[...d.value,...h.value]),B=(0,r.computed)(()=>{const v=[];for(const I of e.nodes)I.selected&&v.push(I);return v}),w=(0,r.computed)(()=>{const v=[];for(const I of e.edges)I.selected&&v.push(I);return v}),m=(0,r.computed)(()=>[...B.value,...w.value]),y=(0,r.computed)(()=>{const v=[];for(const I of e.nodes)I.dimensions.width&&I.dimensions.height&&I.handleBounds!==void 0&&v.push(I);return v});return{getNode:n,getEdge:o,getElements:g,getEdgeTypes:a,getNodeTypes:c,getEdges:h,getNodes:d,getSelectedElements:m,getSelectedNodes:B,getSelectedEdges:w,getNodesInitialized:y,areNodesInitialized:(0,r.computed)(()=>d.value.length>0&&y.value.length===d.value.length)}}var jB=class hn{constructor(){this.currentId=0,this.flows=new Map}static getInstance(){var A;const t=(A=(0,r.getCurrentInstance)())==null?void 0:A.appContext.app;return hn.instance=t?.config.globalProperties.$vueFlowStorage??hn.instance??new hn,t&&(t.config.globalProperties.$vueFlowStorage=hn.instance),hn.instance}set(A,t){return this.flows.set(A,t)}get(A){return this.flows.get(A)}remove(A){return this.flows.delete(A)}create(A,t){const n=(0,r.reactive)(Wa()),o={};for(const[w,m]of Object.entries(n.hooks)){const y=`on${w.charAt(0).toUpperCase()+w.slice(1)}`;o[y]=m.on}const a={};for(const[w,m]of Object.entries(n.hooks))a[w]=m.trigger;const c=(0,r.computed)(()=>{const w=new Map;for(const m of n.nodes)w.set(m.id,m);return w}),d=(0,r.computed)(()=>{const w=new Map;for(const m of n.edges)w.set(m.id,m);return w}),h=ZB(n,c,d),g=_B(n,c,d);g.setState({...n,...t});const B={...o,...h,...g,...Yu(n),nodeLookup:c,edgeLookup:d,emits:a,id:A,vueFlowVersion:"1.48.2",$destroy:()=>{this.remove(A)}};return this.set(A,B),B}getId(){return`vue-flow-${this.currentId++}`}};function ZA(e){const A=jB.getInstance(),t=(0,r.getCurrentScope)(),n=typeof e=="object",o=n?e:{id:e},a=o.id,c=a??t?.vueFlowId;let d;if(t){const h=(0,r.inject)(Ra,null);typeof h<"u"&&h!==null&&(!c||h.id===c)&&(d=h)}if(d||c&&(d=A.get(c)),!d||c&&d.id!==c){const h=a??A.getId(),g=A.create(h,o);d=g,(t??(0,r.effectScope)(!0)).run(()=>{(0,r.watch)(g.applyDefault,(B,w,m)=>{const y=I=>{g.applyNodeChanges(I)},v=I=>{g.applyEdgeChanges(I)};B?(g.onNodesChange(y),g.onEdgesChange(v)):(g.hooks.value.nodesChange.off(y),g.hooks.value.edgesChange.off(v)),m(()=>{g.hooks.value.nodesChange.off(y),g.hooks.value.edgesChange.off(v)})},{immediate:!0}),mn(()=>{if(d){const B=A.get(d.id);B?B.$destroy():Tn(`No store instance found for id ${d.id} in storage.`)}})})}else n&&d.setState(o);if(t&&((0,r.provide)(Ra,d),t.vueFlowId=d.id),n){const h=(0,r.getCurrentInstance)();h?.type.name!=="VueFlow"&&d.emits.error(new de(ae.USEVUEFLOW_OPTIONS))}return d}function qB(e){const{emits:A,dimensions:t}=ZA();let n;(0,r.onMounted)(()=>{const o=()=>{var a,c;if(!e.value||!(((c=(a=e.value).checkVisibility)==null?void 0:c.call(a))??!0))return;const d=Fr(e.value);(d.width===0||d.height===0)&&A.error(new de(ae.MISSING_VIEWPORT_DIMENSIONS)),t.value={width:d.width||500,height:d.height||500}};o(),window.addEventListener("resize",o),e.value&&(n=new ResizeObserver(()=>o()),n.observe(e.value)),(0,r.onBeforeUnmount)(()=>{window.removeEventListener("resize",o),n&&e.value&&n.unobserve(e.value)})})}var Ap=(0,r.defineComponent)({name:"UserSelection",compatConfig:{MODE:3},props:{userSelectionRect:{}},setup(e){return(A,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"vue-flow__selection vue-flow__container",style:(0,r.normalizeStyle)({width:`${A.userSelectionRect.width}px`,height:`${A.userSelectionRect.height}px`,transform:`translate(${A.userSelectionRect.x}px, ${A.userSelectionRect.y}px)`})},null,4))}}),ep=["tabIndex"],tp=(0,r.defineComponent)({name:"NodesSelection",compatConfig:{MODE:3},setup(e){const{emits:A,viewport:t,getSelectedNodes:n,noPanClassName:o,disableKeyboardA11y:a,userSelectionActive:c}=ZA(),d=Xa(),h=(0,r.ref)(null),g=Ga({el:h,onStart(v){A.selectionDragStart(v),A.nodeDragStart(v)},onDrag(v){A.selectionDrag(v),A.nodeDrag(v)},onStop(v){A.selectionDragStop(v),A.nodeDragStop(v)}});(0,r.onMounted)(()=>{var v;a.value||(v=h.value)==null||v.focus({preventScroll:!0})});const B=(0,r.computed)(()=>Ba(n.value)),w=(0,r.computed)(()=>({width:`${B.value.width}px`,height:`${B.value.height}px`,top:`${B.value.y}px`,left:`${B.value.x}px`}));function m(v){A.selectionContextMenu({event:v,nodes:n.value})}function y(v){a.value||Zt[v.key]&&(v.preventDefault(),d({x:Zt[v.key].x,y:Zt[v.key].y},v.shiftKey))}return(v,I)=>!(0,r.unref)(c)&&B.value.width&&B.value.height?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["vue-flow__nodesselection vue-flow__container",(0,r.unref)(o)]),style:(0,r.normalizeStyle)({transform:`translate(${(0,r.unref)(t).x}px,${(0,r.unref)(t).y}px) scale(${(0,r.unref)(t).zoom})`})},[(0,r.createElementVNode)("div",{ref_key:"el",ref:h,class:(0,r.normalizeClass)([{dragging:(0,r.unref)(g)},"vue-flow__nodesselection-rect"]),style:(0,r.normalizeStyle)(w.value),tabIndex:(0,r.unref)(a)?void 0:-1,onContextmenu:m,onKeydown:y},null,46,ep)],6)):(0,r.createCommentVNode)("",!0)}});function np(e,A){return{x:e.clientX-A.left,y:e.clientY-A.top}}var rp=(0,r.defineComponent)({name:"Pane",compatConfig:{MODE:3},props:{isSelecting:{type:Boolean},selectionKeyPressed:{type:Boolean}},setup(e){const{vueFlowRef:A,nodes:t,viewport:n,emits:o,userSelectionActive:a,removeSelectedElements:c,userSelectionRect:d,elementsSelectable:h,nodesSelectionActive:g,getSelectedEdges:B,getSelectedNodes:w,removeNodes:m,removeEdges:y,selectionMode:v,deleteKeyCode:I,multiSelectionKeyCode:L,multiSelectionActive:k,edgeLookup:V,nodeLookup:F,connectionLookup:M,defaultEdgeOptions:tA,connectionStartHandle:W,panOnDrag:aA}=ZA(),dA=(0,r.shallowRef)(null),rA=(0,r.shallowRef)(new Set),oA=(0,r.shallowRef)(new Set),AA=(0,r.shallowRef)(null),O=(0,r.toRef)(()=>h.value&&(e.isSelecting||a.value)),lA=(0,r.toRef)(()=>W.value!==null);let _=!1,Z=!1;const U=Sn(I,{actInsideInputWithModifier:!1}),x=Sn(L);(0,r.watch)(U,eA=>{eA&&(m(w.value),y(B.value),g.value=!1)}),(0,r.watch)(x,eA=>{k.value=eA});function G(eA,uA){return Y=>{Y.target===uA&&eA?.(Y)}}function R(eA){if(_||lA.value){_=!1;return}o.paneClick(eA),c(),g.value=!1}function $(eA){var uA;if(Array.isArray(aA.value)&&((uA=aA.value)!=null&&uA.includes(2))){eA.preventDefault();return}o.paneContextMenu(eA)}function J(eA){o.paneScroll(eA)}function nA(eA){var uA,Y,cA;if(AA.value=((uA=A.value)==null?void 0:uA.getBoundingClientRect())??null,!h.value||!e.isSelecting||eA.button!==0||eA.target!==dA.value||!AA.value)return;(cA=(Y=eA.target)==null?void 0:Y.setPointerCapture)==null||cA.call(Y,eA.pointerId);const{x:mA,y:yA}=np(eA,AA.value);Z=!0,_=!1,c(),d.value={width:0,height:0,startX:mA,startY:yA,x:mA,y:yA},o.selectionStart(eA)}function hA(eA){var uA;if(!AA.value||!d.value)return;_=!0;const{x:Y,y:cA}=We(eA,AA.value),{startX:mA=0,startY:yA=0}=d.value,IA={startX:mA,startY:yA,x:Y<mA?Y:mA,y:cA<yA?cA:yA,width:Math.abs(Y-mA),height:Math.abs(cA-yA)},fA=rA.value,vA=oA.value;rA.value=new Set(pa(t.value,IA,n.value,v.value===ni.Partial,!0).map(H=>H.id)),oA.value=new Set;const S=((uA=tA.value)==null?void 0:uA.selectable)??!0;for(const H of rA.value){const T=M.value.get(H);if(T)for(const{edgeId:D}of T.values()){const b=V.value.get(D);b&&(b.selectable??S)&&oA.value.add(D)}}if(!Ka(fA,rA.value)){const H=pt(F.value,rA.value,!0);o.nodesChange(H)}if(!Ka(vA,oA.value)){const H=pt(V.value,oA.value);o.edgesChange(H)}d.value=IA,a.value=!0,g.value=!1}function UA(eA){var uA;eA.button!==0||!Z||((uA=eA.target)==null||uA.releasePointerCapture(eA.pointerId),!a.value&&d.value&&eA.target===dA.value&&R(eA),a.value=!1,d.value=null,g.value=rA.value.size>0,o.selectionEnd(eA),e.selectionKeyPressed&&(_=!1),Z=!1)}return(eA,uA)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"container",ref:dA,class:(0,r.normalizeClass)(["vue-flow__pane vue-flow__container",{selection:eA.isSelecting}]),onClick:uA[0]||(uA[0]=Y=>O.value?void 0:G(R,dA.value)(Y)),onContextmenu:uA[1]||(uA[1]=Y=>G($,dA.value)(Y)),onWheelPassive:uA[2]||(uA[2]=Y=>G(J,dA.value)(Y)),onPointerenter:uA[3]||(uA[3]=Y=>O.value?void 0:(0,r.unref)(o).paneMouseEnter(Y)),onPointerdown:uA[4]||(uA[4]=Y=>O.value?nA(Y):(0,r.unref)(o).paneMouseMove(Y)),onPointermove:uA[5]||(uA[5]=Y=>O.value?hA(Y):(0,r.unref)(o).paneMouseMove(Y)),onPointerup:uA[6]||(uA[6]=Y=>O.value?UA(Y):void 0),onPointerleave:uA[7]||(uA[7]=Y=>(0,r.unref)(o).paneMouseLeave(Y))},[(0,r.renderSlot)(eA.$slots,"default"),(0,r.unref)(a)&&(0,r.unref)(d)?((0,r.openBlock)(),(0,r.createBlock)(Ap,{key:0,"user-selection-rect":(0,r.unref)(d)},null,8,["user-selection-rect"])):(0,r.createCommentVNode)("",!0),(0,r.unref)(g)&&(0,r.unref)(w).length?((0,r.openBlock)(),(0,r.createBlock)(tp,{key:1})):(0,r.createCommentVNode)("",!0)],34))}}),op=(0,r.defineComponent)({name:"Transform",compatConfig:{MODE:3},setup(e){const{viewport:A,fitViewOnInit:t,fitViewOnInitDone:n}=ZA(),o=(0,r.computed)(()=>t.value?!n.value:!1),a=(0,r.computed)(()=>`translate(${A.value.x}px,${A.value.y}px) scale(${A.value.zoom})`);return(c,d)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"vue-flow__transformationpane vue-flow__container",style:(0,r.normalizeStyle)({transform:a.value,opacity:o.value?0:void 0})},[(0,r.renderSlot)(c.$slots,"default")],4))}}),ip=(0,r.defineComponent)({name:"Viewport",compatConfig:{MODE:3},setup(e){const{minZoom:A,maxZoom:t,defaultViewport:n,translateExtent:o,zoomActivationKeyCode:a,selectionKeyCode:c,panActivationKeyCode:d,panOnScroll:h,panOnScrollMode:g,panOnScrollSpeed:B,panOnDrag:w,zoomOnDoubleClick:m,zoomOnPinch:y,zoomOnScroll:v,preventScrolling:I,noWheelClassName:L,noPanClassName:k,emits:V,connectionStartHandle:F,userSelectionActive:M,paneDragging:tA,d3Zoom:W,d3Selection:aA,d3ZoomHandler:dA,viewport:rA,viewportRef:oA,paneClickDistance:AA}=ZA();qB(oA);const O=(0,r.shallowRef)(!1),lA=(0,r.shallowRef)(!1);let _=null,Z=!1,U=0,x={x:0,y:0,zoom:0};const G=Sn(d),R=Sn(c),$=Sn(a),J=(0,r.toRef)(()=>(!R.value||R.value&&c.value===!0)&&(G.value||w.value)),nA=(0,r.toRef)(()=>G.value||h.value),hA=(0,r.toRef)(()=>c.value===!0&&J.value!==!0),UA=(0,r.toRef)(()=>R.value&&c.value!==!0||M.value||hA.value),eA=(0,r.toRef)(()=>F.value!==null);(0,r.onMounted)(()=>{if(!oA.value){Tn("Viewport element is missing");return}const yA=oA.value,IA=yA.getBoundingClientRect(),fA=Nh().clickDistance(AA.value).scaleExtent([A.value,t.value]).translateExtent(o.value),vA=ke(yA).call(fA),S=vA.on("wheel.zoom"),H=Jt.translate(n.value.x??0,n.value.y??0).scale(Nt(n.value.zoom??1,A.value,t.value)),T=[[0,0],[IA.width,IA.height]],D=fA.constrain()(H,T,o.value);fA.transform(vA,D),fA.wheelDelta(ya),W.value=fA,aA.value=vA,dA.value=S,rA.value={x:D.x,y:D.y,zoom:D.k},fA.on("start",b=>{var z;if(!b.sourceEvent)return null;U=b.sourceEvent.button,O.value=!0;const P=cA(b.transform);((z=b.sourceEvent)==null?void 0:z.type)==="mousedown"&&(tA.value=!0),x=P,V.viewportChangeStart(P),V.moveStart({event:b,flowTransform:P})}),fA.on("end",b=>{if(!b.sourceEvent)return null;if(O.value=!1,tA.value=!1,uA(J.value,U??0)&&!Z&&V.paneContextMenu(b.sourceEvent),Z=!1,Y(x,b.transform)){const z=cA(b.transform);x=z,V.viewportChangeEnd(z),V.moveEnd({event:b,flowTransform:z})}}),fA.filter(b=>{var z;const P=$.value||v.value,gA=y.value&&b.ctrlKey,iA=b.button,SA=b.type==="wheel";if(iA===1&&b.type==="mousedown"&&(mA(b,"vue-flow__node")||mA(b,"vue-flow__edge")))return!0;if(!J.value&&!P&&!nA.value&&!m.value&&!y.value||M.value||eA.value&&!SA||!m.value&&b.type==="dblclick"||mA(b,L.value)&&SA||mA(b,k.value)&&(!SA||nA.value&&SA&&!$.value)||!y.value&&b.ctrlKey&&SA||!P&&!nA.value&&!gA&&SA)return!1;if(!y&&b.type==="touchstart"&&((z=b.touches)==null?void 0:z.length)>1)return b.preventDefault(),!1;if(!J.value&&(b.type==="mousedown"||b.type==="touchstart")||hA.value&&Array.isArray(w.value)&&w.value.includes(0)&&iA===0||Array.isArray(w.value)&&!w.value.includes(iA)&&(b.type==="mousedown"||b.type==="touchstart"))return!1;const xA=Array.isArray(w.value)&&w.value.includes(iA)||c.value===!0&&Array.isArray(w.value)&&!w.value.includes(0)||!iA||iA<=1;return(!b.ctrlKey||G.value||SA)&&xA}),(0,r.watch)([M,J],()=>{M.value&&!O.value?fA.on("zoom",null):M.value||fA.on("zoom",b=>{rA.value={x:b.transform.x,y:b.transform.y,zoom:b.transform.k};const z=cA(b.transform);Z=uA(J.value,U??0),V.viewportChange(z),V.move({event:b,flowTransform:z})})},{immediate:!0}),(0,r.watch)([M,nA,g,$,y,I,L],()=>{nA.value&&!$.value&&!M.value?vA.on("wheel.zoom",b=>{if(mA(b,L.value))return!1;const z=$.value||v.value,P=y.value&&b.ctrlKey;if(!(!I.value||nA.value||z||P))return!1;b.preventDefault(),b.stopImmediatePropagation();const gA=vA.property("__zoom").k||1,iA=br();if(!G.value&&b.ctrlKey&&y.value&&iA){const YA=Ge(b),PA=gA*2**ya(b);fA.scaleTo(vA,PA,YA,b);return}const SA=b.deltaMode===1?20:1;let xA=g.value===_n.Vertical?0:b.deltaX*SA,KA=g.value===_n.Horizontal?0:b.deltaY*SA;!iA&&b.shiftKey&&g.value!==_n.Vertical&&!xA&&KA&&(xA=KA,KA=0),fA.translateBy(vA,-(xA/gA)*B.value,-(KA/gA)*B.value);const ne=cA(vA.property("__zoom"));_&&clearTimeout(_),lA.value?(V.move({event:b,flowTransform:ne}),V.viewportChange(ne),_=setTimeout(()=>{V.moveEnd({event:b,flowTransform:ne}),V.viewportChangeEnd(ne),lA.value=!1},150)):(lA.value=!0,V.moveStart({event:b,flowTransform:ne}),V.viewportChangeStart(ne))},{passive:!1}):typeof S<"u"&&vA.on("wheel.zoom",function(b,z){const P=!I.value&&b.type==="wheel"&&!b.ctrlKey,gA=$.value||v.value,iA=y.value&&b.ctrlKey;if(!gA&&!h.value&&!iA&&b.type==="wheel"||P||mA(b,L.value))return null;b.preventDefault(),S.call(this,b,z)},{passive:!1})},{immediate:!0})});function uA(yA,IA){return IA===2&&Array.isArray(yA)&&yA.includes(2)}function Y(yA,IA){return yA.x!==IA.x&&!Number.isNaN(IA.x)||yA.y!==IA.y&&!Number.isNaN(IA.y)||yA.zoom!==IA.k&&!Number.isNaN(IA.k)}function cA(yA){return{x:yA.x,y:yA.y,zoom:yA.k}}function mA(yA,IA){return yA.target.closest(`.${IA}`)}return(yA,IA)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"viewportRef",ref:oA,class:"vue-flow__viewport vue-flow__container"},[(0,r.createVNode)(rp,{"is-selecting":UA.value,"selection-key-pressed":(0,r.unref)(R),class:(0,r.normalizeClass)({connecting:eA.value,dragging:(0,r.unref)(tA),draggable:(0,r.unref)(w)===!0||Array.isArray((0,r.unref)(w))&&(0,r.unref)(w).includes(0)})},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(op,null,{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(yA.$slots,"default")]),_:3})]),_:3},8,["is-selecting","selection-key-pressed","class"])],512))}}),sp=["id"],ap=["id"],lp=["id"],cp=(0,r.defineComponent)({name:"A11yDescriptions",compatConfig:{MODE:3},setup(e){const{id:A,disableKeyboardA11y:t,ariaLiveMessage:n}=ZA();return(o,a)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("div",{id:`${(0,r.unref)(sa)}-${(0,r.unref)(A)}`,style:{display:"none"}}," Press enter or space to select a node. "+(0,r.toDisplayString)((0,r.unref)(t)?"":"You can then use the arrow keys to move the node around.")+" You can then use the arrow keys to move the node around, press delete to remove it and press escape to cancel. ",9,sp),(0,r.createElementVNode)("div",{id:`${(0,r.unref)(aa)}-${(0,r.unref)(A)}`,style:{display:"none"}}," Press enter or space to select an edge. You can then press delete to remove it or press escape to cancel. ",8,ap),(0,r.unref)(t)?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,id:`${(0,r.unref)(Kh)}-${(0,r.unref)(A)}`,"aria-live":"assertive","aria-atomic":"true",style:{position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)","clip-path":"inset(100%)"}},(0,r.toDisplayString)((0,r.unref)(n)),9,lp))],64))}});function up(){const e=ZA();(0,r.watch)(()=>e.viewportHelper.value.viewportInitialized,A=>{A&&setTimeout(()=>{e.emits.init(e),e.emits.paneReady(e)},1)})}function dp(e,A,t){return t===HA.Left?e-A:t===HA.Right?e+A:e}function fp(e,A,t){return t===HA.Top?e-A:t===HA.Bottom?e+A:e}var pi=function({radius:e=10,centerX:A=0,centerY:t=0,position:n=HA.Top,type:o}){return(0,r.h)("circle",{class:`vue-flow__edgeupdater vue-flow__edgeupdater-${o}`,cx:dp(A,e,n),cy:fp(t,e,n),r:e,stroke:"transparent",fill:"transparent"})};pi.props=["radius","centerX","centerY","position","type"],pi.compatConfig={MODE:3};var nl=pi,gp=(0,r.defineComponent)({name:"Edge",compatConfig:{MODE:3},props:["id"],setup(e){const{id:A,addSelectedEdges:t,connectionMode:n,edgeUpdaterRadius:o,emits:a,nodesSelectionActive:c,noPanClassName:d,getEdgeTypes:h,removeSelectedEdges:g,findEdge:B,findNode:w,isValidConnection:m,multiSelectionActive:y,disableKeyboardA11y:v,elementsSelectable:I,edgesUpdatable:L,edgesFocusable:k,hooks:V}=ZA(),F=(0,r.computed)(()=>B(e.id)),{emit:M,on:tA}=pB(F.value,a),W=(0,r.inject)(Hr),aA=(0,r.getCurrentInstance)(),dA=(0,r.ref)(!1),rA=(0,r.ref)(!1),oA=(0,r.ref)(""),AA=(0,r.ref)(null),O=(0,r.ref)("source"),lA=(0,r.ref)(null),_=(0,r.toRef)(()=>typeof F.value.selectable>"u"?I.value:F.value.selectable),Z=(0,r.toRef)(()=>typeof F.value.updatable>"u"?L.value:F.value.updatable),U=(0,r.toRef)(()=>typeof F.value.focusable>"u"?k.value:F.value.focusable);(0,r.provide)(gB,e.id),(0,r.provide)(hB,lA);const x=(0,r.computed)(()=>F.value.class instanceof Function?F.value.class(F.value):F.value.class),G=(0,r.computed)(()=>F.value.style instanceof Function?F.value.style(F.value):F.value.style),R=(0,r.computed)(()=>{const H=F.value.type||"default",T=W?.[`edge-${H}`];if(T)return T;let D=F.value.template??h.value[H];if(typeof D=="string"&&aA){const b=Object.keys(aA.appContext.components);b&&b.includes(H)&&(D=(0,r.resolveComponent)(H,!1))}return D&&typeof D!="string"?D:(a.error(new de(ae.EDGE_TYPE_MISSING,D)),!1)}),{handlePointerDown:$}=za({nodeId:oA,handleId:AA,type:O,isValidConnection:m,edgeUpdaterType:O,onEdgeUpdate:hA,onEdgeUpdateEnd:UA});return()=>{const H=w(F.value.source),T=w(F.value.target),D="pathOptions"in F.value?F.value.pathOptions:{};if(!H&&!T)return a.error(new de(ae.EDGE_SOURCE_TARGET_MISSING,F.value.id,F.value.source,F.value.target)),null;if(!H)return a.error(new de(ae.EDGE_SOURCE_MISSING,F.value.id,F.value.source)),null;if(!T)return a.error(new de(ae.EDGE_TARGET_MISSING,F.value.id,F.value.target)),null;if(!F.value||F.value.hidden||H.hidden||T.hidden)return null;let b;n.value===nt.Strict?b=H.handleBounds.source:b=[...H.handleBounds.source||[],...H.handleBounds.target||[]];const z=Sa(b,F.value.sourceHandle);let P;n.value===nt.Strict?P=T.handleBounds.target:P=[...T.handleBounds.target||[],...T.handleBounds.source||[]];const gA=Sa(P,F.value.targetHandle),iA=z?.position||HA.Bottom,SA=gA?.position||HA.Top,{x:xA,y:KA}=qt(H,z,iA),{x:ne,y:YA}=qt(T,gA,SA);return F.value.sourceX=xA,F.value.sourceY=KA,F.value.targetX=ne,F.value.targetY=YA,(0,r.h)("g",{ref:lA,key:e.id,"data-id":e.id,class:["vue-flow__edge",`vue-flow__edge-${R.value===!1?"default":F.value.type||"default"}`,d.value,x.value,{updating:dA.value,selected:F.value.selected,animated:F.value.animated,inactive:!_.value&&!V.value.edgeClick.hasListeners()}],tabIndex:U.value?0:void 0,"aria-label":F.value.ariaLabel===null?void 0:F.value.ariaLabel??`Edge from ${F.value.source} to ${F.value.target}`,"aria-describedby":U.value?`${aa}-${A}`:void 0,"aria-roledescription":"edge",role:U.value?"group":"img",...F.value.domAttributes,onClick:uA,onContextmenu:Y,onDblclick:cA,onMouseenter:mA,onMousemove:yA,onMouseleave:IA,onKeyDown:U.value?S:void 0},[rA.value?null:(0,r.h)(R.value===!1?h.value.default:R.value,{id:e.id,sourceNode:H,targetNode:T,source:F.value.source,target:F.value.target,type:F.value.type,updatable:Z.value,selected:F.value.selected,animated:F.value.animated,label:F.value.label,labelStyle:F.value.labelStyle,labelShowBg:F.value.labelShowBg,labelBgStyle:F.value.labelBgStyle,labelBgPadding:F.value.labelBgPadding,labelBgBorderRadius:F.value.labelBgBorderRadius,data:F.value.data,events:{...F.value.events,...tA},style:G.value,markerStart:`url('#${Ln(F.value.markerStart,A)}')`,markerEnd:`url('#${Ln(F.value.markerEnd,A)}')`,sourcePosition:iA,targetPosition:SA,sourceX:xA,sourceY:KA,targetX:ne,targetY:YA,sourceHandleId:F.value.sourceHandle,targetHandleId:F.value.targetHandle,interactionWidth:F.value.interactionWidth,...D}),[Z.value==="source"||Z.value===!0?[(0,r.h)("g",{onMousedown:fA,onMouseenter:J,onMouseout:nA},(0,r.h)(nl,{position:iA,centerX:xA,centerY:KA,radius:o.value,type:"source","data-type":"source"}))]:null,Z.value==="target"||Z.value===!0?[(0,r.h)("g",{onMousedown:vA,onMouseenter:J,onMouseout:nA},(0,r.h)(nl,{position:SA,centerX:ne,centerY:YA,radius:o.value,type:"target","data-type":"target"}))]:null]])};function J(){dA.value=!0}function nA(){dA.value=!1}function hA(H,T){M.update({event:H,edge:F.value,connection:T})}function UA(H){M.updateEnd({event:H,edge:F.value}),rA.value=!1}function eA(H,T){H.button===0&&(rA.value=!0,oA.value=T?F.value.target:F.value.source,AA.value=(T?F.value.targetHandle:F.value.sourceHandle)??null,O.value=T?"target":"source",M.updateStart({event:H,edge:F.value}),$(H))}function uA(H){var T;const D={event:H,edge:F.value};_.value&&(c.value=!1,F.value.selected&&y.value?(g([F.value]),(T=lA.value)==null||T.blur()):t([F.value])),M.click(D)}function Y(H){M.contextMenu({event:H,edge:F.value})}function cA(H){M.doubleClick({event:H,edge:F.value})}function mA(H){M.mouseEnter({event:H,edge:F.value})}function yA(H){M.mouseMove({event:H,edge:F.value})}function IA(H){M.mouseLeave({event:H,edge:F.value})}function fA(H){eA(H,!0)}function vA(H){eA(H,!1)}function S(H){var T;!v.value&&la.includes(H.key)&&_.value&&(H.key==="Escape"?((T=lA.value)==null||T.blur(),g([B(e.id)])):t([B(e.id)]))}}}),hp=(0,r.defineComponent)({name:"ConnectionLine",compatConfig:{MODE:3},setup(){var e;const{id:A,connectionMode:t,connectionStartHandle:n,connectionEndHandle:o,connectionPosition:a,connectionLineType:c,connectionLineStyle:d,connectionLineOptions:h,connectionStatus:g,viewport:B,findNode:w}=ZA(),m=(e=(0,r.inject)(Hr))==null?void 0:e["connection-line"],y=(0,r.computed)(()=>{var V;return w((V=n.value)==null?void 0:V.nodeId)}),v=(0,r.computed)(()=>{var V;return w((V=o.value)==null?void 0:V.nodeId)??null}),I=(0,r.computed)(()=>({x:(a.value.x-B.value.x)/B.value.zoom,y:(a.value.y-B.value.y)/B.value.zoom})),L=(0,r.computed)(()=>h.value.markerStart?`url(#${Ln(h.value.markerStart,A)})`:""),k=(0,r.computed)(()=>h.value.markerEnd?`url(#${Ln(h.value.markerEnd,A)})`:"");return()=>{var V,F,M;if(!y.value||!n.value)return null;const tA=n.value.id,W=n.value.type,aA=y.value.handleBounds;let dA=aA?.[W]??[];if(t.value===nt.Loose){const G=aA?.[W==="source"?"target":"source"]??[];dA=[...dA,...G]}if(!dA)return null;const rA=(tA?dA.find(G=>G.id===tA):dA[0])??null,oA=rA?.position??HA.Top,{x:AA,y:O}=qt(y.value,rA,oA);let lA=null;v.value&&(t.value===nt.Strict?lA=((V=v.value.handleBounds[W==="source"?"target":"source"])==null?void 0:V.find(G=>{var R;return G.id===((R=o.value)==null?void 0:R.id)}))||null:lA=((F=[...v.value.handleBounds.source??[],...v.value.handleBounds.target??[]])==null?void 0:F.find(G=>{var R;return G.id===((R=o.value)==null?void 0:R.id)}))||null);const _=((M=o.value)==null?void 0:M.position)??(oA?ci[oA]:null);if(!oA||!_)return null;const Z=c.value??h.value.type??Dt.Bezier;let U="";const x={sourceX:AA,sourceY:O,sourcePosition:oA,targetX:I.value.x,targetY:I.value.y,targetPosition:_};return Z===Dt.Bezier?[U]=hi(x):Z===Dt.Step?[U]=Bi({...x,borderRadius:0}):Z===Dt.SmoothStep?[U]=Bi(x):Z===Dt.SimpleBezier?[U]=qa(x):U=`M${AA},${O} ${I.value.x},${I.value.y}`,(0,r.h)("svg",{class:"vue-flow__edges vue-flow__connectionline vue-flow__container"},(0,r.h)("g",{class:"vue-flow__connection"},m?(0,r.h)(m,{sourceX:AA,sourceY:O,sourcePosition:oA,targetX:I.value.x,targetY:I.value.y,targetPosition:_,sourceNode:y.value,sourceHandle:rA,targetNode:v.value,targetHandle:lA,markerEnd:k.value,markerStart:L.value,connectionStatus:g.value}):(0,r.h)("path",{d:U,class:[h.value.class,g.value,"vue-flow__connection-path"],style:{...d.value,...h.value.style},"marker-end":k.value,"marker-start":L.value})))}}}),Bp=["id","markerWidth","markerHeight","markerUnits","orient"],pp=(0,r.defineComponent)({name:"MarkerType",compatConfig:{MODE:3},props:{id:{},type:{},color:{default:"none"},width:{default:12.5},height:{default:12.5},markerUnits:{default:"strokeWidth"},orient:{default:"auto-start-reverse"},strokeWidth:{default:1}},setup(e){return(A,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("marker",{id:A.id,class:"vue-flow__arrowhead",viewBox:"-10 -10 20 20",refX:"0",refY:"0",markerWidth:`${A.width}`,markerHeight:`${A.height}`,markerUnits:A.markerUnits,orient:A.orient},[A.type===(0,r.unref)(rt).ArrowClosed?((0,r.openBlock)(),(0,r.createElementBlock)("polyline",{key:0,style:(0,r.normalizeStyle)({stroke:A.color,fill:A.color,strokeWidth:A.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",points:"-5,-4 0,0 -5,4 -5,-4"},null,4)):(0,r.createCommentVNode)("",!0),A.type===(0,r.unref)(rt).Arrow?((0,r.openBlock)(),(0,r.createElementBlock)("polyline",{key:1,style:(0,r.normalizeStyle)({stroke:A.color,strokeWidth:A.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",fill:"none",points:"-5,-4 0,0 -5,4"},null,4)):(0,r.createCommentVNode)("",!0)],8,Bp))}}),mp={class:"vue-flow__marker vue-flow__container","aria-hidden":"true"},wp=(0,r.defineComponent)({name:"MarkerDefinitions",compatConfig:{MODE:3},setup(e){const{id:A,edges:t,connectionLineOptions:n,defaultMarkerColor:o}=ZA(),a=(0,r.computed)(()=>{const c=new Set,d=[],h=g=>{if(g){const B=Ln(g,A);c.has(B)||(typeof g=="object"?d.push({...g,id:B,color:g.color||o.value}):d.push({id:B,color:o.value,type:g}),c.add(B))}};for(const g of[n.value.markerEnd,n.value.markerStart])h(g);for(const g of t.value)for(const B of[g.markerStart,g.markerEnd])h(B);return d.sort((g,B)=>g.id.localeCompare(B.id))});return(c,d)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",mp,[(0,r.createElementVNode)("defs",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(a.value,h=>((0,r.openBlock)(),(0,r.createBlock)(pp,{id:h.id,key:h.id,type:h.type,color:h.color,width:h.width,height:h.height,markerUnits:h.markerUnits,"stroke-width":h.strokeWidth,orient:h.orient},null,8,["id","type","color","width","height","markerUnits","stroke-width","orient"]))),128))])]))}}),Cp=(0,r.defineComponent)({name:"Edges",compatConfig:{MODE:3},setup(e){const{findNode:A,getEdges:t,elevateEdgesOnSelect:n}=ZA();return(o,a)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(wp),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(t),c=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",{key:c.id,class:"vue-flow__edges vue-flow__container",style:(0,r.normalizeStyle)({zIndex:(0,r.unref)(tB)(c,(0,r.unref)(A),(0,r.unref)(n))})},[(0,r.createVNode)((0,r.unref)(gp),{id:c.id},null,8,["id"])],4))),128)),(0,r.createVNode)((0,r.unref)(hp))],64))}}),yp=(0,r.defineComponent)({name:"Node",compatConfig:{MODE:3},props:["id","resizeObserver"],setup(e){const{id:A,noPanClassName:t,selectNodesOnDrag:n,nodesSelectionActive:o,multiSelectionActive:a,emits:c,removeSelectedNodes:d,addSelectedNodes:h,updateNodeDimensions:g,onUpdateNodeInternals:B,getNodeTypes:w,nodeExtent:m,elevateNodesOnSelect:y,disableKeyboardA11y:v,ariaLiveMessage:I,snapToGrid:L,snapGrid:k,nodeDragThreshold:V,nodesDraggable:F,elementsSelectable:M,nodesConnectable:tA,nodesFocusable:W,hooks:aA}=ZA(),dA=(0,r.ref)(null);(0,r.provide)(Pa,dA),(0,r.provide)(Va,e.id);const rA=(0,r.inject)(Hr),oA=(0,r.getCurrentInstance)(),AA=Xa(),{node:O,parentNode:lA}=$a(e.id),{emit:_,on:Z}=yB(O,c),U=(0,r.toRef)(()=>typeof O.draggable>"u"?F.value:O.draggable),x=(0,r.toRef)(()=>typeof O.selectable>"u"?M.value:O.selectable),G=(0,r.toRef)(()=>typeof O.connectable>"u"?tA.value:O.connectable),R=(0,r.toRef)(()=>typeof O.focusable>"u"?W.value:O.focusable),$=(0,r.computed)(()=>x.value||U.value||aA.value.nodeClick.hasListeners()||aA.value.nodeDoubleClick.hasListeners()||aA.value.nodeMouseEnter.hasListeners()||aA.value.nodeMouseMove.hasListeners()||aA.value.nodeMouseLeave.hasListeners()),J=(0,r.toRef)(()=>!!O.dimensions.width&&!!O.dimensions.height),nA=(0,r.computed)(()=>{const T=O.type||"default",D=rA?.[`node-${T}`];if(D)return D;let b=O.template||w.value[T];if(typeof b=="string"&&oA){const z=Object.keys(oA.appContext.components);z&&z.includes(T)&&(b=(0,r.resolveComponent)(T,!1))}return b&&typeof b!="string"?b:(c.error(new de(ae.NODE_TYPE_MISSING,b)),!1)}),hA=Ga({id:e.id,el:dA,disabled:()=>!U.value,selectable:x,dragHandle:()=>O.dragHandle,onStart(T){_.dragStart(T)},onDrag(T){_.drag(T)},onStop(T){_.dragStop(T)},onClick(T){S(T)}}),UA=(0,r.computed)(()=>O.class instanceof Function?O.class(O):O.class),eA=(0,r.computed)(()=>{const T=(O.style instanceof Function?O.style(O):O.style)||{},D=O.width instanceof Function?O.width(O):O.width,b=O.height instanceof Function?O.height(O):O.height;return!T.width&&D&&(T.width=typeof D=="string"?D:`${D}px`),!T.height&&b&&(T.height=typeof b=="string"?b:`${b}px`),T}),uA=(0,r.toRef)(()=>Number(O.zIndex??eA.value.zIndex??0));return B(T=>{(T.includes(e.id)||!T.length)&&cA()}),(0,r.onMounted)(()=>{(0,r.watch)(()=>O.hidden,(T=!1,D,b)=>{!T&&dA.value&&(e.resizeObserver.observe(dA.value),b(()=>{dA.value&&e.resizeObserver.unobserve(dA.value)}))},{immediate:!0,flush:"post"})}),(0,r.watch)([()=>O.type,()=>O.sourcePosition,()=>O.targetPosition],()=>{(0,r.nextTick)(()=>{g([{id:e.id,nodeElement:dA.value,forceUpdate:!0}])})}),(0,r.watch)([()=>O.position.x,()=>O.position.y,()=>{var T;return(T=lA.value)==null?void 0:T.computedPosition.x},()=>{var T;return(T=lA.value)==null?void 0:T.computedPosition.y},()=>{var T;return(T=lA.value)==null?void 0:T.computedPosition.z},uA,()=>O.selected,()=>O.dimensions.height,()=>O.dimensions.width,()=>{var T;return(T=lA.value)==null?void 0:T.dimensions.height},()=>{var T;return(T=lA.value)==null?void 0:T.dimensions.width}],([T,D,b,z,P,gA])=>{const iA={x:T,y:D,z:gA+(y.value&&O.selected?1e3:0)};typeof b<"u"&&typeof z<"u"?O.computedPosition=Jh({x:b,y:z,z:P},iA):O.computedPosition=iA},{flush:"post",immediate:!0}),(0,r.watch)([()=>O.extent,m],([T,D],[b,z])=>{(T!==b||D!==z)&&Y()}),O.extent==="parent"||typeof O.extent=="object"&&"range"in O.extent&&O.extent.range==="parent"?To(()=>J).toBe(!0).then(Y):Y(),()=>O.hidden?null:(0,r.h)("div",{ref:dA,"data-id":O.id,class:["vue-flow__node",`vue-flow__node-${nA.value===!1?"default":O.type||"default"}`,{[t.value]:U.value,dragging:hA?.value,draggable:U.value,selected:O.selected,selectable:x.value,parent:O.isParent},UA.value],style:{visibility:J.value?"visible":"hidden",zIndex:O.computedPosition.z??uA.value,transform:`translate(${O.computedPosition.x}px,${O.computedPosition.y}px)`,pointerEvents:$.value?"all":"none",...eA.value},tabIndex:R.value?0:void 0,role:R.value?"group":void 0,"aria-describedby":v.value?void 0:`${sa}-${A}`,"aria-label":O.ariaLabel,"aria-roledescription":"node",...O.domAttributes,onMouseenter:mA,onMousemove:yA,onMouseleave:IA,onContextmenu:fA,onClick:S,onDblclick:vA,onKeydown:H},[(0,r.h)(nA.value===!1?w.value.default:nA.value,{id:O.id,type:O.type,data:O.data,events:{...O.events,...Z},selected:O.selected,resizing:O.resizing,dragging:hA.value,connectable:G.value,position:O.computedPosition,dimensions:O.dimensions,isValidTargetPos:O.isValidTargetPos,isValidSourcePos:O.isValidSourcePos,parent:O.parentNode,parentNodeId:O.parentNode,zIndex:O.computedPosition.z??uA.value,targetPosition:O.targetPosition,sourcePosition:O.sourcePosition,label:O.label,dragHandle:O.dragHandle,onUpdateNodeInternals:cA})]);function Y(){const T=O.computedPosition,{computedPosition:D,position:b}=si(O,L.value?Ir(T,k.value):T,c.error,m.value,lA.value);(O.computedPosition.x!==D.x||O.computedPosition.y!==D.y)&&(O.computedPosition={...O.computedPosition,...D}),(O.position.x!==b.x||O.position.y!==b.y)&&(O.position=b)}function cA(){dA.value&&g([{id:e.id,nodeElement:dA.value,forceUpdate:!0}])}function mA(T){hA?.value||_.mouseEnter({event:T,node:O})}function yA(T){hA?.value||_.mouseMove({event:T,node:O})}function IA(T){hA?.value||_.mouseLeave({event:T,node:O})}function fA(T){return _.contextMenu({event:T,node:O})}function vA(T){return _.doubleClick({event:T,node:O})}function S(T){x.value&&(!n.value||!U.value||V.value>0)&&ui(O,a.value,h,d,o,!1,dA.value),_.click({event:T,node:O})}function H(T){if(!(ri(T)||v.value))if(la.includes(T.key)&&x.value){const D=T.key==="Escape";ui(O,a.value,h,d,o,D,dA.value)}else U.value&&O.selected&&Zt[T.key]&&(T.preventDefault(),I.value=`Moved selected node ${T.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~O.position.x}, y: ${~~O.position.y}`,AA({x:Zt[T.key].x,y:Zt[T.key].y},T.shiftKey))}}}),vp={height:"0",width:"0"},Qp=(0,r.defineComponent)({name:"EdgeLabelRenderer",compatConfig:{MODE:3},setup(e){const{viewportRef:A}=ZA(),t=(0,r.toRef)(()=>{var n;return(n=A.value)==null?void 0:n.getElementsByClassName("vue-flow__edge-labels")[0]});return(n,o)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",null,[((0,r.openBlock)(),(0,r.createElementBlock)("foreignObject",vp,[((0,r.openBlock)(),(0,r.createBlock)(r.Teleport,{to:t.value,disabled:!t.value},[(0,r.renderSlot)(n.$slots,"default")],8,["to","disabled"]))]))]))}});function Ep(e={includeHiddenNodes:!1}){const{nodes:A}=ZA();return(0,r.computed)(()=>{if(A.value.length===0)return!1;for(const t of A.value)if((e.includeHiddenNodes||!t.hidden)&&(t?.handleBounds===void 0||t.dimensions.width===0||t.dimensions.height===0))return!1;return!0})}var Fp={class:"vue-flow__nodes vue-flow__container"},Up=(0,r.defineComponent)({name:"Nodes",compatConfig:{MODE:3},setup(e){const{getNodes:A,updateNodeDimensions:t,emits:n}=ZA(),o=Ep(),a=(0,r.ref)();return(0,r.watch)(o,c=>{c&&(0,r.nextTick)(()=>{n.nodesInitialized(A.value)})},{immediate:!0}),(0,r.onMounted)(()=>{a.value=new ResizeObserver(c=>{const d=c.map(h=>({id:h.target.getAttribute("data-id"),nodeElement:h.target,forceUpdate:!0}));(0,r.nextTick)(()=>t(d))})}),(0,r.onBeforeUnmount)(()=>{var c;return(c=a.value)==null?void 0:c.disconnect()}),(c,d)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",Fp,[a.value?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:0},(0,r.renderList)((0,r.unref)(A),(h,g,B,w)=>{const m=[h.id];if(w&&w.key===h.id&&(0,r.isMemoSame)(w,m))return w;const y=((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(yp),{id:h.id,key:h.id,"resize-observer":a.value},null,8,["id","resize-observer"]));return y.memo=m,y},d,0),128)):(0,r.createCommentVNode)("",!0)]))}});function bp(){const{emits:e}=ZA();(0,r.onMounted)(()=>{if(Ta()){const A=document.querySelector(".vue-flow__pane");A&&window.getComputedStyle(A).zIndex!=="1"&&e.error(new de(ae.MISSING_STYLES))}})}var Ip=(0,r.createElementVNode)("div",{class:"vue-flow__edge-labels"},null,-1),Hp=(0,r.defineComponent)({name:"VueFlow",compatConfig:{MODE:3},props:{id:{},modelValue:{},nodes:{},edges:{},edgeTypes:{},nodeTypes:{},connectionMode:{},connectionLineType:{},connectionLineStyle:{default:void 0},connectionLineOptions:{default:void 0},connectionRadius:{},isValidConnection:{type:[Function,null],default:void 0},deleteKeyCode:{default:void 0},selectionKeyCode:{type:[Boolean,null],default:void 0},multiSelectionKeyCode:{default:void 0},zoomActivationKeyCode:{default:void 0},panActivationKeyCode:{default:void 0},snapToGrid:{type:Boolean,default:void 0},snapGrid:{},onlyRenderVisibleElements:{type:Boolean,default:void 0},edgesUpdatable:{type:[Boolean,String],default:void 0},nodesDraggable:{type:Boolean,default:void 0},nodesConnectable:{type:Boolean,default:void 0},nodeDragThreshold:{},elementsSelectable:{type:Boolean,default:void 0},selectNodesOnDrag:{type:Boolean,default:void 0},panOnDrag:{type:[Boolean,Array],default:void 0},minZoom:{},maxZoom:{},defaultViewport:{},translateExtent:{},nodeExtent:{},defaultMarkerColor:{},zoomOnScroll:{type:Boolean,default:void 0},zoomOnPinch:{type:Boolean,default:void 0},panOnScroll:{type:Boolean,default:void 0},panOnScrollSpeed:{},panOnScrollMode:{},paneClickDistance:{},zoomOnDoubleClick:{type:Boolean,default:void 0},preventScrolling:{type:Boolean,default:void 0},selectionMode:{},edgeUpdaterRadius:{},fitViewOnInit:{type:Boolean,default:void 0},connectOnClick:{type:Boolean,default:void 0},applyDefault:{type:Boolean,default:void 0},autoConnect:{type:[Boolean,Function],default:void 0},noDragClassName:{},noWheelClassName:{},noPanClassName:{},defaultEdgeOptions:{},elevateEdgesOnSelect:{type:Boolean,default:void 0},elevateNodesOnSelect:{type:Boolean,default:void 0},disableKeyboardA11y:{type:Boolean,default:void 0},edgesFocusable:{type:Boolean,default:void 0},nodesFocusable:{type:Boolean,default:void 0},autoPanOnConnect:{type:Boolean,default:void 0},autoPanOnNodeDrag:{type:Boolean,default:void 0},autoPanSpeed:{}},emits:["nodesChange","edgesChange","nodesInitialized","paneReady","init","updateNodeInternals","error","connect","connectStart","connectEnd","clickConnectStart","clickConnectEnd","moveStart","move","moveEnd","selectionDragStart","selectionDrag","selectionDragStop","selectionContextMenu","selectionStart","selectionEnd","viewportChangeStart","viewportChange","viewportChangeEnd","paneScroll","paneClick","paneContextMenu","paneMouseEnter","paneMouseMove","paneMouseLeave","edgeUpdate","edgeContextMenu","edgeMouseEnter","edgeMouseMove","edgeMouseLeave","edgeDoubleClick","edgeClick","edgeUpdateStart","edgeUpdateEnd","nodeContextMenu","nodeMouseEnter","nodeMouseMove","nodeMouseLeave","nodeDoubleClick","nodeClick","nodeDragStart","nodeDrag","nodeDragStop","miniMapNodeClick","miniMapNodeDoubleClick","miniMapNodeMouseEnter","miniMapNodeMouseMove","miniMapNodeMouseLeave","update:modelValue","update:nodes","update:edges"],setup(e,{expose:A,emit:t}){const n=e,o=(0,r.useSlots)(),a=ko(n,"modelValue",t),c=ko(n,"nodes",t),d=ko(n,"edges",t),h=ZA(n),g=FB({modelValue:a,nodes:c,edges:d},n,h);return bB(t,h.hooks),up(),bp(),(0,r.provide)(Hr,o),(0,r.onUnmounted)(g),A(h),(B,w)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:(0,r.unref)(h).vueFlowRef,class:"vue-flow"},[(0,r.createVNode)(ip,null,{default:(0,r.withCtx)(()=>[(0,r.createVNode)(Cp),Ip,(0,r.createVNode)(Up),(0,r.renderSlot)(B.$slots,"zoom-pane")]),_:3}),(0,r.renderSlot)(B.$slots,"default"),(0,r.createVNode)(cp)],512))}}),_p=(0,r.defineComponent)({name:"Panel",compatConfig:{MODE:3},props:{position:{}},setup(e){const A=e,{userSelectionActive:t}=ZA(),n=(0,r.computed)(()=>`${A.position}`.split("-"));return(o,a)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["vue-flow__panel",n.value]),style:(0,r.normalizeStyle)({pointerEvents:(0,r.unref)(t)?"none":"all"})},[(0,r.renderSlot)(o.$slots,"default")],6))}}),ot=(e=>(e.Lines="lines",e.Dots="dots",e))(ot||{}),Sp=function({dimensions:e,size:A,color:t}){return(0,r.h)("path",{stroke:t,"stroke-width":A,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`})},xp=function({radius:e,color:A}){return(0,r.h)("circle",{cx:e,cy:e,r:e,fill:A})};ot.Lines,ot.Dots;var Dp={[ot.Dots]:"#81818a",[ot.Lines]:"#eee"},Np=["id","x","y","width","height","patternTransform"],Lp={key:2,height:"100",width:"100"},Tp=["fill"],kp=["x","y","fill"],Mp=(0,r.defineComponent)({name:"Background",compatConfig:{MODE:3},props:{id:{},variant:{default:()=>ot.Dots},gap:{default:20},size:{default:1},lineWidth:{default:1},patternColor:{},color:{},bgColor:{},height:{default:100},width:{default:100},x:{default:0},y:{default:0},offset:{default:0}},setup(e){const{id:A,viewport:t}=ZA(),n=(0,r.computed)(()=>{const c=t.value.zoom,[d,h]=Array.isArray(e.gap)?e.gap:[e.gap,e.gap],g=[d*c||1,h*c||1],B=e.size*c,[w,m]=Array.isArray(e.offset)?e.offset:[e.offset,e.offset];return{scaledGap:g,offset:[w*c||1+g[0]/2,m*c||1+g[1]/2],size:B}}),o=(0,r.toRef)(()=>`pattern-${A}${e.id?`-${e.id}`:""}`),a=(0,r.toRef)(()=>e.color||e.patternColor||Dp[e.variant||ot.Dots]);return(c,d)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",{class:"vue-flow__background vue-flow__container",style:(0,r.normalizeStyle)({height:`${c.height>100?100:c.height}%`,width:`${c.width>100?100:c.width}%`})},[(0,r.renderSlot)(c.$slots,"pattern-container",{id:o.value},()=>[(0,r.createElementVNode)("pattern",{id:o.value,x:(0,r.unref)(t).x%n.value.scaledGap[0],y:(0,r.unref)(t).y%n.value.scaledGap[1],width:n.value.scaledGap[0],height:n.value.scaledGap[1],patternTransform:`translate(-${n.value.offset[0]},-${n.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[(0,r.renderSlot)(c.$slots,"pattern",{},()=>[c.variant===(0,r.unref)(ot).Lines?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Sp),{key:0,size:c.lineWidth,color:a.value,dimensions:n.value.scaledGap},null,8,["size","color","dimensions"])):c.variant===(0,r.unref)(ot).Dots?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(xp),{key:1,color:a.value,radius:n.value.size/2},null,8,["color","radius"])):(0,r.createCommentVNode)("",!0),c.bgColor?((0,r.openBlock)(),(0,r.createElementBlock)("svg",Lp,[(0,r.createElementVNode)("rect",{width:"100%",height:"100%",fill:c.bgColor},null,8,Tp)])):(0,r.createCommentVNode)("",!0)])],8,Np)]),(0,r.createElementVNode)("rect",{x:c.x,y:c.y,width:"100%",height:"100%",fill:`url(#${o.value})`},null,8,kp),(0,r.renderSlot)(c.$slots,"default",{id:o.value})],4))}}),Op={name:"ControlButton",compatConfig:{MODE:3}},Kp=(e,A)=>{const t=e.__vccOpts||e;for(const[n,o]of A)t[n]=o;return t},Rp={type:"button",class:"vue-flow__controls-button"};function Vp(e,A,t,n,o,a){return(0,r.openBlock)(),(0,r.createElementBlock)("button",Rp,[(0,r.renderSlot)(e.$slots,"default")])}var Tr=Kp(Op,[["render",Vp]]),Pp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Gp=[(0,r.createElementVNode)("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"},null,-1)];function zp(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",Pp,Gp)}var $p={render:zp},Xp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},Wp=[(0,r.createElementVNode)("path",{d:"M0 0h32v4.2H0z"},null,-1)];function Yp(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",Xp,Wp)}var Jp={render:Yp},Zp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},jp=[(0,r.createElementVNode)("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0 0 27.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 0 1-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"},null,-1)];function qp(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",Zp,jp)}var Am={render:qp},em={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},tm=[(0,r.createElementVNode)("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"},null,-1)];function nm(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",em,tm)}var rm={render:nm},om={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},im=[(0,r.createElementVNode)("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047z"},null,-1)];function sm(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",om,im)}var am={render:sm},lm=(0,r.defineComponent)({name:"Controls",compatConfig:{MODE:3},props:{showZoom:{type:Boolean,default:!0},showFitView:{type:Boolean,default:!0},showInteractive:{type:Boolean,default:!0},fitViewParams:{},position:{default:()=>oa.BottomLeft}},emits:["zoomIn","zoomOut","fitView","interactionChange"],setup(e,{emit:A}){const{nodesDraggable:t,nodesConnectable:n,elementsSelectable:o,setInteractive:a,zoomIn:c,zoomOut:d,fitView:h,viewport:g,minZoom:B,maxZoom:w}=ZA(),m=(0,r.toRef)(()=>t.value||n.value||o.value),y=(0,r.toRef)(()=>g.value.zoom<=B.value),v=(0,r.toRef)(()=>g.value.zoom>=w.value);function I(){c(),A("zoomIn")}function L(){d(),A("zoomOut")}function k(){h(e.fitViewParams),A("fitView")}function V(){a(!m.value),A("interactionChange",!m.value)}return(F,M)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(_p),{class:"vue-flow__controls",position:F.position},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(F.$slots,"top"),F.showZoom?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.renderSlot)(F.$slots,"control-zoom-in",{},()=>[(0,r.createVNode)(Tr,{class:"vue-flow__controls-zoomin",disabled:v.value,onClick:I},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(F.$slots,"icon-zoom-in",{},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)($p))))])]),_:3},8,["disabled"])]),(0,r.renderSlot)(F.$slots,"control-zoom-out",{},()=>[(0,r.createVNode)(Tr,{class:"vue-flow__controls-zoomout",disabled:y.value,onClick:L},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(F.$slots,"icon-zoom-out",{},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(Jp))))])]),_:3},8,["disabled"])])],64)):(0,r.createCommentVNode)("",!0),F.showFitView?(0,r.renderSlot)(F.$slots,"control-fit-view",{key:1},()=>[(0,r.createVNode)(Tr,{class:"vue-flow__controls-fitview",onClick:k},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(F.$slots,"icon-fit-view",{},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(Am))))])]),_:3})]):(0,r.createCommentVNode)("",!0),F.showInteractive?(0,r.renderSlot)(F.$slots,"control-interactive",{key:2},()=>[F.showInteractive?((0,r.openBlock)(),(0,r.createBlock)(Tr,{key:0,class:"vue-flow__controls-interactive",onClick:V},{default:(0,r.withCtx)(()=>[m.value?(0,r.renderSlot)(F.$slots,"icon-unlock",{key:0},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(am))))]):(0,r.createCommentVNode)("",!0),m.value?(0,r.createCommentVNode)("",!0):(0,r.renderSlot)(F.$slots,"icon-lock",{key:1},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(rm))))])]),_:3})):(0,r.createCommentVNode)("",!0)]):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(F.$slots,"default")]),_:3},8,["position"]))}}),cm=["onClick"],um={class:"d-flow-node-menus-item-name"},dm=(0,r.defineComponent)({name:"DNodeMenus",__name:"nodeMenus",props:{fromNodeId:{},handleId:{}},emits:["addNode"],setup(e,{emit:A}){const t=e,n=A,o=(0,r.inject)("d_flow_design_provide",{}),a=o.getFlowComponents?.()||[],c=d=>{n("addNode",d.type),(0,r.nextTick)(()=>{t.handleId==="line"?o.addNodeByLine?.(d.type,t.fromNodeId||""):o.addNode?.(d.type,t.fromNodeId||"",t.handleId||"")})};return(d,h)=>{const g=(0,r.resolveComponent)("j-icon");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"d-flow-node-menus",onClick:(0,r.withModifiers)(()=>{},["stop"])},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(a),(B,w)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:w,class:"d-flow-node-menus-item",onClick:m=>c(B)},[(0,r.createElementVNode)("div",{class:"d-flow-node-menus-item-icon",style:(0,r.normalizeStyle)({backgroundColor:B.iconColor||"var(--j-color-primary)"})},[(0,r.createVNode)(g,{icon:B.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,r.createElementVNode)("div",um,(0,r.toDisplayString)(B.name),1)],8,cm))),128))])}}}),mi=dm,fm={class:"d-flow-step-name"},gm={key:0,style:{color:"var(--j-color-text-2)"}},hm={style:{color:"var(--j-color-text)"}},Bm=(0,r.defineComponent)({name:"DStepNode",__name:"stepNode",props:{id:{},data:{}},setup(e){const A=e,{onNodeClick:t,onEdgeClick:n,onMoveStart:o,onConnectStart:a,onNodeDragStart:c,removeNodes:d,getEdges:h,getNodes:g,onNodesChange:B}=ZA(),w=(0,r.inject)("d_flow_design_provide",{}),m=(0,r.computed)(()=>w.getFlowComponentMap?.value?.[A.data.type]||{}),y=()=>{d(A.id),w.onRemoveNode?.(A.id)},v=(0,r.ref)({});B(lA=>{if(A.data.isInit&&lA.findIndex(_=>_.type==="select"&&_.id===A.id&&_.id==="start"&&_.selected)!==-1){const _=g.value.find(Z=>Z.id==="start");_&&(_.data.isInit=!1),v.value.s1=!0}});const I=(0,r.ref)(!1),L=lA=>{lA.indexOf("t")!==-1&&!k.value||(I.value=!0,v.value[lA]=!0)},k=(0,r.computed)(()=>h.value.findIndex(lA=>lA.target===A.id)===-1),V=(0,r.ref)(!1),F=()=>{V.value=!0},M=(lA,_)=>{if(h.value.find(U=>U.source===_&&U.target===lA))return!0;const Z=h.value.filter(U=>U.target===lA);for(let U=0;U<Z.length;U++)if(M(Z[U].source,_))return!0;return!1},tA=lA=>V.value?(V.value=!1,!1):M(lA.source,lA.target)?!1:lA.source!==lA.target&&lA.sourceHandle!==lA.targetHandle&&lA.sourceHandle.indexOf("s")!==-1&&lA.targetHandle.indexOf("t")!==-1,W=()=>{AA(),Object.keys(v.value).forEach(lA=>{v.value[lA]=!1})},aA=()=>{W()};t(()=>{console.log("onNodeClick"),I.value?I.value=!1:W()}),n(()=>{W()}),o(()=>{W()}),a(()=>{W()}),c(()=>{W()});const dA=(0,r.ref)(),rA=(0,r.ref)({top:0,left:0,bottom:0,right:0}),oA=(0,r.ref)({getBoundingClientRect:()=>rA.value}),AA=()=>{dA.value?.handleClose()},O=lA=>{const{clientX:_,clientY:Z}=lA;rA.value=DOMRect.fromRect({x:_,y:Z}),lA.preventDefault(),dA.value?.handleOpen()};return(lA,_)=>{const Z=(0,r.resolveComponent)("j-icon"),U=(0,r.resolveComponent)("el-popover"),x=(0,r.resolveComponent)("el-tooltip"),G=(0,r.resolveComponent)("el-dropdown-item"),R=(0,r.resolveComponent)("el-dropdown-menu"),$=(0,r.resolveComponent)("el-dropdown");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"d-flow-step",onContextmenu:(0,r.withModifiers)(O,["stop"])},[(0,r.createElementVNode)("div",{class:"d-flow-step-icon",style:(0,r.normalizeStyle)({backgroundColor:m.value.iconColor||"var(--j-color-primary)"})},[(0,r.createVNode)(Z,{icon:m.value.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,r.createElementVNode)("div",fm,(0,r.toDisplayString)(m.value.name),1),e.data.type!=="start"?((0,r.openBlock)(),(0,r.createBlock)(x,{key:0,placement:"top","show-arrow":!1,"popper-class":"d-flow-step-tooltip"},{content:(0,r.withCtx)(()=>[k.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",gm,[..._[4]||(_[4]=[(0,r.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"点击",-1),(0,r.createTextVNode)("添加节点 ",-1)])])):(0,r.createCommentVNode)("",!0),_[5]||(_[5]=(0,r.createElementVNode)("div",{style:{color:"var(--j-color-text-2)"}},[(0,r.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"拖拽"),(0,r.createTextVNode)("连接节点 ")],-1))]),default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(An),{onClick:_[1]||(_[1]=J=>L("t1")),onMousedown:F,id:"t1",class:(0,r.normalizeClass)(["d-flow-step-target-handle",{"d-flow-step-target-handle-notadd":!k.value}]),type:"target",position:(0,r.unref)(HA).Left,"is-valid-connection":tA},{default:(0,r.withCtx)(()=>[k.value?((0,r.openBlock)(),(0,r.createBlock)(U,{key:0,visible:v.value.t1,"onUpdate:visible":_[0]||(_[0]=J=>v.value.t1=J),placement:"left","popper-class":"d-flow-step-popper",trigger:"click","show-arrow":!1,"popper-options":{strategy:"fixed"}},{reference:(0,r.withCtx)(()=>[(0,r.createVNode)(Z,{class:"d-flow-step-handle-plus",icon:"mdi:plus-circle"})]),default:(0,r.withCtx)(()=>[(0,r.createVNode)(mi,{"handle-id":"t1","from-node-id":e.id,onAddNode:aA},null,8,["from-node-id"])]),_:1},8,["visible"])):(0,r.createCommentVNode)("",!0)]),_:1},8,["class","position"])]),_:1})):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(x,{placement:"top","show-arrow":!1,"popper-class":"d-flow-step-tooltip"},{content:(0,r.withCtx)(()=>[..._[6]||(_[6]=[(0,r.createElementVNode)("div",{style:{color:"var(--j-color-text-2)"}},[(0,r.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"点击"),(0,r.createTextVNode)("添加节点 ")],-1),(0,r.createElementVNode)("div",{style:{color:"var(--j-color-text-2)"}},[(0,r.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"拖拽"),(0,r.createTextVNode)("连接节点 ")],-1)])]),default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(An),{onClick:_[3]||(_[3]=J=>L("s1")),onMousedown:F,id:"s1",class:"d-flow-step-source-handle",type:"source",position:(0,r.unref)(HA).Right,"is-valid-connection":tA},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(U,{visible:v.value.s1,"onUpdate:visible":_[2]||(_[2]=J=>v.value.s1=J),placement:"right",trigger:"click","popper-class":"d-flow-step-popper","show-arrow":!1,"popper-options":{strategy:"fixed"}},{reference:(0,r.withCtx)(()=>[(0,r.createVNode)(Z,{class:"d-flow-step-handle-plus",icon:"mdi:plus-circle"})]),default:(0,r.withCtx)(()=>[(0,r.createVNode)(mi,{"handle-id":"s1","from-node-id":e.id,onAddNode:aA},null,8,["from-node-id"])]),_:1},8,["visible"])]),_:1},8,["position"])]),_:1}),(0,r.createVNode)($,{ref_key:"dropdownRef",ref:dA,"popper-class":"d-flow-step-dropdown","virtual-ref":oA.value,"show-arrow":!1,"popper-options":{modifiers:[{name:"offset",options:{offset:[0,0]}}]},"virtual-triggering":"",trigger:"contextmenu",placement:"bottom-start"},{dropdown:(0,r.withCtx)(()=>[(0,r.createVNode)(R,null,{default:(0,r.withCtx)(()=>[e.data.type!="start"?((0,r.openBlock)(),(0,r.createBlock)(G,{key:0,onClick:y},{default:(0,r.withCtx)(()=>[..._[7]||(_[7]=[(0,r.createTextVNode)("删除",-1)])]),_:1})):(0,r.createCommentVNode)("",!0),m.value.des?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,style:(0,r.normalizeStyle)({width:"160px",padding:"4px 16px 0 16px","font-size":"12px","border-top":e.data.type!="start"?"1px solid var(--j-color-border)":void 0,"margin-top":e.data.type!="start"?"4px":void 0})},[_[8]||(_[8]=(0,r.createElementVNode)("div",{style:{"margin-bottom":"4px",color:"var(--j-color-text-2)"}},"关于",-1)),(0,r.createElementVNode)("div",hm,(0,r.toDisplayString)(m.value.des),1)],4)):(0,r.createCommentVNode)("",!0)]),_:1})]),_:1},8,["virtual-ref"])],32)}}}),pm=Bm,mm=(0,r.defineComponent)({name:"DEdgeWithButton",__name:"edgeWithButton",props:{id:{},sourceX:{},sourceY:{},targetX:{},targetY:{},sourcePosition:{},targetPosition:{},markerEnd:{},style:{}},setup(e){const A=e,{onEdgeMouseEnter:t,onEdgeMouseLeave:n,onNodeClick:o,onEdgeClick:a,onMoveStart:c,onConnectStart:d,onNodeDragStart:h}=ZA(),g=(0,r.computed)(()=>hi(A)),B=(0,r.ref)(!1),w=(0,r.ref)(!1);t(({edge:L})=>{L.id===A.id&&(B.value=!0)}),n(()=>{B.value=!1});const m=(0,r.ref)(!1),y=()=>{m.value=!1,(0,r.nextTick)(()=>{w.value=!1})},v=()=>{w.value=!0,m.value=!0},I=()=>{y()};return o(()=>{y()}),a(()=>{y()}),c(()=>{y()}),d(()=>{y()}),h(()=>{y()}),(L,k)=>{const V=(0,r.resolveComponent)("j-icon"),F=(0,r.resolveComponent)("el-popover");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)((0,r.unref)(kn),{id:e.id,style:(0,r.normalizeStyle)(e.style),path:g.value[0],"marker-end":e.markerEnd},null,8,["id","style","path","marker-end"]),(0,r.createVNode)((0,r.unref)(Qp),null,{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({pointerEvents:"all",position:"absolute",transform:`translate(-50%, -50%) translate(${g.value[1]}px,${g.value[2]}px)`}),class:"nodrag nopan"},[(0,r.createVNode)(F,{visible:m.value,"show-arrow":!1,placement:"right","popper-class":"d-flow-step-popper"},{reference:(0,r.withCtx)(()=>[(0,r.withDirectives)((0,r.createElementVNode)("div",{onClick:(0,r.withModifiers)(v,["stop"]),class:"d-flow-edge-button"},[(0,r.createVNode)(V,{icon:"mdi:plus-circle"})],512),[[r.vShow,B.value||w.value]])]),default:(0,r.withCtx)(()=>[(0,r.createVNode)(mi,{"handle-id":"line","from-node-id":e.id,onAddNode:I},null,8,["from-node-id"])]),_:1},8,["visible"])],4)]),_:1})],64)}}}),wm=mm,Cm=(0,r.defineComponent)({name:"DFlow",__name:"flow",props:{nodes:{default:()=>[]},edges:{default:()=>[]}},setup(e){return(A,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Hp),{"min-zoom":.2,"max-zoom":4,"default-viewport":{zoom:1},"connection-mode":(0,r.unref)(nt).Strict,nodes:e.nodes,edges:e.edges},{"edge-button":(0,r.withCtx)(n=>[(0,r.createVNode)(wm,{id:n.id,"source-x":n.sourceX,"source-y":n.sourceY,"target-x":n.targetX,"target-y":n.targetY,"source-position":n.sourcePosition,"target-position":n.targetPosition,"marker-end":n.markerEnd,style:(0,r.normalizeStyle)(n.style)},null,8,["id","source-x","source-y","target-x","target-y","source-position","target-position","marker-end","style"])]),"node-step":(0,r.withCtx)(n=>[(0,r.createVNode)(pm,(0,r.normalizeProps)((0,r.guardReactiveProps)(n)),null,16)]),default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(lm),{position:"bottom-left"}),(0,r.createVNode)((0,r.unref)(Mp))]),_:1},8,["connection-mode","nodes","edges"]))}}),ym=Cm,vm={class:"d-flow-design"},Qm={class:"d-flow-design-canvas"},Em={class:"d-flow-design-right"},Fm={class:"d-flow-design-title"},Um={class:"d-flow-design-title-name"},bm={class:"d-flow-design-panel"},Im=(0,r.defineComponent)({name:"DFlowDesign",__name:"flowDesign",props:{components:{default:()=>[]},inputParams:{default:()=>({})},flowInit:{},flowComponentConfigInit:{},flowComponentConfigs:{default:()=>({})},flowComponentConfigChange:{}},emits:["nodeClick","edgeClick","paneClick","connect"],setup(e,{expose:A,emit:t}){const n=e,o=t,{addNodes:a,addEdges:c,removeEdges:d,addSelectedNodes:h,removeSelectedNodes:g,onConnect:B,onNodeClick:w,onPaneClick:m,onEdgeClick:y,getNodes:v,getEdges:I}=ZA(),L=(0,r.computed)(()=>{const R={};return n.components.forEach($=>{R[$.type]=$}),R.start={name:"开始",type:"start",icon:"ant-design:play-circle-outlined",des:"执行开始节点"},R}),k={id:"start",type:"step",data:{type:"start",isInit:!1},position:{x:80,y:160}},V=(0,r.ref)([k]),F=(0,r.ref)([]),M=(R,$)=>{if($.indexOf("t")===-1){const J=I.value.filter(nA=>nA.source===R.id);if(J.length>0){let nA=-1e6,hA=0;return J.forEach(UA=>{nA=Math.max(nA,UA.targetNode.position.y+UA.targetNode.dimensions.height+32),hA=UA.targetNode.position.x||0}),{x:hA,y:nA}}return{x:R.position.x+R.dimensions.width+100,y:R.position.y}}return{x:R.position.x-100-R.dimensions.width,y:R.position.y}},tA=(R,$,J)=>{const nA=v.value.find(UA=>UA.id===$);if(!nA)return;const hA={id:gt(),type:"step",data:{type:R},position:M(nA,J)};if(n.flowInit){const UA=n.flowInit(hA.data.type);UA&&Object.keys(UA).forEach(eA=>{hA.data[eA]=UA[eA]})}a(hA),J.indexOf("t")===-1?c({id:`${$}-${hA.id}`,source:$,target:hA.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:rt.Arrow}):c({id:`${$}-${hA.id}`,source:hA.id,target:$,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:rt.Arrow}),O(hA.id)},W=R=>{const $=v.value.find(J=>J.id===R);$&&($.position.x+=100+$.dimensions.width,I.value.filter(J=>J.source===R).forEach(J=>{W(J.target)}))},aA=(R,$)=>{const J=I.value.find(hA=>hA.id===$);if(!J)return;const nA={id:gt(),type:"step",data:{type:R},position:{x:J.targetNode.position.x,y:J.targetNode.position.y}};if(n.flowInit){const hA=n.flowInit(nA.data.type);hA&&Object.keys(hA).forEach(UA=>{nA.data[UA]=hA[UA]})}a(nA),c({id:`${J.sourceNode.id}-${nA.id}`,source:J.sourceNode.id,target:nA.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:rt.Arrow}),c({id:`${nA.id}-${J.targetNode.id}`,source:nA.id,target:J.targetNode.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:rt.Arrow}),d($),W(J.target),O(nA.id)};B(R=>{console.log("onConnect",R),R.type="button",R.markerEnd=rt.Arrow,c(R),o("connect",R)});const dA=()=>n.components||[],rA=(0,r.ref)(),oA=(0,r.computed)(()=>rA.value?L.value[rA.value.data.type]:void 0);w(R=>{rA.value?.id!==R.node.id&&(rA.value=R.node,Z()),o("nodeClick",R.node)}),m(()=>{rA.value=void 0,o("paneClick")}),y(R=>{rA.value=void 0,o("edgeClick",R.edge)});const AA=R=>{rA.value?.id===R&&(rA.value=void 0)},O=R=>{rA.value&&g([rA.value]),rA.value=v.value.find($=>$.id===R),rA.value&&(Z(),setTimeout(()=>{rA.value&&h([rA.value])},100))},lA=(0,r.ref)(),_={};Object.keys(n.flowComponentConfigs).forEach(R=>{const $={type:"j-collapse",config:{defaultValue:[]},children:[]};n.flowComponentConfigs[R].forEach((J,nA)=>{const hA=`_collapse${nA}`;$.config?.defaultValue.push(hA),$.children?.push(J)}),_[R]=[$]});const Z=()=>{const R=_[rA.value?.data.type||""];R&&lA.value?(lA.value.init&&lA.value.init(R,rA.value?.data),n.flowComponentConfigInit&&n.flowComponentConfigInit({configRef:lA,inputParams:n.inputParams,components:v.value,configData:rA.value?.data})):lA.value&&lA.value.init&&lA.value.init([])},U=(R,$)=>{rA.value&&n.flowComponentConfigChange&&n.flowComponentConfigChange(rA.value.data.type,{configRef:lA,component:R,configData:rA.value.data,...$,isFlowNode:!0})};return(0,r.provide)("d_flow_design_provide",{getFlowComponents:dA,addNode:tA,addNodeByLine:aA,onRemoveNode:AA,getFlowComponentMap:L}),A({getData:()=>{const R=[];return v.value.forEach($=>{R.push({config:$.data,id:$.id,position:$.position,type:$.type})}),I.value.forEach($=>{R.push({id:$.id,source:$.source,target:$.target,sourceHandle:$.sourceHandle,targetHandle:$.targetHandle,type:"line",config:{},position:{x:0,y:0}})}),R},setData:R=>{if(!R||R.length===0)k.data.isInit=!0,V.value=[k],O(k.id);else{k.data.isInit=!1;const $=[],J=[];R.forEach(nA=>{if(nA.type==="line")nA.type="button",nA.markerEnd=rt.Arrow,J.push(nA);else{const hA={id:nA.id,type:nA.type,data:nA.config,position:nA.position};$.push(hA)}}),V.value=$,F.value=J}}}),(R,$)=>{const J=(0,r.resolveComponent)("j-icon"),nA=(0,r.resolveComponent)("j-form");return(0,r.openBlock)(),(0,r.createElementBlock)("div",vm,[(0,r.createElementVNode)("div",Qm,[(0,r.createVNode)(ym,{nodes:V.value,edges:F.value},null,8,["nodes","edges"])]),(0,r.withDirectives)((0,r.createElementVNode)("div",Em,[(0,r.createElementVNode)("div",Fm,[(0,r.createElementVNode)("div",{class:"d-flow-design-title-icon",style:(0,r.normalizeStyle)({backgroundColor:oA.value?.iconColor||"var(--j-color-primary)"})},[(0,r.createVNode)(J,{icon:oA.value?.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,r.createElementVNode)("div",Um,(0,r.toDisplayString)(oA.value?.name||""),1)]),(0,r.createElementVNode)("div",bm,[(0,r.createVNode)(nA,{config:{labelPosition:"top"},style:{padding:"0"},ref_key:"configRef",ref:lA,onChange:U},null,512)])],512),[[r.vShow,rA.value&&_[rA.value.data.type]]])])}}}),Hm=Im,rl=ft(Hm),_m={class:"d-input-flow j-block"},Sm=(0,r.defineComponent)({name:"DInputFlow",__name:"inputFlow",props:{modelValue:{},type:{},btnText:{default:"事件"},title:{},size:{default:"default"},width:{default:1200},height:{default:800},beforeClose:{},flowComponents:{default:()=>[]},inputParams:{default:()=>({})},flowInit:{},flowComponentConfigInit:{},flowComponentConfigs:{default:()=>({})},flowComponentConfigChange:{}},emits:["update:modelValue","change"],setup(e,{emit:A}){const t=e,n=A,o=(0,r.ref)(),a=(0,r.computed)({get(){return t.modelValue},set(w){n("update:modelValue",w)}}),c=(0,r.computed)(()=>(t.modelValue?.trim(),t.btnText)),d=w=>{const m=typeof w=="string"?w:void 0;try{o.value?.setData(JSON.parse(m||"[]"))}catch{o.value?.setData([])}},h=async()=>{const w=o.value?.getData();return w?JSON.stringify(w):void 0},g=w=>{if(t.beforeClose){const m=typeof w=="string"?w:void 0;return t.beforeClose(m)}return!0},B=w=>{const m=w.value;n("change",{value:typeof m=="string"?m:void 0})};return(w,m)=>{const y=(0,r.resolveComponent)("d-flow-design"),v=(0,r.resolveComponent)("j-input-button");return(0,r.openBlock)(),(0,r.createBlock)(v,(0,r.mergeProps)(w.$attrs,{type:e.type,"btn-text":c.value,title:e.title,size:e.size,width:e.width,height:e.height,"before-close":g,ok:h,open:d,"destroy-on-close":"",modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=I=>a.value=I),onChange:B}),{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",_m,[(0,r.createVNode)(y,{ref_key:"flowRef",ref:o,components:e.flowComponents,"flow-init":e.flowInit,"flow-component-config-init":e.flowComponentConfigInit,"flow-component-configs":e.flowComponentConfigs,"flow-component-config-change":e.flowComponentConfigChange,"input-params":e.inputParams},null,8,["components","flow-init","flow-component-config-init","flow-component-configs","flow-component-config-change","input-params"])])]),_:1},16,["type","btn-text","title","size","width","height","modelValue"])}}}),xm=Sm,ol=ft(xm),q=class Le{static getElements(A,t=document){if(typeof A=="string"){const n="getElementById"in t?t:void 0;if(n&&!isNaN(+A[0])){const a=n.getElementById(A);return a?[a]:[]}let o=t.querySelectorAll(A);if(!o.length&&A[0]!=="."&&A[0]!=="#"&&(o=t.querySelectorAll("."+A),o.length||(o=t.querySelectorAll("#"+A)),!o.length)){const a=t.querySelector(`[gs-id="${A}"]`);return a?[a]:[]}return Array.from(o)}return[A]}static getElement(A,t=document){if(typeof A=="string"){const n="getElementById"in t?t:void 0;if(!A.length)return null;if(n&&A[0]==="#")return n.getElementById(A.substring(1));if(A[0]==="#"||A[0]==="."||A[0]==="[")return t.querySelector(A);if(n&&!isNaN(+A[0]))return n.getElementById(A);let o=t.querySelector(A);return n&&!o&&(o=n.getElementById(A)),o||(o=t.querySelector("."+A)),o}return A}static lazyLoad(A){return A.lazyLoad||A.grid?.opts?.lazyLoad&&A.lazyLoad!==!1}static createDiv(A,t){const n=document.createElement("div");return A.forEach(o=>{o&&n.classList.add(o)}),t?.appendChild(n),n}static shouldSizeToContent(A,t=!1){return A?.grid&&(t?A.sizeToContent===!0||A.grid.opts.sizeToContent===!0&&A.sizeToContent===void 0:!!A.sizeToContent||A.grid.opts.sizeToContent&&A.sizeToContent!==!1)}static isIntercepted(A,t){return!(A.y>=t.y+t.h||A.y+A.h<=t.y||A.x+A.w<=t.x||A.x>=t.x+t.w)}static isTouching(A,t){return Le.isIntercepted(A,{x:t.x-.5,y:t.y-.5,w:t.w+1,h:t.h+1})}static areaIntercept(A,t){const n=A.x>t.x?A.x:t.x,o=A.x+A.w<t.x+t.w?A.x+A.w:t.x+t.w;if(o<=n)return 0;const a=A.y>t.y?A.y:t.y,c=A.y+A.h<t.y+t.h?A.y+A.h:t.y+t.h;return c<=a?0:(o-n)*(c-a)}static area(A){return A.w*A.h}static sort(A,t=1){return A.sort((o,a)=>{const c=t*((o.y??1e4)-(a.y??1e4));return c===0?t*((o.x??1e4)-(a.x??1e4)):c})}static find(A,t){return t?A.find(n=>n.id===t):void 0}static toBool(A){return typeof A=="boolean"?A:typeof A=="string"?(A=A.toLowerCase(),!(A===""||A==="no"||A==="false"||A==="0")):!!A}static toNumber(A){return A===null||A.length===0?void 0:Number(A)}static parseHeight(A){let t,n="px";if(typeof A=="string")if(A==="auto"||A==="")t=0;else{const o=A.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%|cm|mm)?$/);if(!o)throw new Error(`Invalid height val = ${A}`);n=o[2]||"px",t=parseFloat(o[1])}else t=A;return{h:t,unit:n}}static defaults(A,...t){return t.forEach(n=>{for(const o in n){if(!n.hasOwnProperty(o))return;A[o]===null||A[o]===void 0?A[o]=n[o]:typeof n[o]=="object"&&typeof A[o]=="object"&&Le.defaults(A[o],n[o])}}),A}static same(A,t){if(typeof A!="object")return A==t;if(typeof A!=typeof t||Object.keys(A).length!==Object.keys(t).length)return!1;for(const n in A)if(A[n]!==t[n])return!1;return!0}static copyPos(A,t,n=!1){return t.x!==void 0&&(A.x=t.x),t.y!==void 0&&(A.y=t.y),t.w!==void 0&&(A.w=t.w),t.h!==void 0&&(A.h=t.h),n&&(t.minW&&(A.minW=t.minW),t.minH&&(A.minH=t.minH),t.maxW&&(A.maxW=t.maxW),t.maxH&&(A.maxH=t.maxH)),A}static samePos(A,t){return A&&t&&A.x===t.x&&A.y===t.y&&(A.w||1)===(t.w||1)&&(A.h||1)===(t.h||1)}static sanitizeMinMax(A){A.minW||delete A.minW,A.minH||delete A.minH,A.maxW||delete A.maxW,A.maxH||delete A.maxH}static removeInternalAndSame(A,t){if(!(typeof A!="object"||typeof t!="object")&&!(Array.isArray(A)||Array.isArray(t)))for(let n in A){const o=A[n],a=t[n];n[0]==="_"||o===a?delete A[n]:o&&typeof o=="object"&&a!==void 0&&(Le.removeInternalAndSame(o,a),Object.keys(o).length||delete A[n])}}static removeInternalForSave(A,t=!0){for(let n in A)(n[0]==="_"||A[n]===null||A[n]===void 0)&&delete A[n];delete A.grid,t&&delete A.el,A.autoPosition||delete A.autoPosition,A.noResize||delete A.noResize,A.noMove||delete A.noMove,A.locked||delete A.locked,(A.w===1||A.w===A.minW)&&delete A.w,(A.h===1||A.h===A.minH)&&delete A.h}static throttle(A,t){let n=!1;return(...o)=>{n||(n=!0,setTimeout(()=>{A(...o),n=!1},t))}}static removePositioningStyles(A){const t=A.style;t.position&&t.removeProperty("position"),t.left&&t.removeProperty("left"),t.top&&t.removeProperty("top"),t.width&&t.removeProperty("width"),t.height&&t.removeProperty("height")}static getScrollElement(A){if(!A)return document.scrollingElement||document.documentElement;const t=getComputedStyle(A);return/(auto|scroll)/.test(t.overflow+t.overflowY)?A:Le.getScrollElement(A.parentElement)}static updateScrollPosition(A,t,n){const o=Le.getScrollElement(A);if(!o)return;const a=A.getBoundingClientRect(),c=o.getBoundingClientRect(),d=window.innerHeight||document.documentElement.clientHeight,h=a.bottom-Math.min(c.bottom,d),g=a.top-Math.max(c.top,0),B=o.scrollTop;g<0&&n<0?A.offsetHeight>c.height?o.scrollTop+=n:o.scrollTop+=Math.abs(g)>Math.abs(n)?n:g:h>0&&n>0&&(A.offsetHeight>c.height?o.scrollTop+=n:o.scrollTop+=h>n?n:h),t.top+=o.scrollTop-B}static updateScrollResize(A,t,n){const o=Le.getScrollElement(t),a=o.clientHeight,c=o===Le.getScrollElement()?0:o.getBoundingClientRect().top,d=A.clientY-c,h=d<n,g=d>a-n;h?o.scrollBy({behavior:"smooth",top:d-n}):g&&o.scrollBy({behavior:"smooth",top:n-(a-d)})}static clone(A){return A==null||typeof A!="object"?A:A instanceof Array?[...A]:{...A}}static cloneDeep(A){const t=["parentGrid","el","grid","subGrid","engine"],n=Le.clone(A);for(const o in n)n.hasOwnProperty(o)&&typeof n[o]=="object"&&o.substring(0,2)!=="__"&&!t.find(a=>a===o)&&(n[o]=Le.cloneDeep(A[o]));return n}static cloneNode(A){const t=A.cloneNode(!0);return t.removeAttribute("id"),t}static appendTo(A,t){let n;typeof t=="string"?n=Le.getElement(t):n=t,n&&n.appendChild(A)}static addElStyles(A,t){if(t instanceof Object)for(const n in t)t.hasOwnProperty(n)&&(Array.isArray(t[n])?t[n].forEach(o=>{A.style[n]=o}):A.style[n]=t[n])}static initEvent(A,t){const n={type:t.type},o={button:0,which:0,buttons:1,bubbles:!0,cancelable:!0,target:t.target?t.target:A.target};return["altKey","ctrlKey","metaKey","shiftKey"].forEach(a=>n[a]=A[a]),["pageX","pageY","clientX","clientY","screenX","screenY"].forEach(a=>n[a]=A[a]),{...n,...o}}static simulateMouseEvent(A,t,n){const o=A,a=new MouseEvent(t,{bubbles:!0,composed:!0,cancelable:!0,view:window,detail:1,screenX:A.screenX,screenY:A.screenY,clientX:A.clientX,clientY:A.clientY,ctrlKey:o.ctrlKey??!1,altKey:o.altKey??!1,shiftKey:o.shiftKey??!1,metaKey:o.metaKey??!1,button:0,relatedTarget:A.target});(n||A.target).dispatchEvent(a)}static getValuesFromTransformedElement(A){const t=document.createElement("div");Le.addElStyles(t,{opacity:"0",position:"fixed",top:"0px",left:"0px",width:"1px",height:"1px",zIndex:"-999999"}),A.appendChild(t);const n=t.getBoundingClientRect();return A.removeChild(t),t.remove(),{xScale:1/n.width,yScale:1/n.height,xOffset:n.left,yOffset:n.top}}static swap(A,t,n){if(!A)return;const o=A[t];A[t]=A[n],A[n]=o}static canBeRotated(A){return!(!A||A.w===A.h||A.locked||A.noResize||A.grid?.opts.disableResize||A.minW&&A.minW===A.maxW||A.minH&&A.minH===A.maxH)}},wi=class Bn{constructor(A={}){this.addedNodes=[],this.removedNodes=[],this.defaultColumn=12,this.column=A.column||this.defaultColumn,this.column>this.defaultColumn&&(this.defaultColumn=this.column),this.maxRow=A.maxRow,this._float=A.float,this.nodes=A.nodes||[],this.onChange=A.onChange}batchUpdate(A=!0,t=!0){return!!this.batchMode===A?this:(this.batchMode=A,A?(this._prevFloat=this._float,this._float=!0,this.cleanNodes(),this.saveInitial()):(this._float=this._prevFloat,delete this._prevFloat,t&&this._packNodes(),this._notify()),this)}_useEntireRowArea(A,t){return(!this.float||this.batchMode&&!this._prevFloat)&&!this._hasLocked&&(!A._moving||A._skipDown||t.y<=A.y)}_fixCollisions(A,t=A,n,o={}){if(this.sortNodes(-1),n=n||this.collide(A,t),!n)return!1;if(A._moving&&!o.nested&&!this.float&&this.swap(A,n))return!0;let a=t;!this._loading&&this._useEntireRowArea(A,t)&&(a={x:0,w:this.column,y:t.y,h:t.h},n=this.collide(A,a,o.skip));let c=!1;const d={nested:!0,pack:!1};let h=0;for(;n=n||this.collide(A,a,o.skip);){if(h++>this.nodes.length*2)throw new Error("Infinite collide check");let g;if(n.locked||this._loading||A._moving&&!A._skipDown&&t.y>A.y&&!this.float&&(!this.collide(n,{...n,y:A.y},A)||!this.collide(n,{...n,y:t.y-n.h},A))){A._skipDown=A._skipDown||t.y>A.y;const B={...t,y:n.y+n.h,...d};g=this._loading&&q.samePos(A,B)?!0:this.moveNode(A,B),(n.locked||this._loading)&&g?q.copyPos(t,A):!n.locked&&g&&o.pack&&(this._packNodes(),t.y=n.y+n.h,q.copyPos(A,t)),c=c||g}else g=this.moveNode(n,{...n,y:t.y+t.h,skip:A,...d});if(!g)return c;n=void 0}return c}collide(A,t=A,n){const o=A._id,a=n?._id;return this.nodes.find(c=>c._id!==o&&c._id!==a&&q.isIntercepted(c,t))}collideAll(A,t=A,n){const o=A._id,a=n?._id;return this.nodes.filter(c=>c._id!==o&&c._id!==a&&q.isIntercepted(c,t))}directionCollideCoverage(A,t,n){if(!t.rect||!A._rect)return;const o=A._rect,a={...t.rect};a.y>o.y?(a.h+=a.y-o.y,a.y=o.y):a.h+=o.y-a.y,a.x>o.x?(a.w+=a.x-o.x,a.x=o.x):a.w+=o.x-a.x;let c,d=.5;for(let h of n){if(h.locked||!h._rect)break;const g=h._rect;let B=Number.MAX_VALUE,w=Number.MAX_VALUE;o.y<g.y?B=(a.y+a.h-g.y)/g.h:o.y+o.h>g.y+g.h&&(B=(g.y+g.h-a.y)/g.h),o.x<g.x?w=(a.x+a.w-g.x)/g.w:o.x+o.w>g.x+g.w&&(w=(g.x+g.w-a.x)/g.w);const m=Math.min(w,B);m>d&&(d=m,c=h)}return t.collide=c,c}cacheRects(A,t,n,o,a,c){return this.nodes.forEach(d=>d._rect={y:d.y*t+n,x:d.x*A+c,w:d.w*A-c-o,h:d.h*t-n-a}),this}swap(A,t){if(!t||t.locked||!A||A.locked)return!1;function n(){const a=t.x,c=t.y;return t.x=A.x,t.y=A.y,A.h!=t.h?(A.x=a,A.y=t.y+t.h):A.w!=t.w?(A.x=t.x+t.w,A.y=c):(A.x=a,A.y=c),A._dirty=t._dirty=!0,!0}let o;if(A.w===t.w&&A.h===t.h&&(A.x===t.x||A.y===t.y)&&(o=q.isTouching(A,t)))return n();if(o!==!1){if(A.w===t.w&&A.x===t.x&&(o||(o=q.isTouching(A,t)))){if(t.y<A.y){const a=A;A=t,t=a}return n()}if(o!==!1){if(A.h===t.h&&A.y===t.y&&(o||(o=q.isTouching(A,t)))){if(t.x<A.x){const a=A;A=t,t=a}return n()}return!1}}}isAreaEmpty(A,t,n,o){const a={x:A||0,y:t||0,w:n||1,h:o||1};return!this.collide(a)}compact(A="compact",t=!0){if(this.nodes.length===0)return this;t&&this.sortNodes();const n=this.batchMode;n||this.batchUpdate();const o=this._inColumnResize;o||(this._inColumnResize=!0);const a=this.nodes;return this.nodes=[],a.forEach((c,d,h)=>{let g;c.locked||(c.autoPosition=!0,A==="list"&&d&&(g=h[d-1])),this.addNode(c,!1,g)}),o||delete this._inColumnResize,n||this.batchUpdate(!1),this}set float(A){this._float!==A&&(this._float=A||!1,A||this._packNodes()._notify())}get float(){return this._float||!1}sortNodes(A=1){return this.nodes=q.sort(this.nodes,A),this}_packNodes(){return this.batchMode?this:(this.sortNodes(),this.float?this.nodes.forEach(A=>{if(A._updating||A._orig===void 0||A.y===A._orig.y)return;let t=A.y;for(;t>A._orig.y;)--t,this.collide(A,{x:A.x,y:t,w:A.w,h:A.h})||(A._dirty=!0,A.y=t)}):this.nodes.forEach((A,t)=>{if(!A.locked)for(;A.y>0;){const n=t===0?0:A.y-1;if(!(t===0||!this.collide(A,{x:A.x,y:n,w:A.w,h:A.h})))break;A._dirty=A.y!==n,A.y=n}}),this)}prepareNode(A,t){A._id=A._id??Bn._idSeq++;const n=A.id;if(n){let a=1;for(;this.nodes.find(c=>c.id===A.id&&c!==A);)A.id=n+"_"+a++}(A.x===void 0||A.y===void 0||A.x===null||A.y===null)&&(A.autoPosition=!0);const o={x:0,y:0,w:1,h:1};return q.defaults(A,o),A.autoPosition||delete A.autoPosition,A.noResize||delete A.noResize,A.noMove||delete A.noMove,q.sanitizeMinMax(A),typeof A.x=="string"&&(A.x=Number(A.x)),typeof A.y=="string"&&(A.y=Number(A.y)),typeof A.w=="string"&&(A.w=Number(A.w)),typeof A.h=="string"&&(A.h=Number(A.h)),isNaN(A.x)&&(A.x=o.x,A.autoPosition=!0),isNaN(A.y)&&(A.y=o.y,A.autoPosition=!0),isNaN(A.w)&&(A.w=o.w),isNaN(A.h)&&(A.h=o.h),this.nodeBoundFix(A,t),A}nodeBoundFix(A,t){const n=A._orig||q.copyPos({},A);if(A.maxW&&(A.w=Math.min(A.w||1,A.maxW)),A.maxH&&(A.h=Math.min(A.h||1,A.maxH)),A.minW&&(A.w=Math.max(A.w||1,A.minW)),A.minH&&(A.h=Math.max(A.h||1,A.minH)),(A.x||0)+(A.w||1)>this.column&&this.column<this.defaultColumn&&!this._inColumnResize&&!this.skipCacheUpdate&&A._id!=null&&this.findCacheLayout(A,this.defaultColumn)===-1){const o={...A};o.autoPosition||o.x===void 0?(delete o.x,delete o.y):o.x=Math.min(this.defaultColumn-1,o.x),o.w=Math.min(this.defaultColumn,o.w||1),this.cacheOneLayout(o,this.defaultColumn)}return A.w>this.column?A.w=this.column:A.w<1&&(A.w=1),this.maxRow&&A.h>this.maxRow?A.h=this.maxRow:A.h<1&&(A.h=1),A.x<0&&(A.x=0),A.y<0&&(A.y=0),A.x+A.w>this.column&&(t?A.w=this.column-A.x:A.x=this.column-A.w),this.maxRow&&A.y+A.h>this.maxRow&&(t?A.h=this.maxRow-A.y:A.y=this.maxRow-A.h),q.samePos(A,n)||(A._dirty=!0),this}getDirtyNodes(A){return A?this.nodes.filter(t=>t._dirty&&!q.samePos(t,t._orig)):this.nodes.filter(t=>t._dirty)}_notify(A){if(this.batchMode||!this.onChange)return this;const t=(A||[]).concat(this.getDirtyNodes());return this.onChange(t),this}cleanNodes(){return this.batchMode?this:(this.nodes.forEach(A=>{delete A._dirty,delete A._lastTried}),this)}saveInitial(){return this.nodes.forEach(A=>{A._orig=q.copyPos({},A),delete A._dirty}),this._hasLocked=this.nodes.some(A=>A.locked),this}restoreInitial(){return this.nodes.forEach(A=>{!A._orig||q.samePos(A,A._orig)||(q.copyPos(A,A._orig),A._dirty=!0)}),this._notify(),this}findEmptyPosition(A,t=this.nodes,n=this.column,o){const a=o?o.y*n+(o.x+o.w):0;let c=!1;for(let d=a;!c;++d){const h=d%n,g=Math.floor(d/n);if(h+A.w>n)continue;const B={x:h,y:g,w:A.w,h:A.h};t.find(w=>q.isIntercepted(B,w))||((A.x!==h||A.y!==g)&&(A._dirty=!0),A.x=h,A.y=g,delete A.autoPosition,c=!0)}return c}addNode(A,t=!1,n){const o=this.nodes.find(c=>c._id===A._id);if(o)return o;this._inColumnResize?this.nodeBoundFix(A):this.prepareNode(A),delete A._temporaryRemoved,delete A._removeDOM;let a;return A.autoPosition&&this.findEmptyPosition(A,this.nodes,this.column,n)&&(delete A.autoPosition,a=!0),this.nodes.push(A),t&&this.addedNodes.push(A),a||this._fixCollisions(A),this.batchMode||this._packNodes()._notify(),A}removeNode(A,t=!0,n=!1){return this.nodes.find(o=>o._id===A._id)?(n&&this.removedNodes.push(A),t&&(A._removeDOM=!0),this.nodes=this.nodes.filter(o=>o._id!==A._id),A._isAboutToRemove||this._packNodes(),this._notify([A]),this):this}removeAll(A=!0,t=!0){if(delete this._layouts,!this.nodes.length)return this;A&&this.nodes.forEach(o=>o._removeDOM=!0);const n=this.nodes;return this.removedNodes=t?n:[],this.nodes=[],this._notify(n)}moveNodeCheck(A,t){if(!this.changedPosConstrain(A,t))return!1;if(t.pack=!0,!this.maxRow)return this.moveNode(A,t);let n;const o=new Bn({column:this.column,float:this.float,nodes:this.nodes.map(c=>c._id===A._id?(n={...c},n):{...c})});if(!n)return!1;const a=o.moveNode(n,t)&&o.getRow()<=Math.max(this.getRow(),this.maxRow);if(!a&&!t.resizing&&t.collide){const c=t.collide.el.gridstackNode;if(this.swap(A,c))return this._notify(),!0}return a?(o.nodes.filter(c=>c._dirty).forEach(c=>{const d=this.nodes.find(h=>h._id===c._id);d&&(q.copyPos(d,c),d._dirty=!0)}),this._notify(),!0):!1}willItFit(A){if(delete A._willFitPos,!this.maxRow)return!0;const t=new Bn({column:this.column,float:this.float,nodes:this.nodes.map(o=>({...o}))}),n={...A};return this.cleanupNode(n),delete n.el,delete n._id,delete n.content,delete n.grid,t.addNode(n),t.getRow()<=this.maxRow?(A._willFitPos=q.copyPos({},n),!0):!1}changedPosConstrain(A,t){return t.w=t.w||A.w,t.h=t.h||A.h,A.x!==t.x||A.y!==t.y?!0:(A.maxW&&(t.w=Math.min(t.w,A.maxW)),A.maxH&&(t.h=Math.min(t.h,A.maxH)),A.minW&&(t.w=Math.max(t.w,A.minW)),A.minH&&(t.h=Math.max(t.h,A.minH)),A.w!==t.w||A.h!==t.h)}moveNode(A,t){if(!A||!t)return!1;let n;t.pack===void 0&&!this.batchMode&&(n=t.pack=!0),typeof t.x!="number"&&(t.x=A.x),typeof t.y!="number"&&(t.y=A.y),typeof t.w!="number"&&(t.w=A.w),typeof t.h!="number"&&(t.h=A.h);const o=A.w!==t.w||A.h!==t.h,a=q.copyPos({},A,!0);if(q.copyPos(a,t),this.nodeBoundFix(a,o),q.copyPos(t,a),!t.forceCollide&&q.samePos(A,t))return!1;const c=q.copyPos({},A),d=this.collideAll(A,a,t.skip);let h=!0;if(d.length){const g=A._moving&&!t.nested;let B=g?this.directionCollideCoverage(A,t,d):d[0];if(g&&B&&A.grid?.opts?.subGridDynamic&&!A.grid._isTemp){const w=q.areaIntercept(t.rect,B._rect),m=q.area(t.rect),y=q.area(B._rect);w/(m<y?m:y)>.8&&(B.grid.makeSubGrid(B.el,void 0,A),B=void 0)}B?h=!this._fixCollisions(A,a,B,t):(h=!1,n&&delete t.pack)}return h&&!q.samePos(A,a)&&(A._dirty=!0,q.copyPos(A,a)),t.pack&&this._packNodes()._notify(),!q.samePos(A,c)}getRow(){return this.nodes.reduce((A,t)=>Math.max(A,t.y+t.h),0)}beginUpdate(A){return A._updating||(A._updating=!0,delete A._skipDown,this.batchMode||this.saveInitial()),this}endUpdate(){const A=this.nodes.find(t=>t._updating);return A&&(delete A._updating,delete A._skipDown),this}save(A=!0,t,n){const o=this._layouts?.length||0;let a;o&&(n?n!==this.column&&(a=this._layouts[n]):this.column!==o-1&&(a=this._layouts[o-1]));const c=[];return this.sortNodes(),this.nodes.forEach(d=>{const h=a?.find(B=>B._id===d._id),g={...d,...h||{}};q.removeInternalForSave(g,!A),t&&t(d,g),c.push(g)}),c}layoutsNodesChange(A){return!this._layouts||this._inColumnResize?this:(this._layouts.forEach((t,n)=>{if(!t||n===this.column)return this;if(n<this.column)this._layouts[n]=void 0;else{const o=n/this.column;A.forEach(a=>{if(!a._orig)return;const c=t.find(d=>d._id===a._id);c&&(c.y>=0&&a.y!==a._orig.y&&(c.y+=a.y-a._orig.y,c.y<0&&(c.y=0)),a.x!==a._orig.x&&(c.x=Math.round(a.x*o),c.x<0&&(c.x=0)),a.w!==a._orig.w&&(c.w=Math.round(a.w*o),c.w<1&&(c.w=1)))})}}),this)}columnChanged(A,t,n="moveScale"){if(!this.nodes.length||!t||A===t)return this;const o=n==="compact"||n==="list";o&&this.sortNodes(1),t<A&&this.cacheLayout(this.nodes,A),this.batchUpdate();let a=[],c=o?this.nodes:q.sort(this.nodes,-1);if(t>A&&this._layouts){const d=this._layouts[t]||[],h=this._layouts.length-1;!d.length&&A!==h&&this._layouts[h]?.length&&(A=h,this._layouts[h].forEach(g=>{const B=c.find(w=>w._id===g._id);B&&(!o&&!g.autoPosition&&(B.x=g.x??B.x,B.y=g.y??B.y),B.w=g.w??B.w,(g.x==null||g.y===void 0)&&(B.autoPosition=!0))})),d.forEach(g=>{const B=c.findIndex(w=>w._id===g._id);if(B!==-1){const w=c[B];if(o){w.w=g.w;return}(g.autoPosition||isNaN(g.x)||isNaN(g.y))&&this.findEmptyPosition(g,a),g.autoPosition||(w.x=g.x??w.x,w.y=g.y??w.y,w.w=g.w??w.w,a.push(w)),c.splice(B,1)}})}if(o)this.compact(n,!1);else{if(c.length)if(typeof n=="function")n(t,A,a,c);else{const d=o||n==="none"?1:t/A,h=n==="move"||n==="moveScale",g=n==="scale"||n==="moveScale";c.forEach(B=>{B.x=t===1?0:h?Math.round(B.x*d):Math.min(B.x,t-1),B.w=t===1||A===1?1:g?Math.round(B.w*d)||1:Math.min(B.w,t),a.push(B)}),c=[]}a=q.sort(a,-1),this._inColumnResize=!0,this.nodes=[],a.forEach(d=>{this.addNode(d,!1),delete d._orig})}return this.nodes.forEach(d=>delete d._orig),this.batchUpdate(!1,!o),delete this._inColumnResize,this}cacheLayout(A,t,n=!1){const o=[];return A.forEach((a,c)=>{a._id===void 0&&(a._id=(a.id?this.nodes.find(d=>d.id===a.id):void 0)?._id??Bn._idSeq++),o[c]={x:a.x,y:a.y,w:a.w,_id:a._id}}),this._layouts=n?[]:this._layouts||[],this._layouts[t]=o,this}cacheOneLayout(A,t){A._id=A._id??Bn._idSeq++;const n={x:A.x,y:A.y,w:A.w,_id:A._id};(A.autoPosition||A.x===void 0)&&(delete n.x,delete n.y,A.autoPosition&&(n.autoPosition=!0)),this._layouts=this._layouts||[],this._layouts[t]=this._layouts[t]||[];const o=this.findCacheLayout(A,t);return o===-1?this._layouts[t].push(n):this._layouts[t][o]=n,this}findCacheLayout(A,t){return this._layouts?.[t]?.findIndex(n=>n._id===A._id)??-1}removeNodeFromLayoutCache(A){if(this._layouts)for(let t=0;t<this._layouts.length;t++){const n=this.findCacheLayout(A,t);n!==-1&&this._layouts[t].splice(n,1)}}cleanupNode(A){for(const t in A)t[0]==="_"&&t!=="_id"&&delete A[t];return this}};wi._idSeq=0;var Ie={alwaysShowResizeHandle:"mobile",animate:!0,auto:!0,cellHeight:"auto",cellHeightThrottle:100,cellHeightUnit:"px",column:12,draggable:{handle:".grid-stack-item-content",appendTo:"body",scroll:!0},handle:".grid-stack-item-content",itemClass:"grid-stack-item",margin:10,marginUnit:"px",maxRow:0,minRow:0,placeholderClass:"grid-stack-placeholder",placeholderText:"",removableOptions:{accept:"grid-stack-item",decline:"grid-stack-non-removable"},resizable:{handles:"se"},rtl:"auto"},TA=class{},Ke=typeof window<"u"&&typeof document<"u"&&("ontouchstart"in document||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),He=class{};function kr(e,A){e.touches.length>1||(e.cancelable&&e.preventDefault(),q.simulateMouseEvent(e.changedTouches[0],A))}function il(e,A){e.cancelable&&e.preventDefault(),q.simulateMouseEvent(e,A)}function Mr(e){He.touchHandled||(He.touchHandled=!0,kr(e,"mousedown"))}function Or(e){He.touchHandled&&kr(e,"mousemove")}function Kr(e){if(!He.touchHandled)return;He.pointerLeaveTimeout&&(window.clearTimeout(He.pointerLeaveTimeout),delete He.pointerLeaveTimeout);const A=!!TA.dragElement;kr(e,"mouseup"),A||kr(e,"click"),He.touchHandled=!1}function Rr(e){e.pointerType!=="mouse"&&e.target.releasePointerCapture(e.pointerId)}function sl(e){TA.dragElement&&e.pointerType!=="mouse"&&il(e,"mouseenter")}function al(e){TA.dragElement&&e.pointerType!=="mouse"&&(He.pointerLeaveTimeout=window.setTimeout(()=>{delete He.pointerLeaveTimeout,il(e,"mouseleave")},10))}var ll=class pu{constructor(A,t,n){this.host=A,this.dir=t,this.option=n,this.moving=!1,this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._keyEvent=this._keyEvent.bind(this),this._init()}_init(){if(this.option.element)try{this.el=this.option.element instanceof HTMLElement?this.option.element:this.host.querySelector(this.option.element)}catch(A){this.option.element=void 0,console.error("Query for resizeable handle failed, falling back",A)}return this.el||(this.el=document.createElement("div"),this.host.appendChild(this.el)),this.el.classList.add("ui-resizable-handle"),this.el.classList.add(`${pu.prefix}${this.dir}`),this.el.style.zIndex="100",this.el.style.userSelect="none",this.el.addEventListener("mousedown",this._mouseDown),Ke&&(this.el.addEventListener("touchstart",Mr),this.el.addEventListener("pointerdown",Rr)),this}destroy(){return this.moving&&this._mouseUp(this.mouseDownEvent),this.el.removeEventListener("mousedown",this._mouseDown),Ke&&(this.el.removeEventListener("touchstart",Mr),this.el.removeEventListener("pointerdown",Rr)),this.option.element||this.host.removeChild(this.el),delete this.el,delete this.host,this}_mouseDown(A){this.mouseDownEvent=A,document.addEventListener("mousemove",this._mouseMove,{capture:!0,passive:!0}),document.addEventListener("mouseup",this._mouseUp,!0),Ke&&(this.el.addEventListener("touchmove",Or),this.el.addEventListener("touchend",Kr)),A.stopPropagation(),A.preventDefault()}_mouseMove(A){const t=this.mouseDownEvent;this.moving?this._triggerEvent("move",A):Math.abs(A.x-t.x)+Math.abs(A.y-t.y)>2&&(this.moving=!0,this._triggerEvent("start",this.mouseDownEvent),this._triggerEvent("move",A),document.addEventListener("keydown",this._keyEvent)),A.stopPropagation()}_mouseUp(A){this.moving&&(this._triggerEvent("stop",A),document.removeEventListener("keydown",this._keyEvent)),document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),Ke&&(this.el.removeEventListener("touchmove",Or),this.el.removeEventListener("touchend",Kr)),delete this.moving,delete this.mouseDownEvent,A.stopPropagation(),A.preventDefault()}_keyEvent(A){A.key==="Escape"&&(this.host.gridstackNode?.grid?.engine.restoreInitial(),this._mouseUp(this.mouseDownEvent))}_triggerEvent(A,t){return this.option[A]&&this.option[A](t),this}};ll.prefix="ui-resizable-";var Ci=class{constructor(){this._eventRegister={}}get disabled(){return this._disabled}on(e,A){this._eventRegister[e]=A}off(e){delete this._eventRegister[e]}enable(){this._disabled=!1}disable(){this._disabled=!0}destroy(){delete this._eventRegister}triggerEvent(e,A){if(!this.disabled&&this._eventRegister&&this._eventRegister[e])return this._eventRegister[e](A)}},cl=class ns extends Ci{constructor(A,t={}){super(),this.el=A,this.option=t,this.rectScale={x:1,y:1},this._ui=()=>{const n=this.el.parentElement.getBoundingClientRect(),o={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},a=this.temporalRect||o;return{position:{left:(a.left-n.left)*this.rectScale.x,top:(a.top-n.top)*this.rectScale.y},size:{width:a.width*this.rectScale.x,height:a.height*this.rectScale.y}}},this._mouseOver=this._mouseOver.bind(this),this._mouseOut=this._mouseOut.bind(this),this.enable(),this._setupAutoHide(this.option.autoHide),this._setupHandlers()}on(A,t){super.on(A,t)}off(A){super.off(A)}enable(){super.enable(),this.el.classList.remove("ui-resizable-disabled"),this._setupAutoHide(this.option.autoHide)}disable(){super.disable(),this.el.classList.add("ui-resizable-disabled"),this._setupAutoHide(!1)}destroy(){this._removeHandlers(),this._setupAutoHide(!1),delete this.el,super.destroy()}updateOption(A){const t=A.handles&&A.handles!==this.option.handles,n=A.autoHide&&A.autoHide!==this.option.autoHide;return Object.keys(A).forEach(o=>this.option[o]=A[o]),t&&(this._removeHandlers(),this._setupHandlers()),n&&this._setupAutoHide(this.option.autoHide),this}_setupAutoHide(A){return A?(this.el.classList.add("ui-resizable-autohide"),this.el.addEventListener("mouseover",this._mouseOver),this.el.addEventListener("mouseout",this._mouseOut)):(this.el.classList.remove("ui-resizable-autohide"),this.el.removeEventListener("mouseover",this._mouseOver),this.el.removeEventListener("mouseout",this._mouseOut),TA.overResizeElement===this&&delete TA.overResizeElement),this}_mouseOver(A){TA.overResizeElement||TA.dragElement||(TA.overResizeElement=this,this.el.classList.remove("ui-resizable-autohide"))}_mouseOut(A){TA.overResizeElement===this&&(delete TA.overResizeElement,this.el.classList.add("ui-resizable-autohide"))}_setupHandlers(){return this.handlers=this.option.handles.split(",").map(A=>A.trim()).map(A=>new ll(this.el,A,{element:this.option.element,start:t=>this._resizeStart(t),stop:t=>this._resizeStop(t),move:t=>this._resizing(t,A)})),this}_resizeStart(A){this.sizeToContent=q.shouldSizeToContent(this.el.gridstackNode,!0),this.originalRect=this.el.getBoundingClientRect(),this.scrollEl=q.getScrollElement(this.el),this.scrollY=this.scrollEl.scrollTop,this.scrolled=0,this.startEvent=A,this._setupHelper(),this._applyChange();const t=q.initEvent(A,{type:"resizestart",target:this.el});return this.option.start&&this.option.start(t,this._ui()),this.el.classList.add("ui-resizable-resizing"),this.triggerEvent("resizestart",t),this}_resizing(A,t){this.scrolled=this.scrollEl.scrollTop-this.scrollY,this.temporalRect=this._getChange(A,t),this._applyChange();const n=q.initEvent(A,{type:"resize",target:this.el});return this.option.resize&&this.option.resize(n,this._ui()),this.triggerEvent("resize",n),this}_resizeStop(A){const t=q.initEvent(A,{type:"resizestop",target:this.el});return this._cleanHelper(),this.option.stop&&this.option.stop(t),this.el.classList.remove("ui-resizable-resizing"),this.triggerEvent("resizestop",t),delete this.startEvent,delete this.originalRect,delete this.temporalRect,delete this.scrollY,delete this.scrolled,this}_setupHelper(){this.elOriginStyleVal=ns._originStyleProp.map(n=>this.el.style[n]),this.parentOriginStylePosition=this.el.parentElement.style.position;const A=this.el.parentElement,t=q.getValuesFromTransformedElement(A);return this.rectScale={x:t.xScale,y:t.yScale},getComputedStyle(this.el.parentElement).position.match(/static/)&&(this.el.parentElement.style.position="relative"),this.el.style.position="absolute",this.el.style.opacity="0.8",this}_cleanHelper(){return ns._originStyleProp.forEach((A,t)=>{this.el.style[A]=this.elOriginStyleVal[t]||null}),this.el.parentElement.style.position=this.parentOriginStylePosition||null,this}_getChange(A,t){const n=this.startEvent,o={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},a=A.clientX-n.clientX,c=this.sizeToContent?0:A.clientY-n.clientY;let d,h;t.indexOf("e")>-1?o.width+=a:t.indexOf("w")>-1&&(o.width-=a,o.left+=a,d=!0),t.indexOf("s")>-1?o.height+=c:t.indexOf("n")>-1&&(o.height-=c,o.top+=c,h=!0);const g=this._constrainSize(o.width,o.height,d,h);return Math.round(o.width)!==Math.round(g.width)&&(t.indexOf("w")>-1&&(o.left+=o.width-g.width),o.width=g.width),Math.round(o.height)!==Math.round(g.height)&&(t.indexOf("n")>-1&&(o.top+=o.height-g.height),o.height=g.height),o}_constrainSize(A,t,n,o){const a=this.option,c=(n?a.maxWidthMoveLeft:a.maxWidth)||Number.MAX_SAFE_INTEGER,d=a.minWidth/this.rectScale.x||A,h=(o?a.maxHeightMoveUp:a.maxHeight)||Number.MAX_SAFE_INTEGER,g=a.minHeight/this.rectScale.y||t;return{width:Math.min(c,Math.max(d,A)),height:Math.min(h,Math.max(g,t))}}_applyChange(){let A={left:0,top:0,width:0,height:0};if(this.el.style.position==="absolute"){const{left:t,top:n}=this.el.parentElement.getBoundingClientRect();A={left:t,top:n,width:0,height:0}}return this.temporalRect?(Object.keys(this.temporalRect).forEach(t=>{const n=this.temporalRect[t],o=t==="width"||t==="left"?this.rectScale.x:t==="height"||t==="top"?this.rectScale.y:1;this.el.style[t]=(n-A[t])*o+"px"}),this):this}_removeHandlers(){return this.handlers.forEach(A=>A.destroy()),delete this.handlers,this}};cl._originStyleProp=["width","height","position","left","top","opacity","zIndex"];var Dm='input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle',ul=class rs extends Ci{constructor(A,t={}){super(),this.el=A,this.option=t,this.dragTransform={xScale:1,yScale:1,xOffset:0,yOffset:0};const n=t?.handle?.substring(1),o=A.gridstackNode;this.dragEls=!n||A.classList.contains(n)?[A]:o?.subGrid?[A.querySelector(t.handle)||A]:Array.from(A.querySelectorAll(t.handle)),this.dragEls.length===0&&(this.dragEls=[A]),this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._keyEvent=this._keyEvent.bind(this),this.enable()}on(A,t){super.on(A,t)}off(A){super.off(A)}enable(){this.disabled!==!1&&(super.enable(),this.dragEls.forEach(A=>{A.addEventListener("mousedown",this._mouseDown),Ke&&(A.addEventListener("touchstart",Mr),A.addEventListener("pointerdown",Rr))}),this.el.classList.remove("ui-draggable-disabled"))}disable(A=!1){this.disabled!==!0&&(super.disable(),this.dragEls.forEach(t=>{t.removeEventListener("mousedown",this._mouseDown),Ke&&(t.removeEventListener("touchstart",Mr),t.removeEventListener("pointerdown",Rr))}),A||this.el.classList.add("ui-draggable-disabled"))}destroy(){this.dragTimeout&&window.clearTimeout(this.dragTimeout),delete this.dragTimeout,this.mouseDownEvent&&this._mouseUp(this.mouseDownEvent),this.disable(!0),delete this.el,delete this.helper,delete this.option,super.destroy()}updateOption(A){return Object.keys(A).forEach(t=>this.option[t]=A[t]),this}_mouseDown(A){if(He.touchHandled&&A.isTrusted&&(He.touchHandled=!1),!TA.mouseHandled)return A.button!==0||!this.dragEls.find(t=>t===A.target)&&A.target.closest(Dm)||this.option.cancel&&A.target.closest(this.option.cancel)||(this.mouseDownEvent=A,delete this.dragging,delete TA.dragElement,delete TA.dropElement,document.addEventListener("mousemove",this._mouseMove,{capture:!0,passive:!0}),document.addEventListener("mouseup",this._mouseUp,!0),Ke&&(A.currentTarget.addEventListener("touchmove",Or),A.currentTarget.addEventListener("touchend",Kr)),A.preventDefault(),document.activeElement&&document.activeElement.blur(),TA.mouseHandled=!0),!0}_callDrag(A){if(!this.dragging)return;const t=q.initEvent(A,{target:this.el,type:"drag"});this.option.drag&&this.option.drag(t,this.ui()),this.triggerEvent("drag",t)}_mouseMove(A){const t=this.mouseDownEvent;if(this.lastDrag=A,this.dragging)if(this._dragFollow(A),TA.pauseDrag){const n=Number.isInteger(TA.pauseDrag)?TA.pauseDrag:100;this.dragTimeout&&window.clearTimeout(this.dragTimeout),this.dragTimeout=window.setTimeout(()=>this._callDrag(A),n)}else this._callDrag(A);else if(Math.abs(A.x-t.x)+Math.abs(A.y-t.y)>3){this.dragging=!0,TA.dragElement=this;const n=this.el.gridstackNode?.grid;n?TA.dropElement=n.el.ddElement.ddDroppable:delete TA.dropElement,this.helper=this._createHelper(),this._setupHelperContainmentStyle(),this.dragTransform=q.getValuesFromTransformedElement(this.helperContainment),this.dragOffset=this._getDragOffset(A,this.el,this.helperContainment),this._setupHelperStyle(A);const o=q.initEvent(A,{target:this.el,type:"dragstart"});this.option.start&&this.option.start(o,this.ui()),this.triggerEvent("dragstart",o),document.addEventListener("keydown",this._keyEvent)}return!0}_mouseUp(A){if(document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),Ke&&A.currentTarget&&(A.currentTarget.removeEventListener("touchmove",Or,!0),A.currentTarget.removeEventListener("touchend",Kr,!0)),this.dragging){delete this.dragging,delete this.el.gridstackNode?._origRotate,document.removeEventListener("keydown",this._keyEvent),TA.dropElement?.el===this.el.parentElement&&delete TA.dropElement,this.helperContainment.style.position=this.parentOriginStylePosition||null,this.helper!==this.el&&this.helper.remove(),this._removeHelperStyle();const t=q.initEvent(A,{target:this.el,type:"dragstop"});this.option.stop&&this.option.stop(t),this.triggerEvent("dragstop",t),TA.dropElement&&TA.dropElement.drop(A)}delete this.helper,delete this.mouseDownEvent,delete TA.dragElement,delete TA.dropElement,delete TA.mouseHandled,A.preventDefault()}_keyEvent(A){const t=this.el.gridstackNode,n=t?.grid||TA.dropElement?.el?.gridstack;if(A.key==="Escape")t&&t._origRotate&&(t._orig=t._origRotate,delete t._origRotate),n?.cancelDrag(),this._mouseUp(this.mouseDownEvent);else if(t&&n&&(A.key==="r"||A.key==="R")){if(!q.canBeRotated(t))return;t._origRotate=t._origRotate||{...t._orig},delete t._moving,n.setAnimation(!1).rotate(t.el,{top:-this.dragOffset.offsetTop,left:-this.dragOffset.offsetLeft}).setAnimation(),t._moving=!0,this.dragOffset=this._getDragOffset(this.lastDrag,t.el,this.helperContainment),this.helper.style.width=this.dragOffset.width+"px",this.helper.style.height=this.dragOffset.height+"px",q.swap(t._orig,"w","h"),delete t._rect,this._mouseMove(this.lastDrag)}}_createHelper(){let A=this.el;return typeof this.option.helper=="function"?A=this.option.helper(this.el):this.option.helper==="clone"&&(A=q.cloneNode(this.el)),A.parentElement||q.appendTo(A,this.option.appendTo==="parent"?this.el.parentElement:this.option.appendTo),this.dragElementOriginStyle=rs.originStyleProp.map(t=>this.el.style[t]),A}_setupHelperStyle(A){this.helper.classList.add("ui-draggable-dragging"),this.el.gridstackNode?.grid?.el.classList.add("grid-stack-dragging");const t=this.helper.style;return t.pointerEvents="none",t.width=this.dragOffset.width+"px",t.height=this.dragOffset.height+"px",t.willChange="left, top",t.position="fixed",this._dragFollow(A),t.transition="none",setTimeout(()=>{this.helper&&(t.transition=null)},0),this}_removeHelperStyle(){if(this.helper.classList.remove("ui-draggable-dragging"),this.el.gridstackNode?.grid?.el.classList.remove("grid-stack-dragging"),!this.helper?.gridstackNode?._isAboutToRemove&&this.dragElementOriginStyle){const A=this.helper,t=this.dragElementOriginStyle.transition||null;A.style.transition=this.dragElementOriginStyle.transition="none",rs.originStyleProp.forEach(n=>A.style[n]=this.dragElementOriginStyle[n]||null),setTimeout(()=>A.style.transition=t,50)}return delete this.dragElementOriginStyle,this}_dragFollow(A){const t={left:0,top:0},n=this.helper.style,o=this.dragOffset;n.left=(A.clientX+o.offsetLeft-t.left)*this.dragTransform.xScale+"px",n.top=(A.clientY+o.offsetTop-t.top)*this.dragTransform.yScale+"px"}_setupHelperContainmentStyle(){return this.helperContainment=this.helper.parentElement,this.helper.style.position!=="fixed"&&(this.parentOriginStylePosition=this.helperContainment.style.position,getComputedStyle(this.helperContainment).position.match(/static/)&&(this.helperContainment.style.position="relative")),this}_getDragOffset(A,t,n){let o=0,a=0;n&&(o=this.dragTransform.xOffset,a=this.dragTransform.yOffset);const c=t.getBoundingClientRect();return{left:c.left,top:c.top,offsetLeft:-A.clientX+c.left-o,offsetTop:-A.clientY+c.top-a,width:c.width*this.dragTransform.xScale,height:c.height*this.dragTransform.yScale}}ui(){const A=this.el.parentElement.getBoundingClientRect(),t=this.helper.getBoundingClientRect();return{position:{top:(t.top-A.top)*this.dragTransform.yScale,left:(t.left-A.left)*this.dragTransform.xScale}}}};ul.originStyleProp=["width","height","transform","transform-origin","transition","pointerEvents","position","left","top","minWidth","willChange"];var Nm=class extends Ci{constructor(e,A={}){super(),this.el=e,this.option=A,this._mouseEnter=this._mouseEnter.bind(this),this._mouseLeave=this._mouseLeave.bind(this),this.enable(),this._setupAccept()}on(e,A){super.on(e,A)}off(e){super.off(e)}enable(){this.disabled!==!1&&(super.enable(),this.el.classList.add("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),this.el.addEventListener("mouseenter",this._mouseEnter),this.el.addEventListener("mouseleave",this._mouseLeave),Ke&&(this.el.addEventListener("pointerenter",sl),this.el.addEventListener("pointerleave",al)))}disable(e=!1){this.disabled!==!0&&(super.disable(),this.el.classList.remove("ui-droppable"),e||this.el.classList.add("ui-droppable-disabled"),this.el.removeEventListener("mouseenter",this._mouseEnter),this.el.removeEventListener("mouseleave",this._mouseLeave),Ke&&(this.el.removeEventListener("pointerenter",sl),this.el.removeEventListener("pointerleave",al)))}destroy(){this.disable(!0),this.el.classList.remove("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),super.destroy()}updateOption(e){return Object.keys(e).forEach(A=>this.option[A]=e[A]),this._setupAccept(),this}_mouseEnter(e){if(!TA.dragElement||He.touchHandled&&e.isTrusted||!this._canDrop(TA.dragElement.el))return;e.preventDefault(),e.stopPropagation(),TA.dropElement&&TA.dropElement!==this&&TA.dropElement._mouseLeave(e,!0),TA.dropElement=this;const A=q.initEvent(e,{target:this.el,type:"dropover"});this.option.over&&this.option.over(A,this._ui(TA.dragElement)),this.triggerEvent("dropover",A),this.el.classList.add("ui-droppable-over")}_mouseLeave(e,A=!1){if(!TA.dragElement||TA.dropElement!==this)return;e.preventDefault(),e.stopPropagation();const t=q.initEvent(e,{target:this.el,type:"dropout"});if(this.option.out&&this.option.out(t,this._ui(TA.dragElement)),this.triggerEvent("dropout",t),TA.dropElement===this&&(delete TA.dropElement,!A)){let n,o=this.el.parentElement;for(;!n&&o;)n=o.ddElement?.ddDroppable,o=o.parentElement;n&&n._mouseEnter(e)}}drop(e){e.preventDefault();const A=q.initEvent(e,{target:this.el,type:"drop"});this.option.drop&&this.option.drop(A,this._ui(TA.dragElement)),this.triggerEvent("drop",A)}_canDrop(e){return e&&(!this.accept||this.accept(e))}_setupAccept(){return this.option.accept?(typeof this.option.accept=="string"?this.accept=e=>e.classList.contains(this.option.accept)||e.matches(this.option.accept):this.accept=this.option.accept,this):this}_ui(e){return{draggable:e.el,...e.ui()}}},Lm=class mu{static init(A){return A.ddElement||(A.ddElement=new mu(A)),A.ddElement}constructor(A){this.el=A}on(A,t){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(A)>-1?this.ddDraggable.on(A,t):this.ddDroppable&&["drop","dropover","dropout"].indexOf(A)>-1?this.ddDroppable.on(A,t):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(A)>-1&&this.ddResizable.on(A,t),this}off(A){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(A)>-1?this.ddDraggable.off(A):this.ddDroppable&&["drop","dropover","dropout"].indexOf(A)>-1?this.ddDroppable.off(A):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(A)>-1&&this.ddResizable.off(A),this}setupDraggable(A){return this.ddDraggable?this.ddDraggable.updateOption(A):this.ddDraggable=new ul(this.el,A),this}cleanDraggable(){return this.ddDraggable&&(this.ddDraggable.destroy(),delete this.ddDraggable),this}setupResizable(A){return this.ddResizable?this.ddResizable.updateOption(A):this.ddResizable=new cl(this.el,A),this}cleanResizable(){return this.ddResizable&&(this.ddResizable.destroy(),delete this.ddResizable),this}setupDroppable(A){return this.ddDroppable?this.ddDroppable.updateOption(A):this.ddDroppable=new Nm(this.el,A),this}cleanDroppable(){return this.ddDroppable&&(this.ddDroppable.destroy(),delete this.ddDroppable),this}},Tm=class{resizable(e,A,t,n){return this._getDDElements(e,A).forEach(o=>{if(A==="disable"||A==="enable")o.ddResizable&&o.ddResizable[A]();else if(A==="destroy")o.ddResizable&&o.cleanResizable();else if(A==="option")o.setupResizable({[t]:n});else{const a=o.el.gridstackNode.grid;let c=o.el.getAttribute("gs-resize-handles")||a.opts.resizable.handles||"e,s,se";c==="all"&&(c="n,e,s,w,se,sw,ne,nw");const d=!a.opts.alwaysShowResizeHandle;o.setupResizable({...a.opts.resizable,handles:c,autoHide:d,start:A.start,stop:A.stop,resize:A.resize})}}),this}draggable(e,A,t,n){return this._getDDElements(e,A).forEach(o=>{if(A==="disable"||A==="enable")o.ddDraggable&&o.ddDraggable[A]();else if(A==="destroy")o.ddDraggable&&o.cleanDraggable();else if(A==="option")o.setupDraggable({[t]:n});else{const a=o.el.gridstackNode.grid;o.setupDraggable({...a.opts.draggable,start:A.start,stop:A.stop,drag:A.drag})}}),this}dragIn(e,A){return this._getDDElements(e).forEach(t=>t.setupDraggable(A)),this}droppable(e,A,t,n){return typeof A.accept=="function"&&!A._accept&&(A._accept=A.accept,A.accept=o=>A._accept(o)),this._getDDElements(e,A).forEach(o=>{A==="disable"||A==="enable"?o.ddDroppable&&o.ddDroppable[A]():A==="destroy"?o.ddDroppable&&o.cleanDroppable():A==="option"?o.setupDroppable({[t]:n}):o.setupDroppable(A)}),this}isDroppable(e){return!!(e?.ddElement?.ddDroppable&&!e.ddElement.ddDroppable.disabled)}isDraggable(e){return!!(e?.ddElement?.ddDraggable&&!e.ddElement.ddDraggable.disabled)}isResizable(e){return!!(e?.ddElement?.ddResizable&&!e.ddElement.ddResizable.disabled)}on(e,A,t){return this._getDDElements(e).forEach(n=>n.on(A,o=>{t(o,TA.dragElement?TA.dragElement.el:o.target,TA.dragElement?TA.dragElement.helper:null)})),this}off(e,A){return this._getDDElements(e).forEach(t=>t.off(A)),this}_getDDElements(e,A){const t=e.gridstack||A!=="destroy"&&A!=="disable",n=q.getElements(e);return n.length?n.map(o=>o.ddElement||(t?Lm.init(o):null)).filter(o=>o):[]}},we=new Tm,en=class LA{static init(A={},t=".grid-stack"){if(typeof document>"u")return null;const n=LA.getGridElement(t);return n?(n.gridstack||(n.gridstack=new LA(n,q.cloneDeep(A))),n.gridstack):(console.error(typeof t=="string"?'GridStack.initAll() no grid was found with selector "'+t+`" - element missing or wrong selector ?
|
|
27
|
-
Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`:"GridStack.init() no grid element was passed."),null)}static initAll(A={},t=".grid-stack"){const n=[];return typeof document>"u"||(
|
|
28
|
-
Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`)),n}static addGrid(A,t={}){if(!A)return null;let n=A;if(n.gridstack){const o=n.gridstack;return t&&(o.opts={...o.opts,...t}),t.children!==void 0&&o.load(t.children),o}return(!A.classList.contains("grid-stack")||LA.addRemoveCB)&&(LA.addRemoveCB?n=LA.addRemoveCB(A,t,!0,!0):n=q.createDiv(["grid-stack",t.class],A)),LA.init(t,n)}static registerEngine(A){LA.engineClass=A}get placeholder(){if(!this._placeholder){this._placeholder=q.createDiv([this.opts.placeholderClass,Ie.itemClass,this.opts.itemClass]);const A=q.createDiv(["placeholder-content"],this._placeholder);this.opts.placeholderText&&(A.textContent=this.opts.placeholderText)}return this._placeholder}constructor(A,t={}){this.el=A,this.opts=t,this.animationDelay=310,this._gsEventHandler={},this._extraDragRow=0,this.dragTransform={xScale:1,yScale:1,xOffset:0,yOffset:0},A.gridstack=this,this.opts=t=t||{},A.classList.contains("grid-stack")||this.el.classList.add("grid-stack"),t.row&&(t.minRow=t.maxRow=t.row,delete t.row);const n=q.toNumber(A.getAttribute("gs-row"));t.column==="auto"&&delete t.column,t.alwaysShowResizeHandle!==void 0&&(t._alwaysShowResizeHandle=t.alwaysShowResizeHandle);const o=t.columnOpts;if(o){const h=o.breakpoints;!o.columnWidth&&!h?.length?delete t.columnOpts:(o.columnMax=o.columnMax||12,h?.length>1&&h.sort((g,B)=>(B.w||0)-(g.w||0)))}const a={...q.cloneDeep(Ie),column:q.toNumber(A.getAttribute("gs-column"))||Ie.column,minRow:n||q.toNumber(A.getAttribute("gs-min-row"))||Ie.minRow,maxRow:n||q.toNumber(A.getAttribute("gs-max-row"))||Ie.maxRow,staticGrid:q.toBool(A.getAttribute("gs-static"))||Ie.staticGrid,sizeToContent:q.toBool(A.getAttribute("gs-size-to-content"))||void 0,draggable:{handle:(t.handleClass?"."+t.handleClass:t.handle?t.handle:"")||Ie.draggable.handle},removableOptions:{accept:t.itemClass||Ie.removableOptions.accept,decline:Ie.removableOptions.decline}};A.getAttribute("gs-animate")&&(a.animate=q.toBool(A.getAttribute("gs-animate"))),t=q.defaults(t,a),this._initMargin(),this.checkDynamicColumn(),this._updateColumnVar(t),t.rtl==="auto"&&(t.rtl=A.style.direction==="rtl"),t.rtl&&this.el.classList.add("grid-stack-rtl");const c=this.el.closest("."+Ie.itemClass)?.gridstackNode;if(c&&(c.subGrid=this,this.parentGridNode=c,this.el.classList.add("grid-stack-nested"),c.el.classList.add("grid-stack-sub-grid")),this._isAutoCellHeight=t.cellHeight==="auto",this._isAutoCellHeight||t.cellHeight==="initial")this.cellHeight(void 0);else{typeof t.cellHeight=="number"&&t.cellHeightUnit&&t.cellHeightUnit!==Ie.cellHeightUnit&&(t.cellHeight=t.cellHeight+t.cellHeightUnit,delete t.cellHeightUnit);const h=t.cellHeight;delete t.cellHeight,this.cellHeight(h)}t.alwaysShowResizeHandle==="mobile"&&(t.alwaysShowResizeHandle=Ke),this._setStaticClass();const d=t.engineClass||LA.engineClass||wi;if(this.engine=new d({column:this.getColumn(),float:t.float,maxRow:t.maxRow,onChange:h=>{h.forEach(g=>{const B=g.el;B&&(g._removeDOM?(B&&B.remove(),delete g._removeDOM):this._writePosAttr(B,g))}),this._updateContainerHeight()}}),t.auto&&(this.batchUpdate(),this.engine._loading=!0,this.getGridItems().forEach(h=>this._prepareElement(h)),delete this.engine._loading,this.batchUpdate(!1)),t.children){const h=t.children;delete t.children,h.length&&this.load(h)}this.setAnimation(),t.subGridDynamic&&!TA.pauseDrag&&(TA.pauseDrag=!0),t.draggable?.pause!==void 0&&(TA.pauseDrag=t.draggable.pause),this._setupRemoveDrop(),this._setupAcceptWidget(),this._updateResizeEvent()}_updateColumnVar(A=this.opts){this.el.classList.add("gs-"+A.column),typeof A.column=="number"&&this.el.style.setProperty("--gs-column-width",`${100/A.column}%`)}addWidget(A){if(!A)return;if(typeof A=="string"){console.error("V11: GridStack.addWidget() does not support string anymore. see #2736");return}if(A.ELEMENT_NODE)return console.error("V11: GridStack.addWidget() does not support HTMLElement anymore. use makeWidget()"),this.makeWidget(A);let t,n=A;if(n.grid=this,n.el?t=n.el:LA.addRemoveCB?t=LA.addRemoveCB(this.el,A,!0,!1):t=this.createWidgetDivs(n),!t)return;if(n=t.gridstackNode,n&&t.parentElement===this.el&&this.engine.nodes.find(a=>a._id===n._id))return t;const o=this._readAttr(t);return q.defaults(A,o),this.engine.prepareNode(A),this.el.appendChild(t),this.makeWidget(t,A),t}createWidgetDivs(A){const t=q.createDiv(["grid-stack-item",this.opts.itemClass]),n=q.createDiv(["grid-stack-item-content"],t);return q.lazyLoad(A)?A.visibleObservable||(A.visibleObservable=new IntersectionObserver(([o])=>{o.isIntersecting&&(A.visibleObservable?.disconnect(),delete A.visibleObservable,LA.renderCB(n,A),A.grid?.prepareDragDrop(A.el))}),window.setTimeout(()=>A.visibleObservable?.observe(t))):LA.renderCB(n,A),t}makeSubGrid(A,t,n,o=!0){let a=A.gridstackNode;if(a||(a=this.makeWidget(A).gridstackNode),a.subGrid?.el)return a.subGrid;let c,d=this;for(;d&&!c;)c=d.opts?.subGridOpts,d=d.parentGridNode?.grid;t=q.cloneDeep({...this.opts,id:void 0,children:void 0,column:"auto",columnOpts:void 0,layout:"list",subGridOpts:void 0,...c||{},...t||a.subGridOpts||{}}),a.subGridOpts=t;let h;t.column==="auto"&&(h=!0,t.column=Math.max(a.w||1,n?.w||1),delete t.columnOpts);let g=a.el.querySelector(".grid-stack-item-content"),B,w;if(o&&(this._removeDD(a.el),w={...a,x:0,y:0},q.removeInternalForSave(w),delete w.subGridOpts,a.content&&(w.content=a.content,delete a.content),LA.addRemoveCB?B=LA.addRemoveCB(this.el,w,!0,!1):(B=q.createDiv(["grid-stack-item"]),B.appendChild(g),g=q.createDiv(["grid-stack-item-content"],a.el)),this.prepareDragDrop(a.el)),n){const y=h?t.column:a.w,v=a.h+n.h,I=a.el.style;I.transition="none",this.update(a.el,{w:y,h:v}),setTimeout(()=>I.transition=null)}const m=a.subGrid=LA.addGrid(g,t);return n?._moving&&(m._isTemp=!0),h&&(m._autoColumn=!0),o&&m.makeWidget(B,w),n&&(n._moving?window.setTimeout(()=>q.simulateMouseEvent(n._event,"mouseenter",m.el),0):m.makeWidget(a.el,a)),this.resizeToContentCheck(!1,a),m}removeAsSubGrid(A){const t=this.parentGridNode?.grid;t&&(t.batchUpdate(),t.removeWidget(this.parentGridNode.el,!0,!0),this.engine.nodes.forEach(n=>{n.x+=this.parentGridNode.x,n.y+=this.parentGridNode.y,t.makeWidget(n.el,n)}),t.batchUpdate(!1),this.parentGridNode&&delete this.parentGridNode.subGrid,delete this.parentGridNode,A&&window.setTimeout(()=>q.simulateMouseEvent(A._event,"mouseenter",t.el),0))}save(A=!0,t=!1,n=LA.saveCB,o){const a=this.engine.save(A,n,o);if(a.forEach(c=>{if(A&&c.el&&!c.subGrid&&!n)c.content=c.el.querySelector(".grid-stack-item-content")?.innerHTML,c.content||delete c.content;else if(!A&&!n&&delete c.content,c.subGrid?.el){const d=c.w||c.subGrid.getColumn(),h=c.subGrid.save(A,t,n,d);c.subGridOpts=t?h:{children:h},delete c.subGrid}delete c.el}),t){const c=q.cloneDeep(this.opts);c.marginBottom===c.marginTop&&c.marginRight===c.marginLeft&&c.marginTop===c.marginRight&&(c.margin=c.marginTop,delete c.marginTop,delete c.marginRight,delete c.marginBottom,delete c.marginLeft),c.rtl===(this.el.style.direction==="rtl")&&(c.rtl="auto"),this._isAutoCellHeight&&(c.cellHeight="auto"),this._autoColumn&&(c.column="auto");const d=c._alwaysShowResizeHandle;return delete c._alwaysShowResizeHandle,d!==void 0?c.alwaysShowResizeHandle=d:delete c.alwaysShowResizeHandle,q.removeInternalAndSame(c,Ie),c.children=a,c}return a}load(A,t=LA.addRemoveCB||!0){A=q.cloneDeep(A);const n=this.getColumn();A.forEach(B=>{B.w=B.w||B.minW||1,B.h=B.h||B.minH||1}),A=q.sort(A),this.engine.skipCacheUpdate=this._ignoreLayoutsNodeChange=!0;let o=0;A.forEach(B=>{o=Math.max(o,(B.x||0)+B.w)}),o>this.engine.defaultColumn&&(this.engine.defaultColumn=o),o>n&&(this.engine.nodes.length===0&&this.responseLayout?(this.engine.nodes=A,this.engine.columnChanged(o,n,this.responseLayout),A=this.engine.nodes,this.engine.nodes=[],delete this.responseLayout):this.engine.cacheLayout(A,o,!0));const a=LA.addRemoveCB;typeof t=="function"&&(LA.addRemoveCB=t);const c=[];this.batchUpdate();const d=!this.engine.nodes.length,h=d&&this.opts.animate;h&&this.setAnimation(!1),!d&&t&&[...this.engine.nodes].forEach(B=>{B.id&&(q.find(A,B.id)||(LA.addRemoveCB&&LA.addRemoveCB(this.el,B,!1,!1),c.push(B),this.removeWidget(B.el,!0,!1)))}),this.engine._loading=!0;const g=[];return this.engine.nodes=this.engine.nodes.filter(B=>q.find(A,B.id)?(g.push(B),!1):!0),A.forEach(B=>{const w=q.find(g,B.id);if(w){if(q.shouldSizeToContent(w)&&(B.h=w.h),this.engine.nodeBoundFix(B),(B.autoPosition||B.x===void 0||B.y===void 0)&&(B.w=B.w||w.w,B.h=B.h||w.h,this.engine.findEmptyPosition(B)),this.engine.nodes.push(w),q.samePos(w,B)&&this.engine.nodes.length>1&&(this.moveNode(w,{...B,forceCollide:!0}),q.copyPos(B,w)),this.update(w.el,B),B.subGridOpts?.children){const m=w.el.querySelector(".grid-stack");m&&m.gridstack&&m.gridstack.load(B.subGridOpts.children)}}else t&&this.addWidget(B)}),delete this.engine._loading,this.engine.removedNodes=c,this.batchUpdate(!1),delete this._ignoreLayoutsNodeChange,delete this.engine.skipCacheUpdate,a?LA.addRemoveCB=a:delete LA.addRemoveCB,h&&this.setAnimation(!0,!0),this}batchUpdate(A=!0){return this.engine.batchUpdate(A),A||(this._updateContainerHeight(),this._triggerRemoveEvent(),this._triggerAddEvent(),this._triggerChangeEvent()),this}getCellHeight(A=!1){if(this.opts.cellHeight&&this.opts.cellHeight!=="auto"&&(!A||!this.opts.cellHeightUnit||this.opts.cellHeightUnit==="px"))return this.opts.cellHeight;if(this.opts.cellHeightUnit==="rem")return this.opts.cellHeight*parseFloat(getComputedStyle(document.documentElement).fontSize);if(this.opts.cellHeightUnit==="em")return this.opts.cellHeight*parseFloat(getComputedStyle(this.el).fontSize);if(this.opts.cellHeightUnit==="cm")return this.opts.cellHeight*(96/2.54);if(this.opts.cellHeightUnit==="mm")return this.opts.cellHeight*(96/2.54)/10;const t=this.el.querySelector("."+this.opts.itemClass);if(t){const o=q.toNumber(t.getAttribute("gs-h"))||1;return Math.round(t.offsetHeight/o)}const n=parseInt(this.el.getAttribute("gs-current-row"));return n?Math.round(this.el.getBoundingClientRect().height/n):this.opts.cellHeight}cellHeight(A){if(A!==void 0&&this._isAutoCellHeight!==(A==="auto")&&(this._isAutoCellHeight=A==="auto",this._updateResizeEvent()),(A==="initial"||A==="auto")&&(A=void 0),A===void 0){const n=-this.opts.marginRight-this.opts.marginLeft+this.opts.marginTop+this.opts.marginBottom;A=this.cellWidth()+n}const t=q.parseHeight(A);return this.opts.cellHeightUnit===t.unit&&this.opts.cellHeight===t.h?this:(this.opts.cellHeightUnit=t.unit,this.opts.cellHeight=t.h,this.el.style.setProperty("--gs-cell-height",`${this.opts.cellHeight}${this.opts.cellHeightUnit}`),this._updateContainerHeight(),this.resizeToContentCheck(),this)}cellWidth(){return this._widthOrContainer()/this.getColumn()}_widthOrContainer(A=!1){return A&&this.opts.columnOpts?.breakpointForWindow?window.innerWidth:this.el.clientWidth||this.el.parentElement.clientWidth||window.innerWidth}checkDynamicColumn(){const A=this.opts.columnOpts;if(!A||!A.columnWidth&&!A.breakpoints?.length)return!1;const t=this.getColumn();let n=t;const o=this._widthOrContainer(!0);if(A.columnWidth)n=Math.min(Math.round(o/A.columnWidth)||1,A.columnMax);else{n=A.columnMax;let a=0;for(;a<A.breakpoints.length&&o<=A.breakpoints[a].w;)n=A.breakpoints[a++].c||t}if(n!==t){const a=A.breakpoints?.find(c=>c.c===n);return this.column(n,a?.layout||A.layout),!0}return!1}compact(A="compact",t=!0){return this.engine.compact(A,t),this._triggerChangeEvent(),this}column(A,t="moveScale"){if(!A||A<1||this.opts.column===A)return this;const n=this.getColumn();return this.opts.column=A,this.engine?(this.engine.column=A,this.el.classList.remove("gs-"+n),this._updateColumnVar(),this.engine.columnChanged(n,A,t),this._isAutoCellHeight&&this.cellHeight(),this.resizeToContentCheck(!0),this._ignoreLayoutsNodeChange=!0,this._triggerChangeEvent(),delete this._ignoreLayoutsNodeChange,this):(this.responseLayout=t,this)}getColumn(){return this.opts.column}getGridItems(){return Array.from(this.el.children).filter(A=>A.matches("."+this.opts.itemClass)&&!A.matches("."+this.opts.placeholderClass))}isIgnoreChangeCB(){return this._ignoreLayoutsNodeChange}destroy(A=!0){if(this.el)return this.offAll(),this._updateResizeEvent(!0),this.setStatic(!0,!1),this.setAnimation(!1),A?this.el.parentNode.removeChild(this.el):(this.removeAll(A),this.el.removeAttribute("gs-current-row")),this.parentGridNode&&delete this.parentGridNode.subGrid,delete this.parentGridNode,delete this.opts,delete this._placeholder?.gridstackNode,delete this._placeholder,delete this.engine,delete this.el.gridstack,delete this.el,this}float(A){return this.opts.float!==A&&(this.opts.float=this.engine.float=A,this._triggerChangeEvent()),this}getFloat(){return this.engine.float}getCellFromPixel(A,t=!1){const n=this.el.getBoundingClientRect();let o;t?o={top:n.top+document.documentElement.scrollTop,left:n.left}:o={top:this.el.offsetTop,left:this.el.offsetLeft};const a=A.left-o.left,c=A.top-o.top,d=n.width/this.getColumn(),h=n.height/parseInt(this.el.getAttribute("gs-current-row"));return{x:Math.floor(a/d),y:Math.floor(c/h)}}getRow(){return Math.max(this.engine.getRow(),this.opts.minRow||0)}isAreaEmpty(A,t,n,o){return this.engine.isAreaEmpty(A,t,n,o)}makeWidget(A,t){const n=LA.getElement(A);if(!n||n.gridstackNode)return n;n.parentElement||this.el.appendChild(n),this._prepareElement(n,!0,t);const o=n.gridstackNode;this._updateContainerHeight(),o.subGridOpts&&this.makeSubGrid(n,o.subGridOpts,void 0,!1);let a;return this.opts.column===1&&!this._ignoreLayoutsNodeChange&&(a=this._ignoreLayoutsNodeChange=!0),this._triggerAddEvent(),this._triggerChangeEvent(),a&&delete this._ignoreLayoutsNodeChange,n}on(A,t){return A.indexOf(" ")!==-1?(A.split(" ").forEach(n=>this.on(n,t)),this):(A==="change"||A==="added"||A==="removed"||A==="enable"||A==="disable"?(A==="enable"||A==="disable"?this._gsEventHandler[A]=n=>t(n):this._gsEventHandler[A]=n=>{n.detail&&t(n,n.detail)},this.el.addEventListener(A,this._gsEventHandler[A])):A==="drag"||A==="dragstart"||A==="dragstop"||A==="resizestart"||A==="resize"||A==="resizestop"||A==="dropped"||A==="resizecontent"?this._gsEventHandler[A]=t:console.error("GridStack.on("+A+") event not supported"),this)}off(A){return A.indexOf(" ")!==-1?(A.split(" ").forEach(t=>this.off(t)),this):((A==="change"||A==="added"||A==="removed"||A==="enable"||A==="disable")&&this._gsEventHandler[A]&&this.el.removeEventListener(A,this._gsEventHandler[A]),delete this._gsEventHandler[A],this)}offAll(){return Object.keys(this._gsEventHandler).forEach(A=>this.off(A)),this}removeWidget(A,t=!0,n=!0){return A?(LA.getElements(A).forEach(o=>{if(o.parentElement&&o.parentElement!==this.el)return;let a=o.gridstackNode;a||(a=this.engine.nodes.find(c=>o===c.el)),a&&(t&&LA.addRemoveCB&&LA.addRemoveCB(this.el,a,!1,!1),delete o.gridstackNode,this._removeDD(o),this.engine.removeNode(a,t,n),t&&o.parentElement&&o.remove())}),n&&(this._triggerRemoveEvent(),this._triggerChangeEvent()),this):(console.error("Error: GridStack.removeWidget(undefined) called"),this)}removeAll(A=!0,t=!0){return this.engine.nodes.forEach(n=>{A&&LA.addRemoveCB&&LA.addRemoveCB(this.el,n,!1,!1),delete n.el.gridstackNode,this.opts.staticGrid||this._removeDD(n.el)}),this.engine.removeAll(A,t),t&&this._triggerRemoveEvent(),this}setAnimation(A=this.opts.animate,t){return t?setTimeout(()=>{this.opts&&this.setAnimation(A)}):A?this.el.classList.add("grid-stack-animate"):this.el.classList.remove("grid-stack-animate"),this.opts.animate=A,this}hasAnimationCSS(){return this.el.classList.contains("grid-stack-animate")}setStatic(A,t=!0,n=!0){return!!this.opts.staticGrid===A?this:(A?this.opts.staticGrid=!0:delete this.opts.staticGrid,this._setupRemoveDrop(),this._setupAcceptWidget(),this.engine.nodes.forEach(o=>{this.prepareDragDrop(o.el),o.subGrid&&n&&o.subGrid.setStatic(A,t,n)}),t&&this._setStaticClass(),this)}updateOptions(A){const t=this.opts;return A===t?this:(A.acceptWidgets!==void 0&&(t.acceptWidgets=A.acceptWidgets,this._setupAcceptWidget()),A.animate!==void 0&&this.setAnimation(A.animate),A.cellHeight&&this.cellHeight(A.cellHeight),A.class!==void 0&&A.class!==t.class&&(t.class&&this.el.classList.remove(t.class),A.class&&this.el.classList.add(A.class)),A.columnOpts?(this.opts.columnOpts=A.columnOpts,this.checkDynamicColumn()):A.columnOpts===null&&this.opts.columnOpts?(delete this.opts.columnOpts,this._updateResizeEvent()):typeof A.column=="number"&&this.column(A.column),A.margin!==void 0&&this.margin(A.margin),A.staticGrid!==void 0&&this.setStatic(A.staticGrid),A.disableDrag!==void 0&&!A.staticGrid&&this.enableMove(!A.disableDrag),A.disableResize!==void 0&&!A.staticGrid&&this.enableResize(!A.disableResize),A.float!==void 0&&this.float(A.float),A.row!==void 0?(t.minRow=t.maxRow=t.row=A.row,this._updateContainerHeight()):(A.minRow!==void 0&&(t.minRow=A.minRow,this._updateContainerHeight()),A.maxRow!==void 0&&(t.maxRow=A.maxRow)),A.lazyLoad!==void 0&&(t.lazyLoad=A.lazyLoad),A.children?.length&&this.load(A.children),this)}update(A,t){return LA.getElements(A).forEach(n=>{const o=n?.gridstackNode;if(!o)return;const a={...q.copyPos({},o),...q.cloneDeep(t)};this.engine.nodeBoundFix(a),delete a.autoPosition;const c=["x","y","w","h"];let d;if(c.some(B=>a[B]!==void 0&&a[B]!==o[B])&&(d={},c.forEach(B=>{d[B]=a[B]!==void 0?a[B]:o[B],delete a[B]})),!d&&(a.minW||a.minH||a.maxW||a.maxH)&&(d={}),a.content!==void 0){const B=n.querySelector(".grid-stack-item-content");B&&B.textContent!==a.content&&(o.content=a.content,LA.renderCB(B,a),o.subGrid?.el&&(B.appendChild(o.subGrid.el),o.subGrid._updateContainerHeight())),delete a.content}let h=!1,g=!1;for(const B in a)B[0]!=="_"&&o[B]!==a[B]&&(o[B]=a[B],h=!0,g=g||!this.opts.staticGrid&&(B==="noResize"||B==="noMove"||B==="locked"));if(q.sanitizeMinMax(o),d){const B=d.w!==void 0&&d.w!==o.w;this.moveNode(o,d),B&&o.subGrid?o.subGrid.onResize(this.hasAnimationCSS()?o.w:void 0):this.resizeToContentCheck(B,o),delete o._orig}(d||h)&&this._writeAttr(n,o),g&&this.prepareDragDrop(o.el),LA.updateCB&&LA.updateCB(o)}),this}moveNode(A,t){const n=A._updating;n||this.engine.cleanNodes().beginUpdate(A),this.engine.moveNode(A,t),this._updateContainerHeight(),n||(this._triggerChangeEvent(),this.engine.endUpdate())}resizeToContent(A){if(!A||(A.classList.remove("size-to-content-max"),!A.clientHeight))return;const t=A.gridstackNode;if(!t)return;const n=t.grid;if(!n||A.parentElement!==n.el)return;const o=n.getCellHeight(!0);if(!o)return;let a=t.h?t.h*o:A.clientHeight,c;if(t.resizeToContentParent&&(c=A.querySelector(t.resizeToContentParent)),c||(c=A.querySelector(LA.resizeToContentParent)),!c)return;const d=A.clientHeight-c.clientHeight,h=t.h?t.h*o-d:c.clientHeight;let g;if(t.subGrid){g=t.subGrid.getRow()*t.subGrid.getCellHeight(!0);const m=t.subGrid.el.getBoundingClientRect(),y=A.getBoundingClientRect();g+=m.top-y.top}else{if(t.subGridOpts?.children?.length)return;{const m=c.firstElementChild;if(!m){console.error(`Error: GridStack.resizeToContent() widget id:${t.id} '${LA.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`);return}g=m.getBoundingClientRect().height||h}}if(h===g)return;a+=g-h;let B=Math.ceil(a/o);const w=Number.isInteger(t.sizeToContent)?t.sizeToContent:0;w&&B>w&&(B=w,A.classList.add("size-to-content-max")),t.minH&&B<t.minH?B=t.minH:t.maxH&&B>t.maxH&&(B=t.maxH),B!==t.h&&(n._ignoreLayoutsNodeChange=!0,n.moveNode(t,{h:B}),delete n._ignoreLayoutsNodeChange)}resizeToContentCBCheck(A){LA.resizeToContentCB?LA.resizeToContentCB(A):this.resizeToContent(A)}rotate(A,t){return LA.getElements(A).forEach(n=>{const o=n.gridstackNode;if(!q.canBeRotated(o))return;const a={w:o.h,h:o.w,minH:o.minW,minW:o.minH,maxH:o.maxW,maxW:o.maxH};if(t){const d=t.left>0?Math.floor(t.left/this.cellWidth()):0,h=t.top>0?Math.floor(t.top/this.opts.cellHeight):0;a.x=o.x+d-(o.h-(h+1)),a.y=o.y+h-d}Object.keys(a).forEach(d=>{a[d]===void 0&&delete a[d]});const c=o._orig;this.update(n,a),o._orig=c}),this}margin(A){if(!(typeof A=="string"&&A.split(" ").length>1)){const t=q.parseHeight(A);if(this.opts.marginUnit===t.unit&&this.opts.margin===t.h)return}return this.opts.margin=A,this.opts.marginTop=this.opts.marginBottom=this.opts.marginLeft=this.opts.marginRight=void 0,this._initMargin(),this}getMargin(){return this.opts.margin}willItFit(A){return this.engine.willItFit(A)}_triggerChangeEvent(){if(this.engine.batchMode)return this;const A=this.engine.getDirtyNodes(!0);return A&&A.length&&(this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(A),this._triggerEvent("change",A)),this.engine.saveInitial(),this}_triggerAddEvent(){if(this.engine.batchMode)return this;if(this.engine.addedNodes?.length){this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(this.engine.addedNodes),this.engine.addedNodes.forEach(t=>{delete t._dirty});const A=[...this.engine.addedNodes];this.engine.addedNodes=[],this._triggerEvent("added",A)}return this}_triggerRemoveEvent(){if(this.engine.batchMode)return this;if(this.engine.removedNodes?.length){const A=[...this.engine.removedNodes];this.engine.removedNodes=[],this._triggerEvent("removed",A)}return this}_triggerEvent(A,t){const n=t?new CustomEvent(A,{bubbles:!1,detail:t}):new Event(A);let o=this;for(;o.parentGridNode;)o=o.parentGridNode.grid;return o.el.dispatchEvent(n),this}_updateContainerHeight(){if(!this.engine||this.engine.batchMode)return this;const A=this.parentGridNode;let t=this.getRow()+this._extraDragRow;const n=this.opts.cellHeight,o=this.opts.cellHeightUnit;if(!n)return this;if(!A&&!this.opts.minRow){const a=q.parseHeight(getComputedStyle(this.el).minHeight);if(a.h>0&&a.unit===o){const c=Math.floor(a.h/n);t<c&&(t=c)}}return this.el.setAttribute("gs-current-row",String(t)),this.el.style.removeProperty("min-height"),this.el.style.removeProperty("height"),t&&(this.el.style[A?"minHeight":"height"]=t*n+o),A&&q.shouldSizeToContent(A)&&A.grid.resizeToContentCBCheck(A.el),this}_prepareElement(A,t=!1,n){n=n||this._readAttr(A),A.gridstackNode=n,n.el=A,n.grid=this,n=this.engine.addNode(n,t),this._writeAttr(A,n),A.classList.add(Ie.itemClass,this.opts.itemClass);const o=q.shouldSizeToContent(n);return o?A.classList.add("size-to-content"):A.classList.remove("size-to-content"),o&&this.resizeToContentCheck(!1,n),q.lazyLoad(n)||this.prepareDragDrop(n.el),this}_writePosAttr(A,t){return(!t._moving&&!t._resizing||this._placeholder===A)&&(A.style.top=t.y?t.y===1?"var(--gs-cell-height)":`calc(${t.y} * var(--gs-cell-height))`:null,A.style.left=t.x?t.x===1?"var(--gs-column-width)":`calc(${t.x} * var(--gs-column-width))`:null,A.style.width=t.w>1?`calc(${t.w} * var(--gs-column-width))`:null,A.style.height=t.h>1?`calc(${t.h} * var(--gs-cell-height))`:null),A.setAttribute("gs-x",String(t.x)),A.setAttribute("gs-y",String(t.y)),t.w>1?A.setAttribute("gs-w",String(t.w)):A.removeAttribute("gs-w"),t.h>1?A.setAttribute("gs-h",String(t.h)):A.removeAttribute("gs-h"),this}_writeAttr(A,t){if(!t)return this;this._writePosAttr(A,t);const n={noResize:"gs-no-resize",noMove:"gs-no-move",locked:"gs-locked",id:"gs-id",sizeToContent:"gs-size-to-content"};for(const o in n)t[o]?A.setAttribute(n[o],String(t[o])):A.removeAttribute(n[o]);return this}_readAttr(A,t=!0){const n={};n.x=q.toNumber(A.getAttribute("gs-x")),n.y=q.toNumber(A.getAttribute("gs-y")),n.w=q.toNumber(A.getAttribute("gs-w")),n.h=q.toNumber(A.getAttribute("gs-h")),n.autoPosition=q.toBool(A.getAttribute("gs-auto-position")),n.noResize=q.toBool(A.getAttribute("gs-no-resize")),n.noMove=q.toBool(A.getAttribute("gs-no-move")),n.locked=q.toBool(A.getAttribute("gs-locked"));const o=A.getAttribute("gs-size-to-content");o&&(o==="true"||o==="false"?n.sizeToContent=q.toBool(o):n.sizeToContent=parseInt(o,10)),n.id=A.getAttribute("gs-id"),n.maxW=q.toNumber(A.getAttribute("gs-max-w")),n.minW=q.toNumber(A.getAttribute("gs-min-w")),n.maxH=q.toNumber(A.getAttribute("gs-max-h")),n.minH=q.toNumber(A.getAttribute("gs-min-h")),t&&(n.w===1&&A.removeAttribute("gs-w"),n.h===1&&A.removeAttribute("gs-h"),n.maxW&&A.removeAttribute("gs-max-w"),n.minW&&A.removeAttribute("gs-min-w"),n.maxH&&A.removeAttribute("gs-max-h"),n.minH&&A.removeAttribute("gs-min-h"));for(const a in n){if(!n.hasOwnProperty(a))return;!n[a]&&n[a]!==0&&a!=="sizeToContent"&&delete n[a]}return n}_setStaticClass(){const A=["grid-stack-static"];return this.opts.staticGrid?(this.el.classList.add(...A),this.el.setAttribute("gs-static","true")):(this.el.classList.remove(...A),this.el.removeAttribute("gs-static")),this}onResize(A=this.el?.clientWidth){if(!A||this.prevWidth===A)return;this.prevWidth=A,this.batchUpdate();let t=!1;return this._autoColumn&&this.parentGridNode?this.opts.column!==this.parentGridNode.w&&(this.column(this.parentGridNode.w,this.opts.layout||"list"),t=!0):t=this.checkDynamicColumn(),this._isAutoCellHeight&&this.cellHeight(),this.engine.nodes.forEach(n=>{n.subGrid&&n.subGrid.onResize()}),this._skipInitialResize||this.resizeToContentCheck(t),delete this._skipInitialResize,this.batchUpdate(!1),this}resizeToContentCheck(A=!1,t=void 0){if(this.engine){if(A&&this.hasAnimationCSS())return setTimeout(()=>this.resizeToContentCheck(!1,t),this.animationDelay);if(t)q.shouldSizeToContent(t)&&this.resizeToContentCBCheck(t.el);else if(this.engine.nodes.some(n=>q.shouldSizeToContent(n))){const n=[...this.engine.nodes];this.batchUpdate(),n.forEach(o=>{q.shouldSizeToContent(o)&&this.resizeToContentCBCheck(o.el)}),this._ignoreLayoutsNodeChange=!0,this.batchUpdate(!1),this._ignoreLayoutsNodeChange=!1}this._gsEventHandler.resizecontent&&this._gsEventHandler.resizecontent(null,t?[t]:this.engine.nodes)}}_updateResizeEvent(A=!1){const t=!this.parentGridNode&&(this._isAutoCellHeight||this.opts.sizeToContent||this.opts.columnOpts||this.engine.nodes.find(n=>n.sizeToContent));return!A&&t&&!this.resizeObserver?(this._sizeThrottle=q.throttle(()=>this.onResize(),this.opts.cellHeightThrottle),this.resizeObserver=new ResizeObserver(()=>this._sizeThrottle()),this.resizeObserver.observe(this.el),this._skipInitialResize=!0):(A||!t)&&this.resizeObserver&&(this.resizeObserver.disconnect(),delete this.resizeObserver,delete this._sizeThrottle),this}static getElement(A=".grid-stack-item"){return q.getElement(A)}static getElements(A=".grid-stack-item"){return q.getElements(A)}static getGridElement(A){return LA.getElement(A)}static getGridElements(A){return q.getElements(A)}_initMargin(){let A,t=0,n=[];typeof this.opts.margin=="string"&&(n=this.opts.margin.split(" ")),n.length===2?(this.opts.marginTop=this.opts.marginBottom=n[0],this.opts.marginLeft=this.opts.marginRight=n[1]):n.length===4?(this.opts.marginTop=n[0],this.opts.marginRight=n[1],this.opts.marginBottom=n[2],this.opts.marginLeft=n[3]):(A=q.parseHeight(this.opts.margin),this.opts.marginUnit=A.unit,t=this.opts.margin=A.h),["marginTop","marginRight","marginBottom","marginLeft"].forEach(a=>{this.opts[a]===void 0?this.opts[a]=t:(A=q.parseHeight(this.opts[a]),this.opts[a]=A.h,delete this.opts.margin)}),this.opts.marginUnit=A.unit,this.opts.marginTop===this.opts.marginBottom&&this.opts.marginLeft===this.opts.marginRight&&this.opts.marginTop===this.opts.marginRight&&(this.opts.margin=this.opts.marginTop);const o=this.el.style;return o.setProperty("--gs-item-margin-top",`${this.opts.marginTop}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-bottom",`${this.opts.marginBottom}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-right",`${this.opts.marginRight}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-left",`${this.opts.marginLeft}${this.opts.marginUnit}`),this}static getDD(){return we}static setupDragIn(A,t,n,o=document){t?.pause!==void 0&&(TA.pauseDrag=t.pause),t={appendTo:"body",helper:"clone",...t||{}},(typeof A=="string"?q.getElements(A,o):A).forEach((a,c)=>{we.isDraggable(a)||we.dragIn(a,t),n?.[c]&&(a.gridstackNode=n[c])})}movable(A,t){return this.opts.staticGrid?this:(LA.getElements(A).forEach(n=>{const o=n.gridstackNode;o&&(t?delete o.noMove:o.noMove=!0,this.prepareDragDrop(o.el))}),this)}resizable(A,t){return this.opts.staticGrid?this:(LA.getElements(A).forEach(n=>{const o=n.gridstackNode;o&&(t?delete o.noResize:o.noResize=!0,this.prepareDragDrop(o.el))}),this)}disable(A=!0){if(!this.opts.staticGrid)return this.enableMove(!1,A),this.enableResize(!1,A),this._triggerEvent("disable"),this}enable(A=!0){if(!this.opts.staticGrid)return this.enableMove(!0,A),this.enableResize(!0,A),this._triggerEvent("enable"),this}enableMove(A,t=!0){return this.opts.staticGrid?this:(A?delete this.opts.disableDrag:this.opts.disableDrag=!0,this.engine.nodes.forEach(n=>{this.prepareDragDrop(n.el),n.subGrid&&t&&n.subGrid.enableMove(A,t)}),this)}enableResize(A,t=!0){return this.opts.staticGrid?this:(A?delete this.opts.disableResize:this.opts.disableResize=!0,this.engine.nodes.forEach(n=>{this.prepareDragDrop(n.el),n.subGrid&&t&&n.subGrid.enableResize(A,t)}),this)}cancelDrag(){const A=this._placeholder?.gridstackNode;A&&(A._isExternal?(A._isAboutToRemove=!0,this.engine.removeNode(A)):A._isAboutToRemove&&LA._itemRemoving(A.el,!1),this.engine.restoreInitial())}_removeDD(A){return we.draggable(A,"destroy").resizable(A,"destroy"),A.gridstackNode&&delete A.gridstackNode._initDD,delete A.ddElement,this}_setupAcceptWidget(){if(this.opts.staticGrid||!this.opts.acceptWidgets&&!this.opts.removable)return we.droppable(this.el,"destroy"),this;let A,t;const n=(o,a,c)=>{c=c||a;const d=c.gridstackNode;if(!d)return;if(!d.grid?.el){c.style.transform=`scale(${1/this.dragTransform.xScale},${1/this.dragTransform.yScale})`;const m=c.getBoundingClientRect();c.style.left=m.x+(this.dragTransform.xScale-1)*(o.clientX-m.x)/this.dragTransform.xScale+"px",c.style.top=m.y+(this.dragTransform.yScale-1)*(o.clientY-m.y)/this.dragTransform.yScale+"px",c.style.transformOrigin="0px 0px"}let{top:h,left:g}=c.getBoundingClientRect();const B=this.el.getBoundingClientRect();g-=B.left,h-=B.top;const w={position:{top:h*this.dragTransform.xScale,left:g*this.dragTransform.yScale}};if(d._temporaryRemoved){if(d.x=Math.max(0,Math.round(g/t)),d.y=Math.max(0,Math.round(h/A)),delete d.autoPosition,this.engine.nodeBoundFix(d),!this.engine.willItFit(d)){if(d.autoPosition=!0,!this.engine.willItFit(d)){we.off(a,"drag");return}d._willFitPos&&(q.copyPos(d,d._willFitPos),delete d._willFitPos)}this._onStartMoving(c,o,w,d,t,A)}else this._dragOrResize(c,o,w,d,t,A)};return we.droppable(this.el,{accept:o=>{const a=o.gridstackNode||this._readAttr(o,!1);if(a?.grid===this)return!0;if(!this.opts.acceptWidgets)return!1;let c=!0;if(typeof this.opts.acceptWidgets=="function")c=this.opts.acceptWidgets(o);else{const d=this.opts.acceptWidgets===!0?".grid-stack-item":this.opts.acceptWidgets;c=o.matches(d)}if(c&&a&&this.opts.maxRow){const d={w:a.w,h:a.h,minW:a.minW,minH:a.minH};c=this.engine.willItFit(d)}return c}}).on(this.el,"dropover",(o,a,c)=>{let d=c?.gridstackNode||a.gridstackNode;if(d?.grid===this&&!d._temporaryRemoved)return!1;if(d?._sidebarOrig&&(d.w=d._sidebarOrig.w,d.h=d._sidebarOrig.h),d?.grid&&d.grid!==this&&!d._temporaryRemoved&&d.grid._leave(a,c),c=c||a,t=this.cellWidth(),A=this.getCellHeight(!0),!d){const B=c.getAttribute("data-gs-widget")||c.getAttribute("gridstacknode");if(B){try{d=JSON.parse(B)}catch{console.error("Gridstack dropover: Bad JSON format: ",B)}c.removeAttribute("data-gs-widget"),c.removeAttribute("gridstacknode")}d||(d=this._readAttr(c)),d._sidebarOrig={w:d.w,h:d.h}}d.grid||(d.el||(d={...d}),d._isExternal=!0,c.gridstackNode=d);const h=d.w||Math.round(c.offsetWidth/t)||1,g=d.h||Math.round(c.offsetHeight/A)||1;return d.grid&&d.grid!==this?(a._gridstackNodeOrig||(a._gridstackNodeOrig=d),a.gridstackNode=d={...d,w:h,h:g,grid:this},delete d.x,delete d.y,this.engine.cleanupNode(d).nodeBoundFix(d),d._initDD=d._isExternal=d._temporaryRemoved=!0):(d.w=h,d.h=g,d._temporaryRemoved=!0),LA._itemRemoving(d.el,!1),we.on(a,"drag",n),n(o,a,c),!1}).on(this.el,"dropout",(o,a,c)=>{const d=c?.gridstackNode||a.gridstackNode;return d&&(!d.grid||d.grid===this)&&(this._leave(a,c),this._isTemp&&this.removeAsSubGrid(d)),!1}).on(this.el,"drop",(o,a,c)=>{const d=c?.gridstackNode||a.gridstackNode;if(d?.grid===this&&!d._isExternal)return!1;const h=!!this.placeholder.parentElement,g=a!==c;this.placeholder.remove(),delete this.placeholder.gridstackNode,h&&this.opts.animate&&(this.setAnimation(!1),this.setAnimation(!0,!0));const B=a._gridstackNodeOrig;if(delete a._gridstackNodeOrig,h&&B?.grid&&B.grid!==this){const m=B.grid;m.engine.removeNodeFromLayoutCache(B),m.engine.removedNodes.push(B),m._triggerRemoveEvent()._triggerChangeEvent(),m.parentGridNode&&!m.engine.nodes.length&&m.opts.subGridDynamic&&m.removeAsSubGrid()}if(!d||(h&&(this.engine.cleanupNode(d),d.grid=this),delete d.grid?._isTemp,we.off(a,"drag"),c!==a?(c.remove(),a=c):a.remove(),this._removeDD(a),!h))return!1;const w=d.subGrid?.el?.gridstack;return q.copyPos(d,this._readAttr(this.placeholder)),q.removePositioningStyles(a),g&&(d.content||d.subGridOpts||LA.addRemoveCB)?(delete d.el,a=this.addWidget(d)):(this._prepareElement(a,!0,d),this.el.appendChild(a),this.resizeToContentCheck(!1,d),w&&(w.parentGridNode=d),this._updateContainerHeight()),this.engine.addedNodes.push(d),this._triggerAddEvent(),this._triggerChangeEvent(),this.engine.endUpdate(),this._gsEventHandler.dropped&&this._gsEventHandler.dropped({...o,type:"dropped"},B&&B.grid?B:void 0,d),!1}),this}static _itemRemoving(A,t){if(!A)return;const n=A?A.gridstackNode:void 0;!n?.grid||A.classList.contains(n.grid.opts.removableOptions.decline)||(t?n._isAboutToRemove=!0:delete n._isAboutToRemove,t?A.classList.add("grid-stack-item-removing"):A.classList.remove("grid-stack-item-removing"))}_setupRemoveDrop(){if(typeof this.opts.removable!="string")return this;const A=document.querySelector(this.opts.removable);return A?(!this.opts.staticGrid&&!we.isDroppable(A)&&we.droppable(A,this.opts.removableOptions).on(A,"dropover",(t,n)=>LA._itemRemoving(n,!0)).on(A,"dropout",(t,n)=>LA._itemRemoving(n,!1)),this):this}prepareDragDrop(A,t=!1){const n=A?.gridstackNode;if(!n)return;const o=n.noMove||this.opts.disableDrag,a=n.noResize||this.opts.disableResize,c=this.opts.staticGrid||o&&a;if((t||c)&&(n._initDD&&(this._removeDD(A),delete n._initDD),c&&A.classList.add("ui-draggable-disabled","ui-resizable-disabled"),!t))return this;if(!n._initDD){let d,h;const g=(m,y)=>{this.triggerEvent(m,m.target),d=this.cellWidth(),h=this.getCellHeight(!0),this._onStartMoving(A,m,y,n,d,h)},B=(m,y)=>{this._dragOrResize(A,m,y,n,d,h)},w=m=>{this.placeholder.remove(),delete this.placeholder.gridstackNode,delete n._moving,delete n._resizing,delete n._event,delete n._lastTried;const y=n.w!==n._orig.w,v=m.target;if(!(!v.gridstackNode||v.gridstackNode.grid!==this)){if(n.el=v,n._isAboutToRemove){const I=A.gridstackNode.grid;I._gsEventHandler[m.type]&&I._gsEventHandler[m.type](m,v),I.engine.nodes.push(n),I.removeWidget(A,!0,!0)}else q.removePositioningStyles(v),n._temporaryRemoved?(this._writePosAttr(v,n),this.engine.addNode(n)):this._writePosAttr(v,n),this.triggerEvent(m,v);this._extraDragRow=0,this._updateContainerHeight(),this._triggerChangeEvent(),this.engine.endUpdate(),m.type==="resizestop"&&(Number.isInteger(n.sizeToContent)&&(n.sizeToContent=n.h),this.resizeToContentCheck(y,n))}};we.draggable(A,{start:g,stop:w,drag:B}).resizable(A,{start:g,stop:w,resize:B}),n._initDD=!0}return we.draggable(A,o?"disable":"enable").resizable(A,a?"disable":"enable"),this}_onStartMoving(A,t,n,o,a,c){if(this.engine.cleanNodes().beginUpdate(o),this._writePosAttr(this.placeholder,o),this.el.appendChild(this.placeholder),this.placeholder.gridstackNode=o,o.grid?.el)this.dragTransform=q.getValuesFromTransformedElement(A);else if(this.placeholder&&this.placeholder.closest(".grid-stack")){const d=this.placeholder.closest(".grid-stack");this.dragTransform=q.getValuesFromTransformedElement(d)}else this.dragTransform={xScale:1,xOffset:0,yScale:1,yOffset:0};if(o.el=this.placeholder,o._lastUiPosition=n.position,o._prevYPix=n.position.top,o._moving=t.type==="dragstart",o._resizing=t.type==="resizestart",delete o._lastTried,t.type==="dropover"&&o._temporaryRemoved&&(this.engine.addNode(o),o._moving=!0),this.engine.cacheRects(a,c,this.opts.marginTop,this.opts.marginRight,this.opts.marginBottom,this.opts.marginLeft),t.type==="resizestart"){const d=this.getColumn()-o.x,h=(this.opts.maxRow||Number.MAX_SAFE_INTEGER)-o.y;we.resizable(A,"option","minWidth",a*Math.min(o.minW||1,d)).resizable(A,"option","minHeight",c*Math.min(o.minH||1,h)).resizable(A,"option","maxWidth",a*Math.min(o.maxW||Number.MAX_SAFE_INTEGER,d)).resizable(A,"option","maxWidthMoveLeft",a*Math.min(o.maxW||Number.MAX_SAFE_INTEGER,o.x+o.w)).resizable(A,"option","maxHeight",c*Math.min(o.maxH||Number.MAX_SAFE_INTEGER,h)).resizable(A,"option","maxHeightMoveUp",c*Math.min(o.maxH||Number.MAX_SAFE_INTEGER,o.y+o.h))}}_dragOrResize(A,t,n,o,a,c){const d={...o._orig};let h,g=this.opts.marginLeft,B=this.opts.marginRight,w=this.opts.marginTop,m=this.opts.marginBottom;const y=Math.round(c*.1),v=Math.round(a*.1);if(g=Math.min(g,v),B=Math.min(B,v),w=Math.min(w,y),m=Math.min(m,y),t.type==="drag"){if(o._temporaryRemoved)return;const L=n.position.top-o._prevYPix;o._prevYPix=n.position.top,this.opts.draggable.scroll!==!1&&q.updateScrollPosition(A,n.position,L);const k=n.position.left+(n.position.left>o._lastUiPosition.left?-B:g),V=n.position.top+(n.position.top>o._lastUiPosition.top?-m:w);d.x=Math.round(k/a),d.y=Math.round(V/c);const F=this._extraDragRow;if(this.engine.collide(o,d)){const M=this.getRow();let tA=Math.max(0,d.y+o.h-M);this.opts.maxRow&&M+tA>this.opts.maxRow&&(tA=Math.max(0,this.opts.maxRow-M)),this._extraDragRow=tA}else this._extraDragRow=0;if(this._extraDragRow!==F&&this._updateContainerHeight(),o.x===d.x&&o.y===d.y)return}else if(t.type==="resize"){if(d.x<0||(q.updateScrollResize(t,A,c),d.w=Math.round((n.size.width-g)/a),d.h=Math.round((n.size.height-w)/c),o.w===d.w&&o.h===d.h)||o._lastTried&&o._lastTried.w===d.w&&o._lastTried.h===d.h)return;const L=n.position.left+g,k=n.position.top+w;d.x=Math.round(L/a),d.y=Math.round(k/c),h=!0}o._event=t,o._lastTried=d;const I={x:n.position.left+g,y:n.position.top+w,w:(n.size?n.size.width:o.w*a)-g-B,h:(n.size?n.size.height:o.h*c)-w-m};if(this.engine.moveNodeCheck(o,{...d,cellWidth:a,cellHeight:c,rect:I,resizing:h})){o._lastUiPosition=n.position,this.engine.cacheRects(a,c,w,B,m,g),delete o._skipDown,h&&o.subGrid&&o.subGrid.onResize(),this._extraDragRow=0,this._updateContainerHeight();const L=t.target;o._sidebarOrig||this._writePosAttr(L,o),this.triggerEvent(t,L)}}triggerEvent(A,t){let n=this;for(;n.parentGridNode;)n=n.parentGridNode.grid;n._gsEventHandler[A.type]&&n._gsEventHandler[A.type](A,t)}_leave(A,t){t=t||A;const n=t.gridstackNode;if(!n||(t.style.transform=t.style.transformOrigin=null,we.off(A,"drag"),n._temporaryRemoved))return;n._temporaryRemoved=!0,this.engine.removeNode(n),n.el=n._isExternal&&t?t:A;const o=n._sidebarOrig;n._isExternal&&this.engine.cleanupNode(n),n._sidebarOrig=o,this.opts.removable===!0&&LA._itemRemoving(A,!0),A._gridstackNodeOrig?(A.gridstackNode=A._gridstackNodeOrig,delete A._gridstackNodeOrig):n._isExternal&&this.engine.restoreInitial()}};en.renderCB=(e,A)=>{e&&A?.content&&(e.textContent=A.content)},en.resizeToContentParent=".grid-stack-item-content",en.Utils=q,en.Engine=wi,en.GDRev="12.4.2";var km={class:"d-layout"},Mm=["gs-id","gs-x","gs-y","gs-w","gs-h","gs-locked","gs-no-resize","gs-no-move","gs-min-w","gs-min-h","gs-max-w","gs-max-h"],Om=(0,r.defineComponent)({name:"DLayout",__name:"layout",props:{modelValue:{default:()=>[]},column:{default:24},cellHeight:{default:60},draggable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},disable:{type:Boolean,default:!1},animate:{type:Boolean,default:!0},float:{type:Boolean,default:!0},removable:{type:Boolean,default:!1},removableOptions:{}},emits:["update:modelValue","added","removed","changed","dragStart","dragStop","resizeStart","resizeStop"],setup(e,{expose:A,emit:t}){const n=e,o=t,a=(0,r.ref)();let c=null;const d=async()=>{a.value&&(await(0,r.nextTick)(),c&&c.destroy(!1),c=en.init({column:n.column,cellHeight:n.cellHeight,disableDrag:!(n.draggable&&!n.disable),disableResize:!(n.resizable&&!n.disable),animate:n.animate,float:n.float,removable:n.removable,removableOptions:n.removableOptions},a.value),c.on("added",(m,y)=>{const v=y[0];v&&(o("added",h(v)),B())}),c.on("removed",(m,y)=>{const v=y[0];v&&(o("removed",h(v)),B())}),c.on("change",()=>{B(),o("changed",(c?.save()||[]).map(m=>h(m)))}),c.on("dragstart",(m,y)=>{y&&o("dragStart",m,h(y.gridstackNode||y))}),c.on("dragstop",(m,y)=>{y&&o("dragStop",m,h(y.gridstackNode||y))}),c.on("resizestart",(m,y)=>{y&&o("resizeStart",m,h(y.gridstackNode||y))}),c.on("resizestop",(m,y)=>{y&&o("resizeStop",m,h(y.gridstackNode||y))}))},h=m=>({id:m.id||m.el?.getAttribute("gs-id")||"",x:m.x||0,y:m.y||0,w:m.w||1,h:m.h||1,locked:m.locked||!1,noResize:m.noResize||!1,noMove:m.noMove||!1,minW:m.minW,minH:m.minH,maxW:m.maxW,maxH:m.maxH}),g=async()=>{if(!c||!a.value)return;await(0,r.nextTick)();const m=c.engine.nodes;new Set(m.map(v=>v.id));const y=new Set(n.modelValue.map(v=>v.id));m.forEach(v=>{if(!y.has(v.id||"")){const I=v.el;I&&c&&c.removeWidget(I,!1)}}),n.modelValue.forEach(v=>{const I=m.find(L=>L.id===v.id);if(I)I.el&&c&&c.update(I.el,{x:v.x,y:v.y,w:v.w,h:v.h,locked:v.locked,noResize:v.noResize,noMove:v.noMove,minW:v.minW,minH:v.minH,maxW:v.maxW,maxH:v.maxH});else{if(!a.value||!c)return;const L=a.value.querySelector(`[gs-id="${v.id}"]`);L&&c.makeWidget(L)}})},B=()=>{c&&o("update:modelValue",c.save().map(m=>{const y={id:m.id||"",x:m.x||0,y:m.y||0,w:m.w||1,h:m.h||1},v=n.modelValue.find(I=>I.id===y.id);return v&&Object.keys(v).forEach(I=>{["id","x","y","w","h"].includes(I)||(y[I]=v[I])}),y}))},w=(0,r.computed)(()=>n.modelValue);return(0,r.watch)(()=>n.modelValue,async()=>{c&&(await(0,r.nextTick)(),g())},{deep:!0}),(0,r.watch)(()=>[n.column,n.cellHeight,n.draggable,n.resizable,n.disable,n.animate,n.float,n.removable],()=>{d()}),(0,r.onMounted)(()=>{d()}),(0,r.onBeforeUnmount)(()=>{c&&(c.destroy(!1),c=null)}),A({addItem:async m=>{if(c&&a.value){await(0,r.nextTick)();const y=a.value.querySelector(`[gs-id="${m.id}"]`);y&&(c.makeWidget(y),c.update(y,{x:m.x,y:m.y,w:m.w,h:m.h,locked:m.locked,noResize:m.noResize,noMove:m.noMove,minW:m.minW,minH:m.minH,maxW:m.maxW,maxH:m.maxH}))}},removeItem:m=>{if(c&&a.value){const y=a.value.querySelector(`[gs-id="${m}"]`);y&&c.removeWidget(y,!1)}},clear:()=>{c&&c.removeAll(!1)},getGrid:()=>c}),(m,y)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",km,[(0,r.createElementVNode)("div",{ref_key:"gridContainerRef",ref:a},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(w.value,v=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:v.id,"gs-id":v.id,"gs-x":v.x,"gs-y":v.y,"gs-w":v.w,"gs-h":v.h,"gs-locked":v.locked,"gs-no-resize":v.noResize,"gs-no-move":v.noMove,"gs-min-w":v.minW,"gs-min-h":v.minH,"gs-max-w":v.maxW,"gs-max-h":v.maxH,class:"d-layout-item"},[(0,r.renderSlot)(m.$slots,"item",{item:v})],8,Mm))),128))],512)]))}}),Km=Om,dl=ft(Km),WA=(e,A="",t=!1)=>t?`${e}pt`:A?`${e}${A}`:`${e}px`,ye=(e,A=0)=>e==null||isNaN(e)?0:Number(Number(e).toFixed(A)),Rm=e=>e*3/4,Vm=e=>e*4/3,Pm=["onMousedown"],Gm={key:2,class:"d-draggable__mask"},zm=(0,r.defineComponent)({name:"DDraggable",__name:"draggable",props:{index:{},mask:{type:Boolean,default:!0},scale:{default:1},readonly:{type:Boolean,default:!1},resize:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},step:{default:1},zIndex:{default:1},isActiveBgTransparent:{type:Boolean,default:!1},left:{default:0},top:{default:0},width:{},height:{},activeFlag:{type:Boolean,default:!1},isPt:{type:Boolean,default:!1}},emits:["focus","blur","over","out"],setup(e,{expose:A,emit:t}){const n=e,o=t,a=(0,r.ref)(),c=(0,r.ref)(),d=(0,r.ref)(0),h=(0,r.ref)(0),g=(0,r.ref)(0),B=(0,r.ref)(0),w=(0,r.ref)(null),m=(0,r.ref)(!1),y=(0,r.ref)(!1),v=(0,r.ref)(!1),I=(0,r.ref)(!1),L=(0,r.ref)([{classname:"left"},{classname:"right"},{classname:"top"},{classname:"bottom"},{classname:"top-left"},{classname:"top-right"},{classname:"bottom-left"},{classname:"bottom-right"}]),k=(0,r.computed)(()=>n.scale),V=(0,r.computed)(()=>({left:WA(k.value,"",n.isPt)})),F=(0,r.computed)(()=>({left:WA(-k.value,"",n.isPt)})),M=(0,r.computed)(()=>({left:"auto",right:WA(-k.value,"",n.isPt)})),tA=(0,r.computed)(()=>({top:WA(-k.value,"",n.isPt)})),W=(0,r.computed)(()=>({top:"auto",bottom:WA(-k.value,"",n.isPt)})),aA=(0,r.computed)(()=>{const eA=8*k.value;return{width:WA(eA,"",n.isPt),height:WA(eA,"",n.isPt)}}),dA=(0,r.computed)(()=>({fontSize:WA(16*k.value,"",n.isPt)})),rA=(0,r.computed)(()=>Object.assign((()=>{if(I.value){const eA={zIndex:9999,...V.value};return n.isActiveBgTransparent&&(I.value||y.value)&&!n.readonly&&!n.disabled&&(eA.backgroundColor="color-mix(in srgb, var(--j-color-primary-bg) 60%, transparent)"),eA}return{zIndex:n.zIndex}})(),{top:WA(B.value,"",n.isPt),width:WA(d.value,"",n.isPt),height:WA(h.value,"",n.isPt),padding:WA(8*k.value,"",n.isPt),...V.value,left:WA(g.value,"",n.isPt)}));(0,r.watch)(()=>n.width,eA=>{d.value=ye(AA(eA))||(w.value?.offsetWidth??0)}),(0,r.watch)(()=>n.height,eA=>{h.value=ye(AA(eA))||(w.value?.offsetHeight??0)},{deep:!0}),(0,r.watch)(()=>n.left,eA=>{g.value=ye(AA(eA))}),(0,r.watch)(()=>n.top,eA=>{B.value=ye(AA(eA))}),(0,r.watch)(d,eA=>{a.value&&(a.value.style.width=WA(eA,"",n.isPt),n.resize&&w.value?.style&&(w.value.style.width=WA(eA,"",n.isPt)))}),(0,r.watch)(h,eA=>{a.value&&(a.value.style.height=WA(eA,"",n.isPt),n.resize&&w.value?.style&&(w.value.style.height=WA(eA,"",n.isPt)))}),(0,r.watch)(()=>n.activeFlag,eA=>{oA(eA)});const oA=eA=>{I.value=eA},AA=eA=>eA===void 0?0:n.isPt?Vm(eA):eA,O=()=>{c.value&&c.value.firstChild&&(w.value=c.value.firstChild,d.value=ye(AA(n.width))||(w.value?.offsetWidth??0),h.value=ye(AA(n.height))||(w.value?.offsetHeight??0),g.value=ye(AA(n.left)),B.value=ye(AA(n.top)),oA(n.activeFlag))},lA=eA=>{g.value=eA},_=eA=>{B.value=eA},Z=eA=>{const uA=8*k.value/2,Y={};return eA.split("-").forEach(cA=>{Y[cA]=WA(-uA,"",n.isPt)}),Y},U=eA=>{y.value=eA},x=eA=>n.isPt?Rm(eA):eA,G=()=>{m.value=!0,o("focus",{index:n.index,width:x(d.value),height:x(h.value),left:x(g.value),top:x(B.value)})},R=()=>{m.value=!1,v.value=!1,o("blur",{index:n.index,width:x(d.value),height:x(h.value),left:x(g.value),top:x(B.value)})},$=()=>{document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,R()}},J=(eA,uA)=>{if(n.disabled||n.readonly)return;let Y,cA,mA,yA,IA,fA;v.value=!0,G();let vA=eA.clientX,S=eA.clientY;document.onmousemove=H=>{m.value=!0,uA==="right"?(Y=!0,cA=!1):uA==="left"?(Y=!0,mA=!0,IA=!0,cA=!1):uA==="top"?(Y=!1,cA=!0,yA=!0,fA=!0):uA==="bottom"?(Y=!1,cA=!0):uA==="bottom-right"?(Y=!0,cA=!0):uA==="bottom-left"?(Y=!0,cA=!0,mA=!0,IA=!0):uA==="top-right"?(Y=!0,cA=!0,yA=!0,fA=!0):uA==="top-left"&&(Y=!0,cA=!0,mA=!0,IA=!0,yA=!0,fA=!0);const T=H.clientX-vA,D=H.clientY-S;if(vA=H.clientX,S=H.clientY,Y){let b=T*n.step;IA&&(b=-b),mA&&(g.value=ye(g.value-b)),d.value=ye(d.value+b)}if(cA){let b=D*n.step;fA&&(b=-b),yA&&(B.value=ye(B.value-b)),h.value=ye(h.value+b)}},$()},nA=()=>{y.value=!1,o("out",{index:n.index,width:x(d.value),height:x(h.value),left:x(g.value),top:x(B.value)})},hA=()=>{n.disabled||n.readonly||(y.value=!0,o("over",{index:n.index,width:x(d.value),height:x(h.value),left:x(g.value),top:x(B.value)}))},UA=eA=>{if(n.disabled||n.readonly)return;I.value=!0,G();let uA=eA.clientX,Y=eA.clientY;document.onmousemove=cA=>{const mA=cA.clientX-uA,yA=cA.clientY-Y;uA=cA.clientX,Y=cA.clientY,g.value=ye(g.value+mA*n.step),B.value=ye(B.value+yA*n.step)},$()};return(0,r.onMounted)(()=>{O()}),A({setActive:oA,setLeft:lA,setTop:_,setOverActive:U}),(eA,uA)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["d-draggable",{"d-draggable--active":(I.value||y.value)&&!e.readonly&&!e.disabled},{"d-draggable--pt":e.isPt&&!e.readonly&&!e.disabled},{"d-draggable--move":m.value},{"d-draggable--click":e.disabled}]),onMousedown:(0,r.withModifiers)(UA,["stop"]),onMouseover:(0,r.withModifiers)(hA,["stop"]),onMouseout:(0,r.withModifiers)(nA,["stop"]),style:(0,r.normalizeStyle)(rA.value)},[(0,r.createElementVNode)("div",{class:"d-draggable__wrapper",ref_key:"wrapper",ref:a},[(I.value||y.value||m.value)&&!e.readonly&&!e.disabled?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...V.value,...tA.value}),class:"d-draggable__line d-draggable__line--left"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...V.value,...F.value}),class:"d-draggable__line d-draggable__line--top"},null,4),e.isPt?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...V.value,...tA.value,transform:"none"}),class:"d-draggable__line d-draggable__line--left"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...V.value,...F.value,transform:"none"}),class:"d-draggable__line d-draggable__line--top"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...V.value,...W.value}),class:"d-draggable__line d-draggable__line--left"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...V.value,...M.value}),class:"d-draggable__line d-draggable__line--top"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...V.value,...W.value,transform:"none"}),class:"d-draggable__line d-draggable__line--left"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...V.value,...M.value,transform:"none"}),class:"d-draggable__line d-draggable__line--top"},null,4)],64)):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"d-draggable__line d-draggable__line--label",style:(0,r.normalizeStyle)(dA.value)},(0,r.toDisplayString)(g.value)+","+(0,r.toDisplayString)(B.value),5))],64)):(0,r.createCommentVNode)("",!0),!e.readonly&&!e.disabled?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:1},(0,r.renderList)(L.value,(Y,cA)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:cA},[I.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["d-draggable__range",`d-draggable__range--${Y.classname}`]),style:(0,r.normalizeStyle)([aA.value,Z(Y.classname)]),onMousedown:(0,r.withModifiers)(mA=>J(mA,Y.classname),["stop"])},null,46,Pm)):(0,r.createCommentVNode)("",!0)],64))),128)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",{class:"d-draggable__item",ref_key:"item",ref:c},[(0,r.renderSlot)(eA.$slots,"default")],512),!e.disabled&&e.mask?((0,r.openBlock)(),(0,r.createElementBlock)("div",Gm)):(0,r.createCommentVNode)("",!0)],512)],38))}}),$m=zm,fl=ft($m),gl=e=>{const A=Xm(e.components);return{formConfig:e.form,componentList:A}},hl=(e,A)=>{let t={},n=[];const o={},a=e;t=a.form;const c={};return a.components.forEach(d=>{const h=A[d.type];c[d.containerId]=c[d.containerId]||[];const g={id:d.id,name:d.name,type:d.type,dragType:h?.dragType||"component",componentName:h?.componentName||"",runtimeType:h?.runtimeType,groupId:d.groupId,config:d.config,isInput:h?.isInput!==!1,containerId:d.containerId,level:d.level};h?.dragType==="container"&&(g.children=[]),o[g.id]=g,c[d.containerId].push(g)}),Object.keys(c).forEach(d=>{o[d]&&(o[d].children=c[d])}),n=c.form||[],{formConfig:t,componentList:n,componentDic:o}},Vr=(e,A)=>{const t={ver:"j1",form:{...e},components:[],db:{}};return Bl(A||[],t.components),t},Bl=(e,A)=>{e.forEach(t=>{if(t.type==="pkey")return;const n={id:t.id,name:t.name,type:t.type,runtimeType:t.runtimeType||t.componentName||t.type,groupId:t.groupId||"",config:t.config,containerId:t.containerId,level:t.level};t.dragType==="container"&&Bl(t.children||[],A),A.push(n)})},Xm=e=>{const A={},t={};return e.forEach(n=>{A[n.containerId]=A[n.containerId]||[];const o={id:n.id,type:n.runtimeType,slot:n.groupId,config:{rule:[]}};n.config&&Object.keys(n.config).forEach(a=>{if(a==="required"){n.config.required&&o.config?.rule?.push({required:!0,message:n.config.requiredMsg||"请输入"});return}if(a==="patterns"){n.config.patterns.forEach(c=>{c.reg&&c.msg&&o.config?.rule?.push({pattern:new RegExp(c.reg),message:`请输入${c.msg||""}`})});return}o.config[a]=n.config[a]}),n.type==="pkey"&&(o.config.isPkey=!0),A[n.containerId].push(o),t[n.id]=o}),Object.keys(A).forEach(n=>{const o=t[n];if(o){const a=A[n];if(["j-tabs","j-collapse"].includes(o.type||"")&&o.config?.groups){const c={};a.forEach(d=>{if(d.slot!==void 0&&d.slot!==null){const h=d.slot.toString();c[h]||(c[h]=[]),delete d.slot,c[h].push(d)}}),o.children=o.config.groups.map(d=>{const h=c[d._i]||[],g={label:d.label};d.active&&o.type==="j-collapse"&&(g.active=d.active);let B;if(o.type==="j-tabs"&&o.config?.tabKey&&o.config?.options.length>0){const m=o.config.options.find(y=>y.label===d._i);m&&(B=({formData:y})=>({display:m.value.includes(y[o.config?.tabKey||""])?m.display:!m.display}))}const w={config:g,children:h};return B&&(w.getCompConfig=B),w}),delete o.config.groups}else o.children=a}}),A.form},pl=(e,A,t,n,o,a,c,d)=>{const h=(0,r.ref)(),g=(0,r.reactive)({}),B=(0,r.computed)(()=>{const U=[];return Object.keys(g).forEach(x=>{const G=g[x];G.dragType==="component"&&G.type!=="pkey"&&U.push(G)}),U}),w=(U=[],x)=>{const G=A?.value?.init;typeof G=="function"&&G(U,x)},m=U=>o?o(U,{componentDic:g,components:B.value,configData:h.value.config}):{},y=(U,x)=>{if(h.value?.id===U)return;const G=g[U]||x;if(G?h.value=G:U===t.id?h.value=t:h.value=null,h.value){const R=a[h.value.type];R?(w(R,h.value.config),m(h.value.type)):w([])}else w([]);x&&ie("dragClick",{id:x.id})},v=()=>e.value.$el.getBoundingClientRect(),I=U=>U===t.id?t:g[U]||{},L=U=>{const x=[];if(U===t.id)x.push({id:U,name:t.name});else{const G=g[U];if(G){x.push({id:U,name:G.name});const R=L(G.containerId);x.push(...R)}}return x},k=(U,x)=>{const G=g[x];if(G===void 0)return!1;const R=G.containerId;return U===R?!0:R===t.id?!1:k(U,R)},V=U=>n?n(U)||{}:{},F=(U,x,G,R)=>{if(d){const $=I(U);return d(G.componentType,{container:$,groupId:x,configData:G},R)}return!1},M=({name:U,type:x,dragType:G,isInput:R,componentName:$,runtimeType:J},nA,hA,UA,eA=!1)=>{const uA=V(x);if(uA.id=gt(),uA.span=24,uA.componentType=x,tA(nA,uA.componentType))return;F(nA,UA,uA,!0);const Y={id:uA.id,name:U,type:x,runtimeType:J,componentName:$||"",dragType:G||"component",containerId:nA,isInput:!!R,level:g[nA]?g[nA].level+1:1,config:uA,isNewAdd:!eA,groupId:UA};return Y.dragType==="container"&&(Y.children=[]),g[Y.id]=Y,I(nA).children?.splice(hA,0,Y),Y},tA=(U,x)=>!!(I(U).config.componentType==="gridtable"&&["divider","label","text","textEditor","viewTable","card","collapse","tabs","qrcode","barcode","tableLayout"].includes(x)),W=(U,x,G=!1)=>{let R=null;const $=I(U).children,J=$?.findIndex(nA=>nA.id===x)||0;if(G&&$&&$.length>1){let nA=J+1;J>0&&(nA=J-1),R=$[nA]}return $?.splice(J,1),R?.id},aA=(U,x,G,R)=>{const $=I(x).children,J=U.containerId!==x;U.containerId=x,U.groupId=R,$?.splice(G,0,U),F(x,R,U.config,J)&&(lA(),y(U.id))},dA=U=>{let x="";const G=I(U);return G&&(G.children&&G.children.length>0&&G.children.forEach(R=>{dA(R.id)}),x=W(G.containerId,U,!0)||"",delete g[U]),h.value&&h.value.id===U&&(h.value=null,A.value.init([])),x},rA=(U,x=[])=>{const G=I(U);if(G&&G.children&&G.children.length>0){const R=[];G.children.forEach($=>{$.groupId&&x.includes($.groupId)&&R.push($.id)}),R.forEach($=>{dA($),delete g[$]})}},oA=(U,x)=>{const G=I(U);G&&(G.children&&G.children.length>0&&G.children.forEach(R=>{R.groupId===x&&dA(R.id)}),delete g[U])},AA=U=>{const x=pn(I(U));x.id=gt(),x.config.id=x.id,g[x.id]=x;const G=I(x.containerId).children,R=G?.findIndex($=>$.id===U)||0;G?.splice(R+1,0,x)},O=()=>{t.children=[],bu(g),h.value&&(ie("dragClick",{id:""}),h.value=null,A.value.init([]))},lA=()=>{h.value&&(ie("dragClick",{id:""}),h.value=null,A.value.init([]))},_=U=>{const x=h.value,G=I(x.containerId).children,R=G?.findIndex($=>$.id===x.id)||0;dA(x.id),(0,r.nextTick)(()=>{const $=c[U],J=V(U);J.id=x.id,J.span=x.config.span,J.componentType=U,J.table=x.config.table,J.field=x.config.field,x.config.isSubTable&&(J.isSubTable=x.config.isSubTable);const nA={id:J.id,name:$.name,type:U,runtimeType:$.runtimeType,componentName:$.componentName||"",dragType:x.dragType,groupId:x.groupId,containerId:x.containerId,isInput:x.isInput,level:x.level,config:J,isNewAdd:!0};g[nA.id]=nA,G?.splice(R,0,nA)})},Z=U=>{ie("dragAddByClick",U)};return(0,r.provide)("d-drag-design-provide",{activedComponent:h,getDesignLocals:v,getComponent:I,getParentComponents:L,isMyChildComponent:k,selectComponent:y,addComponent:M,deleteComponent:dA,copyComponent:AA,removeComponentFromContainer:W,addComponentToContainer:aA,top:t,deleteChildren:oA,deleteChildrens:rA}),{activedComponent:h,clearComponents:O,changeComponent:_,schemaComponentDic:g,clearSelect:lA,addComponent:M,addComponentByTable:Z,designComponentList:B}},Wm=(0,r.defineComponent)({__name:"importComponent",props:{componentList:{type:Array,default:()=>[]},tableList:{type:Array,default:()=>[]}},setup(e,{expose:A}){const t=e,n=(0,r.computed)(()=>t.tableList.map(g=>({label:g.comment?`${g.name}(${g.comment})`:g.name,value:g.name}))),o=(0,r.ref)(),a=[{id:"layout",type:"j-layout",config:{top:48,topMove:!1,autoSize:["default"]},children:[{id:"table",type:"j-select",slot:"top",config:{label:"表名选择",loadOptions:()=>n,allowClear:!1}},{id:"fields",type:"j-table",config:{editConfig:{isAddBtn:!1,isRemoveBtn:!1},height:"100%",isMultiple:!0},children:[{id:"name",type:"span",config:{label:"字段名"}},{id:"type",type:"j-select",config:{label:"组件选择",options:t.componentList,width:200}}]}]}],c=(g,B)=>{if(g.id==="table"){const w=t.tableList.find(m=>m.name===B.value);if(w){const m=w.columns.map(y=>({value:y.name,name:y.coment?`${y.name}(${y.coment})`:y.name,type:"input",label:y.coment||y.name,selected:!y.isPrimary}));o.value.setFormData({fields:m})}}};return(0,r.onMounted)(()=>{o.value.init(a)}),A({ok:()=>{const g=o.value.getFormData(!1);return{addList:g.fields.filter(B=>B.selected),table:g.table,containerId:g.containerId,isSubTable:g.isSubTable}},closed:()=>{}}),(g,B)=>{const w=(0,r.resolveComponent)("j-form");return(0,r.openBlock)(),(0,r.createBlock)(w,{ref_key:"formRef",ref:o,"form-config":{labelWidth:"72px"},onChange:c},null,512)}}}),Ym=Wm,Jm=(0,r.defineComponent)({props:{componentData:{type:Object,default:()=>({})},globalConfig:{type:Object,default:()=>({})}},setup(e){const{t:A}=(0,Te.useAppInject)();return{labelWidth:(0,r.computed)(()=>e.componentData.config?.notShowLabel?"0px":e.componentData.config?.labelWidth===void 0&&e.globalConfig.labelWidth!==void 0?`${e.globalConfig.labelWidth}px`:e.componentData.config?.labelWidth?`${e.componentData.config?.labelWidth}px`:void 0),inputConfig:(0,r.computed)(()=>{const t={...e.componentData?.config};return e.globalConfig.size===void 0&&(t.size=e.globalConfig.size),t.display=!0,t}),t:A}}}),Zm=(e,A)=>{const t=e.__vccOpts||e;for(const[n,o]of A)t[n]=o;return t};function jm(e,A,t,n,o,a){const c=(0,r.resolveComponent)("j-comp"),d=(0,r.resolveComponent)("el-form-item");return e.componentData.isInput?((0,r.openBlock)(),(0,r.createBlock)(d,{key:0,"label-width":e.labelWidth,label:e.t(e.componentData.config?.notShowLabel?"":e.componentData.config?.label||""),rules:e.componentData.config?.required?[{required:!0,message:""}]:[]},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(c,{type:e.componentData?.componentName||e.componentData?.type,config:e.inputConfig,modelValue:e.componentData?.config.defaultValue},null,8,["type","config","modelValue"])]),_:1},8,["label-width","label","rules"])):e.componentData?.children?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.componentData?.componentName),(0,r.mergeProps)({key:1},e.componentData?.config,{"global-config":e.globalConfig,"component-data":e.componentData}),null,16,["global-config","component-data"])):((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.componentData?.componentName),(0,r.normalizeProps)((0,r.mergeProps)({key:2},e.componentData?.config)),null,16))}var ml=Zm(Jm,[["render",jm]]),qm={class:"d-form-design j-block"},Aw={class:"d-form-design-left"},ew={class:"d-form-design-component-list"},tw={class:"j-component-tool"},nw={class:"j-component-tool-name"},rw={class:"d-form-design-center"},ow={class:"d-form-design-container"},iw={key:0,class:"d-form-design-empty"},sw={class:"d-form-design-right"},aw={class:"d-form-design-panel-title"},lw={style:{margin:"0","font-size":"14px"}},cw={class:"d-form-design-panel"},uw=(0,r.defineComponent)({name:"DFormDesign",__name:"formDesign",props:{notBindTable:{type:Boolean,default:!1},components:{default:()=>[]},componentConfigs:{default:()=>({})},componentInit:{type:Function,default:void 0},containerAddComponent:{type:Function,default:void 0},componentConfigInit:{type:Function,default:void 0},componentConfigChange:{type:Function,default:void 0},componentConfigValidate:{type:Function,default:void 0},flowComponents:{default:()=>[]},flowInit:{type:Function,default:void 0},flowComponentConfigInit:{type:Function,default:void 0},flowComponentConfigChange:{type:Function,default:void 0},flowComponentConfigs:{default:()=>({})},actions:{}},setup(e,{expose:A}){const t=e,{t:n,warning:o,error:a}=(0,Te.useAppInject)(),c=(0,r.reactive)({name:"表单",id:"form",type:"form",level:0,children:[],dragType:"container",componentName:"",containerId:"",isInput:!1,config:{}}),d=(0,r.ref)([]),h=t.components.length;for(let D=0;D<h;D++)d.value.push(D);t.componentInit&&(c.config=t.componentInit("form")||{});const g=(0,r.ref)([]),B=(0,r.computed)(()=>g.value.map(D=>({label:D.comment?`${D.name}(${D.comment})`:D.name,value:D.name}))),w=(0,r.computed)(()=>{if(W.value){const D=tA.value.getFormData(!1);if(D.table){const b=g.value.find(z=>z.name===D.table);if(b)return b.columns.map(z=>({value:z.name,label:z.coment?`${z.name}(${z.coment})`:z.name,coment:z.coment}))}}return[]}),m=D=>{g.value=D},y={},v=[];t.components.forEach(({children:D})=>{D.forEach(b=>{y[b.type]=b,b.dragType=b.dragType||"component",b.isInput!==!1&&(b.isInput=!0,v.push({label:b.name,value:b.type}))})});const I=D=>{D.forEach(b=>{b.type==="d-input-flow"&&(b.config=b.config||{},b.config.flowComponents=t.flowComponents,b.config.flowInit=t.flowInit,b.config.flowComponentConfigInit=z=>{t.flowComponentConfigInit&&(z.designComponents=AA.value,z.component=W.value,t.flowComponentConfigInit(z))},b.config.flowComponentConfigs=t.flowComponentConfigs,b.config.flowComponentConfigChange=t.flowComponentConfigChange),b.children&&I(b.children)})},L={};Object.keys(t.componentConfigs||{}).forEach(D=>{const{hasBase:b,isInput:z,hasTwoPlaceholder:P,hasPlaceholder:gA,hasSpan:iA,hasLabel:SA,bindTable:xA,labelTitle:KA}=y[D]||{hasBase:!1},ne=[{id:"id",type:"j-input",config:{label:"ID",readonly:!0}},{id:"componentType",type:"j-select",config:{label:"类型",allowClear:!1,display:z,options:v}},{id:"label",type:"j-input",config:{label:KA||"标题"},getCompConfig:({formData:PA})=>({display:SA!==!1&&!PA.notShowLabel})},{id:"notShowLabel",type:"j-switch",config:{label:"不显示"+(KA||"标题"),activeValue:!0,inactiveValue:!1},getCompConfig:({formData:PA})=>({display:SA!==!1&&!PA.isSubTable})},{id:"labelWidth",type:"j-number",config:{label:"标题宽度"},getCompConfig:({formData:PA})=>({display:z&&!PA.notShowLabel&&!PA.isSubTable})},{id:"placeholder",type:"j-input",config:{display:z&&!P&&gA!==!1,label:"占位提示"}},{id:"startPlaceholder",type:"j-input",config:{display:!!P,label:"开始占位"}},{id:"endPlaceholder",type:"j-input",config:{display:!!P,label:"结束占位"}},{id:"span",type:"j-slider",config:{label:"表单栅栏",min:6,max:24,showTooltip:!0,step:6,showStops:!0,defautValue:24},getCompConfig:({formData:PA})=>({display:iA!==!1&&!PA.isSubTable})},{id:"width",type:"j-number",config:{label:"单元格宽度",min:1},getCompConfig:({formData:PA})=>({display:!!PA.isSubTable})},{id:"isNotSave",type:"j-switch",config:{label:"不存表",display:z&&xA!==!1,activeValue:!0,inactiveValue:!1}},{id:"table",type:"j-select",config:{label:"数据表",loadOptions:()=>B},getCompConfig:({formData:PA})=>({display:(z&&xA!==!1||xA===!0)&&(!PA.isSubTable||xA===!0)&&!PA.isNotSave&&!t.notBindTable})},{id:"field",type:"j-select",config:{label:"表字段",loadOptions:()=>w},getCompConfig:({formData:PA})=>({display:z&&xA!==!1&&!PA.isNotSave&&!t.notBindTable})},{id:"csType",type:"j-select",config:{label:"字段类型",allowClear:!1,options:[{label:"短文本",value:"string"},{label:"长文本",value:"text"},{label:"整数",value:"int"},{label:"小数",value:"decimal"},{label:"时间日期",value:"DateTime"}]},getCompConfig:({formData:PA})=>({display:z&&xA!==!1&&!PA.isNotSave&&t.notBindTable})},{id:"fieldLen",type:"j-number",config:{label:"字段长度"},getCompConfig:({formData:PA})=>({display:z&&xA!==!1&&!PA.isNotSave&&t.notBindTable&&PA.csType==="string"})}],YA={type:"j-collapse",config:{defaultValue:[]},children:[]};b!==!1&&(YA.children?.push({config:{label:"基础信息"},children:[...ne]}),YA.config?.defaultValue.push("_collapse0")),YA.children?.push(...t.componentConfigs[D]),I(YA.children||[]),L[D]=[YA]});const k=D=>{const{value:b}=D||{};D.id==="componentType"&&dA(b),W.value&&t.componentConfigChange&&(D.id==="field"&&D.data?.coment&&(W.value.config.label=D.data?.coment),t.componentConfigChange(W.value.type,{configRef:tA,configData:W.value.config,...D})),D.id==="table"&&W.value&&W.value.type==="gridtable"&&(W.value.children||[]).forEach(z=>{z.isInput&&(z.config.table=b)})},V=(D,b)=>{y[D]?.isInput&&(t.notBindTable&&(b.configData.csType||tA.value.setFormData({main:{csType:y[D]?.csType,fieldLen:y[D]?.fieldLen}})),B.value.length===1&&tA.value.setFormData({main:{table:B.value[0].value}})),t.componentConfigInit&&t.componentConfigInit(D,{configRef:tA,...b,notBindTable:t.notBindTable})},F=(D,b,z)=>{let P=!1;const gA=y[D];return b.container.type==="gridtable"?(!b.configData.isSubTable||z)&&(b.configData.isSubTable=!0,gA.isInput&&(b.configData.table=b.container.config.table,b.configData.field=""),P=!0):b.configData.isSubTable&&(P=!0,b.configData.isSubTable=!1,gA.isInput&&(b.configData.table="")),t.containerAddComponent&&t.containerAddComponent(D,b),P},M=(0,r.ref)(),tA=(0,r.ref)(),{activedComponent:W,clearComponents:aA,changeComponent:dA,schemaComponentDic:rA,addComponentByTable:oA,designComponentList:AA}=pl(M,tA,c,t.componentInit,V,L,y,F),O=(0,r.computed)(()=>W.value?`【${W.value.name}】`:"");(0,r.provide)("dui-design-provide",{designItemName:ml});const lA=()=>{aA()},_=()=>{t.componentInit&&(c.config=t.componentInit("form")||{}),aA()},Z=()=>{let D=0;const b=Vr(c.config,c.children||[]);if(t.notBindTable){const z={};b.components.forEach(iA=>{const{isInput:SA,bindTable:xA}=y[iA.type]||{hasBase:!1};SA&&xA!==!1?iA.config.table&&!z.main&&(z.main={name:iA.config.table,comment:"主表",type:"main",pKey:"J_Id"}):xA&&(z[iA.id]={name:iA.config.table||"t"+new Date().getTime()+D,comment:`子表${iA.config.label}`,type:"chlid",field:"J_PId",relationField:"J_Id",pKey:"J_Id"},iA.config.table=z[iA.id].name,D++)}),z.main||(z.main={name:"t"+new Date().getTime()+D,comment:"主表",type:"main",pKey:"J_Id"},D++);let P=0;b.components.forEach(iA=>{const{isInput:SA,bindTable:xA}=y[iA.type]||{hasBase:!1};!iA.config.isNotSave&&SA&&xA!==!1&&(iA.config.csType||(iA.config.csType=y[iA.type]?.csType,iA.config.fieldLen=y[iA.type]?.fieldLen),iA.config.isSubTable?iA.config.table=z[iA.containerId].name:iA.config.table=z.main.name,iA.config.field=iA.config.field||`f${Math.floor(Date.now()/1e3)}${P}`,P++)});const gA=[];Object.keys(z).forEach(iA=>{z[iA].type==="chlid"&&(z[iA].relationName=z.main.name,z[iA].comment+=`,关联主表${z.main.name}`),gA.push(z[iA])}),b.db=gA}else{const z={};g.value.forEach(P=>{P.columns.forEach(gA=>{z[`${P.name}_${gA.name}`]=gA.csType})}),b.components.forEach(P=>{P.config.table&&P.config.field&&(P.config.csType=z[`${P.config.table}_${P.config.field}`])})}return t.notBindTable?b.db.forEach(z=>{if(!b.components.find(P=>P.config.table===z.name&&P.config.field==="J_Id")){const P=b.components.find(gA=>gA.config.table===z.name&&gA.config.field);P&&b.components.push({id:z.name+"_J_Id",name:z.name+"_J_Id",type:"pkey",runtimeType:"j-input",groupId:"",config:{display:!1,table:z.name,field:"J_Id",label:"主键"},containerId:P.containerId,level:P.level})}}):g.value.forEach(z=>{z.columns.forEach(P=>{if(P.isPrimary&&!b.components.find(gA=>gA.config.table===z.name&&gA.config.field===P.name)){const gA=b.components.find(iA=>iA.config.table===z.name&&iA.config.field);gA&&b.components.push({id:z.name+"_"+P.name,name:z.name+"_"+P.name,type:"pkey",runtimeType:"j-input",groupId:"",config:{display:!1,table:z.name,field:P.name,label:"主键"+P.name,isIdentity:P.isIdentity},containerId:gA.containerId,level:gA.level})}})}),b},U=D=>{const b=hl(D,y);c.config=b.formConfig,c.children?.push(...b.componentList),Object.keys(b.componentDic).forEach(z=>{rA[z]=b.componentDic[z]})},x=()=>R(Vr(c.config,c.children||[]).components,{},{}),G=D=>{const{isInput:b,bindTable:z}=y[D]||{hasBase:!1};if(!b&&z)return!0},R=(D,b,z)=>{if(!t.notBindTable)for(const P of D){const{isInput:gA,bindTable:iA}=y[P.type]||{hasBase:!1};if(!P.config.isNotSave&&P.type!=="pkey"){if(gA&&iA!==!1){if((0,Te.isNullOrEmpty)(P.config.table))return a&&a(`请【${P.config.label}】绑定数据表!`),!1;if(!P.config.isSubTable){if(z[P.config.table]&&G(z[P.config.table].type))return a&&a(`【${P.config.label}】和【${z[P.config.table].config.label}】重复绑定【${P.config.table}】表!`),!1;P.config.table&&(z[P.config.table]=P)}}else if(iA){if((0,Te.isNullOrEmpty)(P.config.table))return a&&a(`【${P.config.label}】请绑定数据表!`),!1;if(z[P.config.table])return a&&a(`【${P.config.label}】和【${z[P.config.table].config.label}】重复绑定【${P.config.table}】表!`),!1;P.config.table&&(z[P.config.table]=P)}}}for(const P of D){if(!t.notBindTable){const{isInput:gA,bindTable:iA}=y[P.type]||{hasBase:!1};if(!P.config.isNotSave&&gA&&iA!==!1){if((0,Te.isNullOrEmpty)(P.config.field))return a&&a(`请【${P.config.label}】绑定表字段!`),!1;if(b[`${P.config.table}-${P.config.field}`])return a&&a(`【${P.config.label}】和【${b[`${P.config.table}-${P.config.field}`].config.label}】重复绑定【${P.config.field}】字段!`),!1;b[`${P.config.table}-${P.config.field}`]=P}}if(t.componentConfigValidate&&!t.componentConfigValidate(P.type,{configData:P.config,errorTip:a}))return!1}return!0},$=(0,r.ref)(),J=(0,r.ref)(),nA=(0,r.reactive)({width:0,height:0,formConfig:{}});let hA=0;const UA=D=>{if(J.value)hA=0,J.value.init(D||[]);else{if(hA>600){console.warn("表单组件加载超时");return}hA++,setTimeout(()=>{UA(D)},100)}},eA=()=>{},uA=()=>{},Y=()=>{const D=Vr(c.config,c.children||[]);nA.width=D.form.width||800,nA.height=D.form.height||600,$.value.open("表单预览",D.form.layerType),(0,r.nextTick)(()=>{const{formConfig:b,componentList:z}=gl(D);nA.formConfig=b,UA(z)})},cA=(0,r.ref)(),mA=(0,r.ref)(),yA=()=>{const{addList:D,table:b}=mA.value?.ok()||{addList:[]};if(D.length<=0)o&&o("请选择字段!");else{if(W.value?.config.componentType==="gridtable"||W.value?.config.isSubTable)if(W.value.config.table){if(W.value.config.table!==b){o&&o("请设置相同的表和子表!");return}}else{let z=W.value;W.value.config.isSubTable&&(z=rA[W.value.containerId]),z.config.table=b,(z.children||[]).forEach(P=>{P.isInput&&(P.config.table=b)}),tA.value.setFormData({main:{table:b}})}D.forEach(z=>{const P=(0,Te.deepClone)(y[z.type]);P.config={table:b,field:z.value,label:z.label},oA(P)}),cA.value.close()}},IA=()=>{mA.value?.closed()};return A({setTables:D=>{m(D)},getSchema:()=>Z(),setSchema:D=>U(D),reset:()=>_(),validate:()=>x(),preview:Y,clear:lA}),(D,b)=>{const z=(0,r.resolveComponent)("j-icon"),P=(0,r.resolveComponent)("d-drag-tool"),gA=(0,r.resolveComponent)("el-collapse-item"),iA=(0,r.resolveComponent)("el-collapse"),SA=(0,r.resolveComponent)("d-drag-form-list"),xA=(0,r.resolveComponent)("el-row"),KA=(0,r.resolveComponent)("d-drag-container"),ne=(0,r.resolveComponent)("j-form"),YA=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",qm,[(0,r.createElementVNode)("div",Aw,[(0,r.createElementVNode)("div",ew,[(0,r.createVNode)(iA,{modelValue:d.value,"onUpdate:modelValue":b[0]||(b[0]=PA=>d.value=PA)},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,(PA,Re)=>((0,r.openBlock)(),(0,r.createBlock)(gA,{key:Re,title:PA.name,name:Re},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(PA.children,(ve,Gr)=>((0,r.openBlock)(),(0,r.createBlock)(P,{key:Gr,config:ve},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",tw,[(0,r.createVNode)(z,{class:"j-component-tool-icon",icon:ve.icon,size:14},null,8,["icon"]),(0,r.createElementVNode)("div",nw,(0,r.toDisplayString)((0,r.unref)(n)(ve.name)),1)])]),_:2},1032,["config"]))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),(0,r.createElementVNode)("div",rw,[(0,r.createElementVNode)("div",ow,[(0,r.createVNode)(KA,{ref_key:"dragContainer",ref:M,class:"d-form-design-drag-container","is-component-container":!1,"component-data":c},{default:(0,r.withCtx)(()=>[!c.children||c.children.length===0?((0,r.openBlock)(),(0,r.createElementBlock)("div",iw,[(0,r.createElementVNode)("div",null,(0,r.toDisplayString)((0,r.unref)(n)("请从左侧拖拽组件到此处")),1)])):((0,r.openBlock)(),(0,r.createBlock)(xA,{key:1},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(SA,{"component-list":c.children,"global-config":c.config},null,8,["component-list","global-config"])]),_:1}))]),_:1},8,["component-data"])])]),(0,r.withDirectives)((0,r.createElementVNode)("div",sw,[(0,r.createElementVNode)("div",aw,[(0,r.createElementVNode)("span",lw,(0,r.toDisplayString)(`${(0,r.unref)(n)("属性配置")}${O.value}`),1)]),(0,r.createElementVNode)("div",cw,[(0,r.createVNode)(ne,{config:{labelPosition:"top",size:"small"},collapseAnimate:!1,style:{padding:"0"},ref_key:"configRef",ref:tA,onChange:k},null,512)])],512),[[r.vShow,(0,r.unref)(W)]]),(0,r.createVNode)(YA,{ref_key:"previewFormLayerRef",ref:$,width:nA.width,height:nA.height,onOk:eA,onClosed:uA},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(ne,{config:nA.formConfig,"is-preview":!0,ref_key:"previewFormRef",ref:J,actions:e.actions},null,8,["config","actions"])]),_:1},8,["width","height"]),(0,r.createVNode)(YA,{ref_key:"importFormLayerRef",ref:cA,width:800,height:600,"btn-text":"确认",onOk:yA,onClosed:IA},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(Ym,{"component-list":v,"table-list":g.value,ref_key:"importComponentRef",ref:mA},null,8,["table-list"])]),_:1},512)])}}}),dw=uw,wl=ft(dw,[ml]),Cl=(e,A)=>{const t={ver:"V3",indexPage:{...e},components:[]};return yl(A||[],t.components),t},yl=(e,A)=>{e.forEach(t=>{const n={id:t.id,name:t.name,type:t.type,runtimeType:t.runtimeType||t.componentName||t.type,groupId:t.groupId||"",config:t.config,containerId:t.containerId,level:t.level};t.dragType==="container"&&yl(t.children||[],A),A.push(n)})},fw=e=>{const A=gw(e.components);return{pageConfig:e.indexPage,componentList:A}},gw=e=>{const A={},t={};return e.forEach(n=>{A[n.containerId]=A[n.containerId]||[];const o={id:n.id,type:n.runtimeType,slot:n.groupId,config:{}};n.config&&Object.keys(n.config).forEach(a=>{o.config[a]=n.config[a]}),A[n.containerId].push(o),t[n.id]=o}),Object.keys(A).forEach(n=>{const o=t[n];if(o){const a=A[n];if(["j-tabs","j-collapse"].includes(o.type||"")&&o.config?.groups){const c={};a.forEach(d=>{if(d.slot!==void 0&&d.slot!==null){const h=d.slot.toString();c[h]||(c[h]=[]),delete d.slot,c[h].push(d)}}),o.children=o.config.groups.map(d=>{const h=c[d._i]||[];return{config:{label:d.label},children:h}}),delete o.config.groups}else o.children=a}}),A.indexPage||[]},hw=(e,A)=>{let t={},n=[];const o={};if(e.ver==="V3"){const a=e;t=a.indexPage;const c={};a.components.forEach(d=>{const h=A[d.type];if(!h)return;c[d.containerId]=c[d.containerId]||[];const g={id:d.id,name:d.name,type:d.type,dragType:h.dragType||"component",componentName:h.componentName||"",runtimeType:h.runtimeType,groupId:d.groupId,config:d.config,isInput:!1,containerId:d.containerId,level:d.level};o[g.id]=g,c[d.containerId].push(g),g.dragType==="container"&&(g.children=[])}),Object.keys(c).forEach(d=>{o[d]&&(o[d].children=c[d])}),n=c.indexPage||[]}return{pageConfig:t,componentList:n,componentDic:o}},Bw=(0,r.defineComponent)({name:"DIndexDesignItem",__name:"indexDesignItem",props:{componentData:{type:Object,default:()=>({})},globalConfig:{type:Object,default:()=>({})}},setup(e){return(A,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.componentData?.componentName),(0,r.mergeProps)(e.componentData?.config,{"global-config":e.globalConfig,"component-data":e.componentData}),null,16,["global-config","component-data"]))}}),vl=Bw,pw={class:"d-index-design j-block"},mw={class:"d-index-design-left"},ww={class:"j-component-list"},Cw={class:"j-component-tool"},yw={class:"j-component-tool-name"},vw={class:"d-index-design-center"},Qw={class:"design-toolbar"},Ew={class:"design-container"},Fw={key:0,class:"j-block design-empty"},Uw={class:"d-index-design-right"},bw={class:"d-index-design-panel-title"},Iw={style:{margin:"0","font-size":"14px"}},Hw={class:"d-index-design-panel"},_w=(0,r.defineComponent)({name:"DIndexDesign",__name:"indexDesign",props:{components:{type:Array,default:()=>[]},componentConfigs:{type:Object,default:()=>({})},componentInit:Function,containerAddComponent:Function,componentConfigInit:Function,componentConfigChange:Function,flowComponents:{type:Array,default:()=>[]},flowInit:Function,flowComponentConfigInit:Function,flowComponentConfigChange:Function,flowComponentConfigs:{type:Object,default:()=>({})},actions:{type:Object,default:()=>({})}},setup(e,{expose:A}){const{t}=(0,Te.useAppInject)(),n=e,o=U=>{U.forEach(x=>{x.type==="d-input-flow"&&(x.config=x.config||{},x.config.flowComponents=n.flowComponents,x.config.flowInit=n.flowInit,x.config.flowComponentConfigInit=G=>{n.flowComponentConfigInit&&(G.designComponents=L.value,G.component=y.value,n.flowComponentConfigInit(G))},x.config.flowComponentConfigs=n.flowComponentConfigs,x.config.flowComponentConfigChange=n.flowComponentConfigChange),x.children&&o(x.children)})},a=(0,r.reactive)({name:"页面",id:"indexPage",type:"indexPage",level:0,children:[],dragType:"container",componentName:"",containerId:"",isInput:!1,config:{}});n.componentInit&&(a.config=n.componentInit("indexPage")||{});const c={},d=[];n.components.forEach(({children:U})=>{U.forEach(x=>{c[x.type]=x,x.dragType=x.dragType||"component",d.push({label:x.name,value:x.type})})});const h={};Object.keys(n.componentConfigs).forEach(U=>{const{hasBase:x}=c[U]||{hasBase:!1},G=[{id:"id",type:"j-input",config:{label:"ID",readonly:!0}},{id:"label",type:"j-input",config:{label:"名称"}}],R={type:"j-collapse",config:{defaultValue:[]},children:[]};x!==!1&&(R.children?.push({config:{label:"基础信息"},children:[...G]}),R.config?.defaultValue.push("_collapse0")),R.children?.push(...n.componentConfigs[U]),o(R.children||[]),h[U]=[R]});const g=U=>{y.value&&n.componentConfigChange&&n.componentConfigChange(y.value.type,{configRef:m,configData:y.value.config,...U})},B=(U,x)=>{n.componentConfigInit&&n.componentConfigInit(U,{configRef:m,...x})},w=(0,r.ref)(),m=(0,r.ref)(),{activedComponent:y,clearComponents:v,schemaComponentDic:I,designComponentList:L}=pl(w,m,a,n.componentInit,B,h,c,n.containerAddComponent),k=(0,r.computed)(()=>y.value?`【${y.value.name}】`:""),V=(0,r.ref)([]),F=n.components.length;for(let U=0;U<F;U++)V.value.push(U);(0,r.provide)("dui-design-provide",{designItemName:vl});const M=()=>{v()},tA=()=>{n.componentInit&&(a.config=n.componentInit("indexPage")||{}),v()},W=()=>(console.log("pValidate"),!0),aA=()=>Cl(a.config,a.children||[]),dA=U=>{const x=hw(U,c);a.config=x.pageConfig,a.children?.push(...x.componentList),Object.keys(x.componentDic).forEach(G=>{I[G]=x.componentDic[G]})},rA=(0,r.ref)(),oA=(0,r.ref)();(0,r.ref)(""),(0,r.reactive)({formConfig:{}});let AA=0;const O=U=>{if(oA.value)AA=0,oA.value.init(U);else{if(AA>600){console.warn("组件加载超时");return}AA++,setTimeout(()=>{O(U)},100)}},lA=()=>{},_=()=>{},Z=()=>{const{componentList:U}=fw(Cl(a.config,a.children||[]));rA.value.open("页面预览","full"),(0,r.nextTick)(()=>{O(U)})};return A({reset:tA,validate:W,getSchema:aA,setSchema:dA}),(U,x)=>{const G=(0,r.resolveComponent)("j-icon"),R=(0,r.resolveComponent)("d-drag-tool"),$=(0,r.resolveComponent)("el-collapse-item"),J=(0,r.resolveComponent)("el-collapse"),nA=(0,r.resolveComponent)("j-button"),hA=(0,r.resolveComponent)("el-tooltip"),UA=(0,r.resolveComponent)("el-divider"),eA=(0,r.resolveComponent)("el-empty"),uA=(0,r.resolveComponent)("d-drag-index-list"),Y=(0,r.resolveComponent)("d-drag-container"),cA=(0,r.resolveComponent)("j-form"),mA=(0,r.resolveComponent)("j-page"),yA=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",pw,[(0,r.createElementVNode)("div",mw,[x[1]||(x[1]=(0,r.createElementVNode)("div",{class:"d-index-design-panel-title"},"组件库",-1)),(0,r.createElementVNode)("div",ww,[(0,r.createVNode)(J,{modelValue:V.value,"onUpdate:modelValue":x[0]||(x[0]=IA=>V.value=IA)},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,(IA,fA)=>((0,r.openBlock)(),(0,r.createBlock)($,{key:fA,title:IA.name,name:fA},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(IA.children,(vA,S)=>((0,r.openBlock)(),(0,r.createBlock)(R,{key:S,config:vA},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",Cw,[(0,r.createVNode)(G,{class:"j-component-tool-icon",icon:vA.icon,size:14},null,8,["icon"]),(0,r.createElementVNode)("div",yw,(0,r.toDisplayString)((0,r.unref)(t)(vA.name)),1)])]),_:2},1032,["config"]))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),(0,r.createElementVNode)("div",vw,[(0,r.createElementVNode)("div",Qw,[x[2]||(x[2]=(0,r.createElementVNode)("div",null,null,-1)),(0,r.createElementVNode)("div",null,[(0,r.createVNode)(hA,{content:(0,r.unref)(t)("清空")},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(nA,{danger:"",type:"text",onClick:M,icon:"mdi:delete-outline"})]),_:1},8,["content"]),(0,r.createVNode)(UA,{direction:"vertical"}),(0,r.createVNode)(hA,{content:(0,r.unref)(t)("预览")},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(nA,{type:"text",onClick:Z,icon:"mdi:play-circle-outline"})]),_:1},8,["content"])])]),(0,r.createElementVNode)("div",Ew,[(0,r.createVNode)(Y,{ref_key:"dragContainer",ref:w,class:"design-drag-container","is-component-container":!1,"component-data":a},{default:(0,r.withCtx)(()=>[!a.children||a.children.length===0?((0,r.openBlock)(),(0,r.createElementBlock)("div",Fw,[(0,r.createVNode)(eA,{description:(0,r.unref)(t)("请从左侧拖拽组件到此处"),"image-size":100},null,8,["description"])])):((0,r.openBlock)(),(0,r.createBlock)(uA,{key:1,"component-list":a.children,"global-config":a.config},null,8,["component-list","global-config"]))]),_:1},8,["component-data"])])]),(0,r.withDirectives)((0,r.createElementVNode)("div",Uw,[(0,r.createElementVNode)("div",bw,[(0,r.createElementVNode)("span",Iw,(0,r.toDisplayString)(`${(0,r.unref)(t)("属性配置")}${k.value}`),1)]),(0,r.createElementVNode)("div",Hw,[(0,r.createVNode)(cA,{config:{labelPosition:"top",size:"small"},collapseAnimate:!1,style:{padding:"0"},ref_key:"configRef",ref:m,onChange:g},null,512)])],512),[[r.vShow,(0,r.unref)(y)&&h[(0,r.unref)(y).type]]]),(0,r.createVNode)(yA,{ref_key:"previewLayerRef",ref:rA,"has-btns":!1,onOk:lA,onClosed:_},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(mA,{ref_key:"previewRef",ref:oA,actions:e.actions},null,8,["actions"])]),_:1},512)])}}}),Sw=_w,Ql=ft(Sw,[vl]),ee=Fu({Vue:()=>r,Vue2:()=>{},del:()=>Nw,install:()=>xw,isVue2:()=>!1,isVue3:()=>!0,set:()=>Dw});Uu(ee,require("vue"));var yE=!1,vE=!0,QE=void 0;function xw(){}function Dw(e,A,t){return Array.isArray(e)?(e.length=Math.max(e.length,A),e.splice(A,1,t),t):(e[A]=t,t)}function Nw(e,A){if(Array.isArray(e)){e.splice(A,1);return}delete e[A]}var Pr=(e,A)=>{const t=e.__vccOpts||e;for(const[n,o]of A)t[n]=o;return t},Lw=(0,ee.defineComponent)({name:"LineRuler",props:{scale:Number,thick:Number,palette:Object,index:Number,start:Number,vertical:Boolean,value:Number,isShowReferLine:Boolean},emits:["onMouseDown","onRelease","onRemove"],setup(e,{emit:A}){const t=(0,ee.ref)(0),n=(0,ee.ref)(!0);(0,ee.onMounted)(()=>{t.value=e.value});const o=B=>{n.value=B>=0},a=(0,ee.computed)(()=>{const B=(t.value-e.start)*e.scale;o(B);const w=B+"px";return e.vertical?{top:w}:{left:w}}),c=(0,ee.computed)(()=>{var B;const w=`1px solid ${(B=e.palette)==null?void 0:B.lineColor}`,m=e.vertical?{borderTop:w}:{borderLeft:w};return{cursor:e.isShowReferLine?e.vertical?"ns-resize":"ew-resize":"none",...m}}),d=(0,ee.computed)(()=>e.vertical?{left:e.thick+"px"}:{top:e.thick+"px"});return{startValue:t,showLine:n,offset:a,borderCursor:c,actionStyle:d,handleDown:B=>{const w=e.vertical?B.clientY:B.clientX,m=t.value;A("onMouseDown");const y=I=>{const L=e.vertical?I.clientY:I.clientX;t.value=Math.round(m+(L-w)/e.scale)},v=()=>{A("onRelease",t.value,e.index),document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",v)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",v)},handleRemove:()=>{A("onRemove",e.index)}}}}),Tw={class:"value"};function kw(e,A,t,n,o,a){return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"line",style:(0,r.normalizeStyle)([e.offset,e.borderCursor]),onMousedown:A[1]||(A[1]=(...c)=>e.handleDown&&e.handleDown(...c))},[(0,r.createElementVNode)("div",{class:"action",style:(0,r.normalizeStyle)(e.actionStyle)},[(0,r.createElementVNode)("span",{class:"del",onClick:A[0]||(A[0]=(...c)=>e.handleRemove&&e.handleRemove(...c))},"×"),(0,r.createElementVNode)("span",Tw,(0,r.toDisplayString)(e.startValue),1)],4)],36)),[[r.vShow,e.showLine]])}var Mw=Pr(Lw,[["render",kw],["__scopeId","data-v-074b3d94"]]),Ow=e=>e<=.25?40:e<=.5?20:e<=1?10:e<=2?5:e<=4?2:1,El=.83,Kw=(e,A,t,n,o,a)=>{const{scale:c,width:d,height:h,ratio:g,palette:B}=o,{bgColor:w,fontColor:m,shadowColor:y,longfgColor:v,shortfgColor:I}=B;if(e.scale(g,g),e.clearRect(0,0,d,h),e.fillStyle=w,e.fillRect(0,0,d,h),n){const rA=(t-A)*c,oA=n*c;e.fillStyle=y,a?e.fillRect(rA,0,oA,h*3/8):e.fillRect(0,rA,d*3/8,oA)}const L=Ow(c),k=L*c,V=L*10,F=V*c,M=Math.floor(A/L)*L,tA=Math.floor(A/V)*V,W=(M-A)/L*k,aA=(tA-A)/V*F,dA=A+Math.ceil((a?d:h)/c);e.beginPath(),e.fillStyle=m,e.strokeStyle=v;for(let rA=tA,oA=0;rA<dA;rA+=V,oA++){const AA=aA+oA*F+.5;a?e.moveTo(AA,0):e.moveTo(0,AA),e.save(),a?e.translate(AA,h*.4):e.translate(d*.4,AA),a||e.rotate(-Math.PI/2),e.scale(El/g,El/g),e.fillText(rA.toString(),4*g,7*g),e.restore(),a?e.lineTo(AA,h*9/16):e.lineTo(d*9/16,AA)}e.stroke(),e.closePath(),e.beginPath(),e.strokeStyle=I;for(let rA=M,oA=0;rA<dA;rA+=L,oA++){const AA=W+oA*k+.5;a?e.moveTo(AA,0):e.moveTo(0,AA),rA%V!==0&&(a?e.lineTo(AA,h*1/4):e.lineTo(d*1/4,AA))}e.stroke(),e.closePath(),e.setTransform(1,0,0,1,0,0)},Rw=(0,ee.defineComponent)({name:"CanvasRuler",props:{showIndicator:Boolean,valueNum:Number,scale:Number,ratio:Number,palette:Object,vertical:Boolean,start:Number,width:Number,height:Number,selectStart:Number,selectLength:Number},emits:["onAddLine","update:showIndicator","update:valueNum"],setup(e,{emit:A}){const t=(0,ee.reactive)({canvasContext:null});let n=1;const o=(0,ee.ref)(null);(0,ee.onMounted)(()=>{n=e.ratio||window.devicePixelRatio||1,a(),c(n),d(n)});const a=()=>{t.canvasContext=o.value&&o.value.getContext("2d")},c=g=>{if(o.value){o.value.width=e.width*g,o.value.height=e.height*g;const B=t.canvasContext;B&&(B.font=`${12*g}px -apple-system,
|
|
26
|
+
Edge: ${e}`,USEVUEFLOW_OPTIONS:()=>"The options parameter is deprecated and will be removed in the next major version. Please use the id parameter instead"},ce=class extends Error{constructor(e,...A){var t;super((t=Sa[e])==null?void 0:t.call(Sa,...A)),this.name="VueFlowError",this.code=e,this.args=A}};function si(e){return"clientX"in e}function nB(e){return"sourceEvent"in e}function Ge(e,A){const t=si(e);let n,o;return t?(n=e.clientX,o=e.clientY):"touches"in e&&e.touches.length>0?(n=e.touches[0].clientX,o=e.touches[0].clientY):"changedTouches"in e&&e.changedTouches.length>0?(n=e.changedTouches[0].clientX,o=e.changedTouches[0].clientY):(n=0,o=0),{x:n-(A?.left??0),y:o-(A?.top??0)}}var br=()=>{var e;return typeof navigator<"u"&&((e=navigator?.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function rB(e){var A,t;return{width:((A=e.dimensions)==null?void 0:A.width)??e.width??0,height:((t=e.dimensions)==null?void 0:t.height)??e.height??0}}function Hr(e,A=[1,1]){return{x:A[0]*Math.round(e.x/A[0]),y:A[1]*Math.round(e.y/A[1])}}var oB=()=>!0;function ai(e){e?.classList.remove("valid","connecting","vue-flow__handle-valid","vue-flow__handle-connecting")}function iB(e,A,t){const n=[],o={x:e.x-t,y:e.y-t,width:t*2,height:t*2};for(const a of A.values())Er(o,Qr(a))>0&&n.push(a);return n}var sB=250;function aB(e,A,t,n){var o,a;let u=[],d=Number.POSITIVE_INFINITY;const h=iB(e,t,A+sB);for(const g of h){const B=[...((o=g.handleBounds)==null?void 0:o.source)??[],...((a=g.handleBounds)==null?void 0:a.target)??[]];for(const w of B){if(n.nodeId===w.nodeId&&n.type===w.type&&n.id===w.id)continue;const{x:m,y:v}=qt(g,w,w.position,!0),Q=Math.sqrt((m-e.x)**2+(v-e.y)**2);Q>A||(Q<d?(u=[{...w,x:m,y:v}],d=Q):Q===d&&u.push({...w,x:m,y:v}))}}if(!u.length)return null;if(u.length>1){const g=n.type==="source"?"target":"source";return u.find(B=>B.type===g)??u[0]}return u[0]}function xa(e,{handle:A,connectionMode:t,fromNodeId:n,fromHandleId:o,fromType:a,doc:u,lib:d,flowId:h,isValidConnection:g=oB},B,w,m,v){const Q=a==="target",H=A?u.querySelector(`.${d}-flow__handle[data-id="${h}-${A?.nodeId}-${A?.id}-${A?.type}"]`):null,{x:N,y:T}=Ge(e),M=u.elementFromPoint(N,T),U=M?.classList.contains(`${d}-flow__handle`)?M:H,K={handleDomNode:U,isValid:!1,connection:null,toHandle:null};if(U){const eA=Da(void 0,U),W=U.getAttribute("data-nodeid"),iA=U.getAttribute("data-handleid"),lA=U.classList.contains("connectable"),nA=U.classList.contains("connectableend");if(!W||!eA)return K;const tA={source:Q?W:n,sourceHandle:Q?iA:o,target:Q?n:W,targetHandle:Q?o:iA};K.connection=tA,K.isValid=lA&&nA&&(t===At.Strict?Q&&eA==="source"||!Q&&eA==="target":W!==n||iA!==o)&&g(tA,{nodes:w,edges:B,sourceNode:m(tA.source),targetNode:m(tA.target)}),K.toHandle=Na(W,eA,iA,v,t,!0)}return K}function Da(e,A){return e||(A?.classList.contains("target")?"target":A?.classList.contains("source")?"source":null)}function lB(e,A){let t=null;return A?t="valid":e&&!A&&(t="invalid"),t}function cB(e,A){let t=null;return A?t=!0:e&&!A&&(t=!1),t}function Na(e,A,t,n,o,a=!1){var u,d,h;const g=n.get(e);if(!g)return null;const B=o===At.Strict?(u=g.handleBounds)==null?void 0:u[A]:[...((d=g.handleBounds)==null?void 0:d.source)??[],...((h=g.handleBounds)==null?void 0:h.target)??[]],w=(t?B?.find(m=>m.id===t):B?.[0])??null;return w&&a?{...w,...qt(g,w,w.position,!0)}:w}var li={[IA.Left]:IA.Right,[IA.Right]:IA.Left,[IA.Top]:IA.Bottom,[IA.Bottom]:IA.Top},uB=["production","prod"];function Tn(e,...A){La()&&console.warn(`[Vue Flow]: ${e}`,...A)}function La(){return!uB.includes(process.env.NODE_ENV||"")}function Ta(e,A,t,n,o){const a=A.querySelectorAll(`.vue-flow__handle.${e}`);return a?.length?Array.from(a).map(u=>{const d=u.getBoundingClientRect();return{id:u.getAttribute("data-handleid"),type:e,nodeId:o,position:u.getAttribute("data-handlepos"),x:(d.left-t.left)/n,y:(d.top-t.top)/n,...Ur(u)}}):null}function ci(e,A,t,n,o,a=!1,u){o.value=!1,e.selected?(a||e.selected&&A)&&(n([e]),(0,r.nextTick)(()=>{u.blur()})):t([e])}function se(e){return typeof(0,r.unref)(e)<"u"}function dB(e,A,t,n){if(!e||!e.source||!e.target)return t(new ce(ie.EDGE_INVALID,e?.id??"[ID UNKNOWN]")),!1;let o;return ft(e)?o=e:o={...e,id:fa(e)},o=ua(o,void 0,n),zh(o,A)?!1:o}function fB(e,A,t,n,o){if(!A.source||!A.target)return o(new ce(ie.EDGE_INVALID,e.id)),!1;if(!t)return o(new ce(ie.EDGE_NOT_FOUND,e.id)),!1;const{id:a,...u}=e;return{...u,id:n?fa(A):a,source:A.source,target:A.target,sourceHandle:A.sourceHandle,targetHandle:A.targetHandle}}function ka(e,A,t){const n={},o=[];for(let a=0;a<e.length;++a){const u=e[a];if(!Lt(u)){t(new ce(ie.NODE_INVALID,u?.id));continue}const d=Vh(u,A(u.id),u.parentNode);u.parentNode&&(n[u.parentNode]=!0),o[a]=d}for(const a of o){const u=A(a.parentNode)||o.find(d=>d.id===a.parentNode);a.parentNode&&!u&&t(new ce(ie.NODE_MISSING_PARENT,a.id,a.parentNode)),(a.parentNode||n[a.id])&&(n[a.id]&&(a.isParent=!0),u&&(u.isParent=!0))}return o}function Ma(e,A,t,n,o,a){let u=o;const d=n.get(u)||new Map;n.set(u,d.set(t,A)),u=`${o}-${e}`;const h=n.get(u)||new Map;if(n.set(u,h.set(t,A)),a){u=`${o}-${e}-${a}`;const g=n.get(u)||new Map;n.set(u,g.set(t,A))}}function ui(e,A,t){e.clear();for(const n of t){const{source:o,target:a,sourceHandle:u=null,targetHandle:d=null}=n,h={edgeId:n.id,source:o,target:a,sourceHandle:u,targetHandle:d},g=`${o}-${u}--${a}-${d}`;Ma("source",h,`${a}-${d}--${o}-${u}`,e,o,u),Ma("target",h,g,e,a,d)}}function Ka(e,A){if(e.size!==A.size)return!1;for(const t of e)if(!A.has(t))return!1;return!0}function di(e,A,t,n,o,a,u,d){const h=[];for(const g of e){const B=ft(g)?g:dB(g,d,o,a);if(!B)continue;const w=t(B.source),m=t(B.target);if(!w||!m){o(new ce(ie.EDGE_SOURCE_TARGET_MISSING,B.id,B.source,B.target));continue}if(!w){o(new ce(ie.EDGE_SOURCE_MISSING,B.id,B.source));continue}if(!m){o(new ce(ie.EDGE_TARGET_MISSING,B.id,B.target));continue}if(A&&!A(B,{edges:d,nodes:u,sourceNode:w,targetNode:m})){o(new ce(ie.EDGE_INVALID,B.id));continue}const v=n(B.id);h.push({...ua(B,v,a),sourceNode:w,targetNode:m})}return h}var Oa=Symbol("vueFlow"),Ra=Symbol("nodeId"),Va=Symbol("nodeRef"),gB=Symbol("edgeId"),hB=Symbol("edgeRef"),Ir=Symbol("slots");function Pa(e){const{vueFlowRef:A,snapToGrid:t,snapGrid:n,noDragClassName:o,nodeLookup:a,nodeExtent:u,nodeDragThreshold:d,viewport:h,autoPanOnNodeDrag:g,autoPanSpeed:B,nodesDraggable:w,panBy:m,findNode:v,multiSelectionActive:Q,nodesSelectionActive:H,selectNodesOnDrag:N,removeSelectedElements:T,addSelectedNodes:M,updateNodePositions:U,emits:K}=YA(),{onStart:eA,onDrag:W,onStop:iA,onClick:lA,el:nA,disabled:tA,id:q,selectable:k,dragHandle:sA}=e,I=(0,r.shallowRef)(!1);let Y=[],F,S=null,P={x:void 0,y:void 0},R={x:0,y:0},z=null,J=!1,rA=!1,dA=0,bA=!1;const AA=mB(),cA=({x:aA,y:wA})=>{P={x:aA,y:wA};let _=!1;if(Y=Y.map(b=>{const D={x:aA-b.distance.x,y:wA-b.distance.y},{computedPosition:X}=ii(b,t.value?Hr(D,n.value):D,K.error,u.value,b.parentNode?v(b.parentNode):void 0);return _=_||b.position.x!==X.x||b.position.y!==X.y,b.position=X,b}),rA=rA||_,!!_&&(U(Y,!0,!0),I.value=!0,z)){const[b,D]=oi({id:q,dragItems:Y,findNode:v});W({event:z,node:b,nodes:D})}},V=()=>{if(!S)return;const[aA,wA]=ya(R,S,B.value);if(aA!==0||wA!==0){const _={x:(P.x??0)-aA/h.value.zoom,y:(P.y??0)-wA/h.value.zoom};m({x:aA,y:wA})&&cA(_)}dA=requestAnimationFrame(V)},$=(aA,wA)=>{J=!0;const _=v(q);!N.value&&!Q.value&&_&&(_.selected||T()),_&&(0,r.toValue)(k)&&N.value&&ci(_,Q.value,M,T,H,!1,wA);const b=AA(aA.sourceEvent);if(P=b,Y=Zh(a.value,w.value,b,q),Y.length){const[D,X]=oi({id:q,dragItems:Y,findNode:v});eA({event:aA.sourceEvent,node:D,nodes:X})}},uA=(aA,wA)=>{var _;aA.sourceEvent.type==="touchmove"&&aA.sourceEvent.touches.length>1||(rA=!1,d.value===0&&$(aA,wA),P=AA(aA.sourceEvent),S=((_=A.value)==null?void 0:_.getBoundingClientRect())||null,R=Ge(aA.sourceEvent,S))},BA=(aA,wA)=>{const _=AA(aA.sourceEvent);if(!bA&&J&&g.value&&(bA=!0,V()),!J){const b=_.xSnapped-(P.x??0),D=_.ySnapped-(P.y??0);Math.sqrt(b*b+D*D)>d.value&&$(aA,wA)}(P.x!==_.xSnapped||P.y!==_.ySnapped)&&Y.length&&J&&(z=aA.sourceEvent,R=Ge(aA.sourceEvent,S),cA(_))},HA=aA=>{let wA=!1;if(!J&&!I.value&&!Q.value){const _=aA.sourceEvent,b=AA(_),D=b.xSnapped-(P.x??0),X=b.ySnapped-(P.y??0),L=Math.sqrt(D*D+X*X);L!==0&&L<=d.value&&(lA?.(_),wA=!0)}if(Y.length&&!wA){rA&&(U(Y,!1,!1),rA=!1);const[_,b]=oi({id:q,dragItems:Y,findNode:v});iA({event:aA.sourceEvent,node:_,nodes:b})}Y=[],I.value=!1,bA=!1,J=!1,P={x:void 0,y:void 0},cancelAnimationFrame(dA)};return(0,r.watch)([()=>(0,r.toValue)(tA),nA],([aA,wA],_,b)=>{if(wA){const D=Ne(wA);aA||(F=Rf().on("start",X=>uA(X,wA)).on("drag",X=>BA(X,wA)).on("end",X=>HA(X)).filter(X=>{const L=X.target,pA=(0,r.toValue)(sA);return!X.button&&(!o.value||!Ha(L,`.${o.value}`,wA)&&(!pA||Ha(L,pA,wA)))}),D.call(F)),b(()=>{D.on(".drag",null),F&&(F.on("start",null),F.on("drag",null),F.on("end",null))})}}),I}function BB(){return{doubleClick:QA(),click:QA(),mouseEnter:QA(),mouseMove:QA(),mouseLeave:QA(),contextMenu:QA(),updateStart:QA(),update:QA(),updateEnd:QA()}}function pB(e,A){const t=BB();return t.doubleClick.on(n=>{var o,a;A.edgeDoubleClick(n),(a=(o=e.events)==null?void 0:o.doubleClick)==null||a.call(o,n)}),t.click.on(n=>{var o,a;A.edgeClick(n),(a=(o=e.events)==null?void 0:o.click)==null||a.call(o,n)}),t.mouseEnter.on(n=>{var o,a;A.edgeMouseEnter(n),(a=(o=e.events)==null?void 0:o.mouseEnter)==null||a.call(o,n)}),t.mouseMove.on(n=>{var o,a;A.edgeMouseMove(n),(a=(o=e.events)==null?void 0:o.mouseMove)==null||a.call(o,n)}),t.mouseLeave.on(n=>{var o,a;A.edgeMouseLeave(n),(a=(o=e.events)==null?void 0:o.mouseLeave)==null||a.call(o,n)}),t.contextMenu.on(n=>{var o,a;A.edgeContextMenu(n),(a=(o=e.events)==null?void 0:o.contextMenu)==null||a.call(o,n)}),t.updateStart.on(n=>{var o,a;A.edgeUpdateStart(n),(a=(o=e.events)==null?void 0:o.updateStart)==null||a.call(o,n)}),t.update.on(n=>{var o,a;A.edgeUpdate(n),(a=(o=e.events)==null?void 0:o.update)==null||a.call(o,n)}),t.updateEnd.on(n=>{var o,a;A.edgeUpdateEnd(n),(a=(o=e.events)==null?void 0:o.updateEnd)==null||a.call(o,n)}),Object.entries(t).reduce((n,[o,a])=>(n.emit[o]=a.trigger,n.on[o]=a.on,n),{emit:{},on:{}})}function mB(){const{viewport:e,snapGrid:A,snapToGrid:t,vueFlowRef:n}=YA();return o=>{var a;const u=((a=n.value)==null?void 0:a.getBoundingClientRect())??{left:0,top:0},{x:d,y:h}=Ge(nB(o)?o.sourceEvent:o,u),g=Nn({x:d,y:h},e.value),{x:B,y:w}=t.value?Hr(g,A.value):g;return{xSnapped:B,ySnapped:w,...g}}}function _r(){return!0}function Ga({handleId:e,nodeId:A,type:t,isValidConnection:n,edgeUpdaterType:o,onEdgeUpdate:a,onEdgeUpdateEnd:u}){const{id:d,vueFlowRef:h,connectionMode:g,connectionRadius:B,connectOnClick:w,connectionClickStartHandle:m,nodesConnectable:v,autoPanOnConnect:Q,autoPanSpeed:H,findNode:N,panBy:T,startConnection:M,updateConnection:U,endConnection:K,emits:eA,viewport:W,edges:iA,nodes:lA,isValidConnection:nA,nodeLookup:tA}=YA();let q=null,k=!1,sA=null;function I(F){var S;const P=(0,r.toValue)(t)==="target",R=si(F),z=ca(F.target),J=F.currentTarget;if(J&&(R&&F.button===0||!R)){let rA=function(FA){_=Ge(FA,HA),cA=aB(Nn(_,W.value,!1,[1,1]),B.value,tA.value,X),b||(D(),b=!0);const CA=xa(FA,{handle:cA,connectionMode:g.value,fromNodeId:(0,r.toValue)(A),fromHandleId:(0,r.toValue)(e),fromType:P?"target":"source",isValidConnection:AA,doc:z,lib:"vue",flowId:d,nodeLookup:tA.value},iA.value,lA.value,N,tA.value);sA=CA.handleDomNode,q=CA.connection,k=cB(!!cA,CA.isValid);const LA={...fA,isValid:k,to:CA.toHandle&&k?Dn({x:CA.toHandle.x,y:CA.toHandle.y},W.value):_,toHandle:CA.toHandle,toPosition:k&&CA.toHandle?CA.toHandle.position:li[X.position],toNode:CA.toHandle?tA.value.get(CA.toHandle.nodeId):null};if(k&&cA&&fA?.toHandle&&LA.toHandle&&fA.toHandle.type===LA.toHandle.type&&fA.toHandle.nodeId===LA.toHandle.nodeId&&fA.toHandle.id===LA.toHandle.id&&fA.to.x===LA.to.x&&fA.to.y===LA.to.y)return;const KA=cA??CA.toHandle;if(U(KA&&k?Dn({x:KA.x,y:KA.y},W.value):_,KA,lB(!!KA,k)),fA=LA,!cA&&!k&&!sA)return ai(wA);q&&q.source!==q.target&&sA&&(ai(wA),wA=sA,sA.classList.add("connecting","vue-flow__handle-connecting"),sA.classList.toggle("valid",!!k),sA.classList.toggle("vue-flow__handle-valid",!!k))},dA=function(FA){"touches"in FA&&FA.touches.length>0||((cA||sA)&&q&&k&&(a?a(FA,q):eA.connect(q)),eA.connectEnd(FA),o&&u?.(FA),ai(wA),cancelAnimationFrame(V),K(FA),b=!1,k=!1,q=null,sA=null,z.removeEventListener("mousemove",rA),z.removeEventListener("mouseup",dA),z.removeEventListener("touchmove",rA),z.removeEventListener("touchend",dA))};const bA=N((0,r.toValue)(A));let AA=(0,r.toValue)(n)||nA.value||_r;!AA&&bA&&(AA=(P?bA.isValidSourcePos:bA.isValidTargetPos)||_r);let cA,V=0;const{x:$,y:uA}=Ge(F),BA=Da((0,r.toValue)(o),J),HA=(S=h.value)==null?void 0:S.getBoundingClientRect();if(!HA||!BA)return;const aA=Na((0,r.toValue)(A),BA,(0,r.toValue)(e),tA.value,g.value);if(!aA)return;let wA,_=Ge(F,HA),b=!1;const D=()=>{if(!Q.value)return;const[FA,CA]=ya(_,HA,H.value);T({x:FA,y:CA}),V=requestAnimationFrame(D)},X={...aA,nodeId:(0,r.toValue)(A),type:BA,position:aA.position},L=tA.value.get((0,r.toValue)(A)),pA={inProgress:!0,isValid:null,from:qt(L,X,IA.Left,!0),fromHandle:X,fromPosition:X.position,fromNode:L,to:_,toHandle:null,toPosition:li[X.position],toNode:null};M({nodeId:(0,r.toValue)(A),id:(0,r.toValue)(e),type:BA,position:J?.getAttribute("data-handlepos")||IA.Top,..._},{x:$-HA.left,y:uA-HA.top}),eA.connectStart({event:F,nodeId:(0,r.toValue)(A),handleId:(0,r.toValue)(e),handleType:BA});let fA=pA;z.addEventListener("mousemove",rA),z.addEventListener("mouseup",dA),z.addEventListener("touchmove",rA),z.addEventListener("touchend",dA)}}function Y(F){var S,P;if(!w.value)return;const R=(0,r.toValue)(t)==="target";if(!m.value){eA.clickConnectStart({event:F,nodeId:(0,r.toValue)(A),handleId:(0,r.toValue)(e)}),M({nodeId:(0,r.toValue)(A),type:(0,r.toValue)(t),id:(0,r.toValue)(e),position:IA.Top,...Ge(F)},void 0,!0);return}let z=(0,r.toValue)(n)||nA.value||_r;const J=N((0,r.toValue)(A));if(!z&&J&&(z=(R?J.isValidSourcePos:J.isValidTargetPos)||_r),J&&(typeof J.connectable>"u"?v.value:J.connectable)===!1)return;const rA=ca(F.target),dA=xa(F,{handle:{nodeId:(0,r.toValue)(A),id:(0,r.toValue)(e),type:(0,r.toValue)(t),position:IA.Top,...Ge(F)},connectionMode:g.value,fromNodeId:m.value.nodeId,fromHandleId:m.value.id??null,fromType:m.value.type,isValidConnection:z,doc:rA,lib:"vue",flowId:d,nodeLookup:tA.value},iA.value,lA.value,N,tA.value),bA=((S=dA.connection)==null?void 0:S.source)===((P=dA.connection)==null?void 0:P.target);dA.isValid&&dA.connection&&!bA&&eA.connect(dA.connection),eA.clickConnectEnd(F),K(F,!0)}return{handlePointerDown:I,handleClick:Y}}function wB(){return(0,r.inject)(Ra,"")}function za(e){const A=e??wB()??"",t=(0,r.inject)(Va,(0,r.ref)(null)),{findNode:n,edges:o,emits:a}=YA(),u=n(A);return u||a.error(new ce(ie.NODE_NOT_FOUND,A)),{id:A,nodeEl:t,node:u,parentNode:(0,r.computed)(()=>n(u.parentNode)),connectedEdges:(0,r.computed)(()=>pa([u],o.value))}}function CB(){return{doubleClick:QA(),click:QA(),mouseEnter:QA(),mouseMove:QA(),mouseLeave:QA(),contextMenu:QA(),dragStart:QA(),drag:QA(),dragStop:QA()}}function vB(e,A){const t=CB();return t.doubleClick.on(n=>{var o,a;A.nodeDoubleClick(n),(a=(o=e.events)==null?void 0:o.doubleClick)==null||a.call(o,n)}),t.click.on(n=>{var o,a;A.nodeClick(n),(a=(o=e.events)==null?void 0:o.click)==null||a.call(o,n)}),t.mouseEnter.on(n=>{var o,a;A.nodeMouseEnter(n),(a=(o=e.events)==null?void 0:o.mouseEnter)==null||a.call(o,n)}),t.mouseMove.on(n=>{var o,a;A.nodeMouseMove(n),(a=(o=e.events)==null?void 0:o.mouseMove)==null||a.call(o,n)}),t.mouseLeave.on(n=>{var o,a;A.nodeMouseLeave(n),(a=(o=e.events)==null?void 0:o.mouseLeave)==null||a.call(o,n)}),t.contextMenu.on(n=>{var o,a;A.nodeContextMenu(n),(a=(o=e.events)==null?void 0:o.contextMenu)==null||a.call(o,n)}),t.dragStart.on(n=>{var o,a;A.nodeDragStart(n),(a=(o=e.events)==null?void 0:o.dragStart)==null||a.call(o,n)}),t.drag.on(n=>{var o,a;A.nodeDrag(n),(a=(o=e.events)==null?void 0:o.drag)==null||a.call(o,n)}),t.dragStop.on(n=>{var o,a;A.nodeDragStop(n),(a=(o=e.events)==null?void 0:o.dragStop)==null||a.call(o,n)}),Object.entries(t).reduce((n,[o,a])=>(n.emit[o]=a.trigger,n.on[o]=a.on,n),{emit:{},on:{}})}function Xa(){const{getSelectedNodes:e,nodeExtent:A,updateNodePositions:t,findNode:n,snapGrid:o,snapToGrid:a,nodesDraggable:u,emits:d}=YA();return(h,g=!1)=>{const B=a.value?o.value[0]:5,w=a.value?o.value[1]:5,m=g?4:1,v=h.x*B*m,Q=h.y*w*m,H=[];for(const N of e.value)if(N.draggable||u&&typeof N.draggable>"u"){const{position:T}=ii(N,{x:N.computedPosition.x+v,y:N.computedPosition.y+Q},d.error,A.value,N.parentNode?n(N.parentNode):void 0);H.push({id:N.id,position:T,from:N.position,distance:{x:h.x,y:h.y},dimensions:N.dimensions})}t(H,!0,!1)}}var Sr=.1,yB=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2;function Bt(){return Tn("Viewport not initialized yet."),Promise.resolve(!1)}var QB={zoomIn:Bt,zoomOut:Bt,zoomTo:Bt,fitView:Bt,setCenter:Bt,fitBounds:Bt,project:e=>e,screenToFlowCoordinate:e=>e,flowToScreenCoordinate:e=>e,setViewport:Bt,setTransform:Bt,getViewport:()=>({x:0,y:0,zoom:1}),getTransform:()=>({x:0,y:0,zoom:1}),viewportInitialized:!1};function EB(e){function A(n,o){return new Promise(a=>{e.d3Selection&&e.d3Zoom?e.d3Zoom.interpolate(o?.interpolate==="linear"?En:fr).scaleBy(fi(e.d3Selection,o?.duration,o?.ease,()=>{a(!0)}),n):a(!1)})}function t(n,o,a,u){return new Promise(d=>{var h;const{x:g,y:B}=la({x:-n,y:-o},e.translateExtent),w=Jt.translate(-g,-B).scale(a);e.d3Selection&&e.d3Zoom?(h=e.d3Zoom)==null||h.interpolate(u?.interpolate==="linear"?En:fr).transform(fi(e.d3Selection,u?.duration,u?.ease,()=>{d(!0)}),w):d(!1)})}return(0,r.computed)(()=>e.d3Zoom&&e.d3Selection&&e.dimensions.width&&e.dimensions.height?{viewportInitialized:!0,zoomIn:n=>A(1.2,n),zoomOut:n=>A(1/1.2,n),zoomTo:(n,o)=>new Promise(a=>{e.d3Selection&&e.d3Zoom?e.d3Zoom.interpolate(o?.interpolate==="linear"?En:fr).scaleTo(fi(e.d3Selection,o?.duration,o?.ease,()=>{a(!0)}),n):a(!1)}),setViewport:(n,o)=>t(n.x,n.y,n.zoom,o),setTransform:(n,o)=>t(n.x,n.y,n.zoom,o),getViewport:()=>({x:e.viewport.x,y:e.viewport.y,zoom:e.viewport.zoom}),getTransform:()=>({x:e.viewport.x,y:e.viewport.y,zoom:e.viewport.zoom}),fitView:(n={padding:Sr,includeHiddenNodes:!1,duration:0})=>{var o,a;const u=[];for(const B of e.nodes)B.dimensions.width&&B.dimensions.height&&(n?.includeHiddenNodes||!B.hidden)&&(!((o=n.nodes)!=null&&o.length)||(a=n.nodes)!=null&&a.length&&n.nodes.includes(B.id))&&u.push(B);if(!u.length)return Promise.resolve(!1);const{x:d,y:h,zoom:g}=ma(ha(u),e.dimensions.width,e.dimensions.height,n.minZoom??e.minZoom,n.maxZoom??e.maxZoom,n.padding??Sr);return t(d,h,g,n)},setCenter:(n,o,a)=>{const u=typeof a?.zoom<"u"?a.zoom:e.maxZoom;return t(e.dimensions.width/2-n*u,e.dimensions.height/2-o*u,u,a)},fitBounds:(n,o={padding:Sr})=>{const{x:a,y:u,zoom:d}=ma(n,e.dimensions.width,e.dimensions.height,e.minZoom,e.maxZoom,o.padding??Sr);return t(a,u,d,o)},project:n=>Nn(n,e.viewport,e.snapToGrid,e.snapGrid),screenToFlowCoordinate:n=>{if(e.vueFlowRef){const{x:o,y:a}=e.vueFlowRef.getBoundingClientRect();return Nn({x:n.x-o,y:n.y-a},e.viewport,e.snapToGrid,e.snapGrid)}return{x:0,y:0}},flowToScreenCoordinate:n=>{if(e.vueFlowRef){const{x:o,y:a}=e.vueFlowRef.getBoundingClientRect();return Dn({x:n.x+o,y:n.y+a},e.viewport)}return{x:0,y:0}}}:QB)}function fi(e,A=0,t=yB,n=()=>{}){const o=typeof A=="number"&&A>0;return o||n(),o?e.transition().duration(A).ease(t).on("end",n):e}function UB(e,A,t){const n=(0,r.effectScope)(!0);return n.run(()=>{const o=()=>{n.run(()=>{let H,N,T=!!(t.nodes.value.length||t.edges.value.length);H=zt([e.modelValue,()=>{var M,U;return(U=(M=e.modelValue)==null?void 0:M.value)==null?void 0:U.length}],([M])=>{M&&Array.isArray(M)&&(N?.pause(),t.setElements(M),!N&&!T&&M.length?T=!0:N?.resume())}),N=zt([t.nodes,t.edges,()=>t.edges.value.length,()=>t.nodes.value.length],([M,U])=>{var K;(K=e.modelValue)!=null&&K.value&&Array.isArray(e.modelValue.value)&&(H?.pause(),e.modelValue.value=[...M,...U],(0,r.nextTick)(()=>{H?.resume()}))},{immediate:T}),(0,r.onScopeDispose)(()=>{H?.stop(),N?.stop()})})},a=()=>{n.run(()=>{let H,N,T=!!t.nodes.value.length;H=zt([e.nodes,()=>{var M,U;return(U=(M=e.nodes)==null?void 0:M.value)==null?void 0:U.length}],([M])=>{M&&Array.isArray(M)&&(N?.pause(),t.setNodes(M),!N&&!T&&M.length?T=!0:N?.resume())}),N=zt([t.nodes,()=>t.nodes.value.length],([M])=>{var U;(U=e.nodes)!=null&&U.value&&Array.isArray(e.nodes.value)&&(H?.pause(),e.nodes.value=[...M],(0,r.nextTick)(()=>{H?.resume()}))},{immediate:T}),(0,r.onScopeDispose)(()=>{H?.stop(),N?.stop()})})},u=()=>{n.run(()=>{let H,N,T=!!t.edges.value.length;H=zt([e.edges,()=>{var M,U;return(U=(M=e.edges)==null?void 0:M.value)==null?void 0:U.length}],([M])=>{M&&Array.isArray(M)&&(N?.pause(),t.setEdges(M),!N&&!T&&M.length?T=!0:N?.resume())}),N=zt([t.edges,()=>t.edges.value.length],([M])=>{var U;(U=e.edges)!=null&&U.value&&Array.isArray(e.edges.value)&&(H?.pause(),e.edges.value=[...M],(0,r.nextTick)(()=>{H?.resume()}))},{immediate:T}),(0,r.onScopeDispose)(()=>{H?.stop(),N?.stop()})})},d=()=>{n.run(()=>{(0,r.watch)(()=>A.maxZoom,()=>{A.maxZoom&&se(A.maxZoom)&&t.setMaxZoom(A.maxZoom)},{immediate:!0})})},h=()=>{n.run(()=>{(0,r.watch)(()=>A.minZoom,()=>{A.minZoom&&se(A.minZoom)&&t.setMinZoom(A.minZoom)},{immediate:!0})})},g=()=>{n.run(()=>{(0,r.watch)(()=>A.translateExtent,()=>{A.translateExtent&&se(A.translateExtent)&&t.setTranslateExtent(A.translateExtent)},{immediate:!0})})},B=()=>{n.run(()=>{(0,r.watch)(()=>A.nodeExtent,()=>{A.nodeExtent&&se(A.nodeExtent)&&t.setNodeExtent(A.nodeExtent)},{immediate:!0})})},w=()=>{n.run(()=>{(0,r.watch)(()=>A.applyDefault,()=>{se(A.applyDefault)&&(t.applyDefault.value=A.applyDefault)},{immediate:!0})})},m=()=>{n.run(()=>{const H=async N=>{let T=N;typeof A.autoConnect=="function"&&(T=await A.autoConnect(N)),T!==!1&&t.addEdges([T])};(0,r.watch)(()=>A.autoConnect,()=>{se(A.autoConnect)&&(t.autoConnect.value=A.autoConnect)},{immediate:!0}),(0,r.watch)(t.autoConnect,(N,T,M)=>{N?t.onConnect(H):t.hooks.value.connect.off(H),M(()=>{t.hooks.value.connect.off(H)})},{immediate:!0})})},v=()=>{const H=["id","modelValue","translateExtent","nodeExtent","edges","nodes","maxZoom","minZoom","applyDefault","autoConnect"];for(const N of Object.keys(A)){const T=N;if(!H.includes(T)){const M=(0,r.toRef)(()=>A[T]),U=t[T];(0,r.isRef)(U)&&n.run(()=>{(0,r.watch)(M,K=>{se(K)&&(U.value=K)},{immediate:!0})})}}};o(),a(),u(),h(),d(),g(),B(),w(),m(),v()}),()=>n.stop()}function FB(){return{edgesChange:QA(),nodesChange:QA(),nodeDoubleClick:QA(),nodeClick:QA(),nodeMouseEnter:QA(),nodeMouseMove:QA(),nodeMouseLeave:QA(),nodeContextMenu:QA(),nodeDragStart:QA(),nodeDrag:QA(),nodeDragStop:QA(),nodesInitialized:QA(),miniMapNodeClick:QA(),miniMapNodeDoubleClick:QA(),miniMapNodeMouseEnter:QA(),miniMapNodeMouseMove:QA(),miniMapNodeMouseLeave:QA(),connect:QA(),connectStart:QA(),connectEnd:QA(),clickConnectStart:QA(),clickConnectEnd:QA(),paneReady:QA(),init:QA(),move:QA(),moveStart:QA(),moveEnd:QA(),selectionDragStart:QA(),selectionDrag:QA(),selectionDragStop:QA(),selectionContextMenu:QA(),selectionStart:QA(),selectionEnd:QA(),viewportChangeStart:QA(),viewportChange:QA(),viewportChangeEnd:QA(),paneScroll:QA(),paneClick:QA(),paneContextMenu:QA(),paneMouseEnter:QA(),paneMouseMove:QA(),paneMouseLeave:QA(),edgeContextMenu:QA(),edgeMouseEnter:QA(),edgeMouseMove:QA(),edgeMouseLeave:QA(),edgeDoubleClick:QA(),edgeClick:QA(),edgeUpdateStart:QA(),edgeUpdate:QA(),edgeUpdateEnd:QA(),updateNodeInternals:QA(),error:QA(e=>Tn(e.message))}}function bB(e,A){const t=(0,r.getCurrentInstance)();(0,r.onBeforeMount)(()=>{for(const[o,a]of Object.entries(A.value)){const u=d=>{e(o,d)};a.setEmitter(u),mn(a.removeEmitter),a.setHasEmitListeners(()=>n(o)),mn(a.removeHasEmitListeners)}});function n(o){var a;const u=HB(o);return!!((a=t?.vnode.props)!=null&&a[u])}}function HB(e){const[A,...t]=e.split(":");return`on${A.replace(/(?:^|-)(\w)/g,(n,o)=>o.toUpperCase())}${t.length?`:${t.join(":")}`:""}`}function $a(){return{vueFlowRef:null,viewportRef:null,nodes:[],edges:[],connectionLookup:new Map,nodeTypes:{},edgeTypes:{},initialized:!1,dimensions:{width:0,height:0},viewport:{x:0,y:0,zoom:1},d3Zoom:null,d3Selection:null,d3ZoomHandler:null,minZoom:.5,maxZoom:2,translateExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],nodeExtent:[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],selectionMode:ti.Full,paneDragging:!1,preventScrolling:!0,zoomOnScroll:!0,zoomOnPinch:!0,zoomOnDoubleClick:!0,panOnScroll:!1,panOnScrollSpeed:.5,panOnScrollMode:_n.Free,paneClickDistance:0,panOnDrag:!0,edgeUpdaterRadius:10,onlyRenderVisibleElements:!1,defaultViewport:{x:0,y:0,zoom:1},nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,defaultMarkerColor:"#b1b1b7",connectionLineStyle:{},connectionLineType:null,connectionLineOptions:{type:Dt.Bezier,style:{}},connectionMode:At.Loose,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectionPosition:{x:NaN,y:NaN},connectionRadius:20,connectOnClick:!0,connectionStatus:null,isValidConnection:null,snapGrid:[15,15],snapToGrid:!1,edgesUpdatable:!1,edgesFocusable:!0,nodesFocusable:!0,nodesConnectable:!0,nodesDraggable:!0,nodeDragThreshold:1,elementsSelectable:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,selectionKeyCode:"Shift",multiSelectionKeyCode:br()?"Meta":"Control",zoomActivationKeyCode:br()?"Meta":"Control",deleteKeyCode:"Backspace",panActivationKeyCode:"Space",hooks:FB(),applyDefault:!0,autoConnect:!1,fitViewOnInit:!1,fitViewOnInitDone:!1,noDragClassName:"nodrag",noWheelClassName:"nowheel",noPanClassName:"nopan",defaultEdgeOptions:void 0,elevateEdgesOnSelect:!1,elevateNodesOnSelect:!0,autoPanOnNodeDrag:!0,autoPanOnConnect:!0,autoPanSpeed:15,disableKeyboardA11y:!1,ariaLiveMessage:""}}var IB=["id","vueFlowRef","viewportRef","initialized","modelValue","nodes","edges","maxZoom","minZoom","translateExtent","hooks","defaultEdgeOptions"];function _B(e,A,t){const n=EB(e),o=_=>{const b=_??[];e.hooks.updateNodeInternals.trigger(b)},a=_=>Gh(_,e.nodes,e.edges),u=_=>Ph(_,e.nodes,e.edges),d=_=>pa(_,e.edges),h=({id:_,type:b,nodeId:D})=>{var X;const L=_?`-${b}-${_}`:`-${b}`;return Array.from(((X=e.connectionLookup.get(`${D}${L}`))==null?void 0:X.values())??[])},g=_=>{if(_)return A.value.get(_)},B=_=>{if(_)return t.value.get(_)},w=(_,b,D)=>{var X,L;const pA=[];for(const fA of _){const FA={id:fA.id,type:"position",dragging:D,from:fA.from};if(b&&(FA.position=fA.position,fA.parentNode)){const CA=g(fA.parentNode);FA.position={x:FA.position.x-(((X=CA?.computedPosition)==null?void 0:X.x)??0),y:FA.position.y-(((L=CA?.computedPosition)==null?void 0:L.y)??0)}}pA.push(FA)}pA?.length&&e.hooks.nodesChange.trigger(pA)},m=_=>{if(!e.vueFlowRef)return;const b=e.vueFlowRef.querySelector(".vue-flow__transformationpane");if(!b)return;const D=window.getComputedStyle(b),{m22:X}=new window.DOMMatrixReadOnly(D.transform),L=[];for(const pA of _){const fA=pA,FA=g(fA.id);if(FA){const CA=Ur(fA.nodeElement);if(CA.width&&CA.height&&(FA.dimensions.width!==CA.width||FA.dimensions.height!==CA.height||fA.forceUpdate)){const LA=fA.nodeElement.getBoundingClientRect();FA.dimensions=CA,FA.handleBounds.source=Ta("source",fA.nodeElement,LA,X,FA.id),FA.handleBounds.target=Ta("target",fA.nodeElement,LA,X,FA.id),L.push({id:FA.id,type:"dimensions",dimensions:CA})}}}!e.fitViewOnInitDone&&e.fitViewOnInit&&n.value.fitView().then(()=>{e.fitViewOnInitDone=!0}),L.length&&e.hooks.nodesChange.trigger(L)},v=(_,b)=>{const D=new Set,X=new Set;for(const fA of _)Lt(fA)?D.add(fA.id):ft(fA)&&X.add(fA.id);const L=ht(A.value,D,!0),pA=ht(t.value,X);if(e.multiSelectionActive){for(const fA of D)L.push(gt(fA,b));for(const fA of X)pA.push(gt(fA,b))}L.length&&e.hooks.nodesChange.trigger(L),pA.length&&e.hooks.edgesChange.trigger(pA)},Q=_=>{if(e.multiSelectionActive){const b=_.map(D=>gt(D.id,!0));e.hooks.nodesChange.trigger(b);return}e.hooks.nodesChange.trigger(ht(A.value,new Set(_.map(b=>b.id)),!0)),e.hooks.edgesChange.trigger(ht(t.value))},H=_=>{if(e.multiSelectionActive){const b=_.map(D=>gt(D.id,!0));e.hooks.edgesChange.trigger(b);return}e.hooks.edgesChange.trigger(ht(t.value,new Set(_.map(b=>b.id)))),e.hooks.nodesChange.trigger(ht(A.value,new Set,!0))},N=_=>{v(_,!0)},T=_=>{const b=(_||e.nodes).map(D=>(D.selected=!1,gt(D.id,!1)));e.hooks.nodesChange.trigger(b)},M=_=>{const b=(_||e.edges).map(D=>(D.selected=!1,gt(D.id,!1)));e.hooks.edgesChange.trigger(b)},U=_=>{if(!_||!_.length)return v([],!1);const b=_.reduce((D,X)=>{const L=gt(X.id,!1);return Lt(X)?D.nodes.push(L):D.edges.push(L),D},{nodes:[],edges:[]});b.nodes.length&&e.hooks.nodesChange.trigger(b.nodes),b.edges.length&&e.hooks.edgesChange.trigger(b.edges)},K=_=>{var b;(b=e.d3Zoom)==null||b.scaleExtent([_,e.maxZoom]),e.minZoom=_},eA=_=>{var b;(b=e.d3Zoom)==null||b.scaleExtent([e.minZoom,_]),e.maxZoom=_},W=_=>{var b;(b=e.d3Zoom)==null||b.translateExtent(_),e.translateExtent=_},iA=_=>{e.nodeExtent=_,o()},lA=_=>{var b;(b=e.d3Zoom)==null||b.clickDistance(_)},nA=_=>{e.nodesDraggable=_,e.nodesConnectable=_,e.elementsSelectable=_},tA=_=>{const b=_ instanceof Function?_(e.nodes):_;!e.initialized&&!b.length||(e.nodes=ka(b,g,e.hooks.error.trigger))},q=_=>{const b=_ instanceof Function?_(e.edges):_;if(!e.initialized&&!b.length)return;const D=di(b,e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);ui(e.connectionLookup,t.value,D),e.edges=D},k=_=>{const b=_ instanceof Function?_([...e.nodes,...e.edges]):_;!e.initialized&&!b.length||(tA(b.filter(Lt)),q(b.filter(ft)))},sA=_=>{let b=_ instanceof Function?_(e.nodes):_;b=Array.isArray(b)?b:[b];const D=ka(b,g,e.hooks.error.trigger),X=[];for(const L of D)X.push(Ea(L));X.length&&e.hooks.nodesChange.trigger(X)},I=_=>{let b=_ instanceof Function?_(e.edges):_;b=Array.isArray(b)?b:[b];const D=di(b,e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges),X=[];for(const L of D)X.push(Ea(L));X.length&&e.hooks.edgesChange.trigger(X)},Y=(_,b=!0,D=!1)=>{const X=_ instanceof Function?_(e.nodes):_,L=Array.isArray(X)?X:[X],pA=[],fA=[];function FA(LA){const KA=d(LA);for(const XA of KA)(!se(XA.deletable)||XA.deletable)&&fA.push(Fa(XA.id,XA.source,XA.target,XA.sourceHandle,XA.targetHandle))}function CA(LA){const KA=[];for(const XA of e.nodes)XA.parentNode===LA&&KA.push(XA);if(KA.length){for(const XA of KA)pA.push(Ua(XA.id));b&&FA(KA);for(const XA of KA)CA(XA.id)}}for(const LA of L){const KA=typeof LA=="string"?g(LA):LA;KA&&(se(KA.deletable)&&!KA.deletable||(pA.push(Ua(KA.id)),b&&FA([KA]),D&&CA(KA.id)))}fA.length&&e.hooks.edgesChange.trigger(fA),pA.length&&e.hooks.nodesChange.trigger(pA)},F=_=>{const b=_ instanceof Function?_(e.edges):_,D=Array.isArray(b)?b:[b],X=[];for(const L of D){const pA=typeof L=="string"?B(L):L;pA&&(se(pA.deletable)&&!pA.deletable||X.push(Fa(typeof L=="string"?L:L.id,pA.source,pA.target,pA.sourceHandle,pA.targetHandle)))}e.hooks.edgesChange.trigger(X)},S=(_,b,D=!0)=>{const X=B(_.id);if(!X)return!1;const L=e.edges.indexOf(X),pA=fB(_,b,X,D,e.hooks.error.trigger);if(pA){const[fA]=di([pA],e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);return e.edges=e.edges.map((FA,CA)=>CA===L?fA:FA),ui(e.connectionLookup,t.value,[fA]),fA}return!1},P=(_,b,D={replace:!1})=>{const X=B(_);if(!X)return;const L=typeof b=="function"?b(X):b;X.data=D.replace?L:{...X.data,...L}},R=_=>Qa(_,e.nodes),z=_=>{const b=Qa(_,e.edges);return ui(e.connectionLookup,t.value,b),b},J=(_,b,D={replace:!1})=>{const X=g(_);if(!X)return;const L=typeof b=="function"?b(X):b;D.replace?e.nodes.splice(e.nodes.indexOf(X),1,L):Object.assign(X,L)},rA=(_,b,D={replace:!1})=>{const X=g(_);if(!X)return;const L=typeof b=="function"?b(X):b;X.data=D.replace?L:{...X.data,...L}},dA=(_,b,D=!1)=>{D?e.connectionClickStartHandle=_:e.connectionStartHandle=_,e.connectionEndHandle=null,e.connectionStatus=null,b&&(e.connectionPosition=b)},bA=(_,b=null,D=null)=>{e.connectionStartHandle&&(e.connectionPosition=_,e.connectionEndHandle=b,e.connectionStatus=D)},AA=(_,b)=>{e.connectionPosition={x:NaN,y:NaN},e.connectionEndHandle=null,e.connectionStatus=null,b?e.connectionClickStartHandle=null:e.connectionStartHandle=null},cA=_=>{const b=Rh(_),D=b?null:xn(_)?_:g(_.id);return!b&&!D?[null,null,b]:[b?_:Qr(D),D,b]},V=(_,b=!0,D=e.nodes)=>{const[X,L,pA]=cA(_);if(!X)return[];const fA=[];for(const FA of D||e.nodes){if(!pA&&(FA.id===L.id||!FA.computedPosition))continue;const CA=Qr(FA),LA=Er(CA,X);(b&&LA>0||LA>=CA.width*CA.height||LA>=Number(X.width)*Number(X.height))&&fA.push(FA)}return fA},$=(_,b,D=!0)=>{const[X]=cA(_);if(!X)return!1;const L=Er(X,b);return D&&L>0||L>=Number(X.width)*Number(X.height)},uA=_=>{const{viewport:b,dimensions:D,d3Zoom:X,d3Selection:L,translateExtent:pA}=e;if(!X||!L||!_.x&&!_.y)return!1;const fA=Jt.translate(b.x+_.x,b.y+_.y).scale(b.zoom),FA=[[0,0],[D.width,D.height]],CA=X.constrain()(fA,FA,pA),LA=e.viewport.x!==CA.x||e.viewport.y!==CA.y||e.viewport.zoom!==CA.k;return X.transform(L,CA),LA},BA=_=>{const b=_ instanceof Function?_(e):_,D=["d3Zoom","d3Selection","d3ZoomHandler","viewportRef","vueFlowRef","dimensions","hooks"];se(b.defaultEdgeOptions)&&(e.defaultEdgeOptions=b.defaultEdgeOptions);const X=b.modelValue||b.nodes||b.edges?[]:void 0;X&&(b.modelValue&&X.push(...b.modelValue),b.nodes&&X.push(...b.nodes),b.edges&&X.push(...b.edges),k(X));const L=()=>{se(b.maxZoom)&&eA(b.maxZoom),se(b.minZoom)&&K(b.minZoom),se(b.translateExtent)&&W(b.translateExtent)};for(const pA of Object.keys(b)){const fA=pA,FA=b[fA];![...IB,...D].includes(fA)&&se(FA)&&(e[fA]=FA)}Lo(()=>e.d3Zoom).not.toBeNull().then(L),e.initialized||(e.initialized=!0)};return{updateNodePositions:w,updateNodeDimensions:m,setElements:k,setNodes:tA,setEdges:q,addNodes:sA,addEdges:I,removeNodes:Y,removeEdges:F,findNode:g,findEdge:B,updateEdge:S,updateEdgeData:P,updateNode:J,updateNodeData:rA,applyEdgeChanges:z,applyNodeChanges:R,addSelectedElements:N,addSelectedNodes:Q,addSelectedEdges:H,setMinZoom:K,setMaxZoom:eA,setTranslateExtent:W,setNodeExtent:iA,setPaneClickDistance:lA,removeSelectedElements:U,removeSelectedNodes:T,removeSelectedEdges:M,startConnection:dA,updateConnection:bA,endConnection:AA,setInteractive:nA,setState:BA,getIntersectingNodes:V,getIncomers:a,getOutgoers:u,getConnectedEdges:d,getHandleConnections:h,isNodeIntersecting:$,panBy:uA,fitView:_=>n.value.fitView(_),zoomIn:_=>n.value.zoomIn(_),zoomOut:_=>n.value.zoomOut(_),zoomTo:(_,b)=>n.value.zoomTo(_,b),setViewport:(_,b)=>n.value.setViewport(_,b),setTransform:(_,b)=>n.value.setTransform(_,b),getViewport:()=>n.value.getViewport(),getTransform:()=>n.value.getTransform(),setCenter:(_,b,D)=>n.value.setCenter(_,b,D),fitBounds:(_,b)=>n.value.fitBounds(_,b),project:_=>n.value.project(_),screenToFlowCoordinate:_=>n.value.screenToFlowCoordinate(_),flowToScreenCoordinate:_=>n.value.flowToScreenCoordinate(_),toObject:()=>{const _=[],b=[];for(const D of e.nodes){const{computedPosition:X,handleBounds:L,selected:pA,dimensions:fA,isParent:FA,resizing:CA,dragging:LA,events:KA,...XA}=D;_.push(XA)}for(const D of e.edges){const{selected:X,sourceNode:L,targetNode:pA,events:fA,...FA}=D;b.push(FA)}return JSON.parse(JSON.stringify({nodes:_,edges:b,position:[e.viewport.x,e.viewport.y],zoom:e.viewport.zoom,viewport:e.viewport}))},fromObject:_=>new Promise(b=>{const{nodes:D,edges:X,position:L,zoom:pA,viewport:fA}=_;D&&tA(D),X&&q(X);const[FA,CA]=fA?.x&&fA?.y?[fA.x,fA.y]:L??[null,null];if(FA&&CA){const LA=fA?.zoom||pA||e.viewport.zoom;return Lo(()=>n.value.viewportInitialized).toBe(!0).then(()=>{n.value.setViewport({x:FA,y:CA,zoom:LA}).then(()=>{b(!0)})})}else b(!0)}),updateNodeInternals:o,viewportHelper:n,$reset:()=>{const _=$a();if(e.edges=[],e.nodes=[],e.d3Zoom&&e.d3Selection){const b=Jt.translate(_.defaultViewport.x??0,_.defaultViewport.y??0).scale(Nt(_.defaultViewport.zoom??1,_.minZoom,_.maxZoom)),D=e.viewportRef.getBoundingClientRect(),X=[[0,0],[D.width,D.height]],L=e.d3Zoom.constrain()(b,X,_.translateExtent);e.d3Zoom.transform(e.d3Selection,L)}BA(_)},$destroy:()=>{}}}var SB=["data-id","data-handleid","data-nodeid","data-handlepos"],An=(0,r.defineComponent)({name:"Handle",compatConfig:{MODE:3},props:{id:{default:null},type:{},position:{default:()=>IA.Top},isValidConnection:{type:Function},connectable:{type:[Boolean,Number,String,Function],default:void 0},connectableStart:{type:Boolean,default:!0},connectableEnd:{type:Boolean,default:!0}},setup(e,{expose:A}){const t=(0,r.createPropsRestProxy)(e,["position","connectable","connectableStart","connectableEnd","id"]),n=(0,r.toRef)(()=>t.type??"source"),o=(0,r.toRef)(()=>t.isValidConnection??null),{id:a,connectionStartHandle:u,connectionClickStartHandle:d,connectionEndHandle:h,vueFlowRef:g,nodesConnectable:B,noDragClassName:w,noPanClassName:m}=YA(),{id:v,node:Q,nodeEl:H,connectedEdges:N}=za(),T=(0,r.ref)(),M=(0,r.toRef)(()=>typeof e.connectableStart<"u"?e.connectableStart:!0),U=(0,r.toRef)(()=>typeof e.connectableEnd<"u"?e.connectableEnd:!0),K=(0,r.toRef)(()=>{var q,k,sA,I,Y,F;return((q=u.value)==null?void 0:q.nodeId)===v&&((k=u.value)==null?void 0:k.id)===e.id&&((sA=u.value)==null?void 0:sA.type)===n.value||((I=h.value)==null?void 0:I.nodeId)===v&&((Y=h.value)==null?void 0:Y.id)===e.id&&((F=h.value)==null?void 0:F.type)===n.value}),eA=(0,r.toRef)(()=>{var q,k,sA;return((q=d.value)==null?void 0:q.nodeId)===v&&((k=d.value)==null?void 0:k.id)===e.id&&((sA=d.value)==null?void 0:sA.type)===n.value}),{handlePointerDown:W,handleClick:iA}=Ga({nodeId:v,handleId:e.id,isValidConnection:o,type:n}),lA=(0,r.computed)(()=>typeof e.connectable=="string"&&e.connectable==="single"?!N.value.some(q=>{const k=q[`${n.value}Handle`];return q[n.value]!==v?!1:k?k===e.id:!0}):typeof e.connectable=="number"?N.value.filter(q=>{const k=q[`${n.value}Handle`];return q[n.value]!==v?!1:k?k===e.id:!0}).length<e.connectable:typeof e.connectable=="function"?e.connectable(Q,N.value):se(e.connectable)?e.connectable:B.value);(0,r.onMounted)(()=>{var q;if(!Q.dimensions.width||!Q.dimensions.height)return;const k=(q=Q.handleBounds[n.value])==null?void 0:q.find(R=>R.id===e.id);if(!g.value||k)return;const sA=g.value.querySelector(".vue-flow__transformationpane");if(!H.value||!T.value||!sA||!e.id)return;const I=H.value.getBoundingClientRect(),Y=T.value.getBoundingClientRect(),F=window.getComputedStyle(sA),{m22:S}=new window.DOMMatrixReadOnly(F.transform),P={id:e.id,position:e.position,x:(Y.left-I.left)/S,y:(Y.top-I.top)/S,type:n.value,nodeId:v,...Ur(T.value)};Q.handleBounds[n.value]=[...Q.handleBounds[n.value]??[],P]});function nA(q){const k=si(q);lA.value&&M.value&&(k&&q.button===0||!k)&&W(q)}function tA(q){!v||!d.value&&!M.value||lA.value&&iA(q)}return A({handleClick:iA,handlePointerDown:W,onClick:tA,onPointerDown:nA}),(q,k)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"handle",ref:T,"data-id":`${(0,r.unref)(a)}-${(0,r.unref)(v)}-${e.id}-${n.value}`,"data-handleid":e.id,"data-nodeid":(0,r.unref)(v),"data-handlepos":q.position,class:(0,r.normalizeClass)(["vue-flow__handle",[`vue-flow__handle-${q.position}`,`vue-flow__handle-${e.id}`,(0,r.unref)(w),(0,r.unref)(m),n.value,{connectable:lA.value,connecting:eA.value,connectablestart:M.value,connectableend:U.value,connectionindicator:lA.value&&(M.value&&!K.value||U.value&&K.value)}]]),onMousedown:nA,onTouchstartPassive:nA,onClick:tA},[(0,r.renderSlot)(q.$slots,"default",{id:q.id})],42,SB))}}),xr=function({sourcePosition:e=IA.Bottom,targetPosition:A=IA.Top,label:t,connectable:n=!0,isValidTargetPos:o,isValidSourcePos:a,data:u}){const d=u.label??t;return[(0,r.h)(An,{type:"target",position:A,connectable:n,isValidConnection:o}),typeof d!="string"&&d?(0,r.h)(d):(0,r.h)(r.Fragment,[d]),(0,r.h)(An,{type:"source",position:e,connectable:n,isValidConnection:a})]};xr.props=["sourcePosition","targetPosition","label","isValidTargetPos","isValidSourcePos","connectable","data"],xr.inheritAttrs=!1,xr.compatConfig={MODE:3};var xB=xr,Dr=function({targetPosition:e=IA.Top,label:A,connectable:t=!0,isValidTargetPos:n,data:o}){const a=o.label??A;return[(0,r.h)(An,{type:"target",position:e,connectable:t,isValidConnection:n}),typeof a!="string"&&a?(0,r.h)(a):(0,r.h)(r.Fragment,[a])]};Dr.props=["targetPosition","label","isValidTargetPos","connectable","data"],Dr.inheritAttrs=!1,Dr.compatConfig={MODE:3};var DB=Dr,Nr=function({sourcePosition:e=IA.Bottom,label:A,connectable:t=!0,isValidSourcePos:n,data:o}){const a=o.label??A;return[typeof a!="string"&&a?(0,r.h)(a):(0,r.h)(r.Fragment,[a]),(0,r.h)(An,{type:"source",position:e,connectable:t,isValidConnection:n})]};Nr.props=["sourcePosition","label","isValidSourcePos","connectable","data"],Nr.inheritAttrs=!1,Nr.compatConfig={MODE:3};var NB=Nr,LB=["transform"],TB=["width","height","x","y","rx","ry"],kB=["y"],MB=(0,r.defineComponent)({name:"EdgeText",compatConfig:{MODE:3},props:{x:{},y:{},label:{},labelStyle:{default:()=>({})},labelShowBg:{type:Boolean,default:!0},labelBgStyle:{default:()=>({})},labelBgPadding:{default:()=>[2,4]},labelBgBorderRadius:{default:2}},setup(e){const A=(0,r.ref)({x:0,y:0,width:0,height:0}),t=(0,r.ref)(null),n=(0,r.computed)(()=>`translate(${e.x-A.value.width/2} ${e.y-A.value.height/2})`);(0,r.onMounted)(o),(0,r.watch)([()=>e.x,()=>e.y,t,()=>e.label],o);function o(){if(!t.value)return;const a=t.value.getBBox();(a.width!==A.value.width||a.height!==A.value.height)&&(A.value=a)}return(a,u)=>((0,r.openBlock)(),(0,r.createElementBlock)("g",{transform:n.value,class:"vue-flow__edge-textwrapper"},[a.labelShowBg?((0,r.openBlock)(),(0,r.createElementBlock)("rect",{key:0,class:"vue-flow__edge-textbg",width:`${A.value.width+2*a.labelBgPadding[0]}px`,height:`${A.value.height+2*a.labelBgPadding[1]}px`,x:-a.labelBgPadding[0],y:-a.labelBgPadding[1],style:(0,r.normalizeStyle)(a.labelBgStyle),rx:a.labelBgBorderRadius,ry:a.labelBgBorderRadius},null,12,TB)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("text",(0,r.mergeProps)(a.$attrs,{ref_key:"el",ref:t,class:"vue-flow__edge-text",y:A.value.height/2,dy:"0.3em",style:a.labelStyle}),[(0,r.renderSlot)(a.$slots,"default",{},()=>[typeof a.label!="string"?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(a.label),{key:0})):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(a.label),1)],64))])],16,kB)],8,LB))}}),KB=["id","d","marker-end","marker-start"],OB=["d","stroke-width"],kn=(0,r.defineComponent)({name:"BaseEdge",inheritAttrs:!1,compatConfig:{MODE:3},props:{id:{},labelX:{},labelY:{},path:{},label:{},markerStart:{},markerEnd:{},interactionWidth:{default:20},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{}},setup(e,{expose:A}){const t=(0,r.ref)(null),n=(0,r.ref)(null),o=(0,r.ref)(null),a=(0,r.useAttrs)();return A({pathEl:t,interactionEl:n,labelEl:o}),(u,d)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("path",(0,r.mergeProps)((0,r.unref)(a),{id:u.id,ref_key:"pathEl",ref:t,d:u.path,class:"vue-flow__edge-path","marker-end":u.markerEnd,"marker-start":u.markerStart}),null,16,KB),u.interactionWidth?((0,r.openBlock)(),(0,r.createElementBlock)("path",{key:0,ref_key:"interactionEl",ref:n,fill:"none",d:u.path,"stroke-width":u.interactionWidth,"stroke-opacity":0,class:"vue-flow__edge-interaction"},null,8,OB)):(0,r.createCommentVNode)("",!0),u.label&&u.labelX&&u.labelY?((0,r.openBlock)(),(0,r.createBlock)(MB,{key:1,ref_key:"labelEl",ref:o,x:u.labelX,y:u.labelY,label:u.label,"label-show-bg":u.labelShowBg,"label-bg-style":u.labelBgStyle,"label-bg-padding":u.labelBgPadding,"label-bg-border-radius":u.labelBgBorderRadius,"label-style":u.labelStyle},null,8,["x","y","label","label-show-bg","label-bg-style","label-bg-padding","label-bg-border-radius","label-style"])):(0,r.createCommentVNode)("",!0)],64))}});function Wa({sourceX:e,sourceY:A,targetX:t,targetY:n}){const o=Math.abs(t-e)/2,a=t<e?t+o:t-o,u=Math.abs(n-A)/2;return[a,n<A?n+u:n-u,o,u]}function Ya({sourceX:e,sourceY:A,targetX:t,targetY:n,sourceControlX:o,sourceControlY:a,targetControlX:u,targetControlY:d}){const h=e*.125+o*.375+u*.375+t*.125,g=A*.125+a*.375+d*.375+n*.125;return[h,g,Math.abs(h-e),Math.abs(g-A)]}function Lr(e,A){return e>=0?.5*e:A*25*Math.sqrt(-e)}function Ja({pos:e,x1:A,y1:t,x2:n,y2:o,c:a}){let u,d;switch(e){case IA.Left:u=A-Lr(A-n,a),d=t;break;case IA.Right:u=A+Lr(n-A,a),d=t;break;case IA.Top:u=A,d=t-Lr(t-o,a);break;case IA.Bottom:u=A,d=t+Lr(o-t,a);break}return[u,d]}function gi(e){const{sourceX:A,sourceY:t,sourcePosition:n=IA.Bottom,targetX:o,targetY:a,targetPosition:u=IA.Top,curvature:d=.25}=e,[h,g]=Ja({pos:n,x1:A,y1:t,x2:o,y2:a,c:d}),[B,w]=Ja({pos:u,x1:o,y1:a,x2:A,y2:t,c:d}),[m,v,Q,H]=Ya({sourceX:A,sourceY:t,targetX:o,targetY:a,sourceControlX:h,sourceControlY:g,targetControlX:B,targetControlY:w});return[`M${A},${t} C${h},${g} ${B},${w} ${o},${a}`,m,v,Q,H]}function Za({pos:e,x1:A,y1:t,x2:n,y2:o}){let a,u;switch(e){case IA.Left:case IA.Right:a=.5*(A+n),u=t;break;case IA.Top:case IA.Bottom:a=A,u=.5*(t+o);break}return[a,u]}function ja(e){const{sourceX:A,sourceY:t,sourcePosition:n=IA.Bottom,targetX:o,targetY:a,targetPosition:u=IA.Top}=e,[d,h]=Za({pos:n,x1:A,y1:t,x2:o,y2:a}),[g,B]=Za({pos:u,x1:o,y1:a,x2:A,y2:t}),[w,m,v,Q]=Ya({sourceX:A,sourceY:t,targetX:o,targetY:a,sourceControlX:d,sourceControlY:h,targetControlX:g,targetControlY:B});return[`M${A},${t} C${d},${h} ${g},${B} ${o},${a}`,w,m,v,Q]}var qa={[IA.Left]:{x:-1,y:0},[IA.Right]:{x:1,y:0},[IA.Top]:{x:0,y:-1},[IA.Bottom]:{x:0,y:1}};function RB({source:e,sourcePosition:A=IA.Bottom,target:t}){return A===IA.Left||A===IA.Right?e.x<t.x?{x:1,y:0}:{x:-1,y:0}:e.y<t.y?{x:0,y:1}:{x:0,y:-1}}function Al(e,A){return Math.sqrt((A.x-e.x)**2+(A.y-e.y)**2)}function VB({source:e,sourcePosition:A=IA.Bottom,target:t,targetPosition:n=IA.Top,center:o,offset:a}){const u=qa[A],d=qa[n],h={x:e.x+u.x*a,y:e.y+u.y*a},g={x:t.x+d.x*a,y:t.y+d.y*a},B=RB({source:h,sourcePosition:A,target:g}),w=B.x!==0?"x":"y",m=B[w];let v,Q,H;const N={x:0,y:0},T={x:0,y:0},[M,U,K,eA]=Wa({sourceX:e.x,sourceY:e.y,targetX:t.x,targetY:t.y});if(u[w]*d[w]===-1){Q=o.x??M,H=o.y??U;const W=[{x:Q,y:h.y},{x:Q,y:g.y}],iA=[{x:h.x,y:H},{x:g.x,y:H}];u[w]===m?v=w==="x"?W:iA:v=w==="x"?iA:W}else{const W=[{x:h.x,y:g.y}],iA=[{x:g.x,y:h.y}];if(w==="x"?v=u.x===m?iA:W:v=u.y===m?W:iA,A===n){const tA=Math.abs(e[w]-t[w]);if(tA<=a){const q=Math.min(a-1,a-tA);u[w]===m?N[w]=(h[w]>e[w]?-1:1)*q:T[w]=(g[w]>t[w]?-1:1)*q}}if(A!==n){const tA=w==="x"?"y":"x",q=u[w]===d[tA],k=h[tA]>g[tA],sA=h[tA]<g[tA];(u[w]===1&&(!q&&k||q&&sA)||u[w]!==1&&(!q&&sA||q&&k))&&(v=w==="x"?W:iA)}const lA={x:h.x+N.x,y:h.y+N.y},nA={x:g.x+T.x,y:g.y+T.y};Math.max(Math.abs(lA.x-v[0].x),Math.abs(nA.x-v[0].x))>=Math.max(Math.abs(lA.y-v[0].y),Math.abs(nA.y-v[0].y))?(Q=(lA.x+nA.x)/2,H=v[0].y):(Q=v[0].x,H=(lA.y+nA.y)/2)}return[[e,{x:h.x+N.x,y:h.y+N.y},...v,{x:g.x+T.x,y:g.y+T.y},t],Q,H,K,eA]}function PB(e,A,t,n){const o=Math.min(Al(e,A)/2,Al(A,t)/2,n),{x:a,y:u}=A;if(e.x===a&&a===t.x||e.y===u&&u===t.y)return`L${a} ${u}`;if(e.y===u){const h=e.x<t.x?-1:1,g=e.y<t.y?1:-1;return`L ${a+o*h},${u}Q ${a},${u} ${a},${u+o*g}`}const d=e.x<t.x?1:-1;return`L ${a},${u+o*(e.y<t.y?-1:1)}Q ${a},${u} ${a+o*d},${u}`}function hi(e){const{sourceX:A,sourceY:t,sourcePosition:n=IA.Bottom,targetX:o,targetY:a,targetPosition:u=IA.Top,borderRadius:d=5,centerX:h,centerY:g,offset:B=20}=e,[w,m,v,Q,H]=VB({source:{x:A,y:t},sourcePosition:n,target:{x:o,y:a},targetPosition:u,center:{x:h,y:g},offset:B});return[w.reduce((N,T,M)=>{let U;return M>0&&M<w.length-1?U=PB(w[M-1],T,w[M+1],d):U=`${M===0?"M":"L"}${T.x} ${T.y}`,N+=U,N},""),m,v,Q,H]}function GB(e){const{sourceX:A,sourceY:t,targetX:n,targetY:o}=e,[a,u,d,h]=Wa({sourceX:A,sourceY:t,targetX:n,targetY:o});return[`M ${A},${t}L ${n},${o}`,a,u,d,h]}var zB=(0,r.defineComponent)({name:"StraightEdge",props:["label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(e,{attrs:A}){return()=>{const[t,n,o]=GB(e);return(0,r.h)(kn,{path:t,labelX:n,labelY:o,...A,...e})}}}),el=(0,r.defineComponent)({name:"SmoothStepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","borderRadius","markerEnd","markerStart","interactionWidth","offset"],compatConfig:{MODE:3},setup(e,{attrs:A}){return()=>{const[t,n,o]=hi({...e,sourcePosition:e.sourcePosition??IA.Bottom,targetPosition:e.targetPosition??IA.Top});return(0,r.h)(kn,{path:t,labelX:n,labelY:o,...A,...e})}}}),XB=(0,r.defineComponent)({name:"StepEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],setup(e,{attrs:A}){return()=>(0,r.h)(el,{...e,...A,borderRadius:0})}}),$B=(0,r.defineComponent)({name:"BezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","curvature","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(e,{attrs:A}){return()=>{const[t,n,o]=gi({...e,sourcePosition:e.sourcePosition??IA.Bottom,targetPosition:e.targetPosition??IA.Top});return(0,r.h)(kn,{path:t,labelX:n,labelY:o,...A,...e})}}}),WB=(0,r.defineComponent)({name:"SimpleBezierEdge",props:["sourcePosition","targetPosition","label","labelStyle","labelShowBg","labelBgStyle","labelBgPadding","labelBgBorderRadius","sourceY","sourceX","targetX","targetY","markerEnd","markerStart","interactionWidth"],compatConfig:{MODE:3},setup(e,{attrs:A}){return()=>{const[t,n,o]=ja({...e,sourcePosition:e.sourcePosition??IA.Bottom,targetPosition:e.targetPosition??IA.Top});return(0,r.h)(kn,{path:t,labelX:n,labelY:o,...A,...e})}}}),YB={input:NB,default:xB,output:DB},JB={default:$B,straight:zB,step:XB,smoothstep:el,simplebezier:WB};function ZB(e,A,t){const n=(0,r.computed)(()=>Q=>A.value.get(Q)),o=(0,r.computed)(()=>Q=>t.value.get(Q)),a=(0,r.computed)(()=>{const Q={...JB,...e.edgeTypes},H=Object.keys(Q);for(const N of e.edges)N.type&&!H.includes(N.type)&&(Q[N.type]=N.type);return Q}),u=(0,r.computed)(()=>{const Q={...YB,...e.nodeTypes},H=Object.keys(Q);for(const N of e.nodes)N.type&&!H.includes(N.type)&&(Q[N.type]=N.type);return Q}),d=(0,r.computed)(()=>e.onlyRenderVisibleElements?Ba(e.nodes,{x:0,y:0,width:e.dimensions.width,height:e.dimensions.height},e.viewport,!0):e.nodes),h=(0,r.computed)(()=>{if(e.onlyRenderVisibleElements){const Q=[];for(const H of e.edges){const N=A.value.get(H.source),T=A.value.get(H.target);eB({sourcePos:N.computedPosition||{x:0,y:0},targetPos:T.computedPosition||{x:0,y:0},sourceWidth:N.dimensions.width,sourceHeight:N.dimensions.height,targetWidth:T.dimensions.width,targetHeight:T.dimensions.height,width:e.dimensions.width,height:e.dimensions.height,viewport:e.viewport})&&Q.push(H)}return Q}return e.edges}),g=(0,r.computed)(()=>[...d.value,...h.value]),B=(0,r.computed)(()=>{const Q=[];for(const H of e.nodes)H.selected&&Q.push(H);return Q}),w=(0,r.computed)(()=>{const Q=[];for(const H of e.edges)H.selected&&Q.push(H);return Q}),m=(0,r.computed)(()=>[...B.value,...w.value]),v=(0,r.computed)(()=>{const Q=[];for(const H of e.nodes)H.dimensions.width&&H.dimensions.height&&H.handleBounds!==void 0&&Q.push(H);return Q});return{getNode:n,getEdge:o,getElements:g,getEdgeTypes:a,getNodeTypes:u,getEdges:h,getNodes:d,getSelectedElements:m,getSelectedNodes:B,getSelectedEdges:w,getNodesInitialized:v,areNodesInitialized:(0,r.computed)(()=>d.value.length>0&&v.value.length===d.value.length)}}var jB=class hn{constructor(){this.currentId=0,this.flows=new Map}static getInstance(){var A;const t=(A=(0,r.getCurrentInstance)())==null?void 0:A.appContext.app;return hn.instance=t?.config.globalProperties.$vueFlowStorage??hn.instance??new hn,t&&(t.config.globalProperties.$vueFlowStorage=hn.instance),hn.instance}set(A,t){return this.flows.set(A,t)}get(A){return this.flows.get(A)}remove(A){return this.flows.delete(A)}create(A,t){const n=(0,r.reactive)($a()),o={};for(const[w,m]of Object.entries(n.hooks)){const v=`on${w.charAt(0).toUpperCase()+w.slice(1)}`;o[v]=m.on}const a={};for(const[w,m]of Object.entries(n.hooks))a[w]=m.trigger;const u=(0,r.computed)(()=>{const w=new Map;for(const m of n.nodes)w.set(m.id,m);return w}),d=(0,r.computed)(()=>{const w=new Map;for(const m of n.edges)w.set(m.id,m);return w}),h=ZB(n,u,d),g=_B(n,u,d);g.setState({...n,...t});const B={...o,...h,...g,...Yu(n),nodeLookup:u,edgeLookup:d,emits:a,id:A,vueFlowVersion:"1.48.2",$destroy:()=>{this.remove(A)}};return this.set(A,B),B}getId(){return`vue-flow-${this.currentId++}`}};function YA(e){const A=jB.getInstance(),t=(0,r.getCurrentScope)(),n=typeof e=="object",o=n?e:{id:e},a=o.id,u=a??t?.vueFlowId;let d;if(t){const h=(0,r.inject)(Oa,null);typeof h<"u"&&h!==null&&(!u||h.id===u)&&(d=h)}if(d||u&&(d=A.get(u)),!d||u&&d.id!==u){const h=a??A.getId(),g=A.create(h,o);d=g,(t??(0,r.effectScope)(!0)).run(()=>{(0,r.watch)(g.applyDefault,(B,w,m)=>{const v=H=>{g.applyNodeChanges(H)},Q=H=>{g.applyEdgeChanges(H)};B?(g.onNodesChange(v),g.onEdgesChange(Q)):(g.hooks.value.nodesChange.off(v),g.hooks.value.edgesChange.off(Q)),m(()=>{g.hooks.value.nodesChange.off(v),g.hooks.value.edgesChange.off(Q)})},{immediate:!0}),mn(()=>{if(d){const B=A.get(d.id);B?B.$destroy():Tn(`No store instance found for id ${d.id} in storage.`)}})})}else n&&d.setState(o);if(t&&((0,r.provide)(Oa,d),t.vueFlowId=d.id),n){const h=(0,r.getCurrentInstance)();h?.type.name!=="VueFlow"&&d.emits.error(new ce(ie.USEVUEFLOW_OPTIONS))}return d}function qB(e){const{emits:A,dimensions:t}=YA();let n;(0,r.onMounted)(()=>{const o=()=>{var a,u;if(!e.value||!(((u=(a=e.value).checkVisibility)==null?void 0:u.call(a))??!0))return;const d=Ur(e.value);(d.width===0||d.height===0)&&A.error(new ce(ie.MISSING_VIEWPORT_DIMENSIONS)),t.value={width:d.width||500,height:d.height||500}};o(),window.addEventListener("resize",o),e.value&&(n=new ResizeObserver(()=>o()),n.observe(e.value)),(0,r.onBeforeUnmount)(()=>{window.removeEventListener("resize",o),n&&e.value&&n.unobserve(e.value)})})}var Ap=(0,r.defineComponent)({name:"UserSelection",compatConfig:{MODE:3},props:{userSelectionRect:{}},setup(e){return(A,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"vue-flow__selection vue-flow__container",style:(0,r.normalizeStyle)({width:`${A.userSelectionRect.width}px`,height:`${A.userSelectionRect.height}px`,transform:`translate(${A.userSelectionRect.x}px, ${A.userSelectionRect.y}px)`})},null,4))}}),ep=["tabIndex"],tp=(0,r.defineComponent)({name:"NodesSelection",compatConfig:{MODE:3},setup(e){const{emits:A,viewport:t,getSelectedNodes:n,noPanClassName:o,disableKeyboardA11y:a,userSelectionActive:u}=YA(),d=Xa(),h=(0,r.ref)(null),g=Pa({el:h,onStart(Q){A.selectionDragStart(Q),A.nodeDragStart(Q)},onDrag(Q){A.selectionDrag(Q),A.nodeDrag(Q)},onStop(Q){A.selectionDragStop(Q),A.nodeDragStop(Q)}});(0,r.onMounted)(()=>{var Q;a.value||(Q=h.value)==null||Q.focus({preventScroll:!0})});const B=(0,r.computed)(()=>ha(n.value)),w=(0,r.computed)(()=>({width:`${B.value.width}px`,height:`${B.value.height}px`,top:`${B.value.y}px`,left:`${B.value.x}px`}));function m(Q){A.selectionContextMenu({event:Q,nodes:n.value})}function v(Q){a.value||Zt[Q.key]&&(Q.preventDefault(),d({x:Zt[Q.key].x,y:Zt[Q.key].y},Q.shiftKey))}return(Q,H)=>!(0,r.unref)(u)&&B.value.width&&B.value.height?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["vue-flow__nodesselection vue-flow__container",(0,r.unref)(o)]),style:(0,r.normalizeStyle)({transform:`translate(${(0,r.unref)(t).x}px,${(0,r.unref)(t).y}px) scale(${(0,r.unref)(t).zoom})`})},[(0,r.createElementVNode)("div",{ref_key:"el",ref:h,class:(0,r.normalizeClass)([{dragging:(0,r.unref)(g)},"vue-flow__nodesselection-rect"]),style:(0,r.normalizeStyle)(w.value),tabIndex:(0,r.unref)(a)?void 0:-1,onContextmenu:m,onKeydown:v},null,46,ep)],6)):(0,r.createCommentVNode)("",!0)}});function np(e,A){return{x:e.clientX-A.left,y:e.clientY-A.top}}var rp=(0,r.defineComponent)({name:"Pane",compatConfig:{MODE:3},props:{isSelecting:{type:Boolean},selectionKeyPressed:{type:Boolean}},setup(e){const{vueFlowRef:A,nodes:t,viewport:n,emits:o,userSelectionActive:a,removeSelectedElements:u,userSelectionRect:d,elementsSelectable:h,nodesSelectionActive:g,getSelectedEdges:B,getSelectedNodes:w,removeNodes:m,removeEdges:v,selectionMode:Q,deleteKeyCode:H,multiSelectionKeyCode:N,multiSelectionActive:T,edgeLookup:M,nodeLookup:U,connectionLookup:K,defaultEdgeOptions:eA,connectionStartHandle:W,panOnDrag:iA}=YA(),lA=(0,r.shallowRef)(null),nA=(0,r.shallowRef)(new Set),tA=(0,r.shallowRef)(new Set),q=(0,r.shallowRef)(null),k=(0,r.toRef)(()=>h.value&&(e.isSelecting||a.value)),sA=(0,r.toRef)(()=>W.value!==null);let I=!1,Y=!1;const F=Sn(H,{actInsideInputWithModifier:!1}),S=Sn(N);(0,r.watch)(F,AA=>{AA&&(m(w.value),v(B.value),g.value=!1)}),(0,r.watch)(S,AA=>{T.value=AA});function P(AA,cA){return V=>{V.target===cA&&AA?.(V)}}function R(AA){if(I||sA.value){I=!1;return}o.paneClick(AA),u(),g.value=!1}function z(AA){var cA;if(Array.isArray(iA.value)&&((cA=iA.value)!=null&&cA.includes(2))){AA.preventDefault();return}o.paneContextMenu(AA)}function J(AA){o.paneScroll(AA)}function rA(AA){var cA,V,$;if(q.value=((cA=A.value)==null?void 0:cA.getBoundingClientRect())??null,!h.value||!e.isSelecting||AA.button!==0||AA.target!==lA.value||!q.value)return;($=(V=AA.target)==null?void 0:V.setPointerCapture)==null||$.call(V,AA.pointerId);const{x:uA,y:BA}=np(AA,q.value);Y=!0,I=!1,u(),d.value={width:0,height:0,startX:uA,startY:BA,x:uA,y:BA},o.selectionStart(AA)}function dA(AA){var cA;if(!q.value||!d.value)return;I=!0;const{x:V,y:$}=Ge(AA,q.value),{startX:uA=0,startY:BA=0}=d.value,HA={startX:uA,startY:BA,x:V<uA?V:uA,y:$<BA?$:BA,width:Math.abs(V-uA),height:Math.abs($-BA)},aA=nA.value,wA=tA.value;nA.value=new Set(Ba(t.value,HA,n.value,Q.value===ti.Partial,!0).map(b=>b.id)),tA.value=new Set;const _=((cA=eA.value)==null?void 0:cA.selectable)??!0;for(const b of nA.value){const D=K.value.get(b);if(D)for(const{edgeId:X}of D.values()){const L=M.value.get(X);L&&(L.selectable??_)&&tA.value.add(X)}}if(!Ka(aA,nA.value)){const b=ht(U.value,nA.value,!0);o.nodesChange(b)}if(!Ka(wA,tA.value)){const b=ht(M.value,tA.value);o.edgesChange(b)}d.value=HA,a.value=!0,g.value=!1}function bA(AA){var cA;AA.button!==0||!Y||((cA=AA.target)==null||cA.releasePointerCapture(AA.pointerId),!a.value&&d.value&&AA.target===lA.value&&R(AA),a.value=!1,d.value=null,g.value=nA.value.size>0,o.selectionEnd(AA),e.selectionKeyPressed&&(I=!1),Y=!1)}return(AA,cA)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"container",ref:lA,class:(0,r.normalizeClass)(["vue-flow__pane vue-flow__container",{selection:AA.isSelecting}]),onClick:cA[0]||(cA[0]=V=>k.value?void 0:P(R,lA.value)(V)),onContextmenu:cA[1]||(cA[1]=V=>P(z,lA.value)(V)),onWheelPassive:cA[2]||(cA[2]=V=>P(J,lA.value)(V)),onPointerenter:cA[3]||(cA[3]=V=>k.value?void 0:(0,r.unref)(o).paneMouseEnter(V)),onPointerdown:cA[4]||(cA[4]=V=>k.value?rA(V):(0,r.unref)(o).paneMouseMove(V)),onPointermove:cA[5]||(cA[5]=V=>k.value?dA(V):(0,r.unref)(o).paneMouseMove(V)),onPointerup:cA[6]||(cA[6]=V=>k.value?bA(V):void 0),onPointerleave:cA[7]||(cA[7]=V=>(0,r.unref)(o).paneMouseLeave(V))},[(0,r.renderSlot)(AA.$slots,"default"),(0,r.unref)(a)&&(0,r.unref)(d)?((0,r.openBlock)(),(0,r.createBlock)(Ap,{key:0,"user-selection-rect":(0,r.unref)(d)},null,8,["user-selection-rect"])):(0,r.createCommentVNode)("",!0),(0,r.unref)(g)&&(0,r.unref)(w).length?((0,r.openBlock)(),(0,r.createBlock)(tp,{key:1})):(0,r.createCommentVNode)("",!0)],34))}}),op=(0,r.defineComponent)({name:"Transform",compatConfig:{MODE:3},setup(e){const{viewport:A,fitViewOnInit:t,fitViewOnInitDone:n}=YA(),o=(0,r.computed)(()=>t.value?!n.value:!1),a=(0,r.computed)(()=>`translate(${A.value.x}px,${A.value.y}px) scale(${A.value.zoom})`);return(u,d)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"vue-flow__transformationpane vue-flow__container",style:(0,r.normalizeStyle)({transform:a.value,opacity:o.value?0:void 0})},[(0,r.renderSlot)(u.$slots,"default")],4))}}),ip=(0,r.defineComponent)({name:"Viewport",compatConfig:{MODE:3},setup(e){const{minZoom:A,maxZoom:t,defaultViewport:n,translateExtent:o,zoomActivationKeyCode:a,selectionKeyCode:u,panActivationKeyCode:d,panOnScroll:h,panOnScrollMode:g,panOnScrollSpeed:B,panOnDrag:w,zoomOnDoubleClick:m,zoomOnPinch:v,zoomOnScroll:Q,preventScrolling:H,noWheelClassName:N,noPanClassName:T,emits:M,connectionStartHandle:U,userSelectionActive:K,paneDragging:eA,d3Zoom:W,d3Selection:iA,d3ZoomHandler:lA,viewport:nA,viewportRef:tA,paneClickDistance:q}=YA();qB(tA);const k=(0,r.shallowRef)(!1),sA=(0,r.shallowRef)(!1);let I=null,Y=!1,F=0,S={x:0,y:0,zoom:0};const P=Sn(d),R=Sn(u),z=Sn(a),J=(0,r.toRef)(()=>(!R.value||R.value&&u.value===!0)&&(P.value||w.value)),rA=(0,r.toRef)(()=>P.value||h.value),dA=(0,r.toRef)(()=>u.value===!0&&J.value!==!0),bA=(0,r.toRef)(()=>R.value&&u.value!==!0||K.value||dA.value),AA=(0,r.toRef)(()=>U.value!==null);(0,r.onMounted)(()=>{if(!tA.value){Tn("Viewport element is missing");return}const BA=tA.value,HA=BA.getBoundingClientRect(),aA=Nh().clickDistance(q.value).scaleExtent([A.value,t.value]).translateExtent(o.value),wA=Ne(BA).call(aA),_=wA.on("wheel.zoom"),b=Jt.translate(n.value.x??0,n.value.y??0).scale(Nt(n.value.zoom??1,A.value,t.value)),D=[[0,0],[HA.width,HA.height]],X=aA.constrain()(b,D,o.value);aA.transform(wA,X),aA.wheelDelta(Ca),W.value=aA,iA.value=wA,lA.value=_,nA.value={x:X.x,y:X.y,zoom:X.k},aA.on("start",L=>{var pA;if(!L.sourceEvent)return null;F=L.sourceEvent.button,k.value=!0;const fA=$(L.transform);((pA=L.sourceEvent)==null?void 0:pA.type)==="mousedown"&&(eA.value=!0),S=fA,M.viewportChangeStart(fA),M.moveStart({event:L,flowTransform:fA})}),aA.on("end",L=>{if(!L.sourceEvent)return null;if(k.value=!1,eA.value=!1,cA(J.value,F??0)&&!Y&&M.paneContextMenu(L.sourceEvent),Y=!1,V(S,L.transform)){const pA=$(L.transform);S=pA,M.viewportChangeEnd(pA),M.moveEnd({event:L,flowTransform:pA})}}),aA.filter(L=>{var pA;const fA=z.value||Q.value,FA=v.value&&L.ctrlKey,CA=L.button,LA=L.type==="wheel";if(CA===1&&L.type==="mousedown"&&(uA(L,"vue-flow__node")||uA(L,"vue-flow__edge")))return!0;if(!J.value&&!fA&&!rA.value&&!m.value&&!v.value||K.value||AA.value&&!LA||!m.value&&L.type==="dblclick"||uA(L,N.value)&&LA||uA(L,T.value)&&(!LA||rA.value&&LA&&!z.value)||!v.value&&L.ctrlKey&&LA||!fA&&!rA.value&&!FA&&LA)return!1;if(!v&&L.type==="touchstart"&&((pA=L.touches)==null?void 0:pA.length)>1)return L.preventDefault(),!1;if(!J.value&&(L.type==="mousedown"||L.type==="touchstart")||dA.value&&Array.isArray(w.value)&&w.value.includes(0)&&CA===0||Array.isArray(w.value)&&!w.value.includes(CA)&&(L.type==="mousedown"||L.type==="touchstart"))return!1;const KA=Array.isArray(w.value)&&w.value.includes(CA)||u.value===!0&&Array.isArray(w.value)&&!w.value.includes(0)||!CA||CA<=1;return(!L.ctrlKey||P.value||LA)&&KA}),(0,r.watch)([K,J],()=>{K.value&&!k.value?aA.on("zoom",null):K.value||aA.on("zoom",L=>{nA.value={x:L.transform.x,y:L.transform.y,zoom:L.transform.k};const pA=$(L.transform);Y=cA(J.value,F??0),M.viewportChange(pA),M.move({event:L,flowTransform:pA})})},{immediate:!0}),(0,r.watch)([K,rA,g,z,v,H,N],()=>{rA.value&&!z.value&&!K.value?wA.on("wheel.zoom",L=>{if(uA(L,N.value))return!1;const pA=z.value||Q.value,fA=v.value&&L.ctrlKey;if(!(!H.value||rA.value||pA||fA))return!1;L.preventDefault(),L.stopImmediatePropagation();const FA=wA.property("__zoom").k||1,CA=br();if(!P.value&&L.ctrlKey&&v.value&&CA){const re=Oe(L),nt=FA*2**Ca(L);aA.scaleTo(wA,nt,re,L);return}const LA=L.deltaMode===1?20:1;let KA=g.value===_n.Vertical?0:L.deltaX*LA,XA=g.value===_n.Horizontal?0:L.deltaY*LA;!CA&&L.shiftKey&&g.value!==_n.Vertical&&!KA&&XA&&(KA=XA,XA=0),aA.translateBy(wA,-(KA/FA)*B.value,-(XA/FA)*B.value);const ue=$(wA.property("__zoom"));I&&clearTimeout(I),sA.value?(M.move({event:L,flowTransform:ue}),M.viewportChange(ue),I=setTimeout(()=>{M.moveEnd({event:L,flowTransform:ue}),M.viewportChangeEnd(ue),sA.value=!1},150)):(sA.value=!0,M.moveStart({event:L,flowTransform:ue}),M.viewportChangeStart(ue))},{passive:!1}):typeof _<"u"&&wA.on("wheel.zoom",function(L,pA){const fA=!H.value&&L.type==="wheel"&&!L.ctrlKey,FA=z.value||Q.value,CA=v.value&&L.ctrlKey;if(!FA&&!h.value&&!CA&&L.type==="wheel"||fA||uA(L,N.value))return null;L.preventDefault(),_.call(this,L,pA)},{passive:!1})},{immediate:!0})});function cA(BA,HA){return HA===2&&Array.isArray(BA)&&BA.includes(2)}function V(BA,HA){return BA.x!==HA.x&&!Number.isNaN(HA.x)||BA.y!==HA.y&&!Number.isNaN(HA.y)||BA.zoom!==HA.k&&!Number.isNaN(HA.k)}function $(BA){return{x:BA.x,y:BA.y,zoom:BA.k}}function uA(BA,HA){return BA.target.closest(`.${HA}`)}return(BA,HA)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"viewportRef",ref:tA,class:"vue-flow__viewport vue-flow__container"},[(0,r.createVNode)(rp,{"is-selecting":bA.value,"selection-key-pressed":(0,r.unref)(R),class:(0,r.normalizeClass)({connecting:AA.value,dragging:(0,r.unref)(eA),draggable:(0,r.unref)(w)===!0||Array.isArray((0,r.unref)(w))&&(0,r.unref)(w).includes(0)})},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(op,null,{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(BA.$slots,"default")]),_:3})]),_:3},8,["is-selecting","selection-key-pressed","class"])],512))}}),sp=["id"],ap=["id"],lp=["id"],cp=(0,r.defineComponent)({name:"A11yDescriptions",compatConfig:{MODE:3},setup(e){const{id:A,disableKeyboardA11y:t,ariaLiveMessage:n}=YA();return(o,a)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("div",{id:`${(0,r.unref)(ia)}-${(0,r.unref)(A)}`,style:{display:"none"}}," Press enter or space to select a node. "+(0,r.toDisplayString)((0,r.unref)(t)?"":"You can then use the arrow keys to move the node around.")+" You can then use the arrow keys to move the node around, press delete to remove it and press escape to cancel. ",9,sp),(0,r.createElementVNode)("div",{id:`${(0,r.unref)(sa)}-${(0,r.unref)(A)}`,style:{display:"none"}}," Press enter or space to select an edge. You can then press delete to remove it or press escape to cancel. ",8,ap),(0,r.unref)(t)?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,id:`${(0,r.unref)(Oh)}-${(0,r.unref)(A)}`,"aria-live":"assertive","aria-atomic":"true",style:{position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)","clip-path":"inset(100%)"}},(0,r.toDisplayString)((0,r.unref)(n)),9,lp))],64))}});function up(){const e=YA();(0,r.watch)(()=>e.viewportHelper.value.viewportInitialized,A=>{A&&setTimeout(()=>{e.emits.init(e),e.emits.paneReady(e)},1)})}function dp(e,A,t){return t===IA.Left?e-A:t===IA.Right?e+A:e}function fp(e,A,t){return t===IA.Top?e-A:t===IA.Bottom?e+A:e}var Bi=function({radius:e=10,centerX:A=0,centerY:t=0,position:n=IA.Top,type:o}){return(0,r.h)("circle",{class:`vue-flow__edgeupdater vue-flow__edgeupdater-${o}`,cx:dp(A,e,n),cy:fp(t,e,n),r:e,stroke:"transparent",fill:"transparent"})};Bi.props=["radius","centerX","centerY","position","type"],Bi.compatConfig={MODE:3};var tl=Bi,gp=(0,r.defineComponent)({name:"Edge",compatConfig:{MODE:3},props:["id"],setup(e){const{id:A,addSelectedEdges:t,connectionMode:n,edgeUpdaterRadius:o,emits:a,nodesSelectionActive:u,noPanClassName:d,getEdgeTypes:h,removeSelectedEdges:g,findEdge:B,findNode:w,isValidConnection:m,multiSelectionActive:v,disableKeyboardA11y:Q,elementsSelectable:H,edgesUpdatable:N,edgesFocusable:T,hooks:M}=YA(),U=(0,r.computed)(()=>B(e.id)),{emit:K,on:eA}=pB(U.value,a),W=(0,r.inject)(Ir),iA=(0,r.getCurrentInstance)(),lA=(0,r.ref)(!1),nA=(0,r.ref)(!1),tA=(0,r.ref)(""),q=(0,r.ref)(null),k=(0,r.ref)("source"),sA=(0,r.ref)(null),I=(0,r.toRef)(()=>typeof U.value.selectable>"u"?H.value:U.value.selectable),Y=(0,r.toRef)(()=>typeof U.value.updatable>"u"?N.value:U.value.updatable),F=(0,r.toRef)(()=>typeof U.value.focusable>"u"?T.value:U.value.focusable);(0,r.provide)(gB,e.id),(0,r.provide)(hB,sA);const S=(0,r.computed)(()=>U.value.class instanceof Function?U.value.class(U.value):U.value.class),P=(0,r.computed)(()=>U.value.style instanceof Function?U.value.style(U.value):U.value.style),R=(0,r.computed)(()=>{const b=U.value.type||"default",D=W?.[`edge-${b}`];if(D)return D;let X=U.value.template??h.value[b];if(typeof X=="string"&&iA){const L=Object.keys(iA.appContext.components);L&&L.includes(b)&&(X=(0,r.resolveComponent)(b,!1))}return X&&typeof X!="string"?X:(a.error(new ce(ie.EDGE_TYPE_MISSING,X)),!1)}),{handlePointerDown:z}=Ga({nodeId:tA,handleId:q,type:k,isValidConnection:m,edgeUpdaterType:k,onEdgeUpdate:dA,onEdgeUpdateEnd:bA});return()=>{const b=w(U.value.source),D=w(U.value.target),X="pathOptions"in U.value?U.value.pathOptions:{};if(!b&&!D)return a.error(new ce(ie.EDGE_SOURCE_TARGET_MISSING,U.value.id,U.value.source,U.value.target)),null;if(!b)return a.error(new ce(ie.EDGE_SOURCE_MISSING,U.value.id,U.value.source)),null;if(!D)return a.error(new ce(ie.EDGE_TARGET_MISSING,U.value.id,U.value.target)),null;if(!U.value||U.value.hidden||b.hidden||D.hidden)return null;let L;n.value===At.Strict?L=b.handleBounds.source:L=[...b.handleBounds.source||[],...b.handleBounds.target||[]];const pA=_a(L,U.value.sourceHandle);let fA;n.value===At.Strict?fA=D.handleBounds.target:fA=[...D.handleBounds.target||[],...D.handleBounds.source||[]];const FA=_a(fA,U.value.targetHandle),CA=pA?.position||IA.Bottom,LA=FA?.position||IA.Top,{x:KA,y:XA}=qt(b,pA,CA),{x:ue,y:re}=qt(D,FA,LA);return U.value.sourceX=KA,U.value.sourceY=XA,U.value.targetX=ue,U.value.targetY=re,(0,r.h)("g",{ref:sA,key:e.id,"data-id":e.id,class:["vue-flow__edge",`vue-flow__edge-${R.value===!1?"default":U.value.type||"default"}`,d.value,S.value,{updating:lA.value,selected:U.value.selected,animated:U.value.animated,inactive:!I.value&&!M.value.edgeClick.hasListeners()}],tabIndex:F.value?0:void 0,"aria-label":U.value.ariaLabel===null?void 0:U.value.ariaLabel??`Edge from ${U.value.source} to ${U.value.target}`,"aria-describedby":F.value?`${sa}-${A}`:void 0,"aria-roledescription":"edge",role:F.value?"group":"img",...U.value.domAttributes,onClick:cA,onContextmenu:V,onDblclick:$,onMouseenter:uA,onMousemove:BA,onMouseleave:HA,onKeyDown:F.value?_:void 0},[nA.value?null:(0,r.h)(R.value===!1?h.value.default:R.value,{id:e.id,sourceNode:b,targetNode:D,source:U.value.source,target:U.value.target,type:U.value.type,updatable:Y.value,selected:U.value.selected,animated:U.value.animated,label:U.value.label,labelStyle:U.value.labelStyle,labelShowBg:U.value.labelShowBg,labelBgStyle:U.value.labelBgStyle,labelBgPadding:U.value.labelBgPadding,labelBgBorderRadius:U.value.labelBgBorderRadius,data:U.value.data,events:{...U.value.events,...eA},style:P.value,markerStart:`url('#${Ln(U.value.markerStart,A)}')`,markerEnd:`url('#${Ln(U.value.markerEnd,A)}')`,sourcePosition:CA,targetPosition:LA,sourceX:KA,sourceY:XA,targetX:ue,targetY:re,sourceHandleId:U.value.sourceHandle,targetHandleId:U.value.targetHandle,interactionWidth:U.value.interactionWidth,...X}),[Y.value==="source"||Y.value===!0?[(0,r.h)("g",{onMousedown:aA,onMouseenter:J,onMouseout:rA},(0,r.h)(tl,{position:CA,centerX:KA,centerY:XA,radius:o.value,type:"source","data-type":"source"}))]:null,Y.value==="target"||Y.value===!0?[(0,r.h)("g",{onMousedown:wA,onMouseenter:J,onMouseout:rA},(0,r.h)(tl,{position:LA,centerX:ue,centerY:re,radius:o.value,type:"target","data-type":"target"}))]:null]])};function J(){lA.value=!0}function rA(){lA.value=!1}function dA(b,D){K.update({event:b,edge:U.value,connection:D})}function bA(b){K.updateEnd({event:b,edge:U.value}),nA.value=!1}function AA(b,D){b.button===0&&(nA.value=!0,tA.value=D?U.value.target:U.value.source,q.value=(D?U.value.targetHandle:U.value.sourceHandle)??null,k.value=D?"target":"source",K.updateStart({event:b,edge:U.value}),z(b))}function cA(b){var D;const X={event:b,edge:U.value};I.value&&(u.value=!1,U.value.selected&&v.value?(g([U.value]),(D=sA.value)==null||D.blur()):t([U.value])),K.click(X)}function V(b){K.contextMenu({event:b,edge:U.value})}function $(b){K.doubleClick({event:b,edge:U.value})}function uA(b){K.mouseEnter({event:b,edge:U.value})}function BA(b){K.mouseMove({event:b,edge:U.value})}function HA(b){K.mouseLeave({event:b,edge:U.value})}function aA(b){AA(b,!0)}function wA(b){AA(b,!1)}function _(b){var D;!Q.value&&aa.includes(b.key)&&I.value&&(b.key==="Escape"?((D=sA.value)==null||D.blur(),g([B(e.id)])):t([B(e.id)]))}}}),hp=(0,r.defineComponent)({name:"ConnectionLine",compatConfig:{MODE:3},setup(){var e;const{id:A,connectionMode:t,connectionStartHandle:n,connectionEndHandle:o,connectionPosition:a,connectionLineType:u,connectionLineStyle:d,connectionLineOptions:h,connectionStatus:g,viewport:B,findNode:w}=YA(),m=(e=(0,r.inject)(Ir))==null?void 0:e["connection-line"],v=(0,r.computed)(()=>{var M;return w((M=n.value)==null?void 0:M.nodeId)}),Q=(0,r.computed)(()=>{var M;return w((M=o.value)==null?void 0:M.nodeId)??null}),H=(0,r.computed)(()=>({x:(a.value.x-B.value.x)/B.value.zoom,y:(a.value.y-B.value.y)/B.value.zoom})),N=(0,r.computed)(()=>h.value.markerStart?`url(#${Ln(h.value.markerStart,A)})`:""),T=(0,r.computed)(()=>h.value.markerEnd?`url(#${Ln(h.value.markerEnd,A)})`:"");return()=>{var M,U,K;if(!v.value||!n.value)return null;const eA=n.value.id,W=n.value.type,iA=v.value.handleBounds;let lA=iA?.[W]??[];if(t.value===At.Loose){const P=iA?.[W==="source"?"target":"source"]??[];lA=[...lA,...P]}if(!lA)return null;const nA=(eA?lA.find(P=>P.id===eA):lA[0])??null,tA=nA?.position??IA.Top,{x:q,y:k}=qt(v.value,nA,tA);let sA=null;Q.value&&(t.value===At.Strict?sA=((M=Q.value.handleBounds[W==="source"?"target":"source"])==null?void 0:M.find(P=>{var R;return P.id===((R=o.value)==null?void 0:R.id)}))||null:sA=((U=[...Q.value.handleBounds.source??[],...Q.value.handleBounds.target??[]])==null?void 0:U.find(P=>{var R;return P.id===((R=o.value)==null?void 0:R.id)}))||null);const I=((K=o.value)==null?void 0:K.position)??(tA?li[tA]:null);if(!tA||!I)return null;const Y=u.value??h.value.type??Dt.Bezier;let F="";const S={sourceX:q,sourceY:k,sourcePosition:tA,targetX:H.value.x,targetY:H.value.y,targetPosition:I};return Y===Dt.Bezier?[F]=gi(S):Y===Dt.Step?[F]=hi({...S,borderRadius:0}):Y===Dt.SmoothStep?[F]=hi(S):Y===Dt.SimpleBezier?[F]=ja(S):F=`M${q},${k} ${H.value.x},${H.value.y}`,(0,r.h)("svg",{class:"vue-flow__edges vue-flow__connectionline vue-flow__container"},(0,r.h)("g",{class:"vue-flow__connection"},m?(0,r.h)(m,{sourceX:q,sourceY:k,sourcePosition:tA,targetX:H.value.x,targetY:H.value.y,targetPosition:I,sourceNode:v.value,sourceHandle:nA,targetNode:Q.value,targetHandle:sA,markerEnd:T.value,markerStart:N.value,connectionStatus:g.value}):(0,r.h)("path",{d:F,class:[h.value.class,g.value,"vue-flow__connection-path"],style:{...d.value,...h.value.style},"marker-end":T.value,"marker-start":N.value})))}}}),Bp=["id","markerWidth","markerHeight","markerUnits","orient"],pp=(0,r.defineComponent)({name:"MarkerType",compatConfig:{MODE:3},props:{id:{},type:{},color:{default:"none"},width:{default:12.5},height:{default:12.5},markerUnits:{default:"strokeWidth"},orient:{default:"auto-start-reverse"},strokeWidth:{default:1}},setup(e){return(A,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("marker",{id:A.id,class:"vue-flow__arrowhead",viewBox:"-10 -10 20 20",refX:"0",refY:"0",markerWidth:`${A.width}`,markerHeight:`${A.height}`,markerUnits:A.markerUnits,orient:A.orient},[A.type===(0,r.unref)(et).ArrowClosed?((0,r.openBlock)(),(0,r.createElementBlock)("polyline",{key:0,style:(0,r.normalizeStyle)({stroke:A.color,fill:A.color,strokeWidth:A.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",points:"-5,-4 0,0 -5,4 -5,-4"},null,4)):(0,r.createCommentVNode)("",!0),A.type===(0,r.unref)(et).Arrow?((0,r.openBlock)(),(0,r.createElementBlock)("polyline",{key:1,style:(0,r.normalizeStyle)({stroke:A.color,strokeWidth:A.strokeWidth}),"stroke-linecap":"round","stroke-linejoin":"round",fill:"none",points:"-5,-4 0,0 -5,4"},null,4)):(0,r.createCommentVNode)("",!0)],8,Bp))}}),mp={class:"vue-flow__marker vue-flow__container","aria-hidden":"true"},wp=(0,r.defineComponent)({name:"MarkerDefinitions",compatConfig:{MODE:3},setup(e){const{id:A,edges:t,connectionLineOptions:n,defaultMarkerColor:o}=YA(),a=(0,r.computed)(()=>{const u=new Set,d=[],h=g=>{if(g){const B=Ln(g,A);u.has(B)||(typeof g=="object"?d.push({...g,id:B,color:g.color||o.value}):d.push({id:B,color:o.value,type:g}),u.add(B))}};for(const g of[n.value.markerEnd,n.value.markerStart])h(g);for(const g of t.value)for(const B of[g.markerStart,g.markerEnd])h(B);return d.sort((g,B)=>g.id.localeCompare(B.id))});return(u,d)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",mp,[(0,r.createElementVNode)("defs",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(a.value,h=>((0,r.openBlock)(),(0,r.createBlock)(pp,{id:h.id,key:h.id,type:h.type,color:h.color,width:h.width,height:h.height,markerUnits:h.markerUnits,"stroke-width":h.strokeWidth,orient:h.orient},null,8,["id","type","color","width","height","markerUnits","stroke-width","orient"]))),128))])]))}}),Cp=(0,r.defineComponent)({name:"Edges",compatConfig:{MODE:3},setup(e){const{findNode:A,getEdges:t,elevateEdgesOnSelect:n}=YA();return(o,a)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(wp),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(t),u=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",{key:u.id,class:"vue-flow__edges vue-flow__container",style:(0,r.normalizeStyle)({zIndex:(0,r.unref)(tB)(u,(0,r.unref)(A),(0,r.unref)(n))})},[(0,r.createVNode)((0,r.unref)(gp),{id:u.id},null,8,["id"])],4))),128)),(0,r.createVNode)((0,r.unref)(hp))],64))}}),vp=(0,r.defineComponent)({name:"Node",compatConfig:{MODE:3},props:["id","resizeObserver"],setup(e){const{id:A,noPanClassName:t,selectNodesOnDrag:n,nodesSelectionActive:o,multiSelectionActive:a,emits:u,removeSelectedNodes:d,addSelectedNodes:h,updateNodeDimensions:g,onUpdateNodeInternals:B,getNodeTypes:w,nodeExtent:m,elevateNodesOnSelect:v,disableKeyboardA11y:Q,ariaLiveMessage:H,snapToGrid:N,snapGrid:T,nodeDragThreshold:M,nodesDraggable:U,elementsSelectable:K,nodesConnectable:eA,nodesFocusable:W,hooks:iA}=YA(),lA=(0,r.ref)(null);(0,r.provide)(Va,lA),(0,r.provide)(Ra,e.id);const nA=(0,r.inject)(Ir),tA=(0,r.getCurrentInstance)(),q=Xa(),{node:k,parentNode:sA}=za(e.id),{emit:I,on:Y}=vB(k,u),F=(0,r.toRef)(()=>typeof k.draggable>"u"?U.value:k.draggable),S=(0,r.toRef)(()=>typeof k.selectable>"u"?K.value:k.selectable),P=(0,r.toRef)(()=>typeof k.connectable>"u"?eA.value:k.connectable),R=(0,r.toRef)(()=>typeof k.focusable>"u"?W.value:k.focusable),z=(0,r.computed)(()=>S.value||F.value||iA.value.nodeClick.hasListeners()||iA.value.nodeDoubleClick.hasListeners()||iA.value.nodeMouseEnter.hasListeners()||iA.value.nodeMouseMove.hasListeners()||iA.value.nodeMouseLeave.hasListeners()),J=(0,r.toRef)(()=>!!k.dimensions.width&&!!k.dimensions.height),rA=(0,r.computed)(()=>{const D=k.type||"default",X=nA?.[`node-${D}`];if(X)return X;let L=k.template||w.value[D];if(typeof L=="string"&&tA){const pA=Object.keys(tA.appContext.components);pA&&pA.includes(D)&&(L=(0,r.resolveComponent)(D,!1))}return L&&typeof L!="string"?L:(u.error(new ce(ie.NODE_TYPE_MISSING,L)),!1)}),dA=Pa({id:e.id,el:lA,disabled:()=>!F.value,selectable:S,dragHandle:()=>k.dragHandle,onStart(D){I.dragStart(D)},onDrag(D){I.drag(D)},onStop(D){I.dragStop(D)},onClick(D){_(D)}}),bA=(0,r.computed)(()=>k.class instanceof Function?k.class(k):k.class),AA=(0,r.computed)(()=>{const D=(k.style instanceof Function?k.style(k):k.style)||{},X=k.width instanceof Function?k.width(k):k.width,L=k.height instanceof Function?k.height(k):k.height;return!D.width&&X&&(D.width=typeof X=="string"?X:`${X}px`),!D.height&&L&&(D.height=typeof L=="string"?L:`${L}px`),D}),cA=(0,r.toRef)(()=>Number(k.zIndex??AA.value.zIndex??0));return B(D=>{(D.includes(e.id)||!D.length)&&$()}),(0,r.onMounted)(()=>{(0,r.watch)(()=>k.hidden,(D=!1,X,L)=>{!D&&lA.value&&(e.resizeObserver.observe(lA.value),L(()=>{lA.value&&e.resizeObserver.unobserve(lA.value)}))},{immediate:!0,flush:"post"})}),(0,r.watch)([()=>k.type,()=>k.sourcePosition,()=>k.targetPosition],()=>{(0,r.nextTick)(()=>{g([{id:e.id,nodeElement:lA.value,forceUpdate:!0}])})}),(0,r.watch)([()=>k.position.x,()=>k.position.y,()=>{var D;return(D=sA.value)==null?void 0:D.computedPosition.x},()=>{var D;return(D=sA.value)==null?void 0:D.computedPosition.y},()=>{var D;return(D=sA.value)==null?void 0:D.computedPosition.z},cA,()=>k.selected,()=>k.dimensions.height,()=>k.dimensions.width,()=>{var D;return(D=sA.value)==null?void 0:D.dimensions.height},()=>{var D;return(D=sA.value)==null?void 0:D.dimensions.width}],([D,X,L,pA,fA,FA])=>{const CA={x:D,y:X,z:FA+(v.value&&k.selected?1e3:0)};typeof L<"u"&&typeof pA<"u"?k.computedPosition=Jh({x:L,y:pA,z:fA},CA):k.computedPosition=CA},{flush:"post",immediate:!0}),(0,r.watch)([()=>k.extent,m],([D,X],[L,pA])=>{(D!==L||X!==pA)&&V()}),k.extent==="parent"||typeof k.extent=="object"&&"range"in k.extent&&k.extent.range==="parent"?Lo(()=>J).toBe(!0).then(V):V(),()=>k.hidden?null:(0,r.h)("div",{ref:lA,"data-id":k.id,class:["vue-flow__node",`vue-flow__node-${rA.value===!1?"default":k.type||"default"}`,{[t.value]:F.value,dragging:dA?.value,draggable:F.value,selected:k.selected,selectable:S.value,parent:k.isParent},bA.value],style:{visibility:J.value?"visible":"hidden",zIndex:k.computedPosition.z??cA.value,transform:`translate(${k.computedPosition.x}px,${k.computedPosition.y}px)`,pointerEvents:z.value?"all":"none",...AA.value},tabIndex:R.value?0:void 0,role:R.value?"group":void 0,"aria-describedby":Q.value?void 0:`${ia}-${A}`,"aria-label":k.ariaLabel,"aria-roledescription":"node",...k.domAttributes,onMouseenter:uA,onMousemove:BA,onMouseleave:HA,onContextmenu:aA,onClick:_,onDblclick:wA,onKeydown:b},[(0,r.h)(rA.value===!1?w.value.default:rA.value,{id:k.id,type:k.type,data:k.data,events:{...k.events,...Y},selected:k.selected,resizing:k.resizing,dragging:dA.value,connectable:P.value,position:k.computedPosition,dimensions:k.dimensions,isValidTargetPos:k.isValidTargetPos,isValidSourcePos:k.isValidSourcePos,parent:k.parentNode,parentNodeId:k.parentNode,zIndex:k.computedPosition.z??cA.value,targetPosition:k.targetPosition,sourcePosition:k.sourcePosition,label:k.label,dragHandle:k.dragHandle,onUpdateNodeInternals:$})]);function V(){const D=k.computedPosition,{computedPosition:X,position:L}=ii(k,N.value?Hr(D,T.value):D,u.error,m.value,sA.value);(k.computedPosition.x!==X.x||k.computedPosition.y!==X.y)&&(k.computedPosition={...k.computedPosition,...X}),(k.position.x!==L.x||k.position.y!==L.y)&&(k.position=L)}function $(){lA.value&&g([{id:e.id,nodeElement:lA.value,forceUpdate:!0}])}function uA(D){dA?.value||I.mouseEnter({event:D,node:k})}function BA(D){dA?.value||I.mouseMove({event:D,node:k})}function HA(D){dA?.value||I.mouseLeave({event:D,node:k})}function aA(D){return I.contextMenu({event:D,node:k})}function wA(D){return I.doubleClick({event:D,node:k})}function _(D){S.value&&(!n.value||!F.value||M.value>0)&&ci(k,a.value,h,d,o,!1,lA.value),I.click({event:D,node:k})}function b(D){if(!(ni(D)||Q.value))if(aa.includes(D.key)&&S.value){const X=D.key==="Escape";ci(k,a.value,h,d,o,X,lA.value)}else F.value&&k.selected&&Zt[D.key]&&(D.preventDefault(),H.value=`Moved selected node ${D.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~k.position.x}, y: ${~~k.position.y}`,q({x:Zt[D.key].x,y:Zt[D.key].y},D.shiftKey))}}}),yp={height:"0",width:"0"},Qp=(0,r.defineComponent)({name:"EdgeLabelRenderer",compatConfig:{MODE:3},setup(e){const{viewportRef:A}=YA(),t=(0,r.toRef)(()=>{var n;return(n=A.value)==null?void 0:n.getElementsByClassName("vue-flow__edge-labels")[0]});return(n,o)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",null,[((0,r.openBlock)(),(0,r.createElementBlock)("foreignObject",yp,[((0,r.openBlock)(),(0,r.createBlock)(r.Teleport,{to:t.value,disabled:!t.value},[(0,r.renderSlot)(n.$slots,"default")],8,["to","disabled"]))]))]))}});function Ep(e={includeHiddenNodes:!1}){const{nodes:A}=YA();return(0,r.computed)(()=>{if(A.value.length===0)return!1;for(const t of A.value)if((e.includeHiddenNodes||!t.hidden)&&(t?.handleBounds===void 0||t.dimensions.width===0||t.dimensions.height===0))return!1;return!0})}var Up={class:"vue-flow__nodes vue-flow__container"},Fp=(0,r.defineComponent)({name:"Nodes",compatConfig:{MODE:3},setup(e){const{getNodes:A,updateNodeDimensions:t,emits:n}=YA(),o=Ep(),a=(0,r.ref)();return(0,r.watch)(o,u=>{u&&(0,r.nextTick)(()=>{n.nodesInitialized(A.value)})},{immediate:!0}),(0,r.onMounted)(()=>{a.value=new ResizeObserver(u=>{const d=u.map(h=>({id:h.target.getAttribute("data-id"),nodeElement:h.target,forceUpdate:!0}));(0,r.nextTick)(()=>t(d))})}),(0,r.onBeforeUnmount)(()=>{var u;return(u=a.value)==null?void 0:u.disconnect()}),(u,d)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",Up,[a.value?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:0},(0,r.renderList)((0,r.unref)(A),(h,g,B,w)=>{const m=[h.id];if(w&&w.key===h.id&&(0,r.isMemoSame)(w,m))return w;const v=((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(vp),{id:h.id,key:h.id,"resize-observer":a.value},null,8,["id","resize-observer"]));return v.memo=m,v},d,0),128)):(0,r.createCommentVNode)("",!0)]))}});function bp(){const{emits:e}=YA();(0,r.onMounted)(()=>{if(La()){const A=document.querySelector(".vue-flow__pane");A&&window.getComputedStyle(A).zIndex!=="1"&&e.error(new ce(ie.MISSING_STYLES))}})}var Hp=(0,r.createElementVNode)("div",{class:"vue-flow__edge-labels"},null,-1),Ip=(0,r.defineComponent)({name:"VueFlow",compatConfig:{MODE:3},props:{id:{},modelValue:{},nodes:{},edges:{},edgeTypes:{},nodeTypes:{},connectionMode:{},connectionLineType:{},connectionLineStyle:{default:void 0},connectionLineOptions:{default:void 0},connectionRadius:{},isValidConnection:{type:[Function,null],default:void 0},deleteKeyCode:{default:void 0},selectionKeyCode:{type:[Boolean,null],default:void 0},multiSelectionKeyCode:{default:void 0},zoomActivationKeyCode:{default:void 0},panActivationKeyCode:{default:void 0},snapToGrid:{type:Boolean,default:void 0},snapGrid:{},onlyRenderVisibleElements:{type:Boolean,default:void 0},edgesUpdatable:{type:[Boolean,String],default:void 0},nodesDraggable:{type:Boolean,default:void 0},nodesConnectable:{type:Boolean,default:void 0},nodeDragThreshold:{},elementsSelectable:{type:Boolean,default:void 0},selectNodesOnDrag:{type:Boolean,default:void 0},panOnDrag:{type:[Boolean,Array],default:void 0},minZoom:{},maxZoom:{},defaultViewport:{},translateExtent:{},nodeExtent:{},defaultMarkerColor:{},zoomOnScroll:{type:Boolean,default:void 0},zoomOnPinch:{type:Boolean,default:void 0},panOnScroll:{type:Boolean,default:void 0},panOnScrollSpeed:{},panOnScrollMode:{},paneClickDistance:{},zoomOnDoubleClick:{type:Boolean,default:void 0},preventScrolling:{type:Boolean,default:void 0},selectionMode:{},edgeUpdaterRadius:{},fitViewOnInit:{type:Boolean,default:void 0},connectOnClick:{type:Boolean,default:void 0},applyDefault:{type:Boolean,default:void 0},autoConnect:{type:[Boolean,Function],default:void 0},noDragClassName:{},noWheelClassName:{},noPanClassName:{},defaultEdgeOptions:{},elevateEdgesOnSelect:{type:Boolean,default:void 0},elevateNodesOnSelect:{type:Boolean,default:void 0},disableKeyboardA11y:{type:Boolean,default:void 0},edgesFocusable:{type:Boolean,default:void 0},nodesFocusable:{type:Boolean,default:void 0},autoPanOnConnect:{type:Boolean,default:void 0},autoPanOnNodeDrag:{type:Boolean,default:void 0},autoPanSpeed:{}},emits:["nodesChange","edgesChange","nodesInitialized","paneReady","init","updateNodeInternals","error","connect","connectStart","connectEnd","clickConnectStart","clickConnectEnd","moveStart","move","moveEnd","selectionDragStart","selectionDrag","selectionDragStop","selectionContextMenu","selectionStart","selectionEnd","viewportChangeStart","viewportChange","viewportChangeEnd","paneScroll","paneClick","paneContextMenu","paneMouseEnter","paneMouseMove","paneMouseLeave","edgeUpdate","edgeContextMenu","edgeMouseEnter","edgeMouseMove","edgeMouseLeave","edgeDoubleClick","edgeClick","edgeUpdateStart","edgeUpdateEnd","nodeContextMenu","nodeMouseEnter","nodeMouseMove","nodeMouseLeave","nodeDoubleClick","nodeClick","nodeDragStart","nodeDrag","nodeDragStop","miniMapNodeClick","miniMapNodeDoubleClick","miniMapNodeMouseEnter","miniMapNodeMouseMove","miniMapNodeMouseLeave","update:modelValue","update:nodes","update:edges"],setup(e,{expose:A,emit:t}){const n=e,o=(0,r.useSlots)(),a=To(n,"modelValue",t),u=To(n,"nodes",t),d=To(n,"edges",t),h=YA(n),g=UB({modelValue:a,nodes:u,edges:d},n,h);return bB(t,h.hooks),up(),bp(),(0,r.provide)(Ir,o),(0,r.onUnmounted)(g),A(h),(B,w)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:(0,r.unref)(h).vueFlowRef,class:"vue-flow"},[(0,r.createVNode)(ip,null,{default:(0,r.withCtx)(()=>[(0,r.createVNode)(Cp),Hp,(0,r.createVNode)(Fp),(0,r.renderSlot)(B.$slots,"zoom-pane")]),_:3}),(0,r.renderSlot)(B.$slots,"default"),(0,r.createVNode)(cp)],512))}}),_p=(0,r.defineComponent)({name:"Panel",compatConfig:{MODE:3},props:{position:{}},setup(e){const A=e,{userSelectionActive:t}=YA(),n=(0,r.computed)(()=>`${A.position}`.split("-"));return(o,a)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["vue-flow__panel",n.value]),style:(0,r.normalizeStyle)({pointerEvents:(0,r.unref)(t)?"none":"all"})},[(0,r.renderSlot)(o.$slots,"default")],6))}}),tt=(e=>(e.Lines="lines",e.Dots="dots",e))(tt||{}),Sp=function({dimensions:e,size:A,color:t}){return(0,r.h)("path",{stroke:t,"stroke-width":A,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`})},xp=function({radius:e,color:A}){return(0,r.h)("circle",{cx:e,cy:e,r:e,fill:A})};tt.Lines,tt.Dots;var Dp={[tt.Dots]:"#81818a",[tt.Lines]:"#eee"},Np=["id","x","y","width","height","patternTransform"],Lp={key:2,height:"100",width:"100"},Tp=["fill"],kp=["x","y","fill"],Mp=(0,r.defineComponent)({name:"Background",compatConfig:{MODE:3},props:{id:{},variant:{default:()=>tt.Dots},gap:{default:20},size:{default:1},lineWidth:{default:1},patternColor:{},color:{},bgColor:{},height:{default:100},width:{default:100},x:{default:0},y:{default:0},offset:{default:0}},setup(e){const{id:A,viewport:t}=YA(),n=(0,r.computed)(()=>{const u=t.value.zoom,[d,h]=Array.isArray(e.gap)?e.gap:[e.gap,e.gap],g=[d*u||1,h*u||1],B=e.size*u,[w,m]=Array.isArray(e.offset)?e.offset:[e.offset,e.offset];return{scaledGap:g,offset:[w*u||1+g[0]/2,m*u||1+g[1]/2],size:B}}),o=(0,r.toRef)(()=>`pattern-${A}${e.id?`-${e.id}`:""}`),a=(0,r.toRef)(()=>e.color||e.patternColor||Dp[e.variant||tt.Dots]);return(u,d)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",{class:"vue-flow__background vue-flow__container",style:(0,r.normalizeStyle)({height:`${u.height>100?100:u.height}%`,width:`${u.width>100?100:u.width}%`})},[(0,r.renderSlot)(u.$slots,"pattern-container",{id:o.value},()=>[(0,r.createElementVNode)("pattern",{id:o.value,x:(0,r.unref)(t).x%n.value.scaledGap[0],y:(0,r.unref)(t).y%n.value.scaledGap[1],width:n.value.scaledGap[0],height:n.value.scaledGap[1],patternTransform:`translate(-${n.value.offset[0]},-${n.value.offset[1]})`,patternUnits:"userSpaceOnUse"},[(0,r.renderSlot)(u.$slots,"pattern",{},()=>[u.variant===(0,r.unref)(tt).Lines?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Sp),{key:0,size:u.lineWidth,color:a.value,dimensions:n.value.scaledGap},null,8,["size","color","dimensions"])):u.variant===(0,r.unref)(tt).Dots?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(xp),{key:1,color:a.value,radius:n.value.size/2},null,8,["color","radius"])):(0,r.createCommentVNode)("",!0),u.bgColor?((0,r.openBlock)(),(0,r.createElementBlock)("svg",Lp,[(0,r.createElementVNode)("rect",{width:"100%",height:"100%",fill:u.bgColor},null,8,Tp)])):(0,r.createCommentVNode)("",!0)])],8,Np)]),(0,r.createElementVNode)("rect",{x:u.x,y:u.y,width:"100%",height:"100%",fill:`url(#${o.value})`},null,8,kp),(0,r.renderSlot)(u.$slots,"default",{id:o.value})],4))}}),Kp={name:"ControlButton",compatConfig:{MODE:3}},Op=(e,A)=>{const t=e.__vccOpts||e;for(const[n,o]of A)t[n]=o;return t},Rp={type:"button",class:"vue-flow__controls-button"};function Vp(e,A,t,n,o,a){return(0,r.openBlock)(),(0,r.createElementBlock)("button",Rp,[(0,r.renderSlot)(e.$slots,"default")])}var Tr=Op(Kp,[["render",Vp]]),Pp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Gp=[(0,r.createElementVNode)("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"},null,-1)];function zp(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",Pp,Gp)}var Xp={render:zp},$p={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},Wp=[(0,r.createElementVNode)("path",{d:"M0 0h32v4.2H0z"},null,-1)];function Yp(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",$p,Wp)}var Jp={render:Yp},Zp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},jp=[(0,r.createElementVNode)("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0 0 27.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 0 1-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"},null,-1)];function qp(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",Zp,jp)}var Am={render:qp},em={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},tm=[(0,r.createElementVNode)("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"},null,-1)];function nm(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",em,tm)}var rm={render:nm},om={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},im=[(0,r.createElementVNode)("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047z"},null,-1)];function sm(e,A){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",om,im)}var am={render:sm},lm=(0,r.defineComponent)({name:"Controls",compatConfig:{MODE:3},props:{showZoom:{type:Boolean,default:!0},showFitView:{type:Boolean,default:!0},showInteractive:{type:Boolean,default:!0},fitViewParams:{},position:{default:()=>ra.BottomLeft}},emits:["zoomIn","zoomOut","fitView","interactionChange"],setup(e,{emit:A}){const{nodesDraggable:t,nodesConnectable:n,elementsSelectable:o,setInteractive:a,zoomIn:u,zoomOut:d,fitView:h,viewport:g,minZoom:B,maxZoom:w}=YA(),m=(0,r.toRef)(()=>t.value||n.value||o.value),v=(0,r.toRef)(()=>g.value.zoom<=B.value),Q=(0,r.toRef)(()=>g.value.zoom>=w.value);function H(){u(),A("zoomIn")}function N(){d(),A("zoomOut")}function T(){h(e.fitViewParams),A("fitView")}function M(){a(!m.value),A("interactionChange",!m.value)}return(U,K)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(_p),{class:"vue-flow__controls",position:U.position},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(U.$slots,"top"),U.showZoom?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.renderSlot)(U.$slots,"control-zoom-in",{},()=>[(0,r.createVNode)(Tr,{class:"vue-flow__controls-zoomin",disabled:Q.value,onClick:H},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(U.$slots,"icon-zoom-in",{},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(Xp))))])]),_:3},8,["disabled"])]),(0,r.renderSlot)(U.$slots,"control-zoom-out",{},()=>[(0,r.createVNode)(Tr,{class:"vue-flow__controls-zoomout",disabled:v.value,onClick:N},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(U.$slots,"icon-zoom-out",{},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(Jp))))])]),_:3},8,["disabled"])])],64)):(0,r.createCommentVNode)("",!0),U.showFitView?(0,r.renderSlot)(U.$slots,"control-fit-view",{key:1},()=>[(0,r.createVNode)(Tr,{class:"vue-flow__controls-fitview",onClick:T},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(U.$slots,"icon-fit-view",{},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(Am))))])]),_:3})]):(0,r.createCommentVNode)("",!0),U.showInteractive?(0,r.renderSlot)(U.$slots,"control-interactive",{key:2},()=>[U.showInteractive?((0,r.openBlock)(),(0,r.createBlock)(Tr,{key:0,class:"vue-flow__controls-interactive",onClick:M},{default:(0,r.withCtx)(()=>[m.value?(0,r.renderSlot)(U.$slots,"icon-unlock",{key:0},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(am))))]):(0,r.createCommentVNode)("",!0),m.value?(0,r.createCommentVNode)("",!0):(0,r.renderSlot)(U.$slots,"icon-lock",{key:1},()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(rm))))])]),_:3})):(0,r.createCommentVNode)("",!0)]):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(U.$slots,"default")]),_:3},8,["position"]))}}),cm=["onClick"],um={class:"d-flow-node-menus-item-name"},dm=(0,r.defineComponent)({name:"DNodeMenus",__name:"nodeMenus",props:{fromNodeId:{},handleId:{}},emits:["addNode"],setup(e,{emit:A}){const t=e,n=A,o=(0,r.inject)("d_flow_design_provide",{}),a=o.getFlowComponents?.()||[],u=d=>{n("addNode",d.type),(0,r.nextTick)(()=>{t.handleId==="line"?o.addNodeByLine?.(d.type,t.fromNodeId||""):o.addNode?.(d.type,t.fromNodeId||"",t.handleId||"")})};return(d,h)=>{const g=(0,r.resolveComponent)("j-icon");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"d-flow-node-menus",onClick:(0,r.withModifiers)(()=>{},["stop"])},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)((0,r.unref)(a),(B,w)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:w,class:"d-flow-node-menus-item",onClick:m=>u(B)},[(0,r.createElementVNode)("div",{class:"d-flow-node-menus-item-icon",style:(0,r.normalizeStyle)({backgroundColor:B.iconColor||"var(--j-color-primary)"})},[(0,r.createVNode)(g,{icon:B.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,r.createElementVNode)("div",um,(0,r.toDisplayString)(B.name),1)],8,cm))),128))])}}}),pi=dm,fm={class:"d-flow-step-name"},gm={key:0,style:{color:"var(--j-color-text-2)"}},hm={style:{color:"var(--j-color-text)"}},Bm=(0,r.defineComponent)({name:"DStepNode",__name:"stepNode",props:{id:{},data:{}},setup(e){const A=e,{onNodeClick:t,onEdgeClick:n,onMoveStart:o,onConnectStart:a,onNodeDragStart:u,removeNodes:d,getEdges:h,getNodes:g,onNodesChange:B}=YA(),w=(0,r.inject)("d_flow_design_provide",{}),m=(0,r.computed)(()=>w.getFlowComponentMap?.value?.[A.data.type]||{}),v=()=>{d(A.id),w.onRemoveNode?.(A.id)},Q=(0,r.ref)({});B(sA=>{if(A.data.isInit&&sA.findIndex(I=>I.type==="select"&&I.id===A.id&&I.id==="start"&&I.selected)!==-1){const I=g.value.find(Y=>Y.id==="start");I&&(I.data.isInit=!1),Q.value.s1=!0}});const H=(0,r.ref)(!1),N=sA=>{sA.indexOf("t")!==-1&&!T.value||(H.value=!0,Q.value[sA]=!0)},T=(0,r.computed)(()=>h.value.findIndex(sA=>sA.target===A.id)===-1),M=(0,r.ref)(!1),U=()=>{M.value=!0},K=(sA,I)=>{if(h.value.find(F=>F.source===I&&F.target===sA))return!0;const Y=h.value.filter(F=>F.target===sA);for(let F=0;F<Y.length;F++)if(K(Y[F].source,I))return!0;return!1},eA=sA=>M.value?(M.value=!1,!1):K(sA.source,sA.target)?!1:sA.source!==sA.target&&sA.sourceHandle!==sA.targetHandle&&sA.sourceHandle.indexOf("s")!==-1&&sA.targetHandle.indexOf("t")!==-1,W=()=>{q(),Object.keys(Q.value).forEach(sA=>{Q.value[sA]=!1})},iA=()=>{W()};t(()=>{console.log("onNodeClick"),H.value?H.value=!1:W()}),n(()=>{W()}),o(()=>{W()}),a(()=>{W()}),u(()=>{W()});const lA=(0,r.ref)(),nA=(0,r.ref)({top:0,left:0,bottom:0,right:0}),tA=(0,r.ref)({getBoundingClientRect:()=>nA.value}),q=()=>{lA.value?.handleClose()},k=sA=>{const{clientX:I,clientY:Y}=sA;nA.value=DOMRect.fromRect({x:I,y:Y}),sA.preventDefault(),lA.value?.handleOpen()};return(sA,I)=>{const Y=(0,r.resolveComponent)("j-icon"),F=(0,r.resolveComponent)("el-popover"),S=(0,r.resolveComponent)("el-tooltip"),P=(0,r.resolveComponent)("el-dropdown-item"),R=(0,r.resolveComponent)("el-dropdown-menu"),z=(0,r.resolveComponent)("el-dropdown");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"d-flow-step",onContextmenu:(0,r.withModifiers)(k,["stop"])},[(0,r.createElementVNode)("div",{class:"d-flow-step-icon",style:(0,r.normalizeStyle)({backgroundColor:m.value.iconColor||"var(--j-color-primary)"})},[(0,r.createVNode)(Y,{icon:m.value.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,r.createElementVNode)("div",fm,(0,r.toDisplayString)(m.value.name),1),e.data.type!=="start"?((0,r.openBlock)(),(0,r.createBlock)(S,{key:0,placement:"top","show-arrow":!1,"popper-class":"d-flow-step-tooltip"},{content:(0,r.withCtx)(()=>[T.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",gm,[...I[4]||(I[4]=[(0,r.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"点击",-1),(0,r.createTextVNode)("添加节点 ",-1)])])):(0,r.createCommentVNode)("",!0),I[5]||(I[5]=(0,r.createElementVNode)("div",{style:{color:"var(--j-color-text-2)"}},[(0,r.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"拖拽"),(0,r.createTextVNode)("连接节点 ")],-1))]),default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(An),{onClick:I[1]||(I[1]=J=>N("t1")),onMousedown:U,id:"t1",class:(0,r.normalizeClass)(["d-flow-step-target-handle",{"d-flow-step-target-handle-notadd":!T.value}]),type:"target",position:(0,r.unref)(IA).Left,"is-valid-connection":eA},{default:(0,r.withCtx)(()=>[T.value?((0,r.openBlock)(),(0,r.createBlock)(F,{key:0,visible:Q.value.t1,"onUpdate:visible":I[0]||(I[0]=J=>Q.value.t1=J),placement:"left","popper-class":"d-flow-step-popper",trigger:"click","show-arrow":!1,"popper-options":{strategy:"fixed"}},{reference:(0,r.withCtx)(()=>[(0,r.createVNode)(Y,{class:"d-flow-step-handle-plus",icon:"mdi:plus-circle"})]),default:(0,r.withCtx)(()=>[(0,r.createVNode)(pi,{"handle-id":"t1","from-node-id":e.id,onAddNode:iA},null,8,["from-node-id"])]),_:1},8,["visible"])):(0,r.createCommentVNode)("",!0)]),_:1},8,["class","position"])]),_:1})):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(S,{placement:"top","show-arrow":!1,"popper-class":"d-flow-step-tooltip"},{content:(0,r.withCtx)(()=>[...I[6]||(I[6]=[(0,r.createElementVNode)("div",{style:{color:"var(--j-color-text-2)"}},[(0,r.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"点击"),(0,r.createTextVNode)("添加节点 ")],-1),(0,r.createElementVNode)("div",{style:{color:"var(--j-color-text-2)"}},[(0,r.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"拖拽"),(0,r.createTextVNode)("连接节点 ")],-1)])]),default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(An),{onClick:I[3]||(I[3]=J=>N("s1")),onMousedown:U,id:"s1",class:"d-flow-step-source-handle",type:"source",position:(0,r.unref)(IA).Right,"is-valid-connection":eA},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(F,{visible:Q.value.s1,"onUpdate:visible":I[2]||(I[2]=J=>Q.value.s1=J),placement:"right",trigger:"click","popper-class":"d-flow-step-popper","show-arrow":!1,"popper-options":{strategy:"fixed"}},{reference:(0,r.withCtx)(()=>[(0,r.createVNode)(Y,{class:"d-flow-step-handle-plus",icon:"mdi:plus-circle"})]),default:(0,r.withCtx)(()=>[(0,r.createVNode)(pi,{"handle-id":"s1","from-node-id":e.id,onAddNode:iA},null,8,["from-node-id"])]),_:1},8,["visible"])]),_:1},8,["position"])]),_:1}),(0,r.createVNode)(z,{ref_key:"dropdownRef",ref:lA,"popper-class":"d-flow-step-dropdown","virtual-ref":tA.value,"show-arrow":!1,"popper-options":{modifiers:[{name:"offset",options:{offset:[0,0]}}]},"virtual-triggering":"",trigger:"contextmenu",placement:"bottom-start"},{dropdown:(0,r.withCtx)(()=>[(0,r.createVNode)(R,null,{default:(0,r.withCtx)(()=>[e.data.type!="start"?((0,r.openBlock)(),(0,r.createBlock)(P,{key:0,onClick:v},{default:(0,r.withCtx)(()=>[...I[7]||(I[7]=[(0,r.createTextVNode)("删除",-1)])]),_:1})):(0,r.createCommentVNode)("",!0),m.value.des?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,style:(0,r.normalizeStyle)({width:"160px",padding:"4px 16px 0 16px","font-size":"12px","border-top":e.data.type!="start"?"1px solid var(--j-color-border)":void 0,"margin-top":e.data.type!="start"?"4px":void 0})},[I[8]||(I[8]=(0,r.createElementVNode)("div",{style:{"margin-bottom":"4px",color:"var(--j-color-text-2)"}},"关于",-1)),(0,r.createElementVNode)("div",hm,(0,r.toDisplayString)(m.value.des),1)],4)):(0,r.createCommentVNode)("",!0)]),_:1})]),_:1},8,["virtual-ref"])],32)}}}),pm=Bm,mm=(0,r.defineComponent)({name:"DEdgeWithButton",__name:"edgeWithButton",props:{id:{},sourceX:{},sourceY:{},targetX:{},targetY:{},sourcePosition:{},targetPosition:{},markerEnd:{},style:{}},setup(e){const A=e,{onEdgeMouseEnter:t,onEdgeMouseLeave:n,onNodeClick:o,onEdgeClick:a,onMoveStart:u,onConnectStart:d,onNodeDragStart:h}=YA(),g=(0,r.computed)(()=>gi(A)),B=(0,r.ref)(!1),w=(0,r.ref)(!1);t(({edge:N})=>{N.id===A.id&&(B.value=!0)}),n(()=>{B.value=!1});const m=(0,r.ref)(!1),v=()=>{m.value=!1,(0,r.nextTick)(()=>{w.value=!1})},Q=()=>{w.value=!0,m.value=!0},H=()=>{v()};return o(()=>{v()}),a(()=>{v()}),u(()=>{v()}),d(()=>{v()}),h(()=>{v()}),(N,T)=>{const M=(0,r.resolveComponent)("j-icon"),U=(0,r.resolveComponent)("el-popover");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)((0,r.unref)(kn),{id:e.id,style:(0,r.normalizeStyle)(e.style),path:g.value[0],"marker-end":e.markerEnd},null,8,["id","style","path","marker-end"]),(0,r.createVNode)((0,r.unref)(Qp),null,{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({pointerEvents:"all",position:"absolute",transform:`translate(-50%, -50%) translate(${g.value[1]}px,${g.value[2]}px)`}),class:"nodrag nopan"},[(0,r.createVNode)(U,{visible:m.value,"show-arrow":!1,placement:"right","popper-class":"d-flow-step-popper"},{reference:(0,r.withCtx)(()=>[(0,r.withDirectives)((0,r.createElementVNode)("div",{onClick:(0,r.withModifiers)(Q,["stop"]),class:"d-flow-edge-button"},[(0,r.createVNode)(M,{icon:"mdi:plus-circle"})],512),[[r.vShow,B.value||w.value]])]),default:(0,r.withCtx)(()=>[(0,r.createVNode)(pi,{"handle-id":"line","from-node-id":e.id,onAddNode:H},null,8,["from-node-id"])]),_:1},8,["visible"])],4)]),_:1})],64)}}}),wm=mm,Cm=(0,r.defineComponent)({name:"DFlow",__name:"flow",props:{nodes:{default:()=>[]},edges:{default:()=>[]}},setup(e){return(A,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Ip),{"min-zoom":.2,"max-zoom":4,"default-viewport":{zoom:1},"connection-mode":(0,r.unref)(At).Strict,nodes:e.nodes,edges:e.edges},{"edge-button":(0,r.withCtx)(n=>[(0,r.createVNode)(wm,{id:n.id,"source-x":n.sourceX,"source-y":n.sourceY,"target-x":n.targetX,"target-y":n.targetY,"source-position":n.sourcePosition,"target-position":n.targetPosition,"marker-end":n.markerEnd,style:(0,r.normalizeStyle)(n.style)},null,8,["id","source-x","source-y","target-x","target-y","source-position","target-position","marker-end","style"])]),"node-step":(0,r.withCtx)(n=>[(0,r.createVNode)(pm,(0,r.normalizeProps)((0,r.guardReactiveProps)(n)),null,16)]),default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(lm),{position:"bottom-left"}),(0,r.createVNode)((0,r.unref)(Mp))]),_:1},8,["connection-mode","nodes","edges"]))}}),vm=Cm,ym={class:"d-flow-design"},Qm={class:"d-flow-design-canvas"},Em={class:"d-flow-design-right"},Um={class:"d-flow-design-title"},Fm={class:"d-flow-design-title-name"},bm={class:"d-flow-design-panel"},Hm=(0,r.defineComponent)({name:"DFlowDesign",__name:"flowDesign",props:{components:{default:()=>[]},inputParams:{default:()=>({})},flowInit:{},flowComponentConfigInit:{},flowComponentConfigs:{default:()=>({})},flowComponentConfigChange:{}},emits:["nodeClick","edgeClick","paneClick","connect"],setup(e,{expose:A,emit:t}){const n=e,o=t,{addNodes:a,addEdges:u,removeEdges:d,addSelectedNodes:h,removeSelectedNodes:g,onConnect:B,onNodeClick:w,onPaneClick:m,onEdgeClick:v,getNodes:Q,getEdges:H}=YA(),N=(0,r.computed)(()=>{const R={};return n.components.forEach(z=>{R[z.type]=z}),R.start={name:"开始",type:"start",icon:"ant-design:play-circle-outlined",des:"执行开始节点"},R}),T={id:"start",type:"step",data:{type:"start",isInit:!1},position:{x:80,y:160}},M=(0,r.ref)([T]),U=(0,r.ref)([]),K=(R,z)=>{if(z.indexOf("t")===-1){const J=H.value.filter(rA=>rA.source===R.id);if(J.length>0){let rA=-1e6,dA=0;return J.forEach(bA=>{rA=Math.max(rA,bA.targetNode.position.y+bA.targetNode.dimensions.height+32),dA=bA.targetNode.position.x||0}),{x:dA,y:rA}}return{x:R.position.x+R.dimensions.width+100,y:R.position.y}}return{x:R.position.x-100-R.dimensions.width,y:R.position.y}},eA=(R,z,J)=>{const rA=Q.value.find(bA=>bA.id===z);if(!rA)return;const dA={id:dt(),type:"step",data:{type:R},position:K(rA,J)};if(n.flowInit){const bA=n.flowInit(dA.data.type);bA&&Object.keys(bA).forEach(AA=>{dA.data[AA]=bA[AA]})}a(dA),J.indexOf("t")===-1?u({id:`${z}-${dA.id}`,source:z,target:dA.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:et.Arrow}):u({id:`${z}-${dA.id}`,source:dA.id,target:z,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:et.Arrow}),k(dA.id)},W=R=>{const z=Q.value.find(J=>J.id===R);z&&(z.position.x+=100+z.dimensions.width,H.value.filter(J=>J.source===R).forEach(J=>{W(J.target)}))},iA=(R,z)=>{const J=H.value.find(dA=>dA.id===z);if(!J)return;const rA={id:dt(),type:"step",data:{type:R},position:{x:J.targetNode.position.x,y:J.targetNode.position.y}};if(n.flowInit){const dA=n.flowInit(rA.data.type);dA&&Object.keys(dA).forEach(bA=>{rA.data[bA]=dA[bA]})}a(rA),u({id:`${J.sourceNode.id}-${rA.id}`,source:J.sourceNode.id,target:rA.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:et.Arrow}),u({id:`${rA.id}-${J.targetNode.id}`,source:rA.id,target:J.targetNode.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:et.Arrow}),d(z),W(J.target),k(rA.id)};B(R=>{console.log("onConnect",R),R.type="button",R.markerEnd=et.Arrow,u(R),o("connect",R)});const lA=()=>n.components||[],nA=(0,r.ref)(),tA=(0,r.computed)(()=>nA.value?N.value[nA.value.data.type]:void 0);w(R=>{nA.value?.id!==R.node.id&&(nA.value=R.node,Y()),o("nodeClick",R.node)}),m(()=>{nA.value=void 0,o("paneClick")}),v(R=>{nA.value=void 0,o("edgeClick",R.edge)});const q=R=>{nA.value?.id===R&&(nA.value=void 0)},k=R=>{nA.value&&g([nA.value]),nA.value=Q.value.find(z=>z.id===R),nA.value&&(Y(),setTimeout(()=>{nA.value&&h([nA.value])},100))},sA=(0,r.ref)(),I={};Object.keys(n.flowComponentConfigs).forEach(R=>{const z={type:"j-collapse",config:{defaultValue:[]},children:[]};n.flowComponentConfigs[R].forEach((J,rA)=>{const dA=`_collapse${rA}`;z.config?.defaultValue.push(dA),z.children?.push(J)}),I[R]=[z]});const Y=()=>{const R=I[nA.value?.data.type||""];R&&sA.value?(sA.value.init&&sA.value.init(R,nA.value?.data),n.flowComponentConfigInit&&n.flowComponentConfigInit({configRef:sA,inputParams:n.inputParams,components:Q.value,configData:nA.value?.data})):sA.value&&sA.value.init&&sA.value.init([])},F=(R,z)=>{nA.value&&n.flowComponentConfigChange&&n.flowComponentConfigChange(nA.value.data.type,{configRef:sA,component:R,configData:nA.value.data,...z,isFlowNode:!0})};return(0,r.provide)("d_flow_design_provide",{getFlowComponents:lA,addNode:eA,addNodeByLine:iA,onRemoveNode:q,getFlowComponentMap:N}),A({getData:()=>{const R=[];return Q.value.forEach(z=>{R.push({config:z.data,id:z.id,position:z.position,type:z.type})}),H.value.forEach(z=>{R.push({id:z.id,source:z.source,target:z.target,sourceHandle:z.sourceHandle,targetHandle:z.targetHandle,type:"line",config:{},position:{x:0,y:0}})}),R},setData:R=>{if(!R||R.length===0)T.data.isInit=!0,M.value=[T],k(T.id);else{T.data.isInit=!1;const z=[],J=[];R.forEach(rA=>{if(rA.type==="line")rA.type="button",rA.markerEnd=et.Arrow,J.push(rA);else{const dA={id:rA.id,type:rA.type,data:rA.config,position:rA.position};z.push(dA)}}),M.value=z,U.value=J}}}),(R,z)=>{const J=(0,r.resolveComponent)("j-icon"),rA=(0,r.resolveComponent)("j-form");return(0,r.openBlock)(),(0,r.createElementBlock)("div",ym,[(0,r.createElementVNode)("div",Qm,[(0,r.createVNode)(vm,{nodes:M.value,edges:U.value},null,8,["nodes","edges"])]),(0,r.withDirectives)((0,r.createElementVNode)("div",Em,[(0,r.createElementVNode)("div",Um,[(0,r.createElementVNode)("div",{class:"d-flow-design-title-icon",style:(0,r.normalizeStyle)({backgroundColor:tA.value?.iconColor||"var(--j-color-primary)"})},[(0,r.createVNode)(J,{icon:tA.value?.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,r.createElementVNode)("div",Fm,(0,r.toDisplayString)(tA.value?.name||""),1)]),(0,r.createElementVNode)("div",bm,[(0,r.createVNode)(rA,{config:{labelPosition:"top"},style:{padding:"0"},ref_key:"configRef",ref:sA,onChange:F},null,512)])],512),[[r.vShow,nA.value&&I[nA.value.data.type]]])])}}}),Im=Hm,nl=ut(Im),_m={class:"d-input-flow j-block"},Sm=(0,r.defineComponent)({name:"DInputFlow",__name:"inputFlow",props:{modelValue:{},type:{},btnText:{default:"事件"},title:{},size:{default:"default"},width:{default:1200},height:{default:800},beforeClose:{},flowComponents:{default:()=>[]},inputParams:{default:()=>({})},flowInit:{},flowComponentConfigInit:{},flowComponentConfigs:{default:()=>({})},flowComponentConfigChange:{}},emits:["update:modelValue","change"],setup(e,{emit:A}){const t=e,n=A,o=(0,r.ref)(),a=(0,r.computed)({get(){return t.modelValue},set(w){n("update:modelValue",w)}}),u=(0,r.computed)(()=>(t.modelValue?.trim(),t.btnText)),d=w=>{const m=typeof w=="string"?w:void 0;try{o.value?.setData(JSON.parse(m||"[]"))}catch{o.value?.setData([])}},h=async()=>{const w=o.value?.getData();return w?JSON.stringify(w):void 0},g=w=>{if(t.beforeClose){const m=typeof w=="string"?w:void 0;return t.beforeClose(m)}return!0},B=w=>{const m=w.value;n("change",{value:typeof m=="string"?m:void 0})};return(w,m)=>{const v=(0,r.resolveComponent)("d-flow-design"),Q=(0,r.resolveComponent)("j-input-button");return(0,r.openBlock)(),(0,r.createBlock)(Q,(0,r.mergeProps)(w.$attrs,{type:e.type,"btn-text":u.value,title:e.title,size:e.size,width:e.width,height:e.height,"before-close":g,ok:h,open:d,"destroy-on-close":"",modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=H=>a.value=H),onChange:B}),{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",_m,[(0,r.createVNode)(v,{ref_key:"flowRef",ref:o,components:e.flowComponents,"flow-init":e.flowInit,"flow-component-config-init":e.flowComponentConfigInit,"flow-component-configs":e.flowComponentConfigs,"flow-component-config-change":e.flowComponentConfigChange,"input-params":e.inputParams},null,8,["components","flow-init","flow-component-config-init","flow-component-configs","flow-component-config-change","input-params"])])]),_:1},16,["type","btn-text","title","size","width","height","modelValue"])}}}),xm=Sm,rl=ut(xm),j=class De{static getElements(A,t=document){if(typeof A=="string"){const n="getElementById"in t?t:void 0;if(n&&!isNaN(+A[0])){const a=n.getElementById(A);return a?[a]:[]}let o=t.querySelectorAll(A);if(!o.length&&A[0]!=="."&&A[0]!=="#"&&(o=t.querySelectorAll("."+A),o.length||(o=t.querySelectorAll("#"+A)),!o.length)){const a=t.querySelector(`[gs-id="${A}"]`);return a?[a]:[]}return Array.from(o)}return[A]}static getElement(A,t=document){if(typeof A=="string"){const n="getElementById"in t?t:void 0;if(!A.length)return null;if(n&&A[0]==="#")return n.getElementById(A.substring(1));if(A[0]==="#"||A[0]==="."||A[0]==="[")return t.querySelector(A);if(n&&!isNaN(+A[0]))return n.getElementById(A);let o=t.querySelector(A);return n&&!o&&(o=n.getElementById(A)),o||(o=t.querySelector("."+A)),o}return A}static lazyLoad(A){return A.lazyLoad||A.grid?.opts?.lazyLoad&&A.lazyLoad!==!1}static createDiv(A,t){const n=document.createElement("div");return A.forEach(o=>{o&&n.classList.add(o)}),t?.appendChild(n),n}static shouldSizeToContent(A,t=!1){return A?.grid&&(t?A.sizeToContent===!0||A.grid.opts.sizeToContent===!0&&A.sizeToContent===void 0:!!A.sizeToContent||A.grid.opts.sizeToContent&&A.sizeToContent!==!1)}static isIntercepted(A,t){return!(A.y>=t.y+t.h||A.y+A.h<=t.y||A.x+A.w<=t.x||A.x>=t.x+t.w)}static isTouching(A,t){return De.isIntercepted(A,{x:t.x-.5,y:t.y-.5,w:t.w+1,h:t.h+1})}static areaIntercept(A,t){const n=A.x>t.x?A.x:t.x,o=A.x+A.w<t.x+t.w?A.x+A.w:t.x+t.w;if(o<=n)return 0;const a=A.y>t.y?A.y:t.y,u=A.y+A.h<t.y+t.h?A.y+A.h:t.y+t.h;return u<=a?0:(o-n)*(u-a)}static area(A){return A.w*A.h}static sort(A,t=1){return A.sort((o,a)=>{const u=t*((o.y??1e4)-(a.y??1e4));return u===0?t*((o.x??1e4)-(a.x??1e4)):u})}static find(A,t){return t?A.find(n=>n.id===t):void 0}static toBool(A){return typeof A=="boolean"?A:typeof A=="string"?(A=A.toLowerCase(),!(A===""||A==="no"||A==="false"||A==="0")):!!A}static toNumber(A){return A===null||A.length===0?void 0:Number(A)}static parseHeight(A){let t,n="px";if(typeof A=="string")if(A==="auto"||A==="")t=0;else{const o=A.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%|cm|mm)?$/);if(!o)throw new Error(`Invalid height val = ${A}`);n=o[2]||"px",t=parseFloat(o[1])}else t=A;return{h:t,unit:n}}static defaults(A,...t){return t.forEach(n=>{for(const o in n){if(!n.hasOwnProperty(o))return;A[o]===null||A[o]===void 0?A[o]=n[o]:typeof n[o]=="object"&&typeof A[o]=="object"&&De.defaults(A[o],n[o])}}),A}static same(A,t){if(typeof A!="object")return A==t;if(typeof A!=typeof t||Object.keys(A).length!==Object.keys(t).length)return!1;for(const n in A)if(A[n]!==t[n])return!1;return!0}static copyPos(A,t,n=!1){return t.x!==void 0&&(A.x=t.x),t.y!==void 0&&(A.y=t.y),t.w!==void 0&&(A.w=t.w),t.h!==void 0&&(A.h=t.h),n&&(t.minW&&(A.minW=t.minW),t.minH&&(A.minH=t.minH),t.maxW&&(A.maxW=t.maxW),t.maxH&&(A.maxH=t.maxH)),A}static samePos(A,t){return A&&t&&A.x===t.x&&A.y===t.y&&(A.w||1)===(t.w||1)&&(A.h||1)===(t.h||1)}static sanitizeMinMax(A){A.minW||delete A.minW,A.minH||delete A.minH,A.maxW||delete A.maxW,A.maxH||delete A.maxH}static removeInternalAndSame(A,t){if(!(typeof A!="object"||typeof t!="object")&&!(Array.isArray(A)||Array.isArray(t)))for(let n in A){const o=A[n],a=t[n];n[0]==="_"||o===a?delete A[n]:o&&typeof o=="object"&&a!==void 0&&(De.removeInternalAndSame(o,a),Object.keys(o).length||delete A[n])}}static removeInternalForSave(A,t=!0){for(let n in A)(n[0]==="_"||A[n]===null||A[n]===void 0)&&delete A[n];delete A.grid,t&&delete A.el,A.autoPosition||delete A.autoPosition,A.noResize||delete A.noResize,A.noMove||delete A.noMove,A.locked||delete A.locked,(A.w===1||A.w===A.minW)&&delete A.w,(A.h===1||A.h===A.minH)&&delete A.h}static throttle(A,t){let n=!1;return(...o)=>{n||(n=!0,setTimeout(()=>{A(...o),n=!1},t))}}static removePositioningStyles(A){const t=A.style;t.position&&t.removeProperty("position"),t.left&&t.removeProperty("left"),t.top&&t.removeProperty("top"),t.width&&t.removeProperty("width"),t.height&&t.removeProperty("height")}static getScrollElement(A){if(!A)return document.scrollingElement||document.documentElement;const t=getComputedStyle(A);return/(auto|scroll)/.test(t.overflow+t.overflowY)?A:De.getScrollElement(A.parentElement)}static updateScrollPosition(A,t,n){const o=De.getScrollElement(A);if(!o)return;const a=A.getBoundingClientRect(),u=o.getBoundingClientRect(),d=window.innerHeight||document.documentElement.clientHeight,h=a.bottom-Math.min(u.bottom,d),g=a.top-Math.max(u.top,0),B=o.scrollTop;g<0&&n<0?A.offsetHeight>u.height?o.scrollTop+=n:o.scrollTop+=Math.abs(g)>Math.abs(n)?n:g:h>0&&n>0&&(A.offsetHeight>u.height?o.scrollTop+=n:o.scrollTop+=h>n?n:h),t.top+=o.scrollTop-B}static updateScrollResize(A,t,n){const o=De.getScrollElement(t),a=o.clientHeight,u=o===De.getScrollElement()?0:o.getBoundingClientRect().top,d=A.clientY-u,h=d<n,g=d>a-n;h?o.scrollBy({behavior:"smooth",top:d-n}):g&&o.scrollBy({behavior:"smooth",top:n-(a-d)})}static clone(A){return A==null||typeof A!="object"?A:A instanceof Array?[...A]:{...A}}static cloneDeep(A){const t=["parentGrid","el","grid","subGrid","engine"],n=De.clone(A);for(const o in n)n.hasOwnProperty(o)&&typeof n[o]=="object"&&o.substring(0,2)!=="__"&&!t.find(a=>a===o)&&(n[o]=De.cloneDeep(A[o]));return n}static cloneNode(A){const t=A.cloneNode(!0);return t.removeAttribute("id"),t}static appendTo(A,t){let n;typeof t=="string"?n=De.getElement(t):n=t,n&&n.appendChild(A)}static addElStyles(A,t){if(t instanceof Object)for(const n in t)t.hasOwnProperty(n)&&(Array.isArray(t[n])?t[n].forEach(o=>{A.style[n]=o}):A.style[n]=t[n])}static initEvent(A,t){const n={type:t.type},o={button:0,which:0,buttons:1,bubbles:!0,cancelable:!0,target:t.target?t.target:A.target};return["altKey","ctrlKey","metaKey","shiftKey"].forEach(a=>n[a]=A[a]),["pageX","pageY","clientX","clientY","screenX","screenY"].forEach(a=>n[a]=A[a]),{...n,...o}}static simulateMouseEvent(A,t,n){const o=A,a=new MouseEvent(t,{bubbles:!0,composed:!0,cancelable:!0,view:window,detail:1,screenX:A.screenX,screenY:A.screenY,clientX:A.clientX,clientY:A.clientY,ctrlKey:o.ctrlKey??!1,altKey:o.altKey??!1,shiftKey:o.shiftKey??!1,metaKey:o.metaKey??!1,button:0,relatedTarget:A.target});(n||A.target).dispatchEvent(a)}static getValuesFromTransformedElement(A){const t=document.createElement("div");De.addElStyles(t,{opacity:"0",position:"fixed",top:"0px",left:"0px",width:"1px",height:"1px",zIndex:"-999999"}),A.appendChild(t);const n=t.getBoundingClientRect();return A.removeChild(t),t.remove(),{xScale:1/n.width,yScale:1/n.height,xOffset:n.left,yOffset:n.top}}static swap(A,t,n){if(!A)return;const o=A[t];A[t]=A[n],A[n]=o}static canBeRotated(A){return!(!A||A.w===A.h||A.locked||A.noResize||A.grid?.opts.disableResize||A.minW&&A.minW===A.maxW||A.minH&&A.minH===A.maxH)}},mi=class Bn{constructor(A={}){this.addedNodes=[],this.removedNodes=[],this.defaultColumn=12,this.column=A.column||this.defaultColumn,this.column>this.defaultColumn&&(this.defaultColumn=this.column),this.maxRow=A.maxRow,this._float=A.float,this.nodes=A.nodes||[],this.onChange=A.onChange}batchUpdate(A=!0,t=!0){return!!this.batchMode===A?this:(this.batchMode=A,A?(this._prevFloat=this._float,this._float=!0,this.cleanNodes(),this.saveInitial()):(this._float=this._prevFloat,delete this._prevFloat,t&&this._packNodes(),this._notify()),this)}_useEntireRowArea(A,t){return(!this.float||this.batchMode&&!this._prevFloat)&&!this._hasLocked&&(!A._moving||A._skipDown||t.y<=A.y)}_fixCollisions(A,t=A,n,o={}){if(this.sortNodes(-1),n=n||this.collide(A,t),!n)return!1;if(A._moving&&!o.nested&&!this.float&&this.swap(A,n))return!0;let a=t;!this._loading&&this._useEntireRowArea(A,t)&&(a={x:0,w:this.column,y:t.y,h:t.h},n=this.collide(A,a,o.skip));let u=!1;const d={nested:!0,pack:!1};let h=0;for(;n=n||this.collide(A,a,o.skip);){if(h++>this.nodes.length*2)throw new Error("Infinite collide check");let g;if(n.locked||this._loading||A._moving&&!A._skipDown&&t.y>A.y&&!this.float&&(!this.collide(n,{...n,y:A.y},A)||!this.collide(n,{...n,y:t.y-n.h},A))){A._skipDown=A._skipDown||t.y>A.y;const B={...t,y:n.y+n.h,...d};g=this._loading&&j.samePos(A,B)?!0:this.moveNode(A,B),(n.locked||this._loading)&&g?j.copyPos(t,A):!n.locked&&g&&o.pack&&(this._packNodes(),t.y=n.y+n.h,j.copyPos(A,t)),u=u||g}else g=this.moveNode(n,{...n,y:t.y+t.h,skip:A,...d});if(!g)return u;n=void 0}return u}collide(A,t=A,n){const o=A._id,a=n?._id;return this.nodes.find(u=>u._id!==o&&u._id!==a&&j.isIntercepted(u,t))}collideAll(A,t=A,n){const o=A._id,a=n?._id;return this.nodes.filter(u=>u._id!==o&&u._id!==a&&j.isIntercepted(u,t))}directionCollideCoverage(A,t,n){if(!t.rect||!A._rect)return;const o=A._rect,a={...t.rect};a.y>o.y?(a.h+=a.y-o.y,a.y=o.y):a.h+=o.y-a.y,a.x>o.x?(a.w+=a.x-o.x,a.x=o.x):a.w+=o.x-a.x;let u,d=.5;for(let h of n){if(h.locked||!h._rect)break;const g=h._rect;let B=Number.MAX_VALUE,w=Number.MAX_VALUE;o.y<g.y?B=(a.y+a.h-g.y)/g.h:o.y+o.h>g.y+g.h&&(B=(g.y+g.h-a.y)/g.h),o.x<g.x?w=(a.x+a.w-g.x)/g.w:o.x+o.w>g.x+g.w&&(w=(g.x+g.w-a.x)/g.w);const m=Math.min(w,B);m>d&&(d=m,u=h)}return t.collide=u,u}cacheRects(A,t,n,o,a,u){return this.nodes.forEach(d=>d._rect={y:d.y*t+n,x:d.x*A+u,w:d.w*A-u-o,h:d.h*t-n-a}),this}swap(A,t){if(!t||t.locked||!A||A.locked)return!1;function n(){const a=t.x,u=t.y;return t.x=A.x,t.y=A.y,A.h!=t.h?(A.x=a,A.y=t.y+t.h):A.w!=t.w?(A.x=t.x+t.w,A.y=u):(A.x=a,A.y=u),A._dirty=t._dirty=!0,!0}let o;if(A.w===t.w&&A.h===t.h&&(A.x===t.x||A.y===t.y)&&(o=j.isTouching(A,t)))return n();if(o!==!1){if(A.w===t.w&&A.x===t.x&&(o||(o=j.isTouching(A,t)))){if(t.y<A.y){const a=A;A=t,t=a}return n()}if(o!==!1){if(A.h===t.h&&A.y===t.y&&(o||(o=j.isTouching(A,t)))){if(t.x<A.x){const a=A;A=t,t=a}return n()}return!1}}}isAreaEmpty(A,t,n,o){const a={x:A||0,y:t||0,w:n||1,h:o||1};return!this.collide(a)}compact(A="compact",t=!0){if(this.nodes.length===0)return this;t&&this.sortNodes();const n=this.batchMode;n||this.batchUpdate();const o=this._inColumnResize;o||(this._inColumnResize=!0);const a=this.nodes;return this.nodes=[],a.forEach((u,d,h)=>{let g;u.locked||(u.autoPosition=!0,A==="list"&&d&&(g=h[d-1])),this.addNode(u,!1,g)}),o||delete this._inColumnResize,n||this.batchUpdate(!1),this}set float(A){this._float!==A&&(this._float=A||!1,A||this._packNodes()._notify())}get float(){return this._float||!1}sortNodes(A=1){return this.nodes=j.sort(this.nodes,A),this}_packNodes(){return this.batchMode?this:(this.sortNodes(),this.float?this.nodes.forEach(A=>{if(A._updating||A._orig===void 0||A.y===A._orig.y)return;let t=A.y;for(;t>A._orig.y;)--t,this.collide(A,{x:A.x,y:t,w:A.w,h:A.h})||(A._dirty=!0,A.y=t)}):this.nodes.forEach((A,t)=>{if(!A.locked)for(;A.y>0;){const n=t===0?0:A.y-1;if(!(t===0||!this.collide(A,{x:A.x,y:n,w:A.w,h:A.h})))break;A._dirty=A.y!==n,A.y=n}}),this)}prepareNode(A,t){A._id=A._id??Bn._idSeq++;const n=A.id;if(n){let a=1;for(;this.nodes.find(u=>u.id===A.id&&u!==A);)A.id=n+"_"+a++}(A.x===void 0||A.y===void 0||A.x===null||A.y===null)&&(A.autoPosition=!0);const o={x:0,y:0,w:1,h:1};return j.defaults(A,o),A.autoPosition||delete A.autoPosition,A.noResize||delete A.noResize,A.noMove||delete A.noMove,j.sanitizeMinMax(A),typeof A.x=="string"&&(A.x=Number(A.x)),typeof A.y=="string"&&(A.y=Number(A.y)),typeof A.w=="string"&&(A.w=Number(A.w)),typeof A.h=="string"&&(A.h=Number(A.h)),isNaN(A.x)&&(A.x=o.x,A.autoPosition=!0),isNaN(A.y)&&(A.y=o.y,A.autoPosition=!0),isNaN(A.w)&&(A.w=o.w),isNaN(A.h)&&(A.h=o.h),this.nodeBoundFix(A,t),A}nodeBoundFix(A,t){const n=A._orig||j.copyPos({},A);if(A.maxW&&(A.w=Math.min(A.w||1,A.maxW)),A.maxH&&(A.h=Math.min(A.h||1,A.maxH)),A.minW&&(A.w=Math.max(A.w||1,A.minW)),A.minH&&(A.h=Math.max(A.h||1,A.minH)),(A.x||0)+(A.w||1)>this.column&&this.column<this.defaultColumn&&!this._inColumnResize&&!this.skipCacheUpdate&&A._id!=null&&this.findCacheLayout(A,this.defaultColumn)===-1){const o={...A};o.autoPosition||o.x===void 0?(delete o.x,delete o.y):o.x=Math.min(this.defaultColumn-1,o.x),o.w=Math.min(this.defaultColumn,o.w||1),this.cacheOneLayout(o,this.defaultColumn)}return A.w>this.column?A.w=this.column:A.w<1&&(A.w=1),this.maxRow&&A.h>this.maxRow?A.h=this.maxRow:A.h<1&&(A.h=1),A.x<0&&(A.x=0),A.y<0&&(A.y=0),A.x+A.w>this.column&&(t?A.w=this.column-A.x:A.x=this.column-A.w),this.maxRow&&A.y+A.h>this.maxRow&&(t?A.h=this.maxRow-A.y:A.y=this.maxRow-A.h),j.samePos(A,n)||(A._dirty=!0),this}getDirtyNodes(A){return A?this.nodes.filter(t=>t._dirty&&!j.samePos(t,t._orig)):this.nodes.filter(t=>t._dirty)}_notify(A){if(this.batchMode||!this.onChange)return this;const t=(A||[]).concat(this.getDirtyNodes());return this.onChange(t),this}cleanNodes(){return this.batchMode?this:(this.nodes.forEach(A=>{delete A._dirty,delete A._lastTried}),this)}saveInitial(){return this.nodes.forEach(A=>{A._orig=j.copyPos({},A),delete A._dirty}),this._hasLocked=this.nodes.some(A=>A.locked),this}restoreInitial(){return this.nodes.forEach(A=>{!A._orig||j.samePos(A,A._orig)||(j.copyPos(A,A._orig),A._dirty=!0)}),this._notify(),this}findEmptyPosition(A,t=this.nodes,n=this.column,o){const a=o?o.y*n+(o.x+o.w):0;let u=!1;for(let d=a;!u;++d){const h=d%n,g=Math.floor(d/n);if(h+A.w>n)continue;const B={x:h,y:g,w:A.w,h:A.h};t.find(w=>j.isIntercepted(B,w))||((A.x!==h||A.y!==g)&&(A._dirty=!0),A.x=h,A.y=g,delete A.autoPosition,u=!0)}return u}addNode(A,t=!1,n){const o=this.nodes.find(u=>u._id===A._id);if(o)return o;this._inColumnResize?this.nodeBoundFix(A):this.prepareNode(A),delete A._temporaryRemoved,delete A._removeDOM;let a;return A.autoPosition&&this.findEmptyPosition(A,this.nodes,this.column,n)&&(delete A.autoPosition,a=!0),this.nodes.push(A),t&&this.addedNodes.push(A),a||this._fixCollisions(A),this.batchMode||this._packNodes()._notify(),A}removeNode(A,t=!0,n=!1){return this.nodes.find(o=>o._id===A._id)?(n&&this.removedNodes.push(A),t&&(A._removeDOM=!0),this.nodes=this.nodes.filter(o=>o._id!==A._id),A._isAboutToRemove||this._packNodes(),this._notify([A]),this):this}removeAll(A=!0,t=!0){if(delete this._layouts,!this.nodes.length)return this;A&&this.nodes.forEach(o=>o._removeDOM=!0);const n=this.nodes;return this.removedNodes=t?n:[],this.nodes=[],this._notify(n)}moveNodeCheck(A,t){if(!this.changedPosConstrain(A,t))return!1;if(t.pack=!0,!this.maxRow)return this.moveNode(A,t);let n;const o=new Bn({column:this.column,float:this.float,nodes:this.nodes.map(u=>u._id===A._id?(n={...u},n):{...u})});if(!n)return!1;const a=o.moveNode(n,t)&&o.getRow()<=Math.max(this.getRow(),this.maxRow);if(!a&&!t.resizing&&t.collide){const u=t.collide.el.gridstackNode;if(this.swap(A,u))return this._notify(),!0}return a?(o.nodes.filter(u=>u._dirty).forEach(u=>{const d=this.nodes.find(h=>h._id===u._id);d&&(j.copyPos(d,u),d._dirty=!0)}),this._notify(),!0):!1}willItFit(A){if(delete A._willFitPos,!this.maxRow)return!0;const t=new Bn({column:this.column,float:this.float,nodes:this.nodes.map(o=>({...o}))}),n={...A};return this.cleanupNode(n),delete n.el,delete n._id,delete n.content,delete n.grid,t.addNode(n),t.getRow()<=this.maxRow?(A._willFitPos=j.copyPos({},n),!0):!1}changedPosConstrain(A,t){return t.w=t.w||A.w,t.h=t.h||A.h,A.x!==t.x||A.y!==t.y?!0:(A.maxW&&(t.w=Math.min(t.w,A.maxW)),A.maxH&&(t.h=Math.min(t.h,A.maxH)),A.minW&&(t.w=Math.max(t.w,A.minW)),A.minH&&(t.h=Math.max(t.h,A.minH)),A.w!==t.w||A.h!==t.h)}moveNode(A,t){if(!A||!t)return!1;let n;t.pack===void 0&&!this.batchMode&&(n=t.pack=!0),typeof t.x!="number"&&(t.x=A.x),typeof t.y!="number"&&(t.y=A.y),typeof t.w!="number"&&(t.w=A.w),typeof t.h!="number"&&(t.h=A.h);const o=A.w!==t.w||A.h!==t.h,a=j.copyPos({},A,!0);if(j.copyPos(a,t),this.nodeBoundFix(a,o),j.copyPos(t,a),!t.forceCollide&&j.samePos(A,t))return!1;const u=j.copyPos({},A),d=this.collideAll(A,a,t.skip);let h=!0;if(d.length){const g=A._moving&&!t.nested;let B=g?this.directionCollideCoverage(A,t,d):d[0];if(g&&B&&A.grid?.opts?.subGridDynamic&&!A.grid._isTemp){const w=j.areaIntercept(t.rect,B._rect),m=j.area(t.rect),v=j.area(B._rect);w/(m<v?m:v)>.8&&(B.grid.makeSubGrid(B.el,void 0,A),B=void 0)}B?h=!this._fixCollisions(A,a,B,t):(h=!1,n&&delete t.pack)}return h&&!j.samePos(A,a)&&(A._dirty=!0,j.copyPos(A,a)),t.pack&&this._packNodes()._notify(),!j.samePos(A,u)}getRow(){return this.nodes.reduce((A,t)=>Math.max(A,t.y+t.h),0)}beginUpdate(A){return A._updating||(A._updating=!0,delete A._skipDown,this.batchMode||this.saveInitial()),this}endUpdate(){const A=this.nodes.find(t=>t._updating);return A&&(delete A._updating,delete A._skipDown),this}save(A=!0,t,n){const o=this._layouts?.length||0;let a;o&&(n?n!==this.column&&(a=this._layouts[n]):this.column!==o-1&&(a=this._layouts[o-1]));const u=[];return this.sortNodes(),this.nodes.forEach(d=>{const h=a?.find(B=>B._id===d._id),g={...d,...h||{}};j.removeInternalForSave(g,!A),t&&t(d,g),u.push(g)}),u}layoutsNodesChange(A){return!this._layouts||this._inColumnResize?this:(this._layouts.forEach((t,n)=>{if(!t||n===this.column)return this;if(n<this.column)this._layouts[n]=void 0;else{const o=n/this.column;A.forEach(a=>{if(!a._orig)return;const u=t.find(d=>d._id===a._id);u&&(u.y>=0&&a.y!==a._orig.y&&(u.y+=a.y-a._orig.y,u.y<0&&(u.y=0)),a.x!==a._orig.x&&(u.x=Math.round(a.x*o),u.x<0&&(u.x=0)),a.w!==a._orig.w&&(u.w=Math.round(a.w*o),u.w<1&&(u.w=1)))})}}),this)}columnChanged(A,t,n="moveScale"){if(!this.nodes.length||!t||A===t)return this;const o=n==="compact"||n==="list";o&&this.sortNodes(1),t<A&&this.cacheLayout(this.nodes,A),this.batchUpdate();let a=[],u=o?this.nodes:j.sort(this.nodes,-1);if(t>A&&this._layouts){const d=this._layouts[t]||[],h=this._layouts.length-1;!d.length&&A!==h&&this._layouts[h]?.length&&(A=h,this._layouts[h].forEach(g=>{const B=u.find(w=>w._id===g._id);B&&(!o&&!g.autoPosition&&(B.x=g.x??B.x,B.y=g.y??B.y),B.w=g.w??B.w,(g.x==null||g.y===void 0)&&(B.autoPosition=!0))})),d.forEach(g=>{const B=u.findIndex(w=>w._id===g._id);if(B!==-1){const w=u[B];if(o){w.w=g.w;return}(g.autoPosition||isNaN(g.x)||isNaN(g.y))&&this.findEmptyPosition(g,a),g.autoPosition||(w.x=g.x??w.x,w.y=g.y??w.y,w.w=g.w??w.w,a.push(w)),u.splice(B,1)}})}if(o)this.compact(n,!1);else{if(u.length)if(typeof n=="function")n(t,A,a,u);else{const d=o||n==="none"?1:t/A,h=n==="move"||n==="moveScale",g=n==="scale"||n==="moveScale";u.forEach(B=>{B.x=t===1?0:h?Math.round(B.x*d):Math.min(B.x,t-1),B.w=t===1||A===1?1:g?Math.round(B.w*d)||1:Math.min(B.w,t),a.push(B)}),u=[]}a=j.sort(a,-1),this._inColumnResize=!0,this.nodes=[],a.forEach(d=>{this.addNode(d,!1),delete d._orig})}return this.nodes.forEach(d=>delete d._orig),this.batchUpdate(!1,!o),delete this._inColumnResize,this}cacheLayout(A,t,n=!1){const o=[];return A.forEach((a,u)=>{a._id===void 0&&(a._id=(a.id?this.nodes.find(d=>d.id===a.id):void 0)?._id??Bn._idSeq++),o[u]={x:a.x,y:a.y,w:a.w,_id:a._id}}),this._layouts=n?[]:this._layouts||[],this._layouts[t]=o,this}cacheOneLayout(A,t){A._id=A._id??Bn._idSeq++;const n={x:A.x,y:A.y,w:A.w,_id:A._id};(A.autoPosition||A.x===void 0)&&(delete n.x,delete n.y,A.autoPosition&&(n.autoPosition=!0)),this._layouts=this._layouts||[],this._layouts[t]=this._layouts[t]||[];const o=this.findCacheLayout(A,t);return o===-1?this._layouts[t].push(n):this._layouts[t][o]=n,this}findCacheLayout(A,t){return this._layouts?.[t]?.findIndex(n=>n._id===A._id)??-1}removeNodeFromLayoutCache(A){if(this._layouts)for(let t=0;t<this._layouts.length;t++){const n=this.findCacheLayout(A,t);n!==-1&&this._layouts[t].splice(n,1)}}cleanupNode(A){for(const t in A)t[0]==="_"&&t!=="_id"&&delete A[t];return this}};mi._idSeq=0;var Fe={alwaysShowResizeHandle:"mobile",animate:!0,auto:!0,cellHeight:"auto",cellHeightThrottle:100,cellHeightUnit:"px",column:12,draggable:{handle:".grid-stack-item-content",appendTo:"body",scroll:!0},handle:".grid-stack-item-content",itemClass:"grid-stack-item",margin:10,marginUnit:"px",maxRow:0,minRow:0,placeholderClass:"grid-stack-placeholder",placeholderText:"",removableOptions:{accept:"grid-stack-item",decline:"grid-stack-non-removable"},resizable:{handles:"se"},rtl:"auto"},NA=class{},ke=typeof window<"u"&&typeof document<"u"&&("ontouchstart"in document||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),be=class{};function kr(e,A){e.touches.length>1||(e.cancelable&&e.preventDefault(),j.simulateMouseEvent(e.changedTouches[0],A))}function ol(e,A){e.cancelable&&e.preventDefault(),j.simulateMouseEvent(e,A)}function Mr(e){be.touchHandled||(be.touchHandled=!0,kr(e,"mousedown"))}function Kr(e){be.touchHandled&&kr(e,"mousemove")}function Or(e){if(!be.touchHandled)return;be.pointerLeaveTimeout&&(window.clearTimeout(be.pointerLeaveTimeout),delete be.pointerLeaveTimeout);const A=!!NA.dragElement;kr(e,"mouseup"),A||kr(e,"click"),be.touchHandled=!1}function Rr(e){e.pointerType!=="mouse"&&e.target.releasePointerCapture(e.pointerId)}function il(e){NA.dragElement&&e.pointerType!=="mouse"&&ol(e,"mouseenter")}function sl(e){NA.dragElement&&e.pointerType!=="mouse"&&(be.pointerLeaveTimeout=window.setTimeout(()=>{delete be.pointerLeaveTimeout,ol(e,"mouseleave")},10))}var al=class pu{constructor(A,t,n){this.host=A,this.dir=t,this.option=n,this.moving=!1,this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._keyEvent=this._keyEvent.bind(this),this._init()}_init(){if(this.option.element)try{this.el=this.option.element instanceof HTMLElement?this.option.element:this.host.querySelector(this.option.element)}catch(A){this.option.element=void 0,console.error("Query for resizeable handle failed, falling back",A)}return this.el||(this.el=document.createElement("div"),this.host.appendChild(this.el)),this.el.classList.add("ui-resizable-handle"),this.el.classList.add(`${pu.prefix}${this.dir}`),this.el.style.zIndex="100",this.el.style.userSelect="none",this.el.addEventListener("mousedown",this._mouseDown),ke&&(this.el.addEventListener("touchstart",Mr),this.el.addEventListener("pointerdown",Rr)),this}destroy(){return this.moving&&this._mouseUp(this.mouseDownEvent),this.el.removeEventListener("mousedown",this._mouseDown),ke&&(this.el.removeEventListener("touchstart",Mr),this.el.removeEventListener("pointerdown",Rr)),this.option.element||this.host.removeChild(this.el),delete this.el,delete this.host,this}_mouseDown(A){this.mouseDownEvent=A,document.addEventListener("mousemove",this._mouseMove,{capture:!0,passive:!0}),document.addEventListener("mouseup",this._mouseUp,!0),ke&&(this.el.addEventListener("touchmove",Kr),this.el.addEventListener("touchend",Or)),A.stopPropagation(),A.preventDefault()}_mouseMove(A){const t=this.mouseDownEvent;this.moving?this._triggerEvent("move",A):Math.abs(A.x-t.x)+Math.abs(A.y-t.y)>2&&(this.moving=!0,this._triggerEvent("start",this.mouseDownEvent),this._triggerEvent("move",A),document.addEventListener("keydown",this._keyEvent)),A.stopPropagation()}_mouseUp(A){this.moving&&(this._triggerEvent("stop",A),document.removeEventListener("keydown",this._keyEvent)),document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),ke&&(this.el.removeEventListener("touchmove",Kr),this.el.removeEventListener("touchend",Or)),delete this.moving,delete this.mouseDownEvent,A.stopPropagation(),A.preventDefault()}_keyEvent(A){A.key==="Escape"&&(this.host.gridstackNode?.grid?.engine.restoreInitial(),this._mouseUp(this.mouseDownEvent))}_triggerEvent(A,t){return this.option[A]&&this.option[A](t),this}};al.prefix="ui-resizable-";var wi=class{constructor(){this._eventRegister={}}get disabled(){return this._disabled}on(e,A){this._eventRegister[e]=A}off(e){delete this._eventRegister[e]}enable(){this._disabled=!1}disable(){this._disabled=!0}destroy(){delete this._eventRegister}triggerEvent(e,A){if(!this.disabled&&this._eventRegister&&this._eventRegister[e])return this._eventRegister[e](A)}},ll=class ts extends wi{constructor(A,t={}){super(),this.el=A,this.option=t,this.rectScale={x:1,y:1},this._ui=()=>{const n=this.el.parentElement.getBoundingClientRect(),o={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},a=this.temporalRect||o;return{position:{left:(a.left-n.left)*this.rectScale.x,top:(a.top-n.top)*this.rectScale.y},size:{width:a.width*this.rectScale.x,height:a.height*this.rectScale.y}}},this._mouseOver=this._mouseOver.bind(this),this._mouseOut=this._mouseOut.bind(this),this.enable(),this._setupAutoHide(this.option.autoHide),this._setupHandlers()}on(A,t){super.on(A,t)}off(A){super.off(A)}enable(){super.enable(),this.el.classList.remove("ui-resizable-disabled"),this._setupAutoHide(this.option.autoHide)}disable(){super.disable(),this.el.classList.add("ui-resizable-disabled"),this._setupAutoHide(!1)}destroy(){this._removeHandlers(),this._setupAutoHide(!1),delete this.el,super.destroy()}updateOption(A){const t=A.handles&&A.handles!==this.option.handles,n=A.autoHide&&A.autoHide!==this.option.autoHide;return Object.keys(A).forEach(o=>this.option[o]=A[o]),t&&(this._removeHandlers(),this._setupHandlers()),n&&this._setupAutoHide(this.option.autoHide),this}_setupAutoHide(A){return A?(this.el.classList.add("ui-resizable-autohide"),this.el.addEventListener("mouseover",this._mouseOver),this.el.addEventListener("mouseout",this._mouseOut)):(this.el.classList.remove("ui-resizable-autohide"),this.el.removeEventListener("mouseover",this._mouseOver),this.el.removeEventListener("mouseout",this._mouseOut),NA.overResizeElement===this&&delete NA.overResizeElement),this}_mouseOver(A){NA.overResizeElement||NA.dragElement||(NA.overResizeElement=this,this.el.classList.remove("ui-resizable-autohide"))}_mouseOut(A){NA.overResizeElement===this&&(delete NA.overResizeElement,this.el.classList.add("ui-resizable-autohide"))}_setupHandlers(){return this.handlers=this.option.handles.split(",").map(A=>A.trim()).map(A=>new al(this.el,A,{element:this.option.element,start:t=>this._resizeStart(t),stop:t=>this._resizeStop(t),move:t=>this._resizing(t,A)})),this}_resizeStart(A){this.sizeToContent=j.shouldSizeToContent(this.el.gridstackNode,!0),this.originalRect=this.el.getBoundingClientRect(),this.scrollEl=j.getScrollElement(this.el),this.scrollY=this.scrollEl.scrollTop,this.scrolled=0,this.startEvent=A,this._setupHelper(),this._applyChange();const t=j.initEvent(A,{type:"resizestart",target:this.el});return this.option.start&&this.option.start(t,this._ui()),this.el.classList.add("ui-resizable-resizing"),this.triggerEvent("resizestart",t),this}_resizing(A,t){this.scrolled=this.scrollEl.scrollTop-this.scrollY,this.temporalRect=this._getChange(A,t),this._applyChange();const n=j.initEvent(A,{type:"resize",target:this.el});return this.option.resize&&this.option.resize(n,this._ui()),this.triggerEvent("resize",n),this}_resizeStop(A){const t=j.initEvent(A,{type:"resizestop",target:this.el});return this._cleanHelper(),this.option.stop&&this.option.stop(t),this.el.classList.remove("ui-resizable-resizing"),this.triggerEvent("resizestop",t),delete this.startEvent,delete this.originalRect,delete this.temporalRect,delete this.scrollY,delete this.scrolled,this}_setupHelper(){this.elOriginStyleVal=ts._originStyleProp.map(n=>this.el.style[n]),this.parentOriginStylePosition=this.el.parentElement.style.position;const A=this.el.parentElement,t=j.getValuesFromTransformedElement(A);return this.rectScale={x:t.xScale,y:t.yScale},getComputedStyle(this.el.parentElement).position.match(/static/)&&(this.el.parentElement.style.position="relative"),this.el.style.position="absolute",this.el.style.opacity="0.8",this}_cleanHelper(){return ts._originStyleProp.forEach((A,t)=>{this.el.style[A]=this.elOriginStyleVal[t]||null}),this.el.parentElement.style.position=this.parentOriginStylePosition||null,this}_getChange(A,t){const n=this.startEvent,o={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},a=A.clientX-n.clientX,u=this.sizeToContent?0:A.clientY-n.clientY;let d,h;t.indexOf("e")>-1?o.width+=a:t.indexOf("w")>-1&&(o.width-=a,o.left+=a,d=!0),t.indexOf("s")>-1?o.height+=u:t.indexOf("n")>-1&&(o.height-=u,o.top+=u,h=!0);const g=this._constrainSize(o.width,o.height,d,h);return Math.round(o.width)!==Math.round(g.width)&&(t.indexOf("w")>-1&&(o.left+=o.width-g.width),o.width=g.width),Math.round(o.height)!==Math.round(g.height)&&(t.indexOf("n")>-1&&(o.top+=o.height-g.height),o.height=g.height),o}_constrainSize(A,t,n,o){const a=this.option,u=(n?a.maxWidthMoveLeft:a.maxWidth)||Number.MAX_SAFE_INTEGER,d=a.minWidth/this.rectScale.x||A,h=(o?a.maxHeightMoveUp:a.maxHeight)||Number.MAX_SAFE_INTEGER,g=a.minHeight/this.rectScale.y||t;return{width:Math.min(u,Math.max(d,A)),height:Math.min(h,Math.max(g,t))}}_applyChange(){let A={left:0,top:0,width:0,height:0};if(this.el.style.position==="absolute"){const{left:t,top:n}=this.el.parentElement.getBoundingClientRect();A={left:t,top:n,width:0,height:0}}return this.temporalRect?(Object.keys(this.temporalRect).forEach(t=>{const n=this.temporalRect[t],o=t==="width"||t==="left"?this.rectScale.x:t==="height"||t==="top"?this.rectScale.y:1;this.el.style[t]=(n-A[t])*o+"px"}),this):this}_removeHandlers(){return this.handlers.forEach(A=>A.destroy()),delete this.handlers,this}};ll._originStyleProp=["width","height","position","left","top","opacity","zIndex"];var Dm='input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle',cl=class ns extends wi{constructor(A,t={}){super(),this.el=A,this.option=t,this.dragTransform={xScale:1,yScale:1,xOffset:0,yOffset:0};const n=t?.handle?.substring(1),o=A.gridstackNode;this.dragEls=!n||A.classList.contains(n)?[A]:o?.subGrid?[A.querySelector(t.handle)||A]:Array.from(A.querySelectorAll(t.handle)),this.dragEls.length===0&&(this.dragEls=[A]),this._mouseDown=this._mouseDown.bind(this),this._mouseMove=this._mouseMove.bind(this),this._mouseUp=this._mouseUp.bind(this),this._keyEvent=this._keyEvent.bind(this),this.enable()}on(A,t){super.on(A,t)}off(A){super.off(A)}enable(){this.disabled!==!1&&(super.enable(),this.dragEls.forEach(A=>{A.addEventListener("mousedown",this._mouseDown),ke&&(A.addEventListener("touchstart",Mr),A.addEventListener("pointerdown",Rr))}),this.el.classList.remove("ui-draggable-disabled"))}disable(A=!1){this.disabled!==!0&&(super.disable(),this.dragEls.forEach(t=>{t.removeEventListener("mousedown",this._mouseDown),ke&&(t.removeEventListener("touchstart",Mr),t.removeEventListener("pointerdown",Rr))}),A||this.el.classList.add("ui-draggable-disabled"))}destroy(){this.dragTimeout&&window.clearTimeout(this.dragTimeout),delete this.dragTimeout,this.mouseDownEvent&&this._mouseUp(this.mouseDownEvent),this.disable(!0),delete this.el,delete this.helper,delete this.option,super.destroy()}updateOption(A){return Object.keys(A).forEach(t=>this.option[t]=A[t]),this}_mouseDown(A){if(be.touchHandled&&A.isTrusted&&(be.touchHandled=!1),!NA.mouseHandled)return A.button!==0||!this.dragEls.find(t=>t===A.target)&&A.target.closest(Dm)||this.option.cancel&&A.target.closest(this.option.cancel)||(this.mouseDownEvent=A,delete this.dragging,delete NA.dragElement,delete NA.dropElement,document.addEventListener("mousemove",this._mouseMove,{capture:!0,passive:!0}),document.addEventListener("mouseup",this._mouseUp,!0),ke&&(A.currentTarget.addEventListener("touchmove",Kr),A.currentTarget.addEventListener("touchend",Or)),A.preventDefault(),document.activeElement&&document.activeElement.blur(),NA.mouseHandled=!0),!0}_callDrag(A){if(!this.dragging)return;const t=j.initEvent(A,{target:this.el,type:"drag"});this.option.drag&&this.option.drag(t,this.ui()),this.triggerEvent("drag",t)}_mouseMove(A){const t=this.mouseDownEvent;if(this.lastDrag=A,this.dragging)if(this._dragFollow(A),NA.pauseDrag){const n=Number.isInteger(NA.pauseDrag)?NA.pauseDrag:100;this.dragTimeout&&window.clearTimeout(this.dragTimeout),this.dragTimeout=window.setTimeout(()=>this._callDrag(A),n)}else this._callDrag(A);else if(Math.abs(A.x-t.x)+Math.abs(A.y-t.y)>3){this.dragging=!0,NA.dragElement=this;const n=this.el.gridstackNode?.grid;n?NA.dropElement=n.el.ddElement.ddDroppable:delete NA.dropElement,this.helper=this._createHelper(),this._setupHelperContainmentStyle(),this.dragTransform=j.getValuesFromTransformedElement(this.helperContainment),this.dragOffset=this._getDragOffset(A,this.el,this.helperContainment),this._setupHelperStyle(A);const o=j.initEvent(A,{target:this.el,type:"dragstart"});this.option.start&&this.option.start(o,this.ui()),this.triggerEvent("dragstart",o),document.addEventListener("keydown",this._keyEvent)}return!0}_mouseUp(A){if(document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),ke&&A.currentTarget&&(A.currentTarget.removeEventListener("touchmove",Kr,!0),A.currentTarget.removeEventListener("touchend",Or,!0)),this.dragging){delete this.dragging,delete this.el.gridstackNode?._origRotate,document.removeEventListener("keydown",this._keyEvent),NA.dropElement?.el===this.el.parentElement&&delete NA.dropElement,this.helperContainment.style.position=this.parentOriginStylePosition||null,this.helper!==this.el&&this.helper.remove(),this._removeHelperStyle();const t=j.initEvent(A,{target:this.el,type:"dragstop"});this.option.stop&&this.option.stop(t),this.triggerEvent("dragstop",t),NA.dropElement&&NA.dropElement.drop(A)}delete this.helper,delete this.mouseDownEvent,delete NA.dragElement,delete NA.dropElement,delete NA.mouseHandled,A.preventDefault()}_keyEvent(A){const t=this.el.gridstackNode,n=t?.grid||NA.dropElement?.el?.gridstack;if(A.key==="Escape")t&&t._origRotate&&(t._orig=t._origRotate,delete t._origRotate),n?.cancelDrag(),this._mouseUp(this.mouseDownEvent);else if(t&&n&&(A.key==="r"||A.key==="R")){if(!j.canBeRotated(t))return;t._origRotate=t._origRotate||{...t._orig},delete t._moving,n.setAnimation(!1).rotate(t.el,{top:-this.dragOffset.offsetTop,left:-this.dragOffset.offsetLeft}).setAnimation(),t._moving=!0,this.dragOffset=this._getDragOffset(this.lastDrag,t.el,this.helperContainment),this.helper.style.width=this.dragOffset.width+"px",this.helper.style.height=this.dragOffset.height+"px",j.swap(t._orig,"w","h"),delete t._rect,this._mouseMove(this.lastDrag)}}_createHelper(){let A=this.el;return typeof this.option.helper=="function"?A=this.option.helper(this.el):this.option.helper==="clone"&&(A=j.cloneNode(this.el)),A.parentElement||j.appendTo(A,this.option.appendTo==="parent"?this.el.parentElement:this.option.appendTo),this.dragElementOriginStyle=ns.originStyleProp.map(t=>this.el.style[t]),A}_setupHelperStyle(A){this.helper.classList.add("ui-draggable-dragging"),this.el.gridstackNode?.grid?.el.classList.add("grid-stack-dragging");const t=this.helper.style;return t.pointerEvents="none",t.width=this.dragOffset.width+"px",t.height=this.dragOffset.height+"px",t.willChange="left, top",t.position="fixed",this._dragFollow(A),t.transition="none",setTimeout(()=>{this.helper&&(t.transition=null)},0),this}_removeHelperStyle(){if(this.helper.classList.remove("ui-draggable-dragging"),this.el.gridstackNode?.grid?.el.classList.remove("grid-stack-dragging"),!this.helper?.gridstackNode?._isAboutToRemove&&this.dragElementOriginStyle){const A=this.helper,t=this.dragElementOriginStyle.transition||null;A.style.transition=this.dragElementOriginStyle.transition="none",ns.originStyleProp.forEach(n=>A.style[n]=this.dragElementOriginStyle[n]||null),setTimeout(()=>A.style.transition=t,50)}return delete this.dragElementOriginStyle,this}_dragFollow(A){const t={left:0,top:0},n=this.helper.style,o=this.dragOffset;n.left=(A.clientX+o.offsetLeft-t.left)*this.dragTransform.xScale+"px",n.top=(A.clientY+o.offsetTop-t.top)*this.dragTransform.yScale+"px"}_setupHelperContainmentStyle(){return this.helperContainment=this.helper.parentElement,this.helper.style.position!=="fixed"&&(this.parentOriginStylePosition=this.helperContainment.style.position,getComputedStyle(this.helperContainment).position.match(/static/)&&(this.helperContainment.style.position="relative")),this}_getDragOffset(A,t,n){let o=0,a=0;n&&(o=this.dragTransform.xOffset,a=this.dragTransform.yOffset);const u=t.getBoundingClientRect();return{left:u.left,top:u.top,offsetLeft:-A.clientX+u.left-o,offsetTop:-A.clientY+u.top-a,width:u.width*this.dragTransform.xScale,height:u.height*this.dragTransform.yScale}}ui(){const A=this.el.parentElement.getBoundingClientRect(),t=this.helper.getBoundingClientRect();return{position:{top:(t.top-A.top)*this.dragTransform.yScale,left:(t.left-A.left)*this.dragTransform.xScale}}}};cl.originStyleProp=["width","height","transform","transform-origin","transition","pointerEvents","position","left","top","minWidth","willChange"];var Nm=class extends wi{constructor(e,A={}){super(),this.el=e,this.option=A,this._mouseEnter=this._mouseEnter.bind(this),this._mouseLeave=this._mouseLeave.bind(this),this.enable(),this._setupAccept()}on(e,A){super.on(e,A)}off(e){super.off(e)}enable(){this.disabled!==!1&&(super.enable(),this.el.classList.add("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),this.el.addEventListener("mouseenter",this._mouseEnter),this.el.addEventListener("mouseleave",this._mouseLeave),ke&&(this.el.addEventListener("pointerenter",il),this.el.addEventListener("pointerleave",sl)))}disable(e=!1){this.disabled!==!0&&(super.disable(),this.el.classList.remove("ui-droppable"),e||this.el.classList.add("ui-droppable-disabled"),this.el.removeEventListener("mouseenter",this._mouseEnter),this.el.removeEventListener("mouseleave",this._mouseLeave),ke&&(this.el.removeEventListener("pointerenter",il),this.el.removeEventListener("pointerleave",sl)))}destroy(){this.disable(!0),this.el.classList.remove("ui-droppable"),this.el.classList.remove("ui-droppable-disabled"),super.destroy()}updateOption(e){return Object.keys(e).forEach(A=>this.option[A]=e[A]),this._setupAccept(),this}_mouseEnter(e){if(!NA.dragElement||be.touchHandled&&e.isTrusted||!this._canDrop(NA.dragElement.el))return;e.preventDefault(),e.stopPropagation(),NA.dropElement&&NA.dropElement!==this&&NA.dropElement._mouseLeave(e,!0),NA.dropElement=this;const A=j.initEvent(e,{target:this.el,type:"dropover"});this.option.over&&this.option.over(A,this._ui(NA.dragElement)),this.triggerEvent("dropover",A),this.el.classList.add("ui-droppable-over")}_mouseLeave(e,A=!1){if(!NA.dragElement||NA.dropElement!==this)return;e.preventDefault(),e.stopPropagation();const t=j.initEvent(e,{target:this.el,type:"dropout"});if(this.option.out&&this.option.out(t,this._ui(NA.dragElement)),this.triggerEvent("dropout",t),NA.dropElement===this&&(delete NA.dropElement,!A)){let n,o=this.el.parentElement;for(;!n&&o;)n=o.ddElement?.ddDroppable,o=o.parentElement;n&&n._mouseEnter(e)}}drop(e){e.preventDefault();const A=j.initEvent(e,{target:this.el,type:"drop"});this.option.drop&&this.option.drop(A,this._ui(NA.dragElement)),this.triggerEvent("drop",A)}_canDrop(e){return e&&(!this.accept||this.accept(e))}_setupAccept(){return this.option.accept?(typeof this.option.accept=="string"?this.accept=e=>e.classList.contains(this.option.accept)||e.matches(this.option.accept):this.accept=this.option.accept,this):this}_ui(e){return{draggable:e.el,...e.ui()}}},Lm=class mu{static init(A){return A.ddElement||(A.ddElement=new mu(A)),A.ddElement}constructor(A){this.el=A}on(A,t){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(A)>-1?this.ddDraggable.on(A,t):this.ddDroppable&&["drop","dropover","dropout"].indexOf(A)>-1?this.ddDroppable.on(A,t):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(A)>-1&&this.ddResizable.on(A,t),this}off(A){return this.ddDraggable&&["drag","dragstart","dragstop"].indexOf(A)>-1?this.ddDraggable.off(A):this.ddDroppable&&["drop","dropover","dropout"].indexOf(A)>-1?this.ddDroppable.off(A):this.ddResizable&&["resizestart","resize","resizestop"].indexOf(A)>-1&&this.ddResizable.off(A),this}setupDraggable(A){return this.ddDraggable?this.ddDraggable.updateOption(A):this.ddDraggable=new cl(this.el,A),this}cleanDraggable(){return this.ddDraggable&&(this.ddDraggable.destroy(),delete this.ddDraggable),this}setupResizable(A){return this.ddResizable?this.ddResizable.updateOption(A):this.ddResizable=new ll(this.el,A),this}cleanResizable(){return this.ddResizable&&(this.ddResizable.destroy(),delete this.ddResizable),this}setupDroppable(A){return this.ddDroppable?this.ddDroppable.updateOption(A):this.ddDroppable=new Nm(this.el,A),this}cleanDroppable(){return this.ddDroppable&&(this.ddDroppable.destroy(),delete this.ddDroppable),this}},Tm=class{resizable(e,A,t,n){return this._getDDElements(e,A).forEach(o=>{if(A==="disable"||A==="enable")o.ddResizable&&o.ddResizable[A]();else if(A==="destroy")o.ddResizable&&o.cleanResizable();else if(A==="option")o.setupResizable({[t]:n});else{const a=o.el.gridstackNode.grid;let u=o.el.getAttribute("gs-resize-handles")||a.opts.resizable.handles||"e,s,se";u==="all"&&(u="n,e,s,w,se,sw,ne,nw");const d=!a.opts.alwaysShowResizeHandle;o.setupResizable({...a.opts.resizable,handles:u,autoHide:d,start:A.start,stop:A.stop,resize:A.resize})}}),this}draggable(e,A,t,n){return this._getDDElements(e,A).forEach(o=>{if(A==="disable"||A==="enable")o.ddDraggable&&o.ddDraggable[A]();else if(A==="destroy")o.ddDraggable&&o.cleanDraggable();else if(A==="option")o.setupDraggable({[t]:n});else{const a=o.el.gridstackNode.grid;o.setupDraggable({...a.opts.draggable,start:A.start,stop:A.stop,drag:A.drag})}}),this}dragIn(e,A){return this._getDDElements(e).forEach(t=>t.setupDraggable(A)),this}droppable(e,A,t,n){return typeof A.accept=="function"&&!A._accept&&(A._accept=A.accept,A.accept=o=>A._accept(o)),this._getDDElements(e,A).forEach(o=>{A==="disable"||A==="enable"?o.ddDroppable&&o.ddDroppable[A]():A==="destroy"?o.ddDroppable&&o.cleanDroppable():A==="option"?o.setupDroppable({[t]:n}):o.setupDroppable(A)}),this}isDroppable(e){return!!(e?.ddElement?.ddDroppable&&!e.ddElement.ddDroppable.disabled)}isDraggable(e){return!!(e?.ddElement?.ddDraggable&&!e.ddElement.ddDraggable.disabled)}isResizable(e){return!!(e?.ddElement?.ddResizable&&!e.ddElement.ddResizable.disabled)}on(e,A,t){return this._getDDElements(e).forEach(n=>n.on(A,o=>{t(o,NA.dragElement?NA.dragElement.el:o.target,NA.dragElement?NA.dragElement.helper:null)})),this}off(e,A){return this._getDDElements(e).forEach(t=>t.off(A)),this}_getDDElements(e,A){const t=e.gridstack||A!=="destroy"&&A!=="disable",n=j.getElements(e);return n.length?n.map(o=>o.ddElement||(t?Lm.init(o):null)).filter(o=>o):[]}},me=new Tm,en=class DA{static init(A={},t=".grid-stack"){if(typeof document>"u")return null;const n=DA.getGridElement(t);return n?(n.gridstack||(n.gridstack=new DA(n,j.cloneDeep(A))),n.gridstack):(console.error(typeof t=="string"?'GridStack.initAll() no grid was found with selector "'+t+`" - element missing or wrong selector ?
|
|
27
|
+
Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`:"GridStack.init() no grid element was passed."),null)}static initAll(A={},t=".grid-stack"){const n=[];return typeof document>"u"||(DA.getGridElements(t).forEach(o=>{o.gridstack||(o.gridstack=new DA(o,j.cloneDeep(A))),n.push(o.gridstack)}),n.length===0&&console.error('GridStack.initAll() no grid was found with selector "'+t+`" - element missing or wrong selector ?
|
|
28
|
+
Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`)),n}static addGrid(A,t={}){if(!A)return null;let n=A;if(n.gridstack){const o=n.gridstack;return t&&(o.opts={...o.opts,...t}),t.children!==void 0&&o.load(t.children),o}return(!A.classList.contains("grid-stack")||DA.addRemoveCB)&&(DA.addRemoveCB?n=DA.addRemoveCB(A,t,!0,!0):n=j.createDiv(["grid-stack",t.class],A)),DA.init(t,n)}static registerEngine(A){DA.engineClass=A}get placeholder(){if(!this._placeholder){this._placeholder=j.createDiv([this.opts.placeholderClass,Fe.itemClass,this.opts.itemClass]);const A=j.createDiv(["placeholder-content"],this._placeholder);this.opts.placeholderText&&(A.textContent=this.opts.placeholderText)}return this._placeholder}constructor(A,t={}){this.el=A,this.opts=t,this.animationDelay=310,this._gsEventHandler={},this._extraDragRow=0,this.dragTransform={xScale:1,yScale:1,xOffset:0,yOffset:0},A.gridstack=this,this.opts=t=t||{},A.classList.contains("grid-stack")||this.el.classList.add("grid-stack"),t.row&&(t.minRow=t.maxRow=t.row,delete t.row);const n=j.toNumber(A.getAttribute("gs-row"));t.column==="auto"&&delete t.column,t.alwaysShowResizeHandle!==void 0&&(t._alwaysShowResizeHandle=t.alwaysShowResizeHandle);const o=t.columnOpts;if(o){const h=o.breakpoints;!o.columnWidth&&!h?.length?delete t.columnOpts:(o.columnMax=o.columnMax||12,h?.length>1&&h.sort((g,B)=>(B.w||0)-(g.w||0)))}const a={...j.cloneDeep(Fe),column:j.toNumber(A.getAttribute("gs-column"))||Fe.column,minRow:n||j.toNumber(A.getAttribute("gs-min-row"))||Fe.minRow,maxRow:n||j.toNumber(A.getAttribute("gs-max-row"))||Fe.maxRow,staticGrid:j.toBool(A.getAttribute("gs-static"))||Fe.staticGrid,sizeToContent:j.toBool(A.getAttribute("gs-size-to-content"))||void 0,draggable:{handle:(t.handleClass?"."+t.handleClass:t.handle?t.handle:"")||Fe.draggable.handle},removableOptions:{accept:t.itemClass||Fe.removableOptions.accept,decline:Fe.removableOptions.decline}};A.getAttribute("gs-animate")&&(a.animate=j.toBool(A.getAttribute("gs-animate"))),t=j.defaults(t,a),this._initMargin(),this.checkDynamicColumn(),this._updateColumnVar(t),t.rtl==="auto"&&(t.rtl=A.style.direction==="rtl"),t.rtl&&this.el.classList.add("grid-stack-rtl");const u=this.el.closest("."+Fe.itemClass)?.gridstackNode;if(u&&(u.subGrid=this,this.parentGridNode=u,this.el.classList.add("grid-stack-nested"),u.el.classList.add("grid-stack-sub-grid")),this._isAutoCellHeight=t.cellHeight==="auto",this._isAutoCellHeight||t.cellHeight==="initial")this.cellHeight(void 0);else{typeof t.cellHeight=="number"&&t.cellHeightUnit&&t.cellHeightUnit!==Fe.cellHeightUnit&&(t.cellHeight=t.cellHeight+t.cellHeightUnit,delete t.cellHeightUnit);const h=t.cellHeight;delete t.cellHeight,this.cellHeight(h)}t.alwaysShowResizeHandle==="mobile"&&(t.alwaysShowResizeHandle=ke),this._setStaticClass();const d=t.engineClass||DA.engineClass||mi;if(this.engine=new d({column:this.getColumn(),float:t.float,maxRow:t.maxRow,onChange:h=>{h.forEach(g=>{const B=g.el;B&&(g._removeDOM?(B&&B.remove(),delete g._removeDOM):this._writePosAttr(B,g))}),this._updateContainerHeight()}}),t.auto&&(this.batchUpdate(),this.engine._loading=!0,this.getGridItems().forEach(h=>this._prepareElement(h)),delete this.engine._loading,this.batchUpdate(!1)),t.children){const h=t.children;delete t.children,h.length&&this.load(h)}this.setAnimation(),t.subGridDynamic&&!NA.pauseDrag&&(NA.pauseDrag=!0),t.draggable?.pause!==void 0&&(NA.pauseDrag=t.draggable.pause),this._setupRemoveDrop(),this._setupAcceptWidget(),this._updateResizeEvent()}_updateColumnVar(A=this.opts){this.el.classList.add("gs-"+A.column),typeof A.column=="number"&&this.el.style.setProperty("--gs-column-width",`${100/A.column}%`)}addWidget(A){if(!A)return;if(typeof A=="string"){console.error("V11: GridStack.addWidget() does not support string anymore. see #2736");return}if(A.ELEMENT_NODE)return console.error("V11: GridStack.addWidget() does not support HTMLElement anymore. use makeWidget()"),this.makeWidget(A);let t,n=A;if(n.grid=this,n.el?t=n.el:DA.addRemoveCB?t=DA.addRemoveCB(this.el,A,!0,!1):t=this.createWidgetDivs(n),!t)return;if(n=t.gridstackNode,n&&t.parentElement===this.el&&this.engine.nodes.find(a=>a._id===n._id))return t;const o=this._readAttr(t);return j.defaults(A,o),this.engine.prepareNode(A),this.el.appendChild(t),this.makeWidget(t,A),t}createWidgetDivs(A){const t=j.createDiv(["grid-stack-item",this.opts.itemClass]),n=j.createDiv(["grid-stack-item-content"],t);return j.lazyLoad(A)?A.visibleObservable||(A.visibleObservable=new IntersectionObserver(([o])=>{o.isIntersecting&&(A.visibleObservable?.disconnect(),delete A.visibleObservable,DA.renderCB(n,A),A.grid?.prepareDragDrop(A.el))}),window.setTimeout(()=>A.visibleObservable?.observe(t))):DA.renderCB(n,A),t}makeSubGrid(A,t,n,o=!0){let a=A.gridstackNode;if(a||(a=this.makeWidget(A).gridstackNode),a.subGrid?.el)return a.subGrid;let u,d=this;for(;d&&!u;)u=d.opts?.subGridOpts,d=d.parentGridNode?.grid;t=j.cloneDeep({...this.opts,id:void 0,children:void 0,column:"auto",columnOpts:void 0,layout:"list",subGridOpts:void 0,...u||{},...t||a.subGridOpts||{}}),a.subGridOpts=t;let h;t.column==="auto"&&(h=!0,t.column=Math.max(a.w||1,n?.w||1),delete t.columnOpts);let g=a.el.querySelector(".grid-stack-item-content"),B,w;if(o&&(this._removeDD(a.el),w={...a,x:0,y:0},j.removeInternalForSave(w),delete w.subGridOpts,a.content&&(w.content=a.content,delete a.content),DA.addRemoveCB?B=DA.addRemoveCB(this.el,w,!0,!1):(B=j.createDiv(["grid-stack-item"]),B.appendChild(g),g=j.createDiv(["grid-stack-item-content"],a.el)),this.prepareDragDrop(a.el)),n){const v=h?t.column:a.w,Q=a.h+n.h,H=a.el.style;H.transition="none",this.update(a.el,{w:v,h:Q}),setTimeout(()=>H.transition=null)}const m=a.subGrid=DA.addGrid(g,t);return n?._moving&&(m._isTemp=!0),h&&(m._autoColumn=!0),o&&m.makeWidget(B,w),n&&(n._moving?window.setTimeout(()=>j.simulateMouseEvent(n._event,"mouseenter",m.el),0):m.makeWidget(a.el,a)),this.resizeToContentCheck(!1,a),m}removeAsSubGrid(A){const t=this.parentGridNode?.grid;t&&(t.batchUpdate(),t.removeWidget(this.parentGridNode.el,!0,!0),this.engine.nodes.forEach(n=>{n.x+=this.parentGridNode.x,n.y+=this.parentGridNode.y,t.makeWidget(n.el,n)}),t.batchUpdate(!1),this.parentGridNode&&delete this.parentGridNode.subGrid,delete this.parentGridNode,A&&window.setTimeout(()=>j.simulateMouseEvent(A._event,"mouseenter",t.el),0))}save(A=!0,t=!1,n=DA.saveCB,o){const a=this.engine.save(A,n,o);if(a.forEach(u=>{if(A&&u.el&&!u.subGrid&&!n)u.content=u.el.querySelector(".grid-stack-item-content")?.innerHTML,u.content||delete u.content;else if(!A&&!n&&delete u.content,u.subGrid?.el){const d=u.w||u.subGrid.getColumn(),h=u.subGrid.save(A,t,n,d);u.subGridOpts=t?h:{children:h},delete u.subGrid}delete u.el}),t){const u=j.cloneDeep(this.opts);u.marginBottom===u.marginTop&&u.marginRight===u.marginLeft&&u.marginTop===u.marginRight&&(u.margin=u.marginTop,delete u.marginTop,delete u.marginRight,delete u.marginBottom,delete u.marginLeft),u.rtl===(this.el.style.direction==="rtl")&&(u.rtl="auto"),this._isAutoCellHeight&&(u.cellHeight="auto"),this._autoColumn&&(u.column="auto");const d=u._alwaysShowResizeHandle;return delete u._alwaysShowResizeHandle,d!==void 0?u.alwaysShowResizeHandle=d:delete u.alwaysShowResizeHandle,j.removeInternalAndSame(u,Fe),u.children=a,u}return a}load(A,t=DA.addRemoveCB||!0){A=j.cloneDeep(A);const n=this.getColumn();A.forEach(B=>{B.w=B.w||B.minW||1,B.h=B.h||B.minH||1}),A=j.sort(A),this.engine.skipCacheUpdate=this._ignoreLayoutsNodeChange=!0;let o=0;A.forEach(B=>{o=Math.max(o,(B.x||0)+B.w)}),o>this.engine.defaultColumn&&(this.engine.defaultColumn=o),o>n&&(this.engine.nodes.length===0&&this.responseLayout?(this.engine.nodes=A,this.engine.columnChanged(o,n,this.responseLayout),A=this.engine.nodes,this.engine.nodes=[],delete this.responseLayout):this.engine.cacheLayout(A,o,!0));const a=DA.addRemoveCB;typeof t=="function"&&(DA.addRemoveCB=t);const u=[];this.batchUpdate();const d=!this.engine.nodes.length,h=d&&this.opts.animate;h&&this.setAnimation(!1),!d&&t&&[...this.engine.nodes].forEach(B=>{B.id&&(j.find(A,B.id)||(DA.addRemoveCB&&DA.addRemoveCB(this.el,B,!1,!1),u.push(B),this.removeWidget(B.el,!0,!1)))}),this.engine._loading=!0;const g=[];return this.engine.nodes=this.engine.nodes.filter(B=>j.find(A,B.id)?(g.push(B),!1):!0),A.forEach(B=>{const w=j.find(g,B.id);if(w){if(j.shouldSizeToContent(w)&&(B.h=w.h),this.engine.nodeBoundFix(B),(B.autoPosition||B.x===void 0||B.y===void 0)&&(B.w=B.w||w.w,B.h=B.h||w.h,this.engine.findEmptyPosition(B)),this.engine.nodes.push(w),j.samePos(w,B)&&this.engine.nodes.length>1&&(this.moveNode(w,{...B,forceCollide:!0}),j.copyPos(B,w)),this.update(w.el,B),B.subGridOpts?.children){const m=w.el.querySelector(".grid-stack");m&&m.gridstack&&m.gridstack.load(B.subGridOpts.children)}}else t&&this.addWidget(B)}),delete this.engine._loading,this.engine.removedNodes=u,this.batchUpdate(!1),delete this._ignoreLayoutsNodeChange,delete this.engine.skipCacheUpdate,a?DA.addRemoveCB=a:delete DA.addRemoveCB,h&&this.setAnimation(!0,!0),this}batchUpdate(A=!0){return this.engine.batchUpdate(A),A||(this._updateContainerHeight(),this._triggerRemoveEvent(),this._triggerAddEvent(),this._triggerChangeEvent()),this}getCellHeight(A=!1){if(this.opts.cellHeight&&this.opts.cellHeight!=="auto"&&(!A||!this.opts.cellHeightUnit||this.opts.cellHeightUnit==="px"))return this.opts.cellHeight;if(this.opts.cellHeightUnit==="rem")return this.opts.cellHeight*parseFloat(getComputedStyle(document.documentElement).fontSize);if(this.opts.cellHeightUnit==="em")return this.opts.cellHeight*parseFloat(getComputedStyle(this.el).fontSize);if(this.opts.cellHeightUnit==="cm")return this.opts.cellHeight*(96/2.54);if(this.opts.cellHeightUnit==="mm")return this.opts.cellHeight*(96/2.54)/10;const t=this.el.querySelector("."+this.opts.itemClass);if(t){const o=j.toNumber(t.getAttribute("gs-h"))||1;return Math.round(t.offsetHeight/o)}const n=parseInt(this.el.getAttribute("gs-current-row"));return n?Math.round(this.el.getBoundingClientRect().height/n):this.opts.cellHeight}cellHeight(A){if(A!==void 0&&this._isAutoCellHeight!==(A==="auto")&&(this._isAutoCellHeight=A==="auto",this._updateResizeEvent()),(A==="initial"||A==="auto")&&(A=void 0),A===void 0){const n=-this.opts.marginRight-this.opts.marginLeft+this.opts.marginTop+this.opts.marginBottom;A=this.cellWidth()+n}const t=j.parseHeight(A);return this.opts.cellHeightUnit===t.unit&&this.opts.cellHeight===t.h?this:(this.opts.cellHeightUnit=t.unit,this.opts.cellHeight=t.h,this.el.style.setProperty("--gs-cell-height",`${this.opts.cellHeight}${this.opts.cellHeightUnit}`),this._updateContainerHeight(),this.resizeToContentCheck(),this)}cellWidth(){return this._widthOrContainer()/this.getColumn()}_widthOrContainer(A=!1){return A&&this.opts.columnOpts?.breakpointForWindow?window.innerWidth:this.el.clientWidth||this.el.parentElement.clientWidth||window.innerWidth}checkDynamicColumn(){const A=this.opts.columnOpts;if(!A||!A.columnWidth&&!A.breakpoints?.length)return!1;const t=this.getColumn();let n=t;const o=this._widthOrContainer(!0);if(A.columnWidth)n=Math.min(Math.round(o/A.columnWidth)||1,A.columnMax);else{n=A.columnMax;let a=0;for(;a<A.breakpoints.length&&o<=A.breakpoints[a].w;)n=A.breakpoints[a++].c||t}if(n!==t){const a=A.breakpoints?.find(u=>u.c===n);return this.column(n,a?.layout||A.layout),!0}return!1}compact(A="compact",t=!0){return this.engine.compact(A,t),this._triggerChangeEvent(),this}column(A,t="moveScale"){if(!A||A<1||this.opts.column===A)return this;const n=this.getColumn();return this.opts.column=A,this.engine?(this.engine.column=A,this.el.classList.remove("gs-"+n),this._updateColumnVar(),this.engine.columnChanged(n,A,t),this._isAutoCellHeight&&this.cellHeight(),this.resizeToContentCheck(!0),this._ignoreLayoutsNodeChange=!0,this._triggerChangeEvent(),delete this._ignoreLayoutsNodeChange,this):(this.responseLayout=t,this)}getColumn(){return this.opts.column}getGridItems(){return Array.from(this.el.children).filter(A=>A.matches("."+this.opts.itemClass)&&!A.matches("."+this.opts.placeholderClass))}isIgnoreChangeCB(){return this._ignoreLayoutsNodeChange}destroy(A=!0){if(this.el)return this.offAll(),this._updateResizeEvent(!0),this.setStatic(!0,!1),this.setAnimation(!1),A?this.el.parentNode.removeChild(this.el):(this.removeAll(A),this.el.removeAttribute("gs-current-row")),this.parentGridNode&&delete this.parentGridNode.subGrid,delete this.parentGridNode,delete this.opts,delete this._placeholder?.gridstackNode,delete this._placeholder,delete this.engine,delete this.el.gridstack,delete this.el,this}float(A){return this.opts.float!==A&&(this.opts.float=this.engine.float=A,this._triggerChangeEvent()),this}getFloat(){return this.engine.float}getCellFromPixel(A,t=!1){const n=this.el.getBoundingClientRect();let o;t?o={top:n.top+document.documentElement.scrollTop,left:n.left}:o={top:this.el.offsetTop,left:this.el.offsetLeft};const a=A.left-o.left,u=A.top-o.top,d=n.width/this.getColumn(),h=n.height/parseInt(this.el.getAttribute("gs-current-row"));return{x:Math.floor(a/d),y:Math.floor(u/h)}}getRow(){return Math.max(this.engine.getRow(),this.opts.minRow||0)}isAreaEmpty(A,t,n,o){return this.engine.isAreaEmpty(A,t,n,o)}makeWidget(A,t){const n=DA.getElement(A);if(!n||n.gridstackNode)return n;n.parentElement||this.el.appendChild(n),this._prepareElement(n,!0,t);const o=n.gridstackNode;this._updateContainerHeight(),o.subGridOpts&&this.makeSubGrid(n,o.subGridOpts,void 0,!1);let a;return this.opts.column===1&&!this._ignoreLayoutsNodeChange&&(a=this._ignoreLayoutsNodeChange=!0),this._triggerAddEvent(),this._triggerChangeEvent(),a&&delete this._ignoreLayoutsNodeChange,n}on(A,t){return A.indexOf(" ")!==-1?(A.split(" ").forEach(n=>this.on(n,t)),this):(A==="change"||A==="added"||A==="removed"||A==="enable"||A==="disable"?(A==="enable"||A==="disable"?this._gsEventHandler[A]=n=>t(n):this._gsEventHandler[A]=n=>{n.detail&&t(n,n.detail)},this.el.addEventListener(A,this._gsEventHandler[A])):A==="drag"||A==="dragstart"||A==="dragstop"||A==="resizestart"||A==="resize"||A==="resizestop"||A==="dropped"||A==="resizecontent"?this._gsEventHandler[A]=t:console.error("GridStack.on("+A+") event not supported"),this)}off(A){return A.indexOf(" ")!==-1?(A.split(" ").forEach(t=>this.off(t)),this):((A==="change"||A==="added"||A==="removed"||A==="enable"||A==="disable")&&this._gsEventHandler[A]&&this.el.removeEventListener(A,this._gsEventHandler[A]),delete this._gsEventHandler[A],this)}offAll(){return Object.keys(this._gsEventHandler).forEach(A=>this.off(A)),this}removeWidget(A,t=!0,n=!0){return A?(DA.getElements(A).forEach(o=>{if(o.parentElement&&o.parentElement!==this.el)return;let a=o.gridstackNode;a||(a=this.engine.nodes.find(u=>o===u.el)),a&&(t&&DA.addRemoveCB&&DA.addRemoveCB(this.el,a,!1,!1),delete o.gridstackNode,this._removeDD(o),this.engine.removeNode(a,t,n),t&&o.parentElement&&o.remove())}),n&&(this._triggerRemoveEvent(),this._triggerChangeEvent()),this):(console.error("Error: GridStack.removeWidget(undefined) called"),this)}removeAll(A=!0,t=!0){return this.engine.nodes.forEach(n=>{A&&DA.addRemoveCB&&DA.addRemoveCB(this.el,n,!1,!1),delete n.el.gridstackNode,this.opts.staticGrid||this._removeDD(n.el)}),this.engine.removeAll(A,t),t&&this._triggerRemoveEvent(),this}setAnimation(A=this.opts.animate,t){return t?setTimeout(()=>{this.opts&&this.setAnimation(A)}):A?this.el.classList.add("grid-stack-animate"):this.el.classList.remove("grid-stack-animate"),this.opts.animate=A,this}hasAnimationCSS(){return this.el.classList.contains("grid-stack-animate")}setStatic(A,t=!0,n=!0){return!!this.opts.staticGrid===A?this:(A?this.opts.staticGrid=!0:delete this.opts.staticGrid,this._setupRemoveDrop(),this._setupAcceptWidget(),this.engine.nodes.forEach(o=>{this.prepareDragDrop(o.el),o.subGrid&&n&&o.subGrid.setStatic(A,t,n)}),t&&this._setStaticClass(),this)}updateOptions(A){const t=this.opts;return A===t?this:(A.acceptWidgets!==void 0&&(t.acceptWidgets=A.acceptWidgets,this._setupAcceptWidget()),A.animate!==void 0&&this.setAnimation(A.animate),A.cellHeight&&this.cellHeight(A.cellHeight),A.class!==void 0&&A.class!==t.class&&(t.class&&this.el.classList.remove(t.class),A.class&&this.el.classList.add(A.class)),A.columnOpts?(this.opts.columnOpts=A.columnOpts,this.checkDynamicColumn()):A.columnOpts===null&&this.opts.columnOpts?(delete this.opts.columnOpts,this._updateResizeEvent()):typeof A.column=="number"&&this.column(A.column),A.margin!==void 0&&this.margin(A.margin),A.staticGrid!==void 0&&this.setStatic(A.staticGrid),A.disableDrag!==void 0&&!A.staticGrid&&this.enableMove(!A.disableDrag),A.disableResize!==void 0&&!A.staticGrid&&this.enableResize(!A.disableResize),A.float!==void 0&&this.float(A.float),A.row!==void 0?(t.minRow=t.maxRow=t.row=A.row,this._updateContainerHeight()):(A.minRow!==void 0&&(t.minRow=A.minRow,this._updateContainerHeight()),A.maxRow!==void 0&&(t.maxRow=A.maxRow)),A.lazyLoad!==void 0&&(t.lazyLoad=A.lazyLoad),A.children?.length&&this.load(A.children),this)}update(A,t){return DA.getElements(A).forEach(n=>{const o=n?.gridstackNode;if(!o)return;const a={...j.copyPos({},o),...j.cloneDeep(t)};this.engine.nodeBoundFix(a),delete a.autoPosition;const u=["x","y","w","h"];let d;if(u.some(B=>a[B]!==void 0&&a[B]!==o[B])&&(d={},u.forEach(B=>{d[B]=a[B]!==void 0?a[B]:o[B],delete a[B]})),!d&&(a.minW||a.minH||a.maxW||a.maxH)&&(d={}),a.content!==void 0){const B=n.querySelector(".grid-stack-item-content");B&&B.textContent!==a.content&&(o.content=a.content,DA.renderCB(B,a),o.subGrid?.el&&(B.appendChild(o.subGrid.el),o.subGrid._updateContainerHeight())),delete a.content}let h=!1,g=!1;for(const B in a)B[0]!=="_"&&o[B]!==a[B]&&(o[B]=a[B],h=!0,g=g||!this.opts.staticGrid&&(B==="noResize"||B==="noMove"||B==="locked"));if(j.sanitizeMinMax(o),d){const B=d.w!==void 0&&d.w!==o.w;this.moveNode(o,d),B&&o.subGrid?o.subGrid.onResize(this.hasAnimationCSS()?o.w:void 0):this.resizeToContentCheck(B,o),delete o._orig}(d||h)&&this._writeAttr(n,o),g&&this.prepareDragDrop(o.el),DA.updateCB&&DA.updateCB(o)}),this}moveNode(A,t){const n=A._updating;n||this.engine.cleanNodes().beginUpdate(A),this.engine.moveNode(A,t),this._updateContainerHeight(),n||(this._triggerChangeEvent(),this.engine.endUpdate())}resizeToContent(A){if(!A||(A.classList.remove("size-to-content-max"),!A.clientHeight))return;const t=A.gridstackNode;if(!t)return;const n=t.grid;if(!n||A.parentElement!==n.el)return;const o=n.getCellHeight(!0);if(!o)return;let a=t.h?t.h*o:A.clientHeight,u;if(t.resizeToContentParent&&(u=A.querySelector(t.resizeToContentParent)),u||(u=A.querySelector(DA.resizeToContentParent)),!u)return;const d=A.clientHeight-u.clientHeight,h=t.h?t.h*o-d:u.clientHeight;let g;if(t.subGrid){g=t.subGrid.getRow()*t.subGrid.getCellHeight(!0);const m=t.subGrid.el.getBoundingClientRect(),v=A.getBoundingClientRect();g+=m.top-v.top}else{if(t.subGridOpts?.children?.length)return;{const m=u.firstElementChild;if(!m){console.error(`Error: GridStack.resizeToContent() widget id:${t.id} '${DA.resizeToContentParent}'.firstElementChild is null, make sure to have a div like container. Skipping sizing.`);return}g=m.getBoundingClientRect().height||h}}if(h===g)return;a+=g-h;let B=Math.ceil(a/o);const w=Number.isInteger(t.sizeToContent)?t.sizeToContent:0;w&&B>w&&(B=w,A.classList.add("size-to-content-max")),t.minH&&B<t.minH?B=t.minH:t.maxH&&B>t.maxH&&(B=t.maxH),B!==t.h&&(n._ignoreLayoutsNodeChange=!0,n.moveNode(t,{h:B}),delete n._ignoreLayoutsNodeChange)}resizeToContentCBCheck(A){DA.resizeToContentCB?DA.resizeToContentCB(A):this.resizeToContent(A)}rotate(A,t){return DA.getElements(A).forEach(n=>{const o=n.gridstackNode;if(!j.canBeRotated(o))return;const a={w:o.h,h:o.w,minH:o.minW,minW:o.minH,maxH:o.maxW,maxW:o.maxH};if(t){const d=t.left>0?Math.floor(t.left/this.cellWidth()):0,h=t.top>0?Math.floor(t.top/this.opts.cellHeight):0;a.x=o.x+d-(o.h-(h+1)),a.y=o.y+h-d}Object.keys(a).forEach(d=>{a[d]===void 0&&delete a[d]});const u=o._orig;this.update(n,a),o._orig=u}),this}margin(A){if(!(typeof A=="string"&&A.split(" ").length>1)){const t=j.parseHeight(A);if(this.opts.marginUnit===t.unit&&this.opts.margin===t.h)return}return this.opts.margin=A,this.opts.marginTop=this.opts.marginBottom=this.opts.marginLeft=this.opts.marginRight=void 0,this._initMargin(),this}getMargin(){return this.opts.margin}willItFit(A){return this.engine.willItFit(A)}_triggerChangeEvent(){if(this.engine.batchMode)return this;const A=this.engine.getDirtyNodes(!0);return A&&A.length&&(this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(A),this._triggerEvent("change",A)),this.engine.saveInitial(),this}_triggerAddEvent(){if(this.engine.batchMode)return this;if(this.engine.addedNodes?.length){this._ignoreLayoutsNodeChange||this.engine.layoutsNodesChange(this.engine.addedNodes),this.engine.addedNodes.forEach(t=>{delete t._dirty});const A=[...this.engine.addedNodes];this.engine.addedNodes=[],this._triggerEvent("added",A)}return this}_triggerRemoveEvent(){if(this.engine.batchMode)return this;if(this.engine.removedNodes?.length){const A=[...this.engine.removedNodes];this.engine.removedNodes=[],this._triggerEvent("removed",A)}return this}_triggerEvent(A,t){const n=t?new CustomEvent(A,{bubbles:!1,detail:t}):new Event(A);let o=this;for(;o.parentGridNode;)o=o.parentGridNode.grid;return o.el.dispatchEvent(n),this}_updateContainerHeight(){if(!this.engine||this.engine.batchMode)return this;const A=this.parentGridNode;let t=this.getRow()+this._extraDragRow;const n=this.opts.cellHeight,o=this.opts.cellHeightUnit;if(!n)return this;if(!A&&!this.opts.minRow){const a=j.parseHeight(getComputedStyle(this.el).minHeight);if(a.h>0&&a.unit===o){const u=Math.floor(a.h/n);t<u&&(t=u)}}return this.el.setAttribute("gs-current-row",String(t)),this.el.style.removeProperty("min-height"),this.el.style.removeProperty("height"),t&&(this.el.style[A?"minHeight":"height"]=t*n+o),A&&j.shouldSizeToContent(A)&&A.grid.resizeToContentCBCheck(A.el),this}_prepareElement(A,t=!1,n){n=n||this._readAttr(A),A.gridstackNode=n,n.el=A,n.grid=this,n=this.engine.addNode(n,t),this._writeAttr(A,n),A.classList.add(Fe.itemClass,this.opts.itemClass);const o=j.shouldSizeToContent(n);return o?A.classList.add("size-to-content"):A.classList.remove("size-to-content"),o&&this.resizeToContentCheck(!1,n),j.lazyLoad(n)||this.prepareDragDrop(n.el),this}_writePosAttr(A,t){return(!t._moving&&!t._resizing||this._placeholder===A)&&(A.style.top=t.y?t.y===1?"var(--gs-cell-height)":`calc(${t.y} * var(--gs-cell-height))`:null,A.style.left=t.x?t.x===1?"var(--gs-column-width)":`calc(${t.x} * var(--gs-column-width))`:null,A.style.width=t.w>1?`calc(${t.w} * var(--gs-column-width))`:null,A.style.height=t.h>1?`calc(${t.h} * var(--gs-cell-height))`:null),A.setAttribute("gs-x",String(t.x)),A.setAttribute("gs-y",String(t.y)),t.w>1?A.setAttribute("gs-w",String(t.w)):A.removeAttribute("gs-w"),t.h>1?A.setAttribute("gs-h",String(t.h)):A.removeAttribute("gs-h"),this}_writeAttr(A,t){if(!t)return this;this._writePosAttr(A,t);const n={noResize:"gs-no-resize",noMove:"gs-no-move",locked:"gs-locked",id:"gs-id",sizeToContent:"gs-size-to-content"};for(const o in n)t[o]?A.setAttribute(n[o],String(t[o])):A.removeAttribute(n[o]);return this}_readAttr(A,t=!0){const n={};n.x=j.toNumber(A.getAttribute("gs-x")),n.y=j.toNumber(A.getAttribute("gs-y")),n.w=j.toNumber(A.getAttribute("gs-w")),n.h=j.toNumber(A.getAttribute("gs-h")),n.autoPosition=j.toBool(A.getAttribute("gs-auto-position")),n.noResize=j.toBool(A.getAttribute("gs-no-resize")),n.noMove=j.toBool(A.getAttribute("gs-no-move")),n.locked=j.toBool(A.getAttribute("gs-locked"));const o=A.getAttribute("gs-size-to-content");o&&(o==="true"||o==="false"?n.sizeToContent=j.toBool(o):n.sizeToContent=parseInt(o,10)),n.id=A.getAttribute("gs-id"),n.maxW=j.toNumber(A.getAttribute("gs-max-w")),n.minW=j.toNumber(A.getAttribute("gs-min-w")),n.maxH=j.toNumber(A.getAttribute("gs-max-h")),n.minH=j.toNumber(A.getAttribute("gs-min-h")),t&&(n.w===1&&A.removeAttribute("gs-w"),n.h===1&&A.removeAttribute("gs-h"),n.maxW&&A.removeAttribute("gs-max-w"),n.minW&&A.removeAttribute("gs-min-w"),n.maxH&&A.removeAttribute("gs-max-h"),n.minH&&A.removeAttribute("gs-min-h"));for(const a in n){if(!n.hasOwnProperty(a))return;!n[a]&&n[a]!==0&&a!=="sizeToContent"&&delete n[a]}return n}_setStaticClass(){const A=["grid-stack-static"];return this.opts.staticGrid?(this.el.classList.add(...A),this.el.setAttribute("gs-static","true")):(this.el.classList.remove(...A),this.el.removeAttribute("gs-static")),this}onResize(A=this.el?.clientWidth){if(!A||this.prevWidth===A)return;this.prevWidth=A,this.batchUpdate();let t=!1;return this._autoColumn&&this.parentGridNode?this.opts.column!==this.parentGridNode.w&&(this.column(this.parentGridNode.w,this.opts.layout||"list"),t=!0):t=this.checkDynamicColumn(),this._isAutoCellHeight&&this.cellHeight(),this.engine.nodes.forEach(n=>{n.subGrid&&n.subGrid.onResize()}),this._skipInitialResize||this.resizeToContentCheck(t),delete this._skipInitialResize,this.batchUpdate(!1),this}resizeToContentCheck(A=!1,t=void 0){if(this.engine){if(A&&this.hasAnimationCSS())return setTimeout(()=>this.resizeToContentCheck(!1,t),this.animationDelay);if(t)j.shouldSizeToContent(t)&&this.resizeToContentCBCheck(t.el);else if(this.engine.nodes.some(n=>j.shouldSizeToContent(n))){const n=[...this.engine.nodes];this.batchUpdate(),n.forEach(o=>{j.shouldSizeToContent(o)&&this.resizeToContentCBCheck(o.el)}),this._ignoreLayoutsNodeChange=!0,this.batchUpdate(!1),this._ignoreLayoutsNodeChange=!1}this._gsEventHandler.resizecontent&&this._gsEventHandler.resizecontent(null,t?[t]:this.engine.nodes)}}_updateResizeEvent(A=!1){const t=!this.parentGridNode&&(this._isAutoCellHeight||this.opts.sizeToContent||this.opts.columnOpts||this.engine.nodes.find(n=>n.sizeToContent));return!A&&t&&!this.resizeObserver?(this._sizeThrottle=j.throttle(()=>this.onResize(),this.opts.cellHeightThrottle),this.resizeObserver=new ResizeObserver(()=>this._sizeThrottle()),this.resizeObserver.observe(this.el),this._skipInitialResize=!0):(A||!t)&&this.resizeObserver&&(this.resizeObserver.disconnect(),delete this.resizeObserver,delete this._sizeThrottle),this}static getElement(A=".grid-stack-item"){return j.getElement(A)}static getElements(A=".grid-stack-item"){return j.getElements(A)}static getGridElement(A){return DA.getElement(A)}static getGridElements(A){return j.getElements(A)}_initMargin(){let A,t=0,n=[];typeof this.opts.margin=="string"&&(n=this.opts.margin.split(" ")),n.length===2?(this.opts.marginTop=this.opts.marginBottom=n[0],this.opts.marginLeft=this.opts.marginRight=n[1]):n.length===4?(this.opts.marginTop=n[0],this.opts.marginRight=n[1],this.opts.marginBottom=n[2],this.opts.marginLeft=n[3]):(A=j.parseHeight(this.opts.margin),this.opts.marginUnit=A.unit,t=this.opts.margin=A.h),["marginTop","marginRight","marginBottom","marginLeft"].forEach(a=>{this.opts[a]===void 0?this.opts[a]=t:(A=j.parseHeight(this.opts[a]),this.opts[a]=A.h,delete this.opts.margin)}),this.opts.marginUnit=A.unit,this.opts.marginTop===this.opts.marginBottom&&this.opts.marginLeft===this.opts.marginRight&&this.opts.marginTop===this.opts.marginRight&&(this.opts.margin=this.opts.marginTop);const o=this.el.style;return o.setProperty("--gs-item-margin-top",`${this.opts.marginTop}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-bottom",`${this.opts.marginBottom}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-right",`${this.opts.marginRight}${this.opts.marginUnit}`),o.setProperty("--gs-item-margin-left",`${this.opts.marginLeft}${this.opts.marginUnit}`),this}static getDD(){return me}static setupDragIn(A,t,n,o=document){t?.pause!==void 0&&(NA.pauseDrag=t.pause),t={appendTo:"body",helper:"clone",...t||{}},(typeof A=="string"?j.getElements(A,o):A).forEach((a,u)=>{me.isDraggable(a)||me.dragIn(a,t),n?.[u]&&(a.gridstackNode=n[u])})}movable(A,t){return this.opts.staticGrid?this:(DA.getElements(A).forEach(n=>{const o=n.gridstackNode;o&&(t?delete o.noMove:o.noMove=!0,this.prepareDragDrop(o.el))}),this)}resizable(A,t){return this.opts.staticGrid?this:(DA.getElements(A).forEach(n=>{const o=n.gridstackNode;o&&(t?delete o.noResize:o.noResize=!0,this.prepareDragDrop(o.el))}),this)}disable(A=!0){if(!this.opts.staticGrid)return this.enableMove(!1,A),this.enableResize(!1,A),this._triggerEvent("disable"),this}enable(A=!0){if(!this.opts.staticGrid)return this.enableMove(!0,A),this.enableResize(!0,A),this._triggerEvent("enable"),this}enableMove(A,t=!0){return this.opts.staticGrid?this:(A?delete this.opts.disableDrag:this.opts.disableDrag=!0,this.engine.nodes.forEach(n=>{this.prepareDragDrop(n.el),n.subGrid&&t&&n.subGrid.enableMove(A,t)}),this)}enableResize(A,t=!0){return this.opts.staticGrid?this:(A?delete this.opts.disableResize:this.opts.disableResize=!0,this.engine.nodes.forEach(n=>{this.prepareDragDrop(n.el),n.subGrid&&t&&n.subGrid.enableResize(A,t)}),this)}cancelDrag(){const A=this._placeholder?.gridstackNode;A&&(A._isExternal?(A._isAboutToRemove=!0,this.engine.removeNode(A)):A._isAboutToRemove&&DA._itemRemoving(A.el,!1),this.engine.restoreInitial())}_removeDD(A){return me.draggable(A,"destroy").resizable(A,"destroy"),A.gridstackNode&&delete A.gridstackNode._initDD,delete A.ddElement,this}_setupAcceptWidget(){if(this.opts.staticGrid||!this.opts.acceptWidgets&&!this.opts.removable)return me.droppable(this.el,"destroy"),this;let A,t;const n=(o,a,u)=>{u=u||a;const d=u.gridstackNode;if(!d)return;if(!d.grid?.el){u.style.transform=`scale(${1/this.dragTransform.xScale},${1/this.dragTransform.yScale})`;const m=u.getBoundingClientRect();u.style.left=m.x+(this.dragTransform.xScale-1)*(o.clientX-m.x)/this.dragTransform.xScale+"px",u.style.top=m.y+(this.dragTransform.yScale-1)*(o.clientY-m.y)/this.dragTransform.yScale+"px",u.style.transformOrigin="0px 0px"}let{top:h,left:g}=u.getBoundingClientRect();const B=this.el.getBoundingClientRect();g-=B.left,h-=B.top;const w={position:{top:h*this.dragTransform.xScale,left:g*this.dragTransform.yScale}};if(d._temporaryRemoved){if(d.x=Math.max(0,Math.round(g/t)),d.y=Math.max(0,Math.round(h/A)),delete d.autoPosition,this.engine.nodeBoundFix(d),!this.engine.willItFit(d)){if(d.autoPosition=!0,!this.engine.willItFit(d)){me.off(a,"drag");return}d._willFitPos&&(j.copyPos(d,d._willFitPos),delete d._willFitPos)}this._onStartMoving(u,o,w,d,t,A)}else this._dragOrResize(u,o,w,d,t,A)};return me.droppable(this.el,{accept:o=>{const a=o.gridstackNode||this._readAttr(o,!1);if(a?.grid===this)return!0;if(!this.opts.acceptWidgets)return!1;let u=!0;if(typeof this.opts.acceptWidgets=="function")u=this.opts.acceptWidgets(o);else{const d=this.opts.acceptWidgets===!0?".grid-stack-item":this.opts.acceptWidgets;u=o.matches(d)}if(u&&a&&this.opts.maxRow){const d={w:a.w,h:a.h,minW:a.minW,minH:a.minH};u=this.engine.willItFit(d)}return u}}).on(this.el,"dropover",(o,a,u)=>{let d=u?.gridstackNode||a.gridstackNode;if(d?.grid===this&&!d._temporaryRemoved)return!1;if(d?._sidebarOrig&&(d.w=d._sidebarOrig.w,d.h=d._sidebarOrig.h),d?.grid&&d.grid!==this&&!d._temporaryRemoved&&d.grid._leave(a,u),u=u||a,t=this.cellWidth(),A=this.getCellHeight(!0),!d){const B=u.getAttribute("data-gs-widget")||u.getAttribute("gridstacknode");if(B){try{d=JSON.parse(B)}catch{console.error("Gridstack dropover: Bad JSON format: ",B)}u.removeAttribute("data-gs-widget"),u.removeAttribute("gridstacknode")}d||(d=this._readAttr(u)),d._sidebarOrig={w:d.w,h:d.h}}d.grid||(d.el||(d={...d}),d._isExternal=!0,u.gridstackNode=d);const h=d.w||Math.round(u.offsetWidth/t)||1,g=d.h||Math.round(u.offsetHeight/A)||1;return d.grid&&d.grid!==this?(a._gridstackNodeOrig||(a._gridstackNodeOrig=d),a.gridstackNode=d={...d,w:h,h:g,grid:this},delete d.x,delete d.y,this.engine.cleanupNode(d).nodeBoundFix(d),d._initDD=d._isExternal=d._temporaryRemoved=!0):(d.w=h,d.h=g,d._temporaryRemoved=!0),DA._itemRemoving(d.el,!1),me.on(a,"drag",n),n(o,a,u),!1}).on(this.el,"dropout",(o,a,u)=>{const d=u?.gridstackNode||a.gridstackNode;return d&&(!d.grid||d.grid===this)&&(this._leave(a,u),this._isTemp&&this.removeAsSubGrid(d)),!1}).on(this.el,"drop",(o,a,u)=>{const d=u?.gridstackNode||a.gridstackNode;if(d?.grid===this&&!d._isExternal)return!1;const h=!!this.placeholder.parentElement,g=a!==u;this.placeholder.remove(),delete this.placeholder.gridstackNode,h&&this.opts.animate&&(this.setAnimation(!1),this.setAnimation(!0,!0));const B=a._gridstackNodeOrig;if(delete a._gridstackNodeOrig,h&&B?.grid&&B.grid!==this){const m=B.grid;m.engine.removeNodeFromLayoutCache(B),m.engine.removedNodes.push(B),m._triggerRemoveEvent()._triggerChangeEvent(),m.parentGridNode&&!m.engine.nodes.length&&m.opts.subGridDynamic&&m.removeAsSubGrid()}if(!d||(h&&(this.engine.cleanupNode(d),d.grid=this),delete d.grid?._isTemp,me.off(a,"drag"),u!==a?(u.remove(),a=u):a.remove(),this._removeDD(a),!h))return!1;const w=d.subGrid?.el?.gridstack;return j.copyPos(d,this._readAttr(this.placeholder)),j.removePositioningStyles(a),g&&(d.content||d.subGridOpts||DA.addRemoveCB)?(delete d.el,a=this.addWidget(d)):(this._prepareElement(a,!0,d),this.el.appendChild(a),this.resizeToContentCheck(!1,d),w&&(w.parentGridNode=d),this._updateContainerHeight()),this.engine.addedNodes.push(d),this._triggerAddEvent(),this._triggerChangeEvent(),this.engine.endUpdate(),this._gsEventHandler.dropped&&this._gsEventHandler.dropped({...o,type:"dropped"},B&&B.grid?B:void 0,d),!1}),this}static _itemRemoving(A,t){if(!A)return;const n=A?A.gridstackNode:void 0;!n?.grid||A.classList.contains(n.grid.opts.removableOptions.decline)||(t?n._isAboutToRemove=!0:delete n._isAboutToRemove,t?A.classList.add("grid-stack-item-removing"):A.classList.remove("grid-stack-item-removing"))}_setupRemoveDrop(){if(typeof this.opts.removable!="string")return this;const A=document.querySelector(this.opts.removable);return A?(!this.opts.staticGrid&&!me.isDroppable(A)&&me.droppable(A,this.opts.removableOptions).on(A,"dropover",(t,n)=>DA._itemRemoving(n,!0)).on(A,"dropout",(t,n)=>DA._itemRemoving(n,!1)),this):this}prepareDragDrop(A,t=!1){const n=A?.gridstackNode;if(!n)return;const o=n.noMove||this.opts.disableDrag,a=n.noResize||this.opts.disableResize,u=this.opts.staticGrid||o&&a;if((t||u)&&(n._initDD&&(this._removeDD(A),delete n._initDD),u&&A.classList.add("ui-draggable-disabled","ui-resizable-disabled"),!t))return this;if(!n._initDD){let d,h;const g=(m,v)=>{this.triggerEvent(m,m.target),d=this.cellWidth(),h=this.getCellHeight(!0),this._onStartMoving(A,m,v,n,d,h)},B=(m,v)=>{this._dragOrResize(A,m,v,n,d,h)},w=m=>{this.placeholder.remove(),delete this.placeholder.gridstackNode,delete n._moving,delete n._resizing,delete n._event,delete n._lastTried;const v=n.w!==n._orig.w,Q=m.target;if(!(!Q.gridstackNode||Q.gridstackNode.grid!==this)){if(n.el=Q,n._isAboutToRemove){const H=A.gridstackNode.grid;H._gsEventHandler[m.type]&&H._gsEventHandler[m.type](m,Q),H.engine.nodes.push(n),H.removeWidget(A,!0,!0)}else j.removePositioningStyles(Q),n._temporaryRemoved?(this._writePosAttr(Q,n),this.engine.addNode(n)):this._writePosAttr(Q,n),this.triggerEvent(m,Q);this._extraDragRow=0,this._updateContainerHeight(),this._triggerChangeEvent(),this.engine.endUpdate(),m.type==="resizestop"&&(Number.isInteger(n.sizeToContent)&&(n.sizeToContent=n.h),this.resizeToContentCheck(v,n))}};me.draggable(A,{start:g,stop:w,drag:B}).resizable(A,{start:g,stop:w,resize:B}),n._initDD=!0}return me.draggable(A,o?"disable":"enable").resizable(A,a?"disable":"enable"),this}_onStartMoving(A,t,n,o,a,u){if(this.engine.cleanNodes().beginUpdate(o),this._writePosAttr(this.placeholder,o),this.el.appendChild(this.placeholder),this.placeholder.gridstackNode=o,o.grid?.el)this.dragTransform=j.getValuesFromTransformedElement(A);else if(this.placeholder&&this.placeholder.closest(".grid-stack")){const d=this.placeholder.closest(".grid-stack");this.dragTransform=j.getValuesFromTransformedElement(d)}else this.dragTransform={xScale:1,xOffset:0,yScale:1,yOffset:0};if(o.el=this.placeholder,o._lastUiPosition=n.position,o._prevYPix=n.position.top,o._moving=t.type==="dragstart",o._resizing=t.type==="resizestart",delete o._lastTried,t.type==="dropover"&&o._temporaryRemoved&&(this.engine.addNode(o),o._moving=!0),this.engine.cacheRects(a,u,this.opts.marginTop,this.opts.marginRight,this.opts.marginBottom,this.opts.marginLeft),t.type==="resizestart"){const d=this.getColumn()-o.x,h=(this.opts.maxRow||Number.MAX_SAFE_INTEGER)-o.y;me.resizable(A,"option","minWidth",a*Math.min(o.minW||1,d)).resizable(A,"option","minHeight",u*Math.min(o.minH||1,h)).resizable(A,"option","maxWidth",a*Math.min(o.maxW||Number.MAX_SAFE_INTEGER,d)).resizable(A,"option","maxWidthMoveLeft",a*Math.min(o.maxW||Number.MAX_SAFE_INTEGER,o.x+o.w)).resizable(A,"option","maxHeight",u*Math.min(o.maxH||Number.MAX_SAFE_INTEGER,h)).resizable(A,"option","maxHeightMoveUp",u*Math.min(o.maxH||Number.MAX_SAFE_INTEGER,o.y+o.h))}}_dragOrResize(A,t,n,o,a,u){const d={...o._orig};let h,g=this.opts.marginLeft,B=this.opts.marginRight,w=this.opts.marginTop,m=this.opts.marginBottom;const v=Math.round(u*.1),Q=Math.round(a*.1);if(g=Math.min(g,Q),B=Math.min(B,Q),w=Math.min(w,v),m=Math.min(m,v),t.type==="drag"){if(o._temporaryRemoved)return;const N=n.position.top-o._prevYPix;o._prevYPix=n.position.top,this.opts.draggable.scroll!==!1&&j.updateScrollPosition(A,n.position,N);const T=n.position.left+(n.position.left>o._lastUiPosition.left?-B:g),M=n.position.top+(n.position.top>o._lastUiPosition.top?-m:w);d.x=Math.round(T/a),d.y=Math.round(M/u);const U=this._extraDragRow;if(this.engine.collide(o,d)){const K=this.getRow();let eA=Math.max(0,d.y+o.h-K);this.opts.maxRow&&K+eA>this.opts.maxRow&&(eA=Math.max(0,this.opts.maxRow-K)),this._extraDragRow=eA}else this._extraDragRow=0;if(this._extraDragRow!==U&&this._updateContainerHeight(),o.x===d.x&&o.y===d.y)return}else if(t.type==="resize"){if(d.x<0||(j.updateScrollResize(t,A,u),d.w=Math.round((n.size.width-g)/a),d.h=Math.round((n.size.height-w)/u),o.w===d.w&&o.h===d.h)||o._lastTried&&o._lastTried.w===d.w&&o._lastTried.h===d.h)return;const N=n.position.left+g,T=n.position.top+w;d.x=Math.round(N/a),d.y=Math.round(T/u),h=!0}o._event=t,o._lastTried=d;const H={x:n.position.left+g,y:n.position.top+w,w:(n.size?n.size.width:o.w*a)-g-B,h:(n.size?n.size.height:o.h*u)-w-m};if(this.engine.moveNodeCheck(o,{...d,cellWidth:a,cellHeight:u,rect:H,resizing:h})){o._lastUiPosition=n.position,this.engine.cacheRects(a,u,w,B,m,g),delete o._skipDown,h&&o.subGrid&&o.subGrid.onResize(),this._extraDragRow=0,this._updateContainerHeight();const N=t.target;o._sidebarOrig||this._writePosAttr(N,o),this.triggerEvent(t,N)}}triggerEvent(A,t){let n=this;for(;n.parentGridNode;)n=n.parentGridNode.grid;n._gsEventHandler[A.type]&&n._gsEventHandler[A.type](A,t)}_leave(A,t){t=t||A;const n=t.gridstackNode;if(!n||(t.style.transform=t.style.transformOrigin=null,me.off(A,"drag"),n._temporaryRemoved))return;n._temporaryRemoved=!0,this.engine.removeNode(n),n.el=n._isExternal&&t?t:A;const o=n._sidebarOrig;n._isExternal&&this.engine.cleanupNode(n),n._sidebarOrig=o,this.opts.removable===!0&&DA._itemRemoving(A,!0),A._gridstackNodeOrig?(A.gridstackNode=A._gridstackNodeOrig,delete A._gridstackNodeOrig):n._isExternal&&this.engine.restoreInitial()}};en.renderCB=(e,A)=>{e&&A?.content&&(e.textContent=A.content)},en.resizeToContentParent=".grid-stack-item-content",en.Utils=j,en.Engine=mi,en.GDRev="12.4.2";var km={class:"d-layout"},Mm=["gs-id","gs-x","gs-y","gs-w","gs-h","gs-locked","gs-no-resize","gs-no-move","gs-min-w","gs-min-h","gs-max-w","gs-max-h"],Km=(0,r.defineComponent)({name:"DLayout",__name:"layout",props:{modelValue:{default:()=>[]},column:{default:24},cellHeight:{default:60},draggable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},disable:{type:Boolean,default:!1},animate:{type:Boolean,default:!0},float:{type:Boolean,default:!0},removable:{type:Boolean,default:!1},removableOptions:{}},emits:["update:modelValue","added","removed","changed","dragStart","dragStop","resizeStart","resizeStop"],setup(e,{expose:A,emit:t}){const n=e,o=t,a=(0,r.ref)();let u=null;const d=async()=>{a.value&&(await(0,r.nextTick)(),u&&u.destroy(!1),u=en.init({column:n.column,cellHeight:n.cellHeight,disableDrag:!(n.draggable&&!n.disable),disableResize:!(n.resizable&&!n.disable),animate:n.animate,float:n.float,removable:n.removable,removableOptions:n.removableOptions},a.value),u.on("added",(m,v)=>{const Q=v[0];Q&&(o("added",h(Q)),B())}),u.on("removed",(m,v)=>{const Q=v[0];Q&&(o("removed",h(Q)),B())}),u.on("change",()=>{B(),o("changed",(u?.save()||[]).map(m=>h(m)))}),u.on("dragstart",(m,v)=>{v&&o("dragStart",m,h(v.gridstackNode||v))}),u.on("dragstop",(m,v)=>{v&&o("dragStop",m,h(v.gridstackNode||v))}),u.on("resizestart",(m,v)=>{v&&o("resizeStart",m,h(v.gridstackNode||v))}),u.on("resizestop",(m,v)=>{v&&o("resizeStop",m,h(v.gridstackNode||v))}))},h=m=>({id:m.id||m.el?.getAttribute("gs-id")||"",x:m.x||0,y:m.y||0,w:m.w||1,h:m.h||1,locked:m.locked||!1,noResize:m.noResize||!1,noMove:m.noMove||!1,minW:m.minW,minH:m.minH,maxW:m.maxW,maxH:m.maxH}),g=async()=>{if(!u||!a.value)return;await(0,r.nextTick)();const m=u.engine.nodes;new Set(m.map(Q=>Q.id));const v=new Set(n.modelValue.map(Q=>Q.id));m.forEach(Q=>{if(!v.has(Q.id||"")){const H=Q.el;H&&u&&u.removeWidget(H,!1)}}),n.modelValue.forEach(Q=>{const H=m.find(N=>N.id===Q.id);if(H)H.el&&u&&u.update(H.el,{x:Q.x,y:Q.y,w:Q.w,h:Q.h,locked:Q.locked,noResize:Q.noResize,noMove:Q.noMove,minW:Q.minW,minH:Q.minH,maxW:Q.maxW,maxH:Q.maxH});else{if(!a.value||!u)return;const N=a.value.querySelector(`[gs-id="${Q.id}"]`);N&&u.makeWidget(N)}})},B=()=>{u&&o("update:modelValue",u.save().map(m=>{const v={id:m.id||"",x:m.x||0,y:m.y||0,w:m.w||1,h:m.h||1},Q=n.modelValue.find(H=>H.id===v.id);return Q&&Object.keys(Q).forEach(H=>{["id","x","y","w","h"].includes(H)||(v[H]=Q[H])}),v}))},w=(0,r.computed)(()=>n.modelValue);return(0,r.watch)(()=>n.modelValue,async()=>{u&&(await(0,r.nextTick)(),g())},{deep:!0}),(0,r.watch)(()=>[n.column,n.cellHeight,n.draggable,n.resizable,n.disable,n.animate,n.float,n.removable],()=>{d()}),(0,r.onMounted)(()=>{d()}),(0,r.onBeforeUnmount)(()=>{u&&(u.destroy(!1),u=null)}),A({addItem:async m=>{if(u&&a.value){await(0,r.nextTick)();const v=a.value.querySelector(`[gs-id="${m.id}"]`);v&&(u.makeWidget(v),u.update(v,{x:m.x,y:m.y,w:m.w,h:m.h,locked:m.locked,noResize:m.noResize,noMove:m.noMove,minW:m.minW,minH:m.minH,maxW:m.maxW,maxH:m.maxH}))}},removeItem:m=>{if(u&&a.value){const v=a.value.querySelector(`[gs-id="${m}"]`);v&&u.removeWidget(v,!1)}},clear:()=>{u&&u.removeAll(!1)},getGrid:()=>u}),(m,v)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",km,[(0,r.createElementVNode)("div",{ref_key:"gridContainerRef",ref:a},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(w.value,Q=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:Q.id,"gs-id":Q.id,"gs-x":Q.x,"gs-y":Q.y,"gs-w":Q.w,"gs-h":Q.h,"gs-locked":Q.locked,"gs-no-resize":Q.noResize,"gs-no-move":Q.noMove,"gs-min-w":Q.minW,"gs-min-h":Q.minH,"gs-max-w":Q.maxW,"gs-max-h":Q.maxH,class:"d-layout-item"},[(0,r.renderSlot)(m.$slots,"item",{item:Q})],8,Mm))),128))],512)]))}}),Om=Km,ul=ut(Om),$A=(e,A="",t=!1)=>t?`${e}pt`:A?`${e}${A}`:`${e}px`,Ce=(e,A=0)=>e==null||isNaN(e)?0:Number(Number(e).toFixed(A)),Rm=e=>e*3/4,Vm=e=>e*4/3,Pm=["onMousedown"],Gm={key:2,class:"d-draggable__mask"},zm=(0,r.defineComponent)({name:"DDraggable",__name:"draggable",props:{index:{},mask:{type:Boolean,default:!0},scale:{default:1},readonly:{type:Boolean,default:!1},resize:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},step:{default:1},zIndex:{default:1},isActiveBgTransparent:{type:Boolean,default:!1},left:{default:0},top:{default:0},width:{},height:{},activeFlag:{type:Boolean,default:!1},isPt:{type:Boolean,default:!1}},emits:["focus","blur","over","out"],setup(e,{expose:A,emit:t}){const n=e,o=t,a=(0,r.ref)(),u=(0,r.ref)(),d=(0,r.ref)(0),h=(0,r.ref)(0),g=(0,r.ref)(0),B=(0,r.ref)(0),w=(0,r.ref)(null),m=(0,r.ref)(!1),v=(0,r.ref)(!1),Q=(0,r.ref)(!1),H=(0,r.ref)(!1),N=(0,r.ref)([{classname:"left"},{classname:"right"},{classname:"top"},{classname:"bottom"},{classname:"top-left"},{classname:"top-right"},{classname:"bottom-left"},{classname:"bottom-right"}]),T=(0,r.computed)(()=>n.scale),M=(0,r.computed)(()=>({left:$A(T.value,"",n.isPt)})),U=(0,r.computed)(()=>({left:$A(-T.value,"",n.isPt)})),K=(0,r.computed)(()=>({left:"auto",right:$A(-T.value,"",n.isPt)})),eA=(0,r.computed)(()=>({top:$A(-T.value,"",n.isPt)})),W=(0,r.computed)(()=>({top:"auto",bottom:$A(-T.value,"",n.isPt)})),iA=(0,r.computed)(()=>{const AA=8*T.value;return{width:$A(AA,"",n.isPt),height:$A(AA,"",n.isPt)}}),lA=(0,r.computed)(()=>({fontSize:$A(16*T.value,"",n.isPt)})),nA=(0,r.computed)(()=>Object.assign((()=>{if(H.value){const AA={zIndex:9999,...M.value};return n.isActiveBgTransparent&&(H.value||v.value)&&!n.readonly&&!n.disabled&&(AA.backgroundColor="color-mix(in srgb, var(--j-color-primary-bg) 60%, transparent)"),AA}return{zIndex:n.zIndex}})(),{top:$A(B.value,"",n.isPt),width:$A(d.value,"",n.isPt),height:$A(h.value,"",n.isPt),padding:$A(8*T.value,"",n.isPt),...M.value,left:$A(g.value,"",n.isPt)}));(0,r.watch)(()=>n.width,AA=>{d.value=Ce(q(AA))||(w.value?.offsetWidth??0)}),(0,r.watch)(()=>n.height,AA=>{h.value=Ce(q(AA))||(w.value?.offsetHeight??0)},{deep:!0}),(0,r.watch)(()=>n.left,AA=>{g.value=Ce(q(AA))}),(0,r.watch)(()=>n.top,AA=>{B.value=Ce(q(AA))}),(0,r.watch)(d,AA=>{a.value&&(a.value.style.width=$A(AA,"",n.isPt),n.resize&&w.value?.style&&(w.value.style.width=$A(AA,"",n.isPt)))}),(0,r.watch)(h,AA=>{a.value&&(a.value.style.height=$A(AA,"",n.isPt),n.resize&&w.value?.style&&(w.value.style.height=$A(AA,"",n.isPt)))}),(0,r.watch)(()=>n.activeFlag,AA=>{tA(AA)});const tA=AA=>{H.value=AA},q=AA=>AA===void 0?0:n.isPt?Vm(AA):AA,k=()=>{u.value&&u.value.firstChild&&(w.value=u.value.firstChild,d.value=Ce(q(n.width))||(w.value?.offsetWidth??0),h.value=Ce(q(n.height))||(w.value?.offsetHeight??0),g.value=Ce(q(n.left)),B.value=Ce(q(n.top)),tA(n.activeFlag))},sA=AA=>{g.value=AA},I=AA=>{B.value=AA},Y=AA=>{const cA=8*T.value/2,V={};return AA.split("-").forEach($=>{V[$]=$A(-cA,"",n.isPt)}),V},F=AA=>{v.value=AA},S=AA=>n.isPt?Rm(AA):AA,P=()=>{m.value=!0,o("focus",{index:n.index,width:S(d.value),height:S(h.value),left:S(g.value),top:S(B.value)})},R=()=>{m.value=!1,Q.value=!1,o("blur",{index:n.index,width:S(d.value),height:S(h.value),left:S(g.value),top:S(B.value)})},z=()=>{document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,R()}},J=(AA,cA)=>{if(n.disabled||n.readonly)return;let V,$,uA,BA,HA,aA;Q.value=!0,P();let wA=AA.clientX,_=AA.clientY;document.onmousemove=b=>{m.value=!0,cA==="right"?(V=!0,$=!1):cA==="left"?(V=!0,uA=!0,HA=!0,$=!1):cA==="top"?(V=!1,$=!0,BA=!0,aA=!0):cA==="bottom"?(V=!1,$=!0):cA==="bottom-right"?(V=!0,$=!0):cA==="bottom-left"?(V=!0,$=!0,uA=!0,HA=!0):cA==="top-right"?(V=!0,$=!0,BA=!0,aA=!0):cA==="top-left"&&(V=!0,$=!0,uA=!0,HA=!0,BA=!0,aA=!0);const D=b.clientX-wA,X=b.clientY-_;if(wA=b.clientX,_=b.clientY,V){let L=D*n.step;HA&&(L=-L),uA&&(g.value=Ce(g.value-L)),d.value=Ce(d.value+L)}if($){let L=X*n.step;aA&&(L=-L),BA&&(B.value=Ce(B.value-L)),h.value=Ce(h.value+L)}},z()},rA=()=>{v.value=!1,o("out",{index:n.index,width:S(d.value),height:S(h.value),left:S(g.value),top:S(B.value)})},dA=()=>{n.disabled||n.readonly||(v.value=!0,o("over",{index:n.index,width:S(d.value),height:S(h.value),left:S(g.value),top:S(B.value)}))},bA=AA=>{if(n.disabled||n.readonly)return;H.value=!0,P();let cA=AA.clientX,V=AA.clientY;document.onmousemove=$=>{const uA=$.clientX-cA,BA=$.clientY-V;cA=$.clientX,V=$.clientY,g.value=Ce(g.value+uA*n.step),B.value=Ce(B.value+BA*n.step)},z()};return(0,r.onMounted)(()=>{k()}),A({setActive:tA,setLeft:sA,setTop:I,setOverActive:F}),(AA,cA)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["d-draggable",{"d-draggable--active":(H.value||v.value)&&!e.readonly&&!e.disabled},{"d-draggable--pt":e.isPt&&!e.readonly&&!e.disabled},{"d-draggable--move":m.value},{"d-draggable--click":e.disabled}]),onMousedown:(0,r.withModifiers)(bA,["stop"]),onMouseover:(0,r.withModifiers)(dA,["stop"]),onMouseout:(0,r.withModifiers)(rA,["stop"]),style:(0,r.normalizeStyle)(nA.value)},[(0,r.createElementVNode)("div",{class:"d-draggable__wrapper",ref_key:"wrapper",ref:a},[(H.value||v.value||m.value)&&!e.readonly&&!e.disabled?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...M.value,...eA.value}),class:"d-draggable__line d-draggable__line--left"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...M.value,...U.value}),class:"d-draggable__line d-draggable__line--top"},null,4),e.isPt?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...M.value,...eA.value,transform:"none"}),class:"d-draggable__line d-draggable__line--left"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...M.value,...U.value,transform:"none"}),class:"d-draggable__line d-draggable__line--top"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...M.value,...W.value}),class:"d-draggable__line d-draggable__line--left"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...M.value,...K.value}),class:"d-draggable__line d-draggable__line--top"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...M.value,...W.value,transform:"none"}),class:"d-draggable__line d-draggable__line--left"},null,4),(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)({...M.value,...K.value,transform:"none"}),class:"d-draggable__line d-draggable__line--top"},null,4)],64)):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"d-draggable__line d-draggable__line--label",style:(0,r.normalizeStyle)(lA.value)},(0,r.toDisplayString)(g.value)+","+(0,r.toDisplayString)(B.value),5))],64)):(0,r.createCommentVNode)("",!0),!e.readonly&&!e.disabled?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:1},(0,r.renderList)(N.value,(V,$)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:$},[H.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["d-draggable__range",`d-draggable__range--${V.classname}`]),style:(0,r.normalizeStyle)([iA.value,Y(V.classname)]),onMousedown:(0,r.withModifiers)(uA=>J(uA,V.classname),["stop"])},null,46,Pm)):(0,r.createCommentVNode)("",!0)],64))),128)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",{class:"d-draggable__item",ref_key:"item",ref:u},[(0,r.renderSlot)(AA.$slots,"default")],512),!e.disabled&&e.mask?((0,r.openBlock)(),(0,r.createElementBlock)("div",Gm)):(0,r.createCommentVNode)("",!0)],512)],38))}}),Xm=zm,dl=ut(Xm),fl=e=>{const A=$m(e.components);return{formConfig:e.form,componentList:A}},gl=(e,A)=>{let t={},n=[];const o={},a=e;t=a.form;const u={};return a.components.forEach(d=>{const h=A[d.type];u[d.containerId]=u[d.containerId]||[];const g={id:d.id,name:d.name,type:d.type,dragType:h?.dragType||"component",componentName:h?.componentName||"",runtimeType:h?.runtimeType,groupId:d.groupId,config:d.config,isInput:h?.isInput!==!1,containerId:d.containerId,level:d.level};h?.dragType==="container"&&(g.children=[]),o[g.id]=g,u[d.containerId].push(g)}),Object.keys(u).forEach(d=>{o[d]&&(o[d].children=u[d])}),n=u.form||[],{formConfig:t,componentList:n,componentDic:o}},Vr=(e,A)=>{const t={ver:"j1",form:{...e},components:[],db:{}};return hl(A||[],t.components),t},hl=(e,A)=>{e.forEach(t=>{if(t.type==="pkey")return;const n={id:t.id,name:t.name,type:t.type,runtimeType:t.runtimeType||t.componentName||t.type,groupId:t.groupId||"",config:t.config,containerId:t.containerId,level:t.level};t.dragType==="container"&&hl(t.children||[],A),A.push(n)})},$m=e=>{const A={},t={};return e.forEach(n=>{A[n.containerId]=A[n.containerId]||[];const o={id:n.id,type:n.runtimeType,slot:n.groupId,config:{rule:[]}};n.config&&Object.keys(n.config).forEach(a=>{if(a==="required"){n.config.required&&o.config?.rule?.push({required:!0,message:n.config.requiredMsg||"请输入"});return}if(a==="patterns"){n.config.patterns.forEach(u=>{u.reg&&u.msg&&o.config?.rule?.push({pattern:new RegExp(u.reg),message:`请输入${u.msg||""}`})});return}o.config[a]=n.config[a]}),n.type==="pkey"&&(o.config.isPkey=!0),A[n.containerId].push(o),t[n.id]=o}),Object.keys(A).forEach(n=>{const o=t[n];if(o){const a=A[n];if(["j-tabs","j-collapse"].includes(o.type||"")&&o.config?.groups){const u={};a.forEach(d=>{if(d.slot!==void 0&&d.slot!==null){const h=d.slot.toString();u[h]||(u[h]=[]),delete d.slot,u[h].push(d)}}),o.children=o.config.groups.map(d=>{const h=u[d._i]||[],g={label:d.label};d.active&&o.type==="j-collapse"&&(g.active=d.active);let B;if(o.type==="j-tabs"&&o.config?.tabKey&&o.config?.options.length>0){const m=o.config.options.find(v=>v.label===d._i);m&&(B=({formData:v})=>({display:m.value.includes(v[o.config?.tabKey||""])?m.display:!m.display}))}const w={config:g,children:h};return B&&(w.getCompConfig=B),w}),delete o.config.groups}else o.children=a}}),A.form},Bl=(e,A,t,n,o,a,u,d)=>{const h=(0,r.ref)(),g=(0,r.reactive)({}),B=(0,r.computed)(()=>{const F=[];return Object.keys(g).forEach(S=>{const P=g[S];P.dragType==="component"&&P.type!=="pkey"&&F.push(P)}),F}),w=(F=[],S)=>{const P=A?.value?.init;typeof P=="function"&&P(F,S)},m=F=>o?o(F,{componentDic:g,components:B.value,configData:h.value.config}):{},v=(F,S)=>{if(h.value?.id===F)return;const P=g[F]||S;if(P?h.value=P:F===t.id?h.value=t:h.value=null,h.value){const R=a[h.value.type];R?(w(R,h.value.config),m(h.value.type)):w([])}else w([]);S&&ne("dragClick",{id:S.id})},Q=()=>e.value.$el.getBoundingClientRect(),H=F=>F===t.id?t:g[F]||{},N=F=>{const S=[];if(F===t.id)S.push({id:F,name:t.name});else{const P=g[F];if(P){S.push({id:F,name:P.name});const R=N(P.containerId);S.push(...R)}}return S},T=(F,S)=>{const P=g[S];if(P===void 0)return!1;const R=P.containerId;return F===R?!0:R===t.id?!1:T(F,R)},M=F=>n?n(F)||{}:{},U=(F,S,P,R)=>{if(d){const z=H(F);return d(P.componentType,{container:z,groupId:S,configData:P},R)}return!1},K=({name:F,type:S,dragType:P,isInput:R,componentName:z,runtimeType:J},rA,dA,bA,AA=!1)=>{const cA=M(S);if(cA.id=dt(),cA.span=24,cA.componentType=S,eA(rA,cA.componentType))return;U(rA,bA,cA,!0);const V={id:cA.id,name:F,type:S,runtimeType:J,componentName:z||"",dragType:P||"component",containerId:rA,isInput:!!R,level:g[rA]?g[rA].level+1:1,config:cA,isNewAdd:!AA,groupId:bA};return V.dragType==="container"&&(V.children=[]),g[V.id]=V,H(rA).children?.splice(dA,0,V),V},eA=(F,S)=>!!(H(F).config.componentType==="gridtable"&&["divider","label","text","textEditor","viewTable","card","collapse","tabs","qrcode","barcode","tableLayout"].includes(S)),W=(F,S,P=!1)=>{let R=null;const z=H(F).children,J=z?.findIndex(rA=>rA.id===S)||0;if(P&&z&&z.length>1){let rA=J+1;J>0&&(rA=J-1),R=z[rA]}return z?.splice(J,1),R?.id},iA=(F,S,P,R)=>{const z=H(S).children,J=F.containerId!==S;F.containerId=S,F.groupId=R,z?.splice(P,0,F),U(S,R,F.config,J)&&(sA(),v(F.id))},lA=F=>{let S="";const P=H(F);return P&&(P.children&&P.children.length>0&&P.children.forEach(R=>{lA(R.id)}),S=W(P.containerId,F,!0)||"",delete g[F]),h.value&&h.value.id===F&&(h.value=null,A.value.init([])),S},nA=(F,S=[])=>{const P=H(F);if(P&&P.children&&P.children.length>0){const R=[];P.children.forEach(z=>{z.groupId&&S.includes(z.groupId)&&R.push(z.id)}),R.forEach(z=>{lA(z),delete g[z]})}},tA=(F,S)=>{const P=H(F);P&&(P.children&&P.children.length>0&&P.children.forEach(R=>{R.groupId===S&&lA(R.id)}),delete g[F])},q=F=>{const S=pn(H(F));S.id=dt(),S.config.id=S.id,g[S.id]=S;const P=H(S.containerId).children,R=P?.findIndex(z=>z.id===F)||0;P?.splice(R+1,0,S)},k=()=>{t.children=[],bu(g),h.value&&(ne("dragClick",{id:""}),h.value=null,A.value.init([]))},sA=()=>{h.value&&(ne("dragClick",{id:""}),h.value=null,A.value.init([]))},I=F=>{const S=h.value,P=H(S.containerId).children,R=P?.findIndex(z=>z.id===S.id)||0;lA(S.id),(0,r.nextTick)(()=>{const z=u[F],J=M(F);J.id=S.id,J.span=S.config.span,J.componentType=F,J.table=S.config.table,J.field=S.config.field,S.config.isSubTable&&(J.isSubTable=S.config.isSubTable);const rA={id:J.id,name:z.name,type:F,runtimeType:z.runtimeType,componentName:z.componentName||"",dragType:S.dragType,groupId:S.groupId,containerId:S.containerId,isInput:S.isInput,level:S.level,config:J,isNewAdd:!0};g[rA.id]=rA,P?.splice(R,0,rA)})},Y=F=>{ne("dragAddByClick",F)};return(0,r.provide)("d-drag-design-provide",{activedComponent:h,getDesignLocals:Q,getComponent:H,getParentComponents:N,isMyChildComponent:T,selectComponent:v,addComponent:K,deleteComponent:lA,copyComponent:q,removeComponentFromContainer:W,addComponentToContainer:iA,top:t,deleteChildren:tA,deleteChildrens:nA}),{activedComponent:h,clearComponents:k,changeComponent:I,schemaComponentDic:g,clearSelect:sA,addComponent:K,addComponentByTable:Y,designComponentList:B}},Wm=(0,r.defineComponent)({props:{componentData:{type:Object,default:()=>({})},globalConfig:{type:Object,default:()=>({})}},setup(e){const{t:A}=(0,Ht.useAppInject)();return{labelWidth:(0,r.computed)(()=>e.componentData.config?.notShowLabel?"0px":e.componentData.config?.labelWidth===void 0&&e.globalConfig.labelWidth!==void 0?`${e.globalConfig.labelWidth}px`:e.componentData.config?.labelWidth?`${e.componentData.config?.labelWidth}px`:void 0),inputConfig:(0,r.computed)(()=>{const t={...e.componentData?.config};return e.globalConfig.size===void 0&&(t.size=e.globalConfig.size),t.display=!0,t}),t:A}}}),Ym=(e,A)=>{const t=e.__vccOpts||e;for(const[n,o]of A)t[n]=o;return t};function Jm(e,A,t,n,o,a){const u=(0,r.resolveComponent)("j-comp"),d=(0,r.resolveComponent)("el-form-item");return e.componentData.isInput?((0,r.openBlock)(),(0,r.createBlock)(d,{key:0,"label-width":e.labelWidth,label:e.t(e.componentData.config?.notShowLabel?"":e.componentData.config?.label||""),rules:e.componentData.config?.required?[{required:!0,message:""}]:[]},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(u,{type:e.componentData?.componentName||e.componentData?.type,config:e.inputConfig,modelValue:e.componentData?.config.defaultValue},null,8,["type","config","modelValue"])]),_:1},8,["label-width","label","rules"])):e.componentData?.children?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.componentData?.componentName),(0,r.mergeProps)({key:1},e.componentData?.config,{"global-config":e.globalConfig,"component-data":e.componentData}),null,16,["global-config","component-data"])):((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.componentData?.componentName),(0,r.normalizeProps)((0,r.mergeProps)({key:2},e.componentData?.config)),null,16))}var pl=Ym(Wm,[["render",Jm]]),Zm={class:"d-form-design j-block"},jm={class:"d-form-design-left"},qm={class:"d-form-design-component-list"},Aw={class:"j-component-tool"},ew={class:"j-component-tool-name"},tw={class:"d-form-design-center"},nw={class:"d-form-design-container"},rw={key:0,class:"d-form-design-empty"},ow={class:"d-form-design-right"},iw={class:"d-form-design-panel-title"},sw={style:{margin:"0","font-size":"14px"}},aw={class:"d-form-design-panel"},lw=(0,r.defineComponent)({name:"DFormDesign",__name:"formDesign",props:{components:{default:()=>[]},componentConfigs:{default:()=>({})},componentInit:{type:Function,default:void 0},containerAddComponent:{type:Function,default:void 0},componentConfigInit:{type:Function,default:void 0},componentConfigChange:{type:Function,default:void 0},componentConfigValidate:{type:Function,default:void 0},flowComponents:{default:()=>[]},flowInit:{type:Function,default:void 0},flowComponentConfigInit:{type:Function,default:void 0},flowComponentConfigChange:{type:Function,default:void 0},flowComponentConfigs:{default:()=>({})},actions:{}},setup(e,{expose:A}){const t=e,{t:n,warning:o,error:a}=(0,Ht.useAppInject)(),u=(0,r.reactive)({name:"表单",id:"form",type:"form",level:0,children:[],dragType:"container",componentName:"",containerId:"",isInput:!1,config:{}}),d=(0,r.ref)([]),h=t.components.length;for(let V=0;V<h;V++)d.value.push(V);t.componentInit&&(u.config=t.componentInit("form")||{});const g={},B=[];t.components.forEach(({children:V})=>{V.forEach($=>{g[$.type]=$,$.dragType=$.dragType||"component",$.isInput!==!1&&($.isInput=!0,B.push({label:$.name,value:$.type}))})});const w=V=>{V.forEach($=>{$.type==="d-input-flow"&&($.config=$.config||{},$.config.flowComponents=t.flowComponents,$.config.flowInit=t.flowInit,$.config.flowComponentConfigInit=uA=>{t.flowComponentConfigInit&&(uA.designComponents=iA.value,uA.component=M.value,t.flowComponentConfigInit(uA))},$.config.flowComponentConfigs=t.flowComponentConfigs,$.config.flowComponentConfigChange=t.flowComponentConfigChange),$.children&&w($.children)})},m={};Object.keys(t.componentConfigs||{}).forEach(V=>{const{hasBase:$,isInput:uA,hasTwoPlaceholder:BA,hasPlaceholder:HA,hasSpan:aA,hasLabel:wA,bindTable:_,labelTitle:b}=g[V]||{hasBase:!1},D=[{id:"componentType",type:"j-select",config:{label:"类型",allowClear:!1,display:uA,options:B}},{id:"label",type:"j-input",config:{label:b||"标题"},getCompConfig:({formData:L})=>({display:wA!==!1&&!L.notShowLabel})},{id:"notShowLabel",type:"j-switch",config:{label:"不显示"+(b||"标题"),activeValue:!0,inactiveValue:!1},getCompConfig:({formData:L})=>({display:wA!==!1&&!L.isSubTable})},{id:"labelWidth",type:"j-number",config:{label:"标题宽度"},getCompConfig:({formData:L})=>({display:uA&&!L.notShowLabel&&!L.isSubTable})},{id:"placeholder",type:"j-input",config:{display:uA&&!BA&&HA!==!1,label:"占位提示"}},{id:"startPlaceholder",type:"j-input",config:{display:!!BA,label:"开始占位"}},{id:"endPlaceholder",type:"j-input",config:{display:!!BA,label:"结束占位"}},{id:"span",type:"j-slider",config:{label:"表单栅栏",min:6,max:24,showTooltip:!0,step:6,showStops:!0,defautValue:24},getCompConfig:({formData:L})=>({display:aA!==!1&&!L.isSubTable})},{id:"width",type:"j-number",config:{label:"单元格宽度",min:1},getCompConfig:({formData:L})=>({display:!!L.isSubTable})},{id:"isNotSave",type:"j-switch",config:{label:"不保存",display:uA&&_!==!1,activeValue:!0,inactiveValue:!1}}],X={type:"j-collapse",config:{defaultValue:[]},children:[]};$!==!1&&(X.children?.push({config:{label:"基础信息"},children:[...D]}),X.config?.defaultValue.push("_collapse0")),X.children?.push(...t.componentConfigs[V]),w(X.children||[]),m[V]=[X]});const v=V=>{const{value:$}=V||{};V.id==="componentType"&&K($),M.value&&t.componentConfigChange&&t.componentConfigChange(M.value.type,{configRef:T,configData:M.value.config,...V})},Q=(V,$)=>{t.componentConfigInit&&t.componentConfigInit(V,{configRef:T,...$})},H=(V,$,uA)=>{let BA=!1;return g[V],$.container.type==="gridtable"?(!$.configData.isSubTable||uA)&&($.configData.isSubTable=!0,BA=!0):$.configData.isSubTable&&(BA=!0,$.configData.isSubTable=!1),t.containerAddComponent&&t.containerAddComponent(V,$),BA},N=(0,r.ref)(),T=(0,r.ref)(),{activedComponent:M,clearComponents:U,changeComponent:K,schemaComponentDic:eA,addComponentByTable:W,designComponentList:iA}=Bl(N,T,u,t.componentInit,Q,m,g,H),lA=(0,r.computed)(()=>M.value?.id!="form"?M.value?`${M.value.name}-${M.value.id}`:"":M.value?`${M.value.name}`:"");(0,r.provide)("dui-design-provide",{designItemName:pl});const nA=()=>{U()},tA=()=>{t.componentInit&&(u.config=t.componentInit("form")||{}),U()},q=()=>Vr(u.config,u.children||[]),k=V=>{const $=gl(V,g);u.config=$.formConfig,u.children?.push(...$.componentList),Object.keys($.componentDic).forEach(uA=>{eA[uA]=$.componentDic[uA]})},sA=()=>I(Vr(u.config,u.children||[]).components),I=V=>{for(const $ of V)if(t.componentConfigValidate&&!t.componentConfigValidate($.type,{configData:$.config,errorTip:a}))return!1;return!0},Y=(0,r.ref)(),F=(0,r.ref)(),S=(0,r.reactive)({width:0,height:0,formConfig:{}});let P=0;const R=V=>{if(F.value)P=0,F.value.init(V||[]);else{if(P>600){console.warn("表单组件加载超时");return}P++,setTimeout(()=>{R(V)},100)}},z=()=>{},J=()=>{};return A({getSchema:()=>q(),setSchema:V=>k(V),reset:()=>tA(),validate:()=>sA(),preview:()=>{const V=Vr(u.config,u.children||[]);S.width=V.form.width||800,S.height=V.form.height||600,Y.value.open("表单预览",V.form.layerType),(0,r.nextTick)(()=>{const{formConfig:$,componentList:uA}=fl(V);S.formConfig=$,R(uA)})},clear:nA}),(V,$)=>{const uA=(0,r.resolveComponent)("j-icon"),BA=(0,r.resolveComponent)("d-drag-tool"),HA=(0,r.resolveComponent)("el-collapse-item"),aA=(0,r.resolveComponent)("el-collapse"),wA=(0,r.resolveComponent)("d-drag-form-list"),_=(0,r.resolveComponent)("el-row"),b=(0,r.resolveComponent)("d-drag-container"),D=(0,r.resolveComponent)("j-form"),X=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",Zm,[(0,r.createElementVNode)("div",jm,[(0,r.createElementVNode)("div",qm,[(0,r.createVNode)(aA,{modelValue:d.value,"onUpdate:modelValue":$[0]||($[0]=L=>d.value=L)},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,(L,pA)=>((0,r.openBlock)(),(0,r.createBlock)(HA,{key:pA,title:L.name,name:pA},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(L.children,(fA,FA)=>((0,r.openBlock)(),(0,r.createBlock)(BA,{key:FA,config:fA},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",Aw,[(0,r.createVNode)(uA,{class:"j-component-tool-icon",icon:fA.icon,size:14},null,8,["icon"]),(0,r.createElementVNode)("div",ew,(0,r.toDisplayString)((0,r.unref)(n)(fA.name)),1)])]),_:2},1032,["config"]))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),(0,r.createElementVNode)("div",tw,[(0,r.createElementVNode)("div",nw,[(0,r.createVNode)(b,{ref_key:"dragContainer",ref:N,class:"d-form-design-drag-container","is-component-container":!1,"component-data":u},{default:(0,r.withCtx)(()=>[!u.children||u.children.length===0?((0,r.openBlock)(),(0,r.createElementBlock)("div",rw,[(0,r.createElementVNode)("div",null,(0,r.toDisplayString)((0,r.unref)(n)("请从左侧拖拽组件到此处")),1)])):((0,r.openBlock)(),(0,r.createBlock)(_,{key:1},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(wA,{"component-list":u.children,"global-config":u.config},null,8,["component-list","global-config"])]),_:1}))]),_:1},8,["component-data"])])]),(0,r.withDirectives)((0,r.createElementVNode)("div",ow,[(0,r.createElementVNode)("div",iw,[(0,r.createElementVNode)("span",sw,(0,r.toDisplayString)(`${lA.value}`),1)]),(0,r.createElementVNode)("div",aw,[(0,r.createVNode)(D,{config:{labelPosition:"top",size:"small"},collapseAnimate:!1,style:{padding:"0"},ref_key:"configRef",ref:T,onChange:v},null,512)])],512),[[r.vShow,(0,r.unref)(M)]]),(0,r.createVNode)(X,{ref_key:"previewFormLayerRef",ref:Y,width:S.width,height:S.height,onOk:z,onClosed:J},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(D,{config:S.formConfig,"is-preview":!0,ref_key:"previewFormRef",ref:F,actions:e.actions},null,8,["config","actions"])]),_:1},8,["width","height"])])}}}),cw=lw,ml=ut(cw,[pl]),wl=(e,A)=>{const t={ver:"V3",indexPage:{...e},components:[]};return Cl(A||[],t.components),t},Cl=(e,A)=>{e.forEach(t=>{const n={id:t.id,name:t.name,type:t.type,runtimeType:t.runtimeType||t.componentName||t.type,groupId:t.groupId||"",config:t.config,containerId:t.containerId,level:t.level};t.dragType==="container"&&Cl(t.children||[],A),A.push(n)})},uw=e=>{const A=dw(e.components);return{pageConfig:e.indexPage,componentList:A}},dw=e=>{const A={},t={};return e.forEach(n=>{A[n.containerId]=A[n.containerId]||[];const o={id:n.id,type:n.runtimeType,slot:n.groupId,config:{}};n.config&&Object.keys(n.config).forEach(a=>{o.config[a]=n.config[a]}),A[n.containerId].push(o),t[n.id]=o}),Object.keys(A).forEach(n=>{const o=t[n];if(o){const a=A[n];if(["j-tabs","j-collapse"].includes(o.type||"")&&o.config?.groups){const u={};a.forEach(d=>{if(d.slot!==void 0&&d.slot!==null){const h=d.slot.toString();u[h]||(u[h]=[]),delete d.slot,u[h].push(d)}}),o.children=o.config.groups.map(d=>{const h=u[d._i]||[];return{config:{label:d.label},children:h}}),delete o.config.groups}else o.children=a}}),A.indexPage||[]},fw=(e,A)=>{let t={},n=[];const o={};if(e.ver==="V3"){const a=e;t=a.indexPage;const u={};a.components.forEach(d=>{const h=A[d.type];if(!h)return;u[d.containerId]=u[d.containerId]||[];const g={id:d.id,name:d.name,type:d.type,dragType:h.dragType||"component",componentName:h.componentName||"",runtimeType:h.runtimeType,groupId:d.groupId,config:d.config,isInput:!1,containerId:d.containerId,level:d.level};o[g.id]=g,u[d.containerId].push(g),g.dragType==="container"&&(g.children=[])}),Object.keys(u).forEach(d=>{o[d]&&(o[d].children=u[d])}),n=u.indexPage||[]}return{pageConfig:t,componentList:n,componentDic:o}},gw=(0,r.defineComponent)({name:"DIndexDesignItem",__name:"indexDesignItem",props:{componentData:{type:Object,default:()=>({})},globalConfig:{type:Object,default:()=>({})}},setup(e){return(A,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.componentData?.componentName),(0,r.mergeProps)(e.componentData?.config,{"global-config":e.globalConfig,"component-data":e.componentData}),null,16,["global-config","component-data"]))}}),vl=gw,hw={class:"d-index-design j-block"},Bw={class:"d-index-design-left"},pw={class:"j-component-list"},mw={class:"j-component-tool"},ww={class:"j-component-tool-name"},Cw={class:"d-index-design-center"},vw={class:"design-toolbar"},yw={class:"design-container"},Qw={key:0,class:"j-block design-empty"},Ew={class:"d-index-design-right"},Uw={class:"d-index-design-panel-title"},Fw={style:{margin:"0","font-size":"14px"}},bw={class:"d-index-design-panel"},Hw=(0,r.defineComponent)({name:"DIndexDesign",__name:"indexDesign",props:{components:{type:Array,default:()=>[]},componentConfigs:{type:Object,default:()=>({})},componentInit:Function,containerAddComponent:Function,componentConfigInit:Function,componentConfigChange:Function,flowComponents:{type:Array,default:()=>[]},flowInit:Function,flowComponentConfigInit:Function,flowComponentConfigChange:Function,flowComponentConfigs:{type:Object,default:()=>({})},actions:{type:Object,default:()=>({})}},setup(e,{expose:A}){const{t}=(0,Ht.useAppInject)(),n=e,o=F=>{F.forEach(S=>{S.type==="d-input-flow"&&(S.config=S.config||{},S.config.flowComponents=n.flowComponents,S.config.flowInit=n.flowInit,S.config.flowComponentConfigInit=P=>{n.flowComponentConfigInit&&(P.designComponents=N.value,P.component=v.value,n.flowComponentConfigInit(P))},S.config.flowComponentConfigs=n.flowComponentConfigs,S.config.flowComponentConfigChange=n.flowComponentConfigChange),S.children&&o(S.children)})},a=(0,r.reactive)({name:"页面",id:"indexPage",type:"indexPage",level:0,children:[],dragType:"container",componentName:"",containerId:"",isInput:!1,config:{}});n.componentInit&&(a.config=n.componentInit("indexPage")||{});const u={},d=[];n.components.forEach(({children:F})=>{F.forEach(S=>{u[S.type]=S,S.dragType=S.dragType||"component",d.push({label:S.name,value:S.type})})});const h={};Object.keys(n.componentConfigs).forEach(F=>{const{hasBase:S}=u[F]||{hasBase:!1},P=[{id:"id",type:"j-input",config:{label:"ID",readonly:!0}},{id:"label",type:"j-input",config:{label:"名称"}}],R={type:"j-collapse",config:{defaultValue:[]},children:[]};S!==!1&&(R.children?.push({config:{label:"基础信息"},children:[...P]}),R.config?.defaultValue.push("_collapse0")),R.children?.push(...n.componentConfigs[F]),o(R.children||[]),h[F]=[R]});const g=F=>{v.value&&n.componentConfigChange&&n.componentConfigChange(v.value.type,{configRef:m,configData:v.value.config,...F})},B=(F,S)=>{n.componentConfigInit&&n.componentConfigInit(F,{configRef:m,...S})},w=(0,r.ref)(),m=(0,r.ref)(),{activedComponent:v,clearComponents:Q,schemaComponentDic:H,designComponentList:N}=Bl(w,m,a,n.componentInit,B,h,u,n.containerAddComponent),T=(0,r.computed)(()=>v.value?`【${v.value.name}】`:""),M=(0,r.ref)([]),U=n.components.length;for(let F=0;F<U;F++)M.value.push(F);(0,r.provide)("dui-design-provide",{designItemName:vl});const K=()=>{Q()},eA=()=>{n.componentInit&&(a.config=n.componentInit("indexPage")||{}),Q()},W=()=>(console.log("pValidate"),!0),iA=()=>wl(a.config,a.children||[]),lA=F=>{const S=fw(F,u);a.config=S.pageConfig,a.children?.push(...S.componentList),Object.keys(S.componentDic).forEach(P=>{H[P]=S.componentDic[P]})},nA=(0,r.ref)(),tA=(0,r.ref)();(0,r.ref)(""),(0,r.reactive)({formConfig:{}});let q=0;const k=F=>{if(tA.value)q=0,tA.value.init(F);else{if(q>600){console.warn("组件加载超时");return}q++,setTimeout(()=>{k(F)},100)}},sA=()=>{},I=()=>{},Y=()=>{const{componentList:F}=uw(wl(a.config,a.children||[]));nA.value.open("页面预览","full"),(0,r.nextTick)(()=>{k(F)})};return A({reset:eA,validate:W,getSchema:iA,setSchema:lA}),(F,S)=>{const P=(0,r.resolveComponent)("j-icon"),R=(0,r.resolveComponent)("d-drag-tool"),z=(0,r.resolveComponent)("el-collapse-item"),J=(0,r.resolveComponent)("el-collapse"),rA=(0,r.resolveComponent)("j-button"),dA=(0,r.resolveComponent)("el-tooltip"),bA=(0,r.resolveComponent)("el-divider"),AA=(0,r.resolveComponent)("el-empty"),cA=(0,r.resolveComponent)("d-drag-index-list"),V=(0,r.resolveComponent)("d-drag-container"),$=(0,r.resolveComponent)("j-form"),uA=(0,r.resolveComponent)("j-page"),BA=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",hw,[(0,r.createElementVNode)("div",Bw,[S[1]||(S[1]=(0,r.createElementVNode)("div",{class:"d-index-design-panel-title"},"组件库",-1)),(0,r.createElementVNode)("div",pw,[(0,r.createVNode)(J,{modelValue:M.value,"onUpdate:modelValue":S[0]||(S[0]=HA=>M.value=HA)},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,(HA,aA)=>((0,r.openBlock)(),(0,r.createBlock)(z,{key:aA,title:HA.name,name:aA},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(HA.children,(wA,_)=>((0,r.openBlock)(),(0,r.createBlock)(R,{key:_,config:wA},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",mw,[(0,r.createVNode)(P,{class:"j-component-tool-icon",icon:wA.icon,size:14},null,8,["icon"]),(0,r.createElementVNode)("div",ww,(0,r.toDisplayString)((0,r.unref)(t)(wA.name)),1)])]),_:2},1032,["config"]))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),(0,r.createElementVNode)("div",Cw,[(0,r.createElementVNode)("div",vw,[S[2]||(S[2]=(0,r.createElementVNode)("div",null,null,-1)),(0,r.createElementVNode)("div",null,[(0,r.createVNode)(dA,{content:(0,r.unref)(t)("清空")},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(rA,{danger:"",type:"text",onClick:K,icon:"mdi:delete-outline"})]),_:1},8,["content"]),(0,r.createVNode)(bA,{direction:"vertical"}),(0,r.createVNode)(dA,{content:(0,r.unref)(t)("预览")},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(rA,{type:"text",onClick:Y,icon:"mdi:play-circle-outline"})]),_:1},8,["content"])])]),(0,r.createElementVNode)("div",yw,[(0,r.createVNode)(V,{ref_key:"dragContainer",ref:w,class:"design-drag-container","is-component-container":!1,"component-data":a},{default:(0,r.withCtx)(()=>[!a.children||a.children.length===0?((0,r.openBlock)(),(0,r.createElementBlock)("div",Qw,[(0,r.createVNode)(AA,{description:(0,r.unref)(t)("请从左侧拖拽组件到此处"),"image-size":100},null,8,["description"])])):((0,r.openBlock)(),(0,r.createBlock)(cA,{key:1,"component-list":a.children,"global-config":a.config},null,8,["component-list","global-config"]))]),_:1},8,["component-data"])])]),(0,r.withDirectives)((0,r.createElementVNode)("div",Ew,[(0,r.createElementVNode)("div",Uw,[(0,r.createElementVNode)("span",Fw,(0,r.toDisplayString)(`${(0,r.unref)(t)("属性配置")}${T.value}`),1)]),(0,r.createElementVNode)("div",bw,[(0,r.createVNode)($,{config:{labelPosition:"top",size:"small"},collapseAnimate:!1,style:{padding:"0"},ref_key:"configRef",ref:m,onChange:g},null,512)])],512),[[r.vShow,(0,r.unref)(v)&&h[(0,r.unref)(v).type]]]),(0,r.createVNode)(BA,{ref_key:"previewLayerRef",ref:nA,"has-btns":!1,onOk:sA,onClosed:I},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(uA,{ref_key:"previewRef",ref:tA,actions:e.actions},null,8,["actions"])]),_:1},512)])}}}),Iw=Hw,yl=ut(Iw,[vl]),qA=Uu({Vue:()=>r,Vue2:()=>{},del:()=>xw,install:()=>_w,isVue2:()=>!1,isVue3:()=>!0,set:()=>Sw});Fu(qA,require("vue"));var wE=!1,CE=!0,vE=void 0;function _w(){}function Sw(e,A,t){return Array.isArray(e)?(e.length=Math.max(e.length,A),e.splice(A,1,t),t):(e[A]=t,t)}function xw(e,A){if(Array.isArray(e)){e.splice(A,1);return}delete e[A]}var Pr=(e,A)=>{const t=e.__vccOpts||e;for(const[n,o]of A)t[n]=o;return t},Dw=(0,qA.defineComponent)({name:"LineRuler",props:{scale:Number,thick:Number,palette:Object,index:Number,start:Number,vertical:Boolean,value:Number,isShowReferLine:Boolean},emits:["onMouseDown","onRelease","onRemove"],setup(e,{emit:A}){const t=(0,qA.ref)(0),n=(0,qA.ref)(!0);(0,qA.onMounted)(()=>{t.value=e.value});const o=B=>{n.value=B>=0},a=(0,qA.computed)(()=>{const B=(t.value-e.start)*e.scale;o(B);const w=B+"px";return e.vertical?{top:w}:{left:w}}),u=(0,qA.computed)(()=>{var B;const w=`1px solid ${(B=e.palette)==null?void 0:B.lineColor}`,m=e.vertical?{borderTop:w}:{borderLeft:w};return{cursor:e.isShowReferLine?e.vertical?"ns-resize":"ew-resize":"none",...m}}),d=(0,qA.computed)(()=>e.vertical?{left:e.thick+"px"}:{top:e.thick+"px"});return{startValue:t,showLine:n,offset:a,borderCursor:u,actionStyle:d,handleDown:B=>{const w=e.vertical?B.clientY:B.clientX,m=t.value;A("onMouseDown");const v=H=>{const N=e.vertical?H.clientY:H.clientX;t.value=Math.round(m+(N-w)/e.scale)},Q=()=>{A("onRelease",t.value,e.index),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",Q)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",Q)},handleRemove:()=>{A("onRemove",e.index)}}}}),Nw={class:"value"};function Lw(e,A,t,n,o,a){return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"line",style:(0,r.normalizeStyle)([e.offset,e.borderCursor]),onMousedown:A[1]||(A[1]=(...u)=>e.handleDown&&e.handleDown(...u))},[(0,r.createElementVNode)("div",{class:"action",style:(0,r.normalizeStyle)(e.actionStyle)},[(0,r.createElementVNode)("span",{class:"del",onClick:A[0]||(A[0]=(...u)=>e.handleRemove&&e.handleRemove(...u))},"×"),(0,r.createElementVNode)("span",Nw,(0,r.toDisplayString)(e.startValue),1)],4)],36)),[[r.vShow,e.showLine]])}var Tw=Pr(Dw,[["render",Lw],["__scopeId","data-v-074b3d94"]]),kw=e=>e<=.25?40:e<=.5?20:e<=1?10:e<=2?5:e<=4?2:1,Ql=.83,Mw=(e,A,t,n,o,a)=>{const{scale:u,width:d,height:h,ratio:g,palette:B}=o,{bgColor:w,fontColor:m,shadowColor:v,longfgColor:Q,shortfgColor:H}=B;if(e.scale(g,g),e.clearRect(0,0,d,h),e.fillStyle=w,e.fillRect(0,0,d,h),n){const nA=(t-A)*u,tA=n*u;e.fillStyle=v,a?e.fillRect(nA,0,tA,h*3/8):e.fillRect(0,nA,d*3/8,tA)}const N=kw(u),T=N*u,M=N*10,U=M*u,K=Math.floor(A/N)*N,eA=Math.floor(A/M)*M,W=(K-A)/N*T,iA=(eA-A)/M*U,lA=A+Math.ceil((a?d:h)/u);e.beginPath(),e.fillStyle=m,e.strokeStyle=Q;for(let nA=eA,tA=0;nA<lA;nA+=M,tA++){const q=iA+tA*U+.5;a?e.moveTo(q,0):e.moveTo(0,q),e.save(),a?e.translate(q,h*.4):e.translate(d*.4,q),a||e.rotate(-Math.PI/2),e.scale(Ql/g,Ql/g),e.fillText(nA.toString(),4*g,7*g),e.restore(),a?e.lineTo(q,h*9/16):e.lineTo(d*9/16,q)}e.stroke(),e.closePath(),e.beginPath(),e.strokeStyle=H;for(let nA=K,tA=0;nA<lA;nA+=N,tA++){const q=W+tA*T+.5;a?e.moveTo(q,0):e.moveTo(0,q),nA%M!==0&&(a?e.lineTo(q,h*1/4):e.lineTo(d*1/4,q))}e.stroke(),e.closePath(),e.setTransform(1,0,0,1,0,0)},Kw=(0,qA.defineComponent)({name:"CanvasRuler",props:{showIndicator:Boolean,valueNum:Number,scale:Number,ratio:Number,palette:Object,vertical:Boolean,start:Number,width:Number,height:Number,selectStart:Number,selectLength:Number},emits:["onAddLine","update:showIndicator","update:valueNum"],setup(e,{emit:A}){const t=(0,qA.reactive)({canvasContext:null});let n=1;const o=(0,qA.ref)(null);(0,qA.onMounted)(()=>{n=e.ratio||window.devicePixelRatio||1,a(),u(n),d(n)});const a=()=>{t.canvasContext=o.value&&o.value.getContext("2d")},u=g=>{if(o.value){o.value.width=e.width*g,o.value.height=e.height*g;const B=t.canvasContext;B&&(B.font=`${12*g}px -apple-system,
|
|
29
29
|
"Helvetica Neue", ".SFNSText-Regular",
|
|
30
30
|
"SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB",
|
|
31
|
-
"Microsoft YaHei", "WenQuanYi Zen Hei", sans-serif`,B.lineWidth=1,B.textBaseline="middle")}},d=g=>{const B={scale:e.scale,width:e.width,height:e.height,palette:e.palette,ratio:g};t.canvasContext&&Kw(t.canvasContext,e.start,e.selectStart,e.selectLength,B,!e.vertical)};return(0,ee.watch)(()=>e.start,()=>d(n)),(0,ee.watch)([()=>e.width,()=>e.height],()=>{c(n),d(n)}),{handle:(g,B)=>{const m=((y,v,I)=>Math.round(v+y/I))(e.vertical?g.offsetY:g.offsetX,e.start,e.scale);switch(B){case"click":A("onAddLine",m);break;case"enter":A("update:valueNum",m),A("update:showIndicator",!0);break;default:A("update:valueNum",m);break}},canvas:o}}});function Vw(e,A,t,n,o,a){return(0,r.openBlock)(),(0,r.createElementBlock)("canvas",{ref:"canvas",class:"ruler",onClick:A[0]||(A[0]=c=>e.handle(c,"click")),onMouseenter:A[1]||(A[1]=c=>e.handle(c,"enter")),onMousemove:A[2]||(A[2]=c=>e.handle(c,"move")),onMouseleave:A[3]||(A[3]=c=>e.$emit("update:showIndicator",!1))},null,544)}var Pw=(0,ee.defineComponent)({name:"RulerWrapper",components:{CanvasRuler:Pr(Rw,[["render",Vw]]),RulerLine:Mw},props:{scale:Number,ratio:Number,thick:Number,palette:Object,vertical:{type:Boolean,default:!0},width:{type:Number,default:200},height:{type:Number,default:200},start:{type:Number,default:0},lines:{type:Array,default:()=>[]},selectStart:{type:Number},selectLength:{type:Number},isShowReferLine:{type:Boolean}},setup(e){const A=(0,ee.ref)(!1),t=(0,ee.ref)(0),n=(0,ee.computed)(()=>e.vertical?"v-container":"h-container"),o=(0,ee.computed)(()=>{const g={width:`calc(100% - ${e.thick}px)`,height:`${e.thick+1}px`,left:`${e.thick}px`},B={width:`${e.thick&&e.thick+1}px`,height:`calc(100% - ${e.thick}px)`,top:`${e.thick}px`};return e.vertical?B:g}),a=(0,ee.computed)(()=>{var g;const B=(t.value-e.start)*e.scale;let w="top",m="borderLeft";return w=e.vertical?"top":"left",m=e.vertical?"borderBottom":"borderLeft",{[w]:B+"px",[m]:`1px solid ${(g=e.palette)==null?void 0:g.lineColor}`}}),c=g=>{e.lines.push(g)},d=(g,B)=>{const w=g-e.start,m=(e.vertical?e.height:e.width)/e.scale;w<0||w>m?h(B):e.lines[B]=g},h=g=>{e.lines.splice(g,1)};return{showIndicator:A,valueNum:t,rwClassName:n,rwStyle:o,indicatorStyle:a,handleNewLine:c,handleLineRelease:d,handleLineRemove:h}}}),Gw={class:"lines"},zw={class:"value"};function $w(e,A,t,n,o,a){const c=(0,r.resolveComponent)("CanvasRuler"),d=(0,r.resolveComponent)("RulerLine");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(e.rwClassName),style:(0,r.normalizeStyle)(e.rwStyle)},[(0,r.createVNode)(c,{vertical:e.vertical,scale:e.scale,width:e.width,height:e.height,start:e.start,ratio:e.ratio,"select-start":e.selectStart,"select-length":e.selectLength,palette:e.palette,valueNum:e.valueNum,"onUpdate:valueNum":A[0]||(A[0]=h=>e.valueNum=h),showIndicator:e.showIndicator,"onUpdate:showIndicator":A[1]||(A[1]=h=>e.showIndicator=h),onOnAddLine:e.handleNewLine},null,8,["vertical","scale","width","height","start","ratio","select-start","select-length","palette","valueNum","showIndicator","onOnAddLine"]),(0,r.withDirectives)((0,r.createElementVNode)("div",Gw,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.lines,(h,g)=>((0,r.openBlock)(),(0,r.createBlock)(d,{key:h+g,index:g,value:h>>0,scale:e.scale,start:e.start,thick:e.thick,palette:e.palette,vertical:e.vertical,"is-show-refer-line":e.isShowReferLine,onOnRemove:e.handleLineRemove,onOnRelease:e.handleLineRelease},null,8,["index","value","scale","start","thick","palette","vertical","is-show-refer-line","onOnRemove","onOnRelease"]))),128))],512),[[r.vShow,e.isShowReferLine]]),(0,r.withDirectives)((0,r.createElementVNode)("div",{class:"indicator",style:(0,r.normalizeStyle)(e.indicatorStyle)},[(0,r.createElementVNode)("div",zw,(0,r.toDisplayString)(e.valueNum),1)],4),[[r.vShow,e.showIndicator]])],6)}var Xw=Pr(Pw,[["render",$w],["__scopeId","data-v-5cc064d4"]]),Ww="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAAXNSR0IArs4c6QAAAopJREFUOE/FlE9IVEEcx7+/N9ouds1Mu0QUSFZYdIgoUqQoKPBQHsKozpXE7jbTO/U8xLJvn6usBHWQ6hBFXupSkQeVbh0KJEPp0sH+eLGTsKs77xcj78m0ax0E8cHjzZv5zef3/c33xxA24KENYGJzoEEQbNNaN4Zh2OQ4znwYhr9c1/39vwrXVDo0NNS0tLR0GYB5D64BmAMwzMyvlFKz1es10Hw+f4mZ7wHYBeA9gNdENFepVOaEEM3M3OI4Thczn41gt6WUgQ3+C+r7/h0AWQD3mXnYqPA8L9nQ0HCemduIaFpKOWoAhUJhT6VSuQXgOjP3K6W8GLwKzeVyp4jonR0QBEErM48w8zFLyayUsjX+z+VyHhHdZebTSqkxM78CHRgYOKS1/ghgVErZY214RkQ7ADyRUj72ff8qgCtmXUrZGcf5vv8CwEUhxOF0Ov1pBRpla5dSdseBhUJhpznH6tIsZb1KqacW+BGArUaUXX63UuplHJTNZjuEEONSyhozfd/n6mQ1RkXZL2itz7mu+80EDA4ONi8vL/8AcM2UbikyR2BU9cSmmTU70YqKIAj2hWFo2uenlHK/BRg3Y2aeNO5GyU8S0ZbFxcUuz/NKEXAGQKPjOCcymcyX1dIi8DSAiWQyeaavr68cbSgCuBknYubnQoj+TCYzUywWE6VS6S2ADsdx2gxw1X3L7SNENMbMnwE8qK+vf5NKpRaMaeVyeW8ikfiaSqW+R7BuZr5BRMe11p2u607U9Gk8kc/ntzPzQwCmExYATDLzVBiGE0KIowAOADDf3QA+aK2VDaxRajto3K+rq+tl5nYAzQBamHmeiOYBTGmtR6ph/1Rqg9c73pz7dD1qN0TpHyNQRCUDJXrAAAAAAElFTkSuQmCC",Yw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAAXNSR0IArs4c6QAAAjtJREFUOE/NlD9oFEEUxn9v9ghC0hpRUogIAUmniGAT/5Q2FrETPSNRJILg7RwimI0ox85eQFCEBGIUO1PYpFM0jSConQoBEZGgGPsgl+w+2eM2bC57SopAFqYZ3v7m+977ZoQt+GQLmGxPaBiGgYiMWWvXBHZUGoZhH3BERPYC+4F+4Keq/urt7b1RLpf/ZEBVHa9Wq0HWyg3QKIoGVPU8cA7wgK/pUtXPQJ8xZk+pVBpuNBqXUoUiEvi+P56fzTpo6+SbwHNg1lo7WzTITGEKXFlZeeB53tVCpa3CK8AFa+1cBgvD8LKIXAQOJkkyICJDeYVBEJS6u7s/qeoLa+1o+l9TqXNuBLhmjDlbqVQ+5ICjInIfOBPH8W9jzGCR5YmJiRNxHM+papgqzqDvgSlr7VTernPuO3An3c9bBt74vv+yrdaKyLDv+/1Sq9UGPc97nY9EVuycU2AQOA7cAm4Dr4D5TvVxHB9rKo2iaEFVp621Ln96FEUngaOqGmSxabVqsh3a2h+x1h5qQjNrae/yE4+iaCwDJkky73neTuBZe129Xk+H+BS4l7ZqLVIZ2BhzuFKpvMsDVXXWGPMxFdAedOfcKeCRqj7MYrUhpz09PfXl5eXrectFWXXODQHpOq2qd/95o/JXr6ura3J1dXU6SZIfwKKIHAD2tVYMPBGRx77vN10UXtO85fTkmZmZHUtLSzUR2QXsBhaAL6r6DXhbrVYXi1yss59GqOgub/bN3Z7v6X/tb9Zmp/q/kN8s+lJb8oEAAAAASUVORK5CYII=",Jw=(0,ee.defineComponent)({name:"SketchRule",components:{RulerWrapper:Xw},props:{eyeIcon:{type:String},closeEyeIcon:{type:String},scale:{type:Number,default:1},ratio:{type:Number},thick:{type:Number,default:16},palette:Object,startX:{type:Number},startY:{type:Number,default:0},width:{type:Number,default:200},height:{type:Number,default:200},shadow:{type:Object,default:()=>({x:0,y:0,width:0,height:0})},lines:{type:Object,default:()=>({h:[],v:[]})},isShowReferLine:{type:Boolean,default:!0}},emits:["onCornerClick","handleLine"],setup(e,{emit:A}){let t=(0,ee.ref)(!0);t.value=e.isShowReferLine;const n=(0,ee.computed)(()=>{function c(d,h){return Object.keys(d).forEach(g=>{g&&d.hasOwnProperty(g)&&(typeof h.key=="object"?d[g]=c(d[g],h[g]):h.hasOwnProperty(g)&&(d[g]=h[g]))}),d}return c({bgColor:"rgba(225,225,225, 0)",longfgColor:"#BABBBC",shortfgColor:"#C8CDD0",fontColor:"#7D8694",shadowColor:"#E8E8E8",lineColor:"#EB5648",borderColor:"#DADADC",cornerActiveColor:"rgb(235, 86, 72, 0.6)",menu:{bgColor:"#fff",dividerColor:"#DBDBDB",listItem:{textColor:"#415058",hoverTextColor:"#298DF8",disabledTextColor:"rgba(65, 80, 88, 0.4)",bgColor:"#fff",hoverBgColor:"#F2F2F2"}}},e.palette||{})}),o=(0,ee.computed)(()=>({backgroundImage:t.value?`url(${e.eyeIcon||Ww})`:`url(${e.closeEyeIcon||Yw})`,width:e.thick+"px",height:e.thick+"px",borderRight:`1px solid ${n.value.borderColor}`,borderBottom:`1px solid ${n.value.borderColor}`})),a=c=>{t.value=!t.value,A("handleCornerClick",t.value)};return(0,ee.watch)([()=>e.isShowReferLine],()=>{t.value=e.isShowReferLine}),{showReferLine:t,paletteCpu:n,cornerStyle:o,onCornerClick:a}}}),Zw={id:"mb-ruler",class:"style-ruler mb-ruler"};function jw(e,A,t,n,o,a){const c=(0,r.resolveComponent)("RulerWrapper");return(0,r.openBlock)(),(0,r.createElementBlock)("div",Zw,[(0,r.createVNode)(c,{vertical:!1,width:e.width,height:e.thick,"is-show-refer-line":e.showReferLine,thick:e.thick,ratio:e.ratio,start:e.startX,lines:e.lines.h,"select-start":e.shadow.x,"select-length":e.shadow.width,scale:e.scale,palette:e.paletteCpu},null,8,["width","height","is-show-refer-line","thick","ratio","start","lines","select-start","select-length","scale","palette"]),(0,r.createVNode)(c,{vertical:!0,width:e.thick,height:e.height,"is-show-refer-line":e.showReferLine,thick:e.thick,ratio:e.ratio,start:e.startY,lines:e.lines.v,"select-start":e.shadow.y,"select-length":e.shadow.height,scale:e.scale,palette:e.paletteCpu},null,8,["width","height","is-show-refer-line","thick","ratio","start","lines","select-start","select-length","scale","palette"]),(0,r.createElementVNode)("a",{class:"corner",style:(0,r.normalizeStyle)(e.cornerStyle),onClick:A[0]||(A[0]=(...d)=>e.onCornerClick&&e.onCornerClick(...d))},null,4)])}var qw=Pr(Jw,[["render",jw]]),A0=Eu(((e,A)=>{(function(t,n){typeof e=="object"&&typeof A<"u"?A.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self,t.html2canvas=n())})(e,(function(){"use strict";var t=function(s,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(u[f]=l[f])},t(s,i)};function n(s,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(s,i);function u(){this.constructor=s}s.prototype=i===null?Object.create(i):(u.prototype=i.prototype,new u)}var o=function(){return o=Object.assign||function(i){for(var u,l=1,f=arguments.length;l<f;l++){u=arguments[l];for(var p in u)Object.prototype.hasOwnProperty.call(u,p)&&(i[p]=u[p])}return i},o.apply(this,arguments)};function a(s,i,u,l){function f(p){return p instanceof u?p:new u(function(C){C(p)})}return new(u||(u=Promise))(function(p,C){function Q(K){try{N(l.next(K))}catch(X){C(X)}}function E(K){try{N(l.throw(K))}catch(X){C(X)}}function N(K){K.done?p(K.value):f(K.value).then(Q,E)}N((l=l.apply(s,i||[])).next())})}function c(s,i){var u={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},l,f,p,C;return C={next:Q(0),throw:Q(1),return:Q(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function Q(N){return function(K){return E([N,K])}}function E(N){if(l)throw new TypeError("Generator is already executing.");for(;u;)try{if(l=1,f&&(p=N[0]&2?f.return:N[0]?f.throw||((p=f.return)&&p.call(f),0):f.next)&&!(p=p.call(f,N[1])).done)return p;switch(f=0,p&&(N=[N[0]&2,p.value]),N[0]){case 0:case 1:p=N;break;case 4:return u.label++,{value:N[1],done:!1};case 5:u.label++,f=N[1],N=[0];continue;case 7:N=u.ops.pop(),u.trys.pop();continue;default:if(p=u.trys,!(p=p.length>0&&p[p.length-1])&&(N[0]===6||N[0]===2)){u=0;continue}if(N[0]===3&&(!p||N[1]>p[0]&&N[1]<p[3])){u.label=N[1];break}if(N[0]===6&&u.label<p[1]){u.label=p[1],p=N;break}if(p&&u.label<p[2]){u.label=p[2],u.ops.push(N);break}p[2]&&u.ops.pop(),u.trys.pop();continue}N=i.call(s,u)}catch(K){N=[6,K],f=0}finally{l=p=0}if(N[0]&5)throw N[1];return{value:N[0]?N[1]:void 0,done:!0}}}function d(s,i,u){if(u||arguments.length===2)for(var l=0,f=i.length,p;l<f;l++)(p||!(l in i))&&(p||(p=Array.prototype.slice.call(i,0,l)),p[l]=i[l]);return s.concat(p||i)}for(var h=(function(){function s(i,u,l,f){this.left=i,this.top=u,this.width=l,this.height=f}return s.prototype.add=function(i,u,l,f){return new s(this.left+i,this.top+u,this.width+l,this.height+f)},s.fromClientRect=function(i,u){return new s(u.left+i.windowBounds.left,u.top+i.windowBounds.top,u.width,u.height)},s.fromDOMRectList=function(i,u){var l=Array.from(u).find(function(f){return f.width!==0});return l?new s(l.left+i.windowBounds.left,l.top+i.windowBounds.top,l.width,l.height):s.EMPTY},s.EMPTY=new s(0,0,0,0),s})(),g=function(s,i){return h.fromClientRect(s,i.getBoundingClientRect())},B=function(s){var i=s.body,u=s.documentElement;if(!i||!u)throw new Error("Unable to get document size");return new h(0,0,Math.max(Math.max(i.scrollWidth,u.scrollWidth),Math.max(i.offsetWidth,u.offsetWidth),Math.max(i.clientWidth,u.clientWidth)),Math.max(Math.max(i.scrollHeight,u.scrollHeight),Math.max(i.offsetHeight,u.offsetHeight),Math.max(i.clientHeight,u.clientHeight)))},w=function(s){for(var i=[],u=0,l=s.length;u<l;){var f=s.charCodeAt(u++);if(f>=55296&&f<=56319&&u<l){var p=s.charCodeAt(u++);(p&64512)===56320?i.push(((f&1023)<<10)+(p&1023)+65536):(i.push(f),u--)}else i.push(f)}return i},m=function(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];if(String.fromCodePoint)return String.fromCodePoint.apply(String,s);var u=s.length;if(!u)return"";for(var l=[],f=-1,p="";++f<u;){var C=s[f];C<=65535?l.push(C):(C-=65536,l.push((C>>10)+55296,C%1024+56320)),(f+1===u||l.length>16384)&&(p+=String.fromCharCode.apply(String,l),l.length=0)}return p},y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v=typeof Uint8Array>"u"?[]:new Uint8Array(256),I=0;I<y.length;I++)v[y.charCodeAt(I)]=I;for(var L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k=typeof Uint8Array>"u"?[]:new Uint8Array(256),V=0;V<L.length;V++)k[L.charCodeAt(V)]=V;for(var F=function(s){var i=s.length*.75,u=s.length,l,f=0,p,C,Q,E;s[s.length-1]==="="&&(i--,s[s.length-2]==="="&&i--);var N=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(i):new Array(i),K=Array.isArray(N)?N:new Uint8Array(N);for(l=0;l<u;l+=4)p=k[s.charCodeAt(l)],C=k[s.charCodeAt(l+1)],Q=k[s.charCodeAt(l+2)],E=k[s.charCodeAt(l+3)],K[f++]=p<<2|C>>4,K[f++]=(C&15)<<4|Q>>2,K[f++]=(Q&3)<<6|E&63;return N},M=function(s){for(var i=s.length,u=[],l=0;l<i;l+=2)u.push(s[l+1]<<8|s[l]);return u},tA=function(s){for(var i=s.length,u=[],l=0;l<i;l+=4)u.push(s[l+3]<<24|s[l+2]<<16|s[l+1]<<8|s[l]);return u},W=5,aA=11,dA=2,rA=aA-W,oA=65536>>W,AA=(1<<W)-1,O=oA+(1024>>W)+32,lA=65536>>aA,_=(1<<rA)-1,Z=function(s,i,u){return s.slice?s.slice(i,u):new Uint16Array(Array.prototype.slice.call(s,i,u))},U=function(s,i,u){return s.slice?s.slice(i,u):new Uint32Array(Array.prototype.slice.call(s,i,u))},x=function(s,i){var u=F(s),l=Array.isArray(u)?tA(u):new Uint32Array(u),f=Array.isArray(u)?M(u):new Uint16Array(u),p=24,C=Z(f,p/2,l[4]/2),Q=l[5]===2?Z(f,(p+l[4])/2):U(l,Math.ceil((p+l[4])/4));return new G(l[0],l[1],l[2],l[3],C,Q)},G=(function(){function s(i,u,l,f,p,C){this.initialValue=i,this.errorValue=u,this.highStart=l,this.highValueIndex=f,this.index=p,this.data=C}return s.prototype.get=function(i){var u;if(i>=0){if(i<55296||i>56319&&i<=65535)return u=this.index[i>>W],u=(u<<dA)+(i&AA),this.data[u];if(i<=65535)return u=this.index[oA+(i-55296>>W)],u=(u<<dA)+(i&AA),this.data[u];if(i<this.highStart)return u=O-lA+(i>>aA),u=this.index[u],u+=i>>W&_,u=this.index[u],u=(u<<dA)+(i&AA),this.data[u];if(i<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$=typeof Uint8Array>"u"?[]:new Uint8Array(256),J=0;J<R.length;J++)$[R.charCodeAt(J)]=J;var nA="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4B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BywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzM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AMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4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csBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAM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gBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB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gAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAC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4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgA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QAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUA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ACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",hA=50,UA=1,eA=2,uA=3,Y=4,cA=5,mA=7,yA=8,IA=9,fA=10,vA=11,S=12,H=13,T=14,D=15,b=16,z=17,P=18,gA=19,iA=20,SA=21,xA=22,KA=23,ne=24,YA=25,PA=26,Re=27,ve=28,Gr=29,sA=30,pA=31,NA=32,MA=33,it=34,Mn=35,Tt=36,kt=37,On=38,tn=39,GA=40,Ve=41,st=42,H0=43,_0=[9001,65288],Hl="!",VA="×",zr="÷",yi=x(nA),at=[sA,Tt],vi=[UA,eA,uA,cA],_l=[fA,yA],Sl=[Re,PA],S0=vi.concat(_l),xl=[On,tn,GA,it,Mn],x0=[D,H],D0=function(s,i){i===void 0&&(i="strict");var u=[],l=[],f=[];return s.forEach(function(p,C){var Q=yi.get(p);if(Q>hA?(f.push(!0),Q-=hA):f.push(!1),["normal","auto","loose"].indexOf(i)!==-1&&[8208,8211,12316,12448].indexOf(p)!==-1)return l.push(C),u.push(b);if(Q===Y||Q===vA){if(C===0)return l.push(C),u.push(sA);var E=u[C-1];return S0.indexOf(E)===-1?(l.push(l[C-1]),u.push(E)):(l.push(C),u.push(sA))}if(l.push(C),Q===pA)return u.push(i==="strict"?SA:kt);if(Q===st||Q===Gr)return u.push(sA);if(Q===H0)return p>=131072&&p<=196605||p>=196608&&p<=262141?u.push(kt):u.push(sA);u.push(Q)}),[l,u,f]},Qi=function(s,i,u,l){var f=l[u];if(Array.isArray(s)?s.indexOf(f)!==-1:s===f)for(var p=u;p<=l.length;){p++;var C=l[p];if(C===i)return!0;if(C!==fA)break}if(f===fA)for(var p=u;p>0;){p--;var Q=l[p];if(Array.isArray(s)?s.indexOf(Q)!==-1:s===Q)for(var E=u;E<=l.length;){E++;var C=l[E];if(C===i)return!0;if(C!==fA)break}if(Q!==fA)break}return!1},Dl=function(s,i){for(var u=s;u>=0;){var l=i[u];if(l===fA)u--;else return l}return 0},N0=function(s,i,u,l,f){if(u[l]===0)return VA;var p=l-1;if(Array.isArray(f)&&f[p]===!0)return VA;var C=p-1,Q=p+1,E=i[p],N=C>=0?i[C]:0,K=i[Q];if(E===eA&&K===uA)return VA;if(vi.indexOf(E)!==-1)return Hl;if(vi.indexOf(K)!==-1||_l.indexOf(K)!==-1)return VA;if(Dl(p,i)===yA)return zr;if(yi.get(s[p])===vA||(E===NA||E===MA)&&yi.get(s[Q])===vA||E===mA||K===mA||E===IA||[fA,H,D].indexOf(E)===-1&&K===IA||[z,P,gA,ne,ve].indexOf(K)!==-1||Dl(p,i)===xA||Qi(KA,xA,p,i)||Qi([z,P],SA,p,i)||Qi(S,S,p,i))return VA;if(E===fA)return zr;if(E===KA||K===KA)return VA;if(K===b||E===b)return zr;if([H,D,SA].indexOf(K)!==-1||E===T||N===Tt&&x0.indexOf(E)!==-1||E===ve&&K===Tt||K===iA||at.indexOf(K)!==-1&&E===YA||at.indexOf(E)!==-1&&K===YA||E===Re&&[kt,NA,MA].indexOf(K)!==-1||[kt,NA,MA].indexOf(E)!==-1&&K===PA||at.indexOf(E)!==-1&&Sl.indexOf(K)!==-1||Sl.indexOf(E)!==-1&&at.indexOf(K)!==-1||[Re,PA].indexOf(E)!==-1&&(K===YA||[xA,D].indexOf(K)!==-1&&i[Q+1]===YA)||[xA,D].indexOf(E)!==-1&&K===YA||E===YA&&[YA,ve,ne].indexOf(K)!==-1)return VA;if([YA,ve,ne,z,P].indexOf(K)!==-1)for(var X=p;X>=0;){var j=i[X];if(j===YA)return VA;if([ve,ne].indexOf(j)!==-1)X--;else break}if([Re,PA].indexOf(K)!==-1)for(var X=[z,P].indexOf(E)!==-1?C:p;X>=0;){var j=i[X];if(j===YA)return VA;if([ve,ne].indexOf(j)!==-1)X--;else break}if(On===E&&[On,tn,it,Mn].indexOf(K)!==-1||[tn,it].indexOf(E)!==-1&&[tn,GA].indexOf(K)!==-1||[GA,Mn].indexOf(E)!==-1&&K===GA||xl.indexOf(E)!==-1&&[iA,PA].indexOf(K)!==-1||xl.indexOf(K)!==-1&&E===Re||at.indexOf(E)!==-1&&at.indexOf(K)!==-1||E===ne&&at.indexOf(K)!==-1||at.concat(YA).indexOf(E)!==-1&&K===xA&&_0.indexOf(s[Q])===-1||at.concat(YA).indexOf(K)!==-1&&E===P)return VA;if(E===Ve&&K===Ve){for(var CA=u[p],BA=1;CA>0&&(CA--,i[CA]===Ve);)BA++;if(BA%2!==0)return VA}return E===NA&&K===MA?VA:zr},L0=function(s,i){i||(i={lineBreak:"normal",wordBreak:"normal"});var u=D0(s,i.lineBreak),l=u[0],f=u[1],p=u[2];(i.wordBreak==="break-all"||i.wordBreak==="break-word")&&(f=f.map(function(Q){return[YA,sA,st].indexOf(Q)!==-1?kt:Q}));var C=i.wordBreak==="keep-all"?p.map(function(Q,E){return Q&&s[E]>=19968&&s[E]<=40959}):void 0;return[l,f,C]},T0=(function(){function s(i,u,l,f){this.codePoints=i,this.required=u===Hl,this.start=l,this.end=f}return s.prototype.slice=function(){return m.apply(void 0,this.codePoints.slice(this.start,this.end))},s})(),k0=function(s,i){var u=w(s),l=L0(u,i),f=l[0],p=l[1],C=l[2],Q=u.length,E=0,N=0;return{next:function(){if(N>=Q)return{done:!0,value:null};for(var K=VA;N<Q&&(K=N0(u,p,f,++N,C))===VA;);if(K!==VA||N===Q){var X=new T0(u,K,E,N);return E=N,{value:X,done:!1}}return{done:!0,value:null}}}},M0=1,O0=2,Kn=4,Nl=8,$r=10,Ll=47,Rn=92,K0=9,R0=32,Xr=34,Vn=61,V0=35,P0=36,G0=37,Wr=39,Yr=40,Pn=41,z0=95,Qe=45,$0=33,X0=60,W0=62,Y0=64,J0=91,Z0=93,j0=61,q0=123,Jr=63,AC=125,Tl=124,eC=126,tC=128,kl=65533,Ei=42,Mt=43,nC=44,rC=58,oC=59,Gn=46,iC=0,sC=8,aC=11,lC=14,cC=31,uC=127,Ye=-1,Ml=48,Ol=97,Kl=101,dC=102,fC=117,gC=122,Rl=65,Vl=69,Pl=70,hC=85,BC=90,me=function(s){return s>=Ml&&s<=57},pC=function(s){return s>=55296&&s<=57343},nn=function(s){return me(s)||s>=Rl&&s<=Pl||s>=Ol&&s<=dC},mC=function(s){return s>=Ol&&s<=gC},wC=function(s){return s>=Rl&&s<=BC},CC=function(s){return mC(s)||wC(s)},yC=function(s){return s>=tC},Zr=function(s){return s===$r||s===K0||s===R0},jr=function(s){return CC(s)||yC(s)||s===z0},Gl=function(s){return jr(s)||me(s)||s===Qe},vC=function(s){return s>=iC&&s<=sC||s===aC||s>=lC&&s<=cC||s===uC},wt=function(s,i){return s!==Rn?!1:i!==$r},qr=function(s,i,u){return s===Qe?jr(i)||wt(i,u):jr(s)?!0:!!(s===Rn&&wt(s,i))},Fi=function(s,i,u){return s===Mt||s===Qe?me(i)?!0:i===Gn&&me(u):me(s===Gn?i:s)},QC=function(s){var i=0,u=1;(s[i]===Mt||s[i]===Qe)&&(s[i]===Qe&&(u=-1),i++);for(var l=[];me(s[i]);)l.push(s[i++]);var f=l.length?parseInt(m.apply(void 0,l),10):0;s[i]===Gn&&i++;for(var p=[];me(s[i]);)p.push(s[i++]);var C=p.length,Q=C?parseInt(m.apply(void 0,p),10):0;(s[i]===Vl||s[i]===Kl)&&i++;var E=1;(s[i]===Mt||s[i]===Qe)&&(s[i]===Qe&&(E=-1),i++);for(var N=[];me(s[i]);)N.push(s[i++]);var K=N.length?parseInt(m.apply(void 0,N),10):0;return u*(f+Q*Math.pow(10,-C))*Math.pow(10,E*K)},EC={type:2},FC={type:3},UC={type:4},bC={type:13},IC={type:8},HC={type:21},_C={type:9},SC={type:10},xC={type:11},DC={type:12},NC={type:14},Ao={type:23},LC={type:1},TC={type:25},kC={type:24},MC={type:26},OC={type:27},KC={type:28},RC={type:29},VC={type:31},Ui={type:32},zl=(function(){function s(){this._value=[]}return s.prototype.write=function(i){this._value=this._value.concat(w(i))},s.prototype.read=function(){for(var i=[],u=this.consumeToken();u!==Ui;)i.push(u),u=this.consumeToken();return i},s.prototype.consumeToken=function(){var i=this.consumeCodePoint();switch(i){case Xr:return this.consumeStringToken(Xr);case V0:var u=this.peekCodePoint(0),l=this.peekCodePoint(1),f=this.peekCodePoint(2);if(Gl(u)||wt(l,f)){var p=qr(u,l,f)?O0:M0,C=this.consumeName();return{type:5,value:C,flags:p}}break;case P0:if(this.peekCodePoint(0)===Vn)return this.consumeCodePoint(),bC;break;case Wr:return this.consumeStringToken(Wr);case Yr:return EC;case Pn:return FC;case Ei:if(this.peekCodePoint(0)===Vn)return this.consumeCodePoint(),NC;break;case Mt:if(Fi(i,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(i),this.consumeNumericToken();break;case nC:return UC;case Qe:var Q=i,E=this.peekCodePoint(0),N=this.peekCodePoint(1);if(Fi(Q,E,N))return this.reconsumeCodePoint(i),this.consumeNumericToken();if(qr(Q,E,N))return this.reconsumeCodePoint(i),this.consumeIdentLikeToken();if(E===Qe&&N===W0)return this.consumeCodePoint(),this.consumeCodePoint(),kC;break;case Gn:if(Fi(i,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(i),this.consumeNumericToken();break;case Ll:if(this.peekCodePoint(0)===Ei)for(this.consumeCodePoint();;){var K=this.consumeCodePoint();if(K===Ei&&(K=this.consumeCodePoint(),K===Ll))return this.consumeToken();if(K===Ye)return this.consumeToken()}break;case rC:return MC;case oC:return OC;case X0:if(this.peekCodePoint(0)===$0&&this.peekCodePoint(1)===Qe&&this.peekCodePoint(2)===Qe)return this.consumeCodePoint(),this.consumeCodePoint(),TC;break;case Y0:if(qr(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2))){var C=this.consumeName();return{type:7,value:C}}break;case J0:return KC;case Rn:if(wt(i,this.peekCodePoint(0)))return this.reconsumeCodePoint(i),this.consumeIdentLikeToken();break;case Z0:return RC;case j0:if(this.peekCodePoint(0)===Vn)return this.consumeCodePoint(),IC;break;case q0:return xC;case AC:return DC;case fC:case hC:var X=this.peekCodePoint(0),j=this.peekCodePoint(1);return X===Mt&&(nn(j)||j===Jr)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(i),this.consumeIdentLikeToken();case Tl:if(this.peekCodePoint(0)===Vn)return this.consumeCodePoint(),_C;if(this.peekCodePoint(0)===Tl)return this.consumeCodePoint(),HC;break;case eC:if(this.peekCodePoint(0)===Vn)return this.consumeCodePoint(),SC;break;case Ye:return Ui}return Zr(i)?(this.consumeWhiteSpace(),VC):me(i)?(this.reconsumeCodePoint(i),this.consumeNumericToken()):jr(i)?(this.reconsumeCodePoint(i),this.consumeIdentLikeToken()):{type:6,value:m(i)}},s.prototype.consumeCodePoint=function(){var i=this._value.shift();return typeof i>"u"?-1:i},s.prototype.reconsumeCodePoint=function(i){this._value.unshift(i)},s.prototype.peekCodePoint=function(i){return i>=this._value.length?-1:this._value[i]},s.prototype.consumeUnicodeRangeToken=function(){for(var i=[],u=this.consumeCodePoint();nn(u)&&i.length<6;)i.push(u),u=this.consumeCodePoint();for(var l=!1;u===Jr&&i.length<6;)i.push(u),u=this.consumeCodePoint(),l=!0;if(l){var f=parseInt(m.apply(void 0,i.map(function(E){return E===Jr?Ml:E})),16),p=parseInt(m.apply(void 0,i.map(function(E){return E===Jr?Pl:E})),16);return{type:30,start:f,end:p}}var C=parseInt(m.apply(void 0,i),16);if(this.peekCodePoint(0)===Qe&&nn(this.peekCodePoint(1))){this.consumeCodePoint(),u=this.consumeCodePoint();for(var Q=[];nn(u)&&Q.length<6;)Q.push(u),u=this.consumeCodePoint();var p=parseInt(m.apply(void 0,Q),16);return{type:30,start:C,end:p}}else return{type:30,start:C,end:C}},s.prototype.consumeIdentLikeToken=function(){var i=this.consumeName();return i.toLowerCase()==="url"&&this.peekCodePoint(0)===Yr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Yr?(this.consumeCodePoint(),{type:19,value:i}):{type:20,value:i}},s.prototype.consumeUrlToken=function(){var i=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ye)return{type:22,value:""};var u=this.peekCodePoint(0);if(u===Wr||u===Xr){var l=this.consumeStringToken(this.consumeCodePoint());return l.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ye||this.peekCodePoint(0)===Pn)?(this.consumeCodePoint(),{type:22,value:l.value}):(this.consumeBadUrlRemnants(),Ao)}for(;;){var f=this.consumeCodePoint();if(f===Ye||f===Pn)return{type:22,value:m.apply(void 0,i)};if(Zr(f))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ye||this.peekCodePoint(0)===Pn?(this.consumeCodePoint(),{type:22,value:m.apply(void 0,i)}):(this.consumeBadUrlRemnants(),Ao);if(f===Xr||f===Wr||f===Yr||vC(f))return this.consumeBadUrlRemnants(),Ao;if(f===Rn)if(wt(f,this.peekCodePoint(0)))i.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Ao;else i.push(f)}},s.prototype.consumeWhiteSpace=function(){for(;Zr(this.peekCodePoint(0));)this.consumeCodePoint()},s.prototype.consumeBadUrlRemnants=function(){for(;;){var i=this.consumeCodePoint();if(i===Pn||i===Ye)return;wt(i,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},s.prototype.consumeStringSlice=function(i){for(var u=5e4,l="";i>0;){var f=Math.min(u,i);l+=m.apply(void 0,this._value.splice(0,f)),i-=f}return this._value.shift(),l},s.prototype.consumeStringToken=function(i){var u="",l=0;do{var f=this._value[l];if(f===Ye||f===void 0||f===i)return u+=this.consumeStringSlice(l),{type:0,value:u};if(f===$r)return this._value.splice(0,l),LC;if(f===Rn){var p=this._value[l+1];p!==Ye&&p!==void 0&&(p===$r?(u+=this.consumeStringSlice(l),l=-1,this._value.shift()):wt(f,p)&&(u+=this.consumeStringSlice(l),u+=m(this.consumeEscapedCodePoint()),l=-1))}l++}while(!0)},s.prototype.consumeNumber=function(){var i=[],u=Kn,l=this.peekCodePoint(0);for((l===Mt||l===Qe)&&i.push(this.consumeCodePoint());me(this.peekCodePoint(0));)i.push(this.consumeCodePoint());l=this.peekCodePoint(0);var f=this.peekCodePoint(1);if(l===Gn&&me(f))for(i.push(this.consumeCodePoint(),this.consumeCodePoint()),u=Nl;me(this.peekCodePoint(0));)i.push(this.consumeCodePoint());l=this.peekCodePoint(0),f=this.peekCodePoint(1);var p=this.peekCodePoint(2);if((l===Vl||l===Kl)&&((f===Mt||f===Qe)&&me(p)||me(f)))for(i.push(this.consumeCodePoint(),this.consumeCodePoint()),u=Nl;me(this.peekCodePoint(0));)i.push(this.consumeCodePoint());return[QC(i),u]},s.prototype.consumeNumericToken=function(){var i=this.consumeNumber(),u=i[0],l=i[1],f=this.peekCodePoint(0);return qr(f,this.peekCodePoint(1),this.peekCodePoint(2))?{type:15,number:u,flags:l,unit:this.consumeName()}:f===G0?(this.consumeCodePoint(),{type:16,number:u,flags:l}):{type:17,number:u,flags:l}},s.prototype.consumeEscapedCodePoint=function(){var i=this.consumeCodePoint();if(nn(i)){for(var u=m(i);nn(this.peekCodePoint(0))&&u.length<6;)u+=m(this.consumeCodePoint());Zr(this.peekCodePoint(0))&&this.consumeCodePoint();var l=parseInt(u,16);return l===0||pC(l)||l>1114111?kl:l}return i===Ye?kl:i},s.prototype.consumeName=function(){for(var i="";;){var u=this.consumeCodePoint();if(Gl(u))i+=m(u);else if(wt(u,this.peekCodePoint(0)))i+=m(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(u),i}},s})(),$l=(function(){function s(i){this._tokens=i}return s.create=function(i){var u=new zl;return u.write(i),new s(u.read())},s.parseValue=function(i){return s.create(i).parseComponentValue()},s.parseValues=function(i){return s.create(i).parseComponentValues()},s.prototype.parseComponentValue=function(){for(var i=this.consumeToken();i.type===31;)i=this.consumeToken();if(i.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(i);var u=this.consumeComponentValue();do i=this.consumeToken();while(i.type===31);if(i.type===32)return u;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},s.prototype.parseComponentValues=function(){for(var i=[];;){var u=this.consumeComponentValue();if(u.type===32)return i;i.push(u),i.push()}},s.prototype.consumeComponentValue=function(){var i=this.consumeToken();switch(i.type){case 11:case 28:case 2:return this.consumeSimpleBlock(i.type);case 19:return this.consumeFunction(i)}return i},s.prototype.consumeSimpleBlock=function(i){for(var u={type:i,values:[]},l=this.consumeToken();;){if(l.type===32||GC(l,i))return u;this.reconsumeToken(l),u.values.push(this.consumeComponentValue()),l=this.consumeToken()}},s.prototype.consumeFunction=function(i){for(var u={name:i.value,values:[],type:18};;){var l=this.consumeToken();if(l.type===32||l.type===3)return u;this.reconsumeToken(l),u.values.push(this.consumeComponentValue())}},s.prototype.consumeToken=function(){var i=this._tokens.shift();return typeof i>"u"?Ui:i},s.prototype.reconsumeToken=function(i){this._tokens.unshift(i)},s})(),zn=function(s){return s.type===15},rn=function(s){return s.type===17},jA=function(s){return s.type===20},PC=function(s){return s.type===0},bi=function(s,i){return jA(s)&&s.value===i},Xl=function(s){return s.type!==31},on=function(s){return s.type!==31&&s.type!==4},Je=function(s){var i=[],u=[];return s.forEach(function(l){if(l.type===4){if(u.length===0)throw new Error("Error parsing function args, zero tokens for arg");i.push(u),u=[];return}l.type!==31&&u.push(l)}),u.length&&i.push(u),i},GC=function(s,i){return i===11&&s.type===12||i===28&&s.type===29?!0:i===2&&s.type===3},Ct=function(s){return s.type===17||s.type===15},ce=function(s){return s.type===16||Ct(s)},Wl=function(s){return s.length>1?[s[0],s[1]]:[s[0]]},he={type:17,number:0,flags:Kn},Ii={type:16,number:50,flags:Kn},yt={type:16,number:100,flags:Kn},$n=function(s,i,u){var l=s[0],f=s[1];return[Ae(l,i),Ae(typeof f<"u"?f:l,u)]},Ae=function(s,i){if(s.type===16)return s.number/100*i;if(zn(s))switch(s.unit){case"rem":case"em":return 16*s.number;default:return s.number}return s.number},Yl="deg",Jl="grad",Zl="rad",jl="turn",eo={name:"angle",parse:function(s,i){if(i.type===15)switch(i.unit){case Yl:return Math.PI*i.number/180;case Jl:return Math.PI/200*i.number;case Zl:return i.number;case jl:return Math.PI*2*i.number}throw new Error("Unsupported angle type")}},ql=function(s){return s.type===15&&(s.unit===Yl||s.unit===Jl||s.unit===Zl||s.unit===jl)},Ac=function(s){switch(s.filter(jA).map(function(i){return i.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[he,he];case"to top":case"bottom":return Se(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[he,yt];case"to right":case"left":return Se(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[yt,yt];case"to bottom":case"top":return Se(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[yt,he];case"to left":case"right":return Se(270)}return 0},Se=function(s){return Math.PI*s/180},vt={name:"color",parse:function(s,i){if(i.type===18){var u=zC[i.name];if(typeof u>"u")throw new Error('Attempting to parse an unsupported color function "'+i.name+'"');return u(s,i.values)}if(i.type===5){if(i.value.length===3){var l=i.value.substring(0,1),f=i.value.substring(1,2),p=i.value.substring(2,3);return Et(parseInt(l+l,16),parseInt(f+f,16),parseInt(p+p,16),1)}if(i.value.length===4){var l=i.value.substring(0,1),f=i.value.substring(1,2),p=i.value.substring(2,3),C=i.value.substring(3,4);return Et(parseInt(l+l,16),parseInt(f+f,16),parseInt(p+p,16),parseInt(C+C,16)/255)}if(i.value.length===6){var l=i.value.substring(0,2),f=i.value.substring(2,4),p=i.value.substring(4,6);return Et(parseInt(l,16),parseInt(f,16),parseInt(p,16),1)}if(i.value.length===8){var l=i.value.substring(0,2),f=i.value.substring(2,4),p=i.value.substring(4,6),C=i.value.substring(6,8);return Et(parseInt(l,16),parseInt(f,16),parseInt(p,16),parseInt(C,16)/255)}}if(i.type===20){var Q=lt[i.value.toUpperCase()];if(typeof Q<"u")return Q}return lt.TRANSPARENT}},Qt=function(s){return(255&s)===0},ge=function(s){var i=255&s,u=255&s>>8,l=255&s>>16,f=255&s>>24;return i<255?"rgba("+f+","+l+","+u+","+i/255+")":"rgb("+f+","+l+","+u+")"},Et=function(s,i,u,l){return(s<<24|i<<16|u<<8|Math.round(l*255)<<0)>>>0},ec=function(s,i){if(s.type===17)return s.number;if(s.type===16){var u=i===3?1:255;return i===3?s.number/100*u:Math.round(s.number/100*u)}return 0},tc=function(s,i){var u=i.filter(on);if(u.length===3){var l=u.map(ec),f=l[0],p=l[1],C=l[2];return Et(f,p,C,1)}if(u.length===4){var Q=u.map(ec),f=Q[0],p=Q[1],C=Q[2],E=Q[3];return Et(f,p,C,E)}return 0};function Hi(s,i,u){return u<0&&(u+=1),u>=1&&(u-=1),u<1/6?(i-s)*u*6+s:u<1/2?i:u<2/3?(i-s)*6*(2/3-u)+s:s}var nc=function(s,i){var u=i.filter(on),l=u[0],f=u[1],p=u[2],C=u[3],Q=(l.type===17?Se(l.number):eo.parse(s,l))/(Math.PI*2),E=ce(f)?f.number/100:0,N=ce(p)?p.number/100:0,K=typeof C<"u"&&ce(C)?Ae(C,1):1;if(E===0)return Et(N*255,N*255,N*255,1);var X=N<=.5?N*(E+1):N+E-N*E,j=N*2-X,CA=Hi(j,X,Q+1/3),BA=Hi(j,X,Q),wA=Hi(j,X,Q-1/3);return Et(CA*255,BA*255,wA*255,K)},zC={hsl:nc,hsla:nc,rgb:tc,rgba:tc},Xn=function(s,i){return vt.parse(s,$l.create(i).parseComponentValue())},lt={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},$C={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(s,i){return i.map(function(u){if(jA(u))switch(u.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},XC={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},to=function(s,i){var u=vt.parse(s,i[0]),l=i[1];return l&&ce(l)?{color:u,stop:l}:{color:u,stop:null}},rc=function(s,i){var u=s[0],l=s[s.length-1];u.stop===null&&(u.stop=he),l.stop===null&&(l.stop=yt);for(var f=[],p=0,C=0;C<s.length;C++){var Q=s[C].stop;if(Q!==null){var E=Ae(Q,i);E>p?f.push(E):f.push(p),p=E}else f.push(null)}for(var N=null,C=0;C<f.length;C++){var K=f[C];if(K===null)N===null&&(N=C);else if(N!==null){for(var X=C-N,j=(K-f[N-1])/(X+1),CA=1;CA<=X;CA++)f[N+CA-1]=j*CA;N=null}}return s.map(function(BA,wA){return{color:BA.color,stop:Math.max(Math.min(1,f[wA]/i),0)}})},WC=function(s,i,u){var l=i/2,f=u/2,p=Ae(s[0],i)-l,C=f-Ae(s[1],u);return(Math.atan2(C,p)+Math.PI*2)%(Math.PI*2)},YC=function(s,i,u){var l=typeof s=="number"?s:WC(s,i,u),f=Math.abs(i*Math.sin(l))+Math.abs(u*Math.cos(l)),p=i/2,C=u/2,Q=f/2,E=Math.sin(l-Math.PI/2)*Q,N=Math.cos(l-Math.PI/2)*Q;return[f,p-N,p+N,C-E,C+E]},Pe=function(s,i){return Math.sqrt(s*s+i*i)},oc=function(s,i,u,l,f){return[[0,0],[0,i],[s,0],[s,i]].reduce(function(p,C){var Q=C[0],E=C[1],N=Pe(u-Q,l-E);return(f?N<p.optimumDistance:N>p.optimumDistance)?{optimumCorner:C,optimumDistance:N}:p},{optimumDistance:f?1/0:-1/0,optimumCorner:null}).optimumCorner},JC=function(s,i,u,l,f){var p=0,C=0;switch(s.size){case 0:s.shape===0?p=C=Math.min(Math.abs(i),Math.abs(i-l),Math.abs(u),Math.abs(u-f)):s.shape===1&&(p=Math.min(Math.abs(i),Math.abs(i-l)),C=Math.min(Math.abs(u),Math.abs(u-f)));break;case 2:if(s.shape===0)p=C=Math.min(Pe(i,u),Pe(i,u-f),Pe(i-l,u),Pe(i-l,u-f));else if(s.shape===1){var Q=Math.min(Math.abs(u),Math.abs(u-f))/Math.min(Math.abs(i),Math.abs(i-l)),E=oc(l,f,i,u,!0),N=E[0],K=E[1];p=Pe(N-i,(K-u)/Q),C=Q*p}break;case 1:s.shape===0?p=C=Math.max(Math.abs(i),Math.abs(i-l),Math.abs(u),Math.abs(u-f)):s.shape===1&&(p=Math.max(Math.abs(i),Math.abs(i-l)),C=Math.max(Math.abs(u),Math.abs(u-f)));break;case 3:if(s.shape===0)p=C=Math.max(Pe(i,u),Pe(i,u-f),Pe(i-l,u),Pe(i-l,u-f));else if(s.shape===1){var Q=Math.max(Math.abs(u),Math.abs(u-f))/Math.max(Math.abs(i),Math.abs(i-l)),X=oc(l,f,i,u,!1),N=X[0],K=X[1];p=Pe(N-i,(K-u)/Q),C=Q*p}break}return Array.isArray(s.size)&&(p=Ae(s.size[0],l),C=s.size.length===2?Ae(s.size[1],f):p),[p,C]},ZC=function(s,i){var u=Se(180),l=[];return Je(i).forEach(function(f,p){if(p===0){var C=f[0];if(C.type===20&&C.value==="to"){u=Ac(f);return}else if(ql(C)){u=eo.parse(s,C);return}}var Q=to(s,f);l.push(Q)}),{angle:u,stops:l,type:1}},no=function(s,i){var u=Se(180),l=[];return Je(i).forEach(function(f,p){if(p===0){var C=f[0];if(C.type===20&&["top","left","right","bottom"].indexOf(C.value)!==-1){u=Ac(f);return}else if(ql(C)){u=(eo.parse(s,C)+Se(270))%Se(360);return}}var Q=to(s,f);l.push(Q)}),{angle:u,stops:l,type:1}},jC=function(s,i){var u=Se(180),l=[],f=1,p=0,C=3,Q=[];return Je(i).forEach(function(E,N){var K=E[0];if(N===0){if(jA(K)&&K.value==="linear"){f=1;return}else if(jA(K)&&K.value==="radial"){f=2;return}}if(K.type===18){if(K.name==="from"){var X=vt.parse(s,K.values[0]);l.push({stop:he,color:X})}else if(K.name==="to"){var X=vt.parse(s,K.values[0]);l.push({stop:yt,color:X})}else if(K.name==="color-stop"){var j=K.values.filter(on);if(j.length===2){var X=vt.parse(s,j[1]),CA=j[0];rn(CA)&&l.push({stop:{type:16,number:CA.number*100,flags:CA.flags},color:X})}}}}),f===1?{angle:(u+Se(180))%Se(360),stops:l,type:f}:{size:C,shape:p,stops:l,position:Q,type:f}},ic="closest-side",sc="farthest-side",ac="closest-corner",lc="farthest-corner",cc="circle",uc="ellipse",dc="cover",fc="contain",qC=function(s,i){var u=0,l=3,f=[],p=[];return Je(i).forEach(function(C,Q){var E=!0;if(Q===0){var N=!1;E=C.reduce(function(X,j){if(N)if(jA(j))switch(j.value){case"center":return p.push(Ii),X;case"top":case"left":return p.push(he),X;case"right":case"bottom":return p.push(yt),X}else(ce(j)||Ct(j))&&p.push(j);else if(jA(j))switch(j.value){case cc:return u=0,!1;case uc:return u=1,!1;case"at":return N=!0,!1;case ic:return l=0,!1;case dc:case sc:return l=1,!1;case fc:case ac:return l=2,!1;case lc:return l=3,!1}else if(Ct(j)||ce(j))return Array.isArray(l)||(l=[]),l.push(j),!1;return X},E)}if(E){var K=to(s,C);f.push(K)}}),{size:l,shape:u,stops:f,position:p,type:2}},ro=function(s,i){var u=0,l=3,f=[],p=[];return Je(i).forEach(function(C,Q){var E=!0;if(Q===0?E=C.reduce(function(K,X){if(jA(X))switch(X.value){case"center":return p.push(Ii),!1;case"top":case"left":return p.push(he),!1;case"right":case"bottom":return p.push(yt),!1}else if(ce(X)||Ct(X))return p.push(X),!1;return K},E):Q===1&&(E=C.reduce(function(K,X){if(jA(X))switch(X.value){case cc:return u=0,!1;case uc:return u=1,!1;case fc:case ic:return l=0,!1;case sc:return l=1,!1;case ac:return l=2,!1;case dc:case lc:return l=3,!1}else if(Ct(X)||ce(X))return Array.isArray(l)||(l=[]),l.push(X),!1;return K},E)),E){var N=to(s,C);f.push(N)}}),{size:l,shape:u,stops:f,position:p,type:2}},Ay=function(s){return s.type===1},ey=function(s){return s.type===2},_i={name:"image",parse:function(s,i){if(i.type===22){var u={url:i.value,type:0};return s.cache.addImage(i.value),u}if(i.type===18){var l=gc[i.name];if(typeof l>"u")throw new Error('Attempting to parse an unsupported image function "'+i.name+'"');return l(s,i.values)}throw new Error("Unsupported image type "+i.type)}};function ty(s){return!(s.type===20&&s.value==="none")&&(s.type!==18||!!gc[s.name])}var gc={"linear-gradient":ZC,"-moz-linear-gradient":no,"-ms-linear-gradient":no,"-o-linear-gradient":no,"-webkit-linear-gradient":no,"radial-gradient":qC,"-moz-radial-gradient":ro,"-ms-radial-gradient":ro,"-o-radial-gradient":ro,"-webkit-radial-gradient":ro,"-webkit-gradient":jC},ny={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(s,i){if(i.length===0)return[];var u=i[0];return u.type===20&&u.value==="none"?[]:i.filter(function(l){return on(l)&&ty(l)}).map(function(l){return _i.parse(s,l)})}},ry={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(s,i){return i.map(function(u){if(jA(u))switch(u.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},oy={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(s,i){return Je(i).map(function(u){return u.filter(ce)}).map(Wl)}},iy={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(s,i){return Je(i).map(function(u){return u.filter(jA).map(function(l){return l.value}).join(" ")}).map(sy)}},sy=function(s){switch(s){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},sn;(function(s){s.AUTO="auto",s.CONTAIN="contain",s.COVER="cover"})(sn||(sn={}));var ay={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(s,i){return Je(i).map(function(u){return u.filter(ly)})}},ly=function(s){return jA(s)||ce(s)},oo=function(s){return{name:"border-"+s+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},cy=oo("top"),uy=oo("right"),dy=oo("bottom"),fy=oo("left"),io=function(s){return{name:"border-radius-"+s,initialValue:"0 0",prefix:!1,type:1,parse:function(i,u){return Wl(u.filter(ce))}}},gy=io("top-left"),hy=io("top-right"),By=io("bottom-right"),py=io("bottom-left"),so=function(s){return{name:"border-"+s+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(i,u){switch(u){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},my=so("top"),wy=so("right"),Cy=so("bottom"),yy=so("left"),ao=function(s){return{name:"border-"+s+"-width",initialValue:"0",type:0,prefix:!1,parse:function(i,u){return zn(u)?u.number:0}}},vy=ao("top"),Qy=ao("right"),Ey=ao("bottom"),Fy=ao("left"),Uy={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},by={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(s,i){return i==="rtl"?1:0}},Iy={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(s,i){return i.filter(jA).reduce(function(u,l){return u|Hy(l.value)},0)}},Hy=function(s){switch(s){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},_y={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Sy={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(s,i){return i.type===20&&i.value==="normal"?0:i.type===17||i.type===15?i.number:0}},lo;(function(s){s.NORMAL="normal",s.STRICT="strict"})(lo||(lo={}));var xy={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){return i==="strict"?lo.STRICT:lo.NORMAL}},Dy={name:"line-height",initialValue:"normal",prefix:!1,type:4},hc=function(s,i){return jA(s)&&s.value==="normal"?1.2*i:s.type===17?i*s.number:ce(s)?Ae(s,i):i},Ny={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(s,i){return i.type===20&&i.value==="none"?null:_i.parse(s,i)}},Ly={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(s,i){return i==="inside"?0:1}},Si={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},co=function(s){return{name:"margin-"+s,initialValue:"0",prefix:!1,type:4}},Ty=co("top"),ky=co("right"),My=co("bottom"),Oy=co("left"),Ky={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(s,i){return i.filter(jA).map(function(u){switch(u.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},Ry={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){return i==="break-word"?"break-word":"normal"}},uo=function(s){return{name:"padding-"+s,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Vy=uo("top"),Py=uo("right"),Gy=uo("bottom"),zy=uo("left"),$y={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(s,i){switch(i){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Xy={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(s,i){switch(i){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Wy={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.length===1&&bi(i[0],"none")?[]:Je(i).map(function(u){for(var l={color:lt.TRANSPARENT,offsetX:he,offsetY:he,blur:he},f=0,p=0;p<u.length;p++){var C=u[p];Ct(C)?(f===0?l.offsetX=C:f===1?l.offsetY=C:l.blur=C,f++):l.color=vt.parse(s,C)}return l})}},Yy={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Jy={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(s,i){if(i.type===20&&i.value==="none")return null;if(i.type===18){var u=qy[i.name];if(typeof u>"u")throw new Error('Attempting to parse an unsupported transform function "'+i.name+'"');return u(i.values)}return null}},Zy=function(s){var i=s.filter(function(u){return u.type===17}).map(function(u){return u.number});return i.length===6?i:null},jy=function(s){var i=s.filter(function(E){return E.type===17}).map(function(E){return E.number}),u=i[0],l=i[1];i[2],i[3];var f=i[4],p=i[5];i[6],i[7],i[8],i[9],i[10],i[11];var C=i[12],Q=i[13];return i[14],i[15],i.length===16?[u,l,f,p,C,Q]:null},qy={matrix:Zy,matrix3d:jy},Bc={type:16,number:50,flags:Kn},Av=[Bc,Bc],ev={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(s,i){var u=i.filter(ce);return u.length!==2?Av:[u[0],u[1]]}},tv={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"hidden":return 1;case"collapse":return 2;default:return 0}}},Wn;(function(s){s.NORMAL="normal",s.BREAK_ALL="break-all",s.KEEP_ALL="keep-all"})(Wn||(Wn={}));for(var nv={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){switch(i){case"break-all":return Wn.BREAK_ALL;case"keep-all":return Wn.KEEP_ALL;default:return Wn.NORMAL}}},rv={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(s,i){if(i.type===20)return{auto:!0,order:0};if(rn(i))return{auto:!1,order:i.number};throw new Error("Invalid z-index number parsed")}},pc={name:"time",parse:function(s,i){if(i.type===15)switch(i.unit.toLowerCase()){case"s":return 1e3*i.number;case"ms":return i.number}throw new Error("Unsupported time type")}},ov={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(s,i){return rn(i)?i.number:1}},iv={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},sv={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(s,i){return i.filter(jA).map(function(u){switch(u.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(u){return u!==0})}},av={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(s,i){var u=[],l=[];return i.forEach(function(f){switch(f.type){case 20:case 0:u.push(f.value);break;case 17:u.push(f.number.toString());break;case 4:l.push(u.join(" ")),u.length=0;break}}),u.length&&l.push(u.join(" ")),l.map(function(f){return f.indexOf(" ")===-1?f:"'"+f+"'"})}},lv={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},cv={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(s,i){return rn(i)?i.number:jA(i)&&i.value==="bold"?700:400}},uv={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.filter(jA).map(function(u){return u.value})}},dv={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){switch(i){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},fe=function(s,i){return(s&i)!==0},fv={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(s,i){if(i.length===0)return[];var u=i[0];return u.type===20&&u.value==="none"?[]:i}},gv={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(s,i){if(i.length===0)return null;var u=i[0];if(u.type===20&&u.value==="none")return null;for(var l=[],f=i.filter(Xl),p=0;p<f.length;p++){var C=f[p],Q=f[p+1];if(C.type===20){var E=Q&&rn(Q)?Q.number:1;l.push({counter:C.value,increment:E})}}return l}},hv={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(s,i){if(i.length===0)return[];for(var u=[],l=i.filter(Xl),f=0;f<l.length;f++){var p=l[f],C=l[f+1];if(jA(p)&&p.value!=="none"){var Q=C&&rn(C)?C.number:0;u.push({counter:p.value,reset:Q})}}return u}},Bv={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(s,i){return i.filter(zn).map(function(u){return pc.parse(s,u)})}},pv={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(s,i){if(i.length===0)return null;var u=i[0];if(u.type===20&&u.value==="none")return null;var l=[],f=i.filter(PC);if(f.length%2!==0)return null;for(var p=0;p<f.length;p+=2){var C=f[p].value,Q=f[p+1].value;l.push({open:C,close:Q})}return l}},mc=function(s,i,u){if(!s)return"";var l=s[Math.min(i,s.length-1)];return l?u?l.open:l.close:""},mv={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.length===1&&bi(i[0],"none")?[]:Je(i).map(function(u){for(var l={color:255,offsetX:he,offsetY:he,blur:he,spread:he,inset:!1},f=0,p=0;p<u.length;p++){var C=u[p];bi(C,"inset")?l.inset=!0:Ct(C)?(f===0?l.offsetX=C:f===1?l.offsetY=C:f===2?l.blur=C:l.spread=C,f++):l.color=vt.parse(s,C)}return l})}},wv={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(s,i){var u=[0,1,2],l=[];return i.filter(jA).forEach(function(f){switch(f.value){case"stroke":l.push(1);break;case"fill":l.push(0);break;case"markers":l.push(2);break}}),u.forEach(function(f){l.indexOf(f)===-1&&l.push(f)}),l}},Cv={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},yv={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(s,i){return zn(i)?i.number:0}},vv=(function(){function s(i,u){var l,f;this.animationDuration=bA(i,Bv,u.animationDuration),this.backgroundClip=bA(i,$C,u.backgroundClip),this.backgroundColor=bA(i,XC,u.backgroundColor),this.backgroundImage=bA(i,ny,u.backgroundImage),this.backgroundOrigin=bA(i,ry,u.backgroundOrigin),this.backgroundPosition=bA(i,oy,u.backgroundPosition),this.backgroundRepeat=bA(i,iy,u.backgroundRepeat),this.backgroundSize=bA(i,ay,u.backgroundSize),this.borderTopColor=bA(i,cy,u.borderTopColor),this.borderRightColor=bA(i,uy,u.borderRightColor),this.borderBottomColor=bA(i,dy,u.borderBottomColor),this.borderLeftColor=bA(i,fy,u.borderLeftColor),this.borderTopLeftRadius=bA(i,gy,u.borderTopLeftRadius),this.borderTopRightRadius=bA(i,hy,u.borderTopRightRadius),this.borderBottomRightRadius=bA(i,By,u.borderBottomRightRadius),this.borderBottomLeftRadius=bA(i,py,u.borderBottomLeftRadius),this.borderTopStyle=bA(i,my,u.borderTopStyle),this.borderRightStyle=bA(i,wy,u.borderRightStyle),this.borderBottomStyle=bA(i,Cy,u.borderBottomStyle),this.borderLeftStyle=bA(i,yy,u.borderLeftStyle),this.borderTopWidth=bA(i,vy,u.borderTopWidth),this.borderRightWidth=bA(i,Qy,u.borderRightWidth),this.borderBottomWidth=bA(i,Ey,u.borderBottomWidth),this.borderLeftWidth=bA(i,Fy,u.borderLeftWidth),this.boxShadow=bA(i,mv,u.boxShadow),this.color=bA(i,Uy,u.color),this.direction=bA(i,by,u.direction),this.display=bA(i,Iy,u.display),this.float=bA(i,_y,u.cssFloat),this.fontFamily=bA(i,av,u.fontFamily),this.fontSize=bA(i,lv,u.fontSize),this.fontStyle=bA(i,dv,u.fontStyle),this.fontVariant=bA(i,uv,u.fontVariant),this.fontWeight=bA(i,cv,u.fontWeight),this.letterSpacing=bA(i,Sy,u.letterSpacing),this.lineBreak=bA(i,xy,u.lineBreak),this.lineHeight=bA(i,Dy,u.lineHeight),this.listStyleImage=bA(i,Ny,u.listStyleImage),this.listStylePosition=bA(i,Ly,u.listStylePosition),this.listStyleType=bA(i,Si,u.listStyleType),this.marginTop=bA(i,Ty,u.marginTop),this.marginRight=bA(i,ky,u.marginRight),this.marginBottom=bA(i,My,u.marginBottom),this.marginLeft=bA(i,Oy,u.marginLeft),this.opacity=bA(i,ov,u.opacity);var p=bA(i,Ky,u.overflow);this.overflowX=p[0],this.overflowY=p[p.length>1?1:0],this.overflowWrap=bA(i,Ry,u.overflowWrap),this.paddingTop=bA(i,Vy,u.paddingTop),this.paddingRight=bA(i,Py,u.paddingRight),this.paddingBottom=bA(i,Gy,u.paddingBottom),this.paddingLeft=bA(i,zy,u.paddingLeft),this.paintOrder=bA(i,wv,u.paintOrder),this.position=bA(i,Xy,u.position),this.textAlign=bA(i,$y,u.textAlign),this.textDecorationColor=bA(i,iv,(l=u.textDecorationColor)!==null&&l!==void 0?l:u.color),this.textDecorationLine=bA(i,sv,(f=u.textDecorationLine)!==null&&f!==void 0?f:u.textDecoration),this.textShadow=bA(i,Wy,u.textShadow),this.textTransform=bA(i,Yy,u.textTransform),this.transform=bA(i,Jy,u.transform),this.transformOrigin=bA(i,ev,u.transformOrigin),this.visibility=bA(i,tv,u.visibility),this.webkitTextStrokeColor=bA(i,Cv,u.webkitTextStrokeColor),this.webkitTextStrokeWidth=bA(i,yv,u.webkitTextStrokeWidth),this.wordBreak=bA(i,nv,u.wordBreak),this.zIndex=bA(i,rv,u.zIndex)}return s.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},s.prototype.isTransparent=function(){return Qt(this.backgroundColor)},s.prototype.isTransformed=function(){return this.transform!==null},s.prototype.isPositioned=function(){return this.position!==0},s.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},s.prototype.isFloating=function(){return this.float!==0},s.prototype.isInlineLevel=function(){return fe(this.display,4)||fe(this.display,33554432)||fe(this.display,268435456)||fe(this.display,536870912)||fe(this.display,67108864)||fe(this.display,134217728)},s})(),Qv=(function(){function s(i,u){this.content=bA(i,fv,u.content),this.quotes=bA(i,pv,u.quotes)}return s})(),wc=(function(){function s(i,u){this.counterIncrement=bA(i,gv,u.counterIncrement),this.counterReset=bA(i,hv,u.counterReset)}return s})(),bA=function(s,i,u){var l=new zl,f=u!==null&&typeof u<"u"?u.toString():i.initialValue;l.write(f);var p=new $l(l.read());switch(i.type){case 2:var C=p.parseComponentValue();return i.parse(s,jA(C)?C.value:i.initialValue);case 0:return i.parse(s,p.parseComponentValue());case 1:return i.parse(s,p.parseComponentValues());case 4:return p.parseComponentValue();case 3:switch(i.format){case"angle":return eo.parse(s,p.parseComponentValue());case"color":return vt.parse(s,p.parseComponentValue());case"image":return _i.parse(s,p.parseComponentValue());case"length":var Q=p.parseComponentValue();return Ct(Q)?Q:he;case"length-percentage":var E=p.parseComponentValue();return ce(E)?E:he;case"time":return pc.parse(s,p.parseComponentValue())}break}},Ev="data-html2canvas-debug",Fv=function(s){switch(s.getAttribute(Ev)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},xi=function(s,i){var u=Fv(s);return u===1||i===u},Ze=(function(){function s(i,u){if(this.context=i,this.textNodes=[],this.elements=[],this.flags=0,xi(u,3))debugger;this.styles=new vv(i,window.getComputedStyle(u,null)),$i(u)&&(this.styles.animationDuration.some(function(l){return l>0})&&(u.style.animationDuration="0s"),this.styles.transform!==null&&(u.style.transform="none")),this.bounds=g(this.context,u),xi(u,4)&&(this.flags|=16)}return s})(),Uv="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOA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IAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAg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AOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Cc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yn=typeof Uint8Array>"u"?[]:new Uint8Array(256),fo=0;fo<Cc.length;fo++)Yn[Cc.charCodeAt(fo)]=fo;for(var bv=function(s){var i=s.length*.75,u=s.length,l,f=0,p,C,Q,E;s[s.length-1]==="="&&(i--,s[s.length-2]==="="&&i--);var N=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(i):new Array(i),K=Array.isArray(N)?N:new Uint8Array(N);for(l=0;l<u;l+=4)p=Yn[s.charCodeAt(l)],C=Yn[s.charCodeAt(l+1)],Q=Yn[s.charCodeAt(l+2)],E=Yn[s.charCodeAt(l+3)],K[f++]=p<<2|C>>4,K[f++]=(C&15)<<4|Q>>2,K[f++]=(Q&3)<<6|E&63;return N},Iv=function(s){for(var i=s.length,u=[],l=0;l<i;l+=2)u.push(s[l+1]<<8|s[l]);return u},Hv=function(s){for(var i=s.length,u=[],l=0;l<i;l+=4)u.push(s[l+3]<<24|s[l+2]<<16|s[l+1]<<8|s[l]);return u},Ot=5,Di=11,Ni=2,_v=Di-Ot,yc=65536>>Ot,Li=(1<<Ot)-1,Sv=yc+(1024>>Ot)+32,xv=65536>>Di,Dv=(1<<_v)-1,vc=function(s,i,u){return s.slice?s.slice(i,u):new Uint16Array(Array.prototype.slice.call(s,i,u))},Nv=function(s,i,u){return s.slice?s.slice(i,u):new Uint32Array(Array.prototype.slice.call(s,i,u))},Lv=function(s,i){var u=bv(s),l=Array.isArray(u)?Hv(u):new Uint32Array(u),f=Array.isArray(u)?Iv(u):new Uint16Array(u),p=24,C=vc(f,p/2,l[4]/2),Q=l[5]===2?vc(f,(p+l[4])/2):Nv(l,Math.ceil((p+l[4])/4));return new Tv(l[0],l[1],l[2],l[3],C,Q)},Tv=(function(){function s(i,u,l,f,p,C){this.initialValue=i,this.errorValue=u,this.highStart=l,this.highValueIndex=f,this.index=p,this.data=C}return s.prototype.get=function(i){var u;if(i>=0){if(i<55296||i>56319&&i<=65535)return u=this.index[i>>Ot],u=(u<<Ni)+(i&Li),this.data[u];if(i<=65535)return u=this.index[yc+(i-55296>>Ot)],u=(u<<Ni)+(i&Li),this.data[u];if(i<this.highStart)return u=Sv-xv+(i>>Di),u=this.index[u],u+=i>>Ot&Dv,u=this.index[u],u=(u<<Ni)+(i&Li),this.data[u];if(i<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),Qc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kv=typeof Uint8Array>"u"?[]:new Uint8Array(256),go=0;go<Qc.length;go++)kv[Qc.charCodeAt(go)]=go;var Mv=1,Ti=2,ki=3,Ec=4,Fc=5,Ov=7,Uc=8,Mi=9,Oi=10,bc=11,Ic=12,Hc=13,_c=14,Ki=15,Kv=function(s){for(var i=[],u=0,l=s.length;u<l;){var f=s.charCodeAt(u++);if(f>=55296&&f<=56319&&u<l){var p=s.charCodeAt(u++);(p&64512)===56320?i.push(((f&1023)<<10)+(p&1023)+65536):(i.push(f),u--)}else i.push(f)}return i},Rv=function(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];if(String.fromCodePoint)return String.fromCodePoint.apply(String,s);var u=s.length;if(!u)return"";for(var l=[],f=-1,p="";++f<u;){var C=s[f];C<=65535?l.push(C):(C-=65536,l.push((C>>10)+55296,C%1024+56320)),(f+1===u||l.length>16384)&&(p+=String.fromCharCode.apply(String,l),l.length=0)}return p},Vv=Lv(Uv),xe="×",Ri="÷",Pv=function(s){return Vv.get(s)},Gv=function(s,i,u){var l=u-2,f=i[l],p=i[u-1],C=i[u];if(p===Ti&&C===ki)return xe;if(p===Ti||p===ki||p===Ec||C===Ti||C===ki||C===Ec)return Ri;if(p===Uc&&[Uc,Mi,bc,Ic].indexOf(C)!==-1||(p===bc||p===Mi)&&(C===Mi||C===Oi)||(p===Ic||p===Oi)&&C===Oi||C===Hc||C===Fc||C===Ov||p===Mv)return xe;if(p===Hc&&C===_c){for(;f===Fc;)f=i[--l];if(f===_c)return xe}if(p===Ki&&C===Ki){for(var Q=0;f===Ki;)Q++,f=i[--l];if(Q%2===0)return xe}return Ri},zv=function(s){var i=Kv(s),u=i.length,l=0,f=0,p=i.map(Pv);return{next:function(){if(l>=u)return{done:!0,value:null};for(var C=xe;l<u&&(C=Gv(i,p,++l))===xe;);if(C!==xe||l===u){var Q=Rv.apply(null,i.slice(f,l));return f=l,{value:Q,done:!1}}return{done:!0,value:null}}}},$v=function(s){for(var i=zv(s),u=[],l;!(l=i.next()).done;)l.value&&u.push(l.value.slice());return u},Xv=function(s){var i=123;if(s.createRange){var u=s.createRange();if(u.getBoundingClientRect){var l=s.createElement("boundtest");l.style.height=i+"px",l.style.display="block",s.body.appendChild(l),u.selectNode(l);var f=u.getBoundingClientRect(),p=Math.round(f.height);if(s.body.removeChild(l),p===i)return!0}}return!1},Wv=function(s){var i=s.createElement("boundtest");i.style.width="50px",i.style.display="block",i.style.fontSize="12px",i.style.letterSpacing="0px",i.style.wordSpacing="0px",s.body.appendChild(i);var u=s.createRange();i.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var l=i.firstChild,f=w(l.data).map(function(E){return m(E)}),p=0,C={},Q=f.every(function(E,N){u.setStart(l,p),u.setEnd(l,p+E.length);var K=u.getBoundingClientRect();p+=E.length;var X=K.x>C.x||K.y>C.y;return C=K,N===0?!0:X});return s.body.removeChild(i),Q},Yv=function(){return typeof new Image().crossOrigin<"u"},Jv=function(){return typeof new XMLHttpRequest().responseType=="string"},Zv=function(s){var i=new Image,u=s.createElement("canvas"),l=u.getContext("2d");if(!l)return!1;i.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{l.drawImage(i,0,0),u.toDataURL()}catch{return!1}return!0},Sc=function(s){return s[0]===0&&s[1]===255&&s[2]===0&&s[3]===255},jv=function(s){var i=s.createElement("canvas"),u=100;i.width=u,i.height=u;var l=i.getContext("2d");if(!l)return Promise.reject(!1);l.fillStyle="rgb(0, 255, 0)",l.fillRect(0,0,u,u);var f=new Image,p=i.toDataURL();f.src=p;var C=Vi(u,u,0,0,f);return l.fillStyle="red",l.fillRect(0,0,u,u),xc(C).then(function(Q){l.drawImage(Q,0,0);var E=l.getImageData(0,0,u,u).data;l.fillStyle="red",l.fillRect(0,0,u,u);var N=s.createElement("div");return N.style.backgroundImage="url("+p+")",N.style.height=u+"px",Sc(E)?xc(Vi(u,u,0,0,N)):Promise.reject(!1)}).then(function(Q){return l.drawImage(Q,0,0),Sc(l.getImageData(0,0,u,u).data)}).catch(function(){return!1})},Vi=function(s,i,u,l,f){var p="http://www.w3.org/2000/svg",C=document.createElementNS(p,"svg"),Q=document.createElementNS(p,"foreignObject");return C.setAttributeNS(null,"width",s.toString()),C.setAttributeNS(null,"height",i.toString()),Q.setAttributeNS(null,"width","100%"),Q.setAttributeNS(null,"height","100%"),Q.setAttributeNS(null,"x",u.toString()),Q.setAttributeNS(null,"y",l.toString()),Q.setAttributeNS(null,"externalResourcesRequired","true"),C.appendChild(Q),Q.appendChild(f),C},xc=function(s){return new Promise(function(i,u){var l=new Image;l.onload=function(){return i(l)},l.onerror=u,l.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(s))})},Be={get SUPPORT_RANGE_BOUNDS(){var s=Xv(document);return Object.defineProperty(Be,"SUPPORT_RANGE_BOUNDS",{value:s}),s},get SUPPORT_WORD_BREAKING(){var s=Be.SUPPORT_RANGE_BOUNDS&&Wv(document);return Object.defineProperty(Be,"SUPPORT_WORD_BREAKING",{value:s}),s},get SUPPORT_SVG_DRAWING(){var s=Zv(document);return Object.defineProperty(Be,"SUPPORT_SVG_DRAWING",{value:s}),s},get SUPPORT_FOREIGNOBJECT_DRAWING(){var s=typeof Array.from=="function"&&typeof window.fetch=="function"?jv(document):Promise.resolve(!1);return Object.defineProperty(Be,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:s}),s},get SUPPORT_CORS_IMAGES(){var s=Yv();return Object.defineProperty(Be,"SUPPORT_CORS_IMAGES",{value:s}),s},get SUPPORT_RESPONSE_TYPE(){var s=Jv();return Object.defineProperty(Be,"SUPPORT_RESPONSE_TYPE",{value:s}),s},get SUPPORT_CORS_XHR(){var s="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Be,"SUPPORT_CORS_XHR",{value:s}),s},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var s=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Be,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:s}),s}},Jn=(function(){function s(i,u){this.text=i,this.bounds=u}return s})(),qv=function(s,i,u,l){var f=tQ(i,u),p=[],C=0;return f.forEach(function(Q){if(u.textDecorationLine.length||Q.trim().length>0)if(Be.SUPPORT_RANGE_BOUNDS){var E=Dc(l,C,Q.length).getClientRects();if(E.length>1){var N=Pi(Q),K=0;N.forEach(function(j){p.push(new Jn(j,h.fromDOMRectList(s,Dc(l,K+C,j.length).getClientRects()))),K+=j.length})}else p.push(new Jn(Q,h.fromDOMRectList(s,E)))}else{var X=l.splitText(Q.length);p.push(new Jn(Q,AQ(s,l))),l=X}else Be.SUPPORT_RANGE_BOUNDS||(l=l.splitText(Q.length));C+=Q.length}),p},AQ=function(s,i){var u=i.ownerDocument;if(u){var l=u.createElement("html2canvaswrapper");l.appendChild(i.cloneNode(!0));var f=i.parentNode;if(f){f.replaceChild(l,i);var p=g(s,l);return l.firstChild&&f.replaceChild(l.firstChild,l),p}}return h.EMPTY},Dc=function(s,i,u){var l=s.ownerDocument;if(!l)throw new Error("Node has no owner document");var f=l.createRange();return f.setStart(s,i),f.setEnd(s,i+u),f},Pi=function(s){if(Be.SUPPORT_NATIVE_TEXT_SEGMENTATION){var i=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(i.segment(s)).map(function(u){return u.segment})}return $v(s)},eQ=function(s,i){if(Be.SUPPORT_NATIVE_TEXT_SEGMENTATION){var u=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(u.segment(s)).map(function(l){return l.segment})}return rQ(s,i)},tQ=function(s,i){return i.letterSpacing!==0?Pi(s):eQ(s,i)},nQ=[32,160,4961,65792,65793,4153,4241],rQ=function(s,i){for(var u=k0(s,{lineBreak:i.lineBreak,wordBreak:i.overflowWrap==="break-word"?"break-word":i.wordBreak}),l=[],f,p=function(){if(f.value){var C=w(f.value.slice()),Q="";C.forEach(function(E){nQ.indexOf(E)===-1?Q+=m(E):(Q.length&&l.push(Q),l.push(m(E)),Q="")}),Q.length&&l.push(Q)}};!(f=u.next()).done;)p();return l},oQ=(function(){function s(i,u,l){this.text=iQ(u.data,l.textTransform),this.textBounds=qv(i,this.text,l,u)}return s})(),iQ=function(s,i){switch(i){case 1:return s.toLowerCase();case 3:return s.replace(sQ,aQ);case 2:return s.toUpperCase();default:return s}},sQ=/(^|\s|:|-|\(|\))([a-z])/g,aQ=function(s,i,u){return s.length>0?i+u.toUpperCase():s},Nc=(function(s){n(i,s);function i(u,l){var f=s.call(this,u,l)||this;return f.src=l.currentSrc||l.src,f.intrinsicWidth=l.naturalWidth,f.intrinsicHeight=l.naturalHeight,f.context.cache.addImage(f.src),f}return i})(Ze),Lc=(function(s){n(i,s);function i(u,l){var f=s.call(this,u,l)||this;return f.canvas=l,f.intrinsicWidth=l.width,f.intrinsicHeight=l.height,f}return i})(Ze),Tc=(function(s){n(i,s);function i(u,l){var f=s.call(this,u,l)||this,p=new XMLSerializer,C=g(u,l);return l.setAttribute("width",C.width+"px"),l.setAttribute("height",C.height+"px"),f.svg="data:image/svg+xml,"+encodeURIComponent(p.serializeToString(l)),f.intrinsicWidth=l.width.baseVal.value,f.intrinsicHeight=l.height.baseVal.value,f.context.cache.addImage(f.svg),f}return i})(Ze),kc=(function(s){n(i,s);function i(u,l){var f=s.call(this,u,l)||this;return f.value=l.value,f}return i})(Ze),Gi=(function(s){n(i,s);function i(u,l){var f=s.call(this,u,l)||this;return f.start=l.start,f.reversed=typeof l.reversed=="boolean"&&l.reversed===!0,f}return i})(Ze),lQ=[{type:15,flags:0,unit:"px",number:3}],cQ=[{type:16,flags:0,number:50}],uQ=function(s){return s.width>s.height?new h(s.left+(s.width-s.height)/2,s.top,s.height,s.height):s.width<s.height?new h(s.left,s.top+(s.height-s.width)/2,s.width,s.width):s},dQ=function(s){var i=s.type===fQ?new Array(s.value.length+1).join("•"):s.value;return i.length===0?s.placeholder||"":i},ho="checkbox",Bo="radio",fQ="password",Mc=707406591,zi=(function(s){n(i,s);function i(u,l){var f=s.call(this,u,l)||this;switch(f.type=l.type.toLowerCase(),f.checked=l.checked,f.value=dQ(l),(f.type===ho||f.type===Bo)&&(f.styles.backgroundColor=3739148031,f.styles.borderTopColor=f.styles.borderRightColor=f.styles.borderBottomColor=f.styles.borderLeftColor=2779096575,f.styles.borderTopWidth=f.styles.borderRightWidth=f.styles.borderBottomWidth=f.styles.borderLeftWidth=1,f.styles.borderTopStyle=f.styles.borderRightStyle=f.styles.borderBottomStyle=f.styles.borderLeftStyle=1,f.styles.backgroundClip=[0],f.styles.backgroundOrigin=[0],f.bounds=uQ(f.bounds)),f.type){case ho:f.styles.borderTopRightRadius=f.styles.borderTopLeftRadius=f.styles.borderBottomRightRadius=f.styles.borderBottomLeftRadius=lQ;break;case Bo:f.styles.borderTopRightRadius=f.styles.borderTopLeftRadius=f.styles.borderBottomRightRadius=f.styles.borderBottomLeftRadius=cQ;break}return f}return i})(Ze),Oc=(function(s){n(i,s);function i(u,l){var f=s.call(this,u,l)||this,p=l.options[l.selectedIndex||0];return f.value=p&&p.text||"",f}return i})(Ze),Kc=(function(s){n(i,s);function i(u,l){var f=s.call(this,u,l)||this;return f.value=l.value,f}return i})(Ze),Rc=(function(s){n(i,s);function i(u,l){var f=s.call(this,u,l)||this;f.src=l.src,f.width=parseInt(l.width,10)||0,f.height=parseInt(l.height,10)||0,f.backgroundColor=f.styles.backgroundColor;try{if(l.contentWindow&&l.contentWindow.document&&l.contentWindow.document.documentElement){f.tree=Pc(u,l.contentWindow.document.documentElement);var p=l.contentWindow.document.documentElement?Xn(u,getComputedStyle(l.contentWindow.document.documentElement).backgroundColor):lt.TRANSPARENT,C=l.contentWindow.document.body?Xn(u,getComputedStyle(l.contentWindow.document.body).backgroundColor):lt.TRANSPARENT;f.backgroundColor=Qt(p)?Qt(C)?f.styles.backgroundColor:C:p}}catch{}return f}return i})(Ze),gQ=["OL","UL","MENU"],po=function(s,i,u,l){for(var f=i.firstChild,p=void 0;f;f=p)if(p=f.nextSibling,Gc(f)&&f.data.trim().length>0)u.textNodes.push(new oQ(s,f,u.styles));else if(an(f))if(Jc(f)&&f.assignedNodes)f.assignedNodes().forEach(function(Q){return po(s,Q,u,l)});else{var C=Vc(s,f);C.styles.isVisible()&&(hQ(f,C,l)?C.flags|=4:BQ(C.styles)&&(C.flags|=2),gQ.indexOf(f.tagName)!==-1&&(C.flags|=8),u.elements.push(C),f.slot,f.shadowRoot?po(s,f.shadowRoot,C,l):!wo(f)&&!zc(f)&&!Co(f)&&po(s,f,C,l))}},Vc=function(s,i){return Wi(i)?new Nc(s,i):$c(i)?new Lc(s,i):zc(i)?new Tc(s,i):pQ(i)?new kc(s,i):mQ(i)?new Gi(s,i):wQ(i)?new zi(s,i):Co(i)?new Oc(s,i):wo(i)?new Kc(s,i):Wc(i)?new Rc(s,i):new Ze(s,i)},Pc=function(s,i){var u=Vc(s,i);return u.flags|=4,po(s,i,u,u),u},hQ=function(s,i,u){return i.styles.isPositionedWithZIndex()||i.styles.opacity<1||i.styles.isTransformed()||Xi(s)&&u.styles.isTransparent()},BQ=function(s){return s.isPositioned()||s.isFloating()},Gc=function(s){return s.nodeType===Node.TEXT_NODE},an=function(s){return s.nodeType===Node.ELEMENT_NODE},$i=function(s){return an(s)&&typeof s.style<"u"&&!mo(s)},mo=function(s){return typeof s.className=="object"},pQ=function(s){return s.tagName==="LI"},mQ=function(s){return s.tagName==="OL"},wQ=function(s){return s.tagName==="INPUT"},CQ=function(s){return s.tagName==="HTML"},zc=function(s){return s.tagName==="svg"},Xi=function(s){return s.tagName==="BODY"},$c=function(s){return s.tagName==="CANVAS"},Xc=function(s){return s.tagName==="VIDEO"},Wi=function(s){return s.tagName==="IMG"},Wc=function(s){return s.tagName==="IFRAME"},Yc=function(s){return s.tagName==="STYLE"},yQ=function(s){return s.tagName==="SCRIPT"},wo=function(s){return s.tagName==="TEXTAREA"},Co=function(s){return s.tagName==="SELECT"},Jc=function(s){return s.tagName==="SLOT"},Zc=function(s){return s.tagName.indexOf("-")>0},vQ=(function(){function s(){this.counters={}}return s.prototype.getCounterValue=function(i){var u=this.counters[i];return u&&u.length?u[u.length-1]:1},s.prototype.getCounterValues=function(i){var u=this.counters[i];return u||[]},s.prototype.pop=function(i){var u=this;i.forEach(function(l){return u.counters[l].pop()})},s.prototype.parse=function(i){var u=this,l=i.counterIncrement,f=i.counterReset,p=!0;l!==null&&l.forEach(function(Q){var E=u.counters[Q.counter];E&&Q.increment!==0&&(p=!1,E.length||E.push(1),E[Math.max(0,E.length-1)]+=Q.increment)});var C=[];return p&&f.forEach(function(Q){var E=u.counters[Q.counter];C.push(Q.counter),E||(E=u.counters[Q.counter]=[]),E.push(Q.reset)}),C},s})(),jc={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},qc={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},QQ={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},EQ={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},ln=function(s,i,u,l,f,p){return s<i||s>u?jn(s,f,p.length>0):l.integers.reduce(function(C,Q,E){for(;s>=Q;)s-=Q,C+=l.values[E];return C},"")+p},Au=function(s,i,u,l){var f="";do u||s--,f=l(s)+f,s/=i;while(s*i>=i);return f},se=function(s,i,u,l,f){var p=u-i+1;return(s<0?"-":"")+(Au(Math.abs(s),p,l,function(C){return m(Math.floor(C%p)+i)})+f)},Kt=function(s,i,u){u===void 0&&(u=". ");var l=i.length;return Au(Math.abs(s),l,!1,function(f){return i[Math.floor(f%l)]})+u},cn=1,Ft=2,Ut=4,Zn=8,ct=function(s,i,u,l,f,p){if(s<-9999||s>9999)return jn(s,4,f.length>0);var C=Math.abs(s),Q=f;if(C===0)return i[0]+Q;for(var E=0;C>0&&E<=4;E++){var N=C%10;N===0&&fe(p,cn)&&Q!==""?Q=i[N]+Q:N>1||N===1&&E===0||N===1&&E===1&&fe(p,Ft)||N===1&&E===1&&fe(p,Ut)&&s>100||N===1&&E>1&&fe(p,Zn)?Q=i[N]+(E>0?u[E-1]:"")+Q:N===1&&E>0&&(Q=u[E-1]+Q),C=Math.floor(C/10)}return(s<0?l:"")+Q},eu="十百千萬",tu="拾佰仟萬",nu="マイナス",Yi="마이너스",jn=function(s,i,u){var l=u?". ":"",f=u?"、":"",p=u?", ":"",C=u?" ":"";switch(i){case 0:return"•"+C;case 1:return"◦"+C;case 2:return"◾"+C;case 5:var Q=se(s,48,57,!0,l);return Q.length<4?"0"+Q:Q;case 4:return Kt(s,"〇一二三四五六七八九",f);case 6:return ln(s,1,3999,jc,3,l).toLowerCase();case 7:return ln(s,1,3999,jc,3,l);case 8:return se(s,945,969,!1,l);case 9:return se(s,97,122,!1,l);case 10:return se(s,65,90,!1,l);case 11:return se(s,1632,1641,!0,l);case 12:case 49:return ln(s,1,9999,qc,3,l);case 35:return ln(s,1,9999,qc,3,l).toLowerCase();case 13:return se(s,2534,2543,!0,l);case 14:case 30:return se(s,6112,6121,!0,l);case 15:return Kt(s,"子丑寅卯辰巳午未申酉戌亥",f);case 16:return Kt(s,"甲乙丙丁戊己庚辛壬癸",f);case 17:case 48:return ct(s,"零一二三四五六七八九",eu,"負",f,Ft|Ut|Zn);case 47:return ct(s,"零壹貳參肆伍陸柒捌玖",tu,"負",f,cn|Ft|Ut|Zn);case 42:return ct(s,"零一二三四五六七八九",eu,"负",f,Ft|Ut|Zn);case 41:return ct(s,"零壹贰叁肆伍陆柒捌玖",tu,"负",f,cn|Ft|Ut|Zn);case 26:return ct(s,"〇一二三四五六七八九","十百千万",nu,f,0);case 25:return ct(s,"零壱弐参四伍六七八九","拾百千万",nu,f,cn|Ft|Ut);case 31:return ct(s,"영일이삼사오육칠팔구","십백천만",Yi,p,cn|Ft|Ut);case 33:return ct(s,"零一二三四五六七八九","十百千萬",Yi,p,0);case 32:return ct(s,"零壹貳參四五六七八九","拾百千",Yi,p,cn|Ft|Ut);case 18:return se(s,2406,2415,!0,l);case 20:return ln(s,1,19999,EQ,3,l);case 21:return se(s,2790,2799,!0,l);case 22:return se(s,2662,2671,!0,l);case 22:return ln(s,1,10999,QQ,3,l);case 23:return Kt(s,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Kt(s,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return se(s,3302,3311,!0,l);case 28:return Kt(s,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",f);case 29:return Kt(s,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",f);case 34:return se(s,3792,3801,!0,l);case 37:return se(s,6160,6169,!0,l);case 38:return se(s,4160,4169,!0,l);case 39:return se(s,2918,2927,!0,l);case 40:return se(s,1776,1785,!0,l);case 43:return se(s,3046,3055,!0,l);case 44:return se(s,3174,3183,!0,l);case 45:return se(s,3664,3673,!0,l);case 46:return se(s,3872,3881,!0,l);default:return se(s,48,57,!0,l)}},ru="data-html2canvas-ignore",ou=(function(){function s(i,u,l){if(this.context=i,this.options=l,this.scrolledElements=[],this.referenceElement=u,this.counters=new vQ,this.quoteDepth=0,!u.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(u.ownerDocument.documentElement,!1)}return s.prototype.toIFrame=function(i,u){var l=this,f=FQ(i,u);if(!f.contentWindow)return Promise.reject("Unable to find iframe window");var p=i.defaultView.pageXOffset,C=i.defaultView.pageYOffset,Q=f.contentWindow,E=Q.document,N=IQ(f).then(function(){return a(l,void 0,void 0,function(){var K,X;return c(this,function(j){switch(j.label){case 0:return this.scrolledElements.forEach(xQ),Q&&(Q.scrollTo(u.left,u.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(Q.scrollY!==u.top||Q.scrollX!==u.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(Q.scrollX-u.left,Q.scrollY-u.top,0,0))),K=this.options.onclone,X=this.clonedReferenceElement,typeof X>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:E.fonts&&E.fonts.ready?[4,E.fonts.ready]:[3,2];case 1:j.sent(),j.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,bQ(E)]:[3,4];case 3:j.sent(),j.label=4;case 4:return typeof K=="function"?[2,Promise.resolve().then(function(){return K(E,X)}).then(function(){return f})]:[2,f]}})})});return E.open(),E.write(_Q(document.doctype)+"<html></html>"),SQ(this.referenceElement.ownerDocument,p,C),E.replaceChild(E.adoptNode(this.documentElement),E.documentElement),E.close(),N},s.prototype.createElementClone=function(i){if(xi(i,2))debugger;if($c(i))return this.createCanvasClone(i);if(Xc(i))return this.createVideoClone(i);if(Yc(i))return this.createStyleClone(i);var u=i.cloneNode(!1);return Wi(u)&&(Wi(i)&&i.currentSrc&&i.currentSrc!==i.src&&(u.src=i.currentSrc,u.srcset=""),u.loading==="lazy"&&(u.loading="eager")),Zc(u)?this.createCustomElementClone(u):u},s.prototype.createCustomElementClone=function(i){var u=document.createElement("html2canvascustomelement");return Ji(i.style,u),u},s.prototype.createStyleClone=function(i){try{var u=i.sheet;if(u&&u.cssRules){var l=[].slice.call(u.cssRules,0).reduce(function(p,C){return C&&typeof C.cssText=="string"?p+C.cssText:p},""),f=i.cloneNode(!1);return f.textContent=l,f}}catch(p){if(this.context.logger.error("Unable to access cssRules property",p),p.name!=="SecurityError")throw p}return i.cloneNode(!1)},s.prototype.createCanvasClone=function(i){var u;if(this.options.inlineImages&&i.ownerDocument){var l=i.ownerDocument.createElement("img");try{return l.src=i.toDataURL(),l}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",i)}}var f=i.cloneNode(!1);try{f.width=i.width,f.height=i.height;var p=i.getContext("2d"),C=f.getContext("2d");if(C)if(!this.options.allowTaint&&p)C.putImageData(p.getImageData(0,0,i.width,i.height),0,0);else{var Q=(u=i.getContext("webgl2"))!==null&&u!==void 0?u:i.getContext("webgl");if(Q){var E=Q.getContextAttributes();E?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",i)}C.drawImage(i,0,0)}return f}catch{this.context.logger.info("Unable to clone canvas as it is tainted",i)}return f},s.prototype.createVideoClone=function(i){var u=i.ownerDocument.createElement("canvas");u.width=i.offsetWidth,u.height=i.offsetHeight;var l=u.getContext("2d");try{return l&&(l.drawImage(i,0,0,u.width,u.height),this.options.allowTaint||l.getImageData(0,0,u.width,u.height)),u}catch{this.context.logger.info("Unable to clone video as it is tainted",i)}var f=i.ownerDocument.createElement("canvas");return f.width=i.offsetWidth,f.height=i.offsetHeight,f},s.prototype.appendChildNode=function(i,u,l){(!an(u)||!yQ(u)&&!u.hasAttribute(ru)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(u)))&&(!this.options.copyStyles||!an(u)||!Yc(u))&&i.appendChild(this.cloneNode(u,l))},s.prototype.cloneChildNodes=function(i,u,l){for(var f=this,p=i.shadowRoot?i.shadowRoot.firstChild:i.firstChild;p;p=p.nextSibling)if(an(p)&&Jc(p)&&typeof p.assignedNodes=="function"){var C=p.assignedNodes();C.length&&C.forEach(function(Q){return f.appendChildNode(u,Q,l)})}else this.appendChildNode(u,p,l)},s.prototype.cloneNode=function(i,u){if(Gc(i))return document.createTextNode(i.data);if(!i.ownerDocument)return i.cloneNode(!1);var l=i.ownerDocument.defaultView;if(l&&an(i)&&($i(i)||mo(i))){var f=this.createElementClone(i);f.style.transitionProperty="none";var p=l.getComputedStyle(i),C=l.getComputedStyle(i,":before"),Q=l.getComputedStyle(i,":after");this.referenceElement===i&&$i(f)&&(this.clonedReferenceElement=f),Xi(f)&&LQ(f);var E=this.counters.parse(new wc(this.context,p)),N=this.resolvePseudoContent(i,f,C,qn.BEFORE);Zc(i)&&(u=!0),Xc(i)||this.cloneChildNodes(i,f,u),N&&f.insertBefore(N,f.firstChild);var K=this.resolvePseudoContent(i,f,Q,qn.AFTER);return K&&f.appendChild(K),this.counters.pop(E),(p&&(this.options.copyStyles||mo(i))&&!Wc(i)||u)&&Ji(p,f),(i.scrollTop!==0||i.scrollLeft!==0)&&this.scrolledElements.push([f,i.scrollLeft,i.scrollTop]),(wo(i)||Co(i))&&(wo(f)||Co(f))&&(f.value=i.value),f}return i.cloneNode(!1)},s.prototype.resolvePseudoContent=function(i,u,l,f){var p=this;if(l){var C=l.content,Q=u.ownerDocument;if(!(!Q||!C||C==="none"||C==="-moz-alt-content"||l.display==="none")){this.counters.parse(new wc(this.context,l));var E=new Qv(this.context,l),N=Q.createElement("html2canvaspseudoelement");Ji(l,N),E.content.forEach(function(X){if(X.type===0)N.appendChild(Q.createTextNode(X.value));else if(X.type===22){var j=Q.createElement("img");j.src=X.value,j.style.opacity="1",N.appendChild(j)}else if(X.type===18){if(X.name==="attr"){var CA=X.values.filter(jA);CA.length&&N.appendChild(Q.createTextNode(i.getAttribute(CA[0].value)||""))}else if(X.name==="counter"){var BA=X.values.filter(on),wA=BA[0],RA=BA[1];if(wA&&jA(wA)){var DA=p.counters.getCounterValue(wA.value),_A=RA&&jA(RA)?Si.parse(p.context,RA.value):3;N.appendChild(Q.createTextNode(jn(DA,_A,!1)))}}else if(X.name==="counters"){var te=X.values.filter(on),wA=te[0],XA=te[1],RA=te[2];if(wA&&jA(wA)){var kA=p.counters.getCounterValues(wA.value),FA=RA&&jA(RA)?Si.parse(p.context,RA.value):3,zA=XA&&XA.type===0?XA.value:"",$A=kA.map(function(Ee){return jn(Ee,FA,!1)}).join(zA);N.appendChild(Q.createTextNode($A))}}}else if(X.type===20)switch(X.value){case"open-quote":N.appendChild(Q.createTextNode(mc(E.quotes,p.quoteDepth++,!0)));break;case"close-quote":N.appendChild(Q.createTextNode(mc(E.quotes,--p.quoteDepth,!1)));break;default:N.appendChild(Q.createTextNode(X.value))}}),N.className=Zi+" "+ji;var K=f===qn.BEFORE?" "+Zi:" "+ji;return mo(u)?u.className.baseValue+=K:u.className+=K,N}}},s.destroy=function(i){return i.parentNode?(i.parentNode.removeChild(i),!0):!1},s})(),qn;(function(s){s[s.BEFORE=0]="BEFORE",s[s.AFTER=1]="AFTER"})(qn||(qn={}));var FQ=function(s,i){var u=s.createElement("iframe");return u.className="html2canvas-container",u.style.visibility="hidden",u.style.position="fixed",u.style.left="-10000px",u.style.top="0px",u.style.border="0",u.width=i.width.toString(),u.height=i.height.toString(),u.scrolling="no",u.setAttribute(ru,"true"),s.body.appendChild(u),u},UQ=function(s){return new Promise(function(i){if(s.complete){i();return}if(!s.src){i();return}s.onload=i,s.onerror=i})},bQ=function(s){return Promise.all([].slice.call(s.images,0).map(UQ))},IQ=function(s){return new Promise(function(i,u){var l=s.contentWindow;if(!l)return u("No window assigned for iframe");var f=l.document;l.onload=s.onload=function(){l.onload=s.onload=null;var p=setInterval(function(){f.body.childNodes.length>0&&f.readyState==="complete"&&(clearInterval(p),i(s))},50)}})},HQ=["all","d","content"],Ji=function(s,i){for(var u=s.length-1;u>=0;u--){var l=s.item(u);HQ.indexOf(l)===-1&&i.style.setProperty(l,s.getPropertyValue(l))}return i},_Q=function(s){var i="";return s&&(i+="<!DOCTYPE ",s.name&&(i+=s.name),s.internalSubset&&(i+=s.internalSubset),s.publicId&&(i+='"'+s.publicId+'"'),s.systemId&&(i+='"'+s.systemId+'"'),i+=">"),i},SQ=function(s,i,u){s&&s.defaultView&&(i!==s.defaultView.pageXOffset||u!==s.defaultView.pageYOffset)&&s.defaultView.scrollTo(i,u)},xQ=function(s){var i=s[0],u=s[1],l=s[2];i.scrollLeft=u,i.scrollTop=l},DQ=":before",NQ=":after",Zi="___html2canvas___pseudoelement_before",ji="___html2canvas___pseudoelement_after",iu=`{
|
|
31
|
+
"Microsoft YaHei", "WenQuanYi Zen Hei", sans-serif`,B.lineWidth=1,B.textBaseline="middle")}},d=g=>{const B={scale:e.scale,width:e.width,height:e.height,palette:e.palette,ratio:g};t.canvasContext&&Mw(t.canvasContext,e.start,e.selectStart,e.selectLength,B,!e.vertical)};return(0,qA.watch)(()=>e.start,()=>d(n)),(0,qA.watch)([()=>e.width,()=>e.height],()=>{u(n),d(n)}),{handle:(g,B)=>{const m=((v,Q,H)=>Math.round(Q+v/H))(e.vertical?g.offsetY:g.offsetX,e.start,e.scale);switch(B){case"click":A("onAddLine",m);break;case"enter":A("update:valueNum",m),A("update:showIndicator",!0);break;default:A("update:valueNum",m);break}},canvas:o}}});function Ow(e,A,t,n,o,a){return(0,r.openBlock)(),(0,r.createElementBlock)("canvas",{ref:"canvas",class:"ruler",onClick:A[0]||(A[0]=u=>e.handle(u,"click")),onMouseenter:A[1]||(A[1]=u=>e.handle(u,"enter")),onMousemove:A[2]||(A[2]=u=>e.handle(u,"move")),onMouseleave:A[3]||(A[3]=u=>e.$emit("update:showIndicator",!1))},null,544)}var Rw=(0,qA.defineComponent)({name:"RulerWrapper",components:{CanvasRuler:Pr(Kw,[["render",Ow]]),RulerLine:Tw},props:{scale:Number,ratio:Number,thick:Number,palette:Object,vertical:{type:Boolean,default:!0},width:{type:Number,default:200},height:{type:Number,default:200},start:{type:Number,default:0},lines:{type:Array,default:()=>[]},selectStart:{type:Number},selectLength:{type:Number},isShowReferLine:{type:Boolean}},setup(e){const A=(0,qA.ref)(!1),t=(0,qA.ref)(0),n=(0,qA.computed)(()=>e.vertical?"v-container":"h-container"),o=(0,qA.computed)(()=>{const g={width:`calc(100% - ${e.thick}px)`,height:`${e.thick+1}px`,left:`${e.thick}px`},B={width:`${e.thick&&e.thick+1}px`,height:`calc(100% - ${e.thick}px)`,top:`${e.thick}px`};return e.vertical?B:g}),a=(0,qA.computed)(()=>{var g;const B=(t.value-e.start)*e.scale;let w="top",m="borderLeft";return w=e.vertical?"top":"left",m=e.vertical?"borderBottom":"borderLeft",{[w]:B+"px",[m]:`1px solid ${(g=e.palette)==null?void 0:g.lineColor}`}}),u=g=>{e.lines.push(g)},d=(g,B)=>{const w=g-e.start,m=(e.vertical?e.height:e.width)/e.scale;w<0||w>m?h(B):e.lines[B]=g},h=g=>{e.lines.splice(g,1)};return{showIndicator:A,valueNum:t,rwClassName:n,rwStyle:o,indicatorStyle:a,handleNewLine:u,handleLineRelease:d,handleLineRemove:h}}}),Vw={class:"lines"},Pw={class:"value"};function Gw(e,A,t,n,o,a){const u=(0,r.resolveComponent)("CanvasRuler"),d=(0,r.resolveComponent)("RulerLine");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(e.rwClassName),style:(0,r.normalizeStyle)(e.rwStyle)},[(0,r.createVNode)(u,{vertical:e.vertical,scale:e.scale,width:e.width,height:e.height,start:e.start,ratio:e.ratio,"select-start":e.selectStart,"select-length":e.selectLength,palette:e.palette,valueNum:e.valueNum,"onUpdate:valueNum":A[0]||(A[0]=h=>e.valueNum=h),showIndicator:e.showIndicator,"onUpdate:showIndicator":A[1]||(A[1]=h=>e.showIndicator=h),onOnAddLine:e.handleNewLine},null,8,["vertical","scale","width","height","start","ratio","select-start","select-length","palette","valueNum","showIndicator","onOnAddLine"]),(0,r.withDirectives)((0,r.createElementVNode)("div",Vw,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.lines,(h,g)=>((0,r.openBlock)(),(0,r.createBlock)(d,{key:h+g,index:g,value:h>>0,scale:e.scale,start:e.start,thick:e.thick,palette:e.palette,vertical:e.vertical,"is-show-refer-line":e.isShowReferLine,onOnRemove:e.handleLineRemove,onOnRelease:e.handleLineRelease},null,8,["index","value","scale","start","thick","palette","vertical","is-show-refer-line","onOnRemove","onOnRelease"]))),128))],512),[[r.vShow,e.isShowReferLine]]),(0,r.withDirectives)((0,r.createElementVNode)("div",{class:"indicator",style:(0,r.normalizeStyle)(e.indicatorStyle)},[(0,r.createElementVNode)("div",Pw,(0,r.toDisplayString)(e.valueNum),1)],4),[[r.vShow,e.showIndicator]])],6)}var zw=Pr(Rw,[["render",Gw],["__scopeId","data-v-5cc064d4"]]),Xw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAAXNSR0IArs4c6QAAAopJREFUOE/FlE9IVEEcx7+/N9ouds1Mu0QUSFZYdIgoUqQoKPBQHsKozpXE7jbTO/U8xLJvn6usBHWQ6hBFXupSkQeVbh0KJEPp0sH+eLGTsKs77xcj78m0ax0E8cHjzZv5zef3/c33xxA24KENYGJzoEEQbNNaN4Zh2OQ4znwYhr9c1/39vwrXVDo0NNS0tLR0GYB5D64BmAMwzMyvlFKz1es10Hw+f4mZ7wHYBeA9gNdENFepVOaEEM3M3OI4Thczn41gt6WUgQ3+C+r7/h0AWQD3mXnYqPA8L9nQ0HCemduIaFpKOWoAhUJhT6VSuQXgOjP3K6W8GLwKzeVyp4jonR0QBEErM48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OA7cAm4Dr4D5TvVxHB9rKo2iaEFVp621Ln96FEUngaOqGmSxabVqsh3a2h+x1h5qQjNrae/yE4+iaCwDJkky73neTuBZe129Xk+H+BS4l7ZqLVIZ2BhzuFKpvMsDVXXWGPMxFdAedOfcKeCRqj7MYrUhpz09PfXl5eXrectFWXXODQHpOq2qd/95o/JXr6ura3J1dXU6SZIfwKKIHAD2tVYMPBGRx77vN10UXtO85fTkmZmZHUtLSzUR2QXsBhaAL6r6DXhbrVYXi1yss59GqOgub/bN3Z7v6X/tb9Zmp/q/kN8s+lJb8oEAAAAASUVORK5CYII=",Ww=(0,qA.defineComponent)({name:"SketchRule",components:{RulerWrapper:zw},props:{eyeIcon:{type:String},closeEyeIcon:{type:String},scale:{type:Number,default:1},ratio:{type:Number},thick:{type:Number,default:16},palette:Object,startX:{type:Number},startY:{type:Number,default:0},width:{type:Number,default:200},height:{type:Number,default:200},shadow:{type:Object,default:()=>({x:0,y:0,width:0,height:0})},lines:{type:Object,default:()=>({h:[],v:[]})},isShowReferLine:{type:Boolean,default:!0}},emits:["onCornerClick","handleLine"],setup(e,{emit:A}){let t=(0,qA.ref)(!0);t.value=e.isShowReferLine;const n=(0,qA.computed)(()=>{function u(d,h){return Object.keys(d).forEach(g=>{g&&d.hasOwnProperty(g)&&(typeof h.key=="object"?d[g]=u(d[g],h[g]):h.hasOwnProperty(g)&&(d[g]=h[g]))}),d}return u({bgColor:"rgba(225,225,225, 0)",longfgColor:"#BABBBC",shortfgColor:"#C8CDD0",fontColor:"#7D8694",shadowColor:"#E8E8E8",lineColor:"#EB5648",borderColor:"#DADADC",cornerActiveColor:"rgb(235, 86, 72, 0.6)",menu:{bgColor:"#fff",dividerColor:"#DBDBDB",listItem:{textColor:"#415058",hoverTextColor:"#298DF8",disabledTextColor:"rgba(65, 80, 88, 0.4)",bgColor:"#fff",hoverBgColor:"#F2F2F2"}}},e.palette||{})}),o=(0,qA.computed)(()=>({backgroundImage:t.value?`url(${e.eyeIcon||Xw})`:`url(${e.closeEyeIcon||$w})`,width:e.thick+"px",height:e.thick+"px",borderRight:`1px solid ${n.value.borderColor}`,borderBottom:`1px solid ${n.value.borderColor}`})),a=u=>{t.value=!t.value,A("handleCornerClick",t.value)};return(0,qA.watch)([()=>e.isShowReferLine],()=>{t.value=e.isShowReferLine}),{showReferLine:t,paletteCpu:n,cornerStyle:o,onCornerClick:a}}}),Yw={id:"mb-ruler",class:"style-ruler mb-ruler"};function Jw(e,A,t,n,o,a){const u=(0,r.resolveComponent)("RulerWrapper");return(0,r.openBlock)(),(0,r.createElementBlock)("div",Yw,[(0,r.createVNode)(u,{vertical:!1,width:e.width,height:e.thick,"is-show-refer-line":e.showReferLine,thick:e.thick,ratio:e.ratio,start:e.startX,lines:e.lines.h,"select-start":e.shadow.x,"select-length":e.shadow.width,scale:e.scale,palette:e.paletteCpu},null,8,["width","height","is-show-refer-line","thick","ratio","start","lines","select-start","select-length","scale","palette"]),(0,r.createVNode)(u,{vertical:!0,width:e.thick,height:e.height,"is-show-refer-line":e.showReferLine,thick:e.thick,ratio:e.ratio,start:e.startY,lines:e.lines.v,"select-start":e.shadow.y,"select-length":e.shadow.height,scale:e.scale,palette:e.paletteCpu},null,8,["width","height","is-show-refer-line","thick","ratio","start","lines","select-start","select-length","scale","palette"]),(0,r.createElementVNode)("a",{class:"corner",style:(0,r.normalizeStyle)(e.cornerStyle),onClick:A[0]||(A[0]=(...d)=>e.onCornerClick&&e.onCornerClick(...d))},null,4)])}var Zw=Pr(Ww,[["render",Jw]]),jw=Eu(((e,A)=>{(function(t,n){typeof e=="object"&&typeof A<"u"?A.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self,t.html2canvas=n())})(e,(function(){"use strict";var t=function(s,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(c[f]=l[f])},t(s,i)};function n(s,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(s,i);function c(){this.constructor=s}s.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}var o=function(){return o=Object.assign||function(i){for(var c,l=1,f=arguments.length;l<f;l++){c=arguments[l];for(var p in c)Object.prototype.hasOwnProperty.call(c,p)&&(i[p]=c[p])}return i},o.apply(this,arguments)};function a(s,i,c,l){function f(p){return p instanceof c?p:new c(function(C){C(p)})}return new(c||(c=Promise))(function(p,C){function y(O){try{x(l.next(O))}catch(G){C(G)}}function E(O){try{x(l.throw(O))}catch(G){C(G)}}function x(O){O.done?p(O.value):f(O.value).then(y,E)}x((l=l.apply(s,i||[])).next())})}function u(s,i){var c={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},l,f,p,C;return C={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function y(x){return function(O){return E([x,O])}}function E(x){if(l)throw new TypeError("Generator is already executing.");for(;c;)try{if(l=1,f&&(p=x[0]&2?f.return:x[0]?f.throw||((p=f.return)&&p.call(f),0):f.next)&&!(p=p.call(f,x[1])).done)return p;switch(f=0,p&&(x=[x[0]&2,p.value]),x[0]){case 0:case 1:p=x;break;case 4:return c.label++,{value:x[1],done:!1};case 5:c.label++,f=x[1],x=[0];continue;case 7:x=c.ops.pop(),c.trys.pop();continue;default:if(p=c.trys,!(p=p.length>0&&p[p.length-1])&&(x[0]===6||x[0]===2)){c=0;continue}if(x[0]===3&&(!p||x[1]>p[0]&&x[1]<p[3])){c.label=x[1];break}if(x[0]===6&&c.label<p[1]){c.label=p[1],p=x;break}if(p&&c.label<p[2]){c.label=p[2],c.ops.push(x);break}p[2]&&c.ops.pop(),c.trys.pop();continue}x=i.call(s,c)}catch(O){x=[6,O],f=0}finally{l=p=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}}function d(s,i,c){if(c||arguments.length===2)for(var l=0,f=i.length,p;l<f;l++)(p||!(l in i))&&(p||(p=Array.prototype.slice.call(i,0,l)),p[l]=i[l]);return s.concat(p||i)}for(var h=(function(){function s(i,c,l,f){this.left=i,this.top=c,this.width=l,this.height=f}return s.prototype.add=function(i,c,l,f){return new s(this.left+i,this.top+c,this.width+l,this.height+f)},s.fromClientRect=function(i,c){return new s(c.left+i.windowBounds.left,c.top+i.windowBounds.top,c.width,c.height)},s.fromDOMRectList=function(i,c){var l=Array.from(c).find(function(f){return f.width!==0});return l?new s(l.left+i.windowBounds.left,l.top+i.windowBounds.top,l.width,l.height):s.EMPTY},s.EMPTY=new s(0,0,0,0),s})(),g=function(s,i){return h.fromClientRect(s,i.getBoundingClientRect())},B=function(s){var i=s.body,c=s.documentElement;if(!i||!c)throw new Error("Unable to get document size");return new h(0,0,Math.max(Math.max(i.scrollWidth,c.scrollWidth),Math.max(i.offsetWidth,c.offsetWidth),Math.max(i.clientWidth,c.clientWidth)),Math.max(Math.max(i.scrollHeight,c.scrollHeight),Math.max(i.offsetHeight,c.offsetHeight),Math.max(i.clientHeight,c.clientHeight)))},w=function(s){for(var i=[],c=0,l=s.length;c<l;){var f=s.charCodeAt(c++);if(f>=55296&&f<=56319&&c<l){var p=s.charCodeAt(c++);(p&64512)===56320?i.push(((f&1023)<<10)+(p&1023)+65536):(i.push(f),c--)}else i.push(f)}return i},m=function(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];if(String.fromCodePoint)return String.fromCodePoint.apply(String,s);var c=s.length;if(!c)return"";for(var l=[],f=-1,p="";++f<c;){var C=s[f];C<=65535?l.push(C):(C-=65536,l.push((C>>10)+55296,C%1024+56320)),(f+1===c||l.length>16384)&&(p+=String.fromCharCode.apply(String,l),l.length=0)}return p},v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Q=typeof Uint8Array>"u"?[]:new Uint8Array(256),H=0;H<v.length;H++)Q[v.charCodeAt(H)]=H;for(var N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T=typeof Uint8Array>"u"?[]:new Uint8Array(256),M=0;M<N.length;M++)T[N.charCodeAt(M)]=M;for(var U=function(s){var i=s.length*.75,c=s.length,l,f=0,p,C,y,E;s[s.length-1]==="="&&(i--,s[s.length-2]==="="&&i--);var x=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(i):new Array(i),O=Array.isArray(x)?x:new Uint8Array(x);for(l=0;l<c;l+=4)p=T[s.charCodeAt(l)],C=T[s.charCodeAt(l+1)],y=T[s.charCodeAt(l+2)],E=T[s.charCodeAt(l+3)],O[f++]=p<<2|C>>4,O[f++]=(C&15)<<4|y>>2,O[f++]=(y&3)<<6|E&63;return x},K=function(s){for(var i=s.length,c=[],l=0;l<i;l+=2)c.push(s[l+1]<<8|s[l]);return c},eA=function(s){for(var i=s.length,c=[],l=0;l<i;l+=4)c.push(s[l+3]<<24|s[l+2]<<16|s[l+1]<<8|s[l]);return c},W=5,iA=11,lA=2,nA=iA-W,tA=65536>>W,q=(1<<W)-1,k=tA+(1024>>W)+32,sA=65536>>iA,I=(1<<nA)-1,Y=function(s,i,c){return s.slice?s.slice(i,c):new Uint16Array(Array.prototype.slice.call(s,i,c))},F=function(s,i,c){return s.slice?s.slice(i,c):new Uint32Array(Array.prototype.slice.call(s,i,c))},S=function(s,i){var c=U(s),l=Array.isArray(c)?eA(c):new Uint32Array(c),f=Array.isArray(c)?K(c):new Uint16Array(c),p=24,C=Y(f,p/2,l[4]/2),y=l[5]===2?Y(f,(p+l[4])/2):F(l,Math.ceil((p+l[4])/4));return new P(l[0],l[1],l[2],l[3],C,y)},P=(function(){function s(i,c,l,f,p,C){this.initialValue=i,this.errorValue=c,this.highStart=l,this.highValueIndex=f,this.index=p,this.data=C}return s.prototype.get=function(i){var c;if(i>=0){if(i<55296||i>56319&&i<=65535)return c=this.index[i>>W],c=(c<<lA)+(i&q),this.data[c];if(i<=65535)return c=this.index[tA+(i-55296>>W)],c=(c<<lA)+(i&q),this.data[c];if(i<this.highStart)return c=k-sA+(i>>iA),c=this.index[c],c+=i>>W&I,c=this.index[c],c=(c<<lA)+(i&q),this.data[c];if(i<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z=typeof Uint8Array>"u"?[]:new Uint8Array(256),J=0;J<R.length;J++)z[R.charCodeAt(J)]=J;var rA="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB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AAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABw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CVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAA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B4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAX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ArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFc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QAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQA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UABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQ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EsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgA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AFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",dA=50,bA=1,AA=2,cA=3,V=4,$=5,uA=7,BA=8,HA=9,aA=10,wA=11,_=12,b=13,D=14,X=15,L=16,pA=17,fA=18,FA=19,CA=20,LA=21,KA=22,XA=23,ue=24,re=25,nt=26,pt=27,ze=28,Hl=29,oA=30,hA=31,xA=32,kA=33,rt=34,Mn=35,Tt=36,kt=37,Kn=38,tn=39,VA=40,Me=41,ot=42,b0=43,H0=[9001,65288],Il="!",RA="×",Gr="÷",Ci=S(rA),it=[oA,Tt],vi=[bA,AA,cA,$],_l=[aA,BA],Sl=[pt,nt],I0=vi.concat(_l),xl=[Kn,tn,VA,rt,Mn],_0=[X,b],S0=function(s,i){i===void 0&&(i="strict");var c=[],l=[],f=[];return s.forEach(function(p,C){var y=Ci.get(p);if(y>dA?(f.push(!0),y-=dA):f.push(!1),["normal","auto","loose"].indexOf(i)!==-1&&[8208,8211,12316,12448].indexOf(p)!==-1)return l.push(C),c.push(L);if(y===V||y===wA){if(C===0)return l.push(C),c.push(oA);var E=c[C-1];return I0.indexOf(E)===-1?(l.push(l[C-1]),c.push(E)):(l.push(C),c.push(oA))}if(l.push(C),y===hA)return c.push(i==="strict"?LA:kt);if(y===ot||y===Hl)return c.push(oA);if(y===b0)return p>=131072&&p<=196605||p>=196608&&p<=262141?c.push(kt):c.push(oA);c.push(y)}),[l,c,f]},yi=function(s,i,c,l){var f=l[c];if(Array.isArray(s)?s.indexOf(f)!==-1:s===f)for(var p=c;p<=l.length;){p++;var C=l[p];if(C===i)return!0;if(C!==aA)break}if(f===aA)for(var p=c;p>0;){p--;var y=l[p];if(Array.isArray(s)?s.indexOf(y)!==-1:s===y)for(var E=c;E<=l.length;){E++;var C=l[E];if(C===i)return!0;if(C!==aA)break}if(y!==aA)break}return!1},Dl=function(s,i){for(var c=s;c>=0;){var l=i[c];if(l===aA)c--;else return l}return 0},x0=function(s,i,c,l,f){if(c[l]===0)return RA;var p=l-1;if(Array.isArray(f)&&f[p]===!0)return RA;var C=p-1,y=p+1,E=i[p],x=C>=0?i[C]:0,O=i[y];if(E===AA&&O===cA)return RA;if(vi.indexOf(E)!==-1)return Il;if(vi.indexOf(O)!==-1||_l.indexOf(O)!==-1)return RA;if(Dl(p,i)===BA)return Gr;if(Ci.get(s[p])===wA||(E===xA||E===kA)&&Ci.get(s[y])===wA||E===uA||O===uA||E===HA||[aA,b,X].indexOf(E)===-1&&O===HA||[pA,fA,FA,ue,ze].indexOf(O)!==-1||Dl(p,i)===KA||yi(XA,KA,p,i)||yi([pA,fA],LA,p,i)||yi(_,_,p,i))return RA;if(E===aA)return Gr;if(E===XA||O===XA)return RA;if(O===L||E===L)return Gr;if([b,X,LA].indexOf(O)!==-1||E===D||x===Tt&&_0.indexOf(E)!==-1||E===ze&&O===Tt||O===CA||it.indexOf(O)!==-1&&E===re||it.indexOf(E)!==-1&&O===re||E===pt&&[kt,xA,kA].indexOf(O)!==-1||[kt,xA,kA].indexOf(E)!==-1&&O===nt||it.indexOf(E)!==-1&&Sl.indexOf(O)!==-1||Sl.indexOf(E)!==-1&&it.indexOf(O)!==-1||[pt,nt].indexOf(E)!==-1&&(O===re||[KA,X].indexOf(O)!==-1&&i[y+1]===re)||[KA,X].indexOf(E)!==-1&&O===re||E===re&&[re,ze,ue].indexOf(O)!==-1)return RA;if([re,ze,ue,pA,fA].indexOf(O)!==-1)for(var G=p;G>=0;){var Z=i[G];if(Z===re)return RA;if([ze,ue].indexOf(Z)!==-1)G--;else break}if([pt,nt].indexOf(O)!==-1)for(var G=[pA,fA].indexOf(E)!==-1?C:p;G>=0;){var Z=i[G];if(Z===re)return RA;if([ze,ue].indexOf(Z)!==-1)G--;else break}if(Kn===E&&[Kn,tn,rt,Mn].indexOf(O)!==-1||[tn,rt].indexOf(E)!==-1&&[tn,VA].indexOf(O)!==-1||[VA,Mn].indexOf(E)!==-1&&O===VA||xl.indexOf(E)!==-1&&[CA,nt].indexOf(O)!==-1||xl.indexOf(O)!==-1&&E===pt||it.indexOf(E)!==-1&&it.indexOf(O)!==-1||E===ue&&it.indexOf(O)!==-1||it.concat(re).indexOf(E)!==-1&&O===KA&&H0.indexOf(s[y])===-1||it.concat(re).indexOf(O)!==-1&&E===fA)return RA;if(E===Me&&O===Me){for(var vA=c[p],gA=1;vA>0&&(vA--,i[vA]===Me);)gA++;if(gA%2!==0)return RA}return E===xA&&O===kA?RA:Gr},D0=function(s,i){i||(i={lineBreak:"normal",wordBreak:"normal"});var c=S0(s,i.lineBreak),l=c[0],f=c[1],p=c[2];(i.wordBreak==="break-all"||i.wordBreak==="break-word")&&(f=f.map(function(y){return[re,oA,ot].indexOf(y)!==-1?kt:y}));var C=i.wordBreak==="keep-all"?p.map(function(y,E){return y&&s[E]>=19968&&s[E]<=40959}):void 0;return[l,f,C]},N0=(function(){function s(i,c,l,f){this.codePoints=i,this.required=c===Il,this.start=l,this.end=f}return s.prototype.slice=function(){return m.apply(void 0,this.codePoints.slice(this.start,this.end))},s})(),L0=function(s,i){var c=w(s),l=D0(c,i),f=l[0],p=l[1],C=l[2],y=c.length,E=0,x=0;return{next:function(){if(x>=y)return{done:!0,value:null};for(var O=RA;x<y&&(O=x0(c,p,f,++x,C))===RA;);if(O!==RA||x===y){var G=new N0(c,O,E,x);return E=x,{value:G,done:!1}}return{done:!0,value:null}}}},T0=1,k0=2,On=4,Nl=8,zr=10,Ll=47,Rn=92,M0=9,K0=32,Xr=34,Vn=61,O0=35,R0=36,V0=37,$r=39,Wr=40,Pn=41,P0=95,ve=45,G0=33,z0=60,X0=62,$0=64,W0=91,Y0=93,J0=61,Z0=123,Yr=63,j0=125,Tl=124,q0=126,AC=128,kl=65533,Qi=42,Mt=43,eC=44,tC=58,nC=59,Gn=46,rC=0,oC=8,iC=11,sC=14,aC=31,lC=127,Xe=-1,Ml=48,Kl=97,Ol=101,cC=102,uC=117,dC=122,Rl=65,Vl=69,Pl=70,fC=85,gC=90,pe=function(s){return s>=Ml&&s<=57},hC=function(s){return s>=55296&&s<=57343},nn=function(s){return pe(s)||s>=Rl&&s<=Pl||s>=Kl&&s<=cC},BC=function(s){return s>=Kl&&s<=dC},pC=function(s){return s>=Rl&&s<=gC},mC=function(s){return BC(s)||pC(s)},wC=function(s){return s>=AC},Jr=function(s){return s===zr||s===M0||s===K0},Zr=function(s){return mC(s)||wC(s)||s===P0},Gl=function(s){return Zr(s)||pe(s)||s===ve},CC=function(s){return s>=rC&&s<=oC||s===iC||s>=sC&&s<=aC||s===lC},mt=function(s,i){return s!==Rn?!1:i!==zr},jr=function(s,i,c){return s===ve?Zr(i)||mt(i,c):Zr(s)?!0:!!(s===Rn&&mt(s,i))},Ei=function(s,i,c){return s===Mt||s===ve?pe(i)?!0:i===Gn&&pe(c):pe(s===Gn?i:s)},vC=function(s){var i=0,c=1;(s[i]===Mt||s[i]===ve)&&(s[i]===ve&&(c=-1),i++);for(var l=[];pe(s[i]);)l.push(s[i++]);var f=l.length?parseInt(m.apply(void 0,l),10):0;s[i]===Gn&&i++;for(var p=[];pe(s[i]);)p.push(s[i++]);var C=p.length,y=C?parseInt(m.apply(void 0,p),10):0;(s[i]===Vl||s[i]===Ol)&&i++;var E=1;(s[i]===Mt||s[i]===ve)&&(s[i]===ve&&(E=-1),i++);for(var x=[];pe(s[i]);)x.push(s[i++]);var O=x.length?parseInt(m.apply(void 0,x),10):0;return c*(f+y*Math.pow(10,-C))*Math.pow(10,E*O)},yC={type:2},QC={type:3},EC={type:4},UC={type:13},FC={type:8},bC={type:21},HC={type:9},IC={type:10},_C={type:11},SC={type:12},xC={type:14},qr={type:23},DC={type:1},NC={type:25},LC={type:24},TC={type:26},kC={type:27},MC={type:28},KC={type:29},OC={type:31},Ui={type:32},zl=(function(){function s(){this._value=[]}return s.prototype.write=function(i){this._value=this._value.concat(w(i))},s.prototype.read=function(){for(var i=[],c=this.consumeToken();c!==Ui;)i.push(c),c=this.consumeToken();return i},s.prototype.consumeToken=function(){var i=this.consumeCodePoint();switch(i){case Xr:return this.consumeStringToken(Xr);case O0:var c=this.peekCodePoint(0),l=this.peekCodePoint(1),f=this.peekCodePoint(2);if(Gl(c)||mt(l,f)){var p=jr(c,l,f)?k0:T0,C=this.consumeName();return{type:5,value:C,flags:p}}break;case R0:if(this.peekCodePoint(0)===Vn)return this.consumeCodePoint(),UC;break;case $r:return this.consumeStringToken($r);case Wr:return yC;case Pn:return QC;case Qi:if(this.peekCodePoint(0)===Vn)return this.consumeCodePoint(),xC;break;case Mt:if(Ei(i,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(i),this.consumeNumericToken();break;case eC:return EC;case ve:var y=i,E=this.peekCodePoint(0),x=this.peekCodePoint(1);if(Ei(y,E,x))return this.reconsumeCodePoint(i),this.consumeNumericToken();if(jr(y,E,x))return this.reconsumeCodePoint(i),this.consumeIdentLikeToken();if(E===ve&&x===X0)return this.consumeCodePoint(),this.consumeCodePoint(),LC;break;case Gn:if(Ei(i,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(i),this.consumeNumericToken();break;case Ll:if(this.peekCodePoint(0)===Qi)for(this.consumeCodePoint();;){var O=this.consumeCodePoint();if(O===Qi&&(O=this.consumeCodePoint(),O===Ll))return this.consumeToken();if(O===Xe)return this.consumeToken()}break;case tC:return TC;case nC:return kC;case z0:if(this.peekCodePoint(0)===G0&&this.peekCodePoint(1)===ve&&this.peekCodePoint(2)===ve)return this.consumeCodePoint(),this.consumeCodePoint(),NC;break;case $0:if(jr(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2))){var C=this.consumeName();return{type:7,value:C}}break;case W0:return MC;case Rn:if(mt(i,this.peekCodePoint(0)))return this.reconsumeCodePoint(i),this.consumeIdentLikeToken();break;case Y0:return KC;case J0:if(this.peekCodePoint(0)===Vn)return this.consumeCodePoint(),FC;break;case Z0:return _C;case j0:return SC;case uC:case fC:var G=this.peekCodePoint(0),Z=this.peekCodePoint(1);return G===Mt&&(nn(Z)||Z===Yr)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(i),this.consumeIdentLikeToken();case Tl:if(this.peekCodePoint(0)===Vn)return this.consumeCodePoint(),HC;if(this.peekCodePoint(0)===Tl)return this.consumeCodePoint(),bC;break;case q0:if(this.peekCodePoint(0)===Vn)return this.consumeCodePoint(),IC;break;case Xe:return Ui}return Jr(i)?(this.consumeWhiteSpace(),OC):pe(i)?(this.reconsumeCodePoint(i),this.consumeNumericToken()):Zr(i)?(this.reconsumeCodePoint(i),this.consumeIdentLikeToken()):{type:6,value:m(i)}},s.prototype.consumeCodePoint=function(){var i=this._value.shift();return typeof i>"u"?-1:i},s.prototype.reconsumeCodePoint=function(i){this._value.unshift(i)},s.prototype.peekCodePoint=function(i){return i>=this._value.length?-1:this._value[i]},s.prototype.consumeUnicodeRangeToken=function(){for(var i=[],c=this.consumeCodePoint();nn(c)&&i.length<6;)i.push(c),c=this.consumeCodePoint();for(var l=!1;c===Yr&&i.length<6;)i.push(c),c=this.consumeCodePoint(),l=!0;if(l){var f=parseInt(m.apply(void 0,i.map(function(E){return E===Yr?Ml:E})),16),p=parseInt(m.apply(void 0,i.map(function(E){return E===Yr?Pl:E})),16);return{type:30,start:f,end:p}}var C=parseInt(m.apply(void 0,i),16);if(this.peekCodePoint(0)===ve&&nn(this.peekCodePoint(1))){this.consumeCodePoint(),c=this.consumeCodePoint();for(var y=[];nn(c)&&y.length<6;)y.push(c),c=this.consumeCodePoint();var p=parseInt(m.apply(void 0,y),16);return{type:30,start:C,end:p}}else return{type:30,start:C,end:C}},s.prototype.consumeIdentLikeToken=function(){var i=this.consumeName();return i.toLowerCase()==="url"&&this.peekCodePoint(0)===Wr?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Wr?(this.consumeCodePoint(),{type:19,value:i}):{type:20,value:i}},s.prototype.consumeUrlToken=function(){var i=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Xe)return{type:22,value:""};var c=this.peekCodePoint(0);if(c===$r||c===Xr){var l=this.consumeStringToken(this.consumeCodePoint());return l.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Xe||this.peekCodePoint(0)===Pn)?(this.consumeCodePoint(),{type:22,value:l.value}):(this.consumeBadUrlRemnants(),qr)}for(;;){var f=this.consumeCodePoint();if(f===Xe||f===Pn)return{type:22,value:m.apply(void 0,i)};if(Jr(f))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Xe||this.peekCodePoint(0)===Pn?(this.consumeCodePoint(),{type:22,value:m.apply(void 0,i)}):(this.consumeBadUrlRemnants(),qr);if(f===Xr||f===$r||f===Wr||CC(f))return this.consumeBadUrlRemnants(),qr;if(f===Rn)if(mt(f,this.peekCodePoint(0)))i.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),qr;else i.push(f)}},s.prototype.consumeWhiteSpace=function(){for(;Jr(this.peekCodePoint(0));)this.consumeCodePoint()},s.prototype.consumeBadUrlRemnants=function(){for(;;){var i=this.consumeCodePoint();if(i===Pn||i===Xe)return;mt(i,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},s.prototype.consumeStringSlice=function(i){for(var c=5e4,l="";i>0;){var f=Math.min(c,i);l+=m.apply(void 0,this._value.splice(0,f)),i-=f}return this._value.shift(),l},s.prototype.consumeStringToken=function(i){var c="",l=0;do{var f=this._value[l];if(f===Xe||f===void 0||f===i)return c+=this.consumeStringSlice(l),{type:0,value:c};if(f===zr)return this._value.splice(0,l),DC;if(f===Rn){var p=this._value[l+1];p!==Xe&&p!==void 0&&(p===zr?(c+=this.consumeStringSlice(l),l=-1,this._value.shift()):mt(f,p)&&(c+=this.consumeStringSlice(l),c+=m(this.consumeEscapedCodePoint()),l=-1))}l++}while(!0)},s.prototype.consumeNumber=function(){var i=[],c=On,l=this.peekCodePoint(0);for((l===Mt||l===ve)&&i.push(this.consumeCodePoint());pe(this.peekCodePoint(0));)i.push(this.consumeCodePoint());l=this.peekCodePoint(0);var f=this.peekCodePoint(1);if(l===Gn&&pe(f))for(i.push(this.consumeCodePoint(),this.consumeCodePoint()),c=Nl;pe(this.peekCodePoint(0));)i.push(this.consumeCodePoint());l=this.peekCodePoint(0),f=this.peekCodePoint(1);var p=this.peekCodePoint(2);if((l===Vl||l===Ol)&&((f===Mt||f===ve)&&pe(p)||pe(f)))for(i.push(this.consumeCodePoint(),this.consumeCodePoint()),c=Nl;pe(this.peekCodePoint(0));)i.push(this.consumeCodePoint());return[vC(i),c]},s.prototype.consumeNumericToken=function(){var i=this.consumeNumber(),c=i[0],l=i[1],f=this.peekCodePoint(0);return jr(f,this.peekCodePoint(1),this.peekCodePoint(2))?{type:15,number:c,flags:l,unit:this.consumeName()}:f===V0?(this.consumeCodePoint(),{type:16,number:c,flags:l}):{type:17,number:c,flags:l}},s.prototype.consumeEscapedCodePoint=function(){var i=this.consumeCodePoint();if(nn(i)){for(var c=m(i);nn(this.peekCodePoint(0))&&c.length<6;)c+=m(this.consumeCodePoint());Jr(this.peekCodePoint(0))&&this.consumeCodePoint();var l=parseInt(c,16);return l===0||hC(l)||l>1114111?kl:l}return i===Xe?kl:i},s.prototype.consumeName=function(){for(var i="";;){var c=this.consumeCodePoint();if(Gl(c))i+=m(c);else if(mt(c,this.peekCodePoint(0)))i+=m(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(c),i}},s})(),Xl=(function(){function s(i){this._tokens=i}return s.create=function(i){var c=new zl;return c.write(i),new s(c.read())},s.parseValue=function(i){return s.create(i).parseComponentValue()},s.parseValues=function(i){return s.create(i).parseComponentValues()},s.prototype.parseComponentValue=function(){for(var i=this.consumeToken();i.type===31;)i=this.consumeToken();if(i.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(i);var c=this.consumeComponentValue();do i=this.consumeToken();while(i.type===31);if(i.type===32)return c;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},s.prototype.parseComponentValues=function(){for(var i=[];;){var c=this.consumeComponentValue();if(c.type===32)return i;i.push(c),i.push()}},s.prototype.consumeComponentValue=function(){var i=this.consumeToken();switch(i.type){case 11:case 28:case 2:return this.consumeSimpleBlock(i.type);case 19:return this.consumeFunction(i)}return i},s.prototype.consumeSimpleBlock=function(i){for(var c={type:i,values:[]},l=this.consumeToken();;){if(l.type===32||VC(l,i))return c;this.reconsumeToken(l),c.values.push(this.consumeComponentValue()),l=this.consumeToken()}},s.prototype.consumeFunction=function(i){for(var c={name:i.value,values:[],type:18};;){var l=this.consumeToken();if(l.type===32||l.type===3)return c;this.reconsumeToken(l),c.values.push(this.consumeComponentValue())}},s.prototype.consumeToken=function(){var i=this._tokens.shift();return typeof i>"u"?Ui:i},s.prototype.reconsumeToken=function(i){this._tokens.unshift(i)},s})(),zn=function(s){return s.type===15},rn=function(s){return s.type===17},JA=function(s){return s.type===20},RC=function(s){return s.type===0},Fi=function(s,i){return JA(s)&&s.value===i},$l=function(s){return s.type!==31},on=function(s){return s.type!==31&&s.type!==4},$e=function(s){var i=[],c=[];return s.forEach(function(l){if(l.type===4){if(c.length===0)throw new Error("Error parsing function args, zero tokens for arg");i.push(c),c=[];return}l.type!==31&&c.push(l)}),c.length&&i.push(c),i},VC=function(s,i){return i===11&&s.type===12||i===28&&s.type===29?!0:i===2&&s.type===3},wt=function(s){return s.type===17||s.type===15},ae=function(s){return s.type===16||wt(s)},Wl=function(s){return s.length>1?[s[0],s[1]]:[s[0]]},ge={type:17,number:0,flags:On},bi={type:16,number:50,flags:On},Ct={type:16,number:100,flags:On},Xn=function(s,i,c){var l=s[0],f=s[1];return[jA(l,i),jA(typeof f<"u"?f:l,c)]},jA=function(s,i){if(s.type===16)return s.number/100*i;if(zn(s))switch(s.unit){case"rem":case"em":return 16*s.number;default:return s.number}return s.number},Yl="deg",Jl="grad",Zl="rad",jl="turn",Ao={name:"angle",parse:function(s,i){if(i.type===15)switch(i.unit){case Yl:return Math.PI*i.number/180;case Jl:return Math.PI/200*i.number;case Zl:return i.number;case jl:return Math.PI*2*i.number}throw new Error("Unsupported angle type")}},ql=function(s){return s.type===15&&(s.unit===Yl||s.unit===Jl||s.unit===Zl||s.unit===jl)},Ac=function(s){switch(s.filter(JA).map(function(i){return i.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ge,ge];case"to top":case"bottom":return Ie(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ge,Ct];case"to right":case"left":return Ie(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ct,Ct];case"to bottom":case"top":return Ie(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ct,ge];case"to left":case"right":return Ie(270)}return 0},Ie=function(s){return Math.PI*s/180},vt={name:"color",parse:function(s,i){if(i.type===18){var c=PC[i.name];if(typeof c>"u")throw new Error('Attempting to parse an unsupported color function "'+i.name+'"');return c(s,i.values)}if(i.type===5){if(i.value.length===3){var l=i.value.substring(0,1),f=i.value.substring(1,2),p=i.value.substring(2,3);return Qt(parseInt(l+l,16),parseInt(f+f,16),parseInt(p+p,16),1)}if(i.value.length===4){var l=i.value.substring(0,1),f=i.value.substring(1,2),p=i.value.substring(2,3),C=i.value.substring(3,4);return Qt(parseInt(l+l,16),parseInt(f+f,16),parseInt(p+p,16),parseInt(C+C,16)/255)}if(i.value.length===6){var l=i.value.substring(0,2),f=i.value.substring(2,4),p=i.value.substring(4,6);return Qt(parseInt(l,16),parseInt(f,16),parseInt(p,16),1)}if(i.value.length===8){var l=i.value.substring(0,2),f=i.value.substring(2,4),p=i.value.substring(4,6),C=i.value.substring(6,8);return Qt(parseInt(l,16),parseInt(f,16),parseInt(p,16),parseInt(C,16)/255)}}if(i.type===20){var y=st[i.value.toUpperCase()];if(typeof y<"u")return y}return st.TRANSPARENT}},yt=function(s){return(255&s)===0},fe=function(s){var i=255&s,c=255&s>>8,l=255&s>>16,f=255&s>>24;return i<255?"rgba("+f+","+l+","+c+","+i/255+")":"rgb("+f+","+l+","+c+")"},Qt=function(s,i,c,l){return(s<<24|i<<16|c<<8|Math.round(l*255)<<0)>>>0},ec=function(s,i){if(s.type===17)return s.number;if(s.type===16){var c=i===3?1:255;return i===3?s.number/100*c:Math.round(s.number/100*c)}return 0},tc=function(s,i){var c=i.filter(on);if(c.length===3){var l=c.map(ec),f=l[0],p=l[1],C=l[2];return Qt(f,p,C,1)}if(c.length===4){var y=c.map(ec),f=y[0],p=y[1],C=y[2],E=y[3];return Qt(f,p,C,E)}return 0};function Hi(s,i,c){return c<0&&(c+=1),c>=1&&(c-=1),c<1/6?(i-s)*c*6+s:c<1/2?i:c<2/3?(i-s)*6*(2/3-c)+s:s}var nc=function(s,i){var c=i.filter(on),l=c[0],f=c[1],p=c[2],C=c[3],y=(l.type===17?Ie(l.number):Ao.parse(s,l))/(Math.PI*2),E=ae(f)?f.number/100:0,x=ae(p)?p.number/100:0,O=typeof C<"u"&&ae(C)?jA(C,1):1;if(E===0)return Qt(x*255,x*255,x*255,1);var G=x<=.5?x*(E+1):x+E-x*E,Z=x*2-G,vA=Hi(Z,G,y+1/3),gA=Hi(Z,G,y),mA=Hi(Z,G,y-1/3);return Qt(vA*255,gA*255,mA*255,O)},PC={hsl:nc,hsla:nc,rgb:tc,rgba:tc},$n=function(s,i){return vt.parse(s,Xl.create(i).parseComponentValue())},st={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},GC={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(s,i){return i.map(function(c){if(JA(c))switch(c.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},zC={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},eo=function(s,i){var c=vt.parse(s,i[0]),l=i[1];return l&&ae(l)?{color:c,stop:l}:{color:c,stop:null}},rc=function(s,i){var c=s[0],l=s[s.length-1];c.stop===null&&(c.stop=ge),l.stop===null&&(l.stop=Ct);for(var f=[],p=0,C=0;C<s.length;C++){var y=s[C].stop;if(y!==null){var E=jA(y,i);E>p?f.push(E):f.push(p),p=E}else f.push(null)}for(var x=null,C=0;C<f.length;C++){var O=f[C];if(O===null)x===null&&(x=C);else if(x!==null){for(var G=C-x,Z=(O-f[x-1])/(G+1),vA=1;vA<=G;vA++)f[x+vA-1]=Z*vA;x=null}}return s.map(function(gA,mA){return{color:gA.color,stop:Math.max(Math.min(1,f[mA]/i),0)}})},XC=function(s,i,c){var l=i/2,f=c/2,p=jA(s[0],i)-l,C=f-jA(s[1],c);return(Math.atan2(C,p)+Math.PI*2)%(Math.PI*2)},$C=function(s,i,c){var l=typeof s=="number"?s:XC(s,i,c),f=Math.abs(i*Math.sin(l))+Math.abs(c*Math.cos(l)),p=i/2,C=c/2,y=f/2,E=Math.sin(l-Math.PI/2)*y,x=Math.cos(l-Math.PI/2)*y;return[f,p-x,p+x,C-E,C+E]},Ke=function(s,i){return Math.sqrt(s*s+i*i)},oc=function(s,i,c,l,f){return[[0,0],[0,i],[s,0],[s,i]].reduce(function(p,C){var y=C[0],E=C[1],x=Ke(c-y,l-E);return(f?x<p.optimumDistance:x>p.optimumDistance)?{optimumCorner:C,optimumDistance:x}:p},{optimumDistance:f?1/0:-1/0,optimumCorner:null}).optimumCorner},WC=function(s,i,c,l,f){var p=0,C=0;switch(s.size){case 0:s.shape===0?p=C=Math.min(Math.abs(i),Math.abs(i-l),Math.abs(c),Math.abs(c-f)):s.shape===1&&(p=Math.min(Math.abs(i),Math.abs(i-l)),C=Math.min(Math.abs(c),Math.abs(c-f)));break;case 2:if(s.shape===0)p=C=Math.min(Ke(i,c),Ke(i,c-f),Ke(i-l,c),Ke(i-l,c-f));else if(s.shape===1){var y=Math.min(Math.abs(c),Math.abs(c-f))/Math.min(Math.abs(i),Math.abs(i-l)),E=oc(l,f,i,c,!0),x=E[0],O=E[1];p=Ke(x-i,(O-c)/y),C=y*p}break;case 1:s.shape===0?p=C=Math.max(Math.abs(i),Math.abs(i-l),Math.abs(c),Math.abs(c-f)):s.shape===1&&(p=Math.max(Math.abs(i),Math.abs(i-l)),C=Math.max(Math.abs(c),Math.abs(c-f)));break;case 3:if(s.shape===0)p=C=Math.max(Ke(i,c),Ke(i,c-f),Ke(i-l,c),Ke(i-l,c-f));else if(s.shape===1){var y=Math.max(Math.abs(c),Math.abs(c-f))/Math.max(Math.abs(i),Math.abs(i-l)),G=oc(l,f,i,c,!1),x=G[0],O=G[1];p=Ke(x-i,(O-c)/y),C=y*p}break}return Array.isArray(s.size)&&(p=jA(s.size[0],l),C=s.size.length===2?jA(s.size[1],f):p),[p,C]},YC=function(s,i){var c=Ie(180),l=[];return $e(i).forEach(function(f,p){if(p===0){var C=f[0];if(C.type===20&&C.value==="to"){c=Ac(f);return}else if(ql(C)){c=Ao.parse(s,C);return}}var y=eo(s,f);l.push(y)}),{angle:c,stops:l,type:1}},to=function(s,i){var c=Ie(180),l=[];return $e(i).forEach(function(f,p){if(p===0){var C=f[0];if(C.type===20&&["top","left","right","bottom"].indexOf(C.value)!==-1){c=Ac(f);return}else if(ql(C)){c=(Ao.parse(s,C)+Ie(270))%Ie(360);return}}var y=eo(s,f);l.push(y)}),{angle:c,stops:l,type:1}},JC=function(s,i){var c=Ie(180),l=[],f=1,p=0,C=3,y=[];return $e(i).forEach(function(E,x){var O=E[0];if(x===0){if(JA(O)&&O.value==="linear"){f=1;return}else if(JA(O)&&O.value==="radial"){f=2;return}}if(O.type===18){if(O.name==="from"){var G=vt.parse(s,O.values[0]);l.push({stop:ge,color:G})}else if(O.name==="to"){var G=vt.parse(s,O.values[0]);l.push({stop:Ct,color:G})}else if(O.name==="color-stop"){var Z=O.values.filter(on);if(Z.length===2){var G=vt.parse(s,Z[1]),vA=Z[0];rn(vA)&&l.push({stop:{type:16,number:vA.number*100,flags:vA.flags},color:G})}}}}),f===1?{angle:(c+Ie(180))%Ie(360),stops:l,type:f}:{size:C,shape:p,stops:l,position:y,type:f}},ic="closest-side",sc="farthest-side",ac="closest-corner",lc="farthest-corner",cc="circle",uc="ellipse",dc="cover",fc="contain",ZC=function(s,i){var c=0,l=3,f=[],p=[];return $e(i).forEach(function(C,y){var E=!0;if(y===0){var x=!1;E=C.reduce(function(G,Z){if(x)if(JA(Z))switch(Z.value){case"center":return p.push(bi),G;case"top":case"left":return p.push(ge),G;case"right":case"bottom":return p.push(Ct),G}else(ae(Z)||wt(Z))&&p.push(Z);else if(JA(Z))switch(Z.value){case cc:return c=0,!1;case uc:return c=1,!1;case"at":return x=!0,!1;case ic:return l=0,!1;case dc:case sc:return l=1,!1;case fc:case ac:return l=2,!1;case lc:return l=3,!1}else if(wt(Z)||ae(Z))return Array.isArray(l)||(l=[]),l.push(Z),!1;return G},E)}if(E){var O=eo(s,C);f.push(O)}}),{size:l,shape:c,stops:f,position:p,type:2}},no=function(s,i){var c=0,l=3,f=[],p=[];return $e(i).forEach(function(C,y){var E=!0;if(y===0?E=C.reduce(function(O,G){if(JA(G))switch(G.value){case"center":return p.push(bi),!1;case"top":case"left":return p.push(ge),!1;case"right":case"bottom":return p.push(Ct),!1}else if(ae(G)||wt(G))return p.push(G),!1;return O},E):y===1&&(E=C.reduce(function(O,G){if(JA(G))switch(G.value){case cc:return c=0,!1;case uc:return c=1,!1;case fc:case ic:return l=0,!1;case sc:return l=1,!1;case ac:return l=2,!1;case dc:case lc:return l=3,!1}else if(wt(G)||ae(G))return Array.isArray(l)||(l=[]),l.push(G),!1;return O},E)),E){var x=eo(s,C);f.push(x)}}),{size:l,shape:c,stops:f,position:p,type:2}},jC=function(s){return s.type===1},qC=function(s){return s.type===2},Ii={name:"image",parse:function(s,i){if(i.type===22){var c={url:i.value,type:0};return s.cache.addImage(i.value),c}if(i.type===18){var l=gc[i.name];if(typeof l>"u")throw new Error('Attempting to parse an unsupported image function "'+i.name+'"');return l(s,i.values)}throw new Error("Unsupported image type "+i.type)}};function Av(s){return!(s.type===20&&s.value==="none")&&(s.type!==18||!!gc[s.name])}var gc={"linear-gradient":YC,"-moz-linear-gradient":to,"-ms-linear-gradient":to,"-o-linear-gradient":to,"-webkit-linear-gradient":to,"radial-gradient":ZC,"-moz-radial-gradient":no,"-ms-radial-gradient":no,"-o-radial-gradient":no,"-webkit-radial-gradient":no,"-webkit-gradient":JC},ev={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(s,i){if(i.length===0)return[];var c=i[0];return c.type===20&&c.value==="none"?[]:i.filter(function(l){return on(l)&&Av(l)}).map(function(l){return Ii.parse(s,l)})}},tv={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(s,i){return i.map(function(c){if(JA(c))switch(c.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},nv={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(s,i){return $e(i).map(function(c){return c.filter(ae)}).map(Wl)}},rv={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(s,i){return $e(i).map(function(c){return c.filter(JA).map(function(l){return l.value}).join(" ")}).map(ov)}},ov=function(s){switch(s){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},sn;(function(s){s.AUTO="auto",s.CONTAIN="contain",s.COVER="cover"})(sn||(sn={}));var iv={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(s,i){return $e(i).map(function(c){return c.filter(sv)})}},sv=function(s){return JA(s)||ae(s)},ro=function(s){return{name:"border-"+s+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},av=ro("top"),lv=ro("right"),cv=ro("bottom"),uv=ro("left"),oo=function(s){return{name:"border-radius-"+s,initialValue:"0 0",prefix:!1,type:1,parse:function(i,c){return Wl(c.filter(ae))}}},dv=oo("top-left"),fv=oo("top-right"),gv=oo("bottom-right"),hv=oo("bottom-left"),io=function(s){return{name:"border-"+s+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(i,c){switch(c){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Bv=io("top"),pv=io("right"),mv=io("bottom"),wv=io("left"),so=function(s){return{name:"border-"+s+"-width",initialValue:"0",type:0,prefix:!1,parse:function(i,c){return zn(c)?c.number:0}}},Cv=so("top"),vv=so("right"),yv=so("bottom"),Qv=so("left"),Ev={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Uv={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(s,i){return i==="rtl"?1:0}},Fv={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(s,i){return i.filter(JA).reduce(function(c,l){return c|bv(l.value)},0)}},bv=function(s){switch(s){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Hv={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Iv={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(s,i){return i.type===20&&i.value==="normal"?0:i.type===17||i.type===15?i.number:0}},ao;(function(s){s.NORMAL="normal",s.STRICT="strict"})(ao||(ao={}));var _v={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){return i==="strict"?ao.STRICT:ao.NORMAL}},Sv={name:"line-height",initialValue:"normal",prefix:!1,type:4},hc=function(s,i){return JA(s)&&s.value==="normal"?1.2*i:s.type===17?i*s.number:ae(s)?jA(s,i):i},xv={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(s,i){return i.type===20&&i.value==="none"?null:Ii.parse(s,i)}},Dv={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(s,i){return i==="inside"?0:1}},_i={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},lo=function(s){return{name:"margin-"+s,initialValue:"0",prefix:!1,type:4}},Nv=lo("top"),Lv=lo("right"),Tv=lo("bottom"),kv=lo("left"),Mv={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(s,i){return i.filter(JA).map(function(c){switch(c.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},Kv={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){return i==="break-word"?"break-word":"normal"}},co=function(s){return{name:"padding-"+s,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Ov=co("top"),Rv=co("right"),Vv=co("bottom"),Pv=co("left"),Gv={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(s,i){switch(i){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},zv={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(s,i){switch(i){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Xv={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.length===1&&Fi(i[0],"none")?[]:$e(i).map(function(c){for(var l={color:st.TRANSPARENT,offsetX:ge,offsetY:ge,blur:ge},f=0,p=0;p<c.length;p++){var C=c[p];wt(C)?(f===0?l.offsetX=C:f===1?l.offsetY=C:l.blur=C,f++):l.color=vt.parse(s,C)}return l})}},$v={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Wv={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(s,i){if(i.type===20&&i.value==="none")return null;if(i.type===18){var c=Zv[i.name];if(typeof c>"u")throw new Error('Attempting to parse an unsupported transform function "'+i.name+'"');return c(i.values)}return null}},Yv=function(s){var i=s.filter(function(c){return c.type===17}).map(function(c){return c.number});return i.length===6?i:null},Jv=function(s){var i=s.filter(function(E){return E.type===17}).map(function(E){return E.number}),c=i[0],l=i[1];i[2],i[3];var f=i[4],p=i[5];i[6],i[7],i[8],i[9],i[10],i[11];var C=i[12],y=i[13];return i[14],i[15],i.length===16?[c,l,f,p,C,y]:null},Zv={matrix:Yv,matrix3d:Jv},Bc={type:16,number:50,flags:On},jv=[Bc,Bc],qv={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(s,i){var c=i.filter(ae);return c.length!==2?jv:[c[0],c[1]]}},Ay={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(s,i){switch(i){case"hidden":return 1;case"collapse":return 2;default:return 0}}},Wn;(function(s){s.NORMAL="normal",s.BREAK_ALL="break-all",s.KEEP_ALL="keep-all"})(Wn||(Wn={}));for(var ey={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){switch(i){case"break-all":return Wn.BREAK_ALL;case"keep-all":return Wn.KEEP_ALL;default:return Wn.NORMAL}}},ty={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(s,i){if(i.type===20)return{auto:!0,order:0};if(rn(i))return{auto:!1,order:i.number};throw new Error("Invalid z-index number parsed")}},pc={name:"time",parse:function(s,i){if(i.type===15)switch(i.unit.toLowerCase()){case"s":return 1e3*i.number;case"ms":return i.number}throw new Error("Unsupported time type")}},ny={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(s,i){return rn(i)?i.number:1}},ry={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},oy={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(s,i){return i.filter(JA).map(function(c){switch(c.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(c){return c!==0})}},iy={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(s,i){var c=[],l=[];return i.forEach(function(f){switch(f.type){case 20:case 0:c.push(f.value);break;case 17:c.push(f.number.toString());break;case 4:l.push(c.join(" ")),c.length=0;break}}),c.length&&l.push(c.join(" ")),l.map(function(f){return f.indexOf(" ")===-1?f:"'"+f+"'"})}},sy={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ay={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(s,i){return rn(i)?i.number:JA(i)&&i.value==="bold"?700:400}},ly={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.filter(JA).map(function(c){return c.value})}},cy={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){switch(i){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},de=function(s,i){return(s&i)!==0},uy={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(s,i){if(i.length===0)return[];var c=i[0];return c.type===20&&c.value==="none"?[]:i}},dy={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(s,i){if(i.length===0)return null;var c=i[0];if(c.type===20&&c.value==="none")return null;for(var l=[],f=i.filter($l),p=0;p<f.length;p++){var C=f[p],y=f[p+1];if(C.type===20){var E=y&&rn(y)?y.number:1;l.push({counter:C.value,increment:E})}}return l}},fy={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(s,i){if(i.length===0)return[];for(var c=[],l=i.filter($l),f=0;f<l.length;f++){var p=l[f],C=l[f+1];if(JA(p)&&p.value!=="none"){var y=C&&rn(C)?C.number:0;c.push({counter:p.value,reset:y})}}return c}},gy={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(s,i){return i.filter(zn).map(function(c){return pc.parse(s,c)})}},hy={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(s,i){if(i.length===0)return null;var c=i[0];if(c.type===20&&c.value==="none")return null;var l=[],f=i.filter(RC);if(f.length%2!==0)return null;for(var p=0;p<f.length;p+=2){var C=f[p].value,y=f[p+1].value;l.push({open:C,close:y})}return l}},mc=function(s,i,c){if(!s)return"";var l=s[Math.min(i,s.length-1)];return l?c?l.open:l.close:""},By={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.length===1&&Fi(i[0],"none")?[]:$e(i).map(function(c){for(var l={color:255,offsetX:ge,offsetY:ge,blur:ge,spread:ge,inset:!1},f=0,p=0;p<c.length;p++){var C=c[p];Fi(C,"inset")?l.inset=!0:wt(C)?(f===0?l.offsetX=C:f===1?l.offsetY=C:f===2?l.blur=C:l.spread=C,f++):l.color=vt.parse(s,C)}return l})}},py={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(s,i){var c=[0,1,2],l=[];return i.filter(JA).forEach(function(f){switch(f.value){case"stroke":l.push(1);break;case"fill":l.push(0);break;case"markers":l.push(2);break}}),c.forEach(function(f){l.indexOf(f)===-1&&l.push(f)}),l}},my={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},wy={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(s,i){return zn(i)?i.number:0}},Cy=(function(){function s(i,c){var l,f;this.animationDuration=UA(i,gy,c.animationDuration),this.backgroundClip=UA(i,GC,c.backgroundClip),this.backgroundColor=UA(i,zC,c.backgroundColor),this.backgroundImage=UA(i,ev,c.backgroundImage),this.backgroundOrigin=UA(i,tv,c.backgroundOrigin),this.backgroundPosition=UA(i,nv,c.backgroundPosition),this.backgroundRepeat=UA(i,rv,c.backgroundRepeat),this.backgroundSize=UA(i,iv,c.backgroundSize),this.borderTopColor=UA(i,av,c.borderTopColor),this.borderRightColor=UA(i,lv,c.borderRightColor),this.borderBottomColor=UA(i,cv,c.borderBottomColor),this.borderLeftColor=UA(i,uv,c.borderLeftColor),this.borderTopLeftRadius=UA(i,dv,c.borderTopLeftRadius),this.borderTopRightRadius=UA(i,fv,c.borderTopRightRadius),this.borderBottomRightRadius=UA(i,gv,c.borderBottomRightRadius),this.borderBottomLeftRadius=UA(i,hv,c.borderBottomLeftRadius),this.borderTopStyle=UA(i,Bv,c.borderTopStyle),this.borderRightStyle=UA(i,pv,c.borderRightStyle),this.borderBottomStyle=UA(i,mv,c.borderBottomStyle),this.borderLeftStyle=UA(i,wv,c.borderLeftStyle),this.borderTopWidth=UA(i,Cv,c.borderTopWidth),this.borderRightWidth=UA(i,vv,c.borderRightWidth),this.borderBottomWidth=UA(i,yv,c.borderBottomWidth),this.borderLeftWidth=UA(i,Qv,c.borderLeftWidth),this.boxShadow=UA(i,By,c.boxShadow),this.color=UA(i,Ev,c.color),this.direction=UA(i,Uv,c.direction),this.display=UA(i,Fv,c.display),this.float=UA(i,Hv,c.cssFloat),this.fontFamily=UA(i,iy,c.fontFamily),this.fontSize=UA(i,sy,c.fontSize),this.fontStyle=UA(i,cy,c.fontStyle),this.fontVariant=UA(i,ly,c.fontVariant),this.fontWeight=UA(i,ay,c.fontWeight),this.letterSpacing=UA(i,Iv,c.letterSpacing),this.lineBreak=UA(i,_v,c.lineBreak),this.lineHeight=UA(i,Sv,c.lineHeight),this.listStyleImage=UA(i,xv,c.listStyleImage),this.listStylePosition=UA(i,Dv,c.listStylePosition),this.listStyleType=UA(i,_i,c.listStyleType),this.marginTop=UA(i,Nv,c.marginTop),this.marginRight=UA(i,Lv,c.marginRight),this.marginBottom=UA(i,Tv,c.marginBottom),this.marginLeft=UA(i,kv,c.marginLeft),this.opacity=UA(i,ny,c.opacity);var p=UA(i,Mv,c.overflow);this.overflowX=p[0],this.overflowY=p[p.length>1?1:0],this.overflowWrap=UA(i,Kv,c.overflowWrap),this.paddingTop=UA(i,Ov,c.paddingTop),this.paddingRight=UA(i,Rv,c.paddingRight),this.paddingBottom=UA(i,Vv,c.paddingBottom),this.paddingLeft=UA(i,Pv,c.paddingLeft),this.paintOrder=UA(i,py,c.paintOrder),this.position=UA(i,zv,c.position),this.textAlign=UA(i,Gv,c.textAlign),this.textDecorationColor=UA(i,ry,(l=c.textDecorationColor)!==null&&l!==void 0?l:c.color),this.textDecorationLine=UA(i,oy,(f=c.textDecorationLine)!==null&&f!==void 0?f:c.textDecoration),this.textShadow=UA(i,Xv,c.textShadow),this.textTransform=UA(i,$v,c.textTransform),this.transform=UA(i,Wv,c.transform),this.transformOrigin=UA(i,qv,c.transformOrigin),this.visibility=UA(i,Ay,c.visibility),this.webkitTextStrokeColor=UA(i,my,c.webkitTextStrokeColor),this.webkitTextStrokeWidth=UA(i,wy,c.webkitTextStrokeWidth),this.wordBreak=UA(i,ey,c.wordBreak),this.zIndex=UA(i,ty,c.zIndex)}return s.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},s.prototype.isTransparent=function(){return yt(this.backgroundColor)},s.prototype.isTransformed=function(){return this.transform!==null},s.prototype.isPositioned=function(){return this.position!==0},s.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},s.prototype.isFloating=function(){return this.float!==0},s.prototype.isInlineLevel=function(){return de(this.display,4)||de(this.display,33554432)||de(this.display,268435456)||de(this.display,536870912)||de(this.display,67108864)||de(this.display,134217728)},s})(),vy=(function(){function s(i,c){this.content=UA(i,uy,c.content),this.quotes=UA(i,hy,c.quotes)}return s})(),wc=(function(){function s(i,c){this.counterIncrement=UA(i,dy,c.counterIncrement),this.counterReset=UA(i,fy,c.counterReset)}return s})(),UA=function(s,i,c){var l=new zl,f=c!==null&&typeof c<"u"?c.toString():i.initialValue;l.write(f);var p=new Xl(l.read());switch(i.type){case 2:var C=p.parseComponentValue();return i.parse(s,JA(C)?C.value:i.initialValue);case 0:return i.parse(s,p.parseComponentValue());case 1:return i.parse(s,p.parseComponentValues());case 4:return p.parseComponentValue();case 3:switch(i.format){case"angle":return Ao.parse(s,p.parseComponentValue());case"color":return vt.parse(s,p.parseComponentValue());case"image":return Ii.parse(s,p.parseComponentValue());case"length":var y=p.parseComponentValue();return wt(y)?y:ge;case"length-percentage":var E=p.parseComponentValue();return ae(E)?E:ge;case"time":return pc.parse(s,p.parseComponentValue())}break}},yy="data-html2canvas-debug",Qy=function(s){switch(s.getAttribute(yy)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Si=function(s,i){var c=Qy(s);return c===1||i===c},We=(function(){function s(i,c){if(this.context=i,this.textNodes=[],this.elements=[],this.flags=0,Si(c,3))debugger;this.styles=new Cy(i,window.getComputedStyle(c,null)),zi(c)&&(this.styles.animationDuration.some(function(l){return l>0})&&(c.style.animationDuration="0s"),this.styles.transform!==null&&(c.style.transform="none")),this.bounds=g(this.context,c),Si(c,4)&&(this.flags|=16)}return s})(),Ey="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAA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FOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARAB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UBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFig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ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Cc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yn=typeof Uint8Array>"u"?[]:new Uint8Array(256),uo=0;uo<Cc.length;uo++)Yn[Cc.charCodeAt(uo)]=uo;for(var Uy=function(s){var i=s.length*.75,c=s.length,l,f=0,p,C,y,E;s[s.length-1]==="="&&(i--,s[s.length-2]==="="&&i--);var x=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(i):new Array(i),O=Array.isArray(x)?x:new Uint8Array(x);for(l=0;l<c;l+=4)p=Yn[s.charCodeAt(l)],C=Yn[s.charCodeAt(l+1)],y=Yn[s.charCodeAt(l+2)],E=Yn[s.charCodeAt(l+3)],O[f++]=p<<2|C>>4,O[f++]=(C&15)<<4|y>>2,O[f++]=(y&3)<<6|E&63;return x},Fy=function(s){for(var i=s.length,c=[],l=0;l<i;l+=2)c.push(s[l+1]<<8|s[l]);return c},by=function(s){for(var i=s.length,c=[],l=0;l<i;l+=4)c.push(s[l+3]<<24|s[l+2]<<16|s[l+1]<<8|s[l]);return c},Kt=5,xi=11,Di=2,Hy=xi-Kt,vc=65536>>Kt,Ni=(1<<Kt)-1,Iy=vc+(1024>>Kt)+32,_y=65536>>xi,Sy=(1<<Hy)-1,yc=function(s,i,c){return s.slice?s.slice(i,c):new Uint16Array(Array.prototype.slice.call(s,i,c))},xy=function(s,i,c){return s.slice?s.slice(i,c):new Uint32Array(Array.prototype.slice.call(s,i,c))},Dy=function(s,i){var c=Uy(s),l=Array.isArray(c)?by(c):new Uint32Array(c),f=Array.isArray(c)?Fy(c):new Uint16Array(c),p=24,C=yc(f,p/2,l[4]/2),y=l[5]===2?yc(f,(p+l[4])/2):xy(l,Math.ceil((p+l[4])/4));return new Ny(l[0],l[1],l[2],l[3],C,y)},Ny=(function(){function s(i,c,l,f,p,C){this.initialValue=i,this.errorValue=c,this.highStart=l,this.highValueIndex=f,this.index=p,this.data=C}return s.prototype.get=function(i){var c;if(i>=0){if(i<55296||i>56319&&i<=65535)return c=this.index[i>>Kt],c=(c<<Di)+(i&Ni),this.data[c];if(i<=65535)return c=this.index[vc+(i-55296>>Kt)],c=(c<<Di)+(i&Ni),this.data[c];if(i<this.highStart)return c=Iy-_y+(i>>xi),c=this.index[c],c+=i>>Kt&Sy,c=this.index[c],c=(c<<Di)+(i&Ni),this.data[c];if(i<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),Qc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ly=typeof Uint8Array>"u"?[]:new Uint8Array(256),fo=0;fo<Qc.length;fo++)Ly[Qc.charCodeAt(fo)]=fo;var Ty=1,Li=2,Ti=3,Ec=4,Uc=5,ky=7,Fc=8,ki=9,Mi=10,bc=11,Hc=12,Ic=13,_c=14,Ki=15,My=function(s){for(var i=[],c=0,l=s.length;c<l;){var f=s.charCodeAt(c++);if(f>=55296&&f<=56319&&c<l){var p=s.charCodeAt(c++);(p&64512)===56320?i.push(((f&1023)<<10)+(p&1023)+65536):(i.push(f),c--)}else i.push(f)}return i},Ky=function(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];if(String.fromCodePoint)return String.fromCodePoint.apply(String,s);var c=s.length;if(!c)return"";for(var l=[],f=-1,p="";++f<c;){var C=s[f];C<=65535?l.push(C):(C-=65536,l.push((C>>10)+55296,C%1024+56320)),(f+1===c||l.length>16384)&&(p+=String.fromCharCode.apply(String,l),l.length=0)}return p},Oy=Dy(Ey),_e="×",Oi="÷",Ry=function(s){return Oy.get(s)},Vy=function(s,i,c){var l=c-2,f=i[l],p=i[c-1],C=i[c];if(p===Li&&C===Ti)return _e;if(p===Li||p===Ti||p===Ec||C===Li||C===Ti||C===Ec)return Oi;if(p===Fc&&[Fc,ki,bc,Hc].indexOf(C)!==-1||(p===bc||p===ki)&&(C===ki||C===Mi)||(p===Hc||p===Mi)&&C===Mi||C===Ic||C===Uc||C===ky||p===Ty)return _e;if(p===Ic&&C===_c){for(;f===Uc;)f=i[--l];if(f===_c)return _e}if(p===Ki&&C===Ki){for(var y=0;f===Ki;)y++,f=i[--l];if(y%2===0)return _e}return Oi},Py=function(s){var i=My(s),c=i.length,l=0,f=0,p=i.map(Ry);return{next:function(){if(l>=c)return{done:!0,value:null};for(var C=_e;l<c&&(C=Vy(i,p,++l))===_e;);if(C!==_e||l===c){var y=Ky.apply(null,i.slice(f,l));return f=l,{value:y,done:!1}}return{done:!0,value:null}}}},Gy=function(s){for(var i=Py(s),c=[],l;!(l=i.next()).done;)l.value&&c.push(l.value.slice());return c},zy=function(s){var i=123;if(s.createRange){var c=s.createRange();if(c.getBoundingClientRect){var l=s.createElement("boundtest");l.style.height=i+"px",l.style.display="block",s.body.appendChild(l),c.selectNode(l);var f=c.getBoundingClientRect(),p=Math.round(f.height);if(s.body.removeChild(l),p===i)return!0}}return!1},Xy=function(s){var i=s.createElement("boundtest");i.style.width="50px",i.style.display="block",i.style.fontSize="12px",i.style.letterSpacing="0px",i.style.wordSpacing="0px",s.body.appendChild(i);var c=s.createRange();i.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var l=i.firstChild,f=w(l.data).map(function(E){return m(E)}),p=0,C={},y=f.every(function(E,x){c.setStart(l,p),c.setEnd(l,p+E.length);var O=c.getBoundingClientRect();p+=E.length;var G=O.x>C.x||O.y>C.y;return C=O,x===0?!0:G});return s.body.removeChild(i),y},$y=function(){return typeof new Image().crossOrigin<"u"},Wy=function(){return typeof new XMLHttpRequest().responseType=="string"},Yy=function(s){var i=new Image,c=s.createElement("canvas"),l=c.getContext("2d");if(!l)return!1;i.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{l.drawImage(i,0,0),c.toDataURL()}catch{return!1}return!0},Sc=function(s){return s[0]===0&&s[1]===255&&s[2]===0&&s[3]===255},Jy=function(s){var i=s.createElement("canvas"),c=100;i.width=c,i.height=c;var l=i.getContext("2d");if(!l)return Promise.reject(!1);l.fillStyle="rgb(0, 255, 0)",l.fillRect(0,0,c,c);var f=new Image,p=i.toDataURL();f.src=p;var C=Ri(c,c,0,0,f);return l.fillStyle="red",l.fillRect(0,0,c,c),xc(C).then(function(y){l.drawImage(y,0,0);var E=l.getImageData(0,0,c,c).data;l.fillStyle="red",l.fillRect(0,0,c,c);var x=s.createElement("div");return x.style.backgroundImage="url("+p+")",x.style.height=c+"px",Sc(E)?xc(Ri(c,c,0,0,x)):Promise.reject(!1)}).then(function(y){return l.drawImage(y,0,0),Sc(l.getImageData(0,0,c,c).data)}).catch(function(){return!1})},Ri=function(s,i,c,l,f){var p="http://www.w3.org/2000/svg",C=document.createElementNS(p,"svg"),y=document.createElementNS(p,"foreignObject");return C.setAttributeNS(null,"width",s.toString()),C.setAttributeNS(null,"height",i.toString()),y.setAttributeNS(null,"width","100%"),y.setAttributeNS(null,"height","100%"),y.setAttributeNS(null,"x",c.toString()),y.setAttributeNS(null,"y",l.toString()),y.setAttributeNS(null,"externalResourcesRequired","true"),C.appendChild(y),y.appendChild(f),C},xc=function(s){return new Promise(function(i,c){var l=new Image;l.onload=function(){return i(l)},l.onerror=c,l.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(s))})},he={get SUPPORT_RANGE_BOUNDS(){var s=zy(document);return Object.defineProperty(he,"SUPPORT_RANGE_BOUNDS",{value:s}),s},get SUPPORT_WORD_BREAKING(){var s=he.SUPPORT_RANGE_BOUNDS&&Xy(document);return Object.defineProperty(he,"SUPPORT_WORD_BREAKING",{value:s}),s},get SUPPORT_SVG_DRAWING(){var s=Yy(document);return Object.defineProperty(he,"SUPPORT_SVG_DRAWING",{value:s}),s},get SUPPORT_FOREIGNOBJECT_DRAWING(){var s=typeof Array.from=="function"&&typeof window.fetch=="function"?Jy(document):Promise.resolve(!1);return Object.defineProperty(he,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:s}),s},get SUPPORT_CORS_IMAGES(){var s=$y();return Object.defineProperty(he,"SUPPORT_CORS_IMAGES",{value:s}),s},get SUPPORT_RESPONSE_TYPE(){var s=Wy();return Object.defineProperty(he,"SUPPORT_RESPONSE_TYPE",{value:s}),s},get SUPPORT_CORS_XHR(){var s="withCredentials"in new XMLHttpRequest;return Object.defineProperty(he,"SUPPORT_CORS_XHR",{value:s}),s},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var s=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(he,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:s}),s}},Jn=(function(){function s(i,c){this.text=i,this.bounds=c}return s})(),Zy=function(s,i,c,l){var f=AQ(i,c),p=[],C=0;return f.forEach(function(y){if(c.textDecorationLine.length||y.trim().length>0)if(he.SUPPORT_RANGE_BOUNDS){var E=Dc(l,C,y.length).getClientRects();if(E.length>1){var x=Vi(y),O=0;x.forEach(function(Z){p.push(new Jn(Z,h.fromDOMRectList(s,Dc(l,O+C,Z.length).getClientRects()))),O+=Z.length})}else p.push(new Jn(y,h.fromDOMRectList(s,E)))}else{var G=l.splitText(y.length);p.push(new Jn(y,jy(s,l))),l=G}else he.SUPPORT_RANGE_BOUNDS||(l=l.splitText(y.length));C+=y.length}),p},jy=function(s,i){var c=i.ownerDocument;if(c){var l=c.createElement("html2canvaswrapper");l.appendChild(i.cloneNode(!0));var f=i.parentNode;if(f){f.replaceChild(l,i);var p=g(s,l);return l.firstChild&&f.replaceChild(l.firstChild,l),p}}return h.EMPTY},Dc=function(s,i,c){var l=s.ownerDocument;if(!l)throw new Error("Node has no owner document");var f=l.createRange();return f.setStart(s,i),f.setEnd(s,i+c),f},Vi=function(s){if(he.SUPPORT_NATIVE_TEXT_SEGMENTATION){var i=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(i.segment(s)).map(function(c){return c.segment})}return Gy(s)},qy=function(s,i){if(he.SUPPORT_NATIVE_TEXT_SEGMENTATION){var c=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(c.segment(s)).map(function(l){return l.segment})}return tQ(s,i)},AQ=function(s,i){return i.letterSpacing!==0?Vi(s):qy(s,i)},eQ=[32,160,4961,65792,65793,4153,4241],tQ=function(s,i){for(var c=L0(s,{lineBreak:i.lineBreak,wordBreak:i.overflowWrap==="break-word"?"break-word":i.wordBreak}),l=[],f,p=function(){if(f.value){var C=w(f.value.slice()),y="";C.forEach(function(E){eQ.indexOf(E)===-1?y+=m(E):(y.length&&l.push(y),l.push(m(E)),y="")}),y.length&&l.push(y)}};!(f=c.next()).done;)p();return l},nQ=(function(){function s(i,c,l){this.text=rQ(c.data,l.textTransform),this.textBounds=Zy(i,this.text,l,c)}return s})(),rQ=function(s,i){switch(i){case 1:return s.toLowerCase();case 3:return s.replace(oQ,iQ);case 2:return s.toUpperCase();default:return s}},oQ=/(^|\s|:|-|\(|\))([a-z])/g,iQ=function(s,i,c){return s.length>0?i+c.toUpperCase():s},Nc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.src=l.currentSrc||l.src,f.intrinsicWidth=l.naturalWidth,f.intrinsicHeight=l.naturalHeight,f.context.cache.addImage(f.src),f}return i})(We),Lc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.canvas=l,f.intrinsicWidth=l.width,f.intrinsicHeight=l.height,f}return i})(We),Tc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this,p=new XMLSerializer,C=g(c,l);return l.setAttribute("width",C.width+"px"),l.setAttribute("height",C.height+"px"),f.svg="data:image/svg+xml,"+encodeURIComponent(p.serializeToString(l)),f.intrinsicWidth=l.width.baseVal.value,f.intrinsicHeight=l.height.baseVal.value,f.context.cache.addImage(f.svg),f}return i})(We),kc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.value=l.value,f}return i})(We),Pi=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.start=l.start,f.reversed=typeof l.reversed=="boolean"&&l.reversed===!0,f}return i})(We),sQ=[{type:15,flags:0,unit:"px",number:3}],aQ=[{type:16,flags:0,number:50}],lQ=function(s){return s.width>s.height?new h(s.left+(s.width-s.height)/2,s.top,s.height,s.height):s.width<s.height?new h(s.left,s.top+(s.height-s.width)/2,s.width,s.width):s},cQ=function(s){var i=s.type===uQ?new Array(s.value.length+1).join("•"):s.value;return i.length===0?s.placeholder||"":i},go="checkbox",ho="radio",uQ="password",Mc=707406591,Gi=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;switch(f.type=l.type.toLowerCase(),f.checked=l.checked,f.value=cQ(l),(f.type===go||f.type===ho)&&(f.styles.backgroundColor=3739148031,f.styles.borderTopColor=f.styles.borderRightColor=f.styles.borderBottomColor=f.styles.borderLeftColor=2779096575,f.styles.borderTopWidth=f.styles.borderRightWidth=f.styles.borderBottomWidth=f.styles.borderLeftWidth=1,f.styles.borderTopStyle=f.styles.borderRightStyle=f.styles.borderBottomStyle=f.styles.borderLeftStyle=1,f.styles.backgroundClip=[0],f.styles.backgroundOrigin=[0],f.bounds=lQ(f.bounds)),f.type){case go:f.styles.borderTopRightRadius=f.styles.borderTopLeftRadius=f.styles.borderBottomRightRadius=f.styles.borderBottomLeftRadius=sQ;break;case ho:f.styles.borderTopRightRadius=f.styles.borderTopLeftRadius=f.styles.borderBottomRightRadius=f.styles.borderBottomLeftRadius=aQ;break}return f}return i})(We),Kc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this,p=l.options[l.selectedIndex||0];return f.value=p&&p.text||"",f}return i})(We),Oc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.value=l.value,f}return i})(We),Rc=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;f.src=l.src,f.width=parseInt(l.width,10)||0,f.height=parseInt(l.height,10)||0,f.backgroundColor=f.styles.backgroundColor;try{if(l.contentWindow&&l.contentWindow.document&&l.contentWindow.document.documentElement){f.tree=Pc(c,l.contentWindow.document.documentElement);var p=l.contentWindow.document.documentElement?$n(c,getComputedStyle(l.contentWindow.document.documentElement).backgroundColor):st.TRANSPARENT,C=l.contentWindow.document.body?$n(c,getComputedStyle(l.contentWindow.document.body).backgroundColor):st.TRANSPARENT;f.backgroundColor=yt(p)?yt(C)?f.styles.backgroundColor:C:p}}catch{}return f}return i})(We),dQ=["OL","UL","MENU"],Bo=function(s,i,c,l){for(var f=i.firstChild,p=void 0;f;f=p)if(p=f.nextSibling,Gc(f)&&f.data.trim().length>0)c.textNodes.push(new nQ(s,f,c.styles));else if(an(f))if(Jc(f)&&f.assignedNodes)f.assignedNodes().forEach(function(y){return Bo(s,y,c,l)});else{var C=Vc(s,f);C.styles.isVisible()&&(fQ(f,C,l)?C.flags|=4:gQ(C.styles)&&(C.flags|=2),dQ.indexOf(f.tagName)!==-1&&(C.flags|=8),c.elements.push(C),f.slot,f.shadowRoot?Bo(s,f.shadowRoot,C,l):!mo(f)&&!zc(f)&&!wo(f)&&Bo(s,f,C,l))}},Vc=function(s,i){return $i(i)?new Nc(s,i):Xc(i)?new Lc(s,i):zc(i)?new Tc(s,i):hQ(i)?new kc(s,i):BQ(i)?new Pi(s,i):pQ(i)?new Gi(s,i):wo(i)?new Kc(s,i):mo(i)?new Oc(s,i):Wc(i)?new Rc(s,i):new We(s,i)},Pc=function(s,i){var c=Vc(s,i);return c.flags|=4,Bo(s,i,c,c),c},fQ=function(s,i,c){return i.styles.isPositionedWithZIndex()||i.styles.opacity<1||i.styles.isTransformed()||Xi(s)&&c.styles.isTransparent()},gQ=function(s){return s.isPositioned()||s.isFloating()},Gc=function(s){return s.nodeType===Node.TEXT_NODE},an=function(s){return s.nodeType===Node.ELEMENT_NODE},zi=function(s){return an(s)&&typeof s.style<"u"&&!po(s)},po=function(s){return typeof s.className=="object"},hQ=function(s){return s.tagName==="LI"},BQ=function(s){return s.tagName==="OL"},pQ=function(s){return s.tagName==="INPUT"},mQ=function(s){return s.tagName==="HTML"},zc=function(s){return s.tagName==="svg"},Xi=function(s){return s.tagName==="BODY"},Xc=function(s){return s.tagName==="CANVAS"},$c=function(s){return s.tagName==="VIDEO"},$i=function(s){return s.tagName==="IMG"},Wc=function(s){return s.tagName==="IFRAME"},Yc=function(s){return s.tagName==="STYLE"},wQ=function(s){return s.tagName==="SCRIPT"},mo=function(s){return s.tagName==="TEXTAREA"},wo=function(s){return s.tagName==="SELECT"},Jc=function(s){return s.tagName==="SLOT"},Zc=function(s){return s.tagName.indexOf("-")>0},CQ=(function(){function s(){this.counters={}}return s.prototype.getCounterValue=function(i){var c=this.counters[i];return c&&c.length?c[c.length-1]:1},s.prototype.getCounterValues=function(i){var c=this.counters[i];return c||[]},s.prototype.pop=function(i){var c=this;i.forEach(function(l){return c.counters[l].pop()})},s.prototype.parse=function(i){var c=this,l=i.counterIncrement,f=i.counterReset,p=!0;l!==null&&l.forEach(function(y){var E=c.counters[y.counter];E&&y.increment!==0&&(p=!1,E.length||E.push(1),E[Math.max(0,E.length-1)]+=y.increment)});var C=[];return p&&f.forEach(function(y){var E=c.counters[y.counter];C.push(y.counter),E||(E=c.counters[y.counter]=[]),E.push(y.reset)}),C},s})(),jc={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},qc={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},vQ={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},yQ={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},ln=function(s,i,c,l,f,p){return s<i||s>c?jn(s,f,p.length>0):l.integers.reduce(function(C,y,E){for(;s>=y;)s-=y,C+=l.values[E];return C},"")+p},Au=function(s,i,c,l){var f="";do c||s--,f=l(s)+f,s/=i;while(s*i>=i);return f},oe=function(s,i,c,l,f){var p=c-i+1;return(s<0?"-":"")+(Au(Math.abs(s),p,l,function(C){return m(Math.floor(C%p)+i)})+f)},Ot=function(s,i,c){c===void 0&&(c=". ");var l=i.length;return Au(Math.abs(s),l,!1,function(f){return i[Math.floor(f%l)]})+c},cn=1,Et=2,Ut=4,Zn=8,at=function(s,i,c,l,f,p){if(s<-9999||s>9999)return jn(s,4,f.length>0);var C=Math.abs(s),y=f;if(C===0)return i[0]+y;for(var E=0;C>0&&E<=4;E++){var x=C%10;x===0&&de(p,cn)&&y!==""?y=i[x]+y:x>1||x===1&&E===0||x===1&&E===1&&de(p,Et)||x===1&&E===1&&de(p,Ut)&&s>100||x===1&&E>1&&de(p,Zn)?y=i[x]+(E>0?c[E-1]:"")+y:x===1&&E>0&&(y=c[E-1]+y),C=Math.floor(C/10)}return(s<0?l:"")+y},eu="十百千萬",tu="拾佰仟萬",nu="マイナス",Wi="마이너스",jn=function(s,i,c){var l=c?". ":"",f=c?"、":"",p=c?", ":"",C=c?" ":"";switch(i){case 0:return"•"+C;case 1:return"◦"+C;case 2:return"◾"+C;case 5:var y=oe(s,48,57,!0,l);return y.length<4?"0"+y:y;case 4:return Ot(s,"〇一二三四五六七八九",f);case 6:return ln(s,1,3999,jc,3,l).toLowerCase();case 7:return ln(s,1,3999,jc,3,l);case 8:return oe(s,945,969,!1,l);case 9:return oe(s,97,122,!1,l);case 10:return oe(s,65,90,!1,l);case 11:return oe(s,1632,1641,!0,l);case 12:case 49:return ln(s,1,9999,qc,3,l);case 35:return ln(s,1,9999,qc,3,l).toLowerCase();case 13:return oe(s,2534,2543,!0,l);case 14:case 30:return oe(s,6112,6121,!0,l);case 15:return Ot(s,"子丑寅卯辰巳午未申酉戌亥",f);case 16:return Ot(s,"甲乙丙丁戊己庚辛壬癸",f);case 17:case 48:return at(s,"零一二三四五六七八九",eu,"負",f,Et|Ut|Zn);case 47:return at(s,"零壹貳參肆伍陸柒捌玖",tu,"負",f,cn|Et|Ut|Zn);case 42:return at(s,"零一二三四五六七八九",eu,"负",f,Et|Ut|Zn);case 41:return at(s,"零壹贰叁肆伍陆柒捌玖",tu,"负",f,cn|Et|Ut|Zn);case 26:return at(s,"〇一二三四五六七八九","十百千万",nu,f,0);case 25:return at(s,"零壱弐参四伍六七八九","拾百千万",nu,f,cn|Et|Ut);case 31:return at(s,"영일이삼사오육칠팔구","십백천만",Wi,p,cn|Et|Ut);case 33:return at(s,"零一二三四五六七八九","十百千萬",Wi,p,0);case 32:return at(s,"零壹貳參四五六七八九","拾百千",Wi,p,cn|Et|Ut);case 18:return oe(s,2406,2415,!0,l);case 20:return ln(s,1,19999,yQ,3,l);case 21:return oe(s,2790,2799,!0,l);case 22:return oe(s,2662,2671,!0,l);case 22:return ln(s,1,10999,vQ,3,l);case 23:return Ot(s,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ot(s,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return oe(s,3302,3311,!0,l);case 28:return Ot(s,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",f);case 29:return Ot(s,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",f);case 34:return oe(s,3792,3801,!0,l);case 37:return oe(s,6160,6169,!0,l);case 38:return oe(s,4160,4169,!0,l);case 39:return oe(s,2918,2927,!0,l);case 40:return oe(s,1776,1785,!0,l);case 43:return oe(s,3046,3055,!0,l);case 44:return oe(s,3174,3183,!0,l);case 45:return oe(s,3664,3673,!0,l);case 46:return oe(s,3872,3881,!0,l);default:return oe(s,48,57,!0,l)}},ru="data-html2canvas-ignore",ou=(function(){function s(i,c,l){if(this.context=i,this.options=l,this.scrolledElements=[],this.referenceElement=c,this.counters=new CQ,this.quoteDepth=0,!c.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(c.ownerDocument.documentElement,!1)}return s.prototype.toIFrame=function(i,c){var l=this,f=QQ(i,c);if(!f.contentWindow)return Promise.reject("Unable to find iframe window");var p=i.defaultView.pageXOffset,C=i.defaultView.pageYOffset,y=f.contentWindow,E=y.document,x=FQ(f).then(function(){return a(l,void 0,void 0,function(){var O,G;return u(this,function(Z){switch(Z.label){case 0:return this.scrolledElements.forEach(_Q),y&&(y.scrollTo(c.left,c.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(y.scrollY!==c.top||y.scrollX!==c.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(y.scrollX-c.left,y.scrollY-c.top,0,0))),O=this.options.onclone,G=this.clonedReferenceElement,typeof G>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:E.fonts&&E.fonts.ready?[4,E.fonts.ready]:[3,2];case 1:Z.sent(),Z.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,UQ(E)]:[3,4];case 3:Z.sent(),Z.label=4;case 4:return typeof O=="function"?[2,Promise.resolve().then(function(){return O(E,G)}).then(function(){return f})]:[2,f]}})})});return E.open(),E.write(HQ(document.doctype)+"<html></html>"),IQ(this.referenceElement.ownerDocument,p,C),E.replaceChild(E.adoptNode(this.documentElement),E.documentElement),E.close(),x},s.prototype.createElementClone=function(i){if(Si(i,2))debugger;if(Xc(i))return this.createCanvasClone(i);if($c(i))return this.createVideoClone(i);if(Yc(i))return this.createStyleClone(i);var c=i.cloneNode(!1);return $i(c)&&($i(i)&&i.currentSrc&&i.currentSrc!==i.src&&(c.src=i.currentSrc,c.srcset=""),c.loading==="lazy"&&(c.loading="eager")),Zc(c)?this.createCustomElementClone(c):c},s.prototype.createCustomElementClone=function(i){var c=document.createElement("html2canvascustomelement");return Yi(i.style,c),c},s.prototype.createStyleClone=function(i){try{var c=i.sheet;if(c&&c.cssRules){var l=[].slice.call(c.cssRules,0).reduce(function(p,C){return C&&typeof C.cssText=="string"?p+C.cssText:p},""),f=i.cloneNode(!1);return f.textContent=l,f}}catch(p){if(this.context.logger.error("Unable to access cssRules property",p),p.name!=="SecurityError")throw p}return i.cloneNode(!1)},s.prototype.createCanvasClone=function(i){var c;if(this.options.inlineImages&&i.ownerDocument){var l=i.ownerDocument.createElement("img");try{return l.src=i.toDataURL(),l}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",i)}}var f=i.cloneNode(!1);try{f.width=i.width,f.height=i.height;var p=i.getContext("2d"),C=f.getContext("2d");if(C)if(!this.options.allowTaint&&p)C.putImageData(p.getImageData(0,0,i.width,i.height),0,0);else{var y=(c=i.getContext("webgl2"))!==null&&c!==void 0?c:i.getContext("webgl");if(y){var E=y.getContextAttributes();E?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",i)}C.drawImage(i,0,0)}return f}catch{this.context.logger.info("Unable to clone canvas as it is tainted",i)}return f},s.prototype.createVideoClone=function(i){var c=i.ownerDocument.createElement("canvas");c.width=i.offsetWidth,c.height=i.offsetHeight;var l=c.getContext("2d");try{return l&&(l.drawImage(i,0,0,c.width,c.height),this.options.allowTaint||l.getImageData(0,0,c.width,c.height)),c}catch{this.context.logger.info("Unable to clone video as it is tainted",i)}var f=i.ownerDocument.createElement("canvas");return f.width=i.offsetWidth,f.height=i.offsetHeight,f},s.prototype.appendChildNode=function(i,c,l){(!an(c)||!wQ(c)&&!c.hasAttribute(ru)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(c)))&&(!this.options.copyStyles||!an(c)||!Yc(c))&&i.appendChild(this.cloneNode(c,l))},s.prototype.cloneChildNodes=function(i,c,l){for(var f=this,p=i.shadowRoot?i.shadowRoot.firstChild:i.firstChild;p;p=p.nextSibling)if(an(p)&&Jc(p)&&typeof p.assignedNodes=="function"){var C=p.assignedNodes();C.length&&C.forEach(function(y){return f.appendChildNode(c,y,l)})}else this.appendChildNode(c,p,l)},s.prototype.cloneNode=function(i,c){if(Gc(i))return document.createTextNode(i.data);if(!i.ownerDocument)return i.cloneNode(!1);var l=i.ownerDocument.defaultView;if(l&&an(i)&&(zi(i)||po(i))){var f=this.createElementClone(i);f.style.transitionProperty="none";var p=l.getComputedStyle(i),C=l.getComputedStyle(i,":before"),y=l.getComputedStyle(i,":after");this.referenceElement===i&&zi(f)&&(this.clonedReferenceElement=f),Xi(f)&&DQ(f);var E=this.counters.parse(new wc(this.context,p)),x=this.resolvePseudoContent(i,f,C,qn.BEFORE);Zc(i)&&(c=!0),$c(i)||this.cloneChildNodes(i,f,c),x&&f.insertBefore(x,f.firstChild);var O=this.resolvePseudoContent(i,f,y,qn.AFTER);return O&&f.appendChild(O),this.counters.pop(E),(p&&(this.options.copyStyles||po(i))&&!Wc(i)||c)&&Yi(p,f),(i.scrollTop!==0||i.scrollLeft!==0)&&this.scrolledElements.push([f,i.scrollLeft,i.scrollTop]),(mo(i)||wo(i))&&(mo(f)||wo(f))&&(f.value=i.value),f}return i.cloneNode(!1)},s.prototype.resolvePseudoContent=function(i,c,l,f){var p=this;if(l){var C=l.content,y=c.ownerDocument;if(!(!y||!C||C==="none"||C==="-moz-alt-content"||l.display==="none")){this.counters.parse(new wc(this.context,l));var E=new vy(this.context,l),x=y.createElement("html2canvaspseudoelement");Yi(l,x),E.content.forEach(function(G){if(G.type===0)x.appendChild(y.createTextNode(G.value));else if(G.type===22){var Z=y.createElement("img");Z.src=G.value,Z.style.opacity="1",x.appendChild(Z)}else if(G.type===18){if(G.name==="attr"){var vA=G.values.filter(JA);vA.length&&x.appendChild(y.createTextNode(i.getAttribute(vA[0].value)||""))}else if(G.name==="counter"){var gA=G.values.filter(on),mA=gA[0],OA=gA[1];if(mA&&JA(mA)){var SA=p.counters.getCounterValue(mA.value),_A=OA&&JA(OA)?_i.parse(p.context,OA.value):3;x.appendChild(y.createTextNode(jn(SA,_A,!1)))}}else if(G.name==="counters"){var Ae=G.values.filter(on),mA=Ae[0],zA=Ae[1],OA=Ae[2];if(mA&&JA(mA)){var TA=p.counters.getCounterValues(mA.value),EA=OA&&JA(OA)?_i.parse(p.context,OA.value):3,PA=zA&&zA.type===0?zA.value:"",GA=TA.map(function(ye){return jn(ye,EA,!1)}).join(PA);x.appendChild(y.createTextNode(GA))}}}else if(G.type===20)switch(G.value){case"open-quote":x.appendChild(y.createTextNode(mc(E.quotes,p.quoteDepth++,!0)));break;case"close-quote":x.appendChild(y.createTextNode(mc(E.quotes,--p.quoteDepth,!1)));break;default:x.appendChild(y.createTextNode(G.value))}}),x.className=Ji+" "+Zi;var O=f===qn.BEFORE?" "+Ji:" "+Zi;return po(c)?c.className.baseValue+=O:c.className+=O,x}}},s.destroy=function(i){return i.parentNode?(i.parentNode.removeChild(i),!0):!1},s})(),qn;(function(s){s[s.BEFORE=0]="BEFORE",s[s.AFTER=1]="AFTER"})(qn||(qn={}));var QQ=function(s,i){var c=s.createElement("iframe");return c.className="html2canvas-container",c.style.visibility="hidden",c.style.position="fixed",c.style.left="-10000px",c.style.top="0px",c.style.border="0",c.width=i.width.toString(),c.height=i.height.toString(),c.scrolling="no",c.setAttribute(ru,"true"),s.body.appendChild(c),c},EQ=function(s){return new Promise(function(i){if(s.complete){i();return}if(!s.src){i();return}s.onload=i,s.onerror=i})},UQ=function(s){return Promise.all([].slice.call(s.images,0).map(EQ))},FQ=function(s){return new Promise(function(i,c){var l=s.contentWindow;if(!l)return c("No window assigned for iframe");var f=l.document;l.onload=s.onload=function(){l.onload=s.onload=null;var p=setInterval(function(){f.body.childNodes.length>0&&f.readyState==="complete"&&(clearInterval(p),i(s))},50)}})},bQ=["all","d","content"],Yi=function(s,i){for(var c=s.length-1;c>=0;c--){var l=s.item(c);bQ.indexOf(l)===-1&&i.style.setProperty(l,s.getPropertyValue(l))}return i},HQ=function(s){var i="";return s&&(i+="<!DOCTYPE ",s.name&&(i+=s.name),s.internalSubset&&(i+=s.internalSubset),s.publicId&&(i+='"'+s.publicId+'"'),s.systemId&&(i+='"'+s.systemId+'"'),i+=">"),i},IQ=function(s,i,c){s&&s.defaultView&&(i!==s.defaultView.pageXOffset||c!==s.defaultView.pageYOffset)&&s.defaultView.scrollTo(i,c)},_Q=function(s){var i=s[0],c=s[1],l=s[2];i.scrollLeft=c,i.scrollTop=l},SQ=":before",xQ=":after",Ji="___html2canvas___pseudoelement_before",Zi="___html2canvas___pseudoelement_after",iu=`{
|
|
32
32
|
content: "" !important;
|
|
33
33
|
display: none !important;
|
|
34
|
-
}`,
|
|
35
|
-
.`+ji+NQ+iu)},TQ=function(s,i){var u=s.ownerDocument;if(u){var l=u.createElement("style");l.textContent=i,s.appendChild(l)}},su=(function(){function s(){}return s.getOrigin=function(i){var u=s._link;return u?(u.href=i,u.href=u.href,u.protocol+u.hostname+u.port):"about:blank"},s.isSameOrigin=function(i){return s.getOrigin(i)===s._origin},s.setContext=function(i){s._link=i.document.createElement("a"),s._origin=s.getOrigin(i.location.href)},s._origin="about:blank",s})(),kQ=(function(){function s(i,u){this.context=i,this._options=u,this._cache={}}return s.prototype.addImage=function(i){var u=Promise.resolve();return this.has(i)||(As(i)||RQ(i))&&(this._cache[i]=this.loadImage(i)).catch(function(){}),u},s.prototype.match=function(i){return this._cache[i]},s.prototype.loadImage=function(i){return a(this,void 0,void 0,function(){var u,l,f,p,C=this;return c(this,function(Q){switch(Q.label){case 0:return u=su.isSameOrigin(i),l=!qi(i)&&this._options.useCORS===!0&&Be.SUPPORT_CORS_IMAGES&&!u,f=!qi(i)&&!u&&!As(i)&&typeof this._options.proxy=="string"&&Be.SUPPORT_CORS_XHR&&!l,!u&&this._options.allowTaint===!1&&!qi(i)&&!As(i)&&!f&&!l?[2]:(p=i,f?[4,this.proxy(p)]:[3,2]);case 1:p=Q.sent(),Q.label=2;case 2:return this.context.logger.debug("Added image "+i.substring(0,256)),[4,new Promise(function(E,N){var K=new Image;K.onload=function(){return E(K)},K.onerror=N,(VQ(p)||l)&&(K.crossOrigin="anonymous"),K.src=p,K.complete===!0&&setTimeout(function(){return E(K)},500),C._options.imageTimeout>0&&setTimeout(function(){return N("Timed out ("+C._options.imageTimeout+"ms) loading image")},C._options.imageTimeout)})];case 3:return[2,Q.sent()]}})})},s.prototype.has=function(i){return typeof this._cache[i]<"u"},s.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},s.prototype.proxy=function(i){var u=this,l=this._options.proxy;if(!l)throw new Error("No proxy defined");var f=i.substring(0,256);return new Promise(function(p,C){var Q=Be.SUPPORT_RESPONSE_TYPE?"blob":"text",E=new XMLHttpRequest;E.onload=function(){if(E.status===200)if(Q==="text")p(E.response);else{var X=new FileReader;X.addEventListener("load",function(){return p(X.result)},!1),X.addEventListener("error",function(j){return C(j)},!1),X.readAsDataURL(E.response)}else C("Failed to proxy resource "+f+" with status code "+E.status)},E.onerror=C;var N=l.indexOf("?")>-1?"&":"?";if(E.open("GET",""+l+N+"url="+encodeURIComponent(i)+"&responseType="+Q),Q!=="text"&&E instanceof XMLHttpRequest&&(E.responseType=Q),u._options.imageTimeout){var K=u._options.imageTimeout;E.timeout=K,E.ontimeout=function(){return C("Timed out ("+K+"ms) proxying "+f)}}E.send()})},s})(),MQ=/^data:image\/svg\+xml/i,OQ=/^data:image\/.*;base64,/i,KQ=/^data:image\/.*/i,RQ=function(s){return Be.SUPPORT_SVG_DRAWING||!PQ(s)},qi=function(s){return KQ.test(s)},VQ=function(s){return OQ.test(s)},As=function(s){return s.substr(0,4)==="blob"},PQ=function(s){return s.substr(-3).toLowerCase()==="svg"||MQ.test(s)},QA=(function(){function s(i,u){this.type=0,this.x=i,this.y=u}return s.prototype.add=function(i,u){return new s(this.x+i,this.y+u)},s})(),un=function(s,i,u){return new QA(s.x+(i.x-s.x)*u,s.y+(i.y-s.y)*u)},yo=(function(){function s(i,u,l,f){this.type=1,this.start=i,this.startControl=u,this.endControl=l,this.end=f}return s.prototype.subdivide=function(i,u){var l=un(this.start,this.startControl,i),f=un(this.startControl,this.endControl,i),p=un(this.endControl,this.end,i),C=un(l,f,i),Q=un(f,p,i),E=un(C,Q,i);return u?new s(this.start,l,C,E):new s(E,Q,p,this.end)},s.prototype.add=function(i,u){return new s(this.start.add(i,u),this.startControl.add(i,u),this.endControl.add(i,u),this.end.add(i,u))},s.prototype.reverse=function(){return new s(this.end,this.endControl,this.startControl,this.start)},s})(),De=function(s){return s.type===1},GQ=(function(){function s(i){var u=i.styles,l=i.bounds,f=$n(u.borderTopLeftRadius,l.width,l.height),p=f[0],C=f[1],Q=$n(u.borderTopRightRadius,l.width,l.height),E=Q[0],N=Q[1],K=$n(u.borderBottomRightRadius,l.width,l.height),X=K[0],j=K[1],CA=$n(u.borderBottomLeftRadius,l.width,l.height),BA=CA[0],wA=CA[1],RA=[];RA.push((p+E)/l.width),RA.push((BA+X)/l.width),RA.push((C+wA)/l.height),RA.push((N+j)/l.height);var DA=Math.max.apply(Math,RA);DA>1&&(p/=DA,C/=DA,E/=DA,N/=DA,X/=DA,j/=DA,BA/=DA,wA/=DA);var _A=l.width-E,te=l.height-j,XA=l.width-X,kA=l.height-wA,FA=u.borderTopWidth,zA=u.borderRightWidth,$A=u.borderBottomWidth,OA=u.borderLeftWidth,ue=Ae(u.paddingTop,i.bounds.width),Ee=Ae(u.paddingRight,i.bounds.width),_e=Ae(u.paddingBottom,i.bounds.width),qA=Ae(u.paddingLeft,i.bounds.width);this.topLeftBorderDoubleOuterBox=p>0||C>0?re(l.left+OA/3,l.top+FA/3,p-OA/3,C-FA/3,JA.TOP_LEFT):new QA(l.left+OA/3,l.top+FA/3),this.topRightBorderDoubleOuterBox=p>0||C>0?re(l.left+_A,l.top+FA/3,E-zA/3,N-FA/3,JA.TOP_RIGHT):new QA(l.left+l.width-zA/3,l.top+FA/3),this.bottomRightBorderDoubleOuterBox=X>0||j>0?re(l.left+XA,l.top+te,X-zA/3,j-$A/3,JA.BOTTOM_RIGHT):new QA(l.left+l.width-zA/3,l.top+l.height-$A/3),this.bottomLeftBorderDoubleOuterBox=BA>0||wA>0?re(l.left+OA/3,l.top+kA,BA-OA/3,wA-$A/3,JA.BOTTOM_LEFT):new QA(l.left+OA/3,l.top+l.height-$A/3),this.topLeftBorderDoubleInnerBox=p>0||C>0?re(l.left+OA*2/3,l.top+FA*2/3,p-OA*2/3,C-FA*2/3,JA.TOP_LEFT):new QA(l.left+OA*2/3,l.top+FA*2/3),this.topRightBorderDoubleInnerBox=p>0||C>0?re(l.left+_A,l.top+FA*2/3,E-zA*2/3,N-FA*2/3,JA.TOP_RIGHT):new QA(l.left+l.width-zA*2/3,l.top+FA*2/3),this.bottomRightBorderDoubleInnerBox=X>0||j>0?re(l.left+XA,l.top+te,X-zA*2/3,j-$A*2/3,JA.BOTTOM_RIGHT):new QA(l.left+l.width-zA*2/3,l.top+l.height-$A*2/3),this.bottomLeftBorderDoubleInnerBox=BA>0||wA>0?re(l.left+OA*2/3,l.top+kA,BA-OA*2/3,wA-$A*2/3,JA.BOTTOM_LEFT):new QA(l.left+OA*2/3,l.top+l.height-$A*2/3),this.topLeftBorderStroke=p>0||C>0?re(l.left+OA/2,l.top+FA/2,p-OA/2,C-FA/2,JA.TOP_LEFT):new QA(l.left+OA/2,l.top+FA/2),this.topRightBorderStroke=p>0||C>0?re(l.left+_A,l.top+FA/2,E-zA/2,N-FA/2,JA.TOP_RIGHT):new QA(l.left+l.width-zA/2,l.top+FA/2),this.bottomRightBorderStroke=X>0||j>0?re(l.left+XA,l.top+te,X-zA/2,j-$A/2,JA.BOTTOM_RIGHT):new QA(l.left+l.width-zA/2,l.top+l.height-$A/2),this.bottomLeftBorderStroke=BA>0||wA>0?re(l.left+OA/2,l.top+kA,BA-OA/2,wA-$A/2,JA.BOTTOM_LEFT):new QA(l.left+OA/2,l.top+l.height-$A/2),this.topLeftBorderBox=p>0||C>0?re(l.left,l.top,p,C,JA.TOP_LEFT):new QA(l.left,l.top),this.topRightBorderBox=E>0||N>0?re(l.left+_A,l.top,E,N,JA.TOP_RIGHT):new QA(l.left+l.width,l.top),this.bottomRightBorderBox=X>0||j>0?re(l.left+XA,l.top+te,X,j,JA.BOTTOM_RIGHT):new QA(l.left+l.width,l.top+l.height),this.bottomLeftBorderBox=BA>0||wA>0?re(l.left,l.top+kA,BA,wA,JA.BOTTOM_LEFT):new QA(l.left,l.top+l.height),this.topLeftPaddingBox=p>0||C>0?re(l.left+OA,l.top+FA,Math.max(0,p-OA),Math.max(0,C-FA),JA.TOP_LEFT):new QA(l.left+OA,l.top+FA),this.topRightPaddingBox=E>0||N>0?re(l.left+Math.min(_A,l.width-zA),l.top+FA,_A>l.width+zA?0:Math.max(0,E-zA),Math.max(0,N-FA),JA.TOP_RIGHT):new QA(l.left+l.width-zA,l.top+FA),this.bottomRightPaddingBox=X>0||j>0?re(l.left+Math.min(XA,l.width-OA),l.top+Math.min(te,l.height-$A),Math.max(0,X-zA),Math.max(0,j-$A),JA.BOTTOM_RIGHT):new QA(l.left+l.width-zA,l.top+l.height-$A),this.bottomLeftPaddingBox=BA>0||wA>0?re(l.left+OA,l.top+Math.min(kA,l.height-$A),Math.max(0,BA-OA),Math.max(0,wA-$A),JA.BOTTOM_LEFT):new QA(l.left+OA,l.top+l.height-$A),this.topLeftContentBox=p>0||C>0?re(l.left+OA+qA,l.top+FA+ue,Math.max(0,p-(OA+qA)),Math.max(0,C-(FA+ue)),JA.TOP_LEFT):new QA(l.left+OA+qA,l.top+FA+ue),this.topRightContentBox=E>0||N>0?re(l.left+Math.min(_A,l.width+OA+qA),l.top+FA+ue,_A>l.width+OA+qA?0:E-OA+qA,N-(FA+ue),JA.TOP_RIGHT):new QA(l.left+l.width-(zA+Ee),l.top+FA+ue),this.bottomRightContentBox=X>0||j>0?re(l.left+Math.min(XA,l.width-(OA+qA)),l.top+Math.min(te,l.height+FA+ue),Math.max(0,X-(zA+Ee)),j-($A+_e),JA.BOTTOM_RIGHT):new QA(l.left+l.width-(zA+Ee),l.top+l.height-($A+_e)),this.bottomLeftContentBox=BA>0||wA>0?re(l.left+OA+qA,l.top+kA,Math.max(0,BA-(OA+qA)),wA-($A+_e),JA.BOTTOM_LEFT):new QA(l.left+OA+qA,l.top+l.height-($A+_e))}return s})(),JA;(function(s){s[s.TOP_LEFT=0]="TOP_LEFT",s[s.TOP_RIGHT=1]="TOP_RIGHT",s[s.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",s[s.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(JA||(JA={}));var re=function(s,i,u,l,f){var p=4*((Math.sqrt(2)-1)/3),C=u*p,Q=l*p,E=s+u,N=i+l;switch(f){case JA.TOP_LEFT:return new yo(new QA(s,N),new QA(s,N-Q),new QA(E-C,i),new QA(E,i));case JA.TOP_RIGHT:return new yo(new QA(s,i),new QA(s+C,i),new QA(E,N-Q),new QA(E,N));case JA.BOTTOM_RIGHT:return new yo(new QA(E,i),new QA(E,i+Q),new QA(s+C,N),new QA(s,N));case JA.BOTTOM_LEFT:default:return new yo(new QA(E,N),new QA(E-C,N),new QA(s,i+Q),new QA(s,i))}},vo=function(s){return[s.topLeftBorderBox,s.topRightBorderBox,s.bottomRightBorderBox,s.bottomLeftBorderBox]},zQ=function(s){return[s.topLeftContentBox,s.topRightContentBox,s.bottomRightContentBox,s.bottomLeftContentBox]},Qo=function(s){return[s.topLeftPaddingBox,s.topRightPaddingBox,s.bottomRightPaddingBox,s.bottomLeftPaddingBox]},$Q=(function(){function s(i,u,l){this.offsetX=i,this.offsetY=u,this.matrix=l,this.type=0,this.target=6}return s})(),Eo=(function(){function s(i,u){this.path=i,this.target=u,this.type=1}return s})(),XQ=(function(){function s(i){this.opacity=i,this.type=2,this.target=6}return s})(),WQ=function(s){return s.type===0},au=function(s){return s.type===1},YQ=function(s){return s.type===2},lu=function(s,i){return s.length===i.length?s.some(function(u,l){return u===i[l]}):!1},JQ=function(s,i,u,l,f){return s.map(function(p,C){switch(C){case 0:return p.add(i,u);case 1:return p.add(i+l,u);case 2:return p.add(i+l,u+f);case 3:return p.add(i,u+f)}return p})},cu=(function(){function s(i){this.element=i,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return s})(),uu=(function(){function s(i,u){if(this.container=i,this.parent=u,this.effects=[],this.curves=new GQ(this.container),this.container.styles.opacity<1&&this.effects.push(new XQ(this.container.styles.opacity)),this.container.styles.transform!==null){var l=this.container.bounds.left+this.container.styles.transformOrigin[0].number,f=this.container.bounds.top+this.container.styles.transformOrigin[1].number,p=this.container.styles.transform;this.effects.push(new $Q(l,f,p))}if(this.container.styles.overflowX!==0){var C=vo(this.curves),Q=Qo(this.curves);lu(C,Q)?this.effects.push(new Eo(C,6)):(this.effects.push(new Eo(C,2)),this.effects.push(new Eo(Q,4)))}}return s.prototype.getEffects=function(i){for(var u=[2,3].indexOf(this.container.styles.position)===-1,l=this.parent,f=this.effects.slice(0);l;){var p=l.effects.filter(function(E){return!au(E)});if(u||l.container.styles.position!==0||!l.parent){if(f.unshift.apply(f,p),u=[2,3].indexOf(l.container.styles.position)===-1,l.container.styles.overflowX!==0){var C=vo(l.curves),Q=Qo(l.curves);lu(C,Q)||f.unshift(new Eo(Q,6))}}else f.unshift.apply(f,p);l=l.parent}return f.filter(function(E){return fe(E.target,i)})},s})(),es=function(s,i,u,l){s.container.elements.forEach(function(f){var p=fe(f.flags,4),C=fe(f.flags,2),Q=new uu(f,s);fe(f.styles.display,2048)&&l.push(Q);var E=fe(f.flags,8)?[]:l;if(p||C){var N=p||f.styles.isPositioned()?u:i,K=new cu(Q);if(f.styles.isPositioned()||f.styles.opacity<1||f.styles.isTransformed()){var X=f.styles.zIndex.order;if(X<0){var j=0;N.negativeZIndex.some(function(BA,wA){return X>BA.element.container.styles.zIndex.order?(j=wA,!1):j>0}),N.negativeZIndex.splice(j,0,K)}else if(X>0){var CA=0;N.positiveZIndex.some(function(BA,wA){return X>=BA.element.container.styles.zIndex.order?(CA=wA+1,!1):CA>0}),N.positiveZIndex.splice(CA,0,K)}else N.zeroOrAutoZIndexOrTransformedOrOpacity.push(K)}else f.styles.isFloating()?N.nonPositionedFloats.push(K):N.nonPositionedInlineLevel.push(K);es(Q,K,p?K:u,E)}else f.styles.isInlineLevel()?i.inlineLevel.push(Q):i.nonInlineLevel.push(Q),es(Q,i,u,E);fe(f.flags,8)&&du(f,E)})},du=function(s,i){for(var u=s instanceof Gi?s.start:1,l=s instanceof Gi?s.reversed:!1,f=0;f<i.length;f++){var p=i[f];p.container instanceof kc&&typeof p.container.value=="number"&&p.container.value!==0&&(u=p.container.value),p.listValue=jn(u,p.container.styles.listStyleType,!0),u+=l?-1:1}},ZQ=function(s){var i=new uu(s,null),u=new cu(i),l=[];return es(i,u,u,l),du(i.container,l),u},fu=function(s,i){switch(i){case 0:return Ne(s.topLeftBorderBox,s.topLeftPaddingBox,s.topRightBorderBox,s.topRightPaddingBox);case 1:return Ne(s.topRightBorderBox,s.topRightPaddingBox,s.bottomRightBorderBox,s.bottomRightPaddingBox);case 2:return Ne(s.bottomRightBorderBox,s.bottomRightPaddingBox,s.bottomLeftBorderBox,s.bottomLeftPaddingBox);default:return Ne(s.bottomLeftBorderBox,s.bottomLeftPaddingBox,s.topLeftBorderBox,s.topLeftPaddingBox)}},jQ=function(s,i){switch(i){case 0:return Ne(s.topLeftBorderBox,s.topLeftBorderDoubleOuterBox,s.topRightBorderBox,s.topRightBorderDoubleOuterBox);case 1:return Ne(s.topRightBorderBox,s.topRightBorderDoubleOuterBox,s.bottomRightBorderBox,s.bottomRightBorderDoubleOuterBox);case 2:return Ne(s.bottomRightBorderBox,s.bottomRightBorderDoubleOuterBox,s.bottomLeftBorderBox,s.bottomLeftBorderDoubleOuterBox);default:return Ne(s.bottomLeftBorderBox,s.bottomLeftBorderDoubleOuterBox,s.topLeftBorderBox,s.topLeftBorderDoubleOuterBox)}},qQ=function(s,i){switch(i){case 0:return Ne(s.topLeftBorderDoubleInnerBox,s.topLeftPaddingBox,s.topRightBorderDoubleInnerBox,s.topRightPaddingBox);case 1:return Ne(s.topRightBorderDoubleInnerBox,s.topRightPaddingBox,s.bottomRightBorderDoubleInnerBox,s.bottomRightPaddingBox);case 2:return Ne(s.bottomRightBorderDoubleInnerBox,s.bottomRightPaddingBox,s.bottomLeftBorderDoubleInnerBox,s.bottomLeftPaddingBox);default:return Ne(s.bottomLeftBorderDoubleInnerBox,s.bottomLeftPaddingBox,s.topLeftBorderDoubleInnerBox,s.topLeftPaddingBox)}},AE=function(s,i){switch(i){case 0:return Fo(s.topLeftBorderStroke,s.topRightBorderStroke);case 1:return Fo(s.topRightBorderStroke,s.bottomRightBorderStroke);case 2:return Fo(s.bottomRightBorderStroke,s.bottomLeftBorderStroke);default:return Fo(s.bottomLeftBorderStroke,s.topLeftBorderStroke)}},Fo=function(s,i){var u=[];return De(s)?u.push(s.subdivide(.5,!1)):u.push(s),De(i)?u.push(i.subdivide(.5,!0)):u.push(i),u},Ne=function(s,i,u,l){var f=[];return De(s)?f.push(s.subdivide(.5,!1)):f.push(s),De(u)?f.push(u.subdivide(.5,!0)):f.push(u),De(l)?f.push(l.subdivide(.5,!0).reverse()):f.push(l),De(i)?f.push(i.subdivide(.5,!1).reverse()):f.push(i),f},gu=function(s){var i=s.bounds,u=s.styles;return i.add(u.borderLeftWidth,u.borderTopWidth,-(u.borderRightWidth+u.borderLeftWidth),-(u.borderTopWidth+u.borderBottomWidth))},Uo=function(s){var i=s.styles,u=s.bounds,l=Ae(i.paddingLeft,u.width),f=Ae(i.paddingRight,u.width),p=Ae(i.paddingTop,u.width),C=Ae(i.paddingBottom,u.width);return u.add(l+i.borderLeftWidth,p+i.borderTopWidth,-(i.borderRightWidth+i.borderLeftWidth+l+f),-(i.borderTopWidth+i.borderBottomWidth+p+C))},eE=function(s,i){return s===0?i.bounds:s===2?Uo(i):gu(i)},tE=function(s,i){return s===0?i.bounds:s===2?Uo(i):gu(i)},ts=function(s,i,u){var l=eE(fn(s.styles.backgroundOrigin,i),s),f=tE(fn(s.styles.backgroundClip,i),s),p=nE(fn(s.styles.backgroundSize,i),u,l),C=p[0],Q=p[1],E=$n(fn(s.styles.backgroundPosition,i),l.width-C,l.height-Q);return[rE(fn(s.styles.backgroundRepeat,i),E,p,l,f),Math.round(l.left+E[0]),Math.round(l.top+E[1]),C,Q]},dn=function(s){return jA(s)&&s.value===sn.AUTO},bo=function(s){return typeof s=="number"},nE=function(s,i,u){var l=i[0],f=i[1],p=i[2],C=s[0],Q=s[1];if(!C)return[0,0];if(ce(C)&&Q&&ce(Q))return[Ae(C,u.width),Ae(Q,u.height)];var E=bo(p);if(jA(C)&&(C.value===sn.CONTAIN||C.value===sn.COVER))return bo(p)?u.width/u.height<p!=(C.value===sn.COVER)?[u.width,u.width/p]:[u.height*p,u.height]:[u.width,u.height];var N=bo(l),K=bo(f),X=N||K;if(dn(C)&&(!Q||dn(Q)))return N&&K?[l,f]:!E&&!X?[u.width,u.height]:X&&E?[N?l:f*p,K?f:l/p]:[N?l:u.width,K?f:u.height];if(E){var j=0,CA=0;return ce(C)?j=Ae(C,u.width):ce(Q)&&(CA=Ae(Q,u.height)),dn(C)?j=CA*p:(!Q||dn(Q))&&(CA=j/p),[j,CA]}var BA=null,wA=null;if(ce(C)?BA=Ae(C,u.width):Q&&ce(Q)&&(wA=Ae(Q,u.height)),BA!==null&&(!Q||dn(Q))&&(wA=N&&K?BA/l*f:u.height),wA!==null&&dn(C)&&(BA=N&&K?wA/f*l:u.width),BA!==null&&wA!==null)return[BA,wA];throw new Error("Unable to calculate background-size for element")},fn=function(s,i){var u=s[i];return typeof u>"u"?s[0]:u},rE=function(s,i,u,l,f){var p=i[0],C=i[1],Q=u[0],E=u[1];switch(s){case 2:return[new QA(Math.round(l.left),Math.round(l.top+C)),new QA(Math.round(l.left+l.width),Math.round(l.top+C)),new QA(Math.round(l.left+l.width),Math.round(E+l.top+C)),new QA(Math.round(l.left),Math.round(E+l.top+C))];case 3:return[new QA(Math.round(l.left+p),Math.round(l.top)),new QA(Math.round(l.left+p+Q),Math.round(l.top)),new QA(Math.round(l.left+p+Q),Math.round(l.height+l.top)),new QA(Math.round(l.left+p),Math.round(l.height+l.top))];case 1:return[new QA(Math.round(l.left+p),Math.round(l.top+C)),new QA(Math.round(l.left+p+Q),Math.round(l.top+C)),new QA(Math.round(l.left+p+Q),Math.round(l.top+C+E)),new QA(Math.round(l.left+p),Math.round(l.top+C+E))];default:return[new QA(Math.round(f.left),Math.round(f.top)),new QA(Math.round(f.left+f.width),Math.round(f.top)),new QA(Math.round(f.left+f.width),Math.round(f.height+f.top)),new QA(Math.round(f.left),Math.round(f.height+f.top))]}},oE="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",hu="Hidden Text",iE=(function(){function s(i){this._data={},this._document=i}return s.prototype.parseMetrics=function(i,u){var l=this._document.createElement("div"),f=this._document.createElement("img"),p=this._document.createElement("span"),C=this._document.body;l.style.visibility="hidden",l.style.fontFamily=i,l.style.fontSize=u,l.style.margin="0",l.style.padding="0",l.style.whiteSpace="nowrap",C.appendChild(l),f.src=oE,f.width=1,f.height=1,f.style.margin="0",f.style.padding="0",f.style.verticalAlign="baseline",p.style.fontFamily=i,p.style.fontSize=u,p.style.margin="0",p.style.padding="0",p.appendChild(this._document.createTextNode(hu)),l.appendChild(p),l.appendChild(f);var Q=f.offsetTop-p.offsetTop+2;l.removeChild(p),l.appendChild(this._document.createTextNode(hu)),l.style.lineHeight="normal",f.style.verticalAlign="super";var E=f.offsetTop-l.offsetTop+2;return C.removeChild(l),{baseline:Q,middle:E}},s.prototype.getMetrics=function(i,u){var l=i+" "+u;return typeof this._data[l]>"u"&&(this._data[l]=this.parseMetrics(i,u)),this._data[l]},s})(),Bu=(function(){function s(i,u){this.context=i,this.options=u}return s})(),sE=1e4,aE=(function(s){n(i,s);function i(u,l){var f=s.call(this,u,l)||this;return f._activeEffects=[],f.canvas=l.canvas?l.canvas:document.createElement("canvas"),f.ctx=f.canvas.getContext("2d"),l.canvas||(f.canvas.width=Math.floor(l.width*l.scale),f.canvas.height=Math.floor(l.height*l.scale),f.canvas.style.width=l.width+"px",f.canvas.style.height=l.height+"px"),f.fontMetrics=new iE(document),f.ctx.scale(f.options.scale,f.options.scale),f.ctx.translate(-l.x,-l.y),f.ctx.textBaseline="bottom",f._activeEffects=[],f.context.logger.debug("Canvas renderer initialized ("+l.width+"x"+l.height+") with scale "+l.scale),f}return i.prototype.applyEffects=function(u){for(var l=this;this._activeEffects.length;)this.popEffect();u.forEach(function(f){return l.applyEffect(f)})},i.prototype.applyEffect=function(u){this.ctx.save(),YQ(u)&&(this.ctx.globalAlpha=u.opacity),WQ(u)&&(this.ctx.translate(u.offsetX,u.offsetY),this.ctx.transform(u.matrix[0],u.matrix[1],u.matrix[2],u.matrix[3],u.matrix[4],u.matrix[5]),this.ctx.translate(-u.offsetX,-u.offsetY)),au(u)&&(this.path(u.path),this.ctx.clip()),this._activeEffects.push(u)},i.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},i.prototype.renderStack=function(u){return a(this,void 0,void 0,function(){var l;return c(this,function(f){switch(f.label){case 0:return l=u.element.container.styles,l.isVisible()?[4,this.renderStackContent(u)]:[3,2];case 1:f.sent(),f.label=2;case 2:return[2]}})})},i.prototype.renderNode=function(u){return a(this,void 0,void 0,function(){return c(this,function(l){switch(l.label){case 0:if(fe(u.container.flags,16))debugger;return u.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(u)]:[3,3];case 1:return l.sent(),[4,this.renderNodeContent(u)];case 2:l.sent(),l.label=3;case 3:return[2]}})})},i.prototype.renderTextWithLetterSpacing=function(u,l,f){var p=this;l===0?this.ctx.fillText(u.text,u.bounds.left,u.bounds.top+f):Pi(u.text).reduce(function(C,Q){return p.ctx.fillText(Q,C,u.bounds.top+f),C+p.ctx.measureText(Q).width},u.bounds.left)},i.prototype.createFontStyle=function(u){var l=u.fontVariant.filter(function(C){return C==="normal"||C==="small-caps"}).join(""),f=fE(u.fontFamily).join(", "),p=zn(u.fontSize)?""+u.fontSize.number+u.fontSize.unit:u.fontSize.number+"px";return[[u.fontStyle,l,u.fontWeight,p,f].join(" "),f,p]},i.prototype.renderTextNode=function(u,l){return a(this,void 0,void 0,function(){var f,p,C,Q,E,N,K,X,j=this;return c(this,function(CA){return f=this.createFontStyle(l),p=f[0],C=f[1],Q=f[2],this.ctx.font=p,this.ctx.direction=l.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",E=this.fontMetrics.getMetrics(C,Q),N=E.baseline,K=E.middle,X=l.paintOrder,u.textBounds.forEach(function(BA){X.forEach(function(wA){switch(wA){case 0:j.ctx.fillStyle=ge(l.color),j.renderTextWithLetterSpacing(BA,l.letterSpacing,N);var RA=l.textShadow;RA.length&&BA.text.trim().length&&(RA.slice(0).reverse().forEach(function(DA){j.ctx.shadowColor=ge(DA.color),j.ctx.shadowOffsetX=DA.offsetX.number*j.options.scale,j.ctx.shadowOffsetY=DA.offsetY.number*j.options.scale,j.ctx.shadowBlur=DA.blur.number,j.renderTextWithLetterSpacing(BA,l.letterSpacing,N)}),j.ctx.shadowColor="",j.ctx.shadowOffsetX=0,j.ctx.shadowOffsetY=0,j.ctx.shadowBlur=0),l.textDecorationLine.length&&(j.ctx.fillStyle=ge(l.textDecorationColor||l.color),l.textDecorationLine.forEach(function(DA){switch(DA){case 1:j.ctx.fillRect(BA.bounds.left,Math.round(BA.bounds.top+N),BA.bounds.width,1);break;case 2:j.ctx.fillRect(BA.bounds.left,Math.round(BA.bounds.top),BA.bounds.width,1);break;case 3:j.ctx.fillRect(BA.bounds.left,Math.ceil(BA.bounds.top+K),BA.bounds.width,1);break}}));break;case 1:l.webkitTextStrokeWidth&&BA.text.trim().length&&(j.ctx.strokeStyle=ge(l.webkitTextStrokeColor),j.ctx.lineWidth=l.webkitTextStrokeWidth,j.ctx.lineJoin=window.chrome?"miter":"round",j.ctx.strokeText(BA.text,BA.bounds.left,BA.bounds.top+N)),j.ctx.strokeStyle="",j.ctx.lineWidth=0,j.ctx.lineJoin="miter";break}})}),[2]})})},i.prototype.renderReplacedElement=function(u,l,f){if(f&&u.intrinsicWidth>0&&u.intrinsicHeight>0){var p=Uo(u),C=Qo(l);this.path(C),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(f,0,0,u.intrinsicWidth,u.intrinsicHeight,p.left,p.top,p.width,p.height),this.ctx.restore()}},i.prototype.renderNodeContent=function(u){return a(this,void 0,void 0,function(){var l,f,p,C,Q,E,_A,_A,N,K,X,j,XA,CA,BA,kA,wA,RA,DA,_A,te,XA,kA;return c(this,function(FA){switch(FA.label){case 0:this.applyEffects(u.getEffects(4)),l=u.container,f=u.curves,p=l.styles,C=0,Q=l.textNodes,FA.label=1;case 1:return C<Q.length?(E=Q[C],[4,this.renderTextNode(E,p)]):[3,4];case 2:FA.sent(),FA.label=3;case 3:return C++,[3,1];case 4:if(!(l instanceof Nc))return[3,8];FA.label=5;case 5:return FA.trys.push([5,7,,8]),[4,this.context.cache.match(l.src)];case 6:return _A=FA.sent(),this.renderReplacedElement(l,f,_A),[3,8];case 7:return FA.sent(),this.context.logger.error("Error loading image "+l.src),[3,8];case 8:if(l instanceof Lc&&this.renderReplacedElement(l,f,l.canvas),!(l instanceof Tc))return[3,12];FA.label=9;case 9:return FA.trys.push([9,11,,12]),[4,this.context.cache.match(l.svg)];case 10:return _A=FA.sent(),this.renderReplacedElement(l,f,_A),[3,12];case 11:return FA.sent(),this.context.logger.error("Error loading svg "+l.svg.substring(0,255)),[3,12];case 12:return l instanceof Rc&&l.tree?(N=new i(this.context,{scale:this.options.scale,backgroundColor:l.backgroundColor,x:0,y:0,width:l.width,height:l.height}),[4,N.render(l.tree)]):[3,14];case 13:K=FA.sent(),l.width&&l.height&&this.ctx.drawImage(K,0,0,l.width,l.height,l.bounds.left,l.bounds.top,l.bounds.width,l.bounds.height),FA.label=14;case 14:if(l instanceof zi&&(X=Math.min(l.bounds.width,l.bounds.height),l.type===ho?l.checked&&(this.ctx.save(),this.path([new QA(l.bounds.left+X*.39363,l.bounds.top+X*.79),new QA(l.bounds.left+X*.16,l.bounds.top+X*.5549),new QA(l.bounds.left+X*.27347,l.bounds.top+X*.44071),new QA(l.bounds.left+X*.39694,l.bounds.top+X*.5649),new QA(l.bounds.left+X*.72983,l.bounds.top+X*.23),new QA(l.bounds.left+X*.84,l.bounds.top+X*.34085),new QA(l.bounds.left+X*.39363,l.bounds.top+X*.79)]),this.ctx.fillStyle=ge(Mc),this.ctx.fill(),this.ctx.restore()):l.type===Bo&&l.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(l.bounds.left+X/2,l.bounds.top+X/2,X/4,0,Math.PI*2,!0),this.ctx.fillStyle=ge(Mc),this.ctx.fill(),this.ctx.restore())),lE(l)&&l.value.length){switch(j=this.createFontStyle(p),XA=j[0],CA=j[1],BA=this.fontMetrics.getMetrics(XA,CA).baseline,this.ctx.font=XA,this.ctx.fillStyle=ge(p.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=uE(l.styles.textAlign),kA=Uo(l),wA=0,l.styles.textAlign){case 1:wA+=kA.width/2;break;case 2:wA+=kA.width;break}RA=kA.add(wA,0,0,-kA.height/2+1),this.ctx.save(),this.path([new QA(kA.left,kA.top),new QA(kA.left+kA.width,kA.top),new QA(kA.left+kA.width,kA.top+kA.height),new QA(kA.left,kA.top+kA.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Jn(l.value,RA),p.letterSpacing,BA),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!fe(l.styles.display,2048))return[3,20];if(l.styles.listStyleImage===null)return[3,19];if(DA=l.styles.listStyleImage,DA.type!==0)return[3,18];_A=void 0,te=DA.url,FA.label=15;case 15:return FA.trys.push([15,17,,18]),[4,this.context.cache.match(te)];case 16:return _A=FA.sent(),this.ctx.drawImage(_A,l.bounds.left-(_A.width+10),l.bounds.top),[3,18];case 17:return FA.sent(),this.context.logger.error("Error loading list-style-image "+te),[3,18];case 18:return[3,20];case 19:u.listValue&&l.styles.listStyleType!==-1&&(XA=this.createFontStyle(p)[0],this.ctx.font=XA,this.ctx.fillStyle=ge(p.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",kA=new h(l.bounds.left,l.bounds.top+Ae(l.styles.paddingTop,l.bounds.width),l.bounds.width,hc(p.lineHeight,p.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Jn(u.listValue,kA),p.letterSpacing,hc(p.lineHeight,p.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),FA.label=20;case 20:return[2]}})})},i.prototype.renderStackContent=function(u){return a(this,void 0,void 0,function(){var l,f,DA,p,C,DA,Q,E,DA,N,K,DA,X,j,DA,CA,BA,DA,wA,RA,DA;return c(this,function(_A){switch(_A.label){case 0:if(fe(u.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(u.element)];case 1:_A.sent(),l=0,f=u.negativeZIndex,_A.label=2;case 2:return l<f.length?(DA=f[l],[4,this.renderStack(DA)]):[3,5];case 3:_A.sent(),_A.label=4;case 4:return l++,[3,2];case 5:return[4,this.renderNodeContent(u.element)];case 6:_A.sent(),p=0,C=u.nonInlineLevel,_A.label=7;case 7:return p<C.length?(DA=C[p],[4,this.renderNode(DA)]):[3,10];case 8:_A.sent(),_A.label=9;case 9:return p++,[3,7];case 10:Q=0,E=u.nonPositionedFloats,_A.label=11;case 11:return Q<E.length?(DA=E[Q],[4,this.renderStack(DA)]):[3,14];case 12:_A.sent(),_A.label=13;case 13:return Q++,[3,11];case 14:N=0,K=u.nonPositionedInlineLevel,_A.label=15;case 15:return N<K.length?(DA=K[N],[4,this.renderStack(DA)]):[3,18];case 16:_A.sent(),_A.label=17;case 17:return N++,[3,15];case 18:X=0,j=u.inlineLevel,_A.label=19;case 19:return X<j.length?(DA=j[X],[4,this.renderNode(DA)]):[3,22];case 20:_A.sent(),_A.label=21;case 21:return X++,[3,19];case 22:CA=0,BA=u.zeroOrAutoZIndexOrTransformedOrOpacity,_A.label=23;case 23:return CA<BA.length?(DA=BA[CA],[4,this.renderStack(DA)]):[3,26];case 24:_A.sent(),_A.label=25;case 25:return CA++,[3,23];case 26:wA=0,RA=u.positiveZIndex,_A.label=27;case 27:return wA<RA.length?(DA=RA[wA],[4,this.renderStack(DA)]):[3,30];case 28:_A.sent(),_A.label=29;case 29:return wA++,[3,27];case 30:return[2]}})})},i.prototype.mask=function(u){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(u.slice(0).reverse()),this.ctx.closePath()},i.prototype.path=function(u){this.ctx.beginPath(),this.formatPath(u),this.ctx.closePath()},i.prototype.formatPath=function(u){var l=this;u.forEach(function(f,p){var C=De(f)?f.start:f;p===0?l.ctx.moveTo(C.x,C.y):l.ctx.lineTo(C.x,C.y),De(f)&&l.ctx.bezierCurveTo(f.startControl.x,f.startControl.y,f.endControl.x,f.endControl.y,f.end.x,f.end.y)})},i.prototype.renderRepeat=function(u,l,f,p){this.path(u),this.ctx.fillStyle=l,this.ctx.translate(f,p),this.ctx.fill(),this.ctx.translate(-f,-p)},i.prototype.resizeImage=function(u,l,f){var p;if(u.width===l&&u.height===f)return u;var C=((p=this.canvas.ownerDocument)!==null&&p!==void 0?p:document).createElement("canvas");return C.width=Math.max(1,l),C.height=Math.max(1,f),C.getContext("2d").drawImage(u,0,0,u.width,u.height,0,0,l,f),C},i.prototype.renderBackgroundImage=function(u){return a(this,void 0,void 0,function(){var l,f,p,C,Q,E;return c(this,function(N){switch(N.label){case 0:l=u.styles.backgroundImage.length-1,f=function(K){var X,j,CA,ue,Fe,Ue,qA,pe,$A,BA,ue,Fe,Ue,qA,pe,wA,RA,DA,_A,te,XA,kA,FA,zA,$A,OA,ue,Ee,_e,qA,pe,bt,Fe,Ue,Rt,je,It,Vt,Pt,ut,Gt,dt;return c(this,function(gn){switch(gn.label){case 0:if(K.type!==0)return[3,5];X=void 0,j=K.url,gn.label=1;case 1:return gn.trys.push([1,3,,4]),[4,p.context.cache.match(j)];case 2:return X=gn.sent(),[3,4];case 3:return gn.sent(),p.context.logger.error("Error loading background-image "+j),[3,4];case 4:return X&&(CA=ts(u,l,[X.width,X.height,X.width/X.height]),ue=CA[0],Fe=CA[1],Ue=CA[2],qA=CA[3],pe=CA[4],$A=p.ctx.createPattern(p.resizeImage(X,qA,pe),"repeat"),p.renderRepeat(ue,$A,Fe,Ue)),[3,6];case 5:Ay(K)?(BA=ts(u,l,[null,null,null]),ue=BA[0],Fe=BA[1],Ue=BA[2],qA=BA[3],pe=BA[4],wA=YC(K.angle,qA,pe),RA=wA[0],DA=wA[1],_A=wA[2],te=wA[3],XA=wA[4],kA=document.createElement("canvas"),kA.width=qA,kA.height=pe,FA=kA.getContext("2d"),zA=FA.createLinearGradient(DA,te,_A,XA),rc(K.stops,RA).forEach(function(Ar){return zA.addColorStop(Ar.stop,ge(Ar.color))}),FA.fillStyle=zA,FA.fillRect(0,0,qA,pe),qA>0&&pe>0&&($A=p.ctx.createPattern(kA,"repeat"),p.renderRepeat(ue,$A,Fe,Ue))):ey(K)&&(OA=ts(u,l,[null,null,null]),ue=OA[0],Ee=OA[1],_e=OA[2],qA=OA[3],pe=OA[4],bt=K.position.length===0?[Ii]:K.position,Fe=Ae(bt[0],qA),Ue=Ae(bt[bt.length-1],pe),Rt=JC(K,Fe,Ue,qA,pe),je=Rt[0],It=Rt[1],je>0&&It>0&&(Vt=p.ctx.createRadialGradient(Ee+Fe,_e+Ue,0,Ee+Fe,_e+Ue,je),rc(K.stops,je*2).forEach(function(Ar){return Vt.addColorStop(Ar.stop,ge(Ar.color))}),p.path(ue),p.ctx.fillStyle=Vt,je!==It?(Pt=u.bounds.left+.5*u.bounds.width,ut=u.bounds.top+.5*u.bounds.height,Gt=It/je,dt=1/Gt,p.ctx.save(),p.ctx.translate(Pt,ut),p.ctx.transform(1,0,0,Gt,0,0),p.ctx.translate(-Pt,-ut),p.ctx.fillRect(Ee,dt*(_e-ut)+ut,qA,pe*dt),p.ctx.restore()):p.ctx.fill())),gn.label=6;case 6:return l--,[2]}})},p=this,C=0,Q=u.styles.backgroundImage.slice(0).reverse(),N.label=1;case 1:return C<Q.length?(E=Q[C],[5,f(E)]):[3,4];case 2:N.sent(),N.label=3;case 3:return C++,[3,1];case 4:return[2]}})})},i.prototype.renderSolidBorder=function(u,l,f){return a(this,void 0,void 0,function(){return c(this,function(p){return this.path(fu(f,l)),this.ctx.fillStyle=ge(u),this.ctx.fill(),[2]})})},i.prototype.renderDoubleBorder=function(u,l,f,p){return a(this,void 0,void 0,function(){var C,Q;return c(this,function(E){switch(E.label){case 0:return l<3?[4,this.renderSolidBorder(u,f,p)]:[3,2];case 1:return E.sent(),[2];case 2:return C=jQ(p,f),this.path(C),this.ctx.fillStyle=ge(u),this.ctx.fill(),Q=qQ(p,f),this.path(Q),this.ctx.fill(),[2]}})})},i.prototype.renderNodeBackgroundAndBorders=function(u){return a(this,void 0,void 0,function(){var l,f,p,C,Q,E,N,K,X=this;return c(this,function(j){switch(j.label){case 0:return this.applyEffects(u.getEffects(2)),l=u.container.styles,f=!Qt(l.backgroundColor)||l.backgroundImage.length,p=[{style:l.borderTopStyle,color:l.borderTopColor,width:l.borderTopWidth},{style:l.borderRightStyle,color:l.borderRightColor,width:l.borderRightWidth},{style:l.borderBottomStyle,color:l.borderBottomColor,width:l.borderBottomWidth},{style:l.borderLeftStyle,color:l.borderLeftColor,width:l.borderLeftWidth}],C=cE(fn(l.backgroundClip,0),u.curves),f||l.boxShadow.length?(this.ctx.save(),this.path(C),this.ctx.clip(),Qt(l.backgroundColor)||(this.ctx.fillStyle=ge(l.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(u.container)]):[3,2];case 1:j.sent(),this.ctx.restore(),l.boxShadow.slice(0).reverse().forEach(function(CA){X.ctx.save();var BA=vo(u.curves),wA=CA.inset?0:sE,RA=JQ(BA,-wA+(CA.inset?1:-1)*CA.spread.number,(CA.inset?1:-1)*CA.spread.number,CA.spread.number*(CA.inset?-2:2),CA.spread.number*(CA.inset?-2:2));CA.inset?(X.path(BA),X.ctx.clip(),X.mask(RA)):(X.mask(BA),X.ctx.clip(),X.path(RA)),X.ctx.shadowOffsetX=CA.offsetX.number+wA,X.ctx.shadowOffsetY=CA.offsetY.number,X.ctx.shadowColor=ge(CA.color),X.ctx.shadowBlur=CA.blur.number,X.ctx.fillStyle=CA.inset?ge(CA.color):"rgba(0,0,0,1)",X.ctx.fill(),X.ctx.restore()}),j.label=2;case 2:Q=0,E=0,N=p,j.label=3;case 3:return E<N.length?(K=N[E],K.style!==0&&!Qt(K.color)&&K.width>0?K.style!==2?[3,5]:[4,this.renderDashedDottedBorder(K.color,K.width,Q,u.curves,2)]:[3,11]):[3,13];case 4:return j.sent(),[3,11];case 5:return K.style!==3?[3,7]:[4,this.renderDashedDottedBorder(K.color,K.width,Q,u.curves,3)];case 6:return j.sent(),[3,11];case 7:return K.style!==4?[3,9]:[4,this.renderDoubleBorder(K.color,K.width,Q,u.curves)];case 8:return j.sent(),[3,11];case 9:return[4,this.renderSolidBorder(K.color,Q,u.curves)];case 10:j.sent(),j.label=11;case 11:Q++,j.label=12;case 12:return E++,[3,3];case 13:return[2]}})})},i.prototype.renderDashedDottedBorder=function(u,l,f,p,C){return a(this,void 0,void 0,function(){var Q,E,N,K,X,j,CA,BA,wA,RA,DA,_A,te,XA,kA,FA,kA,FA;return c(this,function(zA){return this.ctx.save(),Q=AE(p,f),E=fu(p,f),C===2&&(this.path(E),this.ctx.clip()),De(E[0])?(N=E[0].start.x,K=E[0].start.y):(N=E[0].x,K=E[0].y),De(E[1])?(X=E[1].end.x,j=E[1].end.y):(X=E[1].x,j=E[1].y),f===0||f===2?CA=Math.abs(N-X):CA=Math.abs(K-j),this.ctx.beginPath(),C===3?this.formatPath(Q):this.formatPath(E.slice(0,2)),BA=l<3?l*3:l*2,wA=l<3?l*2:l,C===3&&(BA=l,wA=l),RA=!0,CA<=BA*2?RA=!1:CA<=BA*2+wA?(DA=CA/(2*BA+wA),BA*=DA,wA*=DA):(_A=Math.floor((CA+wA)/(BA+wA)),te=(CA-_A*BA)/(_A-1),XA=(CA-(_A+1)*BA)/_A,wA=XA<=0||Math.abs(wA-te)<Math.abs(wA-XA)?te:XA),RA&&(C===3?this.ctx.setLineDash([0,BA+wA]):this.ctx.setLineDash([BA,wA])),C===3?(this.ctx.lineCap="round",this.ctx.lineWidth=l):this.ctx.lineWidth=l*2+1.1,this.ctx.strokeStyle=ge(u),this.ctx.stroke(),this.ctx.setLineDash([]),C===2&&(De(E[0])&&(kA=E[3],FA=E[0],this.ctx.beginPath(),this.formatPath([new QA(kA.end.x,kA.end.y),new QA(FA.start.x,FA.start.y)]),this.ctx.stroke()),De(E[1])&&(kA=E[1],FA=E[2],this.ctx.beginPath(),this.formatPath([new QA(kA.end.x,kA.end.y),new QA(FA.start.x,FA.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},i.prototype.render=function(u){return a(this,void 0,void 0,function(){var l;return c(this,function(f){switch(f.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ge(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),l=ZQ(u),[4,this.renderStack(l)];case 1:return f.sent(),this.applyEffects([]),[2,this.canvas]}})})},i})(Bu),lE=function(s){return s instanceof Kc||s instanceof Oc?!0:s instanceof zi&&s.type!==Bo&&s.type!==ho},cE=function(s,i){switch(s){case 0:return vo(i);case 2:return zQ(i);default:return Qo(i)}},uE=function(s){switch(s){case 1:return"center";case 2:return"right";default:return"left"}},dE=["-apple-system","system-ui"],fE=function(s){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?s.filter(function(i){return dE.indexOf(i)===-1}):s},gE=(function(s){n(i,s);function i(u,l){var f=s.call(this,u,l)||this;return f.canvas=l.canvas?l.canvas:document.createElement("canvas"),f.ctx=f.canvas.getContext("2d"),f.options=l,f.canvas.width=Math.floor(l.width*l.scale),f.canvas.height=Math.floor(l.height*l.scale),f.canvas.style.width=l.width+"px",f.canvas.style.height=l.height+"px",f.ctx.scale(f.options.scale,f.options.scale),f.ctx.translate(-l.x,-l.y),f.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+l.width+"x"+l.height+" at "+l.x+","+l.y+") with scale "+l.scale),f}return i.prototype.render=function(u){return a(this,void 0,void 0,function(){var l,f;return c(this,function(p){switch(p.label){case 0:return l=Vi(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,u),[4,hE(l)];case 1:return f=p.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ge(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(f,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},i})(Bu),hE=function(s){return new Promise(function(i,u){var l=new Image;l.onload=function(){i(l)},l.onerror=u,l.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(s))})},BE=(function(){function s(i){var u=i.id,l=i.enabled;this.id=u,this.enabled=l,this.start=Date.now()}return s.prototype.debug=function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,d([this.id,this.getTime()+"ms"],i)):this.info.apply(this,i))},s.prototype.getTime=function(){return Date.now()-this.start},s.prototype.info=function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,d([this.id,this.getTime()+"ms"],i))},s.prototype.warn=function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,d([this.id,this.getTime()+"ms"],i)):this.info.apply(this,i))},s.prototype.error=function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,d([this.id,this.getTime()+"ms"],i)):this.info.apply(this,i))},s.instances={},s})(),pE=(function(){function s(i,u){var l;this.windowBounds=u,this.instanceName="#"+s.instanceCount++,this.logger=new BE({id:this.instanceName,enabled:i.logging}),this.cache=(l=i.cache)!==null&&l!==void 0?l:new kQ(this,i)}return s.instanceCount=1,s})(),mE=function(s,i){return i===void 0&&(i={}),wE(s,i)};typeof window<"u"&&su.setContext(window);var wE=function(s,i){return a(void 0,void 0,void 0,function(){var u,l,f,p,C,Q,E,N,K,X,j,CA,BA,wA,RA,DA,_A,te,XA,kA,zA,FA,zA,$A,OA,ue,Ee,_e,qA,pe,bt,Fe,Ue,Rt,je,It,Vt,Pt,ut,Gt;return c(this,function(dt){switch(dt.label){case 0:if(!s||typeof s!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(u=s.ownerDocument,!u)throw new Error("Element is not attached to a Document");if(l=u.defaultView,!l)throw new Error("Document is not attached to a Window");return f={allowTaint:($A=i.allowTaint)!==null&&$A!==void 0?$A:!1,imageTimeout:(OA=i.imageTimeout)!==null&&OA!==void 0?OA:15e3,proxy:i.proxy,useCORS:(ue=i.useCORS)!==null&&ue!==void 0?ue:!1},p=o({logging:(Ee=i.logging)!==null&&Ee!==void 0?Ee:!0,cache:i.cache},f),C={windowWidth:(_e=i.windowWidth)!==null&&_e!==void 0?_e:l.innerWidth,windowHeight:(qA=i.windowHeight)!==null&&qA!==void 0?qA:l.innerHeight,scrollX:(pe=i.scrollX)!==null&&pe!==void 0?pe:l.pageXOffset,scrollY:(bt=i.scrollY)!==null&&bt!==void 0?bt:l.pageYOffset},Q=new h(C.scrollX,C.scrollY,C.windowWidth,C.windowHeight),E=new pE(p,Q),N=(Fe=i.foreignObjectRendering)!==null&&Fe!==void 0?Fe:!1,K={allowTaint:(Ue=i.allowTaint)!==null&&Ue!==void 0?Ue:!1,onclone:i.onclone,ignoreElements:i.ignoreElements,inlineImages:N,copyStyles:N},E.logger.debug("Starting document clone with size "+Q.width+"x"+Q.height+" scrolled to "+-Q.left+","+-Q.top),X=new ou(E,s,K),j=X.clonedReferenceElement,j?[4,X.toIFrame(u,Q)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return CA=dt.sent(),BA=Xi(j)||CQ(j)?B(j.ownerDocument):g(E,j),wA=BA.width,RA=BA.height,DA=BA.left,_A=BA.top,te=CE(E,j,i.backgroundColor),XA={canvas:i.canvas,backgroundColor:te,scale:(je=(Rt=i.scale)!==null&&Rt!==void 0?Rt:l.devicePixelRatio)!==null&&je!==void 0?je:1,x:((It=i.x)!==null&&It!==void 0?It:0)+DA,y:((Vt=i.y)!==null&&Vt!==void 0?Vt:0)+_A,width:(Pt=i.width)!==null&&Pt!==void 0?Pt:Math.ceil(wA),height:(ut=i.height)!==null&&ut!==void 0?ut:Math.ceil(RA)},N?(E.logger.debug("Document cloned, using foreign object rendering"),zA=new gE(E,XA),[4,zA.render(j)]):[3,3];case 2:return kA=dt.sent(),[3,5];case 3:return E.logger.debug("Document cloned, element located at "+DA+","+_A+" with size "+wA+"x"+RA+" using computed rendering"),E.logger.debug("Starting DOM parsing"),FA=Pc(E,j),te===FA.styles.backgroundColor&&(FA.styles.backgroundColor=lt.TRANSPARENT),E.logger.debug("Starting renderer for element at "+XA.x+","+XA.y+" with size "+XA.width+"x"+XA.height),zA=new aE(E,XA),[4,zA.render(FA)];case 4:kA=dt.sent(),dt.label=5;case 5:return(!((Gt=i.removeContainer)!==null&&Gt!==void 0)||Gt)&&(ou.destroy(CA)||E.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),E.logger.debug("Finished rendering"),[2,kA]}})})},CE=function(s,i,u){var l=i.ownerDocument,f=l.documentElement?Xn(s,getComputedStyle(l.documentElement).backgroundColor):lt.TRANSPARENT,p=l.body?Xn(s,getComputedStyle(l.body).backgroundColor):lt.TRANSPARENT,C=typeof u=="string"?Xn(s,u):u===null?lt.TRANSPARENT:4294967295;return i===l.documentElement?Qt(f)?Qt(p)?C:p:f:C};return mE}))})),e0=os(A0(),1),t0=(0,r.defineComponent)({name:"DBiDesignContainer",__name:"biDesignContainer",props:{layout:{type:Array,default:()=>[]},indexPage:{type:Object,default:()=>({})},activedComponent:{type:Object,default:()=>({})},scale:{type:Number,default:1}},emits:["select","move"],setup(e,{emit:A}){const t=e,n=A,{apiUrl:o,token:a}=(0,Te.useAppInject)(),c=(0,r.computed)(()=>{const B={transform:`scale(${t.scale}, ${t.scale})`,transformOrigin:"left top",position:"relative",width:WA(t.indexPage.config.w||1920),height:WA(t.indexPage.config.h||1080),backgroundColor:t.indexPage.config.backgroundColor||"var(--j-color-bg-container)"};return t.indexPage.config.backgroundImage&&(B.background=`url(${o}/system/annexesfile/${t.indexPage.config.backgroundImage}?token=${a?.value}) 0% 0% / 100% 100% ${t.indexPage.config.backgroundColor||"var(--j-color-bg-container)"}`),B}),d=B=>{n("select",B)},h=B=>{n("move",B)},g=B=>{B?.target?.getAttribute("id")==="j-bi-design-container"&&n("select",t.indexPage)};return(B,w)=>{const m=(0,r.resolveComponent)("d-draggable");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{onClick:(0,r.withModifiers)(g,["stop"]),id:"j-bi-design-container",style:(0,r.normalizeStyle)(c.value)},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.layout,(y,v)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:y.id},[y.display?((0,r.openBlock)(),(0,r.createBlock)(m,{key:0,id:y.id,left:y.config.x,top:y.config.y,width:y.config.w,height:y.config.h,scale:1/e.scale,step:1/e.scale,"active-flag":y.id==e.activedComponent.id,readonly:y.lock,"data-id":y.id,onFocus:I=>d(y),onBlur:h,"z-index":e.layout.length-v,"is-active-bg-transparent":!0},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(y.componentName),(0,r.mergeProps)({style:{width:(0,r.unref)(WA)(y.config.w),height:(0,r.unref)(WA)(y.config.h)}},{ref_for:!0},y.config,{"is-design":!0}),null,16,["style"]))]),_:2},1032,["id","left","top","width","height","scale","step","active-flag","readonly","data-id","onFocus","z-index"])):(0,r.createCommentVNode)("",!0)],64))),128))],4)}}}),Fl=t0,n0=(0,r.defineComponent)({name:"DBiViewer",__name:"biViewer",props:{layout:{type:Array,default:()=>[]},indexPage:{type:Object,default:()=>({})}},setup(e){const A=e,{apiUrl:t,token:n,httpGet:o,httpPost:a}=(0,Te.useAppInject)(),c=(0,r.computed)(()=>A.layout),d=(0,r.ref)(),h=(0,r.ref)(1),g=(0,r.ref)(1),B=()=>{d.value&&w(d.value.offsetWidth,d.value.offsetHeight)},w=(F,M)=>{const tA=A.indexPage.config?.w||1920,W=A.indexPage.config?.h||1080,aA=A.indexPage.config?.screenFit||"1";aA==="1"?(g.value=F/tA,h.value=g.value):aA==="2"?(h.value=M/W,g.value=h.value):aA==="3"&&(g.value=F/tA,h.value=M/W)},m=(0,r.computed)(()=>{const F={transform:`scale(${g.value}, ${h.value})`,transformOrigin:"left top",position:"relative",overflow:"hidden",width:WA(A.indexPage.config?.w||1920),height:WA(A.indexPage.config?.h||1080),backgroundColor:A.indexPage.config?.backgroundColor||"var(--j-color-bg-container)"};return A.indexPage.config?.backgroundImage&&(F.background=`url(${t}/system/annexesfile/${A.indexPage.config?.backgroundImage}?token=${n?.value}) 0% 0% / 100% 100% ${A.indexPage.config?.backgroundColor||"var(--j-color-bg-container)"}`),F}),y=(0,r.computed)(()=>({width:WA((A.indexPage.config?.w||1920)*g.value),height:WA((A.indexPage.config?.h||1080)*h.value)})),v={},I=(F,M)=>{F&&(v[M]=F)},L=new ResizeObserver(B);(0,r.onMounted)(()=>{L.observe(d.value)});const k=(F,M)=>{V(M,{params:F})},V=async(F,M)=>{if(F&&F.trim()){F=`async (jcode) => {${F}}`;const{res:tA,msg:W,fn:aA}=(0,Te.getFunction)(F)}};return(0,r.provide)("jcode_bi_viewer",{executeEvent:V}),(F,M)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"j-block",style:(0,r.normalizeStyle)({"overflow-y":!e.indexPage.config?.screenFit||e.indexPage.config?.screenFit=="1"?"auto":"hidden","overflow-x":e.indexPage.config?.screenFit=="2"?"auto":"hidden"}),ref_key:"biViewer",ref:d},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)(y.value)},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)(m.value)},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(c.value,(tA,W)=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(tA.componentName),(0,r.mergeProps)({key:tA.id,ref_for:!0,ref:aA=>I(aA,tA.id),style:{position:"absolute",width:(0,r.unref)(WA)(tA.config.w),height:(0,r.unref)(WA)(tA.config.h),top:(0,r.unref)(WA)(tA.config.y),left:(0,r.unref)(WA)(tA.config.x),zIndex:e.layout.length-W}},{ref_for:!0},tA.config,{onClick:aA=>k(aA,tA.config.clickevent)}),null,16,["style","onClick"])),[[r.vShow,tA.display!==!1]])),128))],4)],4)],4))}}),Ul=n0,r0={class:"j-bi-design"},o0={class:"j-bi-design-left"},i0={style:{padding:"0 4px"}},s0=["onClick"],a0={class:"j-bi-design-left2"},l0={key:0,class:"j-block",style:{"padding-top":"28px"}},c0={class:"search-input-wraper"},u0=["onClick","data-id"],d0={class:"j-bi-design-layer-item-img"},f0=["src"],g0={class:"j-bi-design-layer-item-btns"},h0=["onClick"],B0=["onClick"],p0=["onClick"],m0=["onDragend"],w0={class:"component-item2-text"},C0=["src"],y0={class:"j-bi-design-right"},v0={class:"j-bi-design-title"},Q0={class:"j-bi-design-panel"},E0=(0,r.defineComponent)({name:"DBiDesign",__name:"biDesign",props:{components:{type:Array,default:()=>[]},componentConfigs:{type:Object,default:()=>({})},componentInit:Function,componentConfigInit:Function,componentConfigChange:Function,imgUrlPrefix:{type:String,default:"/"},scale:{type:Number,default:-1}},emits:["update:scale"],setup(e,{expose:A,emit:t}){const{t:n}=(0,Te.useAppInject)(),o=e,a=t,c=(0,r.ref)({name:"页面",id:"indexPage",type:"indexPage",layerId:"0",config:{},display:!0,lock:!1,componentName:""});o.componentInit&&(c.value.config=o.componentInit("indexPage")||{},c.value.config.id="indexPage");const d=(0,r.computed)(()=>{const sA={};return o.components.forEach(pA=>{pA.children.forEach(NA=>{sA[NA.type]=NA})}),sA}),h=(0,r.ref)(0),g=(0,r.ref)(),B=(0,r.ref)([]),w=(0,r.ref)(!1),m=(0,r.ref)(0),y=(0,r.ref)(0),v=(0,r.ref)(""),I=(0,r.computed)(()=>v.value===""?{}:B.value.find(sA=>sA.id===v.value)),L=()=>{w.value=!1,v.value=""},k=sA=>{sA.target.className.indexOf("j-bi-design-contentmenu__btn")===-1&&L(),window.removeEventListener("mousedown",k)},V=sA=>{let{target:pA}=sA,NA=!1;pA.className.indexOf&&pA.className.indexOf("d-draggable__mask")>-1?(pA=pA.parentNode.parentNode,NA=!0):pA.className.indexOf&&pA.className.indexOf("j-bi-design-layer-item")>-1?NA=!0:pA.parentNode.className.indexOf&&pA.parentNode.className.indexOf("j-bi-design-layer-item")>-1?(pA=pA.parentNode,NA=!0):pA.parentNode.parentNode.className.indexOf("j-bi-design-layer-item")>-1&&(pA=pA.parentNode.parentNode,NA=!0),NA&&(sA.preventDefault(),sA.stopPropagation(),m.value=sA.clientX,y.value=sA.clientY-8,y.value+260>document.body.clientHeight&&(y.value=document.body.clientHeight-260),v.value=pA.getAttribute("data-id"),w.value=!0,window.addEventListener("mousedown",k))},F=(0,r.ref)(""),M=(0,r.computed)(()=>F.value?B.value.filter(sA=>sA.config.label.indexOf(F.value)>-1):B.value),tA=sA=>{sA.display=!sA.display,L()},W=sA=>{sA.lock=!sA.lock,L(),sA.lock&&sA.id===g.value?.id&&iA(c.value)},aA=(sA,pA)=>{if(!pA||B.value.length<1){L();return}const NA=B.value.findIndex(MA=>MA.id===pA.id);switch(sA){case"up":if(NA===-1||NA===0)break;B.value=dA(B.value,NA,NA-1);break;case"down":if(NA===-1||NA===B.value.length-1)break;B.value=dA(B.value,NA,NA+1);break;case"top":if(NA!==-1){const[MA]=B.value.splice(NA,1);B.value.unshift(MA)}break;case"bottom":if(NA!==-1){const[MA]=B.value.splice(NA,1);B.value.push(MA)}break}L()},dA=(sA,pA,NA)=>{const MA=sA[pA];return sA[pA]=sA[NA],sA[NA]=MA,sA},rA=(0,r.ref)(),oA=(0,r.ref)(20),AA=(0,r.ref)(document.body.clientWidth),O=(0,r.ref)(document.body.clientHeight),lA=(0,r.ref)(0),_=(0,r.ref)(0),Z=(0,r.ref)({bgColor:"rgba(225,225,225, 0)",longfgColor:"rgba(0, 0, 0, 0.45)",shortfgColor:"rgba(0, 0, 0, 0.45)",fontColor:"rgba(0, 0, 0, 0.65)",shadowColor:"rgba(225,225,225, 0)",lineColor:"var(--j-color-primary)",borderColor:"#d9d9d9",cornerActiveColor:"var(--j-color-primary)"}),U=(0,r.computed)(()=>({x:0,y:0,width:AA.value,height:O.value})),x=(0,r.ref)({h:[],v:[]}),G=(0,r.ref)(),R=(0,r.ref)(),$=(0,r.ref)(!1),J=(0,r.ref)({}),nA=(0,r.ref)(100),hA=(0,r.computed)({set(sA){nA.value=sA,a("update:scale",sA)},get(){let{scale:sA}=o;return sA===-1&&(sA=nA.value),sA/100}}),UA=(0,r.computed)(()=>(c.value.config.h||1080)*2),eA=(0,r.computed)(()=>(c.value.config.w||1920)*2),uA=()=>{rA.value&&(AA.value=rA.value.offsetWidth-oA.value,O.value=rA.value.offsetHeight-oA.value,G.value.scrollLeft=eA.value/2-oA.value,G.value.scrollTop=UA.value/2-oA.value,Y())},Y=()=>{const sA=c.value.config.w||1920;AA.value<sA&&(hA.value=AA.value*100/sA)},cA=()=>{document.onkeydown=sA=>{if(sA.target?.nodeName==="TEXTAREA"||sA.target?.nodeName==="INPUT")return;const pA=sA.keyCode||sA.which;pA===32&&(sA.preventDefault(),J.value.space=!0),pA===17&&(sA.preventDefault(),J.value.ctrl=!0)},document.onkeyup=()=>{J.value={}}},mA=sA=>{J.value.space&&($.value=!0,window.stardragEvent=sA,window.startSlideX=G.value.scrollLeft,window.startSlideY=G.value.scrollTop,document.onmousemove=pA=>{if($.value){const NA=pA.clientX-window.stardragEvent.clientX,MA=pA.clientY-window.stardragEvent.clientY;G.value.scrollLeft=window.startSlideX-NA,G.value.scrollTop=window.startSlideY-MA}},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,$.value=!1})},yA=()=>{const sA=G.value.getBoundingClientRect(),pA=R.value.getBoundingClientRect(),NA=hA.value,MA=(sA.left+oA.value-pA.left)/NA,it=(sA.top+oA.value-pA.top)/NA;lA.value=MA>>0,_.value=it>>0},IA=sA=>{if(sA.preventDefault(),sA.ctrlKey||sA.metaKey){const pA=hA.value;hA.value=parseFloat(Math.max(.2,pA-sA.deltaY/500).toFixed(2))*100,pA!==hA.value&&(0,r.nextTick)(()=>{yA()})}},fA=(0,r.ref)(),vA=(0,r.computed)(()=>g.value?`【${g.value.name}】`:""),S={};Object.keys(o.componentConfigs).forEach(sA=>{const pA=[{id:"id",type:"j-input",config:{label:"ID",readonly:!0}},{id:"label",type:"j-input",config:{label:"名称"}}],NA=[{id:"w",type:"j-number",config:{label:"宽度",min:0}},{id:"h",type:"j-number",config:{label:"高度",min:0}},{id:"x",type:"j-number",config:{label:"x轴",min:0}},{id:"y",type:"j-number",config:{label:"y轴",min:0}}],MA={type:"j-collapse",config:{defaultValue:[]},children:[]};sA!=="indexPage"&&MA.children?.push({config:{label:"基础信息"},children:[...pA]}),MA.children?.push(...o.componentConfigs[sA]),sA!=="indexPage"?(MA.children?.push({config:{label:"大小定位"},children:[...NA]}),MA.config?.defaultValue.push("_collapse0","_collapse1")):MA.children&&MA.children.length>0&&MA.config?.defaultValue.push("_collapse0"),S[sA]=[MA]});const H=()=>{if(g.value){const sA=S[g.value.type];sA?fA.value.init(sA,g.value.config):fA.value.init([]),o.componentConfigInit&&o.componentConfigInit(g.value.type,{configRef:fA,components:B.value,configData:g.value.config})}else fA.value.init([])},T=(sA,pA)=>{g.value&&o.componentConfigChange&&(g.value.id==="indexPage"&&(sA.id==="w"||sA.id==="h")&&(0,r.nextTick)(()=>{uA()}),o.componentConfigChange(g.value.type,{configRef:fA,component:sA,configData:g.value.config,...pA}))},D=sA=>o.componentInit?o.componentInit(sA)||{}:{},b=(sA,pA,NA)=>{const MA={name:sA.name,id:gt(),type:sA.type,layerId:"0",config:D(sA.type),display:!0,lock:!1,componentName:sA.componentName};MA.config.id=MA.id,MA.config.label=sA.name,MA.config.h=sA.h||100,MA.config.w=sA.w||100,MA.config.x=pA,MA.config.y=NA,B.value.unshift(MA),g.value=MA,H()},z=(sA,pA)=>{const NA=document.getElementById("j-bi-design-container").getBoundingClientRect(),MA=sA.clientX-NA.left,it=sA.clientY-NA.top;b(pA,MA/hA.value-pA.w/2,it/hA.value-pA.h/2)},P=sA=>{B.value=B.value.filter(pA=>pA.id!==sA),g.value.id===sA&&(g.value=c.value,H()),L()},gA=sA=>{const pA=pn(sA),NA=gt();pA.id=NA,pA.config.id=NA,B.value.push(pA),g.value=pA,H(),L()},iA=sA=>{g.value?.id!==sA.id&&(g.value=sA,H())},SA=({left:sA,top:pA,width:NA,height:MA})=>{g.value&&(g.value.config.x=sA,g.value.config.y=pA,g.value.config.w=NA,g.value.config.h=MA,fA.value.setFormData({main:{x:sA,y:pA,w:NA,h:MA}}))},xA=new ResizeObserver(uA);(0,r.onMounted)(()=>{xA.observe(rA.value),cA(),iA(c.value)});const KA=()=>({ver:"1.0.0",components:pn(B.value),page:c.value}),ne=sA=>{sA.components?.forEach(pA=>{pA.componentName=d.value[pA.type].componentName}),B.value=sA.components||[],c.value=sA.page||c.value,iA(c.value)},YA=()=>{B.value=[],iA(c.value)},PA=()=>new Promise(sA=>{(0,e0.default)(R.value,{useCORS:!0,backgroundColor:null,allowTaint:!0}).then(pA=>{if(pA.width!==0&&pA.height!==0){sA(pA.toDataURL("image/png"));return}sA("")})}),Re=(0,r.ref)(),ve=(0,r.ref)({});return A({clear:YA,setData:ne,getData:KA,getImg:PA,preview:()=>{ve.value=KA(),Re.value.open("大屏预览","full")}}),(sA,pA)=>{const NA=(0,r.resolveComponent)("el-divider"),MA=(0,r.resolveComponent)("j-icon"),it=(0,r.resolveComponent)("el-button"),Mn=(0,r.resolveComponent)("el-input"),Tt=(0,r.resolveComponent)("el-text"),kt=(0,r.resolveComponent)("el-space"),On=(0,r.resolveComponent)("j-form"),tn=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",r0,[w.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"j-bi-design-contentmenu",style:(0,r.normalizeStyle)({left:m.value+"px",top:y.value+"px"})},[(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:pA[0]||(pA[0]=GA=>gA(I.value))},(0,r.toDisplayString)((0,r.unref)(n)("复制")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:pA[1]||(pA[1]=GA=>tA(I.value))},(0,r.toDisplayString)(I.value&&I.value.display?"隐藏":"显示"),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:pA[2]||(pA[2]=GA=>W(I.value))},(0,r.toDisplayString)(I.value&&I.value.lock?"解锁":"锁定"),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:pA[3]||(pA[3]=GA=>aA("top",I.value))},(0,r.toDisplayString)((0,r.unref)(n)("置顶图层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:pA[4]||(pA[4]=GA=>aA("bottom",I.value))},(0,r.toDisplayString)((0,r.unref)(n)("置底图层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:pA[5]||(pA[5]=GA=>aA("up",I.value))},(0,r.toDisplayString)((0,r.unref)(n)("上移一层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:pA[6]||(pA[6]=GA=>aA("down",I.value))},(0,r.toDisplayString)((0,r.unref)(n)("下移一层")),1),(0,r.createVNode)(NA,{style:{margin:"4px 0"}}),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",style:{color:"var(--j-color-danger)"},onClick:pA[7]||(pA[7]=GA=>P(I.value?.id))},(0,r.toDisplayString)((0,r.unref)(n)("删除")),1)],4)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",o0,[(0,r.createElementVNode)("div",{onClick:pA[8]||(pA[8]=(0,r.withModifiers)(GA=>h.value=-1,["stop"])),class:(0,r.normalizeClass)(["component-item",{active:h.value==-1}])},[(0,r.createVNode)(MA,{size:24,icon:"mdi:bookmark-box-multiple-outline"}),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)((0,r.unref)(n)("图层")),1)],2),(0,r.createElementVNode)("div",i0,[(0,r.createVNode)(NA)]),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,(GA,Ve)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:Ve,onClick:(0,r.withModifiers)(st=>h.value=Ve,["stop"]),class:(0,r.normalizeClass)(["component-item",{active:h.value==Ve}])},[(0,r.createVNode)(MA,{size:24,icon:GA.icon},null,8,["icon"]),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)((0,r.unref)(n)(GA.name)),1)],10,s0))),128))]),(0,r.createElementVNode)("div",a0,[h.value==-1?((0,r.openBlock)(),(0,r.createElementBlock)("div",l0,[(0,r.createElementVNode)("div",c0,[(0,r.createVNode)(Mn,{modelValue:F.value,"onUpdate:modelValue":pA[9]||(pA[9]=GA=>F.value=GA),class:"search-input",placeholder:"搜索图层"},{append:(0,r.withCtx)(()=>[(0,r.createVNode)(it,null,{icon:(0,r.withCtx)(()=>[(0,r.createVNode)(MA,{icon:"ep:search"})]),_:1})]),_:1},8,["modelValue"])]),(0,r.createElementVNode)("div",{class:"j-block",style:{"padding-top":"8px",overflow:"auto"},onContextmenu:(0,r.withModifiers)(V,["prevent"])},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(M.value,(GA,Ve)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:Ve},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item",{active:g.value.id==GA.id}]),onClick:(0,r.withModifiers)(st=>iA(GA),["stop"]),"data-id":GA.id},[(0,r.createElementVNode)("div",d0,[(0,r.createElementVNode)("img",{style:{height:"100%"},src:`${e.imgUrlPrefix}${d.value[GA.type].img}`},null,8,f0)]),(0,r.createVNode)(Tt,{truncated:""},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)((0,r.unref)(n)(GA.config.label)),1)]),_:2},1024),(0,r.createElementVNode)("div",g0,[(0,r.createVNode)(kt,{size:2},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item-btn",{active:!GA.display}]),onClick:(0,r.withModifiers)(st=>tA(GA),["stop"])},[(0,r.createVNode)(MA,{icon:"mdi:eye-off-outline"})],10,h0),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item-btn",{active:GA.lock}]),onClick:(0,r.withModifiers)(st=>W(GA),["stop"])},[(0,r.createVNode)(MA,{icon:"mdi:lock-outline"})],10,B0)]),_:2},1024)])],10,u0)]))),128))],32)])):e.components[h.value]?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:1},(0,r.renderList)(e.components[h.value].children,(GA,Ve)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:Ve,onClick:st=>b(GA,0,0)},[(0,r.createElementVNode)("div",{class:"component-item2",onDragend:st=>z(st,GA),draggable:"true"},[(0,r.createElementVNode)("div",w0,[(0,r.createVNode)(Tt,{truncated:""},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)((0,r.unref)(n)(GA.name)),1)]),_:2},1024)]),(0,r.createElementVNode)("img",{class:"component-item2-img",src:`${e.imgUrlPrefix}${GA.img}`},null,8,C0)],40,m0)],8,p0))),128)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",{class:"j-bi-design-mid",ref_key:"contentRef",ref:rA},[((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(qw),{key:hA.value,thick:oA.value,scale:hA.value,width:AA.value,height:O.value,"start-x":lA.value,"start-y":_.value,palette:Z.value,shadow:U.value,"hor-line-arr":x.value.h,"ver-line-arr":x.value.v},null,8,["thick","scale","width","height","start-x","start-y","palette","shadow","hor-line-arr","ver-line-arr"])),(0,r.createElementVNode)("div",{ref_key:"screensRef",ref:G,class:"j-bi-design-main",style:(0,r.normalizeStyle)({cursor:$.value?"pointer":""}),onMousedown:(0,r.withModifiers)(mA,["stop"]),onWheel:IA,onScroll:yA},[(0,r.createElementVNode)("div",{class:"screen-container",style:(0,r.normalizeStyle)({height:UA.value+"px",width:eA.value+"px"}),onClick:pA[10]||(pA[10]=(0,r.withModifiers)(GA=>iA(c.value),["stop"]))},[(0,r.createElementVNode)("div",{ref_key:"canvasRef",ref:R,class:"canvas",onContextmenu:(0,r.withModifiers)(V,["prevent"])},[(0,r.createVNode)(Fl,{layout:B.value,"index-page":c.value,"actived-component":g.value,scale:hA.value,onSelect:iA,onMove:SA},null,8,["layout","index-page","actived-component","scale"])],544)],4)],36)],512),(0,r.createElementVNode)("div",y0,[(0,r.createElementVNode)("div",v0,[(0,r.createVNode)(Tt,{truncated:"",style:{margin:"0","font-size":"14px"}},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(`${(0,r.unref)(n)("属性配置")}${vA.value} `),1)]),_:1})]),(0,r.createElementVNode)("div",Q0,[(0,r.createVNode)(On,{config:{labelPosition:"top",size:"small"},style:{padding:"0"},ref_key:"configRef",ref:fA,onChange:T},null,512)])]),(0,r.createVNode)(tn,{ref_key:"previewFormLayerRef",ref:Re,destroyOnClose:!0,hasHeader:!1},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(Ul,{indexPage:ve.value.page,layout:ve.value.components},null,8,["indexPage","layout"])]),_:1},512)])}}}),F0=E0,bl=ft(F0,[Fl,Ul]),U0=[ls,So,xo,Do,No,rl,ol,dl,fl,wl,Ql,bl],Il=new WeakSet,b0=e=>{Il.has(e)||(Il.add(e),U0.forEach(A=>{const t=A.name;t&&e.component(t,A)}))},I0={install:b0};oe.DBiDesign=bl,oe.DDrag=ls,oe.DDraggable=fl,oe.DFlowDesign=rl,oe.DFormDesign=wl,oe.DIndexDesign=Ql,oe.DInputFlow=ol,oe.DLayout=dl,oe.default=I0,oe.dragContainer=xo,oe.dragFormList=Do,oe.dragIndexList=No,oe.dragTool=So,oe.toFormDesignSchema=hl,oe.toFormSaveSchema=Vr,oe.toFormSchema=gl});
|
|
34
|
+
}`,DQ=function(s){NQ(s,"."+Ji+SQ+iu+`
|
|
35
|
+
.`+Zi+xQ+iu)},NQ=function(s,i){var c=s.ownerDocument;if(c){var l=c.createElement("style");l.textContent=i,s.appendChild(l)}},su=(function(){function s(){}return s.getOrigin=function(i){var c=s._link;return c?(c.href=i,c.href=c.href,c.protocol+c.hostname+c.port):"about:blank"},s.isSameOrigin=function(i){return s.getOrigin(i)===s._origin},s.setContext=function(i){s._link=i.document.createElement("a"),s._origin=s.getOrigin(i.location.href)},s._origin="about:blank",s})(),LQ=(function(){function s(i,c){this.context=i,this._options=c,this._cache={}}return s.prototype.addImage=function(i){var c=Promise.resolve();return this.has(i)||(qi(i)||KQ(i))&&(this._cache[i]=this.loadImage(i)).catch(function(){}),c},s.prototype.match=function(i){return this._cache[i]},s.prototype.loadImage=function(i){return a(this,void 0,void 0,function(){var c,l,f,p,C=this;return u(this,function(y){switch(y.label){case 0:return c=su.isSameOrigin(i),l=!ji(i)&&this._options.useCORS===!0&&he.SUPPORT_CORS_IMAGES&&!c,f=!ji(i)&&!c&&!qi(i)&&typeof this._options.proxy=="string"&&he.SUPPORT_CORS_XHR&&!l,!c&&this._options.allowTaint===!1&&!ji(i)&&!qi(i)&&!f&&!l?[2]:(p=i,f?[4,this.proxy(p)]:[3,2]);case 1:p=y.sent(),y.label=2;case 2:return this.context.logger.debug("Added image "+i.substring(0,256)),[4,new Promise(function(E,x){var O=new Image;O.onload=function(){return E(O)},O.onerror=x,(OQ(p)||l)&&(O.crossOrigin="anonymous"),O.src=p,O.complete===!0&&setTimeout(function(){return E(O)},500),C._options.imageTimeout>0&&setTimeout(function(){return x("Timed out ("+C._options.imageTimeout+"ms) loading image")},C._options.imageTimeout)})];case 3:return[2,y.sent()]}})})},s.prototype.has=function(i){return typeof this._cache[i]<"u"},s.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},s.prototype.proxy=function(i){var c=this,l=this._options.proxy;if(!l)throw new Error("No proxy defined");var f=i.substring(0,256);return new Promise(function(p,C){var y=he.SUPPORT_RESPONSE_TYPE?"blob":"text",E=new XMLHttpRequest;E.onload=function(){if(E.status===200)if(y==="text")p(E.response);else{var G=new FileReader;G.addEventListener("load",function(){return p(G.result)},!1),G.addEventListener("error",function(Z){return C(Z)},!1),G.readAsDataURL(E.response)}else C("Failed to proxy resource "+f+" with status code "+E.status)},E.onerror=C;var x=l.indexOf("?")>-1?"&":"?";if(E.open("GET",""+l+x+"url="+encodeURIComponent(i)+"&responseType="+y),y!=="text"&&E instanceof XMLHttpRequest&&(E.responseType=y),c._options.imageTimeout){var O=c._options.imageTimeout;E.timeout=O,E.ontimeout=function(){return C("Timed out ("+O+"ms) proxying "+f)}}E.send()})},s})(),TQ=/^data:image\/svg\+xml/i,kQ=/^data:image\/.*;base64,/i,MQ=/^data:image\/.*/i,KQ=function(s){return he.SUPPORT_SVG_DRAWING||!RQ(s)},ji=function(s){return MQ.test(s)},OQ=function(s){return kQ.test(s)},qi=function(s){return s.substr(0,4)==="blob"},RQ=function(s){return s.substr(-3).toLowerCase()==="svg"||TQ.test(s)},yA=(function(){function s(i,c){this.type=0,this.x=i,this.y=c}return s.prototype.add=function(i,c){return new s(this.x+i,this.y+c)},s})(),un=function(s,i,c){return new yA(s.x+(i.x-s.x)*c,s.y+(i.y-s.y)*c)},Co=(function(){function s(i,c,l,f){this.type=1,this.start=i,this.startControl=c,this.endControl=l,this.end=f}return s.prototype.subdivide=function(i,c){var l=un(this.start,this.startControl,i),f=un(this.startControl,this.endControl,i),p=un(this.endControl,this.end,i),C=un(l,f,i),y=un(f,p,i),E=un(C,y,i);return c?new s(this.start,l,C,E):new s(E,y,p,this.end)},s.prototype.add=function(i,c){return new s(this.start.add(i,c),this.startControl.add(i,c),this.endControl.add(i,c),this.end.add(i,c))},s.prototype.reverse=function(){return new s(this.end,this.endControl,this.startControl,this.start)},s})(),Se=function(s){return s.type===1},VQ=(function(){function s(i){var c=i.styles,l=i.bounds,f=Xn(c.borderTopLeftRadius,l.width,l.height),p=f[0],C=f[1],y=Xn(c.borderTopRightRadius,l.width,l.height),E=y[0],x=y[1],O=Xn(c.borderBottomRightRadius,l.width,l.height),G=O[0],Z=O[1],vA=Xn(c.borderBottomLeftRadius,l.width,l.height),gA=vA[0],mA=vA[1],OA=[];OA.push((p+E)/l.width),OA.push((gA+G)/l.width),OA.push((C+mA)/l.height),OA.push((x+Z)/l.height);var SA=Math.max.apply(Math,OA);SA>1&&(p/=SA,C/=SA,E/=SA,x/=SA,G/=SA,Z/=SA,gA/=SA,mA/=SA);var _A=l.width-E,Ae=l.height-Z,zA=l.width-G,TA=l.height-mA,EA=c.borderTopWidth,PA=c.borderRightWidth,GA=c.borderBottomWidth,MA=c.borderLeftWidth,le=jA(c.paddingTop,i.bounds.width),ye=jA(c.paddingRight,i.bounds.width),He=jA(c.paddingBottom,i.bounds.width),ZA=jA(c.paddingLeft,i.bounds.width);this.topLeftBorderDoubleOuterBox=p>0||C>0?ee(l.left+MA/3,l.top+EA/3,p-MA/3,C-EA/3,WA.TOP_LEFT):new yA(l.left+MA/3,l.top+EA/3),this.topRightBorderDoubleOuterBox=p>0||C>0?ee(l.left+_A,l.top+EA/3,E-PA/3,x-EA/3,WA.TOP_RIGHT):new yA(l.left+l.width-PA/3,l.top+EA/3),this.bottomRightBorderDoubleOuterBox=G>0||Z>0?ee(l.left+zA,l.top+Ae,G-PA/3,Z-GA/3,WA.BOTTOM_RIGHT):new yA(l.left+l.width-PA/3,l.top+l.height-GA/3),this.bottomLeftBorderDoubleOuterBox=gA>0||mA>0?ee(l.left+MA/3,l.top+TA,gA-MA/3,mA-GA/3,WA.BOTTOM_LEFT):new yA(l.left+MA/3,l.top+l.height-GA/3),this.topLeftBorderDoubleInnerBox=p>0||C>0?ee(l.left+MA*2/3,l.top+EA*2/3,p-MA*2/3,C-EA*2/3,WA.TOP_LEFT):new yA(l.left+MA*2/3,l.top+EA*2/3),this.topRightBorderDoubleInnerBox=p>0||C>0?ee(l.left+_A,l.top+EA*2/3,E-PA*2/3,x-EA*2/3,WA.TOP_RIGHT):new yA(l.left+l.width-PA*2/3,l.top+EA*2/3),this.bottomRightBorderDoubleInnerBox=G>0||Z>0?ee(l.left+zA,l.top+Ae,G-PA*2/3,Z-GA*2/3,WA.BOTTOM_RIGHT):new yA(l.left+l.width-PA*2/3,l.top+l.height-GA*2/3),this.bottomLeftBorderDoubleInnerBox=gA>0||mA>0?ee(l.left+MA*2/3,l.top+TA,gA-MA*2/3,mA-GA*2/3,WA.BOTTOM_LEFT):new yA(l.left+MA*2/3,l.top+l.height-GA*2/3),this.topLeftBorderStroke=p>0||C>0?ee(l.left+MA/2,l.top+EA/2,p-MA/2,C-EA/2,WA.TOP_LEFT):new yA(l.left+MA/2,l.top+EA/2),this.topRightBorderStroke=p>0||C>0?ee(l.left+_A,l.top+EA/2,E-PA/2,x-EA/2,WA.TOP_RIGHT):new yA(l.left+l.width-PA/2,l.top+EA/2),this.bottomRightBorderStroke=G>0||Z>0?ee(l.left+zA,l.top+Ae,G-PA/2,Z-GA/2,WA.BOTTOM_RIGHT):new yA(l.left+l.width-PA/2,l.top+l.height-GA/2),this.bottomLeftBorderStroke=gA>0||mA>0?ee(l.left+MA/2,l.top+TA,gA-MA/2,mA-GA/2,WA.BOTTOM_LEFT):new yA(l.left+MA/2,l.top+l.height-GA/2),this.topLeftBorderBox=p>0||C>0?ee(l.left,l.top,p,C,WA.TOP_LEFT):new yA(l.left,l.top),this.topRightBorderBox=E>0||x>0?ee(l.left+_A,l.top,E,x,WA.TOP_RIGHT):new yA(l.left+l.width,l.top),this.bottomRightBorderBox=G>0||Z>0?ee(l.left+zA,l.top+Ae,G,Z,WA.BOTTOM_RIGHT):new yA(l.left+l.width,l.top+l.height),this.bottomLeftBorderBox=gA>0||mA>0?ee(l.left,l.top+TA,gA,mA,WA.BOTTOM_LEFT):new yA(l.left,l.top+l.height),this.topLeftPaddingBox=p>0||C>0?ee(l.left+MA,l.top+EA,Math.max(0,p-MA),Math.max(0,C-EA),WA.TOP_LEFT):new yA(l.left+MA,l.top+EA),this.topRightPaddingBox=E>0||x>0?ee(l.left+Math.min(_A,l.width-PA),l.top+EA,_A>l.width+PA?0:Math.max(0,E-PA),Math.max(0,x-EA),WA.TOP_RIGHT):new yA(l.left+l.width-PA,l.top+EA),this.bottomRightPaddingBox=G>0||Z>0?ee(l.left+Math.min(zA,l.width-MA),l.top+Math.min(Ae,l.height-GA),Math.max(0,G-PA),Math.max(0,Z-GA),WA.BOTTOM_RIGHT):new yA(l.left+l.width-PA,l.top+l.height-GA),this.bottomLeftPaddingBox=gA>0||mA>0?ee(l.left+MA,l.top+Math.min(TA,l.height-GA),Math.max(0,gA-MA),Math.max(0,mA-GA),WA.BOTTOM_LEFT):new yA(l.left+MA,l.top+l.height-GA),this.topLeftContentBox=p>0||C>0?ee(l.left+MA+ZA,l.top+EA+le,Math.max(0,p-(MA+ZA)),Math.max(0,C-(EA+le)),WA.TOP_LEFT):new yA(l.left+MA+ZA,l.top+EA+le),this.topRightContentBox=E>0||x>0?ee(l.left+Math.min(_A,l.width+MA+ZA),l.top+EA+le,_A>l.width+MA+ZA?0:E-MA+ZA,x-(EA+le),WA.TOP_RIGHT):new yA(l.left+l.width-(PA+ye),l.top+EA+le),this.bottomRightContentBox=G>0||Z>0?ee(l.left+Math.min(zA,l.width-(MA+ZA)),l.top+Math.min(Ae,l.height+EA+le),Math.max(0,G-(PA+ye)),Z-(GA+He),WA.BOTTOM_RIGHT):new yA(l.left+l.width-(PA+ye),l.top+l.height-(GA+He)),this.bottomLeftContentBox=gA>0||mA>0?ee(l.left+MA+ZA,l.top+TA,Math.max(0,gA-(MA+ZA)),mA-(GA+He),WA.BOTTOM_LEFT):new yA(l.left+MA+ZA,l.top+l.height-(GA+He))}return s})(),WA;(function(s){s[s.TOP_LEFT=0]="TOP_LEFT",s[s.TOP_RIGHT=1]="TOP_RIGHT",s[s.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",s[s.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(WA||(WA={}));var ee=function(s,i,c,l,f){var p=4*((Math.sqrt(2)-1)/3),C=c*p,y=l*p,E=s+c,x=i+l;switch(f){case WA.TOP_LEFT:return new Co(new yA(s,x),new yA(s,x-y),new yA(E-C,i),new yA(E,i));case WA.TOP_RIGHT:return new Co(new yA(s,i),new yA(s+C,i),new yA(E,x-y),new yA(E,x));case WA.BOTTOM_RIGHT:return new Co(new yA(E,i),new yA(E,i+y),new yA(s+C,x),new yA(s,x));case WA.BOTTOM_LEFT:default:return new Co(new yA(E,x),new yA(E-C,x),new yA(s,i+y),new yA(s,i))}},vo=function(s){return[s.topLeftBorderBox,s.topRightBorderBox,s.bottomRightBorderBox,s.bottomLeftBorderBox]},PQ=function(s){return[s.topLeftContentBox,s.topRightContentBox,s.bottomRightContentBox,s.bottomLeftContentBox]},yo=function(s){return[s.topLeftPaddingBox,s.topRightPaddingBox,s.bottomRightPaddingBox,s.bottomLeftPaddingBox]},GQ=(function(){function s(i,c,l){this.offsetX=i,this.offsetY=c,this.matrix=l,this.type=0,this.target=6}return s})(),Qo=(function(){function s(i,c){this.path=i,this.target=c,this.type=1}return s})(),zQ=(function(){function s(i){this.opacity=i,this.type=2,this.target=6}return s})(),XQ=function(s){return s.type===0},au=function(s){return s.type===1},$Q=function(s){return s.type===2},lu=function(s,i){return s.length===i.length?s.some(function(c,l){return c===i[l]}):!1},WQ=function(s,i,c,l,f){return s.map(function(p,C){switch(C){case 0:return p.add(i,c);case 1:return p.add(i+l,c);case 2:return p.add(i+l,c+f);case 3:return p.add(i,c+f)}return p})},cu=(function(){function s(i){this.element=i,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return s})(),uu=(function(){function s(i,c){if(this.container=i,this.parent=c,this.effects=[],this.curves=new VQ(this.container),this.container.styles.opacity<1&&this.effects.push(new zQ(this.container.styles.opacity)),this.container.styles.transform!==null){var l=this.container.bounds.left+this.container.styles.transformOrigin[0].number,f=this.container.bounds.top+this.container.styles.transformOrigin[1].number,p=this.container.styles.transform;this.effects.push(new GQ(l,f,p))}if(this.container.styles.overflowX!==0){var C=vo(this.curves),y=yo(this.curves);lu(C,y)?this.effects.push(new Qo(C,6)):(this.effects.push(new Qo(C,2)),this.effects.push(new Qo(y,4)))}}return s.prototype.getEffects=function(i){for(var c=[2,3].indexOf(this.container.styles.position)===-1,l=this.parent,f=this.effects.slice(0);l;){var p=l.effects.filter(function(E){return!au(E)});if(c||l.container.styles.position!==0||!l.parent){if(f.unshift.apply(f,p),c=[2,3].indexOf(l.container.styles.position)===-1,l.container.styles.overflowX!==0){var C=vo(l.curves),y=yo(l.curves);lu(C,y)||f.unshift(new Qo(y,6))}}else f.unshift.apply(f,p);l=l.parent}return f.filter(function(E){return de(E.target,i)})},s})(),As=function(s,i,c,l){s.container.elements.forEach(function(f){var p=de(f.flags,4),C=de(f.flags,2),y=new uu(f,s);de(f.styles.display,2048)&&l.push(y);var E=de(f.flags,8)?[]:l;if(p||C){var x=p||f.styles.isPositioned()?c:i,O=new cu(y);if(f.styles.isPositioned()||f.styles.opacity<1||f.styles.isTransformed()){var G=f.styles.zIndex.order;if(G<0){var Z=0;x.negativeZIndex.some(function(gA,mA){return G>gA.element.container.styles.zIndex.order?(Z=mA,!1):Z>0}),x.negativeZIndex.splice(Z,0,O)}else if(G>0){var vA=0;x.positiveZIndex.some(function(gA,mA){return G>=gA.element.container.styles.zIndex.order?(vA=mA+1,!1):vA>0}),x.positiveZIndex.splice(vA,0,O)}else x.zeroOrAutoZIndexOrTransformedOrOpacity.push(O)}else f.styles.isFloating()?x.nonPositionedFloats.push(O):x.nonPositionedInlineLevel.push(O);As(y,O,p?O:c,E)}else f.styles.isInlineLevel()?i.inlineLevel.push(y):i.nonInlineLevel.push(y),As(y,i,c,E);de(f.flags,8)&&du(f,E)})},du=function(s,i){for(var c=s instanceof Pi?s.start:1,l=s instanceof Pi?s.reversed:!1,f=0;f<i.length;f++){var p=i[f];p.container instanceof kc&&typeof p.container.value=="number"&&p.container.value!==0&&(c=p.container.value),p.listValue=jn(c,p.container.styles.listStyleType,!0),c+=l?-1:1}},YQ=function(s){var i=new uu(s,null),c=new cu(i),l=[];return As(i,c,c,l),du(i.container,l),c},fu=function(s,i){switch(i){case 0:return xe(s.topLeftBorderBox,s.topLeftPaddingBox,s.topRightBorderBox,s.topRightPaddingBox);case 1:return xe(s.topRightBorderBox,s.topRightPaddingBox,s.bottomRightBorderBox,s.bottomRightPaddingBox);case 2:return xe(s.bottomRightBorderBox,s.bottomRightPaddingBox,s.bottomLeftBorderBox,s.bottomLeftPaddingBox);default:return xe(s.bottomLeftBorderBox,s.bottomLeftPaddingBox,s.topLeftBorderBox,s.topLeftPaddingBox)}},JQ=function(s,i){switch(i){case 0:return xe(s.topLeftBorderBox,s.topLeftBorderDoubleOuterBox,s.topRightBorderBox,s.topRightBorderDoubleOuterBox);case 1:return xe(s.topRightBorderBox,s.topRightBorderDoubleOuterBox,s.bottomRightBorderBox,s.bottomRightBorderDoubleOuterBox);case 2:return xe(s.bottomRightBorderBox,s.bottomRightBorderDoubleOuterBox,s.bottomLeftBorderBox,s.bottomLeftBorderDoubleOuterBox);default:return xe(s.bottomLeftBorderBox,s.bottomLeftBorderDoubleOuterBox,s.topLeftBorderBox,s.topLeftBorderDoubleOuterBox)}},ZQ=function(s,i){switch(i){case 0:return xe(s.topLeftBorderDoubleInnerBox,s.topLeftPaddingBox,s.topRightBorderDoubleInnerBox,s.topRightPaddingBox);case 1:return xe(s.topRightBorderDoubleInnerBox,s.topRightPaddingBox,s.bottomRightBorderDoubleInnerBox,s.bottomRightPaddingBox);case 2:return xe(s.bottomRightBorderDoubleInnerBox,s.bottomRightPaddingBox,s.bottomLeftBorderDoubleInnerBox,s.bottomLeftPaddingBox);default:return xe(s.bottomLeftBorderDoubleInnerBox,s.bottomLeftPaddingBox,s.topLeftBorderDoubleInnerBox,s.topLeftPaddingBox)}},jQ=function(s,i){switch(i){case 0:return Eo(s.topLeftBorderStroke,s.topRightBorderStroke);case 1:return Eo(s.topRightBorderStroke,s.bottomRightBorderStroke);case 2:return Eo(s.bottomRightBorderStroke,s.bottomLeftBorderStroke);default:return Eo(s.bottomLeftBorderStroke,s.topLeftBorderStroke)}},Eo=function(s,i){var c=[];return Se(s)?c.push(s.subdivide(.5,!1)):c.push(s),Se(i)?c.push(i.subdivide(.5,!0)):c.push(i),c},xe=function(s,i,c,l){var f=[];return Se(s)?f.push(s.subdivide(.5,!1)):f.push(s),Se(c)?f.push(c.subdivide(.5,!0)):f.push(c),Se(l)?f.push(l.subdivide(.5,!0).reverse()):f.push(l),Se(i)?f.push(i.subdivide(.5,!1).reverse()):f.push(i),f},gu=function(s){var i=s.bounds,c=s.styles;return i.add(c.borderLeftWidth,c.borderTopWidth,-(c.borderRightWidth+c.borderLeftWidth),-(c.borderTopWidth+c.borderBottomWidth))},Uo=function(s){var i=s.styles,c=s.bounds,l=jA(i.paddingLeft,c.width),f=jA(i.paddingRight,c.width),p=jA(i.paddingTop,c.width),C=jA(i.paddingBottom,c.width);return c.add(l+i.borderLeftWidth,p+i.borderTopWidth,-(i.borderRightWidth+i.borderLeftWidth+l+f),-(i.borderTopWidth+i.borderBottomWidth+p+C))},qQ=function(s,i){return s===0?i.bounds:s===2?Uo(i):gu(i)},AE=function(s,i){return s===0?i.bounds:s===2?Uo(i):gu(i)},es=function(s,i,c){var l=qQ(fn(s.styles.backgroundOrigin,i),s),f=AE(fn(s.styles.backgroundClip,i),s),p=eE(fn(s.styles.backgroundSize,i),c,l),C=p[0],y=p[1],E=Xn(fn(s.styles.backgroundPosition,i),l.width-C,l.height-y);return[tE(fn(s.styles.backgroundRepeat,i),E,p,l,f),Math.round(l.left+E[0]),Math.round(l.top+E[1]),C,y]},dn=function(s){return JA(s)&&s.value===sn.AUTO},Fo=function(s){return typeof s=="number"},eE=function(s,i,c){var l=i[0],f=i[1],p=i[2],C=s[0],y=s[1];if(!C)return[0,0];if(ae(C)&&y&&ae(y))return[jA(C,c.width),jA(y,c.height)];var E=Fo(p);if(JA(C)&&(C.value===sn.CONTAIN||C.value===sn.COVER))return Fo(p)?c.width/c.height<p!=(C.value===sn.COVER)?[c.width,c.width/p]:[c.height*p,c.height]:[c.width,c.height];var x=Fo(l),O=Fo(f),G=x||O;if(dn(C)&&(!y||dn(y)))return x&&O?[l,f]:!E&&!G?[c.width,c.height]:G&&E?[x?l:f*p,O?f:l/p]:[x?l:c.width,O?f:c.height];if(E){var Z=0,vA=0;return ae(C)?Z=jA(C,c.width):ae(y)&&(vA=jA(y,c.height)),dn(C)?Z=vA*p:(!y||dn(y))&&(vA=Z/p),[Z,vA]}var gA=null,mA=null;if(ae(C)?gA=jA(C,c.width):y&&ae(y)&&(mA=jA(y,c.height)),gA!==null&&(!y||dn(y))&&(mA=x&&O?gA/l*f:c.height),mA!==null&&dn(C)&&(gA=x&&O?mA/f*l:c.width),gA!==null&&mA!==null)return[gA,mA];throw new Error("Unable to calculate background-size for element")},fn=function(s,i){var c=s[i];return typeof c>"u"?s[0]:c},tE=function(s,i,c,l,f){var p=i[0],C=i[1],y=c[0],E=c[1];switch(s){case 2:return[new yA(Math.round(l.left),Math.round(l.top+C)),new yA(Math.round(l.left+l.width),Math.round(l.top+C)),new yA(Math.round(l.left+l.width),Math.round(E+l.top+C)),new yA(Math.round(l.left),Math.round(E+l.top+C))];case 3:return[new yA(Math.round(l.left+p),Math.round(l.top)),new yA(Math.round(l.left+p+y),Math.round(l.top)),new yA(Math.round(l.left+p+y),Math.round(l.height+l.top)),new yA(Math.round(l.left+p),Math.round(l.height+l.top))];case 1:return[new yA(Math.round(l.left+p),Math.round(l.top+C)),new yA(Math.round(l.left+p+y),Math.round(l.top+C)),new yA(Math.round(l.left+p+y),Math.round(l.top+C+E)),new yA(Math.round(l.left+p),Math.round(l.top+C+E))];default:return[new yA(Math.round(f.left),Math.round(f.top)),new yA(Math.round(f.left+f.width),Math.round(f.top)),new yA(Math.round(f.left+f.width),Math.round(f.height+f.top)),new yA(Math.round(f.left),Math.round(f.height+f.top))]}},nE="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",hu="Hidden Text",rE=(function(){function s(i){this._data={},this._document=i}return s.prototype.parseMetrics=function(i,c){var l=this._document.createElement("div"),f=this._document.createElement("img"),p=this._document.createElement("span"),C=this._document.body;l.style.visibility="hidden",l.style.fontFamily=i,l.style.fontSize=c,l.style.margin="0",l.style.padding="0",l.style.whiteSpace="nowrap",C.appendChild(l),f.src=nE,f.width=1,f.height=1,f.style.margin="0",f.style.padding="0",f.style.verticalAlign="baseline",p.style.fontFamily=i,p.style.fontSize=c,p.style.margin="0",p.style.padding="0",p.appendChild(this._document.createTextNode(hu)),l.appendChild(p),l.appendChild(f);var y=f.offsetTop-p.offsetTop+2;l.removeChild(p),l.appendChild(this._document.createTextNode(hu)),l.style.lineHeight="normal",f.style.verticalAlign="super";var E=f.offsetTop-l.offsetTop+2;return C.removeChild(l),{baseline:y,middle:E}},s.prototype.getMetrics=function(i,c){var l=i+" "+c;return typeof this._data[l]>"u"&&(this._data[l]=this.parseMetrics(i,c)),this._data[l]},s})(),Bu=(function(){function s(i,c){this.context=i,this.options=c}return s})(),oE=1e4,iE=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f._activeEffects=[],f.canvas=l.canvas?l.canvas:document.createElement("canvas"),f.ctx=f.canvas.getContext("2d"),l.canvas||(f.canvas.width=Math.floor(l.width*l.scale),f.canvas.height=Math.floor(l.height*l.scale),f.canvas.style.width=l.width+"px",f.canvas.style.height=l.height+"px"),f.fontMetrics=new rE(document),f.ctx.scale(f.options.scale,f.options.scale),f.ctx.translate(-l.x,-l.y),f.ctx.textBaseline="bottom",f._activeEffects=[],f.context.logger.debug("Canvas renderer initialized ("+l.width+"x"+l.height+") with scale "+l.scale),f}return i.prototype.applyEffects=function(c){for(var l=this;this._activeEffects.length;)this.popEffect();c.forEach(function(f){return l.applyEffect(f)})},i.prototype.applyEffect=function(c){this.ctx.save(),$Q(c)&&(this.ctx.globalAlpha=c.opacity),XQ(c)&&(this.ctx.translate(c.offsetX,c.offsetY),this.ctx.transform(c.matrix[0],c.matrix[1],c.matrix[2],c.matrix[3],c.matrix[4],c.matrix[5]),this.ctx.translate(-c.offsetX,-c.offsetY)),au(c)&&(this.path(c.path),this.ctx.clip()),this._activeEffects.push(c)},i.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},i.prototype.renderStack=function(c){return a(this,void 0,void 0,function(){var l;return u(this,function(f){switch(f.label){case 0:return l=c.element.container.styles,l.isVisible()?[4,this.renderStackContent(c)]:[3,2];case 1:f.sent(),f.label=2;case 2:return[2]}})})},i.prototype.renderNode=function(c){return a(this,void 0,void 0,function(){return u(this,function(l){switch(l.label){case 0:if(de(c.container.flags,16))debugger;return c.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(c)]:[3,3];case 1:return l.sent(),[4,this.renderNodeContent(c)];case 2:l.sent(),l.label=3;case 3:return[2]}})})},i.prototype.renderTextWithLetterSpacing=function(c,l,f){var p=this;l===0?this.ctx.fillText(c.text,c.bounds.left,c.bounds.top+f):Vi(c.text).reduce(function(C,y){return p.ctx.fillText(y,C,c.bounds.top+f),C+p.ctx.measureText(y).width},c.bounds.left)},i.prototype.createFontStyle=function(c){var l=c.fontVariant.filter(function(C){return C==="normal"||C==="small-caps"}).join(""),f=uE(c.fontFamily).join(", "),p=zn(c.fontSize)?""+c.fontSize.number+c.fontSize.unit:c.fontSize.number+"px";return[[c.fontStyle,l,c.fontWeight,p,f].join(" "),f,p]},i.prototype.renderTextNode=function(c,l){return a(this,void 0,void 0,function(){var f,p,C,y,E,x,O,G,Z=this;return u(this,function(vA){return f=this.createFontStyle(l),p=f[0],C=f[1],y=f[2],this.ctx.font=p,this.ctx.direction=l.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",E=this.fontMetrics.getMetrics(C,y),x=E.baseline,O=E.middle,G=l.paintOrder,c.textBounds.forEach(function(gA){G.forEach(function(mA){switch(mA){case 0:Z.ctx.fillStyle=fe(l.color),Z.renderTextWithLetterSpacing(gA,l.letterSpacing,x);var OA=l.textShadow;OA.length&&gA.text.trim().length&&(OA.slice(0).reverse().forEach(function(SA){Z.ctx.shadowColor=fe(SA.color),Z.ctx.shadowOffsetX=SA.offsetX.number*Z.options.scale,Z.ctx.shadowOffsetY=SA.offsetY.number*Z.options.scale,Z.ctx.shadowBlur=SA.blur.number,Z.renderTextWithLetterSpacing(gA,l.letterSpacing,x)}),Z.ctx.shadowColor="",Z.ctx.shadowOffsetX=0,Z.ctx.shadowOffsetY=0,Z.ctx.shadowBlur=0),l.textDecorationLine.length&&(Z.ctx.fillStyle=fe(l.textDecorationColor||l.color),l.textDecorationLine.forEach(function(SA){switch(SA){case 1:Z.ctx.fillRect(gA.bounds.left,Math.round(gA.bounds.top+x),gA.bounds.width,1);break;case 2:Z.ctx.fillRect(gA.bounds.left,Math.round(gA.bounds.top),gA.bounds.width,1);break;case 3:Z.ctx.fillRect(gA.bounds.left,Math.ceil(gA.bounds.top+O),gA.bounds.width,1);break}}));break;case 1:l.webkitTextStrokeWidth&&gA.text.trim().length&&(Z.ctx.strokeStyle=fe(l.webkitTextStrokeColor),Z.ctx.lineWidth=l.webkitTextStrokeWidth,Z.ctx.lineJoin=window.chrome?"miter":"round",Z.ctx.strokeText(gA.text,gA.bounds.left,gA.bounds.top+x)),Z.ctx.strokeStyle="",Z.ctx.lineWidth=0,Z.ctx.lineJoin="miter";break}})}),[2]})})},i.prototype.renderReplacedElement=function(c,l,f){if(f&&c.intrinsicWidth>0&&c.intrinsicHeight>0){var p=Uo(c),C=yo(l);this.path(C),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(f,0,0,c.intrinsicWidth,c.intrinsicHeight,p.left,p.top,p.width,p.height),this.ctx.restore()}},i.prototype.renderNodeContent=function(c){return a(this,void 0,void 0,function(){var l,f,p,C,y,E,_A,_A,x,O,G,Z,zA,vA,gA,TA,mA,OA,SA,_A,Ae,zA,TA;return u(this,function(EA){switch(EA.label){case 0:this.applyEffects(c.getEffects(4)),l=c.container,f=c.curves,p=l.styles,C=0,y=l.textNodes,EA.label=1;case 1:return C<y.length?(E=y[C],[4,this.renderTextNode(E,p)]):[3,4];case 2:EA.sent(),EA.label=3;case 3:return C++,[3,1];case 4:if(!(l instanceof Nc))return[3,8];EA.label=5;case 5:return EA.trys.push([5,7,,8]),[4,this.context.cache.match(l.src)];case 6:return _A=EA.sent(),this.renderReplacedElement(l,f,_A),[3,8];case 7:return EA.sent(),this.context.logger.error("Error loading image "+l.src),[3,8];case 8:if(l instanceof Lc&&this.renderReplacedElement(l,f,l.canvas),!(l instanceof Tc))return[3,12];EA.label=9;case 9:return EA.trys.push([9,11,,12]),[4,this.context.cache.match(l.svg)];case 10:return _A=EA.sent(),this.renderReplacedElement(l,f,_A),[3,12];case 11:return EA.sent(),this.context.logger.error("Error loading svg "+l.svg.substring(0,255)),[3,12];case 12:return l instanceof Rc&&l.tree?(x=new i(this.context,{scale:this.options.scale,backgroundColor:l.backgroundColor,x:0,y:0,width:l.width,height:l.height}),[4,x.render(l.tree)]):[3,14];case 13:O=EA.sent(),l.width&&l.height&&this.ctx.drawImage(O,0,0,l.width,l.height,l.bounds.left,l.bounds.top,l.bounds.width,l.bounds.height),EA.label=14;case 14:if(l instanceof Gi&&(G=Math.min(l.bounds.width,l.bounds.height),l.type===go?l.checked&&(this.ctx.save(),this.path([new yA(l.bounds.left+G*.39363,l.bounds.top+G*.79),new yA(l.bounds.left+G*.16,l.bounds.top+G*.5549),new yA(l.bounds.left+G*.27347,l.bounds.top+G*.44071),new yA(l.bounds.left+G*.39694,l.bounds.top+G*.5649),new yA(l.bounds.left+G*.72983,l.bounds.top+G*.23),new yA(l.bounds.left+G*.84,l.bounds.top+G*.34085),new yA(l.bounds.left+G*.39363,l.bounds.top+G*.79)]),this.ctx.fillStyle=fe(Mc),this.ctx.fill(),this.ctx.restore()):l.type===ho&&l.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(l.bounds.left+G/2,l.bounds.top+G/2,G/4,0,Math.PI*2,!0),this.ctx.fillStyle=fe(Mc),this.ctx.fill(),this.ctx.restore())),sE(l)&&l.value.length){switch(Z=this.createFontStyle(p),zA=Z[0],vA=Z[1],gA=this.fontMetrics.getMetrics(zA,vA).baseline,this.ctx.font=zA,this.ctx.fillStyle=fe(p.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=lE(l.styles.textAlign),TA=Uo(l),mA=0,l.styles.textAlign){case 1:mA+=TA.width/2;break;case 2:mA+=TA.width;break}OA=TA.add(mA,0,0,-TA.height/2+1),this.ctx.save(),this.path([new yA(TA.left,TA.top),new yA(TA.left+TA.width,TA.top),new yA(TA.left+TA.width,TA.top+TA.height),new yA(TA.left,TA.top+TA.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Jn(l.value,OA),p.letterSpacing,gA),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!de(l.styles.display,2048))return[3,20];if(l.styles.listStyleImage===null)return[3,19];if(SA=l.styles.listStyleImage,SA.type!==0)return[3,18];_A=void 0,Ae=SA.url,EA.label=15;case 15:return EA.trys.push([15,17,,18]),[4,this.context.cache.match(Ae)];case 16:return _A=EA.sent(),this.ctx.drawImage(_A,l.bounds.left-(_A.width+10),l.bounds.top),[3,18];case 17:return EA.sent(),this.context.logger.error("Error loading list-style-image "+Ae),[3,18];case 18:return[3,20];case 19:c.listValue&&l.styles.listStyleType!==-1&&(zA=this.createFontStyle(p)[0],this.ctx.font=zA,this.ctx.fillStyle=fe(p.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",TA=new h(l.bounds.left,l.bounds.top+jA(l.styles.paddingTop,l.bounds.width),l.bounds.width,hc(p.lineHeight,p.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Jn(c.listValue,TA),p.letterSpacing,hc(p.lineHeight,p.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),EA.label=20;case 20:return[2]}})})},i.prototype.renderStackContent=function(c){return a(this,void 0,void 0,function(){var l,f,SA,p,C,SA,y,E,SA,x,O,SA,G,Z,SA,vA,gA,SA,mA,OA,SA;return u(this,function(_A){switch(_A.label){case 0:if(de(c.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(c.element)];case 1:_A.sent(),l=0,f=c.negativeZIndex,_A.label=2;case 2:return l<f.length?(SA=f[l],[4,this.renderStack(SA)]):[3,5];case 3:_A.sent(),_A.label=4;case 4:return l++,[3,2];case 5:return[4,this.renderNodeContent(c.element)];case 6:_A.sent(),p=0,C=c.nonInlineLevel,_A.label=7;case 7:return p<C.length?(SA=C[p],[4,this.renderNode(SA)]):[3,10];case 8:_A.sent(),_A.label=9;case 9:return p++,[3,7];case 10:y=0,E=c.nonPositionedFloats,_A.label=11;case 11:return y<E.length?(SA=E[y],[4,this.renderStack(SA)]):[3,14];case 12:_A.sent(),_A.label=13;case 13:return y++,[3,11];case 14:x=0,O=c.nonPositionedInlineLevel,_A.label=15;case 15:return x<O.length?(SA=O[x],[4,this.renderStack(SA)]):[3,18];case 16:_A.sent(),_A.label=17;case 17:return x++,[3,15];case 18:G=0,Z=c.inlineLevel,_A.label=19;case 19:return G<Z.length?(SA=Z[G],[4,this.renderNode(SA)]):[3,22];case 20:_A.sent(),_A.label=21;case 21:return G++,[3,19];case 22:vA=0,gA=c.zeroOrAutoZIndexOrTransformedOrOpacity,_A.label=23;case 23:return vA<gA.length?(SA=gA[vA],[4,this.renderStack(SA)]):[3,26];case 24:_A.sent(),_A.label=25;case 25:return vA++,[3,23];case 26:mA=0,OA=c.positiveZIndex,_A.label=27;case 27:return mA<OA.length?(SA=OA[mA],[4,this.renderStack(SA)]):[3,30];case 28:_A.sent(),_A.label=29;case 29:return mA++,[3,27];case 30:return[2]}})})},i.prototype.mask=function(c){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(c.slice(0).reverse()),this.ctx.closePath()},i.prototype.path=function(c){this.ctx.beginPath(),this.formatPath(c),this.ctx.closePath()},i.prototype.formatPath=function(c){var l=this;c.forEach(function(f,p){var C=Se(f)?f.start:f;p===0?l.ctx.moveTo(C.x,C.y):l.ctx.lineTo(C.x,C.y),Se(f)&&l.ctx.bezierCurveTo(f.startControl.x,f.startControl.y,f.endControl.x,f.endControl.y,f.end.x,f.end.y)})},i.prototype.renderRepeat=function(c,l,f,p){this.path(c),this.ctx.fillStyle=l,this.ctx.translate(f,p),this.ctx.fill(),this.ctx.translate(-f,-p)},i.prototype.resizeImage=function(c,l,f){var p;if(c.width===l&&c.height===f)return c;var C=((p=this.canvas.ownerDocument)!==null&&p!==void 0?p:document).createElement("canvas");return C.width=Math.max(1,l),C.height=Math.max(1,f),C.getContext("2d").drawImage(c,0,0,c.width,c.height,0,0,l,f),C},i.prototype.renderBackgroundImage=function(c){return a(this,void 0,void 0,function(){var l,f,p,C,y,E;return u(this,function(x){switch(x.label){case 0:l=c.styles.backgroundImage.length-1,f=function(O){var G,Z,vA,le,Qe,Ee,ZA,Be,GA,gA,le,Qe,Ee,ZA,Be,mA,OA,SA,_A,Ae,zA,TA,EA,PA,GA,MA,le,ye,He,ZA,Be,Ft,Qe,Ee,Rt,Ye,bt,Vt,Pt,lt,Gt,ct;return u(this,function(gn){switch(gn.label){case 0:if(O.type!==0)return[3,5];G=void 0,Z=O.url,gn.label=1;case 1:return gn.trys.push([1,3,,4]),[4,p.context.cache.match(Z)];case 2:return G=gn.sent(),[3,4];case 3:return gn.sent(),p.context.logger.error("Error loading background-image "+Z),[3,4];case 4:return G&&(vA=es(c,l,[G.width,G.height,G.width/G.height]),le=vA[0],Qe=vA[1],Ee=vA[2],ZA=vA[3],Be=vA[4],GA=p.ctx.createPattern(p.resizeImage(G,ZA,Be),"repeat"),p.renderRepeat(le,GA,Qe,Ee)),[3,6];case 5:jC(O)?(gA=es(c,l,[null,null,null]),le=gA[0],Qe=gA[1],Ee=gA[2],ZA=gA[3],Be=gA[4],mA=$C(O.angle,ZA,Be),OA=mA[0],SA=mA[1],_A=mA[2],Ae=mA[3],zA=mA[4],TA=document.createElement("canvas"),TA.width=ZA,TA.height=Be,EA=TA.getContext("2d"),PA=EA.createLinearGradient(SA,Ae,_A,zA),rc(O.stops,OA).forEach(function(Ar){return PA.addColorStop(Ar.stop,fe(Ar.color))}),EA.fillStyle=PA,EA.fillRect(0,0,ZA,Be),ZA>0&&Be>0&&(GA=p.ctx.createPattern(TA,"repeat"),p.renderRepeat(le,GA,Qe,Ee))):qC(O)&&(MA=es(c,l,[null,null,null]),le=MA[0],ye=MA[1],He=MA[2],ZA=MA[3],Be=MA[4],Ft=O.position.length===0?[bi]:O.position,Qe=jA(Ft[0],ZA),Ee=jA(Ft[Ft.length-1],Be),Rt=WC(O,Qe,Ee,ZA,Be),Ye=Rt[0],bt=Rt[1],Ye>0&&bt>0&&(Vt=p.ctx.createRadialGradient(ye+Qe,He+Ee,0,ye+Qe,He+Ee,Ye),rc(O.stops,Ye*2).forEach(function(Ar){return Vt.addColorStop(Ar.stop,fe(Ar.color))}),p.path(le),p.ctx.fillStyle=Vt,Ye!==bt?(Pt=c.bounds.left+.5*c.bounds.width,lt=c.bounds.top+.5*c.bounds.height,Gt=bt/Ye,ct=1/Gt,p.ctx.save(),p.ctx.translate(Pt,lt),p.ctx.transform(1,0,0,Gt,0,0),p.ctx.translate(-Pt,-lt),p.ctx.fillRect(ye,ct*(He-lt)+lt,ZA,Be*ct),p.ctx.restore()):p.ctx.fill())),gn.label=6;case 6:return l--,[2]}})},p=this,C=0,y=c.styles.backgroundImage.slice(0).reverse(),x.label=1;case 1:return C<y.length?(E=y[C],[5,f(E)]):[3,4];case 2:x.sent(),x.label=3;case 3:return C++,[3,1];case 4:return[2]}})})},i.prototype.renderSolidBorder=function(c,l,f){return a(this,void 0,void 0,function(){return u(this,function(p){return this.path(fu(f,l)),this.ctx.fillStyle=fe(c),this.ctx.fill(),[2]})})},i.prototype.renderDoubleBorder=function(c,l,f,p){return a(this,void 0,void 0,function(){var C,y;return u(this,function(E){switch(E.label){case 0:return l<3?[4,this.renderSolidBorder(c,f,p)]:[3,2];case 1:return E.sent(),[2];case 2:return C=JQ(p,f),this.path(C),this.ctx.fillStyle=fe(c),this.ctx.fill(),y=ZQ(p,f),this.path(y),this.ctx.fill(),[2]}})})},i.prototype.renderNodeBackgroundAndBorders=function(c){return a(this,void 0,void 0,function(){var l,f,p,C,y,E,x,O,G=this;return u(this,function(Z){switch(Z.label){case 0:return this.applyEffects(c.getEffects(2)),l=c.container.styles,f=!yt(l.backgroundColor)||l.backgroundImage.length,p=[{style:l.borderTopStyle,color:l.borderTopColor,width:l.borderTopWidth},{style:l.borderRightStyle,color:l.borderRightColor,width:l.borderRightWidth},{style:l.borderBottomStyle,color:l.borderBottomColor,width:l.borderBottomWidth},{style:l.borderLeftStyle,color:l.borderLeftColor,width:l.borderLeftWidth}],C=aE(fn(l.backgroundClip,0),c.curves),f||l.boxShadow.length?(this.ctx.save(),this.path(C),this.ctx.clip(),yt(l.backgroundColor)||(this.ctx.fillStyle=fe(l.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(c.container)]):[3,2];case 1:Z.sent(),this.ctx.restore(),l.boxShadow.slice(0).reverse().forEach(function(vA){G.ctx.save();var gA=vo(c.curves),mA=vA.inset?0:oE,OA=WQ(gA,-mA+(vA.inset?1:-1)*vA.spread.number,(vA.inset?1:-1)*vA.spread.number,vA.spread.number*(vA.inset?-2:2),vA.spread.number*(vA.inset?-2:2));vA.inset?(G.path(gA),G.ctx.clip(),G.mask(OA)):(G.mask(gA),G.ctx.clip(),G.path(OA)),G.ctx.shadowOffsetX=vA.offsetX.number+mA,G.ctx.shadowOffsetY=vA.offsetY.number,G.ctx.shadowColor=fe(vA.color),G.ctx.shadowBlur=vA.blur.number,G.ctx.fillStyle=vA.inset?fe(vA.color):"rgba(0,0,0,1)",G.ctx.fill(),G.ctx.restore()}),Z.label=2;case 2:y=0,E=0,x=p,Z.label=3;case 3:return E<x.length?(O=x[E],O.style!==0&&!yt(O.color)&&O.width>0?O.style!==2?[3,5]:[4,this.renderDashedDottedBorder(O.color,O.width,y,c.curves,2)]:[3,11]):[3,13];case 4:return Z.sent(),[3,11];case 5:return O.style!==3?[3,7]:[4,this.renderDashedDottedBorder(O.color,O.width,y,c.curves,3)];case 6:return Z.sent(),[3,11];case 7:return O.style!==4?[3,9]:[4,this.renderDoubleBorder(O.color,O.width,y,c.curves)];case 8:return Z.sent(),[3,11];case 9:return[4,this.renderSolidBorder(O.color,y,c.curves)];case 10:Z.sent(),Z.label=11;case 11:y++,Z.label=12;case 12:return E++,[3,3];case 13:return[2]}})})},i.prototype.renderDashedDottedBorder=function(c,l,f,p,C){return a(this,void 0,void 0,function(){var y,E,x,O,G,Z,vA,gA,mA,OA,SA,_A,Ae,zA,TA,EA,TA,EA;return u(this,function(PA){return this.ctx.save(),y=jQ(p,f),E=fu(p,f),C===2&&(this.path(E),this.ctx.clip()),Se(E[0])?(x=E[0].start.x,O=E[0].start.y):(x=E[0].x,O=E[0].y),Se(E[1])?(G=E[1].end.x,Z=E[1].end.y):(G=E[1].x,Z=E[1].y),f===0||f===2?vA=Math.abs(x-G):vA=Math.abs(O-Z),this.ctx.beginPath(),C===3?this.formatPath(y):this.formatPath(E.slice(0,2)),gA=l<3?l*3:l*2,mA=l<3?l*2:l,C===3&&(gA=l,mA=l),OA=!0,vA<=gA*2?OA=!1:vA<=gA*2+mA?(SA=vA/(2*gA+mA),gA*=SA,mA*=SA):(_A=Math.floor((vA+mA)/(gA+mA)),Ae=(vA-_A*gA)/(_A-1),zA=(vA-(_A+1)*gA)/_A,mA=zA<=0||Math.abs(mA-Ae)<Math.abs(mA-zA)?Ae:zA),OA&&(C===3?this.ctx.setLineDash([0,gA+mA]):this.ctx.setLineDash([gA,mA])),C===3?(this.ctx.lineCap="round",this.ctx.lineWidth=l):this.ctx.lineWidth=l*2+1.1,this.ctx.strokeStyle=fe(c),this.ctx.stroke(),this.ctx.setLineDash([]),C===2&&(Se(E[0])&&(TA=E[3],EA=E[0],this.ctx.beginPath(),this.formatPath([new yA(TA.end.x,TA.end.y),new yA(EA.start.x,EA.start.y)]),this.ctx.stroke()),Se(E[1])&&(TA=E[1],EA=E[2],this.ctx.beginPath(),this.formatPath([new yA(TA.end.x,TA.end.y),new yA(EA.start.x,EA.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},i.prototype.render=function(c){return a(this,void 0,void 0,function(){var l;return u(this,function(f){switch(f.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=fe(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),l=YQ(c),[4,this.renderStack(l)];case 1:return f.sent(),this.applyEffects([]),[2,this.canvas]}})})},i})(Bu),sE=function(s){return s instanceof Oc||s instanceof Kc?!0:s instanceof Gi&&s.type!==ho&&s.type!==go},aE=function(s,i){switch(s){case 0:return vo(i);case 2:return PQ(i);default:return yo(i)}},lE=function(s){switch(s){case 1:return"center";case 2:return"right";default:return"left"}},cE=["-apple-system","system-ui"],uE=function(s){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?s.filter(function(i){return cE.indexOf(i)===-1}):s},dE=(function(s){n(i,s);function i(c,l){var f=s.call(this,c,l)||this;return f.canvas=l.canvas?l.canvas:document.createElement("canvas"),f.ctx=f.canvas.getContext("2d"),f.options=l,f.canvas.width=Math.floor(l.width*l.scale),f.canvas.height=Math.floor(l.height*l.scale),f.canvas.style.width=l.width+"px",f.canvas.style.height=l.height+"px",f.ctx.scale(f.options.scale,f.options.scale),f.ctx.translate(-l.x,-l.y),f.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+l.width+"x"+l.height+" at "+l.x+","+l.y+") with scale "+l.scale),f}return i.prototype.render=function(c){return a(this,void 0,void 0,function(){var l,f;return u(this,function(p){switch(p.label){case 0:return l=Ri(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,c),[4,fE(l)];case 1:return f=p.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=fe(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(f,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},i})(Bu),fE=function(s){return new Promise(function(i,c){var l=new Image;l.onload=function(){i(l)},l.onerror=c,l.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(s))})},gE=(function(){function s(i){var c=i.id,l=i.enabled;this.id=c,this.enabled=l,this.start=Date.now()}return s.prototype.debug=function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,d([this.id,this.getTime()+"ms"],i)):this.info.apply(this,i))},s.prototype.getTime=function(){return Date.now()-this.start},s.prototype.info=function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,d([this.id,this.getTime()+"ms"],i))},s.prototype.warn=function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,d([this.id,this.getTime()+"ms"],i)):this.info.apply(this,i))},s.prototype.error=function(){for(var i=[],c=0;c<arguments.length;c++)i[c]=arguments[c];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,d([this.id,this.getTime()+"ms"],i)):this.info.apply(this,i))},s.instances={},s})(),hE=(function(){function s(i,c){var l;this.windowBounds=c,this.instanceName="#"+s.instanceCount++,this.logger=new gE({id:this.instanceName,enabled:i.logging}),this.cache=(l=i.cache)!==null&&l!==void 0?l:new LQ(this,i)}return s.instanceCount=1,s})(),BE=function(s,i){return i===void 0&&(i={}),pE(s,i)};typeof window<"u"&&su.setContext(window);var pE=function(s,i){return a(void 0,void 0,void 0,function(){var c,l,f,p,C,y,E,x,O,G,Z,vA,gA,mA,OA,SA,_A,Ae,zA,TA,PA,EA,PA,GA,MA,le,ye,He,ZA,Be,Ft,Qe,Ee,Rt,Ye,bt,Vt,Pt,lt,Gt;return u(this,function(ct){switch(ct.label){case 0:if(!s||typeof s!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(c=s.ownerDocument,!c)throw new Error("Element is not attached to a Document");if(l=c.defaultView,!l)throw new Error("Document is not attached to a Window");return f={allowTaint:(GA=i.allowTaint)!==null&&GA!==void 0?GA:!1,imageTimeout:(MA=i.imageTimeout)!==null&&MA!==void 0?MA:15e3,proxy:i.proxy,useCORS:(le=i.useCORS)!==null&&le!==void 0?le:!1},p=o({logging:(ye=i.logging)!==null&&ye!==void 0?ye:!0,cache:i.cache},f),C={windowWidth:(He=i.windowWidth)!==null&&He!==void 0?He:l.innerWidth,windowHeight:(ZA=i.windowHeight)!==null&&ZA!==void 0?ZA:l.innerHeight,scrollX:(Be=i.scrollX)!==null&&Be!==void 0?Be:l.pageXOffset,scrollY:(Ft=i.scrollY)!==null&&Ft!==void 0?Ft:l.pageYOffset},y=new h(C.scrollX,C.scrollY,C.windowWidth,C.windowHeight),E=new hE(p,y),x=(Qe=i.foreignObjectRendering)!==null&&Qe!==void 0?Qe:!1,O={allowTaint:(Ee=i.allowTaint)!==null&&Ee!==void 0?Ee:!1,onclone:i.onclone,ignoreElements:i.ignoreElements,inlineImages:x,copyStyles:x},E.logger.debug("Starting document clone with size "+y.width+"x"+y.height+" scrolled to "+-y.left+","+-y.top),G=new ou(E,s,O),Z=G.clonedReferenceElement,Z?[4,G.toIFrame(c,y)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return vA=ct.sent(),gA=Xi(Z)||mQ(Z)?B(Z.ownerDocument):g(E,Z),mA=gA.width,OA=gA.height,SA=gA.left,_A=gA.top,Ae=mE(E,Z,i.backgroundColor),zA={canvas:i.canvas,backgroundColor:Ae,scale:(Ye=(Rt=i.scale)!==null&&Rt!==void 0?Rt:l.devicePixelRatio)!==null&&Ye!==void 0?Ye:1,x:((bt=i.x)!==null&&bt!==void 0?bt:0)+SA,y:((Vt=i.y)!==null&&Vt!==void 0?Vt:0)+_A,width:(Pt=i.width)!==null&&Pt!==void 0?Pt:Math.ceil(mA),height:(lt=i.height)!==null&<!==void 0?lt:Math.ceil(OA)},x?(E.logger.debug("Document cloned, using foreign object rendering"),PA=new dE(E,zA),[4,PA.render(Z)]):[3,3];case 2:return TA=ct.sent(),[3,5];case 3:return E.logger.debug("Document cloned, element located at "+SA+","+_A+" with size "+mA+"x"+OA+" using computed rendering"),E.logger.debug("Starting DOM parsing"),EA=Pc(E,Z),Ae===EA.styles.backgroundColor&&(EA.styles.backgroundColor=st.TRANSPARENT),E.logger.debug("Starting renderer for element at "+zA.x+","+zA.y+" with size "+zA.width+"x"+zA.height),PA=new iE(E,zA),[4,PA.render(EA)];case 4:TA=ct.sent(),ct.label=5;case 5:return(!((Gt=i.removeContainer)!==null&&Gt!==void 0)||Gt)&&(ou.destroy(vA)||E.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),E.logger.debug("Finished rendering"),[2,TA]}})})},mE=function(s,i,c){var l=i.ownerDocument,f=l.documentElement?$n(s,getComputedStyle(l.documentElement).backgroundColor):st.TRANSPARENT,p=l.body?$n(s,getComputedStyle(l.body).backgroundColor):st.TRANSPARENT,C=typeof c=="string"?$n(s,c):c===null?st.TRANSPARENT:4294967295;return i===l.documentElement?yt(f)?yt(p)?C:p:f:C};return BE}))})),qw=rs(jw(),1),A0=(0,r.defineComponent)({name:"DBiDesignContainer",__name:"biDesignContainer",props:{layout:{type:Array,default:()=>[]},indexPage:{type:Object,default:()=>({})},activedComponent:{type:Object,default:()=>({})},scale:{type:Number,default:1}},emits:["select","move"],setup(e,{emit:A}){const t=e,n=A,{apiUrl:o,token:a}=(0,Ht.useAppInject)(),u=(0,r.computed)(()=>{const B={transform:`scale(${t.scale}, ${t.scale})`,transformOrigin:"left top",position:"relative",width:$A(t.indexPage.config.w||1920),height:$A(t.indexPage.config.h||1080),backgroundColor:t.indexPage.config.backgroundColor||"var(--j-color-bg-container)"};return t.indexPage.config.backgroundImage&&(B.background=`url(${o}/system/annexesfile/${t.indexPage.config.backgroundImage}?token=${a?.value}) 0% 0% / 100% 100% ${t.indexPage.config.backgroundColor||"var(--j-color-bg-container)"}`),B}),d=B=>{n("select",B)},h=B=>{n("move",B)},g=B=>{B?.target?.getAttribute("id")==="j-bi-design-container"&&n("select",t.indexPage)};return(B,w)=>{const m=(0,r.resolveComponent)("d-draggable");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{onClick:(0,r.withModifiers)(g,["stop"]),id:"j-bi-design-container",style:(0,r.normalizeStyle)(u.value)},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.layout,(v,Q)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:v.id},[v.display?((0,r.openBlock)(),(0,r.createBlock)(m,{key:0,id:v.id,left:v.config.x,top:v.config.y,width:v.config.w,height:v.config.h,scale:1/e.scale,step:1/e.scale,"active-flag":v.id==e.activedComponent.id,readonly:v.lock,"data-id":v.id,onFocus:H=>d(v),onBlur:h,"z-index":e.layout.length-Q,"is-active-bg-transparent":!0},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(v.componentName),(0,r.mergeProps)({style:{width:(0,r.unref)($A)(v.config.w),height:(0,r.unref)($A)(v.config.h)}},{ref_for:!0},v.config,{"is-design":!0}),null,16,["style"]))]),_:2},1032,["id","left","top","width","height","scale","step","active-flag","readonly","data-id","onFocus","z-index"])):(0,r.createCommentVNode)("",!0)],64))),128))],4)}}}),El=A0,e0=(0,r.defineComponent)({name:"DBiViewer",__name:"biViewer",props:{layout:{type:Array,default:()=>[]},indexPage:{type:Object,default:()=>({})}},setup(e){const A=e,{apiUrl:t,token:n,httpGet:o,httpPost:a}=(0,Ht.useAppInject)(),u=(0,r.computed)(()=>A.layout),d=(0,r.ref)(),h=(0,r.ref)(1),g=(0,r.ref)(1),B=()=>{d.value&&w(d.value.offsetWidth,d.value.offsetHeight)},w=(U,K)=>{const eA=A.indexPage.config?.w||1920,W=A.indexPage.config?.h||1080,iA=A.indexPage.config?.screenFit||"1";iA==="1"?(g.value=U/eA,h.value=g.value):iA==="2"?(h.value=K/W,g.value=h.value):iA==="3"&&(g.value=U/eA,h.value=K/W)},m=(0,r.computed)(()=>{const U={transform:`scale(${g.value}, ${h.value})`,transformOrigin:"left top",position:"relative",overflow:"hidden",width:$A(A.indexPage.config?.w||1920),height:$A(A.indexPage.config?.h||1080),backgroundColor:A.indexPage.config?.backgroundColor||"var(--j-color-bg-container)"};return A.indexPage.config?.backgroundImage&&(U.background=`url(${t}/system/annexesfile/${A.indexPage.config?.backgroundImage}?token=${n?.value}) 0% 0% / 100% 100% ${A.indexPage.config?.backgroundColor||"var(--j-color-bg-container)"}`),U}),v=(0,r.computed)(()=>({width:$A((A.indexPage.config?.w||1920)*g.value),height:$A((A.indexPage.config?.h||1080)*h.value)})),Q={},H=(U,K)=>{U&&(Q[K]=U)},N=new ResizeObserver(B);(0,r.onMounted)(()=>{N.observe(d.value)});const T=(U,K)=>{M(K,{params:U})},M=async(U,K)=>{if(U&&U.trim()){U=`async (jcode) => {${U}}`;const{res:eA,msg:W,fn:iA}=(0,Ht.getFunction)(U)}};return(0,r.provide)("jcode_bi_viewer",{executeEvent:M}),(U,K)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"j-block",style:(0,r.normalizeStyle)({"overflow-y":!e.indexPage.config?.screenFit||e.indexPage.config?.screenFit=="1"?"auto":"hidden","overflow-x":e.indexPage.config?.screenFit=="2"?"auto":"hidden"}),ref_key:"biViewer",ref:d},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)(v.value)},[(0,r.createElementVNode)("div",{style:(0,r.normalizeStyle)(m.value)},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(u.value,(eA,W)=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(eA.componentName),(0,r.mergeProps)({key:eA.id,ref_for:!0,ref:iA=>H(iA,eA.id),style:{position:"absolute",width:(0,r.unref)($A)(eA.config.w),height:(0,r.unref)($A)(eA.config.h),top:(0,r.unref)($A)(eA.config.y),left:(0,r.unref)($A)(eA.config.x),zIndex:e.layout.length-W}},{ref_for:!0},eA.config,{onClick:iA=>T(iA,eA.config.clickevent)}),null,16,["style","onClick"])),[[r.vShow,eA.display!==!1]])),128))],4)],4)],4))}}),Ul=e0,t0={class:"j-bi-design"},n0={class:"j-bi-design-left"},r0={style:{padding:"0 4px"}},o0=["onClick"],i0={class:"j-bi-design-left2"},s0={key:0,class:"j-block",style:{"padding-top":"28px"}},a0={class:"search-input-wraper"},l0=["onClick","data-id"],c0={class:"j-bi-design-layer-item-img"},u0=["src"],d0={class:"j-bi-design-layer-item-btns"},f0=["onClick"],g0=["onClick"],h0=["onClick"],B0=["onDragend"],p0={class:"component-item2-text"},m0=["src"],w0={class:"j-bi-design-right"},C0={class:"j-bi-design-title"},v0={class:"j-bi-design-panel"},y0=(0,r.defineComponent)({name:"DBiDesign",__name:"biDesign",props:{components:{type:Array,default:()=>[]},componentConfigs:{type:Object,default:()=>({})},componentInit:Function,componentConfigInit:Function,componentConfigChange:Function,imgUrlPrefix:{type:String,default:"/"},scale:{type:Number,default:-1}},emits:["update:scale"],setup(e,{expose:A,emit:t}){const{t:n}=(0,Ht.useAppInject)(),o=e,a=t,u=(0,r.ref)({name:"页面",id:"indexPage",type:"indexPage",layerId:"0",config:{},display:!0,lock:!1,componentName:""});o.componentInit&&(u.value.config=o.componentInit("indexPage")||{},u.value.config.id="indexPage");const d=(0,r.computed)(()=>{const oA={};return o.components.forEach(hA=>{hA.children.forEach(xA=>{oA[xA.type]=xA})}),oA}),h=(0,r.ref)(0),g=(0,r.ref)(),B=(0,r.ref)([]),w=(0,r.ref)(!1),m=(0,r.ref)(0),v=(0,r.ref)(0),Q=(0,r.ref)(""),H=(0,r.computed)(()=>Q.value===""?{}:B.value.find(oA=>oA.id===Q.value)),N=()=>{w.value=!1,Q.value=""},T=oA=>{oA.target.className.indexOf("j-bi-design-contentmenu__btn")===-1&&N(),window.removeEventListener("mousedown",T)},M=oA=>{let{target:hA}=oA,xA=!1;hA.className.indexOf&&hA.className.indexOf("d-draggable__mask")>-1?(hA=hA.parentNode.parentNode,xA=!0):hA.className.indexOf&&hA.className.indexOf("j-bi-design-layer-item")>-1?xA=!0:hA.parentNode.className.indexOf&&hA.parentNode.className.indexOf("j-bi-design-layer-item")>-1?(hA=hA.parentNode,xA=!0):hA.parentNode.parentNode.className.indexOf("j-bi-design-layer-item")>-1&&(hA=hA.parentNode.parentNode,xA=!0),xA&&(oA.preventDefault(),oA.stopPropagation(),m.value=oA.clientX,v.value=oA.clientY-8,v.value+260>document.body.clientHeight&&(v.value=document.body.clientHeight-260),Q.value=hA.getAttribute("data-id"),w.value=!0,window.addEventListener("mousedown",T))},U=(0,r.ref)(""),K=(0,r.computed)(()=>U.value?B.value.filter(oA=>oA.config.label.indexOf(U.value)>-1):B.value),eA=oA=>{oA.display=!oA.display,N()},W=oA=>{oA.lock=!oA.lock,N(),oA.lock&&oA.id===g.value?.id&&CA(u.value)},iA=(oA,hA)=>{if(!hA||B.value.length<1){N();return}const xA=B.value.findIndex(kA=>kA.id===hA.id);switch(oA){case"up":if(xA===-1||xA===0)break;B.value=lA(B.value,xA,xA-1);break;case"down":if(xA===-1||xA===B.value.length-1)break;B.value=lA(B.value,xA,xA+1);break;case"top":if(xA!==-1){const[kA]=B.value.splice(xA,1);B.value.unshift(kA)}break;case"bottom":if(xA!==-1){const[kA]=B.value.splice(xA,1);B.value.push(kA)}break}N()},lA=(oA,hA,xA)=>{const kA=oA[hA];return oA[hA]=oA[xA],oA[xA]=kA,oA},nA=(0,r.ref)(),tA=(0,r.ref)(20),q=(0,r.ref)(document.body.clientWidth),k=(0,r.ref)(document.body.clientHeight),sA=(0,r.ref)(0),I=(0,r.ref)(0),Y=(0,r.ref)({bgColor:"rgba(225,225,225, 0)",longfgColor:"rgba(0, 0, 0, 0.45)",shortfgColor:"rgba(0, 0, 0, 0.45)",fontColor:"rgba(0, 0, 0, 0.65)",shadowColor:"rgba(225,225,225, 0)",lineColor:"var(--j-color-primary)",borderColor:"#d9d9d9",cornerActiveColor:"var(--j-color-primary)"}),F=(0,r.computed)(()=>({x:0,y:0,width:q.value,height:k.value})),S=(0,r.ref)({h:[],v:[]}),P=(0,r.ref)(),R=(0,r.ref)(),z=(0,r.ref)(!1),J=(0,r.ref)({}),rA=(0,r.ref)(100),dA=(0,r.computed)({set(oA){rA.value=oA,a("update:scale",oA)},get(){let{scale:oA}=o;return oA===-1&&(oA=rA.value),oA/100}}),bA=(0,r.computed)(()=>(u.value.config.h||1080)*2),AA=(0,r.computed)(()=>(u.value.config.w||1920)*2),cA=()=>{nA.value&&(q.value=nA.value.offsetWidth-tA.value,k.value=nA.value.offsetHeight-tA.value,P.value.scrollLeft=AA.value/2-tA.value,P.value.scrollTop=bA.value/2-tA.value,V())},V=()=>{const oA=u.value.config.w||1920;q.value<oA&&(dA.value=q.value*100/oA)},$=()=>{document.onkeydown=oA=>{if(oA.target?.nodeName==="TEXTAREA"||oA.target?.nodeName==="INPUT")return;const hA=oA.keyCode||oA.which;hA===32&&(oA.preventDefault(),J.value.space=!0),hA===17&&(oA.preventDefault(),J.value.ctrl=!0)},document.onkeyup=()=>{J.value={}}},uA=oA=>{J.value.space&&(z.value=!0,window.stardragEvent=oA,window.startSlideX=P.value.scrollLeft,window.startSlideY=P.value.scrollTop,document.onmousemove=hA=>{if(z.value){const xA=hA.clientX-window.stardragEvent.clientX,kA=hA.clientY-window.stardragEvent.clientY;P.value.scrollLeft=window.startSlideX-xA,P.value.scrollTop=window.startSlideY-kA}},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,z.value=!1})},BA=()=>{const oA=P.value.getBoundingClientRect(),hA=R.value.getBoundingClientRect(),xA=dA.value,kA=(oA.left+tA.value-hA.left)/xA,rt=(oA.top+tA.value-hA.top)/xA;sA.value=kA>>0,I.value=rt>>0},HA=oA=>{if(oA.preventDefault(),oA.ctrlKey||oA.metaKey){const hA=dA.value;dA.value=parseFloat(Math.max(.2,hA-oA.deltaY/500).toFixed(2))*100,hA!==dA.value&&(0,r.nextTick)(()=>{BA()})}},aA=(0,r.ref)(),wA=(0,r.computed)(()=>g.value?`【${g.value.name}】`:""),_={};Object.keys(o.componentConfigs).forEach(oA=>{const hA=[{id:"id",type:"j-input",config:{label:"ID",readonly:!0}},{id:"label",type:"j-input",config:{label:"名称"}}],xA=[{id:"w",type:"j-number",config:{label:"宽度",min:0}},{id:"h",type:"j-number",config:{label:"高度",min:0}},{id:"x",type:"j-number",config:{label:"x轴",min:0}},{id:"y",type:"j-number",config:{label:"y轴",min:0}}],kA={type:"j-collapse",config:{defaultValue:[]},children:[]};oA!=="indexPage"&&kA.children?.push({config:{label:"基础信息"},children:[...hA]}),kA.children?.push(...o.componentConfigs[oA]),oA!=="indexPage"?(kA.children?.push({config:{label:"大小定位"},children:[...xA]}),kA.config?.defaultValue.push("_collapse0","_collapse1")):kA.children&&kA.children.length>0&&kA.config?.defaultValue.push("_collapse0"),_[oA]=[kA]});const b=()=>{if(g.value){const oA=_[g.value.type];oA?aA.value.init(oA,g.value.config):aA.value.init([]),o.componentConfigInit&&o.componentConfigInit(g.value.type,{configRef:aA,components:B.value,configData:g.value.config})}else aA.value.init([])},D=(oA,hA)=>{g.value&&o.componentConfigChange&&(g.value.id==="indexPage"&&(oA.id==="w"||oA.id==="h")&&(0,r.nextTick)(()=>{cA()}),o.componentConfigChange(g.value.type,{configRef:aA,component:oA,configData:g.value.config,...hA}))},X=oA=>o.componentInit?o.componentInit(oA)||{}:{},L=(oA,hA,xA)=>{const kA={name:oA.name,id:dt(),type:oA.type,layerId:"0",config:X(oA.type),display:!0,lock:!1,componentName:oA.componentName};kA.config.id=kA.id,kA.config.label=oA.name,kA.config.h=oA.h||100,kA.config.w=oA.w||100,kA.config.x=hA,kA.config.y=xA,B.value.unshift(kA),g.value=kA,b()},pA=(oA,hA)=>{const xA=document.getElementById("j-bi-design-container").getBoundingClientRect(),kA=oA.clientX-xA.left,rt=oA.clientY-xA.top;L(hA,kA/dA.value-hA.w/2,rt/dA.value-hA.h/2)},fA=oA=>{B.value=B.value.filter(hA=>hA.id!==oA),g.value.id===oA&&(g.value=u.value,b()),N()},FA=oA=>{const hA=pn(oA),xA=dt();hA.id=xA,hA.config.id=xA,B.value.push(hA),g.value=hA,b(),N()},CA=oA=>{g.value?.id!==oA.id&&(g.value=oA,b())},LA=({left:oA,top:hA,width:xA,height:kA})=>{g.value&&(g.value.config.x=oA,g.value.config.y=hA,g.value.config.w=xA,g.value.config.h=kA,aA.value.setFormData({main:{x:oA,y:hA,w:xA,h:kA}}))},KA=new ResizeObserver(cA);(0,r.onMounted)(()=>{KA.observe(nA.value),$(),CA(u.value)});const XA=()=>({ver:"1.0.0",components:pn(B.value),page:u.value}),ue=oA=>{oA.components?.forEach(hA=>{hA.componentName=d.value[hA.type].componentName}),B.value=oA.components||[],u.value=oA.page||u.value,CA(u.value)},re=()=>{B.value=[],CA(u.value)},nt=()=>new Promise(oA=>{(0,qw.default)(R.value,{useCORS:!0,backgroundColor:null,allowTaint:!0}).then(hA=>{if(hA.width!==0&&hA.height!==0){oA(hA.toDataURL("image/png"));return}oA("")})}),pt=(0,r.ref)(),ze=(0,r.ref)({});return A({clear:re,setData:ue,getData:XA,getImg:nt,preview:()=>{ze.value=XA(),pt.value.open("大屏预览","full")}}),(oA,hA)=>{const xA=(0,r.resolveComponent)("el-divider"),kA=(0,r.resolveComponent)("j-icon"),rt=(0,r.resolveComponent)("el-button"),Mn=(0,r.resolveComponent)("el-input"),Tt=(0,r.resolveComponent)("el-text"),kt=(0,r.resolveComponent)("el-space"),Kn=(0,r.resolveComponent)("j-form"),tn=(0,r.resolveComponent)("j-layer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",t0,[w.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"j-bi-design-contentmenu",style:(0,r.normalizeStyle)({left:m.value+"px",top:v.value+"px"})},[(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:hA[0]||(hA[0]=VA=>FA(H.value))},(0,r.toDisplayString)((0,r.unref)(n)("复制")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:hA[1]||(hA[1]=VA=>eA(H.value))},(0,r.toDisplayString)(H.value&&H.value.display?"隐藏":"显示"),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:hA[2]||(hA[2]=VA=>W(H.value))},(0,r.toDisplayString)(H.value&&H.value.lock?"解锁":"锁定"),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:hA[3]||(hA[3]=VA=>iA("top",H.value))},(0,r.toDisplayString)((0,r.unref)(n)("置顶图层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:hA[4]||(hA[4]=VA=>iA("bottom",H.value))},(0,r.toDisplayString)((0,r.unref)(n)("置底图层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:hA[5]||(hA[5]=VA=>iA("up",H.value))},(0,r.toDisplayString)((0,r.unref)(n)("上移一层")),1),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:hA[6]||(hA[6]=VA=>iA("down",H.value))},(0,r.toDisplayString)((0,r.unref)(n)("下移一层")),1),(0,r.createVNode)(xA,{style:{margin:"4px 0"}}),(0,r.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",style:{color:"var(--j-color-danger)"},onClick:hA[7]||(hA[7]=VA=>fA(H.value?.id))},(0,r.toDisplayString)((0,r.unref)(n)("删除")),1)],4)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",n0,[(0,r.createElementVNode)("div",{onClick:hA[8]||(hA[8]=(0,r.withModifiers)(VA=>h.value=-1,["stop"])),class:(0,r.normalizeClass)(["component-item",{active:h.value==-1}])},[(0,r.createVNode)(kA,{size:24,icon:"mdi:bookmark-box-multiple-outline"}),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)((0,r.unref)(n)("图层")),1)],2),(0,r.createElementVNode)("div",r0,[(0,r.createVNode)(xA)]),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.components,(VA,Me)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:Me,onClick:(0,r.withModifiers)(ot=>h.value=Me,["stop"]),class:(0,r.normalizeClass)(["component-item",{active:h.value==Me}])},[(0,r.createVNode)(kA,{size:24,icon:VA.icon},null,8,["icon"]),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)((0,r.unref)(n)(VA.name)),1)],10,o0))),128))]),(0,r.createElementVNode)("div",i0,[h.value==-1?((0,r.openBlock)(),(0,r.createElementBlock)("div",s0,[(0,r.createElementVNode)("div",a0,[(0,r.createVNode)(Mn,{modelValue:U.value,"onUpdate:modelValue":hA[9]||(hA[9]=VA=>U.value=VA),class:"search-input",placeholder:"搜索图层"},{append:(0,r.withCtx)(()=>[(0,r.createVNode)(rt,null,{icon:(0,r.withCtx)(()=>[(0,r.createVNode)(kA,{icon:"ep:search"})]),_:1})]),_:1},8,["modelValue"])]),(0,r.createElementVNode)("div",{class:"j-block",style:{"padding-top":"8px",overflow:"auto"},onContextmenu:(0,r.withModifiers)(M,["prevent"])},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(K.value,(VA,Me)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:Me},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item",{active:g.value.id==VA.id}]),onClick:(0,r.withModifiers)(ot=>CA(VA),["stop"]),"data-id":VA.id},[(0,r.createElementVNode)("div",c0,[(0,r.createElementVNode)("img",{style:{height:"100%"},src:`${e.imgUrlPrefix}${d.value[VA.type].img}`},null,8,u0)]),(0,r.createVNode)(Tt,{truncated:""},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)((0,r.unref)(n)(VA.config.label)),1)]),_:2},1024),(0,r.createElementVNode)("div",d0,[(0,r.createVNode)(kt,{size:2},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item-btn",{active:!VA.display}]),onClick:(0,r.withModifiers)(ot=>eA(VA),["stop"])},[(0,r.createVNode)(kA,{icon:"mdi:eye-off-outline"})],10,f0),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["j-bi-design-layer-item-btn",{active:VA.lock}]),onClick:(0,r.withModifiers)(ot=>W(VA),["stop"])},[(0,r.createVNode)(kA,{icon:"mdi:lock-outline"})],10,g0)]),_:2},1024)])],10,l0)]))),128))],32)])):e.components[h.value]?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:1},(0,r.renderList)(e.components[h.value].children,(VA,Me)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:Me,onClick:ot=>L(VA,0,0)},[(0,r.createElementVNode)("div",{class:"component-item2",onDragend:ot=>pA(ot,VA),draggable:"true"},[(0,r.createElementVNode)("div",p0,[(0,r.createVNode)(Tt,{truncated:""},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)((0,r.unref)(n)(VA.name)),1)]),_:2},1024)]),(0,r.createElementVNode)("img",{class:"component-item2-img",src:`${e.imgUrlPrefix}${VA.img}`},null,8,m0)],40,B0)],8,h0))),128)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",{class:"j-bi-design-mid",ref_key:"contentRef",ref:nA},[((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Zw),{key:dA.value,thick:tA.value,scale:dA.value,width:q.value,height:k.value,"start-x":sA.value,"start-y":I.value,palette:Y.value,shadow:F.value,"hor-line-arr":S.value.h,"ver-line-arr":S.value.v},null,8,["thick","scale","width","height","start-x","start-y","palette","shadow","hor-line-arr","ver-line-arr"])),(0,r.createElementVNode)("div",{ref_key:"screensRef",ref:P,class:"j-bi-design-main",style:(0,r.normalizeStyle)({cursor:z.value?"pointer":""}),onMousedown:(0,r.withModifiers)(uA,["stop"]),onWheel:HA,onScroll:BA},[(0,r.createElementVNode)("div",{class:"screen-container",style:(0,r.normalizeStyle)({height:bA.value+"px",width:AA.value+"px"}),onClick:hA[10]||(hA[10]=(0,r.withModifiers)(VA=>CA(u.value),["stop"]))},[(0,r.createElementVNode)("div",{ref_key:"canvasRef",ref:R,class:"canvas",onContextmenu:(0,r.withModifiers)(M,["prevent"])},[(0,r.createVNode)(El,{layout:B.value,"index-page":u.value,"actived-component":g.value,scale:dA.value,onSelect:CA,onMove:LA},null,8,["layout","index-page","actived-component","scale"])],544)],4)],36)],512),(0,r.createElementVNode)("div",w0,[(0,r.createElementVNode)("div",C0,[(0,r.createVNode)(Tt,{truncated:"",style:{margin:"0","font-size":"14px"}},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(`${(0,r.unref)(n)("属性配置")}${wA.value} `),1)]),_:1})]),(0,r.createElementVNode)("div",v0,[(0,r.createVNode)(Kn,{config:{labelPosition:"top",size:"small"},style:{padding:"0"},ref_key:"configRef",ref:aA,onChange:D},null,512)])]),(0,r.createVNode)(tn,{ref_key:"previewFormLayerRef",ref:pt,destroyOnClose:!0,hasHeader:!1},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(Ul,{indexPage:ze.value.page,layout:ze.value.components},null,8,["indexPage","layout"])]),_:1},512)])}}}),Q0=y0,Fl=ut(Q0,[El,Ul]),E0=[as,_o,So,xo,Do,nl,rl,ul,dl,ml,yl,Fl],bl=new WeakSet,U0=e=>{bl.has(e)||(bl.add(e),E0.forEach(A=>{const t=A.name;t&&e.component(t,A)}))},F0={install:U0};te.DBiDesign=Fl,te.DDrag=as,te.DDraggable=dl,te.DFlowDesign=nl,te.DFormDesign=ml,te.DIndexDesign=yl,te.DInputFlow=rl,te.DLayout=ul,te.default=F0,te.dragContainer=So,te.dragFormList=xo,te.dragIndexList=Do,te.dragTool=_o,te.toFormDesignSchema=gl,te.toFormSaveSchema=Vr,te.toFormSchema=fl});
|