@zenuml/core 3.24.25 → 3.24.27
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/{StylePanel.5ab7e8da.js → StylePanel.4294907d.js} +2 -2
- package/dist/{close.5a5997e4.js → close.49b39642.js} +2 -2
- package/dist/{collapse-expanded.672aaf62.js → collapse-expanded.691e880b.js} +2 -2
- package/dist/{collapse-unexpanded.50a5d993.js → collapse-unexpanded.fdc9ad9a.js} +2 -2
- package/dist/{core.b9972989.js → core.38c54a25.js} +12 -8
- package/dist/{debug.a5e09224.js → debug.c1295aaf.js} +2 -2
- package/dist/{message-arrow.71c55c40.js → message-arrow.0ad30f2c.js} +2 -2
- package/dist/{non-selected-cycle.ae334405.js → non-selected-cycle.e6a57d10.js} +2 -2
- package/dist/{numbering.3023884f.js → numbering.e135c05a.js} +2 -2
- package/dist/{privacy.cfc6ddf2.js → privacy.4e2c96d8.js} +2 -2
- package/dist/{selected-cycle.d7ca6b7d.js → selected-cycle.c8f03d0b.js} +2 -2
- package/dist/{theme.2a2b5883.js → theme.5ebff3ee.js} +2 -2
- package/dist/{tip.c16ec258.js → tip.5b9d139c.js} +2 -2
- package/dist/zenuml.esm.mjs +1 -1
- package/dist/zenuml.js +2 -2
- package/dist/{zoom-in.22b09d53.js → zoom-in.04c65d99.js} +2 -2
- package/dist/{zoom-out.7c8a6518.js → zoom-out.eb606204.js} +2 -2
- package/package.json +1 -1
package/dist/zenuml.js
CHANGED
|
@@ -3183,7 +3183,7 @@
|
|
|
3183
3183
|
<path d="M15.027 20.771h-12.881c-0.484-1.541-0.724-3.151-0.719-4.771 0-1.667 0.24-3.265 0.719-4.771h21.147c2.64-0.011 4.781 2.131 4.776 4.771 0.015 2.625-2.109 4.765-4.735 4.771zM14.427 22.375h-11.692c1.229 2.823 3.265 5.224 5.853 6.907 2.589 1.719 5.636 2.636 8.745 2.625 5.531 0 10.375-2.828 13.24-7.068-1.521-1.573-3.609-2.469-5.803-2.479zM24.771 9.64c2.271 0 4.333-0.957 5.803-2.468-3.24-4.828-8.855-7.511-14.652-7-5.791 0.516-10.848 4.14-13.187 9.468z"/>
|
|
3184
3184
|
</svg>`,auth0:`<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
3185
3185
|
<svg width="800px" height="800px" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="none"><path fill="#000000" d="M12.549 1h-4.55l1.407 4.38h4.548l-3.68 2.61 1.406 4.405c2.37-1.725 3.143-4.336 2.274-7.016L12.55 1zM2.045 5.38h4.55L8 1H3.45L2.045 5.38c-.868 2.68-.094 5.29 2.275 7.015L5.725 7.99l-3.68-2.612zm2.275 7.015L8 15l3.68-2.605L8 9.745l-3.68 2.65z"/></svg>`,redis:`<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
3186
|
-
<svg fill="#000000" width="800px" height="800px" viewBox="0 -2 28 28" xmlns="http://www.w3.org/2000/svg"><path d="m27.994 14.729c-.012.267-.365.566-1.091.945-1.495.778-9.236 3.967-10.883 4.821-.589.419-1.324.67-2.116.67-.641 0-1.243-.164-1.768-.452l.019.01c-1.304-.622-9.539-3.95-11.023-4.659-.741-.35-1.119-.653-1.132-.933v2.83c0 .282.39.583 1.132.933 1.484.709 9.722 4.037 11.023 4.659.504.277 1.105.44 1.744.44.795 0 1.531-.252 2.132-.681l-.011.008c1.647-.859 9.388-4.041 10.883-4.821.76-.396 1.096-.7 1.096-.982s0-2.791 0-2.791z"/><path d="m27.992 10.115c-.013.267-.365.565-1.09.944-1.495.778-9.236 3.967-10.883 4.821-.59.421-1.326.672-2.121.672-.639 0-1.24-.163-1.763-.449l.019.01c-1.304-.627-9.539-3.955-11.023-4.664-.741-.35-1.119-.653-1.132-.933v2.83c0 .282.39.583 1.132.933 1.484.709 9.721 4.037 11.023 4.659.506.278 1.108.442 1.749.442.793 0 1.527-.251 2.128-.677l-.011.008c1.647-.859 9.388-4.043 10.883-4.821.76-.397 1.096-.7 1.096-.984s0-2.791 0-2.791z"/><path d="m27.992 5.329c.014-.285-.358-.534-1.107-.81-1.451-.533-9.152-3.596-10.624-4.136-.528-.242-1.144-.383-1.794-.383-.734 0-1.426.18-2.035.498l.024-.012c-1.731.622-9.924 3.835-11.381 4.405-.729.287-1.086.552-1.073.834v2.83c0 .282.39.583 1.132.933 1.484.709 9.721 4.038 11.023 4.66.504.277 1.105.439 1.744.439.795 0 1.531-.252 2.133-.68l-.011.008c1.647-.859 9.388-4.043 10.883-4.821.76-.397 1.096-.7 1.096-.984s0-2.791 0-2.791h-.009zm-17.967 2.684 6.488-.996-1.96 2.874zm14.351-2.588-4.253 1.68-3.835-1.523 4.246-1.679 3.838 1.517zm-11.265-2.785-.628-1.157 1.958.765 1.846-.604-.499 1.196 1.881.7-2.426.252-.543 1.311-.879-1.457-2.8-.252 2.091-.754zm-4.827 1.632c1.916 0 3.467.602 3.467 1.344s-1.559 1.344-3.467 1.344-3.474-.603-3.474-1.344 1.553-1.344 3.474-1.344z"/></svg>`};function Xl(){const t=C2(0),e=C2(0),n=()=>{t.value=document.documentElement.scrollTop,e.value=document.documentElement.scrollLeft};return e1(()=>{n(),document.addEventListener("scroll",n)}),_1(()=>{document.removeEventListener("scroll",n)}),[t,e]}const $t=10,yR=1,Ql=20;function RR(){let t=document.getElementById("zenuml-intersection-detector-container"),e=Array.from(document.getElementsByClassName("zenuml-intersection-detector"));return t&&e.length===$t?{detectorContainer:t,detectors:e}:(t=document.createElement("div"),t.id="zenuml-intersection-detector-container",Object.assign(t.style,{position:"absolute",top:"0",left:"0",opacity:"0",pointerEvents:"none"}),e=new Array($t).fill(0).map(()=>{const n=document.createElement("div");return n.className="zenuml-intersection-detector",Object.assign(n.style,{position:"absolute",top:"0",left:"0",width:"100%"}),t==null||t.appendChild(n),n}),document.body.appendChild(t),{detectorContainer:t,detectors:e})}function Jl(){const t=C2(0);let e;return e1(()=>{const{detectorContainer:n,detectors:i}=RR(),s=document.documentElement.scrollHeight-Ql,r=document.documentElement.scrollWidth-Ql;n.style.height=s+"px",n.style.width=r+"px";const o=Math.ceil(document.documentElement.scrollHeight/$t),l=[...Array(o+1).keys()].map(L=>L/o);i.forEach((L,a)=>{L.style.top=a*o+"px",L.style.height=o+"px"}),e=new IntersectionObserver(([L])=>{(L.intersectionRect.top-L.boundingClientRect.top>yR||L.target===i[0])&&(t.value=L.intersectionRect.top)},{threshold:l}),i.forEach(L=>{e.observe(L)})}),_1(()=>{e.disconnect()}),t}function Vt(t){let e=0,n=t;for(;n;)e+=n.offsetTop,n=n.offsetParent;return e}const w5=/[!@#$%^&*()+-,.?''":{}|<>/\s]/,w7=t=>{const e=C2(!1);function n(l){e.value=l}async function i(l){l.preventDefault(),l.stopPropagation(),n(!0),await x4();const L=document.createRange();if(!l.target)return;L.selectNodeContents(l.target),L.collapse(!1);const a=window.getSelection();!a||(a==null||a.removeAllRanges(),a==null||a.addRange(L))}async function s(l){await x4(),e.value&&(n(!1),t(l))}function r(l){l.key==="Enter"&&(l.preventDefault(),l.stopPropagation())}function o(l){(l.key==="Enter"||l.key==="Escape"||l.key==="Tab")&&(n(!1),t(l))}return{editing:e,handleDblClick:i,handleBlur:s,handleKeydown:r,handleKeyup:o}},AR={class:"flex items-center justify-center"},kR=["contenteditable"],ZR=R("span",null,":",-1),TR=["contenteditable"],SR=X2({__name:"ParticipantLabel",props:{labelText:null,labelPositions:null,assignee:null,assigneePositions:null},setup(t){var f,w;const e=t,n=["Missing Constructor","ZenUML"],{labelText:i,labelPositions:s,assigneePositions:r}=L9(e),o=S1(),l=O(()=>o.state.mode),L=O(()=>o.getters.code),a=O(()=>o.getters.onContentChange||(()=>{}));function c(v){o.dispatch("updateCode",{code:v}),a.value(v)}function C(v){return function(p){var Z;p.preventDefault(),p.stopPropagation();const g=p.target;if(!(g instanceof HTMLElement))return;let m=(Z=g.innerText.trim())!=null?Z:"";if(m===""||m===i.value){g.innerText=i.value;return}if(m.includes(" ")&&(m=m.replace(/\s+/g," ")),w5.test(m)&&(m=m.replace(/"/g,""),m=`"${m}"`,w5.lastIndex=0),!v||v.length===0)return;let _=L.value;for(const E of v){const[k,b]=E;_=_.slice(0,k)+m+_.slice(b)}c(_)}}const u=w7(C((f=s==null?void 0:s.value)!=null?f:[])),h=w7(C((w=r==null?void 0:r.value)!=null?w:[]));return(v,p)=>(S(),B("div",AR,[t.assignee?(S(),B(z2,{key:0},[R("label",{title:"Double click to edit",class:R2(["name leading-4 cursor-text right hover:text-skin-message-hover hover:bg-skin-message-hover",{"py-1 cursor-text":N(h).editing}]),contenteditable:N(h).editing&&N(l)===N(e3).Dynamic,onDblclick:p[0]||(p[0]=(...g)=>N(h).handleDblClick&&N(h).handleDblClick(...g)),onBlur:p[1]||(p[1]=(...g)=>N(h).handleBlur&&N(h).handleBlur(...g)),onKeyup:p[2]||(p[2]=(...g)=>N(h).handleKeyup&&N(h).handleKeyup(...g)),onKeydown:p[3]||(p[3]=(...g)=>N(h).handleKeydown&&N(h).handleKeydown(...g))},K2(t.assignee),43,kR),ZR],64)):d2("",!0),R("label",{title:"Double click to edit",class:R2(["name leading-4 cursor-text right hover:text-skin-message-hover hover:bg-skin-message-hover",{"py-1 cursor-text":N(u).editing}]),contenteditable:N(u).editing&&N(l)===N(e3).Dynamic&&n.indexOf(N(i))===-1,onDblclick:p[4]||(p[4]=(...g)=>N(u).handleDblClick&&N(u).handleDblClick(...g)),onBlur:p[5]||(p[5]=(...g)=>N(u).handleBlur&&N(u).handleBlur(...g)),onKeyup:p[6]||(p[6]=(...g)=>N(u).handleKeyup&&N(u).handleKeyup(...g)),onKeydown:p[7]||(p[7]=(...g)=>N(u).handleKeydown&&N(u).handleKeydown(...g))},K2(N(i)),43,TR)]))}}),bR=10,ER={name:"Participant",components:{ParticipantLabel:SR},setup(t){const e=S1(),n=C2(null);if(e.state.mode===e3.Static)return{translate:0,participant:n};const i=O(()=>{const L=e.getters.participants.GetPositions(t.entity.name);return Array.from(L!=null?L:[]).sort((c,C)=>C[0]-c[0])}),s=O(()=>{const L=e.getters.participants.GetAssigneePositions(t.entity.name);return Array.from(L!=null?L:[]).sort((c,C)=>C[0]-c[0])}),r=Jl(),[o]=Xl();return{translate:O(()=>{var u;const L=t.offsetTop2||0;let a=r.value+o.value;r.value>bR&&(e==null?void 0:e.state.stickyOffset)&&(a+=e==null?void 0:e.state.stickyOffset);const c=((u=e==null?void 0:e.state.diagramElement)==null?void 0:u.clientHeight)||0,C=e!=null&&e.state.diagramElement?Vt(e==null?void 0:e.state.diagramElement):0;return a<L+C?0:Math.min(a-C,c-Tl)-L}),participant:n,labelPositions:i,assigneePositions:s}},props:{entity:{type:Object,required:!0},offsetTop2:{type:Number,default:0}},data(){return{color:void 0}},mounted(){this.updateFontColor()},updated(){this.updateFontColor()},computed:{isDefaultStarter(){return this.entity.name===E1},selected(){return this.$store.state.selected.includes(this.entity.name)},stereotype(){return this.entity.stereotype},labelText(){return this.entity.assignee?this.entity.name.split(":")[1]:this.entity.label||this.entity.name},comment(){return this.entity.comment},icon(){var t;return this.isDefaultStarter?Ht.actor:Ht[(t=this.entity.type)==null?void 0:t.toLowerCase()]},backgroundColor(){try{return this.entity.color?this.entity.color&&Cm(this.entity.color):void 0}catch{return}}},methods:{onSelect(){this.$store.commit("onSelect",this.entity.name)},updateFontColor(){let t=window.getComputedStyle(this.$refs.participant).getPropertyValue("background-color");if(!t){this.color="inherit";return}let e=cm(t);this.color=e>128?"#000":"#fff"}}},IR=["innerHTML","aria-description"],OR={key:1},FR=["innerHTML","aria-description"],NR={class:"h-5 group flex flex-col justify-center"},DR={key:0,class:"interface leading-4"};function PR(t,e,n,i,s,r){const o=w2("ParticipantLabel");return r.isDefaultStarter?(S(),B("div",{key:0,class:R2(["participant bg-skin-participant shadow-participant border-transparent text-skin-participant rounded text-base leading-4 flex flex-col justify-center z-10 h-10 top-8",{selected:r.selected}]),ref:"participant",style:y2({transform:`translateY(${i.translate}px)`}),onClick:e[0]||(e[0]=(...l)=>r.onSelect&&r.onSelect(...l))},[R("div",{innerHTML:r.icon,class:"text-skin-base bg-skin-frame px-1 absolute rounded left-1/2 transform -translate-x-1/2 h-8 [&>svg]:w-full [&>svg]:h-full","aria-description":`icon for ${n.entity.name}`},null,8,IR)],6)):(S(),B("div",OR,[R("div",{class:R2(["participant bg-skin-participant shadow-participant border-skin-participant text-skin-participant rounded text-base leading-4 flex flex-col justify-center z-10 h-10 top-8",{selected:r.selected}]),ref:"participant",style:y2({backgroundColor:r.backgroundColor,color:s.color,transform:`translateY(${i.translate}px)`}),onClick:e[1]||(e[1]=(...l)=>r.onSelect&&r.onSelect(...l))},[r.icon?(S(),B("div",{key:0,innerHTML:r.icon,class:"text-skin-base bg-skin-frame px-1 absolute rounded left-1/2 transform -translate-x-1/2 -translate-y-full h-8 [&>svg]:w-full [&>svg]:h-full","aria-description":`icon for ${n.entity.name}`},null,8,FR)):d2("",!0),R("div",NR,[r.stereotype?(S(),B("label",DR,"\xAB"+K2(r.stereotype)+"\xBB",1)):d2("",!0),j(o,{labelText:r.labelText,labelPositions:i.labelPositions,assignee:n.entity.assignee,assigneePositions:i.assigneePositions},null,8,["labelText","labelPositions","assignee","assigneePositions"])])],6)]))}const eL=Y2(ER,[["render",PR]]),pz="",x5=G5.child({name:"LifeLine"}),BR={name:"life-line",components:{Participant:eL},props:["entity","context","groupLeft","inGroup","renderParticipants","renderLifeLine"],data:()=>({translateX:0,top:0}),computed:{...I3(["centerOf"]),...y9(["scale"]),debug(){return!!localStorage.zenumlDebug},left(){return this.centerOf(this.entity.name)-8-(this.groupLeft||0)}},mounted(){x5.debug(`LifeLine mounted for ${this.entity.name}`),this.$nextTick(()=>{this.setTop(),x5.debug(`nextTick after updated for ${this.entity.name}`)}),g7.on("participant_set_top",()=>this.$nextTick(()=>this.setTop()))},updated(){x5.debug(`updated for ${this.entity.name}`),this.$nextTick(()=>{this.setTop(),x5.debug(`nextTick after updated for ${this.entity.name}`)})},methods:{onSelect(){this.$store.commit("onSelect",this.entity.name)},setTop(){const t=this.entity.name.replace(/([ #;&,.+*~\':"!^$[\]()=>|\/@])/g,"\\$1"),e=this.$store.getters.diagramElement,n=e==null?void 0:e.querySelector(`[data-to="${t}"]`),i=(n==null?void 0:n.offsetParent)!=null;if(n&&n.attributes["data-type"].value==="creation"&&i){x5.debug(`First message to ${this.entity.name} is creation`);const s=this.$el.getBoundingClientRect().y,r=n.getBoundingClientRect().y;this.top=(r-s)/this.scale}else this.top=0}}},zR=["id","entity-type"],UR={key:1,class:"line w0 mx-auto flex-grow w-px"};function WR(t,e,n,i,s,r){var l;const o=w2("participant");return S(),B("div",{id:n.entity.name,"entity-type":(l=n.entity.type)==null?void 0:l.toLowerCase(),class:R2(["lifeline absolute flex flex-col mx-2 h-full",{"transform -translate-x-1/2":n.renderParticipants}]),style:y2({paddingTop:t.top+"px",left:r.left+"px"})},[n.renderParticipants?(S(),T2(o,{key:0,entity:n.entity,offsetTop2:t.top},null,8,["entity","offsetTop2"])):d2("",!0),n.renderLifeLine?(S(),B("div",UR)):d2("",!0)],14,zR)}const tL=Y2(BR,[["render",WR],["__scopeId","data-v-25231267"]]),nL=8,HR={name:"lifeline-group",props:["context","renderParticipants","renderLifeLine"],computed:{...I3(["centerOf"]),name(){var t,e;return(e=(t=this.context)==null?void 0:t.name())==null?void 0:e.getFormattedText()},left(){const t=this.entities[0].name,e=Math.max(h7(t,T9.ParticipantName),100);return this.centerOf(t)-e/2-nL},right(){const t=this.entities.slice(0).pop().name,e=Math.max(h7(t,T9.ParticipantName),100);return this.centerOf(t)+e/2+nL},entities(){return p5(this.context).Array()}},components:{LifeLine:tL}},$R={class:"lifeline-group relative flex-grow"};function VR(t,e,n,i,s,r){const o=w2("life-line");return r.entities.length>0?(S(),B("div",{key:0,class:"container absolute flex flex-col h-full",style:y2({left:`${r.left}px`,width:`${r.right-r.left}px`})},[R("div",{class:R2(["flex flex-col flex-grow",{shadow:!n.renderParticipants,"shadow-slate-500/50":!n.renderParticipants}])},[R("div",$R,[(S(!0),B(z2,null,z3(r.entities,l=>(S(),T2(o,{inGroup:"true",key:l.name,ref_for:!0,ref:l.name,entity:l,"group-left":r.left,"render-life-line":n.renderLifeLine,renderParticipants:n.renderParticipants},null,8,["entity","group-left","render-life-line","renderParticipants"]))),128))])],2)],4)):d2("",!0)}const GR=Y2(HR,[["render",VR]]),iL=G5.child({name:"LifeLineLayer"}),jR=70,qR=10,KR={name:"life-line-layer",props:["context","renderParticipants","renderLifeLine","leftGap"],setup(){const e=S1(),n=O(()=>e.state.mode);if(n.value===e3.static)return{translate:0,RenderMode:e3,mode:n};const i=Jl(),[s]=Xl();return{translate:O(()=>{var a;let o=i.value+s.value;i.value>qR&&(e==null?void 0:e.state.stickyOffset)&&(o+=e==null?void 0:e.state.stickyOffset);const l=((a=e==null?void 0:e.state.diagramElement)==null?void 0:a.clientHeight)||0,L=e!=null&&e.state.diagramElement?Vt(e==null?void 0:e.state.diagramElement):0;return o<=0+L?0:Math.min(o-L,l-jR)-0}),RenderMode:e3,mode:n}},computed:{...I3(["coordinates","participants","GroupContext","ParticipantContext","centerOf"]),participantNames(){return this.participants.Names()},debug(){return!!localStorage.zenumlDebug},starterParticipant(){const t=this.coordinates.orderedParticipantNames();return t.length===0?null:t[0]===E1?{...Ko,name:E1,explicit:!1,isStarter:!0}:null},starterOnTheLeft(){var t;return!!this.starterParticipant&&!((t=this.starterParticipant)!=null&&t.explicit)},implicitParticipants(){return this.participants.ImplicitArray()},explicitGroupAndParticipants(){var t;return(t=this.context)==null?void 0:t.children.filter(e=>{const n=e instanceof wl,i=e instanceof xl;return n||i})}},methods:{...no(["increaseGeneration"]),getParticipantEntity(t){return p5(t).First()}},updated(){iL.debug("LifeLineLayer updated")},mounted(){iL.debug("LifeLineLayer mounted")},components:{LifeLine:tL,LifeLineGroup:GR}},YR=["data-participant-names"],XR={class:"container relative grow"};function QR(t,e,n,i,s,r){const o=w2("life-line"),l=w2("life-line-group");return S(),B("div",{class:"life-line-layer lifeline-layer z-30 absolute h-full flex flex-col top-0","data-participant-names":r.participantNames,style:y2({"min-width":i.mode===i.RenderMode.Dynamic?"200px":"auto",width:`calc(100% - ${n.leftGap}px)`,pointerEvents:n.renderParticipants?"none":"all"})},[R("div",{style:y2({transform:`translateY(${i.translate>0?i.translate-1:i.translate}px)`}),class:"pt-8 after:bg-gradient-to-b after:from-skin-frame after:via-skin-frame after:to-skin-frame/0 after:block after:absolute after:top-0 after:w-full after:h-[72px]"},null,4),R("div",XR,[r.starterOnTheLeft?(S(),T2(o,{key:0,entity:r.starterParticipant,class:"starter",renderParticipants:n.renderParticipants,renderLifeLine:n.renderLifeLine},null,8,["entity","renderParticipants","renderLifeLine"])):d2("",!0),(S(!0),B(z2,null,z3(r.explicitGroupAndParticipants,(L,a)=>(S(),B(z2,null,[L instanceof t.GroupContext?(S(),T2(l,{key:a,context:L,renderParticipants:n.renderParticipants,renderLifeLine:n.renderLifeLine},null,8,["context","renderParticipants","renderLifeLine"])):d2("",!0),L instanceof t.ParticipantContext?(S(),T2(o,{key:a,entity:r.getParticipantEntity(L),renderParticipants:n.renderParticipants,renderLifeLine:n.renderLifeLine},null,8,["entity","renderParticipants","renderLifeLine"])):d2("",!0)],64))),256)),(S(!0),B(z2,null,z3(r.implicitParticipants,L=>(S(),T2(o,{key:L.name,entity:L,renderParticipants:n.renderParticipants,renderLifeLine:n.renderLifeLine},null,8,["entity","renderParticipants","renderLifeLine"]))),128))])],12,YR)}const Gt=Y2(KR,[["render",QR]]),JR={class:"message-layer relative z-30 pt-24 pb-10"},sL=X2({__name:"MessageLayer",props:{context:null},setup(t){const e=J9(()=>Promise.resolve().then(()=>oP)),n=G5.child({name:"MessageLayer"}),i=S1(),s=O(()=>i.getters.centerOf),r=O(()=>i.getters.rootContext),o=O(()=>s.value(l.value)+1),l=O(()=>{const L=d7(r.value);return L.length===0?null:L[0].from||E1});return e1(()=>{n.debug("MessageLayer mounted")}),q0(()=>{n.debug("MessageLayer updated")}),(L,a)=>{const c=w2("block");return S(),B("div",JR,[N(l)?(S(),T2(c,{key:0,context:t.context,style:y2({"padding-left":N(o)+"px"}),origin:N(l)},null,8,["context","style","origin"])):d2("",!0),j(N(e))])}}}),mz="";function x7(t){return[t.Origin()||E1,...p5(t).Names()]}const eA=T.tree.ParseTreeWalker.DEFAULT;class jt extends I{constructor(n){super();s2(this,"_orderedParticipants");s2(this,"frameRoot",null);s2(this,"parents",[]);this._orderedParticipants=n}getLocalParticipants(n){return[n.Origin()||E1,...p5(n).ImplicitArray().map(i=>i.name)]}getLeft(n){const i=x7(n);return this._orderedParticipants.find(s=>i.includes(s))||""}getRight(n){return this._orderedParticipants.slice().reverse().find(i=>x7(n).includes(i))||""}enterFragment(n,i){var r;const s={type:i,left:this.getLeft(n),right:this.getRight(n),children:[]};this.frameRoot||(this.frameRoot=s),this.parents.length>0&&((r=this.parents[this.parents.length-1].children)==null||r.push(s)),this.parents.push(s)}exitFragment(){this.parents.pop()}enterTcf(n){this.enterFragment(n,"tcf")}enterOpt(n){this.enterFragment(n,"opt")}enterPar(n){this.enterFragment(n,"par")}enterAlt(n){this.enterFragment(n,"alt")}enterLoop(n){this.enterFragment(n,"loop")}enterSection(n){this.enterFragment(n,"section")}enterCritical(n){this.enterFragment(n,"critical")}enterRef(n){this.enterFragment(n,"ref")}exitTcf(){this.exitFragment()}exitOpt(){this.exitFragment()}exitPar(){this.exitFragment()}exitAlt(){this.exitFragment()}exitLoop(){this.exitFragment()}exitSection(){this.exitFragment()}exitCritical(){this.exitFragment()}exitRef(){this.exitFragment()}getFrame(n){return n.children.map(i=>{eA.walk(this,i)}),this.frameRoot}}function qt(t,e){if(!t.children||t.children.length===0)return 1;let n=0;for(const i of t.children)e==="LEFT"&&i.left!==t.left||e==="RIGHT"&&i.right!==t.right||(n=Math.max(n,qt(i,e)));return n+1}function Kt(t){return t?{type:t.type,left:Rl*qt(t,"LEFT"),right:Rl*qt(t,"RIGHT")}:{left:0,right:0}}function rL(t,e){const n=e.orderedParticipantNames(),i=x7(t),s=n.find(C=>i.includes(C))||"",r=n.slice().reverse().find(C=>i.includes(C))||"",l=new jt(n).getFrame(t),L=Kt(l),a=tA(t,r,e),c=e.distance(s,r)+e.half(s)+e.half(r);return Math.max(c,Al)+L.left+L.right+a}function tA(t,e,n){const s=d7(t).filter(r=>r.from===r.to).map(r=>n.getMessageWidth(r)-n.distance(r.from||E1,e)-n.half(e));return Math.max.apply(null,[0,...s])}const Yt=X2({__name:"SeqDiagram",setup(t){const e=S1(),n=O(()=>e.state.theme),i=O(()=>e.state.mode),s=O(()=>e.getters.rootContext),r=O(()=>e.getters.coordinates),o=O(()=>rL(s.value,r.value)-l.value),l=O(()=>{const a=r.value.orderedParticipantNames(),C=new jt(a).getFrame(s.value);return C?Kt(C).left:0}),L=C2(null);return e.commit("diagramElement",L),(a,c)=>(S(),B("div",{class:R2(["zenuml sequence-diagram relative box-border text-left overflow-visible px-2.5",N(n)]),ref_key:"diagramRef",ref:L},[R("div",{style:y2({paddingLeft:`${N(l)}px`}),class:"relative container"},[N(i)===N(e3).Dynamic?(S(),B(z2,{key:0},[j(Gt,{leftGap:N(l),context:N(s).head(),renderParticipants:!1,renderLifeLine:!0},null,8,["leftGap","context"]),j(sL,{context:N(s).block(),style:y2({width:`${N(o)}px`})},null,8,["context","style"]),j(Gt,{leftGap:N(l),context:N(s).head(),renderParticipants:!0,renderLifeLine:!1},null,8,["leftGap","context"])],64)):d2("",!0),N(i)===N(e3).Static?(S(),B(z2,{key:1},[j(Gt,{leftGap:N(l),context:N(s).head(),renderParticipants:!0,renderLifeLine:!0},null,8,["leftGap","context"]),j(sL,{context:N(s).block(),style:y2({width:`${N(o)}px`})},null,8,["context","style"])],64)):d2("",!0)],4)],2))}}),wz="",nA={name:"IconList",props:["types"],computed:{},methods:{icon(t){return Ht[t==null?void 0:t.toLowerCase()]}}},iA={role:"list",class:"mt-3 grid grid-cols-4 gap-5 sm:gap-6 sm:grid-cols-6 lg:grid-cols-8"},sA={class:"h-12 flex items-center justify-center bg-gray-50 text-sm font-medium rounded-t-md"},rA=["innerHTML","alt"],oA={class:"flex items-center justify-center border-t border-r border-b border-gray-200 bg-white rounded-b-md"},lA={class:"px-2 py-2 text-xs"},LA={class:"text-gray-900 font-medium hover:text-gray-600"};function aA(t,e,n,i,s,r){return S(),B("ul",iA,[(S(!0),B(z2,null,z3(n.types,o=>(S(),B("li",{key:o,class:"col-span-1 flex flex-col shadow-sm rounded-md"},[R("div",sA,[r.icon?(S(),B("i",{key:0,innerHTML:r.icon(o),class:"object-contain h-8 w-8 m-auto [&>svg]:w-full [&>svg]:h-full",alt:`icon for ${o}`},null,8,rA)):d2("",!0)]),R("div",oA,[R("div",lA,[R("span",LA,"@"+K2(o),1)])])]))),128))])}const cA={name:"TipsDialog",components:{Icon:q4,IconList:Y2(nA,[["render",aA]])},computed:{standardTypes(){return["Actor","Boundary","Control","Database","Entity"]},awsServices(){return["CloudWatch","CloudFront","Cognito","DynamoDB","EBS","EC2","ECS","EFS","ElastiCache","ElasticBeantalk","ElasticFileSystem","Glacier","IAM","Kinesis","Lambda","LightSail","RDS","Redshift","S3","SNS","SQS","Sagemaker","VPC"]},azureServices(){return["AzureActiveDirectory","AzureBackup","AzureCDN","AzureDataFactory","AzureDevOps","AzureFunction","AzureSQL","CosmosDB","LogicApps","VirtualMachine"]},googleServices(){return["BigTable","BigQuery","CloudCDN","CloudDNS","CloudInterconnect","CloudLoadBalancing","CloudSQL","CloudStorage","DataLab","DataProc","GoogleIAM","GoogleSecurity","GoogleVPC","PubSub","SecurityScanner","StackDriver","VisionAPI"]}},methods:{closeTipsDialog(){var t;this.$store.state.showTips=!1;try{(t=this.$gtag)==null||t.event("close",{event_category:"help",event_label:"tips dialog"})}catch(e){console.error(e)}}}},CA={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block"},uA=R("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity","aria-hidden":"true"},null,-1),hA=R("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"\u200B",-1),dA={class:"z-40 inline-block align-bottom bg-white rounded-lg px-4 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:p-2"},fA={class:"bg-white px-4 py-5 border-b border-gray-200 sm:px-6"},gA=R("h3",{class:"text-xl leading-6 font-medium text-gray-900 inline-block"}," ZenUML Tips ",-1),pA=R("span",{class:"sr-only"},"Close menu",-1),mA={class:"relative bg-white pb-32 mt-4 overflow-hidden"},wA={class:"relative"},xA={class:"lg:mx-auto lg:max-w-11/12 lg:px-8"},vA=T8(`<div class="grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1"><div><div class="px-4 max-w-full mx-auto sm:px-6 lg:max-w-none lg:mx-0"><h2 class="mt-4 mb-4 text-lg leading-6 font-medium text-gray-900"> Declare Participants </h2><pre class="text-xs w-full bg-gray-50 text-gray-600 p-2 rounded-lg"><code>// Define a Starter (optional)
|
|
3186
|
+
<svg fill="#000000" width="800px" height="800px" viewBox="0 -2 28 28" xmlns="http://www.w3.org/2000/svg"><path d="m27.994 14.729c-.012.267-.365.566-1.091.945-1.495.778-9.236 3.967-10.883 4.821-.589.419-1.324.67-2.116.67-.641 0-1.243-.164-1.768-.452l.019.01c-1.304-.622-9.539-3.95-11.023-4.659-.741-.35-1.119-.653-1.132-.933v2.83c0 .282.39.583 1.132.933 1.484.709 9.722 4.037 11.023 4.659.504.277 1.105.44 1.744.44.795 0 1.531-.252 2.132-.681l-.011.008c1.647-.859 9.388-4.041 10.883-4.821.76-.396 1.096-.7 1.096-.982s0-2.791 0-2.791z"/><path d="m27.992 10.115c-.013.267-.365.565-1.09.944-1.495.778-9.236 3.967-10.883 4.821-.59.421-1.326.672-2.121.672-.639 0-1.24-.163-1.763-.449l.019.01c-1.304-.627-9.539-3.955-11.023-4.664-.741-.35-1.119-.653-1.132-.933v2.83c0 .282.39.583 1.132.933 1.484.709 9.721 4.037 11.023 4.659.506.278 1.108.442 1.749.442.793 0 1.527-.251 2.128-.677l-.011.008c1.647-.859 9.388-4.043 10.883-4.821.76-.397 1.096-.7 1.096-.984s0-2.791 0-2.791z"/><path d="m27.992 5.329c.014-.285-.358-.534-1.107-.81-1.451-.533-9.152-3.596-10.624-4.136-.528-.242-1.144-.383-1.794-.383-.734 0-1.426.18-2.035.498l.024-.012c-1.731.622-9.924 3.835-11.381 4.405-.729.287-1.086.552-1.073.834v2.83c0 .282.39.583 1.132.933 1.484.709 9.721 4.038 11.023 4.66.504.277 1.105.439 1.744.439.795 0 1.531-.252 2.133-.68l-.011.008c1.647-.859 9.388-4.043 10.883-4.821.76-.397 1.096-.7 1.096-.984s0-2.791 0-2.791h-.009zm-17.967 2.684 6.488-.996-1.96 2.874zm14.351-2.588-4.253 1.68-3.835-1.523 4.246-1.679 3.838 1.517zm-11.265-2.785-.628-1.157 1.958.765 1.846-.604-.499 1.196 1.881.7-2.426.252-.543 1.311-.879-1.457-2.8-.252 2.091-.754zm-4.827 1.632c1.916 0 3.467.602 3.467 1.344s-1.559 1.344-3.467 1.344-3.474-.603-3.474-1.344 1.553-1.344 3.474-1.344z"/></svg>`};function Xl(){const t=C2(0),e=C2(0),n=()=>{t.value=document.documentElement.scrollTop,e.value=document.documentElement.scrollLeft};return e1(()=>{n(),document.addEventListener("scroll",n)}),_1(()=>{document.removeEventListener("scroll",n)}),[t,e]}const $t=10,yR=1,Ql=20;function RR(){let t=document.getElementById("zenuml-intersection-detector-container"),e=Array.from(document.getElementsByClassName("zenuml-intersection-detector"));return t&&e.length===$t?{detectorContainer:t,detectors:e}:(t=document.createElement("div"),t.id="zenuml-intersection-detector-container",Object.assign(t.style,{position:"absolute",top:"0",left:"0",opacity:"0",pointerEvents:"none"}),e=new Array($t).fill(0).map(()=>{const n=document.createElement("div");return n.className="zenuml-intersection-detector",Object.assign(n.style,{position:"absolute",top:"0",left:"0",width:"100%"}),t==null||t.appendChild(n),n}),document.body.appendChild(t),{detectorContainer:t,detectors:e})}function Jl(){const t=C2(0);let e;return e1(()=>{const{detectorContainer:n,detectors:i}=RR(),s=document.documentElement.scrollHeight-Ql,r=document.documentElement.scrollWidth-Ql;n.style.height=s+"px",n.style.width=r+"px";const o=Math.ceil(document.documentElement.scrollHeight/$t),l=[...Array(o+1).keys()].map(L=>L/o);i.forEach((L,a)=>{L.style.top=a*o+"px",L.style.height=o+"px"}),e=new IntersectionObserver(([L])=>{(L.intersectionRect.top-L.boundingClientRect.top>yR||L.target===i[0])&&(t.value=L.intersectionRect.top)},{threshold:l}),i.forEach(L=>{e.observe(L)})}),_1(()=>{e.disconnect()}),t}function Vt(t){let e=0,n=t;for(;n;)e+=n.offsetTop,n=n.offsetParent;return e}const w5=/[!@#$%^&*()+-,.?''":{}|<>/\s]/,w7=t=>{const e=C2(!1);function n(l){e.value=l}async function i(l){l.preventDefault(),l.stopPropagation(),n(!0),await x4();const L=document.createRange();if(!l.target)return;L.selectNodeContents(l.target),L.collapse(!1);const a=window.getSelection();!a||(a==null||a.removeAllRanges(),a==null||a.addRange(L))}async function s(l){await x4(),e.value&&(n(!1),t(l))}function r(l){l.key==="Enter"&&(l.preventDefault(),l.stopPropagation())}function o(l){(l.key==="Enter"||l.key==="Escape"||l.key==="Tab")&&(n(!1),t(l))}return{editing:e,handleDblClick:i,handleBlur:s,handleKeydown:r,handleKeyup:o}},AR={class:"flex items-center justify-center"},kR=["contenteditable"],ZR=R("span",null,":",-1),TR=["contenteditable"],SR=X2({__name:"ParticipantLabel",props:{labelText:null,labelPositions:null,assignee:null,assigneePositions:null},setup(t){var f,w;const e=t,n=["Missing Constructor","ZenUML"],{labelText:i,labelPositions:s,assigneePositions:r}=L9(e),o=S1(),l=O(()=>o.state.mode),L=O(()=>o.getters.code),a=O(()=>o.getters.onContentChange||(()=>{}));function c(v){o.dispatch("updateCode",{code:v}),a.value(v)}function C(v){return function(p){var Z;p.preventDefault(),p.stopPropagation();const g=p.target;if(!(g instanceof HTMLElement))return;let m=(Z=g.innerText.trim())!=null?Z:"";if(m===""||m===i.value){g.innerText=i.value;return}if(m.includes(" ")&&(m=m.replace(/\s+/g," ")),w5.test(m)&&(m=m.replace(/"/g,""),m=`"${m}"`,w5.lastIndex=0),!v||v.length===0)return;let _=L.value;for(const E of v){const[k,b]=E;_=_.slice(0,k)+m+_.slice(b)}c(_)}}const u=w7(C((f=s==null?void 0:s.value)!=null?f:[])),h=w7(C((w=r==null?void 0:r.value)!=null?w:[]));return(v,p)=>(S(),B("div",AR,[t.assignee?(S(),B(z2,{key:0},[R("label",{title:"Double click to edit",class:R2(["name leading-4 cursor-text right hover:text-skin-message-hover hover:bg-skin-message-hover",{"py-1 cursor-text":N(h).editing}]),contenteditable:N(h).editing&&N(l)===N(e3).Dynamic,onDblclick:p[0]||(p[0]=(...g)=>N(h).handleDblClick&&N(h).handleDblClick(...g)),onBlur:p[1]||(p[1]=(...g)=>N(h).handleBlur&&N(h).handleBlur(...g)),onKeyup:p[2]||(p[2]=(...g)=>N(h).handleKeyup&&N(h).handleKeyup(...g)),onKeydown:p[3]||(p[3]=(...g)=>N(h).handleKeydown&&N(h).handleKeydown(...g))},K2(t.assignee),43,kR),ZR],64)):d2("",!0),R("label",{title:"Double click to edit",class:R2(["name leading-4 cursor-text right hover:text-skin-message-hover hover:bg-skin-message-hover",{"py-1 cursor-text":N(u).editing}]),contenteditable:N(u).editing&&N(l)===N(e3).Dynamic&&n.indexOf(N(i))===-1,onDblclick:p[4]||(p[4]=(...g)=>N(u).handleDblClick&&N(u).handleDblClick(...g)),onBlur:p[5]||(p[5]=(...g)=>N(u).handleBlur&&N(u).handleBlur(...g)),onKeyup:p[6]||(p[6]=(...g)=>N(u).handleKeyup&&N(u).handleKeyup(...g)),onKeydown:p[7]||(p[7]=(...g)=>N(u).handleKeydown&&N(u).handleKeydown(...g))},K2(N(i)),43,TR)]))}}),bR=10,ER={name:"Participant",components:{ParticipantLabel:SR},setup(t){const e=S1(),n=C2(null);if(e.state.mode===e3.Static)return{translate:0,participant:n};const i=O(()=>{const L=e.getters.participants.GetPositions(t.entity.name);return Array.from(L!=null?L:[]).sort((c,C)=>C[0]-c[0])}),s=O(()=>{const L=e.getters.participants.GetAssigneePositions(t.entity.name);return Array.from(L!=null?L:[]).sort((c,C)=>C[0]-c[0])}),r=Jl(),[o]=Xl();return{translate:O(()=>{var u;const L=t.offsetTop2||0;let a=r.value+o.value;r.value>bR&&(e==null?void 0:e.state.stickyOffset)&&(a+=e==null?void 0:e.state.stickyOffset);const c=((u=e==null?void 0:e.state.diagramElement)==null?void 0:u.clientHeight)||0,C=e!=null&&e.state.diagramElement?Vt(e==null?void 0:e.state.diagramElement):0;return a<L+C?0:Math.min(a-C,c-Tl)-L}),participant:n,labelPositions:i,assigneePositions:s}},props:{entity:{type:Object,required:!0},offsetTop2:{type:Number,default:0}},data(){return{color:void 0}},mounted(){this.updateFontColor()},updated(){this.updateFontColor()},computed:{isDefaultStarter(){return this.entity.name===E1},selected(){return this.$store.state.selected.includes(this.entity.name)},stereotype(){return this.entity.stereotype},labelText(){return this.entity.assignee?this.entity.name.split(":")[1]:this.entity.label||this.entity.name},comment(){return this.entity.comment},icon(){var t;return this.isDefaultStarter?Ht.actor:Ht[(t=this.entity.type)==null?void 0:t.toLowerCase()]},backgroundColor(){try{return this.entity.color?this.entity.color&&Cm(this.entity.color):void 0}catch{return}}},methods:{onSelect(){this.$store.commit("onSelect",this.entity.name)},updateFontColor(){if(!this.entity.color){this.color="inherit";return}let t=window.getComputedStyle(this.$refs.participant).getPropertyValue("background-color");if(!t){this.color="inherit";return}let e=cm(t);this.color=e>128?"#000":"#fff"}}},IR=["innerHTML","aria-description"],OR={key:1},FR=["innerHTML","aria-description"],NR={class:"h-5 group flex flex-col justify-center"},DR={key:0,class:"interface leading-4"};function PR(t,e,n,i,s,r){const o=w2("ParticipantLabel");return r.isDefaultStarter?(S(),B("div",{key:0,class:R2(["participant bg-skin-participant shadow-participant border-transparent text-skin-participant rounded text-base leading-4 flex flex-col justify-center z-10 h-10 top-8",{selected:r.selected}]),ref:"participant",style:y2({transform:`translateY(${i.translate}px)`}),onClick:e[0]||(e[0]=(...l)=>r.onSelect&&r.onSelect(...l))},[R("div",{innerHTML:r.icon,class:"text-skin-base bg-skin-participant px-1 absolute rounded left-1/2 transform -translate-x-1/2 h-8 [&>svg]:w-full [&>svg]:h-full","aria-description":`icon for ${n.entity.name}`},null,8,IR)],6)):(S(),B("div",OR,[R("div",{class:R2(["participant bg-skin-participant shadow-participant border-skin-participant text-skin-participant rounded text-base leading-4 flex flex-col justify-center z-10 h-10 top-8",{selected:r.selected}]),ref:"participant",style:y2({backgroundColor:r.backgroundColor,color:s.color,transform:`translateY(${i.translate}px)`}),onClick:e[1]||(e[1]=(...l)=>r.onSelect&&r.onSelect(...l))},[r.icon?(S(),B("div",{key:0,innerHTML:r.icon,class:"text-skin-base bg-skin-participant px-1 absolute rounded left-1/2 transform -translate-x-1/2 -translate-y-full h-8 [&>svg]:w-full [&>svg]:h-full","aria-description":`icon for ${n.entity.name}`},null,8,FR)):d2("",!0),R("div",NR,[r.stereotype?(S(),B("label",DR,"\xAB"+K2(r.stereotype)+"\xBB",1)):d2("",!0),j(o,{labelText:r.labelText,labelPositions:i.labelPositions,assignee:n.entity.assignee,assigneePositions:i.assigneePositions},null,8,["labelText","labelPositions","assignee","assigneePositions"])])],6)]))}const eL=Y2(ER,[["render",PR]]),pz="",x5=G5.child({name:"LifeLine"}),BR={name:"life-line",components:{Participant:eL},props:["entity","context","groupLeft","inGroup","renderParticipants","renderLifeLine"],data:()=>({translateX:0,top:0}),computed:{...I3(["centerOf"]),...y9(["scale"]),debug(){return!!localStorage.zenumlDebug},left(){return this.centerOf(this.entity.name)-8-(this.groupLeft||0)}},mounted(){x5.debug(`LifeLine mounted for ${this.entity.name}`),this.$nextTick(()=>{this.setTop(),x5.debug(`nextTick after updated for ${this.entity.name}`)}),g7.on("participant_set_top",()=>this.$nextTick(()=>this.setTop()))},updated(){x5.debug(`updated for ${this.entity.name}`),this.$nextTick(()=>{this.setTop(),x5.debug(`nextTick after updated for ${this.entity.name}`)})},methods:{onSelect(){this.$store.commit("onSelect",this.entity.name)},setTop(){const t=this.entity.name.replace(/([ #;&,.+*~\':"!^$[\]()=>|\/@])/g,"\\$1"),e=this.$store.getters.diagramElement,n=e==null?void 0:e.querySelector(`[data-to="${t}"]`),i=(n==null?void 0:n.offsetParent)!=null;if(n&&n.attributes["data-type"].value==="creation"&&i){x5.debug(`First message to ${this.entity.name} is creation`);const s=this.$el.getBoundingClientRect().y,r=n.getBoundingClientRect().y;this.top=(r-s)/this.scale}else this.top=0}}},zR=["id","entity-type"],UR={key:1,class:"line w0 mx-auto flex-grow w-px"};function WR(t,e,n,i,s,r){var l;const o=w2("participant");return S(),B("div",{id:n.entity.name,"entity-type":(l=n.entity.type)==null?void 0:l.toLowerCase(),class:R2(["lifeline absolute flex flex-col mx-2 h-full",{"transform -translate-x-1/2":n.renderParticipants}]),style:y2({paddingTop:t.top+"px",left:r.left+"px"})},[n.renderParticipants?(S(),T2(o,{key:0,entity:n.entity,offsetTop2:t.top},null,8,["entity","offsetTop2"])):d2("",!0),n.renderLifeLine?(S(),B("div",UR)):d2("",!0)],14,zR)}const tL=Y2(BR,[["render",WR],["__scopeId","data-v-25231267"]]),nL=8,HR={name:"lifeline-group",props:["context","renderParticipants","renderLifeLine"],computed:{...I3(["centerOf"]),name(){var t,e;return(e=(t=this.context)==null?void 0:t.name())==null?void 0:e.getFormattedText()},left(){const t=this.entities[0].name,e=Math.max(h7(t,T9.ParticipantName),100);return this.centerOf(t)-e/2-nL},right(){const t=this.entities.slice(0).pop().name,e=Math.max(h7(t,T9.ParticipantName),100);return this.centerOf(t)+e/2+nL},entities(){return p5(this.context).Array()}},components:{LifeLine:tL}},$R={class:"lifeline-group relative flex-grow"};function VR(t,e,n,i,s,r){const o=w2("life-line");return r.entities.length>0?(S(),B("div",{key:0,class:"lifeline-group-container absolute flex flex-col h-full",style:y2({left:`${r.left}px`,width:`${r.right-r.left}px`})},[R("div",{class:R2(["flex flex-col flex-grow",{shadow:!n.renderParticipants,"shadow-slate-500/50":!n.renderParticipants}])},[R("div",$R,[(S(!0),B(z2,null,z3(r.entities,l=>(S(),T2(o,{inGroup:"true",key:l.name,ref_for:!0,ref:l.name,entity:l,"group-left":r.left,"render-life-line":n.renderLifeLine,renderParticipants:n.renderParticipants},null,8,["entity","group-left","render-life-line","renderParticipants"]))),128))])],2)],4)):d2("",!0)}const GR=Y2(HR,[["render",VR]]),iL=G5.child({name:"LifeLineLayer"}),jR=70,qR=10,KR={name:"life-line-layer",props:["context","renderParticipants","renderLifeLine","leftGap"],setup(){const e=S1(),n=O(()=>e.state.mode);if(n.value===e3.static)return{translate:0,RenderMode:e3,mode:n};const i=Jl(),[s]=Xl();return{translate:O(()=>{var a;let o=i.value+s.value;i.value>qR&&(e==null?void 0:e.state.stickyOffset)&&(o+=e==null?void 0:e.state.stickyOffset);const l=((a=e==null?void 0:e.state.diagramElement)==null?void 0:a.clientHeight)||0,L=e!=null&&e.state.diagramElement?Vt(e==null?void 0:e.state.diagramElement):0;return o<=0+L?0:Math.min(o-L,l-jR)-0}),RenderMode:e3,mode:n}},computed:{...I3(["coordinates","participants","GroupContext","ParticipantContext","centerOf"]),participantNames(){return this.participants.Names()},debug(){return!!localStorage.zenumlDebug},starterParticipant(){const t=this.coordinates.orderedParticipantNames();return t.length===0?null:t[0]===E1?{...Ko,name:E1,explicit:!1,isStarter:!0}:null},starterOnTheLeft(){var t;return!!this.starterParticipant&&!((t=this.starterParticipant)!=null&&t.explicit)},implicitParticipants(){return this.participants.ImplicitArray()},explicitGroupAndParticipants(){var t;return(t=this.context)==null?void 0:t.children.filter(e=>{const n=e instanceof wl,i=e instanceof xl;return n||i})}},methods:{...no(["increaseGeneration"]),getParticipantEntity(t){return p5(t).First()}},updated(){iL.debug("LifeLineLayer updated")},mounted(){iL.debug("LifeLineLayer mounted")},components:{LifeLine:tL,LifeLineGroup:GR}},YR=["data-participant-names"],XR={class:"z-lifeline-container relative grow"};function QR(t,e,n,i,s,r){const o=w2("life-line"),l=w2("life-line-group");return S(),B("div",{class:"life-line-layer lifeline-layer z-30 absolute h-full flex flex-col top-0","data-participant-names":r.participantNames,style:y2({"min-width":i.mode===i.RenderMode.Dynamic?"200px":"auto",width:`calc(100% - ${n.leftGap}px)`,pointerEvents:n.renderParticipants?"none":"all"})},[R("div",{style:y2({transform:`translateY(${i.translate>0?i.translate-1:i.translate}px)`}),class:"pt-8 after:bg-gradient-to-b after:from-skin-frame after:via-skin-frame after:to-skin-frame/0 after:block after:absolute after:top-0 after:w-full after:h-[72px]"},null,4),R("div",XR,[r.starterOnTheLeft?(S(),T2(o,{key:0,entity:r.starterParticipant,class:"starter",renderParticipants:n.renderParticipants,renderLifeLine:n.renderLifeLine},null,8,["entity","renderParticipants","renderLifeLine"])):d2("",!0),(S(!0),B(z2,null,z3(r.explicitGroupAndParticipants,(L,a)=>(S(),B(z2,null,[L instanceof t.GroupContext?(S(),T2(l,{key:a,context:L,renderParticipants:n.renderParticipants,renderLifeLine:n.renderLifeLine},null,8,["context","renderParticipants","renderLifeLine"])):d2("",!0),L instanceof t.ParticipantContext?(S(),T2(o,{key:a,entity:r.getParticipantEntity(L),renderParticipants:n.renderParticipants,renderLifeLine:n.renderLifeLine},null,8,["entity","renderParticipants","renderLifeLine"])):d2("",!0)],64))),256)),(S(!0),B(z2,null,z3(r.implicitParticipants,L=>(S(),T2(o,{key:L.name,entity:L,renderParticipants:n.renderParticipants,renderLifeLine:n.renderLifeLine},null,8,["entity","renderParticipants","renderLifeLine"]))),128))])],12,YR)}const Gt=Y2(KR,[["render",QR]]),JR={class:"message-layer relative z-30 pt-24 pb-10"},sL=X2({__name:"MessageLayer",props:{context:null},setup(t){const e=J9(()=>Promise.resolve().then(()=>oP)),n=G5.child({name:"MessageLayer"}),i=S1(),s=O(()=>i.getters.centerOf),r=O(()=>i.getters.rootContext),o=O(()=>s.value(l.value)+1),l=O(()=>{const L=d7(r.value);return L.length===0?null:L[0].from||E1});return e1(()=>{n.debug("MessageLayer mounted")}),q0(()=>{n.debug("MessageLayer updated")}),(L,a)=>{const c=w2("block");return S(),B("div",JR,[N(l)?(S(),T2(c,{key:0,context:t.context,style:y2({"padding-left":N(o)+"px"}),origin:N(l)},null,8,["context","style","origin"])):d2("",!0),j(N(e))])}}}),mz="";function x7(t){return[t.Origin()||E1,...p5(t).Names()]}const eA=T.tree.ParseTreeWalker.DEFAULT;class jt extends I{constructor(n){super();s2(this,"_orderedParticipants");s2(this,"frameRoot",null);s2(this,"parents",[]);this._orderedParticipants=n}getLocalParticipants(n){return[n.Origin()||E1,...p5(n).ImplicitArray().map(i=>i.name)]}getLeft(n){const i=x7(n);return this._orderedParticipants.find(s=>i.includes(s))||""}getRight(n){return this._orderedParticipants.slice().reverse().find(i=>x7(n).includes(i))||""}enterFragment(n,i){var r;const s={type:i,left:this.getLeft(n),right:this.getRight(n),children:[]};this.frameRoot||(this.frameRoot=s),this.parents.length>0&&((r=this.parents[this.parents.length-1].children)==null||r.push(s)),this.parents.push(s)}exitFragment(){this.parents.pop()}enterTcf(n){this.enterFragment(n,"tcf")}enterOpt(n){this.enterFragment(n,"opt")}enterPar(n){this.enterFragment(n,"par")}enterAlt(n){this.enterFragment(n,"alt")}enterLoop(n){this.enterFragment(n,"loop")}enterSection(n){this.enterFragment(n,"section")}enterCritical(n){this.enterFragment(n,"critical")}enterRef(n){this.enterFragment(n,"ref")}exitTcf(){this.exitFragment()}exitOpt(){this.exitFragment()}exitPar(){this.exitFragment()}exitAlt(){this.exitFragment()}exitLoop(){this.exitFragment()}exitSection(){this.exitFragment()}exitCritical(){this.exitFragment()}exitRef(){this.exitFragment()}getFrame(n){return n.children.map(i=>{eA.walk(this,i)}),this.frameRoot}}function qt(t,e){if(!t.children||t.children.length===0)return 1;let n=0;for(const i of t.children)e==="LEFT"&&i.left!==t.left||e==="RIGHT"&&i.right!==t.right||(n=Math.max(n,qt(i,e)));return n+1}function Kt(t){return t?{type:t.type,left:Rl*qt(t,"LEFT"),right:Rl*qt(t,"RIGHT")}:{left:0,right:0}}function rL(t,e){const n=e.orderedParticipantNames(),i=x7(t),s=n.find(C=>i.includes(C))||"",r=n.slice().reverse().find(C=>i.includes(C))||"",l=new jt(n).getFrame(t),L=Kt(l),a=tA(t,r,e),c=e.distance(s,r)+e.half(s)+e.half(r);return Math.max(c,Al)+L.left+L.right+a}function tA(t,e,n){const s=d7(t).filter(r=>r.from===r.to).map(r=>n.getMessageWidth(r)-n.distance(r.from||E1,e)-n.half(e));return Math.max.apply(null,[0,...s])}const Yt=X2({__name:"SeqDiagram",setup(t){const e=S1(),n=O(()=>e.state.theme),i=O(()=>e.state.mode),s=O(()=>e.getters.rootContext),r=O(()=>e.getters.coordinates),o=O(()=>rL(s.value,r.value)-l.value),l=O(()=>{const a=r.value.orderedParticipantNames(),C=new jt(a).getFrame(s.value);return C?Kt(C).left:0}),L=C2(null);return e.commit("diagramElement",L),(a,c)=>(S(),B("div",{class:R2(["zenuml sequence-diagram relative box-border text-left overflow-visible px-2.5",N(n)]),ref_key:"diagramRef",ref:L},[R("div",{style:y2({paddingLeft:`${N(l)}px`}),class:"relative container"},[N(i)===N(e3).Dynamic?(S(),B(z2,{key:0},[j(Gt,{leftGap:N(l),context:N(s).head(),renderParticipants:!1,renderLifeLine:!0},null,8,["leftGap","context"]),j(sL,{context:N(s).block(),style:y2({width:`${N(o)}px`})},null,8,["context","style"]),j(Gt,{leftGap:N(l),context:N(s).head(),renderParticipants:!0,renderLifeLine:!1},null,8,["leftGap","context"])],64)):d2("",!0),N(i)===N(e3).Static?(S(),B(z2,{key:1},[j(Gt,{leftGap:N(l),context:N(s).head(),renderParticipants:!0,renderLifeLine:!0},null,8,["leftGap","context"]),j(sL,{context:N(s).block(),style:y2({width:`${N(o)}px`})},null,8,["context","style"])],64)):d2("",!0)],4)],2))}}),wz="",nA={name:"IconList",props:["types"],computed:{},methods:{icon(t){return Ht[t==null?void 0:t.toLowerCase()]}}},iA={role:"list",class:"mt-3 grid grid-cols-4 gap-5 sm:gap-6 sm:grid-cols-6 lg:grid-cols-8"},sA={class:"h-12 flex items-center justify-center bg-gray-50 text-sm font-medium rounded-t-md"},rA=["innerHTML","alt"],oA={class:"flex items-center justify-center border-t border-r border-b border-gray-200 bg-white rounded-b-md"},lA={class:"px-2 py-2 text-xs"},LA={class:"text-gray-900 font-medium hover:text-gray-600"};function aA(t,e,n,i,s,r){return S(),B("ul",iA,[(S(!0),B(z2,null,z3(n.types,o=>(S(),B("li",{key:o,class:"col-span-1 flex flex-col shadow-sm rounded-md"},[R("div",sA,[r.icon?(S(),B("i",{key:0,innerHTML:r.icon(o),class:"object-contain h-8 w-8 m-auto [&>svg]:w-full [&>svg]:h-full",alt:`icon for ${o}`},null,8,rA)):d2("",!0)]),R("div",oA,[R("div",lA,[R("span",LA,"@"+K2(o),1)])])]))),128))])}const cA={name:"TipsDialog",components:{Icon:q4,IconList:Y2(nA,[["render",aA]])},computed:{standardTypes(){return["Actor","Boundary","Control","Database","Entity"]},awsServices(){return["CloudWatch","CloudFront","Cognito","DynamoDB","EBS","EC2","ECS","EFS","ElastiCache","ElasticBeantalk","ElasticFileSystem","Glacier","IAM","Kinesis","Lambda","LightSail","RDS","Redshift","S3","SNS","SQS","Sagemaker","VPC"]},azureServices(){return["AzureActiveDirectory","AzureBackup","AzureCDN","AzureDataFactory","AzureDevOps","AzureFunction","AzureSQL","CosmosDB","LogicApps","VirtualMachine"]},googleServices(){return["BigTable","BigQuery","CloudCDN","CloudDNS","CloudInterconnect","CloudLoadBalancing","CloudSQL","CloudStorage","DataLab","DataProc","GoogleIAM","GoogleSecurity","GoogleVPC","PubSub","SecurityScanner","StackDriver","VisionAPI"]}},methods:{closeTipsDialog(){var t;this.$store.state.showTips=!1;try{(t=this.$gtag)==null||t.event("close",{event_category:"help",event_label:"tips dialog"})}catch(e){console.error(e)}}}},CA={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block"},uA=R("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity","aria-hidden":"true"},null,-1),hA=R("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"\u200B",-1),dA={class:"z-40 inline-block align-bottom bg-white rounded-lg px-4 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:p-2"},fA={class:"bg-white px-4 py-5 border-b border-gray-200 sm:px-6"},gA=R("h3",{class:"text-xl leading-6 font-medium text-gray-900 inline-block"}," ZenUML Tips ",-1),pA=R("span",{class:"sr-only"},"Close menu",-1),mA={class:"relative bg-white pb-32 mt-4 overflow-hidden"},wA={class:"relative"},xA={class:"lg:mx-auto lg:max-w-11/12 lg:px-8"},vA=T8(`<div class="grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1"><div><div class="px-4 max-w-full mx-auto sm:px-6 lg:max-w-none lg:mx-0"><h2 class="mt-4 mb-4 text-lg leading-6 font-medium text-gray-900"> Declare Participants </h2><pre class="text-xs w-full bg-gray-50 text-gray-600 p-2 rounded-lg"><code>// Define a Starter (optional)
|
|
3187
3187
|
@Starter(A)
|
|
3188
3188
|
|
|
3189
3189
|
// Show icons
|
|
@@ -3362,7 +3362,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),f3=W,o1=e2);const M1={
|
|
|
3362
3362
|
`:`<code>${t}</code>`}};k2.setOptions({highlight:function(t,e){if(!e)return F9.highlightAuto(t).value;const n=F9.getLanguage(e)?e:"plaintext";return F9.highlight(n,t).value},breaks:!0}),k2.use({renderer:Rb});const Ab={name:"comment",props:["comment","commentObj"],computed:{markedComment(){var e,n;const t=((e=this.commentObj)==null?void 0:e.text)&&k2.parse((n=this.commentObj)==null?void 0:n.text)||this.comment&&k2.parse(this.comment);return gS.sanitize(t)},commentStyle(){var t;return(t=this.commentObj)==null?void 0:t.commentStyle},classNames(){var t;return(t=this.commentObj)==null?void 0:t.commentClassNames}}},kb={class:"comments text-skin-comment min-w-[100px] flex text-left opacity-50 hover:opacity-100"},Zb=["innerHTML"];function Tb(t,e,n,i,s,r){return S(),B("div",kb,[R("div",{innerHTML:r.markedComment,class:R2(r.classNames),style:y2(r.commentStyle)},null,14,Zb)])}const F5=Y2(Ab,[["render",Tb],["__scopeId","data-v-05f7b74d"]]),Dz="",Sb={props:["collapsed"],emits:["click"]},bb={class:"collapsible-header"},Eb=[T8('<g id="SVGRepo_bgCarrier" stroke-width="0" data-v-175097b8></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-175097b8></g><g id="SVGRepo_iconCarrier" data-v-175097b8><line x1="13" y1="2" x2="13" y2="10" data-v-175097b8></line><polyline points="9 7 13 11 17 7" data-v-175097b8></polyline><line x1="13" y1="23" x2="13" y2="15" data-v-175097b8></line><polyline points="9 19 13 15 17 19" data-v-175097b8></polyline></g>',3)],Ib=[T8('<g id="SVGRepo_bgCarrier" stroke-width="0" data-v-175097b8></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" data-v-175097b8></g><g id="SVGRepo_iconCarrier" data-v-175097b8><line x1="13" y1="1" x2="13" y2="9" data-v-175097b8></line><polyline points="9 5 13 1 17 5" data-v-175097b8></polyline><line x1="13" y1="13" x2="13" y2="13" data-v-175097b8></line><line x1="13" y1="24" x2="13" y2="17" data-v-175097b8></line><polyline points="9 20 13 24 17 20" data-v-175097b8></polyline></g>',3)];function Ob(t,e,n,i,s,r){return S(),B("div",bb,[(S(),B("svg",{width:"20px",height:"20px",class:R2([{hidden:n.collapsed,expanded:!n.collapsed},"collapse-button cursor-pointer"]),onClick:e[0]||(e[0]=o=>t.$emit("click",o)),viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"miter"},Eb,2)),(S(),B("svg",{width:"20px",height:"20px",class:R2([{hidden:!n.collapsed},"cursor-pointer"]),onClick:e[1]||(e[1]=o=>t.$emit("click",o)),viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"miter"},Ib,2))])}const Fb=Y2(Sb,[["render",Ob],["__scopeId","data-v-175097b8"]]),zz="",Uz="",Nb={name:"occurrence",props:["context","selfCallIndent","participant","rtl","number"],data:function(){return{center:0,collapsed:!1}},computed:{...I3(["centerOf","messageLayerLeft"]),...y9(["code"]),debug(){return!!localStorage.zenumlDebug},computedCenter:function(){try{return this.centerOf(this.participant)}catch(t){return console.error(t),0}},hasAnyStatementsExceptReturn:function(){var i;let t=this.context.braceBlock();if(!t)return!1;let e=((i=t.block())==null?void 0:i.stat())||[],n=e.length;return n>1||n==1&&e[0].ret()==null}},methods:{toggle(){this.collapsed=!this.collapsed,g7.$emit("participant_set_top")}},components:{CollapseButton:Fb},watch:{context(){this.collapsed&&(this.collapsed=!1)}}},Da=t=>(_4("data-v-6a9cb3c9"),t=t(),M4(),t),Db=["data-belongs-to","data-x-offset","data-debug-center-of"],Pb={key:0,class:"absolute w-full left-0 bg-amber-700 h-3 -top-1 flex justify-center items-center"},Bb=[Da(()=>R("div",{class:"w-px h-full bg-black"},null,-1))],zb={key:1,class:"absolute w-full left-0 bg-amber-700 h-3 -bottom-1 flex justify-center items-center"},Ub=[Da(()=>R("div",{class:"w-px h-full bg-black"},null,-1))];function Wb(t,e,n,i,s,r){const o=w2("collapse-button"),l=w2("block");return S(),B("div",{class:R2(["occurrence shadow-occurrence border-skin-occurrence bg-skin-occurrence rounded-sm border-2 relative left-full",{"right-to-left":n.rtl}]),"data-el-type":"occurrence","data-belongs-to":n.participant,"data-x-offset":t.center,"data-debug-center-of":r.computedCenter},[r.debug?(S(),B("div",Pb,Bb)):d2("",!0),r.debug?(S(),B("div",zb,Ub)):d2("",!0),r.hasAnyStatementsExceptReturn?(S(),T2(o,{key:2,collapsed:t.collapsed,onClick:this.toggle},null,8,["collapsed","onClick"])):d2("",!0),this.context.braceBlock()?(S(),T2(l,{key:3,origin:n.participant,context:n.context.braceBlock().block(),selfCallIndent:n.selfCallIndent,number:n.number,collapsed:t.collapsed,inheritFromOccurrence:!0},null,8,["origin","context","selfCallIndent","number","collapsed"])):d2("",!0)],10,Db)}const Pa=Y2(Nb,[["render",Wb],["__scopeId","data-v-6a9cb3c9"]]);class y0{constructor(e,n,i,s){s2(this,"start");s2(this,"stop");this.start={line:e,col:n},this.stop={line:i,col:s}}static from(e){const n=e.start,i=e.stop;return new y0(n.line,n.column,i.line,i.column+i.text.length)}}const W7={props:["origin"],computed:{borderWidth:function(){const t={borderLeftWidth:"7px",borderRightWidth:"7px"},e=this.rightToLeft?"Left":"Right",n=this.rightToLeft?"Right":"Left";return this.isJointOccurrence(this.source)||(t[`border${n}Width`]="0px"),this.isJointOccurrence(this.target)||(t[`border${e}Width`]="0px"),t}},methods:{isJointOccurrence(t){const e=this.findContextForReceiver(t);return e?e instanceof d.MessageContext||e instanceof d.CreationContext:!1},findContextForReceiver(t){if(!this.context)return null;let e=this.context;if(this.source!==this.target){const n=this.context.message&&this.context.message();if(n&&n.Owner()===t)return n;const i=this.context.creation&&this.context.creation();if(i&&i.Owner()===t)return i}for(;e;){if(!e.Owner){e=e.parentCtx;continue}if(e.Owner()===t||!e.Owner()&&t===E1)return e;e=e.parentCtx}return null}}},H7=zr.extend({computed:{...I3(["distance2"]),rightToLeft(){return this.distance2(this.source,this.target)<0}}}),$z="",Hb={name:"creation",props:["context","comment","commentObj","selfCallIndent","number"],mixins:[W7,H7],computed:{...I3(["cursor","onElementClick","distance2"]),...y9(["numbering"]),source(){return this.origin},target(){var t,e;return(e=(t=this.context)==null?void 0:t.creation())==null?void 0:e.Owner()},creation(){return this.context.creation()},interactionWidth(){let t=this.selfCallIndent||0;return Math.abs(this.distance2(this.origin,this.target)-t)-Pt},signature(){return this.creation.SignatureText(!1)},assignee(){function t(s){return s&&s.getFormattedText()||""}let e=this.creation.creationBody().assignment();if(!e)return"";let n=t(e.assignee());const i=t(e.type());return n+(i?":"+i:"")},isCurrent(){return this.creation.isCurrent(this.cursor)},messageTextStyle(){var t;return(t=this.commentObj)==null?void 0:t.messageStyle},messageClassNames(){var t;return(t=this.commentObj)==null?void 0:t.messageClassNames}},mounted(){this.layoutMessageContainer()},updated(){this.layoutMessageContainer()},methods:{layoutMessageContainer(){(()=>{if(!this.$refs.participantPlaceHolder||!this.$refs.messageContainer)return;const e=this.$refs.participantPlaceHolder.offsetWidth/2;this.$refs.messageContainer.style.width=`calc(100% + ${e+Zl}px`,this.rightToLeft&&(this.$refs.messageContainer.style.transform=`translateX( ${-(e+Zl+Pt)}px`)})()},onClick(){this.onElementClick(y0.from(this.context))}},components:{Participant:eL,Comment:F5,Occurrence:Pa,Message:v5}},$b=["data-origin","data-signature"],Vb=["data-to"],Gb={ref:"participantPlaceHolder",class:"invisible right-0 flex flex-col justify-center flex-shrink-0"};function jb(t,e,n,i,s,r){var c;const o=w2("comment"),l=w2("message"),L=w2("participant"),a=w2("occurrence");return S(),B("div",{"data-origin":t.origin,class:R2(["interaction creation sync text-center transform",{"right-to-left":t.rightToLeft,"-translate-x-full-minus-1":t.rightToLeft,highlight:r.isCurrent}]),onClick:e[0]||(e[0]=e5((...C)=>r.onClick&&r.onClick(...C),["stop"])),"data-signature":r.signature,style:y2({...t.borderWidth,width:r.interactionWidth+"px"})},[n.comment?(S(),T2(o,{key:0,commentObj:n.commentObj},null,8,["commentObj"])):d2("",!0),R("div",{ref:"messageContainer","data-type":"creation",class:R2(["message-container pointer-events-none flex items-center h-10 relative",{"flex-row-reverse":t.rightToLeft}]),"data-to":r.target},[j(l,{ref:"messageEl",class:"invocation w-full transform -translate-y-1/2 pointer-events-auto",context:r.creation,content:r.signature,rtl:t.rightToLeft,type:"creation",number:n.number,classNames:r.messageClassNames,textStyle:r.messageTextStyle},null,8,["context","content","rtl","number","classNames","textStyle"]),R("div",Gb,[j(L,{entity:{name:r.target}},null,8,["entity"])],512)],10,Vb),j(a,{context:r.creation,class:"pointer-events-auto",participant:r.target,number:n.number},null,8,["context","participant","number"]),r.assignee?(S(),T2(l,{key:1,class:"return transform -translate-y-full pointer-events-auto",context:r.creation.creationBody().assignment(),content:r.assignee,rtl:!t.rightToLeft,type:"return",number:`${n.number}.${(((c=r.creation.braceBlock())==null?void 0:c.block().stat().length)||0)+1}`,classNames:r.messageClassNames,textStyle:r.messageTextStyle},null,8,["context","content","rtl","number","classNames","textStyle"])):d2("",!0)],14,$b)}const qb=Y2(Hb,[["render",jb],["__scopeId","data-v-2f017e29"]]),Kb={class:"name text-left group px-px hover:text-skin-message-hover hover:bg-skin-message-hover relative min-h-[1em] w-full"},Yb={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500"},Xb={class:"label"},Qb={key:0},Jb={class:"assignee px-1"},eE=R("span",null,"=",-1),tE=R("svg",{class:"arrow text-skin-message-arrow",width:"30",height:"24"},[R("polyline",{class:"line stroke-current fill-none stroke-2",points:"0,2 28,2 28,15 14,15"}),R("polyline",{class:"head stroke-current fill-current stroke-2",points:"18,9 8,15 18,21"})],-1),nE=X2({__name:"SelfInvocation",props:{context:null,number:null,textStyle:null,classNames:null},setup(t){const e=t,{context:n}=L9(e),i=S1(),s=O(()=>i.state.numbering),r=C2(),o=O(()=>{const c=n==null?void 0:n.value.messageBody().func();return c?[c.start.start,c.stop.stop]:[-1,-1]}),l=O(()=>{let c=n==null?void 0:n.value.Assignment();return c?c.getText():""}),L=O(()=>n==null?void 0:n.value.SignatureText()),a=()=>{i.getters.onMessageClick(n,r.value)};return(c,C)=>(S(),B("div",{class:"self-invocation message self flex items-start flex-col",style:{"border-width":"0"},onClick:a,ref_key:"messageRef",ref:r},[R("label",Kb,[N(s)?(S(),B("div",Yb,K2(t.number),1)):d2("",!0),R("div",Xb,[N(l)?(S(),B("span",Qb,[R("span",Jb,K2(N(l)),1),eE])):d2("",!0),j(v7,{style:y2(t.textStyle),class:R2(t.classNames),labelText:N(L),labelPosition:N(o),isSelf:!0},null,8,["style","class","labelText","labelPosition"])])]),tE],512))}}),Vz="",iE={name:"interaction",props:["context","selfCallIndent","commentObj","number"],mixins:[W7,H7],computed:{...I3(["participants","distance2","cursor","onElementClick"]),hasComment(){var t;return((t=this.commentObj)==null?void 0:t.text)!==""},messageTextStyle(){var t;return(t=this.commentObj)==null?void 0:t.messageStyle},messageClassNames(){var t;return(t=this.commentObj)==null?void 0:t.messageClassNames},message:function(){var t;return(t=this.context)==null?void 0:t.message()},source:function(){var t;return((t=this.message)==null?void 0:t.From())||E1},target:function(){var t,e;return((e=(t=this.context)==null?void 0:t.message())==null?void 0:e.Owner())||E1},outOfBand:function(){return!!this.source&&this.source!==this.origin},assignee:function(){var e;let t=(e=this.message)==null?void 0:e.Assignment();return t?t.getText():""},signature:function(){var t;return(t=this.message)==null?void 0:t.SignatureText()},translateX:function(){if(!this.rightToLeft&&!this.outOfBand)return 0;const t=this.rightToLeft?this.target:this.source,e=this.distance2(this.origin,t),n=this.selfCallIndent||0;return e-n},isCurrent:function(){var t;return(t=this.message)==null?void 0:t.isCurrent(this.cursor)},showStarter(){var t;return((t=this.participants.Starter())==null?void 0:t.name)!==E1},isRootBlock(){return this.target===E1},passOnOffset:function(){return this.isSelf&&!this.isRootBlock?(this.selfCallIndent||0)+7:0},interactionWidth:function(){if(this.context&&this.isSelf)return 0;let t=this.outOfBand?0:this.selfCallIndent||0;return Math.abs(this.distance2(this.source,this.target)-t)-1},isSelf:function(){return!this.target||this.target===this.source}},methods:{onClick(){this.onElementClick(y0.from(this.context))}},components:{Message:v5,SelfInvocation:nE,Comment:F5,Occurrence:Pa}},sE=["data-origin","data-to","data-source","data-target","data-signature"];function rE(t,e,n,i,s,r){var c;const o=w2("comment"),l=w2("self-invocation"),L=w2("message"),a=w2("occurrence");return S(),B("div",{class:R2(["interaction sync inline-block",{highlight:r.isCurrent,self:r.isSelf,"right-to-left":t.rightToLeft}]),onClick:e[0]||(e[0]=e5((...C)=>r.onClick&&r.onClick(...C),["stop"])),"data-origin":t.origin,"data-to":r.target,"data-source":r.source,"data-target":r.target,"data-type":"interaction","data-signature":r.signature,style:y2({...t.borderWidth,width:r.isSelf?void 0:r.interactionWidth+"px",transform:"translateX("+r.translateX+"px)"})},[r.showStarter&&r.isRootBlock||r.outOfBand?(S(),B("div",{key:0,class:R2(["occurrence source border-2",{"right-to-left":t.rightToLeft}])},null,2)):d2("",!0),r.hasComment?(S(),T2(o,{key:1,commentObj:n.commentObj},null,8,["commentObj"])):d2("",!0),r.isSelf?(S(),T2(l,{key:2,classNames:r.messageClassNames,textStyle:r.messageTextStyle,context:r.message,number:n.number},null,8,["classNames","textStyle","context","number"])):(S(),T2(L,{key:3,class:"text-center",classNames:r.messageClassNames,textStyle:r.messageTextStyle,context:r.message,content:r.signature,rtl:t.rightToLeft,type:"sync",number:n.number},null,8,["classNames","textStyle","context","content","rtl","number"])),j(a,{context:r.message,participant:r.target,selfCallIndent:r.passOnOffset,rtl:t.rightToLeft,number:n.number},null,8,["context","participant","selfCallIndent","rtl","number"]),r.assignee&&!r.isSelf?(S(),T2(L,{key:4,class:"return transform -translate-y-full",context:r.message,content:r.assignee,rtl:!t.rightToLeft,type:"return",number:`${n.number}.${(((c=r.message.braceBlock())==null?void 0:c.block().stat().length)||0)+1}`,classNames:r.messageClassNames,textStyle:r.messageTextStyle},null,8,["context","content","rtl","number","classNames","textStyle"])):d2("",!0)],14,sE)}const oE=Y2(iE,[["render",rE],["__scopeId","data-v-b039a189"]]),lE=t=>(_4("data-v-d34f9057"),t=t(),M4(),t),LE={class:"message self flex items-start flex-col",style:{"border-width":"0"}},aE={class:"name group px-px hover:text-skin-message-hover hover:bg-skin-message-hover min-h-[1em]"},cE={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500"},CE=lE(()=>R("svg",{class:"arrow text-skin-message-arrow",width:"34",height:"34"},[R("polyline",{class:"stroke-current stroke-2 fill-none",points:"0,2 28,2 28,25 1,25"}),R("polyline",{class:"head stroke-current stroke-2 fill-none",points:"11,19 1,25 11,31"})],-1)),uE=X2({__name:"SelfInvocation-async",props:{context:null,number:null,textStyle:null,classNames:null},setup(t){const e=t,{context:n}=L9(e),i=S1(),s=O(()=>n==null?void 0:n.value.content()),r=O(()=>i.state.numbering),o=O(()=>s.value?[s.value.start.start,s.value.stop.stop]:[-1,-1]),l=O(()=>{var L;return(L=s.value)==null?void 0:L.getFormattedText()});return(L,a)=>(S(),B("div",LE,[R("label",aE,[N(r)?(S(),B("div",cE,K2(t.number),1)):d2("",!0),j(v7,{style:y2(t.textStyle),class:R2(t.classNames),labelText:N(l),labelPosition:N(o),isAsync:!0,isSelf:!0},null,8,["style","class","labelText","labelPosition"])]),CE]))}}),Gz="",hE=Y2(uE,[["__scopeId","data-v-d34f9057"]]),jz="";function Dn(t){return t==null}const dE={name:"interaction-async",props:["context","comment","commentObj","selfCallIndent","number"],mixins:[W7,H7],computed:{...I3(["distance","cursor","onElementClick"]),asyncMessage:function(){var t;return(t=this.context)==null?void 0:t.asyncMessage()},outOfBand:function(){return this.source!==this.origin},interactionWidth:function(){var e;if(this.isSelf)return 10*(((e=this.signature)==null?void 0:e.length)||0)+100;let t=this.outOfBand?0:this.selfCallIndent||0;return Math.abs(this.distance(this.target,this.source)-t)-Pt},translateX:function(){if(!this.outOfBand&&!this.rightToLeft)return 0;let t=this.selfCallIndent||0;return this.rightToLeft?this.distance(this.target,this.origin)-t:this.distance(this.source,this.origin)-t},signature:function(){var t,e;return(e=(t=this.asyncMessage)==null?void 0:t.content())==null?void 0:e.getFormattedText()},providedSource:function(){var t;return(t=this.asyncMessage)==null?void 0:t.ProvidedFrom()},source:function(){return this.providedSource||this.origin},target:function(){var t,e;return(e=(t=this.asyncMessage)==null?void 0:t.to())==null?void 0:e.getFormattedText()},isCurrent:function(){const t=this.asyncMessage.start.start,e=this.asyncMessage.stop.stop+1;return Dn(this.cursor)||Dn(t)||Dn(e)?!1:this.cursor>=t&&this.cursor<=e},isSelf:function(){return this.source===this.target},messageTextStyle(){var t;return(t=this.commentObj)==null?void 0:t.messageStyle},messageClassNames(){var t;return(t=this.commentObj)==null?void 0:t.messageClassNames}},methods:{onClick(){this.onElementClick(y0.from(this.context))}},components:{Comment:F5,SelfInvocationAsync:hE,Message:v5}},fE=["data-origin","data-out-of-band","data-signature"];function gE(t,e,n,i,s,r){const o=w2("comment"),l=w2("self-invocation-async"),L=w2("message");return S(),B("div",{"data-origin":t.origin,"data-out-of-band":r.outOfBand,class:R2(["interaction async",{"left-to-right":!t.rightToLeft,"right-to-left":t.rightToLeft,highlight:r.isCurrent,"self-invocation":r.isSelf}]),onClick:e[0]||(e[0]=e5((...a)=>r.onClick&&r.onClick(...a),["stop"])),"data-signature":r.signature,style:y2({...t.borderWidth,width:r.interactionWidth+"px",transform:"translateX("+r.translateX+"px)"})},[n.comment?(S(),T2(o,{key:0,commentObj:n.commentObj},null,8,["commentObj"])):d2("",!0),r.isSelf?(S(),T2(l,{key:1,classNames:r.messageClassNames,textStyle:r.messageTextStyle,context:r.asyncMessage,number:n.number},null,8,["classNames","textStyle","context","number"])):(S(),T2(L,{key:2,classNames:r.messageClassNames,textStyle:r.messageTextStyle,context:r.asyncMessage,content:r.signature,rtl:t.rightToLeft,type:"async",number:n.number},null,8,["classNames","textStyle","context","content","rtl","number"]))],14,fE)}const pE=Y2(dE,[["render",gE],["__scopeId","data-v-4f3cc040"]]),qz="",mE={components:{Icon:q4},props:["label","collapsed"],emits:["click"]},wE={class:"collapsible-header"},xE={class:"mb-0"};function vE(t,e,n,i,s,r){const o=w2("Icon");return S(),B("div",wE,[R("label",xE,K2(n.label),1),n.collapsed?(S(),T2(o,{key:1,name:"collapse-unexpanded","icon-class":"w-4 h-4 cursor-pointer",onIconClick:e[1]||(e[1]=l=>t.$emit("click",l))})):(S(),T2(o,{key:0,name:"collapse-expanded","icon-class":`w-4 h-4 collapse-button cursor-pointer ${n.collapsed?"":"expanded"}`,onIconClick:e[0]||(e[0]=l=>t.$emit("click",l))},null,8,["icon-class"]))])}const _E=Y2(mE,[["render",vE],["__scopeId","data-v-048a5186"]]),e9={props:["origin"],computed:{...I3(["coordinates"]),leftParticipant:function(){const t=this.coordinates.orderedParticipantNames(),e=x7(this.context);return t.find(n=>e.includes(n))},border:function(){const t=this.coordinates.orderedParticipantNames(),n=new jt(t).getFrame(this.context);return Kt(n)},offsetX:function(){let t=this.coordinates.half(this.leftParticipant);return console.debug(`left participant: ${this.leftParticipant} ${t}`),(this.from?this.coordinates.distance(this.leftParticipant,this.from):0)+this.border.left+t},fragmentStyle:function(){return{transform:"translateX("+(this.offsetX+1)*-1+"px)",width:rL(this.context,this.coordinates)+"px",minWidth:Al+"px"}}},data:function(){return{collapsed:!1}},methods:{toggle(){this.collapsed=!this.collapsed,g7.emit("participant_set_top")}},components:{CollapseButton:_E},watch:{context(){this.collapsed&&(this.collapsed=!1)}}},ME=t=>{const e={loop:"FragmentLoop",alt:"FragmentAlt",par:"FragmentPar",opt:"FragmentOpt",section:"FragmentSection",critical:"FragmentCritical",tcf:"FragmentTryCatchFinally",creation:"Creation",message:"Interaction",asyncMessage:"InteractionAsync",divider:"Divider",ret:"Return"},n=Object.keys(e).find(i=>t[i]()!==null)||"";return e[n]},N5=t=>t&&t.stat()?t.stat().filter(e=>ME(e)!=="Divider").length:0,Ba=(t,e)=>{if(t){const n=t.split(".");return n[n.length-1]=Number(n[n.length-1])+e,n.join(".")}else return String(e)},yE=["contenteditable"],za=X2({__name:"ConditionLabel",props:{condition:null},setup(t){const e=t,n=/\b(\w+)\s*==\s*(\w+)\b/g,{condition:i}=L9(e),s=S1(),r=O(()=>s.state.mode),o=O(()=>s.getters.code),l=O(()=>s.getters.onContentChange||(()=>{})),L=O(()=>{var v,p;return(p=(v=i==null?void 0:i.value)==null?void 0:v.getFormattedText())!=null?p:""});function a(v){s.dispatch("updateCode",{code:v}),l.value(v)}function c(v){var Z,E,k,b,V;v.preventDefault(),v.stopPropagation();const p=v.target;if(!(p instanceof HTMLElement))return;let g=(Z=p.innerText.trim())!=null?Z:"";if(g===""){p.innerText=L.value;return}w5.test(g)&&!n.test(g)&&(g=g.replace(/"/g,""),g=`"${g}"`);const[m,_]=[(k=(E=i.value)==null?void 0:E.start)==null?void 0:k.start,(V=(b=i.value)==null?void 0:b.stop)==null?void 0:V.stop];if(m===-1||_===-1){console.warn("labelPosition is not set");return}a(o.value.slice(0,m)+g+o.value.slice(_+1))}const{editing:C,handleDblClick:u,handleBlur:h,handleKeydown:f,handleKeyup:w}=w7(c);return(v,p)=>(S(),B("label",{title:"Double click to edit",class:R2(["bg-skin-frame/[0.66] condition px-1 cursor-text hover:text-skin-message-hover hover:bg-skin-message-hover",{"py-1 px-2 ml-1 cursor-text":N(C)}]),contenteditable:N(C)&&N(r)===N(e3).Dynamic,onDblclick:p[0]||(p[0]=(...g)=>N(u)&&N(u)(...g)),onBlur:p[1]||(p[1]=(...g)=>N(h)&&N(h)(...g)),onKeyup:p[2]||(p[2]=(...g)=>N(w)&&N(w)(...g)),onKeydown:p[3]||(p[3]=(...g)=>N(f)&&N(f)(...g))},K2(N(C)?N(L):`[${N(L)}]`),43,yE))}}),Kz="",RE={name:"fragment-alt",props:["context","comment","selfCallIndent","commentObj","number"],mixins:[e9],components:{ConditionLabel:za},setup(t){const e=S1(),n=O(()=>e.state.numbering),i=O(()=>t.origin),s=O(()=>t.context.alt()),r=O(()=>{var u;return(u=s.value)==null?void 0:u.ifBlock()}),o=O(()=>{var u;return(u=s.value)==null?void 0:u.elseIfBlock()}),l=O(()=>{var u,h,f;return(f=(h=(u=s.value)==null?void 0:u.elseBlock())==null?void 0:h.braceBlock())==null?void 0:f.block()}),L=O(()=>{var u,h,f;return(f=(h=(u=s.value)==null?void 0:u.ifBlock())==null?void 0:h.braceBlock())==null?void 0:f.block()}),a=O(()=>{var h;const u=[N5(L.value)];return(h=s.value)!=null&&h.elseIfBlock()&&s.value.elseIfBlock().forEach(f=>{u.push(u[u.length-1]+N5(C(f)))}),u});function c(u){var h;return(h=u==null?void 0:u.parExpr())==null?void 0:h.condition()}function C(u){var h;return(h=u==null?void 0:u.braceBlock())==null?void 0:h.block()}return{numbering:n,from:i,alt:s,blockInIfBlock:L,ifBlock:r,elseIfBlocks:o,elseBlock:l,blockLengthAcc:a,conditionFromIfElseBlock:c,blockInElseIfBlock:C,increaseNumber:Ba,blockLength:N5}}},Ua=t=>(_4("data-v-4eee941d"),t=t(),M4(),t),AE=["data-origin","data-from","data-left-participant","data-frame-padding-left","data-frame-padding-right"],kE={class:"segment"},ZE={class:"header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t relative"},TE={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},SE={class:"name font-semibold p-1 border-b"},bE={class:"p-0"},EE={class:"segment"},IE={class:"text-skin-fragment flex"},OE=Ua(()=>R("label",{class:"else-if hidden"},"else if",-1)),FE={key:0,class:"segment mt-2 border-t border-solid"},NE=Ua(()=>R("div",{class:"text-skin-fragment"},[R("label",{class:"p-1"},"[else]")],-1));function DE(t,e,n,i,s,r){const o=w2("comment"),l=w2("collapse-button"),L=w2("ConditionLabel"),a=w2("block");return S(),B("div",{"data-origin":t.origin,"data-from":i.from,"data-left-participant":t.leftParticipant,"data-frame-padding-left":t.border.left,"data-frame-padding-right":t.border.right,class:"fragment alt border-skin-fragment rounded",style:y2(t.fragmentStyle)},[R("div",kE,[n.commentObj.text?(S(),T2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):d2("",!0),R("div",ZE,[i.numbering?(S(),B("div",TE,K2(n.number),1)):d2("",!0),R("div",SE,[R("label",bE,[j(l,{label:"Alt",collapsed:t.collapsed,onClick:this.toggle,style:y2(n.commentObj.messageStyle),class:R2(n.commentObj.messageClassNames)},null,8,["collapsed","onClick","style","class"])])])])]),R("div",{class:R2({hidden:t.collapsed})},[R("div",EE,[R("div",IE,[j(L,{condition:i.conditionFromIfElseBlock(i.ifBlock)},null,8,["condition"])]),i.blockInIfBlock?(S(),T2(a,{key:0,origin:t.origin,style:y2({paddingLeft:`${t.offsetX}px`}),context:i.blockInIfBlock,selfCallIndent:n.selfCallIndent,number:`${n.number}.1`,incremental:""},null,8,["origin","style","context","selfCallIndent","number"])):d2("",!0)]),(S(!0),B(z2,null,z3(i.elseIfBlocks,(c,C)=>(S(),B("div",{key:C+500,class:"segment mt-2 border-t border-solid"},[(S(),B("div",{class:"text-skin-fragment",key:C+1e3},[OE,j(L,{condition:i.conditionFromIfElseBlock(c)},null,8,["condition"])])),(S(),T2(a,{origin:t.origin,style:y2({paddingLeft:`${t.offsetX}px`}),context:i.blockInElseIfBlock(c),selfCallIndent:n.selfCallIndent,key:C+2e3,number:`${n.number}.${i.blockLengthAcc[C]+1}`,incremental:""},null,8,["origin","style","context","selfCallIndent","number"]))]))),128)),i.elseBlock?(S(),B("div",FE,[NE,j(a,{origin:t.origin,style:y2({paddingLeft:`${t.offsetX}px`}),context:i.elseBlock,selfCallIndent:n.selfCallIndent,number:`${n.number}.${i.blockLengthAcc[i.blockLengthAcc.length-1]+1}`,incremental:""},null,8,["origin","style","context","selfCallIndent","number"])])):d2("",!0)],2)],12,AE)}const PE=Y2(RE,[["render",DE],["__scopeId","data-v-4eee941d"]]),Yz="",Xz="",BE={name:"fragment-par",props:["context","comment","commentObj","selfCallIndent","number"],mixins:[e9],computed:{...y9(["numbering"]),from:function(){return this.context.Origin()},par:function(){return this.context.par()}}},zE={class:"header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t relative"},UE={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},WE={class:"name font-semibold p-1 border-b"};function HE(t,e,n,i,s,r){const o=w2("comment"),l=w2("collapse-button"),L=w2("block");return S(),B("div",{class:"fragment par border-skin-fragment rounded",style:y2(t.fragmentStyle)},[n.commentObj.text?(S(),T2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):d2("",!0),R("div",zE,[t.numbering?(S(),B("div",UE,K2(n.number),1)):d2("",!0),R("div",WE,[j(l,{label:"Par",collapsed:t.collapsed,onClick:this.toggle,style:y2(n.commentObj.messageStyle),class:R2(n.commentObj.messageClassNames)},null,8,["collapsed","onClick","style","class"])])]),r.par.braceBlock()?(S(),T2(L,{key:1,origin:t.origin,class:R2({hidden:t.collapsed}),style:y2({paddingLeft:`${t.offsetX}px`}),context:r.par.braceBlock().block(),selfCallIndent:n.selfCallIndent,number:n.number},null,8,["origin","class","style","context","selfCallIndent","number"])):d2("",!0)],4)}const $E=Y2(BE,[["render",HE],["__scopeId","data-v-50358e5f"]]),Qz="",VE={name:"fragment-loop",props:["context","comment","commentObj","selfCallIndent","number"],mixins:[e9],components:{ConditionLabel:za},setup(t){const e=S1(),n=O(()=>e.state.numbering),i=O(()=>t.context.Origin()),s=O(()=>t.context.loop()),r=O(()=>{var o,l;return(l=(o=s.value)==null?void 0:o.braceBlock())==null?void 0:l.block()});return{numbering:n,from:i,loop:s,blockInLoop:r,getConditionFromBlock:()=>{var o,l;return(l=(o=s.value)==null?void 0:o.parExpr())==null?void 0:l.condition()}}}},GE={class:"header text-skin-fragment-header bg-skin-fragment-header leading-4 relative"},jE={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},qE={class:"name font-semibold p-1 border-b"},KE={class:"segment"},YE={class:"text-skin-fragment"};function XE(t,e,n,i,s,r){const o=w2("comment"),l=w2("collapse-button"),L=w2("ConditionLabel"),a=w2("block");return S(),B("div",{class:"fragment loop border-skin-fragment rounded",style:y2(t.fragmentStyle)},[n.commentObj.text?(S(),T2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):d2("",!0),R("div",GE,[i.numbering?(S(),B("div",jE,K2(n.number),1)):d2("",!0),R("div",qE,[j(l,{label:"Loop",collapsed:t.collapsed,onClick:this.toggle,style:y2(n.commentObj.messageStyle),class:R2(n.commentObj.messageClassNames)},null,8,["collapsed","onClick","style","class"])])]),R("div",{class:R2({hidden:t.collapsed})},[R("div",KE,[R("div",YE,[j(L,{condition:i.getConditionFromBlock(i.blockInLoop)},null,8,["condition"])]),j(a,{origin:t.origin,style:y2({paddingLeft:`${t.offsetX}px`}),context:i.blockInLoop,selfCallIndent:n.selfCallIndent,number:n.number},null,8,["origin","style","context","selfCallIndent","number"])])],2)],4)}const QE=Y2(VE,[["render",XE],["__scopeId","data-v-e93eca66"]]),Jz="",JE={name:"fragment-opt",props:["context","comment","commentObj","selfCallIndent","number"],mixins:[e9],computed:{...y9(["numbering"]),from:function(){return this.context.Origin()},opt:function(){return this.context.opt()}}},eI={class:"header bg-skin-fragment-header text-skin-fragment-header leading-4 relative"},tI={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},nI={class:"name font-semibold p-1 border-b"};function iI(t,e,n,i,s,r){const o=w2("comment"),l=w2("collapse-button"),L=w2("block");return S(),B("div",{class:"fragment opt border-skin-fragment rounded",style:y2(t.fragmentStyle)},[n.commentObj.text?(S(),T2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):d2("",!0),R("div",eI,[t.numbering?(S(),B("div",tI,K2(n.number),1)):d2("",!0),R("div",nI,[j(l,{label:"Opt",collapsed:t.collapsed,onClick:this.toggle,style:y2(n.commentObj.textStyle),class:R2(n.commentObj.classNames)},null,8,["collapsed","onClick","style","class"])])]),j(L,{origin:t.origin,class:R2({hidden:t.collapsed}),style:y2({paddingLeft:`${t.offsetX}px`}),context:r.opt.braceBlock().block(),selfCallIndent:n.selfCallIndent,number:n.number},null,8,["origin","class","style","context","selfCallIndent","number"])],4)}const sI=Y2(JE,[["render",iI],["__scopeId","data-v-29a3c65d"]]);var rI=typeof N1=="object"&&N1&&N1.Object===Object&&N1,oI=rI,lI=oI,LI=typeof self=="object"&&self&&self.Object===Object&&self,aI=lI||LI||Function("return this")(),cI=aI,CI=cI,uI=CI.Symbol,Pn=uI;function hI(t,e){for(var n=-1,i=t==null?0:t.length,s=Array(i);++n<i;)s[n]=e(t[n],n,t);return s}var dI=hI,fI=Array.isArray,gI=fI,Wa=Pn,Ha=Object.prototype,pI=Ha.hasOwnProperty,mI=Ha.toString,D5=Wa?Wa.toStringTag:void 0;function wI(t){var e=pI.call(t,D5),n=t[D5];try{t[D5]=void 0;var i=!0}catch{}var s=mI.call(t);return i&&(e?t[D5]=n:delete t[D5]),s}var xI=wI,vI=Object.prototype,_I=vI.toString;function MI(t){return _I.call(t)}var yI=MI,$a=Pn,RI=xI,AI=yI,kI="[object Null]",ZI="[object Undefined]",Va=$a?$a.toStringTag:void 0;function TI(t){return t==null?t===void 0?ZI:kI:Va&&Va in Object(t)?RI(t):AI(t)}var SI=TI;function bI(t){return t!=null&&typeof t=="object"}var EI=bI,II=SI,OI=EI,FI="[object Symbol]";function NI(t){return typeof t=="symbol"||OI(t)&&II(t)==FI}var DI=NI,Ga=Pn,PI=dI,BI=gI,zI=DI,UI=1/0,ja=Ga?Ga.prototype:void 0,qa=ja?ja.toString:void 0;function Ka(t){if(typeof t=="string")return t;if(BI(t))return PI(t,Ka)+"";if(zI(t))return qa?qa.call(t):"";var e=t+"";return e=="0"&&1/t==-UI?"-0":e}var WI=Ka,HI=WI;function $I(t){return t==null?"":HI(t)}var Ya=$I;function VI(t,e,n){var i=-1,s=t.length;e<0&&(e=-e>s?0:s+e),n=n>s?s:n,n<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++i<s;)r[i]=t[i+e];return r}var GI=VI,jI=GI;function qI(t,e,n){var i=t.length;return n=n===void 0?i:n,!e&&n>=i?t:jI(t,e,n)}var KI=qI,YI="\\ud800-\\udfff",XI="\\u0300-\\u036f",QI="\\ufe20-\\ufe2f",JI="\\u20d0-\\u20ff",eO=XI+QI+JI,tO="\\ufe0e\\ufe0f",nO="\\u200d",iO=RegExp("["+nO+YI+eO+tO+"]");function sO(t){return iO.test(t)}var Xa=sO;function rO(t){return t.split("")}var oO=rO,Qa="\\ud800-\\udfff",lO="\\u0300-\\u036f",LO="\\ufe20-\\ufe2f",aO="\\u20d0-\\u20ff",cO=lO+LO+aO,CO="\\ufe0e\\ufe0f",uO="["+Qa+"]",Bn="["+cO+"]",zn="\\ud83c[\\udffb-\\udfff]",hO="(?:"+Bn+"|"+zn+")",Ja="[^"+Qa+"]",ec="(?:\\ud83c[\\udde6-\\uddff]){2}",tc="[\\ud800-\\udbff][\\udc00-\\udfff]",dO="\\u200d",nc=hO+"?",ic="["+CO+"]?",fO="(?:"+dO+"(?:"+[Ja,ec,tc].join("|")+")"+ic+nc+")*",gO=ic+nc+fO,pO="(?:"+[Ja+Bn+"?",Bn,ec,tc,uO].join("|")+")",mO=RegExp(zn+"(?="+zn+")|"+pO+gO,"g");function wO(t){return t.match(mO)||[]}var xO=wO,vO=oO,_O=Xa,MO=xO;function yO(t){return _O(t)?MO(t):vO(t)}var RO=yO,AO=KI,kO=Xa,ZO=RO,TO=Ya;function SO(t){return function(e){e=TO(e);var n=kO(e)?ZO(e):void 0,i=n?n[0]:e.charAt(0),s=n?AO(n,1).join(""):e.slice(1);return i[t]()+s}}var bO=SO,EO=bO,IO=EO("toUpperCase"),OO=IO,FO=Ya,NO=OO;function DO(t){return NO(FO(t).toLowerCase())}var PO=DO;const eU="",BO={name:"fragment-section",props:["context","comment","selfCallIndent","commentObj","number"],mixins:[e9],setup(t){const e=S1(),n=O(()=>e.state.numbering),i=O(()=>t.context.Origin()),s=O(()=>t.context.section()),r=O(()=>{var a;return(a=s.value)==null?void 0:a.braceBlock()}),o=O(()=>{var a,c;return(c=(a=s.value)==null?void 0:a.atom())==null?void 0:c.getFormattedText()}),l=O(()=>{var a;return(a=r.value)==null?void 0:a.block()}),L=O(()=>{var a;return(a=o.value)!=null?a:PO(s.value.SECTION())});return{numbering:n,from:i,label:L,braceBlock:r,blockInSection:l}}},zO=t=>(_4("data-v-9c4c877f"),t=t(),M4(),t),UO=["data-frame-padding-left","data-frame-padding-right","data-left-participant"],WO={class:"segment"},HO={class:"header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t relative"},$O={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},VO={class:"name font-semibold p-1 border-b"},GO={class:"p-0"},jO={class:"segment"},qO=zO(()=>R("div",{class:"text-skin-fragment flex"},null,-1));function KO(t,e,n,i,s,r){const o=w2("comment"),l=w2("collapse-button"),L=w2("block");return S(),B("div",{class:"fragment section border-skin-fragment rounded",style:y2(t.fragmentStyle),"data-frame-padding-left":t.border.left,"data-frame-padding-right":t.border.right,"data-left-participant":t.leftParticipant},[R("div",WO,[n.commentObj.text?(S(),T2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):d2("",!0),R("div",HO,[i.numbering?(S(),B("div",$O,K2(n.number),1)):d2("",!0),R("div",VO,[R("label",GO,[j(l,{label:i.label,collapsed:t.collapsed,onClick:this.toggle,style:y2(n.commentObj.messageStyle),class:R2(n.commentObj.messageClassNames)},null,8,["label","collapsed","onClick","style","class"])])])])]),R("div",{class:R2({hidden:t.collapsed})},[R("div",jO,[qO,i.blockInSection?(S(),T2(L,{key:0,origin:t.origin,style:y2({paddingLeft:`${t.offsetX}px`}),context:i.blockInSection,selfCallIndent:n.selfCallIndent,number:n.number},null,8,["origin","style","context","selfCallIndent","number"])):d2("",!0)])],2)],12,UO)}const YO=Y2(BO,[["render",KO],["__scopeId","data-v-9c4c877f"]]),tU="",XO={name:"fragment-section",props:["context","comment","selfCallIndent","commentObj","number"],mixins:[e9],setup(t){const e=S1(),n=O(()=>e.state.numbering),i=O(()=>t.context.Origin()),s=O(()=>t.context.critical()),r=O(()=>{var a;return(a=s.value)==null?void 0:a.braceBlock()}),o=O(()=>{var a,c;return(c=(a=s.value)==null?void 0:a.atom())==null?void 0:c.getFormattedText()}),l=O(()=>{var a;return(a=r.value)==null?void 0:a.block()}),L=O(()=>o.value?`Critical:${o.value}`:"Critical");return{numbering:n,from:i,label:L,braceBlock:r,blockInCritical:l}}},QO=t=>(_4("data-v-0d0bf5a1"),t=t(),M4(),t),JO={class:"segment"},eF={class:"header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t relative"},tF={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},nF={class:"name font-semibold p-1 border-b"},iF={class:"p-0"},sF={class:"segment"},rF=QO(()=>R("div",{class:"text-skin-fragment flex"},null,-1));function oF(t,e,n,i,s,r){const o=w2("comment"),l=w2("collapse-button"),L=w2("block");return S(),B("div",{class:"fragment critical border-skin-fragment rounded relative",style:y2(t.fragmentStyle)},[R("div",JO,[n.commentObj.text?(S(),T2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):d2("",!0),R("div",eF,[i.numbering?(S(),B("div",tF,K2(n.number),1)):d2("",!0),R("div",nF,[R("label",iF,[j(l,{label:i.label,collapsed:t.collapsed,onClick:this.toggle,style:y2(n.commentObj.messageStyle),class:R2(n.commentObj.messageClassNames)},null,8,["label","collapsed","onClick","style","class"])])])])]),R("div",{class:R2({hidden:t.collapsed})},[R("div",sF,[rF,i.blockInCritical?(S(),T2(L,{key:0,origin:t.origin,style:y2({paddingLeft:`${t.offsetX}px`}),context:i.blockInCritical,selfCallIndent:n.selfCallIndent,number:n.number},null,8,["origin","style","context","selfCallIndent","number"])):d2("",!0)])],2)],4)}const lF=Y2(XO,[["render",oF],["__scopeId","data-v-0d0bf5a1"]]),nU="",LF={name:"fragment-section",props:["context","comment","selfCallIndent","commentObj","number"],components:{MessageLabel:v7},mixins:[e9],setup(t){const e=S1(),n=O(()=>e.state.numbering),i=O(()=>t.context.Origin()),s=O(()=>t.context.ref().Content()),r=O(()=>{var l;return(l=s.value)==null?void 0:l.getFormattedText()}),o=O(()=>{var l,L;return[(l=s.value)==null?void 0:l.start.start,(L=s.value)==null?void 0:L.stop.stop]});return{store:e,from:i,numbering:n,contentLabel:r,contentPosition:o}}},aF=t=>(_4("data-v-3ec977d9"),t=t(),M4(),t),cF={class:"header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t absolute top-0 left-0"},CF={key:0,class:"absolute right-full top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},uF={class:"text-skin-fragment relative w-9 h-8 -top-[1px] -left-[1px]"},hF=aF(()=>R("div",{class:"polygon-border absolute inset-0"},null,-1)),dF={class:"polygon-content bg-skin-frame text-skin-fragment-header absolute inset-[1px] flex flex-col items-center justify-center"};function fF(t,e,n,i,s,r){const o=w2("comment"),l=w2("MessageLabel");return S(),B("div",{class:"fragment bg-skin-frame border-skin-fragment relative rounded min-w-[140px] w-max py-4 px-2 flex justify-center items-center flex-col",style:y2(t.fragmentStyle)},[R("div",cF,[i.numbering?(S(),B("div",CF,K2(n.number),1)):d2("",!0),n.commentObj.text?(S(),T2(o,{key:1,class:"absolute -top-4 left-0",comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):d2("",!0),R("div",uF,[hF,R("div",dF,[R("span",{class:R2(["flex items-center justify-center font-semibold",n.commentObj.messageClassNames]),style:y2(n.commentObj.messageStyle)}," Ref ",6)])])]),j(l,{class:"text-skin-title mt-3 mb-2",labelText:i.contentLabel,labelPosition:i.contentPosition},null,8,["labelText","labelPosition"])],4)}const gF=Y2(LF,[["render",fF],["__scopeId","data-v-3ec977d9"]]),iU="",pF={name:"fragment-tcf",props:["context","comment","commentObj","selfCallIndent","number"],mixins:[e9],computed:{...y9(["numbering"]),from:function(){return this.context.Origin()},tcf:function(){return this.context.tcf()},blockInTryBlock:function(){var t,e,n;return(n=(e=(t=this.tcf)==null?void 0:t.tryBlock())==null?void 0:e.braceBlock())==null?void 0:n.block()},finallyBlock:function(){var t,e,n;return(n=(e=(t=this.tcf)==null?void 0:t.finallyBlock())==null?void 0:e.braceBlock())==null?void 0:n.block()},blockLengthAcc(){var e;const t=[N5(this.blockInTryBlock)];return(e=this.tcf)!=null&&e.catchBlock()&&this.tcf.catchBlock().forEach(n=>{t.push(t[t.length-1]+N5(this.blockInCatchBlock(n)))}),t}},methods:{exception(t){var e,n;return(n=(e=t==null?void 0:t.invocation())==null?void 0:e.parameters())==null?void 0:n.getFormattedText()},blockInCatchBlock(t){var e;return(e=t==null?void 0:t.braceBlock())==null?void 0:e.block()}}},sc=t=>(_4("data-v-4e79f0f7"),t=t(),M4(),t),mF={class:"segment"},wF={class:"header bg-skin-fragment-header text-skin-fragment-header leading-4 rounded-t relative"},xF={key:0,class:"absolute right-[100%] top-0 pr-1 group-hover:hidden text-gray-500 font-thin leading-6"},vF={class:"name font-semibold p-1 border-b"},_F={class:"segment"},MF=sc(()=>R("label",{class:"keyword catch p-1"},"catch",-1)),yF={class:"exception p-1"},RF={key:0,class:"segment mt-2 border-t border-solid"},AF=sc(()=>R("div",{class:"header flex text-skin-fragment finally"},[R("label",{class:"keyword finally bg-skin-frame/[0.66] px-1 inline-block"},"finally")],-1));function kF(t,e,n,i,s,r){const o=w2("comment"),l=w2("collapse-button"),L=w2("block");return S(),B("div",{class:"fragment tcf border-skin-fragment rounded",style:y2(t.fragmentStyle)},[R("div",mF,[n.commentObj.text?(S(),T2(o,{key:0,comment:n.comment,commentObj:n.commentObj},null,8,["comment","commentObj"])):d2("",!0),R("div",wF,[t.numbering?(S(),B("div",xF,K2(n.number),1)):d2("",!0),R("div",vF,[j(l,{label:"Try",collapsed:t.collapsed,onClick:this.toggle,style:y2(n.commentObj.messageStyle),class:R2(n.commentObj.messageClassNames)},null,8,["collapsed","onClick","style","class"])])])]),R("div",{class:R2({hidden:t.collapsed})},[R("div",_F,[r.blockInTryBlock?(S(),T2(L,{key:0,origin:t.origin,style:y2({paddingLeft:`${t.offsetX}px`}),context:r.blockInTryBlock,selfCallIndent:n.selfCallIndent,number:`${n.number}.1`,incremental:""},null,8,["origin","style","context","selfCallIndent","number"])):d2("",!0)]),(S(!0),B(z2,null,z3(r.tcf.catchBlock(),(a,c)=>(S(),B("div",{key:c+500,class:"segment mt-2 border-t border-solid"},[(S(),B("div",{class:"header inline-block bg-skin-frame/[0.66]",key:c+1e3},[MF,R("label",yF,K2(r.exception(a)),1)])),(S(),T2(L,{origin:t.origin,style:y2({paddingLeft:`${t.offsetX}px`}),context:r.blockInCatchBlock(a),selfCallIndent:n.selfCallIndent,key:c+2e3,number:`${n.number}.${r.blockLengthAcc[c]+1}`,incremental:""},null,8,["origin","style","context","selfCallIndent","number"]))]))),128)),r.finallyBlock?(S(),B("div",RF,[AF,j(L,{origin:t.origin,style:y2({paddingLeft:`${t.offsetX}px`}),context:r.finallyBlock,selfCallIndent:n.selfCallIndent,number:`${n.number}.${r.blockLengthAcc[r.blockLengthAcc.length-1]+1}`,incremental:""},null,8,["origin","style","context","selfCallIndent","number"])])):d2("",!0)],2)],4)}const ZF=Y2(pF,[["render",kF],["__scopeId","data-v-4e79f0f7"]]),TF={name:"return",props:["context","comment","commentObj","number"],mixins:[W7,H7],computed:{...I3(["distance","cursor","onElementClick","participants"]),ret:function(){var t;return(t=this.context)==null?void 0:t.ret()},asyncMessage:function(){var t;return(t=this.ret)==null?void 0:t.asyncMessage()},width:function(){return this.isSelf?h7(this.signature,T9.MessageContent):Math.abs(this.distance(this.target,this.source))},left:function(){return this.rightToLeft?this.distance(this.target,this.origin):this.distance(this.source,this.origin)},signature:function(){var t,e,n,i,s;return((e=(t=this.asyncMessage)==null?void 0:t.content())==null?void 0:e.getFormattedText())||((s=(i=(n=this.context)==null?void 0:n.ret())==null?void 0:i.expr())==null?void 0:s.getFormattedText())},source:function(){var t,e;return((t=this.asyncMessage)==null?void 0:t.From())||((e=this.ret)==null?void 0:e.From())||E1},target:function(){var t,e,n,i;return((e=(t=this.asyncMessage)==null?void 0:t.to())==null?void 0:e.getFormattedText())||((i=(n=this.context)==null?void 0:n.ret())==null?void 0:i.ReturnTo())||E1},isCurrent:function(){return!1},isSelf:function(){return this.source===this.target},messageTextStyle(){var t;return(t=this.commentObj)==null?void 0:t.messageStyle},messageClassNames(){var t;return(t=this.commentObj)==null?void 0:t.messageClassNames},messageContext(){var t,e,n;return((t=this.asyncMessage)==null?void 0:t.content())||((n=(e=this.context)==null?void 0:e.ret())==null?void 0:n.expr())}},methods:{onClick(){this.onElementClick(y0.from(this.context))}},components:{Comment:F5,Message:v5}},SF=["data-signature","data-to","data-source","data-target"],bF={key:1,class:"flex items-center"},EF=R("svg",{class:"w-3 h-3 flex-shrink-0 fill-current m-1",viewBox:"0 0 512 512"},[R("path",{class:"cls-1",d:"M256 0C114.84 0 0 114.84 0 256s114.84 256 256 256 256-114.84 256-256S397.16 0 256 0Zm0 469.33c-117.63 0-213.33-95.7-213.33-213.33S138.37 42.67 256 42.67 469.33 138.37 469.33 256 373.63 469.33 256 469.33Z"}),R("path",{class:"cls-1",d:"M288 192h-87.16l27.58-27.58a21.33 21.33 0 1 0-30.17-30.17l-64 64a21.33 21.33 0 0 0 0 30.17l64 64a21.33 21.33 0 0 0 30.17-30.17l-27.58-27.58H288a53.33 53.33 0 0 1 0 106.67h-32a21.33 21.33 0 0 0 0 42.66h32a96 96 0 0 0 0-192Z"})],-1),IF={class:"name"};function OF(t,e,n,i,s,r){const o=w2("comment"),l=w2("Message");return S(),B("div",{class:R2(["interaction return relative",{"right-to-left":t.rightToLeft,"bare-source":t.bareSource,"bare-target":t.bareTarget,highlight:r.isCurrent}]),onClick:e[0]||(e[0]=e5((...L)=>r.onClick&&r.onClick(...L),["stop"])),"data-type":"return","data-signature":r.signature,"data-to":r.target,"data-source":r.source,"data-target":r.target,style:y2({...t.borderWidth,width:r.width+"px",left:r.left+"px"})},[n.comment?(S(),T2(o,{key:0,commentObj:n.commentObj},null,8,["commentObj"])):d2("",!0),r.isSelf?(S(),B("div",bF,[EF,R("span",IF,K2(r.signature),1)])):d2("",!0),r.isSelf?d2("",!0):(S(),T2(l,{key:2,classNames:r.messageClassNames,textStyle:r.messageTextStyle,context:r.messageContext,content:r.signature,rtl:t.rightToLeft,type:"return",number:n.number},null,8,["classNames","textStyle","context","content","rtl","number"]))],14,SF)}const FF=Y2(TF,[["render",OF]]),NF=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],DF=["italic","oblique"],PF=["bold","bolder","lighter"],BF=["underline","overline","line-through"],P5=t=>{const e={},n=[];return t.forEach(i=>{switch(!0){case NF.includes(i):e.color=i;break;case DF.includes(i):e.fontStyle=i;break;case PF.includes(i):e.fontWeight=i;break;case BF.includes(i):e.textDecoration=i;break;default:n.push(i)}}),{textStyle:e,classNames:n}},sU="",zF={name:"divider",props:["context","origin"],computed:{...I3(["participants","centerOf"]),width(){let t=this.participants.Names().pop();return this.centerOf(t)+10},centerOfOrigin(){return this.centerOf(this.origin)},note:function(){return this.context.divider().Note()},messageStyle(){if(this.note.trim().indexOf("[")===0&&this.note.indexOf("]")!==-1){const t=this.note.indexOf("["),e=this.note.indexOf("]"),[n,i]=[this.note.slice(t+1,e),this.note.slice(e+1)];return{style:P5(n.split(",").map(s=>s.trim())),note:i}}return{style:P5([]),note:this.note}}}},rc=t=>(_4("data-v-376dd717"),t=t(),M4(),t),UF=["data-origin"],WF=rc(()=>R("div",{class:"left bg-skin-divider"},null,-1)),HF=rc(()=>R("div",{class:"right bg-skin-divider"},null,-1));function $F(t,e,n,i,s,r){return S(),B("div",{class:"divider","data-origin":n.origin,style:y2({width:r.width+"px",transform:"translateX("+(-1*r.centerOfOrigin+10)+"px)"})},[WF,R("div",{class:R2(["name",r.messageStyle.style.classNames]),style:y2(r.messageStyle.style.textStyle)},K2(r.messageStyle.note),7),HF],12,UF)}const VF=Y2(zF,[["render",$F],["__scopeId","data-v-376dd717"]]);function GF(t){const e={"<>":new Set,"()":new Set,"[]":new Set},n=/<([^>]*)>|\(([^)]*)\)|\[([^\]]*)\]|([^<>()[\]\s]+)/g;let i,s;for(;i=n.exec(t);){if(i[4]){s!==void 0&&(s=i.index);break}s=i.index+i[0].length,i[1]&&i[1].split(",").forEach(r=>e["<>"].add(r.trim())),i[2]&&i[2].split(",").forEach(r=>e["()"].add(r.trim())),i[3]&&i[3].split(",").forEach(r=>e["[]"].add(r.trim()))}return[Array.from(e["<>"]),Array.from(e["()"]),Array.from(e["[]"]),t.slice(s)]}class jF{constructor(e){s2(this,"text","");s2(this,"classNames",[]);s2(this,"textStyle",{});s2(this,"commentStyle",{});s2(this,"messageStyle",{});s2(this,"commentClassNames",[]);s2(this,"messageClassNames",[]);const n=e.slice(0,-1).split(`
|
|
3363
3363
|
`),i=n[n.length-1],[s,r,o,l]=GF(i),{textStyle:L,classNames:a}=P5(s),{textStyle:c,classNames:C}=P5(r),{textStyle:u,classNames:h}=P5(o);this.text=(n.slice(0,n.length-1).join(`
|
|
3364
3364
|
`)+`
|
|
3365
|
-
`+l).trim(),this.textStyle={...u,...L,...c},this.classNames=[...h,...a,...C],this.commentStyle={...u,...L},this.messageStyle={...u,...c},this.commentClassNames=[...h,...a],this.messageClassNames=[...h,...C]}}const qF={name:"statement",props:["orgin","context","selfCallIndent","number","collapsed","inheritFromOccurrence"],computed:{comment:function(){return this.context.getComment()?this.context.getComment():""},commentObj:function(){return new jF(this.comment)},subStatement:function(){let t=this,e={loop:"FragmentLoop",alt:"FragmentAlt",par:"FragmentPar",opt:"FragmentOpt",section:"FragmentSection",critical:"FragmentCritical",tcf:"FragmentTryCatchFinally",ref:"FragmentRef",creation:"Creation",message:"Interaction",asyncMessage:"InteractionAsync",divider:"Divider",ret:"Return"},n=Object.keys(e).find(i=>t.context[i]()!==null);return e[n]},collapsedCheck:function(){return this.collapsed&&this.subStatement!=="Return"}},components:{Creation:qb,Interaction:oE,InteractionAsync:pE,FragmentAlt:PE,FragmentPar:$E,FragmentOpt:sI,FragmentSection:YO,FragmentCritical:lF,FragmentRef:gF,FragmentTryCatchFinally:ZF,FragmentLoop:QE,Divider:VF,Return:FF}};function KF(t,e,n,i,s,r){return S(),T2(w8(r.subStatement),{class:R2(["text-left text-sm text-skin-message",{hidden:r.collapsedCheck}]),origin:t.origin,context:n.context,comment:r.comment,commentObj:r.commentObj,selfCallIndent:n.selfCallIndent,number:n.number,inheritFromOccurrence:n.inheritFromOccurrence},null,8,["origin","class","context","comment","commentObj","selfCallIndent","number","inheritFromOccurrence"])}const YF=Y2(qF,[["render",KF]]),XF=["data-origin"],QF=["data-origin"],JF=X2({__name:"Block",props:{origin:null,context:null,selfCallIndent:null,number:null,incremental:{type:Boolean},collapsed:{type:Boolean},inheritFromOccurrence:{type:Boolean}},setup(t){const e=t,n=O(()=>{var s;return((s=e.context)==null?void 0:s.stat())||[]}),i=s=>e.number?e.incremental?Ba(e.number,s):`${e.number}.${s+1}`:String(s+1);return(s,r)=>(S(),B("div",{class:"block","data-origin":t.origin},[(S(!0),B(z2,null,z3(N(n),(o,l)=>(S(),B("div",{class:"statement-container mt-1","data-origin":t.origin,key:l},[j(YF,{origin:t.origin,inheritFromOccurrence:t.inheritFromOccurrence,context:o,collapsed:t.collapsed,selfCallIndent:t.selfCallIndent,number:i(l)},null,8,["origin","inheritFromOccurrence","context","collapsed","selfCallIndent","number"])],8,QF))),128))],8,XF))}});function eN(t){const e=Math.floor(t/1e3),n=Math.floor(t%1e3),i=Math.floor((t%1e3-n)*1e3);return e+"s "+n+"ms "+i+"\u03BCs"}const tN=(t,e)=>{const i=oc()-e;return console.debug(t+" cost: "+eN(i)),i},oc=()=>performance.now(),nN=G5.child({name:"core"});class iN{constructor(e,n=!1){s2(this,"el");s2(this,"_code");s2(this,"_theme");s2(this,"store");s2(this,"app");s2(this,"_currentTimeout");s2(this,"_lastRenderingCostMilliseconds",0);s2(this,"initialRender",!0);this.el=e,this.store=to(El()),this.app=i5(n?Yt:YL),this.app.component("Comment",F5),this.app.component("Block",JF),this.app.use(this.store),this.app.mount(this.el),this.addPortalRootElement()}addPortalRootElement(){const e=document.createElement("div");e.id="headlessui-portal-root",e.className="zenuml",e.append(document.createElement("div")),document.body.append(e)}async render(e,n){return this._currentTimeout&&(console.debug("rendering clearTimeout"),clearTimeout(this._currentTimeout)),nN.debug("rendering",e,n),this._code=e||this._code,this._theme=(n==null?void 0:n.theme)||this._theme,this.store.state.stickyOffset=(n==null?void 0:n.stickyOffset)||0,this.store.state.theme=this._theme||"default",this.store.state.enableScopedTheming=(n==null?void 0:n.enableScopedTheming)||!1,this.store.state.mode=(n==null?void 0:n.mode)||e3.Dynamic,this.initialRender?(this.initialRender=!1,await this.doRender(n)):this._currentTimeout=setTimeout(async()=>await this.doRender(n),this.calculateDebounceMilliseconds()),this}async doRender(e){console.debug("rendering start");const n=oc();yl(),this.store.commit("onContentChange",(e==null?void 0:e.onContentChange)||(()=>{})),this.store.commit("onThemeChange",(e==null?void 0:e.onThemeChange)||(()=>{})),this.store.commit("onEventEmit",(e==null?void 0:e.onEventEmit)||(()=>{})),(e==null?void 0:e.enableMultiTheme)!==void 0&&(this.store.state.enableMultiTheme=e==null?void 0:e.enableMultiTheme),await this.store.dispatch("updateCode",{code:this._code}),this._lastRenderingCostMilliseconds=tN("rendering end",n)}calculateDebounceMilliseconds(){let e=this._lastRenderingCostMilliseconds;return e>2e3&&(e=2e3),console.debug("rendering debounce: "+e+"ms"),e}get code(){return this._code}get theme(){return this._theme}async getPng(){return this.el.children[0].__vue__.toPng()}}const sN={createApp:i5,createStore:to,Store:El,SeqDiagram:Yt,DiagramFrame:YL},rN={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","aria-hidden":"true",viewBox:"0 0 24 24"},oN=[R("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 18 6M6 6l12 12"},null,-1)];function lc(t,e){return S(),B("svg",rN,oN)}const lN=Object.freeze(Object.defineProperty({__proto__:null,render:lc,default:{render:lc}},Symbol.toStringTag,{value:"Module"})),LN={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round",viewBox:"0 0 24 24"},aN=[R("path",{d:"m14 10 7-7M20 10h-6V4M3 21l7-7M4 14h6v6"},null,-1)];function Lc(t,e){return S(),B("svg",LN,aN)}const cN=Object.freeze(Object.defineProperty({__proto__:null,render:Lc,default:{render:Lc}},Symbol.toStringTag,{value:"Module"})),CN={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},uN=[R("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"},[R("path",{d:"M3 17.3V21h3.7","data-name":"Right"}),R("path",{d:"m10 14-6.2 6.2M14 10l6.2-6.2"}),R("path",{d:"M21 6.7V3h-3.7","data-name":"Right"})],-1)];function ac(t,e){return S(),B("svg",CN,uN)}const hN=Object.freeze(Object.defineProperty({__proto__:null,render:ac,default:{render:ac}},Symbol.toStringTag,{value:"Module"})),dN={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},fN=[R("path",{d:"M6 3v12"},null,-1),R("circle",{cx:"18",cy:"6",r:"3"},null,-1),R("circle",{cx:"6",cy:"18",r:"3"},null,-1),R("path",{d:"M18 9a9 9 0 0 1-9 9"},null,-1)];function cc(t,e){return S(),B("svg",dN,fN)}const gN=Object.freeze(Object.defineProperty({__proto__:null,render:cc,default:{render:cc}},Symbol.toStringTag,{value:"Module"})),pN={xmlns:"http://www.w3.org/2000/svg",width:"30",height:"24",class:"arrow text-skin-message-arrow"},mN=[R("path",{d:"M0 2h28v13H14",class:"line stroke-current fill-none stroke-2"},null,-1),R("path",{d:"M18 9 8 15l10 6",class:"head stroke-current fill-current stroke-2"},null,-1)];function Cc(t,e){return S(),B("svg",pN,mN)}const wN=Object.freeze(Object.defineProperty({__proto__:null,render:Cc,default:{render:Cc}},Symbol.toStringTag,{value:"Module"})),xN={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"none",viewBox:"0 0 20 20"},vN=[R("circle",{cx:"10",cy:"10",r:"10",fill:"#000","fill-opacity":".1"},null,-1)];function uc(t,e){return S(),B("svg",xN,vN)}const _N=Object.freeze(Object.defineProperty({__proto__:null,render:uc,default:{render:uc}},Symbol.toStringTag,{value:"Module"})),MN={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 100 100"},yN=[R("path",{fill:"#000",d:"M21.886 32.09V67H17.66V36.523h-.204l-8.523 5.659v-4.296l8.727-5.795h4.227Zm11.662 35.126a2.338 2.338 0 0 1-1.714-.715 2.338 2.338 0 0 1-.715-1.714c0-.666.239-1.237.715-1.714a2.338 2.338 0 0 1 1.714-.715c.666 0 1.237.238 1.714.715.477.477.715 1.048.715 1.714 0 .44-.112.846-.337 1.214a2.52 2.52 0 0 1-.877.891c-.36.216-.765.324-1.215.324Zm8.24-.216v-2.557l9.603-10.511a66.703 66.703 0 0 0 2.784-3.21c.73-.919 1.269-1.78 1.62-2.586a6.26 6.26 0 0 0 .54-2.556c0-1.023-.247-1.909-.74-2.657-.482-.748-1.145-1.326-1.988-1.733-.843-.407-1.79-.61-2.841-.61-1.117 0-2.093.232-2.926.696a4.792 4.792 0 0 0-1.918 1.917c-.445.824-.667 1.79-.667 2.898h-3.353c0-1.705.393-3.2 1.18-4.489a8.192 8.192 0 0 1 3.21-3.011c1.363-.72 2.892-1.08 4.588-1.08 1.704 0 3.215.36 4.53 1.08 1.317.72 2.35 1.69 3.098 2.912.748 1.221 1.122 2.58 1.122 4.077 0 1.07-.195 2.116-.583 3.139-.379 1.013-1.041 2.145-1.988 3.395-.938 1.24-2.24 2.755-3.907 4.545l-6.534 6.989v.227h13.523V67H41.789Zm26.444.216a2.338 2.338 0 0 1-1.714-.715 2.338 2.338 0 0 1-.715-1.714c0-.666.238-1.237.715-1.714a2.338 2.338 0 0 1 1.714-.715c.666 0 1.237.238 1.714.715.477.477.715 1.048.715 1.714 0 .44-.113.846-.338 1.214a2.52 2.52 0 0 1-.877.891c-.36.216-.764.324-1.214.324Zm15.502.102c-1.5 0-2.837-.257-4.012-.772-1.166-.516-2.094-1.232-2.784-2.148-.682-.924-1.053-1.996-1.113-3.216h2.863c.06.75.318 1.398.773 1.943.454.538 1.05.954 1.784 1.25.735.296 1.55.443 2.443.443 1 0 1.887-.174 2.66-.522.772-.349 1.378-.834 1.817-1.455.44-.621.66-1.341.66-2.16 0-.855-.213-1.609-.637-2.26-.424-.66-1.045-1.175-1.863-1.546-.819-.371-1.819-.557-3-.557H81.46v-2.5h1.864c.924 0 1.734-.166 2.431-.5.705-.333 1.254-.803 1.648-1.409.402-.606.602-1.318.602-2.136 0-.788-.174-1.474-.522-2.057a3.575 3.575 0 0 0-1.478-1.364c-.628-.325-1.37-.488-2.227-.488-.803 0-1.56.147-2.273.443a4.234 4.234 0 0 0-1.727 1.261c-.447.546-.69 1.205-.727 1.977h-2.727c.045-1.22.412-2.287 1.102-3.204.69-.924 1.59-1.644 2.704-2.16 1.122-.514 2.353-.772 3.694-.772 1.439 0 2.674.292 3.704.875 1.03.576 1.822 1.337 2.375 2.284.553.947.83 1.97.83 3.068 0 1.311-.345 2.428-1.034 3.353-.682.924-1.61 1.564-2.785 1.92v.182c1.47.242 2.618.867 3.444 1.875.825 1 1.238 2.239 1.238 3.716 0 1.265-.344 2.401-1.034 3.409-.682 1-1.613 1.788-2.795 2.364-1.182.575-2.527.863-4.034.863Z"},null,-1),R("path",{fill:"#000",d:"M21.886 32.09h1v-1h-1v1Zm0 34.91v1h1v-1h-1Zm-4.227 0h-1v1h1v-1Zm0-30.477h1v-1h-1v1Zm-.204 0v-1h-.302l-.252.167.553.833Zm-8.523 5.659h-1v1.864l1.553-1.031-.553-.833Zm0-4.296-.553-.833-.447.297v.536h1Zm8.727-5.795v-1h-.302l-.251.167.553.833Zm3.227 0V67h2V32.09h-2Zm1 33.909H17.66v2h4.227v-2Zm-3.227 1V36.523h-2V67h2Zm-1-31.477h-.204v2h.204v-2Zm-.758.167L8.38 41.349l1.106 1.666 8.523-5.66L16.9 35.69Zm-6.97 6.492v-4.296h-2v4.296h2Zm-.446-3.463 8.727-5.795-1.106-1.666-8.727 5.795 1.106 1.666Zm8.174-5.628h4.227v-2H17.66v2ZM31.834 66.5l.708-.707-.708.707Zm0-3.428-.707-.707.707.707Zm3.428 0 .707-.707-.707.707Zm.378 2.928-.854-.52-.005.008-.004.007.863.505Zm-.877.891.514.858.006-.004-.52-.854Zm-1.215-.676a1.34 1.34 0 0 1-1.006-.422l-1.415 1.414a3.337 3.337 0 0 0 2.421 1.008v-2Zm-1.006-.422a1.34 1.34 0 0 1-.423-1.007h-2c0 .935.347 1.76 1.008 2.42l1.415-1.413Zm-.423-1.007c0-.397.13-.715.423-1.007l-1.415-1.414a3.337 3.337 0 0 0-1.008 2.42h2Zm.423-1.007a1.34 1.34 0 0 1 1.006-.422v-2c-.934 0-1.759.346-2.42 1.008l1.414 1.414Zm1.006-.422c.397 0 .715.13 1.007.422l1.414-1.414a3.337 3.337 0 0 0-2.42-1.008v2Zm1.007.422c.292.292.422.61.422 1.007h2c0-.935-.346-1.76-1.008-2.421l-1.414 1.414Zm.422 1.007c0 .261-.064.485-.19.694l1.707 1.041a3.288 3.288 0 0 0 .483-1.735h-2Zm-.2.71a1.52 1.52 0 0 1-.535.541l1.041 1.708c.509-.31.92-.726 1.22-1.24l-1.726-1.01Zm-.529.538a1.317 1.317 0 0 1-.7.18v2c.618 0 1.203-.15 1.73-.466l-1.03-1.714Zm7.54.965h-1v1h1v-1Zm0-2.557-.738-.674-.261.286v.388h1Zm9.603-10.511-.738-.675.738.675Zm2.784-3.21.78.625.003-.004-.783-.621Zm1.62-2.586-.915-.404-.003.005.917.4Zm-.2-5.213-.84.543.005.007.836-.55Zm-1.988-1.733.435-.9-.435.9Zm-5.767.086.483.875.003-.002-.486-.873Zm-1.918 1.917-.875-.483-.005.008.88.475Zm-.667 2.898v1h1v-1h-1Zm-3.353 0h-1v1h1v-1Zm1.18-4.489.853.521-.854-.52Zm3.21-3.011-.467-.885-.003.002.47.883Zm9.119 0 .48-.877-.48.877Zm3.096 2.912-.852.522.852-.522Zm.54 7.216-.935-.355-.002.005.937.35Zm-1.988 3.395-.797-.604h-.001l.798.604Zm-3.907 4.545.73.683.002-.001-.732-.682Zm-6.534 6.989-.73-.683-.27.288v.395h1Zm0 .227h-1v1h1v-1Zm13.523 0h1v-1h-1v1Zm0 3.125v1h1v-1h-1Zm-17.352 0v-2.557h-2V67h2Zm-.262-1.882 9.602-10.512-1.476-1.349L41.05 63.77l1.477 1.349Zm9.602-10.511a67.671 67.671 0 0 0 2.826-3.26l-1.56-1.251a65.769 65.769 0 0 1-2.742 3.16l1.476 1.351Zm2.83-3.264c.766-.965 1.358-1.901 1.752-2.808l-1.834-.798c-.306.704-.793 1.491-1.485 2.363l1.566 1.243Zm1.75-2.803a7.259 7.259 0 0 0 .625-2.96h-2c0 .75-.15 1.465-.454 2.152l1.83.809Zm.625-2.96c0-1.19-.289-2.273-.903-3.206l-1.67 1.1c.37.562.573 1.25.573 2.106h2Zm-.898-3.2a5.792 5.792 0 0 0-2.394-2.09l-.87 1.8c.686.332 1.205.79 1.583 1.376l1.68-1.085Zm-2.394-2.09c-.994-.48-2.093-.71-3.276-.71v2c.92 0 1.715.177 2.406.51l.87-1.8Zm-3.276-.71c-1.258 0-2.407.262-3.413.822l.973 1.747c.661-.368 1.463-.57 2.44-.57v-2Zm-3.41.82a5.791 5.791 0 0 0-2.31 2.31l1.752.966a3.792 3.792 0 0 1 1.525-1.525l-.966-1.751Zm-2.314 2.318c-.537.994-.787 2.13-.787 3.373h2c0-.973.194-1.77.547-2.422l-1.76-.951Zm.213 2.373h-3.353v2h3.353v-2Zm-2.353 1c0-1.545.355-2.856 1.033-3.968l-1.707-1.042c-.894 1.465-1.326 3.146-1.326 5.01h2Zm1.033-3.968a7.193 7.193 0 0 1 2.826-2.65l-.939-1.765a9.192 9.192 0 0 0-3.594 3.373l1.707 1.042Zm2.823-2.648c1.206-.636 2.573-.964 4.122-.964v-2c-1.842 0-3.534.393-5.055 1.195l.933 1.77Zm4.122-.964c1.56 0 2.901.328 4.051.957l.96-1.755c-1.483-.81-3.162-1.202-5.011-1.202v2Zm4.051.957c1.17.64 2.071 1.492 2.724 2.557l1.705-1.044c-.843-1.378-2.007-2.468-3.47-3.267l-.959 1.754Zm2.724 2.557c.647 1.057.975 2.234.975 3.555h2c0-1.672-.421-3.213-1.27-4.6l-1.705 1.045Zm.975 3.555c0 .946-.172 1.872-.518 2.784l1.87.71c.43-1.134.648-2.3.648-3.494h-2Zm-.52 2.789c-.333.891-.936 1.937-1.849 3.14l1.595 1.209c.981-1.296 1.704-2.514 2.128-3.65l-1.873-.7Zm-1.85 3.142c-.908 1.202-2.185 2.69-3.84 4.467l1.464 1.363c1.679-1.803 3.006-3.346 3.972-4.624l-1.595-1.206Zm-3.838 4.465-6.534 6.989 1.46 1.366 6.535-6.989-1.461-1.366Zm-6.804 7.672v.227h2v-.227h-2Zm1 1.227h13.523v-2H46.618v2Zm12.523-1V67h2v-3.125h-2Zm1 2.125H41.789v2H60.14v-2Zm6.377.5.707-.706-.707.707Zm0-3.427-.707-.707.707.707Zm3.428 0 .707-.707-.707.707Zm.377 2.928-.853-.52-.005.008-.005.007.864.505Zm-.877.891.515.858.006-.004-.52-.854Zm-1.214-.676a1.34 1.34 0 0 1-1.007-.422l-1.414 1.414a3.337 3.337 0 0 0 2.42 1.008v-2Zm-1.007-.422a1.34 1.34 0 0 1-.422-1.007h-2c0 .935.346 1.76 1.008 2.42l1.414-1.413Zm-.422-1.007c0-.397.13-.715.422-1.007l-1.414-1.414a3.337 3.337 0 0 0-1.008 2.42h2Zm.422-1.007a1.34 1.34 0 0 1 1.007-.422v-2c-.935 0-1.76.346-2.421 1.008l1.414 1.414Zm1.007-.422c.397 0 .715.13 1.007.422l1.414-1.414a3.337 3.337 0 0 0-2.421-1.008v2Zm1.007.422c.291.292.422.61.422 1.007h2c0-.935-.347-1.76-1.008-2.421l-1.414 1.414Zm.422 1.007c0 .261-.064.485-.191.694l1.707 1.041a3.288 3.288 0 0 0 .484-1.735h-2Zm-.2.71a1.52 1.52 0 0 1-.535.541l1.041 1.708a3.52 3.52 0 0 0 1.22-1.24l-1.727-1.01Zm-.53.538a1.317 1.317 0 0 1-.7.18v2c.618 0 1.203-.15 1.73-.466l-1.03-1.714Zm10.791.51-.404.915.003.001.401-.915Zm-2.784-2.147-.805.593.006.008.8-.601Zm-1.113-3.216v-1h-1.051l.052 1.05.999-.05Zm2.863 0 .997-.08-.074-.92h-.923v1Zm.773 1.943-.768.64.004.005.764-.645Zm1.784 1.25-.373.928.373-.928Zm6.92-1.534-.816-.578.816.578Zm.023-4.42-.84.54.002.005.838-.546Zm-1.863-1.546-.414.91.414-.91Zm-4.864-.557h-1v1h1v-1Zm0-2.5v-1h-1v1h1Zm4.295-.5-.427-.904-.004.002.431.902Zm1.648-1.409-.834-.552-.004.007.838.545Zm.08-4.193.858-.513-.858.513Zm-1.478-1.364-.46.888.005.002.455-.89Zm-4.5-.045.379.925.005-.002-.384-.923Zm-1.727 1.261.774.634.004-.005-.778-.629Zm-.727 1.977v1h.952l.047-.95-1-.05Zm-2.727 0-1-.037-.038 1.037h1.038v-1Zm1.102-3.204.8.601.001-.003-.801-.598Zm2.704-2.16-.417-.908-.002.001.42.908Zm7.398.103-.493.87.005.003.488-.873Zm2.375 2.284-.863.505.863-.505Zm-.204 6.42-.802-.597-.003.004.805.594Zm-2.785 1.921-.29-.957-.71.215v.742h1Zm0 .182h-1v.849l.838.138.162-.987Zm3.444 1.875-.774.634.003.003.77-.637Zm.204 7.125-.825-.565-.001.002.826.563Zm-2.795 2.364.438.898-.438-.898Zm-4.034-.137c-1.385 0-2.582-.237-3.61-.688l-.803 1.831c1.32.58 2.798.857 4.413.857v-2Zm-3.608-.687c-1.028-.454-1.813-1.07-2.389-1.834l-1.598 1.202c.803 1.068 1.874 1.885 3.18 2.461l.807-1.83Zm-2.383-1.827c-.558-.756-.868-1.636-.92-2.672l-1.997.1c.07 1.403.501 2.667 1.308 3.76l1.609-1.188Zm-1.918-1.622h2.863v-2h-2.863v2Zm1.867-.92c.076.943.406 1.79 1 2.503l1.537-1.28c-.314-.377-.499-.826-.544-1.384l-1.993.161Zm1.005 2.508c.572.678 1.308 1.184 2.175 1.533l.746-1.856c-.603-.242-1.056-.569-1.393-.968l-1.528 1.291Zm2.175 1.533c.868.349 1.81.515 2.816.515v-2c-.782 0-1.468-.129-2.07-.37l-.746 1.855Zm2.816.515c1.117 0 2.147-.195 3.07-.611l-.822-1.823c-.622.28-1.364.434-2.248.434v2Zm3.07-.611c.917-.413 1.67-1.006 2.224-1.789l-1.633-1.155c-.325.46-.784.837-1.413 1.12l.822 1.824Zm2.224-1.789c.568-.803.843-1.728.843-2.736h-2c0 .628-.165 1.142-.476 1.581l1.633 1.155Zm.843-2.736c0-1.03-.258-1.977-.799-2.807l-1.676 1.091c.308.473.475 1.033.475 1.716h2Zm-.796-2.803c-.543-.843-1.324-1.476-2.291-1.915l-.827 1.822c.67.303 1.13.701 1.436 1.176l1.682-1.083Zm-2.291-1.915c-.982-.445-2.132-.646-3.413-.646v2c1.082 0 1.932.17 2.586.468l.827-1.822Zm-3.413-.646H81.46v2h1.864v-2Zm-.864 1v-2.5h-2v2.5h2Zm-1-1.5h1.864v-2H81.46v2Zm1.864 0c1.044 0 2.007-.188 2.863-.598l-.863-1.804c-.538.258-1.197.402-2 .402v2Zm2.86-.596c.858-.406 1.555-.994 2.058-1.768l-1.677-1.09c-.285.439-.687.79-1.237 1.05l.855 1.808Zm2.053-1.76c.523-.79.768-1.7.768-2.69h-2c0 .648-.156 1.163-.436 1.585l1.668 1.104Zm.768-2.69c0-.938-.209-1.807-.664-2.569l-1.717 1.026c.242.405.381.907.381 1.544h2Zm-.664-2.569a4.575 4.575 0 0 0-1.88-1.74l-.911 1.78c.478.244.827.572 1.074.986l1.717-1.026Zm-1.876-1.739c-.797-.413-1.704-.6-2.687-.6v2c.73 0 1.308.138 1.767.376l.92-1.776Zm-2.687-.6a6.87 6.87 0 0 0-2.656.52l.767 1.846a4.87 4.87 0 0 1 1.89-.366v-2Zm-2.65.517A5.232 5.232 0 0 0 79 46.94l1.556 1.257a3.234 3.234 0 0 1 1.328-.965l-.757-1.85Zm-2.123 1.553c-.596.728-.906 1.598-.953 2.563l1.998.097c.028-.58.204-1.029.502-1.392l-1.547-1.268Zm.046 1.611h-2.727v2h2.727v-2Zm-1.728 1.038c.038-1.03.343-1.898.902-2.641l-1.598-1.202c-.82 1.09-1.25 2.358-1.303 3.768l1.999.075Zm.904-2.644c.584-.782 1.35-1.4 2.323-1.85l-.84-1.815c-1.254.58-2.29 1.403-3.086 2.469l1.603 1.196Zm2.32-1.849c.98-.45 2.067-.68 3.277-.68v-2c-1.473 0-2.848.283-4.111.863l.835 1.817Zm3.277-.68c1.303 0 2.36.263 3.211.744l.986-1.74c-1.21-.685-2.622-1.005-4.197-1.005v2Zm3.216.747c.887.496 1.544 1.135 2 1.916l1.727-1.01c-.65-1.112-1.577-1.996-2.751-2.652l-.976 1.746Zm2 1.916a4.98 4.98 0 0 1 .693 2.563h2a6.98 6.98 0 0 0-.966-3.572l-1.727 1.008Zm.693 2.563c0 1.126-.293 2.026-.836 2.755l1.603 1.196c.836-1.12 1.233-2.455 1.233-3.95h-2Zm-.84 2.759c-.544.739-1.286 1.259-2.269 1.557l.58 1.914c1.366-.414 2.48-1.174 3.3-2.284l-1.61-1.187Zm-2.979 2.514v.182h2v-.182h-2Zm.838 1.169c1.266.208 2.182.729 2.832 1.522l1.547-1.268c-1.002-1.222-2.381-1.952-4.054-2.228l-.325 1.974Zm2.835 1.525c.657.796 1.01 1.8 1.01 3.079h2c0-1.676-.474-3.149-1.468-4.353l-1.542 1.274Zm1.01 3.079c0 1.071-.289 2.01-.86 2.844l1.65 1.13c.808-1.18 1.21-2.515 1.21-3.974h-2Zm-.861 2.846c-.575.844-1.368 1.521-2.407 2.028l.876 1.797c1.324-.645 2.395-1.543 3.183-2.699l-1.652-1.126Zm-2.407 2.028c-1.027.5-2.218.762-3.596.762v2c1.637 0 3.135-.313 4.472-.965l-.876-1.797Z"},null,-1)];function hc(t,e){return S(),B("svg",MN,yN)}const RN=Object.freeze(Object.defineProperty({__proto__:null,render:hc,default:{render:hc}},Symbol.toStringTag,{value:"Module"})),AN={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 214.27 214.27"},kN=[R("path",{d:"M196.926 55.171c-.11-5.785-.215-11.25-.215-16.537a7.5 7.5 0 0 0-7.5-7.5c-32.075 0-56.496-9.218-76.852-29.01a7.498 7.498 0 0 0-10.457 0c-20.354 19.792-44.771 29.01-76.844 29.01a7.5 7.5 0 0 0-7.5 7.5c0 5.288-.104 10.755-.215 16.541-1.028 53.836-2.436 127.567 87.331 158.682a7.495 7.495 0 0 0 4.912 0c89.774-31.116 88.368-104.849 87.34-158.686zm-89.795 143.641c-76.987-27.967-75.823-89.232-74.79-143.351.062-3.248.122-6.396.164-9.482 30.04-1.268 54.062-10.371 74.626-28.285 20.566 17.914 44.592 27.018 74.634 28.285.042 3.085.102 6.231.164 9.477 1.032 54.121 2.195 115.388-74.798 143.356z"},null,-1),R("path",{d:"m132.958 81.082-36.199 36.197-15.447-15.447a7.501 7.501 0 0 0-10.606 10.607l20.75 20.75a7.477 7.477 0 0 0 5.303 2.196 7.477 7.477 0 0 0 5.303-2.196l41.501-41.5a7.498 7.498 0 0 0 .001-10.606 7.5 7.5 0 0 0-10.606-.001z"},null,-1)];function dc(t,e){return S(),B("svg",AN,kN)}const ZN=Object.freeze(Object.defineProperty({__proto__:null,render:dc,default:{render:dc}},Symbol.toStringTag,{value:"Module"})),TN={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"none",viewBox:"0 0 20 20"},SN=[R("circle",{cx:"10",cy:"10",r:"10",fill:"#4f8cf7","fill-opacity":".2",class:"text-base"},null,-1),R("path",{stroke:"#4f8cf7","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m6 10 3 3 5-5"},null,-1)];function fc(t,e){return S(),B("svg",TN,SN)}const bN=Object.freeze(Object.defineProperty({__proto__:null,render:fc,default:{render:fc}},Symbol.toStringTag,{value:"Module"})),EN={xmlns:"http://www.w3.org/2000/svg",class:"grayscale h-4 w-4",viewBox:"0 0 1024 1024"},IN=[R("path",{fill:"currentColor",d:"M42.667 512C42.667 251.733 251.733 42.667 512 42.667s469.333 187.733 469.333 422.4c0 72.533-29.866 145.066-81.066 200.533-51.2 51.2-123.734 81.067-200.534 81.067H614.4c-12.8 0-25.6 12.8-29.867 25.6 0 8.533 4.267 17.066 8.534 21.333 21.333 21.333 29.866 46.933 29.866 76.8 0 64-51.2 110.933-115.2 115.2-256-4.267-465.066-213.333-465.066-473.6zM128 512c0 213.333 170.667 384 384 384 17.067 0 29.867-12.8 29.867-29.867 0-4.266 0-8.533-4.267-12.8l-4.267-4.266c-17.066-21.334-25.6-46.934-29.866-76.8 0-64 51.2-110.934 115.2-110.934H704c51.2 0 102.4-21.333 136.533-55.466 38.4-38.4 55.467-85.334 55.467-136.534C896 281.6 725.333 128 512 128S128 298.667 128 512zm593.067 21.333c-21.334-21.333-25.6-51.2-17.067-76.8 12.8-25.6 38.4-42.666 64-42.666 38.4 0 68.267 34.133 72.533 72.533 0 29.867-17.066 55.467-42.666 64-8.534 4.267-17.067 4.267-25.6 4.267-17.067 0-38.4-8.534-51.2-21.334zm-520.534 0c-21.333-21.333-25.6-51.2-17.066-76.8 12.8-25.6 38.4-42.666 64-42.666 38.4 0 68.266 34.133 72.533 72.533 0 29.867-17.067 55.467-42.667 64-8.533 4.267-17.066 4.267-25.6 4.267-21.333 0-38.4-8.534-51.2-21.334zM580.267 345.6c-21.334-21.333-25.6-51.2-17.067-76.8 12.8-25.6 38.4-42.667 64-42.667 38.4 0 68.267 34.134 72.533 72.534 0 29.866-17.066 55.466-42.666 64-8.534 4.266-17.067 4.266-25.6 4.266-21.334 0-38.4-8.533-51.2-21.333zm-238.934 0c-17.066-21.333-25.6-51.2-12.8-76.8 12.8-25.6 38.4-42.667 64-42.667 38.4 0 68.267 34.134 72.534 72.534 0 29.866-17.067 55.466-42.667 64l-29.867 4.266c-17.066 0-34.133-8.533-51.2-21.333z"},null,-1)];function gc(t,e){return S(),B("svg",EN,IN)}const ON=Object.freeze(Object.defineProperty({__proto__:null,render:gc,default:{render:gc}},Symbol.toStringTag,{value:"Module"})),FN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},NN=[R("path",{fill:"currentColor",d:"M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512zm0-938.667C276.352 85.333 85.333 276.352 85.333 512S276.352 938.667 512 938.667 938.667 747.648 938.667 512A426.667 426.667 0 0 0 512 85.333zM512 768a42.667 42.667 0 0 1-42.368-42.667V469.76a42.368 42.368 0 1 1 84.693 0v255.573A42.41 42.41 0 0 1 512 768zm0-426.667a42.325 42.325 0 1 1-.085-84.65 42.325 42.325 0 0 1 .085 84.65zm42.325-42.666z"},null,-1)];function pc(t,e){return S(),B("svg",FN,NN)}const DN=Object.freeze(Object.defineProperty({__proto__:null,render:pc,default:{render:pc}},Symbol.toStringTag,{value:"Module"})),PN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},BN=[R("path",{fill:"currentColor",d:"M945.067 898.133 755.2 708.267c55.467-64 87.467-149.334 87.467-241.067 0-204.8-168.534-373.333-373.334-373.333S96 264.533 96 469.333s168.533 373.334 373.333 373.334c91.734 0 174.934-34.134 241.067-87.467l189.867 189.867c6.4 6.4 14.933 8.533 23.466 8.533s17.067-2.133 23.467-8.533c8.533-12.8 8.533-34.134-2.133-46.934zM469.333 778.667C298.667 778.667 160 640 160 469.333S298.667 160 469.333 160s309.334 138.667 309.334 309.333S640 778.667 469.333 778.667z"},null,-1),R("path",{fill:"currentColor",d:"M597.333 437.333h-96v-96c0-17.066-14.933-32-32-32s-32 14.934-32 32v96h-96c-17.066 0-32 14.934-32 32s14.934 32 32 32h96v96c0 17.067 14.934 32 32 32s32-14.933 32-32v-96h96c17.067 0 32-14.933 32-32s-14.933-32-32-32z"},null,-1)];function mc(t,e){return S(),B("svg",PN,BN)}const zN=Object.freeze(Object.defineProperty({__proto__:null,render:mc,default:{render:mc}},Symbol.toStringTag,{value:"Module"})),UN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},WN=[R("path",{fill:"currentColor",d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"},null,-1),R("path",{fill:"currentColor",d:"M921 867 775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"},null,-1)];function wc(t,e){return S(),B("svg",UN,WN)}const HN=Object.freeze(Object.defineProperty({__proto__:null,render:wc,default:{render:wc}},Symbol.toStringTag,{value:"Module"})),xc=["top","right","bottom","left"],vc=["start","end"],_c=xc.reduce((t,e)=>t.concat(e,e+"-"+vc[0],e+"-"+vc[1]),[]),Z3=Math.min,W1=Math.max,$7=Math.round,V7=Math.floor,t9=t=>({x:t,y:t}),$N={left:"right",right:"left",bottom:"top",top:"bottom"},VN={start:"end",end:"start"};function Un(t,e,n){return W1(t,Z3(e,n))}function $3(t,e){return typeof t=="function"?t(e):t}function T3(t){return t.split("-")[0]}function V3(t){return t.split("-")[1]}function Wn(t){return t==="x"?"y":"x"}function Hn(t){return t==="y"?"height":"width"}function N9(t){return["top","bottom"].includes(T3(t))?"y":"x"}function $n(t){return Wn(N9(t))}function Mc(t,e,n){n===void 0&&(n=!1);const i=V3(t),s=$n(t),r=Hn(s);let o=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(o=j7(o)),[o,j7(o)]}function GN(t){const e=j7(t);return[G7(t),e,G7(e)]}function G7(t){return t.replace(/start|end/g,e=>VN[e])}function jN(t,e,n){const i=["left","right"],s=["right","left"],r=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return n?e?s:i:e?i:s;case"left":case"right":return e?r:o;default:return[]}}function qN(t,e,n,i){const s=V3(t);let r=jN(T3(t),n==="start",i);return s&&(r=r.map(o=>o+"-"+s),e&&(r=r.concat(r.map(G7)))),r}function j7(t){return t.replace(/left|right|bottom|top/g,e=>$N[e])}function KN(t){return{top:0,right:0,bottom:0,left:0,...t}}function Vn(t){return typeof t!="number"?KN(t):{top:t,right:t,bottom:t,left:t}}function R0(t){const{x:e,y:n,width:i,height:s}=t;return{width:i,height:s,top:n,left:e,right:e+i,bottom:n+s,x:e,y:n}}function yc(t,e,n){let{reference:i,floating:s}=t;const r=N9(e),o=$n(e),l=Hn(o),L=T3(e),a=r==="y",c=i.x+i.width/2-s.width/2,C=i.y+i.height/2-s.height/2,u=i[l]/2-s[l]/2;let h;switch(L){case"top":h={x:c,y:i.y-s.height};break;case"bottom":h={x:c,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:C};break;case"left":h={x:i.x-s.width,y:C};break;default:h={x:i.x,y:i.y}}switch(V3(e)){case"start":h[o]-=u*(n&&a?-1:1);break;case"end":h[o]+=u*(n&&a?-1:1);break}return h}const YN=async(t,e,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:r=[],platform:o}=n,l=r.filter(Boolean),L=await(o.isRTL==null?void 0:o.isRTL(e));let a=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:c,y:C}=yc(a,i,L),u=i,h={},f=0;for(let w=0;w<l.length;w++){const{name:v,fn:p}=l[w],{x:g,y:m,data:_,reset:Z}=await p({x:c,y:C,initialPlacement:i,placement:u,strategy:s,middlewareData:h,rects:a,platform:o,elements:{reference:t,floating:e}});c=g!=null?g:c,C=m!=null?m:C,h={...h,[v]:{...h[v],..._}},Z&&f<=50&&(f++,typeof Z=="object"&&(Z.placement&&(u=Z.placement),Z.rects&&(a=Z.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):Z.rects),{x:c,y:C}=yc(a,u,L)),w=-1)}return{x:c,y:C,placement:u,strategy:s,middlewareData:h}};async function A0(t,e){var n;e===void 0&&(e={});const{x:i,y:s,platform:r,rects:o,elements:l,strategy:L}=t,{boundary:a="clippingAncestors",rootBoundary:c="viewport",elementContext:C="floating",altBoundary:u=!1,padding:h=0}=$3(e,t),f=Vn(h),v=l[u?C==="floating"?"reference":"floating":C],p=R0(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(v)))==null||n?v:v.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:a,rootBoundary:c,strategy:L})),g=C==="floating"?{x:i,y:s,width:o.floating.width,height:o.floating.height}:o.reference,m=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),_=await(r.isElement==null?void 0:r.isElement(m))?await(r.getScale==null?void 0:r.getScale(m))||{x:1,y:1}:{x:1,y:1},Z=R0(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:m,strategy:L}):g);return{top:(p.top-Z.top+f.top)/_.y,bottom:(Z.bottom-p.bottom+f.bottom)/_.y,left:(p.left-Z.left+f.left)/_.x,right:(Z.right-p.right+f.right)/_.x}}const XN=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:s,rects:r,platform:o,elements:l,middlewareData:L}=e,{element:a,padding:c=0}=$3(t,e)||{};if(a==null)return{};const C=Vn(c),u={x:n,y:i},h=$n(s),f=Hn(h),w=await o.getDimensions(a),v=h==="y",p=v?"top":"left",g=v?"bottom":"right",m=v?"clientHeight":"clientWidth",_=r.reference[f]+r.reference[h]-u[h]-r.floating[f],Z=u[h]-r.reference[h],E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a));let k=E?E[m]:0;(!k||!await(o.isElement==null?void 0:o.isElement(E)))&&(k=l.floating[m]||r.floating[f]);const b=_/2-Z/2,V=k/2-w[f]/2-1,D=Z3(C[p],V),t2=Z3(C[g],V),h2=D,L2=k-w[f]-t2,X=k/2-w[f]/2+b,q=Un(h2,X,L2),z=!L.arrow&&V3(s)!=null&&X!==q&&r.reference[f]/2-(X<h2?D:t2)-w[f]/2<0,n2=z?X<h2?X-h2:X-L2:0;return{[h]:u[h]+n2,data:{[h]:q,centerOffset:X-q-n2,...z&&{alignmentOffset:n2}},reset:z}}});function QN(t,e,n){return(t?[...n.filter(s=>V3(s)===t),...n.filter(s=>V3(s)!==t)]:n.filter(s=>T3(s)===s)).filter(s=>t?V3(s)===t||(e?G7(s)!==s:!1):!0)}const JN=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,i,s;const{rects:r,middlewareData:o,placement:l,platform:L,elements:a}=e,{crossAxis:c=!1,alignment:C,allowedPlacements:u=_c,autoAlignment:h=!0,...f}=$3(t,e),w=C!==void 0||u===_c?QN(C||null,h,u):u,v=await A0(e,f),p=((n=o.autoPlacement)==null?void 0:n.index)||0,g=w[p];if(g==null)return{};const m=Mc(g,r,await(L.isRTL==null?void 0:L.isRTL(a.floating)));if(l!==g)return{reset:{placement:w[0]}};const _=[v[T3(g)],v[m[0]],v[m[1]]],Z=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:g,overflows:_}],E=w[p+1];if(E)return{data:{index:p+1,overflows:Z},reset:{placement:E}};const k=Z.map(D=>{const t2=V3(D.placement);return[D.placement,t2&&c?D.overflows.slice(0,2).reduce((h2,L2)=>h2+L2,0):D.overflows[0],D.overflows]}).sort((D,t2)=>D[1]-t2[1]),V=((s=k.filter(D=>D[2].slice(0,V3(D[0])?2:3).every(t2=>t2<=0))[0])==null?void 0:s[0])||k[0][0];return V!==l?{data:{index:p+1,overflows:Z},reset:{placement:V}}:{}}}},eD=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:s,middlewareData:r,rects:o,initialPlacement:l,platform:L,elements:a}=e,{mainAxis:c=!0,crossAxis:C=!0,fallbackPlacements:u,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:w=!0,...v}=$3(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const p=T3(s),g=T3(l)===l,m=await(L.isRTL==null?void 0:L.isRTL(a.floating)),_=u||(g||!w?[j7(l)]:GN(l));!u&&f!=="none"&&_.push(...qN(l,w,f,m));const Z=[l,..._],E=await A0(e,v),k=[];let b=((i=r.flip)==null?void 0:i.overflows)||[];if(c&&k.push(E[p]),C){const h2=Mc(s,o,m);k.push(E[h2[0]],E[h2[1]])}if(b=[...b,{placement:s,overflows:k}],!k.every(h2=>h2<=0)){var V,D;const h2=(((V=r.flip)==null?void 0:V.index)||0)+1,L2=Z[h2];if(L2)return{data:{index:h2,overflows:b},reset:{placement:L2}};let X=(D=b.filter(q=>q.overflows[0]<=0).sort((q,z)=>q.overflows[1]-z.overflows[1])[0])==null?void 0:D.placement;if(!X)switch(h){case"bestFit":{var t2;const q=(t2=b.map(z=>[z.placement,z.overflows.filter(n2=>n2>0).reduce((n2,x2)=>n2+x2,0)]).sort((z,n2)=>z[1]-n2[1])[0])==null?void 0:t2[0];q&&(X=q);break}case"initialPlacement":X=l;break}if(s!==X)return{reset:{placement:X}}}return{}}}};function Rc(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Ac(t){return xc.some(e=>t[e]>=0)}const tD=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:i="referenceHidden",...s}=$3(t,e);switch(i){case"referenceHidden":{const r=await A0(e,{...s,elementContext:"reference"}),o=Rc(r,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Ac(o)}}}case"escaped":{const r=await A0(e,{...s,altBoundary:!0}),o=Rc(r,n.floating);return{data:{escapedOffsets:o,escaped:Ac(o)}}}default:return{}}}}};function kc(t){const e=Z3(...t.map(r=>r.left)),n=Z3(...t.map(r=>r.top)),i=W1(...t.map(r=>r.right)),s=W1(...t.map(r=>r.bottom));return{x:e,y:n,width:i-e,height:s-n}}function nD(t){const e=t.slice().sort((s,r)=>s.y-r.y),n=[];let i=null;for(let s=0;s<e.length;s++){const r=e[s];!i||r.y-i.y>i.height/2?n.push([r]):n[n.length-1].push(r),i=r}return n.map(s=>R0(kc(s)))}const iD=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:i,rects:s,platform:r,strategy:o}=e,{padding:l=2,x:L,y:a}=$3(t,e),c=Array.from(await(r.getClientRects==null?void 0:r.getClientRects(i.reference))||[]),C=nD(c),u=R0(kc(c)),h=Vn(l);function f(){if(C.length===2&&C[0].left>C[1].right&&L!=null&&a!=null)return C.find(v=>L>v.left-h.left&&L<v.right+h.right&&a>v.top-h.top&&a<v.bottom+h.bottom)||u;if(C.length>=2){if(N9(n)==="y"){const D=C[0],t2=C[C.length-1],h2=T3(n)==="top",L2=D.top,X=t2.bottom,q=h2?D.left:t2.left,z=h2?D.right:t2.right,n2=z-q,x2=X-L2;return{top:L2,bottom:X,left:q,right:z,width:n2,height:x2,x:q,y:L2}}const v=T3(n)==="left",p=W1(...C.map(D=>D.right)),g=Z3(...C.map(D=>D.left)),m=C.filter(D=>v?D.left===g:D.right===p),_=m[0].top,Z=m[m.length-1].bottom,E=g,k=p,b=k-E,V=Z-_;return{top:_,bottom:Z,left:E,right:k,width:b,height:V,x:E,y:_}}return u}const w=await r.getElementRects({reference:{getBoundingClientRect:f},floating:i.floating,strategy:o});return s.reference.x!==w.reference.x||s.reference.y!==w.reference.y||s.reference.width!==w.reference.width||s.reference.height!==w.reference.height?{reset:{rects:w}}:{}}}};async function sD(t,e){const{placement:n,platform:i,elements:s}=t,r=await(i.isRTL==null?void 0:i.isRTL(s.floating)),o=T3(n),l=V3(n),L=N9(n)==="y",a=["left","top"].includes(o)?-1:1,c=r&&L?-1:1,C=$3(e,t);let{mainAxis:u,crossAxis:h,alignmentAxis:f}=typeof C=="number"?{mainAxis:C,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...C};return l&&typeof f=="number"&&(h=l==="end"?f*-1:f),L?{x:h*c,y:u*a}:{x:u*a,y:h*c}}const rD=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:s,y:r,placement:o,middlewareData:l}=e,L=await sD(e,t);return o===((n=l.offset)==null?void 0:n.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:s+L.x,y:r+L.y,data:{...L,placement:o}}}}},oD=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:s}=e,{mainAxis:r=!0,crossAxis:o=!1,limiter:l={fn:v=>{let{x:p,y:g}=v;return{x:p,y:g}}},...L}=$3(t,e),a={x:n,y:i},c=await A0(e,L),C=N9(T3(s)),u=Wn(C);let h=a[u],f=a[C];if(r){const v=u==="y"?"top":"left",p=u==="y"?"bottom":"right",g=h+c[v],m=h-c[p];h=Un(g,h,m)}if(o){const v=C==="y"?"top":"left",p=C==="y"?"bottom":"right",g=f+c[v],m=f-c[p];f=Un(g,f,m)}const w=l.fn({...e,[u]:h,[C]:f});return{...w,data:{x:w.x-n,y:w.y-i}}}}},lD=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:i,placement:s,rects:r,middlewareData:o}=e,{offset:l=0,mainAxis:L=!0,crossAxis:a=!0}=$3(t,e),c={x:n,y:i},C=N9(s),u=Wn(C);let h=c[u],f=c[C];const w=$3(l,e),v=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(L){const m=u==="y"?"height":"width",_=r.reference[u]-r.floating[m]+v.mainAxis,Z=r.reference[u]+r.reference[m]-v.mainAxis;h<_?h=_:h>Z&&(h=Z)}if(a){var p,g;const m=u==="y"?"width":"height",_=["top","left"].includes(T3(s)),Z=r.reference[C]-r.floating[m]+(_&&((p=o.offset)==null?void 0:p[C])||0)+(_?0:v.crossAxis),E=r.reference[C]+r.reference[m]+(_?0:((g=o.offset)==null?void 0:g[C])||0)-(_?v.crossAxis:0);f<Z?f=Z:f>E&&(f=E)}return{[u]:h,[C]:f}}}},LD=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:i,platform:s,elements:r}=e,{apply:o=()=>{},...l}=$3(t,e),L=await A0(e,l),a=T3(n),c=V3(n),C=N9(n)==="y",{width:u,height:h}=i.floating;let f,w;a==="top"||a==="bottom"?(f=a,w=c===(await(s.isRTL==null?void 0:s.isRTL(r.floating))?"start":"end")?"left":"right"):(w=a,f=c==="end"?"top":"bottom");const v=h-L.top-L.bottom,p=u-L.left-L.right,g=Z3(h-L[f],v),m=Z3(u-L[w],p),_=!e.middlewareData.shift;let Z=g,E=m;if(C?E=c||_?Z3(m,p):p:Z=c||_?Z3(g,v):v,_&&!c){const b=W1(L.left,0),V=W1(L.right,0),D=W1(L.top,0),t2=W1(L.bottom,0);C?E=u-2*(b!==0||V!==0?b+V:W1(L.left,L.right)):Z=h-2*(D!==0||t2!==0?D+t2:W1(L.top,L.bottom))}await o({...e,availableWidth:E,availableHeight:Z});const k=await s.getDimensions(r.floating);return u!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}};function k0(t){return Zc(t)?(t.nodeName||"").toLowerCase():"#document"}function S3(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function b4(t){var e;return(e=(Zc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Zc(t){return t instanceof Node||t instanceof S3(t).Node}function u4(t){return t instanceof Element||t instanceof S3(t).Element}function h4(t){return t instanceof HTMLElement||t instanceof S3(t).HTMLElement}function Tc(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof S3(t).ShadowRoot}function B5(t){const{overflow:e,overflowX:n,overflowY:i,display:s}=G3(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(s)}function aD(t){return["table","td","th"].includes(k0(t))}function Gn(t){const e=jn(),n=G3(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function cD(t){let e=n9(t);for(;h4(e)&&!Z0(e);){if(Gn(e))return e;e=n9(e)}return null}function jn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Z0(t){return["html","body","#document"].includes(k0(t))}function G3(t){return S3(t).getComputedStyle(t)}function q7(t){return u4(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function n9(t){if(k0(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Tc(t)&&t.host||b4(t);return Tc(e)?e.host:e}function Sc(t){const e=n9(t);return Z0(e)?t.ownerDocument?t.ownerDocument.body:t.body:h4(e)&&B5(e)?e:Sc(e)}function z5(t,e,n){var i;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=Sc(t),r=s===((i=t.ownerDocument)==null?void 0:i.body),o=S3(s);return r?e.concat(o,o.visualViewport||[],B5(s)?s:[],o.frameElement&&n?z5(o.frameElement):[]):e.concat(s,z5(s,[],n))}function bc(t){const e=G3(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const s=h4(t),r=s?t.offsetWidth:n,o=s?t.offsetHeight:i,l=$7(n)!==r||$7(i)!==o;return l&&(n=r,i=o),{width:n,height:i,$:l}}function qn(t){return u4(t)?t:t.contextElement}function T0(t){const e=qn(t);if(!h4(e))return t9(1);const n=e.getBoundingClientRect(),{width:i,height:s,$:r}=bc(e);let o=(r?$7(n.width):n.width)/i,l=(r?$7(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const CD=t9(0);function Ec(t){const e=S3(t);return!jn()||!e.visualViewport?CD:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function uD(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==S3(t)?!1:e}function D9(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),r=qn(t);let o=t9(1);e&&(i?u4(i)&&(o=T0(i)):o=T0(t));const l=uD(r,n,i)?Ec(r):t9(0);let L=(s.left+l.x)/o.x,a=(s.top+l.y)/o.y,c=s.width/o.x,C=s.height/o.y;if(r){const u=S3(r),h=i&&u4(i)?S3(i):i;let f=u,w=f.frameElement;for(;w&&i&&h!==f;){const v=T0(w),p=w.getBoundingClientRect(),g=G3(w),m=p.left+(w.clientLeft+parseFloat(g.paddingLeft))*v.x,_=p.top+(w.clientTop+parseFloat(g.paddingTop))*v.y;L*=v.x,a*=v.y,c*=v.x,C*=v.y,L+=m,a+=_,f=S3(w),w=f.frameElement}}return R0({width:c,height:C,x:L,y:a})}const hD=[":popover-open",":modal"];function Kn(t){return hD.some(e=>{try{return t.matches(e)}catch{return!1}})}function dD(t){let{elements:e,rect:n,offsetParent:i,strategy:s}=t;const r=s==="fixed",o=b4(i),l=e?Kn(e.floating):!1;if(i===o||l&&r)return n;let L={scrollLeft:0,scrollTop:0},a=t9(1);const c=t9(0),C=h4(i);if((C||!C&&!r)&&((k0(i)!=="body"||B5(o))&&(L=q7(i)),h4(i))){const u=D9(i);a=T0(i),c.x=u.x+i.clientLeft,c.y=u.y+i.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-L.scrollLeft*a.x+c.x,y:n.y*a.y-L.scrollTop*a.y+c.y}}function fD(t){return Array.from(t.getClientRects())}function Ic(t){return D9(b4(t)).left+q7(t).scrollLeft}function gD(t){const e=b4(t),n=q7(t),i=t.ownerDocument.body,s=W1(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=W1(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let o=-n.scrollLeft+Ic(t);const l=-n.scrollTop;return G3(i).direction==="rtl"&&(o+=W1(e.clientWidth,i.clientWidth)-s),{width:s,height:r,x:o,y:l}}function pD(t,e){const n=S3(t),i=b4(t),s=n.visualViewport;let r=i.clientWidth,o=i.clientHeight,l=0,L=0;if(s){r=s.width,o=s.height;const a=jn();(!a||a&&e==="fixed")&&(l=s.offsetLeft,L=s.offsetTop)}return{width:r,height:o,x:l,y:L}}function mD(t,e){const n=D9(t,!0,e==="fixed"),i=n.top+t.clientTop,s=n.left+t.clientLeft,r=h4(t)?T0(t):t9(1),o=t.clientWidth*r.x,l=t.clientHeight*r.y,L=s*r.x,a=i*r.y;return{width:o,height:l,x:L,y:a}}function Oc(t,e,n){let i;if(e==="viewport")i=pD(t,n);else if(e==="document")i=gD(b4(t));else if(u4(e))i=mD(e,n);else{const s=Ec(t);i={...e,x:e.x-s.x,y:e.y-s.y}}return R0(i)}function Fc(t,e){const n=n9(t);return n===e||!u4(n)||Z0(n)?!1:G3(n).position==="fixed"||Fc(n,e)}function wD(t,e){const n=e.get(t);if(n)return n;let i=z5(t,[],!1).filter(l=>u4(l)&&k0(l)!=="body"),s=null;const r=G3(t).position==="fixed";let o=r?n9(t):t;for(;u4(o)&&!Z0(o);){const l=G3(o),L=Gn(o);!L&&l.position==="fixed"&&(s=null),(r?!L&&!s:!L&&l.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||B5(o)&&!L&&Fc(t,o))?i=i.filter(c=>c!==o):s=l,o=n9(o)}return e.set(t,i),i}function xD(t){let{element:e,boundary:n,rootBoundary:i,strategy:s}=t;const o=[...n==="clippingAncestors"?Kn(e)?[]:wD(e,this._c):[].concat(n),i],l=o[0],L=o.reduce((a,c)=>{const C=Oc(e,c,s);return a.top=W1(C.top,a.top),a.right=Z3(C.right,a.right),a.bottom=Z3(C.bottom,a.bottom),a.left=W1(C.left,a.left),a},Oc(e,l,s));return{width:L.right-L.left,height:L.bottom-L.top,x:L.left,y:L.top}}function vD(t){const{width:e,height:n}=bc(t);return{width:e,height:n}}function _D(t,e,n){const i=h4(e),s=b4(e),r=n==="fixed",o=D9(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const L=t9(0);if(i||!i&&!r)if((k0(e)!=="body"||B5(s))&&(l=q7(e)),i){const C=D9(e,!0,r,e);L.x=C.x+e.clientLeft,L.y=C.y+e.clientTop}else s&&(L.x=Ic(s));const a=o.left+l.scrollLeft-L.x,c=o.top+l.scrollTop-L.y;return{x:a,y:c,width:o.width,height:o.height}}function Yn(t){return G3(t).position==="static"}function Nc(t,e){return!h4(t)||G3(t).position==="fixed"?null:e?e(t):t.offsetParent}function Dc(t,e){const n=S3(t);if(Kn(t))return n;if(!h4(t)){let s=n9(t);for(;s&&!Z0(s);){if(u4(s)&&!Yn(s))return s;s=n9(s)}return n}let i=Nc(t,e);for(;i&&aD(i)&&Yn(i);)i=Nc(i,e);return i&&Z0(i)&&Yn(i)&&!Gn(i)?n:i||cD(t)||n}const MD=async function(t){const e=this.getOffsetParent||Dc,n=this.getDimensions,i=await n(t.floating);return{reference:_D(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function yD(t){return G3(t).direction==="rtl"}const RD={convertOffsetParentRelativeRectToViewportRelativeRect:dD,getDocumentElement:b4,getClippingRect:xD,getOffsetParent:Dc,getElementRects:MD,getClientRects:fD,getDimensions:vD,getScale:T0,isElement:u4,isRTL:yD};function AD(t,e){let n=null,i;const s=b4(t);function r(){var l;clearTimeout(i),(l=n)==null||l.disconnect(),n=null}function o(l,L){l===void 0&&(l=!1),L===void 0&&(L=1),r();const{left:a,top:c,width:C,height:u}=t.getBoundingClientRect();if(l||e(),!C||!u)return;const h=V7(c),f=V7(s.clientWidth-(a+C)),w=V7(s.clientHeight-(c+u)),v=V7(a),g={rootMargin:-h+"px "+-f+"px "+-w+"px "+-v+"px",threshold:W1(0,Z3(1,L))||1};let m=!0;function _(Z){const E=Z[0].intersectionRatio;if(E!==L){if(!m)return o();E?o(!1,E):i=setTimeout(()=>{o(!1,1e-7)},1e3)}m=!1}try{n=new IntersectionObserver(_,{...g,root:s.ownerDocument})}catch{n=new IntersectionObserver(_,g)}n.observe(t)}return o(!0),r}function kD(t,e,n,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:r=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:L=!1}=i,a=qn(t),c=s||r?[...a?z5(a):[],...z5(e)]:[];c.forEach(p=>{s&&p.addEventListener("scroll",n,{passive:!0}),r&&p.addEventListener("resize",n)});const C=a&&l?AD(a,n):null;let u=-1,h=null;o&&(h=new ResizeObserver(p=>{let[g]=p;g&&g.target===a&&h&&(h.unobserve(e),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var m;(m=h)==null||m.observe(e)})),n()}),a&&!L&&h.observe(a),h.observe(e));let f,w=L?D9(t):null;L&&v();function v(){const p=D9(t);w&&(p.x!==w.x||p.y!==w.y||p.width!==w.width||p.height!==w.height)&&n(),w=p,f=requestAnimationFrame(v)}return n(),()=>{var p;c.forEach(g=>{s&&g.removeEventListener("scroll",n),r&&g.removeEventListener("resize",n)}),C==null||C(),(p=h)==null||p.disconnect(),h=null,L&&cancelAnimationFrame(f)}}const ZD=rD,TD=JN,SD=oD,bD=eD,ED=tD,ID=XN,OD=(t,e,n)=>{const i=new Map,s={platform:RD,...n},r={...s.platform,_c:i};return YN(t,e,{...s,platform:r})};function FD(t){return Pc(t)?(t.nodeName||"").toLowerCase():"#document"}function ND(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Pc(t){return t instanceof Node||t instanceof ND(t).Node}function DD(t){return t!=null&&typeof t=="object"&&"$el"in t}function Xn(t){if(DD(t)){const e=t.$el;return Pc(e)&&FD(e)==="#comment"?null:e}return t}function PD(t){return{name:"arrow",options:t,fn(e){const n=Xn(N(t.element));return n==null?{}:ID({element:n,padding:t.padding}).fn(e)}}}function Bc(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function zc(t,e){const n=Bc(t);return Math.round(e*n)/n}function BD(t,e,n){n===void 0&&(n={});const i=n.whileElementsMounted,s=O(()=>{var k;return(k=N(n.open))!=null?k:!0}),r=O(()=>N(n.middleware)),o=O(()=>{var k;return(k=N(n.placement))!=null?k:"bottom"}),l=O(()=>{var k;return(k=N(n.strategy))!=null?k:"absolute"}),L=O(()=>{var k;return(k=N(n.transform))!=null?k:!0}),a=O(()=>Xn(t.value)),c=O(()=>Xn(e.value)),C=C2(0),u=C2(0),h=C2(l.value),f=C2(o.value),w=l8({}),v=C2(!1),p=O(()=>{const k={position:h.value,left:"0",top:"0"};if(!c.value)return k;const b=zc(c.value,C.value),V=zc(c.value,u.value);return L.value?{...k,transform:"translate("+b+"px, "+V+"px)",...Bc(c.value)>=1.5&&{willChange:"transform"}}:{position:h.value,left:b+"px",top:V+"px"}});let g;function m(){a.value==null||c.value==null||OD(a.value,c.value,{middleware:r.value,placement:o.value,strategy:l.value}).then(k=>{C.value=k.x,u.value=k.y,h.value=k.strategy,f.value=k.placement,w.value=k.middlewareData,v.value=!0})}function _(){typeof g=="function"&&(g(),g=void 0)}function Z(){if(_(),i===void 0){m();return}if(a.value!=null&&c.value!=null){g=i(a.value,c.value,m);return}}function E(){s.value||(v.value=!1)}return a1([r,o,l],m,{flush:"sync"}),a1([a,c],Z,{flush:"sync"}),a1(s,E,{flush:"sync"}),hi()&&di(_),{x:o9(C),y:o9(u),strategy:o9(h),placement:o9(f),middlewareData:o9(w),isPositioned:o9(v),floatingStyles:p,update:m}}var zD=Object.defineProperty,UD=(t,e,n)=>e in t?zD(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,WD=(t,e,n)=>(UD(t,typeof e!="symbol"?e+"":e,n),n);function U5(t){return t==null||t.value==null?null:t.value instanceof Node?t.value:"$el"in t.value&&t.value.$el?U5(C2(t.value.$el)):"getBoundingClientRect"in t.value?t.value:null}function Uc(t){return t.reduce((e,n)=>n.type===z2?e.concat(Uc(n.children)):e.concat(n),[])}function HD(t){return t==null?!1:typeof t.type=="string"||typeof t.type=="object"||typeof t.type=="function"}function Wc(t){return t=N(t),t&&(t==null?void 0:t.nodeType)!==Node.COMMENT_NODE}class $D{constructor(){WD(this,"current",this.detect())}set(e){this.current!==e&&(this.current=e)}reset(){this.set(this.detect())}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}const Qn=new $D;function VD(t){if(Qn.isServer)return null;if(t instanceof Node)return t.ownerDocument;if(Object.prototype.hasOwnProperty.call(t,"value")){const e=U5(t);if(e)return e.ownerDocument}return document}function GD(t,e){!e.vueTransition&&(e.transitionName||e.transitionType)&&console.warn(`[headlessui-float]: <${t} /> pass "transition-name" or "transition-type" prop, must be set "vue-transition" prop.`)}function jD(t,e,n,i,s){a1([()=>s.offset,()=>s.flip,()=>s.shift,()=>s.autoPlacement,()=>s.arrow,()=>s.hide,()=>s.middleware],()=>{const r=[];(typeof s.offset=="number"||typeof s.offset=="object"||typeof s.offset=="function")&&r.push(ZD(s.offset)),(s.flip===!0||typeof s.flip=="number"||typeof s.flip=="object")&&r.push(bD({padding:typeof s.flip=="number"?s.flip:void 0,...typeof s.flip=="object"?s.flip:{}})),(s.shift===!0||typeof s.shift=="number"||typeof s.shift=="object")&&r.push(SD({padding:typeof s.shift=="number"?s.shift:void 0,...typeof s.shift=="object"?s.shift:{}})),(s.autoPlacement===!0||typeof s.autoPlacement=="object")&&r.push(TD(typeof s.autoPlacement=="object"?s.autoPlacement:void 0)),r.push(...typeof s.middleware=="function"?s.middleware({referenceEl:e,floatingEl:n}):s.middleware||[]),(s.arrow===!0||typeof s.arrow=="number")&&r.push(PD({element:i,padding:s.arrow===!0?0:s.arrow})),(s.hide===!0||typeof s.hide=="object"||Array.isArray(s.hide))&&(Array.isArray(s.hide)?s.hide:[s.hide]).forEach(o=>{r.push(ED(typeof o=="object"?o:void 0))}),t.value=r},{immediate:!0})}function qD(t,e,n){let i=()=>{};e1(()=>{if(t&&Qn.isClient&&typeof ResizeObserver<"u"&&e.value&&e.value instanceof Element){const s=new ResizeObserver(([r])=>{n.value=r.borderBoxSize.reduce((o,{inlineSize:l})=>o+l,0)});s.observe(e.value),i=()=>{s.disconnect(),n.value=null}}}),e0(()=>{i()})}const KD=t=>{switch(t){case"top":return"origin-bottom";case"bottom":return"origin-top";case"left":return"origin-right";case"right":return"origin-left";case"top-start":case"right-end":return"origin-bottom-left";case"top-end":case"left-end":return"origin-bottom-right";case"right-start":case"bottom-start":return"origin-top-left";case"left-start":case"bottom-end":return"origin-top-right";default:return"origin-center"}};function YD(t,e){const n=O(()=>{if(typeof t.originClass=="function")return t.originClass(e.value);if(typeof t.originClass=="string")return t.originClass;if(t.tailwindcssOriginClass)return KD(e.value)}),i=O(()=>t.enter||n.value?`${t.enter||""} ${n.value||""}`:void 0),s=O(()=>t.leave||n.value?`${t.leave||""} ${n.value||""}`:void 0);return{originClassRef:n,enterActiveClassRef:i,leaveActiveClassRef:s}}function Hc(t,e,...n){if(t in e){const s=e[t];return typeof s=="function"?s(...n):s}const i=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Hc),i}const $c=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(t=>`${t}:not([tabindex='-1'])`).join(",");var Vc=(t=>(t[t.Strict=0]="Strict",t[t.Loose=1]="Loose",t))(Vc||{});function XD(t,e=0){var n;return t===((n=VD(t))==null?void 0:n.body)?!1:Hc(e,{0(){return t.matches($c)},1(){let i=t;for(;i!==null;){if(i.matches($c))return!0;i=i.parentElement}return!1}})}function Jn(t,e,n){Qn.isServer||L3(i=>{document.addEventListener(t,e,n),i(()=>document.removeEventListener(t,e,n))})}function QD(t,e,n=O(()=>!0)){function i(r,o){if(!n.value||r.defaultPrevented)return;const l=o(r);if(l===null||!l.getRootNode().contains(l))return;const L=function a(c){return typeof c=="function"?a(c()):Array.isArray(c)||c instanceof Set?c:[c]}(t);for(const a of L){if(a===null)continue;const c=a instanceof HTMLElement?a:U5(a);if(c!=null&&c.contains(l)||r.composed&&r.composedPath().includes(c))return}return!XD(l,Vc.Loose)&&l.tabIndex!==-1&&r.preventDefault(),e(r,l)}const s=C2(null);Jn("mousedown",r=>{var o,l;n.value&&(s.value=((l=(o=r.composedPath)==null?void 0:o.call(r))==null?void 0:l[0])||r.target)},!0),Jn("click",r=>{s.value&&(i(r,()=>s.value),s.value=null)},!0),Jn("blur",r=>i(r,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}const JD=Symbol("ArrowContext"),Z2={as:{type:[String,Function],default:"template"},floatingAs:{type:[String,Function],default:"div"},show:{type:Boolean,default:null},placement:{type:String,default:"bottom-start"},strategy:{type:String,default:"absolute"},offset:[Number,Function,Object],shift:{type:[Boolean,Number,Object],default:!1},flip:{type:[Boolean,Number,Object],default:!1},arrow:{type:[Boolean,Number],default:!1},autoPlacement:{type:[Boolean,Object],default:!1},hide:{type:[Boolean,Object,Array],default:!1},referenceHiddenClass:String,escapedClass:String,autoUpdate:{type:[Boolean,Object],default:!0},zIndex:{type:[Number,String],default:9999},vueTransition:{type:Boolean,default:!1},transitionName:String,transitionType:String,enter:String,enterFrom:String,enterTo:String,leave:String,leaveFrom:String,leaveTo:String,originClass:[String,Function],tailwindcssOriginClass:{type:Boolean,default:!1},portal:{type:Boolean,default:!1},transform:{type:Boolean,default:!1},adaptiveWidth:{type:[Boolean,Object],default:!1},composable:{type:Boolean,default:!1},dialog:{type:Boolean,default:!1},middleware:{type:[Array,Function],default:()=>[]}};function eP(t,e,n,i){const{floatingRef:s,props:r,mounted:o,show:l,referenceHidden:L,escaped:a,placement:c,floatingStyles:C,referenceElWidth:u,updateFloating:h}=i,f=x9({...r,as:r.floatingAs},e),{enterActiveClassRef:w,leaveActiveClassRef:v}=YD(f,c),p={show:o.value?f.show:!1,enter:w.value,enterFrom:f.enterFrom,enterTo:f.enterTo,leave:v.value,leaveFrom:f.leaveFrom,leaveTo:f.leaveTo,onBeforeEnter(){l.value=!0},onAfterLeave(){l.value=!1}},g={name:f.transitionName,type:f.transitionType,appear:!0,...f.transitionName?{}:{enterActiveClass:w.value,enterFromClass:f.enterFrom,enterToClass:f.enterTo,leaveActiveClass:v.value,leaveFromClass:f.leaveFrom,leaveToClass:f.leaveTo},onBeforeEnter(){l.value=!0},onAfterLeave(){l.value=!1}},m={class:[L.value?f.referenceHiddenClass:void 0,a.value?f.escapedClass:void 0].filter(k=>!!k).join(" "),style:{...C.value,zIndex:f.zIndex}};if(f.adaptiveWidth&&typeof u.value=="number"){const k={attribute:"width",...typeof f.adaptiveWidth=="object"?f.adaptiveWidth:{}};m.style[k.attribute]=`${u.value}px`}function _(k){return f.portal?o.value?r1(cn,()=>k):d2():k}function Z(k){const b=x9(m,n,f.dialog?{}:{ref:s});return f.as==="template"?k:typeof f.as=="string"?r1(f.as,b,k):r1(f.as,b,()=>k)}function E(){function k(){var b;const V=f.as==="template"?x9(m,n,f.dialog?{}:{ref:s}):null,D=x3(t,V);return((b=t.props)==null?void 0:b.unmount)===!1?(h(),D):f.vueTransition&&f.show===!1?d2():D}return o.value?f.vueTransition?r1(i0,{...f.dialog?{ref:s}:{},...g},k):r1(f.transitionChild?E7:wn,{key:`placement-${c.value}`,...f.dialog?{ref:s}:{},as:"template",...p},k):d2()}return _(Z(E()))}function tP(t,e,n,i,s){const r=C2(!1),o=L8(i,"placement"),l=L8(i,"strategy"),L=l8({}),a=C2(void 0),c=C2(void 0),C=C2(null),u=C2(void 0),h=C2(void 0),f=O(()=>U5(e)),w=O(()=>U5(n)),v=O(()=>Wc(f)&&Wc(w)),{placement:p,middlewareData:g,isPositioned:m,floatingStyles:_,update:Z}=BD(f,w,{placement:o,strategy:l,middleware:L,transform:i.dialog?!1:i.transform,whileElementsMounted:i.dialog?()=>()=>{}:void 0}),E=C2(null);e1(()=>{r.value=!0}),a1(t,(h2,L2)=>{h2&&!L2?s("show"):!h2&&L2&&s("hide")},{immediate:!0});function k(){v.value&&(Z(),s("update"))}a1([o,l,L],k,{flush:"sync"}),jD(L,f,w,C,i),a1([g,()=>i.hide,m],()=>{var h2,L2;(i.hide===!0||typeof i.hide=="object"||Array.isArray(i.hide))&&(a.value=((h2=g.value.hide)==null?void 0:h2.referenceHidden)||!m.value,c.value=(L2=g.value.hide)==null?void 0:L2.escaped)}),a1(g,()=>{const h2=g.value.arrow;u.value=h2==null?void 0:h2.x,h.value=h2==null?void 0:h2.y}),qD(!!i.adaptiveWidth,f,E),a1([t,v],async(h2,L2,X)=>{if(await x4(),t.value&&v.value&&i.autoUpdate){const q=kD(f.value,w.value,k,typeof i.autoUpdate=="object"?i.autoUpdate:void 0);X(q)}},{flush:"post",immediate:!0});const b=C2(!0);a1(f,()=>{!(f.value instanceof Element)&&v.value&&b.value&&(b.value=!1,window.requestAnimationFrame(()=>{b.value=!0,k()}))},{flush:"sync"});const V={referenceRef:e,placement:p},D={floatingRef:n,props:i,mounted:r,show:t,referenceHidden:a,escaped:c,placement:p,floatingStyles:_,referenceElWidth:E,updateFloating:k},t2={ref:C,placement:p,x:u,y:h};return j1(JD,t2),{referenceApi:V,floatingApi:D,arrowApi:t2,placement:p,referenceEl:f,floatingEl:w,middlewareData:g,update:k}}({...Z2.as});const nP={as:Z2.as,show:Z2.show,placement:Z2.placement,strategy:Z2.strategy,offset:Z2.offset,shift:Z2.shift,flip:Z2.flip,arrow:Z2.arrow,autoPlacement:Z2.autoPlacement,autoUpdate:Z2.autoUpdate,zIndex:Z2.zIndex,vueTransition:Z2.vueTransition,transitionName:Z2.transitionName,transitionType:Z2.transitionType,enter:Z2.enter,enterFrom:Z2.enterFrom,enterTo:Z2.enterTo,leave:Z2.leave,leaveFrom:Z2.leaveFrom,leaveTo:Z2.leaveTo,originClass:Z2.originClass,tailwindcssOriginClass:Z2.tailwindcssOriginClass,portal:Z2.portal,transform:Z2.transform,middleware:Z2.middleware},iP={name:"FloatVirtual",inheritAttrs:!1,props:nP,emits:["initial","show","hide","update"],setup(t,{emit:e,slots:n,attrs:i}){var c;GD("FloatVirtual",t);const s=C2((c=t.show)!=null?c:!1),r=C2({getBoundingClientRect(){return{x:0,y:0,top:0,left:0,bottom:0,right:0,width:0,height:0}}}),o=C2(null),{floatingApi:l,placement:L}=tP(s,r,o,t,e);a1(()=>t.show,()=>{var C;s.value=(C=t.show)!=null?C:!1});function a(){s.value=!1}return e("initial",{show:s,placement:L,reference:r,floating:o}),()=>{if(!n.default)return;const C={placement:L.value,close:a},[u]=Uc(n.default(C)).filter(HD);return eP(u,{as:t.as,show:s.value},i,l)}}};Z2.as,Z2.placement,Z2.strategy,Z2.offset,Z2.shift,{...Z2.flip},Z2.arrow,Z2.autoPlacement,Z2.autoUpdate,Z2.zIndex,Z2.vueTransition,Z2.transitionName,Z2.transitionType,Z2.enter,Z2.enterFrom,Z2.enterTo,Z2.leave,Z2.leaveFrom,Z2.leaveTo,Z2.originClass,Z2.tailwindcssOriginClass,Z2.transform,Z2.middleware;const sP={class:"flex bg-white shadow-md z-10 rounded-md p-1"},rP=["onClick"],oP=Object.freeze(Object.defineProperty({__proto__:null,default:X2({__name:"StylePanel",setup(t){const e=C2({value:null}),n=S1(),i=O(()=>n.getters.onContentChange||(()=>{})),s=O(()=>Vt(n.getters.diagramElement)+Tl),r=O(()=>n.getters.code),o=C=>{n.dispatch("updateCode",{code:C}),i.value(C)},l=C2([]);let L;const a=({show:C,reference:u,floating:h})=>{let f,w,v,p,g,m;n.commit("onMessageClick",(_,Z)=>{var E;if(f=_.value.start.start,w=Nt(r.value,f),v=Sp(r.value,f),p=((E=r.value.slice(w).match(/^\s*/))==null?void 0:E[0])||"",g=v.trim().startsWith("//"),g){const k=v.trimStart().slice(2).trimStart(),b=k.indexOf("["),V=k.indexOf("]");m=Boolean(b===0&&V),m?l.value=k.slice(b+1,V).split(",").map(D=>D.trim()):l.value=[]}u.value={getBoundingClientRect:()=>Z.getBoundingClientRect()},e.value=_,C.value=!0}),QD(h,()=>{C.value=!1,l.value=[]},O(()=>C.value)),L=_=>{var Z;if(C.value=!1,!!e.value.value)if(g){let E="";if(m){let k;l.value.includes(_)?k=l.value.filter(b=>b!==_):k=[...l.value,_],E=`${p}// [${k.filter(Boolean).join(", ")}] ${v.slice(v.indexOf("]")+1).trimStart()}`}else E=`${p}// [${_}] ${v.slice((((Z=v.match(/\/\/*/))==null?void 0:Z.index)||-2)+2).trimStart()}`;E.endsWith(`
|
|
3365
|
+
`+l).trim(),this.textStyle={...u,...L,...c},this.classNames=[...h,...a,...C],this.commentStyle={...u,...L},this.messageStyle={...u,...c},this.commentClassNames=[...h,...a],this.messageClassNames=[...h,...C]}}const qF={name:"statement",props:["orgin","context","selfCallIndent","number","collapsed","inheritFromOccurrence"],computed:{comment:function(){return this.context.getComment()?this.context.getComment():""},commentObj:function(){return new jF(this.comment)},subStatement:function(){let t=this,e={loop:"FragmentLoop",alt:"FragmentAlt",par:"FragmentPar",opt:"FragmentOpt",section:"FragmentSection",critical:"FragmentCritical",tcf:"FragmentTryCatchFinally",ref:"FragmentRef",creation:"Creation",message:"Interaction",asyncMessage:"InteractionAsync",divider:"Divider",ret:"Return"},n=Object.keys(e).find(i=>t.context[i]()!==null);return e[n]},collapsedCheck:function(){return this.collapsed&&this.subStatement!=="Return"}},components:{Creation:qb,Interaction:oE,InteractionAsync:pE,FragmentAlt:PE,FragmentPar:$E,FragmentOpt:sI,FragmentSection:YO,FragmentCritical:lF,FragmentRef:gF,FragmentTryCatchFinally:ZF,FragmentLoop:QE,Divider:VF,Return:FF}};function KF(t,e,n,i,s,r){return S(),T2(w8(r.subStatement),{class:R2(["text-left text-sm text-skin-message",{hidden:r.collapsedCheck}]),origin:t.origin,context:n.context,comment:r.comment,commentObj:r.commentObj,selfCallIndent:n.selfCallIndent,number:n.number,inheritFromOccurrence:n.inheritFromOccurrence},null,8,["origin","class","context","comment","commentObj","selfCallIndent","number","inheritFromOccurrence"])}const YF=Y2(qF,[["render",KF]]),XF=["data-origin"],QF=["data-origin"],JF=X2({__name:"Block",props:{origin:null,context:null,selfCallIndent:null,number:null,incremental:{type:Boolean},collapsed:{type:Boolean},inheritFromOccurrence:{type:Boolean}},setup(t){const e=t,n=O(()=>{var s;return((s=e.context)==null?void 0:s.stat())||[]}),i=s=>e.number?e.incremental?Ba(e.number,s):`${e.number}.${s+1}`:String(s+1);return(s,r)=>(S(),B("div",{class:"block","data-origin":t.origin},[(S(!0),B(z2,null,z3(N(n),(o,l)=>(S(),B("div",{class:"statement-container mt-1","data-origin":t.origin,key:l},[j(YF,{origin:t.origin,inheritFromOccurrence:t.inheritFromOccurrence,context:o,collapsed:t.collapsed,selfCallIndent:t.selfCallIndent,number:i(l)},null,8,["origin","inheritFromOccurrence","context","collapsed","selfCallIndent","number"])],8,QF))),128))],8,XF))}});function eN(t){const e=Math.floor(t/1e3),n=Math.floor(t%1e3),i=Math.floor((t%1e3-n)*1e3);return e+"s "+n+"ms "+i+"\u03BCs"}const tN=(t,e)=>{const i=oc()-e;return console.debug(t+" cost: "+eN(i)),i},oc=()=>performance.now(),nN=G5.child({name:"core"});class iN{constructor(e,n=!1){s2(this,"el");s2(this,"_code");s2(this,"_theme");s2(this,"store");s2(this,"app");s2(this,"_currentTimeout");s2(this,"_lastRenderingCostMilliseconds",0);s2(this,"initialRender",!0);this.el=e,this.store=to(El()),this.app=i5(n?Yt:YL),this.app.component("Comment",F5),this.app.component("Block",JF),this.app.use(this.store),this.app.mount(this.el),this.addPortalRootElement()}addPortalRootElement(){const e=document.createElement("div");e.id="headlessui-portal-root",e.className="zenuml",e.append(document.createElement("div")),document.body.append(e)}async render(e,n){return this._currentTimeout&&(console.debug("rendering clearTimeout"),clearTimeout(this._currentTimeout)),nN.debug("rendering",e,n),this._code=e===void 0?this._code:e,this._theme=(n==null?void 0:n.theme)||this._theme,this.store.state.stickyOffset=(n==null?void 0:n.stickyOffset)||0,this.store.state.theme=this._theme||"default",this.store.state.enableScopedTheming=(n==null?void 0:n.enableScopedTheming)||!1,this.store.state.mode=(n==null?void 0:n.mode)||e3.Dynamic,this.initialRender?(this.initialRender=!1,await this.doRender(n)):this._currentTimeout=setTimeout(async()=>await this.doRender(n),this.calculateDebounceMilliseconds()),this}async doRender(e){console.debug("rendering start");const n=oc();yl(),this.store.commit("onContentChange",(e==null?void 0:e.onContentChange)||(()=>{})),this.store.commit("onThemeChange",(e==null?void 0:e.onThemeChange)||(()=>{})),this.store.commit("onEventEmit",(e==null?void 0:e.onEventEmit)||(()=>{})),(e==null?void 0:e.enableMultiTheme)!==void 0&&(this.store.state.enableMultiTheme=e==null?void 0:e.enableMultiTheme),await this.store.dispatch("updateCode",{code:this._code}),this._lastRenderingCostMilliseconds=tN("rendering end",n)}calculateDebounceMilliseconds(){let e=this._lastRenderingCostMilliseconds;return e>2e3&&(e=2e3),console.debug("rendering debounce: "+e+"ms"),e}get code(){return this._code}get theme(){return this._theme}async getPng(){return this.el.children[0].__vue__.toPng()}}const sN={createApp:i5,createStore:to,Store:El,SeqDiagram:Yt,DiagramFrame:YL},rN={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","aria-hidden":"true",viewBox:"0 0 24 24"},oN=[R("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 18 6M6 6l12 12"},null,-1)];function lc(t,e){return S(),B("svg",rN,oN)}const lN=Object.freeze(Object.defineProperty({__proto__:null,render:lc,default:{render:lc}},Symbol.toStringTag,{value:"Module"})),LN={xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor","stroke-linecap":"round",viewBox:"0 0 24 24"},aN=[R("path",{d:"m14 10 7-7M20 10h-6V4M3 21l7-7M4 14h6v6"},null,-1)];function Lc(t,e){return S(),B("svg",LN,aN)}const cN=Object.freeze(Object.defineProperty({__proto__:null,render:Lc,default:{render:Lc}},Symbol.toStringTag,{value:"Module"})),CN={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},uN=[R("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"},[R("path",{d:"M3 17.3V21h3.7","data-name":"Right"}),R("path",{d:"m10 14-6.2 6.2M14 10l6.2-6.2"}),R("path",{d:"M21 6.7V3h-3.7","data-name":"Right"})],-1)];function ac(t,e){return S(),B("svg",CN,uN)}const hN=Object.freeze(Object.defineProperty({__proto__:null,render:ac,default:{render:ac}},Symbol.toStringTag,{value:"Module"})),dN={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},fN=[R("path",{d:"M6 3v12"},null,-1),R("circle",{cx:"18",cy:"6",r:"3"},null,-1),R("circle",{cx:"6",cy:"18",r:"3"},null,-1),R("path",{d:"M18 9a9 9 0 0 1-9 9"},null,-1)];function cc(t,e){return S(),B("svg",dN,fN)}const gN=Object.freeze(Object.defineProperty({__proto__:null,render:cc,default:{render:cc}},Symbol.toStringTag,{value:"Module"})),pN={xmlns:"http://www.w3.org/2000/svg",width:"30",height:"24",class:"arrow text-skin-message-arrow"},mN=[R("path",{d:"M0 2h28v13H14",class:"line stroke-current fill-none stroke-2"},null,-1),R("path",{d:"M18 9 8 15l10 6",class:"head stroke-current fill-current stroke-2"},null,-1)];function Cc(t,e){return S(),B("svg",pN,mN)}const wN=Object.freeze(Object.defineProperty({__proto__:null,render:Cc,default:{render:Cc}},Symbol.toStringTag,{value:"Module"})),xN={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"none",viewBox:"0 0 20 20"},vN=[R("circle",{cx:"10",cy:"10",r:"10",fill:"#000","fill-opacity":".1"},null,-1)];function uc(t,e){return S(),B("svg",xN,vN)}const _N=Object.freeze(Object.defineProperty({__proto__:null,render:uc,default:{render:uc}},Symbol.toStringTag,{value:"Module"})),MN={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 100 100"},yN=[R("path",{fill:"#000",d:"M21.886 32.09V67H17.66V36.523h-.204l-8.523 5.659v-4.296l8.727-5.795h4.227Zm11.662 35.126a2.338 2.338 0 0 1-1.714-.715 2.338 2.338 0 0 1-.715-1.714c0-.666.239-1.237.715-1.714a2.338 2.338 0 0 1 1.714-.715c.666 0 1.237.238 1.714.715.477.477.715 1.048.715 1.714 0 .44-.112.846-.337 1.214a2.52 2.52 0 0 1-.877.891c-.36.216-.765.324-1.215.324Zm8.24-.216v-2.557l9.603-10.511a66.703 66.703 0 0 0 2.784-3.21c.73-.919 1.269-1.78 1.62-2.586a6.26 6.26 0 0 0 .54-2.556c0-1.023-.247-1.909-.74-2.657-.482-.748-1.145-1.326-1.988-1.733-.843-.407-1.79-.61-2.841-.61-1.117 0-2.093.232-2.926.696a4.792 4.792 0 0 0-1.918 1.917c-.445.824-.667 1.79-.667 2.898h-3.353c0-1.705.393-3.2 1.18-4.489a8.192 8.192 0 0 1 3.21-3.011c1.363-.72 2.892-1.08 4.588-1.08 1.704 0 3.215.36 4.53 1.08 1.317.72 2.35 1.69 3.098 2.912.748 1.221 1.122 2.58 1.122 4.077 0 1.07-.195 2.116-.583 3.139-.379 1.013-1.041 2.145-1.988 3.395-.938 1.24-2.24 2.755-3.907 4.545l-6.534 6.989v.227h13.523V67H41.789Zm26.444.216a2.338 2.338 0 0 1-1.714-.715 2.338 2.338 0 0 1-.715-1.714c0-.666.238-1.237.715-1.714a2.338 2.338 0 0 1 1.714-.715c.666 0 1.237.238 1.714.715.477.477.715 1.048.715 1.714 0 .44-.113.846-.338 1.214a2.52 2.52 0 0 1-.877.891c-.36.216-.764.324-1.214.324Zm15.502.102c-1.5 0-2.837-.257-4.012-.772-1.166-.516-2.094-1.232-2.784-2.148-.682-.924-1.053-1.996-1.113-3.216h2.863c.06.75.318 1.398.773 1.943.454.538 1.05.954 1.784 1.25.735.296 1.55.443 2.443.443 1 0 1.887-.174 2.66-.522.772-.349 1.378-.834 1.817-1.455.44-.621.66-1.341.66-2.16 0-.855-.213-1.609-.637-2.26-.424-.66-1.045-1.175-1.863-1.546-.819-.371-1.819-.557-3-.557H81.46v-2.5h1.864c.924 0 1.734-.166 2.431-.5.705-.333 1.254-.803 1.648-1.409.402-.606.602-1.318.602-2.136 0-.788-.174-1.474-.522-2.057a3.575 3.575 0 0 0-1.478-1.364c-.628-.325-1.37-.488-2.227-.488-.803 0-1.56.147-2.273.443a4.234 4.234 0 0 0-1.727 1.261c-.447.546-.69 1.205-.727 1.977h-2.727c.045-1.22.412-2.287 1.102-3.204.69-.924 1.59-1.644 2.704-2.16 1.122-.514 2.353-.772 3.694-.772 1.439 0 2.674.292 3.704.875 1.03.576 1.822 1.337 2.375 2.284.553.947.83 1.97.83 3.068 0 1.311-.345 2.428-1.034 3.353-.682.924-1.61 1.564-2.785 1.92v.182c1.47.242 2.618.867 3.444 1.875.825 1 1.238 2.239 1.238 3.716 0 1.265-.344 2.401-1.034 3.409-.682 1-1.613 1.788-2.795 2.364-1.182.575-2.527.863-4.034.863Z"},null,-1),R("path",{fill:"#000",d:"M21.886 32.09h1v-1h-1v1Zm0 34.91v1h1v-1h-1Zm-4.227 0h-1v1h1v-1Zm0-30.477h1v-1h-1v1Zm-.204 0v-1h-.302l-.252.167.553.833Zm-8.523 5.659h-1v1.864l1.553-1.031-.553-.833Zm0-4.296-.553-.833-.447.297v.536h1Zm8.727-5.795v-1h-.302l-.251.167.553.833Zm3.227 0V67h2V32.09h-2Zm1 33.909H17.66v2h4.227v-2Zm-3.227 1V36.523h-2V67h2Zm-1-31.477h-.204v2h.204v-2Zm-.758.167L8.38 41.349l1.106 1.666 8.523-5.66L16.9 35.69Zm-6.97 6.492v-4.296h-2v4.296h2Zm-.446-3.463 8.727-5.795-1.106-1.666-8.727 5.795 1.106 1.666Zm8.174-5.628h4.227v-2H17.66v2ZM31.834 66.5l.708-.707-.708.707Zm0-3.428-.707-.707.707.707Zm3.428 0 .707-.707-.707.707Zm.378 2.928-.854-.52-.005.008-.004.007.863.505Zm-.877.891.514.858.006-.004-.52-.854Zm-1.215-.676a1.34 1.34 0 0 1-1.006-.422l-1.415 1.414a3.337 3.337 0 0 0 2.421 1.008v-2Zm-1.006-.422a1.34 1.34 0 0 1-.423-1.007h-2c0 .935.347 1.76 1.008 2.42l1.415-1.413Zm-.423-1.007c0-.397.13-.715.423-1.007l-1.415-1.414a3.337 3.337 0 0 0-1.008 2.42h2Zm.423-1.007a1.34 1.34 0 0 1 1.006-.422v-2c-.934 0-1.759.346-2.42 1.008l1.414 1.414Zm1.006-.422c.397 0 .715.13 1.007.422l1.414-1.414a3.337 3.337 0 0 0-2.42-1.008v2Zm1.007.422c.292.292.422.61.422 1.007h2c0-.935-.346-1.76-1.008-2.421l-1.414 1.414Zm.422 1.007c0 .261-.064.485-.19.694l1.707 1.041a3.288 3.288 0 0 0 .483-1.735h-2Zm-.2.71a1.52 1.52 0 0 1-.535.541l1.041 1.708c.509-.31.92-.726 1.22-1.24l-1.726-1.01Zm-.529.538a1.317 1.317 0 0 1-.7.18v2c.618 0 1.203-.15 1.73-.466l-1.03-1.714Zm7.54.965h-1v1h1v-1Zm0-2.557-.738-.674-.261.286v.388h1Zm9.603-10.511-.738-.675.738.675Zm2.784-3.21.78.625.003-.004-.783-.621Zm1.62-2.586-.915-.404-.003.005.917.4Zm-.2-5.213-.84.543.005.007.836-.55Zm-1.988-1.733.435-.9-.435.9Zm-5.767.086.483.875.003-.002-.486-.873Zm-1.918 1.917-.875-.483-.005.008.88.475Zm-.667 2.898v1h1v-1h-1Zm-3.353 0h-1v1h1v-1Zm1.18-4.489.853.521-.854-.52Zm3.21-3.011-.467-.885-.003.002.47.883Zm9.119 0 .48-.877-.48.877Zm3.096 2.912-.852.522.852-.522Zm.54 7.216-.935-.355-.002.005.937.35Zm-1.988 3.395-.797-.604h-.001l.798.604Zm-3.907 4.545.73.683.002-.001-.732-.682Zm-6.534 6.989-.73-.683-.27.288v.395h1Zm0 .227h-1v1h1v-1Zm13.523 0h1v-1h-1v1Zm0 3.125v1h1v-1h-1Zm-17.352 0v-2.557h-2V67h2Zm-.262-1.882 9.602-10.512-1.476-1.349L41.05 63.77l1.477 1.349Zm9.602-10.511a67.671 67.671 0 0 0 2.826-3.26l-1.56-1.251a65.769 65.769 0 0 1-2.742 3.16l1.476 1.351Zm2.83-3.264c.766-.965 1.358-1.901 1.752-2.808l-1.834-.798c-.306.704-.793 1.491-1.485 2.363l1.566 1.243Zm1.75-2.803a7.259 7.259 0 0 0 .625-2.96h-2c0 .75-.15 1.465-.454 2.152l1.83.809Zm.625-2.96c0-1.19-.289-2.273-.903-3.206l-1.67 1.1c.37.562.573 1.25.573 2.106h2Zm-.898-3.2a5.792 5.792 0 0 0-2.394-2.09l-.87 1.8c.686.332 1.205.79 1.583 1.376l1.68-1.085Zm-2.394-2.09c-.994-.48-2.093-.71-3.276-.71v2c.92 0 1.715.177 2.406.51l.87-1.8Zm-3.276-.71c-1.258 0-2.407.262-3.413.822l.973 1.747c.661-.368 1.463-.57 2.44-.57v-2Zm-3.41.82a5.791 5.791 0 0 0-2.31 2.31l1.752.966a3.792 3.792 0 0 1 1.525-1.525l-.966-1.751Zm-2.314 2.318c-.537.994-.787 2.13-.787 3.373h2c0-.973.194-1.77.547-2.422l-1.76-.951Zm.213 2.373h-3.353v2h3.353v-2Zm-2.353 1c0-1.545.355-2.856 1.033-3.968l-1.707-1.042c-.894 1.465-1.326 3.146-1.326 5.01h2Zm1.033-3.968a7.193 7.193 0 0 1 2.826-2.65l-.939-1.765a9.192 9.192 0 0 0-3.594 3.373l1.707 1.042Zm2.823-2.648c1.206-.636 2.573-.964 4.122-.964v-2c-1.842 0-3.534.393-5.055 1.195l.933 1.77Zm4.122-.964c1.56 0 2.901.328 4.051.957l.96-1.755c-1.483-.81-3.162-1.202-5.011-1.202v2Zm4.051.957c1.17.64 2.071 1.492 2.724 2.557l1.705-1.044c-.843-1.378-2.007-2.468-3.47-3.267l-.959 1.754Zm2.724 2.557c.647 1.057.975 2.234.975 3.555h2c0-1.672-.421-3.213-1.27-4.6l-1.705 1.045Zm.975 3.555c0 .946-.172 1.872-.518 2.784l1.87.71c.43-1.134.648-2.3.648-3.494h-2Zm-.52 2.789c-.333.891-.936 1.937-1.849 3.14l1.595 1.209c.981-1.296 1.704-2.514 2.128-3.65l-1.873-.7Zm-1.85 3.142c-.908 1.202-2.185 2.69-3.84 4.467l1.464 1.363c1.679-1.803 3.006-3.346 3.972-4.624l-1.595-1.206Zm-3.838 4.465-6.534 6.989 1.46 1.366 6.535-6.989-1.461-1.366Zm-6.804 7.672v.227h2v-.227h-2Zm1 1.227h13.523v-2H46.618v2Zm12.523-1V67h2v-3.125h-2Zm1 2.125H41.789v2H60.14v-2Zm6.377.5.707-.706-.707.707Zm0-3.427-.707-.707.707.707Zm3.428 0 .707-.707-.707.707Zm.377 2.928-.853-.52-.005.008-.005.007.864.505Zm-.877.891.515.858.006-.004-.52-.854Zm-1.214-.676a1.34 1.34 0 0 1-1.007-.422l-1.414 1.414a3.337 3.337 0 0 0 2.42 1.008v-2Zm-1.007-.422a1.34 1.34 0 0 1-.422-1.007h-2c0 .935.346 1.76 1.008 2.42l1.414-1.413Zm-.422-1.007c0-.397.13-.715.422-1.007l-1.414-1.414a3.337 3.337 0 0 0-1.008 2.42h2Zm.422-1.007a1.34 1.34 0 0 1 1.007-.422v-2c-.935 0-1.76.346-2.421 1.008l1.414 1.414Zm1.007-.422c.397 0 .715.13 1.007.422l1.414-1.414a3.337 3.337 0 0 0-2.421-1.008v2Zm1.007.422c.291.292.422.61.422 1.007h2c0-.935-.347-1.76-1.008-2.421l-1.414 1.414Zm.422 1.007c0 .261-.064.485-.191.694l1.707 1.041a3.288 3.288 0 0 0 .484-1.735h-2Zm-.2.71a1.52 1.52 0 0 1-.535.541l1.041 1.708a3.52 3.52 0 0 0 1.22-1.24l-1.727-1.01Zm-.53.538a1.317 1.317 0 0 1-.7.18v2c.618 0 1.203-.15 1.73-.466l-1.03-1.714Zm10.791.51-.404.915.003.001.401-.915Zm-2.784-2.147-.805.593.006.008.8-.601Zm-1.113-3.216v-1h-1.051l.052 1.05.999-.05Zm2.863 0 .997-.08-.074-.92h-.923v1Zm.773 1.943-.768.64.004.005.764-.645Zm1.784 1.25-.373.928.373-.928Zm6.92-1.534-.816-.578.816.578Zm.023-4.42-.84.54.002.005.838-.546Zm-1.863-1.546-.414.91.414-.91Zm-4.864-.557h-1v1h1v-1Zm0-2.5v-1h-1v1h1Zm4.295-.5-.427-.904-.004.002.431.902Zm1.648-1.409-.834-.552-.004.007.838.545Zm.08-4.193.858-.513-.858.513Zm-1.478-1.364-.46.888.005.002.455-.89Zm-4.5-.045.379.925.005-.002-.384-.923Zm-1.727 1.261.774.634.004-.005-.778-.629Zm-.727 1.977v1h.952l.047-.95-1-.05Zm-2.727 0-1-.037-.038 1.037h1.038v-1Zm1.102-3.204.8.601.001-.003-.801-.598Zm2.704-2.16-.417-.908-.002.001.42.908Zm7.398.103-.493.87.005.003.488-.873Zm2.375 2.284-.863.505.863-.505Zm-.204 6.42-.802-.597-.003.004.805.594Zm-2.785 1.921-.29-.957-.71.215v.742h1Zm0 .182h-1v.849l.838.138.162-.987Zm3.444 1.875-.774.634.003.003.77-.637Zm.204 7.125-.825-.565-.001.002.826.563Zm-2.795 2.364.438.898-.438-.898Zm-4.034-.137c-1.385 0-2.582-.237-3.61-.688l-.803 1.831c1.32.58 2.798.857 4.413.857v-2Zm-3.608-.687c-1.028-.454-1.813-1.07-2.389-1.834l-1.598 1.202c.803 1.068 1.874 1.885 3.18 2.461l.807-1.83Zm-2.383-1.827c-.558-.756-.868-1.636-.92-2.672l-1.997.1c.07 1.403.501 2.667 1.308 3.76l1.609-1.188Zm-1.918-1.622h2.863v-2h-2.863v2Zm1.867-.92c.076.943.406 1.79 1 2.503l1.537-1.28c-.314-.377-.499-.826-.544-1.384l-1.993.161Zm1.005 2.508c.572.678 1.308 1.184 2.175 1.533l.746-1.856c-.603-.242-1.056-.569-1.393-.968l-1.528 1.291Zm2.175 1.533c.868.349 1.81.515 2.816.515v-2c-.782 0-1.468-.129-2.07-.37l-.746 1.855Zm2.816.515c1.117 0 2.147-.195 3.07-.611l-.822-1.823c-.622.28-1.364.434-2.248.434v2Zm3.07-.611c.917-.413 1.67-1.006 2.224-1.789l-1.633-1.155c-.325.46-.784.837-1.413 1.12l.822 1.824Zm2.224-1.789c.568-.803.843-1.728.843-2.736h-2c0 .628-.165 1.142-.476 1.581l1.633 1.155Zm.843-2.736c0-1.03-.258-1.977-.799-2.807l-1.676 1.091c.308.473.475 1.033.475 1.716h2Zm-.796-2.803c-.543-.843-1.324-1.476-2.291-1.915l-.827 1.822c.67.303 1.13.701 1.436 1.176l1.682-1.083Zm-2.291-1.915c-.982-.445-2.132-.646-3.413-.646v2c1.082 0 1.932.17 2.586.468l.827-1.822Zm-3.413-.646H81.46v2h1.864v-2Zm-.864 1v-2.5h-2v2.5h2Zm-1-1.5h1.864v-2H81.46v2Zm1.864 0c1.044 0 2.007-.188 2.863-.598l-.863-1.804c-.538.258-1.197.402-2 .402v2Zm2.86-.596c.858-.406 1.555-.994 2.058-1.768l-1.677-1.09c-.285.439-.687.79-1.237 1.05l.855 1.808Zm2.053-1.76c.523-.79.768-1.7.768-2.69h-2c0 .648-.156 1.163-.436 1.585l1.668 1.104Zm.768-2.69c0-.938-.209-1.807-.664-2.569l-1.717 1.026c.242.405.381.907.381 1.544h2Zm-.664-2.569a4.575 4.575 0 0 0-1.88-1.74l-.911 1.78c.478.244.827.572 1.074.986l1.717-1.026Zm-1.876-1.739c-.797-.413-1.704-.6-2.687-.6v2c.73 0 1.308.138 1.767.376l.92-1.776Zm-2.687-.6a6.87 6.87 0 0 0-2.656.52l.767 1.846a4.87 4.87 0 0 1 1.89-.366v-2Zm-2.65.517A5.232 5.232 0 0 0 79 46.94l1.556 1.257a3.234 3.234 0 0 1 1.328-.965l-.757-1.85Zm-2.123 1.553c-.596.728-.906 1.598-.953 2.563l1.998.097c.028-.58.204-1.029.502-1.392l-1.547-1.268Zm.046 1.611h-2.727v2h2.727v-2Zm-1.728 1.038c.038-1.03.343-1.898.902-2.641l-1.598-1.202c-.82 1.09-1.25 2.358-1.303 3.768l1.999.075Zm.904-2.644c.584-.782 1.35-1.4 2.323-1.85l-.84-1.815c-1.254.58-2.29 1.403-3.086 2.469l1.603 1.196Zm2.32-1.849c.98-.45 2.067-.68 3.277-.68v-2c-1.473 0-2.848.283-4.111.863l.835 1.817Zm3.277-.68c1.303 0 2.36.263 3.211.744l.986-1.74c-1.21-.685-2.622-1.005-4.197-1.005v2Zm3.216.747c.887.496 1.544 1.135 2 1.916l1.727-1.01c-.65-1.112-1.577-1.996-2.751-2.652l-.976 1.746Zm2 1.916a4.98 4.98 0 0 1 .693 2.563h2a6.98 6.98 0 0 0-.966-3.572l-1.727 1.008Zm.693 2.563c0 1.126-.293 2.026-.836 2.755l1.603 1.196c.836-1.12 1.233-2.455 1.233-3.95h-2Zm-.84 2.759c-.544.739-1.286 1.259-2.269 1.557l.58 1.914c1.366-.414 2.48-1.174 3.3-2.284l-1.61-1.187Zm-2.979 2.514v.182h2v-.182h-2Zm.838 1.169c1.266.208 2.182.729 2.832 1.522l1.547-1.268c-1.002-1.222-2.381-1.952-4.054-2.228l-.325 1.974Zm2.835 1.525c.657.796 1.01 1.8 1.01 3.079h2c0-1.676-.474-3.149-1.468-4.353l-1.542 1.274Zm1.01 3.079c0 1.071-.289 2.01-.86 2.844l1.65 1.13c.808-1.18 1.21-2.515 1.21-3.974h-2Zm-.861 2.846c-.575.844-1.368 1.521-2.407 2.028l.876 1.797c1.324-.645 2.395-1.543 3.183-2.699l-1.652-1.126Zm-2.407 2.028c-1.027.5-2.218.762-3.596.762v2c1.637 0 3.135-.313 4.472-.965l-.876-1.797Z"},null,-1)];function hc(t,e){return S(),B("svg",MN,yN)}const RN=Object.freeze(Object.defineProperty({__proto__:null,render:hc,default:{render:hc}},Symbol.toStringTag,{value:"Module"})),AN={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 214.27 214.27"},kN=[R("path",{d:"M196.926 55.171c-.11-5.785-.215-11.25-.215-16.537a7.5 7.5 0 0 0-7.5-7.5c-32.075 0-56.496-9.218-76.852-29.01a7.498 7.498 0 0 0-10.457 0c-20.354 19.792-44.771 29.01-76.844 29.01a7.5 7.5 0 0 0-7.5 7.5c0 5.288-.104 10.755-.215 16.541-1.028 53.836-2.436 127.567 87.331 158.682a7.495 7.495 0 0 0 4.912 0c89.774-31.116 88.368-104.849 87.34-158.686zm-89.795 143.641c-76.987-27.967-75.823-89.232-74.79-143.351.062-3.248.122-6.396.164-9.482 30.04-1.268 54.062-10.371 74.626-28.285 20.566 17.914 44.592 27.018 74.634 28.285.042 3.085.102 6.231.164 9.477 1.032 54.121 2.195 115.388-74.798 143.356z"},null,-1),R("path",{d:"m132.958 81.082-36.199 36.197-15.447-15.447a7.501 7.501 0 0 0-10.606 10.607l20.75 20.75a7.477 7.477 0 0 0 5.303 2.196 7.477 7.477 0 0 0 5.303-2.196l41.501-41.5a7.498 7.498 0 0 0 .001-10.606 7.5 7.5 0 0 0-10.606-.001z"},null,-1)];function dc(t,e){return S(),B("svg",AN,kN)}const ZN=Object.freeze(Object.defineProperty({__proto__:null,render:dc,default:{render:dc}},Symbol.toStringTag,{value:"Module"})),TN={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",fill:"none",viewBox:"0 0 20 20"},SN=[R("circle",{cx:"10",cy:"10",r:"10",fill:"#4f8cf7","fill-opacity":".2",class:"text-base"},null,-1),R("path",{stroke:"#4f8cf7","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"m6 10 3 3 5-5"},null,-1)];function fc(t,e){return S(),B("svg",TN,SN)}const bN=Object.freeze(Object.defineProperty({__proto__:null,render:fc,default:{render:fc}},Symbol.toStringTag,{value:"Module"})),EN={xmlns:"http://www.w3.org/2000/svg",class:"grayscale h-4 w-4",viewBox:"0 0 1024 1024"},IN=[R("path",{fill:"currentColor",d:"M42.667 512C42.667 251.733 251.733 42.667 512 42.667s469.333 187.733 469.333 422.4c0 72.533-29.866 145.066-81.066 200.533-51.2 51.2-123.734 81.067-200.534 81.067H614.4c-12.8 0-25.6 12.8-29.867 25.6 0 8.533 4.267 17.066 8.534 21.333 21.333 21.333 29.866 46.933 29.866 76.8 0 64-51.2 110.933-115.2 115.2-256-4.267-465.066-213.333-465.066-473.6zM128 512c0 213.333 170.667 384 384 384 17.067 0 29.867-12.8 29.867-29.867 0-4.266 0-8.533-4.267-12.8l-4.267-4.266c-17.066-21.334-25.6-46.934-29.866-76.8 0-64 51.2-110.934 115.2-110.934H704c51.2 0 102.4-21.333 136.533-55.466 38.4-38.4 55.467-85.334 55.467-136.534C896 281.6 725.333 128 512 128S128 298.667 128 512zm593.067 21.333c-21.334-21.333-25.6-51.2-17.067-76.8 12.8-25.6 38.4-42.666 64-42.666 38.4 0 68.267 34.133 72.533 72.533 0 29.867-17.066 55.467-42.666 64-8.534 4.267-17.067 4.267-25.6 4.267-17.067 0-38.4-8.534-51.2-21.334zm-520.534 0c-21.333-21.333-25.6-51.2-17.066-76.8 12.8-25.6 38.4-42.666 64-42.666 38.4 0 68.266 34.133 72.533 72.533 0 29.867-17.067 55.467-42.667 64-8.533 4.267-17.066 4.267-25.6 4.267-21.333 0-38.4-8.534-51.2-21.334zM580.267 345.6c-21.334-21.333-25.6-51.2-17.067-76.8 12.8-25.6 38.4-42.667 64-42.667 38.4 0 68.267 34.134 72.533 72.534 0 29.866-17.066 55.466-42.666 64-8.534 4.266-17.067 4.266-25.6 4.266-21.334 0-38.4-8.533-51.2-21.333zm-238.934 0c-17.066-21.333-25.6-51.2-12.8-76.8 12.8-25.6 38.4-42.667 64-42.667 38.4 0 68.267 34.134 72.534 72.534 0 29.866-17.067 55.466-42.667 64l-29.867 4.266c-17.066 0-34.133-8.533-51.2-21.333z"},null,-1)];function gc(t,e){return S(),B("svg",EN,IN)}const ON=Object.freeze(Object.defineProperty({__proto__:null,render:gc,default:{render:gc}},Symbol.toStringTag,{value:"Module"})),FN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},NN=[R("path",{fill:"currentColor",d:"M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512zm0-938.667C276.352 85.333 85.333 276.352 85.333 512S276.352 938.667 512 938.667 938.667 747.648 938.667 512A426.667 426.667 0 0 0 512 85.333zM512 768a42.667 42.667 0 0 1-42.368-42.667V469.76a42.368 42.368 0 1 1 84.693 0v255.573A42.41 42.41 0 0 1 512 768zm0-426.667a42.325 42.325 0 1 1-.085-84.65 42.325 42.325 0 0 1 .085 84.65zm42.325-42.666z"},null,-1)];function pc(t,e){return S(),B("svg",FN,NN)}const DN=Object.freeze(Object.defineProperty({__proto__:null,render:pc,default:{render:pc}},Symbol.toStringTag,{value:"Module"})),PN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},BN=[R("path",{fill:"currentColor",d:"M945.067 898.133 755.2 708.267c55.467-64 87.467-149.334 87.467-241.067 0-204.8-168.534-373.333-373.334-373.333S96 264.533 96 469.333s168.533 373.334 373.333 373.334c91.734 0 174.934-34.134 241.067-87.467l189.867 189.867c6.4 6.4 14.933 8.533 23.466 8.533s17.067-2.133 23.467-8.533c8.533-12.8 8.533-34.134-2.133-46.934zM469.333 778.667C298.667 778.667 160 640 160 469.333S298.667 160 469.333 160s309.334 138.667 309.334 309.333S640 778.667 469.333 778.667z"},null,-1),R("path",{fill:"currentColor",d:"M597.333 437.333h-96v-96c0-17.066-14.933-32-32-32s-32 14.934-32 32v96h-96c-17.066 0-32 14.934-32 32s14.934 32 32 32h96v96c0 17.067 14.934 32 32 32s32-14.933 32-32v-96h96c17.067 0 32-14.933 32-32s-14.933-32-32-32z"},null,-1)];function mc(t,e){return S(),B("svg",PN,BN)}const zN=Object.freeze(Object.defineProperty({__proto__:null,render:mc,default:{render:mc}},Symbol.toStringTag,{value:"Module"})),UN={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},WN=[R("path",{fill:"currentColor",d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"},null,-1),R("path",{fill:"currentColor",d:"M921 867 775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"},null,-1)];function wc(t,e){return S(),B("svg",UN,WN)}const HN=Object.freeze(Object.defineProperty({__proto__:null,render:wc,default:{render:wc}},Symbol.toStringTag,{value:"Module"})),xc=["top","right","bottom","left"],vc=["start","end"],_c=xc.reduce((t,e)=>t.concat(e,e+"-"+vc[0],e+"-"+vc[1]),[]),Z3=Math.min,W1=Math.max,$7=Math.round,V7=Math.floor,t9=t=>({x:t,y:t}),$N={left:"right",right:"left",bottom:"top",top:"bottom"},VN={start:"end",end:"start"};function Un(t,e,n){return W1(t,Z3(e,n))}function $3(t,e){return typeof t=="function"?t(e):t}function T3(t){return t.split("-")[0]}function V3(t){return t.split("-")[1]}function Wn(t){return t==="x"?"y":"x"}function Hn(t){return t==="y"?"height":"width"}function N9(t){return["top","bottom"].includes(T3(t))?"y":"x"}function $n(t){return Wn(N9(t))}function Mc(t,e,n){n===void 0&&(n=!1);const i=V3(t),s=$n(t),r=Hn(s);let o=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(o=j7(o)),[o,j7(o)]}function GN(t){const e=j7(t);return[G7(t),e,G7(e)]}function G7(t){return t.replace(/start|end/g,e=>VN[e])}function jN(t,e,n){const i=["left","right"],s=["right","left"],r=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return n?e?s:i:e?i:s;case"left":case"right":return e?r:o;default:return[]}}function qN(t,e,n,i){const s=V3(t);let r=jN(T3(t),n==="start",i);return s&&(r=r.map(o=>o+"-"+s),e&&(r=r.concat(r.map(G7)))),r}function j7(t){return t.replace(/left|right|bottom|top/g,e=>$N[e])}function KN(t){return{top:0,right:0,bottom:0,left:0,...t}}function Vn(t){return typeof t!="number"?KN(t):{top:t,right:t,bottom:t,left:t}}function R0(t){const{x:e,y:n,width:i,height:s}=t;return{width:i,height:s,top:n,left:e,right:e+i,bottom:n+s,x:e,y:n}}function yc(t,e,n){let{reference:i,floating:s}=t;const r=N9(e),o=$n(e),l=Hn(o),L=T3(e),a=r==="y",c=i.x+i.width/2-s.width/2,C=i.y+i.height/2-s.height/2,u=i[l]/2-s[l]/2;let h;switch(L){case"top":h={x:c,y:i.y-s.height};break;case"bottom":h={x:c,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:C};break;case"left":h={x:i.x-s.width,y:C};break;default:h={x:i.x,y:i.y}}switch(V3(e)){case"start":h[o]-=u*(n&&a?-1:1);break;case"end":h[o]+=u*(n&&a?-1:1);break}return h}const YN=async(t,e,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:r=[],platform:o}=n,l=r.filter(Boolean),L=await(o.isRTL==null?void 0:o.isRTL(e));let a=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:c,y:C}=yc(a,i,L),u=i,h={},f=0;for(let w=0;w<l.length;w++){const{name:v,fn:p}=l[w],{x:g,y:m,data:_,reset:Z}=await p({x:c,y:C,initialPlacement:i,placement:u,strategy:s,middlewareData:h,rects:a,platform:o,elements:{reference:t,floating:e}});c=g!=null?g:c,C=m!=null?m:C,h={...h,[v]:{...h[v],..._}},Z&&f<=50&&(f++,typeof Z=="object"&&(Z.placement&&(u=Z.placement),Z.rects&&(a=Z.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):Z.rects),{x:c,y:C}=yc(a,u,L)),w=-1)}return{x:c,y:C,placement:u,strategy:s,middlewareData:h}};async function A0(t,e){var n;e===void 0&&(e={});const{x:i,y:s,platform:r,rects:o,elements:l,strategy:L}=t,{boundary:a="clippingAncestors",rootBoundary:c="viewport",elementContext:C="floating",altBoundary:u=!1,padding:h=0}=$3(e,t),f=Vn(h),v=l[u?C==="floating"?"reference":"floating":C],p=R0(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(v)))==null||n?v:v.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(l.floating)),boundary:a,rootBoundary:c,strategy:L})),g=C==="floating"?{x:i,y:s,width:o.floating.width,height:o.floating.height}:o.reference,m=await(r.getOffsetParent==null?void 0:r.getOffsetParent(l.floating)),_=await(r.isElement==null?void 0:r.isElement(m))?await(r.getScale==null?void 0:r.getScale(m))||{x:1,y:1}:{x:1,y:1},Z=R0(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:m,strategy:L}):g);return{top:(p.top-Z.top+f.top)/_.y,bottom:(Z.bottom-p.bottom+f.bottom)/_.y,left:(p.left-Z.left+f.left)/_.x,right:(Z.right-p.right+f.right)/_.x}}const XN=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:s,rects:r,platform:o,elements:l,middlewareData:L}=e,{element:a,padding:c=0}=$3(t,e)||{};if(a==null)return{};const C=Vn(c),u={x:n,y:i},h=$n(s),f=Hn(h),w=await o.getDimensions(a),v=h==="y",p=v?"top":"left",g=v?"bottom":"right",m=v?"clientHeight":"clientWidth",_=r.reference[f]+r.reference[h]-u[h]-r.floating[f],Z=u[h]-r.reference[h],E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a));let k=E?E[m]:0;(!k||!await(o.isElement==null?void 0:o.isElement(E)))&&(k=l.floating[m]||r.floating[f]);const b=_/2-Z/2,V=k/2-w[f]/2-1,D=Z3(C[p],V),t2=Z3(C[g],V),h2=D,L2=k-w[f]-t2,X=k/2-w[f]/2+b,q=Un(h2,X,L2),z=!L.arrow&&V3(s)!=null&&X!==q&&r.reference[f]/2-(X<h2?D:t2)-w[f]/2<0,n2=z?X<h2?X-h2:X-L2:0;return{[h]:u[h]+n2,data:{[h]:q,centerOffset:X-q-n2,...z&&{alignmentOffset:n2}},reset:z}}});function QN(t,e,n){return(t?[...n.filter(s=>V3(s)===t),...n.filter(s=>V3(s)!==t)]:n.filter(s=>T3(s)===s)).filter(s=>t?V3(s)===t||(e?G7(s)!==s:!1):!0)}const JN=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,i,s;const{rects:r,middlewareData:o,placement:l,platform:L,elements:a}=e,{crossAxis:c=!1,alignment:C,allowedPlacements:u=_c,autoAlignment:h=!0,...f}=$3(t,e),w=C!==void 0||u===_c?QN(C||null,h,u):u,v=await A0(e,f),p=((n=o.autoPlacement)==null?void 0:n.index)||0,g=w[p];if(g==null)return{};const m=Mc(g,r,await(L.isRTL==null?void 0:L.isRTL(a.floating)));if(l!==g)return{reset:{placement:w[0]}};const _=[v[T3(g)],v[m[0]],v[m[1]]],Z=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:g,overflows:_}],E=w[p+1];if(E)return{data:{index:p+1,overflows:Z},reset:{placement:E}};const k=Z.map(D=>{const t2=V3(D.placement);return[D.placement,t2&&c?D.overflows.slice(0,2).reduce((h2,L2)=>h2+L2,0):D.overflows[0],D.overflows]}).sort((D,t2)=>D[1]-t2[1]),V=((s=k.filter(D=>D[2].slice(0,V3(D[0])?2:3).every(t2=>t2<=0))[0])==null?void 0:s[0])||k[0][0];return V!==l?{data:{index:p+1,overflows:Z},reset:{placement:V}}:{}}}},eD=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:s,middlewareData:r,rects:o,initialPlacement:l,platform:L,elements:a}=e,{mainAxis:c=!0,crossAxis:C=!0,fallbackPlacements:u,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:w=!0,...v}=$3(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const p=T3(s),g=T3(l)===l,m=await(L.isRTL==null?void 0:L.isRTL(a.floating)),_=u||(g||!w?[j7(l)]:GN(l));!u&&f!=="none"&&_.push(...qN(l,w,f,m));const Z=[l,..._],E=await A0(e,v),k=[];let b=((i=r.flip)==null?void 0:i.overflows)||[];if(c&&k.push(E[p]),C){const h2=Mc(s,o,m);k.push(E[h2[0]],E[h2[1]])}if(b=[...b,{placement:s,overflows:k}],!k.every(h2=>h2<=0)){var V,D;const h2=(((V=r.flip)==null?void 0:V.index)||0)+1,L2=Z[h2];if(L2)return{data:{index:h2,overflows:b},reset:{placement:L2}};let X=(D=b.filter(q=>q.overflows[0]<=0).sort((q,z)=>q.overflows[1]-z.overflows[1])[0])==null?void 0:D.placement;if(!X)switch(h){case"bestFit":{var t2;const q=(t2=b.map(z=>[z.placement,z.overflows.filter(n2=>n2>0).reduce((n2,x2)=>n2+x2,0)]).sort((z,n2)=>z[1]-n2[1])[0])==null?void 0:t2[0];q&&(X=q);break}case"initialPlacement":X=l;break}if(s!==X)return{reset:{placement:X}}}return{}}}};function Rc(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Ac(t){return xc.some(e=>t[e]>=0)}const tD=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:i="referenceHidden",...s}=$3(t,e);switch(i){case"referenceHidden":{const r=await A0(e,{...s,elementContext:"reference"}),o=Rc(r,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Ac(o)}}}case"escaped":{const r=await A0(e,{...s,altBoundary:!0}),o=Rc(r,n.floating);return{data:{escapedOffsets:o,escaped:Ac(o)}}}default:return{}}}}};function kc(t){const e=Z3(...t.map(r=>r.left)),n=Z3(...t.map(r=>r.top)),i=W1(...t.map(r=>r.right)),s=W1(...t.map(r=>r.bottom));return{x:e,y:n,width:i-e,height:s-n}}function nD(t){const e=t.slice().sort((s,r)=>s.y-r.y),n=[];let i=null;for(let s=0;s<e.length;s++){const r=e[s];!i||r.y-i.y>i.height/2?n.push([r]):n[n.length-1].push(r),i=r}return n.map(s=>R0(kc(s)))}const iD=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:i,rects:s,platform:r,strategy:o}=e,{padding:l=2,x:L,y:a}=$3(t,e),c=Array.from(await(r.getClientRects==null?void 0:r.getClientRects(i.reference))||[]),C=nD(c),u=R0(kc(c)),h=Vn(l);function f(){if(C.length===2&&C[0].left>C[1].right&&L!=null&&a!=null)return C.find(v=>L>v.left-h.left&&L<v.right+h.right&&a>v.top-h.top&&a<v.bottom+h.bottom)||u;if(C.length>=2){if(N9(n)==="y"){const D=C[0],t2=C[C.length-1],h2=T3(n)==="top",L2=D.top,X=t2.bottom,q=h2?D.left:t2.left,z=h2?D.right:t2.right,n2=z-q,x2=X-L2;return{top:L2,bottom:X,left:q,right:z,width:n2,height:x2,x:q,y:L2}}const v=T3(n)==="left",p=W1(...C.map(D=>D.right)),g=Z3(...C.map(D=>D.left)),m=C.filter(D=>v?D.left===g:D.right===p),_=m[0].top,Z=m[m.length-1].bottom,E=g,k=p,b=k-E,V=Z-_;return{top:_,bottom:Z,left:E,right:k,width:b,height:V,x:E,y:_}}return u}const w=await r.getElementRects({reference:{getBoundingClientRect:f},floating:i.floating,strategy:o});return s.reference.x!==w.reference.x||s.reference.y!==w.reference.y||s.reference.width!==w.reference.width||s.reference.height!==w.reference.height?{reset:{rects:w}}:{}}}};async function sD(t,e){const{placement:n,platform:i,elements:s}=t,r=await(i.isRTL==null?void 0:i.isRTL(s.floating)),o=T3(n),l=V3(n),L=N9(n)==="y",a=["left","top"].includes(o)?-1:1,c=r&&L?-1:1,C=$3(e,t);let{mainAxis:u,crossAxis:h,alignmentAxis:f}=typeof C=="number"?{mainAxis:C,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...C};return l&&typeof f=="number"&&(h=l==="end"?f*-1:f),L?{x:h*c,y:u*a}:{x:u*a,y:h*c}}const rD=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:s,y:r,placement:o,middlewareData:l}=e,L=await sD(e,t);return o===((n=l.offset)==null?void 0:n.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:s+L.x,y:r+L.y,data:{...L,placement:o}}}}},oD=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:s}=e,{mainAxis:r=!0,crossAxis:o=!1,limiter:l={fn:v=>{let{x:p,y:g}=v;return{x:p,y:g}}},...L}=$3(t,e),a={x:n,y:i},c=await A0(e,L),C=N9(T3(s)),u=Wn(C);let h=a[u],f=a[C];if(r){const v=u==="y"?"top":"left",p=u==="y"?"bottom":"right",g=h+c[v],m=h-c[p];h=Un(g,h,m)}if(o){const v=C==="y"?"top":"left",p=C==="y"?"bottom":"right",g=f+c[v],m=f-c[p];f=Un(g,f,m)}const w=l.fn({...e,[u]:h,[C]:f});return{...w,data:{x:w.x-n,y:w.y-i}}}}},lD=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:i,placement:s,rects:r,middlewareData:o}=e,{offset:l=0,mainAxis:L=!0,crossAxis:a=!0}=$3(t,e),c={x:n,y:i},C=N9(s),u=Wn(C);let h=c[u],f=c[C];const w=$3(l,e),v=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(L){const m=u==="y"?"height":"width",_=r.reference[u]-r.floating[m]+v.mainAxis,Z=r.reference[u]+r.reference[m]-v.mainAxis;h<_?h=_:h>Z&&(h=Z)}if(a){var p,g;const m=u==="y"?"width":"height",_=["top","left"].includes(T3(s)),Z=r.reference[C]-r.floating[m]+(_&&((p=o.offset)==null?void 0:p[C])||0)+(_?0:v.crossAxis),E=r.reference[C]+r.reference[m]+(_?0:((g=o.offset)==null?void 0:g[C])||0)-(_?v.crossAxis:0);f<Z?f=Z:f>E&&(f=E)}return{[u]:h,[C]:f}}}},LD=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:i,platform:s,elements:r}=e,{apply:o=()=>{},...l}=$3(t,e),L=await A0(e,l),a=T3(n),c=V3(n),C=N9(n)==="y",{width:u,height:h}=i.floating;let f,w;a==="top"||a==="bottom"?(f=a,w=c===(await(s.isRTL==null?void 0:s.isRTL(r.floating))?"start":"end")?"left":"right"):(w=a,f=c==="end"?"top":"bottom");const v=h-L.top-L.bottom,p=u-L.left-L.right,g=Z3(h-L[f],v),m=Z3(u-L[w],p),_=!e.middlewareData.shift;let Z=g,E=m;if(C?E=c||_?Z3(m,p):p:Z=c||_?Z3(g,v):v,_&&!c){const b=W1(L.left,0),V=W1(L.right,0),D=W1(L.top,0),t2=W1(L.bottom,0);C?E=u-2*(b!==0||V!==0?b+V:W1(L.left,L.right)):Z=h-2*(D!==0||t2!==0?D+t2:W1(L.top,L.bottom))}await o({...e,availableWidth:E,availableHeight:Z});const k=await s.getDimensions(r.floating);return u!==k.width||h!==k.height?{reset:{rects:!0}}:{}}}};function k0(t){return Zc(t)?(t.nodeName||"").toLowerCase():"#document"}function S3(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function b4(t){var e;return(e=(Zc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Zc(t){return t instanceof Node||t instanceof S3(t).Node}function u4(t){return t instanceof Element||t instanceof S3(t).Element}function h4(t){return t instanceof HTMLElement||t instanceof S3(t).HTMLElement}function Tc(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof S3(t).ShadowRoot}function B5(t){const{overflow:e,overflowX:n,overflowY:i,display:s}=G3(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(s)}function aD(t){return["table","td","th"].includes(k0(t))}function Gn(t){const e=jn(),n=G3(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function cD(t){let e=n9(t);for(;h4(e)&&!Z0(e);){if(Gn(e))return e;e=n9(e)}return null}function jn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Z0(t){return["html","body","#document"].includes(k0(t))}function G3(t){return S3(t).getComputedStyle(t)}function q7(t){return u4(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function n9(t){if(k0(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Tc(t)&&t.host||b4(t);return Tc(e)?e.host:e}function Sc(t){const e=n9(t);return Z0(e)?t.ownerDocument?t.ownerDocument.body:t.body:h4(e)&&B5(e)?e:Sc(e)}function z5(t,e,n){var i;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=Sc(t),r=s===((i=t.ownerDocument)==null?void 0:i.body),o=S3(s);return r?e.concat(o,o.visualViewport||[],B5(s)?s:[],o.frameElement&&n?z5(o.frameElement):[]):e.concat(s,z5(s,[],n))}function bc(t){const e=G3(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const s=h4(t),r=s?t.offsetWidth:n,o=s?t.offsetHeight:i,l=$7(n)!==r||$7(i)!==o;return l&&(n=r,i=o),{width:n,height:i,$:l}}function qn(t){return u4(t)?t:t.contextElement}function T0(t){const e=qn(t);if(!h4(e))return t9(1);const n=e.getBoundingClientRect(),{width:i,height:s,$:r}=bc(e);let o=(r?$7(n.width):n.width)/i,l=(r?$7(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const CD=t9(0);function Ec(t){const e=S3(t);return!jn()||!e.visualViewport?CD:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function uD(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==S3(t)?!1:e}function D9(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),r=qn(t);let o=t9(1);e&&(i?u4(i)&&(o=T0(i)):o=T0(t));const l=uD(r,n,i)?Ec(r):t9(0);let L=(s.left+l.x)/o.x,a=(s.top+l.y)/o.y,c=s.width/o.x,C=s.height/o.y;if(r){const u=S3(r),h=i&&u4(i)?S3(i):i;let f=u,w=f.frameElement;for(;w&&i&&h!==f;){const v=T0(w),p=w.getBoundingClientRect(),g=G3(w),m=p.left+(w.clientLeft+parseFloat(g.paddingLeft))*v.x,_=p.top+(w.clientTop+parseFloat(g.paddingTop))*v.y;L*=v.x,a*=v.y,c*=v.x,C*=v.y,L+=m,a+=_,f=S3(w),w=f.frameElement}}return R0({width:c,height:C,x:L,y:a})}const hD=[":popover-open",":modal"];function Kn(t){return hD.some(e=>{try{return t.matches(e)}catch{return!1}})}function dD(t){let{elements:e,rect:n,offsetParent:i,strategy:s}=t;const r=s==="fixed",o=b4(i),l=e?Kn(e.floating):!1;if(i===o||l&&r)return n;let L={scrollLeft:0,scrollTop:0},a=t9(1);const c=t9(0),C=h4(i);if((C||!C&&!r)&&((k0(i)!=="body"||B5(o))&&(L=q7(i)),h4(i))){const u=D9(i);a=T0(i),c.x=u.x+i.clientLeft,c.y=u.y+i.clientTop}return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-L.scrollLeft*a.x+c.x,y:n.y*a.y-L.scrollTop*a.y+c.y}}function fD(t){return Array.from(t.getClientRects())}function Ic(t){return D9(b4(t)).left+q7(t).scrollLeft}function gD(t){const e=b4(t),n=q7(t),i=t.ownerDocument.body,s=W1(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=W1(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let o=-n.scrollLeft+Ic(t);const l=-n.scrollTop;return G3(i).direction==="rtl"&&(o+=W1(e.clientWidth,i.clientWidth)-s),{width:s,height:r,x:o,y:l}}function pD(t,e){const n=S3(t),i=b4(t),s=n.visualViewport;let r=i.clientWidth,o=i.clientHeight,l=0,L=0;if(s){r=s.width,o=s.height;const a=jn();(!a||a&&e==="fixed")&&(l=s.offsetLeft,L=s.offsetTop)}return{width:r,height:o,x:l,y:L}}function mD(t,e){const n=D9(t,!0,e==="fixed"),i=n.top+t.clientTop,s=n.left+t.clientLeft,r=h4(t)?T0(t):t9(1),o=t.clientWidth*r.x,l=t.clientHeight*r.y,L=s*r.x,a=i*r.y;return{width:o,height:l,x:L,y:a}}function Oc(t,e,n){let i;if(e==="viewport")i=pD(t,n);else if(e==="document")i=gD(b4(t));else if(u4(e))i=mD(e,n);else{const s=Ec(t);i={...e,x:e.x-s.x,y:e.y-s.y}}return R0(i)}function Fc(t,e){const n=n9(t);return n===e||!u4(n)||Z0(n)?!1:G3(n).position==="fixed"||Fc(n,e)}function wD(t,e){const n=e.get(t);if(n)return n;let i=z5(t,[],!1).filter(l=>u4(l)&&k0(l)!=="body"),s=null;const r=G3(t).position==="fixed";let o=r?n9(t):t;for(;u4(o)&&!Z0(o);){const l=G3(o),L=Gn(o);!L&&l.position==="fixed"&&(s=null),(r?!L&&!s:!L&&l.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||B5(o)&&!L&&Fc(t,o))?i=i.filter(c=>c!==o):s=l,o=n9(o)}return e.set(t,i),i}function xD(t){let{element:e,boundary:n,rootBoundary:i,strategy:s}=t;const o=[...n==="clippingAncestors"?Kn(e)?[]:wD(e,this._c):[].concat(n),i],l=o[0],L=o.reduce((a,c)=>{const C=Oc(e,c,s);return a.top=W1(C.top,a.top),a.right=Z3(C.right,a.right),a.bottom=Z3(C.bottom,a.bottom),a.left=W1(C.left,a.left),a},Oc(e,l,s));return{width:L.right-L.left,height:L.bottom-L.top,x:L.left,y:L.top}}function vD(t){const{width:e,height:n}=bc(t);return{width:e,height:n}}function _D(t,e,n){const i=h4(e),s=b4(e),r=n==="fixed",o=D9(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const L=t9(0);if(i||!i&&!r)if((k0(e)!=="body"||B5(s))&&(l=q7(e)),i){const C=D9(e,!0,r,e);L.x=C.x+e.clientLeft,L.y=C.y+e.clientTop}else s&&(L.x=Ic(s));const a=o.left+l.scrollLeft-L.x,c=o.top+l.scrollTop-L.y;return{x:a,y:c,width:o.width,height:o.height}}function Yn(t){return G3(t).position==="static"}function Nc(t,e){return!h4(t)||G3(t).position==="fixed"?null:e?e(t):t.offsetParent}function Dc(t,e){const n=S3(t);if(Kn(t))return n;if(!h4(t)){let s=n9(t);for(;s&&!Z0(s);){if(u4(s)&&!Yn(s))return s;s=n9(s)}return n}let i=Nc(t,e);for(;i&&aD(i)&&Yn(i);)i=Nc(i,e);return i&&Z0(i)&&Yn(i)&&!Gn(i)?n:i||cD(t)||n}const MD=async function(t){const e=this.getOffsetParent||Dc,n=this.getDimensions,i=await n(t.floating);return{reference:_D(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function yD(t){return G3(t).direction==="rtl"}const RD={convertOffsetParentRelativeRectToViewportRelativeRect:dD,getDocumentElement:b4,getClippingRect:xD,getOffsetParent:Dc,getElementRects:MD,getClientRects:fD,getDimensions:vD,getScale:T0,isElement:u4,isRTL:yD};function AD(t,e){let n=null,i;const s=b4(t);function r(){var l;clearTimeout(i),(l=n)==null||l.disconnect(),n=null}function o(l,L){l===void 0&&(l=!1),L===void 0&&(L=1),r();const{left:a,top:c,width:C,height:u}=t.getBoundingClientRect();if(l||e(),!C||!u)return;const h=V7(c),f=V7(s.clientWidth-(a+C)),w=V7(s.clientHeight-(c+u)),v=V7(a),g={rootMargin:-h+"px "+-f+"px "+-w+"px "+-v+"px",threshold:W1(0,Z3(1,L))||1};let m=!0;function _(Z){const E=Z[0].intersectionRatio;if(E!==L){if(!m)return o();E?o(!1,E):i=setTimeout(()=>{o(!1,1e-7)},1e3)}m=!1}try{n=new IntersectionObserver(_,{...g,root:s.ownerDocument})}catch{n=new IntersectionObserver(_,g)}n.observe(t)}return o(!0),r}function kD(t,e,n,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:r=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:L=!1}=i,a=qn(t),c=s||r?[...a?z5(a):[],...z5(e)]:[];c.forEach(p=>{s&&p.addEventListener("scroll",n,{passive:!0}),r&&p.addEventListener("resize",n)});const C=a&&l?AD(a,n):null;let u=-1,h=null;o&&(h=new ResizeObserver(p=>{let[g]=p;g&&g.target===a&&h&&(h.unobserve(e),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var m;(m=h)==null||m.observe(e)})),n()}),a&&!L&&h.observe(a),h.observe(e));let f,w=L?D9(t):null;L&&v();function v(){const p=D9(t);w&&(p.x!==w.x||p.y!==w.y||p.width!==w.width||p.height!==w.height)&&n(),w=p,f=requestAnimationFrame(v)}return n(),()=>{var p;c.forEach(g=>{s&&g.removeEventListener("scroll",n),r&&g.removeEventListener("resize",n)}),C==null||C(),(p=h)==null||p.disconnect(),h=null,L&&cancelAnimationFrame(f)}}const ZD=rD,TD=JN,SD=oD,bD=eD,ED=tD,ID=XN,OD=(t,e,n)=>{const i=new Map,s={platform:RD,...n},r={...s.platform,_c:i};return YN(t,e,{...s,platform:r})};function FD(t){return Pc(t)?(t.nodeName||"").toLowerCase():"#document"}function ND(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Pc(t){return t instanceof Node||t instanceof ND(t).Node}function DD(t){return t!=null&&typeof t=="object"&&"$el"in t}function Xn(t){if(DD(t)){const e=t.$el;return Pc(e)&&FD(e)==="#comment"?null:e}return t}function PD(t){return{name:"arrow",options:t,fn(e){const n=Xn(N(t.element));return n==null?{}:ID({element:n,padding:t.padding}).fn(e)}}}function Bc(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function zc(t,e){const n=Bc(t);return Math.round(e*n)/n}function BD(t,e,n){n===void 0&&(n={});const i=n.whileElementsMounted,s=O(()=>{var k;return(k=N(n.open))!=null?k:!0}),r=O(()=>N(n.middleware)),o=O(()=>{var k;return(k=N(n.placement))!=null?k:"bottom"}),l=O(()=>{var k;return(k=N(n.strategy))!=null?k:"absolute"}),L=O(()=>{var k;return(k=N(n.transform))!=null?k:!0}),a=O(()=>Xn(t.value)),c=O(()=>Xn(e.value)),C=C2(0),u=C2(0),h=C2(l.value),f=C2(o.value),w=l8({}),v=C2(!1),p=O(()=>{const k={position:h.value,left:"0",top:"0"};if(!c.value)return k;const b=zc(c.value,C.value),V=zc(c.value,u.value);return L.value?{...k,transform:"translate("+b+"px, "+V+"px)",...Bc(c.value)>=1.5&&{willChange:"transform"}}:{position:h.value,left:b+"px",top:V+"px"}});let g;function m(){a.value==null||c.value==null||OD(a.value,c.value,{middleware:r.value,placement:o.value,strategy:l.value}).then(k=>{C.value=k.x,u.value=k.y,h.value=k.strategy,f.value=k.placement,w.value=k.middlewareData,v.value=!0})}function _(){typeof g=="function"&&(g(),g=void 0)}function Z(){if(_(),i===void 0){m();return}if(a.value!=null&&c.value!=null){g=i(a.value,c.value,m);return}}function E(){s.value||(v.value=!1)}return a1([r,o,l],m,{flush:"sync"}),a1([a,c],Z,{flush:"sync"}),a1(s,E,{flush:"sync"}),hi()&&di(_),{x:o9(C),y:o9(u),strategy:o9(h),placement:o9(f),middlewareData:o9(w),isPositioned:o9(v),floatingStyles:p,update:m}}var zD=Object.defineProperty,UD=(t,e,n)=>e in t?zD(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,WD=(t,e,n)=>(UD(t,typeof e!="symbol"?e+"":e,n),n);function U5(t){return t==null||t.value==null?null:t.value instanceof Node?t.value:"$el"in t.value&&t.value.$el?U5(C2(t.value.$el)):"getBoundingClientRect"in t.value?t.value:null}function Uc(t){return t.reduce((e,n)=>n.type===z2?e.concat(Uc(n.children)):e.concat(n),[])}function HD(t){return t==null?!1:typeof t.type=="string"||typeof t.type=="object"||typeof t.type=="function"}function Wc(t){return t=N(t),t&&(t==null?void 0:t.nodeType)!==Node.COMMENT_NODE}class $D{constructor(){WD(this,"current",this.detect())}set(e){this.current!==e&&(this.current=e)}reset(){this.set(this.detect())}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}const Qn=new $D;function VD(t){if(Qn.isServer)return null;if(t instanceof Node)return t.ownerDocument;if(Object.prototype.hasOwnProperty.call(t,"value")){const e=U5(t);if(e)return e.ownerDocument}return document}function GD(t,e){!e.vueTransition&&(e.transitionName||e.transitionType)&&console.warn(`[headlessui-float]: <${t} /> pass "transition-name" or "transition-type" prop, must be set "vue-transition" prop.`)}function jD(t,e,n,i,s){a1([()=>s.offset,()=>s.flip,()=>s.shift,()=>s.autoPlacement,()=>s.arrow,()=>s.hide,()=>s.middleware],()=>{const r=[];(typeof s.offset=="number"||typeof s.offset=="object"||typeof s.offset=="function")&&r.push(ZD(s.offset)),(s.flip===!0||typeof s.flip=="number"||typeof s.flip=="object")&&r.push(bD({padding:typeof s.flip=="number"?s.flip:void 0,...typeof s.flip=="object"?s.flip:{}})),(s.shift===!0||typeof s.shift=="number"||typeof s.shift=="object")&&r.push(SD({padding:typeof s.shift=="number"?s.shift:void 0,...typeof s.shift=="object"?s.shift:{}})),(s.autoPlacement===!0||typeof s.autoPlacement=="object")&&r.push(TD(typeof s.autoPlacement=="object"?s.autoPlacement:void 0)),r.push(...typeof s.middleware=="function"?s.middleware({referenceEl:e,floatingEl:n}):s.middleware||[]),(s.arrow===!0||typeof s.arrow=="number")&&r.push(PD({element:i,padding:s.arrow===!0?0:s.arrow})),(s.hide===!0||typeof s.hide=="object"||Array.isArray(s.hide))&&(Array.isArray(s.hide)?s.hide:[s.hide]).forEach(o=>{r.push(ED(typeof o=="object"?o:void 0))}),t.value=r},{immediate:!0})}function qD(t,e,n){let i=()=>{};e1(()=>{if(t&&Qn.isClient&&typeof ResizeObserver<"u"&&e.value&&e.value instanceof Element){const s=new ResizeObserver(([r])=>{n.value=r.borderBoxSize.reduce((o,{inlineSize:l})=>o+l,0)});s.observe(e.value),i=()=>{s.disconnect(),n.value=null}}}),e0(()=>{i()})}const KD=t=>{switch(t){case"top":return"origin-bottom";case"bottom":return"origin-top";case"left":return"origin-right";case"right":return"origin-left";case"top-start":case"right-end":return"origin-bottom-left";case"top-end":case"left-end":return"origin-bottom-right";case"right-start":case"bottom-start":return"origin-top-left";case"left-start":case"bottom-end":return"origin-top-right";default:return"origin-center"}};function YD(t,e){const n=O(()=>{if(typeof t.originClass=="function")return t.originClass(e.value);if(typeof t.originClass=="string")return t.originClass;if(t.tailwindcssOriginClass)return KD(e.value)}),i=O(()=>t.enter||n.value?`${t.enter||""} ${n.value||""}`:void 0),s=O(()=>t.leave||n.value?`${t.leave||""} ${n.value||""}`:void 0);return{originClassRef:n,enterActiveClassRef:i,leaveActiveClassRef:s}}function Hc(t,e,...n){if(t in e){const s=e[t];return typeof s=="function"?s(...n):s}const i=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Hc),i}const $c=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(t=>`${t}:not([tabindex='-1'])`).join(",");var Vc=(t=>(t[t.Strict=0]="Strict",t[t.Loose=1]="Loose",t))(Vc||{});function XD(t,e=0){var n;return t===((n=VD(t))==null?void 0:n.body)?!1:Hc(e,{0(){return t.matches($c)},1(){let i=t;for(;i!==null;){if(i.matches($c))return!0;i=i.parentElement}return!1}})}function Jn(t,e,n){Qn.isServer||L3(i=>{document.addEventListener(t,e,n),i(()=>document.removeEventListener(t,e,n))})}function QD(t,e,n=O(()=>!0)){function i(r,o){if(!n.value||r.defaultPrevented)return;const l=o(r);if(l===null||!l.getRootNode().contains(l))return;const L=function a(c){return typeof c=="function"?a(c()):Array.isArray(c)||c instanceof Set?c:[c]}(t);for(const a of L){if(a===null)continue;const c=a instanceof HTMLElement?a:U5(a);if(c!=null&&c.contains(l)||r.composed&&r.composedPath().includes(c))return}return!XD(l,Vc.Loose)&&l.tabIndex!==-1&&r.preventDefault(),e(r,l)}const s=C2(null);Jn("mousedown",r=>{var o,l;n.value&&(s.value=((l=(o=r.composedPath)==null?void 0:o.call(r))==null?void 0:l[0])||r.target)},!0),Jn("click",r=>{s.value&&(i(r,()=>s.value),s.value=null)},!0),Jn("blur",r=>i(r,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}const JD=Symbol("ArrowContext"),Z2={as:{type:[String,Function],default:"template"},floatingAs:{type:[String,Function],default:"div"},show:{type:Boolean,default:null},placement:{type:String,default:"bottom-start"},strategy:{type:String,default:"absolute"},offset:[Number,Function,Object],shift:{type:[Boolean,Number,Object],default:!1},flip:{type:[Boolean,Number,Object],default:!1},arrow:{type:[Boolean,Number],default:!1},autoPlacement:{type:[Boolean,Object],default:!1},hide:{type:[Boolean,Object,Array],default:!1},referenceHiddenClass:String,escapedClass:String,autoUpdate:{type:[Boolean,Object],default:!0},zIndex:{type:[Number,String],default:9999},vueTransition:{type:Boolean,default:!1},transitionName:String,transitionType:String,enter:String,enterFrom:String,enterTo:String,leave:String,leaveFrom:String,leaveTo:String,originClass:[String,Function],tailwindcssOriginClass:{type:Boolean,default:!1},portal:{type:Boolean,default:!1},transform:{type:Boolean,default:!1},adaptiveWidth:{type:[Boolean,Object],default:!1},composable:{type:Boolean,default:!1},dialog:{type:Boolean,default:!1},middleware:{type:[Array,Function],default:()=>[]}};function eP(t,e,n,i){const{floatingRef:s,props:r,mounted:o,show:l,referenceHidden:L,escaped:a,placement:c,floatingStyles:C,referenceElWidth:u,updateFloating:h}=i,f=x9({...r,as:r.floatingAs},e),{enterActiveClassRef:w,leaveActiveClassRef:v}=YD(f,c),p={show:o.value?f.show:!1,enter:w.value,enterFrom:f.enterFrom,enterTo:f.enterTo,leave:v.value,leaveFrom:f.leaveFrom,leaveTo:f.leaveTo,onBeforeEnter(){l.value=!0},onAfterLeave(){l.value=!1}},g={name:f.transitionName,type:f.transitionType,appear:!0,...f.transitionName?{}:{enterActiveClass:w.value,enterFromClass:f.enterFrom,enterToClass:f.enterTo,leaveActiveClass:v.value,leaveFromClass:f.leaveFrom,leaveToClass:f.leaveTo},onBeforeEnter(){l.value=!0},onAfterLeave(){l.value=!1}},m={class:[L.value?f.referenceHiddenClass:void 0,a.value?f.escapedClass:void 0].filter(k=>!!k).join(" "),style:{...C.value,zIndex:f.zIndex}};if(f.adaptiveWidth&&typeof u.value=="number"){const k={attribute:"width",...typeof f.adaptiveWidth=="object"?f.adaptiveWidth:{}};m.style[k.attribute]=`${u.value}px`}function _(k){return f.portal?o.value?r1(cn,()=>k):d2():k}function Z(k){const b=x9(m,n,f.dialog?{}:{ref:s});return f.as==="template"?k:typeof f.as=="string"?r1(f.as,b,k):r1(f.as,b,()=>k)}function E(){function k(){var b;const V=f.as==="template"?x9(m,n,f.dialog?{}:{ref:s}):null,D=x3(t,V);return((b=t.props)==null?void 0:b.unmount)===!1?(h(),D):f.vueTransition&&f.show===!1?d2():D}return o.value?f.vueTransition?r1(i0,{...f.dialog?{ref:s}:{},...g},k):r1(f.transitionChild?E7:wn,{key:`placement-${c.value}`,...f.dialog?{ref:s}:{},as:"template",...p},k):d2()}return _(Z(E()))}function tP(t,e,n,i,s){const r=C2(!1),o=L8(i,"placement"),l=L8(i,"strategy"),L=l8({}),a=C2(void 0),c=C2(void 0),C=C2(null),u=C2(void 0),h=C2(void 0),f=O(()=>U5(e)),w=O(()=>U5(n)),v=O(()=>Wc(f)&&Wc(w)),{placement:p,middlewareData:g,isPositioned:m,floatingStyles:_,update:Z}=BD(f,w,{placement:o,strategy:l,middleware:L,transform:i.dialog?!1:i.transform,whileElementsMounted:i.dialog?()=>()=>{}:void 0}),E=C2(null);e1(()=>{r.value=!0}),a1(t,(h2,L2)=>{h2&&!L2?s("show"):!h2&&L2&&s("hide")},{immediate:!0});function k(){v.value&&(Z(),s("update"))}a1([o,l,L],k,{flush:"sync"}),jD(L,f,w,C,i),a1([g,()=>i.hide,m],()=>{var h2,L2;(i.hide===!0||typeof i.hide=="object"||Array.isArray(i.hide))&&(a.value=((h2=g.value.hide)==null?void 0:h2.referenceHidden)||!m.value,c.value=(L2=g.value.hide)==null?void 0:L2.escaped)}),a1(g,()=>{const h2=g.value.arrow;u.value=h2==null?void 0:h2.x,h.value=h2==null?void 0:h2.y}),qD(!!i.adaptiveWidth,f,E),a1([t,v],async(h2,L2,X)=>{if(await x4(),t.value&&v.value&&i.autoUpdate){const q=kD(f.value,w.value,k,typeof i.autoUpdate=="object"?i.autoUpdate:void 0);X(q)}},{flush:"post",immediate:!0});const b=C2(!0);a1(f,()=>{!(f.value instanceof Element)&&v.value&&b.value&&(b.value=!1,window.requestAnimationFrame(()=>{b.value=!0,k()}))},{flush:"sync"});const V={referenceRef:e,placement:p},D={floatingRef:n,props:i,mounted:r,show:t,referenceHidden:a,escaped:c,placement:p,floatingStyles:_,referenceElWidth:E,updateFloating:k},t2={ref:C,placement:p,x:u,y:h};return j1(JD,t2),{referenceApi:V,floatingApi:D,arrowApi:t2,placement:p,referenceEl:f,floatingEl:w,middlewareData:g,update:k}}({...Z2.as});const nP={as:Z2.as,show:Z2.show,placement:Z2.placement,strategy:Z2.strategy,offset:Z2.offset,shift:Z2.shift,flip:Z2.flip,arrow:Z2.arrow,autoPlacement:Z2.autoPlacement,autoUpdate:Z2.autoUpdate,zIndex:Z2.zIndex,vueTransition:Z2.vueTransition,transitionName:Z2.transitionName,transitionType:Z2.transitionType,enter:Z2.enter,enterFrom:Z2.enterFrom,enterTo:Z2.enterTo,leave:Z2.leave,leaveFrom:Z2.leaveFrom,leaveTo:Z2.leaveTo,originClass:Z2.originClass,tailwindcssOriginClass:Z2.tailwindcssOriginClass,portal:Z2.portal,transform:Z2.transform,middleware:Z2.middleware},iP={name:"FloatVirtual",inheritAttrs:!1,props:nP,emits:["initial","show","hide","update"],setup(t,{emit:e,slots:n,attrs:i}){var c;GD("FloatVirtual",t);const s=C2((c=t.show)!=null?c:!1),r=C2({getBoundingClientRect(){return{x:0,y:0,top:0,left:0,bottom:0,right:0,width:0,height:0}}}),o=C2(null),{floatingApi:l,placement:L}=tP(s,r,o,t,e);a1(()=>t.show,()=>{var C;s.value=(C=t.show)!=null?C:!1});function a(){s.value=!1}return e("initial",{show:s,placement:L,reference:r,floating:o}),()=>{if(!n.default)return;const C={placement:L.value,close:a},[u]=Uc(n.default(C)).filter(HD);return eP(u,{as:t.as,show:s.value},i,l)}}};Z2.as,Z2.placement,Z2.strategy,Z2.offset,Z2.shift,{...Z2.flip},Z2.arrow,Z2.autoPlacement,Z2.autoUpdate,Z2.zIndex,Z2.vueTransition,Z2.transitionName,Z2.transitionType,Z2.enter,Z2.enterFrom,Z2.enterTo,Z2.leave,Z2.leaveFrom,Z2.leaveTo,Z2.originClass,Z2.tailwindcssOriginClass,Z2.transform,Z2.middleware;const sP={class:"flex bg-white shadow-md z-10 rounded-md p-1"},rP=["onClick"],oP=Object.freeze(Object.defineProperty({__proto__:null,default:X2({__name:"StylePanel",setup(t){const e=C2({value:null}),n=S1(),i=O(()=>n.getters.onContentChange||(()=>{})),s=O(()=>Vt(n.getters.diagramElement)+Tl),r=O(()=>n.getters.code),o=C=>{n.dispatch("updateCode",{code:C}),i.value(C)},l=C2([]);let L;const a=({show:C,reference:u,floating:h})=>{let f,w,v,p,g,m;n.commit("onMessageClick",(_,Z)=>{var E;if(f=_.value.start.start,w=Nt(r.value,f),v=Sp(r.value,f),p=((E=r.value.slice(w).match(/^\s*/))==null?void 0:E[0])||"",g=v.trim().startsWith("//"),g){const k=v.trimStart().slice(2).trimStart(),b=k.indexOf("["),V=k.indexOf("]");m=Boolean(b===0&&V),m?l.value=k.slice(b+1,V).split(",").map(D=>D.trim()):l.value=[]}u.value={getBoundingClientRect:()=>Z.getBoundingClientRect()},e.value=_,C.value=!0}),QD(h,()=>{C.value=!1,l.value=[]},O(()=>C.value)),L=_=>{var Z;if(C.value=!1,!!e.value.value)if(g){let E="";if(m){let k;l.value.includes(_)?k=l.value.filter(b=>b!==_):k=[...l.value,_],E=`${p}// [${k.filter(Boolean).join(", ")}] ${v.slice(v.indexOf("]")+1).trimStart()}`}else E=`${p}// [${_}] ${v.slice((((Z=v.match(/\/\/*/))==null?void 0:Z.index)||-2)+2).trimStart()}`;E.endsWith(`
|
|
3366
3366
|
`)||(E+=`
|
|
3367
3367
|
`),o(r.value.slice(0,ml(r.value,f))+E+r.value.slice(w))}else o(r.value.slice(0,w)+`${p}// [${_}]
|
|
3368
3368
|
`+r.value.slice(w))}},c=[{name:"bold",content:"B",class:"font-bold"},{name:"italic",content:"I",class:"italic"},{name:"underline",content:"U",class:"underline"},{name:"strikethrough",content:"S",class:"line-through"}];return(C,u)=>(S(),T2(N(iP),{"vue-transition":"",id:"style-panel",key:"tool",onInitial:a,placement:"top",offset:5,flip:{padding:N(s)},shift:"",zIndex:"30"},{default:l3(()=>[R("div",sP,[(S(),B(z2,null,z3(c,h=>R("div",{onClick:()=>N(L)(h.class),key:h.name},[R("div",{class:R2(["w-6 mx-1 py-1 rounded-md text-black text-center cursor-pointer hover:bg-gray-200",[h.class,{"bg-gray-100":l.value.includes(h.class)}]])},K2(h.content),3)],8,rP)),64))])],void 0,!0),_:1},8,["flip"]))}})},Symbol.toStringTag,{value:"Module"}));p3.VueSequence=sN,p3.default=iN,Object.defineProperties(p3,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|