@a2simcode/dui 0.0.54 → 0.0.56
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 +12 -9
- package/dist/components-dui/biDesign/src/biDesign.vue.d.ts +4 -3
- package/dist/components-dui/flowDesign/src/flowDesign.vue.d.ts +0 -1
- package/dist/components-dui/inputFlow/src/inputFlow.vue.d.ts +0 -1
- package/dist/dui.es.js +2092 -2090
- package/dist/dui.umd.js +8 -8
- package/package.json +2 -2
package/dist/dui.umd.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(ne,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("@a2simcode/ui")):typeof define=="function"&&define.amd?define(["exports","vue","@a2simcode/ui"],o):(ne=typeof globalThis<"u"?globalThis:ne||self,o(ne.DuiUI={},ne.Vue,ne.SimCodeUI))})(this,function(ne,o,pe){Object.defineProperties(ne,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Fu=Object.create,lr=Object.defineProperty,Uu=Object.getOwnPropertyDescriptor,bu=Object.getOwnPropertyNames,Hu=Object.getPrototypeOf,Iu=Object.prototype.hasOwnProperty,_u=(e,A)=>()=>(A||(e((A={exports:{}}).exports,A),e=null),A.exports),Su=(e,A)=>{let t={};for(var n in e)lr(t,n,{get:e[n],enumerable:!0});return A||lr(t,Symbol.toStringTag,{value:"Module"}),t},Mo=(e,A,t,n)=>{if(A&&typeof A=="object"||typeof A=="function")for(var r=bu(A),a=0,u=r.length,d;a<u;a++)d=r[a],!Iu.call(e,d)&&d!==t&&lr(e,d,{get:(h=>A[h]).bind(null,d),enumerable:!(n=Uu(A,d))||n.enumerable});return e},xu=(e,A,t)=>(Mo(e,A,"default"),t&&Mo(t,A,"default")),Bs=(e,A,t)=>(t=e!=null?Fu(Hu(e)):{},Mo(A||!e||!e.__esModule?lr(t,"default",{value:e,enumerable:!0}):t,e));o=Bs(o,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)},En=e=>{if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(En);const A={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=En(e[t]));return A},Du=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]},Oo={},Nu=(e,A,t)=>{t[e]=t[e]||{};const n=gt();return t[e][n]=A,n},Lu=(e,A,t)=>{const n=[],r=t[e]||{};return Object.keys(r).forEach(a=>{const u=r[a];try{u&&n.push(u(A))}catch(d){console.error(d)}}),n},Tu=(e,A,t)=>{if(A){const n=t[e];n&&delete n[A]}else delete t[e]},ps=(e,A)=>Nu(e,A,Oo),re=(e,A)=>Lu(e,A,Oo),ku=(e,A)=>{Tu(e,A,Oo)},ms=(e,A,t,n,r,a)=>{const u=A.id,d=A.level,{getDesignLocals:h,selectComponent:g,getComponent:B,isMyChildComponent:w,addComponent:m,deleteComponent:v,getParentComponents:y,removeComponentFromContainer:I,addComponentToContainer:T,copyComponent:D,activedComponent:V,top:b}=(0,o.inject)("d-drag-design-provide",{}),K=[],sA=(0,o.ref)(!1),W=(0,o.ref)(!1),cA=(0,o.ref)(!1),lA=(0,o.ref)(!1),oA=(0,o.ref)(!1),iA={id:"",type:""},AA=(0,o.ref)(!1),S=(0,o.ref)(!1);let eA="",H=null;const X=$=>{if(eA===$)return H;eA=$;const{top:uA,left:wA,width:QA,height:SA}=e.value.getBoundingClientRect();return H=[{x:wA,y:uA},{x:wA+QA,y:uA},{x:wA+QA,y:uA+SA},{x:wA,y:uA+SA}],H},U=($,uA,wA)=>{let QA=uA-wA[0].y;QA<0&&(QA=-QA);let SA=uA-wA[3].y;SA<0&&(SA=-SA);let fA=$-wA[0].x;fA<0&&(fA=-fA);let J=$-wA[1].x;return J<0&&(J=-J),{ly:QA>SA?SA:QA,typey:QA>SA?"bottom":"top",lx:fA>J?J:fA,lallx:fA+J}},L=($,uA,wA)=>$>=wA[0].x&&$<=wA[1].x&&uA>=wA[0].y&&uA<=wA[3].y,k=()=>{if(r){re("dragClick",{id:u});return}if(!W.value){if(g(u),d!==0){const $=e.value.getBoundingClientRect(),uA=h();$.top-uA.top<22?lA.value=!0:lA.value=!1}W.value=!0,re("dragClick",{id:u})}},N=$=>{const uA=v($);uA&&(0,o.nextTick)(()=>{re("dragClick",{id:uA})})},O=()=>{iA.id="",iA.type="",d===0&&(oA.value=!1)},Y=()=>{re("mouseEnterOrLeave",{id:u,type:"enter"})},tA=()=>{re("mouseEnterOrLeave",{id:u,type:"leave"})},BA=$=>{re("dragClick",{id:$})},HA={mouseEnterOrLeave:({id:$,type:uA})=>{uA==="enter"?K.push($):K.length>0&&K.splice(K.length-1,1);const wA=K.length;wA>0&&u===K[wA-1]?sA.value=!0:sA.value=!1},dragAciveChild:({type:$,id:uA})=>{uA===u?$==="top"?(AA.value=!0,S.value=!1):(S.value=!0,AA.value=!1):(S.value=!1,AA.value=!1)},dragClick({id:$,isAgain:uA}){$!==u?W.value=!1:(uA&&(W.value=!1),k())}};HA[`dragGetChildDistance_${u}`]=({dragX:$,dragY:uA,moveId:wA})=>U($,uA,X(wA));const nA={isInContainer({x:$,y:uA,id:wA,moveId:QA}){if(u===wA||w(wA,u))return cA.value=!1,{isIn:!1,level:d,id:u,groupId:a};const SA=X(QA);if(L($,uA,SA))return d===0&&(oA.value=!0),{isIn:!0,level:d,id:u,groupId:a};if(d===0){const{ly:fA,lx:J}=U($,uA,SA);if(fA<20&&J<20)return oA.value=!0,{isIn:!0,level:d,id:u,groupId:a};oA.value=!1}return cA.value=!1,{isIn:!1,level:d,id:u,groupId:a}},dragActiveContainer:({containerId:$,containerGroupId:uA,dragX:wA,dragY:QA,moveId:SA})=>{if($===u&&uA===a)if(cA.value=!0,n&&n.value.length>0){let fA={ly:9999999,lx:0,lallx:0,id:"",typey:""};n?.value.forEach(J=>{if(a&&J.groupId!==a)return;const _=re(`dragGetChildDistance_${J.id}`,{dragX:wA,dragY:QA,moveId:SA})[0];_&&(fA.ly>_.ly||fA.ly===_.ly&&(fA.lx>_.lx||fA.lx===_.lx&&fA.lallx>_.lallx))&&(fA=_,fA.id=J.id)}),iA.id=fA.id,iA.type=fA.typey,re("dragAciveChild",{id:fA.id,type:fA.typey})}else re("dragAciveChild",{id:""});else cA.value=!1},dragAdd:$=>{if(cA.value){let uA=n?.value.length||0;iA.id!==""&&iA.id!==void 0&&(uA=n?.value.findIndex(wA=>wA.id===iA.id)||0,iA.type==="bottom"&&(uA+=1)),m($,u,uA,a),cA.value=!1}O()},dragAddByClick:$=>{if(!V.value&&u===b.id||V.value?.id===u||V.value?.containerId===u&&V.value?.dragType!=="container"){const uA=m($,u,n?.value.length||0,a,!0);uA&&$.config&&Object.keys($.config).forEach(wA=>{uA.config[wA]=$.config[wA]})}},dragUpdate($){if(cA.value){const uA=B($);if(uA.level=d+1,iA.id!==uA.id){I(uA.containerId,$);let wA=n?.value.findIndex(QA=>QA.id===iA.id)||0;iA.type==="bottom"&&(wA+=1),T(uA,u,wA,a)}cA.value=!1,(0,o.nextTick)(()=>{re("dragClick",{id:uA.id,isAgain:!0})})}O()}},Z={};return(0,o.onMounted)(()=>{(!r||t!=="container")&&Object.keys(HA).forEach($=>{Z[$]=ps($,HA[$])}),t==="container"&&Object.keys(nA).forEach($=>{Z[$]=ps($,nA[$])}),A.isNewAdd&&(0,o.nextTick)(()=>{k(),delete A.isNewAdd})}),(0,o.onUnmounted)(()=>{Object.keys(Z).forEach($=>{ku($,Z[$])})}),{onMouseenter:Y,onMouseleave:tA,activeComponent:k,handleComponentClick:BA,deleteComponentByClick:N,copyComponent:D,getParentComponents:y,isBottomToolBar:lA,isHover:sA,isSelect:W,isToContainer:cA,isMoveingInTopLevel:oA,isTopActive:AA,isBottomActive:S}},ws=(e,A)=>{const t={x:0,y:0,clientX:0,clientY:0,dragElement:null,dragElementId:"jcode-darg-move-id",toContainerLevel:-1,toContainerId:"",groupId:"",id:""};let n=!1;const r=(v,y)=>{n!==!0&&(n=!0,setTimeout(()=>{v(),n=!1},y))},a=(0,o.ref)(!1),u=(v,y,I)=>{const T=document.createElement("div");return T.id=t.dragElementId,T.innerText=v,T.className="d-drag-move",T.style.top=`${y}px`,T.style.left=`${I}px`,document.body.appendChild(T),T},d=()=>{document.onmousemove=null,document.onmouseup=null,a.value=!1,re("dragAciveChild",{id:""})},h=()=>{d(),t.dragElement&&(t.dragElement.remove(),t.dragElement=null,A?re("dragAdd",e):re("dragUpdate",e.id))},g=v=>{const{clientY:y,clientX:I}=v;if(!t.dragElement){const T=Math.abs(t.x-I),D=Math.abs(t.y-y);if(T<=1&&D<=1)return;a.value=!0,t.dragElement=u(e.name,y-11,I-32)}t.dragElement.style.top=`${y-11}px`,t.dragElement.style.left=`${I-32}px`,t.clientX=I,t.clientY=y,r(()=>{if(!a.value)return;const T=re("isInContainer",{x:I,y,id:e.id,moveId:t.id});t.toContainerLevel=-1,t.toContainerId="",t.groupId="",T.forEach(({level:D,id:V,isIn:b,groupId:K})=>{b&&t.toContainerLevel<D&&(t.toContainerLevel=D,t.toContainerId=V,t.groupId=K)}),t.toContainerId!==""?re("dragActiveContainer",{containerId:t.toContainerId,containerGroupId:t.groupId,dragX:I,dragY:y,moveId:t.id}):re("dragAciveChild",{id:""})},100)};return{onContextmenu:()=>{d()},onMousedown:v=>{t.x=v.clientX,t.y=v.clientY,t.id=gt(),document.onmouseup=h,document.onmousemove=g},onClick:()=>{re("dragAddByClick",e)},moveActive:a}},Mu={class:"d-drag-btns-pname"},Ou={key:0,class:"d-drag-mask"},Ku=(0,o.defineComponent)({name:"DDrag",__name:"drag",props:{componentData:{default:()=>({})},isContainer:{type:Boolean,default:!1}},setup(e){const A=e,t=(0,o.ref)(),{onMouseenter:n,onMouseleave:r,activeComponent:a,handleComponentClick:u,deleteComponentByClick:d,copyComponent:h,getParentComponents:g,isHover:B,isSelect:w,isTopActive:m,isBottomActive:v,isBottomToolBar:y}=ms(t,A.componentData,"component"),{onContextmenu:I,onMousedown:T,moveActive:D}=ws(A.componentData,!1);return(V,b)=>{const K=(0,o.resolveComponent)("j-button"),sA=(0,o.resolveComponent)("el-space");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["d-drag-component",{selected:(0,o.unref)(w),hovered:(0,o.unref)(B),isBottomToolBar:(0,o.unref)(y),active:(0,o.unref)(D),isTopActive:(0,o.unref)(m),isBottomActive:(0,o.unref)(v)}])},[b[11]||(b[11]=(0,o.createElementVNode)("div",{class:"d-drag-line"},null,-1)),(0,o.createElementVNode)("div",{class:"d-drag-btns",onMouseenter:b[4]||(b[4]=(...W)=>(0,o.unref)(n)&&(0,o.unref)(n)(...W)),onMouseleave:b[5]||(b[5]=(...W)=>(0,o.unref)(r)&&(0,o.unref)(r)(...W))},[(0,o.createVNode)(sA,{size:4},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,o.withModifiers)(()=>{},["stop"])},[(0,o.createVNode)(K,{class:"d-drag-btn",type:"primary",size:"small",label:e.componentData.name},null,8,["label"]),(0,o.createElementVNode)("div",Mu,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)((0,o.unref)(g)(e.componentData.containerId),W=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:W.id},[(0,o.createVNode)(K,{class:"d-drag-btn",type:"primary",size:"small",label:W.name,onClick:cA=>(0,o.unref)(u)(W.id)},null,8,["label","onClick"])]))),128))])]),(0,o.createVNode)(K,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:content-copy",onClick:b[0]||(b[0]=(0,o.withModifiers)(W=>(0,o.unref)(h)(e.componentData.id),["stop"]))}),(0,o.createElementVNode)("div",{onContextmenu:b[1]||(b[1]=(0,o.withModifiers)((...W)=>(0,o.unref)(I)&&(0,o.unref)(I)(...W),["stop"])),onMousedown:b[2]||(b[2]=(0,o.withModifiers)((...W)=>(0,o.unref)(T)&&(0,o.unref)(T)(...W),["stop"])),style:{display:"flex"}},[(0,o.createVNode)(K,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:drag"})],32),(0,o.createVNode)(K,{class:"d-drag-btn",danger:"",type:"primary",size:"small",icon:"mdi:delete",onClick:b[3]||(b[3]=(0,o.withModifiers)(W=>(0,o.unref)(d)(e.componentData.id),["stop"]))})]),_:1})],32),(0,o.createElementVNode)("div",{ref_key:"refDrag",ref:t,class:"d-drag-body",onClick:b[6]||(b[6]=(0,o.withModifiers)((...W)=>(0,o.unref)(a)&&(0,o.unref)(a)(...W),["stop"])),onContextmenu:b[7]||(b[7]=(0,o.withModifiers)((...W)=>(0,o.unref)(I)&&(0,o.unref)(I)(...W),["stop"])),onMousedown:b[8]||(b[8]=(0,o.withModifiers)((...W)=>(0,o.unref)(T)&&(0,o.unref)(T)(...W),["stop"])),onMouseenter:b[9]||(b[9]=(...W)=>(0,o.unref)(n)&&(0,o.unref)(n)(...W)),onMouseleave:b[10]||(b[10]=(...W)=>(0,o.unref)(r)&&(0,o.unref)(r)(...W))},[(0,o.renderSlot)(V.$slots,"default"),e.isContainer?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",Ou))],544)],2)}}}),Ko=Ku,Ru=(0,o.defineComponent)({name:"DDragTool",__name:"tool",props:{config:{}},setup(e){const{onContextmenu:A,onMousedown:t,onClick:n}=ws(e.config??{name:"",id:""},!0);return(r,a)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"d-drag-tool",onClick:a[0]||(a[0]=(0,o.withModifiers)((...u)=>(0,o.unref)(n)&&(0,o.unref)(n)(...u),["stop"])),onContextmenu:a[1]||(a[1]=(0,o.withModifiers)((...u)=>(0,o.unref)(A)&&(0,o.unref)(A)(...u),["stop"])),onMousedown:a[2]||(a[2]=(0,o.withModifiers)((...u)=>(0,o.unref)(t)&&(0,o.unref)(t)(...u),["stop"]))},[(0,o.renderSlot)(r.$slots,"default")],32))}}),Ro=Ru,Vu={key:0,class:"d-drag-line"},Pu={key:1,class:"d-drag-btns"},Gu=(0,o.defineComponent)({name:"DDragContainer",__name:"container",props:{componentData:{default:()=>({})},isComponentContainer:{type:Boolean,default:!0},groupId:{default:void 0}},setup(e){const A=e,t=(0,o.ref)(),n=(0,o.computed)(()=>A.componentData?.children||[]),{onMouseenter:r,onMouseleave:a,activeComponent:u,isHover:d,isSelect:h,isToContainer:g,isMoveingInTopLevel:B,isTopActive:w,isBottomActive:m}=ms(t,A.componentData,"container",n,A.isComponentContainer,A.groupId),v=(0,o.computed)(()=>!!(n.value.findIndex(y=>y.groupId===A.groupId)===-1&&g.value));return(y,I)=>{const T=(0,o.resolveComponent)("j-button");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{ref_key:"refDrag",ref:t,class:(0,o.normalizeClass)(["d-drag-container",{selected:(0,o.unref)(h)&&!e.isComponentContainer,hovered:(0,o.unref)(d)&&!e.isComponentContainer,isTopLevel:e.componentData.level===0,active:v.value,isMoveingInTopLevel:(0,o.unref)(B),isTopActive:(0,o.unref)(w),isBottomActive:(0,o.unref)(m)}])},[e.isComponentContainer?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",Vu)),e.isComponentContainer?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",Pu,[(0,o.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,o.withModifiers)(()=>{},["stop"])},[(0,o.createVNode)(T,{class:"d-drag-btn",type:"primary",size:"small",label:e.componentData.name},null,8,["label"])])])),(0,o.createElementVNode)("div",{class:"d-drag-body",onClick:I[0]||(I[0]=(0,o.withModifiers)((...D)=>(0,o.unref)(u)&&(0,o.unref)(u)(...D),["stop"])),onMouseenter:I[1]||(I[1]=(...D)=>(0,o.unref)(r)&&(0,o.unref)(r)(...D)),onMouseleave:I[2]||(I[2]=(...D)=>(0,o.unref)(a)&&(0,o.unref)(a)(...D))},[(0,o.renderSlot)(y.$slots,"default")],32)],2)}}}),Vo=Gu,zu=(0,o.defineComponent)({name:"DDragFormList",__name:"dragFormList",props:{componentList:{default:()=>[]},globalConfig:{default:()=>({})}},setup(e){const{designItemName:A}=(0,o.inject)("dui-design-provide",{});return(t,n)=>{const r=(0,o.resolveComponent)("el-col");return(0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.componentList,a=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:a.id},[a.type!="pkey"?((0,o.openBlock)(),(0,o.createBlock)(r,{key:0,span:a.config.span||24},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(Ko,{"is-container":a.dragType!=="component","component-data":a},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)((0,o.unref)(A)),{"component-data":a,"global-config":e.globalConfig},null,8,["component-data","global-config"]))]),_:2},1032,["is-container","component-data"])]),_:2},1032,["span"])):(0,o.createCommentVNode)("",!0)],64))),128)}}}),Po=zu,Xu=(0,o.defineComponent)({name:"DDragIndexList",__name:"dragIndexList",props:{componentList:{default:()=>[]},globalConfig:{default:()=>({})}},setup(e){const{designItemName:A}=(0,o.inject)("dui-design-provide",{}),t=n=>{if(n.flexWidth)return{width:n.flexWidth+"%"}};return(n,r)=>((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.componentList,a=>((0,o.openBlock)(),(0,o.createBlock)(Ko,{key:a.id,style:(0,o.normalizeStyle)(t(a.config)),"is-container":a.dragType!=="component","component-data":a},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)((0,o.unref)(A)),{"component-data":a,"global-config":e.globalConfig},null,8,["component-data","global-config"]))]),_:2},1032,["style","is-container","component-data"]))),128))}}),Go=Xu,Cs=ft(Ko,[Ro,Vo,Po,Go]);function Fn(e){return(0,o.getCurrentScope)()?((0,o.onScopeDispose)(e),!0):!1}function qe(e){return typeof e=="function"?e():(0,o.unref)(e)}var $u=typeof window<"u"&&typeof document<"u",Yu=e=>typeof e<"u",Wu=Object.prototype.toString,Ju=e=>Wu.call(e)==="[object Object]",Zu=()=>{};function ju(e,A){function t(...n){return new Promise((r,a)=>{Promise.resolve(e(()=>A.apply(this,n),{fn:A,thisArg:this,args:n})).then(r).catch(a)})}return t}var vs=e=>e();function qu(e=vs){const A=(0,o.ref)(!0);function t(){A.value=!1}function n(){A.value=!0}const r=(...a)=>{A.value&&e(...a)};return{isActive:(0,o.readonly)(A),pause:t,resume:n,eventFilter:r}}function ys(e,A=!1,t="Timeout"){return new Promise((n,r)=>{setTimeout(A?()=>r(t):n,e)})}function Ad(e,A,t={}){const{eventFilter:n=vs,...r}=t;return(0,o.watch)(e,ju(n,A),r)}function Yt(e,A,t={}){const{eventFilter:n,...r}=t,{eventFilter:a,pause:u,resume:d,isActive:h}=qu(n);return{stop:Ad(e,A,{...r,eventFilter:a}),pause:u,resume:d,isActive:h}}function ed(e,A={}){if(!(0,o.isRef)(e))return(0,o.toRefs)(e);const t=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const n in e.value)t[n]=(0,o.customRef)(()=>({get(){return e.value[n]},set(r){var a;if((a=qe(A.replaceRef))==null||a)if(Array.isArray(e.value)){const u=[...e.value];u[n]=r,e.value=u}else{const u={...e.value,[n]:r};Object.setPrototypeOf(u,Object.getPrototypeOf(e.value)),e.value=u}else e.value[n]=r}}));return t}function zo(e,A=!1){function t(w,{flush:m="sync",deep:v=!1,timeout:y,throwOnTimeout:I}={}){let T=null;const D=[new Promise(V=>{T=(0,o.watch)(e,b=>{w(b)!==A&&(T?.(),V(b))},{flush:m,deep:v,immediate:!0})})];return y!=null&&D.push(ys(y,I).then(()=>qe(e)).finally(()=>T?.())),Promise.race(D)}function n(w,m){if(!(0,o.isRef)(w))return t(b=>b===w,m);const{flush:v="sync",deep:y=!1,timeout:I,throwOnTimeout:T}=m??{};let D=null;const V=[new Promise(b=>{D=(0,o.watch)([e,w],([K,sA])=>{A!==(K===sA)&&(D?.(),b(K))},{flush:v,deep:y,immediate:!0})})];return I!=null&&V.push(ys(I,T).then(()=>qe(e)).finally(()=>(D?.(),qe(e)))),Promise.race(V)}function r(w){return t(m=>!!m,w)}function a(w){return n(null,w)}function u(w){return n(void 0,w)}function d(w){return t(Number.isNaN,w)}function h(w,m){return t(v=>{const y=Array.from(v);return y.includes(w)||y.includes(qe(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(qe(e))?{toMatch:t,toContains:h,changed:g,changedTimes:B,get not(){return zo(e,!A)}}:{toMatch:t,toBe:n,toBeTruthy:r,toBeNull:a,toBeNaN:d,toBeUndefined:u,changed:g,changedTimes:B,get not(){return zo(e,!A)}}}function Xo(e){return zo(e)}function td(e){var A;const t=qe(e);return(A=t?.$el)!=null?A:t}var Qs=$u?window:void 0;function Es(...e){let A,t,n,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,n,r]=e,A=Qs):[A,t,n,r]=e,!A)return 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,o.watch)(()=>[td(A),qe(r)],([B,w])=>{if(u(),!B)return;const m=Ju(w)?{...w}:w;a.push(...t.flatMap(v=>n.map(y=>d(B,v,y,m))))},{immediate:!0,flush:"post"}),g=()=>{h(),u()};return Fn(g),g}function nd(e){return typeof e=="function"?e:typeof e=="string"?A=>A.key===e:Array.isArray(e)?A=>e.includes(A.key):()=>!0}function Fs(...e){let A,t,n={};e.length===3?(A=e[0],t=e[1],n=e[2]):e.length===2?typeof e[1]=="object"?(A=!0,t=e[0],n=e[1]):(A=e[0],t=e[1]):(A=!0,t=e[0]);const{target:r=Qs,eventName:a="keydown",passive:u=!1,dedupe:d=!1}=n,h=nd(A);return Es(r,a,B=>{B.repeat&&qe(d)||h(B)&&t(B)},u)}function rd(e){return JSON.parse(JSON.stringify(e))}function $o(e,A,t,n={}){var r,a,u;const{clone:d=!1,passive:h=!1,eventName:g,deep:B=!1,defaultValue:w,shouldEmit:m}=n,v=(0,o.getCurrentInstance)(),y=t||v?.emit||((r=v?.$emit)==null?void 0:r.bind(v))||((u=(a=v?.proxy)==null?void 0:a.$emit)==null?void 0:u.bind(v?.proxy));let I=g;A||(A="modelValue"),I=I||`update:${A.toString()}`;const T=b=>d?typeof d=="function"?d(b):rd(b):b,D=()=>Yu(e[A])?T(e[A]):w,V=b=>{m?m(b)&&y(I,b):y(I,b)};if(h){const b=(0,o.ref)(D());let K=!1;return(0,o.watch)(()=>e[A],sA=>{K||(K=!0,b.value=T(sA),(0,o.nextTick)(()=>K=!1))}),(0,o.watch)(b,sA=>{!K&&(sA!==e[A]||B)&&V(sA)},{deep:B}),b}else return(0,o.computed)({get(){return D()},set(b){V(b)}})}var od={value:()=>{}};function cr(){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 ur(t)}function ur(e){this._=e}function id(e,A){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!A.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}ur.prototype=cr.prototype={constructor:ur,on:function(e,A){var t=this._,n=id(e+"",t),r,a=-1,u=n.length;if(arguments.length<2){for(;++a<u;)if((r=(e=n[a]).type)&&(r=sd(t[r],e.name)))return r;return}if(A!=null&&typeof A!="function")throw new Error("invalid callback: "+A);for(;++a<u;)if(r=(e=n[a]).type)t[r]=Us(t[r],e.name,A);else if(A==null)for(r in t)t[r]=Us(t[r],e.name,null);return this},copy:function(){var e={},A=this._;for(var t in A)e[t]=A[t].slice();return new ur(e)},call:function(e,A){if((r=arguments.length-2)>0)for(var t=new Array(r),n=0,r,a;n<r;++n)t[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],n=0,r=a.length;n<r;++n)a[n].value.apply(A,t)},apply:function(e,A,t){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],r=0,a=n.length;r<a;++r)n[r].value.apply(A,t)}};function sd(e,A){for(var t=0,n=e.length,r;t<n;++t)if((r=e[t]).name===A)return r.value}function Us(e,A,t){for(var n=0,r=e.length;n<r;++n)if(e[n].name===A){e[n]=od,e=e.slice(0,n).concat(e.slice(n+1));break}return t!=null&&e.push({name:A,value:t}),e}var Yo="http://www.w3.org/1999/xhtml",bs={svg:"http://www.w3.org/2000/svg",xhtml:Yo,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function dr(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 ad(e){return function(){var A=this.ownerDocument,t=this.namespaceURI;return t===Yo&&A.documentElement.namespaceURI===Yo?A.createElement(e):A.createElementNS(t,e)}}function ld(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Hs(e){var A=dr(e);return(A.local?ld:ad)(A)}function cd(){}function Wo(e){return e==null?cd:function(){return this.querySelector(e)}}function ud(e){typeof e!="function"&&(e=Wo(e));for(var A=this._groups,t=A.length,n=new Array(t),r=0;r<t;++r)for(var a=A[r],u=a.length,d=n[r]=new Array(u),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 Fe(n,this._parents)}function dd(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function fd(){return[]}function Is(e){return e==null?fd:function(){return this.querySelectorAll(e)}}function gd(e){return function(){return dd(e.apply(this,arguments))}}function hd(e){typeof e=="function"?e=gd(e):e=Is(e);for(var A=this._groups,t=A.length,n=[],r=[],a=0;a<t;++a)for(var u=A[a],d=u.length,h,g=0;g<d;++g)(h=u[g])&&(n.push(e.call(h,h.__data__,g,u)),r.push(h));return new Fe(n,r)}function _s(e){return function(){return this.matches(e)}}function Ss(e){return function(A){return A.matches(e)}}var Bd=Array.prototype.find;function pd(e){return function(){return Bd.call(this.children,e)}}function md(){return this.firstElementChild}function wd(e){return this.select(e==null?md:pd(typeof e=="function"?e:Ss(e)))}var Cd=Array.prototype.filter;function vd(){return Array.from(this.children)}function yd(e){return function(){return Cd.call(this.children,e)}}function Qd(e){return this.selectAll(e==null?vd:yd(typeof e=="function"?e:Ss(e)))}function Ed(e){typeof e!="function"&&(e=_s(e));for(var A=this._groups,t=A.length,n=new Array(t),r=0;r<t;++r)for(var a=A[r],u=a.length,d=n[r]=[],h,g=0;g<u;++g)(h=a[g])&&e.call(h,h.__data__,g,a)&&d.push(h);return new Fe(n,this._parents)}function xs(e){return new Array(e.length)}function Fd(){return new Fe(this._enter||this._groups.map(xs),this._parents)}function fr(e,A){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=A}fr.prototype={constructor:fr,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 Ud(e){return function(){return e}}function bd(e,A,t,n,r,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 fr(e,a[u]);for(;u<h;++u)(d=A[u])&&(r[u]=d)}function Hd(e,A,t,n,r,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)?r[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 fr(e,a[d]);for(d=0;d<B;++d)(h=A[d])&&g.get(m[d])===h&&(r[d]=h)}function Id(e){return e.__data__}function _d(e,A){if(!arguments.length)return Array.from(this,Id);var t=A?Hd:bd,n=this._parents,r=this._groups;typeof e!="function"&&(e=Ud(e));for(var a=r.length,u=new Array(a),d=new Array(a),h=new Array(a),g=0;g<a;++g){var B=n[g],w=r[g],m=w.length,v=Sd(e.call(B,B&&B.__data__,g,n)),y=v.length,I=d[g]=new Array(y),T=u[g]=new Array(y);t(B,w,I,T,h[g]=new Array(m),v,A);for(var D=0,V=0,b,K;D<y;++D)if(b=I[D]){for(D>=V&&(V=D+1);!(K=T[V])&&++V<y;);b._next=K||null}}return u=new Fe(u,n),u._enter=d,u._exit=h,u}function Sd(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function xd(){return new Fe(this._exit||this._groups.map(xs),this._parents)}function Dd(e,A,t){var n=this.enter(),r=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),A!=null&&(r=A(r),r&&(r=r.selection())),t==null?a.remove():t(a),n&&r?n.merge(r).order():r}function Nd(e){for(var A=e.selection?e.selection():e,t=this._groups,n=A._groups,r=t.length,a=n.length,u=Math.min(r,a),d=new Array(r),h=0;h<u;++h)for(var g=t[h],B=n[h],w=g.length,m=d[h]=new Array(w),v,y=0;y<w;++y)(v=g[y]||B[y])&&(m[y]=v);for(;h<r;++h)d[h]=t[h];return new Fe(d,this._parents)}function Ld(){for(var e=this._groups,A=-1,t=e.length;++A<t;)for(var n=e[A],r=n.length-1,a=n[r],u;--r>=0;)(u=n[r])&&(a&&u.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(u,a),a=u);return this}function Td(e){e||(e=kd);function A(w,m){return w&&m?e(w.__data__,m.__data__):!w-!m}for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a){for(var u=t[a],d=u.length,h=r[a]=new Array(d),g,B=0;B<d;++B)(g=u[B])&&(h[B]=g);h.sort(A)}return new Fe(r,this._parents).order()}function kd(e,A){return e<A?-1:e>A?1:e>=A?0:NaN}function Md(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Od(){return Array.from(this)}function Kd(){for(var e=this._groups,A=0,t=e.length;A<t;++A)for(var n=e[A],r=0,a=n.length;r<a;++r){var u=n[r];if(u)return u}return null}function Rd(){let e=0;for(const A of this)++e;return e}function Vd(){return!this.node()}function Pd(e){for(var A=this._groups,t=0,n=A.length;t<n;++t)for(var r=A[t],a=0,u=r.length,d;a<u;++a)(d=r[a])&&e.call(d,d.__data__,a,r);return this}function Gd(e){return function(){this.removeAttribute(e)}}function zd(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Xd(e,A){return function(){this.setAttribute(e,A)}}function $d(e,A){return function(){this.setAttributeNS(e.space,e.local,A)}}function Yd(e,A){return function(){var t=A.apply(this,arguments);t==null?this.removeAttribute(e):this.setAttribute(e,t)}}function Wd(e,A){return function(){var t=A.apply(this,arguments);t==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}}function Jd(e,A){var t=dr(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?zd:Gd:typeof A=="function"?t.local?Wd:Yd:t.local?$d:Xd)(t,A))}function Ds(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Zd(e){return function(){this.style.removeProperty(e)}}function jd(e,A,t){return function(){this.style.setProperty(e,A,t)}}function qd(e,A,t){return function(){var n=A.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,t)}}function Af(e,A,t){return arguments.length>1?this.each((A==null?Zd:typeof A=="function"?qd:jd)(e,A,t??"")):Wt(this.node(),e)}function Wt(e,A){return e.style.getPropertyValue(A)||Ds(e).getComputedStyle(e,null).getPropertyValue(A)}function ef(e){return function(){delete this[e]}}function tf(e,A){return function(){this[e]=A}}function nf(e,A){return function(){var t=A.apply(this,arguments);t==null?delete this[e]:this[e]=t}}function rf(e,A){return arguments.length>1?this.each((A==null?ef:typeof A=="function"?nf:tf)(e,A)):this.node()[e]}function Ns(e){return e.trim().split(/^|\s+/)}function Jo(e){return e.classList||new Ls(e)}function Ls(e){this._node=e,this._names=Ns(e.getAttribute("class")||"")}Ls.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var A=this._names.indexOf(e);A>=0&&(this._names.splice(A,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Ts(e,A){for(var t=Jo(e),n=-1,r=A.length;++n<r;)t.add(A[n])}function ks(e,A){for(var t=Jo(e),n=-1,r=A.length;++n<r;)t.remove(A[n])}function of(e){return function(){Ts(this,e)}}function sf(e){return function(){ks(this,e)}}function af(e,A){return function(){(A.apply(this,arguments)?Ts:ks)(this,e)}}function lf(e,A){var t=Ns(e+"");if(arguments.length<2){for(var n=Jo(this.node()),r=-1,a=t.length;++r<a;)if(!n.contains(t[r]))return!1;return!0}return this.each((typeof A=="function"?af:A?of:sf)(t,A))}function cf(){this.textContent=""}function uf(e){return function(){this.textContent=e}}function df(e){return function(){var A=e.apply(this,arguments);this.textContent=A??""}}function ff(e){return arguments.length?this.each(e==null?cf:(typeof e=="function"?df:uf)(e)):this.node().textContent}function gf(){this.innerHTML=""}function hf(e){return function(){this.innerHTML=e}}function Bf(e){return function(){var A=e.apply(this,arguments);this.innerHTML=A??""}}function pf(e){return arguments.length?this.each(e==null?gf:(typeof e=="function"?Bf:hf)(e)):this.node().innerHTML}function mf(){this.nextSibling&&this.parentNode.appendChild(this)}function wf(){return this.each(mf)}function Cf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vf(){return this.each(Cf)}function yf(e){var A=typeof e=="function"?e:Hs(e);return this.select(function(){return this.appendChild(A.apply(this,arguments))})}function Qf(){return null}function Ef(e,A){var t=typeof e=="function"?e:Hs(e),n=A==null?Qf:typeof A=="function"?A:Wo(A);return this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})}function Ff(){var e=this.parentNode;e&&e.removeChild(this)}function Uf(){return this.each(Ff)}function bf(){var e=this.cloneNode(!1),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function Hf(){var e=this.cloneNode(!0),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function If(e){return this.select(e?Hf:bf)}function _f(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Sf(e){return function(A){e.call(this,A,this.__data__)}}function xf(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 Df(e){return function(){var A=this.__on;if(A){for(var t=0,n=-1,r=A.length,a;t<r;++t)a=A[t],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):A[++n]=a;++n?A.length=n:delete this.__on}}}function Nf(e,A,t){return function(){var n=this.__on,r,a=Sf(A);if(n){for(var u=0,d=n.length;u<d;++u)if((r=n[u]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=t),r.value=A;return}}this.addEventListener(e.type,a,t),r={type:e.type,name:e.name,value:A,listener:a,options:t},n?n.push(r):this.__on=[r]}}function Lf(e,A,t){var n=xf(e+""),r,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(r=0,B=d[h];r<a;++r)if((u=n[r]).type===B.type&&u.name===B.name)return B.value}return}for(d=A?Nf:Df,r=0;r<a;++r)this.each(d(n[r],A,t));return this}function Ms(e,A,t){var n=Ds(e),r=n.CustomEvent;typeof r=="function"?r=new r(A,t):(r=n.document.createEvent("Event"),t?(r.initEvent(A,t.bubbles,t.cancelable),r.detail=t.detail):r.initEvent(A,!1,!1)),e.dispatchEvent(r)}function Tf(e,A){return function(){return Ms(this,e,A)}}function kf(e,A){return function(){return Ms(this,e,A.apply(this,arguments))}}function Mf(e,A){return this.each((typeof A=="function"?kf:Tf)(e,A))}function*Of(){for(var e=this._groups,A=0,t=e.length;A<t;++A)for(var n=e[A],r=0,a=n.length,u;r<a;++r)(u=n[r])&&(yield u)}var Os=[null];function Fe(e,A){this._groups=e,this._parents=A}function Un(){return new Fe([[document.documentElement]],Os)}function Kf(){return this}Fe.prototype=Un.prototype={constructor:Fe,select:ud,selectAll:hd,selectChild:wd,selectChildren:Qd,filter:Ed,data:_d,enter:Fd,exit:xd,join:Dd,merge:Nd,selection:Kf,order:Ld,sort:Td,call:Md,nodes:Od,node:Kd,size:Rd,empty:Vd,each:Pd,attr:Jd,style:Af,property:rf,classed:lf,text:ff,html:pf,raise:wf,lower:vf,append:yf,insert:Ef,remove:Uf,clone:If,datum:_f,on:Lf,dispatch:Mf,[Symbol.iterator]:Of};function Te(e){return typeof e=="string"?new Fe([[document.querySelector(e)]],[document.documentElement]):new Fe([[e]],Os)}function Rf(e){let A;for(;A=e.sourceEvent;)e=A;return e}function Pe(e,A){if(e=Rf(e),A===void 0&&(A=e.currentTarget),A){var t=A.ownerSVGElement||A;if(t.createSVGPoint){var n=t.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,n=n.matrixTransform(A.getScreenCTM().inverse()),[n.x,n.y]}if(A.getBoundingClientRect){var r=A.getBoundingClientRect();return[e.clientX-r.left-A.clientLeft,e.clientY-r.top-A.clientTop]}}return[e.pageX,e.pageY]}var Vf={passive:!1},bn={capture:!0,passive:!1};function Zo(e){e.stopImmediatePropagation()}function Jt(e){e.preventDefault(),e.stopImmediatePropagation()}function Ks(e){var A=e.document.documentElement,t=Te(e).on("dragstart.drag",Jt,bn);"onselectstart"in A?t.on("selectstart.drag",Jt,bn):(A.__noselect=A.style.MozUserSelect,A.style.MozUserSelect="none")}function Rs(e,A){var t=e.document.documentElement,n=Te(e).on("dragstart.drag",null);A&&(n.on("click.drag",Jt,bn),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 gr=e=>()=>e;function jo(e,{sourceEvent:A,subject:t,target:n,identifier:r,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:r,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:u,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:g,enumerable:!0,configurable:!0},_:{value:B}})}jo.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Pf(e){return!e.ctrlKey&&!e.button}function Gf(){return this.parentNode}function zf(e,A){return A??{x:e.x,y:e.y}}function Xf(){return navigator.maxTouchPoints||"ontouchstart"in this}function $f(){var e=Pf,A=Gf,t=zf,n=Xf,r={},a=cr("start","drag","end"),u=0,d,h,g,B,w=0;function m(K){K.on("mousedown.drag",v).filter(n).on("touchstart.drag",T).on("touchmove.drag",D,Vf).on("touchend.drag touchcancel.drag",V).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(K,sA){if(!(B||!e.call(this,K,sA))){var W=b(this,A.call(this,K,sA),K,sA,"mouse");W&&(Te(K.view).on("mousemove.drag",y,bn).on("mouseup.drag",I,bn),Ks(K.view),Zo(K),g=!1,d=K.clientX,h=K.clientY,W("start",K))}}function y(K){if(Jt(K),!g){var sA=K.clientX-d,W=K.clientY-h;g=sA*sA+W*W>w}r.mouse("drag",K)}function I(K){Te(K.view).on("mousemove.drag mouseup.drag",null),Rs(K.view,g),Jt(K),r.mouse("end",K)}function T(K,sA){if(e.call(this,K,sA)){var W=K.changedTouches,cA=A.call(this,K,sA),lA=W.length,oA,iA;for(oA=0;oA<lA;++oA)(iA=b(this,cA,K,sA,W[oA].identifier,W[oA]))&&(Zo(K),iA("start",K,W[oA]))}}function D(K){var sA=K.changedTouches,W=sA.length,cA,lA;for(cA=0;cA<W;++cA)(lA=r[sA[cA].identifier])&&(Jt(K),lA("drag",K,sA[cA]))}function V(K){var sA=K.changedTouches,W=sA.length,cA,lA;for(B&&clearTimeout(B),B=setTimeout(function(){B=null},500),cA=0;cA<W;++cA)(lA=r[sA[cA].identifier])&&(Zo(K),lA("end",K,sA[cA]))}function b(K,sA,W,cA,lA,oA){var iA=a.copy(),AA=Pe(oA||W,sA),S,eA,H;if((H=t.call(K,new jo("beforestart",{sourceEvent:W,target:m,identifier:lA,active:u,x:AA[0],y:AA[1],dx:0,dy:0,dispatch:iA}),cA))!=null)return S=H.x-AA[0]||0,eA=H.y-AA[1]||0,function X(U,L,k){var N=AA,O;switch(U){case"start":r[lA]=X,O=u++;break;case"end":delete r[lA],--u;case"drag":AA=Pe(k||L,sA),O=u;break}iA.call(U,K,new jo(U,{sourceEvent:L,subject:H,target:m,identifier:lA,active:O,x:AA[0]+S,y:AA[1]+eA,dx:AA[0]-N[0],dy:AA[1]-N[1],dispatch:iA}),cA)}}return m.filter=function(K){return arguments.length?(e=typeof K=="function"?K:gr(!!K),m):e},m.container=function(K){return arguments.length?(A=typeof K=="function"?K:gr(K),m):A},m.subject=function(K){return arguments.length?(t=typeof K=="function"?K:gr(K),m):t},m.touchable=function(K){return arguments.length?(n=typeof K=="function"?K:gr(!!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 qo(e,A,t){e.prototype=A.prototype=t,t.constructor=e}function Vs(e,A){var t=Object.create(e.prototype);for(var n in A)t[n]=A[n];return t}function Hn(){}var In=.7,hr=1/In,Zt="\\s*([+-]?\\d+)\\s*",_n="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ge="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Yf=/^#([0-9a-f]{3,8})$/,Wf=new RegExp(`^rgb\\(${Zt},${Zt},${Zt}\\)$`),Jf=new RegExp(`^rgb\\(${Ge},${Ge},${Ge}\\)$`),Zf=new RegExp(`^rgba\\(${Zt},${Zt},${Zt},${_n}\\)$`),jf=new RegExp(`^rgba\\(${Ge},${Ge},${Ge},${_n}\\)$`),qf=new RegExp(`^hsl\\(${_n},${Ge},${Ge}\\)$`),Ag=new RegExp(`^hsla\\(${_n},${Ge},${Ge},${_n}\\)$`),Ps={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};qo(Hn,St,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Gs,formatHex:Gs,formatHex8:eg,formatHsl:tg,formatRgb:zs,toString:zs});function Gs(){return this.rgb().formatHex()}function eg(){return this.rgb().formatHex8()}function tg(){return Js(this).formatHsl()}function zs(){return this.rgb().formatRgb()}function St(e){var A,t;return e=(e+"").trim().toLowerCase(),(A=Yf.exec(e))?(t=A[1].length,A=parseInt(A[1],16),t===6?Xs(A):t===3?new we(A>>8&15|A>>4&240,A>>4&15|A&240,(A&15)<<4|A&15,1):t===8?Br(A>>24&255,A>>16&255,A>>8&255,(A&255)/255):t===4?Br(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=Wf.exec(e))?new we(A[1],A[2],A[3],1):(A=Jf.exec(e))?new we(A[1]*255/100,A[2]*255/100,A[3]*255/100,1):(A=Zf.exec(e))?Br(A[1],A[2],A[3],A[4]):(A=jf.exec(e))?Br(A[1]*255/100,A[2]*255/100,A[3]*255/100,A[4]):(A=qf.exec(e))?Ws(A[1],A[2]/100,A[3]/100,1):(A=Ag.exec(e))?Ws(A[1],A[2]/100,A[3]/100,A[4]):Ps.hasOwnProperty(e)?Xs(Ps[e]):e==="transparent"?new we(NaN,NaN,NaN,0):null}function Xs(e){return new we(e>>16&255,e>>8&255,e&255,1)}function Br(e,A,t,n){return n<=0&&(e=A=t=NaN),new we(e,A,t,n)}function ng(e){return e instanceof Hn||(e=St(e)),e?(e=e.rgb(),new we(e.r,e.g,e.b,e.opacity)):new we}function Ai(e,A,t,n){return arguments.length===1?ng(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}qo(we,Ai,Vs(Hn,{brighter(e){return e=e==null?hr:Math.pow(hr,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?In:Math.pow(In,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new we(xt(this.r),xt(this.g),xt(this.b),pr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:$s,formatHex:$s,formatHex8:rg,formatRgb:Ys,toString:Ys}));function $s(){return`#${Dt(this.r)}${Dt(this.g)}${Dt(this.b)}`}function rg(){return`#${Dt(this.r)}${Dt(this.g)}${Dt(this.b)}${Dt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ys(){const e=pr(this.opacity);return`${e===1?"rgb(":"rgba("}${xt(this.r)}, ${xt(this.g)}, ${xt(this.b)}${e===1?")":`, ${e})`}`}function pr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Dt(e){return e=xt(e),(e<16?"0":"")+e.toString(16)}function Ws(e,A,t,n){return n<=0?e=A=t=NaN:t<=0||t>=1?e=A=NaN:A<=0&&(e=NaN),new ke(e,A,t,n)}function Js(e){if(e instanceof ke)return new ke(e.h,e.s,e.l,e.opacity);if(e instanceof Hn||(e=St(e)),!e)return new ke;if(e instanceof ke)return e;e=e.rgb();var A=e.r/255,t=e.g/255,n=e.b/255,r=Math.min(A,t,n),a=Math.max(A,t,n),u=NaN,d=a-r,h=(a+r)/2;return d?(A===a?u=(t-n)/d+(t<n)*6:t===a?u=(n-A)/d+2:u=(A-t)/d+4,d/=h<.5?a+r:2-a-r,u*=60):d=h>0&&h<1?0:u,new ke(u,d,h,e.opacity)}function og(e,A,t,n){return arguments.length===1?Js(e):new ke(e,A,t,n??1)}function ke(e,A,t,n){this.h=+e,this.s=+A,this.l=+t,this.opacity=+n}qo(ke,og,Vs(Hn,{brighter(e){return e=e==null?hr:Math.pow(hr,e),new ke(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?In:Math.pow(In,e),new ke(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,A=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*A,r=2*t-n;return new we(ei(e>=240?e-240:e+120,r,n),ei(e,r,n),ei(e<120?e+240:e-120,r,n),this.opacity)},clamp(){return new ke(Zs(this.h),mr(this.s),mr(this.l),pr(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=pr(this.opacity);return`${e===1?"hsl(":"hsla("}${Zs(this.h)}, ${mr(this.s)*100}%, ${mr(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Zs(e){return e=(e||0)%360,e<0?e+360:e}function mr(e){return Math.max(0,Math.min(1,e||0))}function ei(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 ti=e=>()=>e;function ig(e,A){return function(t){return e+t*A}}function sg(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 ag(e){return(e=+e)==1?js:function(A,t){return t-A?sg(A,t,e):ti(isNaN(A)?t:A)}}function js(e,A){var t=A-e;return t?ig(e,t):ti(isNaN(e)?A:e)}var wr=(function e(A){var t=ag(A);function n(r,a){var u=t((r=Ai(r)).r,(a=Ai(a)).r),d=t(r.g,a.g),h=t(r.b,a.b),g=js(r.opacity,a.opacity);return function(B){return r.r=u(B),r.g=d(B),r.b=h(B),r.opacity=g(B),r+""}}return n.gamma=e,n})(1);function lg(e,A){A||(A=[]);var t=e?Math.min(A.length,e.length):0,n=A.slice(),r;return function(a){for(r=0;r<t;++r)n[r]=e[r]*(1-a)+A[r]*a;return n}}function cg(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ug(e,A){var t=A?A.length:0,n=e?Math.min(t,e.length):0,r=new Array(n),a=new Array(t),u;for(u=0;u<n;++u)r[u]=Sn(e[u],A[u]);for(;u<t;++u)a[u]=A[u];return function(d){for(u=0;u<n;++u)a[u]=r[u](d);return a}}function dg(e,A){var t=new Date;return e=+e,A=+A,function(n){return t.setTime(e*(1-n)+A*n),t}}function ze(e,A){return e=+e,A=+A,function(t){return e*(1-t)+A*t}}function fg(e,A){var t={},n={},r;(e===null||typeof e!="object")&&(e={}),(A===null||typeof A!="object")&&(A={});for(r in A)r in e?t[r]=Sn(e[r],A[r]):n[r]=A[r];return function(a){for(r in t)n[r]=t[r](a);return n}}var ni=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ri=new RegExp(ni.source,"g");function gg(e){return function(){return e}}function hg(e){return function(A){return e(A)+""}}function qs(e,A){var t=ni.lastIndex=ri.lastIndex=0,n,r,a,u=-1,d=[],h=[];for(e=e+"",A=A+"";(n=ni.exec(e))&&(r=ri.exec(A));)(a=r.index)>t&&(a=A.slice(t,a),d[u]?d[u]+=a:d[++u]=a),(n=n[0])===(r=r[0])?d[u]?d[u]+=r:d[++u]=r:(d[++u]=null,h.push({i:u,x:ze(n,r)})),t=ri.lastIndex;return t<A.length&&(a=A.slice(t),d[u]?d[u]+=a:d[++u]=a),d.length<2?h[0]?hg(h[0].x):gg(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 Sn(e,A){var t=typeof A,n;return A==null||t==="boolean"?ti(A):(t==="number"?ze:t==="string"?(n=St(A))?(A=n,wr):qs:A instanceof St?wr:A instanceof Date?dg:cg(A)?lg:Array.isArray(A)?ug:typeof A.valueOf!="function"&&typeof A.toString!="function"||isNaN(A)?fg:ze)(e,A)}var Aa=180/Math.PI,oi={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ea(e,A,t,n,r,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:r,translateY:a,rotate:Math.atan2(A,e)*Aa,skewX:Math.atan(h)*Aa,scaleX:u,scaleY:d}}var Cr;function Bg(e){const A=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return A.isIdentity?oi:ea(A.a,A.b,A.c,A.d,A.e,A.f)}function pg(e){return e==null||(Cr||(Cr=document.createElementNS("http://www.w3.org/2000/svg","g")),Cr.setAttribute("transform",e),!(e=Cr.transform.baseVal.consolidate()))?oi:(e=e.matrix,ea(e.a,e.b,e.c,e.d,e.e,e.f))}function ta(e,A,t,n){function r(g){return g.length?g.pop()+" ":""}function a(g,B,w,m,v,y){if(g!==w||B!==m){var I=v.push("translate(",null,A,null,t);y.push({i:I-4,x:ze(g,w)},{i:I-2,x:ze(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(r(w)+"rotate(",null,n)-2,x:ze(g,B)})):B&&w.push(r(w)+"rotate("+B+n)}function d(g,B,w,m){g!==B?m.push({i:w.push(r(w)+"skewX(",null,n)-2,x:ze(g,B)}):B&&w.push(r(w)+"skewX("+B+n)}function h(g,B,w,m,v,y){if(g!==w||B!==m){var I=v.push(r(v)+"scale(",null,",",null,")");y.push({i:I-4,x:ze(g,w)},{i:I-2,x:ze(B,m)})}else(w!==1||m!==1)&&v.push(r(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 y=-1,I=m.length,T;++y<I;)w[(T=m[y]).i]=T.x(v);return w.join("")}}}var mg=ta(Bg,"px, ","px)","deg)"),wg=ta(pg,", ",")",")"),Cg=1e-12;function na(e){return((e=Math.exp(e))+1/e)/2}function vg(e){return((e=Math.exp(e))-1/e)/2}function yg(e){return((e=Math.exp(2*e))-1)/(e+1)}var vr=(function e(A,t,n){function r(a,u){var d=a[0],h=a[1],g=a[2],B=u[0],w=u[1],m=u[2],v=B-d,y=w-h,I=v*v+y*y,T,D;if(I<Cg)D=Math.log(m/g)/A,T=function(W){return[d+W*v,h+W*y,g*Math.exp(A*W*D)]};else{var V=Math.sqrt(I),b=(m*m-g*g+n*I)/(2*g*t*V),K=(m*m-g*g-n*I)/(2*m*t*V),sA=Math.log(Math.sqrt(b*b+1)-b);D=(Math.log(Math.sqrt(K*K+1)-K)-sA)/A,T=function(W){var cA=W*D,lA=na(sA),oA=g/(t*V)*(lA*yg(A*cA+sA)-vg(sA));return[d+oA*v,h+oA*y,g*lA/na(A*cA+sA)]}}return T.duration=D*1e3*A/Math.SQRT2,T}return r.rho=function(a){var u=Math.max(.001,+a),d=u*u;return e(u,d,d*d)},r})(Math.SQRT2,2,4),jt=0,xn=0,Dn=0,ra=1e3,yr,Nn,Qr=0,Nt=0,Er=0,Ln=typeof performance=="object"&&performance.now?performance:Date,oa=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ii(){return Nt||(oa(Qg),Nt=Ln.now()+Er)}function Qg(){Nt=0}function Fr(){this._call=this._time=this._next=null}Fr.prototype=ia.prototype={constructor:Fr,restart:function(e,A,t){if(typeof e!="function")throw new TypeError("callback is not a function");t=(t==null?ii():+t)+(A==null?0:+A),!this._next&&Nn!==this&&(Nn?Nn._next=this:yr=this,Nn=this),this._call=e,this._time=t,si()},stop:function(){this._call&&(this._call=null,this._time=1/0,si())}};function ia(e,A,t){var n=new Fr;return n.restart(e,A,t),n}function Eg(){ii(),++jt;for(var e=yr,A;e;)(A=Nt-e._time)>=0&&e._call.call(void 0,A),e=e._next;--jt}function sa(){Nt=(Qr=Ln.now())+Er,jt=xn=0;try{Eg()}finally{jt=0,Ug(),Nt=0}}function Fg(){var e=Ln.now(),A=e-Qr;A>ra&&(Er-=A,Qr=e)}function Ug(){for(var e,A=yr,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:yr=t);Nn=e,si(n)}function si(e){jt||(xn&&(xn=clearTimeout(xn)),e-Nt>24?(e<1/0&&(xn=setTimeout(sa,e-Ln.now()-Er)),Dn&&(Dn=clearInterval(Dn))):(Dn||(Qr=Ln.now(),Dn=setInterval(Fg,ra)),jt=1,oa(sa)))}function aa(e,A,t){var n=new Fr;return A=A==null?0:+A,n.restart(r=>{n.stop(),e(r+A)},A,t),n}var bg=cr("start","end","cancel","interrupt"),Hg=[],la=0,ca=1,ai=2,Ur=3,ua=4,li=5,br=6;function Hr(e,A,t,n,r,a){var u=e.__transition;if(!u)e.__transition={};else if(t in u)return;Ig(e,t,{name:A,index:n,group:r,on:bg,tween:Hg,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:la})}function ci(e,A){var t=Me(e,A);if(t.state>la)throw new Error("too late; already scheduled");return t}function Xe(e,A){var t=Me(e,A);if(t.state>Ur)throw new Error("too late; already running");return t}function Me(e,A){var t=e.__transition;if(!t||!(t=t[A]))throw new Error("transition not found");return t}function Ig(e,A,t){var n=e.__transition,r;n[A]=t,t.timer=ia(a,0,t.time);function a(g){t.state=ca,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!==ca)return h();for(B in n)if(v=n[B],v.name===t.name){if(v.state===Ur)return aa(u);v.state===ua?(v.state=br,v.timer.stop(),v.on.call("interrupt",e,e.__data__,v.index,v.group),delete n[B]):+B<A&&(v.state=br,v.timer.stop(),v.on.call("cancel",e,e.__data__,v.index,v.group),delete n[B])}if(aa(function(){t.state===Ur&&(t.state=ua,t.timer.restart(d,t.delay,t.time),d(g))}),t.state=ai,t.on.call("start",e,e.__data__,t.index,t.group),t.state===ai){for(t.state=Ur,r=new Array(m=t.tween.length),B=0,w=-1;B<m;++B)(v=t.tween[B].value.call(e,e.__data__,t.index,t.group))&&(r[++w]=v);r.length=w+1}}function d(g){for(var B=g<t.duration?t.ease.call(null,g/t.duration):(t.timer.restart(h),t.state=li,1),w=-1,m=r.length;++w<m;)r[w].call(e,B);t.state===li&&(t.on.call("end",e,e.__data__,t.index,t.group),h())}function h(){t.state=br,t.timer.stop(),delete n[A];for(var g in n)return;delete e.__transition}}function Ir(e,A){var t=e.__transition,n,r,a=!0,u;if(t){A=A==null?null:A+"";for(u in t){if((n=t[u]).name!==A){a=!1;continue}r=n.state>ai&&n.state<li,n.state=br,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete t[u]}a&&delete e.__transition}}function _g(e){return this.each(function(){Ir(this,e)})}function Sg(e,A){var t,n;return function(){var r=Xe(this,e),a=r.tween;if(a!==t){n=t=a;for(var u=0,d=n.length;u<d;++u)if(n[u].name===A){n=n.slice(),n.splice(u,1);break}}r.tween=n}}function xg(e,A,t){var n,r;if(typeof t!="function")throw new Error;return function(){var a=Xe(this,e),u=a.tween;if(u!==n){r=(n=u).slice();for(var d={name:A,value:t},h=0,g=r.length;h<g;++h)if(r[h].name===A){r[h]=d;break}h===g&&r.push(d)}a.tween=r}}function Dg(e,A){var t=this._id;if(e+="",arguments.length<2){for(var n=Me(this.node(),t).tween,r=0,a=n.length,u;r<a;++r)if((u=n[r]).name===e)return u.value;return null}return this.each((A==null?Sg:xg)(t,e,A))}function ui(e,A,t){var n=e._id;return e.each(function(){var r=Xe(this,n);(r.value||(r.value={}))[A]=t.apply(this,arguments)}),function(r){return Me(r,n).value[A]}}function da(e,A){var t;return(typeof A=="number"?ze:A instanceof St?wr:(t=St(A))?(A=t,wr):qs)(e,A)}function Ng(e){return function(){this.removeAttribute(e)}}function Lg(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Tg(e,A,t){var n,r=t+"",a;return function(){var u=this.getAttribute(e);return u===r?null:u===n?a:a=A(n=u,t)}}function kg(e,A,t){var n,r=t+"",a;return function(){var u=this.getAttributeNS(e.space,e.local);return u===r?null:u===n?a:a=A(n=u,t)}}function Mg(e,A,t){var n,r,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===r?a:(r=h,a=A(n=u,d)))}}function Og(e,A,t){var n,r,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===r?a:(r=h,a=A(n=u,d)))}}function Kg(e,A){var t=dr(e),n=t==="transform"?wg:da;return this.attrTween(e,typeof A=="function"?(t.local?Og:Mg)(t,n,ui(this,"attr."+e,A)):A==null?(t.local?Lg:Ng)(t):(t.local?kg:Tg)(t,n,A))}function Rg(e,A){return function(t){this.setAttribute(e,A.call(this,t))}}function Vg(e,A){return function(t){this.setAttributeNS(e.space,e.local,A.call(this,t))}}function Pg(e,A){var t,n;function r(){var a=A.apply(this,arguments);return a!==n&&(t=(n=a)&&Vg(e,a)),t}return r._value=A,r}function Gg(e,A){var t,n;function r(){var a=A.apply(this,arguments);return a!==n&&(t=(n=a)&&Rg(e,a)),t}return r._value=A,r}function zg(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=dr(e);return this.tween(t,(n.local?Pg:Gg)(n,A))}function Xg(e,A){return function(){ci(this,e).delay=+A.apply(this,arguments)}}function $g(e,A){return A=+A,function(){ci(this,e).delay=A}}function Yg(e){var A=this._id;return arguments.length?this.each((typeof e=="function"?Xg:$g)(A,e)):Me(this.node(),A).delay}function Wg(e,A){return function(){Xe(this,e).duration=+A.apply(this,arguments)}}function Jg(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"?Wg:Jg)(A,e)):Me(this.node(),A).duration}function jg(e,A){if(typeof A!="function")throw new Error;return function(){Xe(this,e).ease=A}}function qg(e){var A=this._id;return arguments.length?this.each(jg(A,e)):Me(this.node(),A).ease}function Ah(e,A){return function(){var t=A.apply(this,arguments);if(typeof t!="function")throw new Error;Xe(this,e).ease=t}}function eh(e){if(typeof e!="function")throw new Error;return this.each(Ah(this._id,e))}function th(e){typeof e!="function"&&(e=_s(e));for(var A=this._groups,t=A.length,n=new Array(t),r=0;r<t;++r)for(var a=A[r],u=a.length,d=n[r]=[],h,g=0;g<u;++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 nh(e){if(e._id!==this._id)throw new Error;for(var A=this._groups,t=e._groups,n=A.length,r=t.length,a=Math.min(n,r),u=new Array(n),d=0;d<a;++d)for(var 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 At(u,this._parents,this._name,this._id)}function rh(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 oh(e,A,t){var n,r,a=rh(A)?ci:Xe;return function(){var u=a(this,e),d=u.on;d!==n&&(r=(n=d).copy()).on(A,t),u.on=r}}function ih(e,A){var t=this._id;return arguments.length<2?Me(this.node(),t).on.on(e):this.each(oh(t,e,A))}function sh(e){return function(){var A=this.parentNode;for(var t in this.__transition)if(+t!==e)return;A&&A.removeChild(this)}}function ah(){return this.on("end.remove",sh(this._id))}function lh(e){var A=this._name,t=this._id;typeof e!="function"&&(e=Wo(e));for(var n=this._groups,r=n.length,a=new Array(r),u=0;u<r;++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,Hr(g[m],A,t,m,g,Me(B,t)));return new At(a,this._parents,A,t)}function ch(e){var A=this._name,t=this._id;typeof e!="function"&&(e=Is(e));for(var n=this._groups,r=n.length,a=[],u=[],d=0;d<r;++d)for(var 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,y=Me(B,t),I=0,T=m.length;I<T;++I)(v=m[I])&&Hr(v,A,t,I,m,y);a.push(m),u.push(B)}return new At(a,u,A,t)}var uh=Un.prototype.constructor;function dh(){return new uh(this._groups,this._parents)}function fh(e,A){var t,n,r;return function(){var a=Wt(this,e),u=(this.style.removeProperty(e),Wt(this,e));return a===u?null:a===t&&u===n?r:r=A(t=a,n=u)}}function fa(e){return function(){this.style.removeProperty(e)}}function gh(e,A,t){var n,r=t+"",a;return function(){var u=Wt(this,e);return u===r?null:u===n?a:a=A(n=u,t)}}function hh(e,A,t){var n,r,a;return function(){var u=Wt(this,e),d=t(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Wt(this,e))),u===h?null:u===n&&h===r?a:(r=h,a=A(n=u,d))}}function Bh(e,A){var t,n,r,a="style."+A,u="end."+a,d;return function(){var h=Xe(this,e),g=h.on,B=h.value[a]==null?d||(d=fa(A)):void 0;(g!==t||r!==B)&&(n=(t=g).copy()).on(u,r=B),h.on=n}}function ph(e,A,t){var n=(e+="")=="transform"?mg:da;return A==null?this.styleTween(e,fh(e,n)).on("end.style."+e,fa(e)):typeof A=="function"?this.styleTween(e,hh(e,n,ui(this,"style."+e,A))).each(Bh(this._id,e)):this.styleTween(e,gh(e,n,A),t).on("end.style."+e,null)}function mh(e,A,t){return function(n){this.style.setProperty(e,A.call(this,n),t)}}function wh(e,A,t){var n,r;function a(){var u=A.apply(this,arguments);return u!==r&&(n=(r=u)&&mh(e,u,t)),n}return a._value=A,a}function Ch(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,wh(e,A,t??""))}function vh(e){return function(){this.textContent=e}}function yh(e){return function(){var A=e(this);this.textContent=A??""}}function Qh(e){return this.tween("text",typeof e=="function"?yh(ui(this,"text",e)):vh(e==null?"":e+""))}function Eh(e){return function(A){this.textContent=e.call(this,A)}}function Fh(e){var A,t;function n(){var r=e.apply(this,arguments);return r!==t&&(A=(t=r)&&Eh(r)),A}return n._value=e,n}function Uh(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,Fh(e))}function bh(){for(var e=this._name,A=this._id,t=ga(),n=this._groups,r=n.length,a=0;a<r;++a)for(var u=n[a],d=u.length,h,g=0;g<d;++g)if(h=u[g]){var B=Me(h,A);Hr(h,e,t,g,u,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new At(n,this._parents,e,t)}function Hh(){var e,A,t=this,n=t._id,r=t.size();return new Promise(function(a,u){var d={value:u},h={value:function(){--r===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}),r===0&&a()})}var Ih=0;function At(e,A,t,n){this._groups=e,this._parents=A,this._name=t,this._id=n}function ga(){return++Ih}var et=Un.prototype;At.prototype={constructor:At,select:lh,selectAll:ch,selectChild:et.selectChild,selectChildren:et.selectChildren,filter:th,merge:nh,selection:dh,transition:bh,call:et.call,nodes:et.nodes,node:et.node,size:et.size,empty:et.empty,each:et.each,on:ih,attr:Kg,attrTween:zg,style:ph,styleTween:Ch,text:Qh,textTween:Uh,remove:ah,tween:Dg,delay:Yg,duration:Zg,ease:qg,easeVarying:eh,end:Hh,[Symbol.iterator]:et[Symbol.iterator]};function _h(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Sh={time:null,delay:0,duration:250,ease:_h};function xh(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 Dh(e){var A,t;e instanceof At?(A=e._id,e=e._name):(A=ga(),(t=Sh).time=ii(),e=e==null?null:e+"");for(var n=this._groups,r=n.length,a=0;a<r;++a)for(var u=n[a],d=u.length,h,g=0;g<d;++g)(h=u[g])&&Hr(h,e,A,g,u,t||xh(h,A));return new At(n,this._parents,e,A)}Un.prototype.interrupt=_g,Un.prototype.transition=Dh;var _r=e=>()=>e;function Nh(e,{sourceEvent:A,target:t,transform:n,dispatch:r}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:A,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},transform:{value:n,enumerable:!0,configurable:!0},_:{value:r}})}function 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 qt=new tt(1,0,0);tt.prototype;function di(e){e.stopImmediatePropagation()}function Tn(e){e.preventDefault(),e.stopImmediatePropagation()}function Lh(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Th(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function ha(){return this.__zoom||qt}function kh(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Mh(){return navigator.maxTouchPoints||"ontouchstart"in this}function Oh(e,A,t){var n=e.invertX(A[0][0])-t[0][0],r=e.invertX(A[1][0])-t[1][0],a=e.invertY(A[0][1])-t[0][1],u=e.invertY(A[1][1])-t[1][1];return e.translate(r>n?(n+r)/2:Math.min(0,n)||Math.max(0,r),u>a?(a+u)/2:Math.min(0,a)||Math.max(0,u))}function Kh(){var e=Lh,A=Th,t=Oh,n=kh,r=Mh,a=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],d=250,h=vr,g=cr("start","zoom","end"),B,w,m,v=500,y=150,I=0,T=10;function D(H){H.property("__zoom",ha).on("wheel.zoom",lA,{passive:!1}).on("mousedown.zoom",oA).on("dblclick.zoom",iA).filter(r).on("touchstart.zoom",AA).on("touchmove.zoom",S).on("touchend.zoom touchcancel.zoom",eA).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}D.transform=function(H,X,U,L){var k=H.selection?H.selection():H;k.property("__zoom",ha),H!==k?sA(H,X,U,L):k.interrupt().each(function(){W(this,arguments).event(L).start().zoom(null,typeof X=="function"?X.apply(this,arguments):X).end()})},D.scaleBy=function(H,X,U,L){D.scaleTo(H,function(){return this.__zoom.k*(typeof X=="function"?X.apply(this,arguments):X)},U,L)},D.scaleTo=function(H,X,U,L){D.transform(H,function(){var k=A.apply(this,arguments),N=this.__zoom,O=U==null?K(k):typeof U=="function"?U.apply(this,arguments):U,Y=N.invert(O),tA=typeof X=="function"?X.apply(this,arguments):X;return t(b(V(N,tA),O,Y),k,u)},U,L)},D.translateBy=function(H,X,U,L){D.transform(H,function(){return t(this.__zoom.translate(typeof X=="function"?X.apply(this,arguments):X,typeof U=="function"?U.apply(this,arguments):U),A.apply(this,arguments),u)},null,L)},D.translateTo=function(H,X,U,L,k){D.transform(H,function(){var N=A.apply(this,arguments),O=this.__zoom,Y=L==null?K(N):typeof L=="function"?L.apply(this,arguments):L;return t(qt.translate(Y[0],Y[1]).scale(O.k).translate(typeof X=="function"?-X.apply(this,arguments):-X,typeof U=="function"?-U.apply(this,arguments):-U),N,u)},L,k)};function V(H,X){return X=Math.max(a[0],Math.min(a[1],X)),X===H.k?H:new tt(X,H.x,H.y)}function b(H,X,U){var L=X[0]-U[0]*H.k,k=X[1]-U[1]*H.k;return L===H.x&&k===H.y?H:new tt(H.k,L,k)}function K(H){return[(+H[0][0]+ +H[1][0])/2,(+H[0][1]+ +H[1][1])/2]}function sA(H,X,U,L){H.on("start.zoom",function(){W(this,arguments).event(L).start()}).on("interrupt.zoom end.zoom",function(){W(this,arguments).event(L).end()}).tween("zoom",function(){var k=this,N=arguments,O=W(k,N).event(L),Y=A.apply(k,N),tA=U==null?K(Y):typeof U=="function"?U.apply(k,N):U,BA=Math.max(Y[1][0]-Y[0][0],Y[1][1]-Y[0][1]),HA=k.__zoom,nA=typeof X=="function"?X.apply(k,N):X,Z=h(HA.invert(tA).concat(BA/HA.k),nA.invert(tA).concat(BA/nA.k));return function($){if($===1)$=nA;else{var uA=Z($),wA=BA/uA[2];$=new tt(wA,tA[0]-uA[0]*wA,tA[1]-uA[1]*wA)}O.zoom(null,$)}})}function W(H,X,U){return!U&&H.__zooming||new cA(H,X)}function cA(H,X){this.that=H,this.args=X,this.active=0,this.sourceEvent=null,this.extent=A.apply(H,X),this.taps=0}cA.prototype={event:function(H){return H&&(this.sourceEvent=H),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(H,X){return this.mouse&&H!=="mouse"&&(this.mouse[1]=X.invert(this.mouse[0])),this.touch0&&H!=="touch"&&(this.touch0[1]=X.invert(this.touch0[0])),this.touch1&&H!=="touch"&&(this.touch1[1]=X.invert(this.touch1[0])),this.that.__zoom=X,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(H){var X=Te(this.that).datum();g.call(H,this.that,new Nh(H,{sourceEvent:this.sourceEvent,target:D,type:H,transform:this.that.__zoom,dispatch:g}),X)}};function lA(H,...X){if(!e.apply(this,arguments))return;var U=W(this,X).event(H),L=this.__zoom,k=Math.max(a[0],Math.min(a[1],L.k*Math.pow(2,n.apply(this,arguments)))),N=Pe(H);if(U.wheel)(U.mouse[0][0]!==N[0]||U.mouse[0][1]!==N[1])&&(U.mouse[1]=L.invert(U.mouse[0]=N)),clearTimeout(U.wheel);else{if(L.k===k)return;U.mouse=[N,L.invert(N)],Ir(this),U.start()}Tn(H),U.wheel=setTimeout(O,y),U.zoom("mouse",t(b(V(L,k),U.mouse[0],U.mouse[1]),U.extent,u));function O(){U.wheel=null,U.end()}}function oA(H,...X){if(m||!e.apply(this,arguments))return;var U=H.currentTarget,L=W(this,X,!0).event(H),k=Te(H.view).on("mousemove.zoom",tA,!0).on("mouseup.zoom",BA,!0),N=Pe(H,U),O=H.clientX,Y=H.clientY;Ks(H.view),di(H),L.mouse=[N,this.__zoom.invert(N)],Ir(this),L.start();function tA(HA){if(Tn(HA),!L.moved){var nA=HA.clientX-O,Z=HA.clientY-Y;L.moved=nA*nA+Z*Z>I}L.event(HA).zoom("mouse",t(b(L.that.__zoom,L.mouse[0]=Pe(HA,U),L.mouse[1]),L.extent,u))}function BA(HA){k.on("mousemove.zoom mouseup.zoom",null),Rs(HA.view,L.moved),Tn(HA),L.event(HA).end()}}function iA(H,...X){if(e.apply(this,arguments)){var U=this.__zoom,L=Pe(H.changedTouches?H.changedTouches[0]:H,this),k=U.invert(L),N=U.k*(H.shiftKey?.5:2),O=t(b(V(U,N),L,k),A.apply(this,X),u);Tn(H),d>0?Te(this).transition().duration(d).call(sA,O,L,H):Te(this).call(D.transform,O,L,H)}}function AA(H,...X){if(e.apply(this,arguments)){var U=H.touches,L=U.length,k=W(this,X,H.changedTouches.length===L).event(H),N,O,Y,tA;for(di(H),O=0;O<L;++O)Y=U[O],tA=Pe(Y,this),tA=[tA,this.__zoom.invert(tA),Y.identifier],k.touch0?!k.touch1&&k.touch0[2]!==tA[2]&&(k.touch1=tA,k.taps=0):(k.touch0=tA,N=!0,k.taps=1+!!B);B&&(B=clearTimeout(B)),N&&(k.taps<2&&(w=tA[0],B=setTimeout(function(){B=null},v)),Ir(this),k.start())}}function S(H,...X){if(this.__zooming){var U=W(this,X).event(H),L=H.changedTouches,k=L.length,N,O,Y,tA;for(Tn(H),N=0;N<k;++N)O=L[N],Y=Pe(O,this),U.touch0&&U.touch0[2]===O.identifier?U.touch0[0]=Y:U.touch1&&U.touch1[2]===O.identifier&&(U.touch1[0]=Y);if(O=U.that.__zoom,U.touch1){var BA=U.touch0[0],HA=U.touch0[1],nA=U.touch1[0],Z=U.touch1[1],$=($=nA[0]-BA[0])*$+($=nA[1]-BA[1])*$,uA=(uA=Z[0]-HA[0])*uA+(uA=Z[1]-HA[1])*uA;O=V(O,Math.sqrt($/uA)),Y=[(BA[0]+nA[0])/2,(BA[1]+nA[1])/2],tA=[(HA[0]+Z[0])/2,(HA[1]+Z[1])/2]}else if(U.touch0)Y=U.touch0[0],tA=U.touch0[1];else return;U.zoom("touch",t(b(O,Y,tA),U.extent,u))}}function eA(H,...X){if(this.__zooming){var U=W(this,X).event(H),L=H.changedTouches,k=L.length,N,O;for(di(H),m&&clearTimeout(m),m=setTimeout(function(){m=null},v),N=0;N<k;++N)O=L[N],U.touch0&&U.touch0[2]===O.identifier?delete U.touch0:U.touch1&&U.touch1[2]===O.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&&(O=Pe(O,this),Math.hypot(w[0]-O[0],w[1]-O[1])<T)){var Y=Te(this).on("dblclick.zoom");Y&&Y.apply(this,arguments)}}}return D.wheelDelta=function(H){return arguments.length?(n=typeof H=="function"?H:_r(+H),D):n},D.filter=function(H){return arguments.length?(e=typeof H=="function"?H:_r(!!H),D):e},D.touchable=function(H){return arguments.length?(r=typeof H=="function"?H:_r(!!H),D):r},D.extent=function(H){return arguments.length?(A=typeof H=="function"?H:_r([[+H[0][0],+H[0][1]],[+H[1][0],+H[1][1]]]),D):A},D.scaleExtent=function(H){return arguments.length?(a[0]=+H[0],a[1]=+H[1],D):[a[0],a[1]]},D.translateExtent=function(H){return arguments.length?(u[0][0]=+H[0][0],u[1][0]=+H[1][0],u[0][1]=+H[0][1],u[1][1]=+H[1][1],D):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},D.constrain=function(H){return arguments.length?(t=H,D):t},D.duration=function(H){return arguments.length?(d=+H,D):d},D.interpolate=function(H){return arguments.length?(h=H,D):h},D.on=function(){var H=g.on.apply(g,arguments);return H===g?D:H},D.clickDistance=function(H){return arguments.length?(I=(H=+H)*H,D):Math.sqrt(I)},D.tapDistance=function(H){return arguments.length?(T=+H,D):T},D}var IA=(e=>(e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom",e))(IA||{}),fi=(e=>(e.Partial="partial",e.Full="full",e))(fi||{}),Lt=(e=>(e.Bezier="default",e.SimpleBezier="simple-bezier",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e))(Lt||{}),nt=(e=>(e.Strict="strict",e.Loose="loose",e))(nt||{}),rt=(e=>(e.Arrow="arrow",e.ArrowClosed="arrowclosed",e))(rt||{}),kn=(e=>(e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal",e))(kn||{}),Ba=(e=>(e.TopLeft="top-left",e.TopCenter="top-center",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomCenter="bottom-center",e.BottomRight="bottom-right",e))(Ba||{}),Rh=["INPUT","SELECT","TEXTAREA"],Vh=typeof document<"u"?document:null;function gi(e){var A,t;const n=((t=(A=e.composedPath)==null?void 0:A.call(e))==null?void 0:t[0])||e.target,r=typeof n?.hasAttribute=="function"?n.hasAttribute("contenteditable"):!1,a=typeof n?.closest=="function"?n.closest(".nokey"):null;return Rh.includes(n?.nodeName)||r||!!a}function Ph(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function pa(e,A,t,n){const r=A.replace("+",`
|
|
1
|
+
(function(ne,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("@a2simcode/ui")):typeof define=="function"&&define.amd?define(["exports","vue","@a2simcode/ui"],o):(ne=typeof globalThis<"u"?globalThis:ne||self,o(ne.DuiUI={},ne.Vue,ne.SimCodeUI))})(this,function(ne,o,pe){Object.defineProperties(ne,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Uu=Object.create,cr=Object.defineProperty,bu=Object.getOwnPropertyDescriptor,Hu=Object.getOwnPropertyNames,Iu=Object.getPrototypeOf,_u=Object.prototype.hasOwnProperty,Su=(e,A)=>()=>(A||(e((A={exports:{}}).exports,A),e=null),A.exports),xu=(e,A)=>{let t={};for(var n in e)cr(t,n,{get:e[n],enumerable:!0});return A||cr(t,Symbol.toStringTag,{value:"Module"}),t},ko=(e,A,t,n)=>{if(A&&typeof A=="object"||typeof A=="function")for(var r=Hu(A),a=0,u=r.length,d;a<u;a++)d=r[a],!_u.call(e,d)&&d!==t&&cr(e,d,{get:(h=>A[h]).bind(null,d),enumerable:!(n=bu(A,d))||n.enumerable});return e},Du=(e,A,t)=>(ko(e,A,"default"),t&&ko(t,A,"default")),Bs=(e,A,t)=>(t=e!=null?Uu(Iu(e)):{},ko(A||!e||!e.__esModule?cr(t,"default",{value:e,enumerable:!0}):t,e));o=Bs(o,1);var dt=(e,A)=>(e.install=t=>{t.component(e.name,e),A&&A.forEach(n=>{t.component(n.name,n)})},e),ft=(e="")=>{const A=Date.now(),t=Math.floor(Math.random()*1e9);return e===""?String(t)+String(A):e+"_"+t+String(A)},En=e=>{if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(En);const A={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=En(e[t]));return A},Nu=e=>{if(Array.isArray(e))e.length=0;else if(e&&typeof e=="object")for(const A in e)Object.prototype.hasOwnProperty.call(e,A)&&delete e[A]},Mo={},Lu=(e,A,t)=>{t[e]=t[e]||{};const n=ft();return t[e][n]=A,n},Tu=(e,A,t)=>{const n=[],r=t[e]||{};return Object.keys(r).forEach(a=>{const u=r[a];try{u&&n.push(u(A))}catch(d){console.error(d)}}),n},ku=(e,A,t)=>{if(A){const n=t[e];n&&delete n[A]}else delete t[e]},ps=(e,A)=>Lu(e,A,Mo),re=(e,A)=>Tu(e,A,Mo),Mu=(e,A)=>{ku(e,A,Mo)},ms=(e,A,t,n,r,a)=>{const u=A.id,d=A.level,{getDesignLocals:h,selectComponent:g,getComponent:B,isMyChildComponent:w,addComponent:m,deleteComponent:v,getParentComponents:y,removeComponentFromContainer:I,addComponentToContainer:T,copyComponent:D,activedComponent:V,top:b}=(0,o.inject)("d-drag-design-provide",{}),K=[],sA=(0,o.ref)(!1),W=(0,o.ref)(!1),cA=(0,o.ref)(!1),lA=(0,o.ref)(!1),oA=(0,o.ref)(!1),iA={id:"",type:""},AA=(0,o.ref)(!1),S=(0,o.ref)(!1);let eA="",H=null;const X=$=>{if(eA===$)return H;eA=$;const{top:uA,left:wA,width:QA,height:_A}=e.value.getBoundingClientRect();return H=[{x:wA,y:uA},{x:wA+QA,y:uA},{x:wA+QA,y:uA+_A},{x:wA,y:uA+_A}],H},U=($,uA,wA)=>{let QA=uA-wA[0].y;QA<0&&(QA=-QA);let _A=uA-wA[3].y;_A<0&&(_A=-_A);let gA=$-wA[0].x;gA<0&&(gA=-gA);let J=$-wA[1].x;return J<0&&(J=-J),{ly:QA>_A?_A:QA,typey:QA>_A?"bottom":"top",lx:gA>J?J:gA,lallx:gA+J}},L=($,uA,wA)=>$>=wA[0].x&&$<=wA[1].x&&uA>=wA[0].y&&uA<=wA[3].y,k=()=>{if(r){re("dragClick",{id:u});return}if(!W.value){if(g(u),d!==0){const $=e.value.getBoundingClientRect(),uA=h();$.top-uA.top<22?lA.value=!0:lA.value=!1}W.value=!0,re("dragClick",{id:u})}},N=$=>{const uA=v($);uA&&(0,o.nextTick)(()=>{re("dragClick",{id:uA})})},O=()=>{iA.id="",iA.type="",d===0&&(oA.value=!1)},Y=()=>{re("mouseEnterOrLeave",{id:u,type:"enter"})},tA=()=>{re("mouseEnterOrLeave",{id:u,type:"leave"})},pA=$=>{re("dragClick",{id:$})},HA={mouseEnterOrLeave:({id:$,type:uA})=>{uA==="enter"?K.push($):K.length>0&&K.splice(K.length-1,1);const wA=K.length;wA>0&&u===K[wA-1]?sA.value=!0:sA.value=!1},dragAciveChild:({type:$,id:uA})=>{uA===u?$==="top"?(AA.value=!0,S.value=!1):(S.value=!0,AA.value=!1):(S.value=!1,AA.value=!1)},dragClick({id:$,isAgain:uA}){$!==u?W.value=!1:(uA&&(W.value=!1),k())}};HA[`dragGetChildDistance_${u}`]=({dragX:$,dragY:uA,moveId:wA})=>U($,uA,X(wA));const nA={isInContainer({x:$,y:uA,id:wA,moveId:QA}){if(u===wA||w(wA,u))return cA.value=!1,{isIn:!1,level:d,id:u,groupId:a};const _A=X(QA);if(L($,uA,_A))return d===0&&(oA.value=!0),{isIn:!0,level:d,id:u,groupId:a};if(d===0){const{ly:gA,lx:J}=U($,uA,_A);if(gA<20&&J<20)return oA.value=!0,{isIn:!0,level:d,id:u,groupId:a};oA.value=!1}return cA.value=!1,{isIn:!1,level:d,id:u,groupId:a}},dragActiveContainer:({containerId:$,containerGroupId:uA,dragX:wA,dragY:QA,moveId:_A})=>{if($===u&&uA===a)if(cA.value=!0,n&&n.value.length>0){let gA={ly:9999999,lx:0,lallx:0,id:"",typey:""};n?.value.forEach(J=>{if(a&&J.groupId!==a)return;const _=re(`dragGetChildDistance_${J.id}`,{dragX:wA,dragY:QA,moveId:_A})[0];_&&(gA.ly>_.ly||gA.ly===_.ly&&(gA.lx>_.lx||gA.lx===_.lx&&gA.lallx>_.lallx))&&(gA=_,gA.id=J.id)}),iA.id=gA.id,iA.type=gA.typey,re("dragAciveChild",{id:gA.id,type:gA.typey})}else re("dragAciveChild",{id:""});else cA.value=!1},dragAdd:$=>{if(cA.value){let uA=n?.value.length||0;iA.id!==""&&iA.id!==void 0&&(uA=n?.value.findIndex(wA=>wA.id===iA.id)||0,iA.type==="bottom"&&(uA+=1)),m($,u,uA,a),cA.value=!1}O()},dragAddByClick:$=>{if(!V.value&&u===b.id||V.value?.id===u||V.value?.containerId===u&&V.value?.dragType!=="container"){const uA=m($,u,n?.value.length||0,a,!0);uA&&$.config&&Object.keys($.config).forEach(wA=>{uA.config[wA]=$.config[wA]})}},dragUpdate($){if(cA.value){const uA=B($);if(uA.level=d+1,iA.id!==uA.id){I(uA.containerId,$);let wA=n?.value.findIndex(QA=>QA.id===iA.id)||0;iA.type==="bottom"&&(wA+=1),T(uA,u,wA,a)}cA.value=!1,(0,o.nextTick)(()=>{re("dragClick",{id:uA.id,isAgain:!0})})}O()}},Z={};return(0,o.onMounted)(()=>{(!r||t!=="container")&&Object.keys(HA).forEach($=>{Z[$]=ps($,HA[$])}),t==="container"&&Object.keys(nA).forEach($=>{Z[$]=ps($,nA[$])}),A.isNewAdd&&(0,o.nextTick)(()=>{k(),delete A.isNewAdd})}),(0,o.onUnmounted)(()=>{Object.keys(Z).forEach($=>{Mu($,Z[$])})}),{onMouseenter:Y,onMouseleave:tA,activeComponent:k,handleComponentClick:pA,deleteComponentByClick:N,copyComponent:D,getParentComponents:y,isBottomToolBar:lA,isHover:sA,isSelect:W,isToContainer:cA,isMoveingInTopLevel:oA,isTopActive:AA,isBottomActive:S}},ws=(e,A)=>{const t={x:0,y:0,clientX:0,clientY:0,dragElement:null,dragElementId:"jcode-darg-move-id",toContainerLevel:-1,toContainerId:"",groupId:"",id:""};let n=!1;const r=(v,y)=>{n!==!0&&(n=!0,setTimeout(()=>{v(),n=!1},y))},a=(0,o.ref)(!1),u=(v,y,I)=>{const T=document.createElement("div");return T.id=t.dragElementId,T.innerText=v,T.className="d-drag-move",T.style.top=`${y}px`,T.style.left=`${I}px`,document.body.appendChild(T),T},d=()=>{document.onmousemove=null,document.onmouseup=null,a.value=!1,re("dragAciveChild",{id:""})},h=()=>{d(),t.dragElement&&(t.dragElement.remove(),t.dragElement=null,A?re("dragAdd",e):re("dragUpdate",e.id))},g=v=>{const{clientY:y,clientX:I}=v;if(!t.dragElement){const T=Math.abs(t.x-I),D=Math.abs(t.y-y);if(T<=1&&D<=1)return;a.value=!0,t.dragElement=u(e.name,y-11,I-32)}t.dragElement.style.top=`${y-11}px`,t.dragElement.style.left=`${I-32}px`,t.clientX=I,t.clientY=y,r(()=>{if(!a.value)return;const T=re("isInContainer",{x:I,y,id:e.id,moveId:t.id});t.toContainerLevel=-1,t.toContainerId="",t.groupId="",T.forEach(({level:D,id:V,isIn:b,groupId:K})=>{b&&t.toContainerLevel<D&&(t.toContainerLevel=D,t.toContainerId=V,t.groupId=K)}),t.toContainerId!==""?re("dragActiveContainer",{containerId:t.toContainerId,containerGroupId:t.groupId,dragX:I,dragY:y,moveId:t.id}):re("dragAciveChild",{id:""})},100)};return{onContextmenu:()=>{d()},onMousedown:v=>{t.x=v.clientX,t.y=v.clientY,t.id=ft(),document.onmouseup=h,document.onmousemove=g},onClick:()=>{re("dragAddByClick",e)},moveActive:a}},Ou={class:"d-drag-btns-pname"},Ku={key:0,class:"d-drag-mask"},Ru=(0,o.defineComponent)({name:"DDrag",__name:"drag",props:{componentData:{default:()=>({})},isContainer:{type:Boolean,default:!1}},setup(e){const A=e,t=(0,o.ref)(),{onMouseenter:n,onMouseleave:r,activeComponent:a,handleComponentClick:u,deleteComponentByClick:d,copyComponent:h,getParentComponents:g,isHover:B,isSelect:w,isTopActive:m,isBottomActive:v,isBottomToolBar:y}=ms(t,A.componentData,"component"),{onContextmenu:I,onMousedown:T,moveActive:D}=ws(A.componentData,!1);return(V,b)=>{const K=(0,o.resolveComponent)("j-button"),sA=(0,o.resolveComponent)("el-space");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["d-drag-component",{selected:(0,o.unref)(w),hovered:(0,o.unref)(B),isBottomToolBar:(0,o.unref)(y),active:(0,o.unref)(D),isTopActive:(0,o.unref)(m),isBottomActive:(0,o.unref)(v)}])},[b[11]||(b[11]=(0,o.createElementVNode)("div",{class:"d-drag-line"},null,-1)),(0,o.createElementVNode)("div",{class:"d-drag-btns",onMouseenter:b[4]||(b[4]=(...W)=>(0,o.unref)(n)&&(0,o.unref)(n)(...W)),onMouseleave:b[5]||(b[5]=(...W)=>(0,o.unref)(r)&&(0,o.unref)(r)(...W))},[(0,o.createVNode)(sA,{size:4},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,o.withModifiers)(()=>{},["stop"])},[(0,o.createVNode)(K,{class:"d-drag-btn",type:"primary",size:"small",label:e.componentData.name},null,8,["label"]),(0,o.createElementVNode)("div",Ou,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)((0,o.unref)(g)(e.componentData.containerId),W=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:W.id},[(0,o.createVNode)(K,{class:"d-drag-btn",type:"primary",size:"small",label:W.name,onClick:cA=>(0,o.unref)(u)(W.id)},null,8,["label","onClick"])]))),128))])]),(0,o.createVNode)(K,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:content-copy",onClick:b[0]||(b[0]=(0,o.withModifiers)(W=>(0,o.unref)(h)(e.componentData.id),["stop"]))}),(0,o.createElementVNode)("div",{onContextmenu:b[1]||(b[1]=(0,o.withModifiers)((...W)=>(0,o.unref)(I)&&(0,o.unref)(I)(...W),["stop"])),onMousedown:b[2]||(b[2]=(0,o.withModifiers)((...W)=>(0,o.unref)(T)&&(0,o.unref)(T)(...W),["stop"])),style:{display:"flex"}},[(0,o.createVNode)(K,{class:"d-drag-btn",type:"primary",size:"small",icon:"mdi:drag"})],32),(0,o.createVNode)(K,{class:"d-drag-btn",danger:"",type:"primary",size:"small",icon:"mdi:delete",onClick:b[3]||(b[3]=(0,o.withModifiers)(W=>(0,o.unref)(d)(e.componentData.id),["stop"]))})]),_:1})],32),(0,o.createElementVNode)("div",{ref_key:"refDrag",ref:t,class:"d-drag-body",onClick:b[6]||(b[6]=(0,o.withModifiers)((...W)=>(0,o.unref)(a)&&(0,o.unref)(a)(...W),["stop"])),onContextmenu:b[7]||(b[7]=(0,o.withModifiers)((...W)=>(0,o.unref)(I)&&(0,o.unref)(I)(...W),["stop"])),onMousedown:b[8]||(b[8]=(0,o.withModifiers)((...W)=>(0,o.unref)(T)&&(0,o.unref)(T)(...W),["stop"])),onMouseenter:b[9]||(b[9]=(...W)=>(0,o.unref)(n)&&(0,o.unref)(n)(...W)),onMouseleave:b[10]||(b[10]=(...W)=>(0,o.unref)(r)&&(0,o.unref)(r)(...W))},[(0,o.renderSlot)(V.$slots,"default"),e.isContainer?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",Ku))],544)],2)}}}),Oo=Ru,Vu=(0,o.defineComponent)({name:"DDragTool",__name:"tool",props:{config:{}},setup(e){const{onContextmenu:A,onMousedown:t,onClick:n}=ws(e.config??{name:"",id:""},!0);return(r,a)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"d-drag-tool",onClick:a[0]||(a[0]=(0,o.withModifiers)((...u)=>(0,o.unref)(n)&&(0,o.unref)(n)(...u),["stop"])),onContextmenu:a[1]||(a[1]=(0,o.withModifiers)((...u)=>(0,o.unref)(A)&&(0,o.unref)(A)(...u),["stop"])),onMousedown:a[2]||(a[2]=(0,o.withModifiers)((...u)=>(0,o.unref)(t)&&(0,o.unref)(t)(...u),["stop"]))},[(0,o.renderSlot)(r.$slots,"default")],32))}}),Ko=Vu,Pu={key:0,class:"d-drag-line"},Gu={key:1,class:"d-drag-btns"},zu=(0,o.defineComponent)({name:"DDragContainer",__name:"container",props:{componentData:{default:()=>({})},isComponentContainer:{type:Boolean,default:!0},groupId:{default:void 0}},setup(e){const A=e,t=(0,o.ref)(),n=(0,o.computed)(()=>A.componentData?.children||[]),{onMouseenter:r,onMouseleave:a,activeComponent:u,isHover:d,isSelect:h,isToContainer:g,isMoveingInTopLevel:B,isTopActive:w,isBottomActive:m}=ms(t,A.componentData,"container",n,A.isComponentContainer,A.groupId),v=(0,o.computed)(()=>!!(n.value.findIndex(y=>y.groupId===A.groupId)===-1&&g.value));return(y,I)=>{const T=(0,o.resolveComponent)("j-button");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{ref_key:"refDrag",ref:t,class:(0,o.normalizeClass)(["d-drag-container",{selected:(0,o.unref)(h)&&!e.isComponentContainer,hovered:(0,o.unref)(d)&&!e.isComponentContainer,isTopLevel:e.componentData.level===0,active:v.value,isMoveingInTopLevel:(0,o.unref)(B),isTopActive:(0,o.unref)(w),isBottomActive:(0,o.unref)(m)}])},[e.isComponentContainer?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",Pu)),e.isComponentContainer?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",Gu,[(0,o.createElementVNode)("div",{class:"d-drag-btns-names",onClick:(0,o.withModifiers)(()=>{},["stop"])},[(0,o.createVNode)(T,{class:"d-drag-btn",type:"primary",size:"small",label:e.componentData.name},null,8,["label"])])])),(0,o.createElementVNode)("div",{class:"d-drag-body",onClick:I[0]||(I[0]=(0,o.withModifiers)((...D)=>(0,o.unref)(u)&&(0,o.unref)(u)(...D),["stop"])),onMouseenter:I[1]||(I[1]=(...D)=>(0,o.unref)(r)&&(0,o.unref)(r)(...D)),onMouseleave:I[2]||(I[2]=(...D)=>(0,o.unref)(a)&&(0,o.unref)(a)(...D))},[(0,o.renderSlot)(y.$slots,"default")],32)],2)}}}),Ro=zu,Xu=(0,o.defineComponent)({name:"DDragFormList",__name:"dragFormList",props:{componentList:{default:()=>[]},globalConfig:{default:()=>({})}},setup(e){const{designItemName:A}=(0,o.inject)("dui-design-provide",{});return(t,n)=>{const r=(0,o.resolveComponent)("el-col");return(0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.componentList,a=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:a.id},[a.type!="pkey"?((0,o.openBlock)(),(0,o.createBlock)(r,{key:0,span:a.config.span||24},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(Oo,{"is-container":a.dragType!=="component","component-data":a},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)((0,o.unref)(A)),{"component-data":a,"global-config":e.globalConfig},null,8,["component-data","global-config"]))]),_:2},1032,["is-container","component-data"])]),_:2},1032,["span"])):(0,o.createCommentVNode)("",!0)],64))),128)}}}),Vo=Xu,$u=(0,o.defineComponent)({name:"DDragIndexList",__name:"dragIndexList",props:{componentList:{default:()=>[]},globalConfig:{default:()=>({})}},setup(e){const{designItemName:A}=(0,o.inject)("dui-design-provide",{}),t=n=>{if(n.flexWidth)return{width:n.flexWidth+"%"}};return(n,r)=>((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.componentList,a=>((0,o.openBlock)(),(0,o.createBlock)(Oo,{key:a.id,style:(0,o.normalizeStyle)(t(a.config)),"is-container":a.dragType!=="component","component-data":a},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)((0,o.unref)(A)),{"component-data":a,"global-config":e.globalConfig},null,8,["component-data","global-config"]))]),_:2},1032,["style","is-container","component-data"]))),128))}}),Po=$u,Cs=dt(Oo,[Ko,Ro,Vo,Po]);function Fn(e){return(0,o.getCurrentScope)()?((0,o.onScopeDispose)(e),!0):!1}function qe(e){return typeof e=="function"?e():(0,o.unref)(e)}var Yu=typeof window<"u"&&typeof document<"u",Wu=e=>typeof e<"u",Ju=Object.prototype.toString,Zu=e=>Ju.call(e)==="[object Object]",ju=()=>{};function qu(e,A){function t(...n){return new Promise((r,a)=>{Promise.resolve(e(()=>A.apply(this,n),{fn:A,thisArg:this,args:n})).then(r).catch(a)})}return t}var vs=e=>e();function Ad(e=vs){const A=(0,o.ref)(!0);function t(){A.value=!1}function n(){A.value=!0}const r=(...a)=>{A.value&&e(...a)};return{isActive:(0,o.readonly)(A),pause:t,resume:n,eventFilter:r}}function ys(e,A=!1,t="Timeout"){return new Promise((n,r)=>{setTimeout(A?()=>r(t):n,e)})}function ed(e,A,t={}){const{eventFilter:n=vs,...r}=t;return(0,o.watch)(e,qu(n,A),r)}function Yt(e,A,t={}){const{eventFilter:n,...r}=t,{eventFilter:a,pause:u,resume:d,isActive:h}=Ad(n);return{stop:ed(e,A,{...r,eventFilter:a}),pause:u,resume:d,isActive:h}}function td(e,A={}){if(!(0,o.isRef)(e))return(0,o.toRefs)(e);const t=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const n in e.value)t[n]=(0,o.customRef)(()=>({get(){return e.value[n]},set(r){var a;if((a=qe(A.replaceRef))==null||a)if(Array.isArray(e.value)){const u=[...e.value];u[n]=r,e.value=u}else{const u={...e.value,[n]:r};Object.setPrototypeOf(u,Object.getPrototypeOf(e.value)),e.value=u}else e.value[n]=r}}));return t}function Go(e,A=!1){function t(w,{flush:m="sync",deep:v=!1,timeout:y,throwOnTimeout:I}={}){let T=null;const D=[new Promise(V=>{T=(0,o.watch)(e,b=>{w(b)!==A&&(T?.(),V(b))},{flush:m,deep:v,immediate:!0})})];return y!=null&&D.push(ys(y,I).then(()=>qe(e)).finally(()=>T?.())),Promise.race(D)}function n(w,m){if(!(0,o.isRef)(w))return t(b=>b===w,m);const{flush:v="sync",deep:y=!1,timeout:I,throwOnTimeout:T}=m??{};let D=null;const V=[new Promise(b=>{D=(0,o.watch)([e,w],([K,sA])=>{A!==(K===sA)&&(D?.(),b(K))},{flush:v,deep:y,immediate:!0})})];return I!=null&&V.push(ys(I,T).then(()=>qe(e)).finally(()=>(D?.(),qe(e)))),Promise.race(V)}function r(w){return t(m=>!!m,w)}function a(w){return n(null,w)}function u(w){return n(void 0,w)}function d(w){return t(Number.isNaN,w)}function h(w,m){return t(v=>{const y=Array.from(v);return y.includes(w)||y.includes(qe(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(qe(e))?{toMatch:t,toContains:h,changed:g,changedTimes:B,get not(){return Go(e,!A)}}:{toMatch:t,toBe:n,toBeTruthy:r,toBeNull:a,toBeNaN:d,toBeUndefined:u,changed:g,changedTimes:B,get not(){return Go(e,!A)}}}function zo(e){return Go(e)}function nd(e){var A;const t=qe(e);return(A=t?.$el)!=null?A:t}var Qs=Yu?window:void 0;function Es(...e){let A,t,n,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,n,r]=e,A=Qs):[A,t,n,r]=e,!A)return ju;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,o.watch)(()=>[nd(A),qe(r)],([B,w])=>{if(u(),!B)return;const m=Zu(w)?{...w}:w;a.push(...t.flatMap(v=>n.map(y=>d(B,v,y,m))))},{immediate:!0,flush:"post"}),g=()=>{h(),u()};return Fn(g),g}function rd(e){return typeof e=="function"?e:typeof e=="string"?A=>A.key===e:Array.isArray(e)?A=>e.includes(A.key):()=>!0}function Fs(...e){let A,t,n={};e.length===3?(A=e[0],t=e[1],n=e[2]):e.length===2?typeof e[1]=="object"?(A=!0,t=e[0],n=e[1]):(A=e[0],t=e[1]):(A=!0,t=e[0]);const{target:r=Qs,eventName:a="keydown",passive:u=!1,dedupe:d=!1}=n,h=rd(A);return Es(r,a,B=>{B.repeat&&qe(d)||h(B)&&t(B)},u)}function od(e){return JSON.parse(JSON.stringify(e))}function Xo(e,A,t,n={}){var r,a,u;const{clone:d=!1,passive:h=!1,eventName:g,deep:B=!1,defaultValue:w,shouldEmit:m}=n,v=(0,o.getCurrentInstance)(),y=t||v?.emit||((r=v?.$emit)==null?void 0:r.bind(v))||((u=(a=v?.proxy)==null?void 0:a.$emit)==null?void 0:u.bind(v?.proxy));let I=g;A||(A="modelValue"),I=I||`update:${A.toString()}`;const T=b=>d?typeof d=="function"?d(b):od(b):b,D=()=>Wu(e[A])?T(e[A]):w,V=b=>{m?m(b)&&y(I,b):y(I,b)};if(h){const b=(0,o.ref)(D());let K=!1;return(0,o.watch)(()=>e[A],sA=>{K||(K=!0,b.value=T(sA),(0,o.nextTick)(()=>K=!1))}),(0,o.watch)(b,sA=>{!K&&(sA!==e[A]||B)&&V(sA)},{deep:B}),b}else return(0,o.computed)({get(){return D()},set(b){V(b)}})}var id={value:()=>{}};function ur(){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 dr(t)}function dr(e){this._=e}function sd(e,A){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!A.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}dr.prototype=ur.prototype={constructor:dr,on:function(e,A){var t=this._,n=sd(e+"",t),r,a=-1,u=n.length;if(arguments.length<2){for(;++a<u;)if((r=(e=n[a]).type)&&(r=ad(t[r],e.name)))return r;return}if(A!=null&&typeof A!="function")throw new Error("invalid callback: "+A);for(;++a<u;)if(r=(e=n[a]).type)t[r]=Us(t[r],e.name,A);else if(A==null)for(r in t)t[r]=Us(t[r],e.name,null);return this},copy:function(){var e={},A=this._;for(var t in A)e[t]=A[t].slice();return new dr(e)},call:function(e,A){if((r=arguments.length-2)>0)for(var t=new Array(r),n=0,r,a;n<r;++n)t[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],n=0,r=a.length;n<r;++n)a[n].value.apply(A,t)},apply:function(e,A,t){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],r=0,a=n.length;r<a;++r)n[r].value.apply(A,t)}};function ad(e,A){for(var t=0,n=e.length,r;t<n;++t)if((r=e[t]).name===A)return r.value}function Us(e,A,t){for(var n=0,r=e.length;n<r;++n)if(e[n].name===A){e[n]=id,e=e.slice(0,n).concat(e.slice(n+1));break}return t!=null&&e.push({name:A,value:t}),e}var $o="http://www.w3.org/1999/xhtml",bs={svg:"http://www.w3.org/2000/svg",xhtml:$o,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function fr(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 ld(e){return function(){var A=this.ownerDocument,t=this.namespaceURI;return t===$o&&A.documentElement.namespaceURI===$o?A.createElement(e):A.createElementNS(t,e)}}function cd(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Hs(e){var A=fr(e);return(A.local?cd:ld)(A)}function ud(){}function Yo(e){return e==null?ud:function(){return this.querySelector(e)}}function dd(e){typeof e!="function"&&(e=Yo(e));for(var A=this._groups,t=A.length,n=new Array(t),r=0;r<t;++r)for(var a=A[r],u=a.length,d=n[r]=new Array(u),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 Fe(n,this._parents)}function fd(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function gd(){return[]}function Is(e){return e==null?gd:function(){return this.querySelectorAll(e)}}function hd(e){return function(){return fd(e.apply(this,arguments))}}function Bd(e){typeof e=="function"?e=hd(e):e=Is(e);for(var A=this._groups,t=A.length,n=[],r=[],a=0;a<t;++a)for(var u=A[a],d=u.length,h,g=0;g<d;++g)(h=u[g])&&(n.push(e.call(h,h.__data__,g,u)),r.push(h));return new Fe(n,r)}function _s(e){return function(){return this.matches(e)}}function Ss(e){return function(A){return A.matches(e)}}var pd=Array.prototype.find;function md(e){return function(){return pd.call(this.children,e)}}function wd(){return this.firstElementChild}function Cd(e){return this.select(e==null?wd:md(typeof e=="function"?e:Ss(e)))}var vd=Array.prototype.filter;function yd(){return Array.from(this.children)}function Qd(e){return function(){return vd.call(this.children,e)}}function Ed(e){return this.selectAll(e==null?yd:Qd(typeof e=="function"?e:Ss(e)))}function Fd(e){typeof e!="function"&&(e=_s(e));for(var A=this._groups,t=A.length,n=new Array(t),r=0;r<t;++r)for(var a=A[r],u=a.length,d=n[r]=[],h,g=0;g<u;++g)(h=a[g])&&e.call(h,h.__data__,g,a)&&d.push(h);return new Fe(n,this._parents)}function xs(e){return new Array(e.length)}function Ud(){return new Fe(this._enter||this._groups.map(xs),this._parents)}function gr(e,A){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=A}gr.prototype={constructor:gr,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 bd(e){return function(){return e}}function Hd(e,A,t,n,r,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 gr(e,a[u]);for(;u<h;++u)(d=A[u])&&(r[u]=d)}function Id(e,A,t,n,r,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)?r[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 gr(e,a[d]);for(d=0;d<B;++d)(h=A[d])&&g.get(m[d])===h&&(r[d]=h)}function _d(e){return e.__data__}function Sd(e,A){if(!arguments.length)return Array.from(this,_d);var t=A?Id:Hd,n=this._parents,r=this._groups;typeof e!="function"&&(e=bd(e));for(var a=r.length,u=new Array(a),d=new Array(a),h=new Array(a),g=0;g<a;++g){var B=n[g],w=r[g],m=w.length,v=xd(e.call(B,B&&B.__data__,g,n)),y=v.length,I=d[g]=new Array(y),T=u[g]=new Array(y);t(B,w,I,T,h[g]=new Array(m),v,A);for(var D=0,V=0,b,K;D<y;++D)if(b=I[D]){for(D>=V&&(V=D+1);!(K=T[V])&&++V<y;);b._next=K||null}}return u=new Fe(u,n),u._enter=d,u._exit=h,u}function xd(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Dd(){return new Fe(this._exit||this._groups.map(xs),this._parents)}function Nd(e,A,t){var n=this.enter(),r=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),A!=null&&(r=A(r),r&&(r=r.selection())),t==null?a.remove():t(a),n&&r?n.merge(r).order():r}function Ld(e){for(var A=e.selection?e.selection():e,t=this._groups,n=A._groups,r=t.length,a=n.length,u=Math.min(r,a),d=new Array(r),h=0;h<u;++h)for(var g=t[h],B=n[h],w=g.length,m=d[h]=new Array(w),v,y=0;y<w;++y)(v=g[y]||B[y])&&(m[y]=v);for(;h<r;++h)d[h]=t[h];return new Fe(d,this._parents)}function Td(){for(var e=this._groups,A=-1,t=e.length;++A<t;)for(var n=e[A],r=n.length-1,a=n[r],u;--r>=0;)(u=n[r])&&(a&&u.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(u,a),a=u);return this}function kd(e){e||(e=Md);function A(w,m){return w&&m?e(w.__data__,m.__data__):!w-!m}for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a){for(var u=t[a],d=u.length,h=r[a]=new Array(d),g,B=0;B<d;++B)(g=u[B])&&(h[B]=g);h.sort(A)}return new Fe(r,this._parents).order()}function Md(e,A){return e<A?-1:e>A?1:e>=A?0:NaN}function Od(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Kd(){return Array.from(this)}function Rd(){for(var e=this._groups,A=0,t=e.length;A<t;++A)for(var n=e[A],r=0,a=n.length;r<a;++r){var u=n[r];if(u)return u}return null}function Vd(){let e=0;for(const A of this)++e;return e}function Pd(){return!this.node()}function Gd(e){for(var A=this._groups,t=0,n=A.length;t<n;++t)for(var r=A[t],a=0,u=r.length,d;a<u;++a)(d=r[a])&&e.call(d,d.__data__,a,r);return this}function zd(e){return function(){this.removeAttribute(e)}}function Xd(e){return function(){this.removeAttributeNS(e.space,e.local)}}function $d(e,A){return function(){this.setAttribute(e,A)}}function Yd(e,A){return function(){this.setAttributeNS(e.space,e.local,A)}}function Wd(e,A){return function(){var t=A.apply(this,arguments);t==null?this.removeAttribute(e):this.setAttribute(e,t)}}function Jd(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 Zd(e,A){var t=fr(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?Xd:zd:typeof A=="function"?t.local?Jd:Wd:t.local?Yd:$d)(t,A))}function Ds(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function jd(e){return function(){this.style.removeProperty(e)}}function qd(e,A,t){return function(){this.style.setProperty(e,A,t)}}function Af(e,A,t){return function(){var n=A.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,t)}}function ef(e,A,t){return arguments.length>1?this.each((A==null?jd:typeof A=="function"?Af:qd)(e,A,t??"")):Wt(this.node(),e)}function Wt(e,A){return e.style.getPropertyValue(A)||Ds(e).getComputedStyle(e,null).getPropertyValue(A)}function tf(e){return function(){delete this[e]}}function nf(e,A){return function(){this[e]=A}}function rf(e,A){return function(){var t=A.apply(this,arguments);t==null?delete this[e]:this[e]=t}}function of(e,A){return arguments.length>1?this.each((A==null?tf:typeof A=="function"?rf:nf)(e,A)):this.node()[e]}function Ns(e){return e.trim().split(/^|\s+/)}function Wo(e){return e.classList||new Ls(e)}function Ls(e){this._node=e,this._names=Ns(e.getAttribute("class")||"")}Ls.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var A=this._names.indexOf(e);A>=0&&(this._names.splice(A,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Ts(e,A){for(var t=Wo(e),n=-1,r=A.length;++n<r;)t.add(A[n])}function ks(e,A){for(var t=Wo(e),n=-1,r=A.length;++n<r;)t.remove(A[n])}function sf(e){return function(){Ts(this,e)}}function af(e){return function(){ks(this,e)}}function lf(e,A){return function(){(A.apply(this,arguments)?Ts:ks)(this,e)}}function cf(e,A){var t=Ns(e+"");if(arguments.length<2){for(var n=Wo(this.node()),r=-1,a=t.length;++r<a;)if(!n.contains(t[r]))return!1;return!0}return this.each((typeof A=="function"?lf:A?sf:af)(t,A))}function uf(){this.textContent=""}function df(e){return function(){this.textContent=e}}function ff(e){return function(){var A=e.apply(this,arguments);this.textContent=A??""}}function gf(e){return arguments.length?this.each(e==null?uf:(typeof e=="function"?ff:df)(e)):this.node().textContent}function hf(){this.innerHTML=""}function Bf(e){return function(){this.innerHTML=e}}function pf(e){return function(){var A=e.apply(this,arguments);this.innerHTML=A??""}}function mf(e){return arguments.length?this.each(e==null?hf:(typeof e=="function"?pf:Bf)(e)):this.node().innerHTML}function wf(){this.nextSibling&&this.parentNode.appendChild(this)}function Cf(){return this.each(wf)}function vf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function yf(){return this.each(vf)}function Qf(e){var A=typeof e=="function"?e:Hs(e);return this.select(function(){return this.appendChild(A.apply(this,arguments))})}function Ef(){return null}function Ff(e,A){var t=typeof e=="function"?e:Hs(e),n=A==null?Ef:typeof A=="function"?A:Yo(A);return this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})}function Uf(){var e=this.parentNode;e&&e.removeChild(this)}function bf(){return this.each(Uf)}function Hf(){var e=this.cloneNode(!1),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function If(){var e=this.cloneNode(!0),A=this.parentNode;return A?A.insertBefore(e,this.nextSibling):e}function _f(e){return this.select(e?If:Hf)}function Sf(e){return arguments.length?this.property("__data__",e):this.node().__data__}function xf(e){return function(A){e.call(this,A,this.__data__)}}function Df(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 Nf(e){return function(){var A=this.__on;if(A){for(var t=0,n=-1,r=A.length,a;t<r;++t)a=A[t],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):A[++n]=a;++n?A.length=n:delete this.__on}}}function Lf(e,A,t){return function(){var n=this.__on,r,a=xf(A);if(n){for(var u=0,d=n.length;u<d;++u)if((r=n[u]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=t),r.value=A;return}}this.addEventListener(e.type,a,t),r={type:e.type,name:e.name,value:A,listener:a,options:t},n?n.push(r):this.__on=[r]}}function Tf(e,A,t){var n=Df(e+""),r,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(r=0,B=d[h];r<a;++r)if((u=n[r]).type===B.type&&u.name===B.name)return B.value}return}for(d=A?Lf:Nf,r=0;r<a;++r)this.each(d(n[r],A,t));return this}function Ms(e,A,t){var n=Ds(e),r=n.CustomEvent;typeof r=="function"?r=new r(A,t):(r=n.document.createEvent("Event"),t?(r.initEvent(A,t.bubbles,t.cancelable),r.detail=t.detail):r.initEvent(A,!1,!1)),e.dispatchEvent(r)}function kf(e,A){return function(){return Ms(this,e,A)}}function Mf(e,A){return function(){return Ms(this,e,A.apply(this,arguments))}}function Of(e,A){return this.each((typeof A=="function"?Mf:kf)(e,A))}function*Kf(){for(var e=this._groups,A=0,t=e.length;A<t;++A)for(var n=e[A],r=0,a=n.length,u;r<a;++r)(u=n[r])&&(yield u)}var Os=[null];function Fe(e,A){this._groups=e,this._parents=A}function Un(){return new Fe([[document.documentElement]],Os)}function Rf(){return this}Fe.prototype=Un.prototype={constructor:Fe,select:dd,selectAll:Bd,selectChild:Cd,selectChildren:Ed,filter:Fd,data:Sd,enter:Ud,exit:Dd,join:Nd,merge:Ld,selection:Rf,order:Td,sort:kd,call:Od,nodes:Kd,node:Rd,size:Vd,empty:Pd,each:Gd,attr:Zd,style:ef,property:of,classed:cf,text:gf,html:mf,raise:Cf,lower:yf,append:Qf,insert:Ff,remove:bf,clone:_f,datum:Sf,on:Tf,dispatch:Of,[Symbol.iterator]:Kf};function Te(e){return typeof e=="string"?new Fe([[document.querySelector(e)]],[document.documentElement]):new Fe([[e]],Os)}function Vf(e){let A;for(;A=e.sourceEvent;)e=A;return e}function Ve(e,A){if(e=Vf(e),A===void 0&&(A=e.currentTarget),A){var t=A.ownerSVGElement||A;if(t.createSVGPoint){var n=t.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,n=n.matrixTransform(A.getScreenCTM().inverse()),[n.x,n.y]}if(A.getBoundingClientRect){var r=A.getBoundingClientRect();return[e.clientX-r.left-A.clientLeft,e.clientY-r.top-A.clientTop]}}return[e.pageX,e.pageY]}var Pf={passive:!1},bn={capture:!0,passive:!1};function Jo(e){e.stopImmediatePropagation()}function Jt(e){e.preventDefault(),e.stopImmediatePropagation()}function Ks(e){var A=e.document.documentElement,t=Te(e).on("dragstart.drag",Jt,bn);"onselectstart"in A?t.on("selectstart.drag",Jt,bn):(A.__noselect=A.style.MozUserSelect,A.style.MozUserSelect="none")}function Rs(e,A){var t=e.document.documentElement,n=Te(e).on("dragstart.drag",null);A&&(n.on("click.drag",Jt,bn),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 hr=e=>()=>e;function Zo(e,{sourceEvent:A,subject:t,target:n,identifier:r,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:r,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:u,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:g,enumerable:!0,configurable:!0},_:{value:B}})}Zo.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Gf(e){return!e.ctrlKey&&!e.button}function zf(){return this.parentNode}function Xf(e,A){return A??{x:e.x,y:e.y}}function $f(){return navigator.maxTouchPoints||"ontouchstart"in this}function Yf(){var e=Gf,A=zf,t=Xf,n=$f,r={},a=ur("start","drag","end"),u=0,d,h,g,B,w=0;function m(K){K.on("mousedown.drag",v).filter(n).on("touchstart.drag",T).on("touchmove.drag",D,Pf).on("touchend.drag touchcancel.drag",V).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(K,sA){if(!(B||!e.call(this,K,sA))){var W=b(this,A.call(this,K,sA),K,sA,"mouse");W&&(Te(K.view).on("mousemove.drag",y,bn).on("mouseup.drag",I,bn),Ks(K.view),Jo(K),g=!1,d=K.clientX,h=K.clientY,W("start",K))}}function y(K){if(Jt(K),!g){var sA=K.clientX-d,W=K.clientY-h;g=sA*sA+W*W>w}r.mouse("drag",K)}function I(K){Te(K.view).on("mousemove.drag mouseup.drag",null),Rs(K.view,g),Jt(K),r.mouse("end",K)}function T(K,sA){if(e.call(this,K,sA)){var W=K.changedTouches,cA=A.call(this,K,sA),lA=W.length,oA,iA;for(oA=0;oA<lA;++oA)(iA=b(this,cA,K,sA,W[oA].identifier,W[oA]))&&(Jo(K),iA("start",K,W[oA]))}}function D(K){var sA=K.changedTouches,W=sA.length,cA,lA;for(cA=0;cA<W;++cA)(lA=r[sA[cA].identifier])&&(Jt(K),lA("drag",K,sA[cA]))}function V(K){var sA=K.changedTouches,W=sA.length,cA,lA;for(B&&clearTimeout(B),B=setTimeout(function(){B=null},500),cA=0;cA<W;++cA)(lA=r[sA[cA].identifier])&&(Jo(K),lA("end",K,sA[cA]))}function b(K,sA,W,cA,lA,oA){var iA=a.copy(),AA=Ve(oA||W,sA),S,eA,H;if((H=t.call(K,new Zo("beforestart",{sourceEvent:W,target:m,identifier:lA,active:u,x:AA[0],y:AA[1],dx:0,dy:0,dispatch:iA}),cA))!=null)return S=H.x-AA[0]||0,eA=H.y-AA[1]||0,function X(U,L,k){var N=AA,O;switch(U){case"start":r[lA]=X,O=u++;break;case"end":delete r[lA],--u;case"drag":AA=Ve(k||L,sA),O=u;break}iA.call(U,K,new Zo(U,{sourceEvent:L,subject:H,target:m,identifier:lA,active:O,x:AA[0]+S,y:AA[1]+eA,dx:AA[0]-N[0],dy:AA[1]-N[1],dispatch:iA}),cA)}}return m.filter=function(K){return arguments.length?(e=typeof K=="function"?K:hr(!!K),m):e},m.container=function(K){return arguments.length?(A=typeof K=="function"?K:hr(K),m):A},m.subject=function(K){return arguments.length?(t=typeof K=="function"?K:hr(K),m):t},m.touchable=function(K){return arguments.length?(n=typeof K=="function"?K:hr(!!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 jo(e,A,t){e.prototype=A.prototype=t,t.constructor=e}function Vs(e,A){var t=Object.create(e.prototype);for(var n in A)t[n]=A[n];return t}function Hn(){}var In=.7,Br=1/In,Zt="\\s*([+-]?\\d+)\\s*",_n="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wf=/^#([0-9a-f]{3,8})$/,Jf=new RegExp(`^rgb\\(${Zt},${Zt},${Zt}\\)$`),Zf=new RegExp(`^rgb\\(${Pe},${Pe},${Pe}\\)$`),jf=new RegExp(`^rgba\\(${Zt},${Zt},${Zt},${_n}\\)$`),qf=new RegExp(`^rgba\\(${Pe},${Pe},${Pe},${_n}\\)$`),Ag=new RegExp(`^hsl\\(${_n},${Pe},${Pe}\\)$`),eg=new RegExp(`^hsla\\(${_n},${Pe},${Pe},${_n}\\)$`),Ps={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};jo(Hn,_t,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Gs,formatHex:Gs,formatHex8:tg,formatHsl:ng,formatRgb:zs,toString:zs});function Gs(){return this.rgb().formatHex()}function tg(){return this.rgb().formatHex8()}function ng(){return Js(this).formatHsl()}function zs(){return this.rgb().formatRgb()}function _t(e){var A,t;return e=(e+"").trim().toLowerCase(),(A=Wf.exec(e))?(t=A[1].length,A=parseInt(A[1],16),t===6?Xs(A):t===3?new Ce(A>>8&15|A>>4&240,A>>4&15|A&240,(A&15)<<4|A&15,1):t===8?pr(A>>24&255,A>>16&255,A>>8&255,(A&255)/255):t===4?pr(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=Jf.exec(e))?new Ce(A[1],A[2],A[3],1):(A=Zf.exec(e))?new Ce(A[1]*255/100,A[2]*255/100,A[3]*255/100,1):(A=jf.exec(e))?pr(A[1],A[2],A[3],A[4]):(A=qf.exec(e))?pr(A[1]*255/100,A[2]*255/100,A[3]*255/100,A[4]):(A=Ag.exec(e))?Ws(A[1],A[2]/100,A[3]/100,1):(A=eg.exec(e))?Ws(A[1],A[2]/100,A[3]/100,A[4]):Ps.hasOwnProperty(e)?Xs(Ps[e]):e==="transparent"?new Ce(NaN,NaN,NaN,0):null}function Xs(e){return new Ce(e>>16&255,e>>8&255,e&255,1)}function pr(e,A,t,n){return n<=0&&(e=A=t=NaN),new Ce(e,A,t,n)}function rg(e){return e instanceof Hn||(e=_t(e)),e?(e=e.rgb(),new Ce(e.r,e.g,e.b,e.opacity)):new Ce}function qo(e,A,t,n){return arguments.length===1?rg(e):new Ce(e,A,t,n??1)}function Ce(e,A,t,n){this.r=+e,this.g=+A,this.b=+t,this.opacity=+n}jo(Ce,qo,Vs(Hn,{brighter(e){return e=e==null?Br:Math.pow(Br,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?In:Math.pow(In,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ce(St(this.r),St(this.g),St(this.b),mr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:$s,formatHex:$s,formatHex8:og,formatRgb:Ys,toString:Ys}));function $s(){return`#${xt(this.r)}${xt(this.g)}${xt(this.b)}`}function og(){return`#${xt(this.r)}${xt(this.g)}${xt(this.b)}${xt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ys(){const e=mr(this.opacity);return`${e===1?"rgb(":"rgba("}${St(this.r)}, ${St(this.g)}, ${St(this.b)}${e===1?")":`, ${e})`}`}function mr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function St(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function xt(e){return e=St(e),(e<16?"0":"")+e.toString(16)}function Ws(e,A,t,n){return n<=0?e=A=t=NaN:t<=0||t>=1?e=A=NaN:A<=0&&(e=NaN),new ke(e,A,t,n)}function Js(e){if(e instanceof ke)return new ke(e.h,e.s,e.l,e.opacity);if(e instanceof Hn||(e=_t(e)),!e)return new ke;if(e instanceof ke)return e;e=e.rgb();var A=e.r/255,t=e.g/255,n=e.b/255,r=Math.min(A,t,n),a=Math.max(A,t,n),u=NaN,d=a-r,h=(a+r)/2;return d?(A===a?u=(t-n)/d+(t<n)*6:t===a?u=(n-A)/d+2:u=(A-t)/d+4,d/=h<.5?a+r:2-a-r,u*=60):d=h>0&&h<1?0:u,new ke(u,d,h,e.opacity)}function ig(e,A,t,n){return arguments.length===1?Js(e):new ke(e,A,t,n??1)}function ke(e,A,t,n){this.h=+e,this.s=+A,this.l=+t,this.opacity=+n}jo(ke,ig,Vs(Hn,{brighter(e){return e=e==null?Br:Math.pow(Br,e),new ke(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?In:Math.pow(In,e),new ke(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,A=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*A,r=2*t-n;return new Ce(Ai(e>=240?e-240:e+120,r,n),Ai(e,r,n),Ai(e<120?e+240:e-120,r,n),this.opacity)},clamp(){return new ke(Zs(this.h),wr(this.s),wr(this.l),mr(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=mr(this.opacity);return`${e===1?"hsl(":"hsla("}${Zs(this.h)}, ${wr(this.s)*100}%, ${wr(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Zs(e){return e=(e||0)%360,e<0?e+360:e}function wr(e){return Math.max(0,Math.min(1,e||0))}function Ai(e,A,t){return(e<60?A+(t-A)*e/60:e<180?t:e<240?A+(t-A)*(240-e)/60:A)*255}var ei=e=>()=>e;function sg(e,A){return function(t){return e+t*A}}function ag(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 lg(e){return(e=+e)==1?js:function(A,t){return t-A?ag(A,t,e):ei(isNaN(A)?t:A)}}function js(e,A){var t=A-e;return t?sg(e,t):ei(isNaN(e)?A:e)}var Cr=(function e(A){var t=lg(A);function n(r,a){var u=t((r=qo(r)).r,(a=qo(a)).r),d=t(r.g,a.g),h=t(r.b,a.b),g=js(r.opacity,a.opacity);return function(B){return r.r=u(B),r.g=d(B),r.b=h(B),r.opacity=g(B),r+""}}return n.gamma=e,n})(1);function cg(e,A){A||(A=[]);var t=e?Math.min(A.length,e.length):0,n=A.slice(),r;return function(a){for(r=0;r<t;++r)n[r]=e[r]*(1-a)+A[r]*a;return n}}function ug(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function dg(e,A){var t=A?A.length:0,n=e?Math.min(t,e.length):0,r=new Array(n),a=new Array(t),u;for(u=0;u<n;++u)r[u]=Sn(e[u],A[u]);for(;u<t;++u)a[u]=A[u];return function(d){for(u=0;u<n;++u)a[u]=r[u](d);return a}}function fg(e,A){var t=new Date;return e=+e,A=+A,function(n){return t.setTime(e*(1-n)+A*n),t}}function Ge(e,A){return e=+e,A=+A,function(t){return e*(1-t)+A*t}}function gg(e,A){var t={},n={},r;(e===null||typeof e!="object")&&(e={}),(A===null||typeof A!="object")&&(A={});for(r in A)r in e?t[r]=Sn(e[r],A[r]):n[r]=A[r];return function(a){for(r in t)n[r]=t[r](a);return n}}var ti=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ni=new RegExp(ti.source,"g");function hg(e){return function(){return e}}function Bg(e){return function(A){return e(A)+""}}function qs(e,A){var t=ti.lastIndex=ni.lastIndex=0,n,r,a,u=-1,d=[],h=[];for(e=e+"",A=A+"";(n=ti.exec(e))&&(r=ni.exec(A));)(a=r.index)>t&&(a=A.slice(t,a),d[u]?d[u]+=a:d[++u]=a),(n=n[0])===(r=r[0])?d[u]?d[u]+=r:d[++u]=r:(d[++u]=null,h.push({i:u,x:Ge(n,r)})),t=ni.lastIndex;return t<A.length&&(a=A.slice(t),d[u]?d[u]+=a:d[++u]=a),d.length<2?h[0]?Bg(h[0].x):hg(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 Sn(e,A){var t=typeof A,n;return A==null||t==="boolean"?ei(A):(t==="number"?Ge:t==="string"?(n=_t(A))?(A=n,Cr):qs:A instanceof _t?Cr:A instanceof Date?fg:ug(A)?cg:Array.isArray(A)?dg:typeof A.valueOf!="function"&&typeof A.toString!="function"||isNaN(A)?gg:Ge)(e,A)}var Aa=180/Math.PI,ri={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ea(e,A,t,n,r,a){var u,d,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:r,translateY:a,rotate:Math.atan2(A,e)*Aa,skewX:Math.atan(h)*Aa,scaleX:u,scaleY:d}}var vr;function pg(e){const A=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return A.isIdentity?ri:ea(A.a,A.b,A.c,A.d,A.e,A.f)}function mg(e){return e==null||(vr||(vr=document.createElementNS("http://www.w3.org/2000/svg","g")),vr.setAttribute("transform",e),!(e=vr.transform.baseVal.consolidate()))?ri:(e=e.matrix,ea(e.a,e.b,e.c,e.d,e.e,e.f))}function ta(e,A,t,n){function r(g){return g.length?g.pop()+" ":""}function a(g,B,w,m,v,y){if(g!==w||B!==m){var I=v.push("translate(",null,A,null,t);y.push({i:I-4,x:Ge(g,w)},{i:I-2,x:Ge(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(r(w)+"rotate(",null,n)-2,x:Ge(g,B)})):B&&w.push(r(w)+"rotate("+B+n)}function d(g,B,w,m){g!==B?m.push({i:w.push(r(w)+"skewX(",null,n)-2,x:Ge(g,B)}):B&&w.push(r(w)+"skewX("+B+n)}function h(g,B,w,m,v,y){if(g!==w||B!==m){var I=v.push(r(v)+"scale(",null,",",null,")");y.push({i:I-4,x:Ge(g,w)},{i:I-2,x:Ge(B,m)})}else(w!==1||m!==1)&&v.push(r(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 y=-1,I=m.length,T;++y<I;)w[(T=m[y]).i]=T.x(v);return w.join("")}}}var wg=ta(pg,"px, ","px)","deg)"),Cg=ta(mg,", ",")",")"),vg=1e-12;function na(e){return((e=Math.exp(e))+1/e)/2}function yg(e){return((e=Math.exp(e))-1/e)/2}function Qg(e){return((e=Math.exp(2*e))-1)/(e+1)}var yr=(function e(A,t,n){function r(a,u){var d=a[0],h=a[1],g=a[2],B=u[0],w=u[1],m=u[2],v=B-d,y=w-h,I=v*v+y*y,T,D;if(I<vg)D=Math.log(m/g)/A,T=function(W){return[d+W*v,h+W*y,g*Math.exp(A*W*D)]};else{var V=Math.sqrt(I),b=(m*m-g*g+n*I)/(2*g*t*V),K=(m*m-g*g-n*I)/(2*m*t*V),sA=Math.log(Math.sqrt(b*b+1)-b);D=(Math.log(Math.sqrt(K*K+1)-K)-sA)/A,T=function(W){var cA=W*D,lA=na(sA),oA=g/(t*V)*(lA*Qg(A*cA+sA)-yg(sA));return[d+oA*v,h+oA*y,g*lA/na(A*cA+sA)]}}return T.duration=D*1e3*A/Math.SQRT2,T}return r.rho=function(a){var u=Math.max(.001,+a),d=u*u;return e(u,d,d*d)},r})(Math.SQRT2,2,4),jt=0,xn=0,Dn=0,ra=1e3,Qr,Nn,Er=0,Dt=0,Fr=0,Ln=typeof performance=="object"&&performance.now?performance:Date,oa=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function oi(){return Dt||(oa(Eg),Dt=Ln.now()+Fr)}function Eg(){Dt=0}function Ur(){this._call=this._time=this._next=null}Ur.prototype=ia.prototype={constructor:Ur,restart:function(e,A,t){if(typeof e!="function")throw new TypeError("callback is not a function");t=(t==null?oi():+t)+(A==null?0:+A),!this._next&&Nn!==this&&(Nn?Nn._next=this:Qr=this,Nn=this),this._call=e,this._time=t,ii()},stop:function(){this._call&&(this._call=null,this._time=1/0,ii())}};function ia(e,A,t){var n=new Ur;return n.restart(e,A,t),n}function Fg(){oi(),++jt;for(var e=Qr,A;e;)(A=Dt-e._time)>=0&&e._call.call(void 0,A),e=e._next;--jt}function sa(){Dt=(Er=Ln.now())+Fr,jt=xn=0;try{Fg()}finally{jt=0,bg(),Dt=0}}function Ug(){var e=Ln.now(),A=e-Er;A>ra&&(Fr-=A,Er=e)}function bg(){for(var e,A=Qr,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:Qr=t);Nn=e,ii(n)}function ii(e){jt||(xn&&(xn=clearTimeout(xn)),e-Dt>24?(e<1/0&&(xn=setTimeout(sa,e-Ln.now()-Fr)),Dn&&(Dn=clearInterval(Dn))):(Dn||(Er=Ln.now(),Dn=setInterval(Ug,ra)),jt=1,oa(sa)))}function aa(e,A,t){var n=new Ur;return A=A==null?0:+A,n.restart(r=>{n.stop(),e(r+A)},A,t),n}var Hg=ur("start","end","cancel","interrupt"),Ig=[],la=0,ca=1,si=2,br=3,ua=4,ai=5,Hr=6;function Ir(e,A,t,n,r,a){var u=e.__transition;if(!u)e.__transition={};else if(t in u)return;_g(e,t,{name:A,index:n,group:r,on:Hg,tween:Ig,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:la})}function li(e,A){var t=Me(e,A);if(t.state>la)throw new Error("too late; already scheduled");return t}function ze(e,A){var t=Me(e,A);if(t.state>br)throw new Error("too late; already running");return t}function Me(e,A){var t=e.__transition;if(!t||!(t=t[A]))throw new Error("transition not found");return t}function _g(e,A,t){var n=e.__transition,r;n[A]=t,t.timer=ia(a,0,t.time);function a(g){t.state=ca,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!==ca)return h();for(B in n)if(v=n[B],v.name===t.name){if(v.state===br)return aa(u);v.state===ua?(v.state=Hr,v.timer.stop(),v.on.call("interrupt",e,e.__data__,v.index,v.group),delete n[B]):+B<A&&(v.state=Hr,v.timer.stop(),v.on.call("cancel",e,e.__data__,v.index,v.group),delete n[B])}if(aa(function(){t.state===br&&(t.state=ua,t.timer.restart(d,t.delay,t.time),d(g))}),t.state=si,t.on.call("start",e,e.__data__,t.index,t.group),t.state===si){for(t.state=br,r=new Array(m=t.tween.length),B=0,w=-1;B<m;++B)(v=t.tween[B].value.call(e,e.__data__,t.index,t.group))&&(r[++w]=v);r.length=w+1}}function d(g){for(var B=g<t.duration?t.ease.call(null,g/t.duration):(t.timer.restart(h),t.state=ai,1),w=-1,m=r.length;++w<m;)r[w].call(e,B);t.state===ai&&(t.on.call("end",e,e.__data__,t.index,t.group),h())}function h(){t.state=Hr,t.timer.stop(),delete n[A];for(var g in n)return;delete e.__transition}}function _r(e,A){var t=e.__transition,n,r,a=!0,u;if(t){A=A==null?null:A+"";for(u in t){if((n=t[u]).name!==A){a=!1;continue}r=n.state>si&&n.state<ai,n.state=Hr,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete t[u]}a&&delete e.__transition}}function Sg(e){return this.each(function(){_r(this,e)})}function xg(e,A){var t,n;return function(){var r=ze(this,e),a=r.tween;if(a!==t){n=t=a;for(var u=0,d=n.length;u<d;++u)if(n[u].name===A){n=n.slice(),n.splice(u,1);break}}r.tween=n}}function Dg(e,A,t){var n,r;if(typeof t!="function")throw new Error;return function(){var a=ze(this,e),u=a.tween;if(u!==n){r=(n=u).slice();for(var d={name:A,value:t},h=0,g=r.length;h<g;++h)if(r[h].name===A){r[h]=d;break}h===g&&r.push(d)}a.tween=r}}function Ng(e,A){var t=this._id;if(e+="",arguments.length<2){for(var n=Me(this.node(),t).tween,r=0,a=n.length,u;r<a;++r)if((u=n[r]).name===e)return u.value;return null}return this.each((A==null?xg:Dg)(t,e,A))}function ci(e,A,t){var n=e._id;return e.each(function(){var r=ze(this,n);(r.value||(r.value={}))[A]=t.apply(this,arguments)}),function(r){return Me(r,n).value[A]}}function da(e,A){var t;return(typeof A=="number"?Ge:A instanceof _t?Cr:(t=_t(A))?(A=t,Cr):qs)(e,A)}function Lg(e){return function(){this.removeAttribute(e)}}function Tg(e){return function(){this.removeAttributeNS(e.space,e.local)}}function kg(e,A,t){var n,r=t+"",a;return function(){var u=this.getAttribute(e);return u===r?null:u===n?a:a=A(n=u,t)}}function Mg(e,A,t){var n,r=t+"",a;return function(){var u=this.getAttributeNS(e.space,e.local);return u===r?null:u===n?a:a=A(n=u,t)}}function Og(e,A,t){var n,r,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===r?a:(r=h,a=A(n=u,d)))}}function Kg(e,A,t){var n,r,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===r?a:(r=h,a=A(n=u,d)))}}function Rg(e,A){var t=fr(e),n=t==="transform"?Cg:da;return this.attrTween(e,typeof A=="function"?(t.local?Kg:Og)(t,n,ci(this,"attr."+e,A)):A==null?(t.local?Tg:Lg)(t):(t.local?Mg:kg)(t,n,A))}function Vg(e,A){return function(t){this.setAttribute(e,A.call(this,t))}}function Pg(e,A){return function(t){this.setAttributeNS(e.space,e.local,A.call(this,t))}}function Gg(e,A){var t,n;function r(){var a=A.apply(this,arguments);return a!==n&&(t=(n=a)&&Pg(e,a)),t}return r._value=A,r}function zg(e,A){var t,n;function r(){var a=A.apply(this,arguments);return a!==n&&(t=(n=a)&&Vg(e,a)),t}return r._value=A,r}function Xg(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=fr(e);return this.tween(t,(n.local?Gg:zg)(n,A))}function $g(e,A){return function(){li(this,e).delay=+A.apply(this,arguments)}}function Yg(e,A){return A=+A,function(){li(this,e).delay=A}}function Wg(e){var A=this._id;return arguments.length?this.each((typeof e=="function"?$g:Yg)(A,e)):Me(this.node(),A).delay}function Jg(e,A){return function(){ze(this,e).duration=+A.apply(this,arguments)}}function Zg(e,A){return A=+A,function(){ze(this,e).duration=A}}function jg(e){var A=this._id;return arguments.length?this.each((typeof e=="function"?Jg:Zg)(A,e)):Me(this.node(),A).duration}function qg(e,A){if(typeof A!="function")throw new Error;return function(){ze(this,e).ease=A}}function Ah(e){var A=this._id;return arguments.length?this.each(qg(A,e)):Me(this.node(),A).ease}function eh(e,A){return function(){var t=A.apply(this,arguments);if(typeof t!="function")throw new Error;ze(this,e).ease=t}}function th(e){if(typeof e!="function")throw new Error;return this.each(eh(this._id,e))}function nh(e){typeof e!="function"&&(e=_s(e));for(var A=this._groups,t=A.length,n=new Array(t),r=0;r<t;++r)for(var a=A[r],u=a.length,d=n[r]=[],h,g=0;g<u;++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 rh(e){if(e._id!==this._id)throw new Error;for(var A=this._groups,t=e._groups,n=A.length,r=t.length,a=Math.min(n,r),u=new Array(n),d=0;d<a;++d)for(var 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 At(u,this._parents,this._name,this._id)}function oh(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 ih(e,A,t){var n,r,a=oh(A)?li:ze;return function(){var u=a(this,e),d=u.on;d!==n&&(r=(n=d).copy()).on(A,t),u.on=r}}function sh(e,A){var t=this._id;return arguments.length<2?Me(this.node(),t).on.on(e):this.each(ih(t,e,A))}function ah(e){return function(){var A=this.parentNode;for(var t in this.__transition)if(+t!==e)return;A&&A.removeChild(this)}}function lh(){return this.on("end.remove",ah(this._id))}function ch(e){var A=this._name,t=this._id;typeof e!="function"&&(e=Yo(e));for(var n=this._groups,r=n.length,a=new Array(r),u=0;u<r;++u)for(var d=n[u],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,Ir(g[m],A,t,m,g,Me(B,t)));return new At(a,this._parents,A,t)}function uh(e){var A=this._name,t=this._id;typeof e!="function"&&(e=Is(e));for(var n=this._groups,r=n.length,a=[],u=[],d=0;d<r;++d)for(var 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,y=Me(B,t),I=0,T=m.length;I<T;++I)(v=m[I])&&Ir(v,A,t,I,m,y);a.push(m),u.push(B)}return new At(a,u,A,t)}var dh=Un.prototype.constructor;function fh(){return new dh(this._groups,this._parents)}function gh(e,A){var t,n,r;return function(){var a=Wt(this,e),u=(this.style.removeProperty(e),Wt(this,e));return a===u?null:a===t&&u===n?r:r=A(t=a,n=u)}}function fa(e){return function(){this.style.removeProperty(e)}}function hh(e,A,t){var n,r=t+"",a;return function(){var u=Wt(this,e);return u===r?null:u===n?a:a=A(n=u,t)}}function Bh(e,A,t){var n,r,a;return function(){var u=Wt(this,e),d=t(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Wt(this,e))),u===h?null:u===n&&h===r?a:(r=h,a=A(n=u,d))}}function ph(e,A){var t,n,r,a="style."+A,u="end."+a,d;return function(){var h=ze(this,e),g=h.on,B=h.value[a]==null?d||(d=fa(A)):void 0;(g!==t||r!==B)&&(n=(t=g).copy()).on(u,r=B),h.on=n}}function mh(e,A,t){var n=(e+="")=="transform"?wg:da;return A==null?this.styleTween(e,gh(e,n)).on("end.style."+e,fa(e)):typeof A=="function"?this.styleTween(e,Bh(e,n,ci(this,"style."+e,A))).each(ph(this._id,e)):this.styleTween(e,hh(e,n,A),t).on("end.style."+e,null)}function wh(e,A,t){return function(n){this.style.setProperty(e,A.call(this,n),t)}}function Ch(e,A,t){var n,r;function a(){var u=A.apply(this,arguments);return u!==r&&(n=(r=u)&&wh(e,u,t)),n}return a._value=A,a}function vh(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,Ch(e,A,t??""))}function yh(e){return function(){this.textContent=e}}function Qh(e){return function(){var A=e(this);this.textContent=A??""}}function Eh(e){return this.tween("text",typeof e=="function"?Qh(ci(this,"text",e)):yh(e==null?"":e+""))}function Fh(e){return function(A){this.textContent=e.call(this,A)}}function Uh(e){var A,t;function n(){var r=e.apply(this,arguments);return r!==t&&(A=(t=r)&&Fh(r)),A}return n._value=e,n}function bh(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,Uh(e))}function Hh(){for(var e=this._name,A=this._id,t=ga(),n=this._groups,r=n.length,a=0;a<r;++a)for(var u=n[a],d=u.length,h,g=0;g<d;++g)if(h=u[g]){var B=Me(h,A);Ir(h,e,t,g,u,{time:B.time+B.delay+B.duration,delay:0,duration:B.duration,ease:B.ease})}return new At(n,this._parents,e,t)}function Ih(){var e,A,t=this,n=t._id,r=t.size();return new Promise(function(a,u){var d={value:u},h={value:function(){--r===0&&a()}};t.each(function(){var g=ze(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}),r===0&&a()})}var _h=0;function At(e,A,t,n){this._groups=e,this._parents=A,this._name=t,this._id=n}function ga(){return++_h}var et=Un.prototype;At.prototype={constructor:At,select:ch,selectAll:uh,selectChild:et.selectChild,selectChildren:et.selectChildren,filter:nh,merge:rh,selection:fh,transition:Hh,call:et.call,nodes:et.nodes,node:et.node,size:et.size,empty:et.empty,each:et.each,on:sh,attr:Rg,attrTween:Xg,style:mh,styleTween:vh,text:Eh,textTween:bh,remove:lh,tween:Ng,delay:Wg,duration:jg,ease:Ah,easeVarying:th,end:Ih,[Symbol.iterator]:et[Symbol.iterator]};function Sh(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var xh={time:null,delay:0,duration:250,ease:Sh};function Dh(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 Nh(e){var A,t;e instanceof At?(A=e._id,e=e._name):(A=ga(),(t=xh).time=oi(),e=e==null?null:e+"");for(var n=this._groups,r=n.length,a=0;a<r;++a)for(var u=n[a],d=u.length,h,g=0;g<d;++g)(h=u[g])&&Ir(h,e,A,g,u,t||Dh(h,A));return new At(n,this._parents,e,A)}Un.prototype.interrupt=Sg,Un.prototype.transition=Nh;var Sr=e=>()=>e;function Lh(e,{sourceEvent:A,target:t,transform:n,dispatch:r}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:A,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},transform:{value:n,enumerable:!0,configurable:!0},_:{value:r}})}function 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 qt=new tt(1,0,0);tt.prototype;function ui(e){e.stopImmediatePropagation()}function Tn(e){e.preventDefault(),e.stopImmediatePropagation()}function Th(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function kh(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function ha(){return this.__zoom||qt}function Mh(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Oh(){return navigator.maxTouchPoints||"ontouchstart"in this}function Kh(e,A,t){var n=e.invertX(A[0][0])-t[0][0],r=e.invertX(A[1][0])-t[1][0],a=e.invertY(A[0][1])-t[0][1],u=e.invertY(A[1][1])-t[1][1];return e.translate(r>n?(n+r)/2:Math.min(0,n)||Math.max(0,r),u>a?(a+u)/2:Math.min(0,a)||Math.max(0,u))}function Rh(){var e=Th,A=kh,t=Kh,n=Mh,r=Oh,a=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],d=250,h=yr,g=ur("start","zoom","end"),B,w,m,v=500,y=150,I=0,T=10;function D(H){H.property("__zoom",ha).on("wheel.zoom",lA,{passive:!1}).on("mousedown.zoom",oA).on("dblclick.zoom",iA).filter(r).on("touchstart.zoom",AA).on("touchmove.zoom",S).on("touchend.zoom touchcancel.zoom",eA).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}D.transform=function(H,X,U,L){var k=H.selection?H.selection():H;k.property("__zoom",ha),H!==k?sA(H,X,U,L):k.interrupt().each(function(){W(this,arguments).event(L).start().zoom(null,typeof X=="function"?X.apply(this,arguments):X).end()})},D.scaleBy=function(H,X,U,L){D.scaleTo(H,function(){return this.__zoom.k*(typeof X=="function"?X.apply(this,arguments):X)},U,L)},D.scaleTo=function(H,X,U,L){D.transform(H,function(){var k=A.apply(this,arguments),N=this.__zoom,O=U==null?K(k):typeof U=="function"?U.apply(this,arguments):U,Y=N.invert(O),tA=typeof X=="function"?X.apply(this,arguments):X;return t(b(V(N,tA),O,Y),k,u)},U,L)},D.translateBy=function(H,X,U,L){D.transform(H,function(){return t(this.__zoom.translate(typeof X=="function"?X.apply(this,arguments):X,typeof U=="function"?U.apply(this,arguments):U),A.apply(this,arguments),u)},null,L)},D.translateTo=function(H,X,U,L,k){D.transform(H,function(){var N=A.apply(this,arguments),O=this.__zoom,Y=L==null?K(N):typeof L=="function"?L.apply(this,arguments):L;return t(qt.translate(Y[0],Y[1]).scale(O.k).translate(typeof X=="function"?-X.apply(this,arguments):-X,typeof U=="function"?-U.apply(this,arguments):-U),N,u)},L,k)};function V(H,X){return X=Math.max(a[0],Math.min(a[1],X)),X===H.k?H:new tt(X,H.x,H.y)}function b(H,X,U){var L=X[0]-U[0]*H.k,k=X[1]-U[1]*H.k;return L===H.x&&k===H.y?H:new tt(H.k,L,k)}function K(H){return[(+H[0][0]+ +H[1][0])/2,(+H[0][1]+ +H[1][1])/2]}function sA(H,X,U,L){H.on("start.zoom",function(){W(this,arguments).event(L).start()}).on("interrupt.zoom end.zoom",function(){W(this,arguments).event(L).end()}).tween("zoom",function(){var k=this,N=arguments,O=W(k,N).event(L),Y=A.apply(k,N),tA=U==null?K(Y):typeof U=="function"?U.apply(k,N):U,pA=Math.max(Y[1][0]-Y[0][0],Y[1][1]-Y[0][1]),HA=k.__zoom,nA=typeof X=="function"?X.apply(k,N):X,Z=h(HA.invert(tA).concat(pA/HA.k),nA.invert(tA).concat(pA/nA.k));return function($){if($===1)$=nA;else{var uA=Z($),wA=pA/uA[2];$=new tt(wA,tA[0]-uA[0]*wA,tA[1]-uA[1]*wA)}O.zoom(null,$)}})}function W(H,X,U){return!U&&H.__zooming||new cA(H,X)}function cA(H,X){this.that=H,this.args=X,this.active=0,this.sourceEvent=null,this.extent=A.apply(H,X),this.taps=0}cA.prototype={event:function(H){return H&&(this.sourceEvent=H),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(H,X){return this.mouse&&H!=="mouse"&&(this.mouse[1]=X.invert(this.mouse[0])),this.touch0&&H!=="touch"&&(this.touch0[1]=X.invert(this.touch0[0])),this.touch1&&H!=="touch"&&(this.touch1[1]=X.invert(this.touch1[0])),this.that.__zoom=X,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(H){var X=Te(this.that).datum();g.call(H,this.that,new Lh(H,{sourceEvent:this.sourceEvent,target:D,type:H,transform:this.that.__zoom,dispatch:g}),X)}};function lA(H,...X){if(!e.apply(this,arguments))return;var U=W(this,X).event(H),L=this.__zoom,k=Math.max(a[0],Math.min(a[1],L.k*Math.pow(2,n.apply(this,arguments)))),N=Ve(H);if(U.wheel)(U.mouse[0][0]!==N[0]||U.mouse[0][1]!==N[1])&&(U.mouse[1]=L.invert(U.mouse[0]=N)),clearTimeout(U.wheel);else{if(L.k===k)return;U.mouse=[N,L.invert(N)],_r(this),U.start()}Tn(H),U.wheel=setTimeout(O,y),U.zoom("mouse",t(b(V(L,k),U.mouse[0],U.mouse[1]),U.extent,u));function O(){U.wheel=null,U.end()}}function oA(H,...X){if(m||!e.apply(this,arguments))return;var U=H.currentTarget,L=W(this,X,!0).event(H),k=Te(H.view).on("mousemove.zoom",tA,!0).on("mouseup.zoom",pA,!0),N=Ve(H,U),O=H.clientX,Y=H.clientY;Ks(H.view),ui(H),L.mouse=[N,this.__zoom.invert(N)],_r(this),L.start();function tA(HA){if(Tn(HA),!L.moved){var nA=HA.clientX-O,Z=HA.clientY-Y;L.moved=nA*nA+Z*Z>I}L.event(HA).zoom("mouse",t(b(L.that.__zoom,L.mouse[0]=Ve(HA,U),L.mouse[1]),L.extent,u))}function pA(HA){k.on("mousemove.zoom mouseup.zoom",null),Rs(HA.view,L.moved),Tn(HA),L.event(HA).end()}}function iA(H,...X){if(e.apply(this,arguments)){var U=this.__zoom,L=Ve(H.changedTouches?H.changedTouches[0]:H,this),k=U.invert(L),N=U.k*(H.shiftKey?.5:2),O=t(b(V(U,N),L,k),A.apply(this,X),u);Tn(H),d>0?Te(this).transition().duration(d).call(sA,O,L,H):Te(this).call(D.transform,O,L,H)}}function AA(H,...X){if(e.apply(this,arguments)){var U=H.touches,L=U.length,k=W(this,X,H.changedTouches.length===L).event(H),N,O,Y,tA;for(ui(H),O=0;O<L;++O)Y=U[O],tA=Ve(Y,this),tA=[tA,this.__zoom.invert(tA),Y.identifier],k.touch0?!k.touch1&&k.touch0[2]!==tA[2]&&(k.touch1=tA,k.taps=0):(k.touch0=tA,N=!0,k.taps=1+!!B);B&&(B=clearTimeout(B)),N&&(k.taps<2&&(w=tA[0],B=setTimeout(function(){B=null},v)),_r(this),k.start())}}function S(H,...X){if(this.__zooming){var U=W(this,X).event(H),L=H.changedTouches,k=L.length,N,O,Y,tA;for(Tn(H),N=0;N<k;++N)O=L[N],Y=Ve(O,this),U.touch0&&U.touch0[2]===O.identifier?U.touch0[0]=Y:U.touch1&&U.touch1[2]===O.identifier&&(U.touch1[0]=Y);if(O=U.that.__zoom,U.touch1){var pA=U.touch0[0],HA=U.touch0[1],nA=U.touch1[0],Z=U.touch1[1],$=($=nA[0]-pA[0])*$+($=nA[1]-pA[1])*$,uA=(uA=Z[0]-HA[0])*uA+(uA=Z[1]-HA[1])*uA;O=V(O,Math.sqrt($/uA)),Y=[(pA[0]+nA[0])/2,(pA[1]+nA[1])/2],tA=[(HA[0]+Z[0])/2,(HA[1]+Z[1])/2]}else if(U.touch0)Y=U.touch0[0],tA=U.touch0[1];else return;U.zoom("touch",t(b(O,Y,tA),U.extent,u))}}function eA(H,...X){if(this.__zooming){var U=W(this,X).event(H),L=H.changedTouches,k=L.length,N,O;for(ui(H),m&&clearTimeout(m),m=setTimeout(function(){m=null},v),N=0;N<k;++N)O=L[N],U.touch0&&U.touch0[2]===O.identifier?delete U.touch0:U.touch1&&U.touch1[2]===O.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&&(O=Ve(O,this),Math.hypot(w[0]-O[0],w[1]-O[1])<T)){var Y=Te(this).on("dblclick.zoom");Y&&Y.apply(this,arguments)}}}return D.wheelDelta=function(H){return arguments.length?(n=typeof H=="function"?H:Sr(+H),D):n},D.filter=function(H){return arguments.length?(e=typeof H=="function"?H:Sr(!!H),D):e},D.touchable=function(H){return arguments.length?(r=typeof H=="function"?H:Sr(!!H),D):r},D.extent=function(H){return arguments.length?(A=typeof H=="function"?H:Sr([[+H[0][0],+H[0][1]],[+H[1][0],+H[1][1]]]),D):A},D.scaleExtent=function(H){return arguments.length?(a[0]=+H[0],a[1]=+H[1],D):[a[0],a[1]]},D.translateExtent=function(H){return arguments.length?(u[0][0]=+H[0][0],u[1][0]=+H[1][0],u[0][1]=+H[0][1],u[1][1]=+H[1][1],D):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},D.constrain=function(H){return arguments.length?(t=H,D):t},D.duration=function(H){return arguments.length?(d=+H,D):d},D.interpolate=function(H){return arguments.length?(h=H,D):h},D.on=function(){var H=g.on.apply(g,arguments);return H===g?D:H},D.clickDistance=function(H){return arguments.length?(I=(H=+H)*H,D):Math.sqrt(I)},D.tapDistance=function(H){return arguments.length?(T=+H,D):T},D}var IA=(e=>(e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom",e))(IA||{}),di=(e=>(e.Partial="partial",e.Full="full",e))(di||{}),Nt=(e=>(e.Bezier="default",e.SimpleBezier="simple-bezier",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e))(Nt||{}),nt=(e=>(e.Strict="strict",e.Loose="loose",e))(nt||{}),rt=(e=>(e.Arrow="arrow",e.ArrowClosed="arrowclosed",e))(rt||{}),kn=(e=>(e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal",e))(kn||{}),Ba=(e=>(e.TopLeft="top-left",e.TopCenter="top-center",e.TopRight="top-right",e.BottomLeft="bottom-left",e.BottomCenter="bottom-center",e.BottomRight="bottom-right",e))(Ba||{}),Vh=["INPUT","SELECT","TEXTAREA"],Ph=typeof document<"u"?document:null;function fi(e){var A,t;const n=((t=(A=e.composedPath)==null?void 0:A.call(e))==null?void 0:t[0])||e.target,r=typeof n?.hasAttribute=="function"?n.hasAttribute("contenteditable"):!1,a=typeof n?.closest=="function"?n.closest(".nokey"):null;return Vh.includes(n?.nodeName)||r||!!a}function Gh(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey}function pa(e,A,t,n){const r=A.replace("+",`
|
|
2
2
|
`).replace(`
|
|
3
3
|
|
|
4
4
|
`,`
|
|
5
5
|
+`).split(`
|
|
6
|
-
`).map(u=>u.trim().toLowerCase());if(r.length===1)return e.toLowerCase()===A.toLowerCase();n||t.add(e.toLowerCase());const a=r.every((u,d)=>t.has(u)&&Array.from(t.values())[d]===r[d]);return n&&t.delete(e.toLowerCase()),a}function Gh(e,A){return t=>{if(!t.code&&!t.key)return!1;const n=zh(t.code,e);return Array.isArray(e)?e.some(r=>pa(t[n],r,A,t.type==="keyup")):pa(t[n],e,A,t.type==="keyup")}}function zh(e,A){return A.includes(e)?"code":"key"}function Mn(e,A){const t=(0,o.computed)(()=>(0,o.toValue)(A?.target)??Vh),n=(0,o.shallowRef)((0,o.toValue)(e)===!0);let r=!1;const a=new Set;let u=h((0,o.toValue)(e));(0,o.watch)(()=>(0,o.toValue)(e),(g,B)=>{typeof B=="boolean"&&typeof g!="boolean"&&d(),u=h(g)},{immediate:!0}),Es(["blur","contextmenu"],d),Fs((...g)=>u(...g),g=>{var B,w;const m=(0,o.toValue)(A?.actInsideInputWithModifier)??!0,v=(0,o.toValue)(A?.preventDefault)??!1;if(r=Ph(g),(!r||r&&!m)&&gi(g))return;const y=((w=(B=g.composedPath)==null?void 0:B.call(g))==null?void 0:w[0])||g.target,I=y?.nodeName==="BUTTON"||y?.nodeName==="A";!v&&(r||!I)&&g.preventDefault(),n.value=!0},{eventName:"keydown",target:t}),Fs((...g)=>u(...g),g=>{const B=(0,o.toValue)(A?.actInsideInputWithModifier)??!0;if(n.value){if((!r||r&&!B)&&gi(g))return;r=!1,n.value=!1}},{eventName:"keyup",target:t});function d(){r=!1,a.clear(),n.value=(0,o.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"?Gh(g,a):g}return n}var ma="vue-flow__node-desc",wa="vue-flow__edge-desc",Xh="vue-flow__aria-live",Ca=["Enter"," ","Escape"],An={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function Sr(e){return{...e.computedPosition||{x:0,y:0},width:e.dimensions.width||0,height:e.dimensions.height||0}}function xr(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 Dr(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Tt(e,A=0,t=1){return Math.min(Math.max(e,A),t)}function va(e,A){return{x:Tt(e.x,A[0][0],A[1][0]),y:Tt(e.y,A[0][1],A[1][1])}}function ya(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 kt(e){return e&&typeof e=="object"&&"id"in e&&"position"in e&&!ht(e)}function On(e){return kt(e)&&"computedPosition"in e}function Nr(e){return!Number.isNaN(e)&&Number.isFinite(e)}function $h(e){return Nr(e.width)&&Nr(e.height)&&Nr(e.x)&&Nr(e.y)}function Yh(e,A,t){const n={id:e.id.toString(),type:e.type??"default",dimensions:(0,o.markRaw)({width:0,height:0}),computedPosition:(0,o.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,o.markRaw)(se(e.events)?e.events:{})};return Object.assign(A??n,e,{id:e.id.toString(),parentNode:t})}function Qa(e,A,t){var n,r;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:(r=e.targetHandle)==null?void 0:r.toString(),updatable:e.updatable??t?.updatable,selectable:e.selectable??t?.selectable,focusable:e.focusable??t?.focusable,data:se(e.data)?e.data:{},events:(0,o.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 Ea(e,A,t,n){const r=typeof e=="string"?e:e.id,a=new Set,u=n==="source"?"target":"source";for(const d of t)d[u]===r&&a.add(d[n]);return A.filter(d=>a.has(d.id))}function Wh(...e){if(e.length===3){const[r,a,u]=e;return Ea(r,a,u,"target")}const[A,t]=e,n=typeof A=="string"?A:A.id;return t.filter(r=>ht(r)&&r.source===n).map(r=>t.find(a=>kt(a)&&a.id===r.target))}function Jh(...e){if(e.length===3){const[r,a,u]=e;return Ea(r,a,u,"source")}const[A,t]=e,n=typeof A=="string"?A:A.id;return t.filter(r=>ht(r)&&r.target===n).map(r=>t.find(a=>kt(a)&&a.id===r.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=>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 Kn({x:e,y:A},{x:t,y:n,zoom:r}){return{x:e*r+t,y:A*r+n}}function Rn({x:e,y:A},{x:t,y:n,zoom:r},a=!1,u=[1,1]){const d={x:(e-t)/r,y:(A-n)/r};return a?Tr(d,u):d}function jh(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 Ua({x:e,y:A,width:t,height:n}){return{x:e,y:A,x2:e+t,y2:A+n}}function qh({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=jh(A,Ua({...n.computedPosition,...n.dimensions}))}return qh(A)}function Ha(e,A,t={x:0,y:0,zoom:1},n=!1,r=!1){const a={...Rn(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(r&&!g||B)continue;const v=xr(a,Sr(d)),y=w===null||m===null,I=n&&v>0,T=(w??0)*(m??0);(y||I||v>=T||d.dragging)&&u.push(d)}return u}function Ia(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 en(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 Pn(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function AB(e,A,t){if(typeof e=="string"||typeof e=="number"){const n=en(e,t),r=en(e,A);return{top:n,right:r,bottom:n,left:r,x:r*2,y:n*2}}if(typeof e=="object"){const n=en(e.top??e.y??0,t),r=en(e.bottom??e.y??0,t),a=en(e.left??e.x??0,A),u=en(e.right??e.x??0,A);return{top:n,right:u,bottom:r,left:a,x:a+u,y:n+r}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function eB(e,A,t,n,r,a){const{x:u,y:d}=Kn(e,{x:A,y:t,zoom:n}),{x:h,y:g}=Kn({x:e.x+e.width,y:e.y+e.height},{x:A,y:t,zoom:n}),B=r-h,w=a-g;return{left:Math.floor(u),top:Math.floor(d),right:Math.floor(B),bottom:Math.floor(w)}}function _a(e,A,t,n,r,a=.1){const u=AB(a,A,t),d=(A-u.x)/e.width,h=(t-u.y)/e.height,g=Tt(Math.min(d,h),n,r),B=e.x+e.width/2,w=e.y+e.height/2,m=A/2-B*g,v=t/2-w*g,y=eB(e,m,v,g,A,t),I={left:Math.min(y.left-u.left,0),top:Math.min(y.top-u.top,0),right:Math.min(y.right-u.right,0),bottom:Math.min(y.bottom-u.bottom,0)};return{x:m-I.left+I.right,y:v-I.top+I.bottom,zoom:g}}function tB(e,A){return{x:A.x+e.x,y:A.y+e.y,z:(e.z>A.z?e.z:A.z)+1}}function Sa(e,A){if(!e.parentNode)return!1;const t=A.get(e.parentNode);return t?t.selected?!0:Sa(t,A):!1}function Vn(e,A){return typeof e>"u"?"":typeof e=="string"?e:`${A?`${A}__`:""}${Object.keys(e).sort().map(t=>`${t}=${e[t]}`).join("&")}`}function xa(e){const A=e.ctrlKey&&Lr()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*A}function Da(e,A,t){return e<A?Tt(Math.abs(e-A),1,A)/A:e>t?-Tt(Math.abs(e-t),1,A)/A:0}function Na(e,A,t=15,n=40){return[Da(e.x,n,A.width-n)*t,Da(e.y,n,A.height-n)*t]}function hi(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 r={};if(typeof A.style=="function"?r={...A.style(A)}:A.style&&(r={...A.style}),r.width=r.width??`${A.dimensions.width}px`,r.height=r.height??`${A.dimensions.height}px`,t>0)if(typeof r.width=="string"){const a=Number(r.width.replace("px",""));r.width=`${a+t}px`}else r.width+=t;if(n>0)if(typeof r.height=="string"){const a=Number(r.height.replace("px",""));r.height=`${a+n}px`}else r.height+=n;if(e.position.x<0){const a=Math.abs(e.position.x);if(A.position.x=A.position.x-a,typeof r.width=="string"){const u=Number(r.width.replace("px",""));r.width=`${u+a}px`}else r.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 r.height=="string"){const u=Number(r.height.replace("px",""));r.height=`${u+a}px`}else r.height+=a;e.position.y=0}A.dimensions.width=Number(r.width.toString().replace("px","")),A.dimensions.height=Number(r.height.toString().replace("px","")),typeof A.style=="function"?A.style=a=>{const u=A.style;return{...u(a),...r}}:A.style={...A.style,...r}}}}function La(e,A){var t,n;const r=e.filter(u=>u.type==="add"||u.type==="remove");for(const u of r)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(On(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&&On(h)&&hi(u,h)}break;case"dimensions":if(On(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&&On(h)&&(h.dimensions.width&&h.dimensions.height?hi(u,h):(0,o.nextTick)(()=>{hi(u,h)}))}break}return A}function Bt(e,A){return{id:e,type:"select",selected:A}}function Ta(e){return{item:e,type:"add"}}function ka(e){return{id:e,type:"remove"}}function Ma(e,A,t,n,r){return{id:e,source:A,target:t,sourceHandle:n||null,targetHandle:r||null,type:"remove"}}function pt(e,A=new Set,t=!1){const n=[];for(const[r,a]of e){const u=A.has(r);!(a.selected===void 0&&!u)&&a.selected!==u&&(t&&(a.selected=u),n.push(Bt(a.id,u)))}return n}var Oa=()=>{};function yA(e){const A=new Set;let t=Oa,n=()=>!1;const r=()=>A.size>0||n(),a=m=>{t=m},u=()=>{t=Oa},d=m=>{n=m},h=()=>{n=()=>!1},g=m=>{A.delete(m)};return{on:m=>{A.add(m);const v=()=>g(m);return Fn(v),{off:v}},off:g,trigger:m=>{const v=[t];return r()?v.push(...A):e&&v.push(e),Promise.allSettled(v.map(y=>y(m)))},hasListeners:r,listeners:A,setEmitter:a,removeEmitter:u,setHasEmitListeners:d,removeHasEmitListeners:h}}function Ka(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 nB(e,A,t,n){var r,a;const u=new Map;for(const[d,h]of e)(h.selected||h.id===n)&&(!h.parentNode||!Sa(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-((r=h.computedPosition)==null?void 0:r.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 Bi({id:e,dragItems:A,findNode:t}){const n=[];for(const r of A){const a=t(r.id);a&&n.push(a)}return[e?n.find(r=>r.id===e):n[0],n]}function Ra(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 rB(e,A,t){const[n,r,a,u]=typeof e!="string"?Ra(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-r,t.computedPosition.y+t.dimensions.height-a]]:!1}function oB(e,A,t,n){let r=e.extent||t;if((r==="parent"||!Array.isArray(r)&&r?.range==="parent")&&!e.expandParent)if(e.parentNode&&n&&e.dimensions.width&&e.dimensions.height){const a=rB(r,e,n);a&&(r=a)}else A(new ce(ie.NODE_EXTENT_INVALID,e.id)),r=t;else if(Array.isArray(r)){const a=n?.computedPosition.x||0,u=n?.computedPosition.y||0;r=[[r[0][0]+a,r[0][1]+u],[r[1][0]+a,r[1][1]+u]]}else if(r!=="parent"&&r?.range&&Array.isArray(r.range)){const[a,u,d,h]=Ra(r.padding),g=n?.computedPosition.x||0,B=n?.computedPosition.y||0;r=[[r.range[0][0]+g+h,r.range[0][1]+B+a],[r.range[1][0]+g-u,r.range[1][1]+B-d]]}return r==="parent"?[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]]:r}function iB({width:e,height:A},t){return[t[0],[t[1][0]-(e||0),t[1][1]-(A||0)]]}function pi(e,A,t,n,r){const a=va(A,iB(e.dimensions,oB(e,t,n,r)));return{position:{x:a.x-(r?.computedPosition.x||0),y:a.y-(r?.computedPosition.y||0)},computedPosition:a}}function tn(e,A,t=IA.Left,n=!1){const r=(A?.x??0)+e.computedPosition.x,a=(A?.y??0)+e.computedPosition.y,{width:u,height:d}=A??cB(e);if(n)return{x:r+u/2,y:a+d/2};switch(A?.position??t){case IA.Top:return{x:r+u/2,y:a};case IA.Right:return{x:r+u,y:a+d/2};case IA.Bottom:return{x:r+u/2,y:a+d};case IA.Left:return{x:r,y:a+d/2}}}function Va(e,A){return e&&(A?e.find(t=>t.id===A):e[0])||null}function sB({sourcePos:e,targetPos:A,sourceWidth:t,sourceHeight:n,targetWidth:r,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+r),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=Ua({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 aB(e,A,t=!1){const n=typeof e.zIndex=="number";let r=n?e.zIndex:0;const a=A(e.source),u=A(e.target);return!a||!u?0:(t&&(r=n?e.zIndex:Math.max(a.computedPosition.z||0,u.computedPosition.z||0)),r)}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||{}),Pa={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(r.length===1)return e.toLowerCase()===A.toLowerCase();n||t.add(e.toLowerCase());const a=r.every((u,d)=>t.has(u)&&Array.from(t.values())[d]===r[d]);return n&&t.delete(e.toLowerCase()),a}function zh(e,A){return t=>{if(!t.code&&!t.key)return!1;const n=Xh(t.code,e);return Array.isArray(e)?e.some(r=>pa(t[n],r,A,t.type==="keyup")):pa(t[n],e,A,t.type==="keyup")}}function Xh(e,A){return A.includes(e)?"code":"key"}function Mn(e,A){const t=(0,o.computed)(()=>(0,o.toValue)(A?.target)??Ph),n=(0,o.shallowRef)((0,o.toValue)(e)===!0);let r=!1;const a=new Set;let u=h((0,o.toValue)(e));(0,o.watch)(()=>(0,o.toValue)(e),(g,B)=>{typeof B=="boolean"&&typeof g!="boolean"&&d(),u=h(g)},{immediate:!0}),Es(["blur","contextmenu"],d),Fs((...g)=>u(...g),g=>{var B,w;const m=(0,o.toValue)(A?.actInsideInputWithModifier)??!0,v=(0,o.toValue)(A?.preventDefault)??!1;if(r=Gh(g),(!r||r&&!m)&&fi(g))return;const y=((w=(B=g.composedPath)==null?void 0:B.call(g))==null?void 0:w[0])||g.target,I=y?.nodeName==="BUTTON"||y?.nodeName==="A";!v&&(r||!I)&&g.preventDefault(),n.value=!0},{eventName:"keydown",target:t}),Fs((...g)=>u(...g),g=>{const B=(0,o.toValue)(A?.actInsideInputWithModifier)??!0;if(n.value){if((!r||r&&!B)&&fi(g))return;r=!1,n.value=!1}},{eventName:"keyup",target:t});function d(){r=!1,a.clear(),n.value=(0,o.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"?zh(g,a):g}return n}var ma="vue-flow__node-desc",wa="vue-flow__edge-desc",$h="vue-flow__aria-live",Ca=["Enter"," ","Escape"],An={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function xr(e){return{...e.computedPosition||{x:0,y:0},width:e.dimensions.width||0,height:e.dimensions.height||0}}function Dr(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 Nr(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Lt(e,A=0,t=1){return Math.min(Math.max(e,A),t)}function va(e,A){return{x:Lt(e.x,A[0][0],A[1][0]),y:Lt(e.y,A[0][1],A[1][1])}}function ya(e){const A=e.getRootNode();return"elementFromPoint"in A?A:window.document}function gt(e){return e&&typeof e=="object"&&"id"in e&&"source"in e&&"target"in e}function Tt(e){return e&&typeof e=="object"&&"id"in e&&"position"in e&&!gt(e)}function On(e){return Tt(e)&&"computedPosition"in e}function Lr(e){return!Number.isNaN(e)&&Number.isFinite(e)}function Yh(e){return Lr(e.width)&&Lr(e.height)&&Lr(e.x)&&Lr(e.y)}function Wh(e,A,t){const n={id:e.id.toString(),type:e.type??"default",dimensions:(0,o.markRaw)({width:0,height:0}),computedPosition:(0,o.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,o.markRaw)(se(e.events)?e.events:{})};return Object.assign(A??n,e,{id:e.id.toString(),parentNode:t})}function Qa(e,A,t){var n,r;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:(r=e.targetHandle)==null?void 0:r.toString(),updatable:e.updatable??t?.updatable,selectable:e.selectable??t?.selectable,focusable:e.focusable??t?.focusable,data:se(e.data)?e.data:{},events:(0,o.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 Ea(e,A,t,n){const r=typeof e=="string"?e:e.id,a=new Set,u=n==="source"?"target":"source";for(const d of t)d[u]===r&&a.add(d[n]);return A.filter(d=>a.has(d.id))}function Jh(...e){if(e.length===3){const[r,a,u]=e;return Ea(r,a,u,"target")}const[A,t]=e,n=typeof A=="string"?A:A.id;return t.filter(r=>gt(r)&&r.source===n).map(r=>t.find(a=>Tt(a)&&a.id===r.target))}function Zh(...e){if(e.length===3){const[r,a,u]=e;return Ea(r,a,u,"source")}const[A,t]=e,n=typeof A=="string"?A:A.id;return t.filter(r=>gt(r)&&r.target===n).map(r=>t.find(a=>Tt(a)&&a.id===r.source))}function Fa({source:e,sourceHandle:A,target:t,targetHandle:n}){return`vueflow__edge-${e}${A??""}-${t}${n??""}`}function jh(e,A){return A.some(t=>gt(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 Kn({x:e,y:A},{x:t,y:n,zoom:r}){return{x:e*r+t,y:A*r+n}}function Rn({x:e,y:A},{x:t,y:n,zoom:r},a=!1,u=[1,1]){const d={x:(e-t)/r,y:(A-n)/r};return a?kr(d,u):d}function qh(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 Ua({x:e,y:A,width:t,height:n}){return{x:e,y:A,x2:e+t,y2:A+n}}function AB({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=qh(A,Ua({...n.computedPosition,...n.dimensions}))}return AB(A)}function Ha(e,A,t={x:0,y:0,zoom:1},n=!1,r=!1){const a={...Rn(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(r&&!g||B)continue;const v=Dr(a,xr(d)),y=w===null||m===null,I=n&&v>0,T=(w??0)*(m??0);(y||I||v>=T||d.dragging)&&u.push(d)}return u}function Ia(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 en(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 Pn(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function eB(e,A,t){if(typeof e=="string"||typeof e=="number"){const n=en(e,t),r=en(e,A);return{top:n,right:r,bottom:n,left:r,x:r*2,y:n*2}}if(typeof e=="object"){const n=en(e.top??e.y??0,t),r=en(e.bottom??e.y??0,t),a=en(e.left??e.x??0,A),u=en(e.right??e.x??0,A);return{top:n,right:u,bottom:r,left:a,x:a+u,y:n+r}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function tB(e,A,t,n,r,a){const{x:u,y:d}=Kn(e,{x:A,y:t,zoom:n}),{x:h,y:g}=Kn({x:e.x+e.width,y:e.y+e.height},{x:A,y:t,zoom:n}),B=r-h,w=a-g;return{left:Math.floor(u),top:Math.floor(d),right:Math.floor(B),bottom:Math.floor(w)}}function _a(e,A,t,n,r,a=.1){const u=eB(a,A,t),d=(A-u.x)/e.width,h=(t-u.y)/e.height,g=Lt(Math.min(d,h),n,r),B=e.x+e.width/2,w=e.y+e.height/2,m=A/2-B*g,v=t/2-w*g,y=tB(e,m,v,g,A,t),I={left:Math.min(y.left-u.left,0),top:Math.min(y.top-u.top,0),right:Math.min(y.right-u.right,0),bottom:Math.min(y.bottom-u.bottom,0)};return{x:m-I.left+I.right,y:v-I.top+I.bottom,zoom:g}}function nB(e,A){return{x:A.x+e.x,y:A.y+e.y,z:(e.z>A.z?e.z:A.z)+1}}function Sa(e,A){if(!e.parentNode)return!1;const t=A.get(e.parentNode);return t?t.selected?!0:Sa(t,A):!1}function Vn(e,A){return typeof e>"u"?"":typeof e=="string"?e:`${A?`${A}__`:""}${Object.keys(e).sort().map(t=>`${t}=${e[t]}`).join("&")}`}function xa(e){const A=e.ctrlKey&&Tr()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*A}function Da(e,A,t){return e<A?Lt(Math.abs(e-A),1,A)/A:e>t?-Lt(Math.abs(e-t),1,A)/A:0}function Na(e,A,t=15,n=40){return[Da(e.x,n,A.width-n)*t,Da(e.y,n,A.height-n)*t]}function gi(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 r={};if(typeof A.style=="function"?r={...A.style(A)}:A.style&&(r={...A.style}),r.width=r.width??`${A.dimensions.width}px`,r.height=r.height??`${A.dimensions.height}px`,t>0)if(typeof r.width=="string"){const a=Number(r.width.replace("px",""));r.width=`${a+t}px`}else r.width+=t;if(n>0)if(typeof r.height=="string"){const a=Number(r.height.replace("px",""));r.height=`${a+n}px`}else r.height+=n;if(e.position.x<0){const a=Math.abs(e.position.x);if(A.position.x=A.position.x-a,typeof r.width=="string"){const u=Number(r.width.replace("px",""));r.width=`${u+a}px`}else r.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 r.height=="string"){const u=Number(r.height.replace("px",""));r.height=`${u+a}px`}else r.height+=a;e.position.y=0}A.dimensions.width=Number(r.width.toString().replace("px","")),A.dimensions.height=Number(r.height.toString().replace("px","")),typeof A.style=="function"?A.style=a=>{const u=A.style;return{...u(a),...r}}:A.style={...A.style,...r}}}}function La(e,A){var t,n;const r=e.filter(u=>u.type==="add"||u.type==="remove");for(const u of r)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(On(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&&On(h)&&gi(u,h)}break;case"dimensions":if(On(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&&On(h)&&(h.dimensions.width&&h.dimensions.height?gi(u,h):(0,o.nextTick)(()=>{gi(u,h)}))}break}return A}function ht(e,A){return{id:e,type:"select",selected:A}}function Ta(e){return{item:e,type:"add"}}function ka(e){return{id:e,type:"remove"}}function Ma(e,A,t,n,r){return{id:e,source:A,target:t,sourceHandle:n||null,targetHandle:r||null,type:"remove"}}function Bt(e,A=new Set,t=!1){const n=[];for(const[r,a]of e){const u=A.has(r);!(a.selected===void 0&&!u)&&a.selected!==u&&(t&&(a.selected=u),n.push(ht(a.id,u)))}return n}var Oa=()=>{};function yA(e){const A=new Set;let t=Oa,n=()=>!1;const r=()=>A.size>0||n(),a=m=>{t=m},u=()=>{t=Oa},d=m=>{n=m},h=()=>{n=()=>!1},g=m=>{A.delete(m)};return{on:m=>{A.add(m);const v=()=>g(m);return Fn(v),{off:v}},off:g,trigger:m=>{const v=[t];return r()?v.push(...A):e&&v.push(e),Promise.allSettled(v.map(y=>y(m)))},hasListeners:r,listeners:A,setEmitter:a,removeEmitter:u,setHasEmitListeners:d,removeHasEmitListeners:h}}function Ka(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 rB(e,A,t,n){var r,a;const u=new Map;for(const[d,h]of e)(h.selected||h.id===n)&&(!h.parentNode||!Sa(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-((r=h.computedPosition)==null?void 0:r.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 hi({id:e,dragItems:A,findNode:t}){const n=[];for(const r of A){const a=t(r.id);a&&n.push(a)}return[e?n.find(r=>r.id===e):n[0],n]}function Ra(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 oB(e,A,t){const[n,r,a,u]=typeof e!="string"?Ra(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-r,t.computedPosition.y+t.dimensions.height-a]]:!1}function iB(e,A,t,n){let r=e.extent||t;if((r==="parent"||!Array.isArray(r)&&r?.range==="parent")&&!e.expandParent)if(e.parentNode&&n&&e.dimensions.width&&e.dimensions.height){const a=oB(r,e,n);a&&(r=a)}else A(new ce(ie.NODE_EXTENT_INVALID,e.id)),r=t;else if(Array.isArray(r)){const a=n?.computedPosition.x||0,u=n?.computedPosition.y||0;r=[[r[0][0]+a,r[0][1]+u],[r[1][0]+a,r[1][1]+u]]}else if(r!=="parent"&&r?.range&&Array.isArray(r.range)){const[a,u,d,h]=Ra(r.padding),g=n?.computedPosition.x||0,B=n?.computedPosition.y||0;r=[[r.range[0][0]+g+h,r.range[0][1]+B+a],[r.range[1][0]+g-u,r.range[1][1]+B-d]]}return r==="parent"?[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]]:r}function sB({width:e,height:A},t){return[t[0],[t[1][0]-(e||0),t[1][1]-(A||0)]]}function Bi(e,A,t,n,r){const a=va(A,sB(e.dimensions,iB(e,t,n,r)));return{position:{x:a.x-(r?.computedPosition.x||0),y:a.y-(r?.computedPosition.y||0)},computedPosition:a}}function tn(e,A,t=IA.Left,n=!1){const r=(A?.x??0)+e.computedPosition.x,a=(A?.y??0)+e.computedPosition.y,{width:u,height:d}=A??uB(e);if(n)return{x:r+u/2,y:a+d/2};switch(A?.position??t){case IA.Top:return{x:r+u/2,y:a};case IA.Right:return{x:r+u,y:a+d/2};case IA.Bottom:return{x:r+u/2,y:a+d};case IA.Left:return{x:r,y:a+d/2}}}function Va(e,A){return e&&(A?e.find(t=>t.id===A):e[0])||null}function aB({sourcePos:e,targetPos:A,sourceWidth:t,sourceHeight:n,targetWidth:r,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+r),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=Ua({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 lB(e,A,t=!1){const n=typeof e.zIndex=="number";let r=n?e.zIndex:0;const a=A(e.source),u=A(e.target);return!a||!u?0:(t&&(r=n?e.zIndex:Math.max(a.computedPosition.z||0,u.computedPosition.z||0)),r)}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||{}),Pa={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"},ce=class extends Error{constructor(e,...A){var t;super((t=Pa[e])==null?void 0:t.call(Pa,...A)),this.name="VueFlowError",this.code=e,this.args=A}};function mi(e){return"clientX"in e}function lB(e){return"sourceEvent"in e}function $e(e,A){const t=mi(e);let n,r;return t?(n=e.clientX,r=e.clientY):"touches"in e&&e.touches.length>0?(n=e.touches[0].clientX,r=e.touches[0].clientY):"changedTouches"in e&&e.changedTouches.length>0?(n=e.changedTouches[0].clientX,r=e.changedTouches[0].clientY):(n=0,r=0),{x:n-(A?.left??0),y:r-(A?.top??0)}}var Lr=()=>{var e;return typeof navigator<"u"&&((e=navigator?.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function cB(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 Tr(e,A=[1,1]){return{x:A[0]*Math.round(e.x/A[0]),y:A[1]*Math.round(e.y/A[1])}}var uB=()=>!0;function wi(e){e?.classList.remove("valid","connecting","vue-flow__handle-valid","vue-flow__handle-connecting")}function dB(e,A,t){const n=[],r={x:e.x-t,y:e.y-t,width:t*2,height:t*2};for(const a of A.values())xr(r,Sr(a))>0&&n.push(a);return n}var fB=250;function gB(e,A,t,n){var r,a;let u=[],d=Number.POSITIVE_INFINITY;const h=dB(e,t,A+fB);for(const g of h){const B=[...((r=g.handleBounds)==null?void 0:r.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}=tn(g,w,w.position,!0),y=Math.sqrt((m-e.x)**2+(v-e.y)**2);y>A||(y<d?(u=[{...w,x:m,y:v}],d=y):y===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 Ga(e,{handle:A,connectionMode:t,fromNodeId:n,fromHandleId:r,fromType:a,doc:u,lib:d,flowId:h,isValidConnection:g=uB},B,w,m,v){const y=a==="target",I=A?u.querySelector(`.${d}-flow__handle[data-id="${h}-${A?.nodeId}-${A?.id}-${A?.type}"]`):null,{x:T,y:D}=$e(e),V=u.elementFromPoint(T,D),b=V?.classList.contains(`${d}-flow__handle`)?V:I,K={handleDomNode:b,isValid:!1,connection:null,toHandle:null};if(b){const sA=za(void 0,b),W=b.getAttribute("data-nodeid"),cA=b.getAttribute("data-handleid"),lA=b.classList.contains("connectable"),oA=b.classList.contains("connectableend");if(!W||!sA)return K;const iA={source:y?W:n,sourceHandle:y?cA:r,target:y?n:W,targetHandle:y?r:cA};K.connection=iA,K.isValid=lA&&oA&&(t===nt.Strict?y&&sA==="source"||!y&&sA==="target":W!==n||cA!==r)&&g(iA,{nodes:w,edges:B,sourceNode:m(iA.source),targetNode:m(iA.target)}),K.toHandle=Xa(W,sA,cA,v,t,!0)}return K}function za(e,A){return e||(A?.classList.contains("target")?"target":A?.classList.contains("source")?"source":null)}function hB(e,A){let t=null;return A?t="valid":e&&!A&&(t="invalid"),t}function BB(e,A){let t=null;return A?t=!0:e&&!A&&(t=!1),t}function Xa(e,A,t,n,r,a=!1){var u,d,h;const g=n.get(e);if(!g)return null;const B=r===nt.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,...tn(g,w,w.position,!0)}:w}var Ci={[IA.Left]:IA.Right,[IA.Right]:IA.Left,[IA.Top]:IA.Bottom,[IA.Bottom]:IA.Top},pB=["production","prod"];function Pn(e,...A){$a()&&console.warn(`[Vue Flow]: ${e}`,...A)}function $a(){return!pB.includes(process.env.NODE_ENV||"")}function Ya(e,A,t,n,r){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:r,position:u.getAttribute("data-handlepos"),x:(d.left-t.left)/n,y:(d.top-t.top)/n,...Dr(u)}}):null}function vi(e,A,t,n,r,a=!1,u){r.value=!1,e.selected?(a||e.selected&&A)&&(n([e]),(0,o.nextTick)(()=>{u.blur()})):t([e])}function se(e){return typeof(0,o.unref)(e)<"u"}function mB(e,A,t,n){if(!e||!e.source||!e.target)return t(new ce(ie.EDGE_INVALID,e?.id??"[ID UNKNOWN]")),!1;let r;return ht(e)?r=e:r={...e,id:Fa(e)},r=Qa(r,void 0,n),Zh(r,A)?!1:r}function wB(e,A,t,n,r){if(!A.source||!A.target)return r(new ce(ie.EDGE_INVALID,e.id)),!1;if(!t)return r(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 Wa(e,A,t){const n={},r=[];for(let a=0;a<e.length;++a){const u=e[a];if(!kt(u)){t(new ce(ie.NODE_INVALID,u?.id));continue}const d=Yh(u,A(u.id),u.parentNode);u.parentNode&&(n[u.parentNode]=!0),r[a]=d}for(const a of r){const u=A(a.parentNode)||r.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 r}function Ja(e,A,t,n,r,a){let u=r;const d=n.get(u)||new Map;n.set(u,d.set(t,A)),u=`${r}-${e}`;const h=n.get(u)||new Map;if(n.set(u,h.set(t,A)),a){u=`${r}-${e}-${a}`;const g=n.get(u)||new Map;n.set(u,g.set(t,A))}}function yi(e,A,t){e.clear();for(const n of t){const{source:r,target:a,sourceHandle:u=null,targetHandle:d=null}=n,h={edgeId:n.id,source:r,target:a,sourceHandle:u,targetHandle:d},g=`${r}-${u}--${a}-${d}`;Ja("source",h,`${a}-${d}--${r}-${u}`,e,r,u),Ja("target",h,g,e,a,d)}}function Za(e,A){if(e.size!==A.size)return!1;for(const t of e)if(!A.has(t))return!1;return!0}function Qi(e,A,t,n,r,a,u,d){const h=[];for(const g of e){const B=ht(g)?g:mB(g,d,r,a);if(!B)continue;const w=t(B.source),m=t(B.target);if(!w||!m){r(new ce(ie.EDGE_SOURCE_TARGET_MISSING,B.id,B.source,B.target));continue}if(!w){r(new ce(ie.EDGE_SOURCE_MISSING,B.id,B.source));continue}if(!m){r(new ce(ie.EDGE_TARGET_MISSING,B.id,B.target));continue}if(A&&!A(B,{edges:d,nodes:u,sourceNode:w,targetNode:m})){r(new ce(ie.EDGE_INVALID,B.id));continue}const v=n(B.id);h.push({...Qa(B,v,a),sourceNode:w,targetNode:m})}return h}var ja=Symbol("vueFlow"),qa=Symbol("nodeId"),Al=Symbol("nodeRef"),CB=Symbol("edgeId"),vB=Symbol("edgeRef"),kr=Symbol("slots");function el(e){const{vueFlowRef:A,snapToGrid:t,snapGrid:n,noDragClassName:r,nodeLookup:a,nodeExtent:u,nodeDragThreshold:d,viewport:h,autoPanOnNodeDrag:g,autoPanSpeed:B,nodesDraggable:w,panBy:m,findNode:v,multiSelectionActive:y,nodesSelectionActive:I,selectNodesOnDrag:T,removeSelectedElements:D,addSelectedNodes:V,updateNodePositions:b,emits:K}=XA(),{onStart:sA,onDrag:W,onStop:cA,onClick:lA,el:oA,disabled:iA,id:AA,selectable:S,dragHandle:eA}=e,H=(0,o.shallowRef)(!1);let X=[],U,L=null,k={x:void 0,y:void 0},N={x:0,y:0},O=null,Y=!1,tA=!1,BA=0,HA=!1;const nA=EB(),Z=({x:fA,y:J})=>{k={x:fA,y:J};let _=!1;if(X=X.map(F=>{const x={x:fA-F.distance.x,y:J-F.distance.y},{computedPosition:G}=pi(F,t.value?Tr(x,n.value):x,K.error,u.value,F.parentNode?v(F.parentNode):void 0);return _=_||F.position.x!==G.x||F.position.y!==G.y,F.position=G,F}),tA=tA||_,!!_&&(b(X,!0,!0),H.value=!0,O)){const[F,x]=Bi({id:AA,dragItems:X,findNode:v});W({event:O,node:F,nodes:x})}},$=()=>{if(!L)return;const[fA,J]=Na(N,L,B.value);if(fA!==0||J!==0){const _={x:(k.x??0)-fA/h.value.zoom,y:(k.y??0)-J/h.value.zoom};m({x:fA,y:J})&&Z(_)}BA=requestAnimationFrame($)},uA=(fA,J)=>{Y=!0;const _=v(AA);!T.value&&!y.value&&_&&(_.selected||D()),_&&(0,o.toValue)(S)&&T.value&&vi(_,y.value,V,D,I,!1,J);const F=nA(fA.sourceEvent);if(k=F,X=nB(a.value,w.value,F,AA),X.length){const[x,G]=Bi({id:AA,dragItems:X,findNode:v});sA({event:fA.sourceEvent,node:x,nodes:G})}},wA=(fA,J)=>{var _;fA.sourceEvent.type==="touchmove"&&fA.sourceEvent.touches.length>1||(tA=!1,d.value===0&&uA(fA,J),k=nA(fA.sourceEvent),L=((_=A.value)==null?void 0:_.getBoundingClientRect())||null,N=$e(fA.sourceEvent,L))},QA=(fA,J)=>{const _=nA(fA.sourceEvent);if(!HA&&Y&&g.value&&(HA=!0,$()),!Y){const F=_.xSnapped-(k.x??0),x=_.ySnapped-(k.y??0);Math.sqrt(F*F+x*x)>d.value&&uA(fA,J)}(k.x!==_.xSnapped||k.y!==_.ySnapped)&&X.length&&Y&&(O=fA.sourceEvent,N=$e(fA.sourceEvent,L),Z(_))},SA=fA=>{let J=!1;if(!Y&&!H.value&&!y.value){const _=fA.sourceEvent,F=nA(_),x=F.xSnapped-(k.x??0),G=F.ySnapped-(k.y??0),P=Math.sqrt(x*x+G*G);P!==0&&P<=d.value&&(lA?.(_),J=!0)}if(X.length&&!J){tA&&(b(X,!1,!1),tA=!1);const[_,F]=Bi({id:AA,dragItems:X,findNode:v});cA({event:fA.sourceEvent,node:_,nodes:F})}X=[],H.value=!1,HA=!1,Y=!1,k={x:void 0,y:void 0},cancelAnimationFrame(BA)};return(0,o.watch)([()=>(0,o.toValue)(iA),oA],([fA,J],_,F)=>{if(J){const x=Te(J);fA||(U=$f().on("start",G=>wA(G,J)).on("drag",G=>QA(G,J)).on("end",G=>SA(G)).filter(G=>{const P=G.target,dA=(0,o.toValue)(eA);return!G.button&&(!r.value||!Ka(P,`.${r.value}`,J)&&(!dA||Ka(P,dA,J)))}),x.call(U)),F(()=>{x.on(".drag",null),U&&(U.on("start",null),U.on("drag",null),U.on("end",null))})}}),H}function yB(){return{doubleClick:yA(),click:yA(),mouseEnter:yA(),mouseMove:yA(),mouseLeave:yA(),contextMenu:yA(),updateStart:yA(),update:yA(),updateEnd:yA()}}function QB(e,A){const t=yB();return t.doubleClick.on(n=>{var r,a;A.edgeDoubleClick(n),(a=(r=e.events)==null?void 0:r.doubleClick)==null||a.call(r,n)}),t.click.on(n=>{var r,a;A.edgeClick(n),(a=(r=e.events)==null?void 0:r.click)==null||a.call(r,n)}),t.mouseEnter.on(n=>{var r,a;A.edgeMouseEnter(n),(a=(r=e.events)==null?void 0:r.mouseEnter)==null||a.call(r,n)}),t.mouseMove.on(n=>{var r,a;A.edgeMouseMove(n),(a=(r=e.events)==null?void 0:r.mouseMove)==null||a.call(r,n)}),t.mouseLeave.on(n=>{var r,a;A.edgeMouseLeave(n),(a=(r=e.events)==null?void 0:r.mouseLeave)==null||a.call(r,n)}),t.contextMenu.on(n=>{var r,a;A.edgeContextMenu(n),(a=(r=e.events)==null?void 0:r.contextMenu)==null||a.call(r,n)}),t.updateStart.on(n=>{var r,a;A.edgeUpdateStart(n),(a=(r=e.events)==null?void 0:r.updateStart)==null||a.call(r,n)}),t.update.on(n=>{var r,a;A.edgeUpdate(n),(a=(r=e.events)==null?void 0:r.update)==null||a.call(r,n)}),t.updateEnd.on(n=>{var r,a;A.edgeUpdateEnd(n),(a=(r=e.events)==null?void 0:r.updateEnd)==null||a.call(r,n)}),Object.entries(t).reduce((n,[r,a])=>(n.emit[r]=a.trigger,n.on[r]=a.on,n),{emit:{},on:{}})}function EB(){const{viewport:e,snapGrid:A,snapToGrid:t,vueFlowRef:n}=XA();return r=>{var a;const u=((a=n.value)==null?void 0:a.getBoundingClientRect())??{left:0,top:0},{x:d,y:h}=$e(lB(r)?r.sourceEvent:r,u),g=Rn({x:d,y:h},e.value),{x:B,y:w}=t.value?Tr(g,A.value):g;return{xSnapped:B,ySnapped:w,...g}}}function Mr(){return!0}function tl({handleId:e,nodeId:A,type:t,isValidConnection:n,edgeUpdaterType:r,onEdgeUpdate:a,onEdgeUpdateEnd:u}){const{id:d,vueFlowRef:h,connectionMode:g,connectionRadius:B,connectOnClick:w,connectionClickStartHandle:m,nodesConnectable:v,autoPanOnConnect:y,autoPanSpeed:I,findNode:T,panBy:D,startConnection:V,updateConnection:b,endConnection:K,emits:sA,viewport:W,edges:cA,nodes:lA,isValidConnection:oA,nodeLookup:iA}=XA();let AA=null,S=!1,eA=null;function H(U){var L;const k=(0,o.toValue)(t)==="target",N=mi(U),O=ya(U.target),Y=U.currentTarget;if(Y&&(N&&U.button===0||!N)){let tA=function(EA){_=$e(EA,SA),Z=gB(Rn(_,W.value,!1,[1,1]),B.value,iA.value,G),F||(x(),F=!0);const FA=Ga(EA,{handle:Z,connectionMode:g.value,fromNodeId:(0,o.toValue)(A),fromHandleId:(0,o.toValue)(e),fromType:k?"target":"source",isValidConnection:nA,doc:O,lib:"vue",flowId:d,nodeLookup:iA.value},cA.value,lA.value,T,iA.value);eA=FA.handleDomNode,AA=FA.connection,S=BB(!!Z,FA.isValid);const NA={...gA,isValid:S,to:FA.toHandle&&S?Kn({x:FA.toHandle.x,y:FA.toHandle.y},W.value):_,toHandle:FA.toHandle,toPosition:S&&FA.toHandle?FA.toHandle.position:Ci[G.position],toNode:FA.toHandle?iA.value.get(FA.toHandle.nodeId):null};if(S&&Z&&gA?.toHandle&&NA.toHandle&&gA.toHandle.type===NA.toHandle.type&&gA.toHandle.nodeId===NA.toHandle.nodeId&&gA.toHandle.id===NA.toHandle.id&&gA.to.x===NA.to.x&&gA.to.y===NA.to.y)return;const OA=Z??FA.toHandle;if(b(OA&&S?Kn({x:OA.x,y:OA.y},W.value):_,OA,hB(!!OA,S)),gA=NA,!Z&&!S&&!eA)return wi(J);AA&&AA.source!==AA.target&&eA&&(wi(J),J=eA,eA.classList.add("connecting","vue-flow__handle-connecting"),eA.classList.toggle("valid",!!S),eA.classList.toggle("vue-flow__handle-valid",!!S))},BA=function(EA){"touches"in EA&&EA.touches.length>0||((Z||eA)&&AA&&S&&(a?a(EA,AA):sA.connect(AA)),sA.connectEnd(EA),r&&u?.(EA),wi(J),cancelAnimationFrame($),K(EA),F=!1,S=!1,AA=null,eA=null,O.removeEventListener("mousemove",tA),O.removeEventListener("mouseup",BA),O.removeEventListener("touchmove",tA),O.removeEventListener("touchend",BA))};const HA=T((0,o.toValue)(A));let nA=(0,o.toValue)(n)||oA.value||Mr;!nA&&HA&&(nA=(k?HA.isValidSourcePos:HA.isValidTargetPos)||Mr);let Z,$=0;const{x:uA,y:wA}=$e(U),QA=za((0,o.toValue)(r),Y),SA=(L=h.value)==null?void 0:L.getBoundingClientRect();if(!SA||!QA)return;const fA=Xa((0,o.toValue)(A),QA,(0,o.toValue)(e),iA.value,g.value);if(!fA)return;let J,_=$e(U,SA),F=!1;const x=()=>{if(!y.value)return;const[EA,FA]=Na(_,SA,I.value);D({x:EA,y:FA}),$=requestAnimationFrame(x)},G={...fA,nodeId:(0,o.toValue)(A),type:QA,position:fA.position},P=iA.value.get((0,o.toValue)(A)),dA={inProgress:!0,isValid:null,from:tn(P,G,IA.Left,!0),fromHandle:G,fromPosition:G.position,fromNode:P,to:_,toHandle:null,toPosition:Ci[G.position],toNode:null};V({nodeId:(0,o.toValue)(A),id:(0,o.toValue)(e),type:QA,position:Y?.getAttribute("data-handlepos")||IA.Top,..._},{x:uA-SA.left,y:wA-SA.top}),sA.connectStart({event:U,nodeId:(0,o.toValue)(A),handleId:(0,o.toValue)(e),handleType:QA});let gA=dA;O.addEventListener("mousemove",tA),O.addEventListener("mouseup",BA),O.addEventListener("touchmove",tA),O.addEventListener("touchend",BA)}}function X(U){var L,k;if(!w.value)return;const N=(0,o.toValue)(t)==="target";if(!m.value){sA.clickConnectStart({event:U,nodeId:(0,o.toValue)(A),handleId:(0,o.toValue)(e)}),V({nodeId:(0,o.toValue)(A),type:(0,o.toValue)(t),id:(0,o.toValue)(e),position:IA.Top,...$e(U)},void 0,!0);return}let O=(0,o.toValue)(n)||oA.value||Mr;const Y=T((0,o.toValue)(A));if(!O&&Y&&(O=(N?Y.isValidSourcePos:Y.isValidTargetPos)||Mr),Y&&(typeof Y.connectable>"u"?v.value:Y.connectable)===!1)return;const tA=ya(U.target),BA=Ga(U,{handle:{nodeId:(0,o.toValue)(A),id:(0,o.toValue)(e),type:(0,o.toValue)(t),position:IA.Top,...$e(U)},connectionMode:g.value,fromNodeId:m.value.nodeId,fromHandleId:m.value.id??null,fromType:m.value.type,isValidConnection:O,doc:tA,lib:"vue",flowId:d,nodeLookup:iA.value},cA.value,lA.value,T,iA.value),HA=((L=BA.connection)==null?void 0:L.source)===((k=BA.connection)==null?void 0:k.target);BA.isValid&&BA.connection&&!HA&&sA.connect(BA.connection),sA.clickConnectEnd(U),K(U,!0)}return{handlePointerDown:H,handleClick:X}}function FB(){return(0,o.inject)(qa,"")}function nl(e){const A=e??FB()??"",t=(0,o.inject)(Al,(0,o.ref)(null)),{findNode:n,edges:r,emits:a}=XA(),u=n(A);return u||a.error(new ce(ie.NODE_NOT_FOUND,A)),{id:A,nodeEl:t,node:u,parentNode:(0,o.computed)(()=>n(u.parentNode)),connectedEdges:(0,o.computed)(()=>Ia([u],r.value))}}function UB(){return{doubleClick:yA(),click:yA(),mouseEnter:yA(),mouseMove:yA(),mouseLeave:yA(),contextMenu:yA(),dragStart:yA(),drag:yA(),dragStop:yA()}}function bB(e,A){const t=UB();return t.doubleClick.on(n=>{var r,a;A.nodeDoubleClick(n),(a=(r=e.events)==null?void 0:r.doubleClick)==null||a.call(r,n)}),t.click.on(n=>{var r,a;A.nodeClick(n),(a=(r=e.events)==null?void 0:r.click)==null||a.call(r,n)}),t.mouseEnter.on(n=>{var r,a;A.nodeMouseEnter(n),(a=(r=e.events)==null?void 0:r.mouseEnter)==null||a.call(r,n)}),t.mouseMove.on(n=>{var r,a;A.nodeMouseMove(n),(a=(r=e.events)==null?void 0:r.mouseMove)==null||a.call(r,n)}),t.mouseLeave.on(n=>{var r,a;A.nodeMouseLeave(n),(a=(r=e.events)==null?void 0:r.mouseLeave)==null||a.call(r,n)}),t.contextMenu.on(n=>{var r,a;A.nodeContextMenu(n),(a=(r=e.events)==null?void 0:r.contextMenu)==null||a.call(r,n)}),t.dragStart.on(n=>{var r,a;A.nodeDragStart(n),(a=(r=e.events)==null?void 0:r.dragStart)==null||a.call(r,n)}),t.drag.on(n=>{var r,a;A.nodeDrag(n),(a=(r=e.events)==null?void 0:r.drag)==null||a.call(r,n)}),t.dragStop.on(n=>{var r,a;A.nodeDragStop(n),(a=(r=e.events)==null?void 0:r.dragStop)==null||a.call(r,n)}),Object.entries(t).reduce((n,[r,a])=>(n.emit[r]=a.trigger,n.on[r]=a.on,n),{emit:{},on:{}})}function rl(){const{getSelectedNodes:e,nodeExtent:A,updateNodePositions:t,findNode:n,snapGrid:r,snapToGrid:a,nodesDraggable:u,emits:d}=XA();return(h,g=!1)=>{const B=a.value?r.value[0]:5,w=a.value?r.value[1]:5,m=g?4:1,v=h.x*B*m,y=h.y*w*m,I=[];for(const T of e.value)if(T.draggable||u&&typeof T.draggable>"u"){const{position:D}=pi(T,{x:T.computedPosition.x+v,y:T.computedPosition.y+y},d.error,A.value,T.parentNode?n(T.parentNode):void 0);I.push({id:T.id,position:D,from:T.position,distance:{x:h.x,y:h.y},dimensions:T.dimensions})}t(I,!0,!1)}}var Or=.1,HB=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2;function mt(){return Pn("Viewport not initialized yet."),Promise.resolve(!1)}var IB={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 _B(e){function A(n,r){return new Promise(a=>{e.d3Selection&&e.d3Zoom?e.d3Zoom.interpolate(r?.interpolate==="linear"?Sn:vr).scaleBy(Ei(e.d3Selection,r?.duration,r?.ease,()=>{a(!0)}),n):a(!1)})}function t(n,r,a,u){return new Promise(d=>{var h;const{x:g,y:B}=va({x:-n,y:-r},e.translateExtent),w=qt.translate(-g,-B).scale(a);e.d3Selection&&e.d3Zoom?(h=e.d3Zoom)==null||h.interpolate(u?.interpolate==="linear"?Sn:vr).transform(Ei(e.d3Selection,u?.duration,u?.ease,()=>{d(!0)}),w):d(!1)})}return(0,o.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,r)=>new Promise(a=>{e.d3Selection&&e.d3Zoom?e.d3Zoom.interpolate(r?.interpolate==="linear"?Sn:vr).scaleTo(Ei(e.d3Selection,r?.duration,r?.ease,()=>{a(!0)}),n):a(!1)}),setViewport:(n,r)=>t(n.x,n.y,n.zoom,r),setTransform:(n,r)=>t(n.x,n.y,n.zoom,r),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:Or,includeHiddenNodes:!1,duration:0})=>{var r,a;const u=[];for(const B of e.nodes)B.dimensions.width&&B.dimensions.height&&(n?.includeHiddenNodes||!B.hidden)&&(!((r=n.nodes)!=null&&r.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}=_a(ba(u),e.dimensions.width,e.dimensions.height,n.minZoom??e.minZoom,n.maxZoom??e.maxZoom,n.padding??Or);return t(d,h,g,n)},setCenter:(n,r,a)=>{const u=typeof a?.zoom<"u"?a.zoom:e.maxZoom;return t(e.dimensions.width/2-n*u,e.dimensions.height/2-r*u,u,a)},fitBounds:(n,r={padding:Or})=>{const{x:a,y:u,zoom:d}=_a(n,e.dimensions.width,e.dimensions.height,e.minZoom,e.maxZoom,r.padding??Or);return t(a,u,d,r)},project:n=>Rn(n,e.viewport,e.snapToGrid,e.snapGrid),screenToFlowCoordinate:n=>{if(e.vueFlowRef){const{x:r,y:a}=e.vueFlowRef.getBoundingClientRect();return Rn({x:n.x-r,y:n.y-a},e.viewport,e.snapToGrid,e.snapGrid)}return{x:0,y:0}},flowToScreenCoordinate:n=>{if(e.vueFlowRef){const{x:r,y:a}=e.vueFlowRef.getBoundingClientRect();return Kn({x:n.x+r,y:n.y+a},e.viewport)}return{x:0,y:0}}}:IB)}function Ei(e,A=0,t=HB,n=()=>{}){const r=typeof A=="number"&&A>0;return r||n(),r?e.transition().duration(A).ease(t).on("end",n):e}function SB(e,A,t){const n=(0,o.effectScope)(!0);return n.run(()=>{const r=()=>{n.run(()=>{let I,T,D=!!(t.nodes.value.length||t.edges.value.length);I=Yt([e.modelValue,()=>{var V,b;return(b=(V=e.modelValue)==null?void 0:V.value)==null?void 0:b.length}],([V])=>{V&&Array.isArray(V)&&(T?.pause(),t.setElements(V),!T&&!D&&V.length?D=!0:T?.resume())}),T=Yt([t.nodes,t.edges,()=>t.edges.value.length,()=>t.nodes.value.length],([V,b])=>{var K;(K=e.modelValue)!=null&&K.value&&Array.isArray(e.modelValue.value)&&(I?.pause(),e.modelValue.value=[...V,...b],(0,o.nextTick)(()=>{I?.resume()}))},{immediate:D}),(0,o.onScopeDispose)(()=>{I?.stop(),T?.stop()})})},a=()=>{n.run(()=>{let I,T,D=!!t.nodes.value.length;I=Yt([e.nodes,()=>{var V,b;return(b=(V=e.nodes)==null?void 0:V.value)==null?void 0:b.length}],([V])=>{V&&Array.isArray(V)&&(T?.pause(),t.setNodes(V),!T&&!D&&V.length?D=!0:T?.resume())}),T=Yt([t.nodes,()=>t.nodes.value.length],([V])=>{var b;(b=e.nodes)!=null&&b.value&&Array.isArray(e.nodes.value)&&(I?.pause(),e.nodes.value=[...V],(0,o.nextTick)(()=>{I?.resume()}))},{immediate:D}),(0,o.onScopeDispose)(()=>{I?.stop(),T?.stop()})})},u=()=>{n.run(()=>{let I,T,D=!!t.edges.value.length;I=Yt([e.edges,()=>{var V,b;return(b=(V=e.edges)==null?void 0:V.value)==null?void 0:b.length}],([V])=>{V&&Array.isArray(V)&&(T?.pause(),t.setEdges(V),!T&&!D&&V.length?D=!0:T?.resume())}),T=Yt([t.edges,()=>t.edges.value.length],([V])=>{var b;(b=e.edges)!=null&&b.value&&Array.isArray(e.edges.value)&&(I?.pause(),e.edges.value=[...V],(0,o.nextTick)(()=>{I?.resume()}))},{immediate:D}),(0,o.onScopeDispose)(()=>{I?.stop(),T?.stop()})})},d=()=>{n.run(()=>{(0,o.watch)(()=>A.maxZoom,()=>{A.maxZoom&&se(A.maxZoom)&&t.setMaxZoom(A.maxZoom)},{immediate:!0})})},h=()=>{n.run(()=>{(0,o.watch)(()=>A.minZoom,()=>{A.minZoom&&se(A.minZoom)&&t.setMinZoom(A.minZoom)},{immediate:!0})})},g=()=>{n.run(()=>{(0,o.watch)(()=>A.translateExtent,()=>{A.translateExtent&&se(A.translateExtent)&&t.setTranslateExtent(A.translateExtent)},{immediate:!0})})},B=()=>{n.run(()=>{(0,o.watch)(()=>A.nodeExtent,()=>{A.nodeExtent&&se(A.nodeExtent)&&t.setNodeExtent(A.nodeExtent)},{immediate:!0})})},w=()=>{n.run(()=>{(0,o.watch)(()=>A.applyDefault,()=>{se(A.applyDefault)&&(t.applyDefault.value=A.applyDefault)},{immediate:!0})})},m=()=>{n.run(()=>{const I=async T=>{let D=T;typeof A.autoConnect=="function"&&(D=await A.autoConnect(T)),D!==!1&&t.addEdges([D])};(0,o.watch)(()=>A.autoConnect,()=>{se(A.autoConnect)&&(t.autoConnect.value=A.autoConnect)},{immediate:!0}),(0,o.watch)(t.autoConnect,(T,D,V)=>{T?t.onConnect(I):t.hooks.value.connect.off(I),V(()=>{t.hooks.value.connect.off(I)})},{immediate:!0})})},v=()=>{const I=["id","modelValue","translateExtent","nodeExtent","edges","nodes","maxZoom","minZoom","applyDefault","autoConnect"];for(const T of Object.keys(A)){const D=T;if(!I.includes(D)){const V=(0,o.toRef)(()=>A[D]),b=t[D];(0,o.isRef)(b)&&n.run(()=>{(0,o.watch)(V,K=>{se(K)&&(b.value=K)},{immediate:!0})})}}};r(),a(),u(),h(),d(),g(),B(),w(),m(),v()}),()=>n.stop()}function xB(){return{edgesChange:yA(),nodesChange:yA(),nodeDoubleClick:yA(),nodeClick:yA(),nodeMouseEnter:yA(),nodeMouseMove:yA(),nodeMouseLeave:yA(),nodeContextMenu:yA(),nodeDragStart:yA(),nodeDrag:yA(),nodeDragStop:yA(),nodesInitialized:yA(),miniMapNodeClick:yA(),miniMapNodeDoubleClick:yA(),miniMapNodeMouseEnter:yA(),miniMapNodeMouseMove:yA(),miniMapNodeMouseLeave:yA(),connect:yA(),connectStart:yA(),connectEnd:yA(),clickConnectStart:yA(),clickConnectEnd:yA(),paneReady:yA(),init:yA(),move:yA(),moveStart:yA(),moveEnd:yA(),selectionDragStart:yA(),selectionDrag:yA(),selectionDragStop:yA(),selectionContextMenu:yA(),selectionStart:yA(),selectionEnd:yA(),viewportChangeStart:yA(),viewportChange:yA(),viewportChangeEnd:yA(),paneScroll:yA(),paneClick:yA(),paneContextMenu:yA(),paneMouseEnter:yA(),paneMouseMove:yA(),paneMouseLeave:yA(),edgeContextMenu:yA(),edgeMouseEnter:yA(),edgeMouseMove:yA(),edgeMouseLeave:yA(),edgeDoubleClick:yA(),edgeClick:yA(),edgeUpdateStart:yA(),edgeUpdate:yA(),edgeUpdateEnd:yA(),updateNodeInternals:yA(),error:yA(e=>Pn(e.message))}}function DB(e,A){const t=(0,o.getCurrentInstance)();(0,o.onBeforeMount)(()=>{for(const[r,a]of Object.entries(A.value)){const u=d=>{e(r,d)};a.setEmitter(u),Fn(a.removeEmitter),a.setHasEmitListeners(()=>n(r)),Fn(a.removeHasEmitListeners)}});function n(r){var a;const u=NB(r);return!!((a=t?.vnode.props)!=null&&a[u])}}function NB(e){const[A,...t]=e.split(":");return`on${A.replace(/(?:^|-)(\w)/g,(n,r)=>r.toUpperCase())}${t.length?`:${t.join(":")}`:""}`}function ol(){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:fi.Full,paneDragging:!1,preventScrolling:!0,zoomOnScroll:!0,zoomOnPinch:!0,zoomOnDoubleClick:!0,panOnScroll:!1,panOnScrollSpeed:.5,panOnScrollMode:kn.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:Lt.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:Lr()?"Meta":"Control",zoomActivationKeyCode:Lr()?"Meta":"Control",deleteKeyCode:"Backspace",panActivationKeyCode:"Space",hooks:xB(),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 LB=["id","vueFlowRef","viewportRef","initialized","modelValue","nodes","edges","maxZoom","minZoom","translateExtent","hooks","defaultEdgeOptions"];function TB(e,A,t){const n=_B(e),r=_=>{const F=_??[];e.hooks.updateNodeInternals.trigger(F)},a=_=>Jh(_,e.nodes,e.edges),u=_=>Wh(_,e.nodes,e.edges),d=_=>Ia(_,e.edges),h=({id:_,type:F,nodeId:x})=>{var G;const P=_?`-${F}-${_}`:`-${F}`;return Array.from(((G=e.connectionLookup.get(`${x}${P}`))==null?void 0:G.values())??[])},g=_=>{if(_)return A.value.get(_)},B=_=>{if(_)return t.value.get(_)},w=(_,F,x)=>{var G,P;const dA=[];for(const gA of _){const EA={id:gA.id,type:"position",dragging:x,from:gA.from};if(F&&(EA.position=gA.position,gA.parentNode)){const FA=g(gA.parentNode);EA.position={x:EA.position.x-(((G=FA?.computedPosition)==null?void 0:G.x)??0),y:EA.position.y-(((P=FA?.computedPosition)==null?void 0:P.y)??0)}}dA.push(EA)}dA?.length&&e.hooks.nodesChange.trigger(dA)},m=_=>{if(!e.vueFlowRef)return;const F=e.vueFlowRef.querySelector(".vue-flow__transformationpane");if(!F)return;const x=window.getComputedStyle(F),{m22:G}=new window.DOMMatrixReadOnly(x.transform),P=[];for(const dA of _){const gA=dA,EA=g(gA.id);if(EA){const FA=Dr(gA.nodeElement);if(FA.width&&FA.height&&(EA.dimensions.width!==FA.width||EA.dimensions.height!==FA.height||gA.forceUpdate)){const NA=gA.nodeElement.getBoundingClientRect();EA.dimensions=FA,EA.handleBounds.source=Ya("source",gA.nodeElement,NA,G,EA.id),EA.handleBounds.target=Ya("target",gA.nodeElement,NA,G,EA.id),P.push({id:EA.id,type:"dimensions",dimensions:FA})}}}!e.fitViewOnInitDone&&e.fitViewOnInit&&n.value.fitView().then(()=>{e.fitViewOnInitDone=!0}),P.length&&e.hooks.nodesChange.trigger(P)},v=(_,F)=>{const x=new Set,G=new Set;for(const gA of _)kt(gA)?x.add(gA.id):ht(gA)&&G.add(gA.id);const P=pt(A.value,x,!0),dA=pt(t.value,G);if(e.multiSelectionActive){for(const gA of x)P.push(Bt(gA,F));for(const gA of G)dA.push(Bt(gA,F))}P.length&&e.hooks.nodesChange.trigger(P),dA.length&&e.hooks.edgesChange.trigger(dA)},y=_=>{if(e.multiSelectionActive){const F=_.map(x=>Bt(x.id,!0));e.hooks.nodesChange.trigger(F);return}e.hooks.nodesChange.trigger(pt(A.value,new Set(_.map(F=>F.id)),!0)),e.hooks.edgesChange.trigger(pt(t.value))},I=_=>{if(e.multiSelectionActive){const F=_.map(x=>Bt(x.id,!0));e.hooks.edgesChange.trigger(F);return}e.hooks.edgesChange.trigger(pt(t.value,new Set(_.map(F=>F.id)))),e.hooks.nodesChange.trigger(pt(A.value,new Set,!0))},T=_=>{v(_,!0)},D=_=>{const F=(_||e.nodes).map(x=>(x.selected=!1,Bt(x.id,!1)));e.hooks.nodesChange.trigger(F)},V=_=>{const F=(_||e.edges).map(x=>(x.selected=!1,Bt(x.id,!1)));e.hooks.edgesChange.trigger(F)},b=_=>{if(!_||!_.length)return v([],!1);const F=_.reduce((x,G)=>{const P=Bt(G.id,!1);return kt(G)?x.nodes.push(P):x.edges.push(P),x},{nodes:[],edges:[]});F.nodes.length&&e.hooks.nodesChange.trigger(F.nodes),F.edges.length&&e.hooks.edgesChange.trigger(F.edges)},K=_=>{var F;(F=e.d3Zoom)==null||F.scaleExtent([_,e.maxZoom]),e.minZoom=_},sA=_=>{var F;(F=e.d3Zoom)==null||F.scaleExtent([e.minZoom,_]),e.maxZoom=_},W=_=>{var F;(F=e.d3Zoom)==null||F.translateExtent(_),e.translateExtent=_},cA=_=>{e.nodeExtent=_,r()},lA=_=>{var F;(F=e.d3Zoom)==null||F.clickDistance(_)},oA=_=>{e.nodesDraggable=_,e.nodesConnectable=_,e.elementsSelectable=_},iA=_=>{const F=_ instanceof Function?_(e.nodes):_;!e.initialized&&!F.length||(e.nodes=Wa(F,g,e.hooks.error.trigger))},AA=_=>{const F=_ instanceof Function?_(e.edges):_;if(!e.initialized&&!F.length)return;const x=Qi(F,e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);yi(e.connectionLookup,t.value,x),e.edges=x},S=_=>{const F=_ instanceof Function?_([...e.nodes,...e.edges]):_;!e.initialized&&!F.length||(iA(F.filter(kt)),AA(F.filter(ht)))},eA=_=>{let F=_ instanceof Function?_(e.nodes):_;F=Array.isArray(F)?F:[F];const x=Wa(F,g,e.hooks.error.trigger),G=[];for(const P of x)G.push(Ta(P));G.length&&e.hooks.nodesChange.trigger(G)},H=_=>{let F=_ instanceof Function?_(e.edges):_;F=Array.isArray(F)?F:[F];const x=Qi(F,e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges),G=[];for(const P of x)G.push(Ta(P));G.length&&e.hooks.edgesChange.trigger(G)},X=(_,F=!0,x=!1)=>{const G=_ instanceof Function?_(e.nodes):_,P=Array.isArray(G)?G:[G],dA=[],gA=[];function EA(NA){const OA=d(NA);for(const KA of OA)(!se(KA.deletable)||KA.deletable)&&gA.push(Ma(KA.id,KA.source,KA.target,KA.sourceHandle,KA.targetHandle))}function FA(NA){const OA=[];for(const KA of e.nodes)KA.parentNode===NA&&OA.push(KA);if(OA.length){for(const KA of OA)dA.push(ka(KA.id));F&&EA(OA);for(const KA of OA)FA(KA.id)}}for(const NA of P){const OA=typeof NA=="string"?g(NA):NA;OA&&(se(OA.deletable)&&!OA.deletable||(dA.push(ka(OA.id)),F&&EA([OA]),x&&FA(OA.id)))}gA.length&&e.hooks.edgesChange.trigger(gA),dA.length&&e.hooks.nodesChange.trigger(dA)},U=_=>{const F=_ instanceof Function?_(e.edges):_,x=Array.isArray(F)?F:[F],G=[];for(const P of x){const dA=typeof P=="string"?B(P):P;dA&&(se(dA.deletable)&&!dA.deletable||G.push(Ma(typeof P=="string"?P:P.id,dA.source,dA.target,dA.sourceHandle,dA.targetHandle)))}e.hooks.edgesChange.trigger(G)},L=(_,F,x=!0)=>{const G=B(_.id);if(!G)return!1;const P=e.edges.indexOf(G),dA=wB(_,F,G,x,e.hooks.error.trigger);if(dA){const[gA]=Qi([dA],e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);return e.edges=e.edges.map((EA,FA)=>FA===P?gA:EA),yi(e.connectionLookup,t.value,[gA]),gA}return!1},k=(_,F,x={replace:!1})=>{const G=B(_);if(!G)return;const P=typeof F=="function"?F(G):F;G.data=x.replace?P:{...G.data,...P}},N=_=>La(_,e.nodes),O=_=>{const F=La(_,e.edges);return yi(e.connectionLookup,t.value,F),F},Y=(_,F,x={replace:!1})=>{const G=g(_);if(!G)return;const P=typeof F=="function"?F(G):F;x.replace?e.nodes.splice(e.nodes.indexOf(G),1,P):Object.assign(G,P)},tA=(_,F,x={replace:!1})=>{const G=g(_);if(!G)return;const P=typeof F=="function"?F(G):F;G.data=x.replace?P:{...G.data,...P}},BA=(_,F,x=!1)=>{x?e.connectionClickStartHandle=_:e.connectionStartHandle=_,e.connectionEndHandle=null,e.connectionStatus=null,F&&(e.connectionPosition=F)},HA=(_,F=null,x=null)=>{e.connectionStartHandle&&(e.connectionPosition=_,e.connectionEndHandle=F,e.connectionStatus=x)},nA=(_,F)=>{e.connectionPosition={x:NaN,y:NaN},e.connectionEndHandle=null,e.connectionStatus=null,F?e.connectionClickStartHandle=null:e.connectionStartHandle=null},Z=_=>{const F=$h(_),x=F?null:On(_)?_:g(_.id);return!F&&!x?[null,null,F]:[F?_:Sr(x),x,F]},$=(_,F=!0,x=e.nodes)=>{const[G,P,dA]=Z(_);if(!G)return[];const gA=[];for(const EA of x||e.nodes){if(!dA&&(EA.id===P.id||!EA.computedPosition))continue;const FA=Sr(EA),NA=xr(FA,G);(F&&NA>0||NA>=FA.width*FA.height||NA>=Number(G.width)*Number(G.height))&&gA.push(EA)}return gA},uA=(_,F,x=!0)=>{const[G]=Z(_);if(!G)return!1;const P=xr(G,F);return x&&P>0||P>=Number(G.width)*Number(G.height)},wA=_=>{const{viewport:F,dimensions:x,d3Zoom:G,d3Selection:P,translateExtent:dA}=e;if(!G||!P||!_.x&&!_.y)return!1;const gA=qt.translate(F.x+_.x,F.y+_.y).scale(F.zoom),EA=[[0,0],[x.width,x.height]],FA=G.constrain()(gA,EA,dA),NA=e.viewport.x!==FA.x||e.viewport.y!==FA.y||e.viewport.zoom!==FA.k;return G.transform(P,FA),NA},QA=_=>{const F=_ instanceof Function?_(e):_,x=["d3Zoom","d3Selection","d3ZoomHandler","viewportRef","vueFlowRef","dimensions","hooks"];se(F.defaultEdgeOptions)&&(e.defaultEdgeOptions=F.defaultEdgeOptions);const G=F.modelValue||F.nodes||F.edges?[]:void 0;G&&(F.modelValue&&G.push(...F.modelValue),F.nodes&&G.push(...F.nodes),F.edges&&G.push(...F.edges),S(G));const P=()=>{se(F.maxZoom)&&sA(F.maxZoom),se(F.minZoom)&&K(F.minZoom),se(F.translateExtent)&&W(F.translateExtent)};for(const dA of Object.keys(F)){const gA=dA,EA=F[gA];![...LB,...x].includes(gA)&&se(EA)&&(e[gA]=EA)}Xo(()=>e.d3Zoom).not.toBeNull().then(P),e.initialized||(e.initialized=!0)};return{updateNodePositions:w,updateNodeDimensions:m,setElements:S,setNodes:iA,setEdges:AA,addNodes:eA,addEdges:H,removeNodes:X,removeEdges:U,findNode:g,findEdge:B,updateEdge:L,updateEdgeData:k,updateNode:Y,updateNodeData:tA,applyEdgeChanges:O,applyNodeChanges:N,addSelectedElements:T,addSelectedNodes:y,addSelectedEdges:I,setMinZoom:K,setMaxZoom:sA,setTranslateExtent:W,setNodeExtent:cA,setPaneClickDistance:lA,removeSelectedElements:b,removeSelectedNodes:D,removeSelectedEdges:V,startConnection:BA,updateConnection:HA,endConnection:nA,setInteractive:oA,setState:QA,getIntersectingNodes:$,getIncomers:a,getOutgoers:u,getConnectedEdges:d,getHandleConnections:h,isNodeIntersecting:uA,panBy:wA,fitView:_=>n.value.fitView(_),zoomIn:_=>n.value.zoomIn(_),zoomOut:_=>n.value.zoomOut(_),zoomTo:(_,F)=>n.value.zoomTo(_,F),setViewport:(_,F)=>n.value.setViewport(_,F),setTransform:(_,F)=>n.value.setTransform(_,F),getViewport:()=>n.value.getViewport(),getTransform:()=>n.value.getTransform(),setCenter:(_,F,x)=>n.value.setCenter(_,F,x),fitBounds:(_,F)=>n.value.fitBounds(_,F),project:_=>n.value.project(_),screenToFlowCoordinate:_=>n.value.screenToFlowCoordinate(_),flowToScreenCoordinate:_=>n.value.flowToScreenCoordinate(_),toObject:()=>{const _=[],F=[];for(const x of e.nodes){const{computedPosition:G,handleBounds:P,selected:dA,dimensions:gA,isParent:EA,resizing:FA,dragging:NA,events:OA,...KA}=x;_.push(KA)}for(const x of e.edges){const{selected:G,sourceNode:P,targetNode:dA,events:gA,...EA}=x;F.push(EA)}return JSON.parse(JSON.stringify({nodes:_,edges:F,position:[e.viewport.x,e.viewport.y],zoom:e.viewport.zoom,viewport:e.viewport}))},fromObject:_=>new Promise(F=>{const{nodes:x,edges:G,position:P,zoom:dA,viewport:gA}=_;x&&iA(x),G&&AA(G);const[EA,FA]=gA?.x&&gA?.y?[gA.x,gA.y]:P??[null,null];if(EA&&FA){const NA=gA?.zoom||dA||e.viewport.zoom;return Xo(()=>n.value.viewportInitialized).toBe(!0).then(()=>{n.value.setViewport({x:EA,y:FA,zoom:NA}).then(()=>{F(!0)})})}else F(!0)}),updateNodeInternals:r,viewportHelper:n,$reset:()=>{const _=ol();if(e.edges=[],e.nodes=[],e.d3Zoom&&e.d3Selection){const F=qt.translate(_.defaultViewport.x??0,_.defaultViewport.y??0).scale(Tt(_.defaultViewport.zoom??1,_.minZoom,_.maxZoom)),x=e.viewportRef.getBoundingClientRect(),G=[[0,0],[x.width,x.height]],P=e.d3Zoom.constrain()(F,G,_.translateExtent);e.d3Zoom.transform(e.d3Selection,P)}QA(_)},$destroy:()=>{}}}var kB=["data-id","data-handleid","data-nodeid","data-handlepos"],nn=(0,o.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,o.createPropsRestProxy)(e,["position","connectable","connectableStart","connectableEnd","id"]),n=(0,o.toRef)(()=>t.type??"source"),r=(0,o.toRef)(()=>t.isValidConnection??null),{id:a,connectionStartHandle:u,connectionClickStartHandle:d,connectionEndHandle:h,vueFlowRef:g,nodesConnectable:B,noDragClassName:w,noPanClassName:m}=XA(),{id:v,node:y,nodeEl:I,connectedEdges:T}=nl(),D=(0,o.ref)(),V=(0,o.toRef)(()=>typeof e.connectableStart<"u"?e.connectableStart:!0),b=(0,o.toRef)(()=>typeof e.connectableEnd<"u"?e.connectableEnd:!0),K=(0,o.toRef)(()=>{var AA,S,eA,H,X,U;return((AA=u.value)==null?void 0:AA.nodeId)===v&&((S=u.value)==null?void 0:S.id)===e.id&&((eA=u.value)==null?void 0:eA.type)===n.value||((H=h.value)==null?void 0:H.nodeId)===v&&((X=h.value)==null?void 0:X.id)===e.id&&((U=h.value)==null?void 0:U.type)===n.value}),sA=(0,o.toRef)(()=>{var AA,S,eA;return((AA=d.value)==null?void 0:AA.nodeId)===v&&((S=d.value)==null?void 0:S.id)===e.id&&((eA=d.value)==null?void 0:eA.type)===n.value}),{handlePointerDown:W,handleClick:cA}=tl({nodeId:v,handleId:e.id,isValidConnection:r,type:n}),lA=(0,o.computed)(()=>typeof e.connectable=="string"&&e.connectable==="single"?!T.value.some(AA=>{const S=AA[`${n.value}Handle`];return AA[n.value]!==v?!1:S?S===e.id:!0}):typeof e.connectable=="number"?T.value.filter(AA=>{const S=AA[`${n.value}Handle`];return AA[n.value]!==v?!1:S?S===e.id:!0}).length<e.connectable:typeof e.connectable=="function"?e.connectable(y,T.value):se(e.connectable)?e.connectable:B.value);(0,o.onMounted)(()=>{var AA;if(!y.dimensions.width||!y.dimensions.height)return;const S=(AA=y.handleBounds[n.value])==null?void 0:AA.find(N=>N.id===e.id);if(!g.value||S)return;const eA=g.value.querySelector(".vue-flow__transformationpane");if(!I.value||!D.value||!eA||!e.id)return;const H=I.value.getBoundingClientRect(),X=D.value.getBoundingClientRect(),U=window.getComputedStyle(eA),{m22:L}=new window.DOMMatrixReadOnly(U.transform),k={id:e.id,position:e.position,x:(X.left-H.left)/L,y:(X.top-H.top)/L,type:n.value,nodeId:v,...Dr(D.value)};y.handleBounds[n.value]=[...y.handleBounds[n.value]??[],k]});function oA(AA){const S=mi(AA);lA.value&&V.value&&(S&&AA.button===0||!S)&&W(AA)}function iA(AA){!v||!d.value&&!V.value||lA.value&&cA(AA)}return A({handleClick:cA,handlePointerDown:W,onClick:iA,onPointerDown:oA}),(AA,S)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{ref_key:"handle",ref:D,"data-id":`${(0,o.unref)(a)}-${(0,o.unref)(v)}-${e.id}-${n.value}`,"data-handleid":e.id,"data-nodeid":(0,o.unref)(v),"data-handlepos":AA.position,class:(0,o.normalizeClass)(["vue-flow__handle",[`vue-flow__handle-${AA.position}`,`vue-flow__handle-${e.id}`,(0,o.unref)(w),(0,o.unref)(m),n.value,{connectable:lA.value,connecting:sA.value,connectablestart:V.value,connectableend:b.value,connectionindicator:lA.value&&(V.value&&!K.value||b.value&&K.value)}]]),onMousedown:oA,onTouchstartPassive:oA,onClick:iA},[(0,o.renderSlot)(AA.$slots,"default",{id:AA.id})],42,kB))}}),Kr=function({sourcePosition:e=IA.Bottom,targetPosition:A=IA.Top,label:t,connectable:n=!0,isValidTargetPos:r,isValidSourcePos:a,data:u}){const d=u.label??t;return[(0,o.h)(nn,{type:"target",position:A,connectable:n,isValidConnection:r}),typeof d!="string"&&d?(0,o.h)(d):(0,o.h)(o.Fragment,[d]),(0,o.h)(nn,{type:"source",position:e,connectable:n,isValidConnection:a})]};Kr.props=["sourcePosition","targetPosition","label","isValidTargetPos","isValidSourcePos","connectable","data"],Kr.inheritAttrs=!1,Kr.compatConfig={MODE:3};var MB=Kr,Rr=function({targetPosition:e=IA.Top,label:A,connectable:t=!0,isValidTargetPos:n,data:r}){const a=r.label??A;return[(0,o.h)(nn,{type:"target",position:e,connectable:t,isValidConnection:n}),typeof a!="string"&&a?(0,o.h)(a):(0,o.h)(o.Fragment,[a])]};Rr.props=["targetPosition","label","isValidTargetPos","connectable","data"],Rr.inheritAttrs=!1,Rr.compatConfig={MODE:3};var OB=Rr,Vr=function({sourcePosition:e=IA.Bottom,label:A,connectable:t=!0,isValidSourcePos:n,data:r}){const a=r.label??A;return[typeof a!="string"&&a?(0,o.h)(a):(0,o.h)(o.Fragment,[a]),(0,o.h)(nn,{type:"source",position:e,connectable:t,isValidConnection:n})]};Vr.props=["sourcePosition","label","isValidSourcePos","connectable","data"],Vr.inheritAttrs=!1,Vr.compatConfig={MODE:3};var KB=Vr,RB=["transform"],VB=["width","height","x","y","rx","ry"],PB=["y"],GB=(0,o.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,o.ref)({x:0,y:0,width:0,height:0}),t=(0,o.ref)(null),n=(0,o.computed)(()=>`translate(${e.x-A.value.width/2} ${e.y-A.value.height/2})`);(0,o.onMounted)(r),(0,o.watch)([()=>e.x,()=>e.y,t,()=>e.label],r);function r(){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,o.openBlock)(),(0,o.createElementBlock)("g",{transform:n.value,class:"vue-flow__edge-textwrapper"},[a.labelShowBg?((0,o.openBlock)(),(0,o.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,o.normalizeStyle)(a.labelBgStyle),rx:a.labelBgBorderRadius,ry:a.labelBgBorderRadius},null,12,VB)):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("text",(0,o.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,o.renderSlot)(a.$slots,"default",{},()=>[typeof a.label!="string"?((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(a.label),{key:0})):((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:1},[(0,o.createTextVNode)((0,o.toDisplayString)(a.label),1)],64))])],16,PB)],8,RB))}}),zB=["id","d","marker-end","marker-start"],XB=["d","stroke-width"],Gn=(0,o.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,o.ref)(null),n=(0,o.ref)(null),r=(0,o.ref)(null),a=(0,o.useAttrs)();return A({pathEl:t,interactionEl:n,labelEl:r}),(u,d)=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[(0,o.createElementVNode)("path",(0,o.mergeProps)((0,o.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,zB),u.interactionWidth?((0,o.openBlock)(),(0,o.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,XB)):(0,o.createCommentVNode)("",!0),u.label&&u.labelX&&u.labelY?((0,o.openBlock)(),(0,o.createBlock)(GB,{key:1,ref_key:"labelEl",ref:r,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,o.createCommentVNode)("",!0)],64))}});function il({sourceX:e,sourceY:A,targetX:t,targetY:n}){const r=Math.abs(t-e)/2,a=t<e?t+r:t-r,u=Math.abs(n-A)/2;return[a,n<A?n+u:n-u,r,u]}function sl({sourceX:e,sourceY:A,targetX:t,targetY:n,sourceControlX:r,sourceControlY:a,targetControlX:u,targetControlY:d}){const h=e*.125+r*.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 Pr(e,A){return e>=0?.5*e:A*25*Math.sqrt(-e)}function al({pos:e,x1:A,y1:t,x2:n,y2:r,c:a}){let u,d;switch(e){case IA.Left:u=A-Pr(A-n,a),d=t;break;case IA.Right:u=A+Pr(n-A,a),d=t;break;case IA.Top:u=A,d=t-Pr(t-r,a);break;case IA.Bottom:u=A,d=t+Pr(r-t,a);break}return[u,d]}function Fi(e){const{sourceX:A,sourceY:t,sourcePosition:n=IA.Bottom,targetX:r,targetY:a,targetPosition:u=IA.Top,curvature:d=.25}=e,[h,g]=al({pos:n,x1:A,y1:t,x2:r,y2:a,c:d}),[B,w]=al({pos:u,x1:r,y1:a,x2:A,y2:t,c:d}),[m,v,y,I]=sl({sourceX:A,sourceY:t,targetX:r,targetY:a,sourceControlX:h,sourceControlY:g,targetControlX:B,targetControlY:w});return[`M${A},${t} C${h},${g} ${B},${w} ${r},${a}`,m,v,y,I]}function ll({pos:e,x1:A,y1:t,x2:n,y2:r}){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+r);break}return[a,u]}function cl(e){const{sourceX:A,sourceY:t,sourcePosition:n=IA.Bottom,targetX:r,targetY:a,targetPosition:u=IA.Top}=e,[d,h]=ll({pos:n,x1:A,y1:t,x2:r,y2:a}),[g,B]=ll({pos:u,x1:r,y1:a,x2:A,y2:t}),[w,m,v,y]=sl({sourceX:A,sourceY:t,targetX:r,targetY:a,sourceControlX:d,sourceControlY:h,targetControlX:g,targetControlY:B});return[`M${A},${t} C${d},${h} ${g},${B} ${r},${a}`,w,m,v,y]}var ul={[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 $B({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 dl(e,A){return Math.sqrt((A.x-e.x)**2+(A.y-e.y)**2)}function YB({source:e,sourcePosition:A=IA.Bottom,target:t,targetPosition:n=IA.Top,center:r,offset:a}){const u=ul[A],d=ul[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=$B({source:h,sourcePosition:A,target:g}),w=B.x!==0?"x":"y",m=B[w];let v,y,I;const T={x:0,y:0},D={x:0,y:0},[V,b,K,sA]=il({sourceX:e.x,sourceY:e.y,targetX:t.x,targetY:t.y});if(u[w]*d[w]===-1){y=r.x??V,I=r.y??b;const W=[{x:y,y:h.y},{x:y,y:g.y}],cA=[{x:h.x,y:I},{x:g.x,y:I}];u[w]===m?v=w==="x"?W:cA:v=w==="x"?cA:W}else{const W=[{x:h.x,y:g.y}],cA=[{x:g.x,y:h.y}];if(w==="x"?v=u.x===m?cA:W:v=u.y===m?W:cA,A===n){const iA=Math.abs(e[w]-t[w]);if(iA<=a){const AA=Math.min(a-1,a-iA);u[w]===m?T[w]=(h[w]>e[w]?-1:1)*AA:D[w]=(g[w]>t[w]?-1:1)*AA}}if(A!==n){const iA=w==="x"?"y":"x",AA=u[w]===d[iA],S=h[iA]>g[iA],eA=h[iA]<g[iA];(u[w]===1&&(!AA&&S||AA&&eA)||u[w]!==1&&(!AA&&eA||AA&&S))&&(v=w==="x"?W:cA)}const lA={x:h.x+T.x,y:h.y+T.y},oA={x:g.x+D.x,y:g.y+D.y};Math.max(Math.abs(lA.x-v[0].x),Math.abs(oA.x-v[0].x))>=Math.max(Math.abs(lA.y-v[0].y),Math.abs(oA.y-v[0].y))?(y=(lA.x+oA.x)/2,I=v[0].y):(y=v[0].x,I=(lA.y+oA.y)/2)}return[[e,{x:h.x+T.x,y:h.y+T.y},...v,{x:g.x+D.x,y:g.y+D.y},t],y,I,K,sA]}function WB(e,A,t,n){const r=Math.min(dl(e,A)/2,dl(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+r*h},${u}Q ${a},${u} ${a},${u+r*g}`}const d=e.x<t.x?1:-1;return`L ${a},${u+r*(e.y<t.y?-1:1)}Q ${a},${u} ${a+r*d},${u}`}function Ui(e){const{sourceX:A,sourceY:t,sourcePosition:n=IA.Bottom,targetX:r,targetY:a,targetPosition:u=IA.Top,borderRadius:d=5,centerX:h,centerY:g,offset:B=20}=e,[w,m,v,y,I]=YB({source:{x:A,y:t},sourcePosition:n,target:{x:r,y:a},targetPosition:u,center:{x:h,y:g},offset:B});return[w.reduce((T,D,V)=>{let b;return V>0&&V<w.length-1?b=WB(w[V-1],D,w[V+1],d):b=`${V===0?"M":"L"}${D.x} ${D.y}`,T+=b,T},""),m,v,y,I]}function JB(e){const{sourceX:A,sourceY:t,targetX:n,targetY:r}=e,[a,u,d,h]=il({sourceX:A,sourceY:t,targetX:n,targetY:r});return[`M ${A},${t}L ${n},${r}`,a,u,d,h]}var ZB=(0,o.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,r]=JB(e);return(0,o.h)(Gn,{path:t,labelX:n,labelY:r,...A,...e})}}}),fl=(0,o.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,r]=Ui({...e,sourcePosition:e.sourcePosition??IA.Bottom,targetPosition:e.targetPosition??IA.Top});return(0,o.h)(Gn,{path:t,labelX:n,labelY:r,...A,...e})}}}),jB=(0,o.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,o.h)(fl,{...e,...A,borderRadius:0})}}),qB=(0,o.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,r]=Fi({...e,sourcePosition:e.sourcePosition??IA.Bottom,targetPosition:e.targetPosition??IA.Top});return(0,o.h)(Gn,{path:t,labelX:n,labelY:r,...A,...e})}}}),Ap=(0,o.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,r]=cl({...e,sourcePosition:e.sourcePosition??IA.Bottom,targetPosition:e.targetPosition??IA.Top});return(0,o.h)(Gn,{path:t,labelX:n,labelY:r,...A,...e})}}}),ep={input:KB,default:MB,output:OB},tp={default:qB,straight:ZB,step:jB,smoothstep:fl,simplebezier:Ap};function np(e,A,t){const n=(0,o.computed)(()=>y=>A.value.get(y)),r=(0,o.computed)(()=>y=>t.value.get(y)),a=(0,o.computed)(()=>{const y={...tp,...e.edgeTypes},I=Object.keys(y);for(const T of e.edges)T.type&&!I.includes(T.type)&&(y[T.type]=T.type);return y}),u=(0,o.computed)(()=>{const y={...ep,...e.nodeTypes},I=Object.keys(y);for(const T of e.nodes)T.type&&!I.includes(T.type)&&(y[T.type]=T.type);return y}),d=(0,o.computed)(()=>e.onlyRenderVisibleElements?Ha(e.nodes,{x:0,y:0,width:e.dimensions.width,height:e.dimensions.height},e.viewport,!0):e.nodes),h=(0,o.computed)(()=>{if(e.onlyRenderVisibleElements){const y=[];for(const I of e.edges){const T=A.value.get(I.source),D=A.value.get(I.target);sB({sourcePos:T.computedPosition||{x:0,y:0},targetPos:D.computedPosition||{x:0,y:0},sourceWidth:T.dimensions.width,sourceHeight:T.dimensions.height,targetWidth:D.dimensions.width,targetHeight:D.dimensions.height,width:e.dimensions.width,height:e.dimensions.height,viewport:e.viewport})&&y.push(I)}return y}return e.edges}),g=(0,o.computed)(()=>[...d.value,...h.value]),B=(0,o.computed)(()=>{const y=[];for(const I of e.nodes)I.selected&&y.push(I);return y}),w=(0,o.computed)(()=>{const y=[];for(const I of e.edges)I.selected&&y.push(I);return y}),m=(0,o.computed)(()=>[...B.value,...w.value]),v=(0,o.computed)(()=>{const y=[];for(const I of e.nodes)I.dimensions.width&&I.dimensions.height&&I.handleBounds!==void 0&&y.push(I);return y});return{getNode:n,getEdge:r,getElements:g,getEdgeTypes:a,getNodeTypes:u,getEdges:h,getNodes:d,getSelectedElements:m,getSelectedNodes:B,getSelectedEdges:w,getNodesInitialized:v,areNodesInitialized:(0,o.computed)(()=>d.value.length>0&&v.value.length===d.value.length)}}var rp=class yn{constructor(){this.currentId=0,this.flows=new Map}static getInstance(){var A;const t=(A=(0,o.getCurrentInstance)())==null?void 0:A.appContext.app;return yn.instance=t?.config.globalProperties.$vueFlowStorage??yn.instance??new yn,t&&(t.config.globalProperties.$vueFlowStorage=yn.instance),yn.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,o.reactive)(ol()),r={};for(const[w,m]of Object.entries(n.hooks)){const v=`on${w.charAt(0).toUpperCase()+w.slice(1)}`;r[v]=m.on}const a={};for(const[w,m]of Object.entries(n.hooks))a[w]=m.trigger;const u=(0,o.computed)(()=>{const w=new Map;for(const m of n.nodes)w.set(m.id,m);return w}),d=(0,o.computed)(()=>{const w=new Map;for(const m of n.edges)w.set(m.id,m);return w}),h=np(n,u,d),g=TB(n,u,d);g.setState({...n,...t});const B={...r,...h,...g,...ed(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 XA(e){const A=rp.getInstance(),t=(0,o.getCurrentScope)(),n=typeof e=="object",r=n?e:{id:e},a=r.id,u=a??t?.vueFlowId;let d;if(t){const h=(0,o.inject)(ja,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,r);d=g,(t??(0,o.effectScope)(!0)).run(()=>{(0,o.watch)(g.applyDefault,(B,w,m)=>{const v=I=>{g.applyNodeChanges(I)},y=I=>{g.applyEdgeChanges(I)};B?(g.onNodesChange(v),g.onEdgesChange(y)):(g.hooks.value.nodesChange.off(v),g.hooks.value.edgesChange.off(y)),m(()=>{g.hooks.value.nodesChange.off(v),g.hooks.value.edgesChange.off(y)})},{immediate:!0}),Fn(()=>{if(d){const B=A.get(d.id);B?B.$destroy():Pn(`No store instance found for id ${d.id} in storage.`)}})})}else n&&d.setState(r);if(t&&((0,o.provide)(ja,d),t.vueFlowId=d.id),n){const h=(0,o.getCurrentInstance)();h?.type.name!=="VueFlow"&&d.emits.error(new ce(ie.USEVUEFLOW_OPTIONS))}return d}function op(e){const{emits:A,dimensions:t}=XA();let n;(0,o.onMounted)(()=>{const r=()=>{var a,u;if(!e.value||!(((u=(a=e.value).checkVisibility)==null?void 0:u.call(a))??!0))return;const d=Dr(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}};r(),window.addEventListener("resize",r),e.value&&(n=new ResizeObserver(()=>r()),n.observe(e.value)),(0,o.onBeforeUnmount)(()=>{window.removeEventListener("resize",r),n&&e.value&&n.unobserve(e.value)})})}var ip=(0,o.defineComponent)({name:"UserSelection",compatConfig:{MODE:3},props:{userSelectionRect:{}},setup(e){return(A,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"vue-flow__selection vue-flow__container",style:(0,o.normalizeStyle)({width:`${A.userSelectionRect.width}px`,height:`${A.userSelectionRect.height}px`,transform:`translate(${A.userSelectionRect.x}px, ${A.userSelectionRect.y}px)`})},null,4))}}),sp=["tabIndex"],ap=(0,o.defineComponent)({name:"NodesSelection",compatConfig:{MODE:3},setup(e){const{emits:A,viewport:t,getSelectedNodes:n,noPanClassName:r,disableKeyboardA11y:a,userSelectionActive:u}=XA(),d=rl(),h=(0,o.ref)(null),g=el({el:h,onStart(y){A.selectionDragStart(y),A.nodeDragStart(y)},onDrag(y){A.selectionDrag(y),A.nodeDrag(y)},onStop(y){A.selectionDragStop(y),A.nodeDragStop(y)}});(0,o.onMounted)(()=>{var y;a.value||(y=h.value)==null||y.focus({preventScroll:!0})});const B=(0,o.computed)(()=>ba(n.value)),w=(0,o.computed)(()=>({width:`${B.value.width}px`,height:`${B.value.height}px`,top:`${B.value.y}px`,left:`${B.value.x}px`}));function m(y){A.selectionContextMenu({event:y,nodes:n.value})}function v(y){a.value||An[y.key]&&(y.preventDefault(),d({x:An[y.key].x,y:An[y.key].y},y.shiftKey))}return(y,I)=>!(0,o.unref)(u)&&B.value.width&&B.value.height?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,class:(0,o.normalizeClass)(["vue-flow__nodesselection vue-flow__container",(0,o.unref)(r)]),style:(0,o.normalizeStyle)({transform:`translate(${(0,o.unref)(t).x}px,${(0,o.unref)(t).y}px) scale(${(0,o.unref)(t).zoom})`})},[(0,o.createElementVNode)("div",{ref_key:"el",ref:h,class:(0,o.normalizeClass)([{dragging:(0,o.unref)(g)},"vue-flow__nodesselection-rect"]),style:(0,o.normalizeStyle)(w.value),tabIndex:(0,o.unref)(a)?void 0:-1,onContextmenu:m,onKeydown:v},null,46,sp)],6)):(0,o.createCommentVNode)("",!0)}});function lp(e,A){return{x:e.clientX-A.left,y:e.clientY-A.top}}var cp=(0,o.defineComponent)({name:"Pane",compatConfig:{MODE:3},props:{isSelecting:{type:Boolean},selectionKeyPressed:{type:Boolean}},setup(e){const{vueFlowRef:A,nodes:t,viewport:n,emits:r,userSelectionActive:a,removeSelectedElements:u,userSelectionRect:d,elementsSelectable:h,nodesSelectionActive:g,getSelectedEdges:B,getSelectedNodes:w,removeNodes:m,removeEdges:v,selectionMode:y,deleteKeyCode:I,multiSelectionKeyCode:T,multiSelectionActive:D,edgeLookup:V,nodeLookup:b,connectionLookup:K,defaultEdgeOptions:sA,connectionStartHandle:W,panOnDrag:cA}=XA(),lA=(0,o.shallowRef)(null),oA=(0,o.shallowRef)(new Set),iA=(0,o.shallowRef)(new Set),AA=(0,o.shallowRef)(null),S=(0,o.toRef)(()=>h.value&&(e.isSelecting||a.value)),eA=(0,o.toRef)(()=>W.value!==null);let H=!1,X=!1;const U=Mn(I,{actInsideInputWithModifier:!1}),L=Mn(T);(0,o.watch)(U,nA=>{nA&&(m(w.value),v(B.value),g.value=!1)}),(0,o.watch)(L,nA=>{D.value=nA});function k(nA,Z){return $=>{$.target===Z&&nA?.($)}}function N(nA){if(H||eA.value){H=!1;return}r.paneClick(nA),u(),g.value=!1}function O(nA){var Z;if(Array.isArray(cA.value)&&((Z=cA.value)!=null&&Z.includes(2))){nA.preventDefault();return}r.paneContextMenu(nA)}function Y(nA){r.paneScroll(nA)}function tA(nA){var Z,$,uA;if(AA.value=((Z=A.value)==null?void 0:Z.getBoundingClientRect())??null,!h.value||!e.isSelecting||nA.button!==0||nA.target!==lA.value||!AA.value)return;(uA=($=nA.target)==null?void 0:$.setPointerCapture)==null||uA.call($,nA.pointerId);const{x:wA,y:QA}=lp(nA,AA.value);X=!0,H=!1,u(),d.value={width:0,height:0,startX:wA,startY:QA,x:wA,y:QA},r.selectionStart(nA)}function BA(nA){var Z;if(!AA.value||!d.value)return;H=!0;const{x:$,y:uA}=$e(nA,AA.value),{startX:wA=0,startY:QA=0}=d.value,SA={startX:wA,startY:QA,x:$<wA?$:wA,y:uA<QA?uA:QA,width:Math.abs($-wA),height:Math.abs(uA-QA)},fA=oA.value,J=iA.value;oA.value=new Set(Ha(t.value,SA,n.value,y.value===fi.Partial,!0).map(F=>F.id)),iA.value=new Set;const _=((Z=sA.value)==null?void 0:Z.selectable)??!0;for(const F of oA.value){const x=K.value.get(F);if(x)for(const{edgeId:G}of x.values()){const P=V.value.get(G);P&&(P.selectable??_)&&iA.value.add(G)}}if(!Za(fA,oA.value)){const F=pt(b.value,oA.value,!0);r.nodesChange(F)}if(!Za(J,iA.value)){const F=pt(V.value,iA.value);r.edgesChange(F)}d.value=SA,a.value=!0,g.value=!1}function HA(nA){var Z;nA.button!==0||!X||((Z=nA.target)==null||Z.releasePointerCapture(nA.pointerId),!a.value&&d.value&&nA.target===lA.value&&N(nA),a.value=!1,d.value=null,g.value=oA.value.size>0,r.selectionEnd(nA),e.selectionKeyPressed&&(H=!1),X=!1)}return(nA,Z)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{ref_key:"container",ref:lA,class:(0,o.normalizeClass)(["vue-flow__pane vue-flow__container",{selection:nA.isSelecting}]),onClick:Z[0]||(Z[0]=$=>S.value?void 0:k(N,lA.value)($)),onContextmenu:Z[1]||(Z[1]=$=>k(O,lA.value)($)),onWheelPassive:Z[2]||(Z[2]=$=>k(Y,lA.value)($)),onPointerenter:Z[3]||(Z[3]=$=>S.value?void 0:(0,o.unref)(r).paneMouseEnter($)),onPointerdown:Z[4]||(Z[4]=$=>S.value?tA($):(0,o.unref)(r).paneMouseMove($)),onPointermove:Z[5]||(Z[5]=$=>S.value?BA($):(0,o.unref)(r).paneMouseMove($)),onPointerup:Z[6]||(Z[6]=$=>S.value?HA($):void 0),onPointerleave:Z[7]||(Z[7]=$=>(0,o.unref)(r).paneMouseLeave($))},[(0,o.renderSlot)(nA.$slots,"default"),(0,o.unref)(a)&&(0,o.unref)(d)?((0,o.openBlock)(),(0,o.createBlock)(ip,{key:0,"user-selection-rect":(0,o.unref)(d)},null,8,["user-selection-rect"])):(0,o.createCommentVNode)("",!0),(0,o.unref)(g)&&(0,o.unref)(w).length?((0,o.openBlock)(),(0,o.createBlock)(ap,{key:1})):(0,o.createCommentVNode)("",!0)],34))}}),up=(0,o.defineComponent)({name:"Transform",compatConfig:{MODE:3},setup(e){const{viewport:A,fitViewOnInit:t,fitViewOnInitDone:n}=XA(),r=(0,o.computed)(()=>t.value?!n.value:!1),a=(0,o.computed)(()=>`translate(${A.value.x}px,${A.value.y}px) scale(${A.value.zoom})`);return(u,d)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"vue-flow__transformationpane vue-flow__container",style:(0,o.normalizeStyle)({transform:a.value,opacity:r.value?0:void 0})},[(0,o.renderSlot)(u.$slots,"default")],4))}}),dp=(0,o.defineComponent)({name:"Viewport",compatConfig:{MODE:3},setup(e){const{minZoom:A,maxZoom:t,defaultViewport:n,translateExtent:r,zoomActivationKeyCode:a,selectionKeyCode:u,panActivationKeyCode:d,panOnScroll:h,panOnScrollMode:g,panOnScrollSpeed:B,panOnDrag:w,zoomOnDoubleClick:m,zoomOnPinch:v,zoomOnScroll:y,preventScrolling:I,noWheelClassName:T,noPanClassName:D,emits:V,connectionStartHandle:b,userSelectionActive:K,paneDragging:sA,d3Zoom:W,d3Selection:cA,d3ZoomHandler:lA,viewport:oA,viewportRef:iA,paneClickDistance:AA}=XA();op(iA);const S=(0,o.shallowRef)(!1),eA=(0,o.shallowRef)(!1);let H=null,X=!1,U=0,L={x:0,y:0,zoom:0};const k=Mn(d),N=Mn(u),O=Mn(a),Y=(0,o.toRef)(()=>(!N.value||N.value&&u.value===!0)&&(k.value||w.value)),tA=(0,o.toRef)(()=>k.value||h.value),BA=(0,o.toRef)(()=>u.value===!0&&Y.value!==!0),HA=(0,o.toRef)(()=>N.value&&u.value!==!0||K.value||BA.value),nA=(0,o.toRef)(()=>b.value!==null);(0,o.onMounted)(()=>{if(!iA.value){Pn("Viewport element is missing");return}const QA=iA.value,SA=QA.getBoundingClientRect(),fA=Kh().clickDistance(AA.value).scaleExtent([A.value,t.value]).translateExtent(r.value),J=Te(QA).call(fA),_=J.on("wheel.zoom"),F=qt.translate(n.value.x??0,n.value.y??0).scale(Tt(n.value.zoom??1,A.value,t.value)),x=[[0,0],[SA.width,SA.height]],G=fA.constrain()(F,x,r.value);fA.transform(J,G),fA.wheelDelta(xa),W.value=fA,cA.value=J,lA.value=_,oA.value={x:G.x,y:G.y,zoom:G.k},fA.on("start",P=>{var dA;if(!P.sourceEvent)return null;U=P.sourceEvent.button,S.value=!0;const gA=uA(P.transform);((dA=P.sourceEvent)==null?void 0:dA.type)==="mousedown"&&(sA.value=!0),L=gA,V.viewportChangeStart(gA),V.moveStart({event:P,flowTransform:gA})}),fA.on("end",P=>{if(!P.sourceEvent)return null;if(S.value=!1,sA.value=!1,Z(Y.value,U??0)&&!X&&V.paneContextMenu(P.sourceEvent),X=!1,$(L,P.transform)){const dA=uA(P.transform);L=dA,V.viewportChangeEnd(dA),V.moveEnd({event:P,flowTransform:dA})}}),fA.filter(P=>{var dA;const gA=O.value||y.value,EA=v.value&&P.ctrlKey,FA=P.button,NA=P.type==="wheel";if(FA===1&&P.type==="mousedown"&&(wA(P,"vue-flow__node")||wA(P,"vue-flow__edge")))return!0;if(!Y.value&&!gA&&!tA.value&&!m.value&&!v.value||K.value||nA.value&&!NA||!m.value&&P.type==="dblclick"||wA(P,T.value)&&NA||wA(P,D.value)&&(!NA||tA.value&&NA&&!O.value)||!v.value&&P.ctrlKey&&NA||!gA&&!tA.value&&!EA&&NA)return!1;if(!v&&P.type==="touchstart"&&((dA=P.touches)==null?void 0:dA.length)>1)return P.preventDefault(),!1;if(!Y.value&&(P.type==="mousedown"||P.type==="touchstart")||BA.value&&Array.isArray(w.value)&&w.value.includes(0)&&FA===0||Array.isArray(w.value)&&!w.value.includes(FA)&&(P.type==="mousedown"||P.type==="touchstart"))return!1;const OA=Array.isArray(w.value)&&w.value.includes(FA)||u.value===!0&&Array.isArray(w.value)&&!w.value.includes(0)||!FA||FA<=1;return(!P.ctrlKey||k.value||NA)&&OA}),(0,o.watch)([K,Y],()=>{K.value&&!S.value?fA.on("zoom",null):K.value||fA.on("zoom",P=>{oA.value={x:P.transform.x,y:P.transform.y,zoom:P.transform.k};const dA=uA(P.transform);X=Z(Y.value,U??0),V.viewportChange(dA),V.move({event:P,flowTransform:dA})})},{immediate:!0}),(0,o.watch)([K,tA,g,O,v,I,T],()=>{tA.value&&!O.value&&!K.value?J.on("wheel.zoom",P=>{if(wA(P,T.value))return!1;const dA=O.value||y.value,gA=v.value&&P.ctrlKey;if(!(!I.value||tA.value||dA||gA))return!1;P.preventDefault(),P.stopImmediatePropagation();const EA=J.property("__zoom").k||1,FA=Lr();if(!k.value&&P.ctrlKey&&v.value&&FA){const qA=Pe(P),it=EA*2**xa(P);fA.scaleTo(J,it,qA,P);return}const NA=P.deltaMode===1?20:1;let OA=g.value===kn.Vertical?0:P.deltaX*NA,KA=g.value===kn.Horizontal?0:P.deltaY*NA;!FA&&P.shiftKey&&g.value!==kn.Vertical&&!OA&&KA&&(OA=KA,KA=0),fA.translateBy(J,-(OA/EA)*B.value,-(KA/EA)*B.value);const ee=uA(J.property("__zoom"));H&&clearTimeout(H),eA.value?(V.move({event:P,flowTransform:ee}),V.viewportChange(ee),H=setTimeout(()=>{V.moveEnd({event:P,flowTransform:ee}),V.viewportChangeEnd(ee),eA.value=!1},150)):(eA.value=!0,V.moveStart({event:P,flowTransform:ee}),V.viewportChangeStart(ee))},{passive:!1}):typeof _<"u"&&J.on("wheel.zoom",function(P,dA){const gA=!I.value&&P.type==="wheel"&&!P.ctrlKey,EA=O.value||y.value,FA=v.value&&P.ctrlKey;if(!EA&&!h.value&&!FA&&P.type==="wheel"||gA||wA(P,T.value))return null;P.preventDefault(),_.call(this,P,dA)},{passive:!1})},{immediate:!0})});function Z(QA,SA){return SA===2&&Array.isArray(QA)&&QA.includes(2)}function $(QA,SA){return QA.x!==SA.x&&!Number.isNaN(SA.x)||QA.y!==SA.y&&!Number.isNaN(SA.y)||QA.zoom!==SA.k&&!Number.isNaN(SA.k)}function uA(QA){return{x:QA.x,y:QA.y,zoom:QA.k}}function wA(QA,SA){return QA.target.closest(`.${SA}`)}return(QA,SA)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{ref_key:"viewportRef",ref:iA,class:"vue-flow__viewport vue-flow__container"},[(0,o.createVNode)(cp,{"is-selecting":HA.value,"selection-key-pressed":(0,o.unref)(N),class:(0,o.normalizeClass)({connecting:nA.value,dragging:(0,o.unref)(sA),draggable:(0,o.unref)(w)===!0||Array.isArray((0,o.unref)(w))&&(0,o.unref)(w).includes(0)})},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(up,null,{default:(0,o.withCtx)(()=>[(0,o.renderSlot)(QA.$slots,"default")]),_:3})]),_:3},8,["is-selecting","selection-key-pressed","class"])],512))}}),fp=["id"],gp=["id"],hp=["id"],Bp=(0,o.defineComponent)({name:"A11yDescriptions",compatConfig:{MODE:3},setup(e){const{id:A,disableKeyboardA11y:t,ariaLiveMessage:n}=XA();return(r,a)=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[(0,o.createElementVNode)("div",{id:`${(0,o.unref)(ma)}-${(0,o.unref)(A)}`,style:{display:"none"}}," Press enter or space to select a node. "+(0,o.toDisplayString)((0,o.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,fp),(0,o.createElementVNode)("div",{id:`${(0,o.unref)(wa)}-${(0,o.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,gp),(0,o.unref)(t)?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,id:`${(0,o.unref)(Xh)}-${(0,o.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,o.toDisplayString)((0,o.unref)(n)),9,hp))],64))}});function pp(){const e=XA();(0,o.watch)(()=>e.viewportHelper.value.viewportInitialized,A=>{A&&setTimeout(()=>{e.emits.init(e),e.emits.paneReady(e)},1)})}function mp(e,A,t){return t===IA.Left?e-A:t===IA.Right?e+A:e}function wp(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:r}){return(0,o.h)("circle",{class:`vue-flow__edgeupdater vue-flow__edgeupdater-${r}`,cx:mp(A,e,n),cy:wp(t,e,n),r:e,stroke:"transparent",fill:"transparent"})};bi.props=["radius","centerX","centerY","position","type"],bi.compatConfig={MODE:3};var gl=bi,Cp=(0,o.defineComponent)({name:"Edge",compatConfig:{MODE:3},props:["id"],setup(e){const{id:A,addSelectedEdges:t,connectionMode:n,edgeUpdaterRadius:r,emits:a,nodesSelectionActive:u,noPanClassName:d,getEdgeTypes:h,removeSelectedEdges:g,findEdge:B,findNode:w,isValidConnection:m,multiSelectionActive:v,disableKeyboardA11y:y,elementsSelectable:I,edgesUpdatable:T,edgesFocusable:D,hooks:V}=XA(),b=(0,o.computed)(()=>B(e.id)),{emit:K,on:sA}=QB(b.value,a),W=(0,o.inject)(kr),cA=(0,o.getCurrentInstance)(),lA=(0,o.ref)(!1),oA=(0,o.ref)(!1),iA=(0,o.ref)(""),AA=(0,o.ref)(null),S=(0,o.ref)("source"),eA=(0,o.ref)(null),H=(0,o.toRef)(()=>typeof b.value.selectable>"u"?I.value:b.value.selectable),X=(0,o.toRef)(()=>typeof b.value.updatable>"u"?T.value:b.value.updatable),U=(0,o.toRef)(()=>typeof b.value.focusable>"u"?D.value:b.value.focusable);(0,o.provide)(CB,e.id),(0,o.provide)(vB,eA);const L=(0,o.computed)(()=>b.value.class instanceof Function?b.value.class(b.value):b.value.class),k=(0,o.computed)(()=>b.value.style instanceof Function?b.value.style(b.value):b.value.style),N=(0,o.computed)(()=>{const F=b.value.type||"default",x=W?.[`edge-${F}`];if(x)return x;let G=b.value.template??h.value[F];if(typeof G=="string"&&cA){const P=Object.keys(cA.appContext.components);P&&P.includes(F)&&(G=(0,o.resolveComponent)(F,!1))}return G&&typeof G!="string"?G:(a.error(new ce(ie.EDGE_TYPE_MISSING,G)),!1)}),{handlePointerDown:O}=tl({nodeId:iA,handleId:AA,type:S,isValidConnection:m,edgeUpdaterType:S,onEdgeUpdate:BA,onEdgeUpdateEnd:HA});return()=>{const F=w(b.value.source),x=w(b.value.target),G="pathOptions"in b.value?b.value.pathOptions:{};if(!F&&!x)return a.error(new ce(ie.EDGE_SOURCE_TARGET_MISSING,b.value.id,b.value.source,b.value.target)),null;if(!F)return a.error(new ce(ie.EDGE_SOURCE_MISSING,b.value.id,b.value.source)),null;if(!x)return a.error(new ce(ie.EDGE_TARGET_MISSING,b.value.id,b.value.target)),null;if(!b.value||b.value.hidden||F.hidden||x.hidden)return null;let P;n.value===nt.Strict?P=F.handleBounds.source:P=[...F.handleBounds.source||[],...F.handleBounds.target||[]];const dA=Va(P,b.value.sourceHandle);let gA;n.value===nt.Strict?gA=x.handleBounds.target:gA=[...x.handleBounds.target||[],...x.handleBounds.source||[]];const EA=Va(gA,b.value.targetHandle),FA=dA?.position||IA.Bottom,NA=EA?.position||IA.Top,{x:OA,y:KA}=tn(F,dA,FA),{x:ee,y:qA}=tn(x,EA,NA);return b.value.sourceX=OA,b.value.sourceY=KA,b.value.targetX=ee,b.value.targetY=qA,(0,o.h)("g",{ref:eA,key:e.id,"data-id":e.id,class:["vue-flow__edge",`vue-flow__edge-${N.value===!1?"default":b.value.type||"default"}`,d.value,L.value,{updating:lA.value,selected:b.value.selected,animated:b.value.animated,inactive:!H.value&&!V.value.edgeClick.hasListeners()}],tabIndex:U.value?0:void 0,"aria-label":b.value.ariaLabel===null?void 0:b.value.ariaLabel??`Edge from ${b.value.source} to ${b.value.target}`,"aria-describedby":U.value?`${wa}-${A}`:void 0,"aria-roledescription":"edge",role:U.value?"group":"img",...b.value.domAttributes,onClick:Z,onContextmenu:$,onDblclick:uA,onMouseenter:wA,onMousemove:QA,onMouseleave:SA,onKeyDown:U.value?_:void 0},[oA.value?null:(0,o.h)(N.value===!1?h.value.default:N.value,{id:e.id,sourceNode:F,targetNode:x,source:b.value.source,target:b.value.target,type:b.value.type,updatable:X.value,selected:b.value.selected,animated:b.value.animated,label:b.value.label,labelStyle:b.value.labelStyle,labelShowBg:b.value.labelShowBg,labelBgStyle:b.value.labelBgStyle,labelBgPadding:b.value.labelBgPadding,labelBgBorderRadius:b.value.labelBgBorderRadius,data:b.value.data,events:{...b.value.events,...sA},style:k.value,markerStart:`url('#${Vn(b.value.markerStart,A)}')`,markerEnd:`url('#${Vn(b.value.markerEnd,A)}')`,sourcePosition:FA,targetPosition:NA,sourceX:OA,sourceY:KA,targetX:ee,targetY:qA,sourceHandleId:b.value.sourceHandle,targetHandleId:b.value.targetHandle,interactionWidth:b.value.interactionWidth,...G}),[X.value==="source"||X.value===!0?[(0,o.h)("g",{onMousedown:fA,onMouseenter:Y,onMouseout:tA},(0,o.h)(gl,{position:FA,centerX:OA,centerY:KA,radius:r.value,type:"source","data-type":"source"}))]:null,X.value==="target"||X.value===!0?[(0,o.h)("g",{onMousedown:J,onMouseenter:Y,onMouseout:tA},(0,o.h)(gl,{position:NA,centerX:ee,centerY:qA,radius:r.value,type:"target","data-type":"target"}))]:null]])};function Y(){lA.value=!0}function tA(){lA.value=!1}function BA(F,x){K.update({event:F,edge:b.value,connection:x})}function HA(F){K.updateEnd({event:F,edge:b.value}),oA.value=!1}function nA(F,x){F.button===0&&(oA.value=!0,iA.value=x?b.value.target:b.value.source,AA.value=(x?b.value.targetHandle:b.value.sourceHandle)??null,S.value=x?"target":"source",K.updateStart({event:F,edge:b.value}),O(F))}function Z(F){var x;const G={event:F,edge:b.value};H.value&&(u.value=!1,b.value.selected&&v.value?(g([b.value]),(x=eA.value)==null||x.blur()):t([b.value])),K.click(G)}function $(F){K.contextMenu({event:F,edge:b.value})}function uA(F){K.doubleClick({event:F,edge:b.value})}function wA(F){K.mouseEnter({event:F,edge:b.value})}function QA(F){K.mouseMove({event:F,edge:b.value})}function SA(F){K.mouseLeave({event:F,edge:b.value})}function fA(F){nA(F,!0)}function J(F){nA(F,!1)}function _(F){var x;!y.value&&Ca.includes(F.key)&&H.value&&(F.key==="Escape"?((x=eA.value)==null||x.blur(),g([B(e.id)])):t([B(e.id)]))}}}),vp=(0,o.defineComponent)({name:"ConnectionLine",compatConfig:{MODE:3},setup(){var e;const{id:A,connectionMode:t,connectionStartHandle:n,connectionEndHandle:r,connectionPosition:a,connectionLineType:u,connectionLineStyle:d,connectionLineOptions:h,connectionStatus:g,viewport:B,findNode:w}=XA(),m=(e=(0,o.inject)(kr))==null?void 0:e["connection-line"],v=(0,o.computed)(()=>{var V;return w((V=n.value)==null?void 0:V.nodeId)}),y=(0,o.computed)(()=>{var V;return w((V=r.value)==null?void 0:V.nodeId)??null}),I=(0,o.computed)(()=>({x:(a.value.x-B.value.x)/B.value.zoom,y:(a.value.y-B.value.y)/B.value.zoom})),T=(0,o.computed)(()=>h.value.markerStart?`url(#${Vn(h.value.markerStart,A)})`:""),D=(0,o.computed)(()=>h.value.markerEnd?`url(#${Vn(h.value.markerEnd,A)})`:"");return()=>{var V,b,K;if(!v.value||!n.value)return null;const sA=n.value.id,W=n.value.type,cA=v.value.handleBounds;let lA=cA?.[W]??[];if(t.value===nt.Loose){const k=cA?.[W==="source"?"target":"source"]??[];lA=[...lA,...k]}if(!lA)return null;const oA=(sA?lA.find(k=>k.id===sA):lA[0])??null,iA=oA?.position??IA.Top,{x:AA,y:S}=tn(v.value,oA,iA);let eA=null;y.value&&(t.value===nt.Strict?eA=((V=y.value.handleBounds[W==="source"?"target":"source"])==null?void 0:V.find(k=>{var N;return k.id===((N=r.value)==null?void 0:N.id)}))||null:eA=((b=[...y.value.handleBounds.source??[],...y.value.handleBounds.target??[]])==null?void 0:b.find(k=>{var N;return k.id===((N=r.value)==null?void 0:N.id)}))||null);const H=((K=r.value)==null?void 0:K.position)??(iA?Ci[iA]:null);if(!iA||!H)return null;const X=u.value??h.value.type??Lt.Bezier;let U="";const L={sourceX:AA,sourceY:S,sourcePosition:iA,targetX:I.value.x,targetY:I.value.y,targetPosition:H};return X===Lt.Bezier?[U]=Fi(L):X===Lt.Step?[U]=Ui({...L,borderRadius:0}):X===Lt.SmoothStep?[U]=Ui(L):X===Lt.SimpleBezier?[U]=cl(L):U=`M${AA},${S} ${I.value.x},${I.value.y}`,(0,o.h)("svg",{class:"vue-flow__edges vue-flow__connectionline vue-flow__container"},(0,o.h)("g",{class:"vue-flow__connection"},m?(0,o.h)(m,{sourceX:AA,sourceY:S,sourcePosition:iA,targetX:I.value.x,targetY:I.value.y,targetPosition:H,sourceNode:v.value,sourceHandle:oA,targetNode:y.value,targetHandle:eA,markerEnd:D.value,markerStart:T.value,connectionStatus:g.value}):(0,o.h)("path",{d:U,class:[h.value.class,g.value,"vue-flow__connection-path"],style:{...d.value,...h.value.style},"marker-end":D.value,"marker-start":T.value})))}}}),yp=["id","markerWidth","markerHeight","markerUnits","orient"],Qp=(0,o.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,o.openBlock)(),(0,o.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,o.unref)(rt).ArrowClosed?((0,o.openBlock)(),(0,o.createElementBlock)("polyline",{key:0,style:(0,o.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,o.createCommentVNode)("",!0),A.type===(0,o.unref)(rt).Arrow?((0,o.openBlock)(),(0,o.createElementBlock)("polyline",{key:1,style:(0,o.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,o.createCommentVNode)("",!0)],8,yp))}}),Ep={class:"vue-flow__marker vue-flow__container","aria-hidden":"true"},Fp=(0,o.defineComponent)({name:"MarkerDefinitions",compatConfig:{MODE:3},setup(e){const{id:A,edges:t,connectionLineOptions:n,defaultMarkerColor:r}=XA(),a=(0,o.computed)(()=>{const u=new Set,d=[],h=g=>{if(g){const B=Vn(g,A);u.has(B)||(typeof g=="object"?d.push({...g,id:B,color:g.color||r.value}):d.push({id:B,color:r.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,o.openBlock)(),(0,o.createElementBlock)("svg",Ep,[(0,o.createElementVNode)("defs",null,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(a.value,h=>((0,o.openBlock)(),(0,o.createBlock)(Qp,{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))])]))}}),Up=(0,o.defineComponent)({name:"Edges",compatConfig:{MODE:3},setup(e){const{findNode:A,getEdges:t,elevateEdgesOnSelect:n}=XA();return(r,a)=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[(0,o.createVNode)(Fp),((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)((0,o.unref)(t),u=>((0,o.openBlock)(),(0,o.createElementBlock)("svg",{key:u.id,class:"vue-flow__edges vue-flow__container",style:(0,o.normalizeStyle)({zIndex:(0,o.unref)(aB)(u,(0,o.unref)(A),(0,o.unref)(n))})},[(0,o.createVNode)((0,o.unref)(Cp),{id:u.id},null,8,["id"])],4))),128)),(0,o.createVNode)((0,o.unref)(vp))],64))}}),bp=(0,o.defineComponent)({name:"Node",compatConfig:{MODE:3},props:["id","resizeObserver"],setup(e){const{id:A,noPanClassName:t,selectNodesOnDrag:n,nodesSelectionActive:r,multiSelectionActive:a,emits:u,removeSelectedNodes:d,addSelectedNodes:h,updateNodeDimensions:g,onUpdateNodeInternals:B,getNodeTypes:w,nodeExtent:m,elevateNodesOnSelect:v,disableKeyboardA11y:y,ariaLiveMessage:I,snapToGrid:T,snapGrid:D,nodeDragThreshold:V,nodesDraggable:b,elementsSelectable:K,nodesConnectable:sA,nodesFocusable:W,hooks:cA}=XA(),lA=(0,o.ref)(null);(0,o.provide)(Al,lA),(0,o.provide)(qa,e.id);const oA=(0,o.inject)(kr),iA=(0,o.getCurrentInstance)(),AA=rl(),{node:S,parentNode:eA}=nl(e.id),{emit:H,on:X}=bB(S,u),U=(0,o.toRef)(()=>typeof S.draggable>"u"?b.value:S.draggable),L=(0,o.toRef)(()=>typeof S.selectable>"u"?K.value:S.selectable),k=(0,o.toRef)(()=>typeof S.connectable>"u"?sA.value:S.connectable),N=(0,o.toRef)(()=>typeof S.focusable>"u"?W.value:S.focusable),O=(0,o.computed)(()=>L.value||U.value||cA.value.nodeClick.hasListeners()||cA.value.nodeDoubleClick.hasListeners()||cA.value.nodeMouseEnter.hasListeners()||cA.value.nodeMouseMove.hasListeners()||cA.value.nodeMouseLeave.hasListeners()),Y=(0,o.toRef)(()=>!!S.dimensions.width&&!!S.dimensions.height),tA=(0,o.computed)(()=>{const x=S.type||"default",G=oA?.[`node-${x}`];if(G)return G;let P=S.template||w.value[x];if(typeof P=="string"&&iA){const dA=Object.keys(iA.appContext.components);dA&&dA.includes(x)&&(P=(0,o.resolveComponent)(x,!1))}return P&&typeof P!="string"?P:(u.error(new ce(ie.NODE_TYPE_MISSING,P)),!1)}),BA=el({id:e.id,el:lA,disabled:()=>!U.value,selectable:L,dragHandle:()=>S.dragHandle,onStart(x){H.dragStart(x)},onDrag(x){H.drag(x)},onStop(x){H.dragStop(x)},onClick(x){_(x)}}),HA=(0,o.computed)(()=>S.class instanceof Function?S.class(S):S.class),nA=(0,o.computed)(()=>{const x=(S.style instanceof Function?S.style(S):S.style)||{},G=S.width instanceof Function?S.width(S):S.width,P=S.height instanceof Function?S.height(S):S.height;return!x.width&&G&&(x.width=typeof G=="string"?G:`${G}px`),!x.height&&P&&(x.height=typeof P=="string"?P:`${P}px`),x}),Z=(0,o.toRef)(()=>Number(S.zIndex??nA.value.zIndex??0));return B(x=>{(x.includes(e.id)||!x.length)&&uA()}),(0,o.onMounted)(()=>{(0,o.watch)(()=>S.hidden,(x=!1,G,P)=>{!x&&lA.value&&(e.resizeObserver.observe(lA.value),P(()=>{lA.value&&e.resizeObserver.unobserve(lA.value)}))},{immediate:!0,flush:"post"})}),(0,o.watch)([()=>S.type,()=>S.sourcePosition,()=>S.targetPosition],()=>{(0,o.nextTick)(()=>{g([{id:e.id,nodeElement:lA.value,forceUpdate:!0}])})}),(0,o.watch)([()=>S.position.x,()=>S.position.y,()=>{var x;return(x=eA.value)==null?void 0:x.computedPosition.x},()=>{var x;return(x=eA.value)==null?void 0:x.computedPosition.y},()=>{var x;return(x=eA.value)==null?void 0:x.computedPosition.z},Z,()=>S.selected,()=>S.dimensions.height,()=>S.dimensions.width,()=>{var x;return(x=eA.value)==null?void 0:x.dimensions.height},()=>{var x;return(x=eA.value)==null?void 0:x.dimensions.width}],([x,G,P,dA,gA,EA])=>{const FA={x,y:G,z:EA+(v.value&&S.selected?1e3:0)};typeof P<"u"&&typeof dA<"u"?S.computedPosition=tB({x:P,y:dA,z:gA},FA):S.computedPosition=FA},{flush:"post",immediate:!0}),(0,o.watch)([()=>S.extent,m],([x,G],[P,dA])=>{(x!==P||G!==dA)&&$()}),S.extent==="parent"||typeof S.extent=="object"&&"range"in S.extent&&S.extent.range==="parent"?Xo(()=>Y).toBe(!0).then($):$(),()=>S.hidden?null:(0,o.h)("div",{ref:lA,"data-id":S.id,class:["vue-flow__node",`vue-flow__node-${tA.value===!1?"default":S.type||"default"}`,{[t.value]:U.value,dragging:BA?.value,draggable:U.value,selected:S.selected,selectable:L.value,parent:S.isParent},HA.value],style:{visibility:Y.value?"visible":"hidden",zIndex:S.computedPosition.z??Z.value,transform:`translate(${S.computedPosition.x}px,${S.computedPosition.y}px)`,pointerEvents:O.value?"all":"none",...nA.value},tabIndex:N.value?0:void 0,role:N.value?"group":void 0,"aria-describedby":y.value?void 0:`${ma}-${A}`,"aria-label":S.ariaLabel,"aria-roledescription":"node",...S.domAttributes,onMouseenter:wA,onMousemove:QA,onMouseleave:SA,onContextmenu:fA,onClick:_,onDblclick:J,onKeydown:F},[(0,o.h)(tA.value===!1?w.value.default:tA.value,{id:S.id,type:S.type,data:S.data,events:{...S.events,...X},selected:S.selected,resizing:S.resizing,dragging:BA.value,connectable:k.value,position:S.computedPosition,dimensions:S.dimensions,isValidTargetPos:S.isValidTargetPos,isValidSourcePos:S.isValidSourcePos,parent:S.parentNode,parentNodeId:S.parentNode,zIndex:S.computedPosition.z??Z.value,targetPosition:S.targetPosition,sourcePosition:S.sourcePosition,label:S.label,dragHandle:S.dragHandle,onUpdateNodeInternals:uA})]);function $(){const x=S.computedPosition,{computedPosition:G,position:P}=pi(S,T.value?Tr(x,D.value):x,u.error,m.value,eA.value);(S.computedPosition.x!==G.x||S.computedPosition.y!==G.y)&&(S.computedPosition={...S.computedPosition,...G}),(S.position.x!==P.x||S.position.y!==P.y)&&(S.position=P)}function uA(){lA.value&&g([{id:e.id,nodeElement:lA.value,forceUpdate:!0}])}function wA(x){BA?.value||H.mouseEnter({event:x,node:S})}function QA(x){BA?.value||H.mouseMove({event:x,node:S})}function SA(x){BA?.value||H.mouseLeave({event:x,node:S})}function fA(x){return H.contextMenu({event:x,node:S})}function J(x){return H.doubleClick({event:x,node:S})}function _(x){L.value&&(!n.value||!U.value||V.value>0)&&vi(S,a.value,h,d,r,!1,lA.value),H.click({event:x,node:S})}function F(x){if(!(gi(x)||y.value))if(Ca.includes(x.key)&&L.value){const G=x.key==="Escape";vi(S,a.value,h,d,r,G,lA.value)}else U.value&&S.selected&&An[x.key]&&(x.preventDefault(),I.value=`Moved selected node ${x.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~S.position.x}, y: ${~~S.position.y}`,AA({x:An[x.key].x,y:An[x.key].y},x.shiftKey))}}}),Hp={height:"0",width:"0"},Ip=(0,o.defineComponent)({name:"EdgeLabelRenderer",compatConfig:{MODE:3},setup(e){const{viewportRef:A}=XA(),t=(0,o.toRef)(()=>{var n;return(n=A.value)==null?void 0:n.getElementsByClassName("vue-flow__edge-labels")[0]});return(n,r)=>((0,o.openBlock)(),(0,o.createElementBlock)("svg",null,[((0,o.openBlock)(),(0,o.createElementBlock)("foreignObject",Hp,[((0,o.openBlock)(),(0,o.createBlock)(o.Teleport,{to:t.value,disabled:!t.value},[(0,o.renderSlot)(n.$slots,"default")],8,["to","disabled"]))]))]))}});function _p(e={includeHiddenNodes:!1}){const{nodes:A}=XA();return(0,o.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 Sp={class:"vue-flow__nodes vue-flow__container"},xp=(0,o.defineComponent)({name:"Nodes",compatConfig:{MODE:3},setup(e){const{getNodes:A,updateNodeDimensions:t,emits:n}=XA(),r=_p(),a=(0,o.ref)();return(0,o.watch)(r,u=>{u&&(0,o.nextTick)(()=>{n.nodesInitialized(A.value)})},{immediate:!0}),(0,o.onMounted)(()=>{a.value=new ResizeObserver(u=>{const d=u.map(h=>({id:h.target.getAttribute("data-id"),nodeElement:h.target,forceUpdate:!0}));(0,o.nextTick)(()=>t(d))})}),(0,o.onBeforeUnmount)(()=>{var u;return(u=a.value)==null?void 0:u.disconnect()}),(u,d)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",Sp,[a.value?((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,{key:0},(0,o.renderList)((0,o.unref)(A),(h,g,B,w)=>{const m=[h.id];if(w&&w.key===h.id&&(0,o.isMemoSame)(w,m))return w;const v=((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(bp),{id:h.id,key:h.id,"resize-observer":a.value},null,8,["id","resize-observer"]));return v.memo=m,v},d,0),128)):(0,o.createCommentVNode)("",!0)]))}});function Dp(){const{emits:e}=XA();(0,o.onMounted)(()=>{if($a()){const A=document.querySelector(".vue-flow__pane");A&&window.getComputedStyle(A).zIndex!=="1"&&e.error(new ce(ie.MISSING_STYLES))}})}var Np=(0,o.createElementVNode)("div",{class:"vue-flow__edge-labels"},null,-1),Lp=(0,o.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,r=(0,o.useSlots)(),a=$o(n,"modelValue",t),u=$o(n,"nodes",t),d=$o(n,"edges",t),h=XA(n),g=SB({modelValue:a,nodes:u,edges:d},n,h);return DB(t,h.hooks),pp(),Dp(),(0,o.provide)(kr,r),(0,o.onUnmounted)(g),A(h),(B,w)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{ref:(0,o.unref)(h).vueFlowRef,class:"vue-flow"},[(0,o.createVNode)(dp,null,{default:(0,o.withCtx)(()=>[(0,o.createVNode)(Up),Np,(0,o.createVNode)(xp),(0,o.renderSlot)(B.$slots,"zoom-pane")]),_:3}),(0,o.renderSlot)(B.$slots,"default"),(0,o.createVNode)(Bp)],512))}}),Tp=(0,o.defineComponent)({name:"Panel",compatConfig:{MODE:3},props:{position:{}},setup(e){const A=e,{userSelectionActive:t}=XA(),n=(0,o.computed)(()=>`${A.position}`.split("-"));return(r,a)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["vue-flow__panel",n.value]),style:(0,o.normalizeStyle)({pointerEvents:(0,o.unref)(t)?"none":"all"})},[(0,o.renderSlot)(r.$slots,"default")],6))}}),ot=(e=>(e.Lines="lines",e.Dots="dots",e))(ot||{}),kp=function({dimensions:e,size:A,color:t}){return(0,o.h)("path",{stroke:t,"stroke-width":A,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`})},Mp=function({radius:e,color:A}){return(0,o.h)("circle",{cx:e,cy:e,r:e,fill:A})};ot.Lines,ot.Dots;var Op={[ot.Dots]:"#81818a",[ot.Lines]:"#eee"},Kp=["id","x","y","width","height","patternTransform"],Rp={key:2,height:"100",width:"100"},Vp=["fill"],Pp=["x","y","fill"],Gp=(0,o.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}=XA(),n=(0,o.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}}),r=(0,o.toRef)(()=>`pattern-${A}${e.id?`-${e.id}`:""}`),a=(0,o.toRef)(()=>e.color||e.patternColor||Op[e.variant||ot.Dots]);return(u,d)=>((0,o.openBlock)(),(0,o.createElementBlock)("svg",{class:"vue-flow__background vue-flow__container",style:(0,o.normalizeStyle)({height:`${u.height>100?100:u.height}%`,width:`${u.width>100?100:u.width}%`})},[(0,o.renderSlot)(u.$slots,"pattern-container",{id:r.value},()=>[(0,o.createElementVNode)("pattern",{id:r.value,x:(0,o.unref)(t).x%n.value.scaledGap[0],y:(0,o.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,o.renderSlot)(u.$slots,"pattern",{},()=>[u.variant===(0,o.unref)(ot).Lines?((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(kp),{key:0,size:u.lineWidth,color:a.value,dimensions:n.value.scaledGap},null,8,["size","color","dimensions"])):u.variant===(0,o.unref)(ot).Dots?((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(Mp),{key:1,color:a.value,radius:n.value.size/2},null,8,["color","radius"])):(0,o.createCommentVNode)("",!0),u.bgColor?((0,o.openBlock)(),(0,o.createElementBlock)("svg",Rp,[(0,o.createElementVNode)("rect",{width:"100%",height:"100%",fill:u.bgColor},null,8,Vp)])):(0,o.createCommentVNode)("",!0)])],8,Kp)]),(0,o.createElementVNode)("rect",{x:u.x,y:u.y,width:"100%",height:"100%",fill:`url(#${r.value})`},null,8,Pp),(0,o.renderSlot)(u.$slots,"default",{id:r.value})],4))}}),zp={name:"ControlButton",compatConfig:{MODE:3}},Xp=(e,A)=>{const t=e.__vccOpts||e;for(const[n,r]of A)t[n]=r;return t},$p={type:"button",class:"vue-flow__controls-button"};function Yp(e,A,t,n,r,a){return(0,o.openBlock)(),(0,o.createElementBlock)("button",$p,[(0,o.renderSlot)(e.$slots,"default")])}var Gr=Xp(zp,[["render",Yp]]),Wp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Jp=[(0,o.createElementVNode)("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"},null,-1)];function Zp(e,A){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",Wp,Jp)}var jp={render:Zp},qp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},Am=[(0,o.createElementVNode)("path",{d:"M0 0h32v4.2H0z"},null,-1)];function em(e,A){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",qp,Am)}var tm={render:em},nm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},rm=[(0,o.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 om(e,A){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",nm,rm)}var im={render:om},sm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},am=[(0,o.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 lm(e,A){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",sm,am)}var cm={render:lm},um={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},dm=[(0,o.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 fm(e,A){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",um,dm)}var gm={render:fm},hm=(0,o.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:()=>Ba.BottomLeft}},emits:["zoomIn","zoomOut","fitView","interactionChange"],setup(e,{emit:A}){const{nodesDraggable:t,nodesConnectable:n,elementsSelectable:r,setInteractive:a,zoomIn:u,zoomOut:d,fitView:h,viewport:g,minZoom:B,maxZoom:w}=XA(),m=(0,o.toRef)(()=>t.value||n.value||r.value),v=(0,o.toRef)(()=>g.value.zoom<=B.value),y=(0,o.toRef)(()=>g.value.zoom>=w.value);function I(){u(),A("zoomIn")}function T(){d(),A("zoomOut")}function D(){h(e.fitViewParams),A("fitView")}function V(){a(!m.value),A("interactionChange",!m.value)}return(b,K)=>((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(Tp),{class:"vue-flow__controls",position:b.position},{default:(0,o.withCtx)(()=>[(0,o.renderSlot)(b.$slots,"top"),b.showZoom?((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:0},[(0,o.renderSlot)(b.$slots,"control-zoom-in",{},()=>[(0,o.createVNode)(Gr,{class:"vue-flow__controls-zoomin",disabled:y.value,onClick:I},{default:(0,o.withCtx)(()=>[(0,o.renderSlot)(b.$slots,"icon-zoom-in",{},()=>[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)((0,o.unref)(jp))))])]),_:3},8,["disabled"])]),(0,o.renderSlot)(b.$slots,"control-zoom-out",{},()=>[(0,o.createVNode)(Gr,{class:"vue-flow__controls-zoomout",disabled:v.value,onClick:T},{default:(0,o.withCtx)(()=>[(0,o.renderSlot)(b.$slots,"icon-zoom-out",{},()=>[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)((0,o.unref)(tm))))])]),_:3},8,["disabled"])])],64)):(0,o.createCommentVNode)("",!0),b.showFitView?(0,o.renderSlot)(b.$slots,"control-fit-view",{key:1},()=>[(0,o.createVNode)(Gr,{class:"vue-flow__controls-fitview",onClick:D},{default:(0,o.withCtx)(()=>[(0,o.renderSlot)(b.$slots,"icon-fit-view",{},()=>[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)((0,o.unref)(im))))])]),_:3})]):(0,o.createCommentVNode)("",!0),b.showInteractive?(0,o.renderSlot)(b.$slots,"control-interactive",{key:2},()=>[b.showInteractive?((0,o.openBlock)(),(0,o.createBlock)(Gr,{key:0,class:"vue-flow__controls-interactive",onClick:V},{default:(0,o.withCtx)(()=>[m.value?(0,o.renderSlot)(b.$slots,"icon-unlock",{key:0},()=>[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)((0,o.unref)(gm))))]):(0,o.createCommentVNode)("",!0),m.value?(0,o.createCommentVNode)("",!0):(0,o.renderSlot)(b.$slots,"icon-lock",{key:1},()=>[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)((0,o.unref)(cm))))])]),_:3})):(0,o.createCommentVNode)("",!0)]):(0,o.createCommentVNode)("",!0),(0,o.renderSlot)(b.$slots,"default")]),_:3},8,["position"]))}}),Bm=["onClick"],pm={class:"d-flow-node-menus-item-name"},mm=(0,o.defineComponent)({name:"DNodeMenus",__name:"nodeMenus",props:{fromNodeId:{},handleId:{}},emits:["addNode"],setup(e,{emit:A}){const t=e,n=A,r=(0,o.inject)("d_flow_design_provide",{}),a=r.getFlowComponents?.()||[],u=d=>{n("addNode",d.type),(0,o.nextTick)(()=>{t.handleId==="line"?r.addNodeByLine?.(d.type,t.fromNodeId||""):r.addNode?.(d.type,t.fromNodeId||"",t.handleId||"")})};return(d,h)=>{const g=(0,o.resolveComponent)("j-icon");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"d-flow-node-menus",onClick:(0,o.withModifiers)(()=>{},["stop"])},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)((0,o.unref)(a),(B,w)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:w,class:"d-flow-node-menus-item",onClick:m=>u(B)},[(0,o.createElementVNode)("div",{class:"d-flow-node-menus-item-icon",style:(0,o.normalizeStyle)({backgroundColor:B.iconColor||"var(--j-color-primary)"})},[(0,o.createVNode)(g,{icon:B.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,o.createElementVNode)("div",pm,(0,o.toDisplayString)(B.name),1)],8,Bm))),128))])}}}),Hi=mm,wm={class:"d-flow-step-name"},Cm={key:0,style:{color:"var(--j-color-text-2)"}},vm={style:{color:"var(--j-color-text)"}},ym=(0,o.defineComponent)({name:"DStepNode",__name:"stepNode",props:{id:{},data:{}},setup(e){const A=e,{onNodeClick:t,onEdgeClick:n,onMoveStart:r,onConnectStart:a,onNodeDragStart:u,removeNodes:d,getEdges:h,getNodes:g,onNodesChange:B}=XA(),w=(0,o.inject)("d_flow_design_provide",{}),m=(0,o.computed)(()=>w.getFlowComponentMap?.value?.[A.data.type]||{}),v=()=>{d(A.id),w.onRemoveNode?.(A.id)},y=(0,o.ref)({});B(eA=>{if(A.data.isInit&&eA.findIndex(H=>H.type==="select"&&H.id===A.id&&H.id==="start"&&H.selected)!==-1){const H=g.value.find(X=>X.id==="start");H&&(H.data.isInit=!1),y.value.s1=!0}});const I=(0,o.ref)(!1),T=eA=>{eA.indexOf("t")!==-1&&!D.value||(I.value=!0,y.value[eA]=!0)},D=(0,o.computed)(()=>h.value.findIndex(eA=>eA.target===A.id)===-1),V=(0,o.ref)(!1),b=()=>{V.value=!0},K=(eA,H)=>{if(h.value.find(U=>U.source===H&&U.target===eA))return!0;const X=h.value.filter(U=>U.target===eA);for(let U=0;U<X.length;U++)if(K(X[U].source,H))return!0;return!1},sA=eA=>V.value?(V.value=!1,!1):K(eA.source,eA.target)?!1:eA.source!==eA.target&&eA.sourceHandle!==eA.targetHandle&&eA.sourceHandle.indexOf("s")!==-1&&eA.targetHandle.indexOf("t")!==-1,W=()=>{AA(),Object.keys(y.value).forEach(eA=>{y.value[eA]=!1})},cA=()=>{W()};t(()=>{console.log("onNodeClick"),I.value?I.value=!1:W()}),n(()=>{W()}),r(()=>{W()}),a(()=>{W()}),u(()=>{W()});const lA=(0,o.ref)(),oA=(0,o.ref)({top:0,left:0,bottom:0,right:0}),iA=(0,o.ref)({getBoundingClientRect:()=>oA.value}),AA=()=>{lA.value?.handleClose()},S=eA=>{const{clientX:H,clientY:X}=eA;oA.value=DOMRect.fromRect({x:H,y:X}),eA.preventDefault(),lA.value?.handleOpen()};return(eA,H)=>{const X=(0,o.resolveComponent)("j-icon"),U=(0,o.resolveComponent)("el-popover"),L=(0,o.resolveComponent)("el-tooltip"),k=(0,o.resolveComponent)("el-dropdown-item"),N=(0,o.resolveComponent)("el-dropdown-menu"),O=(0,o.resolveComponent)("el-dropdown");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"d-flow-step",onContextmenu:(0,o.withModifiers)(S,["stop"])},[(0,o.createElementVNode)("div",{class:"d-flow-step-icon",style:(0,o.normalizeStyle)({backgroundColor:m.value.iconColor||"var(--j-color-primary)"})},[(0,o.createVNode)(X,{icon:m.value.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,o.createElementVNode)("div",wm,(0,o.toDisplayString)(m.value.name),1),e.data.type!=="start"?((0,o.openBlock)(),(0,o.createBlock)(L,{key:0,placement:"top","show-arrow":!1,"popper-class":"d-flow-step-tooltip"},{content:(0,o.withCtx)(()=>[D.value?((0,o.openBlock)(),(0,o.createElementBlock)("div",Cm,[...H[4]||(H[4]=[(0,o.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"点击",-1),(0,o.createTextVNode)("添加节点 ",-1)])])):(0,o.createCommentVNode)("",!0),H[5]||(H[5]=(0,o.createElementVNode)("div",{style:{color:"var(--j-color-text-2)"}},[(0,o.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"拖拽"),(0,o.createTextVNode)("连接节点 ")],-1))]),default:(0,o.withCtx)(()=>[(0,o.createVNode)((0,o.unref)(nn),{onClick:H[1]||(H[1]=Y=>T("t1")),onMousedown:b,id:"t1",class:(0,o.normalizeClass)(["d-flow-step-target-handle",{"d-flow-step-target-handle-notadd":!D.value}]),type:"target",position:(0,o.unref)(IA).Left,"is-valid-connection":sA},{default:(0,o.withCtx)(()=>[D.value?((0,o.openBlock)(),(0,o.createBlock)(U,{key:0,visible:y.value.t1,"onUpdate:visible":H[0]||(H[0]=Y=>y.value.t1=Y),placement:"left","popper-class":"d-flow-step-popper",trigger:"click","show-arrow":!1,"popper-options":{strategy:"fixed"}},{reference:(0,o.withCtx)(()=>[(0,o.createVNode)(X,{class:"d-flow-step-handle-plus",icon:"mdi:plus-circle"})]),default:(0,o.withCtx)(()=>[(0,o.createVNode)(Hi,{"handle-id":"t1","from-node-id":e.id,onAddNode:cA},null,8,["from-node-id"])]),_:1},8,["visible"])):(0,o.createCommentVNode)("",!0)]),_:1},8,["class","position"])]),_:1})):(0,o.createCommentVNode)("",!0),(0,o.createVNode)(L,{placement:"top","show-arrow":!1,"popper-class":"d-flow-step-tooltip"},{content:(0,o.withCtx)(()=>[...H[6]||(H[6]=[(0,o.createElementVNode)("div",{style:{color:"var(--j-color-text-2)"}},[(0,o.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"点击"),(0,o.createTextVNode)("添加节点 ")],-1),(0,o.createElementVNode)("div",{style:{color:"var(--j-color-text-2)"}},[(0,o.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"拖拽"),(0,o.createTextVNode)("连接节点 ")],-1)])]),default:(0,o.withCtx)(()=>[(0,o.createVNode)((0,o.unref)(nn),{onClick:H[3]||(H[3]=Y=>T("s1")),onMousedown:b,id:"s1",class:"d-flow-step-source-handle",type:"source",position:(0,o.unref)(IA).Right,"is-valid-connection":sA},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(U,{visible:y.value.s1,"onUpdate:visible":H[2]||(H[2]=Y=>y.value.s1=Y),placement:"right",trigger:"click","popper-class":"d-flow-step-popper","show-arrow":!1,"popper-options":{strategy:"fixed"}},{reference:(0,o.withCtx)(()=>[(0,o.createVNode)(X,{class:"d-flow-step-handle-plus",icon:"mdi:plus-circle"})]),default:(0,o.withCtx)(()=>[(0,o.createVNode)(Hi,{"handle-id":"s1","from-node-id":e.id,onAddNode:cA},null,8,["from-node-id"])]),_:1},8,["visible"])]),_:1},8,["position"])]),_:1}),(0,o.createVNode)(O,{ref_key:"dropdownRef",ref:lA,"popper-class":"d-flow-step-dropdown","virtual-ref":iA.value,"show-arrow":!1,"popper-options":{modifiers:[{name:"offset",options:{offset:[0,0]}}]},"virtual-triggering":"",trigger:"contextmenu",placement:"bottom-start"},{dropdown:(0,o.withCtx)(()=>[(0,o.createVNode)(N,null,{default:(0,o.withCtx)(()=>[e.data.type!="start"?((0,o.openBlock)(),(0,o.createBlock)(k,{key:0,onClick:v},{default:(0,o.withCtx)(()=>[...H[7]||(H[7]=[(0,o.createTextVNode)("删除",-1)])]),_:1})):(0,o.createCommentVNode)("",!0),m.value.des?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:1,style:(0,o.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})},[H[8]||(H[8]=(0,o.createElementVNode)("div",{style:{"margin-bottom":"4px",color:"var(--j-color-text-2)"}},"关于",-1)),(0,o.createElementVNode)("div",vm,(0,o.toDisplayString)(m.value.des),1)],4)):(0,o.createCommentVNode)("",!0)]),_:1})]),_:1},8,["virtual-ref"])],32)}}}),Qm=ym,Em=(0,o.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:r,onEdgeClick:a,onMoveStart:u,onConnectStart:d,onNodeDragStart:h}=XA(),g=(0,o.computed)(()=>Fi(A)),B=(0,o.ref)(!1),w=(0,o.ref)(!1);t(({edge:T})=>{T.id===A.id&&(B.value=!0)}),n(()=>{B.value=!1});const m=(0,o.ref)(!1),v=()=>{m.value=!1,(0,o.nextTick)(()=>{w.value=!1})},y=()=>{w.value=!0,m.value=!0},I=()=>{v()};return r(()=>{v()}),a(()=>{v()}),u(()=>{v()}),d(()=>{v()}),h(()=>{v()}),(T,D)=>{const V=(0,o.resolveComponent)("j-icon"),b=(0,o.resolveComponent)("el-popover");return(0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[(0,o.createVNode)((0,o.unref)(Gn),{id:e.id,style:(0,o.normalizeStyle)(e.style),path:g.value[0],"marker-end":e.markerEnd},null,8,["id","style","path","marker-end"]),(0,o.createVNode)((0,o.unref)(Ip),null,{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",{style:(0,o.normalizeStyle)({pointerEvents:"all",position:"absolute",transform:`translate(-50%, -50%) translate(${g.value[1]}px,${g.value[2]}px)`}),class:"nodrag nopan"},[(0,o.createVNode)(b,{visible:m.value,"show-arrow":!1,placement:"right","popper-class":"d-flow-step-popper"},{reference:(0,o.withCtx)(()=>[(0,o.withDirectives)((0,o.createElementVNode)("div",{onClick:(0,o.withModifiers)(y,["stop"]),class:"d-flow-edge-button"},[(0,o.createVNode)(V,{icon:"mdi:plus-circle"})],512),[[o.vShow,B.value||w.value]])]),default:(0,o.withCtx)(()=>[(0,o.createVNode)(Hi,{"handle-id":"line","from-node-id":e.id,onAddNode:I},null,8,["from-node-id"])]),_:1},8,["visible"])],4)]),_:1})],64)}}}),Fm=Em,Um=(0,o.defineComponent)({name:"DFlow",__name:"flow",props:{nodes:{default:()=>[]},edges:{default:()=>[]}},setup(e){return(A,t)=>((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(Lp),{"min-zoom":.2,"max-zoom":4,"default-viewport":{zoom:1},"connection-mode":(0,o.unref)(nt).Strict,nodes:e.nodes,edges:e.edges},{"edge-button":(0,o.withCtx)(n=>[(0,o.createVNode)(Fm,{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,o.normalizeStyle)(n.style)},null,8,["id","source-x","source-y","target-x","target-y","source-position","target-position","marker-end","style"])]),"node-step":(0,o.withCtx)(n=>[(0,o.createVNode)(Qm,(0,o.normalizeProps)((0,o.guardReactiveProps)(n)),null,16)]),default:(0,o.withCtx)(()=>[(0,o.createVNode)((0,o.unref)(hm),{position:"bottom-left"}),(0,o.createVNode)((0,o.unref)(Gp))]),_:1},8,["connection-mode","nodes","edges"]))}}),bm=Um,Hm={class:"d-flow-design"},Im={class:"d-flow-design-canvas"},_m={class:"d-flow-design-right"},Sm={class:"d-flow-design-title"},xm={class:"d-flow-design-title-name"},Dm={class:"d-flow-design-panel"},Nm=(0,o.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,r=t,{addNodes:a,addEdges:u,removeEdges:d,addSelectedNodes:h,removeSelectedNodes:g,onConnect:B,onNodeClick:w,onPaneClick:m,onEdgeClick:v,getNodes:y,getEdges:I}=XA(),T=(0,o.computed)(()=>{const N={};return n.components.forEach(O=>{N[O.type]=O}),N.start={name:"开始",type:"start",icon:"ant-design:play-circle-outlined",des:"执行开始节点"},N}),D={id:"start",type:"step",data:{type:"start",isInit:!1},position:{x:80,y:160}},V=(0,o.ref)([D]),b=(0,o.ref)([]),K=(N,O)=>{if(O.indexOf("t")===-1){const Y=I.value.filter(tA=>tA.source===N.id);if(Y.length>0){let tA=-1e6,BA=0;return Y.forEach(HA=>{tA=Math.max(tA,HA.targetNode.position.y+HA.targetNode.dimensions.height+32),BA=HA.targetNode.position.x||0}),{x:BA,y:tA}}return{x:N.position.x+N.dimensions.width+100,y:N.position.y}}return{x:N.position.x-100-N.dimensions.width,y:N.position.y}},sA=(N,O,Y)=>{const tA=y.value.find(HA=>HA.id===O);if(!tA)return;const BA={id:gt(),type:"step",data:{type:N},position:K(tA,Y)};if(n.flowInit){const HA=n.flowInit(BA.data.type);HA&&Object.keys(HA).forEach(nA=>{BA.data[nA]=HA[nA]})}a(BA),Y.indexOf("t")===-1?u({id:`${O}-${BA.id}`,source:O,target:BA.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:rt.Arrow}):u({id:`${O}-${BA.id}`,source:BA.id,target:O,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:rt.Arrow}),S(BA.id)},W=N=>{const O=y.value.find(Y=>Y.id===N);O&&(O.position.x+=100+O.dimensions.width,I.value.filter(Y=>Y.source===N).forEach(Y=>{W(Y.target)}))},cA=(N,O)=>{const Y=I.value.find(BA=>BA.id===O);if(!Y)return;const tA={id:gt(),type:"step",data:{type:N},position:{x:Y.targetNode.position.x,y:Y.targetNode.position.y}};if(n.flowInit){const BA=n.flowInit(tA.data.type);BA&&Object.keys(BA).forEach(HA=>{tA.data[HA]=BA[HA]})}a(tA),u({id:`${Y.sourceNode.id}-${tA.id}`,source:Y.sourceNode.id,target:tA.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:rt.Arrow}),u({id:`${tA.id}-${Y.targetNode.id}`,source:tA.id,target:Y.targetNode.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:rt.Arrow}),d(O),W(Y.target),S(tA.id)};B(N=>{console.log("onConnect",N),N.type="button",N.markerEnd=rt.Arrow,u(N),r("connect",N)});const lA=()=>n.components||[],oA=(0,o.ref)(),iA=(0,o.computed)(()=>oA.value?T.value[oA.value.data.type]:void 0);w(N=>{oA.value?.id!==N.node.id&&(oA.value=N.node,X()),r("nodeClick",N.node)}),m(()=>{oA.value=void 0,r("paneClick")}),v(N=>{oA.value=void 0,r("edgeClick",N.edge)});const AA=N=>{oA.value?.id===N&&(oA.value=void 0)},S=N=>{oA.value&&g([oA.value]),oA.value=y.value.find(O=>O.id===N),oA.value&&(X(),setTimeout(()=>{oA.value&&h([oA.value])},100))},eA=(0,o.ref)(),H={};Object.keys(n.flowComponentConfigs).forEach(N=>{const O={type:"j-collapse",config:{defaultValue:[]},children:[]};n.flowComponentConfigs[N].forEach((Y,tA)=>{const BA=`_collapse${tA}`;O.config?.defaultValue.push(BA),O.children?.push(Y)}),H[N]=[O]});const X=()=>{const N=H[oA.value?.data.type||""];N&&eA.value?(eA.value.init&&eA.value.init(N,oA.value?.data),n.flowComponentConfigInit&&n.flowComponentConfigInit({configRef:eA,inputParams:n.inputParams,components:y.value,configData:oA.value?.data})):eA.value&&eA.value.init&&eA.value.init([])},U=(N,O)=>{oA.value&&n.flowComponentConfigChange&&n.flowComponentConfigChange(oA.value.data.type,{configRef:eA,component:N,configData:oA.value.data,...O,isFlowNode:!0})};return(0,o.provide)("d_flow_design_provide",{getFlowComponents:lA,addNode:sA,addNodeByLine:cA,onRemoveNode:AA,getFlowComponentMap:T}),A({getData:()=>{const N=[];return y.value.forEach(O=>{N.push({config:O.data,id:O.id,position:O.position,type:O.type})}),I.value.forEach(O=>{N.push({id:O.id,source:O.source,target:O.target,sourceHandle:O.sourceHandle,targetHandle:O.targetHandle,type:"line",config:{},position:{x:0,y:0}})}),N},setData:N=>{if(!N||N.length===0)D.data.isInit=!0,V.value=[D],S(D.id);else{D.data.isInit=!1;const O=[],Y=[];N.forEach(tA=>{if(tA.type==="line")tA.type="button",tA.markerEnd=rt.Arrow,Y.push(tA);else{const BA={id:tA.id,type:tA.type,data:tA.config,position:tA.position};O.push(BA)}}),V.value=O,b.value=Y}}}),(N,O)=>{const Y=(0,o.resolveComponent)("j-icon"),tA=(0,o.resolveComponent)("j-form");return(0,o.openBlock)(),(0,o.createElementBlock)("div",Hm,[(0,o.createElementVNode)("div",Im,[(0,o.createVNode)(bm,{nodes:V.value,edges:b.value},null,8,["nodes","edges"])]),(0,o.withDirectives)((0,o.createElementVNode)("div",_m,[(0,o.createElementVNode)("div",Sm,[(0,o.createElementVNode)("div",{class:"d-flow-design-title-icon",style:(0,o.normalizeStyle)({backgroundColor:iA.value?.iconColor||"var(--j-color-primary)"})},[(0,o.createVNode)(Y,{icon:iA.value?.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,o.createElementVNode)("div",xm,(0,o.toDisplayString)(iA.value?.name||""),1)]),(0,o.createElementVNode)("div",Dm,[(0,o.createVNode)(tA,{config:{labelPosition:"top"},style:{padding:"0"},ref_key:"configRef",ref:eA,onChange:U},null,512)])],512),[[o.vShow,oA.value&&H[oA.value.data.type]]])])}}}),Lm=Nm,hl=ft(Lm),Tm={class:"d-input-flow j-block"},km=(0,o.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,r=(0,o.ref)(),a=(0,o.computed)({get(){return t.modelValue},set(w){n("update:modelValue",w)}}),u=(0,o.computed)(()=>(t.modelValue?.trim(),t.btnText)),d=w=>{const m=typeof w=="string"?w:void 0;try{r.value?.setData(JSON.parse(m||"[]"))}catch{r.value?.setData([])}},h=async()=>{const w=r.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,o.resolveComponent)("d-flow-design"),y=(0,o.resolveComponent)("j-input-button");return(0,o.openBlock)(),(0,o.createBlock)(y,(0,o.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]=I=>a.value=I),onChange:B}),{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",Tm,[(0,o.createVNode)(v,{ref_key:"flowRef",ref:r,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"])}}}),Mm=km,Bl=ft(Mm),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 r=t.querySelectorAll(A);if(!r.length&&A[0]!=="."&&A[0]!=="#"&&(r=t.querySelectorAll("."+A),r.length||(r=t.querySelectorAll("#"+A)),!r.length)){const a=t.querySelector(`[gs-id="${A}"]`);return a?[a]:[]}return Array.from(r)}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 r=t.querySelector(A);return n&&!r&&(r=n.getElementById(A)),r||(r=t.querySelector("."+A)),r}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(r=>{r&&n.classList.add(r)}),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,r=A.x+A.w<t.x+t.w?A.x+A.w:t.x+t.w;if(r<=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:(r-n)*(u-a)}static area(A){return A.w*A.h}static sort(A,t=1){return A.sort((r,a)=>{const u=t*((r.y??1e4)-(a.y??1e4));return u===0?t*((r.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 r=A.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%|cm|mm)?$/);if(!r)throw new Error(`Invalid height val = ${A}`);n=r[2]||"px",t=parseFloat(r[1])}else t=A;return{h:t,unit:n}}static defaults(A,...t){return t.forEach(n=>{for(const r in n){if(!n.hasOwnProperty(r))return;A[r]===null||A[r]===void 0?A[r]=n[r]:typeof n[r]=="object"&&typeof A[r]=="object"&&Le.defaults(A[r],n[r])}}),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 r=A[n],a=t[n];n[0]==="_"||r===a?delete A[n]:r&&typeof r=="object"&&a!==void 0&&(Le.removeInternalAndSame(r,a),Object.keys(r).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(...r)=>{n||(n=!0,setTimeout(()=>{A(...r),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 r=Le.getScrollElement(A);if(!r)return;const a=A.getBoundingClientRect(),u=r.getBoundingClientRect(),d=window.innerHeight||document.documentElement.clientHeight,h=a.bottom-Math.min(u.bottom,d),g=a.top-Math.max(u.top,0),B=r.scrollTop;g<0&&n<0?A.offsetHeight>u.height?r.scrollTop+=n:r.scrollTop+=Math.abs(g)>Math.abs(n)?n:g:h>0&&n>0&&(A.offsetHeight>u.height?r.scrollTop+=n:r.scrollTop+=h>n?n:h),t.top+=r.scrollTop-B}static updateScrollResize(A,t,n){const r=Le.getScrollElement(t),a=r.clientHeight,u=r===Le.getScrollElement()?0:r.getBoundingClientRect().top,d=A.clientY-u,h=d<n,g=d>a-n;h?r.scrollBy({behavior:"smooth",top:d-n}):g&&r.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 r in n)n.hasOwnProperty(r)&&typeof n[r]=="object"&&r.substring(0,2)!=="__"&&!t.find(a=>a===r)&&(n[r]=Le.cloneDeep(A[r]));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(r=>{A.style[n]=r}):A.style[n]=t[n])}static initEvent(A,t){const n={type:t.type},r={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,...r}}static simulateMouseEvent(A,t,n){const r=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:r.ctrlKey??!1,altKey:r.altKey??!1,shiftKey:r.shiftKey??!1,metaKey:r.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 r=A[t];A[t]=A[n],A[n]=r}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)}},Ii=class Qn{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,r={}){if(this.sortNodes(-1),n=n||this.collide(A,t),!n)return!1;if(A._moving&&!r.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,r.skip));let u=!1;const d={nested:!0,pack:!1};let h=0;for(;n=n||this.collide(A,a,r.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&&r.pack&&(this._packNodes(),t.y=n.y+n.h,q.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 r=A._id,a=n?._id;return this.nodes.find(u=>u._id!==r&&u._id!==a&&q.isIntercepted(u,t))}collideAll(A,t=A,n){const r=A._id,a=n?._id;return this.nodes.filter(u=>u._id!==r&&u._id!==a&&q.isIntercepted(u,t))}directionCollideCoverage(A,t,n){if(!t.rect||!A._rect)return;const r=A._rect,a={...t.rect};a.y>r.y?(a.h+=a.y-r.y,a.y=r.y):a.h+=r.y-a.y,a.x>r.x?(a.w+=a.x-r.x,a.x=r.x):a.w+=r.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;r.y<g.y?B=(a.y+a.h-g.y)/g.h:r.y+r.h>g.y+g.h&&(B=(g.y+g.h-a.y)/g.h),r.x<g.x?w=(a.x+a.w-g.x)/g.w:r.x+r.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,r,a,u){return this.nodes.forEach(d=>d._rect={y:d.y*t+n,x:d.x*A+u,w:d.w*A-u-r,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 r;if(A.w===t.w&&A.h===t.h&&(A.x===t.x||A.y===t.y)&&(r=q.isTouching(A,t)))return n();if(r!==!1){if(A.w===t.w&&A.x===t.x&&(r||(r=q.isTouching(A,t)))){if(t.y<A.y){const a=A;A=t,t=a}return n()}if(r!==!1){if(A.h===t.h&&A.y===t.y&&(r||(r=q.isTouching(A,t)))){if(t.x<A.x){const a=A;A=t,t=a}return n()}return!1}}}isAreaEmpty(A,t,n,r){const a={x:A||0,y:t||0,w:n||1,h:r||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 r=this._inColumnResize;r||(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)}),r||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??Qn._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 r={x:0,y:0,w:1,h:1};return q.defaults(A,r),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=r.x,A.autoPosition=!0),isNaN(A.y)&&(A.y=r.y,A.autoPosition=!0),isNaN(A.w)&&(A.w=r.w),isNaN(A.h)&&(A.h=r.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 r={...A};r.autoPosition||r.x===void 0?(delete r.x,delete r.y):r.x=Math.min(this.defaultColumn-1,r.x),r.w=Math.min(this.defaultColumn,r.w||1),this.cacheOneLayout(r,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,r){const a=r?r.y*n+(r.x+r.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=>q.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 r=this.nodes.find(u=>u._id===A._id);if(r)return r;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(r=>r._id===A._id)?(n&&this.removedNodes.push(A),t&&(A._removeDOM=!0),this.nodes=this.nodes.filter(r=>r._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(r=>r._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 r=new Qn({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=r.moveNode(n,t)&&r.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?(r.nodes.filter(u=>u._dirty).forEach(u=>{const d=this.nodes.find(h=>h._id===u._id);d&&(q.copyPos(d,u),d._dirty=!0)}),this._notify(),!0):!1}willItFit(A){if(delete A._willFitPos,!this.maxRow)return!0;const t=new Qn({column:this.column,float:this.float,nodes:this.nodes.map(r=>({...r}))}),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 r=A.w!==t.w||A.h!==t.h,a=q.copyPos({},A,!0);if(q.copyPos(a,t),this.nodeBoundFix(a,r),q.copyPos(t,a),!t.forceCollide&&q.samePos(A,t))return!1;const u=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),v=q.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&&!q.samePos(A,a)&&(A._dirty=!0,q.copyPos(A,a)),t.pack&&this._packNodes()._notify(),!q.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 r=this._layouts?.length||0;let a;r&&(n?n!==this.column&&(a=this._layouts[n]):this.column!==r-1&&(a=this._layouts[r-1]));const u=[];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),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 r=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*r),u.x<0&&(u.x=0)),a.w!==a._orig.w&&(u.w=Math.round(a.w*r),u.w<1&&(u.w=1)))})}}),this)}columnChanged(A,t,n="moveScale"){if(!this.nodes.length||!t||A===t)return this;const r=n==="compact"||n==="list";r&&this.sortNodes(1),t<A&&this.cacheLayout(this.nodes,A),this.batchUpdate();let a=[],u=r?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=u.find(w=>w._id===g._id);B&&(!r&&!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(r){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(r)this.compact(n,!1);else{if(u.length)if(typeof n=="function")n(t,A,a,u);else{const d=r||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=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,!r),delete this._inColumnResize,this}cacheLayout(A,t,n=!1){const r=[];return A.forEach((a,u)=>{a._id===void 0&&(a._id=(a.id?this.nodes.find(d=>d.id===a.id):void 0)?._id??Qn._idSeq++),r[u]={x:a.x,y:a.y,w:a.w,_id:a._id}}),this._layouts=n?[]:this._layouts||[],this._layouts[t]=r,this}cacheOneLayout(A,t){A._id=A._id??Qn._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 r=this.findCacheLayout(A,t);return r===-1?this._layouts[t].push(n):this._layouts[t][r]=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}};Ii._idSeq=0;var Ue={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{},Oe=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 zr(e,A){e.touches.length>1||(e.cancelable&&e.preventDefault(),q.simulateMouseEvent(e.changedTouches[0],A))}function pl(e,A){e.cancelable&&e.preventDefault(),q.simulateMouseEvent(e,A)}function Xr(e){be.touchHandled||(be.touchHandled=!0,zr(e,"mousedown"))}function $r(e){be.touchHandled&&zr(e,"mousemove")}function Yr(e){if(!be.touchHandled)return;be.pointerLeaveTimeout&&(window.clearTimeout(be.pointerLeaveTimeout),delete be.pointerLeaveTimeout);const A=!!TA.dragElement;zr(e,"mouseup"),A||zr(e,"click"),be.touchHandled=!1}function Wr(e){e.pointerType!=="mouse"&&e.target.releasePointerCapture(e.pointerId)}function ml(e){TA.dragElement&&e.pointerType!=="mouse"&&pl(e,"mouseenter")}function wl(e){TA.dragElement&&e.pointerType!=="mouse"&&(be.pointerLeaveTimeout=window.setTimeout(()=>{delete be.pointerLeaveTimeout,pl(e,"mouseleave")},10))}var Cl=class Qu{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(`${Qu.prefix}${this.dir}`),this.el.style.zIndex="100",this.el.style.userSelect="none",this.el.addEventListener("mousedown",this._mouseDown),Oe&&(this.el.addEventListener("touchstart",Xr),this.el.addEventListener("pointerdown",Wr)),this}destroy(){return this.moving&&this._mouseUp(this.mouseDownEvent),this.el.removeEventListener("mousedown",this._mouseDown),Oe&&(this.el.removeEventListener("touchstart",Xr),this.el.removeEventListener("pointerdown",Wr)),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),Oe&&(this.el.addEventListener("touchmove",$r),this.el.addEventListener("touchend",Yr)),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),Oe&&(this.el.removeEventListener("touchmove",$r),this.el.removeEventListener("touchend",Yr)),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}};Cl.prefix="ui-resizable-";var _i=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)}},vl=class gs extends _i{constructor(A,t={}){super(),this.el=A,this.option=t,this.rectScale={x:1,y:1},this._ui=()=>{const n=this.el.parentElement.getBoundingClientRect(),r={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},a=this.temporalRect||r;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(r=>this.option[r]=A[r]),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 Cl(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=gs._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 gs._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,r={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?r.width+=a:t.indexOf("w")>-1&&(r.width-=a,r.left+=a,d=!0),t.indexOf("s")>-1?r.height+=u:t.indexOf("n")>-1&&(r.height-=u,r.top+=u,h=!0);const g=this._constrainSize(r.width,r.height,d,h);return Math.round(r.width)!==Math.round(g.width)&&(t.indexOf("w")>-1&&(r.left+=r.width-g.width),r.width=g.width),Math.round(r.height)!==Math.round(g.height)&&(t.indexOf("n")>-1&&(r.top+=r.height-g.height),r.height=g.height),r}_constrainSize(A,t,n,r){const a=this.option,u=(n?a.maxWidthMoveLeft:a.maxWidth)||Number.MAX_SAFE_INTEGER,d=a.minWidth/this.rectScale.x||A,h=(r?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],r=t==="width"||t==="left"?this.rectScale.x:t==="height"||t==="top"?this.rectScale.y:1;this.el.style[t]=(n-A[t])*r+"px"}),this):this}_removeHandlers(){return this.handlers.forEach(A=>A.destroy()),delete this.handlers,this}};vl._originStyleProp=["width","height","position","left","top","opacity","zIndex"];var Om='input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle',yl=class hs extends _i{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),r=A.gridstackNode;this.dragEls=!n||A.classList.contains(n)?[A]:r?.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),Oe&&(A.addEventListener("touchstart",Xr),A.addEventListener("pointerdown",Wr))}),this.el.classList.remove("ui-draggable-disabled"))}disable(A=!1){this.disabled!==!0&&(super.disable(),this.dragEls.forEach(t=>{t.removeEventListener("mousedown",this._mouseDown),Oe&&(t.removeEventListener("touchstart",Xr),t.removeEventListener("pointerdown",Wr))}),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),!TA.mouseHandled)return A.button!==0||!this.dragEls.find(t=>t===A.target)&&A.target.closest(Om)||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),Oe&&(A.currentTarget.addEventListener("touchmove",$r),A.currentTarget.addEventListener("touchend",Yr)),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 r=q.initEvent(A,{target:this.el,type:"dragstart"});this.option.start&&this.option.start(r,this.ui()),this.triggerEvent("dragstart",r),document.addEventListener("keydown",this._keyEvent)}return!0}_mouseUp(A){if(document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),Oe&&A.currentTarget&&(A.currentTarget.removeEventListener("touchmove",$r,!0),A.currentTarget.removeEventListener("touchend",Yr,!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=hs.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",hs.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,r=this.dragOffset;n.left=(A.clientX+r.offsetLeft-t.left)*this.dragTransform.xScale+"px",n.top=(A.clientY+r.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 r=0,a=0;n&&(r=this.dragTransform.xOffset,a=this.dragTransform.yOffset);const u=t.getBoundingClientRect();return{left:u.left,top:u.top,offsetLeft:-A.clientX+u.left-r,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}}}};yl.originStyleProp=["width","height","transform","transform-origin","transition","pointerEvents","position","left","top","minWidth","willChange"];var Km=class extends _i{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),Oe&&(this.el.addEventListener("pointerenter",ml),this.el.addEventListener("pointerleave",wl)))}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),Oe&&(this.el.removeEventListener("pointerenter",ml),this.el.removeEventListener("pointerleave",wl)))}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||be.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,r=this.el.parentElement;for(;!n&&r;)n=r.ddElement?.ddDroppable,r=r.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()}}},Rm=class Eu{static init(A){return A.ddElement||(A.ddElement=new Eu(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 yl(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 vl(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 Km(this.el,A),this}cleanDroppable(){return this.ddDroppable&&(this.ddDroppable.destroy(),delete this.ddDroppable),this}},Vm=class{resizable(e,A,t,n){return this._getDDElements(e,A).forEach(r=>{if(A==="disable"||A==="enable")r.ddResizable&&r.ddResizable[A]();else if(A==="destroy")r.ddResizable&&r.cleanResizable();else if(A==="option")r.setupResizable({[t]:n});else{const a=r.el.gridstackNode.grid;let u=r.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;r.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(r=>{if(A==="disable"||A==="enable")r.ddDraggable&&r.ddDraggable[A]();else if(A==="destroy")r.ddDraggable&&r.cleanDraggable();else if(A==="option")r.setupDraggable({[t]:n});else{const a=r.el.gridstackNode.grid;r.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=r=>A._accept(r)),this._getDDElements(e,A).forEach(r=>{A==="disable"||A==="enable"?r.ddDroppable&&r.ddDroppable[A]():A==="destroy"?r.ddDroppable&&r.cleanDroppable():A==="option"?r.setupDroppable({[t]:n}):r.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,r=>{t(r,TA.dragElement?TA.dragElement.el:r.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(r=>r.ddElement||(t?Rm.init(r):null)).filter(r=>r):[]}},me=new Vm,rn=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 r=n.gridstack;return t&&(r.opts={...r.opts,...t}),t.children!==void 0&&r.load(t.children),r}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,Ue.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 r=t.columnOpts;if(r){const h=r.breakpoints;!r.columnWidth&&!h?.length?delete t.columnOpts:(r.columnMax=r.columnMax||12,h?.length>1&&h.sort((g,B)=>(B.w||0)-(g.w||0)))}const a={...q.cloneDeep(Ue),column:q.toNumber(A.getAttribute("gs-column"))||Ue.column,minRow:n||q.toNumber(A.getAttribute("gs-min-row"))||Ue.minRow,maxRow:n||q.toNumber(A.getAttribute("gs-max-row"))||Ue.maxRow,staticGrid:q.toBool(A.getAttribute("gs-static"))||Ue.staticGrid,sizeToContent:q.toBool(A.getAttribute("gs-size-to-content"))||void 0,draggable:{handle:(t.handleClass?"."+t.handleClass:t.handle?t.handle:"")||Ue.draggable.handle},removableOptions:{accept:t.itemClass||Ue.removableOptions.accept,decline:Ue.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 u=this.el.closest("."+Ue.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!==Ue.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=Oe),this._setStaticClass();const d=t.engineClass||LA.engineClass||Ii;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 r=this._readAttr(t);return q.defaults(A,r),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(([r])=>{r.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,r=!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=q.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(r&&(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 v=h?t.column:a.w,y=a.h+n.h,I=a.el.style;I.transition="none",this.update(a.el,{w:v,h:y}),setTimeout(()=>I.transition=null)}const m=a.subGrid=LA.addGrid(g,t);return n?._moving&&(m._isTemp=!0),h&&(m._autoColumn=!0),r&&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,r){const a=this.engine.save(A,n,r);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=q.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,q.removeInternalAndSame(u,Ue),u.children=a,u}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 r=0;A.forEach(B=>{r=Math.max(r,(B.x||0)+B.w)}),r>this.engine.defaultColumn&&(this.engine.defaultColumn=r),r>n&&(this.engine.nodes.length===0&&this.responseLayout?(this.engine.nodes=A,this.engine.columnChanged(r,n,this.responseLayout),A=this.engine.nodes,this.engine.nodes=[],delete this.responseLayout):this.engine.cacheLayout(A,r,!0));const a=LA.addRemoveCB;typeof t=="function"&&(LA.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&&(q.find(A,B.id)||(LA.addRemoveCB&&LA.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=>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=u,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 r=q.toNumber(t.getAttribute("gs-h"))||1;return Math.round(t.offsetHeight/r)}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 r=this._widthOrContainer(!0);if(A.columnWidth)n=Math.min(Math.round(r/A.columnWidth)||1,A.columnMax);else{n=A.columnMax;let a=0;for(;a<A.breakpoints.length&&r<=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 r;t?r={top:n.top+document.documentElement.scrollTop,left:n.left}:r={top:this.el.offsetTop,left:this.el.offsetLeft};const a=A.left-r.left,u=A.top-r.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,r){return this.engine.isAreaEmpty(A,t,n,r)}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 r=n.gridstackNode;this._updateContainerHeight(),r.subGridOpts&&this.makeSubGrid(n,r.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(r=>{if(r.parentElement&&r.parentElement!==this.el)return;let a=r.gridstackNode;a||(a=this.engine.nodes.find(u=>r===u.el)),a&&(t&&LA.addRemoveCB&&LA.addRemoveCB(this.el,a,!1,!1),delete r.gridstackNode,this._removeDD(r),this.engine.removeNode(a,t,n),t&&r.parentElement&&r.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(r=>{this.prepareDragDrop(r.el),r.subGrid&&n&&r.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 r=n?.gridstackNode;if(!r)return;const a={...q.copyPos({},r),...q.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]!==r[B])&&(d={},u.forEach(B=>{d[B]=a[B]!==void 0?a[B]:r[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&&(r.content=a.content,LA.renderCB(B,a),r.subGrid?.el&&(B.appendChild(r.subGrid.el),r.subGrid._updateContainerHeight())),delete a.content}let h=!1,g=!1;for(const B in a)B[0]!=="_"&&r[B]!==a[B]&&(r[B]=a[B],h=!0,g=g||!this.opts.staticGrid&&(B==="noResize"||B==="noMove"||B==="locked"));if(q.sanitizeMinMax(r),d){const B=d.w!==void 0&&d.w!==r.w;this.moveNode(r,d),B&&r.subGrid?r.subGrid.onResize(this.hasAnimationCSS()?r.w:void 0):this.resizeToContentCheck(B,r),delete r._orig}(d||h)&&this._writeAttr(n,r),g&&this.prepareDragDrop(r.el),LA.updateCB&&LA.updateCB(r)}),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 r=n.getCellHeight(!0);if(!r)return;let a=t.h?t.h*r:A.clientHeight,u;if(t.resizeToContentParent&&(u=A.querySelector(t.resizeToContentParent)),u||(u=A.querySelector(LA.resizeToContentParent)),!u)return;const d=A.clientHeight-u.clientHeight,h=t.h?t.h*r-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} '${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/r);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 r=n.gridstackNode;if(!q.canBeRotated(r))return;const a={w:r.h,h:r.w,minH:r.minW,minW:r.minH,maxH:r.maxW,maxW:r.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=r.x+d-(r.h-(h+1)),a.y=r.y+h-d}Object.keys(a).forEach(d=>{a[d]===void 0&&delete a[d]});const u=r._orig;this.update(n,a),r._orig=u}),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 r=this;for(;r.parentGridNode;)r=r.parentGridNode.grid;return r.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,r=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===r){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+r),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(Ue.itemClass,this.opts.itemClass);const r=q.shouldSizeToContent(n);return r?A.classList.add("size-to-content"):A.classList.remove("size-to-content"),r&&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 r in n)t[r]?A.setAttribute(n[r],String(t[r])):A.removeAttribute(n[r]);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 r=A.getAttribute("gs-size-to-content");r&&(r==="true"||r==="false"?n.sizeToContent=q.toBool(r):n.sizeToContent=parseInt(r,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(r=>{q.shouldSizeToContent(r)&&this.resizeToContentCBCheck(r.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 r=this.el.style;return r.setProperty("--gs-item-margin-top",`${this.opts.marginTop}${this.opts.marginUnit}`),r.setProperty("--gs-item-margin-bottom",`${this.opts.marginBottom}${this.opts.marginUnit}`),r.setProperty("--gs-item-margin-right",`${this.opts.marginRight}${this.opts.marginUnit}`),r.setProperty("--gs-item-margin-left",`${this.opts.marginLeft}${this.opts.marginUnit}`),this}static getDD(){return me}static setupDragIn(A,t,n,r=document){t?.pause!==void 0&&(TA.pauseDrag=t.pause),t={appendTo:"body",helper:"clone",...t||{}},(typeof A=="string"?q.getElements(A,r):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:(LA.getElements(A).forEach(n=>{const r=n.gridstackNode;r&&(t?delete r.noMove:r.noMove=!0,this.prepareDragDrop(r.el))}),this)}resizable(A,t){return this.opts.staticGrid?this:(LA.getElements(A).forEach(n=>{const r=n.gridstackNode;r&&(t?delete r.noResize:r.noResize=!0,this.prepareDragDrop(r.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 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=(r,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)*(r.clientX-m.x)/this.dragTransform.xScale+"px",u.style.top=m.y+(this.dragTransform.yScale-1)*(r.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&&(q.copyPos(d,d._willFitPos),delete d._willFitPos)}this._onStartMoving(u,r,w,d,t,A)}else this._dragOrResize(u,r,w,d,t,A)};return me.droppable(this.el,{accept:r=>{const a=r.gridstackNode||this._readAttr(r,!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(r);else{const d=this.opts.acceptWidgets===!0?".grid-stack-item":this.opts.acceptWidgets;u=r.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",(r,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),LA._itemRemoving(d.el,!1),me.on(a,"drag",n),n(r,a,u),!1}).on(this.el,"dropout",(r,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",(r,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 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({...r,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)=>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 r=n.noMove||this.opts.disableDrag,a=n.noResize||this.opts.disableResize,u=this.opts.staticGrid||r&&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,y=m.target;if(!(!y.gridstackNode||y.gridstackNode.grid!==this)){if(n.el=y,n._isAboutToRemove){const I=A.gridstackNode.grid;I._gsEventHandler[m.type]&&I._gsEventHandler[m.type](m,y),I.engine.nodes.push(n),I.removeWidget(A,!0,!0)}else q.removePositioningStyles(y),n._temporaryRemoved?(this._writePosAttr(y,n),this.engine.addNode(n)):this._writePosAttr(y,n),this.triggerEvent(m,y);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,r?"disable":"enable").resizable(A,a?"disable":"enable"),this}_onStartMoving(A,t,n,r,a,u){if(this.engine.cleanNodes().beginUpdate(r),this._writePosAttr(this.placeholder,r),this.el.appendChild(this.placeholder),this.placeholder.gridstackNode=r,r.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(r.el=this.placeholder,r._lastUiPosition=n.position,r._prevYPix=n.position.top,r._moving=t.type==="dragstart",r._resizing=t.type==="resizestart",delete r._lastTried,t.type==="dropover"&&r._temporaryRemoved&&(this.engine.addNode(r),r._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()-r.x,h=(this.opts.maxRow||Number.MAX_SAFE_INTEGER)-r.y;me.resizable(A,"option","minWidth",a*Math.min(r.minW||1,d)).resizable(A,"option","minHeight",u*Math.min(r.minH||1,h)).resizable(A,"option","maxWidth",a*Math.min(r.maxW||Number.MAX_SAFE_INTEGER,d)).resizable(A,"option","maxWidthMoveLeft",a*Math.min(r.maxW||Number.MAX_SAFE_INTEGER,r.x+r.w)).resizable(A,"option","maxHeight",u*Math.min(r.maxH||Number.MAX_SAFE_INTEGER,h)).resizable(A,"option","maxHeightMoveUp",u*Math.min(r.maxH||Number.MAX_SAFE_INTEGER,r.y+r.h))}}_dragOrResize(A,t,n,r,a,u){const d={...r._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),y=Math.round(a*.1);if(g=Math.min(g,y),B=Math.min(B,y),w=Math.min(w,v),m=Math.min(m,v),t.type==="drag"){if(r._temporaryRemoved)return;const T=n.position.top-r._prevYPix;r._prevYPix=n.position.top,this.opts.draggable.scroll!==!1&&q.updateScrollPosition(A,n.position,T);const D=n.position.left+(n.position.left>r._lastUiPosition.left?-B:g),V=n.position.top+(n.position.top>r._lastUiPosition.top?-m:w);d.x=Math.round(D/a),d.y=Math.round(V/u);const b=this._extraDragRow;if(this.engine.collide(r,d)){const K=this.getRow();let sA=Math.max(0,d.y+r.h-K);this.opts.maxRow&&K+sA>this.opts.maxRow&&(sA=Math.max(0,this.opts.maxRow-K)),this._extraDragRow=sA}else this._extraDragRow=0;if(this._extraDragRow!==b&&this._updateContainerHeight(),r.x===d.x&&r.y===d.y)return}else if(t.type==="resize"){if(d.x<0||(q.updateScrollResize(t,A,u),d.w=Math.round((n.size.width-g)/a),d.h=Math.round((n.size.height-w)/u),r.w===d.w&&r.h===d.h)||r._lastTried&&r._lastTried.w===d.w&&r._lastTried.h===d.h)return;const T=n.position.left+g,D=n.position.top+w;d.x=Math.round(T/a),d.y=Math.round(D/u),h=!0}r._event=t,r._lastTried=d;const I={x:n.position.left+g,y:n.position.top+w,w:(n.size?n.size.width:r.w*a)-g-B,h:(n.size?n.size.height:r.h*u)-w-m};if(this.engine.moveNodeCheck(r,{...d,cellWidth:a,cellHeight:u,rect:I,resizing:h})){r._lastUiPosition=n.position,this.engine.cacheRects(a,u,w,B,m,g),delete r._skipDown,h&&r.subGrid&&r.subGrid.onResize(),this._extraDragRow=0,this._updateContainerHeight();const T=t.target;r._sidebarOrig||this._writePosAttr(T,r),this.triggerEvent(t,T)}}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 r=n._sidebarOrig;n._isExternal&&this.engine.cleanupNode(n),n._sidebarOrig=r,this.opts.removable===!0&&LA._itemRemoving(A,!0),A._gridstackNodeOrig?(A.gridstackNode=A._gridstackNodeOrig,delete A._gridstackNodeOrig):n._isExternal&&this.engine.restoreInitial()}};rn.renderCB=(e,A)=>{e&&A?.content&&(e.textContent=A.content)},rn.resizeToContentParent=".grid-stack-item-content",rn.Utils=q,rn.Engine=Ii,rn.GDRev="12.4.2";var Pm={class:"d-layout"},Gm=["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"],zm=(0,o.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,r=t,a=(0,o.ref)();let u=null;const d=async()=>{a.value&&(await(0,o.nextTick)(),u&&u.destroy(!1),u=rn.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 y=v[0];y&&(r("added",h(y)),B())}),u.on("removed",(m,v)=>{const y=v[0];y&&(r("removed",h(y)),B())}),u.on("change",()=>{B(),r("changed",(u?.save()||[]).map(m=>h(m)))}),u.on("dragstart",(m,v)=>{v&&r("dragStart",m,h(v.gridstackNode||v))}),u.on("dragstop",(m,v)=>{v&&r("dragStop",m,h(v.gridstackNode||v))}),u.on("resizestart",(m,v)=>{v&&r("resizeStart",m,h(v.gridstackNode||v))}),u.on("resizestop",(m,v)=>{v&&r("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,o.nextTick)();const m=u.engine.nodes;new Set(m.map(y=>y.id));const v=new Set(n.modelValue.map(y=>y.id));m.forEach(y=>{if(!v.has(y.id||"")){const I=y.el;I&&u&&u.removeWidget(I,!1)}}),n.modelValue.forEach(y=>{const I=m.find(T=>T.id===y.id);if(I)I.el&&u&&u.update(I.el,{x:y.x,y:y.y,w:y.w,h:y.h,locked:y.locked,noResize:y.noResize,noMove:y.noMove,minW:y.minW,minH:y.minH,maxW:y.maxW,maxH:y.maxH});else{if(!a.value||!u)return;const T=a.value.querySelector(`[gs-id="${y.id}"]`);T&&u.makeWidget(T)}})},B=()=>{u&&r("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},y=n.modelValue.find(I=>I.id===v.id);return y&&Object.keys(y).forEach(I=>{["id","x","y","w","h"].includes(I)||(v[I]=y[I])}),v}))},w=(0,o.computed)(()=>n.modelValue);return(0,o.watch)(()=>n.modelValue,async()=>{u&&(await(0,o.nextTick)(),g())},{deep:!0}),(0,o.watch)(()=>[n.column,n.cellHeight,n.draggable,n.resizable,n.disable,n.animate,n.float,n.removable],()=>{d()}),(0,o.onMounted)(()=>{d()}),(0,o.onBeforeUnmount)(()=>{u&&(u.destroy(!1),u=null)}),A({addItem:async m=>{if(u&&a.value){await(0,o.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,o.openBlock)(),(0,o.createElementBlock)("div",Pm,[(0,o.createElementVNode)("div",{ref_key:"gridContainerRef",ref:a},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(w.value,y=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:y.id,"gs-id":y.id,"gs-x":y.x,"gs-y":y.y,"gs-w":y.w,"gs-h":y.h,"gs-locked":y.locked,"gs-no-resize":y.noResize,"gs-no-move":y.noMove,"gs-min-w":y.minW,"gs-min-h":y.minH,"gs-max-w":y.maxW,"gs-max-h":y.maxH,class:"d-layout-item"},[(0,o.renderSlot)(m.$slots,"item",{item:y})],8,Gm))),128))],512)]))}}),Xm=zm,Ql=ft(Xm),JA=(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)),$m=e=>e*3/4,Ym=e=>e*4/3,Wm=["onMousedown"],Jm={key:2,class:"d-draggable__mask"},Zm=(0,o.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}){let n=0;const r=e,a=t,u=[{classname:"left"},{classname:"right"},{classname:"top"},{classname:"bottom"},{classname:"top-left"},{classname:"top-right"},{classname:"bottom-left"},{classname:"bottom-right"}],d={right:{resizeX:!0},left:{resizeX:!0,moveLeft:!0,invertX:!0},top:{resizeY:!0,moveTop:!0,invertY:!0},bottom:{resizeY:!0},"bottom-right":{resizeX:!0,resizeY:!0},"bottom-left":{resizeX:!0,resizeY:!0,moveLeft:!0,invertX:!0},"top-right":{resizeX:!0,resizeY:!0,moveTop:!0,invertY:!0},"top-left":{resizeX:!0,resizeY:!0,moveLeft:!0,moveTop:!0,invertX:!0,invertY:!0}},h=(0,o.ref)(),g=(0,o.ref)(),B=()=>g.value?.firstElementChild,w=(0,o.ref)(0),m=(0,o.ref)(0),v=(0,o.ref)(0),y=(0,o.ref)(0),I=(0,o.ref)(!1),T=(0,o.ref)(!1),D=(0,o.ref)(!1);let V=null;const b=(0,o.computed)(()=>r.scale),K=(0,o.computed)(()=>!r.readonly&&!r.disabled),sA=(0,o.computed)(()=>K.value&&(D.value||T.value||I.value)),W=(0,o.computed)(()=>!r.disabled&&r.mask),cA=(0,o.computed)(()=>{const J=8*b.value;return{width:JA(J,"",r.isPt),height:JA(J,"",r.isPt)}}),lA=(0,o.computed)(()=>({fontSize:JA(14*b.value,"",r.isPt),padding:JA(4*b.value,"",r.isPt),"border-radius":JA(2*b.value,"",r.isPt)})),oA=(0,o.computed)(()=>{const J={zIndex:D.value?9999:r.zIndex,top:JA(y.value,"",r.isPt),width:JA(w.value,"",r.isPt),height:JA(m.value,"",r.isPt),left:JA(v.value,"",r.isPt)};return D.value&&r.isActiveBgTransparent&&K.value&&(J.backgroundColor="color-mix(in srgb, var(--j-color-primary-bg) 60%, transparent)"),J});(0,o.watch)(()=>r.width,J=>S(J)),(0,o.watch)(()=>r.height,J=>eA(J)),(0,o.watch)(()=>r.left,J=>H(J)),(0,o.watch)(()=>r.top,J=>X(J)),(0,o.watch)(w,J=>{h.value&&(h.value.style.width=JA(J,"",r.isPt),r.resize&&B()?.style&&(B().style.width=JA(J,"",r.isPt)))}),(0,o.watch)(m,J=>{h.value&&(h.value.style.height=JA(J,"",r.isPt),r.resize&&B()?.style&&(B().style.height=JA(J,"",r.isPt)))}),(0,o.watch)(()=>r.activeFlag,J=>{iA(J)});const iA=J=>{D.value=J},AA=J=>J===void 0?0:r.isPt?Ym(J):J,S=J=>{w.value=Ye(AA(J))||(B()?.offsetWidth??0)},eA=J=>{m.value=Ye(AA(J))||(B()?.offsetHeight??0)},H=J=>{v.value=Ye(AA(J))},X=J=>{y.value=Ye(AA(J))},U=()=>({index:r.index,width:BA(w.value),height:BA(m.value),left:BA(v.value),top:BA(y.value)}),L=J=>{const _=U();switch(J){case"focus":a("focus",_);break;case"blur":a("blur",_);break;case"over":a("over",_);break;case"out":a("out",_);break}},k=()=>{S(r.width),eA(r.height),H(r.left),X(r.top),iA(r.activeFlag)},N=J=>{v.value=J},O=J=>{y.value=J},Y=J=>{const _=8*b.value/2,F={};return J.split("-").forEach(x=>{F[x]=JA(-_,"",r.isPt)}),F},tA=J=>{T.value=J},BA=J=>r.isPt?$m(J):J,HA=(J=!0)=>{n+=1,I.value=!0,J&&L("focus")},nA=()=>{n=Math.max(0,n-1),I.value=!1,L("blur")},Z=()=>{V?.(),V=null},$=(J,_)=>{let F=J.clientX,x=J.clientY,G=0,P=0,dA=0,gA=!1;const EA=document.body.style.userSelect;document.body.style.userSelect="none";const FA=()=>{if(dA=0,G===0&&P===0)return;const KA=G,ee=P;G=0,P=0,_(KA,ee)},NA=KA=>{I.value=!0;const ee=KA.clientX-F,qA=KA.clientY-x;if(F=KA.clientX,x=KA.clientY,!gA){gA=!0,_(ee,qA);return}G+=ee,P+=qA,dA||(dA=requestAnimationFrame(FA))},OA=()=>{dA&&(cancelAnimationFrame(dA),FA()),Z(),nA()};Z(),document.addEventListener("mousemove",NA),document.addEventListener("mouseup",OA),V=()=>{dA&&(cancelAnimationFrame(dA),dA=0),document.body.style.userSelect=EA,document.removeEventListener("mousemove",NA),document.removeEventListener("mouseup",OA)}},uA=(J,_,F)=>{if(J.resizeX){let x=_*r.step;J.invertX&&(x=-x),J.moveLeft&&(v.value=Ye(v.value-x)),w.value=Ye(w.value+x)}if(J.resizeY){let x=F*r.step;J.invertY&&(x=-x),J.moveTop&&(y.value=Ye(y.value-x)),m.value=Ye(m.value+x)}},wA=(J,_)=>{if(!K.value)return;const F=d[_];HA(!1),$(J,(x,G)=>uA(F,x,G))},QA=()=>{n>0||(T.value=!1,L("out"))},SA=()=>{n>0||K.value&&(T.value=!0,L("over"))},fA=J=>{if(!K.value)return;const _=D.value;D.value=!0,HA(!_),$(J,(F,x)=>{v.value=Ye(v.value+F*r.step),y.value=Ye(y.value+x*r.step)})};return(0,o.onMounted)(()=>{k()}),(0,o.onBeforeUnmount)(()=>{Z()}),A({setActive:iA,setLeft:N,setTop:O,setOverActive:tA}),(J,_)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["d-draggable",{"d-draggable--active":(D.value||T.value)&&K.value},{"d-draggable--pt":e.isPt&&K.value},{"d-draggable--move":I.value},{"d-draggable--click":e.disabled}]),onMousedown:(0,o.withModifiers)(fA,["stop"]),onMouseenter:(0,o.withModifiers)(SA,["stop"]),onMouseleave:(0,o.withModifiers)(QA,["stop"]),style:(0,o.normalizeStyle)(oA.value)},[(0,o.createElementVNode)("div",{class:"d-draggable__wrapper",ref_key:"wrapper",ref:h},[sA.value?((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:0},[e.isPt?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,class:"d-draggable__line d-draggable__line--label",style:(0,o.normalizeStyle)(lA.value)}," X:"+(0,o.toDisplayString)(v.value)+", Y:"+(0,o.toDisplayString)(y.value),5))],64)):(0,o.createCommentVNode)("",!0),K.value?((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:1},(0,o.renderList)(u,F=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:F.classname},[D.value?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,class:(0,o.normalizeClass)(["d-draggable__range",`d-draggable__range--${F.classname}`]),style:(0,o.normalizeStyle)([cA.value,Y(F.classname)]),onMousedown:(0,o.withModifiers)(x=>wA(x,F.classname),["stop"])},null,46,Wm)):(0,o.createCommentVNode)("",!0)],64))),64)):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("div",{class:"d-draggable__item",ref_key:"item",ref:g},[(0,o.renderSlot)(J.$slots,"default")],512),W.value?((0,o.openBlock)(),(0,o.createElementBlock)("div",Jm)):(0,o.createCommentVNode)("",!0)],512)],38))}}),jm=Zm,El=ft(jm),Fl=e=>{const A=qm(e.components);return{formConfig:e.form,componentList:A}},Ul=(e,A)=>{let t={},n=[];const r={},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=[]),r[g.id]=g,u[d.containerId].push(g)}),Object.keys(u).forEach(d=>{r[d]&&(r[d].children=u[d])}),n=u.form||[],{formConfig:t,componentList:n,componentDic:r}},Jr=(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)})},qm=e=>{const A={},t={};return e.forEach(n=>{A[n.containerId]=A[n.containerId]||[];const r={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&&r.config?.rule?.push({required:!0,message:n.config.requiredMsg||"请输入"});return}if(a==="patterns"){n.config.patterns.forEach(u=>{u.reg&&u.msg&&r.config?.rule?.push({pattern:new RegExp(u.reg),message:`请输入${u.msg||""}`})});return}r.config[a]=n.config[a]}),n.type==="pkey"&&(r.config.isPkey=!0),A[n.containerId].push(r),t[n.id]=r}),Object.keys(A).forEach(n=>{const r=t[n];if(r){const a=A[n];if(["j-tabs","j-collapse"].includes(r.type||"")&&r.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)}}),r.children=r.config.groups.map(d=>{const h=u[d._i]||[],g={label:d.label};d.active&&r.type==="j-collapse"&&(g.active=d.active);let B;if(r.type==="j-tabs"&&r.config?.tabKey&&r.config?.options.length>0){const m=r.config.options.find(v=>v.label===d._i);m&&(B=({formData:v})=>({display:m.value.includes(v[r.config?.tabKey||""])?m.display:!m.display}))}const w={config:g,children:h};return B&&(w.getCompConfig=B),w}),delete r.config.groups}else r.children=a}}),A.form},Hl=(e,A,t,n,r,a,u,d)=>{const h=(0,o.ref)(),g=(0,o.reactive)({}),B=(0,o.computed)(()=>{const U=[];return Object.keys(g).forEach(L=>{const k=g[L];k.dragType==="component"&&k.type!=="pkey"&&U.push(k)}),U}),w=(U=[],L)=>{const k=A?.value?.init;typeof k=="function"&&k(U,L)},m=U=>r?r(U,{componentDic:g,components:B.value,configData:h.value.config}):{},v=(U,L)=>{if(h.value?.id===U)return;const k=g[U]||L;if(k?h.value=k:U===t.id?h.value=t:h.value=null,h.value){const N=a[h.value.type];N?(w(N,h.value.config),m(h.value.type)):w([])}else w([]);L&&re("dragClick",{id:L.id})},y=()=>e.value.$el.getBoundingClientRect(),I=U=>U===t.id?t:g[U]||{},T=U=>{const L=[];if(U===t.id)L.push({id:U,name:t.name});else{const k=g[U];if(k){L.push({id:U,name:k.name});const N=T(k.containerId);L.push(...N)}}return L},D=(U,L)=>{const k=g[L];if(k===void 0)return!1;const N=k.containerId;return U===N?!0:N===t.id?!1:D(U,N)},V=U=>n?n(U)||{}:{},b=(U,L,k,N)=>{if(d){const O=I(U);return d(k.componentType,{container:O,groupId:L,configData:k},N)}return!1},K=({name:U,type:L,dragType:k,isInput:N,componentName:O,runtimeType:Y},tA,BA,HA,nA=!1)=>{const Z=V(L);if(Z.id=gt(),Z.span=24,Z.componentType=L,sA(tA,Z.componentType))return;b(tA,HA,Z,!0);const $={id:Z.id,name:U,type:L,runtimeType:Y,componentName:O||"",dragType:k||"component",containerId:tA,isInput:!!N,level:g[tA]?g[tA].level+1:1,config:Z,isNewAdd:!nA,groupId:HA};return $.dragType==="container"&&($.children=[]),g[$.id]=$,I(tA).children?.splice(BA,0,$),$},sA=(U,L)=>!!(I(U).config.componentType==="gridtable"&&["divider","label","text","textEditor","viewTable","card","collapse","tabs","qrcode","barcode","tableLayout"].includes(L)),W=(U,L,k=!1)=>{let N=null;const O=I(U).children,Y=O?.findIndex(tA=>tA.id===L)||0;if(k&&O&&O.length>1){let tA=Y+1;Y>0&&(tA=Y-1),N=O[tA]}return O?.splice(Y,1),N?.id},cA=(U,L,k,N)=>{const O=I(L).children,Y=U.containerId!==L;U.containerId=L,U.groupId=N,O?.splice(k,0,U),b(L,N,U.config,Y)&&(eA(),v(U.id))},lA=U=>{let L="";const k=I(U);return k&&(k.children&&k.children.length>0&&k.children.forEach(N=>{lA(N.id)}),L=W(k.containerId,U,!0)||"",delete g[U]),h.value&&h.value.id===U&&(h.value=null,A.value.init([])),L},oA=(U,L=[])=>{const k=I(U);if(k&&k.children&&k.children.length>0){const N=[];k.children.forEach(O=>{O.groupId&&L.includes(O.groupId)&&N.push(O.id)}),N.forEach(O=>{lA(O),delete g[O]})}},iA=(U,L)=>{const k=I(U);k&&(k.children&&k.children.length>0&&k.children.forEach(N=>{N.groupId===L&&lA(N.id)}),delete g[U])},AA=U=>{const L=En(I(U));L.id=gt(),L.config.id=L.id,g[L.id]=L;const k=I(L.containerId).children,N=k?.findIndex(O=>O.id===U)||0;k?.splice(N+1,0,L)},S=()=>{t.children=[],Du(g),h.value&&(re("dragClick",{id:""}),h.value=null,A.value.init([]))},eA=()=>{h.value&&(re("dragClick",{id:""}),h.value=null,A.value.init([]))},H=U=>{const L=h.value,k=I(L.containerId).children,N=k?.findIndex(O=>O.id===L.id)||0;lA(L.id),(0,o.nextTick)(()=>{const O=u[U],Y=V(U);Y.id=L.id,Y.span=L.config.span,Y.componentType=U,Y.table=L.config.table,Y.field=L.config.field,L.config.isSubTable&&(Y.isSubTable=L.config.isSubTable);const tA={id:Y.id,name:O.name,type:U,runtimeType:O.runtimeType,componentName:O.componentName||"",dragType:L.dragType,groupId:L.groupId,containerId:L.containerId,isInput:L.isInput,level:L.level,config:Y,isNewAdd:!0};g[tA.id]=tA,k?.splice(N,0,tA)})},X=U=>{re("dragAddByClick",U)};return(0,o.provide)("d-drag-design-provide",{activedComponent:h,getDesignLocals:y,getComponent:I,getParentComponents:T,isMyChildComponent:D,selectComponent:v,addComponent:K,deleteComponent:lA,copyComponent:AA,removeComponentFromContainer:W,addComponentToContainer:cA,top:t,deleteChildren:iA,deleteChildrens:oA}),{activedComponent:h,clearComponents:S,changeComponent:H,schemaComponentDic:g,clearSelect:eA,addComponent:K,addComponentByTable:X,designComponentList:B}},Aw=(0,o.defineComponent)({__name:"formDesignItem",props:{componentData:{type:Object,default:()=>({})},globalConfig:{type:Object,default:()=>({})}},setup(e){const A=e,{t}=(0,pe.useAppInject)(),n=(0,o.computed)(()=>A.componentData.config?.notShowLabel?"":A.componentData.config?.label||""),r=(0,o.computed)(()=>n.value===""?0:A.componentData.config?.labelWidth===void 0&&A.globalConfig.labelWidth!==void 0?`${A.globalConfig.labelWidth}px`:A.componentData.config?.labelWidth?`${A.componentData.config?.labelWidth}px`:void 0),a=(0,o.computed)(()=>{const u={...A.componentData?.config};return u.size===void 0&&(u.size=A.globalConfig.size),u.display=!0,u});return(u,d)=>{const h=(0,o.resolveComponent)("j-comp"),g=(0,o.resolveComponent)("el-form-item");return e.componentData.isInput?((0,o.openBlock)(),(0,o.createBlock)(g,{key:0,"label-width":r.value,label:(0,o.unref)(t)(n.value),"label-position":A.componentData.config?.labelPosition||e.globalConfig?.labelPosition,rules:e.componentData.config?.required?[{required:!0,message:""}]:[]},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(h,{type:e.componentData?.componentName||e.componentData?.type,config:a.value,modelValue:e.componentData?.config.defaultValue},null,8,["type","config","modelValue"])]),_:1},8,["label-width","label","label-position","rules"])):e.componentData?.children?((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(e.componentData?.componentName),(0,o.mergeProps)({key:1},e.componentData?.config,{"global-config":e.globalConfig,"component-data":e.componentData}),null,16,["global-config","component-data"])):((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(e.componentData?.componentName),(0,o.normalizeProps)((0,o.mergeProps)({key:2},e.componentData?.config)),null,16))}}}),Il=Aw,ew={class:"d-form-design j-block"},tw={class:"d-form-design-left"},nw={class:"d-form-design-component-list"},rw={class:"j-component-tool"},ow={class:"j-component-tool-name"},iw={class:"d-form-design-center"},sw={class:"d-form-design-container"},aw={key:0,class:"j-block d-form-design-empty"},lw={class:"d-form-design-right"},cw={class:"d-form-design-panel-title"},uw={style:{margin:"0","font-size":"14px"}},dw={class:"d-form-design-panel"},fw=(0,o.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,error:r}=(0,pe.useAppInject)(),a=(0,o.reactive)({name:"表单",id:"form",type:"form",level:0,children:[],dragType:"container",componentName:"",containerId:"",isInput:!1,config:{}}),u=(0,o.ref)([]),d=t.components.length;for(let nA=0;nA<d;nA++)u.value.push(nA);t.componentInit&&(a.config=t.componentInit("form")||{});const h={},g=[];t.components.forEach(({children:nA})=>{nA.forEach(Z=>{h[Z.type]=Z,Z.dragType=Z.dragType||"component",Z.isInput!==!1&&(Z.isInput=!0,g.push({label:Z.name,value:Z.type}))})});const B=nA=>{nA.forEach(Z=>{Z.type==="d-input-flow"&&(Z.config=Z.config||{},Z.config.flowComponents=t.flowComponents,Z.config.flowInit=t.flowInit,Z.config.flowComponentConfigInit=$=>{t.flowComponentConfigInit&&($.designComponents=sA.value,$.component=D.value,t.flowComponentConfigInit($))},Z.config.flowComponentConfigs=t.flowComponentConfigs,Z.config.flowComponentConfigChange=t.flowComponentConfigChange),Z.children&&B(Z.children)})},w={};Object.keys(t.componentConfigs||{}).forEach(nA=>{const{hasBase:Z,isInput:$,hasTwoPlaceholder:uA,hasPlaceholder:wA,hasSpan:QA,hasLabel:SA,bindTable:fA,labelTitle:J}=h[nA]||{hasBase:!1},_=[{id:"componentType",type:"j-select",config:{label:"类型",allowClear:!1,display:$,options:g}},{id:"label",type:"j-input",config:{label:J||"标题"},getCompConfig:({formData:x})=>({display:SA!==!1&&!x.notShowLabel})},{id:"notShowLabel",type:"j-switch",config:{label:"不显示"+(J||"标题"),activeValue:!0,inactiveValue:!1},getCompConfig:({formData:x})=>({display:SA!==!1&&!x.isSubTable})},{id:"labelWidth",type:"j-number",config:{label:"标题宽度"},getCompConfig:({formData:x})=>({display:$&&!x.notShowLabel&&!x.isSubTable})},{id:"labelPosition",type:"j-radio",config:{label:"标题对齐",options:[{value:"right",label:"右"},{value:"left",label:"左"},{value:"top",label:"顶部"}]},getCompConfig:({formData:x})=>({display:$&&!x.notShowLabel&&!x.isSubTable})},{id:"placeholder",type:"j-input",config:{display:$&&!uA&&wA!==!1,label:"占位提示"}},{id:"startPlaceholder",type:"j-input",config:{display:!!uA,label:"开始占位"}},{id:"endPlaceholder",type:"j-input",config:{display:!!uA,label:"结束占位"}},{id:"span",type:"j-slider",config:{label:"表单栅栏",min:6,max:24,showTooltip:!0,step:6,showStops:!0,defautValue:24},getCompConfig:({formData:x})=>({display:QA!==!1&&!x.isSubTable})},{id:"width",type:"j-number",config:{label:"单元格宽度",min:1},getCompConfig:({formData:x})=>({display:!!x.isSubTable})}],F={type:"j-collapse",config:{defaultValue:[]},children:[]};Z!==!1&&F.children?.push({config:{label:"基础信息"},children:[..._]}),F.children?.push(...t.componentConfigs[nA]),F.children?.forEach((x,G)=>{F.config?.defaultValue.push(`_collapse${G}`)}),B(F.children||[]),w[nA]=[F]});const m=nA=>{const{value:Z}=nA||{};nA.id==="componentType"&&b(Z),D.value&&t.componentConfigChange&&t.componentConfigChange(D.value.type,{configRef:T,configData:D.value.config,...nA})},v=(nA,Z)=>{t.componentConfigInit&&t.componentConfigInit(nA,{configRef:T,...Z})},y=(nA,Z,$)=>{let uA=!1;return Z.container.type==="gridtable"?(!Z.configData.isSubTable||$)&&(Z.configData.isSubTable=!0,uA=!0):Z.configData.isSubTable&&(uA=!0,Z.configData.isSubTable=!1),t.containerAddComponent&&t.containerAddComponent(nA,Z),uA},I=(0,o.ref)(),T=(0,o.ref)(),{activedComponent:D,clearComponents:V,changeComponent:b,schemaComponentDic:K,designComponentList:sA}=Hl(I,T,a,t.componentInit,v,w,h,y),W=(0,o.computed)(()=>D.value?.id!="form"?D.value?`${D.value.name}-${D.value.id}`:"":D.value?`${D.value.name}`:"");(0,o.provide)("dui-design-provide",{designItemName:Il});const cA=()=>{V()},lA=()=>{t.componentInit&&(a.config=t.componentInit("form")||{}),V()},oA=()=>Jr(a.config,a.children||[]),iA=nA=>{const Z=Ul(nA,h);a.config=Z.formConfig,a.children?.push(...Z.componentList),Object.keys(Z.componentDic).forEach($=>{K[$]=Z.componentDic[$]})},AA=()=>S(Jr(a.config,a.children||[]).components),S=nA=>{for(const Z of nA)if(t.componentConfigValidate&&!t.componentConfigValidate(Z.type,{configData:Z.config,errorTip:r}))return!1;return!0},eA=(0,o.ref)(),H=(0,o.ref)(),X=(0,o.ref)({});let U=0;const L=nA=>{if(H.value)U=0,H.value.init(nA||[]);else{if(U>600){console.warn("表单组件加载超时");return}U++,setTimeout(()=>{L(nA)},100)}},k=()=>{},N=()=>{};return A({getSchema:()=>oA(),setSchema:nA=>iA(nA),reset:()=>lA(),validate:()=>AA(),preview:()=>{const nA=Jr(a.config,a.children||[]);eA.value.open("表单预览",nA.form.layerType);const{formConfig:Z,componentList:$}=Fl(nA);X.value=Z,(0,o.nextTick)(()=>{L($)})},clear:cA}),(nA,Z)=>{const $=(0,o.resolveComponent)("j-icon"),uA=(0,o.resolveComponent)("d-drag-tool"),wA=(0,o.resolveComponent)("el-collapse-item"),QA=(0,o.resolveComponent)("el-collapse"),SA=(0,o.resolveComponent)("el-empty"),fA=(0,o.resolveComponent)("d-drag-form-list"),J=(0,o.resolveComponent)("el-row"),_=(0,o.resolveComponent)("d-drag-container"),F=(0,o.resolveComponent)("j-form"),x=(0,o.resolveComponent)("j-layer");return(0,o.openBlock)(),(0,o.createElementBlock)("div",ew,[(0,o.createElementVNode)("div",tw,[(0,o.createElementVNode)("div",nw,[(0,o.createVNode)(QA,{modelValue:u.value,"onUpdate:modelValue":Z[0]||(Z[0]=G=>u.value=G)},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.components,(G,P)=>((0,o.openBlock)(),(0,o.createBlock)(wA,{key:P,title:G.name,name:P},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(G.children,(dA,gA)=>((0,o.openBlock)(),(0,o.createBlock)(uA,{key:gA,config:dA},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",rw,[(0,o.createVNode)($,{class:"j-component-tool-icon",icon:dA.icon,size:14},null,8,["icon"]),(0,o.createElementVNode)("div",ow,(0,o.toDisplayString)((0,o.unref)(n)(dA.name)),1)])]),_:2},1032,["config"]))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),(0,o.createElementVNode)("div",iw,[(0,o.createElementVNode)("div",sw,[(0,o.createVNode)(_,{ref_key:"dragContainer",ref:I,class:"d-form-design-drag-container","is-component-container":!1,"component-data":a},{default:(0,o.withCtx)(()=>[!a.children||a.children.length===0?((0,o.openBlock)(),(0,o.createElementBlock)("div",aw,[(0,o.createVNode)(SA,{description:(0,o.unref)(n)("请从左侧拖拽组件到此处"),"image-size":100},null,8,["description"])])):((0,o.openBlock)(),(0,o.createBlock)(J,{key:1},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(fA,{"component-list":a.children,"global-config":a.config},null,8,["component-list","global-config"])]),_:1}))]),_:1},8,["component-data"])])]),(0,o.withDirectives)((0,o.createElementVNode)("div",lw,[(0,o.createElementVNode)("div",cw,[(0,o.createElementVNode)("span",uw,(0,o.toDisplayString)(`${W.value}`),1)]),(0,o.createElementVNode)("div",dw,[(0,o.createVNode)(F,{config:{labelPosition:"top",size:"small"},collapseAnimate:!1,style:{padding:"0"},ref_key:"configRef",ref:T,onChange:m},null,512)])],512),[[o.vShow,(0,o.unref)(D)]]),(0,o.createVNode)(x,{ref_key:"previewFormLayerRef",ref:eA,width:1e3,height:800,onOk:k,onClosed:N},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(F,{config:X.value,"is-preview":!0,ref_key:"previewFormRef",ref:H,actions:e.actions},null,8,["config","actions"])]),_:1},512)])}}}),gw=fw,_l=ft(gw,[Il]),Sl=(e,A)=>{const t={ver:"V3",indexPage:{...e},components:[]};return xl(A||[],t.components),t},xl=(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"&&xl(t.children||[],A),A.push(n)})},hw=e=>{const A=Bw(e.components);return{pageConfig:e.indexPage,componentList:A}},Bw=e=>{const A={},t={};return e.forEach(n=>{A[n.containerId]=A[n.containerId]||[];const r={id:n.id,type:n.runtimeType,slot:n.groupId,config:{}};n.config&&Object.keys(n.config).forEach(a=>{r.config[a]=n.config[a]}),A[n.containerId].push(r),t[n.id]=r}),Object.keys(A).forEach(n=>{const r=t[n];if(r){const a=A[n];if(["j-tabs","j-collapse"].includes(r.type||"")&&r.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)}}),r.children=r.config.groups.map(d=>{const h=u[d._i]||[];return{config:{label:d.label},children:h}}),delete r.config.groups}else r.children=a}}),A.indexPage||[]},pw=(e,A)=>{let t={},n=[];const r={};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};r[g.id]=g,u[d.containerId].push(g),g.dragType==="container"&&(g.children=[])}),Object.keys(u).forEach(d=>{r[d]&&(r[d].children=u[d])}),n=u.indexPage||[]}return{pageConfig:t,componentList:n,componentDic:r}},mw=(0,o.defineComponent)({name:"DIndexDesignItem",__name:"indexDesignItem",props:{componentData:{type:Object,default:()=>({})},globalConfig:{type:Object,default:()=>({})}},setup(e){return(A,t)=>((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(e.componentData?.componentName),(0,o.mergeProps)(e.componentData?.config,{"global-config":e.globalConfig,"component-data":e.componentData}),null,16,["global-config","component-data"]))}}),Dl=mw,ww={class:"d-index-design j-block"},Cw={class:"d-index-design-left"},vw={class:"j-component-list"},yw={class:"j-component-tool"},Qw={class:"j-component-tool-name"},Ew={class:"d-index-design-center"},Fw={class:"design-container"},Uw={key:0,class:"j-block design-empty"},bw={class:"d-index-design-right"},Hw={class:"d-index-design-panel-title"},Iw={style:{margin:"0","font-size":"14px"}},_w={class:"d-index-design-panel"},Sw=(0,o.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,pe.useAppInject)(),n=e,r=U=>{U.forEach(L=>{L.type==="d-input-flow"&&(L.config=L.config||{},L.config.flowComponents=n.flowComponents,L.config.flowInit=n.flowInit,L.config.flowComponentConfigInit=k=>{n.flowComponentConfigInit&&(k.designComponents=T.value,k.component=v.value,n.flowComponentConfigInit(k))},L.config.flowComponentConfigs=n.flowComponentConfigs,L.config.flowComponentConfigChange=n.flowComponentConfigChange),L.children&&r(L.children)})},a=(0,o.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:U})=>{U.forEach(L=>{u[L.type]=L,L.dragType=L.dragType||"component",d.push({label:L.name,value:L.type})})});const h={};Object.keys(n.componentConfigs).forEach(U=>{const{hasBase:L}=u[U]||{hasBase:!1},k=[{id:"label",type:"j-input",config:{label:"名称"}}],N={type:"j-collapse",config:{defaultValue:[]},children:[]};L!==!1&&(N.children?.push({config:{label:"基础信息"},children:[...k]}),N.config?.defaultValue.push("_collapse0")),N.children?.push(...n.componentConfigs[U]),r(N.children||[]),h[U]=[N]});const g=U=>{v.value&&n.componentConfigChange&&n.componentConfigChange(v.value.type,{configRef:m,configData:v.value.config,...U})},B=(U,L)=>{n.componentConfigInit&&n.componentConfigInit(U,{configRef:m,...L})},w=(0,o.ref)(),m=(0,o.ref)(),{activedComponent:v,clearComponents:y,schemaComponentDic:I,designComponentList:T}=Hl(w,m,a,n.componentInit,B,h,u,n.containerAddComponent),D=(0,o.computed)(()=>v.value?.id!="form"?v.value?`${v.value.name}-${v.value.id}`:"":v.value?`${v.value.name}`:""),V=(0,o.ref)([]),b=n.components.length;for(let U=0;U<b;U++)V.value.push(U);(0,o.provide)("dui-design-provide",{designItemName:Dl});const K=()=>{y()},sA=()=>{n.componentInit&&(a.config=n.componentInit("indexPage")||{}),y()},W=()=>(console.log("pValidate"),!0),cA=()=>Sl(a.config,a.children||[]),lA=U=>{const L=pw(U,u);a.config=L.pageConfig,a.children?.push(...L.componentList),Object.keys(L.componentDic).forEach(k=>{I[k]=L.componentDic[k]})},oA=(0,o.ref)(),iA=(0,o.ref)();(0,o.ref)(""),(0,o.reactive)({formConfig:{}});let AA=0;const S=U=>{if(iA.value)AA=0,iA.value.init(U);else{if(AA>600){console.warn("组件加载超时");return}AA++,setTimeout(()=>{S(U)},100)}},eA=()=>{},H=()=>{};return A({reset:sA,validate:W,getSchema:cA,setSchema:lA,preview:()=>{const{componentList:U}=hw(Sl(a.config,a.children||[]));oA.value.open("页面预览","full"),(0,o.nextTick)(()=>{S(U)})},clear:K}),(U,L)=>{const k=(0,o.resolveComponent)("j-icon"),N=(0,o.resolveComponent)("d-drag-tool"),O=(0,o.resolveComponent)("el-collapse-item"),Y=(0,o.resolveComponent)("el-collapse"),tA=(0,o.resolveComponent)("el-empty"),BA=(0,o.resolveComponent)("d-drag-index-list"),HA=(0,o.resolveComponent)("d-drag-container"),nA=(0,o.resolveComponent)("j-form"),Z=(0,o.resolveComponent)("j-page"),$=(0,o.resolveComponent)("j-layer");return(0,o.openBlock)(),(0,o.createElementBlock)("div",ww,[(0,o.createElementVNode)("div",Cw,[(0,o.createElementVNode)("div",vw,[(0,o.createVNode)(Y,{modelValue:V.value,"onUpdate:modelValue":L[0]||(L[0]=uA=>V.value=uA)},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.components,(uA,wA)=>((0,o.openBlock)(),(0,o.createBlock)(O,{key:wA,title:uA.name,name:wA},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(uA.children,(QA,SA)=>((0,o.openBlock)(),(0,o.createBlock)(N,{key:SA,config:QA},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",yw,[(0,o.createVNode)(k,{class:"j-component-tool-icon",icon:QA.icon,size:14},null,8,["icon"]),(0,o.createElementVNode)("div",Qw,(0,o.toDisplayString)((0,o.unref)(t)(QA.name)),1)])]),_:2},1032,["config"]))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),(0,o.createElementVNode)("div",Ew,[(0,o.createElementVNode)("div",Fw,[(0,o.createVNode)(HA,{ref_key:"dragContainer",ref:w,class:"design-drag-container","is-component-container":!1,"component-data":a},{default:(0,o.withCtx)(()=>[!a.children||a.children.length===0?((0,o.openBlock)(),(0,o.createElementBlock)("div",Uw,[(0,o.createVNode)(tA,{description:(0,o.unref)(t)("请从左侧拖拽组件到此处"),"image-size":100},null,8,["description"])])):((0,o.openBlock)(),(0,o.createBlock)(BA,{key:1,"component-list":a.children,"global-config":a.config},null,8,["component-list","global-config"]))]),_:1},8,["component-data"])])]),(0,o.withDirectives)((0,o.createElementVNode)("div",bw,[(0,o.createElementVNode)("div",Hw,[(0,o.createElementVNode)("span",Iw,(0,o.toDisplayString)(`${D.value}`),1)]),(0,o.createElementVNode)("div",_w,[(0,o.createVNode)(nA,{config:{labelPosition:"top",size:"small"},collapseAnimate:!1,style:{padding:"0"},ref_key:"configRef",ref:m,onChange:g},null,512)])],512),[[o.vShow,(0,o.unref)(v)&&h[(0,o.unref)(v).type]]]),(0,o.createVNode)($,{ref_key:"previewLayerRef",ref:oA,"has-btns":!1,onOk:eA,onClosed:H},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(Z,{ref_key:"previewRef",ref:iA,actions:e.actions},null,8,["actions"])]),_:1},512)])}}}),xw=Sw,Nl=ft(xw,[Dl]),jA=Su({Vue:()=>o,Vue2:()=>{},del:()=>Lw,install:()=>Dw,isVue2:()=>!1,isVue3:()=>!0,set:()=>Nw});xu(jA,require("vue"));var fE=!1,gE=!0,hE=void 0;function Dw(){}function Nw(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 Lw(e,A){if(Array.isArray(e)){e.splice(A,1);return}delete e[A]}var Zr=(e,A)=>{const t=e.__vccOpts||e;for(const[n,r]of A)t[n]=r;return t},Tw=(0,jA.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,jA.ref)(0),n=(0,jA.ref)(!0);(0,jA.onMounted)(()=>{t.value=e.value});const r=B=>{n.value=B>=0},a=(0,jA.computed)(()=>{const B=(t.value-e.start)*e.scale;r(B);const w=B+"px";return e.vertical?{top:w}:{left:w}}),u=(0,jA.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,jA.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=I=>{const T=e.vertical?I.clientY:I.clientX;t.value=Math.round(m+(T-w)/e.scale)},y=()=>{A("onRelease",t.value,e.index),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",y)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",y)},handleRemove:()=>{A("onRemove",e.index)}}}}),kw={class:"value"};function Mw(e,A,t,n,r,a){return(0,o.withDirectives)(((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"line",style:(0,o.normalizeStyle)([e.offset,e.borderCursor]),onMousedown:A[1]||(A[1]=(...u)=>e.handleDown&&e.handleDown(...u))},[(0,o.createElementVNode)("div",{class:"action",style:(0,o.normalizeStyle)(e.actionStyle)},[(0,o.createElementVNode)("span",{class:"del",onClick:A[0]||(A[0]=(...u)=>e.handleRemove&&e.handleRemove(...u))},"×"),(0,o.createElementVNode)("span",kw,(0,o.toDisplayString)(e.startValue),1)],4)],36)),[[o.vShow,e.showLine]])}var Ow=Zr(Tw,[["render",Mw],["__scopeId","data-v-5dea28d6"]]),Kw=e=>e<=.25?40:e<=.5?20:e<=1?10:e<=2?5:e<=4?2:1,Ll=.83,Rw=(e,A,t,n,r,a)=>{const{scale:u,width:d,height:h,ratio:g,palette:B}=r,{bgColor:w,fontColor:m,shadowColor:v,longfgColor:y,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 oA=(t-A)*u,iA=n*u;e.fillStyle=v,a?e.fillRect(oA,0,iA,h*3/8):e.fillRect(0,oA,d*3/8,iA)}const T=Kw(u),D=T*u,V=T*10,b=V*u,K=Math.floor(A/T)*T,sA=Math.floor(A/V)*V,W=(K-A)/T*D,cA=(sA-A)/V*b,lA=A+Math.ceil((a?d:h)/u);e.beginPath(),e.fillStyle=m,e.strokeStyle=y;for(let oA=sA,iA=0;oA<lA;oA+=V,iA++){const AA=cA+iA*b+.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(Ll/g,Ll/g),e.fillText(oA.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 oA=K,iA=0;oA<lA;oA+=T,iA++){const AA=W+iA*D+.5;a?e.moveTo(AA,0):e.moveTo(0,AA),oA%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)},Vw=(0,jA.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,jA.reactive)({canvasContext:null});let n=1;const r=(0,jA.ref)(null);(0,jA.onMounted)(()=>{n=e.ratio||window.devicePixelRatio||1,a(),u(n),d(n)});const a=()=>{t.canvasContext=r.value&&r.value.getContext("2d")},u=g=>{if(r.value){r.value.width=e.width*g,r.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=Pa[e])==null?void 0:t.call(Pa,...A)),this.name="VueFlowError",this.code=e,this.args=A}};function pi(e){return"clientX"in e}function cB(e){return"sourceEvent"in e}function Xe(e,A){const t=pi(e);let n,r;return t?(n=e.clientX,r=e.clientY):"touches"in e&&e.touches.length>0?(n=e.touches[0].clientX,r=e.touches[0].clientY):"changedTouches"in e&&e.changedTouches.length>0?(n=e.changedTouches[0].clientX,r=e.changedTouches[0].clientY):(n=0,r=0),{x:n-(A?.left??0),y:r-(A?.top??0)}}var Tr=()=>{var e;return typeof navigator<"u"&&((e=navigator?.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function uB(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 kr(e,A=[1,1]){return{x:A[0]*Math.round(e.x/A[0]),y:A[1]*Math.round(e.y/A[1])}}var dB=()=>!0;function mi(e){e?.classList.remove("valid","connecting","vue-flow__handle-valid","vue-flow__handle-connecting")}function fB(e,A,t){const n=[],r={x:e.x-t,y:e.y-t,width:t*2,height:t*2};for(const a of A.values())Dr(r,xr(a))>0&&n.push(a);return n}var gB=250;function hB(e,A,t,n){var r,a;let u=[],d=Number.POSITIVE_INFINITY;const h=fB(e,t,A+gB);for(const g of h){const B=[...((r=g.handleBounds)==null?void 0:r.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}=tn(g,w,w.position,!0),y=Math.sqrt((m-e.x)**2+(v-e.y)**2);y>A||(y<d?(u=[{...w,x:m,y:v}],d=y):y===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 Ga(e,{handle:A,connectionMode:t,fromNodeId:n,fromHandleId:r,fromType:a,doc:u,lib:d,flowId:h,isValidConnection:g=dB},B,w,m,v){const y=a==="target",I=A?u.querySelector(`.${d}-flow__handle[data-id="${h}-${A?.nodeId}-${A?.id}-${A?.type}"]`):null,{x:T,y:D}=Xe(e),V=u.elementFromPoint(T,D),b=V?.classList.contains(`${d}-flow__handle`)?V:I,K={handleDomNode:b,isValid:!1,connection:null,toHandle:null};if(b){const sA=za(void 0,b),W=b.getAttribute("data-nodeid"),cA=b.getAttribute("data-handleid"),lA=b.classList.contains("connectable"),oA=b.classList.contains("connectableend");if(!W||!sA)return K;const iA={source:y?W:n,sourceHandle:y?cA:r,target:y?n:W,targetHandle:y?r:cA};K.connection=iA,K.isValid=lA&&oA&&(t===nt.Strict?y&&sA==="source"||!y&&sA==="target":W!==n||cA!==r)&&g(iA,{nodes:w,edges:B,sourceNode:m(iA.source),targetNode:m(iA.target)}),K.toHandle=Xa(W,sA,cA,v,t,!0)}return K}function za(e,A){return e||(A?.classList.contains("target")?"target":A?.classList.contains("source")?"source":null)}function BB(e,A){let t=null;return A?t="valid":e&&!A&&(t="invalid"),t}function pB(e,A){let t=null;return A?t=!0:e&&!A&&(t=!1),t}function Xa(e,A,t,n,r,a=!1){var u,d,h;const g=n.get(e);if(!g)return null;const B=r===nt.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,...tn(g,w,w.position,!0)}:w}var wi={[IA.Left]:IA.Right,[IA.Right]:IA.Left,[IA.Top]:IA.Bottom,[IA.Bottom]:IA.Top},mB=["production","prod"];function Pn(e,...A){$a()&&console.warn(`[Vue Flow]: ${e}`,...A)}function $a(){return!mB.includes(process.env.NODE_ENV||"")}function Ya(e,A,t,n,r){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:r,position:u.getAttribute("data-handlepos"),x:(d.left-t.left)/n,y:(d.top-t.top)/n,...Nr(u)}}):null}function Ci(e,A,t,n,r,a=!1,u){r.value=!1,e.selected?(a||e.selected&&A)&&(n([e]),(0,o.nextTick)(()=>{u.blur()})):t([e])}function se(e){return typeof(0,o.unref)(e)<"u"}function wB(e,A,t,n){if(!e||!e.source||!e.target)return t(new ce(ie.EDGE_INVALID,e?.id??"[ID UNKNOWN]")),!1;let r;return gt(e)?r=e:r={...e,id:Fa(e)},r=Qa(r,void 0,n),jh(r,A)?!1:r}function CB(e,A,t,n,r){if(!A.source||!A.target)return r(new ce(ie.EDGE_INVALID,e.id)),!1;if(!t)return r(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 Wa(e,A,t){const n={},r=[];for(let a=0;a<e.length;++a){const u=e[a];if(!Tt(u)){t(new ce(ie.NODE_INVALID,u?.id));continue}const d=Wh(u,A(u.id),u.parentNode);u.parentNode&&(n[u.parentNode]=!0),r[a]=d}for(const a of r){const u=A(a.parentNode)||r.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 r}function Ja(e,A,t,n,r,a){let u=r;const d=n.get(u)||new Map;n.set(u,d.set(t,A)),u=`${r}-${e}`;const h=n.get(u)||new Map;if(n.set(u,h.set(t,A)),a){u=`${r}-${e}-${a}`;const g=n.get(u)||new Map;n.set(u,g.set(t,A))}}function vi(e,A,t){e.clear();for(const n of t){const{source:r,target:a,sourceHandle:u=null,targetHandle:d=null}=n,h={edgeId:n.id,source:r,target:a,sourceHandle:u,targetHandle:d},g=`${r}-${u}--${a}-${d}`;Ja("source",h,`${a}-${d}--${r}-${u}`,e,r,u),Ja("target",h,g,e,a,d)}}function Za(e,A){if(e.size!==A.size)return!1;for(const t of e)if(!A.has(t))return!1;return!0}function yi(e,A,t,n,r,a,u,d){const h=[];for(const g of e){const B=gt(g)?g:wB(g,d,r,a);if(!B)continue;const w=t(B.source),m=t(B.target);if(!w||!m){r(new ce(ie.EDGE_SOURCE_TARGET_MISSING,B.id,B.source,B.target));continue}if(!w){r(new ce(ie.EDGE_SOURCE_MISSING,B.id,B.source));continue}if(!m){r(new ce(ie.EDGE_TARGET_MISSING,B.id,B.target));continue}if(A&&!A(B,{edges:d,nodes:u,sourceNode:w,targetNode:m})){r(new ce(ie.EDGE_INVALID,B.id));continue}const v=n(B.id);h.push({...Qa(B,v,a),sourceNode:w,targetNode:m})}return h}var ja=Symbol("vueFlow"),qa=Symbol("nodeId"),Al=Symbol("nodeRef"),vB=Symbol("edgeId"),yB=Symbol("edgeRef"),Mr=Symbol("slots");function el(e){const{vueFlowRef:A,snapToGrid:t,snapGrid:n,noDragClassName:r,nodeLookup:a,nodeExtent:u,nodeDragThreshold:d,viewport:h,autoPanOnNodeDrag:g,autoPanSpeed:B,nodesDraggable:w,panBy:m,findNode:v,multiSelectionActive:y,nodesSelectionActive:I,selectNodesOnDrag:T,removeSelectedElements:D,addSelectedNodes:V,updateNodePositions:b,emits:K}=XA(),{onStart:sA,onDrag:W,onStop:cA,onClick:lA,el:oA,disabled:iA,id:AA,selectable:S,dragHandle:eA}=e,H=(0,o.shallowRef)(!1);let X=[],U,L=null,k={x:void 0,y:void 0},N={x:0,y:0},O=null,Y=!1,tA=!1,pA=0,HA=!1;const nA=FB(),Z=({x:gA,y:J})=>{k={x:gA,y:J};let _=!1;if(X=X.map(F=>{const x={x:gA-F.distance.x,y:J-F.distance.y},{computedPosition:G}=Bi(F,t.value?kr(x,n.value):x,K.error,u.value,F.parentNode?v(F.parentNode):void 0);return _=_||F.position.x!==G.x||F.position.y!==G.y,F.position=G,F}),tA=tA||_,!!_&&(b(X,!0,!0),H.value=!0,O)){const[F,x]=hi({id:AA,dragItems:X,findNode:v});W({event:O,node:F,nodes:x})}},$=()=>{if(!L)return;const[gA,J]=Na(N,L,B.value);if(gA!==0||J!==0){const _={x:(k.x??0)-gA/h.value.zoom,y:(k.y??0)-J/h.value.zoom};m({x:gA,y:J})&&Z(_)}pA=requestAnimationFrame($)},uA=(gA,J)=>{Y=!0;const _=v(AA);!T.value&&!y.value&&_&&(_.selected||D()),_&&(0,o.toValue)(S)&&T.value&&Ci(_,y.value,V,D,I,!1,J);const F=nA(gA.sourceEvent);if(k=F,X=rB(a.value,w.value,F,AA),X.length){const[x,G]=hi({id:AA,dragItems:X,findNode:v});sA({event:gA.sourceEvent,node:x,nodes:G})}},wA=(gA,J)=>{var _;gA.sourceEvent.type==="touchmove"&&gA.sourceEvent.touches.length>1||(tA=!1,d.value===0&&uA(gA,J),k=nA(gA.sourceEvent),L=((_=A.value)==null?void 0:_.getBoundingClientRect())||null,N=Xe(gA.sourceEvent,L))},QA=(gA,J)=>{const _=nA(gA.sourceEvent);if(!HA&&Y&&g.value&&(HA=!0,$()),!Y){const F=_.xSnapped-(k.x??0),x=_.ySnapped-(k.y??0);Math.sqrt(F*F+x*x)>d.value&&uA(gA,J)}(k.x!==_.xSnapped||k.y!==_.ySnapped)&&X.length&&Y&&(O=gA.sourceEvent,N=Xe(gA.sourceEvent,L),Z(_))},_A=gA=>{let J=!1;if(!Y&&!H.value&&!y.value){const _=gA.sourceEvent,F=nA(_),x=F.xSnapped-(k.x??0),G=F.ySnapped-(k.y??0),P=Math.sqrt(x*x+G*G);P!==0&&P<=d.value&&(lA?.(_),J=!0)}if(X.length&&!J){tA&&(b(X,!1,!1),tA=!1);const[_,F]=hi({id:AA,dragItems:X,findNode:v});cA({event:gA.sourceEvent,node:_,nodes:F})}X=[],H.value=!1,HA=!1,Y=!1,k={x:void 0,y:void 0},cancelAnimationFrame(pA)};return(0,o.watch)([()=>(0,o.toValue)(iA),oA],([gA,J],_,F)=>{if(J){const x=Te(J);gA||(U=Yf().on("start",G=>wA(G,J)).on("drag",G=>QA(G,J)).on("end",G=>_A(G)).filter(G=>{const P=G.target,fA=(0,o.toValue)(eA);return!G.button&&(!r.value||!Ka(P,`.${r.value}`,J)&&(!fA||Ka(P,fA,J)))}),x.call(U)),F(()=>{x.on(".drag",null),U&&(U.on("start",null),U.on("drag",null),U.on("end",null))})}}),H}function QB(){return{doubleClick:yA(),click:yA(),mouseEnter:yA(),mouseMove:yA(),mouseLeave:yA(),contextMenu:yA(),updateStart:yA(),update:yA(),updateEnd:yA()}}function EB(e,A){const t=QB();return t.doubleClick.on(n=>{var r,a;A.edgeDoubleClick(n),(a=(r=e.events)==null?void 0:r.doubleClick)==null||a.call(r,n)}),t.click.on(n=>{var r,a;A.edgeClick(n),(a=(r=e.events)==null?void 0:r.click)==null||a.call(r,n)}),t.mouseEnter.on(n=>{var r,a;A.edgeMouseEnter(n),(a=(r=e.events)==null?void 0:r.mouseEnter)==null||a.call(r,n)}),t.mouseMove.on(n=>{var r,a;A.edgeMouseMove(n),(a=(r=e.events)==null?void 0:r.mouseMove)==null||a.call(r,n)}),t.mouseLeave.on(n=>{var r,a;A.edgeMouseLeave(n),(a=(r=e.events)==null?void 0:r.mouseLeave)==null||a.call(r,n)}),t.contextMenu.on(n=>{var r,a;A.edgeContextMenu(n),(a=(r=e.events)==null?void 0:r.contextMenu)==null||a.call(r,n)}),t.updateStart.on(n=>{var r,a;A.edgeUpdateStart(n),(a=(r=e.events)==null?void 0:r.updateStart)==null||a.call(r,n)}),t.update.on(n=>{var r,a;A.edgeUpdate(n),(a=(r=e.events)==null?void 0:r.update)==null||a.call(r,n)}),t.updateEnd.on(n=>{var r,a;A.edgeUpdateEnd(n),(a=(r=e.events)==null?void 0:r.updateEnd)==null||a.call(r,n)}),Object.entries(t).reduce((n,[r,a])=>(n.emit[r]=a.trigger,n.on[r]=a.on,n),{emit:{},on:{}})}function FB(){const{viewport:e,snapGrid:A,snapToGrid:t,vueFlowRef:n}=XA();return r=>{var a;const u=((a=n.value)==null?void 0:a.getBoundingClientRect())??{left:0,top:0},{x:d,y:h}=Xe(cB(r)?r.sourceEvent:r,u),g=Rn({x:d,y:h},e.value),{x:B,y:w}=t.value?kr(g,A.value):g;return{xSnapped:B,ySnapped:w,...g}}}function Or(){return!0}function tl({handleId:e,nodeId:A,type:t,isValidConnection:n,edgeUpdaterType:r,onEdgeUpdate:a,onEdgeUpdateEnd:u}){const{id:d,vueFlowRef:h,connectionMode:g,connectionRadius:B,connectOnClick:w,connectionClickStartHandle:m,nodesConnectable:v,autoPanOnConnect:y,autoPanSpeed:I,findNode:T,panBy:D,startConnection:V,updateConnection:b,endConnection:K,emits:sA,viewport:W,edges:cA,nodes:lA,isValidConnection:oA,nodeLookup:iA}=XA();let AA=null,S=!1,eA=null;function H(U){var L;const k=(0,o.toValue)(t)==="target",N=pi(U),O=ya(U.target),Y=U.currentTarget;if(Y&&(N&&U.button===0||!N)){let tA=function(EA){_=Xe(EA,_A),Z=hB(Rn(_,W.value,!1,[1,1]),B.value,iA.value,G),F||(x(),F=!0);const FA=Ga(EA,{handle:Z,connectionMode:g.value,fromNodeId:(0,o.toValue)(A),fromHandleId:(0,o.toValue)(e),fromType:k?"target":"source",isValidConnection:nA,doc:O,lib:"vue",flowId:d,nodeLookup:iA.value},cA.value,lA.value,T,iA.value);eA=FA.handleDomNode,AA=FA.connection,S=pB(!!Z,FA.isValid);const DA={...hA,isValid:S,to:FA.toHandle&&S?Kn({x:FA.toHandle.x,y:FA.toHandle.y},W.value):_,toHandle:FA.toHandle,toPosition:S&&FA.toHandle?FA.toHandle.position:wi[G.position],toNode:FA.toHandle?iA.value.get(FA.toHandle.nodeId):null};if(S&&Z&&hA?.toHandle&&DA.toHandle&&hA.toHandle.type===DA.toHandle.type&&hA.toHandle.nodeId===DA.toHandle.nodeId&&hA.toHandle.id===DA.toHandle.id&&hA.to.x===DA.to.x&&hA.to.y===DA.to.y)return;const OA=Z??FA.toHandle;if(b(OA&&S?Kn({x:OA.x,y:OA.y},W.value):_,OA,BB(!!OA,S)),hA=DA,!Z&&!S&&!eA)return mi(J);AA&&AA.source!==AA.target&&eA&&(mi(J),J=eA,eA.classList.add("connecting","vue-flow__handle-connecting"),eA.classList.toggle("valid",!!S),eA.classList.toggle("vue-flow__handle-valid",!!S))},pA=function(EA){"touches"in EA&&EA.touches.length>0||((Z||eA)&&AA&&S&&(a?a(EA,AA):sA.connect(AA)),sA.connectEnd(EA),r&&u?.(EA),mi(J),cancelAnimationFrame($),K(EA),F=!1,S=!1,AA=null,eA=null,O.removeEventListener("mousemove",tA),O.removeEventListener("mouseup",pA),O.removeEventListener("touchmove",tA),O.removeEventListener("touchend",pA))};const HA=T((0,o.toValue)(A));let nA=(0,o.toValue)(n)||oA.value||Or;!nA&&HA&&(nA=(k?HA.isValidSourcePos:HA.isValidTargetPos)||Or);let Z,$=0;const{x:uA,y:wA}=Xe(U),QA=za((0,o.toValue)(r),Y),_A=(L=h.value)==null?void 0:L.getBoundingClientRect();if(!_A||!QA)return;const gA=Xa((0,o.toValue)(A),QA,(0,o.toValue)(e),iA.value,g.value);if(!gA)return;let J,_=Xe(U,_A),F=!1;const x=()=>{if(!y.value)return;const[EA,FA]=Na(_,_A,I.value);D({x:EA,y:FA}),$=requestAnimationFrame(x)},G={...gA,nodeId:(0,o.toValue)(A),type:QA,position:gA.position},P=iA.value.get((0,o.toValue)(A)),fA={inProgress:!0,isValid:null,from:tn(P,G,IA.Left,!0),fromHandle:G,fromPosition:G.position,fromNode:P,to:_,toHandle:null,toPosition:wi[G.position],toNode:null};V({nodeId:(0,o.toValue)(A),id:(0,o.toValue)(e),type:QA,position:Y?.getAttribute("data-handlepos")||IA.Top,..._},{x:uA-_A.left,y:wA-_A.top}),sA.connectStart({event:U,nodeId:(0,o.toValue)(A),handleId:(0,o.toValue)(e),handleType:QA});let hA=fA;O.addEventListener("mousemove",tA),O.addEventListener("mouseup",pA),O.addEventListener("touchmove",tA),O.addEventListener("touchend",pA)}}function X(U){var L,k;if(!w.value)return;const N=(0,o.toValue)(t)==="target";if(!m.value){sA.clickConnectStart({event:U,nodeId:(0,o.toValue)(A),handleId:(0,o.toValue)(e)}),V({nodeId:(0,o.toValue)(A),type:(0,o.toValue)(t),id:(0,o.toValue)(e),position:IA.Top,...Xe(U)},void 0,!0);return}let O=(0,o.toValue)(n)||oA.value||Or;const Y=T((0,o.toValue)(A));if(!O&&Y&&(O=(N?Y.isValidSourcePos:Y.isValidTargetPos)||Or),Y&&(typeof Y.connectable>"u"?v.value:Y.connectable)===!1)return;const tA=ya(U.target),pA=Ga(U,{handle:{nodeId:(0,o.toValue)(A),id:(0,o.toValue)(e),type:(0,o.toValue)(t),position:IA.Top,...Xe(U)},connectionMode:g.value,fromNodeId:m.value.nodeId,fromHandleId:m.value.id??null,fromType:m.value.type,isValidConnection:O,doc:tA,lib:"vue",flowId:d,nodeLookup:iA.value},cA.value,lA.value,T,iA.value),HA=((L=pA.connection)==null?void 0:L.source)===((k=pA.connection)==null?void 0:k.target);pA.isValid&&pA.connection&&!HA&&sA.connect(pA.connection),sA.clickConnectEnd(U),K(U,!0)}return{handlePointerDown:H,handleClick:X}}function UB(){return(0,o.inject)(qa,"")}function nl(e){const A=e??UB()??"",t=(0,o.inject)(Al,(0,o.ref)(null)),{findNode:n,edges:r,emits:a}=XA(),u=n(A);return u||a.error(new ce(ie.NODE_NOT_FOUND,A)),{id:A,nodeEl:t,node:u,parentNode:(0,o.computed)(()=>n(u.parentNode)),connectedEdges:(0,o.computed)(()=>Ia([u],r.value))}}function bB(){return{doubleClick:yA(),click:yA(),mouseEnter:yA(),mouseMove:yA(),mouseLeave:yA(),contextMenu:yA(),dragStart:yA(),drag:yA(),dragStop:yA()}}function HB(e,A){const t=bB();return t.doubleClick.on(n=>{var r,a;A.nodeDoubleClick(n),(a=(r=e.events)==null?void 0:r.doubleClick)==null||a.call(r,n)}),t.click.on(n=>{var r,a;A.nodeClick(n),(a=(r=e.events)==null?void 0:r.click)==null||a.call(r,n)}),t.mouseEnter.on(n=>{var r,a;A.nodeMouseEnter(n),(a=(r=e.events)==null?void 0:r.mouseEnter)==null||a.call(r,n)}),t.mouseMove.on(n=>{var r,a;A.nodeMouseMove(n),(a=(r=e.events)==null?void 0:r.mouseMove)==null||a.call(r,n)}),t.mouseLeave.on(n=>{var r,a;A.nodeMouseLeave(n),(a=(r=e.events)==null?void 0:r.mouseLeave)==null||a.call(r,n)}),t.contextMenu.on(n=>{var r,a;A.nodeContextMenu(n),(a=(r=e.events)==null?void 0:r.contextMenu)==null||a.call(r,n)}),t.dragStart.on(n=>{var r,a;A.nodeDragStart(n),(a=(r=e.events)==null?void 0:r.dragStart)==null||a.call(r,n)}),t.drag.on(n=>{var r,a;A.nodeDrag(n),(a=(r=e.events)==null?void 0:r.drag)==null||a.call(r,n)}),t.dragStop.on(n=>{var r,a;A.nodeDragStop(n),(a=(r=e.events)==null?void 0:r.dragStop)==null||a.call(r,n)}),Object.entries(t).reduce((n,[r,a])=>(n.emit[r]=a.trigger,n.on[r]=a.on,n),{emit:{},on:{}})}function rl(){const{getSelectedNodes:e,nodeExtent:A,updateNodePositions:t,findNode:n,snapGrid:r,snapToGrid:a,nodesDraggable:u,emits:d}=XA();return(h,g=!1)=>{const B=a.value?r.value[0]:5,w=a.value?r.value[1]:5,m=g?4:1,v=h.x*B*m,y=h.y*w*m,I=[];for(const T of e.value)if(T.draggable||u&&typeof T.draggable>"u"){const{position:D}=Bi(T,{x:T.computedPosition.x+v,y:T.computedPosition.y+y},d.error,A.value,T.parentNode?n(T.parentNode):void 0);I.push({id:T.id,position:D,from:T.position,distance:{x:h.x,y:h.y},dimensions:T.dimensions})}t(I,!0,!1)}}var Kr=.1,IB=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2;function pt(){return Pn("Viewport not initialized yet."),Promise.resolve(!1)}var _B={zoomIn:pt,zoomOut:pt,zoomTo:pt,fitView:pt,setCenter:pt,fitBounds:pt,project:e=>e,screenToFlowCoordinate:e=>e,flowToScreenCoordinate:e=>e,setViewport:pt,setTransform:pt,getViewport:()=>({x:0,y:0,zoom:1}),getTransform:()=>({x:0,y:0,zoom:1}),viewportInitialized:!1};function SB(e){function A(n,r){return new Promise(a=>{e.d3Selection&&e.d3Zoom?e.d3Zoom.interpolate(r?.interpolate==="linear"?Sn:yr).scaleBy(Qi(e.d3Selection,r?.duration,r?.ease,()=>{a(!0)}),n):a(!1)})}function t(n,r,a,u){return new Promise(d=>{var h;const{x:g,y:B}=va({x:-n,y:-r},e.translateExtent),w=qt.translate(-g,-B).scale(a);e.d3Selection&&e.d3Zoom?(h=e.d3Zoom)==null||h.interpolate(u?.interpolate==="linear"?Sn:yr).transform(Qi(e.d3Selection,u?.duration,u?.ease,()=>{d(!0)}),w):d(!1)})}return(0,o.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,r)=>new Promise(a=>{e.d3Selection&&e.d3Zoom?e.d3Zoom.interpolate(r?.interpolate==="linear"?Sn:yr).scaleTo(Qi(e.d3Selection,r?.duration,r?.ease,()=>{a(!0)}),n):a(!1)}),setViewport:(n,r)=>t(n.x,n.y,n.zoom,r),setTransform:(n,r)=>t(n.x,n.y,n.zoom,r),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:Kr,includeHiddenNodes:!1,duration:0})=>{var r,a;const u=[];for(const B of e.nodes)B.dimensions.width&&B.dimensions.height&&(n?.includeHiddenNodes||!B.hidden)&&(!((r=n.nodes)!=null&&r.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}=_a(ba(u),e.dimensions.width,e.dimensions.height,n.minZoom??e.minZoom,n.maxZoom??e.maxZoom,n.padding??Kr);return t(d,h,g,n)},setCenter:(n,r,a)=>{const u=typeof a?.zoom<"u"?a.zoom:e.maxZoom;return t(e.dimensions.width/2-n*u,e.dimensions.height/2-r*u,u,a)},fitBounds:(n,r={padding:Kr})=>{const{x:a,y:u,zoom:d}=_a(n,e.dimensions.width,e.dimensions.height,e.minZoom,e.maxZoom,r.padding??Kr);return t(a,u,d,r)},project:n=>Rn(n,e.viewport,e.snapToGrid,e.snapGrid),screenToFlowCoordinate:n=>{if(e.vueFlowRef){const{x:r,y:a}=e.vueFlowRef.getBoundingClientRect();return Rn({x:n.x-r,y:n.y-a},e.viewport,e.snapToGrid,e.snapGrid)}return{x:0,y:0}},flowToScreenCoordinate:n=>{if(e.vueFlowRef){const{x:r,y:a}=e.vueFlowRef.getBoundingClientRect();return Kn({x:n.x+r,y:n.y+a},e.viewport)}return{x:0,y:0}}}:_B)}function Qi(e,A=0,t=IB,n=()=>{}){const r=typeof A=="number"&&A>0;return r||n(),r?e.transition().duration(A).ease(t).on("end",n):e}function xB(e,A,t){const n=(0,o.effectScope)(!0);return n.run(()=>{const r=()=>{n.run(()=>{let I,T,D=!!(t.nodes.value.length||t.edges.value.length);I=Yt([e.modelValue,()=>{var V,b;return(b=(V=e.modelValue)==null?void 0:V.value)==null?void 0:b.length}],([V])=>{V&&Array.isArray(V)&&(T?.pause(),t.setElements(V),!T&&!D&&V.length?D=!0:T?.resume())}),T=Yt([t.nodes,t.edges,()=>t.edges.value.length,()=>t.nodes.value.length],([V,b])=>{var K;(K=e.modelValue)!=null&&K.value&&Array.isArray(e.modelValue.value)&&(I?.pause(),e.modelValue.value=[...V,...b],(0,o.nextTick)(()=>{I?.resume()}))},{immediate:D}),(0,o.onScopeDispose)(()=>{I?.stop(),T?.stop()})})},a=()=>{n.run(()=>{let I,T,D=!!t.nodes.value.length;I=Yt([e.nodes,()=>{var V,b;return(b=(V=e.nodes)==null?void 0:V.value)==null?void 0:b.length}],([V])=>{V&&Array.isArray(V)&&(T?.pause(),t.setNodes(V),!T&&!D&&V.length?D=!0:T?.resume())}),T=Yt([t.nodes,()=>t.nodes.value.length],([V])=>{var b;(b=e.nodes)!=null&&b.value&&Array.isArray(e.nodes.value)&&(I?.pause(),e.nodes.value=[...V],(0,o.nextTick)(()=>{I?.resume()}))},{immediate:D}),(0,o.onScopeDispose)(()=>{I?.stop(),T?.stop()})})},u=()=>{n.run(()=>{let I,T,D=!!t.edges.value.length;I=Yt([e.edges,()=>{var V,b;return(b=(V=e.edges)==null?void 0:V.value)==null?void 0:b.length}],([V])=>{V&&Array.isArray(V)&&(T?.pause(),t.setEdges(V),!T&&!D&&V.length?D=!0:T?.resume())}),T=Yt([t.edges,()=>t.edges.value.length],([V])=>{var b;(b=e.edges)!=null&&b.value&&Array.isArray(e.edges.value)&&(I?.pause(),e.edges.value=[...V],(0,o.nextTick)(()=>{I?.resume()}))},{immediate:D}),(0,o.onScopeDispose)(()=>{I?.stop(),T?.stop()})})},d=()=>{n.run(()=>{(0,o.watch)(()=>A.maxZoom,()=>{A.maxZoom&&se(A.maxZoom)&&t.setMaxZoom(A.maxZoom)},{immediate:!0})})},h=()=>{n.run(()=>{(0,o.watch)(()=>A.minZoom,()=>{A.minZoom&&se(A.minZoom)&&t.setMinZoom(A.minZoom)},{immediate:!0})})},g=()=>{n.run(()=>{(0,o.watch)(()=>A.translateExtent,()=>{A.translateExtent&&se(A.translateExtent)&&t.setTranslateExtent(A.translateExtent)},{immediate:!0})})},B=()=>{n.run(()=>{(0,o.watch)(()=>A.nodeExtent,()=>{A.nodeExtent&&se(A.nodeExtent)&&t.setNodeExtent(A.nodeExtent)},{immediate:!0})})},w=()=>{n.run(()=>{(0,o.watch)(()=>A.applyDefault,()=>{se(A.applyDefault)&&(t.applyDefault.value=A.applyDefault)},{immediate:!0})})},m=()=>{n.run(()=>{const I=async T=>{let D=T;typeof A.autoConnect=="function"&&(D=await A.autoConnect(T)),D!==!1&&t.addEdges([D])};(0,o.watch)(()=>A.autoConnect,()=>{se(A.autoConnect)&&(t.autoConnect.value=A.autoConnect)},{immediate:!0}),(0,o.watch)(t.autoConnect,(T,D,V)=>{T?t.onConnect(I):t.hooks.value.connect.off(I),V(()=>{t.hooks.value.connect.off(I)})},{immediate:!0})})},v=()=>{const I=["id","modelValue","translateExtent","nodeExtent","edges","nodes","maxZoom","minZoom","applyDefault","autoConnect"];for(const T of Object.keys(A)){const D=T;if(!I.includes(D)){const V=(0,o.toRef)(()=>A[D]),b=t[D];(0,o.isRef)(b)&&n.run(()=>{(0,o.watch)(V,K=>{se(K)&&(b.value=K)},{immediate:!0})})}}};r(),a(),u(),h(),d(),g(),B(),w(),m(),v()}),()=>n.stop()}function DB(){return{edgesChange:yA(),nodesChange:yA(),nodeDoubleClick:yA(),nodeClick:yA(),nodeMouseEnter:yA(),nodeMouseMove:yA(),nodeMouseLeave:yA(),nodeContextMenu:yA(),nodeDragStart:yA(),nodeDrag:yA(),nodeDragStop:yA(),nodesInitialized:yA(),miniMapNodeClick:yA(),miniMapNodeDoubleClick:yA(),miniMapNodeMouseEnter:yA(),miniMapNodeMouseMove:yA(),miniMapNodeMouseLeave:yA(),connect:yA(),connectStart:yA(),connectEnd:yA(),clickConnectStart:yA(),clickConnectEnd:yA(),paneReady:yA(),init:yA(),move:yA(),moveStart:yA(),moveEnd:yA(),selectionDragStart:yA(),selectionDrag:yA(),selectionDragStop:yA(),selectionContextMenu:yA(),selectionStart:yA(),selectionEnd:yA(),viewportChangeStart:yA(),viewportChange:yA(),viewportChangeEnd:yA(),paneScroll:yA(),paneClick:yA(),paneContextMenu:yA(),paneMouseEnter:yA(),paneMouseMove:yA(),paneMouseLeave:yA(),edgeContextMenu:yA(),edgeMouseEnter:yA(),edgeMouseMove:yA(),edgeMouseLeave:yA(),edgeDoubleClick:yA(),edgeClick:yA(),edgeUpdateStart:yA(),edgeUpdate:yA(),edgeUpdateEnd:yA(),updateNodeInternals:yA(),error:yA(e=>Pn(e.message))}}function NB(e,A){const t=(0,o.getCurrentInstance)();(0,o.onBeforeMount)(()=>{for(const[r,a]of Object.entries(A.value)){const u=d=>{e(r,d)};a.setEmitter(u),Fn(a.removeEmitter),a.setHasEmitListeners(()=>n(r)),Fn(a.removeHasEmitListeners)}});function n(r){var a;const u=LB(r);return!!((a=t?.vnode.props)!=null&&a[u])}}function LB(e){const[A,...t]=e.split(":");return`on${A.replace(/(?:^|-)(\w)/g,(n,r)=>r.toUpperCase())}${t.length?`:${t.join(":")}`:""}`}function ol(){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:di.Full,paneDragging:!1,preventScrolling:!0,zoomOnScroll:!0,zoomOnPinch:!0,zoomOnDoubleClick:!0,panOnScroll:!1,panOnScrollSpeed:.5,panOnScrollMode:kn.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:Nt.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:Tr()?"Meta":"Control",zoomActivationKeyCode:Tr()?"Meta":"Control",deleteKeyCode:"Backspace",panActivationKeyCode:"Space",hooks:DB(),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 TB=["id","vueFlowRef","viewportRef","initialized","modelValue","nodes","edges","maxZoom","minZoom","translateExtent","hooks","defaultEdgeOptions"];function kB(e,A,t){const n=SB(e),r=_=>{const F=_??[];e.hooks.updateNodeInternals.trigger(F)},a=_=>Zh(_,e.nodes,e.edges),u=_=>Jh(_,e.nodes,e.edges),d=_=>Ia(_,e.edges),h=({id:_,type:F,nodeId:x})=>{var G;const P=_?`-${F}-${_}`:`-${F}`;return Array.from(((G=e.connectionLookup.get(`${x}${P}`))==null?void 0:G.values())??[])},g=_=>{if(_)return A.value.get(_)},B=_=>{if(_)return t.value.get(_)},w=(_,F,x)=>{var G,P;const fA=[];for(const hA of _){const EA={id:hA.id,type:"position",dragging:x,from:hA.from};if(F&&(EA.position=hA.position,hA.parentNode)){const FA=g(hA.parentNode);EA.position={x:EA.position.x-(((G=FA?.computedPosition)==null?void 0:G.x)??0),y:EA.position.y-(((P=FA?.computedPosition)==null?void 0:P.y)??0)}}fA.push(EA)}fA?.length&&e.hooks.nodesChange.trigger(fA)},m=_=>{if(!e.vueFlowRef)return;const F=e.vueFlowRef.querySelector(".vue-flow__transformationpane");if(!F)return;const x=window.getComputedStyle(F),{m22:G}=new window.DOMMatrixReadOnly(x.transform),P=[];for(const fA of _){const hA=fA,EA=g(hA.id);if(EA){const FA=Nr(hA.nodeElement);if(FA.width&&FA.height&&(EA.dimensions.width!==FA.width||EA.dimensions.height!==FA.height||hA.forceUpdate)){const DA=hA.nodeElement.getBoundingClientRect();EA.dimensions=FA,EA.handleBounds.source=Ya("source",hA.nodeElement,DA,G,EA.id),EA.handleBounds.target=Ya("target",hA.nodeElement,DA,G,EA.id),P.push({id:EA.id,type:"dimensions",dimensions:FA})}}}!e.fitViewOnInitDone&&e.fitViewOnInit&&n.value.fitView().then(()=>{e.fitViewOnInitDone=!0}),P.length&&e.hooks.nodesChange.trigger(P)},v=(_,F)=>{const x=new Set,G=new Set;for(const hA of _)Tt(hA)?x.add(hA.id):gt(hA)&&G.add(hA.id);const P=Bt(A.value,x,!0),fA=Bt(t.value,G);if(e.multiSelectionActive){for(const hA of x)P.push(ht(hA,F));for(const hA of G)fA.push(ht(hA,F))}P.length&&e.hooks.nodesChange.trigger(P),fA.length&&e.hooks.edgesChange.trigger(fA)},y=_=>{if(e.multiSelectionActive){const F=_.map(x=>ht(x.id,!0));e.hooks.nodesChange.trigger(F);return}e.hooks.nodesChange.trigger(Bt(A.value,new Set(_.map(F=>F.id)),!0)),e.hooks.edgesChange.trigger(Bt(t.value))},I=_=>{if(e.multiSelectionActive){const F=_.map(x=>ht(x.id,!0));e.hooks.edgesChange.trigger(F);return}e.hooks.edgesChange.trigger(Bt(t.value,new Set(_.map(F=>F.id)))),e.hooks.nodesChange.trigger(Bt(A.value,new Set,!0))},T=_=>{v(_,!0)},D=_=>{const F=(_||e.nodes).map(x=>(x.selected=!1,ht(x.id,!1)));e.hooks.nodesChange.trigger(F)},V=_=>{const F=(_||e.edges).map(x=>(x.selected=!1,ht(x.id,!1)));e.hooks.edgesChange.trigger(F)},b=_=>{if(!_||!_.length)return v([],!1);const F=_.reduce((x,G)=>{const P=ht(G.id,!1);return Tt(G)?x.nodes.push(P):x.edges.push(P),x},{nodes:[],edges:[]});F.nodes.length&&e.hooks.nodesChange.trigger(F.nodes),F.edges.length&&e.hooks.edgesChange.trigger(F.edges)},K=_=>{var F;(F=e.d3Zoom)==null||F.scaleExtent([_,e.maxZoom]),e.minZoom=_},sA=_=>{var F;(F=e.d3Zoom)==null||F.scaleExtent([e.minZoom,_]),e.maxZoom=_},W=_=>{var F;(F=e.d3Zoom)==null||F.translateExtent(_),e.translateExtent=_},cA=_=>{e.nodeExtent=_,r()},lA=_=>{var F;(F=e.d3Zoom)==null||F.clickDistance(_)},oA=_=>{e.nodesDraggable=_,e.nodesConnectable=_,e.elementsSelectable=_},iA=_=>{const F=_ instanceof Function?_(e.nodes):_;!e.initialized&&!F.length||(e.nodes=Wa(F,g,e.hooks.error.trigger))},AA=_=>{const F=_ instanceof Function?_(e.edges):_;if(!e.initialized&&!F.length)return;const x=yi(F,e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);vi(e.connectionLookup,t.value,x),e.edges=x},S=_=>{const F=_ instanceof Function?_([...e.nodes,...e.edges]):_;!e.initialized&&!F.length||(iA(F.filter(Tt)),AA(F.filter(gt)))},eA=_=>{let F=_ instanceof Function?_(e.nodes):_;F=Array.isArray(F)?F:[F];const x=Wa(F,g,e.hooks.error.trigger),G=[];for(const P of x)G.push(Ta(P));G.length&&e.hooks.nodesChange.trigger(G)},H=_=>{let F=_ instanceof Function?_(e.edges):_;F=Array.isArray(F)?F:[F];const x=yi(F,e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges),G=[];for(const P of x)G.push(Ta(P));G.length&&e.hooks.edgesChange.trigger(G)},X=(_,F=!0,x=!1)=>{const G=_ instanceof Function?_(e.nodes):_,P=Array.isArray(G)?G:[G],fA=[],hA=[];function EA(DA){const OA=d(DA);for(const KA of OA)(!se(KA.deletable)||KA.deletable)&&hA.push(Ma(KA.id,KA.source,KA.target,KA.sourceHandle,KA.targetHandle))}function FA(DA){const OA=[];for(const KA of e.nodes)KA.parentNode===DA&&OA.push(KA);if(OA.length){for(const KA of OA)fA.push(ka(KA.id));F&&EA(OA);for(const KA of OA)FA(KA.id)}}for(const DA of P){const OA=typeof DA=="string"?g(DA):DA;OA&&(se(OA.deletable)&&!OA.deletable||(fA.push(ka(OA.id)),F&&EA([OA]),x&&FA(OA.id)))}hA.length&&e.hooks.edgesChange.trigger(hA),fA.length&&e.hooks.nodesChange.trigger(fA)},U=_=>{const F=_ instanceof Function?_(e.edges):_,x=Array.isArray(F)?F:[F],G=[];for(const P of x){const fA=typeof P=="string"?B(P):P;fA&&(se(fA.deletable)&&!fA.deletable||G.push(Ma(typeof P=="string"?P:P.id,fA.source,fA.target,fA.sourceHandle,fA.targetHandle)))}e.hooks.edgesChange.trigger(G)},L=(_,F,x=!0)=>{const G=B(_.id);if(!G)return!1;const P=e.edges.indexOf(G),fA=CB(_,F,G,x,e.hooks.error.trigger);if(fA){const[hA]=yi([fA],e.isValidConnection,g,B,e.hooks.error.trigger,e.defaultEdgeOptions,e.nodes,e.edges);return e.edges=e.edges.map((EA,FA)=>FA===P?hA:EA),vi(e.connectionLookup,t.value,[hA]),hA}return!1},k=(_,F,x={replace:!1})=>{const G=B(_);if(!G)return;const P=typeof F=="function"?F(G):F;G.data=x.replace?P:{...G.data,...P}},N=_=>La(_,e.nodes),O=_=>{const F=La(_,e.edges);return vi(e.connectionLookup,t.value,F),F},Y=(_,F,x={replace:!1})=>{const G=g(_);if(!G)return;const P=typeof F=="function"?F(G):F;x.replace?e.nodes.splice(e.nodes.indexOf(G),1,P):Object.assign(G,P)},tA=(_,F,x={replace:!1})=>{const G=g(_);if(!G)return;const P=typeof F=="function"?F(G):F;G.data=x.replace?P:{...G.data,...P}},pA=(_,F,x=!1)=>{x?e.connectionClickStartHandle=_:e.connectionStartHandle=_,e.connectionEndHandle=null,e.connectionStatus=null,F&&(e.connectionPosition=F)},HA=(_,F=null,x=null)=>{e.connectionStartHandle&&(e.connectionPosition=_,e.connectionEndHandle=F,e.connectionStatus=x)},nA=(_,F)=>{e.connectionPosition={x:NaN,y:NaN},e.connectionEndHandle=null,e.connectionStatus=null,F?e.connectionClickStartHandle=null:e.connectionStartHandle=null},Z=_=>{const F=Yh(_),x=F?null:On(_)?_:g(_.id);return!F&&!x?[null,null,F]:[F?_:xr(x),x,F]},$=(_,F=!0,x=e.nodes)=>{const[G,P,fA]=Z(_);if(!G)return[];const hA=[];for(const EA of x||e.nodes){if(!fA&&(EA.id===P.id||!EA.computedPosition))continue;const FA=xr(EA),DA=Dr(FA,G);(F&&DA>0||DA>=FA.width*FA.height||DA>=Number(G.width)*Number(G.height))&&hA.push(EA)}return hA},uA=(_,F,x=!0)=>{const[G]=Z(_);if(!G)return!1;const P=Dr(G,F);return x&&P>0||P>=Number(G.width)*Number(G.height)},wA=_=>{const{viewport:F,dimensions:x,d3Zoom:G,d3Selection:P,translateExtent:fA}=e;if(!G||!P||!_.x&&!_.y)return!1;const hA=qt.translate(F.x+_.x,F.y+_.y).scale(F.zoom),EA=[[0,0],[x.width,x.height]],FA=G.constrain()(hA,EA,fA),DA=e.viewport.x!==FA.x||e.viewport.y!==FA.y||e.viewport.zoom!==FA.k;return G.transform(P,FA),DA},QA=_=>{const F=_ instanceof Function?_(e):_,x=["d3Zoom","d3Selection","d3ZoomHandler","viewportRef","vueFlowRef","dimensions","hooks"];se(F.defaultEdgeOptions)&&(e.defaultEdgeOptions=F.defaultEdgeOptions);const G=F.modelValue||F.nodes||F.edges?[]:void 0;G&&(F.modelValue&&G.push(...F.modelValue),F.nodes&&G.push(...F.nodes),F.edges&&G.push(...F.edges),S(G));const P=()=>{se(F.maxZoom)&&sA(F.maxZoom),se(F.minZoom)&&K(F.minZoom),se(F.translateExtent)&&W(F.translateExtent)};for(const fA of Object.keys(F)){const hA=fA,EA=F[hA];![...TB,...x].includes(hA)&&se(EA)&&(e[hA]=EA)}zo(()=>e.d3Zoom).not.toBeNull().then(P),e.initialized||(e.initialized=!0)};return{updateNodePositions:w,updateNodeDimensions:m,setElements:S,setNodes:iA,setEdges:AA,addNodes:eA,addEdges:H,removeNodes:X,removeEdges:U,findNode:g,findEdge:B,updateEdge:L,updateEdgeData:k,updateNode:Y,updateNodeData:tA,applyEdgeChanges:O,applyNodeChanges:N,addSelectedElements:T,addSelectedNodes:y,addSelectedEdges:I,setMinZoom:K,setMaxZoom:sA,setTranslateExtent:W,setNodeExtent:cA,setPaneClickDistance:lA,removeSelectedElements:b,removeSelectedNodes:D,removeSelectedEdges:V,startConnection:pA,updateConnection:HA,endConnection:nA,setInteractive:oA,setState:QA,getIntersectingNodes:$,getIncomers:a,getOutgoers:u,getConnectedEdges:d,getHandleConnections:h,isNodeIntersecting:uA,panBy:wA,fitView:_=>n.value.fitView(_),zoomIn:_=>n.value.zoomIn(_),zoomOut:_=>n.value.zoomOut(_),zoomTo:(_,F)=>n.value.zoomTo(_,F),setViewport:(_,F)=>n.value.setViewport(_,F),setTransform:(_,F)=>n.value.setTransform(_,F),getViewport:()=>n.value.getViewport(),getTransform:()=>n.value.getTransform(),setCenter:(_,F,x)=>n.value.setCenter(_,F,x),fitBounds:(_,F)=>n.value.fitBounds(_,F),project:_=>n.value.project(_),screenToFlowCoordinate:_=>n.value.screenToFlowCoordinate(_),flowToScreenCoordinate:_=>n.value.flowToScreenCoordinate(_),toObject:()=>{const _=[],F=[];for(const x of e.nodes){const{computedPosition:G,handleBounds:P,selected:fA,dimensions:hA,isParent:EA,resizing:FA,dragging:DA,events:OA,...KA}=x;_.push(KA)}for(const x of e.edges){const{selected:G,sourceNode:P,targetNode:fA,events:hA,...EA}=x;F.push(EA)}return JSON.parse(JSON.stringify({nodes:_,edges:F,position:[e.viewport.x,e.viewport.y],zoom:e.viewport.zoom,viewport:e.viewport}))},fromObject:_=>new Promise(F=>{const{nodes:x,edges:G,position:P,zoom:fA,viewport:hA}=_;x&&iA(x),G&&AA(G);const[EA,FA]=hA?.x&&hA?.y?[hA.x,hA.y]:P??[null,null];if(EA&&FA){const DA=hA?.zoom||fA||e.viewport.zoom;return zo(()=>n.value.viewportInitialized).toBe(!0).then(()=>{n.value.setViewport({x:EA,y:FA,zoom:DA}).then(()=>{F(!0)})})}else F(!0)}),updateNodeInternals:r,viewportHelper:n,$reset:()=>{const _=ol();if(e.edges=[],e.nodes=[],e.d3Zoom&&e.d3Selection){const F=qt.translate(_.defaultViewport.x??0,_.defaultViewport.y??0).scale(Lt(_.defaultViewport.zoom??1,_.minZoom,_.maxZoom)),x=e.viewportRef.getBoundingClientRect(),G=[[0,0],[x.width,x.height]],P=e.d3Zoom.constrain()(F,G,_.translateExtent);e.d3Zoom.transform(e.d3Selection,P)}QA(_)},$destroy:()=>{}}}var MB=["data-id","data-handleid","data-nodeid","data-handlepos"],nn=(0,o.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,o.createPropsRestProxy)(e,["position","connectable","connectableStart","connectableEnd","id"]),n=(0,o.toRef)(()=>t.type??"source"),r=(0,o.toRef)(()=>t.isValidConnection??null),{id:a,connectionStartHandle:u,connectionClickStartHandle:d,connectionEndHandle:h,vueFlowRef:g,nodesConnectable:B,noDragClassName:w,noPanClassName:m}=XA(),{id:v,node:y,nodeEl:I,connectedEdges:T}=nl(),D=(0,o.ref)(),V=(0,o.toRef)(()=>typeof e.connectableStart<"u"?e.connectableStart:!0),b=(0,o.toRef)(()=>typeof e.connectableEnd<"u"?e.connectableEnd:!0),K=(0,o.toRef)(()=>{var AA,S,eA,H,X,U;return((AA=u.value)==null?void 0:AA.nodeId)===v&&((S=u.value)==null?void 0:S.id)===e.id&&((eA=u.value)==null?void 0:eA.type)===n.value||((H=h.value)==null?void 0:H.nodeId)===v&&((X=h.value)==null?void 0:X.id)===e.id&&((U=h.value)==null?void 0:U.type)===n.value}),sA=(0,o.toRef)(()=>{var AA,S,eA;return((AA=d.value)==null?void 0:AA.nodeId)===v&&((S=d.value)==null?void 0:S.id)===e.id&&((eA=d.value)==null?void 0:eA.type)===n.value}),{handlePointerDown:W,handleClick:cA}=tl({nodeId:v,handleId:e.id,isValidConnection:r,type:n}),lA=(0,o.computed)(()=>typeof e.connectable=="string"&&e.connectable==="single"?!T.value.some(AA=>{const S=AA[`${n.value}Handle`];return AA[n.value]!==v?!1:S?S===e.id:!0}):typeof e.connectable=="number"?T.value.filter(AA=>{const S=AA[`${n.value}Handle`];return AA[n.value]!==v?!1:S?S===e.id:!0}).length<e.connectable:typeof e.connectable=="function"?e.connectable(y,T.value):se(e.connectable)?e.connectable:B.value);(0,o.onMounted)(()=>{var AA;if(!y.dimensions.width||!y.dimensions.height)return;const S=(AA=y.handleBounds[n.value])==null?void 0:AA.find(N=>N.id===e.id);if(!g.value||S)return;const eA=g.value.querySelector(".vue-flow__transformationpane");if(!I.value||!D.value||!eA||!e.id)return;const H=I.value.getBoundingClientRect(),X=D.value.getBoundingClientRect(),U=window.getComputedStyle(eA),{m22:L}=new window.DOMMatrixReadOnly(U.transform),k={id:e.id,position:e.position,x:(X.left-H.left)/L,y:(X.top-H.top)/L,type:n.value,nodeId:v,...Nr(D.value)};y.handleBounds[n.value]=[...y.handleBounds[n.value]??[],k]});function oA(AA){const S=pi(AA);lA.value&&V.value&&(S&&AA.button===0||!S)&&W(AA)}function iA(AA){!v||!d.value&&!V.value||lA.value&&cA(AA)}return A({handleClick:cA,handlePointerDown:W,onClick:iA,onPointerDown:oA}),(AA,S)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{ref_key:"handle",ref:D,"data-id":`${(0,o.unref)(a)}-${(0,o.unref)(v)}-${e.id}-${n.value}`,"data-handleid":e.id,"data-nodeid":(0,o.unref)(v),"data-handlepos":AA.position,class:(0,o.normalizeClass)(["vue-flow__handle",[`vue-flow__handle-${AA.position}`,`vue-flow__handle-${e.id}`,(0,o.unref)(w),(0,o.unref)(m),n.value,{connectable:lA.value,connecting:sA.value,connectablestart:V.value,connectableend:b.value,connectionindicator:lA.value&&(V.value&&!K.value||b.value&&K.value)}]]),onMousedown:oA,onTouchstartPassive:oA,onClick:iA},[(0,o.renderSlot)(AA.$slots,"default",{id:AA.id})],42,MB))}}),Rr=function({sourcePosition:e=IA.Bottom,targetPosition:A=IA.Top,label:t,connectable:n=!0,isValidTargetPos:r,isValidSourcePos:a,data:u}){const d=u.label??t;return[(0,o.h)(nn,{type:"target",position:A,connectable:n,isValidConnection:r}),typeof d!="string"&&d?(0,o.h)(d):(0,o.h)(o.Fragment,[d]),(0,o.h)(nn,{type:"source",position:e,connectable:n,isValidConnection:a})]};Rr.props=["sourcePosition","targetPosition","label","isValidTargetPos","isValidSourcePos","connectable","data"],Rr.inheritAttrs=!1,Rr.compatConfig={MODE:3};var OB=Rr,Vr=function({targetPosition:e=IA.Top,label:A,connectable:t=!0,isValidTargetPos:n,data:r}){const a=r.label??A;return[(0,o.h)(nn,{type:"target",position:e,connectable:t,isValidConnection:n}),typeof a!="string"&&a?(0,o.h)(a):(0,o.h)(o.Fragment,[a])]};Vr.props=["targetPosition","label","isValidTargetPos","connectable","data"],Vr.inheritAttrs=!1,Vr.compatConfig={MODE:3};var KB=Vr,Pr=function({sourcePosition:e=IA.Bottom,label:A,connectable:t=!0,isValidSourcePos:n,data:r}){const a=r.label??A;return[typeof a!="string"&&a?(0,o.h)(a):(0,o.h)(o.Fragment,[a]),(0,o.h)(nn,{type:"source",position:e,connectable:t,isValidConnection:n})]};Pr.props=["sourcePosition","label","isValidSourcePos","connectable","data"],Pr.inheritAttrs=!1,Pr.compatConfig={MODE:3};var RB=Pr,VB=["transform"],PB=["width","height","x","y","rx","ry"],GB=["y"],zB=(0,o.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,o.ref)({x:0,y:0,width:0,height:0}),t=(0,o.ref)(null),n=(0,o.computed)(()=>`translate(${e.x-A.value.width/2} ${e.y-A.value.height/2})`);(0,o.onMounted)(r),(0,o.watch)([()=>e.x,()=>e.y,t,()=>e.label],r);function r(){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,o.openBlock)(),(0,o.createElementBlock)("g",{transform:n.value,class:"vue-flow__edge-textwrapper"},[a.labelShowBg?((0,o.openBlock)(),(0,o.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,o.normalizeStyle)(a.labelBgStyle),rx:a.labelBgBorderRadius,ry:a.labelBgBorderRadius},null,12,PB)):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("text",(0,o.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,o.renderSlot)(a.$slots,"default",{},()=>[typeof a.label!="string"?((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(a.label),{key:0})):((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:1},[(0,o.createTextVNode)((0,o.toDisplayString)(a.label),1)],64))])],16,GB)],8,VB))}}),XB=["id","d","marker-end","marker-start"],$B=["d","stroke-width"],Gn=(0,o.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,o.ref)(null),n=(0,o.ref)(null),r=(0,o.ref)(null),a=(0,o.useAttrs)();return A({pathEl:t,interactionEl:n,labelEl:r}),(u,d)=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[(0,o.createElementVNode)("path",(0,o.mergeProps)((0,o.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,XB),u.interactionWidth?((0,o.openBlock)(),(0,o.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,$B)):(0,o.createCommentVNode)("",!0),u.label&&u.labelX&&u.labelY?((0,o.openBlock)(),(0,o.createBlock)(zB,{key:1,ref_key:"labelEl",ref:r,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,o.createCommentVNode)("",!0)],64))}});function il({sourceX:e,sourceY:A,targetX:t,targetY:n}){const r=Math.abs(t-e)/2,a=t<e?t+r:t-r,u=Math.abs(n-A)/2;return[a,n<A?n+u:n-u,r,u]}function sl({sourceX:e,sourceY:A,targetX:t,targetY:n,sourceControlX:r,sourceControlY:a,targetControlX:u,targetControlY:d}){const h=e*.125+r*.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 Gr(e,A){return e>=0?.5*e:A*25*Math.sqrt(-e)}function al({pos:e,x1:A,y1:t,x2:n,y2:r,c:a}){let u,d;switch(e){case IA.Left:u=A-Gr(A-n,a),d=t;break;case IA.Right:u=A+Gr(n-A,a),d=t;break;case IA.Top:u=A,d=t-Gr(t-r,a);break;case IA.Bottom:u=A,d=t+Gr(r-t,a);break}return[u,d]}function Ei(e){const{sourceX:A,sourceY:t,sourcePosition:n=IA.Bottom,targetX:r,targetY:a,targetPosition:u=IA.Top,curvature:d=.25}=e,[h,g]=al({pos:n,x1:A,y1:t,x2:r,y2:a,c:d}),[B,w]=al({pos:u,x1:r,y1:a,x2:A,y2:t,c:d}),[m,v,y,I]=sl({sourceX:A,sourceY:t,targetX:r,targetY:a,sourceControlX:h,sourceControlY:g,targetControlX:B,targetControlY:w});return[`M${A},${t} C${h},${g} ${B},${w} ${r},${a}`,m,v,y,I]}function ll({pos:e,x1:A,y1:t,x2:n,y2:r}){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+r);break}return[a,u]}function cl(e){const{sourceX:A,sourceY:t,sourcePosition:n=IA.Bottom,targetX:r,targetY:a,targetPosition:u=IA.Top}=e,[d,h]=ll({pos:n,x1:A,y1:t,x2:r,y2:a}),[g,B]=ll({pos:u,x1:r,y1:a,x2:A,y2:t}),[w,m,v,y]=sl({sourceX:A,sourceY:t,targetX:r,targetY:a,sourceControlX:d,sourceControlY:h,targetControlX:g,targetControlY:B});return[`M${A},${t} C${d},${h} ${g},${B} ${r},${a}`,w,m,v,y]}var ul={[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 YB({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 dl(e,A){return Math.sqrt((A.x-e.x)**2+(A.y-e.y)**2)}function WB({source:e,sourcePosition:A=IA.Bottom,target:t,targetPosition:n=IA.Top,center:r,offset:a}){const u=ul[A],d=ul[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=YB({source:h,sourcePosition:A,target:g}),w=B.x!==0?"x":"y",m=B[w];let v,y,I;const T={x:0,y:0},D={x:0,y:0},[V,b,K,sA]=il({sourceX:e.x,sourceY:e.y,targetX:t.x,targetY:t.y});if(u[w]*d[w]===-1){y=r.x??V,I=r.y??b;const W=[{x:y,y:h.y},{x:y,y:g.y}],cA=[{x:h.x,y:I},{x:g.x,y:I}];u[w]===m?v=w==="x"?W:cA:v=w==="x"?cA:W}else{const W=[{x:h.x,y:g.y}],cA=[{x:g.x,y:h.y}];if(w==="x"?v=u.x===m?cA:W:v=u.y===m?W:cA,A===n){const iA=Math.abs(e[w]-t[w]);if(iA<=a){const AA=Math.min(a-1,a-iA);u[w]===m?T[w]=(h[w]>e[w]?-1:1)*AA:D[w]=(g[w]>t[w]?-1:1)*AA}}if(A!==n){const iA=w==="x"?"y":"x",AA=u[w]===d[iA],S=h[iA]>g[iA],eA=h[iA]<g[iA];(u[w]===1&&(!AA&&S||AA&&eA)||u[w]!==1&&(!AA&&eA||AA&&S))&&(v=w==="x"?W:cA)}const lA={x:h.x+T.x,y:h.y+T.y},oA={x:g.x+D.x,y:g.y+D.y};Math.max(Math.abs(lA.x-v[0].x),Math.abs(oA.x-v[0].x))>=Math.max(Math.abs(lA.y-v[0].y),Math.abs(oA.y-v[0].y))?(y=(lA.x+oA.x)/2,I=v[0].y):(y=v[0].x,I=(lA.y+oA.y)/2)}return[[e,{x:h.x+T.x,y:h.y+T.y},...v,{x:g.x+D.x,y:g.y+D.y},t],y,I,K,sA]}function JB(e,A,t,n){const r=Math.min(dl(e,A)/2,dl(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+r*h},${u}Q ${a},${u} ${a},${u+r*g}`}const d=e.x<t.x?1:-1;return`L ${a},${u+r*(e.y<t.y?-1:1)}Q ${a},${u} ${a+r*d},${u}`}function Fi(e){const{sourceX:A,sourceY:t,sourcePosition:n=IA.Bottom,targetX:r,targetY:a,targetPosition:u=IA.Top,borderRadius:d=5,centerX:h,centerY:g,offset:B=20}=e,[w,m,v,y,I]=WB({source:{x:A,y:t},sourcePosition:n,target:{x:r,y:a},targetPosition:u,center:{x:h,y:g},offset:B});return[w.reduce((T,D,V)=>{let b;return V>0&&V<w.length-1?b=JB(w[V-1],D,w[V+1],d):b=`${V===0?"M":"L"}${D.x} ${D.y}`,T+=b,T},""),m,v,y,I]}function ZB(e){const{sourceX:A,sourceY:t,targetX:n,targetY:r}=e,[a,u,d,h]=il({sourceX:A,sourceY:t,targetX:n,targetY:r});return[`M ${A},${t}L ${n},${r}`,a,u,d,h]}var jB=(0,o.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,r]=ZB(e);return(0,o.h)(Gn,{path:t,labelX:n,labelY:r,...A,...e})}}}),fl=(0,o.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,r]=Fi({...e,sourcePosition:e.sourcePosition??IA.Bottom,targetPosition:e.targetPosition??IA.Top});return(0,o.h)(Gn,{path:t,labelX:n,labelY:r,...A,...e})}}}),qB=(0,o.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,o.h)(fl,{...e,...A,borderRadius:0})}}),Ap=(0,o.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,r]=Ei({...e,sourcePosition:e.sourcePosition??IA.Bottom,targetPosition:e.targetPosition??IA.Top});return(0,o.h)(Gn,{path:t,labelX:n,labelY:r,...A,...e})}}}),ep=(0,o.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,r]=cl({...e,sourcePosition:e.sourcePosition??IA.Bottom,targetPosition:e.targetPosition??IA.Top});return(0,o.h)(Gn,{path:t,labelX:n,labelY:r,...A,...e})}}}),tp={input:RB,default:OB,output:KB},np={default:Ap,straight:jB,step:qB,smoothstep:fl,simplebezier:ep};function rp(e,A,t){const n=(0,o.computed)(()=>y=>A.value.get(y)),r=(0,o.computed)(()=>y=>t.value.get(y)),a=(0,o.computed)(()=>{const y={...np,...e.edgeTypes},I=Object.keys(y);for(const T of e.edges)T.type&&!I.includes(T.type)&&(y[T.type]=T.type);return y}),u=(0,o.computed)(()=>{const y={...tp,...e.nodeTypes},I=Object.keys(y);for(const T of e.nodes)T.type&&!I.includes(T.type)&&(y[T.type]=T.type);return y}),d=(0,o.computed)(()=>e.onlyRenderVisibleElements?Ha(e.nodes,{x:0,y:0,width:e.dimensions.width,height:e.dimensions.height},e.viewport,!0):e.nodes),h=(0,o.computed)(()=>{if(e.onlyRenderVisibleElements){const y=[];for(const I of e.edges){const T=A.value.get(I.source),D=A.value.get(I.target);aB({sourcePos:T.computedPosition||{x:0,y:0},targetPos:D.computedPosition||{x:0,y:0},sourceWidth:T.dimensions.width,sourceHeight:T.dimensions.height,targetWidth:D.dimensions.width,targetHeight:D.dimensions.height,width:e.dimensions.width,height:e.dimensions.height,viewport:e.viewport})&&y.push(I)}return y}return e.edges}),g=(0,o.computed)(()=>[...d.value,...h.value]),B=(0,o.computed)(()=>{const y=[];for(const I of e.nodes)I.selected&&y.push(I);return y}),w=(0,o.computed)(()=>{const y=[];for(const I of e.edges)I.selected&&y.push(I);return y}),m=(0,o.computed)(()=>[...B.value,...w.value]),v=(0,o.computed)(()=>{const y=[];for(const I of e.nodes)I.dimensions.width&&I.dimensions.height&&I.handleBounds!==void 0&&y.push(I);return y});return{getNode:n,getEdge:r,getElements:g,getEdgeTypes:a,getNodeTypes:u,getEdges:h,getNodes:d,getSelectedElements:m,getSelectedNodes:B,getSelectedEdges:w,getNodesInitialized:v,areNodesInitialized:(0,o.computed)(()=>d.value.length>0&&v.value.length===d.value.length)}}var op=class yn{constructor(){this.currentId=0,this.flows=new Map}static getInstance(){var A;const t=(A=(0,o.getCurrentInstance)())==null?void 0:A.appContext.app;return yn.instance=t?.config.globalProperties.$vueFlowStorage??yn.instance??new yn,t&&(t.config.globalProperties.$vueFlowStorage=yn.instance),yn.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,o.reactive)(ol()),r={};for(const[w,m]of Object.entries(n.hooks)){const v=`on${w.charAt(0).toUpperCase()+w.slice(1)}`;r[v]=m.on}const a={};for(const[w,m]of Object.entries(n.hooks))a[w]=m.trigger;const u=(0,o.computed)(()=>{const w=new Map;for(const m of n.nodes)w.set(m.id,m);return w}),d=(0,o.computed)(()=>{const w=new Map;for(const m of n.edges)w.set(m.id,m);return w}),h=rp(n,u,d),g=kB(n,u,d);g.setState({...n,...t});const B={...r,...h,...g,...td(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 XA(e){const A=op.getInstance(),t=(0,o.getCurrentScope)(),n=typeof e=="object",r=n?e:{id:e},a=r.id,u=a??t?.vueFlowId;let d;if(t){const h=(0,o.inject)(ja,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,r);d=g,(t??(0,o.effectScope)(!0)).run(()=>{(0,o.watch)(g.applyDefault,(B,w,m)=>{const v=I=>{g.applyNodeChanges(I)},y=I=>{g.applyEdgeChanges(I)};B?(g.onNodesChange(v),g.onEdgesChange(y)):(g.hooks.value.nodesChange.off(v),g.hooks.value.edgesChange.off(y)),m(()=>{g.hooks.value.nodesChange.off(v),g.hooks.value.edgesChange.off(y)})},{immediate:!0}),Fn(()=>{if(d){const B=A.get(d.id);B?B.$destroy():Pn(`No store instance found for id ${d.id} in storage.`)}})})}else n&&d.setState(r);if(t&&((0,o.provide)(ja,d),t.vueFlowId=d.id),n){const h=(0,o.getCurrentInstance)();h?.type.name!=="VueFlow"&&d.emits.error(new ce(ie.USEVUEFLOW_OPTIONS))}return d}function ip(e){const{emits:A,dimensions:t}=XA();let n;(0,o.onMounted)(()=>{const r=()=>{var a,u;if(!e.value||!(((u=(a=e.value).checkVisibility)==null?void 0:u.call(a))??!0))return;const d=Nr(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}};r(),window.addEventListener("resize",r),e.value&&(n=new ResizeObserver(()=>r()),n.observe(e.value)),(0,o.onBeforeUnmount)(()=>{window.removeEventListener("resize",r),n&&e.value&&n.unobserve(e.value)})})}var sp=(0,o.defineComponent)({name:"UserSelection",compatConfig:{MODE:3},props:{userSelectionRect:{}},setup(e){return(A,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"vue-flow__selection vue-flow__container",style:(0,o.normalizeStyle)({width:`${A.userSelectionRect.width}px`,height:`${A.userSelectionRect.height}px`,transform:`translate(${A.userSelectionRect.x}px, ${A.userSelectionRect.y}px)`})},null,4))}}),ap=["tabIndex"],lp=(0,o.defineComponent)({name:"NodesSelection",compatConfig:{MODE:3},setup(e){const{emits:A,viewport:t,getSelectedNodes:n,noPanClassName:r,disableKeyboardA11y:a,userSelectionActive:u}=XA(),d=rl(),h=(0,o.ref)(null),g=el({el:h,onStart(y){A.selectionDragStart(y),A.nodeDragStart(y)},onDrag(y){A.selectionDrag(y),A.nodeDrag(y)},onStop(y){A.selectionDragStop(y),A.nodeDragStop(y)}});(0,o.onMounted)(()=>{var y;a.value||(y=h.value)==null||y.focus({preventScroll:!0})});const B=(0,o.computed)(()=>ba(n.value)),w=(0,o.computed)(()=>({width:`${B.value.width}px`,height:`${B.value.height}px`,top:`${B.value.y}px`,left:`${B.value.x}px`}));function m(y){A.selectionContextMenu({event:y,nodes:n.value})}function v(y){a.value||An[y.key]&&(y.preventDefault(),d({x:An[y.key].x,y:An[y.key].y},y.shiftKey))}return(y,I)=>!(0,o.unref)(u)&&B.value.width&&B.value.height?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,class:(0,o.normalizeClass)(["vue-flow__nodesselection vue-flow__container",(0,o.unref)(r)]),style:(0,o.normalizeStyle)({transform:`translate(${(0,o.unref)(t).x}px,${(0,o.unref)(t).y}px) scale(${(0,o.unref)(t).zoom})`})},[(0,o.createElementVNode)("div",{ref_key:"el",ref:h,class:(0,o.normalizeClass)([{dragging:(0,o.unref)(g)},"vue-flow__nodesselection-rect"]),style:(0,o.normalizeStyle)(w.value),tabIndex:(0,o.unref)(a)?void 0:-1,onContextmenu:m,onKeydown:v},null,46,ap)],6)):(0,o.createCommentVNode)("",!0)}});function cp(e,A){return{x:e.clientX-A.left,y:e.clientY-A.top}}var up=(0,o.defineComponent)({name:"Pane",compatConfig:{MODE:3},props:{isSelecting:{type:Boolean},selectionKeyPressed:{type:Boolean}},setup(e){const{vueFlowRef:A,nodes:t,viewport:n,emits:r,userSelectionActive:a,removeSelectedElements:u,userSelectionRect:d,elementsSelectable:h,nodesSelectionActive:g,getSelectedEdges:B,getSelectedNodes:w,removeNodes:m,removeEdges:v,selectionMode:y,deleteKeyCode:I,multiSelectionKeyCode:T,multiSelectionActive:D,edgeLookup:V,nodeLookup:b,connectionLookup:K,defaultEdgeOptions:sA,connectionStartHandle:W,panOnDrag:cA}=XA(),lA=(0,o.shallowRef)(null),oA=(0,o.shallowRef)(new Set),iA=(0,o.shallowRef)(new Set),AA=(0,o.shallowRef)(null),S=(0,o.toRef)(()=>h.value&&(e.isSelecting||a.value)),eA=(0,o.toRef)(()=>W.value!==null);let H=!1,X=!1;const U=Mn(I,{actInsideInputWithModifier:!1}),L=Mn(T);(0,o.watch)(U,nA=>{nA&&(m(w.value),v(B.value),g.value=!1)}),(0,o.watch)(L,nA=>{D.value=nA});function k(nA,Z){return $=>{$.target===Z&&nA?.($)}}function N(nA){if(H||eA.value){H=!1;return}r.paneClick(nA),u(),g.value=!1}function O(nA){var Z;if(Array.isArray(cA.value)&&((Z=cA.value)!=null&&Z.includes(2))){nA.preventDefault();return}r.paneContextMenu(nA)}function Y(nA){r.paneScroll(nA)}function tA(nA){var Z,$,uA;if(AA.value=((Z=A.value)==null?void 0:Z.getBoundingClientRect())??null,!h.value||!e.isSelecting||nA.button!==0||nA.target!==lA.value||!AA.value)return;(uA=($=nA.target)==null?void 0:$.setPointerCapture)==null||uA.call($,nA.pointerId);const{x:wA,y:QA}=cp(nA,AA.value);X=!0,H=!1,u(),d.value={width:0,height:0,startX:wA,startY:QA,x:wA,y:QA},r.selectionStart(nA)}function pA(nA){var Z;if(!AA.value||!d.value)return;H=!0;const{x:$,y:uA}=Xe(nA,AA.value),{startX:wA=0,startY:QA=0}=d.value,_A={startX:wA,startY:QA,x:$<wA?$:wA,y:uA<QA?uA:QA,width:Math.abs($-wA),height:Math.abs(uA-QA)},gA=oA.value,J=iA.value;oA.value=new Set(Ha(t.value,_A,n.value,y.value===di.Partial,!0).map(F=>F.id)),iA.value=new Set;const _=((Z=sA.value)==null?void 0:Z.selectable)??!0;for(const F of oA.value){const x=K.value.get(F);if(x)for(const{edgeId:G}of x.values()){const P=V.value.get(G);P&&(P.selectable??_)&&iA.value.add(G)}}if(!Za(gA,oA.value)){const F=Bt(b.value,oA.value,!0);r.nodesChange(F)}if(!Za(J,iA.value)){const F=Bt(V.value,iA.value);r.edgesChange(F)}d.value=_A,a.value=!0,g.value=!1}function HA(nA){var Z;nA.button!==0||!X||((Z=nA.target)==null||Z.releasePointerCapture(nA.pointerId),!a.value&&d.value&&nA.target===lA.value&&N(nA),a.value=!1,d.value=null,g.value=oA.value.size>0,r.selectionEnd(nA),e.selectionKeyPressed&&(H=!1),X=!1)}return(nA,Z)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{ref_key:"container",ref:lA,class:(0,o.normalizeClass)(["vue-flow__pane vue-flow__container",{selection:nA.isSelecting}]),onClick:Z[0]||(Z[0]=$=>S.value?void 0:k(N,lA.value)($)),onContextmenu:Z[1]||(Z[1]=$=>k(O,lA.value)($)),onWheelPassive:Z[2]||(Z[2]=$=>k(Y,lA.value)($)),onPointerenter:Z[3]||(Z[3]=$=>S.value?void 0:(0,o.unref)(r).paneMouseEnter($)),onPointerdown:Z[4]||(Z[4]=$=>S.value?tA($):(0,o.unref)(r).paneMouseMove($)),onPointermove:Z[5]||(Z[5]=$=>S.value?pA($):(0,o.unref)(r).paneMouseMove($)),onPointerup:Z[6]||(Z[6]=$=>S.value?HA($):void 0),onPointerleave:Z[7]||(Z[7]=$=>(0,o.unref)(r).paneMouseLeave($))},[(0,o.renderSlot)(nA.$slots,"default"),(0,o.unref)(a)&&(0,o.unref)(d)?((0,o.openBlock)(),(0,o.createBlock)(sp,{key:0,"user-selection-rect":(0,o.unref)(d)},null,8,["user-selection-rect"])):(0,o.createCommentVNode)("",!0),(0,o.unref)(g)&&(0,o.unref)(w).length?((0,o.openBlock)(),(0,o.createBlock)(lp,{key:1})):(0,o.createCommentVNode)("",!0)],34))}}),dp=(0,o.defineComponent)({name:"Transform",compatConfig:{MODE:3},setup(e){const{viewport:A,fitViewOnInit:t,fitViewOnInitDone:n}=XA(),r=(0,o.computed)(()=>t.value?!n.value:!1),a=(0,o.computed)(()=>`translate(${A.value.x}px,${A.value.y}px) scale(${A.value.zoom})`);return(u,d)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"vue-flow__transformationpane vue-flow__container",style:(0,o.normalizeStyle)({transform:a.value,opacity:r.value?0:void 0})},[(0,o.renderSlot)(u.$slots,"default")],4))}}),fp=(0,o.defineComponent)({name:"Viewport",compatConfig:{MODE:3},setup(e){const{minZoom:A,maxZoom:t,defaultViewport:n,translateExtent:r,zoomActivationKeyCode:a,selectionKeyCode:u,panActivationKeyCode:d,panOnScroll:h,panOnScrollMode:g,panOnScrollSpeed:B,panOnDrag:w,zoomOnDoubleClick:m,zoomOnPinch:v,zoomOnScroll:y,preventScrolling:I,noWheelClassName:T,noPanClassName:D,emits:V,connectionStartHandle:b,userSelectionActive:K,paneDragging:sA,d3Zoom:W,d3Selection:cA,d3ZoomHandler:lA,viewport:oA,viewportRef:iA,paneClickDistance:AA}=XA();ip(iA);const S=(0,o.shallowRef)(!1),eA=(0,o.shallowRef)(!1);let H=null,X=!1,U=0,L={x:0,y:0,zoom:0};const k=Mn(d),N=Mn(u),O=Mn(a),Y=(0,o.toRef)(()=>(!N.value||N.value&&u.value===!0)&&(k.value||w.value)),tA=(0,o.toRef)(()=>k.value||h.value),pA=(0,o.toRef)(()=>u.value===!0&&Y.value!==!0),HA=(0,o.toRef)(()=>N.value&&u.value!==!0||K.value||pA.value),nA=(0,o.toRef)(()=>b.value!==null);(0,o.onMounted)(()=>{if(!iA.value){Pn("Viewport element is missing");return}const QA=iA.value,_A=QA.getBoundingClientRect(),gA=Rh().clickDistance(AA.value).scaleExtent([A.value,t.value]).translateExtent(r.value),J=Te(QA).call(gA),_=J.on("wheel.zoom"),F=qt.translate(n.value.x??0,n.value.y??0).scale(Lt(n.value.zoom??1,A.value,t.value)),x=[[0,0],[_A.width,_A.height]],G=gA.constrain()(F,x,r.value);gA.transform(J,G),gA.wheelDelta(xa),W.value=gA,cA.value=J,lA.value=_,oA.value={x:G.x,y:G.y,zoom:G.k},gA.on("start",P=>{var fA;if(!P.sourceEvent)return null;U=P.sourceEvent.button,S.value=!0;const hA=uA(P.transform);((fA=P.sourceEvent)==null?void 0:fA.type)==="mousedown"&&(sA.value=!0),L=hA,V.viewportChangeStart(hA),V.moveStart({event:P,flowTransform:hA})}),gA.on("end",P=>{if(!P.sourceEvent)return null;if(S.value=!1,sA.value=!1,Z(Y.value,U??0)&&!X&&V.paneContextMenu(P.sourceEvent),X=!1,$(L,P.transform)){const fA=uA(P.transform);L=fA,V.viewportChangeEnd(fA),V.moveEnd({event:P,flowTransform:fA})}}),gA.filter(P=>{var fA;const hA=O.value||y.value,EA=v.value&&P.ctrlKey,FA=P.button,DA=P.type==="wheel";if(FA===1&&P.type==="mousedown"&&(wA(P,"vue-flow__node")||wA(P,"vue-flow__edge")))return!0;if(!Y.value&&!hA&&!tA.value&&!m.value&&!v.value||K.value||nA.value&&!DA||!m.value&&P.type==="dblclick"||wA(P,T.value)&&DA||wA(P,D.value)&&(!DA||tA.value&&DA&&!O.value)||!v.value&&P.ctrlKey&&DA||!hA&&!tA.value&&!EA&&DA)return!1;if(!v&&P.type==="touchstart"&&((fA=P.touches)==null?void 0:fA.length)>1)return P.preventDefault(),!1;if(!Y.value&&(P.type==="mousedown"||P.type==="touchstart")||pA.value&&Array.isArray(w.value)&&w.value.includes(0)&&FA===0||Array.isArray(w.value)&&!w.value.includes(FA)&&(P.type==="mousedown"||P.type==="touchstart"))return!1;const OA=Array.isArray(w.value)&&w.value.includes(FA)||u.value===!0&&Array.isArray(w.value)&&!w.value.includes(0)||!FA||FA<=1;return(!P.ctrlKey||k.value||DA)&&OA}),(0,o.watch)([K,Y],()=>{K.value&&!S.value?gA.on("zoom",null):K.value||gA.on("zoom",P=>{oA.value={x:P.transform.x,y:P.transform.y,zoom:P.transform.k};const fA=uA(P.transform);X=Z(Y.value,U??0),V.viewportChange(fA),V.move({event:P,flowTransform:fA})})},{immediate:!0}),(0,o.watch)([K,tA,g,O,v,I,T],()=>{tA.value&&!O.value&&!K.value?J.on("wheel.zoom",P=>{if(wA(P,T.value))return!1;const fA=O.value||y.value,hA=v.value&&P.ctrlKey;if(!(!I.value||tA.value||fA||hA))return!1;P.preventDefault(),P.stopImmediatePropagation();const EA=J.property("__zoom").k||1,FA=Tr();if(!k.value&&P.ctrlKey&&v.value&&FA){const qA=Ve(P),it=EA*2**xa(P);gA.scaleTo(J,it,qA,P);return}const DA=P.deltaMode===1?20:1;let OA=g.value===kn.Vertical?0:P.deltaX*DA,KA=g.value===kn.Horizontal?0:P.deltaY*DA;!FA&&P.shiftKey&&g.value!==kn.Vertical&&!OA&&KA&&(OA=KA,KA=0),gA.translateBy(J,-(OA/EA)*B.value,-(KA/EA)*B.value);const ee=uA(J.property("__zoom"));H&&clearTimeout(H),eA.value?(V.move({event:P,flowTransform:ee}),V.viewportChange(ee),H=setTimeout(()=>{V.moveEnd({event:P,flowTransform:ee}),V.viewportChangeEnd(ee),eA.value=!1},150)):(eA.value=!0,V.moveStart({event:P,flowTransform:ee}),V.viewportChangeStart(ee))},{passive:!1}):typeof _<"u"&&J.on("wheel.zoom",function(P,fA){const hA=!I.value&&P.type==="wheel"&&!P.ctrlKey,EA=O.value||y.value,FA=v.value&&P.ctrlKey;if(!EA&&!h.value&&!FA&&P.type==="wheel"||hA||wA(P,T.value))return null;P.preventDefault(),_.call(this,P,fA)},{passive:!1})},{immediate:!0})});function Z(QA,_A){return _A===2&&Array.isArray(QA)&&QA.includes(2)}function $(QA,_A){return QA.x!==_A.x&&!Number.isNaN(_A.x)||QA.y!==_A.y&&!Number.isNaN(_A.y)||QA.zoom!==_A.k&&!Number.isNaN(_A.k)}function uA(QA){return{x:QA.x,y:QA.y,zoom:QA.k}}function wA(QA,_A){return QA.target.closest(`.${_A}`)}return(QA,_A)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{ref_key:"viewportRef",ref:iA,class:"vue-flow__viewport vue-flow__container"},[(0,o.createVNode)(up,{"is-selecting":HA.value,"selection-key-pressed":(0,o.unref)(N),class:(0,o.normalizeClass)({connecting:nA.value,dragging:(0,o.unref)(sA),draggable:(0,o.unref)(w)===!0||Array.isArray((0,o.unref)(w))&&(0,o.unref)(w).includes(0)})},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(dp,null,{default:(0,o.withCtx)(()=>[(0,o.renderSlot)(QA.$slots,"default")]),_:3})]),_:3},8,["is-selecting","selection-key-pressed","class"])],512))}}),gp=["id"],hp=["id"],Bp=["id"],pp=(0,o.defineComponent)({name:"A11yDescriptions",compatConfig:{MODE:3},setup(e){const{id:A,disableKeyboardA11y:t,ariaLiveMessage:n}=XA();return(r,a)=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[(0,o.createElementVNode)("div",{id:`${(0,o.unref)(ma)}-${(0,o.unref)(A)}`,style:{display:"none"}}," Press enter or space to select a node. "+(0,o.toDisplayString)((0,o.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,gp),(0,o.createElementVNode)("div",{id:`${(0,o.unref)(wa)}-${(0,o.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,hp),(0,o.unref)(t)?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,id:`${(0,o.unref)($h)}-${(0,o.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,o.toDisplayString)((0,o.unref)(n)),9,Bp))],64))}});function mp(){const e=XA();(0,o.watch)(()=>e.viewportHelper.value.viewportInitialized,A=>{A&&setTimeout(()=>{e.emits.init(e),e.emits.paneReady(e)},1)})}function wp(e,A,t){return t===IA.Left?e-A:t===IA.Right?e+A:e}function Cp(e,A,t){return t===IA.Top?e-A:t===IA.Bottom?e+A:e}var Ui=function({radius:e=10,centerX:A=0,centerY:t=0,position:n=IA.Top,type:r}){return(0,o.h)("circle",{class:`vue-flow__edgeupdater vue-flow__edgeupdater-${r}`,cx:wp(A,e,n),cy:Cp(t,e,n),r:e,stroke:"transparent",fill:"transparent"})};Ui.props=["radius","centerX","centerY","position","type"],Ui.compatConfig={MODE:3};var gl=Ui,vp=(0,o.defineComponent)({name:"Edge",compatConfig:{MODE:3},props:["id"],setup(e){const{id:A,addSelectedEdges:t,connectionMode:n,edgeUpdaterRadius:r,emits:a,nodesSelectionActive:u,noPanClassName:d,getEdgeTypes:h,removeSelectedEdges:g,findEdge:B,findNode:w,isValidConnection:m,multiSelectionActive:v,disableKeyboardA11y:y,elementsSelectable:I,edgesUpdatable:T,edgesFocusable:D,hooks:V}=XA(),b=(0,o.computed)(()=>B(e.id)),{emit:K,on:sA}=EB(b.value,a),W=(0,o.inject)(Mr),cA=(0,o.getCurrentInstance)(),lA=(0,o.ref)(!1),oA=(0,o.ref)(!1),iA=(0,o.ref)(""),AA=(0,o.ref)(null),S=(0,o.ref)("source"),eA=(0,o.ref)(null),H=(0,o.toRef)(()=>typeof b.value.selectable>"u"?I.value:b.value.selectable),X=(0,o.toRef)(()=>typeof b.value.updatable>"u"?T.value:b.value.updatable),U=(0,o.toRef)(()=>typeof b.value.focusable>"u"?D.value:b.value.focusable);(0,o.provide)(vB,e.id),(0,o.provide)(yB,eA);const L=(0,o.computed)(()=>b.value.class instanceof Function?b.value.class(b.value):b.value.class),k=(0,o.computed)(()=>b.value.style instanceof Function?b.value.style(b.value):b.value.style),N=(0,o.computed)(()=>{const F=b.value.type||"default",x=W?.[`edge-${F}`];if(x)return x;let G=b.value.template??h.value[F];if(typeof G=="string"&&cA){const P=Object.keys(cA.appContext.components);P&&P.includes(F)&&(G=(0,o.resolveComponent)(F,!1))}return G&&typeof G!="string"?G:(a.error(new ce(ie.EDGE_TYPE_MISSING,G)),!1)}),{handlePointerDown:O}=tl({nodeId:iA,handleId:AA,type:S,isValidConnection:m,edgeUpdaterType:S,onEdgeUpdate:pA,onEdgeUpdateEnd:HA});return()=>{const F=w(b.value.source),x=w(b.value.target),G="pathOptions"in b.value?b.value.pathOptions:{};if(!F&&!x)return a.error(new ce(ie.EDGE_SOURCE_TARGET_MISSING,b.value.id,b.value.source,b.value.target)),null;if(!F)return a.error(new ce(ie.EDGE_SOURCE_MISSING,b.value.id,b.value.source)),null;if(!x)return a.error(new ce(ie.EDGE_TARGET_MISSING,b.value.id,b.value.target)),null;if(!b.value||b.value.hidden||F.hidden||x.hidden)return null;let P;n.value===nt.Strict?P=F.handleBounds.source:P=[...F.handleBounds.source||[],...F.handleBounds.target||[]];const fA=Va(P,b.value.sourceHandle);let hA;n.value===nt.Strict?hA=x.handleBounds.target:hA=[...x.handleBounds.target||[],...x.handleBounds.source||[]];const EA=Va(hA,b.value.targetHandle),FA=fA?.position||IA.Bottom,DA=EA?.position||IA.Top,{x:OA,y:KA}=tn(F,fA,FA),{x:ee,y:qA}=tn(x,EA,DA);return b.value.sourceX=OA,b.value.sourceY=KA,b.value.targetX=ee,b.value.targetY=qA,(0,o.h)("g",{ref:eA,key:e.id,"data-id":e.id,class:["vue-flow__edge",`vue-flow__edge-${N.value===!1?"default":b.value.type||"default"}`,d.value,L.value,{updating:lA.value,selected:b.value.selected,animated:b.value.animated,inactive:!H.value&&!V.value.edgeClick.hasListeners()}],tabIndex:U.value?0:void 0,"aria-label":b.value.ariaLabel===null?void 0:b.value.ariaLabel??`Edge from ${b.value.source} to ${b.value.target}`,"aria-describedby":U.value?`${wa}-${A}`:void 0,"aria-roledescription":"edge",role:U.value?"group":"img",...b.value.domAttributes,onClick:Z,onContextmenu:$,onDblclick:uA,onMouseenter:wA,onMousemove:QA,onMouseleave:_A,onKeyDown:U.value?_:void 0},[oA.value?null:(0,o.h)(N.value===!1?h.value.default:N.value,{id:e.id,sourceNode:F,targetNode:x,source:b.value.source,target:b.value.target,type:b.value.type,updatable:X.value,selected:b.value.selected,animated:b.value.animated,label:b.value.label,labelStyle:b.value.labelStyle,labelShowBg:b.value.labelShowBg,labelBgStyle:b.value.labelBgStyle,labelBgPadding:b.value.labelBgPadding,labelBgBorderRadius:b.value.labelBgBorderRadius,data:b.value.data,events:{...b.value.events,...sA},style:k.value,markerStart:`url('#${Vn(b.value.markerStart,A)}')`,markerEnd:`url('#${Vn(b.value.markerEnd,A)}')`,sourcePosition:FA,targetPosition:DA,sourceX:OA,sourceY:KA,targetX:ee,targetY:qA,sourceHandleId:b.value.sourceHandle,targetHandleId:b.value.targetHandle,interactionWidth:b.value.interactionWidth,...G}),[X.value==="source"||X.value===!0?[(0,o.h)("g",{onMousedown:gA,onMouseenter:Y,onMouseout:tA},(0,o.h)(gl,{position:FA,centerX:OA,centerY:KA,radius:r.value,type:"source","data-type":"source"}))]:null,X.value==="target"||X.value===!0?[(0,o.h)("g",{onMousedown:J,onMouseenter:Y,onMouseout:tA},(0,o.h)(gl,{position:DA,centerX:ee,centerY:qA,radius:r.value,type:"target","data-type":"target"}))]:null]])};function Y(){lA.value=!0}function tA(){lA.value=!1}function pA(F,x){K.update({event:F,edge:b.value,connection:x})}function HA(F){K.updateEnd({event:F,edge:b.value}),oA.value=!1}function nA(F,x){F.button===0&&(oA.value=!0,iA.value=x?b.value.target:b.value.source,AA.value=(x?b.value.targetHandle:b.value.sourceHandle)??null,S.value=x?"target":"source",K.updateStart({event:F,edge:b.value}),O(F))}function Z(F){var x;const G={event:F,edge:b.value};H.value&&(u.value=!1,b.value.selected&&v.value?(g([b.value]),(x=eA.value)==null||x.blur()):t([b.value])),K.click(G)}function $(F){K.contextMenu({event:F,edge:b.value})}function uA(F){K.doubleClick({event:F,edge:b.value})}function wA(F){K.mouseEnter({event:F,edge:b.value})}function QA(F){K.mouseMove({event:F,edge:b.value})}function _A(F){K.mouseLeave({event:F,edge:b.value})}function gA(F){nA(F,!0)}function J(F){nA(F,!1)}function _(F){var x;!y.value&&Ca.includes(F.key)&&H.value&&(F.key==="Escape"?((x=eA.value)==null||x.blur(),g([B(e.id)])):t([B(e.id)]))}}}),yp=(0,o.defineComponent)({name:"ConnectionLine",compatConfig:{MODE:3},setup(){var e;const{id:A,connectionMode:t,connectionStartHandle:n,connectionEndHandle:r,connectionPosition:a,connectionLineType:u,connectionLineStyle:d,connectionLineOptions:h,connectionStatus:g,viewport:B,findNode:w}=XA(),m=(e=(0,o.inject)(Mr))==null?void 0:e["connection-line"],v=(0,o.computed)(()=>{var V;return w((V=n.value)==null?void 0:V.nodeId)}),y=(0,o.computed)(()=>{var V;return w((V=r.value)==null?void 0:V.nodeId)??null}),I=(0,o.computed)(()=>({x:(a.value.x-B.value.x)/B.value.zoom,y:(a.value.y-B.value.y)/B.value.zoom})),T=(0,o.computed)(()=>h.value.markerStart?`url(#${Vn(h.value.markerStart,A)})`:""),D=(0,o.computed)(()=>h.value.markerEnd?`url(#${Vn(h.value.markerEnd,A)})`:"");return()=>{var V,b,K;if(!v.value||!n.value)return null;const sA=n.value.id,W=n.value.type,cA=v.value.handleBounds;let lA=cA?.[W]??[];if(t.value===nt.Loose){const k=cA?.[W==="source"?"target":"source"]??[];lA=[...lA,...k]}if(!lA)return null;const oA=(sA?lA.find(k=>k.id===sA):lA[0])??null,iA=oA?.position??IA.Top,{x:AA,y:S}=tn(v.value,oA,iA);let eA=null;y.value&&(t.value===nt.Strict?eA=((V=y.value.handleBounds[W==="source"?"target":"source"])==null?void 0:V.find(k=>{var N;return k.id===((N=r.value)==null?void 0:N.id)}))||null:eA=((b=[...y.value.handleBounds.source??[],...y.value.handleBounds.target??[]])==null?void 0:b.find(k=>{var N;return k.id===((N=r.value)==null?void 0:N.id)}))||null);const H=((K=r.value)==null?void 0:K.position)??(iA?wi[iA]:null);if(!iA||!H)return null;const X=u.value??h.value.type??Nt.Bezier;let U="";const L={sourceX:AA,sourceY:S,sourcePosition:iA,targetX:I.value.x,targetY:I.value.y,targetPosition:H};return X===Nt.Bezier?[U]=Ei(L):X===Nt.Step?[U]=Fi({...L,borderRadius:0}):X===Nt.SmoothStep?[U]=Fi(L):X===Nt.SimpleBezier?[U]=cl(L):U=`M${AA},${S} ${I.value.x},${I.value.y}`,(0,o.h)("svg",{class:"vue-flow__edges vue-flow__connectionline vue-flow__container"},(0,o.h)("g",{class:"vue-flow__connection"},m?(0,o.h)(m,{sourceX:AA,sourceY:S,sourcePosition:iA,targetX:I.value.x,targetY:I.value.y,targetPosition:H,sourceNode:v.value,sourceHandle:oA,targetNode:y.value,targetHandle:eA,markerEnd:D.value,markerStart:T.value,connectionStatus:g.value}):(0,o.h)("path",{d:U,class:[h.value.class,g.value,"vue-flow__connection-path"],style:{...d.value,...h.value.style},"marker-end":D.value,"marker-start":T.value})))}}}),Qp=["id","markerWidth","markerHeight","markerUnits","orient"],Ep=(0,o.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,o.openBlock)(),(0,o.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,o.unref)(rt).ArrowClosed?((0,o.openBlock)(),(0,o.createElementBlock)("polyline",{key:0,style:(0,o.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,o.createCommentVNode)("",!0),A.type===(0,o.unref)(rt).Arrow?((0,o.openBlock)(),(0,o.createElementBlock)("polyline",{key:1,style:(0,o.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,o.createCommentVNode)("",!0)],8,Qp))}}),Fp={class:"vue-flow__marker vue-flow__container","aria-hidden":"true"},Up=(0,o.defineComponent)({name:"MarkerDefinitions",compatConfig:{MODE:3},setup(e){const{id:A,edges:t,connectionLineOptions:n,defaultMarkerColor:r}=XA(),a=(0,o.computed)(()=>{const u=new Set,d=[],h=g=>{if(g){const B=Vn(g,A);u.has(B)||(typeof g=="object"?d.push({...g,id:B,color:g.color||r.value}):d.push({id:B,color:r.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,o.openBlock)(),(0,o.createElementBlock)("svg",Fp,[(0,o.createElementVNode)("defs",null,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(a.value,h=>((0,o.openBlock)(),(0,o.createBlock)(Ep,{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))])]))}}),bp=(0,o.defineComponent)({name:"Edges",compatConfig:{MODE:3},setup(e){const{findNode:A,getEdges:t,elevateEdgesOnSelect:n}=XA();return(r,a)=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[(0,o.createVNode)(Up),((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)((0,o.unref)(t),u=>((0,o.openBlock)(),(0,o.createElementBlock)("svg",{key:u.id,class:"vue-flow__edges vue-flow__container",style:(0,o.normalizeStyle)({zIndex:(0,o.unref)(lB)(u,(0,o.unref)(A),(0,o.unref)(n))})},[(0,o.createVNode)((0,o.unref)(vp),{id:u.id},null,8,["id"])],4))),128)),(0,o.createVNode)((0,o.unref)(yp))],64))}}),Hp=(0,o.defineComponent)({name:"Node",compatConfig:{MODE:3},props:["id","resizeObserver"],setup(e){const{id:A,noPanClassName:t,selectNodesOnDrag:n,nodesSelectionActive:r,multiSelectionActive:a,emits:u,removeSelectedNodes:d,addSelectedNodes:h,updateNodeDimensions:g,onUpdateNodeInternals:B,getNodeTypes:w,nodeExtent:m,elevateNodesOnSelect:v,disableKeyboardA11y:y,ariaLiveMessage:I,snapToGrid:T,snapGrid:D,nodeDragThreshold:V,nodesDraggable:b,elementsSelectable:K,nodesConnectable:sA,nodesFocusable:W,hooks:cA}=XA(),lA=(0,o.ref)(null);(0,o.provide)(Al,lA),(0,o.provide)(qa,e.id);const oA=(0,o.inject)(Mr),iA=(0,o.getCurrentInstance)(),AA=rl(),{node:S,parentNode:eA}=nl(e.id),{emit:H,on:X}=HB(S,u),U=(0,o.toRef)(()=>typeof S.draggable>"u"?b.value:S.draggable),L=(0,o.toRef)(()=>typeof S.selectable>"u"?K.value:S.selectable),k=(0,o.toRef)(()=>typeof S.connectable>"u"?sA.value:S.connectable),N=(0,o.toRef)(()=>typeof S.focusable>"u"?W.value:S.focusable),O=(0,o.computed)(()=>L.value||U.value||cA.value.nodeClick.hasListeners()||cA.value.nodeDoubleClick.hasListeners()||cA.value.nodeMouseEnter.hasListeners()||cA.value.nodeMouseMove.hasListeners()||cA.value.nodeMouseLeave.hasListeners()),Y=(0,o.toRef)(()=>!!S.dimensions.width&&!!S.dimensions.height),tA=(0,o.computed)(()=>{const x=S.type||"default",G=oA?.[`node-${x}`];if(G)return G;let P=S.template||w.value[x];if(typeof P=="string"&&iA){const fA=Object.keys(iA.appContext.components);fA&&fA.includes(x)&&(P=(0,o.resolveComponent)(x,!1))}return P&&typeof P!="string"?P:(u.error(new ce(ie.NODE_TYPE_MISSING,P)),!1)}),pA=el({id:e.id,el:lA,disabled:()=>!U.value,selectable:L,dragHandle:()=>S.dragHandle,onStart(x){H.dragStart(x)},onDrag(x){H.drag(x)},onStop(x){H.dragStop(x)},onClick(x){_(x)}}),HA=(0,o.computed)(()=>S.class instanceof Function?S.class(S):S.class),nA=(0,o.computed)(()=>{const x=(S.style instanceof Function?S.style(S):S.style)||{},G=S.width instanceof Function?S.width(S):S.width,P=S.height instanceof Function?S.height(S):S.height;return!x.width&&G&&(x.width=typeof G=="string"?G:`${G}px`),!x.height&&P&&(x.height=typeof P=="string"?P:`${P}px`),x}),Z=(0,o.toRef)(()=>Number(S.zIndex??nA.value.zIndex??0));return B(x=>{(x.includes(e.id)||!x.length)&&uA()}),(0,o.onMounted)(()=>{(0,o.watch)(()=>S.hidden,(x=!1,G,P)=>{!x&&lA.value&&(e.resizeObserver.observe(lA.value),P(()=>{lA.value&&e.resizeObserver.unobserve(lA.value)}))},{immediate:!0,flush:"post"})}),(0,o.watch)([()=>S.type,()=>S.sourcePosition,()=>S.targetPosition],()=>{(0,o.nextTick)(()=>{g([{id:e.id,nodeElement:lA.value,forceUpdate:!0}])})}),(0,o.watch)([()=>S.position.x,()=>S.position.y,()=>{var x;return(x=eA.value)==null?void 0:x.computedPosition.x},()=>{var x;return(x=eA.value)==null?void 0:x.computedPosition.y},()=>{var x;return(x=eA.value)==null?void 0:x.computedPosition.z},Z,()=>S.selected,()=>S.dimensions.height,()=>S.dimensions.width,()=>{var x;return(x=eA.value)==null?void 0:x.dimensions.height},()=>{var x;return(x=eA.value)==null?void 0:x.dimensions.width}],([x,G,P,fA,hA,EA])=>{const FA={x,y:G,z:EA+(v.value&&S.selected?1e3:0)};typeof P<"u"&&typeof fA<"u"?S.computedPosition=nB({x:P,y:fA,z:hA},FA):S.computedPosition=FA},{flush:"post",immediate:!0}),(0,o.watch)([()=>S.extent,m],([x,G],[P,fA])=>{(x!==P||G!==fA)&&$()}),S.extent==="parent"||typeof S.extent=="object"&&"range"in S.extent&&S.extent.range==="parent"?zo(()=>Y).toBe(!0).then($):$(),()=>S.hidden?null:(0,o.h)("div",{ref:lA,"data-id":S.id,class:["vue-flow__node",`vue-flow__node-${tA.value===!1?"default":S.type||"default"}`,{[t.value]:U.value,dragging:pA?.value,draggable:U.value,selected:S.selected,selectable:L.value,parent:S.isParent},HA.value],style:{visibility:Y.value?"visible":"hidden",zIndex:S.computedPosition.z??Z.value,transform:`translate(${S.computedPosition.x}px,${S.computedPosition.y}px)`,pointerEvents:O.value?"all":"none",...nA.value},tabIndex:N.value?0:void 0,role:N.value?"group":void 0,"aria-describedby":y.value?void 0:`${ma}-${A}`,"aria-label":S.ariaLabel,"aria-roledescription":"node",...S.domAttributes,onMouseenter:wA,onMousemove:QA,onMouseleave:_A,onContextmenu:gA,onClick:_,onDblclick:J,onKeydown:F},[(0,o.h)(tA.value===!1?w.value.default:tA.value,{id:S.id,type:S.type,data:S.data,events:{...S.events,...X},selected:S.selected,resizing:S.resizing,dragging:pA.value,connectable:k.value,position:S.computedPosition,dimensions:S.dimensions,isValidTargetPos:S.isValidTargetPos,isValidSourcePos:S.isValidSourcePos,parent:S.parentNode,parentNodeId:S.parentNode,zIndex:S.computedPosition.z??Z.value,targetPosition:S.targetPosition,sourcePosition:S.sourcePosition,label:S.label,dragHandle:S.dragHandle,onUpdateNodeInternals:uA})]);function $(){const x=S.computedPosition,{computedPosition:G,position:P}=Bi(S,T.value?kr(x,D.value):x,u.error,m.value,eA.value);(S.computedPosition.x!==G.x||S.computedPosition.y!==G.y)&&(S.computedPosition={...S.computedPosition,...G}),(S.position.x!==P.x||S.position.y!==P.y)&&(S.position=P)}function uA(){lA.value&&g([{id:e.id,nodeElement:lA.value,forceUpdate:!0}])}function wA(x){pA?.value||H.mouseEnter({event:x,node:S})}function QA(x){pA?.value||H.mouseMove({event:x,node:S})}function _A(x){pA?.value||H.mouseLeave({event:x,node:S})}function gA(x){return H.contextMenu({event:x,node:S})}function J(x){return H.doubleClick({event:x,node:S})}function _(x){L.value&&(!n.value||!U.value||V.value>0)&&Ci(S,a.value,h,d,r,!1,lA.value),H.click({event:x,node:S})}function F(x){if(!(fi(x)||y.value))if(Ca.includes(x.key)&&L.value){const G=x.key==="Escape";Ci(S,a.value,h,d,r,G,lA.value)}else U.value&&S.selected&&An[x.key]&&(x.preventDefault(),I.value=`Moved selected node ${x.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~S.position.x}, y: ${~~S.position.y}`,AA({x:An[x.key].x,y:An[x.key].y},x.shiftKey))}}}),Ip={height:"0",width:"0"},_p=(0,o.defineComponent)({name:"EdgeLabelRenderer",compatConfig:{MODE:3},setup(e){const{viewportRef:A}=XA(),t=(0,o.toRef)(()=>{var n;return(n=A.value)==null?void 0:n.getElementsByClassName("vue-flow__edge-labels")[0]});return(n,r)=>((0,o.openBlock)(),(0,o.createElementBlock)("svg",null,[((0,o.openBlock)(),(0,o.createElementBlock)("foreignObject",Ip,[((0,o.openBlock)(),(0,o.createBlock)(o.Teleport,{to:t.value,disabled:!t.value},[(0,o.renderSlot)(n.$slots,"default")],8,["to","disabled"]))]))]))}});function Sp(e={includeHiddenNodes:!1}){const{nodes:A}=XA();return(0,o.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 xp={class:"vue-flow__nodes vue-flow__container"},Dp=(0,o.defineComponent)({name:"Nodes",compatConfig:{MODE:3},setup(e){const{getNodes:A,updateNodeDimensions:t,emits:n}=XA(),r=Sp(),a=(0,o.ref)();return(0,o.watch)(r,u=>{u&&(0,o.nextTick)(()=>{n.nodesInitialized(A.value)})},{immediate:!0}),(0,o.onMounted)(()=>{a.value=new ResizeObserver(u=>{const d=u.map(h=>({id:h.target.getAttribute("data-id"),nodeElement:h.target,forceUpdate:!0}));(0,o.nextTick)(()=>t(d))})}),(0,o.onBeforeUnmount)(()=>{var u;return(u=a.value)==null?void 0:u.disconnect()}),(u,d)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",xp,[a.value?((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,{key:0},(0,o.renderList)((0,o.unref)(A),(h,g,B,w)=>{const m=[h.id];if(w&&w.key===h.id&&(0,o.isMemoSame)(w,m))return w;const v=((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(Hp),{id:h.id,key:h.id,"resize-observer":a.value},null,8,["id","resize-observer"]));return v.memo=m,v},d,0),128)):(0,o.createCommentVNode)("",!0)]))}});function Np(){const{emits:e}=XA();(0,o.onMounted)(()=>{if($a()){const A=document.querySelector(".vue-flow__pane");A&&window.getComputedStyle(A).zIndex!=="1"&&e.error(new ce(ie.MISSING_STYLES))}})}var Lp=(0,o.createElementVNode)("div",{class:"vue-flow__edge-labels"},null,-1),Tp=(0,o.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,r=(0,o.useSlots)(),a=Xo(n,"modelValue",t),u=Xo(n,"nodes",t),d=Xo(n,"edges",t),h=XA(n),g=xB({modelValue:a,nodes:u,edges:d},n,h);return NB(t,h.hooks),mp(),Np(),(0,o.provide)(Mr,r),(0,o.onUnmounted)(g),A(h),(B,w)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{ref:(0,o.unref)(h).vueFlowRef,class:"vue-flow"},[(0,o.createVNode)(fp,null,{default:(0,o.withCtx)(()=>[(0,o.createVNode)(bp),Lp,(0,o.createVNode)(Dp),(0,o.renderSlot)(B.$slots,"zoom-pane")]),_:3}),(0,o.renderSlot)(B.$slots,"default"),(0,o.createVNode)(pp)],512))}}),kp=(0,o.defineComponent)({name:"Panel",compatConfig:{MODE:3},props:{position:{}},setup(e){const A=e,{userSelectionActive:t}=XA(),n=(0,o.computed)(()=>`${A.position}`.split("-"));return(r,a)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["vue-flow__panel",n.value]),style:(0,o.normalizeStyle)({pointerEvents:(0,o.unref)(t)?"none":"all"})},[(0,o.renderSlot)(r.$slots,"default")],6))}}),ot=(e=>(e.Lines="lines",e.Dots="dots",e))(ot||{}),Mp=function({dimensions:e,size:A,color:t}){return(0,o.h)("path",{stroke:t,"stroke-width":A,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`})},Op=function({radius:e,color:A}){return(0,o.h)("circle",{cx:e,cy:e,r:e,fill:A})};ot.Lines,ot.Dots;var Kp={[ot.Dots]:"#81818a",[ot.Lines]:"#eee"},Rp=["id","x","y","width","height","patternTransform"],Vp={key:2,height:"100",width:"100"},Pp=["fill"],Gp=["x","y","fill"],zp=(0,o.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}=XA(),n=(0,o.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}}),r=(0,o.toRef)(()=>`pattern-${A}${e.id?`-${e.id}`:""}`),a=(0,o.toRef)(()=>e.color||e.patternColor||Kp[e.variant||ot.Dots]);return(u,d)=>((0,o.openBlock)(),(0,o.createElementBlock)("svg",{class:"vue-flow__background vue-flow__container",style:(0,o.normalizeStyle)({height:`${u.height>100?100:u.height}%`,width:`${u.width>100?100:u.width}%`})},[(0,o.renderSlot)(u.$slots,"pattern-container",{id:r.value},()=>[(0,o.createElementVNode)("pattern",{id:r.value,x:(0,o.unref)(t).x%n.value.scaledGap[0],y:(0,o.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,o.renderSlot)(u.$slots,"pattern",{},()=>[u.variant===(0,o.unref)(ot).Lines?((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(Mp),{key:0,size:u.lineWidth,color:a.value,dimensions:n.value.scaledGap},null,8,["size","color","dimensions"])):u.variant===(0,o.unref)(ot).Dots?((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(Op),{key:1,color:a.value,radius:n.value.size/2},null,8,["color","radius"])):(0,o.createCommentVNode)("",!0),u.bgColor?((0,o.openBlock)(),(0,o.createElementBlock)("svg",Vp,[(0,o.createElementVNode)("rect",{width:"100%",height:"100%",fill:u.bgColor},null,8,Pp)])):(0,o.createCommentVNode)("",!0)])],8,Rp)]),(0,o.createElementVNode)("rect",{x:u.x,y:u.y,width:"100%",height:"100%",fill:`url(#${r.value})`},null,8,Gp),(0,o.renderSlot)(u.$slots,"default",{id:r.value})],4))}}),Xp={name:"ControlButton",compatConfig:{MODE:3}},$p=(e,A)=>{const t=e.__vccOpts||e;for(const[n,r]of A)t[n]=r;return t},Yp={type:"button",class:"vue-flow__controls-button"};function Wp(e,A,t,n,r,a){return(0,o.openBlock)(),(0,o.createElementBlock)("button",Yp,[(0,o.renderSlot)(e.$slots,"default")])}var zr=$p(Xp,[["render",Wp]]),Jp={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Zp=[(0,o.createElementVNode)("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"},null,-1)];function jp(e,A){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",Jp,Zp)}var qp={render:jp},Am={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5"},em=[(0,o.createElementVNode)("path",{d:"M0 0h32v4.2H0z"},null,-1)];function tm(e,A){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",Am,em)}var nm={render:tm},rm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30"},om=[(0,o.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 im(e,A){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",rm,om)}var sm={render:im},am={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},lm=[(0,o.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 cm(e,A){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",am,lm)}var um={render:cm},dm={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32"},fm=[(0,o.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 gm(e,A){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",dm,fm)}var hm={render:gm},Bm=(0,o.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:()=>Ba.BottomLeft}},emits:["zoomIn","zoomOut","fitView","interactionChange"],setup(e,{emit:A}){const{nodesDraggable:t,nodesConnectable:n,elementsSelectable:r,setInteractive:a,zoomIn:u,zoomOut:d,fitView:h,viewport:g,minZoom:B,maxZoom:w}=XA(),m=(0,o.toRef)(()=>t.value||n.value||r.value),v=(0,o.toRef)(()=>g.value.zoom<=B.value),y=(0,o.toRef)(()=>g.value.zoom>=w.value);function I(){u(),A("zoomIn")}function T(){d(),A("zoomOut")}function D(){h(e.fitViewParams),A("fitView")}function V(){a(!m.value),A("interactionChange",!m.value)}return(b,K)=>((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(kp),{class:"vue-flow__controls",position:b.position},{default:(0,o.withCtx)(()=>[(0,o.renderSlot)(b.$slots,"top"),b.showZoom?((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:0},[(0,o.renderSlot)(b.$slots,"control-zoom-in",{},()=>[(0,o.createVNode)(zr,{class:"vue-flow__controls-zoomin",disabled:y.value,onClick:I},{default:(0,o.withCtx)(()=>[(0,o.renderSlot)(b.$slots,"icon-zoom-in",{},()=>[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)((0,o.unref)(qp))))])]),_:3},8,["disabled"])]),(0,o.renderSlot)(b.$slots,"control-zoom-out",{},()=>[(0,o.createVNode)(zr,{class:"vue-flow__controls-zoomout",disabled:v.value,onClick:T},{default:(0,o.withCtx)(()=>[(0,o.renderSlot)(b.$slots,"icon-zoom-out",{},()=>[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)((0,o.unref)(nm))))])]),_:3},8,["disabled"])])],64)):(0,o.createCommentVNode)("",!0),b.showFitView?(0,o.renderSlot)(b.$slots,"control-fit-view",{key:1},()=>[(0,o.createVNode)(zr,{class:"vue-flow__controls-fitview",onClick:D},{default:(0,o.withCtx)(()=>[(0,o.renderSlot)(b.$slots,"icon-fit-view",{},()=>[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)((0,o.unref)(sm))))])]),_:3})]):(0,o.createCommentVNode)("",!0),b.showInteractive?(0,o.renderSlot)(b.$slots,"control-interactive",{key:2},()=>[b.showInteractive?((0,o.openBlock)(),(0,o.createBlock)(zr,{key:0,class:"vue-flow__controls-interactive",onClick:V},{default:(0,o.withCtx)(()=>[m.value?(0,o.renderSlot)(b.$slots,"icon-unlock",{key:0},()=>[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)((0,o.unref)(hm))))]):(0,o.createCommentVNode)("",!0),m.value?(0,o.createCommentVNode)("",!0):(0,o.renderSlot)(b.$slots,"icon-lock",{key:1},()=>[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)((0,o.unref)(um))))])]),_:3})):(0,o.createCommentVNode)("",!0)]):(0,o.createCommentVNode)("",!0),(0,o.renderSlot)(b.$slots,"default")]),_:3},8,["position"]))}}),pm=["onClick"],mm={class:"d-flow-node-menus-item-name"},wm=(0,o.defineComponent)({name:"DNodeMenus",__name:"nodeMenus",props:{fromNodeId:{},handleId:{}},emits:["addNode"],setup(e,{emit:A}){const t=e,n=A,r=(0,o.inject)("d_flow_design_provide",{}),a=r.getFlowComponents?.()||[],u=d=>{n("addNode",d.type),(0,o.nextTick)(()=>{t.handleId==="line"?r.addNodeByLine?.(d.type,t.fromNodeId||""):r.addNode?.(d.type,t.fromNodeId||"",t.handleId||"")})};return(d,h)=>{const g=(0,o.resolveComponent)("j-icon");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"d-flow-node-menus",onClick:(0,o.withModifiers)(()=>{},["stop"])},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)((0,o.unref)(a),(B,w)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:w,class:"d-flow-node-menus-item",onClick:m=>u(B)},[(0,o.createElementVNode)("div",{class:"d-flow-node-menus-item-icon",style:(0,o.normalizeStyle)({backgroundColor:B.iconColor||"var(--j-color-primary)"})},[(0,o.createVNode)(g,{icon:B.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,o.createElementVNode)("div",mm,(0,o.toDisplayString)(B.name),1)],8,pm))),128))])}}}),bi=wm,Cm={class:"d-flow-step-name"},vm={key:0,style:{color:"var(--j-color-text-2)"}},ym={style:{color:"var(--j-color-text)"}},Qm=(0,o.defineComponent)({name:"DStepNode",__name:"stepNode",props:{id:{},data:{}},setup(e){const A=e,{onNodeClick:t,onEdgeClick:n,onMoveStart:r,onConnectStart:a,onNodeDragStart:u,removeNodes:d,getEdges:h,getNodes:g,onNodesChange:B}=XA(),w=(0,o.inject)("d_flow_design_provide",{}),m=(0,o.computed)(()=>w.getFlowComponentMap?.value?.[A.data.type]||{}),v=()=>{d(A.id),w.onRemoveNode?.(A.id)},y=(0,o.ref)({});B(eA=>{if(A.data.isInit&&eA.findIndex(H=>H.type==="select"&&H.id===A.id&&H.id==="start"&&H.selected)!==-1){const H=g.value.find(X=>X.id==="start");H&&(H.data.isInit=!1),y.value.s1=!0}});const I=(0,o.ref)(!1),T=eA=>{eA.indexOf("t")!==-1&&!D.value||(I.value=!0,y.value[eA]=!0)},D=(0,o.computed)(()=>h.value.findIndex(eA=>eA.target===A.id)===-1),V=(0,o.ref)(!1),b=()=>{V.value=!0},K=(eA,H)=>{if(h.value.find(U=>U.source===H&&U.target===eA))return!0;const X=h.value.filter(U=>U.target===eA);for(let U=0;U<X.length;U++)if(K(X[U].source,H))return!0;return!1},sA=eA=>V.value?(V.value=!1,!1):K(eA.source,eA.target)?!1:eA.source!==eA.target&&eA.sourceHandle!==eA.targetHandle&&eA.sourceHandle.indexOf("s")!==-1&&eA.targetHandle.indexOf("t")!==-1,W=()=>{AA(),Object.keys(y.value).forEach(eA=>{y.value[eA]=!1})},cA=()=>{W()};t(()=>{console.log("onNodeClick"),I.value?I.value=!1:W()}),n(()=>{W()}),r(()=>{W()}),a(()=>{W()}),u(()=>{W()});const lA=(0,o.ref)(),oA=(0,o.ref)({top:0,left:0,bottom:0,right:0}),iA=(0,o.ref)({getBoundingClientRect:()=>oA.value}),AA=()=>{lA.value?.handleClose()},S=eA=>{const{clientX:H,clientY:X}=eA;oA.value=DOMRect.fromRect({x:H,y:X}),eA.preventDefault(),lA.value?.handleOpen()};return(eA,H)=>{const X=(0,o.resolveComponent)("j-icon"),U=(0,o.resolveComponent)("el-popover"),L=(0,o.resolveComponent)("el-tooltip"),k=(0,o.resolveComponent)("el-dropdown-item"),N=(0,o.resolveComponent)("el-dropdown-menu"),O=(0,o.resolveComponent)("el-dropdown");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"d-flow-step",onContextmenu:(0,o.withModifiers)(S,["stop"])},[(0,o.createElementVNode)("div",{class:"d-flow-step-icon",style:(0,o.normalizeStyle)({backgroundColor:m.value.iconColor||"var(--j-color-primary)"})},[(0,o.createVNode)(X,{icon:m.value.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,o.createElementVNode)("div",Cm,(0,o.toDisplayString)(m.value.name),1),e.data.type!=="start"?((0,o.openBlock)(),(0,o.createBlock)(L,{key:0,placement:"top","show-arrow":!1,"popper-class":"d-flow-step-tooltip"},{content:(0,o.withCtx)(()=>[D.value?((0,o.openBlock)(),(0,o.createElementBlock)("div",vm,[...H[4]||(H[4]=[(0,o.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"点击",-1),(0,o.createTextVNode)("添加节点 ",-1)])])):(0,o.createCommentVNode)("",!0),H[5]||(H[5]=(0,o.createElementVNode)("div",{style:{color:"var(--j-color-text-2)"}},[(0,o.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"拖拽"),(0,o.createTextVNode)("连接节点 ")],-1))]),default:(0,o.withCtx)(()=>[(0,o.createVNode)((0,o.unref)(nn),{onClick:H[1]||(H[1]=Y=>T("t1")),onMousedown:b,id:"t1",class:(0,o.normalizeClass)(["d-flow-step-target-handle",{"d-flow-step-target-handle-notadd":!D.value}]),type:"target",position:(0,o.unref)(IA).Left,"is-valid-connection":sA},{default:(0,o.withCtx)(()=>[D.value?((0,o.openBlock)(),(0,o.createBlock)(U,{key:0,visible:y.value.t1,"onUpdate:visible":H[0]||(H[0]=Y=>y.value.t1=Y),placement:"left","popper-class":"d-flow-step-popper",trigger:"click","show-arrow":!1,"popper-options":{strategy:"fixed"}},{reference:(0,o.withCtx)(()=>[(0,o.createVNode)(X,{class:"d-flow-step-handle-plus",icon:"mdi:plus-circle"})]),default:(0,o.withCtx)(()=>[(0,o.createVNode)(bi,{"handle-id":"t1","from-node-id":e.id,onAddNode:cA},null,8,["from-node-id"])]),_:1},8,["visible"])):(0,o.createCommentVNode)("",!0)]),_:1},8,["class","position"])]),_:1})):(0,o.createCommentVNode)("",!0),(0,o.createVNode)(L,{placement:"top","show-arrow":!1,"popper-class":"d-flow-step-tooltip"},{content:(0,o.withCtx)(()=>[...H[6]||(H[6]=[(0,o.createElementVNode)("div",{style:{color:"var(--j-color-text-2)"}},[(0,o.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"点击"),(0,o.createTextVNode)("添加节点 ")],-1),(0,o.createElementVNode)("div",{style:{color:"var(--j-color-text-2)"}},[(0,o.createElementVNode)("span",{style:{color:"var(--j-color-text)","font-weight":"bold"}},"拖拽"),(0,o.createTextVNode)("连接节点 ")],-1)])]),default:(0,o.withCtx)(()=>[(0,o.createVNode)((0,o.unref)(nn),{onClick:H[3]||(H[3]=Y=>T("s1")),onMousedown:b,id:"s1",class:"d-flow-step-source-handle",type:"source",position:(0,o.unref)(IA).Right,"is-valid-connection":sA},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(U,{visible:y.value.s1,"onUpdate:visible":H[2]||(H[2]=Y=>y.value.s1=Y),placement:"right",trigger:"click","popper-class":"d-flow-step-popper","show-arrow":!1,"popper-options":{strategy:"fixed"}},{reference:(0,o.withCtx)(()=>[(0,o.createVNode)(X,{class:"d-flow-step-handle-plus",icon:"mdi:plus-circle"})]),default:(0,o.withCtx)(()=>[(0,o.createVNode)(bi,{"handle-id":"s1","from-node-id":e.id,onAddNode:cA},null,8,["from-node-id"])]),_:1},8,["visible"])]),_:1},8,["position"])]),_:1}),(0,o.createVNode)(O,{ref_key:"dropdownRef",ref:lA,"popper-class":"d-flow-step-dropdown","virtual-ref":iA.value,"show-arrow":!1,"popper-options":{modifiers:[{name:"offset",options:{offset:[0,0]}}]},"virtual-triggering":"",trigger:"contextmenu",placement:"bottom-start"},{dropdown:(0,o.withCtx)(()=>[(0,o.createVNode)(N,null,{default:(0,o.withCtx)(()=>[e.data.type!="start"?((0,o.openBlock)(),(0,o.createBlock)(k,{key:0,onClick:v},{default:(0,o.withCtx)(()=>[...H[7]||(H[7]=[(0,o.createTextVNode)("删除",-1)])]),_:1})):(0,o.createCommentVNode)("",!0),m.value.des?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:1,style:(0,o.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})},[H[8]||(H[8]=(0,o.createElementVNode)("div",{style:{"margin-bottom":"4px",color:"var(--j-color-text-2)"}},"关于",-1)),(0,o.createElementVNode)("div",ym,(0,o.toDisplayString)(m.value.des),1)],4)):(0,o.createCommentVNode)("",!0)]),_:1})]),_:1},8,["virtual-ref"])],32)}}}),Em=Qm,Fm=(0,o.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:r,onEdgeClick:a,onMoveStart:u,onConnectStart:d,onNodeDragStart:h}=XA(),g=(0,o.computed)(()=>Ei(A)),B=(0,o.ref)(!1),w=(0,o.ref)(!1);t(({edge:T})=>{T.id===A.id&&(B.value=!0)}),n(()=>{B.value=!1});const m=(0,o.ref)(!1),v=()=>{m.value=!1,(0,o.nextTick)(()=>{w.value=!1})},y=()=>{w.value=!0,m.value=!0},I=()=>{v()};return r(()=>{v()}),a(()=>{v()}),u(()=>{v()}),d(()=>{v()}),h(()=>{v()}),(T,D)=>{const V=(0,o.resolveComponent)("j-icon"),b=(0,o.resolveComponent)("el-popover");return(0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[(0,o.createVNode)((0,o.unref)(Gn),{id:e.id,style:(0,o.normalizeStyle)(e.style),path:g.value[0],"marker-end":e.markerEnd},null,8,["id","style","path","marker-end"]),(0,o.createVNode)((0,o.unref)(_p),null,{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",{style:(0,o.normalizeStyle)({pointerEvents:"all",position:"absolute",transform:`translate(-50%, -50%) translate(${g.value[1]}px,${g.value[2]}px)`}),class:"nodrag nopan"},[(0,o.createVNode)(b,{visible:m.value,"show-arrow":!1,placement:"right","popper-class":"d-flow-step-popper"},{reference:(0,o.withCtx)(()=>[(0,o.withDirectives)((0,o.createElementVNode)("div",{onClick:(0,o.withModifiers)(y,["stop"]),class:"d-flow-edge-button"},[(0,o.createVNode)(V,{icon:"mdi:plus-circle"})],512),[[o.vShow,B.value||w.value]])]),default:(0,o.withCtx)(()=>[(0,o.createVNode)(bi,{"handle-id":"line","from-node-id":e.id,onAddNode:I},null,8,["from-node-id"])]),_:1},8,["visible"])],4)]),_:1})],64)}}}),Um=Fm,bm=(0,o.defineComponent)({name:"DFlow",__name:"flow",props:{nodes:{default:()=>[]},edges:{default:()=>[]}},setup(e){return(A,t)=>((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(Tp),{"min-zoom":.2,"max-zoom":4,"default-viewport":{zoom:1},"connection-mode":(0,o.unref)(nt).Strict,nodes:e.nodes,edges:e.edges},{"edge-button":(0,o.withCtx)(n=>[(0,o.createVNode)(Um,{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,o.normalizeStyle)(n.style)},null,8,["id","source-x","source-y","target-x","target-y","source-position","target-position","marker-end","style"])]),"node-step":(0,o.withCtx)(n=>[(0,o.createVNode)(Em,(0,o.normalizeProps)((0,o.guardReactiveProps)(n)),null,16)]),default:(0,o.withCtx)(()=>[(0,o.createVNode)((0,o.unref)(Bm),{position:"bottom-left"}),(0,o.createVNode)((0,o.unref)(zp))]),_:1},8,["connection-mode","nodes","edges"]))}}),Hm=bm,Im={class:"d-flow-design"},_m={class:"d-flow-design-canvas"},Sm={class:"d-flow-design-right"},xm={class:"d-flow-design-title"},Dm={class:"d-flow-design-title-name"},Nm={class:"d-flow-design-panel"},Lm=(0,o.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,r=t,{addNodes:a,addEdges:u,removeEdges:d,addSelectedNodes:h,removeSelectedNodes:g,onConnect:B,onNodeClick:w,onPaneClick:m,onEdgeClick:v,getNodes:y,getEdges:I}=XA(),T=(0,o.computed)(()=>{const N={};return n.components.forEach(O=>{N[O.type]=O}),N.start={name:"开始",type:"start",icon:"ant-design:play-circle-outlined",des:"执行开始节点"},N}),D={id:"start",type:"step",data:{type:"start",isInit:!1},position:{x:80,y:160}},V=(0,o.ref)([D]),b=(0,o.ref)([]),K=(N,O)=>{if(O.indexOf("t")===-1){const Y=I.value.filter(tA=>tA.source===N.id);if(Y.length>0){let tA=-1e6,pA=0;return Y.forEach(HA=>{tA=Math.max(tA,HA.targetNode.position.y+HA.targetNode.dimensions.height+32),pA=HA.targetNode.position.x||0}),{x:pA,y:tA}}return{x:N.position.x+N.dimensions.width+100,y:N.position.y}}return{x:N.position.x-100-N.dimensions.width,y:N.position.y}},sA=(N,O,Y)=>{const tA=y.value.find(HA=>HA.id===O);if(!tA)return;const pA={id:ft(),type:"step",data:{type:N},position:K(tA,Y)};if(n.flowInit){const HA=n.flowInit(pA.data.type);HA&&Object.keys(HA).forEach(nA=>{pA.data[nA]=HA[nA]})}a(pA),Y.indexOf("t")===-1?u({id:`${O}-${pA.id}`,source:O,target:pA.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:rt.Arrow}):u({id:`${O}-${pA.id}`,source:pA.id,target:O,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:rt.Arrow}),S(pA.id)},W=N=>{const O=y.value.find(Y=>Y.id===N);O&&(O.position.x+=100+O.dimensions.width,I.value.filter(Y=>Y.source===N).forEach(Y=>{W(Y.target)}))},cA=(N,O)=>{const Y=I.value.find(pA=>pA.id===O);if(!Y)return;const tA={id:ft(),type:"step",data:{type:N},position:{x:Y.targetNode.position.x,y:Y.targetNode.position.y}};if(n.flowInit){const pA=n.flowInit(tA.data.type);pA&&Object.keys(pA).forEach(HA=>{tA.data[HA]=pA[HA]})}a(tA),u({id:`${Y.sourceNode.id}-${tA.id}`,source:Y.sourceNode.id,target:tA.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:rt.Arrow}),u({id:`${tA.id}-${Y.targetNode.id}`,source:tA.id,target:Y.targetNode.id,sourceHandle:"s1",targetHandle:"t1",type:"button",markerEnd:rt.Arrow}),d(O),W(Y.target),S(tA.id)};B(N=>{console.log("onConnect",N),N.type="button",N.markerEnd=rt.Arrow,u(N),r("connect",N)});const lA=()=>n.components||[],oA=(0,o.ref)(),iA=(0,o.computed)(()=>oA.value?T.value[oA.value.data.type]:void 0);w(N=>{oA.value?.id!==N.node.id&&(oA.value=N.node,X()),r("nodeClick",N.node)}),m(()=>{oA.value=void 0,r("paneClick")}),v(N=>{oA.value=void 0,r("edgeClick",N.edge)});const AA=N=>{oA.value?.id===N&&(oA.value=void 0)},S=N=>{oA.value&&g([oA.value]),oA.value=y.value.find(O=>O.id===N),oA.value&&(X(),setTimeout(()=>{oA.value&&h([oA.value])},100))},eA=(0,o.ref)(),H={};Object.keys(n.flowComponentConfigs).forEach(N=>{const O={type:"j-collapse",config:{defaultValue:[]},children:[]};n.flowComponentConfigs[N].forEach((Y,tA)=>{const pA=`_collapse${tA}`;O.config?.defaultValue.push(pA),O.children?.push(Y)}),H[N]=[O]});const X=()=>{const N=H[oA.value?.data.type||""];N&&eA.value?(eA.value.init&&eA.value.init(N,oA.value?.data),n.flowComponentConfigInit&&n.flowComponentConfigInit({configRef:eA,inputParams:n.inputParams,components:y.value,configData:oA.value?.data})):eA.value&&eA.value.init&&eA.value.init([])},U=N=>{oA.value&&n.flowComponentConfigChange&&n.flowComponentConfigChange(oA.value.data.type,{configRef:eA,configData:oA.value.data,...N,isFlowNode:!0})};return(0,o.provide)("d_flow_design_provide",{getFlowComponents:lA,addNode:sA,addNodeByLine:cA,onRemoveNode:AA,getFlowComponentMap:T}),A({getData:()=>{const N=[];return y.value.forEach(O=>{N.push({config:O.data,id:O.id,position:O.position,type:O.type})}),I.value.forEach(O=>{N.push({id:O.id,source:O.source,target:O.target,sourceHandle:O.sourceHandle,targetHandle:O.targetHandle,type:"line",config:{},position:{x:0,y:0}})}),N},setData:N=>{if(!N||N.length===0)D.data.isInit=!0,V.value=[D],S(D.id);else{D.data.isInit=!1;const O=[],Y=[];N.forEach(tA=>{if(tA.type==="line")tA.type="button",tA.markerEnd=rt.Arrow,Y.push(tA);else{const pA={id:tA.id,type:tA.type,data:tA.config,position:tA.position};O.push(pA)}}),V.value=O,b.value=Y}}}),(N,O)=>{const Y=(0,o.resolveComponent)("j-icon"),tA=(0,o.resolveComponent)("j-form");return(0,o.openBlock)(),(0,o.createElementBlock)("div",Im,[(0,o.createElementVNode)("div",_m,[(0,o.createVNode)(Hm,{nodes:V.value,edges:b.value},null,8,["nodes","edges"])]),(0,o.withDirectives)((0,o.createElementVNode)("div",Sm,[(0,o.createElementVNode)("div",xm,[(0,o.createElementVNode)("div",{class:"d-flow-design-title-icon",style:(0,o.normalizeStyle)({backgroundColor:iA.value?.iconColor||"var(--j-color-primary)"})},[(0,o.createVNode)(Y,{icon:iA.value?.icon||"mdi:source-branch"},null,8,["icon"])],4),(0,o.createElementVNode)("div",Dm,(0,o.toDisplayString)(iA.value?.name||""),1)]),(0,o.createElementVNode)("div",Nm,[(0,o.createVNode)(tA,{config:{labelPosition:"top"},style:{padding:"0"},ref_key:"configRef",ref:eA,onChange:U},null,512)])],512),[[o.vShow,oA.value&&H[oA.value.data.type]]])])}}}),Tm=Lm,hl=dt(Tm),km={class:"d-input-flow j-block"},Mm=(0,o.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,r=(0,o.ref)(),a=(0,o.computed)({get(){return t.modelValue},set(w){n("update:modelValue",w)}}),u=(0,o.computed)(()=>(t.modelValue?.trim(),t.btnText)),d=w=>{const m=typeof w=="string"?w:void 0;try{r.value?.setData(JSON.parse(m||"[]"))}catch{r.value?.setData([])}},h=async()=>{const w=r.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,o.resolveComponent)("d-flow-design"),y=(0,o.resolveComponent)("j-input-button");return(0,o.openBlock)(),(0,o.createBlock)(y,(0,o.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]=I=>a.value=I),onChange:B}),{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",km,[(0,o.createVNode)(v,{ref_key:"flowRef",ref:r,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"])}}}),Om=Mm,Bl=dt(Om),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 r=t.querySelectorAll(A);if(!r.length&&A[0]!=="."&&A[0]!=="#"&&(r=t.querySelectorAll("."+A),r.length||(r=t.querySelectorAll("#"+A)),!r.length)){const a=t.querySelector(`[gs-id="${A}"]`);return a?[a]:[]}return Array.from(r)}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 r=t.querySelector(A);return n&&!r&&(r=n.getElementById(A)),r||(r=t.querySelector("."+A)),r}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(r=>{r&&n.classList.add(r)}),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,r=A.x+A.w<t.x+t.w?A.x+A.w:t.x+t.w;if(r<=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:(r-n)*(u-a)}static area(A){return A.w*A.h}static sort(A,t=1){return A.sort((r,a)=>{const u=t*((r.y??1e4)-(a.y??1e4));return u===0?t*((r.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 r=A.match(/^(-[0-9]+\.[0-9]+|[0-9]*\.[0-9]+|-[0-9]+|[0-9]+)(px|em|rem|vh|vw|%|cm|mm)?$/);if(!r)throw new Error(`Invalid height val = ${A}`);n=r[2]||"px",t=parseFloat(r[1])}else t=A;return{h:t,unit:n}}static defaults(A,...t){return t.forEach(n=>{for(const r in n){if(!n.hasOwnProperty(r))return;A[r]===null||A[r]===void 0?A[r]=n[r]:typeof n[r]=="object"&&typeof A[r]=="object"&&Le.defaults(A[r],n[r])}}),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 r=A[n],a=t[n];n[0]==="_"||r===a?delete A[n]:r&&typeof r=="object"&&a!==void 0&&(Le.removeInternalAndSame(r,a),Object.keys(r).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(...r)=>{n||(n=!0,setTimeout(()=>{A(...r),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 r=Le.getScrollElement(A);if(!r)return;const a=A.getBoundingClientRect(),u=r.getBoundingClientRect(),d=window.innerHeight||document.documentElement.clientHeight,h=a.bottom-Math.min(u.bottom,d),g=a.top-Math.max(u.top,0),B=r.scrollTop;g<0&&n<0?A.offsetHeight>u.height?r.scrollTop+=n:r.scrollTop+=Math.abs(g)>Math.abs(n)?n:g:h>0&&n>0&&(A.offsetHeight>u.height?r.scrollTop+=n:r.scrollTop+=h>n?n:h),t.top+=r.scrollTop-B}static updateScrollResize(A,t,n){const r=Le.getScrollElement(t),a=r.clientHeight,u=r===Le.getScrollElement()?0:r.getBoundingClientRect().top,d=A.clientY-u,h=d<n,g=d>a-n;h?r.scrollBy({behavior:"smooth",top:d-n}):g&&r.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 r in n)n.hasOwnProperty(r)&&typeof n[r]=="object"&&r.substring(0,2)!=="__"&&!t.find(a=>a===r)&&(n[r]=Le.cloneDeep(A[r]));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(r=>{A.style[n]=r}):A.style[n]=t[n])}static initEvent(A,t){const n={type:t.type},r={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,...r}}static simulateMouseEvent(A,t,n){const r=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:r.ctrlKey??!1,altKey:r.altKey??!1,shiftKey:r.shiftKey??!1,metaKey:r.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 r=A[t];A[t]=A[n],A[n]=r}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)}},Hi=class Qn{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,r={}){if(this.sortNodes(-1),n=n||this.collide(A,t),!n)return!1;if(A._moving&&!r.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,r.skip));let u=!1;const d={nested:!0,pack:!1};let h=0;for(;n=n||this.collide(A,a,r.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&&r.pack&&(this._packNodes(),t.y=n.y+n.h,q.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 r=A._id,a=n?._id;return this.nodes.find(u=>u._id!==r&&u._id!==a&&q.isIntercepted(u,t))}collideAll(A,t=A,n){const r=A._id,a=n?._id;return this.nodes.filter(u=>u._id!==r&&u._id!==a&&q.isIntercepted(u,t))}directionCollideCoverage(A,t,n){if(!t.rect||!A._rect)return;const r=A._rect,a={...t.rect};a.y>r.y?(a.h+=a.y-r.y,a.y=r.y):a.h+=r.y-a.y,a.x>r.x?(a.w+=a.x-r.x,a.x=r.x):a.w+=r.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;r.y<g.y?B=(a.y+a.h-g.y)/g.h:r.y+r.h>g.y+g.h&&(B=(g.y+g.h-a.y)/g.h),r.x<g.x?w=(a.x+a.w-g.x)/g.w:r.x+r.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,r,a,u){return this.nodes.forEach(d=>d._rect={y:d.y*t+n,x:d.x*A+u,w:d.w*A-u-r,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 r;if(A.w===t.w&&A.h===t.h&&(A.x===t.x||A.y===t.y)&&(r=q.isTouching(A,t)))return n();if(r!==!1){if(A.w===t.w&&A.x===t.x&&(r||(r=q.isTouching(A,t)))){if(t.y<A.y){const a=A;A=t,t=a}return n()}if(r!==!1){if(A.h===t.h&&A.y===t.y&&(r||(r=q.isTouching(A,t)))){if(t.x<A.x){const a=A;A=t,t=a}return n()}return!1}}}isAreaEmpty(A,t,n,r){const a={x:A||0,y:t||0,w:n||1,h:r||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 r=this._inColumnResize;r||(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)}),r||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??Qn._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 r={x:0,y:0,w:1,h:1};return q.defaults(A,r),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=r.x,A.autoPosition=!0),isNaN(A.y)&&(A.y=r.y,A.autoPosition=!0),isNaN(A.w)&&(A.w=r.w),isNaN(A.h)&&(A.h=r.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 r={...A};r.autoPosition||r.x===void 0?(delete r.x,delete r.y):r.x=Math.min(this.defaultColumn-1,r.x),r.w=Math.min(this.defaultColumn,r.w||1),this.cacheOneLayout(r,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,r){const a=r?r.y*n+(r.x+r.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=>q.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 r=this.nodes.find(u=>u._id===A._id);if(r)return r;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(r=>r._id===A._id)?(n&&this.removedNodes.push(A),t&&(A._removeDOM=!0),this.nodes=this.nodes.filter(r=>r._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(r=>r._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 r=new Qn({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=r.moveNode(n,t)&&r.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?(r.nodes.filter(u=>u._dirty).forEach(u=>{const d=this.nodes.find(h=>h._id===u._id);d&&(q.copyPos(d,u),d._dirty=!0)}),this._notify(),!0):!1}willItFit(A){if(delete A._willFitPos,!this.maxRow)return!0;const t=new Qn({column:this.column,float:this.float,nodes:this.nodes.map(r=>({...r}))}),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 r=A.w!==t.w||A.h!==t.h,a=q.copyPos({},A,!0);if(q.copyPos(a,t),this.nodeBoundFix(a,r),q.copyPos(t,a),!t.forceCollide&&q.samePos(A,t))return!1;const u=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),v=q.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&&!q.samePos(A,a)&&(A._dirty=!0,q.copyPos(A,a)),t.pack&&this._packNodes()._notify(),!q.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 r=this._layouts?.length||0;let a;r&&(n?n!==this.column&&(a=this._layouts[n]):this.column!==r-1&&(a=this._layouts[r-1]));const u=[];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),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 r=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*r),u.x<0&&(u.x=0)),a.w!==a._orig.w&&(u.w=Math.round(a.w*r),u.w<1&&(u.w=1)))})}}),this)}columnChanged(A,t,n="moveScale"){if(!this.nodes.length||!t||A===t)return this;const r=n==="compact"||n==="list";r&&this.sortNodes(1),t<A&&this.cacheLayout(this.nodes,A),this.batchUpdate();let a=[],u=r?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=u.find(w=>w._id===g._id);B&&(!r&&!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(r){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(r)this.compact(n,!1);else{if(u.length)if(typeof n=="function")n(t,A,a,u);else{const d=r||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=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,!r),delete this._inColumnResize,this}cacheLayout(A,t,n=!1){const r=[];return A.forEach((a,u)=>{a._id===void 0&&(a._id=(a.id?this.nodes.find(d=>d.id===a.id):void 0)?._id??Qn._idSeq++),r[u]={x:a.x,y:a.y,w:a.w,_id:a._id}}),this._layouts=n?[]:this._layouts||[],this._layouts[t]=r,this}cacheOneLayout(A,t){A._id=A._id??Qn._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 r=this.findCacheLayout(A,t);return r===-1?this._layouts[t].push(n):this._layouts[t][r]=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}};Hi._idSeq=0;var Ue={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"},LA=class{},Oe=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 Xr(e,A){e.touches.length>1||(e.cancelable&&e.preventDefault(),q.simulateMouseEvent(e.changedTouches[0],A))}function pl(e,A){e.cancelable&&e.preventDefault(),q.simulateMouseEvent(e,A)}function $r(e){be.touchHandled||(be.touchHandled=!0,Xr(e,"mousedown"))}function Yr(e){be.touchHandled&&Xr(e,"mousemove")}function Wr(e){if(!be.touchHandled)return;be.pointerLeaveTimeout&&(window.clearTimeout(be.pointerLeaveTimeout),delete be.pointerLeaveTimeout);const A=!!LA.dragElement;Xr(e,"mouseup"),A||Xr(e,"click"),be.touchHandled=!1}function Jr(e){e.pointerType!=="mouse"&&e.target.releasePointerCapture(e.pointerId)}function ml(e){LA.dragElement&&e.pointerType!=="mouse"&&pl(e,"mouseenter")}function wl(e){LA.dragElement&&e.pointerType!=="mouse"&&(be.pointerLeaveTimeout=window.setTimeout(()=>{delete be.pointerLeaveTimeout,pl(e,"mouseleave")},10))}var Cl=class Eu{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(`${Eu.prefix}${this.dir}`),this.el.style.zIndex="100",this.el.style.userSelect="none",this.el.addEventListener("mousedown",this._mouseDown),Oe&&(this.el.addEventListener("touchstart",$r),this.el.addEventListener("pointerdown",Jr)),this}destroy(){return this.moving&&this._mouseUp(this.mouseDownEvent),this.el.removeEventListener("mousedown",this._mouseDown),Oe&&(this.el.removeEventListener("touchstart",$r),this.el.removeEventListener("pointerdown",Jr)),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),Oe&&(this.el.addEventListener("touchmove",Yr),this.el.addEventListener("touchend",Wr)),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),Oe&&(this.el.removeEventListener("touchmove",Yr),this.el.removeEventListener("touchend",Wr)),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}};Cl.prefix="ui-resizable-";var Ii=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)}},vl=class gs extends Ii{constructor(A,t={}){super(),this.el=A,this.option=t,this.rectScale={x:1,y:1},this._ui=()=>{const n=this.el.parentElement.getBoundingClientRect(),r={width:this.originalRect.width,height:this.originalRect.height+this.scrolled,left:this.originalRect.left,top:this.originalRect.top-this.scrolled},a=this.temporalRect||r;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(r=>this.option[r]=A[r]),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),LA.overResizeElement===this&&delete LA.overResizeElement),this}_mouseOver(A){LA.overResizeElement||LA.dragElement||(LA.overResizeElement=this,this.el.classList.remove("ui-resizable-autohide"))}_mouseOut(A){LA.overResizeElement===this&&(delete LA.overResizeElement,this.el.classList.add("ui-resizable-autohide"))}_setupHandlers(){return this.handlers=this.option.handles.split(",").map(A=>A.trim()).map(A=>new Cl(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=gs._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 gs._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,r={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?r.width+=a:t.indexOf("w")>-1&&(r.width-=a,r.left+=a,d=!0),t.indexOf("s")>-1?r.height+=u:t.indexOf("n")>-1&&(r.height-=u,r.top+=u,h=!0);const g=this._constrainSize(r.width,r.height,d,h);return Math.round(r.width)!==Math.round(g.width)&&(t.indexOf("w")>-1&&(r.left+=r.width-g.width),r.width=g.width),Math.round(r.height)!==Math.round(g.height)&&(t.indexOf("n")>-1&&(r.top+=r.height-g.height),r.height=g.height),r}_constrainSize(A,t,n,r){const a=this.option,u=(n?a.maxWidthMoveLeft:a.maxWidth)||Number.MAX_SAFE_INTEGER,d=a.minWidth/this.rectScale.x||A,h=(r?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],r=t==="width"||t==="left"?this.rectScale.x:t==="height"||t==="top"?this.rectScale.y:1;this.el.style[t]=(n-A[t])*r+"px"}),this):this}_removeHandlers(){return this.handlers.forEach(A=>A.destroy()),delete this.handlers,this}};vl._originStyleProp=["width","height","position","left","top","opacity","zIndex"];var Km='input,textarea,button,select,option,[contenteditable="true"],.ui-resizable-handle',yl=class hs extends Ii{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),r=A.gridstackNode;this.dragEls=!n||A.classList.contains(n)?[A]:r?.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),Oe&&(A.addEventListener("touchstart",$r),A.addEventListener("pointerdown",Jr))}),this.el.classList.remove("ui-draggable-disabled"))}disable(A=!1){this.disabled!==!0&&(super.disable(),this.dragEls.forEach(t=>{t.removeEventListener("mousedown",this._mouseDown),Oe&&(t.removeEventListener("touchstart",$r),t.removeEventListener("pointerdown",Jr))}),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),!LA.mouseHandled)return A.button!==0||!this.dragEls.find(t=>t===A.target)&&A.target.closest(Km)||this.option.cancel&&A.target.closest(this.option.cancel)||(this.mouseDownEvent=A,delete this.dragging,delete LA.dragElement,delete LA.dropElement,document.addEventListener("mousemove",this._mouseMove,{capture:!0,passive:!0}),document.addEventListener("mouseup",this._mouseUp,!0),Oe&&(A.currentTarget.addEventListener("touchmove",Yr),A.currentTarget.addEventListener("touchend",Wr)),A.preventDefault(),document.activeElement&&document.activeElement.blur(),LA.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),LA.pauseDrag){const n=Number.isInteger(LA.pauseDrag)?LA.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,LA.dragElement=this;const n=this.el.gridstackNode?.grid;n?LA.dropElement=n.el.ddElement.ddDroppable:delete LA.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 r=q.initEvent(A,{target:this.el,type:"dragstart"});this.option.start&&this.option.start(r,this.ui()),this.triggerEvent("dragstart",r),document.addEventListener("keydown",this._keyEvent)}return!0}_mouseUp(A){if(document.removeEventListener("mousemove",this._mouseMove,!0),document.removeEventListener("mouseup",this._mouseUp,!0),Oe&&A.currentTarget&&(A.currentTarget.removeEventListener("touchmove",Yr,!0),A.currentTarget.removeEventListener("touchend",Wr,!0)),this.dragging){delete this.dragging,delete this.el.gridstackNode?._origRotate,document.removeEventListener("keydown",this._keyEvent),LA.dropElement?.el===this.el.parentElement&&delete LA.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),LA.dropElement&&LA.dropElement.drop(A)}delete this.helper,delete this.mouseDownEvent,delete LA.dragElement,delete LA.dropElement,delete LA.mouseHandled,A.preventDefault()}_keyEvent(A){const t=this.el.gridstackNode,n=t?.grid||LA.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=hs.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",hs.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,r=this.dragOffset;n.left=(A.clientX+r.offsetLeft-t.left)*this.dragTransform.xScale+"px",n.top=(A.clientY+r.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 r=0,a=0;n&&(r=this.dragTransform.xOffset,a=this.dragTransform.yOffset);const u=t.getBoundingClientRect();return{left:u.left,top:u.top,offsetLeft:-A.clientX+u.left-r,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}}}};yl.originStyleProp=["width","height","transform","transform-origin","transition","pointerEvents","position","left","top","minWidth","willChange"];var Rm=class extends Ii{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),Oe&&(this.el.addEventListener("pointerenter",ml),this.el.addEventListener("pointerleave",wl)))}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),Oe&&(this.el.removeEventListener("pointerenter",ml),this.el.removeEventListener("pointerleave",wl)))}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(!LA.dragElement||be.touchHandled&&e.isTrusted||!this._canDrop(LA.dragElement.el))return;e.preventDefault(),e.stopPropagation(),LA.dropElement&&LA.dropElement!==this&&LA.dropElement._mouseLeave(e,!0),LA.dropElement=this;const A=q.initEvent(e,{target:this.el,type:"dropover"});this.option.over&&this.option.over(A,this._ui(LA.dragElement)),this.triggerEvent("dropover",A),this.el.classList.add("ui-droppable-over")}_mouseLeave(e,A=!1){if(!LA.dragElement||LA.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(LA.dragElement)),this.triggerEvent("dropout",t),LA.dropElement===this&&(delete LA.dropElement,!A)){let n,r=this.el.parentElement;for(;!n&&r;)n=r.ddElement?.ddDroppable,r=r.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(LA.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()}}},Vm=class Fu{static init(A){return A.ddElement||(A.ddElement=new Fu(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 yl(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 vl(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 Rm(this.el,A),this}cleanDroppable(){return this.ddDroppable&&(this.ddDroppable.destroy(),delete this.ddDroppable),this}},Pm=class{resizable(e,A,t,n){return this._getDDElements(e,A).forEach(r=>{if(A==="disable"||A==="enable")r.ddResizable&&r.ddResizable[A]();else if(A==="destroy")r.ddResizable&&r.cleanResizable();else if(A==="option")r.setupResizable({[t]:n});else{const a=r.el.gridstackNode.grid;let u=r.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;r.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(r=>{if(A==="disable"||A==="enable")r.ddDraggable&&r.ddDraggable[A]();else if(A==="destroy")r.ddDraggable&&r.cleanDraggable();else if(A==="option")r.setupDraggable({[t]:n});else{const a=r.el.gridstackNode.grid;r.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=r=>A._accept(r)),this._getDDElements(e,A).forEach(r=>{A==="disable"||A==="enable"?r.ddDroppable&&r.ddDroppable[A]():A==="destroy"?r.ddDroppable&&r.cleanDroppable():A==="option"?r.setupDroppable({[t]:n}):r.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,r=>{t(r,LA.dragElement?LA.dragElement.el:r.target,LA.dragElement?LA.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(r=>r.ddElement||(t?Vm.init(r):null)).filter(r=>r):[]}},me=new Pm,rn=class NA{static init(A={},t=".grid-stack"){if(typeof document>"u")return null;const n=NA.getGridElement(t);return n?(n.gridstack||(n.gridstack=new NA(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"||(NA.getGridElements(t).forEach(r=>{r.gridstack||(r.gridstack=new NA(r,q.cloneDeep(A))),n.push(r.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 r=n.gridstack;return t&&(r.opts={...r.opts,...t}),t.children!==void 0&&r.load(t.children),r}return(!A.classList.contains("grid-stack")||NA.addRemoveCB)&&(NA.addRemoveCB?n=NA.addRemoveCB(A,t,!0,!0):n=q.createDiv(["grid-stack",t.class],A)),NA.init(t,n)}static registerEngine(A){NA.engineClass=A}get placeholder(){if(!this._placeholder){this._placeholder=q.createDiv([this.opts.placeholderClass,Ue.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 r=t.columnOpts;if(r){const h=r.breakpoints;!r.columnWidth&&!h?.length?delete t.columnOpts:(r.columnMax=r.columnMax||12,h?.length>1&&h.sort((g,B)=>(B.w||0)-(g.w||0)))}const a={...q.cloneDeep(Ue),column:q.toNumber(A.getAttribute("gs-column"))||Ue.column,minRow:n||q.toNumber(A.getAttribute("gs-min-row"))||Ue.minRow,maxRow:n||q.toNumber(A.getAttribute("gs-max-row"))||Ue.maxRow,staticGrid:q.toBool(A.getAttribute("gs-static"))||Ue.staticGrid,sizeToContent:q.toBool(A.getAttribute("gs-size-to-content"))||void 0,draggable:{handle:(t.handleClass?"."+t.handleClass:t.handle?t.handle:"")||Ue.draggable.handle},removableOptions:{accept:t.itemClass||Ue.removableOptions.accept,decline:Ue.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 u=this.el.closest("."+Ue.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!==Ue.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=Oe),this._setStaticClass();const d=t.engineClass||NA.engineClass||Hi;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&&!LA.pauseDrag&&(LA.pauseDrag=!0),t.draggable?.pause!==void 0&&(LA.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:NA.addRemoveCB?t=NA.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 r=this._readAttr(t);return q.defaults(A,r),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(([r])=>{r.isIntersecting&&(A.visibleObservable?.disconnect(),delete A.visibleObservable,NA.renderCB(n,A),A.grid?.prepareDragDrop(A.el))}),window.setTimeout(()=>A.visibleObservable?.observe(t))):NA.renderCB(n,A),t}makeSubGrid(A,t,n,r=!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=q.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(r&&(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),NA.addRemoveCB?B=NA.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 v=h?t.column:a.w,y=a.h+n.h,I=a.el.style;I.transition="none",this.update(a.el,{w:v,h:y}),setTimeout(()=>I.transition=null)}const m=a.subGrid=NA.addGrid(g,t);return n?._moving&&(m._isTemp=!0),h&&(m._autoColumn=!0),r&&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=NA.saveCB,r){const a=this.engine.save(A,n,r);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=q.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,q.removeInternalAndSame(u,Ue),u.children=a,u}return a}load(A,t=NA.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 r=0;A.forEach(B=>{r=Math.max(r,(B.x||0)+B.w)}),r>this.engine.defaultColumn&&(this.engine.defaultColumn=r),r>n&&(this.engine.nodes.length===0&&this.responseLayout?(this.engine.nodes=A,this.engine.columnChanged(r,n,this.responseLayout),A=this.engine.nodes,this.engine.nodes=[],delete this.responseLayout):this.engine.cacheLayout(A,r,!0));const a=NA.addRemoveCB;typeof t=="function"&&(NA.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&&(q.find(A,B.id)||(NA.addRemoveCB&&NA.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=>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=u,this.batchUpdate(!1),delete this._ignoreLayoutsNodeChange,delete this.engine.skipCacheUpdate,a?NA.addRemoveCB=a:delete NA.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 r=q.toNumber(t.getAttribute("gs-h"))||1;return Math.round(t.offsetHeight/r)}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 r=this._widthOrContainer(!0);if(A.columnWidth)n=Math.min(Math.round(r/A.columnWidth)||1,A.columnMax);else{n=A.columnMax;let a=0;for(;a<A.breakpoints.length&&r<=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 r;t?r={top:n.top+document.documentElement.scrollTop,left:n.left}:r={top:this.el.offsetTop,left:this.el.offsetLeft};const a=A.left-r.left,u=A.top-r.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,r){return this.engine.isAreaEmpty(A,t,n,r)}makeWidget(A,t){const n=NA.getElement(A);if(!n||n.gridstackNode)return n;n.parentElement||this.el.appendChild(n),this._prepareElement(n,!0,t);const r=n.gridstackNode;this._updateContainerHeight(),r.subGridOpts&&this.makeSubGrid(n,r.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?(NA.getElements(A).forEach(r=>{if(r.parentElement&&r.parentElement!==this.el)return;let a=r.gridstackNode;a||(a=this.engine.nodes.find(u=>r===u.el)),a&&(t&&NA.addRemoveCB&&NA.addRemoveCB(this.el,a,!1,!1),delete r.gridstackNode,this._removeDD(r),this.engine.removeNode(a,t,n),t&&r.parentElement&&r.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&&NA.addRemoveCB&&NA.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(r=>{this.prepareDragDrop(r.el),r.subGrid&&n&&r.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 NA.getElements(A).forEach(n=>{const r=n?.gridstackNode;if(!r)return;const a={...q.copyPos({},r),...q.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]!==r[B])&&(d={},u.forEach(B=>{d[B]=a[B]!==void 0?a[B]:r[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&&(r.content=a.content,NA.renderCB(B,a),r.subGrid?.el&&(B.appendChild(r.subGrid.el),r.subGrid._updateContainerHeight())),delete a.content}let h=!1,g=!1;for(const B in a)B[0]!=="_"&&r[B]!==a[B]&&(r[B]=a[B],h=!0,g=g||!this.opts.staticGrid&&(B==="noResize"||B==="noMove"||B==="locked"));if(q.sanitizeMinMax(r),d){const B=d.w!==void 0&&d.w!==r.w;this.moveNode(r,d),B&&r.subGrid?r.subGrid.onResize(this.hasAnimationCSS()?r.w:void 0):this.resizeToContentCheck(B,r),delete r._orig}(d||h)&&this._writeAttr(n,r),g&&this.prepareDragDrop(r.el),NA.updateCB&&NA.updateCB(r)}),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 r=n.getCellHeight(!0);if(!r)return;let a=t.h?t.h*r:A.clientHeight,u;if(t.resizeToContentParent&&(u=A.querySelector(t.resizeToContentParent)),u||(u=A.querySelector(NA.resizeToContentParent)),!u)return;const d=A.clientHeight-u.clientHeight,h=t.h?t.h*r-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} '${NA.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/r);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){NA.resizeToContentCB?NA.resizeToContentCB(A):this.resizeToContent(A)}rotate(A,t){return NA.getElements(A).forEach(n=>{const r=n.gridstackNode;if(!q.canBeRotated(r))return;const a={w:r.h,h:r.w,minH:r.minW,minW:r.minH,maxH:r.maxW,maxW:r.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=r.x+d-(r.h-(h+1)),a.y=r.y+h-d}Object.keys(a).forEach(d=>{a[d]===void 0&&delete a[d]});const u=r._orig;this.update(n,a),r._orig=u}),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 r=this;for(;r.parentGridNode;)r=r.parentGridNode.grid;return r.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,r=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===r){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+r),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(Ue.itemClass,this.opts.itemClass);const r=q.shouldSizeToContent(n);return r?A.classList.add("size-to-content"):A.classList.remove("size-to-content"),r&&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 r in n)t[r]?A.setAttribute(n[r],String(t[r])):A.removeAttribute(n[r]);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 r=A.getAttribute("gs-size-to-content");r&&(r==="true"||r==="false"?n.sizeToContent=q.toBool(r):n.sizeToContent=parseInt(r,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(r=>{q.shouldSizeToContent(r)&&this.resizeToContentCBCheck(r.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 NA.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 r=this.el.style;return r.setProperty("--gs-item-margin-top",`${this.opts.marginTop}${this.opts.marginUnit}`),r.setProperty("--gs-item-margin-bottom",`${this.opts.marginBottom}${this.opts.marginUnit}`),r.setProperty("--gs-item-margin-right",`${this.opts.marginRight}${this.opts.marginUnit}`),r.setProperty("--gs-item-margin-left",`${this.opts.marginLeft}${this.opts.marginUnit}`),this}static getDD(){return me}static setupDragIn(A,t,n,r=document){t?.pause!==void 0&&(LA.pauseDrag=t.pause),t={appendTo:"body",helper:"clone",...t||{}},(typeof A=="string"?q.getElements(A,r):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:(NA.getElements(A).forEach(n=>{const r=n.gridstackNode;r&&(t?delete r.noMove:r.noMove=!0,this.prepareDragDrop(r.el))}),this)}resizable(A,t){return this.opts.staticGrid?this:(NA.getElements(A).forEach(n=>{const r=n.gridstackNode;r&&(t?delete r.noResize:r.noResize=!0,this.prepareDragDrop(r.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&&NA._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=(r,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)*(r.clientX-m.x)/this.dragTransform.xScale+"px",u.style.top=m.y+(this.dragTransform.yScale-1)*(r.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&&(q.copyPos(d,d._willFitPos),delete d._willFitPos)}this._onStartMoving(u,r,w,d,t,A)}else this._dragOrResize(u,r,w,d,t,A)};return me.droppable(this.el,{accept:r=>{const a=r.gridstackNode||this._readAttr(r,!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(r);else{const d=this.opts.acceptWidgets===!0?".grid-stack-item":this.opts.acceptWidgets;u=r.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",(r,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),NA._itemRemoving(d.el,!1),me.on(a,"drag",n),n(r,a,u),!1}).on(this.el,"dropout",(r,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",(r,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 q.copyPos(d,this._readAttr(this.placeholder)),q.removePositioningStyles(a),g&&(d.content||d.subGridOpts||NA.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({...r,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)=>NA._itemRemoving(n,!0)).on(A,"dropout",(t,n)=>NA._itemRemoving(n,!1)),this):this}prepareDragDrop(A,t=!1){const n=A?.gridstackNode;if(!n)return;const r=n.noMove||this.opts.disableDrag,a=n.noResize||this.opts.disableResize,u=this.opts.staticGrid||r&&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,y=m.target;if(!(!y.gridstackNode||y.gridstackNode.grid!==this)){if(n.el=y,n._isAboutToRemove){const I=A.gridstackNode.grid;I._gsEventHandler[m.type]&&I._gsEventHandler[m.type](m,y),I.engine.nodes.push(n),I.removeWidget(A,!0,!0)}else q.removePositioningStyles(y),n._temporaryRemoved?(this._writePosAttr(y,n),this.engine.addNode(n)):this._writePosAttr(y,n),this.triggerEvent(m,y);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,r?"disable":"enable").resizable(A,a?"disable":"enable"),this}_onStartMoving(A,t,n,r,a,u){if(this.engine.cleanNodes().beginUpdate(r),this._writePosAttr(this.placeholder,r),this.el.appendChild(this.placeholder),this.placeholder.gridstackNode=r,r.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(r.el=this.placeholder,r._lastUiPosition=n.position,r._prevYPix=n.position.top,r._moving=t.type==="dragstart",r._resizing=t.type==="resizestart",delete r._lastTried,t.type==="dropover"&&r._temporaryRemoved&&(this.engine.addNode(r),r._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()-r.x,h=(this.opts.maxRow||Number.MAX_SAFE_INTEGER)-r.y;me.resizable(A,"option","minWidth",a*Math.min(r.minW||1,d)).resizable(A,"option","minHeight",u*Math.min(r.minH||1,h)).resizable(A,"option","maxWidth",a*Math.min(r.maxW||Number.MAX_SAFE_INTEGER,d)).resizable(A,"option","maxWidthMoveLeft",a*Math.min(r.maxW||Number.MAX_SAFE_INTEGER,r.x+r.w)).resizable(A,"option","maxHeight",u*Math.min(r.maxH||Number.MAX_SAFE_INTEGER,h)).resizable(A,"option","maxHeightMoveUp",u*Math.min(r.maxH||Number.MAX_SAFE_INTEGER,r.y+r.h))}}_dragOrResize(A,t,n,r,a,u){const d={...r._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),y=Math.round(a*.1);if(g=Math.min(g,y),B=Math.min(B,y),w=Math.min(w,v),m=Math.min(m,v),t.type==="drag"){if(r._temporaryRemoved)return;const T=n.position.top-r._prevYPix;r._prevYPix=n.position.top,this.opts.draggable.scroll!==!1&&q.updateScrollPosition(A,n.position,T);const D=n.position.left+(n.position.left>r._lastUiPosition.left?-B:g),V=n.position.top+(n.position.top>r._lastUiPosition.top?-m:w);d.x=Math.round(D/a),d.y=Math.round(V/u);const b=this._extraDragRow;if(this.engine.collide(r,d)){const K=this.getRow();let sA=Math.max(0,d.y+r.h-K);this.opts.maxRow&&K+sA>this.opts.maxRow&&(sA=Math.max(0,this.opts.maxRow-K)),this._extraDragRow=sA}else this._extraDragRow=0;if(this._extraDragRow!==b&&this._updateContainerHeight(),r.x===d.x&&r.y===d.y)return}else if(t.type==="resize"){if(d.x<0||(q.updateScrollResize(t,A,u),d.w=Math.round((n.size.width-g)/a),d.h=Math.round((n.size.height-w)/u),r.w===d.w&&r.h===d.h)||r._lastTried&&r._lastTried.w===d.w&&r._lastTried.h===d.h)return;const T=n.position.left+g,D=n.position.top+w;d.x=Math.round(T/a),d.y=Math.round(D/u),h=!0}r._event=t,r._lastTried=d;const I={x:n.position.left+g,y:n.position.top+w,w:(n.size?n.size.width:r.w*a)-g-B,h:(n.size?n.size.height:r.h*u)-w-m};if(this.engine.moveNodeCheck(r,{...d,cellWidth:a,cellHeight:u,rect:I,resizing:h})){r._lastUiPosition=n.position,this.engine.cacheRects(a,u,w,B,m,g),delete r._skipDown,h&&r.subGrid&&r.subGrid.onResize(),this._extraDragRow=0,this._updateContainerHeight();const T=t.target;r._sidebarOrig||this._writePosAttr(T,r),this.triggerEvent(t,T)}}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 r=n._sidebarOrig;n._isExternal&&this.engine.cleanupNode(n),n._sidebarOrig=r,this.opts.removable===!0&&NA._itemRemoving(A,!0),A._gridstackNodeOrig?(A.gridstackNode=A._gridstackNodeOrig,delete A._gridstackNodeOrig):n._isExternal&&this.engine.restoreInitial()}};rn.renderCB=(e,A)=>{e&&A?.content&&(e.textContent=A.content)},rn.resizeToContentParent=".grid-stack-item-content",rn.Utils=q,rn.Engine=Hi,rn.GDRev="12.4.2";var Gm={class:"d-layout"},zm=["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"],Xm=(0,o.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,r=t,a=(0,o.ref)();let u=null;const d=async()=>{a.value&&(await(0,o.nextTick)(),u&&u.destroy(!1),u=rn.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 y=v[0];y&&(r("added",h(y)),B())}),u.on("removed",(m,v)=>{const y=v[0];y&&(r("removed",h(y)),B())}),u.on("change",()=>{B(),r("changed",(u?.save()||[]).map(m=>h(m)))}),u.on("dragstart",(m,v)=>{v&&r("dragStart",m,h(v.gridstackNode||v))}),u.on("dragstop",(m,v)=>{v&&r("dragStop",m,h(v.gridstackNode||v))}),u.on("resizestart",(m,v)=>{v&&r("resizeStart",m,h(v.gridstackNode||v))}),u.on("resizestop",(m,v)=>{v&&r("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,o.nextTick)();const m=u.engine.nodes;new Set(m.map(y=>y.id));const v=new Set(n.modelValue.map(y=>y.id));m.forEach(y=>{if(!v.has(y.id||"")){const I=y.el;I&&u&&u.removeWidget(I,!1)}}),n.modelValue.forEach(y=>{const I=m.find(T=>T.id===y.id);if(I)I.el&&u&&u.update(I.el,{x:y.x,y:y.y,w:y.w,h:y.h,locked:y.locked,noResize:y.noResize,noMove:y.noMove,minW:y.minW,minH:y.minH,maxW:y.maxW,maxH:y.maxH});else{if(!a.value||!u)return;const T=a.value.querySelector(`[gs-id="${y.id}"]`);T&&u.makeWidget(T)}})},B=()=>{u&&r("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},y=n.modelValue.find(I=>I.id===v.id);return y&&Object.keys(y).forEach(I=>{["id","x","y","w","h"].includes(I)||(v[I]=y[I])}),v}))},w=(0,o.computed)(()=>n.modelValue);return(0,o.watch)(()=>n.modelValue,async()=>{u&&(await(0,o.nextTick)(),g())},{deep:!0}),(0,o.watch)(()=>[n.column,n.cellHeight,n.draggable,n.resizable,n.disable,n.animate,n.float,n.removable],()=>{d()}),(0,o.onMounted)(()=>{d()}),(0,o.onBeforeUnmount)(()=>{u&&(u.destroy(!1),u=null)}),A({addItem:async m=>{if(u&&a.value){await(0,o.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,o.openBlock)(),(0,o.createElementBlock)("div",Gm,[(0,o.createElementVNode)("div",{ref_key:"gridContainerRef",ref:a},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(w.value,y=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:y.id,"gs-id":y.id,"gs-x":y.x,"gs-y":y.y,"gs-w":y.w,"gs-h":y.h,"gs-locked":y.locked,"gs-no-resize":y.noResize,"gs-no-move":y.noMove,"gs-min-w":y.minW,"gs-min-h":y.minH,"gs-max-w":y.maxW,"gs-max-h":y.maxH,class:"d-layout-item"},[(0,o.renderSlot)(m.$slots,"item",{item:y})],8,zm))),128))],512)]))}}),$m=Xm,Ql=dt($m),JA=(e,A="",t=!1)=>t?`${e}pt`:A?`${e}${A}`:`${e}px`,$e=(e,A=0)=>e==null||isNaN(e)?0:Number(Number(e).toFixed(A)),Ym=e=>e*3/4,Wm=e=>e*4/3,Jm=["onMousedown"],Zm={key:2,class:"d-draggable__mask"},jm=(0,o.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}){let n=0;const r=e,a=t,u=[{classname:"left"},{classname:"right"},{classname:"top"},{classname:"bottom"},{classname:"top-left"},{classname:"top-right"},{classname:"bottom-left"},{classname:"bottom-right"}],d={right:{resizeX:!0},left:{resizeX:!0,moveLeft:!0,invertX:!0},top:{resizeY:!0,moveTop:!0,invertY:!0},bottom:{resizeY:!0},"bottom-right":{resizeX:!0,resizeY:!0},"bottom-left":{resizeX:!0,resizeY:!0,moveLeft:!0,invertX:!0},"top-right":{resizeX:!0,resizeY:!0,moveTop:!0,invertY:!0},"top-left":{resizeX:!0,resizeY:!0,moveLeft:!0,moveTop:!0,invertX:!0,invertY:!0}},h=(0,o.ref)(),g=(0,o.ref)(),B=()=>g.value?.firstElementChild,w=(0,o.ref)(0),m=(0,o.ref)(0),v=(0,o.ref)(0),y=(0,o.ref)(0),I=(0,o.ref)(!1),T=(0,o.ref)(!1),D=(0,o.ref)(!1);let V=null;const b=(0,o.computed)(()=>r.scale),K=(0,o.computed)(()=>!r.readonly&&!r.disabled),sA=(0,o.computed)(()=>K.value&&(D.value||T.value||I.value)),W=(0,o.computed)(()=>!r.disabled&&r.mask),cA=(0,o.computed)(()=>{const J=8*b.value;return{width:JA(J,"",r.isPt),height:JA(J,"",r.isPt)}}),lA=(0,o.computed)(()=>({fontSize:JA(14*b.value,"",r.isPt),padding:JA(4*b.value,"",r.isPt),"border-radius":JA(2*b.value,"",r.isPt)})),oA=(0,o.computed)(()=>{const J={zIndex:D.value?9999:r.zIndex,top:JA(y.value,"",r.isPt),width:JA(w.value,"",r.isPt),height:JA(m.value,"",r.isPt),left:JA(v.value,"",r.isPt)};return D.value&&r.isActiveBgTransparent&&K.value&&(J.backgroundColor="color-mix(in srgb, var(--j-color-primary-bg) 60%, transparent)"),J});(0,o.watch)(()=>r.width,J=>S(J)),(0,o.watch)(()=>r.height,J=>eA(J)),(0,o.watch)(()=>r.left,J=>H(J)),(0,o.watch)(()=>r.top,J=>X(J)),(0,o.watch)(w,J=>{h.value&&(h.value.style.width=JA(J,"",r.isPt),r.resize&&B()?.style&&(B().style.width=JA(J,"",r.isPt)))}),(0,o.watch)(m,J=>{h.value&&(h.value.style.height=JA(J,"",r.isPt),r.resize&&B()?.style&&(B().style.height=JA(J,"",r.isPt)))}),(0,o.watch)(()=>r.activeFlag,J=>{iA(J)});const iA=J=>{D.value=J},AA=J=>J===void 0?0:r.isPt?Wm(J):J,S=J=>{w.value=$e(AA(J))||(B()?.offsetWidth??0)},eA=J=>{m.value=$e(AA(J))||(B()?.offsetHeight??0)},H=J=>{v.value=$e(AA(J))},X=J=>{y.value=$e(AA(J))},U=()=>({index:r.index,width:pA(w.value),height:pA(m.value),left:pA(v.value),top:pA(y.value)}),L=J=>{const _=U();switch(J){case"focus":a("focus",_);break;case"blur":a("blur",_);break;case"over":a("over",_);break;case"out":a("out",_);break}},k=()=>{S(r.width),eA(r.height),H(r.left),X(r.top),iA(r.activeFlag)},N=J=>{v.value=J},O=J=>{y.value=J},Y=J=>{const _=8*b.value/2,F={};return J.split("-").forEach(x=>{F[x]=JA(-_,"",r.isPt)}),F},tA=J=>{T.value=J},pA=J=>r.isPt?Ym(J):J,HA=(J=!0)=>{n+=1,I.value=!0,J&&L("focus")},nA=()=>{n=Math.max(0,n-1),I.value=!1,L("blur")},Z=()=>{V?.(),V=null},$=(J,_)=>{let F=J.clientX,x=J.clientY,G=0,P=0,fA=0,hA=!1;const EA=document.body.style.userSelect;document.body.style.userSelect="none";const FA=()=>{if(fA=0,G===0&&P===0)return;const KA=G,ee=P;G=0,P=0,_(KA,ee)},DA=KA=>{I.value=!0;const ee=KA.clientX-F,qA=KA.clientY-x;if(F=KA.clientX,x=KA.clientY,!hA){hA=!0,_(ee,qA);return}G+=ee,P+=qA,fA||(fA=requestAnimationFrame(FA))},OA=()=>{fA&&(cancelAnimationFrame(fA),FA()),Z(),nA()};Z(),document.addEventListener("mousemove",DA),document.addEventListener("mouseup",OA),V=()=>{fA&&(cancelAnimationFrame(fA),fA=0),document.body.style.userSelect=EA,document.removeEventListener("mousemove",DA),document.removeEventListener("mouseup",OA)}},uA=(J,_,F)=>{if(J.resizeX){let x=_*r.step;J.invertX&&(x=-x),J.moveLeft&&(v.value=$e(v.value-x)),w.value=$e(w.value+x)}if(J.resizeY){let x=F*r.step;J.invertY&&(x=-x),J.moveTop&&(y.value=$e(y.value-x)),m.value=$e(m.value+x)}},wA=(J,_)=>{if(!K.value)return;const F=d[_];HA(!1),$(J,(x,G)=>uA(F,x,G))},QA=()=>{n>0||(T.value=!1,L("out"))},_A=()=>{n>0||K.value&&(T.value=!0,L("over"))},gA=J=>{if(!K.value)return;const _=D.value;D.value=!0,HA(!_),$(J,(F,x)=>{v.value=$e(v.value+F*r.step),y.value=$e(y.value+x*r.step)})};return(0,o.onMounted)(()=>{k()}),(0,o.onBeforeUnmount)(()=>{Z()}),A({setActive:iA,setLeft:N,setTop:O,setOverActive:tA}),(J,_)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(["d-draggable",{"d-draggable--active":(D.value||T.value)&&K.value},{"d-draggable--pt":e.isPt&&K.value},{"d-draggable--move":I.value},{"d-draggable--click":e.disabled}]),onMousedown:(0,o.withModifiers)(gA,["stop"]),onMouseenter:(0,o.withModifiers)(_A,["stop"]),onMouseleave:(0,o.withModifiers)(QA,["stop"]),style:(0,o.normalizeStyle)(oA.value)},[(0,o.createElementVNode)("div",{class:"d-draggable__wrapper",ref_key:"wrapper",ref:h},[sA.value?((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:0},[e.isPt?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,class:"d-draggable__line d-draggable__line--label",style:(0,o.normalizeStyle)(lA.value)}," X:"+(0,o.toDisplayString)(v.value)+", Y:"+(0,o.toDisplayString)(y.value),5))],64)):(0,o.createCommentVNode)("",!0),K.value?((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:1},(0,o.renderList)(u,F=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:F.classname},[D.value?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,class:(0,o.normalizeClass)(["d-draggable__range",`d-draggable__range--${F.classname}`]),style:(0,o.normalizeStyle)([cA.value,Y(F.classname)]),onMousedown:(0,o.withModifiers)(x=>wA(x,F.classname),["stop"])},null,46,Jm)):(0,o.createCommentVNode)("",!0)],64))),64)):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("div",{class:"d-draggable__item",ref_key:"item",ref:g},[(0,o.renderSlot)(J.$slots,"default")],512),W.value?((0,o.openBlock)(),(0,o.createElementBlock)("div",Zm)):(0,o.createCommentVNode)("",!0)],512)],38))}}),qm=jm,El=dt(qm),Fl=e=>{const A=Aw(e.components);return{formConfig:e.form,componentList:A}},Ul=(e,A)=>{let t={},n=[];const r={},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=[]),r[g.id]=g,u[d.containerId].push(g)}),Object.keys(u).forEach(d=>{r[d]&&(r[d].children=u[d])}),n=u.form||[],{formConfig:t,componentList:n,componentDic:r}},Zr=(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)})},Aw=e=>{const A={},t={};return e.forEach(n=>{A[n.containerId]=A[n.containerId]||[];const r={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&&r.config?.rule?.push({required:!0,message:n.config.requiredMsg||"请输入"});return}if(a==="patterns"){n.config.patterns.forEach(u=>{u.reg&&u.msg&&r.config?.rule?.push({pattern:new RegExp(u.reg),message:`请输入${u.msg||""}`})});return}r.config[a]=n.config[a]}),n.type==="pkey"&&(r.config.isPkey=!0),A[n.containerId].push(r),t[n.id]=r}),Object.keys(A).forEach(n=>{const r=t[n];if(r){const a=A[n];if(["j-tabs","j-collapse"].includes(r.type||"")&&r.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)}}),r.children=r.config.groups.map(d=>{const h=u[d._i]||[],g={label:d.label};d.active&&r.type==="j-collapse"&&(g.active=d.active);let B;if(r.type==="j-tabs"&&r.config?.tabKey&&r.config?.options.length>0){const m=r.config.options.find(v=>v.label===d._i);m&&(B=({formData:v})=>({display:m.value.includes(v[r.config?.tabKey||""])?m.display:!m.display}))}const w={config:g,children:h};return B&&(w.getCompConfig=B),w}),delete r.config.groups}else r.children=a}}),A.form},Hl=(e,A,t,n,r,a,u,d)=>{const h=(0,o.ref)(),g=(0,o.reactive)({}),B=(0,o.computed)(()=>{const U=[];return Object.keys(g).forEach(L=>{const k=g[L];k.dragType==="component"&&k.type!=="pkey"&&U.push(k)}),U}),w=(U=[],L)=>{const k=A?.value?.init;typeof k=="function"&&k(U,L)},m=U=>r?r(U,{componentDic:g,components:B.value,configData:h.value.config}):{},v=(U,L)=>{if(h.value?.id===U)return;const k=g[U]||L;if(k?h.value=k:U===t.id?h.value=t:h.value=null,h.value){const N=a[h.value.type];N?(w(N,h.value.config),m(h.value.type)):w([])}else w([]);L&&re("dragClick",{id:L.id})},y=()=>e.value.$el.getBoundingClientRect(),I=U=>U===t.id?t:g[U]||{},T=U=>{const L=[];if(U===t.id)L.push({id:U,name:t.name});else{const k=g[U];if(k){L.push({id:U,name:k.name});const N=T(k.containerId);L.push(...N)}}return L},D=(U,L)=>{const k=g[L];if(k===void 0)return!1;const N=k.containerId;return U===N?!0:N===t.id?!1:D(U,N)},V=U=>n?n(U)||{}:{},b=(U,L,k,N)=>{if(d){const O=I(U);return d(k.componentType,{container:O,groupId:L,configData:k},N)}return!1},K=({name:U,type:L,dragType:k,isInput:N,componentName:O,runtimeType:Y},tA,pA,HA,nA=!1)=>{const Z=V(L);if(Z.id=ft(),Z.span=24,Z.componentType=L,sA(tA,Z.componentType))return;b(tA,HA,Z,!0);const $={id:Z.id,name:U,type:L,runtimeType:Y,componentName:O||"",dragType:k||"component",containerId:tA,isInput:!!N,level:g[tA]?g[tA].level+1:1,config:Z,isNewAdd:!nA,groupId:HA};return $.dragType==="container"&&($.children=[]),g[$.id]=$,I(tA).children?.splice(pA,0,$),$},sA=(U,L)=>!!(I(U).config.componentType==="gridtable"&&["divider","label","text","textEditor","viewTable","card","collapse","tabs","qrcode","barcode","tableLayout"].includes(L)),W=(U,L,k=!1)=>{let N=null;const O=I(U).children,Y=O?.findIndex(tA=>tA.id===L)||0;if(k&&O&&O.length>1){let tA=Y+1;Y>0&&(tA=Y-1),N=O[tA]}return O?.splice(Y,1),N?.id},cA=(U,L,k,N)=>{const O=I(L).children,Y=U.containerId!==L;U.containerId=L,U.groupId=N,O?.splice(k,0,U),b(L,N,U.config,Y)&&(eA(),v(U.id))},lA=U=>{let L="";const k=I(U);return k&&(k.children&&k.children.length>0&&k.children.forEach(N=>{lA(N.id)}),L=W(k.containerId,U,!0)||"",delete g[U]),h.value&&h.value.id===U&&(h.value=null,A.value.init([])),L},oA=(U,L=[])=>{const k=I(U);if(k&&k.children&&k.children.length>0){const N=[];k.children.forEach(O=>{O.groupId&&L.includes(O.groupId)&&N.push(O.id)}),N.forEach(O=>{lA(O),delete g[O]})}},iA=(U,L)=>{const k=I(U);k&&(k.children&&k.children.length>0&&k.children.forEach(N=>{N.groupId===L&&lA(N.id)}),delete g[U])},AA=U=>{const L=En(I(U));L.id=ft(),L.config.id=L.id,g[L.id]=L;const k=I(L.containerId).children,N=k?.findIndex(O=>O.id===U)||0;k?.splice(N+1,0,L)},S=()=>{t.children=[],Nu(g),h.value&&(re("dragClick",{id:""}),h.value=null,A.value.init([]))},eA=()=>{h.value&&(re("dragClick",{id:""}),h.value=null,A.value.init([]))},H=U=>{const L=h.value,k=I(L.containerId).children,N=k?.findIndex(O=>O.id===L.id)||0;lA(L.id),(0,o.nextTick)(()=>{const O=u[U],Y=V(U);Y.id=L.id,Y.span=L.config.span,Y.componentType=U,Y.table=L.config.table,Y.field=L.config.field,L.config.isSubTable&&(Y.isSubTable=L.config.isSubTable);const tA={id:Y.id,name:O.name,type:U,runtimeType:O.runtimeType,componentName:O.componentName||"",dragType:L.dragType,groupId:L.groupId,containerId:L.containerId,isInput:L.isInput,level:L.level,config:Y,isNewAdd:!0};g[tA.id]=tA,k?.splice(N,0,tA)})},X=U=>{re("dragAddByClick",U)};return(0,o.provide)("d-drag-design-provide",{activedComponent:h,getDesignLocals:y,getComponent:I,getParentComponents:T,isMyChildComponent:D,selectComponent:v,addComponent:K,deleteComponent:lA,copyComponent:AA,removeComponentFromContainer:W,addComponentToContainer:cA,top:t,deleteChildren:iA,deleteChildrens:oA}),{activedComponent:h,clearComponents:S,changeComponent:H,schemaComponentDic:g,clearSelect:eA,addComponent:K,addComponentByTable:X,designComponentList:B}},ew=(0,o.defineComponent)({__name:"formDesignItem",props:{componentData:{type:Object,default:()=>({})},globalConfig:{type:Object,default:()=>({})}},setup(e){const A=e,{t}=(0,pe.useAppInject)(),n=(0,o.computed)(()=>A.componentData.config?.notShowLabel?"":A.componentData.config?.label||""),r=(0,o.computed)(()=>n.value===""?0:A.componentData.config?.labelWidth===void 0&&A.globalConfig.labelWidth!==void 0?`${A.globalConfig.labelWidth}px`:A.componentData.config?.labelWidth?`${A.componentData.config?.labelWidth}px`:void 0),a=(0,o.computed)(()=>{const u={...A.componentData?.config};return u.size===void 0&&(u.size=A.globalConfig.size),u.display=!0,u});return(u,d)=>{const h=(0,o.resolveComponent)("j-comp"),g=(0,o.resolveComponent)("el-form-item");return e.componentData.isInput?((0,o.openBlock)(),(0,o.createBlock)(g,{key:0,"label-width":r.value,label:(0,o.unref)(t)(n.value),"label-position":A.componentData.config?.labelPosition||e.globalConfig?.labelPosition,rules:e.componentData.config?.required?[{required:!0,message:""}]:[]},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(h,{type:e.componentData?.componentName||e.componentData?.type,config:a.value,modelValue:e.componentData?.config.defaultValue},null,8,["type","config","modelValue"])]),_:1},8,["label-width","label","label-position","rules"])):e.componentData?.children?((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(e.componentData?.componentName),(0,o.mergeProps)({key:1},e.componentData?.config,{"global-config":e.globalConfig,"component-data":e.componentData}),null,16,["global-config","component-data"])):((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(e.componentData?.componentName),(0,o.normalizeProps)((0,o.mergeProps)({key:2},e.componentData?.config)),null,16))}}}),Il=ew,tw={class:"d-form-design j-block"},nw={class:"d-form-design-left"},rw={class:"d-form-design-component-list"},ow={class:"j-component-tool"},iw={class:"j-component-tool-name"},sw={class:"d-form-design-center"},aw={class:"d-form-design-container"},lw={key:0,class:"j-block d-form-design-empty"},cw={class:"d-form-design-right"},uw={class:"d-form-design-panel-title"},dw={style:{margin:"0","font-size":"14px"}},fw={class:"d-form-design-panel"},gw=(0,o.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,error:r}=(0,pe.useAppInject)(),a=(0,o.reactive)({name:"表单",id:"form",type:"form",level:0,children:[],dragType:"container",componentName:"",containerId:"",isInput:!1,config:{}}),u=(0,o.ref)([]),d=t.components.length;for(let nA=0;nA<d;nA++)u.value.push(nA);t.componentInit&&(a.config=t.componentInit("form")||{});const h={},g=[];t.components.forEach(({children:nA})=>{nA.forEach(Z=>{h[Z.type]=Z,Z.dragType=Z.dragType||"component",Z.isInput!==!1&&(Z.isInput=!0,g.push({label:Z.name,value:Z.type}))})});const B=nA=>{nA.forEach(Z=>{Z.type==="d-input-flow"&&(Z.config=Z.config||{},Z.config.flowComponents=t.flowComponents,Z.config.flowInit=t.flowInit,Z.config.flowComponentConfigInit=$=>{t.flowComponentConfigInit&&($.designComponents=sA.value,$.component=D.value,t.flowComponentConfigInit($))},Z.config.flowComponentConfigs=t.flowComponentConfigs,Z.config.flowComponentConfigChange=t.flowComponentConfigChange),Z.children&&B(Z.children)})},w={};Object.keys(t.componentConfigs||{}).forEach(nA=>{const{hasBase:Z,isInput:$,hasTwoPlaceholder:uA,hasPlaceholder:wA,hasSpan:QA,hasLabel:_A,bindTable:gA,labelTitle:J}=h[nA]||{hasBase:!1},_=[{id:"componentType",type:"j-select",config:{label:"类型",allowClear:!1,display:$,options:g}},{id:"label",type:"j-input",config:{label:J||"标题"},getCompConfig:({formData:x})=>({display:_A!==!1&&!x.notShowLabel})},{id:"notShowLabel",type:"j-switch",config:{label:"不显示"+(J||"标题"),activeValue:!0,inactiveValue:!1},getCompConfig:({formData:x})=>({display:_A!==!1&&!x.isSubTable})},{id:"labelWidth",type:"j-number",config:{label:"标题宽度"},getCompConfig:({formData:x})=>({display:$&&!x.notShowLabel&&!x.isSubTable})},{id:"labelPosition",type:"j-radio",config:{label:"标题对齐",options:[{value:"right",label:"右"},{value:"left",label:"左"},{value:"top",label:"顶部"}]},getCompConfig:({formData:x})=>({display:$&&!x.notShowLabel&&!x.isSubTable})},{id:"placeholder",type:"j-input",config:{display:$&&!uA&&wA!==!1,label:"占位提示"}},{id:"startPlaceholder",type:"j-input",config:{display:!!uA,label:"开始占位"}},{id:"endPlaceholder",type:"j-input",config:{display:!!uA,label:"结束占位"}},{id:"span",type:"j-slider",config:{label:"表单栅栏",min:6,max:24,showTooltip:!0,step:6,showStops:!0,defautValue:24},getCompConfig:({formData:x})=>({display:QA!==!1&&!x.isSubTable})},{id:"width",type:"j-number",config:{label:"单元格宽度",min:1},getCompConfig:({formData:x})=>({display:!!x.isSubTable})}],F={type:"j-collapse",config:{defaultValue:[]},children:[]};Z!==!1&&F.children?.push({config:{label:"基础信息"},children:[..._]}),F.children?.push(...t.componentConfigs[nA]),F.children?.forEach((x,G)=>{F.config?.defaultValue.push(`_collapse${G}`)}),B(F.children||[]),w[nA]=[F]});const m=nA=>{const{value:Z}=nA||{};nA.id==="componentType"&&b(Z),D.value&&t.componentConfigChange&&t.componentConfigChange(D.value.type,{configRef:T,configData:D.value.config,...nA})},v=(nA,Z)=>{t.componentConfigInit&&t.componentConfigInit(nA,{configRef:T,...Z})},y=(nA,Z,$)=>{let uA=!1;return Z.container.type==="gridtable"?(!Z.configData.isSubTable||$)&&(Z.configData.isSubTable=!0,uA=!0):Z.configData.isSubTable&&(uA=!0,Z.configData.isSubTable=!1),t.containerAddComponent&&t.containerAddComponent(nA,Z),uA},I=(0,o.ref)(),T=(0,o.ref)(),{activedComponent:D,clearComponents:V,changeComponent:b,schemaComponentDic:K,designComponentList:sA}=Hl(I,T,a,t.componentInit,v,w,h,y),W=(0,o.computed)(()=>D.value?.id!="form"?D.value?`${D.value.name}-${D.value.id}`:"":D.value?`${D.value.name}`:"");(0,o.provide)("dui-design-provide",{designItemName:Il});const cA=()=>{V()},lA=()=>{t.componentInit&&(a.config=t.componentInit("form")||{}),V()},oA=()=>Zr(a.config,a.children||[]),iA=nA=>{const Z=Ul(nA,h);a.config=Z.formConfig,a.children?.push(...Z.componentList),Object.keys(Z.componentDic).forEach($=>{K[$]=Z.componentDic[$]})},AA=()=>S(Zr(a.config,a.children||[]).components),S=nA=>{for(const Z of nA)if(t.componentConfigValidate&&!t.componentConfigValidate(Z.type,{configData:Z.config,errorTip:r}))return!1;return!0},eA=(0,o.ref)(),H=(0,o.ref)(),X=(0,o.ref)({});let U=0;const L=nA=>{if(H.value)U=0,H.value.init(nA||[]);else{if(U>600){console.warn("表单组件加载超时");return}U++,setTimeout(()=>{L(nA)},100)}},k=()=>{},N=()=>{};return A({getSchema:()=>oA(),setSchema:nA=>iA(nA),reset:()=>lA(),validate:()=>AA(),preview:()=>{const nA=Zr(a.config,a.children||[]);eA.value.open("表单预览",nA.form.layerType);const{formConfig:Z,componentList:$}=Fl(nA);X.value=Z,(0,o.nextTick)(()=>{L($)})},clear:cA}),(nA,Z)=>{const $=(0,o.resolveComponent)("j-icon"),uA=(0,o.resolveComponent)("d-drag-tool"),wA=(0,o.resolveComponent)("el-collapse-item"),QA=(0,o.resolveComponent)("el-collapse"),_A=(0,o.resolveComponent)("el-empty"),gA=(0,o.resolveComponent)("d-drag-form-list"),J=(0,o.resolveComponent)("el-row"),_=(0,o.resolveComponent)("d-drag-container"),F=(0,o.resolveComponent)("j-form"),x=(0,o.resolveComponent)("j-layer");return(0,o.openBlock)(),(0,o.createElementBlock)("div",tw,[(0,o.createElementVNode)("div",nw,[(0,o.createElementVNode)("div",rw,[(0,o.createVNode)(QA,{modelValue:u.value,"onUpdate:modelValue":Z[0]||(Z[0]=G=>u.value=G)},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.components,(G,P)=>((0,o.openBlock)(),(0,o.createBlock)(wA,{key:P,title:G.name,name:P},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(G.children,(fA,hA)=>((0,o.openBlock)(),(0,o.createBlock)(uA,{key:hA,config:fA},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",ow,[(0,o.createVNode)($,{class:"j-component-tool-icon",icon:fA.icon,size:14},null,8,["icon"]),(0,o.createElementVNode)("div",iw,(0,o.toDisplayString)((0,o.unref)(n)(fA.name)),1)])]),_:2},1032,["config"]))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),(0,o.createElementVNode)("div",sw,[(0,o.createElementVNode)("div",aw,[(0,o.createVNode)(_,{ref_key:"dragContainer",ref:I,class:"d-form-design-drag-container","is-component-container":!1,"component-data":a},{default:(0,o.withCtx)(()=>[!a.children||a.children.length===0?((0,o.openBlock)(),(0,o.createElementBlock)("div",lw,[(0,o.createVNode)(_A,{description:(0,o.unref)(n)("请从左侧拖拽组件到此处"),"image-size":100},null,8,["description"])])):((0,o.openBlock)(),(0,o.createBlock)(J,{key:1},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(gA,{"component-list":a.children,"global-config":a.config},null,8,["component-list","global-config"])]),_:1}))]),_:1},8,["component-data"])])]),(0,o.withDirectives)((0,o.createElementVNode)("div",cw,[(0,o.createElementVNode)("div",uw,[(0,o.createElementVNode)("span",dw,(0,o.toDisplayString)(`${W.value}`),1)]),(0,o.createElementVNode)("div",fw,[(0,o.createVNode)(F,{config:{labelPosition:"top",size:"small"},collapseAnimate:!1,style:{padding:"0"},ref_key:"configRef",ref:T,onChange:m},null,512)])],512),[[o.vShow,(0,o.unref)(D)]]),(0,o.createVNode)(x,{ref_key:"previewFormLayerRef",ref:eA,width:1e3,height:800,onOk:k,onClosed:N},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(F,{config:X.value,"is-preview":!0,ref_key:"previewFormRef",ref:H,actions:e.actions},null,8,["config","actions"])]),_:1},512)])}}}),hw=gw,_l=dt(hw,[Il]),Sl=(e,A)=>{const t={ver:"V3",indexPage:{...e},components:[]};return xl(A||[],t.components),t},xl=(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"&&xl(t.children||[],A),A.push(n)})},Bw=e=>{const A=pw(e.components);return{pageConfig:e.indexPage,componentList:A}},pw=e=>{const A={},t={};return e.forEach(n=>{A[n.containerId]=A[n.containerId]||[];const r={id:n.id,type:n.runtimeType,slot:n.groupId,config:{}};n.config&&Object.keys(n.config).forEach(a=>{r.config[a]=n.config[a]}),A[n.containerId].push(r),t[n.id]=r}),Object.keys(A).forEach(n=>{const r=t[n];if(r){const a=A[n];if(["j-tabs","j-collapse"].includes(r.type||"")&&r.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)}}),r.children=r.config.groups.map(d=>{const h=u[d._i]||[];return{config:{label:d.label},children:h}}),delete r.config.groups}else r.children=a}}),A.indexPage||[]},mw=(e,A)=>{let t={},n=[];const r={};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};r[g.id]=g,u[d.containerId].push(g),g.dragType==="container"&&(g.children=[])}),Object.keys(u).forEach(d=>{r[d]&&(r[d].children=u[d])}),n=u.indexPage||[]}return{pageConfig:t,componentList:n,componentDic:r}},ww=(0,o.defineComponent)({name:"DIndexDesignItem",__name:"indexDesignItem",props:{componentData:{type:Object,default:()=>({})},globalConfig:{type:Object,default:()=>({})}},setup(e){return(A,t)=>((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(e.componentData?.componentName),(0,o.mergeProps)(e.componentData?.config,{"global-config":e.globalConfig,"component-data":e.componentData}),null,16,["global-config","component-data"]))}}),Dl=ww,Cw={class:"d-index-design j-block"},vw={class:"d-index-design-left"},yw={class:"j-component-list"},Qw={class:"j-component-tool"},Ew={class:"j-component-tool-name"},Fw={class:"d-index-design-center"},Uw={class:"design-container"},bw={key:0,class:"j-block design-empty"},Hw={class:"d-index-design-right"},Iw={class:"d-index-design-panel-title"},_w={style:{margin:"0","font-size":"14px"}},Sw={class:"d-index-design-panel"},xw=(0,o.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,pe.useAppInject)(),n=e,r=U=>{U.forEach(L=>{L.type==="d-input-flow"&&(L.config=L.config||{},L.config.flowComponents=n.flowComponents,L.config.flowInit=n.flowInit,L.config.flowComponentConfigInit=k=>{n.flowComponentConfigInit&&(k.designComponents=T.value,k.component=v.value,n.flowComponentConfigInit(k))},L.config.flowComponentConfigs=n.flowComponentConfigs,L.config.flowComponentConfigChange=n.flowComponentConfigChange),L.children&&r(L.children)})},a=(0,o.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:U})=>{U.forEach(L=>{u[L.type]=L,L.dragType=L.dragType||"component",d.push({label:L.name,value:L.type})})});const h={};Object.keys(n.componentConfigs).forEach(U=>{const{hasBase:L}=u[U]||{hasBase:!1},k=[{id:"label",type:"j-input",config:{label:"名称"}}],N={type:"j-collapse",config:{defaultValue:[]},children:[]};L!==!1&&(N.children?.push({config:{label:"基础信息"},children:[...k]}),N.config?.defaultValue.push("_collapse0")),N.children?.push(...n.componentConfigs[U]),r(N.children||[]),h[U]=[N]});const g=U=>{v.value&&n.componentConfigChange&&n.componentConfigChange(v.value.type,{configRef:m,configData:v.value.config,...U})},B=(U,L)=>{n.componentConfigInit&&n.componentConfigInit(U,{configRef:m,...L})},w=(0,o.ref)(),m=(0,o.ref)(),{activedComponent:v,clearComponents:y,schemaComponentDic:I,designComponentList:T}=Hl(w,m,a,n.componentInit,B,h,u,n.containerAddComponent),D=(0,o.computed)(()=>v.value?.id!="form"?v.value?`${v.value.name}-${v.value.id}`:"":v.value?`${v.value.name}`:""),V=(0,o.ref)([]),b=n.components.length;for(let U=0;U<b;U++)V.value.push(U);(0,o.provide)("dui-design-provide",{designItemName:Dl});const K=()=>{y()},sA=()=>{n.componentInit&&(a.config=n.componentInit("indexPage")||{}),y()},W=()=>(console.log("pValidate"),!0),cA=()=>Sl(a.config,a.children||[]),lA=U=>{const L=mw(U,u);a.config=L.pageConfig,a.children?.push(...L.componentList),Object.keys(L.componentDic).forEach(k=>{I[k]=L.componentDic[k]})},oA=(0,o.ref)(),iA=(0,o.ref)();(0,o.ref)(""),(0,o.reactive)({formConfig:{}});let AA=0;const S=U=>{if(iA.value)AA=0,iA.value.init(U);else{if(AA>600){console.warn("组件加载超时");return}AA++,setTimeout(()=>{S(U)},100)}},eA=()=>{},H=()=>{};return A({reset:sA,validate:W,getSchema:cA,setSchema:lA,preview:()=>{const{componentList:U}=Bw(Sl(a.config,a.children||[]));oA.value.open("页面预览","full"),(0,o.nextTick)(()=>{S(U)})},clear:K}),(U,L)=>{const k=(0,o.resolveComponent)("j-icon"),N=(0,o.resolveComponent)("d-drag-tool"),O=(0,o.resolveComponent)("el-collapse-item"),Y=(0,o.resolveComponent)("el-collapse"),tA=(0,o.resolveComponent)("el-empty"),pA=(0,o.resolveComponent)("d-drag-index-list"),HA=(0,o.resolveComponent)("d-drag-container"),nA=(0,o.resolveComponent)("j-form"),Z=(0,o.resolveComponent)("j-page"),$=(0,o.resolveComponent)("j-layer");return(0,o.openBlock)(),(0,o.createElementBlock)("div",Cw,[(0,o.createElementVNode)("div",vw,[(0,o.createElementVNode)("div",yw,[(0,o.createVNode)(Y,{modelValue:V.value,"onUpdate:modelValue":L[0]||(L[0]=uA=>V.value=uA)},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.components,(uA,wA)=>((0,o.openBlock)(),(0,o.createBlock)(O,{key:wA,title:uA.name,name:wA},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(uA.children,(QA,_A)=>((0,o.openBlock)(),(0,o.createBlock)(N,{key:_A,config:QA},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",Qw,[(0,o.createVNode)(k,{class:"j-component-tool-icon",icon:QA.icon,size:14},null,8,["icon"]),(0,o.createElementVNode)("div",Ew,(0,o.toDisplayString)((0,o.unref)(t)(QA.name)),1)])]),_:2},1032,["config"]))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),(0,o.createElementVNode)("div",Fw,[(0,o.createElementVNode)("div",Uw,[(0,o.createVNode)(HA,{ref_key:"dragContainer",ref:w,class:"design-drag-container","is-component-container":!1,"component-data":a},{default:(0,o.withCtx)(()=>[!a.children||a.children.length===0?((0,o.openBlock)(),(0,o.createElementBlock)("div",bw,[(0,o.createVNode)(tA,{description:(0,o.unref)(t)("请从左侧拖拽组件到此处"),"image-size":100},null,8,["description"])])):((0,o.openBlock)(),(0,o.createBlock)(pA,{key:1,"component-list":a.children,"global-config":a.config},null,8,["component-list","global-config"]))]),_:1},8,["component-data"])])]),(0,o.withDirectives)((0,o.createElementVNode)("div",Hw,[(0,o.createElementVNode)("div",Iw,[(0,o.createElementVNode)("span",_w,(0,o.toDisplayString)(`${D.value}`),1)]),(0,o.createElementVNode)("div",Sw,[(0,o.createVNode)(nA,{config:{labelPosition:"top",size:"small"},collapseAnimate:!1,style:{padding:"0"},ref_key:"configRef",ref:m,onChange:g},null,512)])],512),[[o.vShow,(0,o.unref)(v)&&h[(0,o.unref)(v).type]]]),(0,o.createVNode)($,{ref_key:"previewLayerRef",ref:oA,"has-btns":!1,onOk:eA,onClosed:H},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(Z,{ref_key:"previewRef",ref:iA,actions:e.actions},null,8,["actions"])]),_:1},512)])}}}),Dw=xw,Nl=dt(Dw,[Dl]),jA=xu({Vue:()=>o,Vue2:()=>{},del:()=>Tw,install:()=>Nw,isVue2:()=>!1,isVue3:()=>!0,set:()=>Lw});Du(jA,require("vue"));var fE=!1,gE=!0,hE=void 0;function Nw(){}function Lw(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 Tw(e,A){if(Array.isArray(e)){e.splice(A,1);return}delete e[A]}var jr=(e,A)=>{const t=e.__vccOpts||e;for(const[n,r]of A)t[n]=r;return t},kw=(0,jA.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,jA.ref)(0),n=(0,jA.ref)(!0);(0,jA.onMounted)(()=>{t.value=e.value});const r=B=>{n.value=B>=0},a=(0,jA.computed)(()=>{const B=(t.value-e.start)*e.scale;r(B);const w=B+"px";return e.vertical?{top:w}:{left:w}}),u=(0,jA.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,jA.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=I=>{const T=e.vertical?I.clientY:I.clientX;t.value=Math.round(m+(T-w)/e.scale)},y=()=>{A("onRelease",t.value,e.index),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",y)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",y)},handleRemove:()=>{A("onRemove",e.index)}}}}),Mw={class:"value"};function Ow(e,A,t,n,r,a){return(0,o.withDirectives)(((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"line",style:(0,o.normalizeStyle)([e.offset,e.borderCursor]),onMousedown:A[1]||(A[1]=(...u)=>e.handleDown&&e.handleDown(...u))},[(0,o.createElementVNode)("div",{class:"action",style:(0,o.normalizeStyle)(e.actionStyle)},[(0,o.createElementVNode)("span",{class:"del",onClick:A[0]||(A[0]=(...u)=>e.handleRemove&&e.handleRemove(...u))},"×"),(0,o.createElementVNode)("span",Mw,(0,o.toDisplayString)(e.startValue),1)],4)],36)),[[o.vShow,e.showLine]])}var Kw=jr(kw,[["render",Ow],["__scopeId","data-v-5dea28d6"]]),Rw=e=>e<=.25?40:e<=.5?20:e<=1?10:e<=2?5:e<=4?2:1,Ll=.83,Vw=(e,A,t,n,r,a)=>{const{scale:u,width:d,height:h,ratio:g,palette:B}=r,{bgColor:w,fontColor:m,shadowColor:v,longfgColor:y,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 oA=(t-A)*u,iA=n*u;e.fillStyle=v,a?e.fillRect(oA,0,iA,h*3/8):e.fillRect(0,oA,d*3/8,iA)}const T=Rw(u),D=T*u,V=T*10,b=V*u,K=Math.floor(A/T)*T,sA=Math.floor(A/V)*V,W=(K-A)/T*D,cA=(sA-A)/V*b,lA=A+Math.ceil((a?d:h)/u);e.beginPath(),e.fillStyle=m,e.strokeStyle=y;for(let oA=sA,iA=0;oA<lA;oA+=V,iA++){const AA=cA+iA*b+.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(Ll/g,Ll/g),e.fillText(oA.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 oA=K,iA=0;oA<lA;oA+=T,iA++){const AA=W+iA*D+.5;a?e.moveTo(AA,0):e.moveTo(0,AA),oA%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)},Pw=(0,jA.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,jA.reactive)({canvasContext:null});let n=1;const r=(0,jA.ref)(null);(0,jA.onMounted)(()=>{n=e.ratio||window.devicePixelRatio||1,a(),u(n),d(n)});const a=()=>{t.canvasContext=r.value&&r.value.getContext("2d")},u=g=>{if(r.value){r.value.width=e.width*g,r.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&&Rw(t.canvasContext,e.start,e.selectStart,e.selectLength,B,!e.vertical)};return(0,jA.watch)(()=>e.start,()=>d(n)),(0,jA.watch)([()=>e.width,()=>e.height],()=>{u(n),d(n)}),{handle:(g,B)=>{const m=((v,y,I)=>Math.round(y+v/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:r}}});function Pw(e,A,t,n,r,a){return(0,o.openBlock)(),(0,o.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 Gw=(0,jA.defineComponent)({name:"RulerWrapper",components:{CanvasRuler:Zr(Vw,[["render",Pw]]),RulerLine:Ow},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,jA.ref)(!1),t=(0,jA.ref)(0),n=(0,jA.computed)(()=>e.vertical?"v-container":"h-container"),r=(0,jA.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,jA.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:r,indicatorStyle:a,handleNewLine:u,handleLineRelease:d,handleLineRemove:h}}}),zw={class:"lines"},Xw={class:"value"};function $w(e,A,t,n,r,a){const u=(0,o.resolveComponent)("CanvasRuler"),d=(0,o.resolveComponent)("RulerLine");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(e.rwClassName),style:(0,o.normalizeStyle)(e.rwStyle)},[(0,o.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,o.withDirectives)((0,o.createElementVNode)("div",zw,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.lines,(h,g)=>((0,o.openBlock)(),(0,o.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),[[o.vShow,e.isShowReferLine]]),(0,o.withDirectives)((0,o.createElementVNode)("div",{class:"indicator",style:(0,o.normalizeStyle)(e.indicatorStyle)},[(0,o.createElementVNode)("div",Xw,(0,o.toDisplayString)(e.valueNum),1)],4),[[o.vShow,e.showIndicator]])],6)}var Yw=Zr(Gw,[["render",$w],["__scopeId","data-v-b6c23352"]]),Ww="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAAXNSR0IArs4c6QAAAopJREFUOE/FlE9IVEEc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Qt+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=",Zw=(0,jA.defineComponent)({name:"SketchRule",components:{RulerWrapper:Yw},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"],setup(e,{emit:A}){let t=(0,jA.ref)(!0);t.value=e.isShowReferLine;const n=(0,jA.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||{})}),r=(0,jA.computed)(()=>({backgroundImage:t.value?`url(${e.eyeIcon||Ww})`:`url(${e.closeEyeIcon||Jw})`,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("onCornerClick",t.value)};return(0,jA.watch)([()=>e.isShowReferLine],()=>{t.value=e.isShowReferLine}),{showReferLine:t,paletteCpu:n,cornerStyle:r,onCornerClick:a}}}),jw={id:"mb-ruler",class:"style-ruler mb-ruler"};function qw(e,A,t,n,r,a){const u=(0,o.resolveComponent)("RulerWrapper");return(0,o.openBlock)(),(0,o.createElementBlock)("div",jw,[(0,o.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,o.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,o.createElementVNode)("a",{class:"corner",style:(0,o.normalizeStyle)(e.cornerStyle),onClick:A[0]||(A[0]=(...d)=>e.onCornerClick&&e.onCornerClick(...d))},null,4)])}var A0=Zr(Zw,[["render",qw]]),e0=_u(((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 r=function(){return r=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},r.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 Q(R){try{M(l.next(R))}catch(z){C(z)}}function E(R){try{M(l.throw(R))}catch(z){C(z)}}function M(R){R.done?p(R.value):f(R.value).then(Q,E)}M((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:Q(0),throw:Q(1),return:Q(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function Q(M){return function(R){return E([M,R])}}function E(M){if(l)throw new TypeError("Generator is already executing.");for(;c;)try{if(l=1,f&&(p=M[0]&2?f.return:M[0]?f.throw||((p=f.return)&&p.call(f),0):f.next)&&!(p=p.call(f,M[1])).done)return p;switch(f=0,p&&(M=[M[0]&2,p.value]),M[0]){case 0:case 1:p=M;break;case 4:return c.label++,{value:M[1],done:!1};case 5:c.label++,f=M[1],M=[0];continue;case 7:M=c.ops.pop(),c.trys.pop();continue;default:if(p=c.trys,!(p=p.length>0&&p[p.length-1])&&(M[0]===6||M[0]===2)){c=0;continue}if(M[0]===3&&(!p||M[1]>p[0]&&M[1]<p[3])){c.label=M[1];break}if(M[0]===6&&c.label<p[1]){c.label=p[1],p=M;break}if(p&&c.label<p[2]){c.label=p[2],c.ops.push(M);break}p[2]&&c.ops.pop(),c.trys.pop();continue}M=i.call(s,c)}catch(R){M=[6,R],f=0}finally{l=p=0}if(M[0]&5)throw M[1];return{value:M[0]?M[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+/",y=typeof Uint8Array>"u"?[]:new Uint8Array(256),I=0;I<v.length;I++)y[v.charCodeAt(I)]=I;for(var T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",D=typeof Uint8Array>"u"?[]:new Uint8Array(256),V=0;V<T.length;V++)D[T.charCodeAt(V)]=V;for(var b=function(s){var i=s.length*.75,c=s.length,l,f=0,p,C,Q,E;s[s.length-1]==="="&&(i--,s[s.length-2]==="="&&i--);var M=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(i):new Array(i),R=Array.isArray(M)?M:new Uint8Array(M);for(l=0;l<c;l+=4)p=D[s.charCodeAt(l)],C=D[s.charCodeAt(l+1)],Q=D[s.charCodeAt(l+2)],E=D[s.charCodeAt(l+3)],R[f++]=p<<2|C>>4,R[f++]=(C&15)<<4|Q>>2,R[f++]=(Q&3)<<6|E&63;return M},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},sA=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,cA=11,lA=2,oA=cA-W,iA=65536>>W,AA=(1<<W)-1,S=iA+(1024>>W)+32,eA=65536>>cA,H=(1<<oA)-1,X=function(s,i,c){return s.slice?s.slice(i,c):new Uint16Array(Array.prototype.slice.call(s,i,c))},U=function(s,i,c){return s.slice?s.slice(i,c):new Uint32Array(Array.prototype.slice.call(s,i,c))},L=function(s,i){var c=b(s),l=Array.isArray(c)?sA(c):new Uint32Array(c),f=Array.isArray(c)?K(c):new Uint16Array(c),p=24,C=X(f,p/2,l[4]/2),Q=l[5]===2?X(f,(p+l[4])/2):U(l,Math.ceil((p+l[4])/4));return new k(l[0],l[1],l[2],l[3],C,Q)},k=(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&AA),this.data[c];if(i<=65535)return c=this.index[iA+(i-55296>>W)],c=(c<<lA)+(i&AA),this.data[c];if(i<this.highStart)return c=S-eA+(i>>cA),c=this.index[c],c+=i>>W&H,c=this.index[c],c=(c<<lA)+(i&AA),this.data[c];if(i<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=typeof Uint8Array>"u"?[]:new Uint8Array(256),Y=0;Y<N.length;Y++)O[N.charCodeAt(Y)]=Y;var tA="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20D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HLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUI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AAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELM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1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBt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gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKw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QAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArA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gAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWAB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AFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeA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AUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUA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AKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",BA=50,HA=1,nA=2,Z=3,$=4,uA=5,wA=7,QA=8,SA=9,fA=10,J=11,_=12,F=13,x=14,G=15,P=16,dA=17,gA=18,EA=19,FA=20,NA=21,OA=22,KA=23,ee=24,qA=25,it=26,Ke=27,wt=28,Si=29,st=30,xi=31,_e=32,on=33,zn=34,sn=35,Xn=36,Mt=37,$n=38,Ot=39,Ct=40,jr=41,Di=42,rA=43,aA=[9001,65288],_A="!",pA="×",Ce="÷",at=L(tA),He=[st,Xn],Kt=[HA,nA,Z,uA],an=[fA,QA],ln=[Ke,it],Ni=Kt.concat(an),qr=[$n,Ot,Ct,zn,sn],$A=[G,F],cn=function(s,i){i===void 0&&(i="strict");var c=[],l=[],f=[];return s.forEach(function(p,C){var Q=at.get(p);if(Q>BA?(f.push(!0),Q-=BA):f.push(!1),["normal","auto","loose"].indexOf(i)!==-1&&[8208,8211,12316,12448].indexOf(p)!==-1)return l.push(C),c.push(P);if(Q===$||Q===J){if(C===0)return l.push(C),c.push(st);var E=c[C-1];return Ni.indexOf(E)===-1?(l.push(l[C-1]),c.push(E)):(l.push(C),c.push(st))}if(l.push(C),Q===xi)return c.push(i==="strict"?NA:Mt);if(Q===Di||Q===Si)return c.push(st);if(Q===rA)return p>=131072&&p<=196605||p>=196608&&p<=262141?c.push(Mt):c.push(st);c.push(Q)}),[l,c,f]},Re=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!==fA)break}if(f===fA)for(var p=c;p>0;){p--;var Q=l[p];if(Array.isArray(s)?s.indexOf(Q)!==-1:s===Q)for(var E=c;E<=l.length;){E++;var C=l[E];if(C===i)return!0;if(C!==fA)break}if(Q!==fA)break}return!1},Ao=function(s,i){for(var c=s;c>=0;){var l=i[c];if(l===fA)c--;else return l}return 0},eo=function(s,i,c,l,f){if(c[l]===0)return pA;var p=l-1;if(Array.isArray(f)&&f[p]===!0)return pA;var C=p-1,Q=p+1,E=i[p],M=C>=0?i[C]:0,R=i[Q];if(E===nA&&R===Z)return pA;if(Kt.indexOf(E)!==-1)return _A;if(Kt.indexOf(R)!==-1||an.indexOf(R)!==-1)return pA;if(Ao(p,i)===QA)return Ce;if(at.get(s[p])===J||(E===_e||E===on)&&at.get(s[Q])===J||E===wA||R===wA||E===SA||[fA,F,G].indexOf(E)===-1&&R===SA||[dA,gA,EA,ee,wt].indexOf(R)!==-1||Ao(p,i)===OA||Re(KA,OA,p,i)||Re([dA,gA],NA,p,i)||Re(_,_,p,i))return pA;if(E===fA)return Ce;if(E===KA||R===KA)return pA;if(R===P||E===P)return Ce;if([F,G,NA].indexOf(R)!==-1||E===x||M===Xn&&$A.indexOf(E)!==-1||E===wt&&R===Xn||R===FA||He.indexOf(R)!==-1&&E===qA||He.indexOf(E)!==-1&&R===qA||E===Ke&&[Mt,_e,on].indexOf(R)!==-1||[Mt,_e,on].indexOf(E)!==-1&&R===it||He.indexOf(E)!==-1&&ln.indexOf(R)!==-1||ln.indexOf(E)!==-1&&He.indexOf(R)!==-1||[Ke,it].indexOf(E)!==-1&&(R===qA||[OA,G].indexOf(R)!==-1&&i[Q+1]===qA)||[OA,G].indexOf(E)!==-1&&R===qA||E===qA&&[qA,wt,ee].indexOf(R)!==-1)return pA;if([qA,wt,ee,dA,gA].indexOf(R)!==-1)for(var z=p;z>=0;){var j=i[z];if(j===qA)return pA;if([wt,ee].indexOf(j)!==-1)z--;else break}if([Ke,it].indexOf(R)!==-1)for(var z=[dA,gA].indexOf(E)!==-1?C:p;z>=0;){var j=i[z];if(j===qA)return pA;if([wt,ee].indexOf(j)!==-1)z--;else break}if($n===E&&[$n,Ot,zn,sn].indexOf(R)!==-1||[Ot,zn].indexOf(E)!==-1&&[Ot,Ct].indexOf(R)!==-1||[Ct,sn].indexOf(E)!==-1&&R===Ct||qr.indexOf(E)!==-1&&[FA,it].indexOf(R)!==-1||qr.indexOf(R)!==-1&&E===Ke||He.indexOf(E)!==-1&&He.indexOf(R)!==-1||E===ee&&He.indexOf(R)!==-1||He.concat(qA).indexOf(E)!==-1&&R===OA&&aA.indexOf(s[Q])===-1||He.concat(qA).indexOf(R)!==-1&&E===gA)return pA;if(E===jr&&R===jr){for(var CA=c[p],hA=1;CA>0&&(CA--,i[CA]===jr);)hA++;if(hA%2!==0)return pA}return E===_e&&R===on?pA:Ce},b0=function(s,i){i||(i={lineBreak:"normal",wordBreak:"normal"});var c=cn(s,i.lineBreak),l=c[0],f=c[1],p=c[2];(i.wordBreak==="break-all"||i.wordBreak==="break-word")&&(f=f.map(function(Q){return[qA,st,Di].indexOf(Q)!==-1?Mt: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]},H0=(function(){function s(i,c,l,f){this.codePoints=i,this.required=c===_A,this.start=l,this.end=f}return s.prototype.slice=function(){return m.apply(void 0,this.codePoints.slice(this.start,this.end))},s})(),I0=function(s,i){var c=w(s),l=b0(c,i),f=l[0],p=l[1],C=l[2],Q=c.length,E=0,M=0;return{next:function(){if(M>=Q)return{done:!0,value:null};for(var R=pA;M<Q&&(R=eo(c,p,f,++M,C))===pA;);if(R!==pA||M===Q){var z=new H0(c,R,E,M);return E=M,{value:z,done:!1}}return{done:!0,value:null}}}},_0=1,S0=2,Yn=4,Kl=8,to=10,Rl=47,Wn=92,x0=9,D0=32,no=34,Jn=61,N0=35,L0=36,T0=37,ro=39,oo=40,Zn=41,k0=95,ve=45,M0=33,O0=60,K0=62,R0=64,V0=91,P0=93,G0=61,z0=123,io=63,X0=125,Vl=124,$0=126,Y0=128,Pl=65533,Li=42,Rt=43,W0=44,J0=58,Z0=59,jn=46,j0=0,q0=8,AC=11,eC=14,tC=31,nC=127,We=-1,Gl=48,zl=97,Xl=101,rC=102,oC=117,iC=122,$l=65,Yl=69,Wl=70,sC=85,aC=90,Be=function(s){return s>=Gl&&s<=57},lC=function(s){return s>=55296&&s<=57343},un=function(s){return Be(s)||s>=$l&&s<=Wl||s>=zl&&s<=rC},cC=function(s){return s>=zl&&s<=iC},uC=function(s){return s>=$l&&s<=aC},dC=function(s){return cC(s)||uC(s)},fC=function(s){return s>=Y0},so=function(s){return s===to||s===x0||s===D0},ao=function(s){return dC(s)||fC(s)||s===k0},Jl=function(s){return ao(s)||Be(s)||s===ve},gC=function(s){return s>=j0&&s<=q0||s===AC||s>=eC&&s<=tC||s===nC},vt=function(s,i){return s!==Wn?!1:i!==to},lo=function(s,i,c){return s===ve?ao(i)||vt(i,c):ao(s)?!0:!!(s===Wn&&vt(s,i))},Ti=function(s,i,c){return s===Rt||s===ve?Be(i)?!0:i===jn&&Be(c):Be(s===jn?i:s)},hC=function(s){var i=0,c=1;(s[i]===Rt||s[i]===ve)&&(s[i]===ve&&(c=-1),i++);for(var l=[];Be(s[i]);)l.push(s[i++]);var f=l.length?parseInt(m.apply(void 0,l),10):0;s[i]===jn&&i++;for(var p=[];Be(s[i]);)p.push(s[i++]);var C=p.length,Q=C?parseInt(m.apply(void 0,p),10):0;(s[i]===Yl||s[i]===Xl)&&i++;var E=1;(s[i]===Rt||s[i]===ve)&&(s[i]===ve&&(E=-1),i++);for(var M=[];Be(s[i]);)M.push(s[i++]);var R=M.length?parseInt(m.apply(void 0,M),10):0;return c*(f+Q*Math.pow(10,-C))*Math.pow(10,E*R)},BC={type:2},pC={type:3},mC={type:4},wC={type:13},CC={type:8},vC={type:21},yC={type:9},QC={type:10},EC={type:11},FC={type:12},UC={type:14},co={type:23},bC={type:1},HC={type:25},IC={type:24},_C={type:26},SC={type:27},xC={type:28},DC={type:29},NC={type:31},ki={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!==ki;)i.push(c),c=this.consumeToken();return i},s.prototype.consumeToken=function(){var i=this.consumeCodePoint();switch(i){case no:return this.consumeStringToken(no);case N0:var c=this.peekCodePoint(0),l=this.peekCodePoint(1),f=this.peekCodePoint(2);if(Jl(c)||vt(l,f)){var p=lo(c,l,f)?S0:_0,C=this.consumeName();return{type:5,value:C,flags:p}}break;case L0:if(this.peekCodePoint(0)===Jn)return this.consumeCodePoint(),wC;break;case ro:return this.consumeStringToken(ro);case oo:return BC;case Zn:return pC;case Li:if(this.peekCodePoint(0)===Jn)return this.consumeCodePoint(),UC;break;case Rt:if(Ti(i,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(i),this.consumeNumericToken();break;case W0:return mC;case ve:var Q=i,E=this.peekCodePoint(0),M=this.peekCodePoint(1);if(Ti(Q,E,M))return this.reconsumeCodePoint(i),this.consumeNumericToken();if(lo(Q,E,M))return this.reconsumeCodePoint(i),this.consumeIdentLikeToken();if(E===ve&&M===K0)return this.consumeCodePoint(),this.consumeCodePoint(),IC;break;case jn:if(Ti(i,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(i),this.consumeNumericToken();break;case Rl:if(this.peekCodePoint(0)===Li)for(this.consumeCodePoint();;){var R=this.consumeCodePoint();if(R===Li&&(R=this.consumeCodePoint(),R===Rl))return this.consumeToken();if(R===We)return this.consumeToken()}break;case J0:return _C;case Z0:return SC;case O0:if(this.peekCodePoint(0)===M0&&this.peekCodePoint(1)===ve&&this.peekCodePoint(2)===ve)return this.consumeCodePoint(),this.consumeCodePoint(),HC;break;case R0:if(lo(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2))){var C=this.consumeName();return{type:7,value:C}}break;case V0:return xC;case Wn:if(vt(i,this.peekCodePoint(0)))return this.reconsumeCodePoint(i),this.consumeIdentLikeToken();break;case P0:return DC;case G0:if(this.peekCodePoint(0)===Jn)return this.consumeCodePoint(),CC;break;case z0:return EC;case X0:return FC;case oC:case sC:var z=this.peekCodePoint(0),j=this.peekCodePoint(1);return z===Rt&&(un(j)||j===io)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(i),this.consumeIdentLikeToken();case Vl:if(this.peekCodePoint(0)===Jn)return this.consumeCodePoint(),yC;if(this.peekCodePoint(0)===Vl)return this.consumeCodePoint(),vC;break;case $0:if(this.peekCodePoint(0)===Jn)return this.consumeCodePoint(),QC;break;case We:return ki}return so(i)?(this.consumeWhiteSpace(),NC):Be(i)?(this.reconsumeCodePoint(i),this.consumeNumericToken()):ao(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();un(c)&&i.length<6;)i.push(c),c=this.consumeCodePoint();for(var l=!1;c===io&&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===io?Gl:E})),16),p=parseInt(m.apply(void 0,i.map(function(E){return E===io?Wl:E})),16);return{type:30,start:f,end:p}}var C=parseInt(m.apply(void 0,i),16);if(this.peekCodePoint(0)===ve&&un(this.peekCodePoint(1))){this.consumeCodePoint(),c=this.consumeCodePoint();for(var Q=[];un(c)&&Q.length<6;)Q.push(c),c=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)===oo?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===oo?(this.consumeCodePoint(),{type:19,value:i}):{type:20,value:i}},s.prototype.consumeUrlToken=function(){var i=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===We)return{type:22,value:""};var c=this.peekCodePoint(0);if(c===ro||c===no){var l=this.consumeStringToken(this.consumeCodePoint());return l.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===We||this.peekCodePoint(0)===Zn)?(this.consumeCodePoint(),{type:22,value:l.value}):(this.consumeBadUrlRemnants(),co)}for(;;){var f=this.consumeCodePoint();if(f===We||f===Zn)return{type:22,value:m.apply(void 0,i)};if(so(f))return this.consumeWhiteSpace(),this.peekCodePoint(0)===We||this.peekCodePoint(0)===Zn?(this.consumeCodePoint(),{type:22,value:m.apply(void 0,i)}):(this.consumeBadUrlRemnants(),co);if(f===no||f===ro||f===oo||gC(f))return this.consumeBadUrlRemnants(),co;if(f===Wn)if(vt(f,this.peekCodePoint(0)))i.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),co;else i.push(f)}},s.prototype.consumeWhiteSpace=function(){for(;so(this.peekCodePoint(0));)this.consumeCodePoint()},s.prototype.consumeBadUrlRemnants=function(){for(;;){var i=this.consumeCodePoint();if(i===Zn||i===We)return;vt(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===We||f===void 0||f===i)return c+=this.consumeStringSlice(l),{type:0,value:c};if(f===to)return this._value.splice(0,l),bC;if(f===Wn){var p=this._value[l+1];p!==We&&p!==void 0&&(p===to?(c+=this.consumeStringSlice(l),l=-1,this._value.shift()):vt(f,p)&&(c+=this.consumeStringSlice(l),c+=m(this.consumeEscapedCodePoint()),l=-1))}l++}while(!0)},s.prototype.consumeNumber=function(){var i=[],c=Yn,l=this.peekCodePoint(0);for((l===Rt||l===ve)&&i.push(this.consumeCodePoint());Be(this.peekCodePoint(0));)i.push(this.consumeCodePoint());l=this.peekCodePoint(0);var f=this.peekCodePoint(1);if(l===jn&&Be(f))for(i.push(this.consumeCodePoint(),this.consumeCodePoint()),c=Kl;Be(this.peekCodePoint(0));)i.push(this.consumeCodePoint());l=this.peekCodePoint(0),f=this.peekCodePoint(1);var p=this.peekCodePoint(2);if((l===Yl||l===Xl)&&((f===Rt||f===ve)&&Be(p)||Be(f)))for(i.push(this.consumeCodePoint(),this.consumeCodePoint()),c=Kl;Be(this.peekCodePoint(0));)i.push(this.consumeCodePoint());return[hC(i),c]},s.prototype.consumeNumericToken=function(){var i=this.consumeNumber(),c=i[0],l=i[1],f=this.peekCodePoint(0);return lo(f,this.peekCodePoint(1),this.peekCodePoint(2))?{type:15,number:c,flags:l,unit:this.consumeName()}:f===T0?(this.consumeCodePoint(),{type:16,number:c,flags:l}):{type:17,number:c,flags:l}},s.prototype.consumeEscapedCodePoint=function(){var i=this.consumeCodePoint();if(un(i)){for(var c=m(i);un(this.peekCodePoint(0))&&c.length<6;)c+=m(this.consumeCodePoint());so(this.peekCodePoint(0))&&this.consumeCodePoint();var l=parseInt(c,16);return l===0||lC(l)||l>1114111?Pl:l}return i===We?Pl:i},s.prototype.consumeName=function(){for(var i="";;){var c=this.consumeCodePoint();if(Jl(c))i+=m(c);else if(vt(c,this.peekCodePoint(0)))i+=m(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(c),i}},s})(),jl=(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||TC(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"?ki:i},s.prototype.reconsumeToken=function(i){this._tokens.unshift(i)},s})(),qn=function(s){return s.type===15},dn=function(s){return s.type===17},YA=function(s){return s.type===20},LC=function(s){return s.type===0},Mi=function(s,i){return YA(s)&&s.value===i},ql=function(s){return s.type!==31},fn=function(s){return s.type!==31&&s.type!==4},Je=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},TC=function(s,i){return i===11&&s.type===12||i===28&&s.type===29?!0:i===2&&s.type===3},yt=function(s){return s.type===17||s.type===15},ae=function(s){return s.type===16||yt(s)},Ac=function(s){return s.length>1?[s[0],s[1]]:[s[0]]},fe={type:17,number:0,flags:Yn},Oi={type:16,number:50,flags:Yn},Qt={type:16,number:100,flags:Yn},Ar=function(s,i,c){var l=s[0],f=s[1];return[ZA(l,i),ZA(typeof f<"u"?f:l,c)]},ZA=function(s,i){if(s.type===16)return s.number/100*i;if(qn(s))switch(s.unit){case"rem":case"em":return 16*s.number;default:return s.number}return s.number},ec="deg",tc="grad",nc="rad",rc="turn",uo={name:"angle",parse:function(s,i){if(i.type===15)switch(i.unit){case ec:return Math.PI*i.number/180;case tc:return Math.PI/200*i.number;case nc:return i.number;case rc:return Math.PI*2*i.number}throw new Error("Unsupported angle type")}},oc=function(s){return s.type===15&&(s.unit===ec||s.unit===tc||s.unit===nc||s.unit===rc)},ic=function(s){switch(s.filter(YA).map(function(i){return i.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[fe,fe];case"to top":case"bottom":return Se(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[fe,Qt];case"to right":case"left":return Se(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Qt,Qt];case"to bottom":case"top":return Se(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Qt,fe];case"to left":case"right":return Se(270)}return 0},Se=function(s){return Math.PI*s/180},Et={name:"color",parse:function(s,i){if(i.type===18){var c=kC[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 Ut(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 Ut(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 Ut(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 Ut(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}},Ft=function(s){return(255&s)===0},de=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+")"},Ut=function(s,i,c,l){return(s<<24|i<<16|c<<8|Math.round(l*255)<<0)>>>0},sc=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},ac=function(s,i){var c=i.filter(fn);if(c.length===3){var l=c.map(sc),f=l[0],p=l[1],C=l[2];return Ut(f,p,C,1)}if(c.length===4){var Q=c.map(sc),f=Q[0],p=Q[1],C=Q[2],E=Q[3];return Ut(f,p,C,E)}return 0};function Ki(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 lc=function(s,i){var c=i.filter(fn),l=c[0],f=c[1],p=c[2],C=c[3],Q=(l.type===17?Se(l.number):uo.parse(s,l))/(Math.PI*2),E=ae(f)?f.number/100:0,M=ae(p)?p.number/100:0,R=typeof C<"u"&&ae(C)?ZA(C,1):1;if(E===0)return Ut(M*255,M*255,M*255,1);var z=M<=.5?M*(E+1):M+E-M*E,j=M*2-z,CA=Ki(j,z,Q+1/3),hA=Ki(j,z,Q),mA=Ki(j,z,Q-1/3);return Ut(CA*255,hA*255,mA*255,R)},kC={hsl:lc,hsla:lc,rgb:ac,rgba:ac},er=function(s,i){return Et.parse(s,jl.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},MC={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(s,i){return i.map(function(c){if(YA(c))switch(c.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},OC={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},fo=function(s,i){var c=Et.parse(s,i[0]),l=i[1];return l&&ae(l)?{color:c,stop:l}:{color:c,stop:null}},cc=function(s,i){var c=s[0],l=s[s.length-1];c.stop===null&&(c.stop=fe),l.stop===null&&(l.stop=Qt);for(var f=[],p=0,C=0;C<s.length;C++){var Q=s[C].stop;if(Q!==null){var E=ZA(Q,i);E>p?f.push(E):f.push(p),p=E}else f.push(null)}for(var M=null,C=0;C<f.length;C++){var R=f[C];if(R===null)M===null&&(M=C);else if(M!==null){for(var z=C-M,j=(R-f[M-1])/(z+1),CA=1;CA<=z;CA++)f[M+CA-1]=j*CA;M=null}}return s.map(function(hA,mA){return{color:hA.color,stop:Math.max(Math.min(1,f[mA]/i),0)}})},KC=function(s,i,c){var l=i/2,f=c/2,p=ZA(s[0],i)-l,C=f-ZA(s[1],c);return(Math.atan2(C,p)+Math.PI*2)%(Math.PI*2)},RC=function(s,i,c){var l=typeof s=="number"?s:KC(s,i,c),f=Math.abs(i*Math.sin(l))+Math.abs(c*Math.cos(l)),p=i/2,C=c/2,Q=f/2,E=Math.sin(l-Math.PI/2)*Q,M=Math.cos(l-Math.PI/2)*Q;return[f,p-M,p+M,C-E,C+E]},Ve=function(s,i){return Math.sqrt(s*s+i*i)},uc=function(s,i,c,l,f){return[[0,0],[0,i],[s,0],[s,i]].reduce(function(p,C){var Q=C[0],E=C[1],M=Ve(c-Q,l-E);return(f?M<p.optimumDistance:M>p.optimumDistance)?{optimumCorner:C,optimumDistance:M}:p},{optimumDistance:f?1/0:-1/0,optimumCorner:null}).optimumCorner},VC=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(Ve(i,c),Ve(i,c-f),Ve(i-l,c),Ve(i-l,c-f));else if(s.shape===1){var Q=Math.min(Math.abs(c),Math.abs(c-f))/Math.min(Math.abs(i),Math.abs(i-l)),E=uc(l,f,i,c,!0),M=E[0],R=E[1];p=Ve(M-i,(R-c)/Q),C=Q*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(Ve(i,c),Ve(i,c-f),Ve(i-l,c),Ve(i-l,c-f));else if(s.shape===1){var Q=Math.max(Math.abs(c),Math.abs(c-f))/Math.max(Math.abs(i),Math.abs(i-l)),z=uc(l,f,i,c,!1),M=z[0],R=z[1];p=Ve(M-i,(R-c)/Q),C=Q*p}break}return Array.isArray(s.size)&&(p=ZA(s.size[0],l),C=s.size.length===2?ZA(s.size[1],f):p),[p,C]},PC=function(s,i){var c=Se(180),l=[];return Je(i).forEach(function(f,p){if(p===0){var C=f[0];if(C.type===20&&C.value==="to"){c=ic(f);return}else if(oc(C)){c=uo.parse(s,C);return}}var Q=fo(s,f);l.push(Q)}),{angle:c,stops:l,type:1}},go=function(s,i){var c=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){c=ic(f);return}else if(oc(C)){c=(uo.parse(s,C)+Se(270))%Se(360);return}}var Q=fo(s,f);l.push(Q)}),{angle:c,stops:l,type:1}},GC=function(s,i){var c=Se(180),l=[],f=1,p=0,C=3,Q=[];return Je(i).forEach(function(E,M){var R=E[0];if(M===0){if(YA(R)&&R.value==="linear"){f=1;return}else if(YA(R)&&R.value==="radial"){f=2;return}}if(R.type===18){if(R.name==="from"){var z=Et.parse(s,R.values[0]);l.push({stop:fe,color:z})}else if(R.name==="to"){var z=Et.parse(s,R.values[0]);l.push({stop:Qt,color:z})}else if(R.name==="color-stop"){var j=R.values.filter(fn);if(j.length===2){var z=Et.parse(s,j[1]),CA=j[0];dn(CA)&&l.push({stop:{type:16,number:CA.number*100,flags:CA.flags},color:z})}}}}),f===1?{angle:(c+Se(180))%Se(360),stops:l,type:f}:{size:C,shape:p,stops:l,position:Q,type:f}},dc="closest-side",fc="farthest-side",gc="closest-corner",hc="farthest-corner",Bc="circle",pc="ellipse",mc="cover",wc="contain",zC=function(s,i){var c=0,l=3,f=[],p=[];return Je(i).forEach(function(C,Q){var E=!0;if(Q===0){var M=!1;E=C.reduce(function(z,j){if(M)if(YA(j))switch(j.value){case"center":return p.push(Oi),z;case"top":case"left":return p.push(fe),z;case"right":case"bottom":return p.push(Qt),z}else(ae(j)||yt(j))&&p.push(j);else if(YA(j))switch(j.value){case Bc:return c=0,!1;case pc:return c=1,!1;case"at":return M=!0,!1;case dc:return l=0,!1;case mc:case fc:return l=1,!1;case wc:case gc:return l=2,!1;case hc:return l=3,!1}else if(yt(j)||ae(j))return Array.isArray(l)||(l=[]),l.push(j),!1;return z},E)}if(E){var R=fo(s,C);f.push(R)}}),{size:l,shape:c,stops:f,position:p,type:2}},ho=function(s,i){var c=0,l=3,f=[],p=[];return Je(i).forEach(function(C,Q){var E=!0;if(Q===0?E=C.reduce(function(R,z){if(YA(z))switch(z.value){case"center":return p.push(Oi),!1;case"top":case"left":return p.push(fe),!1;case"right":case"bottom":return p.push(Qt),!1}else if(ae(z)||yt(z))return p.push(z),!1;return R},E):Q===1&&(E=C.reduce(function(R,z){if(YA(z))switch(z.value){case Bc:return c=0,!1;case pc:return c=1,!1;case wc:case dc:return l=0,!1;case fc:return l=1,!1;case gc:return l=2,!1;case mc:case hc:return l=3,!1}else if(yt(z)||ae(z))return Array.isArray(l)||(l=[]),l.push(z),!1;return R},E)),E){var M=fo(s,C);f.push(M)}}),{size:l,shape:c,stops:f,position:p,type:2}},XC=function(s){return s.type===1},$C=function(s){return s.type===2},Ri={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=Cc[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 YC(s){return!(s.type===20&&s.value==="none")&&(s.type!==18||!!Cc[s.name])}var Cc={"linear-gradient":PC,"-moz-linear-gradient":go,"-ms-linear-gradient":go,"-o-linear-gradient":go,"-webkit-linear-gradient":go,"radial-gradient":zC,"-moz-radial-gradient":ho,"-ms-radial-gradient":ho,"-o-radial-gradient":ho,"-webkit-radial-gradient":ho,"-webkit-gradient":GC},WC={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 fn(l)&&YC(l)}).map(function(l){return Ri.parse(s,l)})}},JC={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(s,i){return i.map(function(c){if(YA(c))switch(c.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ZC={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(s,i){return Je(i).map(function(c){return c.filter(ae)}).map(Ac)}},jC={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(s,i){return Je(i).map(function(c){return c.filter(YA).map(function(l){return l.value}).join(" ")}).map(qC)}},qC=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}},gn;(function(s){s.AUTO="auto",s.CONTAIN="contain",s.COVER="cover"})(gn||(gn={}));var Av={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(s,i){return Je(i).map(function(c){return c.filter(ev)})}},ev=function(s){return YA(s)||ae(s)},Bo=function(s){return{name:"border-"+s+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},tv=Bo("top"),nv=Bo("right"),rv=Bo("bottom"),ov=Bo("left"),po=function(s){return{name:"border-radius-"+s,initialValue:"0 0",prefix:!1,type:1,parse:function(i,c){return Ac(c.filter(ae))}}},iv=po("top-left"),sv=po("top-right"),av=po("bottom-right"),lv=po("bottom-left"),mo=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}}},cv=mo("top"),uv=mo("right"),dv=mo("bottom"),fv=mo("left"),wo=function(s){return{name:"border-"+s+"-width",initialValue:"0",type:0,prefix:!1,parse:function(i,c){return qn(c)?c.number:0}}},gv=wo("top"),hv=wo("right"),Bv=wo("bottom"),pv=wo("left"),mv={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},wv={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(s,i){return i==="rtl"?1:0}},Cv={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(s,i){return i.filter(YA).reduce(function(c,l){return c|vv(l.value)},0)}},vv=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},yv={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}},Qv={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}},Co;(function(s){s.NORMAL="normal",s.STRICT="strict"})(Co||(Co={}));var Ev={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){return i==="strict"?Co.STRICT:Co.NORMAL}},Fv={name:"line-height",initialValue:"normal",prefix:!1,type:4},vc=function(s,i){return YA(s)&&s.value==="normal"?1.2*i:s.type===17?i*s.number:ae(s)?ZA(s,i):i},Uv={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(s,i){return i.type===20&&i.value==="none"?null:Ri.parse(s,i)}},bv={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(s,i){return i==="inside"?0:1}},Vi={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}}},vo=function(s){return{name:"margin-"+s,initialValue:"0",prefix:!1,type:4}},Hv=vo("top"),Iv=vo("right"),_v=vo("bottom"),Sv=vo("left"),xv={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(s,i){return i.filter(YA).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}})}},Dv={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){return i==="break-word"?"break-word":"normal"}},yo=function(s){return{name:"padding-"+s,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Nv=yo("top"),Lv=yo("right"),Tv=yo("bottom"),kv=yo("left"),Mv={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}}},Ov={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}},Kv={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.length===1&&Mi(i[0],"none")?[]:Je(i).map(function(c){for(var l={color:lt.TRANSPARENT,offsetX:fe,offsetY:fe,blur:fe},f=0,p=0;p<c.length;p++){var C=c[p];yt(C)?(f===0?l.offsetX=C:f===1?l.offsetY=C:l.blur=C,f++):l.color=Et.parse(s,C)}return l})}},Rv={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}},Vv={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}},Pv=function(s){var i=s.filter(function(c){return c.type===17}).map(function(c){return c.number});return i.length===6?i:null},Gv=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],Q=i[13];return i[14],i[15],i.length===16?[c,l,f,p,C,Q]:null},zv={matrix:Pv,matrix3d:Gv},yc={type:16,number:50,flags:Yn},Xv=[yc,yc],$v={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(s,i){var c=i.filter(ae);return c.length!==2?Xv:[c[0],c[1]]}},Yv={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}}},tr;(function(s){s.NORMAL="normal",s.BREAK_ALL="break-all",s.KEEP_ALL="keep-all"})(tr||(tr={}));for(var Wv={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){switch(i){case"break-all":return tr.BREAK_ALL;case"keep-all":return tr.KEEP_ALL;default:return tr.NORMAL}}},Jv={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(s,i){if(i.type===20)return{auto:!0,order:0};if(dn(i))return{auto:!1,order:i.number};throw new Error("Invalid z-index number parsed")}},Qc={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")}},Zv={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(s,i){return dn(i)?i.number:1}},jv={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},qv={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(s,i){return i.filter(YA).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})}},Ay={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+"'"})}},ey={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ty={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(s,i){return dn(i)?i.number:YA(i)&&i.value==="bold"?700:400}},ny={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.filter(YA).map(function(c){return c.value})}},ry={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"}}},ue=function(s,i){return(s&i)!==0},oy={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}},iy={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(ql),p=0;p<f.length;p++){var C=f[p],Q=f[p+1];if(C.type===20){var E=Q&&dn(Q)?Q.number:1;l.push({counter:C.value,increment:E})}}return l}},sy={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(s,i){if(i.length===0)return[];for(var c=[],l=i.filter(ql),f=0;f<l.length;f++){var p=l[f],C=l[f+1];if(YA(p)&&p.value!=="none"){var Q=C&&dn(C)?C.number:0;c.push({counter:p.value,reset:Q})}}return c}},ay={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(s,i){return i.filter(qn).map(function(c){return Qc.parse(s,c)})}},ly={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(LC);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}},Ec=function(s,i,c){if(!s)return"";var l=s[Math.min(i,s.length-1)];return l?c?l.open:l.close:""},cy={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.length===1&&Mi(i[0],"none")?[]:Je(i).map(function(c){for(var l={color:255,offsetX:fe,offsetY:fe,blur:fe,spread:fe,inset:!1},f=0,p=0;p<c.length;p++){var C=c[p];Mi(C,"inset")?l.inset=!0:yt(C)?(f===0?l.offsetX=C:f===1?l.offsetY=C:f===2?l.blur=C:l.spread=C,f++):l.color=Et.parse(s,C)}return l})}},uy={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(s,i){var c=[0,1,2],l=[];return i.filter(YA).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}},dy={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},fy={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(s,i){return qn(i)?i.number:0}},gy=(function(){function s(i,c){var l,f;this.animationDuration=bA(i,ay,c.animationDuration),this.backgroundClip=bA(i,MC,c.backgroundClip),this.backgroundColor=bA(i,OC,c.backgroundColor),this.backgroundImage=bA(i,WC,c.backgroundImage),this.backgroundOrigin=bA(i,JC,c.backgroundOrigin),this.backgroundPosition=bA(i,ZC,c.backgroundPosition),this.backgroundRepeat=bA(i,jC,c.backgroundRepeat),this.backgroundSize=bA(i,Av,c.backgroundSize),this.borderTopColor=bA(i,tv,c.borderTopColor),this.borderRightColor=bA(i,nv,c.borderRightColor),this.borderBottomColor=bA(i,rv,c.borderBottomColor),this.borderLeftColor=bA(i,ov,c.borderLeftColor),this.borderTopLeftRadius=bA(i,iv,c.borderTopLeftRadius),this.borderTopRightRadius=bA(i,sv,c.borderTopRightRadius),this.borderBottomRightRadius=bA(i,av,c.borderBottomRightRadius),this.borderBottomLeftRadius=bA(i,lv,c.borderBottomLeftRadius),this.borderTopStyle=bA(i,cv,c.borderTopStyle),this.borderRightStyle=bA(i,uv,c.borderRightStyle),this.borderBottomStyle=bA(i,dv,c.borderBottomStyle),this.borderLeftStyle=bA(i,fv,c.borderLeftStyle),this.borderTopWidth=bA(i,gv,c.borderTopWidth),this.borderRightWidth=bA(i,hv,c.borderRightWidth),this.borderBottomWidth=bA(i,Bv,c.borderBottomWidth),this.borderLeftWidth=bA(i,pv,c.borderLeftWidth),this.boxShadow=bA(i,cy,c.boxShadow),this.color=bA(i,mv,c.color),this.direction=bA(i,wv,c.direction),this.display=bA(i,Cv,c.display),this.float=bA(i,yv,c.cssFloat),this.fontFamily=bA(i,Ay,c.fontFamily),this.fontSize=bA(i,ey,c.fontSize),this.fontStyle=bA(i,ry,c.fontStyle),this.fontVariant=bA(i,ny,c.fontVariant),this.fontWeight=bA(i,ty,c.fontWeight),this.letterSpacing=bA(i,Qv,c.letterSpacing),this.lineBreak=bA(i,Ev,c.lineBreak),this.lineHeight=bA(i,Fv,c.lineHeight),this.listStyleImage=bA(i,Uv,c.listStyleImage),this.listStylePosition=bA(i,bv,c.listStylePosition),this.listStyleType=bA(i,Vi,c.listStyleType),this.marginTop=bA(i,Hv,c.marginTop),this.marginRight=bA(i,Iv,c.marginRight),this.marginBottom=bA(i,_v,c.marginBottom),this.marginLeft=bA(i,Sv,c.marginLeft),this.opacity=bA(i,Zv,c.opacity);var p=bA(i,xv,c.overflow);this.overflowX=p[0],this.overflowY=p[p.length>1?1:0],this.overflowWrap=bA(i,Dv,c.overflowWrap),this.paddingTop=bA(i,Nv,c.paddingTop),this.paddingRight=bA(i,Lv,c.paddingRight),this.paddingBottom=bA(i,Tv,c.paddingBottom),this.paddingLeft=bA(i,kv,c.paddingLeft),this.paintOrder=bA(i,uy,c.paintOrder),this.position=bA(i,Ov,c.position),this.textAlign=bA(i,Mv,c.textAlign),this.textDecorationColor=bA(i,jv,(l=c.textDecorationColor)!==null&&l!==void 0?l:c.color),this.textDecorationLine=bA(i,qv,(f=c.textDecorationLine)!==null&&f!==void 0?f:c.textDecoration),this.textShadow=bA(i,Kv,c.textShadow),this.textTransform=bA(i,Rv,c.textTransform),this.transform=bA(i,Vv,c.transform),this.transformOrigin=bA(i,$v,c.transformOrigin),this.visibility=bA(i,Yv,c.visibility),this.webkitTextStrokeColor=bA(i,dy,c.webkitTextStrokeColor),this.webkitTextStrokeWidth=bA(i,fy,c.webkitTextStrokeWidth),this.wordBreak=bA(i,Wv,c.wordBreak),this.zIndex=bA(i,Jv,c.zIndex)}return s.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},s.prototype.isTransparent=function(){return Ft(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 ue(this.display,4)||ue(this.display,33554432)||ue(this.display,268435456)||ue(this.display,536870912)||ue(this.display,67108864)||ue(this.display,134217728)},s})(),hy=(function(){function s(i,c){this.content=bA(i,oy,c.content),this.quotes=bA(i,ly,c.quotes)}return s})(),Fc=(function(){function s(i,c){this.counterIncrement=bA(i,iy,c.counterIncrement),this.counterReset=bA(i,sy,c.counterReset)}return s})(),bA=function(s,i,c){var l=new Zl,f=c!==null&&typeof c<"u"?c.toString():i.initialValue;l.write(f);var p=new jl(l.read());switch(i.type){case 2:var C=p.parseComponentValue();return i.parse(s,YA(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 uo.parse(s,p.parseComponentValue());case"color":return Et.parse(s,p.parseComponentValue());case"image":return Ri.parse(s,p.parseComponentValue());case"length":var Q=p.parseComponentValue();return yt(Q)?Q:fe;case"length-percentage":var E=p.parseComponentValue();return ae(E)?E:fe;case"time":return Qc.parse(s,p.parseComponentValue())}break}},By="data-html2canvas-debug",py=function(s){switch(s.getAttribute(By)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Pi=function(s,i){var c=py(s);return c===1||i===c},Ze=(function(){function s(i,c){if(this.context=i,this.textNodes=[],this.elements=[],this.flags=0,Pi(c,3))debugger;this.styles=new gy(i,window.getComputedStyle(c,null)),ns(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),Pi(c,4)&&(this.flags|=16)}return s})(),my="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACA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IAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAC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AAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Uc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nr=typeof Uint8Array>"u"?[]:new Uint8Array(256),Qo=0;Qo<Uc.length;Qo++)nr[Uc.charCodeAt(Qo)]=Qo;for(var wy=function(s){var i=s.length*.75,c=s.length,l,f=0,p,C,Q,E;s[s.length-1]==="="&&(i--,s[s.length-2]==="="&&i--);var M=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(i):new Array(i),R=Array.isArray(M)?M:new Uint8Array(M);for(l=0;l<c;l+=4)p=nr[s.charCodeAt(l)],C=nr[s.charCodeAt(l+1)],Q=nr[s.charCodeAt(l+2)],E=nr[s.charCodeAt(l+3)],R[f++]=p<<2|C>>4,R[f++]=(C&15)<<4|Q>>2,R[f++]=(Q&3)<<6|E&63;return M},Cy=function(s){for(var i=s.length,c=[],l=0;l<i;l+=2)c.push(s[l+1]<<8|s[l]);return c},vy=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},Vt=5,Gi=11,zi=2,yy=Gi-Vt,bc=65536>>Vt,Xi=(1<<Vt)-1,Qy=bc+(1024>>Vt)+32,Ey=65536>>Gi,Fy=(1<<yy)-1,Hc=function(s,i,c){return s.slice?s.slice(i,c):new Uint16Array(Array.prototype.slice.call(s,i,c))},Uy=function(s,i,c){return s.slice?s.slice(i,c):new Uint32Array(Array.prototype.slice.call(s,i,c))},by=function(s,i){var c=wy(s),l=Array.isArray(c)?vy(c):new Uint32Array(c),f=Array.isArray(c)?Cy(c):new Uint16Array(c),p=24,C=Hc(f,p/2,l[4]/2),Q=l[5]===2?Hc(f,(p+l[4])/2):Uy(l,Math.ceil((p+l[4])/4));return new Hy(l[0],l[1],l[2],l[3],C,Q)},Hy=(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>>Vt],c=(c<<zi)+(i&Xi),this.data[c];if(i<=65535)return c=this.index[bc+(i-55296>>Vt)],c=(c<<zi)+(i&Xi),this.data[c];if(i<this.highStart)return c=Qy-Ey+(i>>Gi),c=this.index[c],c+=i>>Vt&Fy,c=this.index[c],c=(c<<zi)+(i&Xi),this.data[c];if(i<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),Ic="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Iy=typeof Uint8Array>"u"?[]:new Uint8Array(256),Eo=0;Eo<Ic.length;Eo++)Iy[Ic.charCodeAt(Eo)]=Eo;var _y=1,$i=2,Yi=3,_c=4,Sc=5,Sy=7,xc=8,Wi=9,Ji=10,Dc=11,Nc=12,Lc=13,Tc=14,Zi=15,xy=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},Dy=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},Ny=by(my),xe="×",ji="÷",Ly=function(s){return Ny.get(s)},Ty=function(s,i,c){var l=c-2,f=i[l],p=i[c-1],C=i[c];if(p===$i&&C===Yi)return xe;if(p===$i||p===Yi||p===_c||C===$i||C===Yi||C===_c)return ji;if(p===xc&&[xc,Wi,Dc,Nc].indexOf(C)!==-1||(p===Dc||p===Wi)&&(C===Wi||C===Ji)||(p===Nc||p===Ji)&&C===Ji||C===Lc||C===Sc||C===Sy||p===_y)return xe;if(p===Lc&&C===Tc){for(;f===Sc;)f=i[--l];if(f===Tc)return xe}if(p===Zi&&C===Zi){for(var Q=0;f===Zi;)Q++,f=i[--l];if(Q%2===0)return xe}return ji},ky=function(s){var i=xy(s),c=i.length,l=0,f=0,p=i.map(Ly);return{next:function(){if(l>=c)return{done:!0,value:null};for(var C=xe;l<c&&(C=Ty(i,p,++l))===xe;);if(C!==xe||l===c){var Q=Dy.apply(null,i.slice(f,l));return f=l,{value:Q,done:!1}}return{done:!0,value:null}}}},My=function(s){for(var i=ky(s),c=[],l;!(l=i.next()).done;)l.value&&c.push(l.value.slice());return c},Oy=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},Ky=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={},Q=f.every(function(E,M){c.setStart(l,p),c.setEnd(l,p+E.length);var R=c.getBoundingClientRect();p+=E.length;var z=R.x>C.x||R.y>C.y;return C=R,M===0?!0:z});return s.body.removeChild(i),Q},Ry=function(){return typeof new Image().crossOrigin<"u"},Vy=function(){return typeof new XMLHttpRequest().responseType=="string"},Py=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},kc=function(s){return s[0]===0&&s[1]===255&&s[2]===0&&s[3]===255},Gy=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=qi(c,c,0,0,f);return l.fillStyle="red",l.fillRect(0,0,c,c),Mc(C).then(function(Q){l.drawImage(Q,0,0);var E=l.getImageData(0,0,c,c).data;l.fillStyle="red",l.fillRect(0,0,c,c);var M=s.createElement("div");return M.style.backgroundImage="url("+p+")",M.style.height=c+"px",kc(E)?Mc(qi(c,c,0,0,M)):Promise.reject(!1)}).then(function(Q){return l.drawImage(Q,0,0),kc(l.getImageData(0,0,c,c).data)}).catch(function(){return!1})},qi=function(s,i,c,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",c.toString()),Q.setAttributeNS(null,"y",l.toString()),Q.setAttributeNS(null,"externalResourcesRequired","true"),C.appendChild(Q),Q.appendChild(f),C},Mc=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))})},ge={get SUPPORT_RANGE_BOUNDS(){var s=Oy(document);return Object.defineProperty(ge,"SUPPORT_RANGE_BOUNDS",{value:s}),s},get SUPPORT_WORD_BREAKING(){var s=ge.SUPPORT_RANGE_BOUNDS&&Ky(document);return Object.defineProperty(ge,"SUPPORT_WORD_BREAKING",{value:s}),s},get SUPPORT_SVG_DRAWING(){var s=Py(document);return Object.defineProperty(ge,"SUPPORT_SVG_DRAWING",{value:s}),s},get SUPPORT_FOREIGNOBJECT_DRAWING(){var s=typeof Array.from=="function"&&typeof window.fetch=="function"?Gy(document):Promise.resolve(!1);return Object.defineProperty(ge,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:s}),s},get SUPPORT_CORS_IMAGES(){var s=Ry();return Object.defineProperty(ge,"SUPPORT_CORS_IMAGES",{value:s}),s},get SUPPORT_RESPONSE_TYPE(){var s=Vy();return Object.defineProperty(ge,"SUPPORT_RESPONSE_TYPE",{value:s}),s},get SUPPORT_CORS_XHR(){var s="withCredentials"in new XMLHttpRequest;return Object.defineProperty(ge,"SUPPORT_CORS_XHR",{value:s}),s},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var s=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(ge,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:s}),s}},rr=(function(){function s(i,c){this.text=i,this.bounds=c}return s})(),zy=function(s,i,c,l){var f=Yy(i,c),p=[],C=0;return f.forEach(function(Q){if(c.textDecorationLine.length||Q.trim().length>0)if(ge.SUPPORT_RANGE_BOUNDS){var E=Oc(l,C,Q.length).getClientRects();if(E.length>1){var M=As(Q),R=0;M.forEach(function(j){p.push(new rr(j,h.fromDOMRectList(s,Oc(l,R+C,j.length).getClientRects()))),R+=j.length})}else p.push(new rr(Q,h.fromDOMRectList(s,E)))}else{var z=l.splitText(Q.length);p.push(new rr(Q,Xy(s,l))),l=z}else ge.SUPPORT_RANGE_BOUNDS||(l=l.splitText(Q.length));C+=Q.length}),p},Xy=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},Oc=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},As=function(s){if(ge.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 My(s)},$y=function(s,i){if(ge.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 Jy(s,i)},Yy=function(s,i){return i.letterSpacing!==0?As(s):$y(s,i)},Wy=[32,160,4961,65792,65793,4153,4241],Jy=function(s,i){for(var c=I0(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){Wy.indexOf(E)===-1?Q+=m(E):(Q.length&&l.push(Q),l.push(m(E)),Q="")}),Q.length&&l.push(Q)}};!(f=c.next()).done;)p();return l},Zy=(function(){function s(i,c,l){this.text=jy(c.data,l.textTransform),this.textBounds=zy(i,this.text,l,c)}return s})(),jy=function(s,i){switch(i){case 1:return s.toLowerCase();case 3:return s.replace(qy,AQ);case 2:return s.toUpperCase();default:return s}},qy=/(^|\s|:|-|\(|\))([a-z])/g,AQ=function(s,i,c){return s.length>0?i+c.toUpperCase():s},Kc=(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})(Ze),Rc=(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})(Ze),Vc=(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})(Ze),Pc=(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})(Ze),es=(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})(Ze),eQ=[{type:15,flags:0,unit:"px",number:3}],tQ=[{type:16,flags:0,number:50}],nQ=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},rQ=function(s){var i=s.type===oQ?new Array(s.value.length+1).join("•"):s.value;return i.length===0?s.placeholder||"":i},Fo="checkbox",Uo="radio",oQ="password",Gc=707406591,ts=(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=rQ(l),(f.type===Fo||f.type===Uo)&&(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=nQ(f.bounds)),f.type){case Fo:f.styles.borderTopRightRadius=f.styles.borderTopLeftRadius=f.styles.borderBottomRightRadius=f.styles.borderBottomLeftRadius=eQ;break;case Uo:f.styles.borderTopRightRadius=f.styles.borderTopLeftRadius=f.styles.borderBottomRightRadius=f.styles.borderBottomLeftRadius=tQ;break}return f}return i})(Ze),zc=(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})(Ze),Xc=(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})(Ze),$c=(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=Wc(c,l.contentWindow.document.documentElement);var p=l.contentWindow.document.documentElement?er(c,getComputedStyle(l.contentWindow.document.documentElement).backgroundColor):lt.TRANSPARENT,C=l.contentWindow.document.body?er(c,getComputedStyle(l.contentWindow.document.body).backgroundColor):lt.TRANSPARENT;f.backgroundColor=Ft(p)?Ft(C)?f.styles.backgroundColor:C:p}}catch{}return f}return i})(Ze),iQ=["OL","UL","MENU"],bo=function(s,i,c,l){for(var f=i.firstChild,p=void 0;f;f=p)if(p=f.nextSibling,Jc(f)&&f.data.trim().length>0)c.textNodes.push(new Zy(s,f,c.styles));else if(hn(f))if(tu(f)&&f.assignedNodes)f.assignedNodes().forEach(function(Q){return bo(s,Q,c,l)});else{var C=Yc(s,f);C.styles.isVisible()&&(sQ(f,C,l)?C.flags|=4:aQ(C.styles)&&(C.flags|=2),iQ.indexOf(f.tagName)!==-1&&(C.flags|=8),c.elements.push(C),f.slot,f.shadowRoot?bo(s,f.shadowRoot,C,l):!Io(f)&&!Zc(f)&&!_o(f)&&bo(s,f,C,l))}},Yc=function(s,i){return os(i)?new Kc(s,i):jc(i)?new Rc(s,i):Zc(i)?new Vc(s,i):lQ(i)?new Pc(s,i):cQ(i)?new es(s,i):uQ(i)?new ts(s,i):_o(i)?new zc(s,i):Io(i)?new Xc(s,i):Au(i)?new $c(s,i):new Ze(s,i)},Wc=function(s,i){var c=Yc(s,i);return c.flags|=4,bo(s,i,c,c),c},sQ=function(s,i,c){return i.styles.isPositionedWithZIndex()||i.styles.opacity<1||i.styles.isTransformed()||rs(s)&&c.styles.isTransparent()},aQ=function(s){return s.isPositioned()||s.isFloating()},Jc=function(s){return s.nodeType===Node.TEXT_NODE},hn=function(s){return s.nodeType===Node.ELEMENT_NODE},ns=function(s){return hn(s)&&typeof s.style<"u"&&!Ho(s)},Ho=function(s){return typeof s.className=="object"},lQ=function(s){return s.tagName==="LI"},cQ=function(s){return s.tagName==="OL"},uQ=function(s){return s.tagName==="INPUT"},dQ=function(s){return s.tagName==="HTML"},Zc=function(s){return s.tagName==="svg"},rs=function(s){return s.tagName==="BODY"},jc=function(s){return s.tagName==="CANVAS"},qc=function(s){return s.tagName==="VIDEO"},os=function(s){return s.tagName==="IMG"},Au=function(s){return s.tagName==="IFRAME"},eu=function(s){return s.tagName==="STYLE"},fQ=function(s){return s.tagName==="SCRIPT"},Io=function(s){return s.tagName==="TEXTAREA"},_o=function(s){return s.tagName==="SELECT"},tu=function(s){return s.tagName==="SLOT"},nu=function(s){return s.tagName.indexOf("-")>0},gQ=(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(Q){var E=c.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=c.counters[Q.counter];C.push(Q.counter),E||(E=c.counters[Q.counter]=[]),E.push(Q.reset)}),C},s})(),ru={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"]},ou={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},hQ={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},BQ={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Bn=function(s,i,c,l,f,p){return s<i||s>c?ir(s,f,p.length>0):l.integers.reduce(function(C,Q,E){for(;s>=Q;)s-=Q,C+=l.values[E];return C},"")+p},iu=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?"-":"")+(iu(Math.abs(s),p,l,function(C){return m(Math.floor(C%p)+i)})+f)},Pt=function(s,i,c){c===void 0&&(c=". ");var l=i.length;return iu(Math.abs(s),l,!1,function(f){return i[Math.floor(f%l)]})+c},pn=1,bt=2,Ht=4,or=8,ct=function(s,i,c,l,f,p){if(s<-9999||s>9999)return ir(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 M=C%10;M===0&&ue(p,pn)&&Q!==""?Q=i[M]+Q:M>1||M===1&&E===0||M===1&&E===1&&ue(p,bt)||M===1&&E===1&&ue(p,Ht)&&s>100||M===1&&E>1&&ue(p,or)?Q=i[M]+(E>0?c[E-1]:"")+Q:M===1&&E>0&&(Q=c[E-1]+Q),C=Math.floor(C/10)}return(s<0?l:"")+Q},su="十百千萬",au="拾佰仟萬",lu="マイナス",is="마이너스",ir=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 Q=oe(s,48,57,!0,l);return Q.length<4?"0"+Q:Q;case 4:return Pt(s,"〇一二三四五六七八九",f);case 6:return Bn(s,1,3999,ru,3,l).toLowerCase();case 7:return Bn(s,1,3999,ru,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 Bn(s,1,9999,ou,3,l);case 35:return Bn(s,1,9999,ou,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 Pt(s,"子丑寅卯辰巳午未申酉戌亥",f);case 16:return Pt(s,"甲乙丙丁戊己庚辛壬癸",f);case 17:case 48:return ct(s,"零一二三四五六七八九",su,"負",f,bt|Ht|or);case 47:return ct(s,"零壹貳參肆伍陸柒捌玖",au,"負",f,pn|bt|Ht|or);case 42:return ct(s,"零一二三四五六七八九",su,"负",f,bt|Ht|or);case 41:return ct(s,"零壹贰叁肆伍陆柒捌玖",au,"负",f,pn|bt|Ht|or);case 26:return ct(s,"〇一二三四五六七八九","十百千万",lu,f,0);case 25:return ct(s,"零壱弐参四伍六七八九","拾百千万",lu,f,pn|bt|Ht);case 31:return ct(s,"영일이삼사오육칠팔구","십백천만",is,p,pn|bt|Ht);case 33:return ct(s,"零一二三四五六七八九","十百千萬",is,p,0);case 32:return ct(s,"零壹貳參四五六七八九","拾百千",is,p,pn|bt|Ht);case 18:return oe(s,2406,2415,!0,l);case 20:return Bn(s,1,19999,BQ,3,l);case 21:return oe(s,2790,2799,!0,l);case 22:return oe(s,2662,2671,!0,l);case 22:return Bn(s,1,10999,hQ,3,l);case 23:return Pt(s,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Pt(s,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return oe(s,3302,3311,!0,l);case 28:return Pt(s,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",f);case 29:return Pt(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)}},cu="data-html2canvas-ignore",uu=(function(){function s(i,c,l){if(this.context=i,this.options=l,this.scrolledElements=[],this.referenceElement=c,this.counters=new gQ,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=pQ(i,c);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,M=CQ(f).then(function(){return a(l,void 0,void 0,function(){var R,z;return u(this,function(j){switch(j.label){case 0:return this.scrolledElements.forEach(EQ),Q&&(Q.scrollTo(c.left,c.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(Q.scrollY!==c.top||Q.scrollX!==c.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(Q.scrollX-c.left,Q.scrollY-c.top,0,0))),R=this.options.onclone,z=this.clonedReferenceElement,typeof z>"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,wQ(E)]:[3,4];case 3:j.sent(),j.label=4;case 4:return typeof R=="function"?[2,Promise.resolve().then(function(){return R(E,z)}).then(function(){return f})]:[2,f]}})})});return E.open(),E.write(yQ(document.doctype)+"<html></html>"),QQ(this.referenceElement.ownerDocument,p,C),E.replaceChild(E.adoptNode(this.documentElement),E.documentElement),E.close(),M},s.prototype.createElementClone=function(i){if(Pi(i,2))debugger;if(jc(i))return this.createCanvasClone(i);if(qc(i))return this.createVideoClone(i);if(eu(i))return this.createStyleClone(i);var c=i.cloneNode(!1);return os(c)&&(os(i)&&i.currentSrc&&i.currentSrc!==i.src&&(c.src=i.currentSrc,c.srcset=""),c.loading==="lazy"&&(c.loading="eager")),nu(c)?this.createCustomElementClone(c):c},s.prototype.createCustomElementClone=function(i){var c=document.createElement("html2canvascustomelement");return ss(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 Q=(c=i.getContext("webgl2"))!==null&&c!==void 0?c: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 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){(!hn(c)||!fQ(c)&&!c.hasAttribute(cu)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(c)))&&(!this.options.copyStyles||!hn(c)||!eu(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(hn(p)&&tu(p)&&typeof p.assignedNodes=="function"){var C=p.assignedNodes();C.length&&C.forEach(function(Q){return f.appendChildNode(c,Q,l)})}else this.appendChildNode(c,p,l)},s.prototype.cloneNode=function(i,c){if(Jc(i))return document.createTextNode(i.data);if(!i.ownerDocument)return i.cloneNode(!1);var l=i.ownerDocument.defaultView;if(l&&hn(i)&&(ns(i)||Ho(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&&ns(f)&&(this.clonedReferenceElement=f),rs(f)&&bQ(f);var E=this.counters.parse(new Fc(this.context,p)),M=this.resolvePseudoContent(i,f,C,sr.BEFORE);nu(i)&&(c=!0),qc(i)||this.cloneChildNodes(i,f,c),M&&f.insertBefore(M,f.firstChild);var R=this.resolvePseudoContent(i,f,Q,sr.AFTER);return R&&f.appendChild(R),this.counters.pop(E),(p&&(this.options.copyStyles||Ho(i))&&!Au(i)||c)&&ss(p,f),(i.scrollTop!==0||i.scrollLeft!==0)&&this.scrolledElements.push([f,i.scrollLeft,i.scrollTop]),(Io(i)||_o(i))&&(Io(f)||_o(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,Q=c.ownerDocument;if(!(!Q||!C||C==="none"||C==="-moz-alt-content"||l.display==="none")){this.counters.parse(new Fc(this.context,l));var E=new hy(this.context,l),M=Q.createElement("html2canvaspseudoelement");ss(l,M),E.content.forEach(function(z){if(z.type===0)M.appendChild(Q.createTextNode(z.value));else if(z.type===22){var j=Q.createElement("img");j.src=z.value,j.style.opacity="1",M.appendChild(j)}else if(z.type===18){if(z.name==="attr"){var CA=z.values.filter(YA);CA.length&&M.appendChild(Q.createTextNode(i.getAttribute(CA[0].value)||""))}else if(z.name==="counter"){var hA=z.values.filter(fn),mA=hA[0],RA=hA[1];if(mA&&YA(mA)){var DA=p.counters.getCounterValue(mA.value),xA=RA&&YA(RA)?Vi.parse(p.context,RA.value):3;M.appendChild(Q.createTextNode(ir(DA,xA,!1)))}}else if(z.name==="counters"){var Ae=z.values.filter(fn),mA=Ae[0],GA=Ae[1],RA=Ae[2];if(mA&&YA(mA)){var kA=p.counters.getCounterValues(mA.value),UA=RA&&YA(RA)?Vi.parse(p.context,RA.value):3,VA=GA&&GA.type===0?GA.value:"",PA=kA.map(function(ye){return ir(ye,UA,!1)}).join(VA);M.appendChild(Q.createTextNode(PA))}}}else if(z.type===20)switch(z.value){case"open-quote":M.appendChild(Q.createTextNode(Ec(E.quotes,p.quoteDepth++,!0)));break;case"close-quote":M.appendChild(Q.createTextNode(Ec(E.quotes,--p.quoteDepth,!1)));break;default:M.appendChild(Q.createTextNode(z.value))}}),M.className=as+" "+ls;var R=f===sr.BEFORE?" "+as:" "+ls;return Ho(c)?c.className.baseValue+=R:c.className+=R,M}}},s.destroy=function(i){return i.parentNode?(i.parentNode.removeChild(i),!0):!1},s})(),sr;(function(s){s[s.BEFORE=0]="BEFORE",s[s.AFTER=1]="AFTER"})(sr||(sr={}));var pQ=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(cu,"true"),s.body.appendChild(c),c},mQ=function(s){return new Promise(function(i){if(s.complete){i();return}if(!s.src){i();return}s.onload=i,s.onerror=i})},wQ=function(s){return Promise.all([].slice.call(s.images,0).map(mQ))},CQ=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)}})},vQ=["all","d","content"],ss=function(s,i){for(var c=s.length-1;c>=0;c--){var l=s.item(c);vQ.indexOf(l)===-1&&i.style.setProperty(l,s.getPropertyValue(l))}return i},yQ=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},QQ=function(s,i,c){s&&s.defaultView&&(i!==s.defaultView.pageXOffset||c!==s.defaultView.pageYOffset)&&s.defaultView.scrollTo(i,c)},EQ=function(s){var i=s[0],c=s[1],l=s[2];i.scrollLeft=c,i.scrollTop=l},FQ=":before",UQ=":after",as="___html2canvas___pseudoelement_before",ls="___html2canvas___pseudoelement_after",du=`{
|
|
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&&Vw(t.canvasContext,e.start,e.selectStart,e.selectLength,B,!e.vertical)};return(0,jA.watch)(()=>e.start,()=>d(n)),(0,jA.watch)([()=>e.width,()=>e.height],()=>{u(n),d(n)}),{handle:(g,B)=>{const m=((v,y,I)=>Math.round(y+v/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:r}}});function Gw(e,A,t,n,r,a){return(0,o.openBlock)(),(0,o.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 zw=(0,jA.defineComponent)({name:"RulerWrapper",components:{CanvasRuler:jr(Pw,[["render",Gw]]),RulerLine:Kw},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,jA.ref)(!1),t=(0,jA.ref)(0),n=(0,jA.computed)(()=>e.vertical?"v-container":"h-container"),r=(0,jA.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,jA.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:r,indicatorStyle:a,handleNewLine:u,handleLineRelease:d,handleLineRemove:h}}}),Xw={class:"lines"},$w={class:"value"};function Yw(e,A,t,n,r,a){const u=(0,o.resolveComponent)("CanvasRuler"),d=(0,o.resolveComponent)("RulerLine");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(e.rwClassName),style:(0,o.normalizeStyle)(e.rwStyle)},[(0,o.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,o.withDirectives)((0,o.createElementVNode)("div",Xw,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.lines,(h,g)=>((0,o.openBlock)(),(0,o.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),[[o.vShow,e.isShowReferLine]]),(0,o.withDirectives)((0,o.createElementVNode)("div",{class:"indicator",style:(0,o.normalizeStyle)(e.indicatorStyle)},[(0,o.createElementVNode)("div",$w,(0,o.toDisplayString)(e.valueNum),1)],4),[[o.vShow,e.showIndicator]])],6)}var Ww=jr(zw,[["render",Yw],["__scopeId","data-v-b6c23352"]]),Jw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAAAXNSR0IArs4c6QAAAopJREFUOE/FlE9IVEEcx7+/N9ouds1Mu0QUSFZYdIgoUqQoKPBQHsKozpXE7jbTO/U8xLJvn6usBHWQ6hBFXupSkQeVbh0KJEPp0sH+eLGTsKs77xcj78m0ax0E8cHjzZv5zef3/c33xxA24KENYGJzoEEQbNNaN4Zh2OQ4znwYhr9c1/39vwrXVDo0NNS0tLR0GYB5D64BmAMwzMyvlFKz1es10Hw+f4mZ7wHYBeA9gNdENFepVOaEEM3M3OI4Thczn41gt6WUgQ3+C+r7/h0AWQD3mXnYqPA8L9nQ0HCemduIaFpKOWoAhUJhT6VSuQXgOjP3K6W8GLwKzeVyp4jonR0QBEErM48w8zFLyayUsjX+z+VyHhHdZebTSqkxM78CHRgYOKS1/ghgVErZY214RkQ7ADyRUj72ff8qgCtmXUrZGcf5vv8CwEUhxOF0Ov1pBRpla5dSdseBhUJhpznH6tIsZb1KqacW+BGArUaUXX63UuplHJTNZjuEEONSyhozfd/n6mQ1RkXZL2itz7mu+80EDA4ONi8vL/8AcM2UbikyR2BU9cSmmTU70YqKIAj2hWFo2uenlHK/BRg3Y2aeNO5GyU8S0ZbFxcUuz/NKEXAGQKPjOCcymcyX1dIi8DSAiWQyeaavr68cbS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kN8s+lJb8oEAAAAASUVORK5CYII=",jw=(0,jA.defineComponent)({name:"SketchRule",components:{RulerWrapper:Ww},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"],setup(e,{emit:A}){let t=(0,jA.ref)(!0);t.value=e.isShowReferLine;const n=(0,jA.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||{})}),r=(0,jA.computed)(()=>({backgroundImage:t.value?`url(${e.eyeIcon||Jw})`:`url(${e.closeEyeIcon||Zw})`,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("onCornerClick",t.value)};return(0,jA.watch)([()=>e.isShowReferLine],()=>{t.value=e.isShowReferLine}),{showReferLine:t,paletteCpu:n,cornerStyle:r,onCornerClick:a}}}),qw={id:"mb-ruler",class:"style-ruler mb-ruler"};function A0(e,A,t,n,r,a){const u=(0,o.resolveComponent)("RulerWrapper");return(0,o.openBlock)(),(0,o.createElementBlock)("div",qw,[(0,o.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,o.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,o.createElementVNode)("a",{class:"corner",style:(0,o.normalizeStyle)(e.cornerStyle),onClick:A[0]||(A[0]=(...d)=>e.onCornerClick&&e.onCornerClick(...d))},null,4)])}var e0=jr(jw,[["render",A0]]),t0=Su(((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 r=function(){return r=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},r.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 Q(R){try{M(l.next(R))}catch(z){C(z)}}function E(R){try{M(l.throw(R))}catch(z){C(z)}}function M(R){R.done?p(R.value):f(R.value).then(Q,E)}M((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:Q(0),throw:Q(1),return:Q(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function Q(M){return function(R){return E([M,R])}}function E(M){if(l)throw new TypeError("Generator is already executing.");for(;c;)try{if(l=1,f&&(p=M[0]&2?f.return:M[0]?f.throw||((p=f.return)&&p.call(f),0):f.next)&&!(p=p.call(f,M[1])).done)return p;switch(f=0,p&&(M=[M[0]&2,p.value]),M[0]){case 0:case 1:p=M;break;case 4:return c.label++,{value:M[1],done:!1};case 5:c.label++,f=M[1],M=[0];continue;case 7:M=c.ops.pop(),c.trys.pop();continue;default:if(p=c.trys,!(p=p.length>0&&p[p.length-1])&&(M[0]===6||M[0]===2)){c=0;continue}if(M[0]===3&&(!p||M[1]>p[0]&&M[1]<p[3])){c.label=M[1];break}if(M[0]===6&&c.label<p[1]){c.label=p[1],p=M;break}if(p&&c.label<p[2]){c.label=p[2],c.ops.push(M);break}p[2]&&c.ops.pop(),c.trys.pop();continue}M=i.call(s,c)}catch(R){M=[6,R],f=0}finally{l=p=0}if(M[0]&5)throw M[1];return{value:M[0]?M[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+/",y=typeof Uint8Array>"u"?[]:new Uint8Array(256),I=0;I<v.length;I++)y[v.charCodeAt(I)]=I;for(var T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",D=typeof Uint8Array>"u"?[]:new Uint8Array(256),V=0;V<T.length;V++)D[T.charCodeAt(V)]=V;for(var b=function(s){var i=s.length*.75,c=s.length,l,f=0,p,C,Q,E;s[s.length-1]==="="&&(i--,s[s.length-2]==="="&&i--);var M=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(i):new Array(i),R=Array.isArray(M)?M:new Uint8Array(M);for(l=0;l<c;l+=4)p=D[s.charCodeAt(l)],C=D[s.charCodeAt(l+1)],Q=D[s.charCodeAt(l+2)],E=D[s.charCodeAt(l+3)],R[f++]=p<<2|C>>4,R[f++]=(C&15)<<4|Q>>2,R[f++]=(Q&3)<<6|E&63;return M},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},sA=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,cA=11,lA=2,oA=cA-W,iA=65536>>W,AA=(1<<W)-1,S=iA+(1024>>W)+32,eA=65536>>cA,H=(1<<oA)-1,X=function(s,i,c){return s.slice?s.slice(i,c):new Uint16Array(Array.prototype.slice.call(s,i,c))},U=function(s,i,c){return s.slice?s.slice(i,c):new Uint32Array(Array.prototype.slice.call(s,i,c))},L=function(s,i){var c=b(s),l=Array.isArray(c)?sA(c):new Uint32Array(c),f=Array.isArray(c)?K(c):new Uint16Array(c),p=24,C=X(f,p/2,l[4]/2),Q=l[5]===2?X(f,(p+l[4])/2):U(l,Math.ceil((p+l[4])/4));return new k(l[0],l[1],l[2],l[3],C,Q)},k=(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&AA),this.data[c];if(i<=65535)return c=this.index[iA+(i-55296>>W)],c=(c<<lA)+(i&AA),this.data[c];if(i<this.highStart)return c=S-eA+(i>>cA),c=this.index[c],c+=i>>W&H,c=this.index[c],c=(c<<lA)+(i&AA),this.data[c];if(i<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),N="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=typeof Uint8Array>"u"?[]:new Uint8Array(256),Y=0;Y<N.length;Y++)O[N.charCodeAt(Y)]=Y;var tA="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cLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB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ghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABw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AdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAA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AUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB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4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFA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ACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJ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QAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",pA=50,HA=1,nA=2,Z=3,$=4,uA=5,wA=7,QA=8,_A=9,gA=10,J=11,_=12,F=13,x=14,G=15,P=16,fA=17,hA=18,EA=19,FA=20,DA=21,OA=22,KA=23,ee=24,qA=25,it=26,Ke=27,mt=28,_i=29,st=30,Si=31,He=32,on=33,zn=34,sn=35,Xn=36,kt=37,$n=38,an=39,Mt=40,Ot=41,xi=42,Kl=43,rA=[9001,65288],aA="!",dA="×",MA="÷",Ie=L(tA),we=[st,Xn],Kt=[HA,nA,Z,uA],ln=[gA,QA],cn=[Ke,it],Yn=Kt.concat(ln),qr=[$n,an,Mt,zn,sn],Di=[G,F],$A=function(s,i){i===void 0&&(i="strict");var c=[],l=[],f=[];return s.forEach(function(p,C){var Q=Ie.get(p);if(Q>pA?(f.push(!0),Q-=pA):f.push(!1),["normal","auto","loose"].indexOf(i)!==-1&&[8208,8211,12316,12448].indexOf(p)!==-1)return l.push(C),c.push(P);if(Q===$||Q===J){if(C===0)return l.push(C),c.push(st);var E=c[C-1];return Yn.indexOf(E)===-1?(l.push(l[C-1]),c.push(E)):(l.push(C),c.push(st))}if(l.push(C),Q===Si)return c.push(i==="strict"?DA:kt);if(Q===xi||Q===_i)return c.push(st);if(Q===Kl)return p>=131072&&p<=196605||p>=196608&&p<=262141?c.push(kt):c.push(st);c.push(Q)}),[l,c,f]},wt=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!==gA)break}if(f===gA)for(var p=c;p>0;){p--;var Q=l[p];if(Array.isArray(s)?s.indexOf(Q)!==-1:s===Q)for(var E=c;E<=l.length;){E++;var C=l[E];if(C===i)return!0;if(C!==gA)break}if(Q!==gA)break}return!1},Ye=function(s,i){for(var c=s;c>=0;){var l=i[c];if(l===gA)c--;else return l}return 0},Ni=function(s,i,c,l,f){if(c[l]===0)return dA;var p=l-1;if(Array.isArray(f)&&f[p]===!0)return dA;var C=p-1,Q=p+1,E=i[p],M=C>=0?i[C]:0,R=i[Q];if(E===nA&&R===Z)return dA;if(Kt.indexOf(E)!==-1)return aA;if(Kt.indexOf(R)!==-1||ln.indexOf(R)!==-1)return dA;if(Ye(p,i)===QA)return MA;if(Ie.get(s[p])===J||(E===He||E===on)&&Ie.get(s[Q])===J||E===wA||R===wA||E===_A||[gA,F,G].indexOf(E)===-1&&R===_A||[fA,hA,EA,ee,mt].indexOf(R)!==-1||Ye(p,i)===OA||wt(KA,OA,p,i)||wt([fA,hA],DA,p,i)||wt(_,_,p,i))return dA;if(E===gA)return MA;if(E===KA||R===KA)return dA;if(R===P||E===P)return MA;if([F,G,DA].indexOf(R)!==-1||E===x||M===Xn&&Di.indexOf(E)!==-1||E===mt&&R===Xn||R===FA||we.indexOf(R)!==-1&&E===qA||we.indexOf(E)!==-1&&R===qA||E===Ke&&[kt,He,on].indexOf(R)!==-1||[kt,He,on].indexOf(E)!==-1&&R===it||we.indexOf(E)!==-1&&cn.indexOf(R)!==-1||cn.indexOf(E)!==-1&&we.indexOf(R)!==-1||[Ke,it].indexOf(E)!==-1&&(R===qA||[OA,G].indexOf(R)!==-1&&i[Q+1]===qA)||[OA,G].indexOf(E)!==-1&&R===qA||E===qA&&[qA,mt,ee].indexOf(R)!==-1)return dA;if([qA,mt,ee,fA,hA].indexOf(R)!==-1)for(var z=p;z>=0;){var j=i[z];if(j===qA)return dA;if([mt,ee].indexOf(j)!==-1)z--;else break}if([Ke,it].indexOf(R)!==-1)for(var z=[fA,hA].indexOf(E)!==-1?C:p;z>=0;){var j=i[z];if(j===qA)return dA;if([mt,ee].indexOf(j)!==-1)z--;else break}if($n===E&&[$n,an,zn,sn].indexOf(R)!==-1||[an,zn].indexOf(E)!==-1&&[an,Mt].indexOf(R)!==-1||[Mt,sn].indexOf(E)!==-1&&R===Mt||qr.indexOf(E)!==-1&&[FA,it].indexOf(R)!==-1||qr.indexOf(R)!==-1&&E===Ke||we.indexOf(E)!==-1&&we.indexOf(R)!==-1||E===ee&&we.indexOf(R)!==-1||we.concat(qA).indexOf(E)!==-1&&R===OA&&rA.indexOf(s[Q])===-1||we.concat(qA).indexOf(R)!==-1&&E===hA)return dA;if(E===Ot&&R===Ot){for(var CA=c[p],BA=1;CA>0&&(CA--,i[CA]===Ot);)BA++;if(BA%2!==0)return dA}return E===He&&R===on?dA:MA},Ao=function(s,i){i||(i={lineBreak:"normal",wordBreak:"normal"});var c=$A(s,i.lineBreak),l=c[0],f=c[1],p=c[2];(i.wordBreak==="break-all"||i.wordBreak==="break-word")&&(f=f.map(function(Q){return[qA,st,xi].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]},H0=(function(){function s(i,c,l,f){this.codePoints=i,this.required=c===aA,this.start=l,this.end=f}return s.prototype.slice=function(){return m.apply(void 0,this.codePoints.slice(this.start,this.end))},s})(),I0=function(s,i){var c=w(s),l=Ao(c,i),f=l[0],p=l[1],C=l[2],Q=c.length,E=0,M=0;return{next:function(){if(M>=Q)return{done:!0,value:null};for(var R=dA;M<Q&&(R=Ni(c,p,f,++M,C))===dA;);if(R!==dA||M===Q){var z=new H0(c,R,E,M);return E=M,{value:z,done:!1}}return{done:!0,value:null}}}},_0=1,S0=2,Wn=4,Rl=8,eo=10,Vl=47,Jn=92,x0=9,D0=32,to=34,Zn=61,N0=35,L0=36,T0=37,no=39,ro=40,jn=41,k0=95,ve=45,M0=33,O0=60,K0=62,R0=64,V0=91,P0=93,G0=61,z0=123,oo=63,X0=125,Pl=124,$0=126,Y0=128,Gl=65533,Li=42,Rt=43,W0=44,J0=58,Z0=59,qn=46,j0=0,q0=8,AC=11,eC=14,tC=31,nC=127,We=-1,zl=48,Xl=97,$l=101,rC=102,oC=117,iC=122,Yl=65,Wl=69,Jl=70,sC=85,aC=90,Be=function(s){return s>=zl&&s<=57},lC=function(s){return s>=55296&&s<=57343},un=function(s){return Be(s)||s>=Yl&&s<=Jl||s>=Xl&&s<=rC},cC=function(s){return s>=Xl&&s<=iC},uC=function(s){return s>=Yl&&s<=aC},dC=function(s){return cC(s)||uC(s)},fC=function(s){return s>=Y0},io=function(s){return s===eo||s===x0||s===D0},so=function(s){return dC(s)||fC(s)||s===k0},Zl=function(s){return so(s)||Be(s)||s===ve},gC=function(s){return s>=j0&&s<=q0||s===AC||s>=eC&&s<=tC||s===nC},Ct=function(s,i){return s!==Jn?!1:i!==eo},ao=function(s,i,c){return s===ve?so(i)||Ct(i,c):so(s)?!0:!!(s===Jn&&Ct(s,i))},Ti=function(s,i,c){return s===Rt||s===ve?Be(i)?!0:i===qn&&Be(c):Be(s===qn?i:s)},hC=function(s){var i=0,c=1;(s[i]===Rt||s[i]===ve)&&(s[i]===ve&&(c=-1),i++);for(var l=[];Be(s[i]);)l.push(s[i++]);var f=l.length?parseInt(m.apply(void 0,l),10):0;s[i]===qn&&i++;for(var p=[];Be(s[i]);)p.push(s[i++]);var C=p.length,Q=C?parseInt(m.apply(void 0,p),10):0;(s[i]===Wl||s[i]===$l)&&i++;var E=1;(s[i]===Rt||s[i]===ve)&&(s[i]===ve&&(E=-1),i++);for(var M=[];Be(s[i]);)M.push(s[i++]);var R=M.length?parseInt(m.apply(void 0,M),10):0;return c*(f+Q*Math.pow(10,-C))*Math.pow(10,E*R)},BC={type:2},pC={type:3},mC={type:4},wC={type:13},CC={type:8},vC={type:21},yC={type:9},QC={type:10},EC={type:11},FC={type:12},UC={type:14},lo={type:23},bC={type:1},HC={type:25},IC={type:24},_C={type:26},SC={type:27},xC={type:28},DC={type:29},NC={type:31},ki={type:32},jl=(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!==ki;)i.push(c),c=this.consumeToken();return i},s.prototype.consumeToken=function(){var i=this.consumeCodePoint();switch(i){case to:return this.consumeStringToken(to);case N0:var c=this.peekCodePoint(0),l=this.peekCodePoint(1),f=this.peekCodePoint(2);if(Zl(c)||Ct(l,f)){var p=ao(c,l,f)?S0:_0,C=this.consumeName();return{type:5,value:C,flags:p}}break;case L0:if(this.peekCodePoint(0)===Zn)return this.consumeCodePoint(),wC;break;case no:return this.consumeStringToken(no);case ro:return BC;case jn:return pC;case Li:if(this.peekCodePoint(0)===Zn)return this.consumeCodePoint(),UC;break;case Rt:if(Ti(i,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(i),this.consumeNumericToken();break;case W0:return mC;case ve:var Q=i,E=this.peekCodePoint(0),M=this.peekCodePoint(1);if(Ti(Q,E,M))return this.reconsumeCodePoint(i),this.consumeNumericToken();if(ao(Q,E,M))return this.reconsumeCodePoint(i),this.consumeIdentLikeToken();if(E===ve&&M===K0)return this.consumeCodePoint(),this.consumeCodePoint(),IC;break;case qn:if(Ti(i,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(i),this.consumeNumericToken();break;case Vl:if(this.peekCodePoint(0)===Li)for(this.consumeCodePoint();;){var R=this.consumeCodePoint();if(R===Li&&(R=this.consumeCodePoint(),R===Vl))return this.consumeToken();if(R===We)return this.consumeToken()}break;case J0:return _C;case Z0:return SC;case O0:if(this.peekCodePoint(0)===M0&&this.peekCodePoint(1)===ve&&this.peekCodePoint(2)===ve)return this.consumeCodePoint(),this.consumeCodePoint(),HC;break;case R0:if(ao(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2))){var C=this.consumeName();return{type:7,value:C}}break;case V0:return xC;case Jn:if(Ct(i,this.peekCodePoint(0)))return this.reconsumeCodePoint(i),this.consumeIdentLikeToken();break;case P0:return DC;case G0:if(this.peekCodePoint(0)===Zn)return this.consumeCodePoint(),CC;break;case z0:return EC;case X0:return FC;case oC:case sC:var z=this.peekCodePoint(0),j=this.peekCodePoint(1);return z===Rt&&(un(j)||j===oo)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(i),this.consumeIdentLikeToken();case Pl:if(this.peekCodePoint(0)===Zn)return this.consumeCodePoint(),yC;if(this.peekCodePoint(0)===Pl)return this.consumeCodePoint(),vC;break;case $0:if(this.peekCodePoint(0)===Zn)return this.consumeCodePoint(),QC;break;case We:return ki}return io(i)?(this.consumeWhiteSpace(),NC):Be(i)?(this.reconsumeCodePoint(i),this.consumeNumericToken()):so(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();un(c)&&i.length<6;)i.push(c),c=this.consumeCodePoint();for(var l=!1;c===oo&&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===oo?zl:E})),16),p=parseInt(m.apply(void 0,i.map(function(E){return E===oo?Jl:E})),16);return{type:30,start:f,end:p}}var C=parseInt(m.apply(void 0,i),16);if(this.peekCodePoint(0)===ve&&un(this.peekCodePoint(1))){this.consumeCodePoint(),c=this.consumeCodePoint();for(var Q=[];un(c)&&Q.length<6;)Q.push(c),c=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)===ro?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===ro?(this.consumeCodePoint(),{type:19,value:i}):{type:20,value:i}},s.prototype.consumeUrlToken=function(){var i=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===We)return{type:22,value:""};var c=this.peekCodePoint(0);if(c===no||c===to){var l=this.consumeStringToken(this.consumeCodePoint());return l.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===We||this.peekCodePoint(0)===jn)?(this.consumeCodePoint(),{type:22,value:l.value}):(this.consumeBadUrlRemnants(),lo)}for(;;){var f=this.consumeCodePoint();if(f===We||f===jn)return{type:22,value:m.apply(void 0,i)};if(io(f))return this.consumeWhiteSpace(),this.peekCodePoint(0)===We||this.peekCodePoint(0)===jn?(this.consumeCodePoint(),{type:22,value:m.apply(void 0,i)}):(this.consumeBadUrlRemnants(),lo);if(f===to||f===no||f===ro||gC(f))return this.consumeBadUrlRemnants(),lo;if(f===Jn)if(Ct(f,this.peekCodePoint(0)))i.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),lo;else i.push(f)}},s.prototype.consumeWhiteSpace=function(){for(;io(this.peekCodePoint(0));)this.consumeCodePoint()},s.prototype.consumeBadUrlRemnants=function(){for(;;){var i=this.consumeCodePoint();if(i===jn||i===We)return;Ct(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===We||f===void 0||f===i)return c+=this.consumeStringSlice(l),{type:0,value:c};if(f===eo)return this._value.splice(0,l),bC;if(f===Jn){var p=this._value[l+1];p!==We&&p!==void 0&&(p===eo?(c+=this.consumeStringSlice(l),l=-1,this._value.shift()):Ct(f,p)&&(c+=this.consumeStringSlice(l),c+=m(this.consumeEscapedCodePoint()),l=-1))}l++}while(!0)},s.prototype.consumeNumber=function(){var i=[],c=Wn,l=this.peekCodePoint(0);for((l===Rt||l===ve)&&i.push(this.consumeCodePoint());Be(this.peekCodePoint(0));)i.push(this.consumeCodePoint());l=this.peekCodePoint(0);var f=this.peekCodePoint(1);if(l===qn&&Be(f))for(i.push(this.consumeCodePoint(),this.consumeCodePoint()),c=Rl;Be(this.peekCodePoint(0));)i.push(this.consumeCodePoint());l=this.peekCodePoint(0),f=this.peekCodePoint(1);var p=this.peekCodePoint(2);if((l===Wl||l===$l)&&((f===Rt||f===ve)&&Be(p)||Be(f)))for(i.push(this.consumeCodePoint(),this.consumeCodePoint()),c=Rl;Be(this.peekCodePoint(0));)i.push(this.consumeCodePoint());return[hC(i),c]},s.prototype.consumeNumericToken=function(){var i=this.consumeNumber(),c=i[0],l=i[1],f=this.peekCodePoint(0);return ao(f,this.peekCodePoint(1),this.peekCodePoint(2))?{type:15,number:c,flags:l,unit:this.consumeName()}:f===T0?(this.consumeCodePoint(),{type:16,number:c,flags:l}):{type:17,number:c,flags:l}},s.prototype.consumeEscapedCodePoint=function(){var i=this.consumeCodePoint();if(un(i)){for(var c=m(i);un(this.peekCodePoint(0))&&c.length<6;)c+=m(this.consumeCodePoint());io(this.peekCodePoint(0))&&this.consumeCodePoint();var l=parseInt(c,16);return l===0||lC(l)||l>1114111?Gl:l}return i===We?Gl:i},s.prototype.consumeName=function(){for(var i="";;){var c=this.consumeCodePoint();if(Zl(c))i+=m(c);else if(Ct(c,this.peekCodePoint(0)))i+=m(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(c),i}},s})(),ql=(function(){function s(i){this._tokens=i}return s.create=function(i){var c=new jl;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||TC(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"?ki:i},s.prototype.reconsumeToken=function(i){this._tokens.unshift(i)},s})(),Ar=function(s){return s.type===15},dn=function(s){return s.type===17},YA=function(s){return s.type===20},LC=function(s){return s.type===0},Mi=function(s,i){return YA(s)&&s.value===i},Ac=function(s){return s.type!==31},fn=function(s){return s.type!==31&&s.type!==4},Je=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},TC=function(s,i){return i===11&&s.type===12||i===28&&s.type===29?!0:i===2&&s.type===3},vt=function(s){return s.type===17||s.type===15},ae=function(s){return s.type===16||vt(s)},ec=function(s){return s.length>1?[s[0],s[1]]:[s[0]]},fe={type:17,number:0,flags:Wn},Oi={type:16,number:50,flags:Wn},yt={type:16,number:100,flags:Wn},er=function(s,i,c){var l=s[0],f=s[1];return[ZA(l,i),ZA(typeof f<"u"?f:l,c)]},ZA=function(s,i){if(s.type===16)return s.number/100*i;if(Ar(s))switch(s.unit){case"rem":case"em":return 16*s.number;default:return s.number}return s.number},tc="deg",nc="grad",rc="rad",oc="turn",co={name:"angle",parse:function(s,i){if(i.type===15)switch(i.unit){case tc:return Math.PI*i.number/180;case nc:return Math.PI/200*i.number;case rc:return i.number;case oc:return Math.PI*2*i.number}throw new Error("Unsupported angle type")}},ic=function(s){return s.type===15&&(s.unit===tc||s.unit===nc||s.unit===rc||s.unit===oc)},sc=function(s){switch(s.filter(YA).map(function(i){return i.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[fe,fe];case"to top":case"bottom":return Se(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[fe,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,fe];case"to left":case"right":return Se(270)}return 0},Se=function(s){return Math.PI*s/180},Qt={name:"color",parse:function(s,i){if(i.type===18){var c=kC[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 Ft(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 Ft(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 Ft(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 Ft(parseInt(l,16),parseInt(f,16),parseInt(p,16),parseInt(C,16)/255)}}if(i.type===20){var Q=at[i.value.toUpperCase()];if(typeof Q<"u")return Q}return at.TRANSPARENT}},Et=function(s){return(255&s)===0},de=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+")"},Ft=function(s,i,c,l){return(s<<24|i<<16|c<<8|Math.round(l*255)<<0)>>>0},ac=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},lc=function(s,i){var c=i.filter(fn);if(c.length===3){var l=c.map(ac),f=l[0],p=l[1],C=l[2];return Ft(f,p,C,1)}if(c.length===4){var Q=c.map(ac),f=Q[0],p=Q[1],C=Q[2],E=Q[3];return Ft(f,p,C,E)}return 0};function Ki(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 cc=function(s,i){var c=i.filter(fn),l=c[0],f=c[1],p=c[2],C=c[3],Q=(l.type===17?Se(l.number):co.parse(s,l))/(Math.PI*2),E=ae(f)?f.number/100:0,M=ae(p)?p.number/100:0,R=typeof C<"u"&&ae(C)?ZA(C,1):1;if(E===0)return Ft(M*255,M*255,M*255,1);var z=M<=.5?M*(E+1):M+E-M*E,j=M*2-z,CA=Ki(j,z,Q+1/3),BA=Ki(j,z,Q),mA=Ki(j,z,Q-1/3);return Ft(CA*255,BA*255,mA*255,R)},kC={hsl:cc,hsla:cc,rgb:lc,rgba:lc},tr=function(s,i){return Qt.parse(s,ql.create(i).parseComponentValue())},at={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},MC={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(s,i){return i.map(function(c){if(YA(c))switch(c.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},OC={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},uo=function(s,i){var c=Qt.parse(s,i[0]),l=i[1];return l&&ae(l)?{color:c,stop:l}:{color:c,stop:null}},uc=function(s,i){var c=s[0],l=s[s.length-1];c.stop===null&&(c.stop=fe),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=ZA(Q,i);E>p?f.push(E):f.push(p),p=E}else f.push(null)}for(var M=null,C=0;C<f.length;C++){var R=f[C];if(R===null)M===null&&(M=C);else if(M!==null){for(var z=C-M,j=(R-f[M-1])/(z+1),CA=1;CA<=z;CA++)f[M+CA-1]=j*CA;M=null}}return s.map(function(BA,mA){return{color:BA.color,stop:Math.max(Math.min(1,f[mA]/i),0)}})},KC=function(s,i,c){var l=i/2,f=c/2,p=ZA(s[0],i)-l,C=f-ZA(s[1],c);return(Math.atan2(C,p)+Math.PI*2)%(Math.PI*2)},RC=function(s,i,c){var l=typeof s=="number"?s:KC(s,i,c),f=Math.abs(i*Math.sin(l))+Math.abs(c*Math.cos(l)),p=i/2,C=c/2,Q=f/2,E=Math.sin(l-Math.PI/2)*Q,M=Math.cos(l-Math.PI/2)*Q;return[f,p-M,p+M,C-E,C+E]},Re=function(s,i){return Math.sqrt(s*s+i*i)},dc=function(s,i,c,l,f){return[[0,0],[0,i],[s,0],[s,i]].reduce(function(p,C){var Q=C[0],E=C[1],M=Re(c-Q,l-E);return(f?M<p.optimumDistance:M>p.optimumDistance)?{optimumCorner:C,optimumDistance:M}:p},{optimumDistance:f?1/0:-1/0,optimumCorner:null}).optimumCorner},VC=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(Re(i,c),Re(i,c-f),Re(i-l,c),Re(i-l,c-f));else if(s.shape===1){var Q=Math.min(Math.abs(c),Math.abs(c-f))/Math.min(Math.abs(i),Math.abs(i-l)),E=dc(l,f,i,c,!0),M=E[0],R=E[1];p=Re(M-i,(R-c)/Q),C=Q*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(Re(i,c),Re(i,c-f),Re(i-l,c),Re(i-l,c-f));else if(s.shape===1){var Q=Math.max(Math.abs(c),Math.abs(c-f))/Math.max(Math.abs(i),Math.abs(i-l)),z=dc(l,f,i,c,!1),M=z[0],R=z[1];p=Re(M-i,(R-c)/Q),C=Q*p}break}return Array.isArray(s.size)&&(p=ZA(s.size[0],l),C=s.size.length===2?ZA(s.size[1],f):p),[p,C]},PC=function(s,i){var c=Se(180),l=[];return Je(i).forEach(function(f,p){if(p===0){var C=f[0];if(C.type===20&&C.value==="to"){c=sc(f);return}else if(ic(C)){c=co.parse(s,C);return}}var Q=uo(s,f);l.push(Q)}),{angle:c,stops:l,type:1}},fo=function(s,i){var c=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){c=sc(f);return}else if(ic(C)){c=(co.parse(s,C)+Se(270))%Se(360);return}}var Q=uo(s,f);l.push(Q)}),{angle:c,stops:l,type:1}},GC=function(s,i){var c=Se(180),l=[],f=1,p=0,C=3,Q=[];return Je(i).forEach(function(E,M){var R=E[0];if(M===0){if(YA(R)&&R.value==="linear"){f=1;return}else if(YA(R)&&R.value==="radial"){f=2;return}}if(R.type===18){if(R.name==="from"){var z=Qt.parse(s,R.values[0]);l.push({stop:fe,color:z})}else if(R.name==="to"){var z=Qt.parse(s,R.values[0]);l.push({stop:yt,color:z})}else if(R.name==="color-stop"){var j=R.values.filter(fn);if(j.length===2){var z=Qt.parse(s,j[1]),CA=j[0];dn(CA)&&l.push({stop:{type:16,number:CA.number*100,flags:CA.flags},color:z})}}}}),f===1?{angle:(c+Se(180))%Se(360),stops:l,type:f}:{size:C,shape:p,stops:l,position:Q,type:f}},fc="closest-side",gc="farthest-side",hc="closest-corner",Bc="farthest-corner",pc="circle",mc="ellipse",wc="cover",Cc="contain",zC=function(s,i){var c=0,l=3,f=[],p=[];return Je(i).forEach(function(C,Q){var E=!0;if(Q===0){var M=!1;E=C.reduce(function(z,j){if(M)if(YA(j))switch(j.value){case"center":return p.push(Oi),z;case"top":case"left":return p.push(fe),z;case"right":case"bottom":return p.push(yt),z}else(ae(j)||vt(j))&&p.push(j);else if(YA(j))switch(j.value){case pc:return c=0,!1;case mc:return c=1,!1;case"at":return M=!0,!1;case fc:return l=0,!1;case wc:case gc:return l=1,!1;case Cc:case hc:return l=2,!1;case Bc:return l=3,!1}else if(vt(j)||ae(j))return Array.isArray(l)||(l=[]),l.push(j),!1;return z},E)}if(E){var R=uo(s,C);f.push(R)}}),{size:l,shape:c,stops:f,position:p,type:2}},go=function(s,i){var c=0,l=3,f=[],p=[];return Je(i).forEach(function(C,Q){var E=!0;if(Q===0?E=C.reduce(function(R,z){if(YA(z))switch(z.value){case"center":return p.push(Oi),!1;case"top":case"left":return p.push(fe),!1;case"right":case"bottom":return p.push(yt),!1}else if(ae(z)||vt(z))return p.push(z),!1;return R},E):Q===1&&(E=C.reduce(function(R,z){if(YA(z))switch(z.value){case pc:return c=0,!1;case mc:return c=1,!1;case Cc:case fc:return l=0,!1;case gc:return l=1,!1;case hc:return l=2,!1;case wc:case Bc:return l=3,!1}else if(vt(z)||ae(z))return Array.isArray(l)||(l=[]),l.push(z),!1;return R},E)),E){var M=uo(s,C);f.push(M)}}),{size:l,shape:c,stops:f,position:p,type:2}},XC=function(s){return s.type===1},$C=function(s){return s.type===2},Ri={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=vc[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 YC(s){return!(s.type===20&&s.value==="none")&&(s.type!==18||!!vc[s.name])}var vc={"linear-gradient":PC,"-moz-linear-gradient":fo,"-ms-linear-gradient":fo,"-o-linear-gradient":fo,"-webkit-linear-gradient":fo,"radial-gradient":zC,"-moz-radial-gradient":go,"-ms-radial-gradient":go,"-o-radial-gradient":go,"-webkit-radial-gradient":go,"-webkit-gradient":GC},WC={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 fn(l)&&YC(l)}).map(function(l){return Ri.parse(s,l)})}},JC={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(s,i){return i.map(function(c){if(YA(c))switch(c.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ZC={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(s,i){return Je(i).map(function(c){return c.filter(ae)}).map(ec)}},jC={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(s,i){return Je(i).map(function(c){return c.filter(YA).map(function(l){return l.value}).join(" ")}).map(qC)}},qC=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}},gn;(function(s){s.AUTO="auto",s.CONTAIN="contain",s.COVER="cover"})(gn||(gn={}));var Av={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(s,i){return Je(i).map(function(c){return c.filter(ev)})}},ev=function(s){return YA(s)||ae(s)},ho=function(s){return{name:"border-"+s+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},tv=ho("top"),nv=ho("right"),rv=ho("bottom"),ov=ho("left"),Bo=function(s){return{name:"border-radius-"+s,initialValue:"0 0",prefix:!1,type:1,parse:function(i,c){return ec(c.filter(ae))}}},iv=Bo("top-left"),sv=Bo("top-right"),av=Bo("bottom-right"),lv=Bo("bottom-left"),po=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}}},cv=po("top"),uv=po("right"),dv=po("bottom"),fv=po("left"),mo=function(s){return{name:"border-"+s+"-width",initialValue:"0",type:0,prefix:!1,parse:function(i,c){return Ar(c)?c.number:0}}},gv=mo("top"),hv=mo("right"),Bv=mo("bottom"),pv=mo("left"),mv={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},wv={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(s,i){return i==="rtl"?1:0}},Cv={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(s,i){return i.filter(YA).reduce(function(c,l){return c|vv(l.value)},0)}},vv=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},yv={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}},Qv={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}},wo;(function(s){s.NORMAL="normal",s.STRICT="strict"})(wo||(wo={}));var Ev={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){return i==="strict"?wo.STRICT:wo.NORMAL}},Fv={name:"line-height",initialValue:"normal",prefix:!1,type:4},yc=function(s,i){return YA(s)&&s.value==="normal"?1.2*i:s.type===17?i*s.number:ae(s)?ZA(s,i):i},Uv={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(s,i){return i.type===20&&i.value==="none"?null:Ri.parse(s,i)}},bv={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(s,i){return i==="inside"?0:1}},Vi={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}},Hv=Co("top"),Iv=Co("right"),_v=Co("bottom"),Sv=Co("left"),xv={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(s,i){return i.filter(YA).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}})}},Dv={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){return i==="break-word"?"break-word":"normal"}},vo=function(s){return{name:"padding-"+s,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Nv=vo("top"),Lv=vo("right"),Tv=vo("bottom"),kv=vo("left"),Mv={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}}},Ov={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}},Kv={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.length===1&&Mi(i[0],"none")?[]:Je(i).map(function(c){for(var l={color:at.TRANSPARENT,offsetX:fe,offsetY:fe,blur:fe},f=0,p=0;p<c.length;p++){var C=c[p];vt(C)?(f===0?l.offsetX=C:f===1?l.offsetY=C:l.blur=C,f++):l.color=Qt.parse(s,C)}return l})}},Rv={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}},Vv={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}},Pv=function(s){var i=s.filter(function(c){return c.type===17}).map(function(c){return c.number});return i.length===6?i:null},Gv=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],Q=i[13];return i[14],i[15],i.length===16?[c,l,f,p,C,Q]:null},zv={matrix:Pv,matrix3d:Gv},Qc={type:16,number:50,flags:Wn},Xv=[Qc,Qc],$v={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(s,i){var c=i.filter(ae);return c.length!==2?Xv:[c[0],c[1]]}},Yv={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}}},nr;(function(s){s.NORMAL="normal",s.BREAK_ALL="break-all",s.KEEP_ALL="keep-all"})(nr||(nr={}));for(var Wv={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(s,i){switch(i){case"break-all":return nr.BREAK_ALL;case"keep-all":return nr.KEEP_ALL;default:return nr.NORMAL}}},Jv={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(s,i){if(i.type===20)return{auto:!0,order:0};if(dn(i))return{auto:!1,order:i.number};throw new Error("Invalid z-index number parsed")}},Ec={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")}},Zv={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(s,i){return dn(i)?i.number:1}},jv={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},qv={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(s,i){return i.filter(YA).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})}},Ay={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+"'"})}},ey={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ty={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(s,i){return dn(i)?i.number:YA(i)&&i.value==="bold"?700:400}},ny={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.filter(YA).map(function(c){return c.value})}},ry={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"}}},ue=function(s,i){return(s&i)!==0},oy={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}},iy={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(Ac),p=0;p<f.length;p++){var C=f[p],Q=f[p+1];if(C.type===20){var E=Q&&dn(Q)?Q.number:1;l.push({counter:C.value,increment:E})}}return l}},sy={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(s,i){if(i.length===0)return[];for(var c=[],l=i.filter(Ac),f=0;f<l.length;f++){var p=l[f],C=l[f+1];if(YA(p)&&p.value!=="none"){var Q=C&&dn(C)?C.number:0;c.push({counter:p.value,reset:Q})}}return c}},ay={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(s,i){return i.filter(Ar).map(function(c){return Ec.parse(s,c)})}},ly={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(LC);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}},Fc=function(s,i,c){if(!s)return"";var l=s[Math.min(i,s.length-1)];return l?c?l.open:l.close:""},cy={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(s,i){return i.length===1&&Mi(i[0],"none")?[]:Je(i).map(function(c){for(var l={color:255,offsetX:fe,offsetY:fe,blur:fe,spread:fe,inset:!1},f=0,p=0;p<c.length;p++){var C=c[p];Mi(C,"inset")?l.inset=!0:vt(C)?(f===0?l.offsetX=C:f===1?l.offsetY=C:f===2?l.blur=C:l.spread=C,f++):l.color=Qt.parse(s,C)}return l})}},uy={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(s,i){var c=[0,1,2],l=[];return i.filter(YA).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}},dy={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},fy={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(s,i){return Ar(i)?i.number:0}},gy=(function(){function s(i,c){var l,f;this.animationDuration=bA(i,ay,c.animationDuration),this.backgroundClip=bA(i,MC,c.backgroundClip),this.backgroundColor=bA(i,OC,c.backgroundColor),this.backgroundImage=bA(i,WC,c.backgroundImage),this.backgroundOrigin=bA(i,JC,c.backgroundOrigin),this.backgroundPosition=bA(i,ZC,c.backgroundPosition),this.backgroundRepeat=bA(i,jC,c.backgroundRepeat),this.backgroundSize=bA(i,Av,c.backgroundSize),this.borderTopColor=bA(i,tv,c.borderTopColor),this.borderRightColor=bA(i,nv,c.borderRightColor),this.borderBottomColor=bA(i,rv,c.borderBottomColor),this.borderLeftColor=bA(i,ov,c.borderLeftColor),this.borderTopLeftRadius=bA(i,iv,c.borderTopLeftRadius),this.borderTopRightRadius=bA(i,sv,c.borderTopRightRadius),this.borderBottomRightRadius=bA(i,av,c.borderBottomRightRadius),this.borderBottomLeftRadius=bA(i,lv,c.borderBottomLeftRadius),this.borderTopStyle=bA(i,cv,c.borderTopStyle),this.borderRightStyle=bA(i,uv,c.borderRightStyle),this.borderBottomStyle=bA(i,dv,c.borderBottomStyle),this.borderLeftStyle=bA(i,fv,c.borderLeftStyle),this.borderTopWidth=bA(i,gv,c.borderTopWidth),this.borderRightWidth=bA(i,hv,c.borderRightWidth),this.borderBottomWidth=bA(i,Bv,c.borderBottomWidth),this.borderLeftWidth=bA(i,pv,c.borderLeftWidth),this.boxShadow=bA(i,cy,c.boxShadow),this.color=bA(i,mv,c.color),this.direction=bA(i,wv,c.direction),this.display=bA(i,Cv,c.display),this.float=bA(i,yv,c.cssFloat),this.fontFamily=bA(i,Ay,c.fontFamily),this.fontSize=bA(i,ey,c.fontSize),this.fontStyle=bA(i,ry,c.fontStyle),this.fontVariant=bA(i,ny,c.fontVariant),this.fontWeight=bA(i,ty,c.fontWeight),this.letterSpacing=bA(i,Qv,c.letterSpacing),this.lineBreak=bA(i,Ev,c.lineBreak),this.lineHeight=bA(i,Fv,c.lineHeight),this.listStyleImage=bA(i,Uv,c.listStyleImage),this.listStylePosition=bA(i,bv,c.listStylePosition),this.listStyleType=bA(i,Vi,c.listStyleType),this.marginTop=bA(i,Hv,c.marginTop),this.marginRight=bA(i,Iv,c.marginRight),this.marginBottom=bA(i,_v,c.marginBottom),this.marginLeft=bA(i,Sv,c.marginLeft),this.opacity=bA(i,Zv,c.opacity);var p=bA(i,xv,c.overflow);this.overflowX=p[0],this.overflowY=p[p.length>1?1:0],this.overflowWrap=bA(i,Dv,c.overflowWrap),this.paddingTop=bA(i,Nv,c.paddingTop),this.paddingRight=bA(i,Lv,c.paddingRight),this.paddingBottom=bA(i,Tv,c.paddingBottom),this.paddingLeft=bA(i,kv,c.paddingLeft),this.paintOrder=bA(i,uy,c.paintOrder),this.position=bA(i,Ov,c.position),this.textAlign=bA(i,Mv,c.textAlign),this.textDecorationColor=bA(i,jv,(l=c.textDecorationColor)!==null&&l!==void 0?l:c.color),this.textDecorationLine=bA(i,qv,(f=c.textDecorationLine)!==null&&f!==void 0?f:c.textDecoration),this.textShadow=bA(i,Kv,c.textShadow),this.textTransform=bA(i,Rv,c.textTransform),this.transform=bA(i,Vv,c.transform),this.transformOrigin=bA(i,$v,c.transformOrigin),this.visibility=bA(i,Yv,c.visibility),this.webkitTextStrokeColor=bA(i,dy,c.webkitTextStrokeColor),this.webkitTextStrokeWidth=bA(i,fy,c.webkitTextStrokeWidth),this.wordBreak=bA(i,Wv,c.wordBreak),this.zIndex=bA(i,Jv,c.zIndex)}return s.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},s.prototype.isTransparent=function(){return Et(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 ue(this.display,4)||ue(this.display,33554432)||ue(this.display,268435456)||ue(this.display,536870912)||ue(this.display,67108864)||ue(this.display,134217728)},s})(),hy=(function(){function s(i,c){this.content=bA(i,oy,c.content),this.quotes=bA(i,ly,c.quotes)}return s})(),Uc=(function(){function s(i,c){this.counterIncrement=bA(i,iy,c.counterIncrement),this.counterReset=bA(i,sy,c.counterReset)}return s})(),bA=function(s,i,c){var l=new jl,f=c!==null&&typeof c<"u"?c.toString():i.initialValue;l.write(f);var p=new ql(l.read());switch(i.type){case 2:var C=p.parseComponentValue();return i.parse(s,YA(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 co.parse(s,p.parseComponentValue());case"color":return Qt.parse(s,p.parseComponentValue());case"image":return Ri.parse(s,p.parseComponentValue());case"length":var Q=p.parseComponentValue();return vt(Q)?Q:fe;case"length-percentage":var E=p.parseComponentValue();return ae(E)?E:fe;case"time":return Ec.parse(s,p.parseComponentValue())}break}},By="data-html2canvas-debug",py=function(s){switch(s.getAttribute(By)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Pi=function(s,i){var c=py(s);return c===1||i===c},Ze=(function(){function s(i,c){if(this.context=i,this.textNodes=[],this.elements=[],this.flags=0,Pi(c,3))debugger;this.styles=new gy(i,window.getComputedStyle(c,null)),ns(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),Pi(c,4)&&(this.flags|=16)}return s})(),my="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1B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gACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBl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IAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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s.length-1]==="="&&(i--,s[s.length-2]==="="&&i--);var M=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(i):new Array(i),R=Array.isArray(M)?M:new Uint8Array(M);for(l=0;l<c;l+=4)p=rr[s.charCodeAt(l)],C=rr[s.charCodeAt(l+1)],Q=rr[s.charCodeAt(l+2)],E=rr[s.charCodeAt(l+3)],R[f++]=p<<2|C>>4,R[f++]=(C&15)<<4|Q>>2,R[f++]=(Q&3)<<6|E&63;return M},Cy=function(s){for(var i=s.length,c=[],l=0;l<i;l+=2)c.push(s[l+1]<<8|s[l]);return c},vy=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},Vt=5,Gi=11,zi=2,yy=Gi-Vt,Hc=65536>>Vt,Xi=(1<<Vt)-1,Qy=Hc+(1024>>Vt)+32,Ey=65536>>Gi,Fy=(1<<yy)-1,Ic=function(s,i,c){return s.slice?s.slice(i,c):new Uint16Array(Array.prototype.slice.call(s,i,c))},Uy=function(s,i,c){return s.slice?s.slice(i,c):new Uint32Array(Array.prototype.slice.call(s,i,c))},by=function(s,i){var c=wy(s),l=Array.isArray(c)?vy(c):new Uint32Array(c),f=Array.isArray(c)?Cy(c):new Uint16Array(c),p=24,C=Ic(f,p/2,l[4]/2),Q=l[5]===2?Ic(f,(p+l[4])/2):Uy(l,Math.ceil((p+l[4])/4));return new Hy(l[0],l[1],l[2],l[3],C,Q)},Hy=(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>>Vt],c=(c<<zi)+(i&Xi),this.data[c];if(i<=65535)return c=this.index[Hc+(i-55296>>Vt)],c=(c<<zi)+(i&Xi),this.data[c];if(i<this.highStart)return c=Qy-Ey+(i>>Gi),c=this.index[c],c+=i>>Vt&Fy,c=this.index[c],c=(c<<zi)+(i&Xi),this.data[c];if(i<=1114111)return this.data[this.highValueIndex]}return this.errorValue},s})(),_c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Iy=typeof Uint8Array>"u"?[]:new Uint8Array(256),Qo=0;Qo<_c.length;Qo++)Iy[_c.charCodeAt(Qo)]=Qo;var _y=1,$i=2,Yi=3,Sc=4,xc=5,Sy=7,Dc=8,Wi=9,Ji=10,Nc=11,Lc=12,Tc=13,kc=14,Zi=15,xy=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},Dy=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},Ny=by(my),xe="×",ji="÷",Ly=function(s){return Ny.get(s)},Ty=function(s,i,c){var l=c-2,f=i[l],p=i[c-1],C=i[c];if(p===$i&&C===Yi)return xe;if(p===$i||p===Yi||p===Sc||C===$i||C===Yi||C===Sc)return ji;if(p===Dc&&[Dc,Wi,Nc,Lc].indexOf(C)!==-1||(p===Nc||p===Wi)&&(C===Wi||C===Ji)||(p===Lc||p===Ji)&&C===Ji||C===Tc||C===xc||C===Sy||p===_y)return xe;if(p===Tc&&C===kc){for(;f===xc;)f=i[--l];if(f===kc)return xe}if(p===Zi&&C===Zi){for(var Q=0;f===Zi;)Q++,f=i[--l];if(Q%2===0)return xe}return ji},ky=function(s){var i=xy(s),c=i.length,l=0,f=0,p=i.map(Ly);return{next:function(){if(l>=c)return{done:!0,value:null};for(var C=xe;l<c&&(C=Ty(i,p,++l))===xe;);if(C!==xe||l===c){var Q=Dy.apply(null,i.slice(f,l));return f=l,{value:Q,done:!1}}return{done:!0,value:null}}}},My=function(s){for(var i=ky(s),c=[],l;!(l=i.next()).done;)l.value&&c.push(l.value.slice());return c},Oy=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},Ky=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={},Q=f.every(function(E,M){c.setStart(l,p),c.setEnd(l,p+E.length);var R=c.getBoundingClientRect();p+=E.length;var z=R.x>C.x||R.y>C.y;return C=R,M===0?!0:z});return s.body.removeChild(i),Q},Ry=function(){return typeof new Image().crossOrigin<"u"},Vy=function(){return typeof new XMLHttpRequest().responseType=="string"},Py=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},Mc=function(s){return s[0]===0&&s[1]===255&&s[2]===0&&s[3]===255},Gy=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=qi(c,c,0,0,f);return l.fillStyle="red",l.fillRect(0,0,c,c),Oc(C).then(function(Q){l.drawImage(Q,0,0);var E=l.getImageData(0,0,c,c).data;l.fillStyle="red",l.fillRect(0,0,c,c);var M=s.createElement("div");return M.style.backgroundImage="url("+p+")",M.style.height=c+"px",Mc(E)?Oc(qi(c,c,0,0,M)):Promise.reject(!1)}).then(function(Q){return l.drawImage(Q,0,0),Mc(l.getImageData(0,0,c,c).data)}).catch(function(){return!1})},qi=function(s,i,c,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",c.toString()),Q.setAttributeNS(null,"y",l.toString()),Q.setAttributeNS(null,"externalResourcesRequired","true"),C.appendChild(Q),Q.appendChild(f),C},Oc=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))})},ge={get SUPPORT_RANGE_BOUNDS(){var s=Oy(document);return Object.defineProperty(ge,"SUPPORT_RANGE_BOUNDS",{value:s}),s},get SUPPORT_WORD_BREAKING(){var s=ge.SUPPORT_RANGE_BOUNDS&&Ky(document);return Object.defineProperty(ge,"SUPPORT_WORD_BREAKING",{value:s}),s},get SUPPORT_SVG_DRAWING(){var s=Py(document);return Object.defineProperty(ge,"SUPPORT_SVG_DRAWING",{value:s}),s},get SUPPORT_FOREIGNOBJECT_DRAWING(){var s=typeof Array.from=="function"&&typeof window.fetch=="function"?Gy(document):Promise.resolve(!1);return Object.defineProperty(ge,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:s}),s},get SUPPORT_CORS_IMAGES(){var s=Ry();return Object.defineProperty(ge,"SUPPORT_CORS_IMAGES",{value:s}),s},get SUPPORT_RESPONSE_TYPE(){var s=Vy();return Object.defineProperty(ge,"SUPPORT_RESPONSE_TYPE",{value:s}),s},get SUPPORT_CORS_XHR(){var s="withCredentials"in new XMLHttpRequest;return Object.defineProperty(ge,"SUPPORT_CORS_XHR",{value:s}),s},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var s=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(ge,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:s}),s}},or=(function(){function s(i,c){this.text=i,this.bounds=c}return s})(),zy=function(s,i,c,l){var f=Yy(i,c),p=[],C=0;return f.forEach(function(Q){if(c.textDecorationLine.length||Q.trim().length>0)if(ge.SUPPORT_RANGE_BOUNDS){var E=Kc(l,C,Q.length).getClientRects();if(E.length>1){var M=As(Q),R=0;M.forEach(function(j){p.push(new or(j,h.fromDOMRectList(s,Kc(l,R+C,j.length).getClientRects()))),R+=j.length})}else p.push(new or(Q,h.fromDOMRectList(s,E)))}else{var z=l.splitText(Q.length);p.push(new or(Q,Xy(s,l))),l=z}else ge.SUPPORT_RANGE_BOUNDS||(l=l.splitText(Q.length));C+=Q.length}),p},Xy=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},Kc=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},As=function(s){if(ge.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 My(s)},$y=function(s,i){if(ge.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 Jy(s,i)},Yy=function(s,i){return i.letterSpacing!==0?As(s):$y(s,i)},Wy=[32,160,4961,65792,65793,4153,4241],Jy=function(s,i){for(var c=I0(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){Wy.indexOf(E)===-1?Q+=m(E):(Q.length&&l.push(Q),l.push(m(E)),Q="")}),Q.length&&l.push(Q)}};!(f=c.next()).done;)p();return l},Zy=(function(){function s(i,c,l){this.text=jy(c.data,l.textTransform),this.textBounds=zy(i,this.text,l,c)}return s})(),jy=function(s,i){switch(i){case 1:return s.toLowerCase();case 3:return s.replace(qy,AQ);case 2:return s.toUpperCase();default:return s}},qy=/(^|\s|:|-|\(|\))([a-z])/g,AQ=function(s,i,c){return s.length>0?i+c.toUpperCase():s},Rc=(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})(Ze),Vc=(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})(Ze),Pc=(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})(Ze),Gc=(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})(Ze),es=(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})(Ze),eQ=[{type:15,flags:0,unit:"px",number:3}],tQ=[{type:16,flags:0,number:50}],nQ=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},rQ=function(s){var i=s.type===oQ?new Array(s.value.length+1).join("•"):s.value;return i.length===0?s.placeholder||"":i},Eo="checkbox",Fo="radio",oQ="password",zc=707406591,ts=(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=rQ(l),(f.type===Eo||f.type===Fo)&&(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=nQ(f.bounds)),f.type){case Eo:f.styles.borderTopRightRadius=f.styles.borderTopLeftRadius=f.styles.borderBottomRightRadius=f.styles.borderBottomLeftRadius=eQ;break;case Fo:f.styles.borderTopRightRadius=f.styles.borderTopLeftRadius=f.styles.borderBottomRightRadius=f.styles.borderBottomLeftRadius=tQ;break}return f}return i})(Ze),Xc=(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})(Ze),$c=(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})(Ze),Yc=(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=Jc(c,l.contentWindow.document.documentElement);var p=l.contentWindow.document.documentElement?tr(c,getComputedStyle(l.contentWindow.document.documentElement).backgroundColor):at.TRANSPARENT,C=l.contentWindow.document.body?tr(c,getComputedStyle(l.contentWindow.document.body).backgroundColor):at.TRANSPARENT;f.backgroundColor=Et(p)?Et(C)?f.styles.backgroundColor:C:p}}catch{}return f}return i})(Ze),iQ=["OL","UL","MENU"],Uo=function(s,i,c,l){for(var f=i.firstChild,p=void 0;f;f=p)if(p=f.nextSibling,Zc(f)&&f.data.trim().length>0)c.textNodes.push(new Zy(s,f,c.styles));else if(hn(f))if(nu(f)&&f.assignedNodes)f.assignedNodes().forEach(function(Q){return Uo(s,Q,c,l)});else{var C=Wc(s,f);C.styles.isVisible()&&(sQ(f,C,l)?C.flags|=4:aQ(C.styles)&&(C.flags|=2),iQ.indexOf(f.tagName)!==-1&&(C.flags|=8),c.elements.push(C),f.slot,f.shadowRoot?Uo(s,f.shadowRoot,C,l):!Ho(f)&&!jc(f)&&!Io(f)&&Uo(s,f,C,l))}},Wc=function(s,i){return os(i)?new Rc(s,i):qc(i)?new Vc(s,i):jc(i)?new Pc(s,i):lQ(i)?new Gc(s,i):cQ(i)?new es(s,i):uQ(i)?new ts(s,i):Io(i)?new Xc(s,i):Ho(i)?new $c(s,i):eu(i)?new Yc(s,i):new Ze(s,i)},Jc=function(s,i){var c=Wc(s,i);return c.flags|=4,Uo(s,i,c,c),c},sQ=function(s,i,c){return i.styles.isPositionedWithZIndex()||i.styles.opacity<1||i.styles.isTransformed()||rs(s)&&c.styles.isTransparent()},aQ=function(s){return s.isPositioned()||s.isFloating()},Zc=function(s){return s.nodeType===Node.TEXT_NODE},hn=function(s){return s.nodeType===Node.ELEMENT_NODE},ns=function(s){return hn(s)&&typeof s.style<"u"&&!bo(s)},bo=function(s){return typeof s.className=="object"},lQ=function(s){return s.tagName==="LI"},cQ=function(s){return s.tagName==="OL"},uQ=function(s){return s.tagName==="INPUT"},dQ=function(s){return s.tagName==="HTML"},jc=function(s){return s.tagName==="svg"},rs=function(s){return s.tagName==="BODY"},qc=function(s){return s.tagName==="CANVAS"},Au=function(s){return s.tagName==="VIDEO"},os=function(s){return s.tagName==="IMG"},eu=function(s){return s.tagName==="IFRAME"},tu=function(s){return s.tagName==="STYLE"},fQ=function(s){return s.tagName==="SCRIPT"},Ho=function(s){return s.tagName==="TEXTAREA"},Io=function(s){return s.tagName==="SELECT"},nu=function(s){return s.tagName==="SLOT"},ru=function(s){return s.tagName.indexOf("-")>0},gQ=(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(Q){var E=c.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=c.counters[Q.counter];C.push(Q.counter),E||(E=c.counters[Q.counter]=[]),E.push(Q.reset)}),C},s})(),ou={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"]},iu={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},hQ={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},BQ={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Bn=function(s,i,c,l,f,p){return s<i||s>c?sr(s,f,p.length>0):l.integers.reduce(function(C,Q,E){for(;s>=Q;)s-=Q,C+=l.values[E];return C},"")+p},su=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?"-":"")+(su(Math.abs(s),p,l,function(C){return m(Math.floor(C%p)+i)})+f)},Pt=function(s,i,c){c===void 0&&(c=". ");var l=i.length;return su(Math.abs(s),l,!1,function(f){return i[Math.floor(f%l)]})+c},pn=1,Ut=2,bt=4,ir=8,lt=function(s,i,c,l,f,p){if(s<-9999||s>9999)return sr(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 M=C%10;M===0&&ue(p,pn)&&Q!==""?Q=i[M]+Q:M>1||M===1&&E===0||M===1&&E===1&&ue(p,Ut)||M===1&&E===1&&ue(p,bt)&&s>100||M===1&&E>1&&ue(p,ir)?Q=i[M]+(E>0?c[E-1]:"")+Q:M===1&&E>0&&(Q=c[E-1]+Q),C=Math.floor(C/10)}return(s<0?l:"")+Q},au="十百千萬",lu="拾佰仟萬",cu="マイナス",is="마이너스",sr=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 Q=oe(s,48,57,!0,l);return Q.length<4?"0"+Q:Q;case 4:return Pt(s,"〇一二三四五六七八九",f);case 6:return Bn(s,1,3999,ou,3,l).toLowerCase();case 7:return Bn(s,1,3999,ou,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 Bn(s,1,9999,iu,3,l);case 35:return Bn(s,1,9999,iu,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 Pt(s,"子丑寅卯辰巳午未申酉戌亥",f);case 16:return Pt(s,"甲乙丙丁戊己庚辛壬癸",f);case 17:case 48:return lt(s,"零一二三四五六七八九",au,"負",f,Ut|bt|ir);case 47:return lt(s,"零壹貳參肆伍陸柒捌玖",lu,"負",f,pn|Ut|bt|ir);case 42:return lt(s,"零一二三四五六七八九",au,"负",f,Ut|bt|ir);case 41:return lt(s,"零壹贰叁肆伍陆柒捌玖",lu,"负",f,pn|Ut|bt|ir);case 26:return lt(s,"〇一二三四五六七八九","十百千万",cu,f,0);case 25:return lt(s,"零壱弐参四伍六七八九","拾百千万",cu,f,pn|Ut|bt);case 31:return lt(s,"영일이삼사오육칠팔구","십백천만",is,p,pn|Ut|bt);case 33:return lt(s,"零一二三四五六七八九","十百千萬",is,p,0);case 32:return lt(s,"零壹貳參四五六七八九","拾百千",is,p,pn|Ut|bt);case 18:return oe(s,2406,2415,!0,l);case 20:return Bn(s,1,19999,BQ,3,l);case 21:return oe(s,2790,2799,!0,l);case 22:return oe(s,2662,2671,!0,l);case 22:return Bn(s,1,10999,hQ,3,l);case 23:return Pt(s,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Pt(s,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return oe(s,3302,3311,!0,l);case 28:return Pt(s,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",f);case 29:return Pt(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)}},uu="data-html2canvas-ignore",du=(function(){function s(i,c,l){if(this.context=i,this.options=l,this.scrolledElements=[],this.referenceElement=c,this.counters=new gQ,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=pQ(i,c);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,M=CQ(f).then(function(){return a(l,void 0,void 0,function(){var R,z;return u(this,function(j){switch(j.label){case 0:return this.scrolledElements.forEach(EQ),Q&&(Q.scrollTo(c.left,c.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(Q.scrollY!==c.top||Q.scrollX!==c.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(Q.scrollX-c.left,Q.scrollY-c.top,0,0))),R=this.options.onclone,z=this.clonedReferenceElement,typeof z>"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,wQ(E)]:[3,4];case 3:j.sent(),j.label=4;case 4:return typeof R=="function"?[2,Promise.resolve().then(function(){return R(E,z)}).then(function(){return f})]:[2,f]}})})});return E.open(),E.write(yQ(document.doctype)+"<html></html>"),QQ(this.referenceElement.ownerDocument,p,C),E.replaceChild(E.adoptNode(this.documentElement),E.documentElement),E.close(),M},s.prototype.createElementClone=function(i){if(Pi(i,2))debugger;if(qc(i))return this.createCanvasClone(i);if(Au(i))return this.createVideoClone(i);if(tu(i))return this.createStyleClone(i);var c=i.cloneNode(!1);return os(c)&&(os(i)&&i.currentSrc&&i.currentSrc!==i.src&&(c.src=i.currentSrc,c.srcset=""),c.loading==="lazy"&&(c.loading="eager")),ru(c)?this.createCustomElementClone(c):c},s.prototype.createCustomElementClone=function(i){var c=document.createElement("html2canvascustomelement");return ss(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 Q=(c=i.getContext("webgl2"))!==null&&c!==void 0?c: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 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){(!hn(c)||!fQ(c)&&!c.hasAttribute(uu)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(c)))&&(!this.options.copyStyles||!hn(c)||!tu(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(hn(p)&&nu(p)&&typeof p.assignedNodes=="function"){var C=p.assignedNodes();C.length&&C.forEach(function(Q){return f.appendChildNode(c,Q,l)})}else this.appendChildNode(c,p,l)},s.prototype.cloneNode=function(i,c){if(Zc(i))return document.createTextNode(i.data);if(!i.ownerDocument)return i.cloneNode(!1);var l=i.ownerDocument.defaultView;if(l&&hn(i)&&(ns(i)||bo(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&&ns(f)&&(this.clonedReferenceElement=f),rs(f)&&bQ(f);var E=this.counters.parse(new Uc(this.context,p)),M=this.resolvePseudoContent(i,f,C,ar.BEFORE);ru(i)&&(c=!0),Au(i)||this.cloneChildNodes(i,f,c),M&&f.insertBefore(M,f.firstChild);var R=this.resolvePseudoContent(i,f,Q,ar.AFTER);return R&&f.appendChild(R),this.counters.pop(E),(p&&(this.options.copyStyles||bo(i))&&!eu(i)||c)&&ss(p,f),(i.scrollTop!==0||i.scrollLeft!==0)&&this.scrolledElements.push([f,i.scrollLeft,i.scrollTop]),(Ho(i)||Io(i))&&(Ho(f)||Io(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,Q=c.ownerDocument;if(!(!Q||!C||C==="none"||C==="-moz-alt-content"||l.display==="none")){this.counters.parse(new Uc(this.context,l));var E=new hy(this.context,l),M=Q.createElement("html2canvaspseudoelement");ss(l,M),E.content.forEach(function(z){if(z.type===0)M.appendChild(Q.createTextNode(z.value));else if(z.type===22){var j=Q.createElement("img");j.src=z.value,j.style.opacity="1",M.appendChild(j)}else if(z.type===18){if(z.name==="attr"){var CA=z.values.filter(YA);CA.length&&M.appendChild(Q.createTextNode(i.getAttribute(CA[0].value)||""))}else if(z.name==="counter"){var BA=z.values.filter(fn),mA=BA[0],RA=BA[1];if(mA&&YA(mA)){var xA=p.counters.getCounterValue(mA.value),SA=RA&&YA(RA)?Vi.parse(p.context,RA.value):3;M.appendChild(Q.createTextNode(sr(xA,SA,!1)))}}else if(z.name==="counters"){var Ae=z.values.filter(fn),mA=Ae[0],GA=Ae[1],RA=Ae[2];if(mA&&YA(mA)){var TA=p.counters.getCounterValues(mA.value),UA=RA&&YA(RA)?Vi.parse(p.context,RA.value):3,VA=GA&&GA.type===0?GA.value:"",PA=TA.map(function(ye){return sr(ye,UA,!1)}).join(VA);M.appendChild(Q.createTextNode(PA))}}}else if(z.type===20)switch(z.value){case"open-quote":M.appendChild(Q.createTextNode(Fc(E.quotes,p.quoteDepth++,!0)));break;case"close-quote":M.appendChild(Q.createTextNode(Fc(E.quotes,--p.quoteDepth,!1)));break;default:M.appendChild(Q.createTextNode(z.value))}}),M.className=as+" "+ls;var R=f===ar.BEFORE?" "+as:" "+ls;return bo(c)?c.className.baseValue+=R:c.className+=R,M}}},s.destroy=function(i){return i.parentNode?(i.parentNode.removeChild(i),!0):!1},s})(),ar;(function(s){s[s.BEFORE=0]="BEFORE",s[s.AFTER=1]="AFTER"})(ar||(ar={}));var pQ=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(uu,"true"),s.body.appendChild(c),c},mQ=function(s){return new Promise(function(i){if(s.complete){i();return}if(!s.src){i();return}s.onload=i,s.onerror=i})},wQ=function(s){return Promise.all([].slice.call(s.images,0).map(mQ))},CQ=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)}})},vQ=["all","d","content"],ss=function(s,i){for(var c=s.length-1;c>=0;c--){var l=s.item(c);vQ.indexOf(l)===-1&&i.style.setProperty(l,s.getPropertyValue(l))}return i},yQ=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},QQ=function(s,i,c){s&&s.defaultView&&(i!==s.defaultView.pageXOffset||c!==s.defaultView.pageYOffset)&&s.defaultView.scrollTo(i,c)},EQ=function(s){var i=s[0],c=s[1],l=s[2];i.scrollLeft=c,i.scrollTop=l},FQ=":before",UQ=":after",as="___html2canvas___pseudoelement_before",ls="___html2canvas___pseudoelement_after",fu=`{
|
|
32
32
|
content: "" !important;
|
|
33
33
|
display: none !important;
|
|
34
|
-
}`,bQ=function(s){HQ(s,"."+as+FQ+
|
|
35
|
-
.`+ls+UQ+du)},HQ=function(s,i){var c=s.ownerDocument;if(c){var l=c.createElement("style");l.textContent=i,s.appendChild(l)}},fu=(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})(),IQ=(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)||(us(i)||DQ(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(Q){switch(Q.label){case 0:return c=fu.isSameOrigin(i),l=!cs(i)&&this._options.useCORS===!0&&ge.SUPPORT_CORS_IMAGES&&!c,f=!cs(i)&&!c&&!us(i)&&typeof this._options.proxy=="string"&&ge.SUPPORT_CORS_XHR&&!l,!c&&this._options.allowTaint===!1&&!cs(i)&&!us(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,M){var R=new Image;R.onload=function(){return E(R)},R.onerror=M,(NQ(p)||l)&&(R.crossOrigin="anonymous"),R.src=p,R.complete===!0&&setTimeout(function(){return E(R)},500),C._options.imageTimeout>0&&setTimeout(function(){return M("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 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 Q=ge.SUPPORT_RESPONSE_TYPE?"blob":"text",E=new XMLHttpRequest;E.onload=function(){if(E.status===200)if(Q==="text")p(E.response);else{var z=new FileReader;z.addEventListener("load",function(){return p(z.result)},!1),z.addEventListener("error",function(j){return C(j)},!1),z.readAsDataURL(E.response)}else C("Failed to proxy resource "+f+" with status code "+E.status)},E.onerror=C;var M=l.indexOf("?")>-1?"&":"?";if(E.open("GET",""+l+M+"url="+encodeURIComponent(i)+"&responseType="+Q),Q!=="text"&&E instanceof XMLHttpRequest&&(E.responseType=Q),c._options.imageTimeout){var R=c._options.imageTimeout;E.timeout=R,E.ontimeout=function(){return C("Timed out ("+R+"ms) proxying "+f)}}E.send()})},s})(),_Q=/^data:image\/svg\+xml/i,SQ=/^data:image\/.*;base64,/i,xQ=/^data:image\/.*/i,DQ=function(s){return ge.SUPPORT_SVG_DRAWING||!LQ(s)},cs=function(s){return xQ.test(s)},NQ=function(s){return SQ.test(s)},us=function(s){return s.substr(0,4)==="blob"},LQ=function(s){return s.substr(-3).toLowerCase()==="svg"||_Q.test(s)},vA=(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})(),mn=function(s,i,c){return new vA(s.x+(i.x-s.x)*c,s.y+(i.y-s.y)*c)},So=(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=mn(this.start,this.startControl,i),f=mn(this.startControl,this.endControl,i),p=mn(this.endControl,this.end,i),C=mn(l,f,i),Q=mn(f,p,i),E=mn(C,Q,i);return c?new s(this.start,l,C,E):new s(E,Q,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})(),De=function(s){return s.type===1},TQ=(function(){function s(i){var c=i.styles,l=i.bounds,f=Ar(c.borderTopLeftRadius,l.width,l.height),p=f[0],C=f[1],Q=Ar(c.borderTopRightRadius,l.width,l.height),E=Q[0],M=Q[1],R=Ar(c.borderBottomRightRadius,l.width,l.height),z=R[0],j=R[1],CA=Ar(c.borderBottomLeftRadius,l.width,l.height),hA=CA[0],mA=CA[1],RA=[];RA.push((p+E)/l.width),RA.push((hA+z)/l.width),RA.push((C+mA)/l.height),RA.push((M+j)/l.height);var DA=Math.max.apply(Math,RA);DA>1&&(p/=DA,C/=DA,E/=DA,M/=DA,z/=DA,j/=DA,hA/=DA,mA/=DA);var xA=l.width-E,Ae=l.height-j,GA=l.width-z,kA=l.height-mA,UA=c.borderTopWidth,VA=c.borderRightWidth,PA=c.borderBottomWidth,MA=c.borderLeftWidth,le=ZA(c.paddingTop,i.bounds.width),ye=ZA(c.paddingRight,i.bounds.width),Ie=ZA(c.paddingBottom,i.bounds.width),WA=ZA(c.paddingLeft,i.bounds.width);this.topLeftBorderDoubleOuterBox=p>0||C>0?te(l.left+MA/3,l.top+UA/3,p-MA/3,C-UA/3,zA.TOP_LEFT):new vA(l.left+MA/3,l.top+UA/3),this.topRightBorderDoubleOuterBox=p>0||C>0?te(l.left+xA,l.top+UA/3,E-VA/3,M-UA/3,zA.TOP_RIGHT):new vA(l.left+l.width-VA/3,l.top+UA/3),this.bottomRightBorderDoubleOuterBox=z>0||j>0?te(l.left+GA,l.top+Ae,z-VA/3,j-PA/3,zA.BOTTOM_RIGHT):new vA(l.left+l.width-VA/3,l.top+l.height-PA/3),this.bottomLeftBorderDoubleOuterBox=hA>0||mA>0?te(l.left+MA/3,l.top+kA,hA-MA/3,mA-PA/3,zA.BOTTOM_LEFT):new vA(l.left+MA/3,l.top+l.height-PA/3),this.topLeftBorderDoubleInnerBox=p>0||C>0?te(l.left+MA*2/3,l.top+UA*2/3,p-MA*2/3,C-UA*2/3,zA.TOP_LEFT):new vA(l.left+MA*2/3,l.top+UA*2/3),this.topRightBorderDoubleInnerBox=p>0||C>0?te(l.left+xA,l.top+UA*2/3,E-VA*2/3,M-UA*2/3,zA.TOP_RIGHT):new vA(l.left+l.width-VA*2/3,l.top+UA*2/3),this.bottomRightBorderDoubleInnerBox=z>0||j>0?te(l.left+GA,l.top+Ae,z-VA*2/3,j-PA*2/3,zA.BOTTOM_RIGHT):new vA(l.left+l.width-VA*2/3,l.top+l.height-PA*2/3),this.bottomLeftBorderDoubleInnerBox=hA>0||mA>0?te(l.left+MA*2/3,l.top+kA,hA-MA*2/3,mA-PA*2/3,zA.BOTTOM_LEFT):new vA(l.left+MA*2/3,l.top+l.height-PA*2/3),this.topLeftBorderStroke=p>0||C>0?te(l.left+MA/2,l.top+UA/2,p-MA/2,C-UA/2,zA.TOP_LEFT):new vA(l.left+MA/2,l.top+UA/2),this.topRightBorderStroke=p>0||C>0?te(l.left+xA,l.top+UA/2,E-VA/2,M-UA/2,zA.TOP_RIGHT):new vA(l.left+l.width-VA/2,l.top+UA/2),this.bottomRightBorderStroke=z>0||j>0?te(l.left+GA,l.top+Ae,z-VA/2,j-PA/2,zA.BOTTOM_RIGHT):new vA(l.left+l.width-VA/2,l.top+l.height-PA/2),this.bottomLeftBorderStroke=hA>0||mA>0?te(l.left+MA/2,l.top+kA,hA-MA/2,mA-PA/2,zA.BOTTOM_LEFT):new vA(l.left+MA/2,l.top+l.height-PA/2),this.topLeftBorderBox=p>0||C>0?te(l.left,l.top,p,C,zA.TOP_LEFT):new vA(l.left,l.top),this.topRightBorderBox=E>0||M>0?te(l.left+xA,l.top,E,M,zA.TOP_RIGHT):new vA(l.left+l.width,l.top),this.bottomRightBorderBox=z>0||j>0?te(l.left+GA,l.top+Ae,z,j,zA.BOTTOM_RIGHT):new vA(l.left+l.width,l.top+l.height),this.bottomLeftBorderBox=hA>0||mA>0?te(l.left,l.top+kA,hA,mA,zA.BOTTOM_LEFT):new vA(l.left,l.top+l.height),this.topLeftPaddingBox=p>0||C>0?te(l.left+MA,l.top+UA,Math.max(0,p-MA),Math.max(0,C-UA),zA.TOP_LEFT):new vA(l.left+MA,l.top+UA),this.topRightPaddingBox=E>0||M>0?te(l.left+Math.min(xA,l.width-VA),l.top+UA,xA>l.width+VA?0:Math.max(0,E-VA),Math.max(0,M-UA),zA.TOP_RIGHT):new vA(l.left+l.width-VA,l.top+UA),this.bottomRightPaddingBox=z>0||j>0?te(l.left+Math.min(GA,l.width-MA),l.top+Math.min(Ae,l.height-PA),Math.max(0,z-VA),Math.max(0,j-PA),zA.BOTTOM_RIGHT):new vA(l.left+l.width-VA,l.top+l.height-PA),this.bottomLeftPaddingBox=hA>0||mA>0?te(l.left+MA,l.top+Math.min(kA,l.height-PA),Math.max(0,hA-MA),Math.max(0,mA-PA),zA.BOTTOM_LEFT):new vA(l.left+MA,l.top+l.height-PA),this.topLeftContentBox=p>0||C>0?te(l.left+MA+WA,l.top+UA+le,Math.max(0,p-(MA+WA)),Math.max(0,C-(UA+le)),zA.TOP_LEFT):new vA(l.left+MA+WA,l.top+UA+le),this.topRightContentBox=E>0||M>0?te(l.left+Math.min(xA,l.width+MA+WA),l.top+UA+le,xA>l.width+MA+WA?0:E-MA+WA,M-(UA+le),zA.TOP_RIGHT):new vA(l.left+l.width-(VA+ye),l.top+UA+le),this.bottomRightContentBox=z>0||j>0?te(l.left+Math.min(GA,l.width-(MA+WA)),l.top+Math.min(Ae,l.height+UA+le),Math.max(0,z-(VA+ye)),j-(PA+Ie),zA.BOTTOM_RIGHT):new vA(l.left+l.width-(VA+ye),l.top+l.height-(PA+Ie)),this.bottomLeftContentBox=hA>0||mA>0?te(l.left+MA+WA,l.top+kA,Math.max(0,hA-(MA+WA)),mA-(PA+Ie),zA.BOTTOM_LEFT):new vA(l.left+MA+WA,l.top+l.height-(PA+Ie))}return s})(),zA;(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"})(zA||(zA={}));var te=function(s,i,c,l,f){var p=4*((Math.sqrt(2)-1)/3),C=c*p,Q=l*p,E=s+c,M=i+l;switch(f){case zA.TOP_LEFT:return new So(new vA(s,M),new vA(s,M-Q),new vA(E-C,i),new vA(E,i));case zA.TOP_RIGHT:return new So(new vA(s,i),new vA(s+C,i),new vA(E,M-Q),new vA(E,M));case zA.BOTTOM_RIGHT:return new So(new vA(E,i),new vA(E,i+Q),new vA(s+C,M),new vA(s,M));case zA.BOTTOM_LEFT:default:return new So(new vA(E,M),new vA(E-C,M),new vA(s,i+Q),new vA(s,i))}},xo=function(s){return[s.topLeftBorderBox,s.topRightBorderBox,s.bottomRightBorderBox,s.bottomLeftBorderBox]},kQ=function(s){return[s.topLeftContentBox,s.topRightContentBox,s.bottomRightContentBox,s.bottomLeftContentBox]},Do=function(s){return[s.topLeftPaddingBox,s.topRightPaddingBox,s.bottomRightPaddingBox,s.bottomLeftPaddingBox]},MQ=(function(){function s(i,c,l){this.offsetX=i,this.offsetY=c,this.matrix=l,this.type=0,this.target=6}return s})(),No=(function(){function s(i,c){this.path=i,this.target=c,this.type=1}return s})(),OQ=(function(){function s(i){this.opacity=i,this.type=2,this.target=6}return s})(),KQ=function(s){return s.type===0},gu=function(s){return s.type===1},RQ=function(s){return s.type===2},hu=function(s,i){return s.length===i.length?s.some(function(c,l){return c===i[l]}):!1},VQ=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})},Bu=(function(){function s(i){this.element=i,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return s})(),pu=(function(){function s(i,c){if(this.container=i,this.parent=c,this.effects=[],this.curves=new TQ(this.container),this.container.styles.opacity<1&&this.effects.push(new OQ(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 MQ(l,f,p))}if(this.container.styles.overflowX!==0){var C=xo(this.curves),Q=Do(this.curves);hu(C,Q)?this.effects.push(new No(C,6)):(this.effects.push(new No(C,2)),this.effects.push(new No(Q,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!gu(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=xo(l.curves),Q=Do(l.curves);hu(C,Q)||f.unshift(new No(Q,6))}}else f.unshift.apply(f,p);l=l.parent}return f.filter(function(E){return ue(E.target,i)})},s})(),ds=function(s,i,c,l){s.container.elements.forEach(function(f){var p=ue(f.flags,4),C=ue(f.flags,2),Q=new pu(f,s);ue(f.styles.display,2048)&&l.push(Q);var E=ue(f.flags,8)?[]:l;if(p||C){var M=p||f.styles.isPositioned()?c:i,R=new Bu(Q);if(f.styles.isPositioned()||f.styles.opacity<1||f.styles.isTransformed()){var z=f.styles.zIndex.order;if(z<0){var j=0;M.negativeZIndex.some(function(hA,mA){return z>hA.element.container.styles.zIndex.order?(j=mA,!1):j>0}),M.negativeZIndex.splice(j,0,R)}else if(z>0){var CA=0;M.positiveZIndex.some(function(hA,mA){return z>=hA.element.container.styles.zIndex.order?(CA=mA+1,!1):CA>0}),M.positiveZIndex.splice(CA,0,R)}else M.zeroOrAutoZIndexOrTransformedOrOpacity.push(R)}else f.styles.isFloating()?M.nonPositionedFloats.push(R):M.nonPositionedInlineLevel.push(R);ds(Q,R,p?R:c,E)}else f.styles.isInlineLevel()?i.inlineLevel.push(Q):i.nonInlineLevel.push(Q),ds(Q,i,c,E);ue(f.flags,8)&&mu(f,E)})},mu=function(s,i){for(var c=s instanceof es?s.start:1,l=s instanceof es?s.reversed:!1,f=0;f<i.length;f++){var p=i[f];p.container instanceof Pc&&typeof p.container.value=="number"&&p.container.value!==0&&(c=p.container.value),p.listValue=ir(c,p.container.styles.listStyleType,!0),c+=l?-1:1}},PQ=function(s){var i=new pu(s,null),c=new Bu(i),l=[];return ds(i,c,c,l),mu(i.container,l),c},wu=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)}},GQ=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)}},zQ=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)}},XQ=function(s,i){switch(i){case 0:return Lo(s.topLeftBorderStroke,s.topRightBorderStroke);case 1:return Lo(s.topRightBorderStroke,s.bottomRightBorderStroke);case 2:return Lo(s.bottomRightBorderStroke,s.bottomLeftBorderStroke);default:return Lo(s.bottomLeftBorderStroke,s.topLeftBorderStroke)}},Lo=function(s,i){var c=[];return De(s)?c.push(s.subdivide(.5,!1)):c.push(s),De(i)?c.push(i.subdivide(.5,!0)):c.push(i),c},Ne=function(s,i,c,l){var f=[];return De(s)?f.push(s.subdivide(.5,!1)):f.push(s),De(c)?f.push(c.subdivide(.5,!0)):f.push(c),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},Cu=function(s){var i=s.bounds,c=s.styles;return i.add(c.borderLeftWidth,c.borderTopWidth,-(c.borderRightWidth+c.borderLeftWidth),-(c.borderTopWidth+c.borderBottomWidth))},To=function(s){var i=s.styles,c=s.bounds,l=ZA(i.paddingLeft,c.width),f=ZA(i.paddingRight,c.width),p=ZA(i.paddingTop,c.width),C=ZA(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))},$Q=function(s,i){return s===0?i.bounds:s===2?To(i):Cu(i)},YQ=function(s,i){return s===0?i.bounds:s===2?To(i):Cu(i)},fs=function(s,i,c){var l=$Q(Cn(s.styles.backgroundOrigin,i),s),f=YQ(Cn(s.styles.backgroundClip,i),s),p=WQ(Cn(s.styles.backgroundSize,i),c,l),C=p[0],Q=p[1],E=Ar(Cn(s.styles.backgroundPosition,i),l.width-C,l.height-Q);return[JQ(Cn(s.styles.backgroundRepeat,i),E,p,l,f),Math.round(l.left+E[0]),Math.round(l.top+E[1]),C,Q]},wn=function(s){return YA(s)&&s.value===gn.AUTO},ko=function(s){return typeof s=="number"},WQ=function(s,i,c){var l=i[0],f=i[1],p=i[2],C=s[0],Q=s[1];if(!C)return[0,0];if(ae(C)&&Q&&ae(Q))return[ZA(C,c.width),ZA(Q,c.height)];var E=ko(p);if(YA(C)&&(C.value===gn.CONTAIN||C.value===gn.COVER))return ko(p)?c.width/c.height<p!=(C.value===gn.COVER)?[c.width,c.width/p]:[c.height*p,c.height]:[c.width,c.height];var M=ko(l),R=ko(f),z=M||R;if(wn(C)&&(!Q||wn(Q)))return M&&R?[l,f]:!E&&!z?[c.width,c.height]:z&&E?[M?l:f*p,R?f:l/p]:[M?l:c.width,R?f:c.height];if(E){var j=0,CA=0;return ae(C)?j=ZA(C,c.width):ae(Q)&&(CA=ZA(Q,c.height)),wn(C)?j=CA*p:(!Q||wn(Q))&&(CA=j/p),[j,CA]}var hA=null,mA=null;if(ae(C)?hA=ZA(C,c.width):Q&&ae(Q)&&(mA=ZA(Q,c.height)),hA!==null&&(!Q||wn(Q))&&(mA=M&&R?hA/l*f:c.height),mA!==null&&wn(C)&&(hA=M&&R?mA/f*l:c.width),hA!==null&&mA!==null)return[hA,mA];throw new Error("Unable to calculate background-size for element")},Cn=function(s,i){var c=s[i];return typeof c>"u"?s[0]:c},JQ=function(s,i,c,l,f){var p=i[0],C=i[1],Q=c[0],E=c[1];switch(s){case 2:return[new vA(Math.round(l.left),Math.round(l.top+C)),new vA(Math.round(l.left+l.width),Math.round(l.top+C)),new vA(Math.round(l.left+l.width),Math.round(E+l.top+C)),new vA(Math.round(l.left),Math.round(E+l.top+C))];case 3:return[new vA(Math.round(l.left+p),Math.round(l.top)),new vA(Math.round(l.left+p+Q),Math.round(l.top)),new vA(Math.round(l.left+p+Q),Math.round(l.height+l.top)),new vA(Math.round(l.left+p),Math.round(l.height+l.top))];case 1:return[new vA(Math.round(l.left+p),Math.round(l.top+C)),new vA(Math.round(l.left+p+Q),Math.round(l.top+C)),new vA(Math.round(l.left+p+Q),Math.round(l.top+C+E)),new vA(Math.round(l.left+p),Math.round(l.top+C+E))];default:return[new vA(Math.round(f.left),Math.round(f.top)),new vA(Math.round(f.left+f.width),Math.round(f.top)),new vA(Math.round(f.left+f.width),Math.round(f.height+f.top)),new vA(Math.round(f.left),Math.round(f.height+f.top))]}},ZQ="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",vu="Hidden Text",jQ=(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=ZQ,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(vu)),l.appendChild(p),l.appendChild(f);var Q=f.offsetTop-p.offsetTop+2;l.removeChild(p),l.appendChild(this._document.createTextNode(vu)),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,c){var l=i+" "+c;return typeof this._data[l]>"u"&&(this._data[l]=this.parseMetrics(i,c)),this._data[l]},s})(),yu=(function(){function s(i,c){this.context=i,this.options=c}return s})(),qQ=1e4,AE=(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 jQ(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(),RQ(c)&&(this.ctx.globalAlpha=c.opacity),KQ(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)),gu(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(ue(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):As(c.text).reduce(function(C,Q){return p.ctx.fillText(Q,C,c.bounds.top+f),C+p.ctx.measureText(Q).width},c.bounds.left)},i.prototype.createFontStyle=function(c){var l=c.fontVariant.filter(function(C){return C==="normal"||C==="small-caps"}).join(""),f=oE(c.fontFamily).join(", "),p=qn(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,Q,E,M,R,z,j=this;return u(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),M=E.baseline,R=E.middle,z=l.paintOrder,c.textBounds.forEach(function(hA){z.forEach(function(mA){switch(mA){case 0:j.ctx.fillStyle=de(l.color),j.renderTextWithLetterSpacing(hA,l.letterSpacing,M);var RA=l.textShadow;RA.length&&hA.text.trim().length&&(RA.slice(0).reverse().forEach(function(DA){j.ctx.shadowColor=de(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(hA,l.letterSpacing,M)}),j.ctx.shadowColor="",j.ctx.shadowOffsetX=0,j.ctx.shadowOffsetY=0,j.ctx.shadowBlur=0),l.textDecorationLine.length&&(j.ctx.fillStyle=de(l.textDecorationColor||l.color),l.textDecorationLine.forEach(function(DA){switch(DA){case 1:j.ctx.fillRect(hA.bounds.left,Math.round(hA.bounds.top+M),hA.bounds.width,1);break;case 2:j.ctx.fillRect(hA.bounds.left,Math.round(hA.bounds.top),hA.bounds.width,1);break;case 3:j.ctx.fillRect(hA.bounds.left,Math.ceil(hA.bounds.top+R),hA.bounds.width,1);break}}));break;case 1:l.webkitTextStrokeWidth&&hA.text.trim().length&&(j.ctx.strokeStyle=de(l.webkitTextStrokeColor),j.ctx.lineWidth=l.webkitTextStrokeWidth,j.ctx.lineJoin=window.chrome?"miter":"round",j.ctx.strokeText(hA.text,hA.bounds.left,hA.bounds.top+M)),j.ctx.strokeStyle="",j.ctx.lineWidth=0,j.ctx.lineJoin="miter";break}})}),[2]})})},i.prototype.renderReplacedElement=function(c,l,f){if(f&&c.intrinsicWidth>0&&c.intrinsicHeight>0){var p=To(c),C=Do(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,Q,E,xA,xA,M,R,z,j,GA,CA,hA,kA,mA,RA,DA,xA,Ae,GA,kA;return u(this,function(UA){switch(UA.label){case 0:this.applyEffects(c.getEffects(4)),l=c.container,f=c.curves,p=l.styles,C=0,Q=l.textNodes,UA.label=1;case 1:return C<Q.length?(E=Q[C],[4,this.renderTextNode(E,p)]):[3,4];case 2:UA.sent(),UA.label=3;case 3:return C++,[3,1];case 4:if(!(l instanceof Kc))return[3,8];UA.label=5;case 5:return UA.trys.push([5,7,,8]),[4,this.context.cache.match(l.src)];case 6:return xA=UA.sent(),this.renderReplacedElement(l,f,xA),[3,8];case 7:return UA.sent(),this.context.logger.error("Error loading image "+l.src),[3,8];case 8:if(l instanceof Rc&&this.renderReplacedElement(l,f,l.canvas),!(l instanceof Vc))return[3,12];UA.label=9;case 9:return UA.trys.push([9,11,,12]),[4,this.context.cache.match(l.svg)];case 10:return xA=UA.sent(),this.renderReplacedElement(l,f,xA),[3,12];case 11:return UA.sent(),this.context.logger.error("Error loading svg "+l.svg.substring(0,255)),[3,12];case 12:return l instanceof $c&&l.tree?(M=new i(this.context,{scale:this.options.scale,backgroundColor:l.backgroundColor,x:0,y:0,width:l.width,height:l.height}),[4,M.render(l.tree)]):[3,14];case 13:R=UA.sent(),l.width&&l.height&&this.ctx.drawImage(R,0,0,l.width,l.height,l.bounds.left,l.bounds.top,l.bounds.width,l.bounds.height),UA.label=14;case 14:if(l instanceof ts&&(z=Math.min(l.bounds.width,l.bounds.height),l.type===Fo?l.checked&&(this.ctx.save(),this.path([new vA(l.bounds.left+z*.39363,l.bounds.top+z*.79),new vA(l.bounds.left+z*.16,l.bounds.top+z*.5549),new vA(l.bounds.left+z*.27347,l.bounds.top+z*.44071),new vA(l.bounds.left+z*.39694,l.bounds.top+z*.5649),new vA(l.bounds.left+z*.72983,l.bounds.top+z*.23),new vA(l.bounds.left+z*.84,l.bounds.top+z*.34085),new vA(l.bounds.left+z*.39363,l.bounds.top+z*.79)]),this.ctx.fillStyle=de(Gc),this.ctx.fill(),this.ctx.restore()):l.type===Uo&&l.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(l.bounds.left+z/2,l.bounds.top+z/2,z/4,0,Math.PI*2,!0),this.ctx.fillStyle=de(Gc),this.ctx.fill(),this.ctx.restore())),eE(l)&&l.value.length){switch(j=this.createFontStyle(p),GA=j[0],CA=j[1],hA=this.fontMetrics.getMetrics(GA,CA).baseline,this.ctx.font=GA,this.ctx.fillStyle=de(p.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=nE(l.styles.textAlign),kA=To(l),mA=0,l.styles.textAlign){case 1:mA+=kA.width/2;break;case 2:mA+=kA.width;break}RA=kA.add(mA,0,0,-kA.height/2+1),this.ctx.save(),this.path([new vA(kA.left,kA.top),new vA(kA.left+kA.width,kA.top),new vA(kA.left+kA.width,kA.top+kA.height),new vA(kA.left,kA.top+kA.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new rr(l.value,RA),p.letterSpacing,hA),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!ue(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];xA=void 0,Ae=DA.url,UA.label=15;case 15:return UA.trys.push([15,17,,18]),[4,this.context.cache.match(Ae)];case 16:return xA=UA.sent(),this.ctx.drawImage(xA,l.bounds.left-(xA.width+10),l.bounds.top),[3,18];case 17:return UA.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&&(GA=this.createFontStyle(p)[0],this.ctx.font=GA,this.ctx.fillStyle=de(p.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",kA=new h(l.bounds.left,l.bounds.top+ZA(l.styles.paddingTop,l.bounds.width),l.bounds.width,vc(p.lineHeight,p.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new rr(c.listValue,kA),p.letterSpacing,vc(p.lineHeight,p.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),UA.label=20;case 20:return[2]}})})},i.prototype.renderStackContent=function(c){return a(this,void 0,void 0,function(){var l,f,DA,p,C,DA,Q,E,DA,M,R,DA,z,j,DA,CA,hA,DA,mA,RA,DA;return u(this,function(xA){switch(xA.label){case 0:if(ue(c.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(c.element)];case 1:xA.sent(),l=0,f=c.negativeZIndex,xA.label=2;case 2:return l<f.length?(DA=f[l],[4,this.renderStack(DA)]):[3,5];case 3:xA.sent(),xA.label=4;case 4:return l++,[3,2];case 5:return[4,this.renderNodeContent(c.element)];case 6:xA.sent(),p=0,C=c.nonInlineLevel,xA.label=7;case 7:return p<C.length?(DA=C[p],[4,this.renderNode(DA)]):[3,10];case 8:xA.sent(),xA.label=9;case 9:return p++,[3,7];case 10:Q=0,E=c.nonPositionedFloats,xA.label=11;case 11:return Q<E.length?(DA=E[Q],[4,this.renderStack(DA)]):[3,14];case 12:xA.sent(),xA.label=13;case 13:return Q++,[3,11];case 14:M=0,R=c.nonPositionedInlineLevel,xA.label=15;case 15:return M<R.length?(DA=R[M],[4,this.renderStack(DA)]):[3,18];case 16:xA.sent(),xA.label=17;case 17:return M++,[3,15];case 18:z=0,j=c.inlineLevel,xA.label=19;case 19:return z<j.length?(DA=j[z],[4,this.renderNode(DA)]):[3,22];case 20:xA.sent(),xA.label=21;case 21:return z++,[3,19];case 22:CA=0,hA=c.zeroOrAutoZIndexOrTransformedOrOpacity,xA.label=23;case 23:return CA<hA.length?(DA=hA[CA],[4,this.renderStack(DA)]):[3,26];case 24:xA.sent(),xA.label=25;case 25:return CA++,[3,23];case 26:mA=0,RA=c.positiveZIndex,xA.label=27;case 27:return mA<RA.length?(DA=RA[mA],[4,this.renderStack(DA)]):[3,30];case 28:xA.sent(),xA.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=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(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,Q,E;return u(this,function(M){switch(M.label){case 0:l=c.styles.backgroundImage.length-1,f=function(R){var z,j,CA,le,Qe,Ee,WA,he,PA,hA,le,Qe,Ee,WA,he,mA,RA,DA,xA,Ae,GA,kA,UA,VA,PA,MA,le,ye,Ie,WA,he,It,Qe,Ee,Gt,je,_t,zt,Xt,ut,$t,dt;return u(this,function(vn){switch(vn.label){case 0:if(R.type!==0)return[3,5];z=void 0,j=R.url,vn.label=1;case 1:return vn.trys.push([1,3,,4]),[4,p.context.cache.match(j)];case 2:return z=vn.sent(),[3,4];case 3:return vn.sent(),p.context.logger.error("Error loading background-image "+j),[3,4];case 4:return z&&(CA=fs(c,l,[z.width,z.height,z.width/z.height]),le=CA[0],Qe=CA[1],Ee=CA[2],WA=CA[3],he=CA[4],PA=p.ctx.createPattern(p.resizeImage(z,WA,he),"repeat"),p.renderRepeat(le,PA,Qe,Ee)),[3,6];case 5:XC(R)?(hA=fs(c,l,[null,null,null]),le=hA[0],Qe=hA[1],Ee=hA[2],WA=hA[3],he=hA[4],mA=RC(R.angle,WA,he),RA=mA[0],DA=mA[1],xA=mA[2],Ae=mA[3],GA=mA[4],kA=document.createElement("canvas"),kA.width=WA,kA.height=he,UA=kA.getContext("2d"),VA=UA.createLinearGradient(DA,Ae,xA,GA),cc(R.stops,RA).forEach(function(ar){return VA.addColorStop(ar.stop,de(ar.color))}),UA.fillStyle=VA,UA.fillRect(0,0,WA,he),WA>0&&he>0&&(PA=p.ctx.createPattern(kA,"repeat"),p.renderRepeat(le,PA,Qe,Ee))):$C(R)&&(MA=fs(c,l,[null,null,null]),le=MA[0],ye=MA[1],Ie=MA[2],WA=MA[3],he=MA[4],It=R.position.length===0?[Oi]:R.position,Qe=ZA(It[0],WA),Ee=ZA(It[It.length-1],he),Gt=VC(R,Qe,Ee,WA,he),je=Gt[0],_t=Gt[1],je>0&&_t>0&&(zt=p.ctx.createRadialGradient(ye+Qe,Ie+Ee,0,ye+Qe,Ie+Ee,je),cc(R.stops,je*2).forEach(function(ar){return zt.addColorStop(ar.stop,de(ar.color))}),p.path(le),p.ctx.fillStyle=zt,je!==_t?(Xt=c.bounds.left+.5*c.bounds.width,ut=c.bounds.top+.5*c.bounds.height,$t=_t/je,dt=1/$t,p.ctx.save(),p.ctx.translate(Xt,ut),p.ctx.transform(1,0,0,$t,0,0),p.ctx.translate(-Xt,-ut),p.ctx.fillRect(ye,dt*(Ie-ut)+ut,WA,he*dt),p.ctx.restore()):p.ctx.fill())),vn.label=6;case 6:return l--,[2]}})},p=this,C=0,Q=c.styles.backgroundImage.slice(0).reverse(),M.label=1;case 1:return C<Q.length?(E=Q[C],[5,f(E)]):[3,4];case 2:M.sent(),M.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(wu(f,l)),this.ctx.fillStyle=de(c),this.ctx.fill(),[2]})})},i.prototype.renderDoubleBorder=function(c,l,f,p){return a(this,void 0,void 0,function(){var C,Q;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=GQ(p,f),this.path(C),this.ctx.fillStyle=de(c),this.ctx.fill(),Q=zQ(p,f),this.path(Q),this.ctx.fill(),[2]}})})},i.prototype.renderNodeBackgroundAndBorders=function(c){return a(this,void 0,void 0,function(){var l,f,p,C,Q,E,M,R,z=this;return u(this,function(j){switch(j.label){case 0:return this.applyEffects(c.getEffects(2)),l=c.container.styles,f=!Ft(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=tE(Cn(l.backgroundClip,0),c.curves),f||l.boxShadow.length?(this.ctx.save(),this.path(C),this.ctx.clip(),Ft(l.backgroundColor)||(this.ctx.fillStyle=de(l.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(c.container)]):[3,2];case 1:j.sent(),this.ctx.restore(),l.boxShadow.slice(0).reverse().forEach(function(CA){z.ctx.save();var hA=xo(c.curves),mA=CA.inset?0:qQ,RA=VQ(hA,-mA+(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?(z.path(hA),z.ctx.clip(),z.mask(RA)):(z.mask(hA),z.ctx.clip(),z.path(RA)),z.ctx.shadowOffsetX=CA.offsetX.number+mA,z.ctx.shadowOffsetY=CA.offsetY.number,z.ctx.shadowColor=de(CA.color),z.ctx.shadowBlur=CA.blur.number,z.ctx.fillStyle=CA.inset?de(CA.color):"rgba(0,0,0,1)",z.ctx.fill(),z.ctx.restore()}),j.label=2;case 2:Q=0,E=0,M=p,j.label=3;case 3:return E<M.length?(R=M[E],R.style!==0&&!Ft(R.color)&&R.width>0?R.style!==2?[3,5]:[4,this.renderDashedDottedBorder(R.color,R.width,Q,c.curves,2)]:[3,11]):[3,13];case 4:return j.sent(),[3,11];case 5:return R.style!==3?[3,7]:[4,this.renderDashedDottedBorder(R.color,R.width,Q,c.curves,3)];case 6:return j.sent(),[3,11];case 7:return R.style!==4?[3,9]:[4,this.renderDoubleBorder(R.color,R.width,Q,c.curves)];case 8:return j.sent(),[3,11];case 9:return[4,this.renderSolidBorder(R.color,Q,c.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(c,l,f,p,C){return a(this,void 0,void 0,function(){var Q,E,M,R,z,j,CA,hA,mA,RA,DA,xA,Ae,GA,kA,UA,kA,UA;return u(this,function(VA){return this.ctx.save(),Q=XQ(p,f),E=wu(p,f),C===2&&(this.path(E),this.ctx.clip()),De(E[0])?(M=E[0].start.x,R=E[0].start.y):(M=E[0].x,R=E[0].y),De(E[1])?(z=E[1].end.x,j=E[1].end.y):(z=E[1].x,j=E[1].y),f===0||f===2?CA=Math.abs(M-z):CA=Math.abs(R-j),this.ctx.beginPath(),C===3?this.formatPath(Q):this.formatPath(E.slice(0,2)),hA=l<3?l*3:l*2,mA=l<3?l*2:l,C===3&&(hA=l,mA=l),RA=!0,CA<=hA*2?RA=!1:CA<=hA*2+mA?(DA=CA/(2*hA+mA),hA*=DA,mA*=DA):(xA=Math.floor((CA+mA)/(hA+mA)),Ae=(CA-xA*hA)/(xA-1),GA=(CA-(xA+1)*hA)/xA,mA=GA<=0||Math.abs(mA-Ae)<Math.abs(mA-GA)?Ae:GA),RA&&(C===3?this.ctx.setLineDash([0,hA+mA]):this.ctx.setLineDash([hA,mA])),C===3?(this.ctx.lineCap="round",this.ctx.lineWidth=l):this.ctx.lineWidth=l*2+1.1,this.ctx.strokeStyle=de(c),this.ctx.stroke(),this.ctx.setLineDash([]),C===2&&(De(E[0])&&(kA=E[3],UA=E[0],this.ctx.beginPath(),this.formatPath([new vA(kA.end.x,kA.end.y),new vA(UA.start.x,UA.start.y)]),this.ctx.stroke()),De(E[1])&&(kA=E[1],UA=E[2],this.ctx.beginPath(),this.formatPath([new vA(kA.end.x,kA.end.y),new vA(UA.start.x,UA.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=de(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),l=PQ(c),[4,this.renderStack(l)];case 1:return f.sent(),this.applyEffects([]),[2,this.canvas]}})})},i})(yu),eE=function(s){return s instanceof Xc||s instanceof zc?!0:s instanceof ts&&s.type!==Uo&&s.type!==Fo},tE=function(s,i){switch(s){case 0:return xo(i);case 2:return kQ(i);default:return Do(i)}},nE=function(s){switch(s){case 1:return"center";case 2:return"right";default:return"left"}},rE=["-apple-system","system-ui"],oE=function(s){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?s.filter(function(i){return rE.indexOf(i)===-1}):s},iE=(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=qi(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,c),[4,sE(l)];case 1:return f=p.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=de(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})(yu),sE=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))})},aE=(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})(),lE=(function(){function s(i,c){var l;this.windowBounds=c,this.instanceName="#"+s.instanceCount++,this.logger=new aE({id:this.instanceName,enabled:i.logging}),this.cache=(l=i.cache)!==null&&l!==void 0?l:new IQ(this,i)}return s.instanceCount=1,s})(),cE=function(s,i){return i===void 0&&(i={}),uE(s,i)};typeof window<"u"&&fu.setContext(window);var uE=function(s,i){return a(void 0,void 0,void 0,function(){var c,l,f,p,C,Q,E,M,R,z,j,CA,hA,mA,RA,DA,xA,Ae,GA,kA,VA,UA,VA,PA,MA,le,ye,Ie,WA,he,It,Qe,Ee,Gt,je,_t,zt,Xt,ut,$t;return u(this,function(dt){switch(dt.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:(PA=i.allowTaint)!==null&&PA!==void 0?PA:!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=r({logging:(ye=i.logging)!==null&&ye!==void 0?ye:!0,cache:i.cache},f),C={windowWidth:(Ie=i.windowWidth)!==null&&Ie!==void 0?Ie:l.innerWidth,windowHeight:(WA=i.windowHeight)!==null&&WA!==void 0?WA:l.innerHeight,scrollX:(he=i.scrollX)!==null&&he!==void 0?he:l.pageXOffset,scrollY:(It=i.scrollY)!==null&&It!==void 0?It:l.pageYOffset},Q=new h(C.scrollX,C.scrollY,C.windowWidth,C.windowHeight),E=new lE(p,Q),M=(Qe=i.foreignObjectRendering)!==null&&Qe!==void 0?Qe:!1,R={allowTaint:(Ee=i.allowTaint)!==null&&Ee!==void 0?Ee:!1,onclone:i.onclone,ignoreElements:i.ignoreElements,inlineImages:M,copyStyles:M},E.logger.debug("Starting document clone with size "+Q.width+"x"+Q.height+" scrolled to "+-Q.left+","+-Q.top),z=new uu(E,s,R),j=z.clonedReferenceElement,j?[4,z.toIFrame(c,Q)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return CA=dt.sent(),hA=rs(j)||dQ(j)?B(j.ownerDocument):g(E,j),mA=hA.width,RA=hA.height,DA=hA.left,xA=hA.top,Ae=dE(E,j,i.backgroundColor),GA={canvas:i.canvas,backgroundColor:Ae,scale:(je=(Gt=i.scale)!==null&&Gt!==void 0?Gt:l.devicePixelRatio)!==null&&je!==void 0?je:1,x:((_t=i.x)!==null&&_t!==void 0?_t:0)+DA,y:((zt=i.y)!==null&&zt!==void 0?zt:0)+xA,width:(Xt=i.width)!==null&&Xt!==void 0?Xt:Math.ceil(mA),height:(ut=i.height)!==null&&ut!==void 0?ut:Math.ceil(RA)},M?(E.logger.debug("Document cloned, using foreign object rendering"),VA=new iE(E,GA),[4,VA.render(j)]):[3,3];case 2:return kA=dt.sent(),[3,5];case 3:return E.logger.debug("Document cloned, element located at "+DA+","+xA+" with size "+mA+"x"+RA+" using computed rendering"),E.logger.debug("Starting DOM parsing"),UA=Wc(E,j),Ae===UA.styles.backgroundColor&&(UA.styles.backgroundColor=lt.TRANSPARENT),E.logger.debug("Starting renderer for element at "+GA.x+","+GA.y+" with size "+GA.width+"x"+GA.height),VA=new AE(E,GA),[4,VA.render(UA)];case 4:kA=dt.sent(),dt.label=5;case 5:return(!(($t=i.removeContainer)!==null&&$t!==void 0)||$t)&&(uu.destroy(CA)||E.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),E.logger.debug("Finished rendering"),[2,kA]}})})},dE=function(s,i,c){var l=i.ownerDocument,f=l.documentElement?er(s,getComputedStyle(l.documentElement).backgroundColor):lt.TRANSPARENT,p=l.body?er(s,getComputedStyle(l.body).backgroundColor):lt.TRANSPARENT,C=typeof c=="string"?er(s,c):c===null?lt.TRANSPARENT:4294967295;return i===l.documentElement?Ft(f)?Ft(p)?C:p:f:C};return cE}))})),t0=Bs(e0(),1),n0=(0,o.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:r,token:a,httpGet:u,httpPost:d,httpPut:h,httpDelete:g,success:B,warning:w,error:m,info:v,useData:y}=(0,pe.useAppInject)(),{loadData:I,getData:T}=y(),D=(0,o.computed)(()=>{const S={transform:`scale(${t.scale}, ${t.scale})`,transformOrigin:"left top",position:"relative",width:JA(t.indexPage.config.w||1920),height:JA(t.indexPage.config.h||1080),backgroundColor:t.indexPage.config.backgroundColor||"var(--j-color-bg-container)"};return t.indexPage.config.backgroundImage&&(S.background=`url(${r}/system/annexesfile/${t.indexPage.config.backgroundImage}?token=${a?.value}) 0% 0% / 100% 100% ${t.indexPage.config.backgroundColor||"var(--j-color-bg-container)"}`),S}),V=S=>{n("select",S)},b=S=>{n("move",S)},K=S=>{S?.target?.getAttribute("id")==="j-bi-design-container"&&n("select",t.indexPage)},sA={},W=(S,eA)=>{S&&(sA[eA]=S)},cA=(0,o.computed)(()=>t.layout.map(S=>({...S,$refs:sA[S.id]}))),lA=async(S,eA)=>{if(S&&S.trim()){S=`async (jcode) => {${S}}`;const{res:H,msg:X,fn:U}=(0,pe.getFunction)(S);if(H)return U(AA(eA));m&&m(X)}},oA=S=>sA[S]?.getValue?.()||[],iA=S=>cA.value.find(({id:eA})=>eA===S)?.config||{},AA=S=>(S.get=oA,S.getProps=iA,S.getSourceData=async(eA,H)=>(await I("dbsource",eA,JSON.stringify(H),!1),T("dbsource",eA,{params:H})),S.getDateNow=eA=>(0,pe.formatToDateTime)(new Date,eA||"YYYY-MM-DD HH:mm:ss"),S.httpGet=u,S.httpPost=d,S.httpPut=h,S.httpDelete=g,S.loading=()=>{(0,pe.fullScreenLoading)(!0)},S.hideLoading=()=>{(0,pe.fullScreenLoading)(!1)},S.message=(eA,H)=>{switch(H){case"success":B&&B(eA);break;case"warning":w&&w(eA);break;case"error":m&&m(eA);break;case"info":v&&v(eA);break;default:v&&v(eA);break}},S);return(0,o.provide)("dui_bi_container",{executeEvent:lA}),(S,eA)=>{const H=(0,o.resolveComponent)("d-draggable");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{onClick:(0,o.withModifiers)(K,["stop"]),id:"j-bi-design-container",style:(0,o.normalizeStyle)(D.value)},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.layout,(X,U)=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:X.id},[X.display?((0,o.openBlock)(),(0,o.createBlock)(H,{key:0,id:X.id,left:X.config.x,top:X.config.y,width:X.config.w,height:X.config.h,scale:1/e.scale,step:1/e.scale,"active-flag":X.id==e.activedComponent.id,readonly:X.lock,"data-id":X.id,onFocus:L=>V(X),onBlur:b,"z-index":e.layout.length-U,"is-active-bg-transparent":!0},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(X.componentName),(0,o.mergeProps)({style:{width:(0,o.unref)(JA)(X.config.w),height:(0,o.unref)(JA)(X.config.h)}},{ref_for:!0},X.config,{"is-design":!0,ref_for:!0,ref:L=>W(L,X.id)}),null,16,["style"]))]),_:2},1032,["id","left","top","width","height","scale","step","active-flag","readonly","data-id","onFocus","z-index"])):(0,o.createCommentVNode)("",!0)],64))),128))],4)}}}),Tl=n0,r0=({data:e,actions:A,utils:t,inputParams:n,notRunActions:r})=>{const a=d=>e.filter(h=>h.source===d).map(h=>h.target),u=async d=>{d=d||"start";const h=e.find(g=>g.id===d);if(h.config.type==="start"){const g=a(d);for(let B=0;B<g.length;B++)await u(g[B])}else{const g=A[h.config.type];g&&await g(h.config,t,async B=>{if(B=B||{},B.nodeId=d,B.next!==!1){const w=a(B.nodeId);for(let m=0;m<w.length;m++)await u(w[m])}},n,B=>{r[B]={data:e,inputParams:n}})}};return{run:u}},o0=(0,o.defineComponent)({name:"DBiViewer",__name:"biViewer",props:{layout:{type:Array,default:()=>[]},indexPage:{type:Object,default:()=>({})},actions:{type:Object,default:()=>({})}},setup(e){const A=e,{apiUrl:t,token:n,httpGet:r,httpPost:a,httpPut:u,httpDelete:d,success:h,warning:g,error:B,info:w,useData:m}=(0,pe.useAppInject)(),{loadData:v,getData:y}=m(),I=(0,o.computed)(()=>A.layout),T=(0,o.ref)(),D=(0,o.ref)(1),V=(0,o.ref)(1),b=()=>{T.value&&K(T.value.offsetWidth,T.value.offsetHeight)},K=(k,N)=>{const O=A.indexPage.config?.w||1920,Y=A.indexPage.config?.h||1080,tA=A.indexPage.config?.screenFit||"1";tA==="1"?(V.value=k/O,D.value=V.value):tA==="2"?(D.value=N/Y,V.value=D.value):tA==="3"&&(V.value=k/O,D.value=N/Y)},sA=(0,o.computed)(()=>{const k={transform:`scale(${V.value}, ${D.value})`,transformOrigin:"left top",position:"relative",overflow:"hidden",width:JA(A.indexPage.config?.w||1920),height:JA(A.indexPage.config?.h||1080),backgroundColor:A.indexPage.config?.backgroundColor||"var(--j-color-bg-container)"};return A.indexPage.config?.backgroundImage&&(k.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)"}`),k}),W=(0,o.computed)(()=>({width:JA((A.indexPage.config?.w||1920)*V.value),height:JA((A.indexPage.config?.h||1080)*D.value)})),cA={},lA=(k,N)=>{k&&(cA[N]=k)},oA=new ResizeObserver(b);(0,o.onMounted)(()=>{I.value.forEach(k=>{k.$refs=cA[k.id]}),oA.observe(T.value)});const iA=async(k,N)=>{N.config.clickevent&&await S(JSON.parse(N.config?.clickevent),{param:{params:k}})},AA=async(k,N)=>{if(k&&k.trim()){k=`async (jcode) => {${k}}`;const{res:O,msg:Y,fn:tA}=(0,pe.getFunction)(k);if(O)return tA(L(N));B&&B(Y)}},S=async(k,N)=>{const{run:O}=r0({data:k,actions:A.actions,utils:{showLoading:pe.fullScreenLoading,executeEvent:AA},inputParams:N});await O()},eA=k=>cA[k]?.getValue()||[],H=(k,N=!0)=>{const O=I.value.find(({id:Y})=>Y===k);O&&(O.display=!N)},X=k=>I.value.find(({id:N})=>N===k)?.config||{},U=k=>{const N=I.value.find(({id:O})=>O===k);N?.$refs?.updateData&&N.$refs.updateData()},L=k=>(k.get=eA,k.setHide=H,k.getProps=X,k.refresh=U,k.getSourceData=async(N,O)=>(await v("dbsource",N,JSON.stringify(O),!1),y("dbsource",N,{params:O})),k.getDateNow=N=>(0,pe.formatToDateTime)(new Date,N||"YYYY-MM-DD HH:mm:ss"),k.httpGet=r,k.httpPost=a,k.httpPut=u,k.httpDelete=d,k.loading=()=>{(0,pe.fullScreenLoading)(!0)},k.hideLoading=()=>{(0,pe.fullScreenLoading)(!1)},k.message=(N,O)=>{switch(O){case"success":h&&h(N);break;case"warning":g&&g(N);break;case"error":B&&B(N);break;case"info":w&&w(N);break;default:w&&w(N);break}},k);return(0,o.provide)("dui_bi_viewer",{executeEvent:AA}),(k,N)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"j-block",style:(0,o.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:T},[(0,o.createElementVNode)("div",{style:(0,o.normalizeStyle)(W.value)},[(0,o.createElementVNode)("div",{style:(0,o.normalizeStyle)(sA.value)},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(I.value,(O,Y)=>(0,o.withDirectives)(((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(O.componentName),(0,o.mergeProps)({key:O.id,ref_for:!0,ref:tA=>lA(tA,O.id),style:{position:"absolute",width:(0,o.unref)(JA)(O.config.w),height:(0,o.unref)(JA)(O.config.h),top:(0,o.unref)(JA)(O.config.y),left:(0,o.unref)(JA)(O.config.x),zIndex:e.layout.length-Y}},{ref_for:!0},O.config,{"run-flow":S,onClick:tA=>iA(tA,O)}),null,16,["style","onClick"])),[[o.vShow,O.display!==!1]])),128))],4)],4)],4))}}),kl=o0,i0={class:"j-bi-design"},s0={class:"j-bi-design-left"},a0={class:"j-block j-bi-design-layer-list"},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={class:"j-bi-design-component-list"},B0=["onClick","onDragstart"],p0={class:"j-component-tool-name"},m0={class:"j-bi-design-right"},w0={class:"j-bi-design-title"},C0={style:{margin:"0","font-size":"14px"}},v0={class:"j-bi-design-panel"},y0=(0,o.defineComponent)({name:"DBiDesign",__name:"biDesign",props:{components:{type:Array,default:()=>[]},componentConfigs:{type:Object,default:()=>({})},componentInit:Function,componentConfigInit:Function,componentConfigChange:Function,flowComponents:{type:Array,default:()=>[]},flowInit:Function,flowComponentConfigInit:Function,flowComponentConfigChange:Function,flowComponentConfigs:{type:Object,default:()=>({})},actions:{type:Object,default:()=>({})},imgUrlPrefix:{type:String,default:"/"},scale:{type:Number,default:-1}},emits:["update:scale"],setup(e,{expose:A,emit:t}){const{t:n}=(0,pe.useAppInject)(),r=e,a=t,u=(0,o.ref)(!1),d=(0,o.ref)({name:"页面",id:"indexPage",type:"indexPage",layerId:"0",config:{},display:!0,lock:!1,componentName:""});r.componentInit&&(d.value.config=r.componentInit("indexPage")||{},d.value.config.id="indexPage");const h=(0,o.computed)(()=>{const rA={};return r.components.forEach(aA=>{aA.children.forEach(_A=>{rA[_A.type]=_A})}),rA}),g=(0,o.ref)(["layers"]),B=r.components.length;for(let rA=0;rA<B;rA++)g.value.push(rA);const w=(0,o.ref)(),m=(0,o.ref)([]),v=(0,o.ref)(!1),y=(0,o.ref)(0),I=(0,o.ref)(0),T=(0,o.ref)(""),D=(0,o.computed)(()=>T.value===""?{}:m.value.find(rA=>rA.id===T.value)),V=()=>{v.value=!1,T.value=""},b=rA=>{rA.target.className.indexOf("j-bi-design-contentmenu__btn")===-1&&V(),window.removeEventListener("mousedown",b)},K=rA=>{let{target:aA}=rA,_A=!1;aA.className.indexOf&&aA.className.indexOf("d-draggable__mask")>-1?(aA=aA.parentNode.parentNode,_A=!0):aA.className.indexOf&&aA.className.indexOf("j-bi-design-layer-item")>-1?_A=!0:aA.parentNode.className.indexOf&&aA.parentNode.className.indexOf("j-bi-design-layer-item")>-1?(aA=aA.parentNode,_A=!0):aA.parentNode.parentNode.className.indexOf("j-bi-design-layer-item")>-1&&(aA=aA.parentNode.parentNode,_A=!0),_A&&(rA.preventDefault(),rA.stopPropagation(),y.value=rA.clientX,I.value=rA.clientY-8,I.value+260>document.body.clientHeight&&(I.value=document.body.clientHeight-260),T.value=aA.getAttribute("data-id"),v.value=!0,window.addEventListener("mousedown",b))},sA=(0,o.ref)(""),W=(0,o.computed)(()=>sA.value?m.value.filter(rA=>rA.config.label.indexOf(sA.value)>-1):m.value),cA=rA=>{rA.display=!rA.display,V()},lA=rA=>{rA.lock=!rA.lock,V(),rA.lock&&rA.id===w.value?.id&&_e(d.value)},oA=(rA,aA)=>{if(!aA||m.value.length<1){V();return}const _A=m.value.findIndex(pA=>pA.id===aA.id);switch(rA){case"up":if(_A===-1||_A===0)break;m.value=iA(m.value,_A,_A-1);break;case"down":if(_A===-1||_A===m.value.length-1)break;m.value=iA(m.value,_A,_A+1);break;case"top":if(_A!==-1){const[pA]=m.value.splice(_A,1);m.value.unshift(pA)}break;case"bottom":if(_A!==-1){const[pA]=m.value.splice(_A,1);m.value.push(pA)}break}V()},iA=(rA,aA,_A)=>{const pA=rA[aA];return rA[aA]=rA[_A],rA[_A]=pA,rA},AA=(0,o.ref)(),S=(0,o.ref)(20),eA=(0,o.ref)(document.body.clientWidth),H=(0,o.ref)(document.body.clientHeight),X=(0,o.ref)(0),U=(0,o.ref)(0),L=(0,o.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)"}),k=(0,o.computed)(()=>({x:0,y:0,width:eA.value,height:H.value})),N=(0,o.ref)({h:[],v:[]}),O=(0,o.ref)(),Y=(0,o.ref)(),tA=(0,o.ref)(!1),BA=(0,o.ref)({}),HA=(0,o.ref)(100),nA=(0,o.computed)({set(rA){HA.value=rA,a("update:scale",rA)},get(){let{scale:rA}=r;return rA===-1&&(rA=HA.value),rA/100}}),Z=(0,o.computed)(()=>(d.value.config.h||1080)*2),$=(0,o.computed)(()=>(d.value.config.w||1920)*2),uA=()=>{AA.value&&(eA.value=AA.value.offsetWidth-S.value,H.value=AA.value.offsetHeight-S.value,O.value.scrollLeft=$.value/2-S.value,O.value.scrollTop=Z.value/2-S.value,wA())},wA=()=>{const rA=d.value.config.w||1920;eA.value<rA&&(nA.value=eA.value*100/rA)},QA=()=>{document.onkeydown=rA=>{if(rA.target?.nodeName==="TEXTAREA"||rA.target?.nodeName==="INPUT")return;const aA=rA.keyCode||rA.which;aA===32&&(rA.preventDefault(),BA.value.space=!0),aA===17&&(rA.preventDefault(),BA.value.ctrl=!0)},document.onkeyup=()=>{BA.value={}}},SA=rA=>{BA.value.space&&(tA.value=!0,window.stardragEvent=rA,window.startSlideX=O.value.scrollLeft,window.startSlideY=O.value.scrollTop,document.onmousemove=aA=>{if(tA.value){const _A=aA.clientX-window.stardragEvent.clientX,pA=aA.clientY-window.stardragEvent.clientY;O.value.scrollLeft=window.startSlideX-_A,O.value.scrollTop=window.startSlideY-pA}},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,tA.value=!1})},fA=()=>{const rA=O.value.getBoundingClientRect(),aA=Y.value.getBoundingClientRect(),_A=nA.value,pA=(rA.left+S.value-aA.left)/_A,Ce=(rA.top+S.value-aA.top)/_A;X.value=pA>>0,U.value=Ce>>0},J=rA=>{if(rA.preventDefault(),rA.ctrlKey||rA.metaKey){const aA=nA.value;nA.value=parseFloat(Math.max(.2,aA-rA.deltaY/500).toFixed(2))*100,aA!==nA.value&&(0,o.nextTick)(()=>{fA()})}},_=rA=>{rA.forEach(aA=>{aA.type==="d-input-flow"&&(aA.config=aA.config||{},aA.config.flowComponents=r.flowComponents,aA.config.flowInit=r.flowInit,aA.config.flowComponentConfigInit=_A=>{r.flowComponentConfigInit&&(_A.designComponents=m.value,_A.component=w.value,r.flowComponentConfigInit(_A))},aA.config.flowComponentConfigs=r.flowComponentConfigs,aA.config.flowComponentConfigChange=r.flowComponentConfigChange),aA.children&&_(aA.children)})},F=(0,o.ref)(),x=(0,o.computed)(()=>w.value?.id!="indexPage"?w.value?`${w.value.name}-${w.value.id}`:"":w.value?`${w.value.name}`:""),G={};Object.keys(r.componentConfigs).forEach(rA=>{const aA=[{id:"label",type:"j-input",config:{label:"名称"}},{id:"w",type:"j-number",config:{span:12,label:"宽度",min:0}},{id:"h",type:"j-number",config:{span:12,label:"高度",min:0}},{id:"x",type:"j-number",config:{span:12,label:"x轴",min:0}},{id:"y",type:"j-number",config:{span:12,label:"y轴",min:0}}],_A={type:"j-collapse",config:{defaultValue:[]},children:[]};rA!=="indexPage"&&_A.children?.push({config:{label:"基础信息"},children:[...aA]}),_A.children?.push(...r.componentConfigs[rA]),_A.children?.forEach((pA,Ce)=>{_A.config?.defaultValue.push(`_collapse${Ce}`)}),_(_A.children||[]),G[rA]=[_A]});let P,dA=0;const gA=async rA=>{if(rA!==dA)return;const aA=F.value;if(!aA||typeof aA.init!="function")return;const _A=w.value;if(!_A){try{await aA.init([])}catch{return}return}const pA=G[_A.type];try{await aA.init(pA||[],_A.config)}catch{return}rA===dA&&r.componentConfigInit&&r.componentConfigInit(_A.type,{configRef:F,components:m.value,configData:_A.config})},EA=()=>{const rA=++dA;P!==void 0&&(clearTimeout(P),P=void 0),P=window.setTimeout(()=>{P=void 0,gA(rA)},0)},FA=rA=>{w.value&&r.componentConfigChange&&(w.value.id==="indexPage"&&(rA.id==="w"||rA.id==="h")&&(0,o.nextTick)(()=>{uA()}),r.componentConfigChange(w.value.type,{configRef:F,configData:w.value.config,...rA}))},NA=rA=>r.componentInit?r.componentInit(rA)||{}:{},OA=(0,o.ref)(!1),KA=(0,o.ref)(null),ee=(rA,aA)=>{OA.value=!0,KA.value=aA,rA.dataTransfer&&(rA.dataTransfer.effectAllowed="copy",rA.dataTransfer.dropEffect="copy",rA.dataTransfer.setData("text/plain",aA.type||""))},qA=(rA,aA,_A)=>{const pA={name:rA.name,id:gt(),type:rA.type,layerId:"0",config:NA(rA.type),display:!0,lock:!1,componentName:rA.componentName};pA.config.id=pA.id,pA.config.label=rA.name,pA.config.h=rA.h||100,pA.config.w=rA.w||100,pA.config.x=aA,pA.config.y=_A,m.value.unshift(pA),w.value=pA,EA()},it=rA=>{OA.value||qA(rA,0,0)},Ke=()=>{KA.value=null,setTimeout(()=>{OA.value=!1},0)},wt=rA=>{const aA=KA.value;if(!aA){Ke();return}const _A=document.getElementById("j-bi-design-container");if(!_A){Ke();return}const pA=_A.getBoundingClientRect(),Ce=rA.clientX,at=rA.clientY;if(!(Ce>=pA.left&&Ce<=pA.right&&at>=pA.top&&at<=pA.bottom)){Ke();return}const He=Ce-pA.left,Kt=at-pA.top,an=aA?.w||100,ln=aA?.h||100;qA(aA,He/nA.value-an/2,Kt/nA.value-ln/2),Ke()},Si=()=>{KA.value&&Ke()},st=rA=>{m.value=m.value.filter(aA=>aA.id!==rA),w.value.id===rA&&(w.value=d.value,EA()),V()},xi=rA=>{const aA=En(rA),_A=gt();aA.id=_A,aA.config.id=_A,m.value.push(aA),w.value=aA,EA(),V()},_e=rA=>{w.value?.id!==rA.id&&(w.value=rA,EA())},on=({left:rA,top:aA,width:_A,height:pA})=>{w.value&&(w.value.config.x=rA,w.value.config.y=aA,w.value.config.w=_A,w.value.config.h=pA,F.value.setFormData({main:{x:rA,y:aA,w:_A,h:pA}}))},zn=new ResizeObserver(uA);(0,o.onMounted)(()=>{zn.observe(AA.value),QA(),_e(d.value)});const sn=()=>({ver:"1.0.0",components:En(m.value),page:d.value}),Xn=rA=>{rA.components?.forEach(aA=>{aA.componentName=h.value[aA.type].componentName}),m.value=rA.components||[],d.value=rA.page||d.value,_e(d.value)},Mt=()=>{m.value=[],_e(d.value)},$n=()=>new Promise(rA=>{(0,t0.default)(Y.value,{useCORS:!0,backgroundColor:null,allowTaint:!0}).then(aA=>{if(aA.width!==0&&aA.height!==0){rA(aA.toDataURL("image/png"));return}rA("")})}),Ot=(0,o.ref)(),Ct=(0,o.ref)({});return A({clear:Mt,setData:Xn,getData:sn,getImg:$n,preview:()=>{Ct.value=sn(),Ot.value.open("大屏预览","full")},setShowLayer:rA=>{u.value=rA,rA||V()}}),(rA,aA)=>{const _A=(0,o.resolveComponent)("el-divider"),pA=(0,o.resolveComponent)("j-icon"),Ce=(0,o.resolveComponent)("el-button"),at=(0,o.resolveComponent)("el-input"),He=(0,o.resolveComponent)("el-text"),Kt=(0,o.resolveComponent)("el-space"),an=(0,o.resolveComponent)("el-collapse-item"),ln=(0,o.resolveComponent)("el-collapse"),Ni=(0,o.resolveComponent)("j-form"),qr=(0,o.resolveComponent)("j-layer");return(0,o.openBlock)(),(0,o.createElementBlock)("div",i0,[v.value?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,class:"j-bi-design-contentmenu",style:(0,o.normalizeStyle)({left:y.value+"px",top:I.value+"px"})},[(0,o.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:aA[0]||(aA[0]=$A=>xi(D.value))},(0,o.toDisplayString)((0,o.unref)(n)("复制")),1),(0,o.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:aA[1]||(aA[1]=$A=>cA(D.value))},(0,o.toDisplayString)(D.value&&D.value.display?"隐藏":"显示"),1),(0,o.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:aA[2]||(aA[2]=$A=>lA(D.value))},(0,o.toDisplayString)(D.value&&D.value.lock?"解锁":"锁定"),1),(0,o.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:aA[3]||(aA[3]=$A=>oA("top",D.value))},(0,o.toDisplayString)((0,o.unref)(n)("置顶图层")),1),(0,o.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:aA[4]||(aA[4]=$A=>oA("bottom",D.value))},(0,o.toDisplayString)((0,o.unref)(n)("置底图层")),1),(0,o.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:aA[5]||(aA[5]=$A=>oA("up",D.value))},(0,o.toDisplayString)((0,o.unref)(n)("上移一层")),1),(0,o.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:aA[6]||(aA[6]=$A=>oA("down",D.value))},(0,o.toDisplayString)((0,o.unref)(n)("下移一层")),1),(0,o.createVNode)(_A,{style:{margin:"4px 0"}}),(0,o.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",style:{color:"var(--j-color-danger)"},onClick:aA[7]||(aA[7]=$A=>st(D.value?.id))},(0,o.toDisplayString)((0,o.unref)(n)("删除")),1)],4)):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("div",s0,[u.value?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,class:"j-bi-design-layer-panel",onContextmenu:(0,o.withModifiers)(K,["prevent"])},[(0,o.createVNode)(at,{modelValue:sA.value,"onUpdate:modelValue":aA[8]||(aA[8]=$A=>sA.value=$A),class:"search-input",placeholder:"搜索图层"},{append:(0,o.withCtx)(()=>[(0,o.createVNode)(Ce,null,{icon:(0,o.withCtx)(()=>[(0,o.createVNode)(pA,{icon:"ep:search"})]),_:1})]),_:1},8,["modelValue"]),(0,o.createElementVNode)("div",a0,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(W.value,($A,cn)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:cn},[(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["j-bi-design-layer-item",{active:w.value.id==$A.id}]),onClick:(0,o.withModifiers)(Re=>_e($A),["stop"]),"data-id":$A.id},[(0,o.createElementVNode)("div",c0,[h.value[$A.type]?.icon?((0,o.openBlock)(),(0,o.createBlock)(pA,{key:0,icon:h.value[$A.type].icon,size:16},null,8,["icon"])):((0,o.openBlock)(),(0,o.createElementBlock)("img",{key:1,style:{height:"100%"},src:`${e.imgUrlPrefix}${h.value[$A.type]?.img}`},null,8,u0))]),(0,o.createVNode)(He,{truncated:""},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)((0,o.unref)(n)($A.config.label)),1)]),_:2},1024),(0,o.createElementVNode)("div",d0,[(0,o.createVNode)(Kt,{size:2},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["j-bi-design-layer-item-btn",{active:!$A.display}]),onClick:(0,o.withModifiers)(Re=>cA($A),["stop"])},[(0,o.createVNode)(pA,{icon:"mdi:eye-off-outline"})],10,f0),(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["j-bi-design-layer-item-btn",{active:$A.lock}]),onClick:(0,o.withModifiers)(Re=>lA($A),["stop"])},[(0,o.createVNode)(pA,{icon:"mdi:lock-outline"})],10,g0)]),_:2},1024)])],10,l0)]))),128))])],32)):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("div",h0,[(0,o.createVNode)(ln,{modelValue:g.value,"onUpdate:modelValue":aA[9]||(aA[9]=$A=>g.value=$A)},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.components,($A,cn)=>((0,o.openBlock)(),(0,o.createBlock)(an,{key:cn,title:(0,o.unref)(n)($A.name),name:cn},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)($A.children,(Re,Ao)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:Ao,class:"j-component-tool",onClick:(0,o.withModifiers)(eo=>it(Re),["stop"]),onDragstart:eo=>ee(eo,Re),onDragend:Si,draggable:"true"},[(0,o.createVNode)(pA,{class:"j-component-tool-icon",icon:Re.icon,size:14},null,8,["icon"]),(0,o.createElementVNode)("div",p0,(0,o.toDisplayString)((0,o.unref)(n)(Re.name)),1)],40,B0))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),(0,o.createElementVNode)("div",{class:"j-bi-design-mid",ref_key:"contentRef",ref:AA},[((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(A0),{key:nA.value,thick:S.value,scale:nA.value,width:eA.value,height:H.value,"start-x":X.value,"start-y":U.value,palette:L.value,shadow:k.value,"hor-line-arr":N.value.h,"ver-line-arr":N.value.v},null,8,["thick","scale","width","height","start-x","start-y","palette","shadow","hor-line-arr","ver-line-arr"])),(0,o.createElementVNode)("div",{ref_key:"screensRef",ref:O,class:"j-bi-design-main",style:(0,o.normalizeStyle)({cursor:tA.value?"pointer":""}),onMousedown:(0,o.withModifiers)(SA,["stop"]),onWheel:J,onScroll:fA},[(0,o.createElementVNode)("div",{class:"screen-container",style:(0,o.normalizeStyle)({height:Z.value+"px",width:$.value+"px"}),onClick:aA[11]||(aA[11]=(0,o.withModifiers)($A=>_e(d.value),["stop"]))},[(0,o.createElementVNode)("div",{ref_key:"canvasRef",ref:Y,class:"canvas",onContextmenu:(0,o.withModifiers)(K,["prevent"])},[(0,o.createVNode)(Tl,{layout:m.value,"index-page":d.value,"actived-component":w.value,scale:nA.value,onDragover:aA[10]||(aA[10]=(0,o.withModifiers)(()=>{},["prevent"])),onDrop:(0,o.withModifiers)(wt,["stop","prevent"]),onSelect:_e,onMove:on},null,8,["layout","index-page","actived-component","scale"])],544)],4)],36)],512),(0,o.createElementVNode)("div",m0,[(0,o.createElementVNode)("div",w0,[(0,o.createElementVNode)("span",C0,(0,o.toDisplayString)(`${x.value}`),1)]),(0,o.createElementVNode)("div",v0,[(0,o.createVNode)(Ni,{config:{labelPosition:"top",size:"small"},style:{padding:"0"},ref_key:"configRef",ref:F,onChange:FA},null,512)])]),(0,o.createVNode)(qr,{ref_key:"previewFormLayerRef",ref:Ot,destroyOnClose:!0,hasHeader:!1},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(kl,{indexPage:Ct.value.page,layout:Ct.value.components,actions:e.actions},null,8,["indexPage","layout","actions"])]),_:1},512)])}}}),Q0=y0,Ml=ft(Q0,[Tl,kl]),E0=[Cs,Ro,Vo,Po,Go,hl,Bl,Ql,El,_l,Nl,Ml],Ol=new WeakSet,F0=e=>{Ol.has(e)||(Ol.add(e),E0.forEach(A=>{const t=A.name;t&&e.component(t,A)}))},U0={install:F0};ne.DBiDesign=Ml,ne.DDrag=Cs,ne.DDraggable=El,ne.DFlowDesign=hl,ne.DFormDesign=_l,ne.DIndexDesign=Nl,ne.DInputFlow=Bl,ne.DLayout=Ql,ne.default=U0,ne.dragContainer=Vo,ne.dragFormList=Po,ne.dragIndexList=Go,ne.dragTool=Ro,ne.toFormDesignSchema=Ul,ne.toFormSaveSchema=Jr,ne.toFormSchema=Fl});
|
|
34
|
+
}`,bQ=function(s){HQ(s,"."+as+FQ+fu+`
|
|
35
|
+
.`+ls+UQ+fu)},HQ=function(s,i){var c=s.ownerDocument;if(c){var l=c.createElement("style");l.textContent=i,s.appendChild(l)}},gu=(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})(),IQ=(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)||(us(i)||DQ(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(Q){switch(Q.label){case 0:return c=gu.isSameOrigin(i),l=!cs(i)&&this._options.useCORS===!0&&ge.SUPPORT_CORS_IMAGES&&!c,f=!cs(i)&&!c&&!us(i)&&typeof this._options.proxy=="string"&&ge.SUPPORT_CORS_XHR&&!l,!c&&this._options.allowTaint===!1&&!cs(i)&&!us(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,M){var R=new Image;R.onload=function(){return E(R)},R.onerror=M,(NQ(p)||l)&&(R.crossOrigin="anonymous"),R.src=p,R.complete===!0&&setTimeout(function(){return E(R)},500),C._options.imageTimeout>0&&setTimeout(function(){return M("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 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 Q=ge.SUPPORT_RESPONSE_TYPE?"blob":"text",E=new XMLHttpRequest;E.onload=function(){if(E.status===200)if(Q==="text")p(E.response);else{var z=new FileReader;z.addEventListener("load",function(){return p(z.result)},!1),z.addEventListener("error",function(j){return C(j)},!1),z.readAsDataURL(E.response)}else C("Failed to proxy resource "+f+" with status code "+E.status)},E.onerror=C;var M=l.indexOf("?")>-1?"&":"?";if(E.open("GET",""+l+M+"url="+encodeURIComponent(i)+"&responseType="+Q),Q!=="text"&&E instanceof XMLHttpRequest&&(E.responseType=Q),c._options.imageTimeout){var R=c._options.imageTimeout;E.timeout=R,E.ontimeout=function(){return C("Timed out ("+R+"ms) proxying "+f)}}E.send()})},s})(),_Q=/^data:image\/svg\+xml/i,SQ=/^data:image\/.*;base64,/i,xQ=/^data:image\/.*/i,DQ=function(s){return ge.SUPPORT_SVG_DRAWING||!LQ(s)},cs=function(s){return xQ.test(s)},NQ=function(s){return SQ.test(s)},us=function(s){return s.substr(0,4)==="blob"},LQ=function(s){return s.substr(-3).toLowerCase()==="svg"||_Q.test(s)},vA=(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})(),mn=function(s,i,c){return new vA(s.x+(i.x-s.x)*c,s.y+(i.y-s.y)*c)},_o=(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=mn(this.start,this.startControl,i),f=mn(this.startControl,this.endControl,i),p=mn(this.endControl,this.end,i),C=mn(l,f,i),Q=mn(f,p,i),E=mn(C,Q,i);return c?new s(this.start,l,C,E):new s(E,Q,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})(),De=function(s){return s.type===1},TQ=(function(){function s(i){var c=i.styles,l=i.bounds,f=er(c.borderTopLeftRadius,l.width,l.height),p=f[0],C=f[1],Q=er(c.borderTopRightRadius,l.width,l.height),E=Q[0],M=Q[1],R=er(c.borderBottomRightRadius,l.width,l.height),z=R[0],j=R[1],CA=er(c.borderBottomLeftRadius,l.width,l.height),BA=CA[0],mA=CA[1],RA=[];RA.push((p+E)/l.width),RA.push((BA+z)/l.width),RA.push((C+mA)/l.height),RA.push((M+j)/l.height);var xA=Math.max.apply(Math,RA);xA>1&&(p/=xA,C/=xA,E/=xA,M/=xA,z/=xA,j/=xA,BA/=xA,mA/=xA);var SA=l.width-E,Ae=l.height-j,GA=l.width-z,TA=l.height-mA,UA=c.borderTopWidth,VA=c.borderRightWidth,PA=c.borderBottomWidth,kA=c.borderLeftWidth,le=ZA(c.paddingTop,i.bounds.width),ye=ZA(c.paddingRight,i.bounds.width),_e=ZA(c.paddingBottom,i.bounds.width),WA=ZA(c.paddingLeft,i.bounds.width);this.topLeftBorderDoubleOuterBox=p>0||C>0?te(l.left+kA/3,l.top+UA/3,p-kA/3,C-UA/3,zA.TOP_LEFT):new vA(l.left+kA/3,l.top+UA/3),this.topRightBorderDoubleOuterBox=p>0||C>0?te(l.left+SA,l.top+UA/3,E-VA/3,M-UA/3,zA.TOP_RIGHT):new vA(l.left+l.width-VA/3,l.top+UA/3),this.bottomRightBorderDoubleOuterBox=z>0||j>0?te(l.left+GA,l.top+Ae,z-VA/3,j-PA/3,zA.BOTTOM_RIGHT):new vA(l.left+l.width-VA/3,l.top+l.height-PA/3),this.bottomLeftBorderDoubleOuterBox=BA>0||mA>0?te(l.left+kA/3,l.top+TA,BA-kA/3,mA-PA/3,zA.BOTTOM_LEFT):new vA(l.left+kA/3,l.top+l.height-PA/3),this.topLeftBorderDoubleInnerBox=p>0||C>0?te(l.left+kA*2/3,l.top+UA*2/3,p-kA*2/3,C-UA*2/3,zA.TOP_LEFT):new vA(l.left+kA*2/3,l.top+UA*2/3),this.topRightBorderDoubleInnerBox=p>0||C>0?te(l.left+SA,l.top+UA*2/3,E-VA*2/3,M-UA*2/3,zA.TOP_RIGHT):new vA(l.left+l.width-VA*2/3,l.top+UA*2/3),this.bottomRightBorderDoubleInnerBox=z>0||j>0?te(l.left+GA,l.top+Ae,z-VA*2/3,j-PA*2/3,zA.BOTTOM_RIGHT):new vA(l.left+l.width-VA*2/3,l.top+l.height-PA*2/3),this.bottomLeftBorderDoubleInnerBox=BA>0||mA>0?te(l.left+kA*2/3,l.top+TA,BA-kA*2/3,mA-PA*2/3,zA.BOTTOM_LEFT):new vA(l.left+kA*2/3,l.top+l.height-PA*2/3),this.topLeftBorderStroke=p>0||C>0?te(l.left+kA/2,l.top+UA/2,p-kA/2,C-UA/2,zA.TOP_LEFT):new vA(l.left+kA/2,l.top+UA/2),this.topRightBorderStroke=p>0||C>0?te(l.left+SA,l.top+UA/2,E-VA/2,M-UA/2,zA.TOP_RIGHT):new vA(l.left+l.width-VA/2,l.top+UA/2),this.bottomRightBorderStroke=z>0||j>0?te(l.left+GA,l.top+Ae,z-VA/2,j-PA/2,zA.BOTTOM_RIGHT):new vA(l.left+l.width-VA/2,l.top+l.height-PA/2),this.bottomLeftBorderStroke=BA>0||mA>0?te(l.left+kA/2,l.top+TA,BA-kA/2,mA-PA/2,zA.BOTTOM_LEFT):new vA(l.left+kA/2,l.top+l.height-PA/2),this.topLeftBorderBox=p>0||C>0?te(l.left,l.top,p,C,zA.TOP_LEFT):new vA(l.left,l.top),this.topRightBorderBox=E>0||M>0?te(l.left+SA,l.top,E,M,zA.TOP_RIGHT):new vA(l.left+l.width,l.top),this.bottomRightBorderBox=z>0||j>0?te(l.left+GA,l.top+Ae,z,j,zA.BOTTOM_RIGHT):new vA(l.left+l.width,l.top+l.height),this.bottomLeftBorderBox=BA>0||mA>0?te(l.left,l.top+TA,BA,mA,zA.BOTTOM_LEFT):new vA(l.left,l.top+l.height),this.topLeftPaddingBox=p>0||C>0?te(l.left+kA,l.top+UA,Math.max(0,p-kA),Math.max(0,C-UA),zA.TOP_LEFT):new vA(l.left+kA,l.top+UA),this.topRightPaddingBox=E>0||M>0?te(l.left+Math.min(SA,l.width-VA),l.top+UA,SA>l.width+VA?0:Math.max(0,E-VA),Math.max(0,M-UA),zA.TOP_RIGHT):new vA(l.left+l.width-VA,l.top+UA),this.bottomRightPaddingBox=z>0||j>0?te(l.left+Math.min(GA,l.width-kA),l.top+Math.min(Ae,l.height-PA),Math.max(0,z-VA),Math.max(0,j-PA),zA.BOTTOM_RIGHT):new vA(l.left+l.width-VA,l.top+l.height-PA),this.bottomLeftPaddingBox=BA>0||mA>0?te(l.left+kA,l.top+Math.min(TA,l.height-PA),Math.max(0,BA-kA),Math.max(0,mA-PA),zA.BOTTOM_LEFT):new vA(l.left+kA,l.top+l.height-PA),this.topLeftContentBox=p>0||C>0?te(l.left+kA+WA,l.top+UA+le,Math.max(0,p-(kA+WA)),Math.max(0,C-(UA+le)),zA.TOP_LEFT):new vA(l.left+kA+WA,l.top+UA+le),this.topRightContentBox=E>0||M>0?te(l.left+Math.min(SA,l.width+kA+WA),l.top+UA+le,SA>l.width+kA+WA?0:E-kA+WA,M-(UA+le),zA.TOP_RIGHT):new vA(l.left+l.width-(VA+ye),l.top+UA+le),this.bottomRightContentBox=z>0||j>0?te(l.left+Math.min(GA,l.width-(kA+WA)),l.top+Math.min(Ae,l.height+UA+le),Math.max(0,z-(VA+ye)),j-(PA+_e),zA.BOTTOM_RIGHT):new vA(l.left+l.width-(VA+ye),l.top+l.height-(PA+_e)),this.bottomLeftContentBox=BA>0||mA>0?te(l.left+kA+WA,l.top+TA,Math.max(0,BA-(kA+WA)),mA-(PA+_e),zA.BOTTOM_LEFT):new vA(l.left+kA+WA,l.top+l.height-(PA+_e))}return s})(),zA;(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"})(zA||(zA={}));var te=function(s,i,c,l,f){var p=4*((Math.sqrt(2)-1)/3),C=c*p,Q=l*p,E=s+c,M=i+l;switch(f){case zA.TOP_LEFT:return new _o(new vA(s,M),new vA(s,M-Q),new vA(E-C,i),new vA(E,i));case zA.TOP_RIGHT:return new _o(new vA(s,i),new vA(s+C,i),new vA(E,M-Q),new vA(E,M));case zA.BOTTOM_RIGHT:return new _o(new vA(E,i),new vA(E,i+Q),new vA(s+C,M),new vA(s,M));case zA.BOTTOM_LEFT:default:return new _o(new vA(E,M),new vA(E-C,M),new vA(s,i+Q),new vA(s,i))}},So=function(s){return[s.topLeftBorderBox,s.topRightBorderBox,s.bottomRightBorderBox,s.bottomLeftBorderBox]},kQ=function(s){return[s.topLeftContentBox,s.topRightContentBox,s.bottomRightContentBox,s.bottomLeftContentBox]},xo=function(s){return[s.topLeftPaddingBox,s.topRightPaddingBox,s.bottomRightPaddingBox,s.bottomLeftPaddingBox]},MQ=(function(){function s(i,c,l){this.offsetX=i,this.offsetY=c,this.matrix=l,this.type=0,this.target=6}return s})(),Do=(function(){function s(i,c){this.path=i,this.target=c,this.type=1}return s})(),OQ=(function(){function s(i){this.opacity=i,this.type=2,this.target=6}return s})(),KQ=function(s){return s.type===0},hu=function(s){return s.type===1},RQ=function(s){return s.type===2},Bu=function(s,i){return s.length===i.length?s.some(function(c,l){return c===i[l]}):!1},VQ=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})},pu=(function(){function s(i){this.element=i,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return s})(),mu=(function(){function s(i,c){if(this.container=i,this.parent=c,this.effects=[],this.curves=new TQ(this.container),this.container.styles.opacity<1&&this.effects.push(new OQ(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 MQ(l,f,p))}if(this.container.styles.overflowX!==0){var C=So(this.curves),Q=xo(this.curves);Bu(C,Q)?this.effects.push(new Do(C,6)):(this.effects.push(new Do(C,2)),this.effects.push(new Do(Q,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!hu(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=So(l.curves),Q=xo(l.curves);Bu(C,Q)||f.unshift(new Do(Q,6))}}else f.unshift.apply(f,p);l=l.parent}return f.filter(function(E){return ue(E.target,i)})},s})(),ds=function(s,i,c,l){s.container.elements.forEach(function(f){var p=ue(f.flags,4),C=ue(f.flags,2),Q=new mu(f,s);ue(f.styles.display,2048)&&l.push(Q);var E=ue(f.flags,8)?[]:l;if(p||C){var M=p||f.styles.isPositioned()?c:i,R=new pu(Q);if(f.styles.isPositioned()||f.styles.opacity<1||f.styles.isTransformed()){var z=f.styles.zIndex.order;if(z<0){var j=0;M.negativeZIndex.some(function(BA,mA){return z>BA.element.container.styles.zIndex.order?(j=mA,!1):j>0}),M.negativeZIndex.splice(j,0,R)}else if(z>0){var CA=0;M.positiveZIndex.some(function(BA,mA){return z>=BA.element.container.styles.zIndex.order?(CA=mA+1,!1):CA>0}),M.positiveZIndex.splice(CA,0,R)}else M.zeroOrAutoZIndexOrTransformedOrOpacity.push(R)}else f.styles.isFloating()?M.nonPositionedFloats.push(R):M.nonPositionedInlineLevel.push(R);ds(Q,R,p?R:c,E)}else f.styles.isInlineLevel()?i.inlineLevel.push(Q):i.nonInlineLevel.push(Q),ds(Q,i,c,E);ue(f.flags,8)&&wu(f,E)})},wu=function(s,i){for(var c=s instanceof es?s.start:1,l=s instanceof es?s.reversed:!1,f=0;f<i.length;f++){var p=i[f];p.container instanceof Gc&&typeof p.container.value=="number"&&p.container.value!==0&&(c=p.container.value),p.listValue=sr(c,p.container.styles.listStyleType,!0),c+=l?-1:1}},PQ=function(s){var i=new mu(s,null),c=new pu(i),l=[];return ds(i,c,c,l),wu(i.container,l),c},Cu=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)}},GQ=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)}},zQ=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)}},XQ=function(s,i){switch(i){case 0:return No(s.topLeftBorderStroke,s.topRightBorderStroke);case 1:return No(s.topRightBorderStroke,s.bottomRightBorderStroke);case 2:return No(s.bottomRightBorderStroke,s.bottomLeftBorderStroke);default:return No(s.bottomLeftBorderStroke,s.topLeftBorderStroke)}},No=function(s,i){var c=[];return De(s)?c.push(s.subdivide(.5,!1)):c.push(s),De(i)?c.push(i.subdivide(.5,!0)):c.push(i),c},Ne=function(s,i,c,l){var f=[];return De(s)?f.push(s.subdivide(.5,!1)):f.push(s),De(c)?f.push(c.subdivide(.5,!0)):f.push(c),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},vu=function(s){var i=s.bounds,c=s.styles;return i.add(c.borderLeftWidth,c.borderTopWidth,-(c.borderRightWidth+c.borderLeftWidth),-(c.borderTopWidth+c.borderBottomWidth))},Lo=function(s){var i=s.styles,c=s.bounds,l=ZA(i.paddingLeft,c.width),f=ZA(i.paddingRight,c.width),p=ZA(i.paddingTop,c.width),C=ZA(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))},$Q=function(s,i){return s===0?i.bounds:s===2?Lo(i):vu(i)},YQ=function(s,i){return s===0?i.bounds:s===2?Lo(i):vu(i)},fs=function(s,i,c){var l=$Q(Cn(s.styles.backgroundOrigin,i),s),f=YQ(Cn(s.styles.backgroundClip,i),s),p=WQ(Cn(s.styles.backgroundSize,i),c,l),C=p[0],Q=p[1],E=er(Cn(s.styles.backgroundPosition,i),l.width-C,l.height-Q);return[JQ(Cn(s.styles.backgroundRepeat,i),E,p,l,f),Math.round(l.left+E[0]),Math.round(l.top+E[1]),C,Q]},wn=function(s){return YA(s)&&s.value===gn.AUTO},To=function(s){return typeof s=="number"},WQ=function(s,i,c){var l=i[0],f=i[1],p=i[2],C=s[0],Q=s[1];if(!C)return[0,0];if(ae(C)&&Q&&ae(Q))return[ZA(C,c.width),ZA(Q,c.height)];var E=To(p);if(YA(C)&&(C.value===gn.CONTAIN||C.value===gn.COVER))return To(p)?c.width/c.height<p!=(C.value===gn.COVER)?[c.width,c.width/p]:[c.height*p,c.height]:[c.width,c.height];var M=To(l),R=To(f),z=M||R;if(wn(C)&&(!Q||wn(Q)))return M&&R?[l,f]:!E&&!z?[c.width,c.height]:z&&E?[M?l:f*p,R?f:l/p]:[M?l:c.width,R?f:c.height];if(E){var j=0,CA=0;return ae(C)?j=ZA(C,c.width):ae(Q)&&(CA=ZA(Q,c.height)),wn(C)?j=CA*p:(!Q||wn(Q))&&(CA=j/p),[j,CA]}var BA=null,mA=null;if(ae(C)?BA=ZA(C,c.width):Q&&ae(Q)&&(mA=ZA(Q,c.height)),BA!==null&&(!Q||wn(Q))&&(mA=M&&R?BA/l*f:c.height),mA!==null&&wn(C)&&(BA=M&&R?mA/f*l:c.width),BA!==null&&mA!==null)return[BA,mA];throw new Error("Unable to calculate background-size for element")},Cn=function(s,i){var c=s[i];return typeof c>"u"?s[0]:c},JQ=function(s,i,c,l,f){var p=i[0],C=i[1],Q=c[0],E=c[1];switch(s){case 2:return[new vA(Math.round(l.left),Math.round(l.top+C)),new vA(Math.round(l.left+l.width),Math.round(l.top+C)),new vA(Math.round(l.left+l.width),Math.round(E+l.top+C)),new vA(Math.round(l.left),Math.round(E+l.top+C))];case 3:return[new vA(Math.round(l.left+p),Math.round(l.top)),new vA(Math.round(l.left+p+Q),Math.round(l.top)),new vA(Math.round(l.left+p+Q),Math.round(l.height+l.top)),new vA(Math.round(l.left+p),Math.round(l.height+l.top))];case 1:return[new vA(Math.round(l.left+p),Math.round(l.top+C)),new vA(Math.round(l.left+p+Q),Math.round(l.top+C)),new vA(Math.round(l.left+p+Q),Math.round(l.top+C+E)),new vA(Math.round(l.left+p),Math.round(l.top+C+E))];default:return[new vA(Math.round(f.left),Math.round(f.top)),new vA(Math.round(f.left+f.width),Math.round(f.top)),new vA(Math.round(f.left+f.width),Math.round(f.height+f.top)),new vA(Math.round(f.left),Math.round(f.height+f.top))]}},ZQ="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",yu="Hidden Text",jQ=(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=ZQ,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(yu)),l.appendChild(p),l.appendChild(f);var Q=f.offsetTop-p.offsetTop+2;l.removeChild(p),l.appendChild(this._document.createTextNode(yu)),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,c){var l=i+" "+c;return typeof this._data[l]>"u"&&(this._data[l]=this.parseMetrics(i,c)),this._data[l]},s})(),Qu=(function(){function s(i,c){this.context=i,this.options=c}return s})(),qQ=1e4,AE=(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 jQ(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(),RQ(c)&&(this.ctx.globalAlpha=c.opacity),KQ(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)),hu(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(ue(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):As(c.text).reduce(function(C,Q){return p.ctx.fillText(Q,C,c.bounds.top+f),C+p.ctx.measureText(Q).width},c.bounds.left)},i.prototype.createFontStyle=function(c){var l=c.fontVariant.filter(function(C){return C==="normal"||C==="small-caps"}).join(""),f=oE(c.fontFamily).join(", "),p=Ar(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,Q,E,M,R,z,j=this;return u(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),M=E.baseline,R=E.middle,z=l.paintOrder,c.textBounds.forEach(function(BA){z.forEach(function(mA){switch(mA){case 0:j.ctx.fillStyle=de(l.color),j.renderTextWithLetterSpacing(BA,l.letterSpacing,M);var RA=l.textShadow;RA.length&&BA.text.trim().length&&(RA.slice(0).reverse().forEach(function(xA){j.ctx.shadowColor=de(xA.color),j.ctx.shadowOffsetX=xA.offsetX.number*j.options.scale,j.ctx.shadowOffsetY=xA.offsetY.number*j.options.scale,j.ctx.shadowBlur=xA.blur.number,j.renderTextWithLetterSpacing(BA,l.letterSpacing,M)}),j.ctx.shadowColor="",j.ctx.shadowOffsetX=0,j.ctx.shadowOffsetY=0,j.ctx.shadowBlur=0),l.textDecorationLine.length&&(j.ctx.fillStyle=de(l.textDecorationColor||l.color),l.textDecorationLine.forEach(function(xA){switch(xA){case 1:j.ctx.fillRect(BA.bounds.left,Math.round(BA.bounds.top+M),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+R),BA.bounds.width,1);break}}));break;case 1:l.webkitTextStrokeWidth&&BA.text.trim().length&&(j.ctx.strokeStyle=de(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+M)),j.ctx.strokeStyle="",j.ctx.lineWidth=0,j.ctx.lineJoin="miter";break}})}),[2]})})},i.prototype.renderReplacedElement=function(c,l,f){if(f&&c.intrinsicWidth>0&&c.intrinsicHeight>0){var p=Lo(c),C=xo(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,Q,E,SA,SA,M,R,z,j,GA,CA,BA,TA,mA,RA,xA,SA,Ae,GA,TA;return u(this,function(UA){switch(UA.label){case 0:this.applyEffects(c.getEffects(4)),l=c.container,f=c.curves,p=l.styles,C=0,Q=l.textNodes,UA.label=1;case 1:return C<Q.length?(E=Q[C],[4,this.renderTextNode(E,p)]):[3,4];case 2:UA.sent(),UA.label=3;case 3:return C++,[3,1];case 4:if(!(l instanceof Rc))return[3,8];UA.label=5;case 5:return UA.trys.push([5,7,,8]),[4,this.context.cache.match(l.src)];case 6:return SA=UA.sent(),this.renderReplacedElement(l,f,SA),[3,8];case 7:return UA.sent(),this.context.logger.error("Error loading image "+l.src),[3,8];case 8:if(l instanceof Vc&&this.renderReplacedElement(l,f,l.canvas),!(l instanceof Pc))return[3,12];UA.label=9;case 9:return UA.trys.push([9,11,,12]),[4,this.context.cache.match(l.svg)];case 10:return SA=UA.sent(),this.renderReplacedElement(l,f,SA),[3,12];case 11:return UA.sent(),this.context.logger.error("Error loading svg "+l.svg.substring(0,255)),[3,12];case 12:return l instanceof Yc&&l.tree?(M=new i(this.context,{scale:this.options.scale,backgroundColor:l.backgroundColor,x:0,y:0,width:l.width,height:l.height}),[4,M.render(l.tree)]):[3,14];case 13:R=UA.sent(),l.width&&l.height&&this.ctx.drawImage(R,0,0,l.width,l.height,l.bounds.left,l.bounds.top,l.bounds.width,l.bounds.height),UA.label=14;case 14:if(l instanceof ts&&(z=Math.min(l.bounds.width,l.bounds.height),l.type===Eo?l.checked&&(this.ctx.save(),this.path([new vA(l.bounds.left+z*.39363,l.bounds.top+z*.79),new vA(l.bounds.left+z*.16,l.bounds.top+z*.5549),new vA(l.bounds.left+z*.27347,l.bounds.top+z*.44071),new vA(l.bounds.left+z*.39694,l.bounds.top+z*.5649),new vA(l.bounds.left+z*.72983,l.bounds.top+z*.23),new vA(l.bounds.left+z*.84,l.bounds.top+z*.34085),new vA(l.bounds.left+z*.39363,l.bounds.top+z*.79)]),this.ctx.fillStyle=de(zc),this.ctx.fill(),this.ctx.restore()):l.type===Fo&&l.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(l.bounds.left+z/2,l.bounds.top+z/2,z/4,0,Math.PI*2,!0),this.ctx.fillStyle=de(zc),this.ctx.fill(),this.ctx.restore())),eE(l)&&l.value.length){switch(j=this.createFontStyle(p),GA=j[0],CA=j[1],BA=this.fontMetrics.getMetrics(GA,CA).baseline,this.ctx.font=GA,this.ctx.fillStyle=de(p.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=nE(l.styles.textAlign),TA=Lo(l),mA=0,l.styles.textAlign){case 1:mA+=TA.width/2;break;case 2:mA+=TA.width;break}RA=TA.add(mA,0,0,-TA.height/2+1),this.ctx.save(),this.path([new vA(TA.left,TA.top),new vA(TA.left+TA.width,TA.top),new vA(TA.left+TA.width,TA.top+TA.height),new vA(TA.left,TA.top+TA.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new or(l.value,RA),p.letterSpacing,BA),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!ue(l.styles.display,2048))return[3,20];if(l.styles.listStyleImage===null)return[3,19];if(xA=l.styles.listStyleImage,xA.type!==0)return[3,18];SA=void 0,Ae=xA.url,UA.label=15;case 15:return UA.trys.push([15,17,,18]),[4,this.context.cache.match(Ae)];case 16:return SA=UA.sent(),this.ctx.drawImage(SA,l.bounds.left-(SA.width+10),l.bounds.top),[3,18];case 17:return UA.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&&(GA=this.createFontStyle(p)[0],this.ctx.font=GA,this.ctx.fillStyle=de(p.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",TA=new h(l.bounds.left,l.bounds.top+ZA(l.styles.paddingTop,l.bounds.width),l.bounds.width,yc(p.lineHeight,p.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new or(c.listValue,TA),p.letterSpacing,yc(p.lineHeight,p.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),UA.label=20;case 20:return[2]}})})},i.prototype.renderStackContent=function(c){return a(this,void 0,void 0,function(){var l,f,xA,p,C,xA,Q,E,xA,M,R,xA,z,j,xA,CA,BA,xA,mA,RA,xA;return u(this,function(SA){switch(SA.label){case 0:if(ue(c.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(c.element)];case 1:SA.sent(),l=0,f=c.negativeZIndex,SA.label=2;case 2:return l<f.length?(xA=f[l],[4,this.renderStack(xA)]):[3,5];case 3:SA.sent(),SA.label=4;case 4:return l++,[3,2];case 5:return[4,this.renderNodeContent(c.element)];case 6:SA.sent(),p=0,C=c.nonInlineLevel,SA.label=7;case 7:return p<C.length?(xA=C[p],[4,this.renderNode(xA)]):[3,10];case 8:SA.sent(),SA.label=9;case 9:return p++,[3,7];case 10:Q=0,E=c.nonPositionedFloats,SA.label=11;case 11:return Q<E.length?(xA=E[Q],[4,this.renderStack(xA)]):[3,14];case 12:SA.sent(),SA.label=13;case 13:return Q++,[3,11];case 14:M=0,R=c.nonPositionedInlineLevel,SA.label=15;case 15:return M<R.length?(xA=R[M],[4,this.renderStack(xA)]):[3,18];case 16:SA.sent(),SA.label=17;case 17:return M++,[3,15];case 18:z=0,j=c.inlineLevel,SA.label=19;case 19:return z<j.length?(xA=j[z],[4,this.renderNode(xA)]):[3,22];case 20:SA.sent(),SA.label=21;case 21:return z++,[3,19];case 22:CA=0,BA=c.zeroOrAutoZIndexOrTransformedOrOpacity,SA.label=23;case 23:return CA<BA.length?(xA=BA[CA],[4,this.renderStack(xA)]):[3,26];case 24:SA.sent(),SA.label=25;case 25:return CA++,[3,23];case 26:mA=0,RA=c.positiveZIndex,SA.label=27;case 27:return mA<RA.length?(xA=RA[mA],[4,this.renderStack(xA)]):[3,30];case 28:SA.sent(),SA.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=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(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,Q,E;return u(this,function(M){switch(M.label){case 0:l=c.styles.backgroundImage.length-1,f=function(R){var z,j,CA,le,Qe,Ee,WA,he,PA,BA,le,Qe,Ee,WA,he,mA,RA,xA,SA,Ae,GA,TA,UA,VA,PA,kA,le,ye,_e,WA,he,Ht,Qe,Ee,Gt,je,It,zt,Xt,ct,$t,ut;return u(this,function(vn){switch(vn.label){case 0:if(R.type!==0)return[3,5];z=void 0,j=R.url,vn.label=1;case 1:return vn.trys.push([1,3,,4]),[4,p.context.cache.match(j)];case 2:return z=vn.sent(),[3,4];case 3:return vn.sent(),p.context.logger.error("Error loading background-image "+j),[3,4];case 4:return z&&(CA=fs(c,l,[z.width,z.height,z.width/z.height]),le=CA[0],Qe=CA[1],Ee=CA[2],WA=CA[3],he=CA[4],PA=p.ctx.createPattern(p.resizeImage(z,WA,he),"repeat"),p.renderRepeat(le,PA,Qe,Ee)),[3,6];case 5:XC(R)?(BA=fs(c,l,[null,null,null]),le=BA[0],Qe=BA[1],Ee=BA[2],WA=BA[3],he=BA[4],mA=RC(R.angle,WA,he),RA=mA[0],xA=mA[1],SA=mA[2],Ae=mA[3],GA=mA[4],TA=document.createElement("canvas"),TA.width=WA,TA.height=he,UA=TA.getContext("2d"),VA=UA.createLinearGradient(xA,Ae,SA,GA),uc(R.stops,RA).forEach(function(lr){return VA.addColorStop(lr.stop,de(lr.color))}),UA.fillStyle=VA,UA.fillRect(0,0,WA,he),WA>0&&he>0&&(PA=p.ctx.createPattern(TA,"repeat"),p.renderRepeat(le,PA,Qe,Ee))):$C(R)&&(kA=fs(c,l,[null,null,null]),le=kA[0],ye=kA[1],_e=kA[2],WA=kA[3],he=kA[4],Ht=R.position.length===0?[Oi]:R.position,Qe=ZA(Ht[0],WA),Ee=ZA(Ht[Ht.length-1],he),Gt=VC(R,Qe,Ee,WA,he),je=Gt[0],It=Gt[1],je>0&&It>0&&(zt=p.ctx.createRadialGradient(ye+Qe,_e+Ee,0,ye+Qe,_e+Ee,je),uc(R.stops,je*2).forEach(function(lr){return zt.addColorStop(lr.stop,de(lr.color))}),p.path(le),p.ctx.fillStyle=zt,je!==It?(Xt=c.bounds.left+.5*c.bounds.width,ct=c.bounds.top+.5*c.bounds.height,$t=It/je,ut=1/$t,p.ctx.save(),p.ctx.translate(Xt,ct),p.ctx.transform(1,0,0,$t,0,0),p.ctx.translate(-Xt,-ct),p.ctx.fillRect(ye,ut*(_e-ct)+ct,WA,he*ut),p.ctx.restore()):p.ctx.fill())),vn.label=6;case 6:return l--,[2]}})},p=this,C=0,Q=c.styles.backgroundImage.slice(0).reverse(),M.label=1;case 1:return C<Q.length?(E=Q[C],[5,f(E)]):[3,4];case 2:M.sent(),M.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(Cu(f,l)),this.ctx.fillStyle=de(c),this.ctx.fill(),[2]})})},i.prototype.renderDoubleBorder=function(c,l,f,p){return a(this,void 0,void 0,function(){var C,Q;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=GQ(p,f),this.path(C),this.ctx.fillStyle=de(c),this.ctx.fill(),Q=zQ(p,f),this.path(Q),this.ctx.fill(),[2]}})})},i.prototype.renderNodeBackgroundAndBorders=function(c){return a(this,void 0,void 0,function(){var l,f,p,C,Q,E,M,R,z=this;return u(this,function(j){switch(j.label){case 0:return this.applyEffects(c.getEffects(2)),l=c.container.styles,f=!Et(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=tE(Cn(l.backgroundClip,0),c.curves),f||l.boxShadow.length?(this.ctx.save(),this.path(C),this.ctx.clip(),Et(l.backgroundColor)||(this.ctx.fillStyle=de(l.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(c.container)]):[3,2];case 1:j.sent(),this.ctx.restore(),l.boxShadow.slice(0).reverse().forEach(function(CA){z.ctx.save();var BA=So(c.curves),mA=CA.inset?0:qQ,RA=VQ(BA,-mA+(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?(z.path(BA),z.ctx.clip(),z.mask(RA)):(z.mask(BA),z.ctx.clip(),z.path(RA)),z.ctx.shadowOffsetX=CA.offsetX.number+mA,z.ctx.shadowOffsetY=CA.offsetY.number,z.ctx.shadowColor=de(CA.color),z.ctx.shadowBlur=CA.blur.number,z.ctx.fillStyle=CA.inset?de(CA.color):"rgba(0,0,0,1)",z.ctx.fill(),z.ctx.restore()}),j.label=2;case 2:Q=0,E=0,M=p,j.label=3;case 3:return E<M.length?(R=M[E],R.style!==0&&!Et(R.color)&&R.width>0?R.style!==2?[3,5]:[4,this.renderDashedDottedBorder(R.color,R.width,Q,c.curves,2)]:[3,11]):[3,13];case 4:return j.sent(),[3,11];case 5:return R.style!==3?[3,7]:[4,this.renderDashedDottedBorder(R.color,R.width,Q,c.curves,3)];case 6:return j.sent(),[3,11];case 7:return R.style!==4?[3,9]:[4,this.renderDoubleBorder(R.color,R.width,Q,c.curves)];case 8:return j.sent(),[3,11];case 9:return[4,this.renderSolidBorder(R.color,Q,c.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(c,l,f,p,C){return a(this,void 0,void 0,function(){var Q,E,M,R,z,j,CA,BA,mA,RA,xA,SA,Ae,GA,TA,UA,TA,UA;return u(this,function(VA){return this.ctx.save(),Q=XQ(p,f),E=Cu(p,f),C===2&&(this.path(E),this.ctx.clip()),De(E[0])?(M=E[0].start.x,R=E[0].start.y):(M=E[0].x,R=E[0].y),De(E[1])?(z=E[1].end.x,j=E[1].end.y):(z=E[1].x,j=E[1].y),f===0||f===2?CA=Math.abs(M-z):CA=Math.abs(R-j),this.ctx.beginPath(),C===3?this.formatPath(Q):this.formatPath(E.slice(0,2)),BA=l<3?l*3:l*2,mA=l<3?l*2:l,C===3&&(BA=l,mA=l),RA=!0,CA<=BA*2?RA=!1:CA<=BA*2+mA?(xA=CA/(2*BA+mA),BA*=xA,mA*=xA):(SA=Math.floor((CA+mA)/(BA+mA)),Ae=(CA-SA*BA)/(SA-1),GA=(CA-(SA+1)*BA)/SA,mA=GA<=0||Math.abs(mA-Ae)<Math.abs(mA-GA)?Ae:GA),RA&&(C===3?this.ctx.setLineDash([0,BA+mA]):this.ctx.setLineDash([BA,mA])),C===3?(this.ctx.lineCap="round",this.ctx.lineWidth=l):this.ctx.lineWidth=l*2+1.1,this.ctx.strokeStyle=de(c),this.ctx.stroke(),this.ctx.setLineDash([]),C===2&&(De(E[0])&&(TA=E[3],UA=E[0],this.ctx.beginPath(),this.formatPath([new vA(TA.end.x,TA.end.y),new vA(UA.start.x,UA.start.y)]),this.ctx.stroke()),De(E[1])&&(TA=E[1],UA=E[2],this.ctx.beginPath(),this.formatPath([new vA(TA.end.x,TA.end.y),new vA(UA.start.x,UA.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=de(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),l=PQ(c),[4,this.renderStack(l)];case 1:return f.sent(),this.applyEffects([]),[2,this.canvas]}})})},i})(Qu),eE=function(s){return s instanceof $c||s instanceof Xc?!0:s instanceof ts&&s.type!==Fo&&s.type!==Eo},tE=function(s,i){switch(s){case 0:return So(i);case 2:return kQ(i);default:return xo(i)}},nE=function(s){switch(s){case 1:return"center";case 2:return"right";default:return"left"}},rE=["-apple-system","system-ui"],oE=function(s){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?s.filter(function(i){return rE.indexOf(i)===-1}):s},iE=(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=qi(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,c),[4,sE(l)];case 1:return f=p.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=de(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})(Qu),sE=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))})},aE=(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})(),lE=(function(){function s(i,c){var l;this.windowBounds=c,this.instanceName="#"+s.instanceCount++,this.logger=new aE({id:this.instanceName,enabled:i.logging}),this.cache=(l=i.cache)!==null&&l!==void 0?l:new IQ(this,i)}return s.instanceCount=1,s})(),cE=function(s,i){return i===void 0&&(i={}),uE(s,i)};typeof window<"u"&&gu.setContext(window);var uE=function(s,i){return a(void 0,void 0,void 0,function(){var c,l,f,p,C,Q,E,M,R,z,j,CA,BA,mA,RA,xA,SA,Ae,GA,TA,VA,UA,VA,PA,kA,le,ye,_e,WA,he,Ht,Qe,Ee,Gt,je,It,zt,Xt,ct,$t;return u(this,function(ut){switch(ut.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:(PA=i.allowTaint)!==null&&PA!==void 0?PA:!1,imageTimeout:(kA=i.imageTimeout)!==null&&kA!==void 0?kA:15e3,proxy:i.proxy,useCORS:(le=i.useCORS)!==null&&le!==void 0?le:!1},p=r({logging:(ye=i.logging)!==null&&ye!==void 0?ye:!0,cache:i.cache},f),C={windowWidth:(_e=i.windowWidth)!==null&&_e!==void 0?_e:l.innerWidth,windowHeight:(WA=i.windowHeight)!==null&&WA!==void 0?WA:l.innerHeight,scrollX:(he=i.scrollX)!==null&&he!==void 0?he:l.pageXOffset,scrollY:(Ht=i.scrollY)!==null&&Ht!==void 0?Ht:l.pageYOffset},Q=new h(C.scrollX,C.scrollY,C.windowWidth,C.windowHeight),E=new lE(p,Q),M=(Qe=i.foreignObjectRendering)!==null&&Qe!==void 0?Qe:!1,R={allowTaint:(Ee=i.allowTaint)!==null&&Ee!==void 0?Ee:!1,onclone:i.onclone,ignoreElements:i.ignoreElements,inlineImages:M,copyStyles:M},E.logger.debug("Starting document clone with size "+Q.width+"x"+Q.height+" scrolled to "+-Q.left+","+-Q.top),z=new du(E,s,R),j=z.clonedReferenceElement,j?[4,z.toIFrame(c,Q)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return CA=ut.sent(),BA=rs(j)||dQ(j)?B(j.ownerDocument):g(E,j),mA=BA.width,RA=BA.height,xA=BA.left,SA=BA.top,Ae=dE(E,j,i.backgroundColor),GA={canvas:i.canvas,backgroundColor:Ae,scale:(je=(Gt=i.scale)!==null&&Gt!==void 0?Gt:l.devicePixelRatio)!==null&&je!==void 0?je:1,x:((It=i.x)!==null&&It!==void 0?It:0)+xA,y:((zt=i.y)!==null&&zt!==void 0?zt:0)+SA,width:(Xt=i.width)!==null&&Xt!==void 0?Xt:Math.ceil(mA),height:(ct=i.height)!==null&&ct!==void 0?ct:Math.ceil(RA)},M?(E.logger.debug("Document cloned, using foreign object rendering"),VA=new iE(E,GA),[4,VA.render(j)]):[3,3];case 2:return TA=ut.sent(),[3,5];case 3:return E.logger.debug("Document cloned, element located at "+xA+","+SA+" with size "+mA+"x"+RA+" using computed rendering"),E.logger.debug("Starting DOM parsing"),UA=Jc(E,j),Ae===UA.styles.backgroundColor&&(UA.styles.backgroundColor=at.TRANSPARENT),E.logger.debug("Starting renderer for element at "+GA.x+","+GA.y+" with size "+GA.width+"x"+GA.height),VA=new AE(E,GA),[4,VA.render(UA)];case 4:TA=ut.sent(),ut.label=5;case 5:return(!(($t=i.removeContainer)!==null&&$t!==void 0)||$t)&&(du.destroy(CA)||E.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),E.logger.debug("Finished rendering"),[2,TA]}})})},dE=function(s,i,c){var l=i.ownerDocument,f=l.documentElement?tr(s,getComputedStyle(l.documentElement).backgroundColor):at.TRANSPARENT,p=l.body?tr(s,getComputedStyle(l.body).backgroundColor):at.TRANSPARENT,C=typeof c=="string"?tr(s,c):c===null?at.TRANSPARENT:4294967295;return i===l.documentElement?Et(f)?Et(p)?C:p:f:C};return cE}))})),n0=Bs(t0(),1),r0=(0,o.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:r,token:a,httpGet:u,httpPost:d,httpPut:h,httpDelete:g,success:B,warning:w,error:m,info:v,useData:y}=(0,pe.useAppInject)(),{loadData:I,getData:T}=y(),D=(0,o.computed)(()=>{const S={transform:`scale(${t.scale}, ${t.scale})`,transformOrigin:"left top",position:"relative",width:JA(t.indexPage.config.w||1920),height:JA(t.indexPage.config.h||1080),backgroundColor:t.indexPage.config.backgroundColor||"var(--j-color-bg-container)"};return t.indexPage.config.backgroundImage&&(S.background=`url(${r}/system/annexesfile/${t.indexPage.config.backgroundImage}?token=${a?.value}) 0% 0% / 100% 100% ${t.indexPage.config.backgroundColor||"var(--j-color-bg-container)"}`),S}),V=S=>{n("select",S)},b=S=>{n("move",S)},K=S=>{S?.target?.getAttribute("id")==="j-bi-design-container"&&n("select",t.indexPage)},sA={},W=(S,eA)=>{S&&(sA[eA]=S)},cA=(0,o.computed)(()=>t.layout.map(S=>({...S,$refs:sA[S.id]}))),lA=async(S,eA)=>{if(S&&S.trim()){S=`async (jcode) => {${S}}`;const{res:H,msg:X,fn:U}=(0,pe.getFunction)(S);if(H)return U(AA(eA));m&&m(X)}},oA=S=>sA[S]?.getValue?.()||[],iA=S=>cA.value.find(({id:eA})=>eA===S)?.config||{},AA=S=>(S.get=oA,S.getProps=iA,S.getSourceData=async(eA,H)=>(await I("dbsource",eA,JSON.stringify(H),!1),T("dbsource",eA,{params:H})),S.getDateNow=eA=>(0,pe.formatToDateTime)(new Date,eA||"YYYY-MM-DD HH:mm:ss"),S.httpGet=u,S.httpPost=d,S.httpPut=h,S.httpDelete=g,S.loading=()=>{(0,pe.fullScreenLoading)(!0)},S.hideLoading=()=>{(0,pe.fullScreenLoading)(!1)},S.message=(eA,H)=>{switch(H){case"success":B&&B(eA);break;case"warning":w&&w(eA);break;case"error":m&&m(eA);break;case"info":v&&v(eA);break;default:v&&v(eA);break}},S);return(0,o.provide)("dui_bi_container",{executeEvent:lA}),(S,eA)=>{const H=(0,o.resolveComponent)("d-draggable");return(0,o.openBlock)(),(0,o.createElementBlock)("div",{onClick:(0,o.withModifiers)(K,["stop"]),id:"j-bi-design-container",style:(0,o.normalizeStyle)(D.value)},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.layout,(X,U)=>((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:X.id},[X.display?((0,o.openBlock)(),(0,o.createBlock)(H,{key:0,id:X.id,left:X.config.x,top:X.config.y,width:X.config.w,height:X.config.h,scale:1/e.scale,step:1/e.scale,"active-flag":X.id==e.activedComponent.id,readonly:X.lock,"data-id":X.id,onFocus:L=>V(X),onBlur:b,"z-index":e.layout.length-U,"is-active-bg-transparent":!0},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(X.componentName),(0,o.mergeProps)({style:{width:(0,o.unref)(JA)(X.config.w),height:(0,o.unref)(JA)(X.config.h)}},{ref_for:!0},X.config,{"is-design":!0,ref_for:!0,ref:L=>W(L,X.id)}),null,16,["style"]))]),_:2},1032,["id","left","top","width","height","scale","step","active-flag","readonly","data-id","onFocus","z-index"])):(0,o.createCommentVNode)("",!0)],64))),128))],4)}}}),Tl=r0,o0=({data:e,actions:A,utils:t,inputParams:n,notRunActions:r})=>{const a=d=>e.filter(h=>h.source===d).map(h=>h.target),u=async d=>{d=d||"start";const h=e.find(g=>g.id===d);if(h.config.type==="start"){const g=a(d);for(let B=0;B<g.length;B++)await u(g[B])}else{const g=A[h.config.type];g&&await g(h.config,t,async B=>{if(B=B||{},B.nodeId=d,B.next!==!1){const w=a(B.nodeId);for(let m=0;m<w.length;m++)await u(w[m])}},n,B=>{r[B]={data:e,inputParams:n}})}};return{run:u}},i0=(0,o.defineComponent)({name:"DBiViewer",__name:"biViewer",props:{layout:{type:Array,default:()=>[]},indexPage:{type:Object,default:()=>({})},actions:{type:Object,default:()=>({})}},setup(e){const A=e,{apiUrl:t,token:n,httpGet:r,httpPost:a,httpPut:u,httpDelete:d,success:h,warning:g,error:B,info:w,useData:m}=(0,pe.useAppInject)(),{loadData:v,getData:y}=m(),I=(0,o.computed)(()=>A.layout),T=(0,o.ref)(),D=(0,o.ref)(1),V=(0,o.ref)(1),b=()=>{T.value&&K(T.value.offsetWidth,T.value.offsetHeight)},K=(k,N)=>{const O=A.indexPage.config?.w||1920,Y=A.indexPage.config?.h||1080,tA=A.indexPage.config?.screenFit||"1";tA==="1"?(V.value=k/O,D.value=V.value):tA==="2"?(D.value=N/Y,V.value=D.value):tA==="3"&&(V.value=k/O,D.value=N/Y)},sA=(0,o.computed)(()=>{const k={transform:`scale(${V.value}, ${D.value})`,transformOrigin:"left top",position:"relative",overflow:"hidden",width:JA(A.indexPage.config?.w||1920),height:JA(A.indexPage.config?.h||1080),backgroundColor:A.indexPage.config?.backgroundColor||"var(--j-color-bg-container)"};return A.indexPage.config?.backgroundImage&&(k.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)"}`),k}),W=(0,o.computed)(()=>({width:JA((A.indexPage.config?.w||1920)*V.value),height:JA((A.indexPage.config?.h||1080)*D.value)})),cA={},lA=(k,N)=>{k&&(cA[N]=k)},oA=new ResizeObserver(b);(0,o.onMounted)(()=>{I.value.forEach(k=>{k.$refs=cA[k.id]}),oA.observe(T.value)});const iA=async(k,N)=>{N.config.clickevent&&await S(JSON.parse(N.config?.clickevent),{param:{params:k}})},AA=async(k,N)=>{if(k&&k.trim()){k=`async (jcode) => {${k}}`;const{res:O,msg:Y,fn:tA}=(0,pe.getFunction)(k);if(O)return tA(L(N));B&&B(Y)}},S=async(k,N)=>{const{run:O}=o0({data:k,actions:A.actions,utils:{showLoading:pe.fullScreenLoading,executeEvent:AA},inputParams:N});await O()},eA=k=>cA[k]?.getValue()||[],H=(k,N=!0)=>{const O=I.value.find(({id:Y})=>Y===k);O&&(O.display=!N)},X=k=>I.value.find(({id:N})=>N===k)?.config||{},U=k=>{const N=I.value.find(({id:O})=>O===k);N?.$refs?.updateData&&N.$refs.updateData()},L=k=>(k.get=eA,k.setHide=H,k.getProps=X,k.refresh=U,k.getSourceData=async(N,O)=>(await v("dbsource",N,JSON.stringify(O),!1),y("dbsource",N,{params:O})),k.getDateNow=N=>(0,pe.formatToDateTime)(new Date,N||"YYYY-MM-DD HH:mm:ss"),k.httpGet=r,k.httpPost=a,k.httpPut=u,k.httpDelete=d,k.loading=()=>{(0,pe.fullScreenLoading)(!0)},k.hideLoading=()=>{(0,pe.fullScreenLoading)(!1)},k.message=(N,O)=>{switch(O){case"success":h&&h(N);break;case"warning":g&&g(N);break;case"error":B&&B(N);break;case"info":w&&w(N);break;default:w&&w(N);break}},k);return(0,o.provide)("dui_bi_viewer",{executeEvent:AA}),(k,N)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:"j-block",style:(0,o.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:T},[(0,o.createElementVNode)("div",{style:(0,o.normalizeStyle)(W.value)},[(0,o.createElementVNode)("div",{style:(0,o.normalizeStyle)(sA.value)},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(I.value,(O,Y)=>(0,o.withDirectives)(((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(O.componentName),(0,o.mergeProps)({key:O.id,ref_for:!0,ref:tA=>lA(tA,O.id),style:{position:"absolute",width:(0,o.unref)(JA)(O.config.w),height:(0,o.unref)(JA)(O.config.h),top:(0,o.unref)(JA)(O.config.y),left:(0,o.unref)(JA)(O.config.x),zIndex:e.layout.length-Y}},{ref_for:!0},O.config,{"run-flow":S,onClick:tA=>iA(tA,O)}),null,16,["style","onClick"])),[[o.vShow,O.display!==!1]])),128))],4)],4)],4))}}),kl=i0,s0={class:"j-bi-design"},a0={class:"j-bi-design-left"},l0={class:"j-block j-bi-design-layer-list"},c0=["onClick","data-id"],u0={class:"j-bi-design-layer-item-img"},d0=["src"],f0={class:"j-bi-design-layer-item-btns"},g0=["onClick"],h0=["onClick"],B0={class:"j-bi-design-component-list"},p0=["onClick","onDragstart"],m0={class:"j-component-tool-name"},w0={class:"j-bi-design-right"},C0={class:"j-bi-design-title"},v0={style:{margin:"0","font-size":"14px"}},y0={class:"j-bi-design-panel"},Q0=(0,o.defineComponent)({name:"DBiDesign",__name:"biDesign",props:{components:{type:Array,default:()=>[]},componentConfigs:{type:Object,default:()=>({})},componentInit:Function,componentConfigInit:Function,componentConfigChange:Function,flowComponents:{type:Array,default:()=>[]},flowInit:Function,flowComponentConfigInit:Function,flowComponentConfigChange:Function,flowComponentConfigs:{type:Object,default:()=>({})},actions:{type:Object,default:()=>({})},imgUrlPrefix:{type:String,default:"/"},scale:{type:Number,default:-1}},emits:["update:scale"],setup(e,{expose:A,emit:t}){const{t:n}=(0,pe.useAppInject)(),r=e,a=t,u=(0,o.ref)(!1),d=(0,o.ref)({name:"页面",id:"indexPage",type:"indexPage",layerId:"0",config:{},display:!0,lock:!1,componentName:""});r.componentInit&&(d.value.config=r.componentInit("indexPage")||{},d.value.config.id="indexPage");const h=(0,o.computed)(()=>{const rA={};return r.components.forEach(aA=>{aA.children.forEach(dA=>{rA[dA.type]=dA})}),rA}),g=(0,o.ref)(["layers"]),B=r.components.length;for(let rA=0;rA<B;rA++)g.value.push(rA);const w=(0,o.ref)(),m=(0,o.ref)([]),v=(0,o.ref)(!1),y=(0,o.ref)(0),I=(0,o.ref)(0),T=(0,o.ref)(""),D=(0,o.computed)(()=>T.value===""?{}:m.value.find(rA=>rA.id===T.value)),V=()=>{v.value=!1,T.value=""},b=rA=>{rA.target.className.indexOf("j-bi-design-contentmenu__btn")===-1&&V(),window.removeEventListener("mousedown",b)},K=rA=>{let{target:aA}=rA,dA=!1;aA.className.indexOf&&aA.className.indexOf("d-draggable__mask")>-1?(aA=aA.parentNode.parentNode,dA=!0):aA.className.indexOf&&aA.className.indexOf("j-bi-design-layer-item")>-1?dA=!0:aA.parentNode.className.indexOf&&aA.parentNode.className.indexOf("j-bi-design-layer-item")>-1?(aA=aA.parentNode,dA=!0):aA.parentNode.parentNode.className.indexOf("j-bi-design-layer-item")>-1&&(aA=aA.parentNode.parentNode,dA=!0),dA&&(rA.preventDefault(),rA.stopPropagation(),y.value=rA.clientX,I.value=rA.clientY-8,I.value+260>document.body.clientHeight&&(I.value=document.body.clientHeight-260),T.value=aA.getAttribute("data-id"),v.value=!0,window.addEventListener("mousedown",b))},sA=(0,o.ref)(""),W=(0,o.computed)(()=>sA.value?m.value.filter(rA=>rA.config.label.indexOf(sA.value)>-1):m.value),cA=rA=>{rA.display=!rA.display,V()},lA=rA=>{rA.lock=!rA.lock,V(),rA.lock&&rA.id===w.value?.id&&He(d.value)},oA=(rA,aA)=>{if(!aA||m.value.length<1){V();return}const dA=m.value.findIndex(MA=>MA.id===aA.id);switch(rA){case"up":if(dA===-1||dA===0)break;m.value=iA(m.value,dA,dA-1);break;case"down":if(dA===-1||dA===m.value.length-1)break;m.value=iA(m.value,dA,dA+1);break;case"top":if(dA!==-1){const[MA]=m.value.splice(dA,1);m.value.unshift(MA)}break;case"bottom":if(dA!==-1){const[MA]=m.value.splice(dA,1);m.value.push(MA)}break}V()},iA=(rA,aA,dA)=>{const MA=rA[aA];return rA[aA]=rA[dA],rA[dA]=MA,rA},AA=(0,o.ref)(),S=(0,o.ref)(20),eA=(0,o.ref)(document.body.clientWidth),H=(0,o.ref)(document.body.clientHeight),X=(0,o.ref)(0),U=(0,o.ref)(0),L=(0,o.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)"}),k=(0,o.computed)(()=>({x:0,y:0,width:eA.value,height:H.value})),N=(0,o.ref)({h:[],v:[]}),O=(0,o.ref)(),Y=(0,o.ref)(),tA=(0,o.ref)(!1),pA=(0,o.ref)({}),HA=(0,o.ref)(100),nA=(0,o.computed)({set(rA){HA.value=rA,a("update:scale",rA)},get(){let{scale:rA}=r;return rA===-1&&(rA=HA.value),rA/100}}),Z=(0,o.computed)(()=>(d.value.config.h||1080)*2),$=(0,o.computed)(()=>(d.value.config.w||1920)*2),uA=()=>{AA.value&&(eA.value=AA.value.offsetWidth-S.value,H.value=AA.value.offsetHeight-S.value,O.value.scrollLeft=$.value/2-S.value,O.value.scrollTop=Z.value/2-S.value,wA())},wA=()=>{const rA=d.value.config.w||1920;eA.value<rA&&(nA.value=eA.value*100/rA)},QA=()=>{document.onkeydown=rA=>{if(rA.target?.nodeName==="TEXTAREA"||rA.target?.nodeName==="INPUT")return;const aA=rA.keyCode||rA.which;aA===32&&(rA.preventDefault(),pA.value.space=!0),aA===17&&(rA.preventDefault(),pA.value.ctrl=!0)},document.onkeyup=()=>{pA.value={}}},_A=rA=>{pA.value.space&&(tA.value=!0,window.stardragEvent=rA,window.startSlideX=O.value.scrollLeft,window.startSlideY=O.value.scrollTop,document.onmousemove=aA=>{if(tA.value){const dA=aA.clientX-window.stardragEvent.clientX,MA=aA.clientY-window.stardragEvent.clientY;O.value.scrollLeft=window.startSlideX-dA,O.value.scrollTop=window.startSlideY-MA}},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,tA.value=!1})},gA=()=>{const rA=O.value.getBoundingClientRect(),aA=Y.value.getBoundingClientRect(),dA=nA.value,MA=(rA.left+S.value-aA.left)/dA,Ie=(rA.top+S.value-aA.top)/dA;X.value=MA>>0,U.value=Ie>>0},J=rA=>{if(rA.preventDefault(),rA.ctrlKey||rA.metaKey){const aA=nA.value;nA.value=parseFloat(Math.max(.2,aA-rA.deltaY/500).toFixed(2))*100,aA!==nA.value&&(0,o.nextTick)(()=>{gA()})}},_=rA=>{rA.forEach(aA=>{aA.type==="d-input-flow"&&(aA.config=aA.config||{},aA.config.flowComponents=r.flowComponents,aA.config.flowInit=r.flowInit,aA.config.flowComponentConfigInit=dA=>{r.flowComponentConfigInit&&(dA.designComponents=m.value,dA.component=w.value,r.flowComponentConfigInit(dA))},aA.config.flowComponentConfigs=r.flowComponentConfigs,aA.config.flowComponentConfigChange=r.flowComponentConfigChange),aA.children&&_(aA.children)})},F=(0,o.ref)(),x=(0,o.computed)(()=>w.value?.id!="indexPage"?w.value?`${w.value.name}-${w.value.id}`:"":w.value?`${w.value.name}`:""),G={};Object.keys(r.componentConfigs).forEach(rA=>{const aA=[{id:"label",type:"j-input",config:{label:"名称"}},{id:"w",type:"j-number",config:{span:12,label:"宽度",min:0}},{id:"h",type:"j-number",config:{span:12,label:"高度",min:0}},{id:"x",type:"j-number",config:{span:12,label:"x轴",min:0}},{id:"y",type:"j-number",config:{span:12,label:"y轴",min:0}}],dA={type:"j-collapse",config:{defaultValue:[]},children:[]};rA!=="indexPage"&&dA.children?.push({config:{label:"基础信息"},children:[...aA]}),dA.children?.push(...r.componentConfigs[rA]),dA.children?.forEach((MA,Ie)=>{dA.config?.defaultValue.push(`_collapse${Ie}`)}),_(dA.children||[]),G[rA]=[dA]});let P,fA=0;const hA=async rA=>{if(rA!==fA)return;const aA=F.value;if(!aA||typeof aA.init!="function")return;const dA=w.value;if(!dA){try{await aA.init([])}catch{return}return}const MA=G[dA.type];try{await aA.init(MA||[],dA.config)}catch{return}rA===fA&&r.componentConfigInit&&r.componentConfigInit(dA.type,{configRef:F,components:m.value,configData:dA.config})},EA=()=>{const rA=++fA;P!==void 0&&(clearTimeout(P),P=void 0),P=window.setTimeout(()=>{P=void 0,hA(rA)},0)},FA=rA=>{w.value&&r.componentConfigChange&&(w.value.id==="indexPage"&&(rA.id==="w"||rA.id==="h")&&(0,o.nextTick)(()=>{uA()}),r.componentConfigChange(w.value.type,{configRef:F,configData:w.value.config,...rA}))},DA=rA=>r.componentInit?r.componentInit(rA)||{}:{},OA=(0,o.ref)(!1),KA=(0,o.ref)(null),ee=(rA,aA)=>{OA.value=!0,KA.value=aA,rA.dataTransfer&&(rA.dataTransfer.effectAllowed="copy",rA.dataTransfer.dropEffect="copy",rA.dataTransfer.setData("text/plain",aA.type||""))},qA=(rA,aA,dA)=>{const MA={name:rA.name,id:ft(),type:rA.type,layerId:"0",config:DA(rA.type),display:!0,lock:!1,componentName:rA.componentName};MA.config.id=MA.id,MA.config.label=rA.name,MA.config.h=rA.h||100,MA.config.w=rA.w||100,MA.config.x=aA,MA.config.y=dA,m.value.unshift(MA),w.value=MA,EA()},it=rA=>{OA.value||qA(rA,0,0)},Ke=()=>{KA.value=null,setTimeout(()=>{OA.value=!1},0)},mt=rA=>{const aA=KA.value;if(!aA){Ke();return}const dA=document.getElementById("j-bi-design-container");if(!dA){Ke();return}const MA=dA.getBoundingClientRect(),Ie=rA.clientX,we=rA.clientY;if(!(Ie>=MA.left&&Ie<=MA.right&&we>=MA.top&&we<=MA.bottom)){Ke();return}const Kt=Ie-MA.left,ln=we-MA.top,cn=aA?.w||100,Yn=aA?.h||100;qA(aA,Kt/nA.value-cn/2,ln/nA.value-Yn/2),Ke()},_i=()=>{KA.value&&Ke()},st=rA=>{m.value=m.value.filter(aA=>aA.id!==rA),w.value.id===rA&&(w.value=d.value,EA()),V()},Si=rA=>{const aA=En(rA),dA=ft();aA.id=dA,aA.config.id=dA,m.value.push(aA),w.value=aA,EA(),V()},He=rA=>{w.value?.id!==rA.id&&(w.value=rA,EA())},on=({left:rA,top:aA,width:dA,height:MA})=>{w.value&&(w.value.config.x=rA,w.value.config.y=aA,w.value.config.w=dA,w.value.config.h=MA,F.value.setFormData({main:{x:rA,y:aA,w:dA,h:MA}}))},zn=new ResizeObserver(uA);(0,o.onMounted)(()=>{zn.observe(AA.value),QA(),He(d.value)});const sn=()=>({ver:"1.0.0",components:En(m.value),page:d.value}),Xn=rA=>{rA.components?.forEach(aA=>{aA.componentName=h.value[aA.type].componentName}),m.value=rA.components||[],d.value=rA.page||d.value,He(d.value)},kt=()=>{m.value=[],He(d.value)},$n=()=>{m.value=[],He(d.value)},an=()=>new Promise(rA=>{(0,n0.default)(Y.value,{useCORS:!0,backgroundColor:null,allowTaint:!0}).then(aA=>{if(aA.width!==0&&aA.height!==0){rA(aA.toDataURL("image/png"));return}rA("")})}),Mt=(0,o.ref)(),Ot=(0,o.ref)({});return A({getSchema:sn,setSchema:Xn,clear:kt,reset:$n,getImg:an,preview:()=>{Ot.value=sn(),Mt.value.open("大屏预览","full")},setShowLayer:rA=>{u.value=rA,rA||V()}}),(rA,aA)=>{const dA=(0,o.resolveComponent)("el-divider"),MA=(0,o.resolveComponent)("j-icon"),Ie=(0,o.resolveComponent)("el-button"),we=(0,o.resolveComponent)("el-input"),Kt=(0,o.resolveComponent)("el-text"),ln=(0,o.resolveComponent)("el-space"),cn=(0,o.resolveComponent)("el-collapse-item"),Yn=(0,o.resolveComponent)("el-collapse"),qr=(0,o.resolveComponent)("j-form"),Di=(0,o.resolveComponent)("j-layer");return(0,o.openBlock)(),(0,o.createElementBlock)("div",s0,[v.value?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,class:"j-bi-design-contentmenu",style:(0,o.normalizeStyle)({left:y.value+"px",top:I.value+"px"})},[(0,o.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:aA[0]||(aA[0]=$A=>Si(D.value))},(0,o.toDisplayString)((0,o.unref)(n)("复制")),1),(0,o.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:aA[1]||(aA[1]=$A=>cA(D.value))},(0,o.toDisplayString)(D.value&&D.value.display?"隐藏":"显示"),1),(0,o.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:aA[2]||(aA[2]=$A=>lA(D.value))},(0,o.toDisplayString)(D.value&&D.value.lock?"解锁":"锁定"),1),(0,o.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:aA[3]||(aA[3]=$A=>oA("top",D.value))},(0,o.toDisplayString)((0,o.unref)(n)("置顶图层")),1),(0,o.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:aA[4]||(aA[4]=$A=>oA("bottom",D.value))},(0,o.toDisplayString)((0,o.unref)(n)("置底图层")),1),(0,o.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:aA[5]||(aA[5]=$A=>oA("up",D.value))},(0,o.toDisplayString)((0,o.unref)(n)("上移一层")),1),(0,o.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",onClick:aA[6]||(aA[6]=$A=>oA("down",D.value))},(0,o.toDisplayString)((0,o.unref)(n)("下移一层")),1),(0,o.createVNode)(dA,{style:{margin:"4px 0"}}),(0,o.createElementVNode)("div",{class:"item j-bi-design-contentmenu__btn",style:{color:"var(--j-color-danger)"},onClick:aA[7]||(aA[7]=$A=>st(D.value?.id))},(0,o.toDisplayString)((0,o.unref)(n)("删除")),1)],4)):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("div",a0,[u.value?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,class:"j-bi-design-layer-panel",onContextmenu:(0,o.withModifiers)(K,["prevent"])},[(0,o.createVNode)(we,{modelValue:sA.value,"onUpdate:modelValue":aA[8]||(aA[8]=$A=>sA.value=$A),class:"search-input",placeholder:"搜索图层"},{append:(0,o.withCtx)(()=>[(0,o.createVNode)(Ie,null,{icon:(0,o.withCtx)(()=>[(0,o.createVNode)(MA,{icon:"ep:search"})]),_:1})]),_:1},8,["modelValue"]),(0,o.createElementVNode)("div",l0,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(W.value,($A,wt)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:wt},[(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["j-bi-design-layer-item",{active:w.value.id==$A.id}]),onClick:(0,o.withModifiers)(Ye=>He($A),["stop"]),"data-id":$A.id},[(0,o.createElementVNode)("div",u0,[h.value[$A.type]?.icon?((0,o.openBlock)(),(0,o.createBlock)(MA,{key:0,icon:h.value[$A.type].icon,size:16},null,8,["icon"])):((0,o.openBlock)(),(0,o.createElementBlock)("img",{key:1,style:{height:"100%"},src:`${e.imgUrlPrefix}${h.value[$A.type]?.img}`},null,8,d0))]),(0,o.createVNode)(Kt,{truncated:""},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)((0,o.unref)(n)($A.config.label)),1)]),_:2},1024),(0,o.createElementVNode)("div",f0,[(0,o.createVNode)(ln,{size:2},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["j-bi-design-layer-item-btn",{active:!$A.display}]),onClick:(0,o.withModifiers)(Ye=>cA($A),["stop"])},[(0,o.createVNode)(MA,{icon:"mdi:eye-off-outline"})],10,g0),(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)(["j-bi-design-layer-item-btn",{active:$A.lock}]),onClick:(0,o.withModifiers)(Ye=>lA($A),["stop"])},[(0,o.createVNode)(MA,{icon:"mdi:lock-outline"})],10,h0)]),_:2},1024)])],10,c0)]))),128))])],32)):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("div",B0,[(0,o.createVNode)(Yn,{modelValue:g.value,"onUpdate:modelValue":aA[9]||(aA[9]=$A=>g.value=$A)},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.components,($A,wt)=>((0,o.openBlock)(),(0,o.createBlock)(cn,{key:wt,title:(0,o.unref)(n)($A.name),name:wt},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)($A.children,(Ye,Ni)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:Ni,class:"j-component-tool",onClick:(0,o.withModifiers)(Ao=>it(Ye),["stop"]),onDragstart:Ao=>ee(Ao,Ye),onDragend:_i,draggable:"true"},[(0,o.createVNode)(MA,{class:"j-component-tool-icon",icon:Ye.icon,size:14},null,8,["icon"]),(0,o.createElementVNode)("div",m0,(0,o.toDisplayString)((0,o.unref)(n)(Ye.name)),1)],40,p0))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])]),(0,o.createElementVNode)("div",{class:"j-bi-design-mid",ref_key:"contentRef",ref:AA},[((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(e0),{key:nA.value,thick:S.value,scale:nA.value,width:eA.value,height:H.value,"start-x":X.value,"start-y":U.value,palette:L.value,shadow:k.value,"hor-line-arr":N.value.h,"ver-line-arr":N.value.v},null,8,["thick","scale","width","height","start-x","start-y","palette","shadow","hor-line-arr","ver-line-arr"])),(0,o.createElementVNode)("div",{ref_key:"screensRef",ref:O,class:"j-bi-design-main",style:(0,o.normalizeStyle)({cursor:tA.value?"pointer":""}),onMousedown:(0,o.withModifiers)(_A,["stop"]),onWheel:J,onScroll:gA},[(0,o.createElementVNode)("div",{class:"screen-container",style:(0,o.normalizeStyle)({height:Z.value+"px",width:$.value+"px"}),onClick:aA[11]||(aA[11]=(0,o.withModifiers)($A=>He(d.value),["stop"]))},[(0,o.createElementVNode)("div",{ref_key:"canvasRef",ref:Y,class:"canvas",onContextmenu:(0,o.withModifiers)(K,["prevent"])},[(0,o.createVNode)(Tl,{layout:m.value,"index-page":d.value,"actived-component":w.value,scale:nA.value,onDragover:aA[10]||(aA[10]=(0,o.withModifiers)(()=>{},["prevent"])),onDrop:(0,o.withModifiers)(mt,["stop","prevent"]),onSelect:He,onMove:on},null,8,["layout","index-page","actived-component","scale"])],544)],4)],36)],512),(0,o.createElementVNode)("div",w0,[(0,o.createElementVNode)("div",C0,[(0,o.createElementVNode)("span",v0,(0,o.toDisplayString)(`${x.value}`),1)]),(0,o.createElementVNode)("div",y0,[(0,o.createVNode)(qr,{config:{labelPosition:"top",size:"small"},style:{padding:"0"},ref_key:"configRef",ref:F,onChange:FA},null,512)])]),(0,o.createVNode)(Di,{ref_key:"previewFormLayerRef",ref:Mt,destroyOnClose:!0,hasHeader:!1},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(kl,{indexPage:Ot.value.page,layout:Ot.value.components,actions:e.actions},null,8,["indexPage","layout","actions"])]),_:1},512)])}}}),E0=Q0,Ml=dt(E0,[Tl,kl]),F0=[Cs,Ko,Ro,Vo,Po,hl,Bl,Ql,El,_l,Nl,Ml],Ol=new WeakSet,U0=e=>{Ol.has(e)||(Ol.add(e),F0.forEach(A=>{const t=A.name;t&&e.component(t,A)}))},b0={install:U0};ne.DBiDesign=Ml,ne.DDrag=Cs,ne.DDraggable=El,ne.DFlowDesign=hl,ne.DFormDesign=_l,ne.DIndexDesign=Nl,ne.DInputFlow=Bl,ne.DLayout=Ql,ne.default=b0,ne.dragContainer=Ro,ne.dragFormList=Vo,ne.dragIndexList=Po,ne.dragTool=Ko,ne.toFormDesignSchema=Ul,ne.toFormSaveSchema=Zr,ne.toFormSchema=Fl});
|