@kestra-io/ui-libs 0.0.272 → 0.0.273

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.
@@ -9,29 +9,25 @@ type __VLS_Props = {
9
9
  };
10
10
  declare var __VLS_1: {
11
11
  content: string;
12
- }, __VLS_3: {
12
+ }, __VLS_12: {
13
13
  content: string;
14
- }, __VLS_14: {
15
- content: string;
16
- }, __VLS_25: {
14
+ }, __VLS_23: {
17
15
  content: any;
18
- }, __VLS_32: {
16
+ }, __VLS_30: {
19
17
  content: any;
20
- }, __VLS_39: {
18
+ }, __VLS_37: {
21
19
  content: any;
22
20
  };
23
21
  type __VLS_Slots = {} & {
24
22
  markdown?: (props: typeof __VLS_1) => any;
25
23
  } & {
26
- markdown?: (props: typeof __VLS_3) => any;
27
- } & {
28
- markdown?: (props: typeof __VLS_14) => any;
24
+ markdown?: (props: typeof __VLS_12) => any;
29
25
  } & {
30
- markdown?: (props: typeof __VLS_25) => any;
26
+ markdown?: (props: typeof __VLS_23) => any;
31
27
  } & {
32
- markdown?: (props: typeof __VLS_32) => any;
28
+ markdown?: (props: typeof __VLS_30) => any;
33
29
  } & {
34
- markdown?: (props: typeof __VLS_39) => any;
30
+ markdown?: (props: typeof __VLS_37) => any;
35
31
  };
36
32
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
37
33
  noUrlChange: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaToHtmlV2.vue.d.ts","sourceRoot":"","sources":["../../../src/components/plugins_v2/SchemaToHtmlV2.vue"],"names":[],"mappings":"AAyNI,OAAO,KAAK,EAAe,UAAU,EAAC,MAAM,4BAA4B,CAAC;AAIzE,KAAK,WAAW,GAAG;IACf,MAAM,EAAE,UAAU,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAA;CACxB,CAAC;AA2WN,QAAA,IAAI,OAAO;;CAAU,EAAE,OAAO;;CAAU,EAAE,QAAQ;;CAAW,EAAE,QAAQ;;CAAW,EAAE,QAAQ;;CAAW,EAAE,QAAQ;;CAAY,CAAE;AAC/H,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC9C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC9C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC9C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAKjD,QAAA,MAAM,UAAU;iBAxXM,OAAO;cAHV,OAAO;4BACO,OAAO;4BACP,MAAM,EAAE;6EA4XvC,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SchemaToHtmlV2.vue.d.ts","sourceRoot":"","sources":["../../../src/components/plugins_v2/SchemaToHtmlV2.vue"],"names":[],"mappings":"AAsNI,OAAO,KAAK,EAAe,UAAU,EAAC,MAAM,4BAA4B,CAAC;AAIzE,KAAK,WAAW,GAAG;IACf,MAAM,EAAE,UAAU,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAA;CACxB,CAAC;AA6VN,QAAA,IAAI,OAAO;;CAAU,EAAE,QAAQ;;CAAW,EAAE,QAAQ;;CAAW,EAAE,QAAQ;;CAAW,EAAE,QAAQ;;CAAY,CAAE;AAC5G,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC9C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC9C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC9C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAKjD,QAAA,MAAM,UAAU;iBAzWM,OAAO;cAHV,OAAO;4BACO,OAAO;4BACP,MAAM,EAAE;6EA6WvC,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -30,7 +30,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
30
30
  fill: none;
31
31
  `),{element:_,original:v}});try{const h=c.type==="jpeg"?await a(s,c):await r(s,c);return c.shouldDownload&&u&&i(u),h}finally{p.forEach(({element:h,original:_})=>_?h.setAttribute("style",_):h.removeAttribute("style")),s.classList.remove("is-exporting")}}function a(s,c={quality:.95}){return o.value=null,Af(s,c).then(u=>(t.value=u,n.value="jpeg",u)).catch(u=>{throw u.value=u,new Error(u)})}function r(s,c={quality:.95}){return o.value=null,If(s,c).then(u=>(t.value=u,n.value="png",u)).catch(u=>{throw u.value=u,new Error(u)})}function i(s){const c=document.createElement("a");c.download=`${s}.${n.value}`,c.href=t.value,c.click()}return{capture:l,download:i,dataUrl:t,error:o}}const $f={key:1,class:"exporting"},Of=e.defineComponent({__name:"Topology",props:{id:{type:String,required:!0},isHorizontal:{type:Boolean,default:!0},isReadOnly:{type:Boolean,default:!0},isAllowedEdit:{type:Boolean,default:!1},source:{type:String,default:void 0,required:!0},toggleOrientationButton:{type:Boolean,default:!1},flowGraph:{type:Object,required:!0},flowId:{type:String,default:void 0},namespace:{type:String,default:void 0},expandedSubflows:{type:Array,default:()=>[]},icons:{type:Object,default:void 0},iconComponent:{type:Object,default:void 0},enableSubflowInteraction:{type:Boolean,default:!0},execution:{type:Object,default:void 0},subflowsExecutions:{type:Object,default:()=>({})},playgroundEnabled:{type:Boolean,default:!1},playgroundReadyToStart:{type:Boolean,default:!1}},emits:[w.EVENTS.EDIT,w.EVENTS.DELETE,w.EVENTS.RUN_TASK,w.EVENTS.OPEN_LINK,w.EVENTS.SHOW_LOGS,w.EVENTS.SHOW_DESCRIPTION,w.EVENTS.RUN_TASK,"on-add-flowable-error",w.EVENTS.ADD_TASK,"toggle-orientation","loading","swapped-task","message","expand-subflow",w.EVENTS.SHOW_CONDITION],setup(t,{emit:n}){const o=t,l=e.ref(!1),a=e.ref(),{getNodes:r,onNodeDrag:i,onNodeDragStart:s,onNodeDragStop:c,fitView:u,setElements:d,vueFlowRef:p}=oe.useVueFlow(o.id),h=e.ref({}),_=e.ref([]),v=e.ref(new Set),k=e.ref([]),{capture:E}=Df();e.provide(Wn,e.computed(()=>o.execution)),e.provide(Dl,e.computed(()=>o.subflowsExecutions));const f=n;e.onMounted(()=>{y()}),e.watch(()=>o.flowGraph,()=>{y()}),e.watch(()=>o.isHorizontal,()=>{y()});const y=()=>{w.cleanGraph(o.id),e.nextTick(()=>{f("loading",!0);const P=v.value;v.value=new Set,_.value=[],h.value={},P.forEach(H=>M(w.CLUSTER_PREFIX+H,!1,!1));const A=w.generateGraph(o.id,o.flowId,o.namespace,o.flowGraph,o.source,_.value,o.isHorizontal,h.value,v.value,k.value,o.isReadOnly,o.isAllowedEdit,o.enableSubflowInteraction);A&&(d(A),u(),f("loading",!1))})},T=P=>{l.value||w.linkedElements(o.id,P.uid).forEach(A=>{A?.type==="task"&&(A.style={...A.style,outline:"0.5px solid "+Ce("--bs-gray-900")},A.class="rounded-3")})},S=()=>{b()},b=()=>{r.value.filter(P=>P.type==="task"||P.type==="trigger").forEach(P=>{P.style={...P.style,opacity:"1",outline:"none"},P.class=""})};s(P=>{l.value=!0,b(),P.node.style={...P.node.style,zIndex:1976},a.value=P.node.position}),c(P=>{if(l.value=!1,P.intersections&&N(P.intersections,P.node)===null){const A=P.node,H=P.intersections.find(R=>R.type==="task");if(H)try{o.source&&f("swapped-task",{newSource:W.swapBlocks({source:o.source,section:"tasks",key1:w.Utils.afterLastDot(A.id)??"",key2:w.Utils.afterLastDot(H.id)??""}),swappedTasks:[A.id,H.id]})}catch(R){f("message",{variant:"error",title:"cannot swap tasks",message:`${R.message}, ${R.messageOptions}`}),A.position=a.value}else A.position=a.value}else P.node.position=a.value;b(),P.node.style={...P.node.style,zIndex:5},a.value=null});const I=e.computed(()=>o.flowGraph?.clusters?o.flowGraph.clusters.filter(P=>P.cluster.type.endsWith("SubflowGraphCluster")).map(P=>P.cluster.taskNode.uid+"."):[]);i(P=>{b(),r.value.filter(A=>A.id!==P.node.id).forEach(A=>{A.type==="trigger"||A.type==="task"&&(A.id.startsWith(P.node.id+".")||P.node.id.startsWith(A.id+"."))||I?.value?.some(H=>A.id.startsWith(H))?A.style={...A.style,opacity:"0.5"}:A.style={...A.style,opacity:"1"}}),P.intersections&&!N(P.intersections,P.node)&&P.intersections.filter(A=>A.type==="task").length===1&&(P.intersections.forEach(A=>{A.type==="task"&&(A.style={...A.style,outline:"0.5px solid "+Ce("--bs-primary")},A.class="rounded-3")}),P.node.style={...P.node.style,outline:"0.5px solid "+Ce("--bs-primary")},P.node.class="rounded-3")});const N=(P,A)=>{const H=P.filter(R=>R.type==="task").map(R=>w.Utils.afterLastDot(R.id));if(H.length>1)return"toomuchtaskerror";try{if(H.length===1&&o.source&&W.isParentChildrenRelation({source:o.source,sections:["tasks","triggers"],key1:w.Utils.afterLastDot(H[0])??"",key2:w.Utils.afterLastDot(A.id)??"",keyName:"id"}))return"parentchildrenerror"}catch{return"parentchildrenerror"}return P.filter(R=>R.type==="trigger").length>0?"triggererror":null},M=(P,A,H=!1)=>{const R=o.flowGraph.clusters.find(me=>me.cluster.uid.endsWith(P)),Ie=P.replace(w.CLUSTER_PREFIX,"");v.value.add(Ie),_.value=_.value.concat(R.nodes.filter(me=>me!==Ie||H)),_.value=_.value.concat([R.cluster.uid]),h.value={...h.value,[R.cluster.uid]:Ie,[R.start]:Ie,[R.end]:Ie};for(let me of R.nodes)o.flowGraph.clusters.map(He=>He.cluster.uid).includes(me)&&M(me,!1,!0);A&&y()},U=P=>{if(["io.kestra.core.tasks.flows.Flow","io.kestra.core.tasks.flows.Subflow","io.kestra.plugin.core.flow.Subflow","io.kestra.core.tasks.flows.ForEachItem$ForEachItemExecutable","io.kestra.plugin.core.flow.ForEachItem$ForEachItemExecutable"].includes(P.type)&&!o.expandedSubflows.includes(P.id)){f("expand-subflow",[...o.expandedSubflows,P.id]);return}h.value={},_.value=[],k.value=[],v.value.delete(P.id),v.value.forEach(H=>M(H,!1,!1)),y()},Q=document.getElementsByTagName("html")[0].className.indexOf("dark")>=0,ge=e.ref(!0),Z=e.ref(!1),Me=()=>Z.value=!Z.value;function Je(P){if(!p.value){console.warn("Flow not found");return}ge.value=!1,E(p.value,{type:P,shouldDownload:!0}).then(()=>ge.value=!0).finally(()=>Z.value=!1)}return(P,A)=>(e.openBlock(),e.createBlock(e.unref(oe.VueFlow),{id:t.id,"default-marker-color":e.unref(Ce)("--bs-cyan"),"fit-view-on-init":"","nodes-draggable":!1,"nodes-connectable":!1,"elevate-nodes-on-select":!1,"elevate-edges-on-select":!1},{"node-cluster":e.withCtx(H=>[e.createVNode(ru,e.mergeProps(H,{onCollapse:A[0]||(A[0]=R=>M(R,!0))}),null,16)]),"node-dot":e.withCtx(H=>[e.createVNode(pu,e.normalizeProps(e.guardReactiveProps(H)),null,16)]),"node-task":e.withCtx(H=>[e.createVNode(sm,e.mergeProps(H,{icons:t.icons,"icon-component":t.iconComponent,"playground-enabled":t.playgroundEnabled,"playground-ready-to-start":t.playgroundReadyToStart,onEdit:A[1]||(A[1]=R=>f(e.unref(w.EVENTS).EDIT,R)),onDelete:A[2]||(A[2]=R=>f(e.unref(w.EVENTS).DELETE,R)),onRunTask:A[3]||(A[3]=R=>f(e.unref(w.EVENTS).RUN_TASK,R)),onExpand:A[4]||(A[4]=R=>U(R)),onOpenLink:A[5]||(A[5]=R=>f(e.unref(w.EVENTS).OPEN_LINK,R)),onShowLogs:A[6]||(A[6]=R=>f(e.unref(w.EVENTS).SHOW_LOGS,R)),onShowDescription:A[7]||(A[7]=R=>f(e.unref(w.EVENTS).SHOW_DESCRIPTION,R)),onShowCondition:A[8]||(A[8]=R=>f(e.unref(w.EVENTS).SHOW_CONDITION,R)),onMouseover:A[9]||(A[9]=R=>T(R)),onMouseleave:A[10]||(A[10]=R=>S()),onAddError:A[11]||(A[11]=R=>f("on-add-flowable-error",R)),"enable-subflow-interaction":t.enableSubflowInteraction}),null,16,["icons","icon-component","playground-enabled","playground-ready-to-start","enable-subflow-interaction"])]),"node-custom":e.withCtx(H=>[e.createVNode(zn,e.mergeProps(H,{icons:t.icons,"icon-component":t.iconComponent}),null,16,["icons","icon-component"])]),"node-trigger":e.withCtx(H=>[e.createVNode(um,e.mergeProps(H,{icons:t.icons,"icon-component":t.iconComponent,"is-read-only":t.isReadOnly,"is-allowed-edit":t.isAllowedEdit,onDelete:A[12]||(A[12]=R=>f(e.unref(w.EVENTS).DELETE,R)),onEdit:A[13]||(A[13]=R=>f(e.unref(w.EVENTS).EDIT,R)),onShowDescription:A[14]||(A[14]=R=>f(e.unref(w.EVENTS).SHOW_DESCRIPTION,R))}),null,16,["icons","icon-component","is-read-only","is-allowed-edit"])]),"node-collapsedcluster":e.withCtx(H=>[e.createVNode(Nm,e.mergeProps(H,{onExpand:A[15]||(A[15]=R=>U(R))}),null,16)]),"edge-edge":e.withCtx(H=>[e.createVNode(Lu,e.mergeProps(H,{"yaml-source":t.source,onAddTask:A[16]||(A[16]=R=>f(e.unref(w.EVENTS).ADD_TASK,R)),"is-read-only":t.isReadOnly,"is-allowed-edit":t.isAllowedEdit}),null,16,["yaml-source","is-read-only","is-allowed-edit"])]),default:e.withCtx(()=>[e.createVNode(e.unref(Yc),{"pattern-color":Q?e.unref(Ce)("--bs-grey-500"):e.unref(Ce)("--bs-grey-300")},null,8,["pattern-color"]),ge.value?(e.openBlock(),e.createBlock(e.unref(an.Controls),{key:0,"show-interactive":!1},{default:e.withCtx(()=>[t.toggleOrientationButton?(e.openBlock(),e.createBlock(e.unref(an.ControlButton),{key:0,onClick:A[17]||(A[17]=H=>f("toggle-orientation",H))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.isHorizontal?Im:Lm)))]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(an.ControlButton),{onClick:Me},{default:e.withCtx(()=>[e.createVNode(Mm)]),_:1}),Z.value?(e.openBlock(),e.createElementBlock("ul",$f,[e.createElementVNode("li",{onClick:A[18]||(A[18]=H=>Je("jpeg")),class:"item"}," Export as .JPEG "),e.createElementVNode("li",{onClick:A[19]||(A[19]=H=>Je("png")),class:"item"}," Export as .PNG ")])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["id","default-marker-color"]))}}),Pf=D(Of,[["__scopeId","data-v-ccfc7443"]]),Rf={class:"text"},Mf=e.defineComponent({__name:"Status",props:{status:{},title:{default:void 0},icon:{type:Boolean,default:!1},size:{default:"default"}},setup(t){const n=t,o=e.computed(()=>n.icon?ne.icon()[n.status?.toUpperCase()]:void 0),l=e.computed(()=>n.title??n.status),a=e.computed(()=>["status-button",n.status?.toLowerCase()&&`status-button--${n.status.toLowerCase()}`,n.size!=="default"&&`status-button--${n.size}`].filter(Boolean));return(r,i)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:e.normalizeClass(a.value)},[r.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{key:0,class:"icon"})):e.createCommentVNode("",!0),e.createElementVNode("span",Rf,e.toDisplayString(l.value),1)],2))}}),xf=D(Mf,[["__scopeId","data-v-ce6b0e30"]]),Ff={name:"MenuRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Uf=["aria-hidden","aria-label"],Hf=["fill","width","height"],zf={d:"M10,17L15,12L10,7V17Z"},Wf={key:0};function jf(t,n,o,l,a,r){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon menu-right-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",zf,[o.title?(e.openBlock(),e.createElementBlock("title",Wf,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,Hf))],16,Uf)}const Gf=D(Ff,[["render",jf]]),Kf={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Yf=["aria-hidden","aria-label"],qf=["fill","width","height"],Xf={d:"M7,10L12,15L17,10H7Z"},Zf={key:0};function Jf(t,n,o,l,a,r){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon menu-down-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Xf,[o.title?(e.openBlock(),e.createElementBlock("title",Zf,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,qf))],16,Yf)}const Qf=D(Kf,[["render",Jf]]);function jl(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function Gl(t){return typeof t=="function"?t():e.unref(t)}const ep=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const tp=Object.prototype.toString,np=t=>tp.call(t)==="[object Object]",op=()=>{};function lp(t){return Object.entries(t)}function rp(t){return e.getCurrentInstance()}function ap(t,n=!0,o){rp()?e.onMounted(t,o):n?t():e.nextTick(t)}function Ye(t){var n;const o=Gl(t);return(n=o?.$el)!=null?n:o}const qt=ep?window:void 0;function Ko(...t){let n,o,l,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,a]=t,n=qt):[n,o,l,a]=t,!n)return op;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const r=[],i=()=>{r.forEach(d=>d()),r.length=0},s=(d,p,h,_)=>(d.addEventListener(p,h,_),()=>d.removeEventListener(p,h,_)),c=e.watch(()=>[Ye(n),Gl(a)],([d,p])=>{if(i(),!d)return;const h=np(p)?{...p}:p;r.push(...o.flatMap(_=>l.map(v=>s(d,_,v,h))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return jl(u),u}function ip(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function sp(t){const n=ip();return e.computed(()=>(n.value,!!t()))}const Yo=["hash","host","hostname","href","pathname","port","protocol","search"];function Kl(t={}){const{window:n=qt}=t,o=Object.fromEntries(Yo.map(r=>[r,e.ref()]));for(const[r,i]of lp(o))e.watch(i,s=>{!n?.location||n.location[r]===s||(n.location[r]=s)});const l=r=>{var i;const{state:s,length:c}=n?.history||{},{origin:u}=n?.location||{};for(const d of Yo)o[d].value=(i=n?.location)==null?void 0:i[d];return e.reactive({trigger:r,state:s,length:c,origin:u,...o})},a=e.ref(l("load"));return n&&(Ko(n,"popstate",()=>a.value=l("popstate"),{passive:!0}),Ko(n,"hashchange",()=>a.value=l("hashchange"),{passive:!0})),a}function cp(t,n,o={}){const{window:l=qt,...a}=o;let r;const i=sp(()=>l&&"ResizeObserver"in l),s=()=>{r&&(r.disconnect(),r=void 0)},c=e.computed(()=>Array.isArray(t)?t.map(p=>Ye(p)):[Ye(t)]),u=e.watch(c,p=>{if(s(),i.value&&l){r=new ResizeObserver(n);for(const h of p)h&&r.observe(h,a)}},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return jl(d),{isSupported:i,stop:d}}function qo(t,n={width:0,height:0},o={}){const{window:l=qt,box:a="content-box"}=o,r=e.computed(()=>{var p,h;return(h=(p=Ye(t))==null?void 0:p.namespaceURI)==null?void 0:h.includes("svg")}),i=e.ref(n.width),s=e.ref(n.height),{stop:c}=cp(t,([p])=>{const h=a==="border-box"?p.borderBoxSize:a==="content-box"?p.contentBoxSize:p.devicePixelContentBoxSize;if(l&&r.value){const _=Ye(t);if(_){const v=_.getBoundingClientRect();i.value=v.width,s.value=v.height}}else if(h){const _=Array.isArray(h)?h:[h];i.value=_.reduce((v,{inlineSize:k})=>v+k,0),s.value=_.reduce((v,{blockSize:k})=>v+k,0)}else i.value=p.contentRect.width,s.value=p.contentRect.height},o);ap(()=>{const p=Ye(t);p&&(i.value="offsetWidth"in p?p.offsetWidth:n.width,s.value="offsetHeight"in p?p.offsetHeight:n.height)});const u=e.watch(()=>Ye(t),p=>{i.value=p?n.width:0,s.value=p?n.height:0});function d(){c(),u()}return{width:i,height:s,stop:d}}const up=["id","open"],dp={class:"d-flex gap-2 align-items-center"},mp={key:0,class:"d-flex flex-grow-1"},fp=["id"],pp=e.defineComponent({__name:"Collapsible",props:{href:{default:Math.random().toString(36).substring(2,5)},clickableText:{},arrow:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},noUrlChange:{type:Boolean,default:!1}},emits:["expand"],setup(t,{emit:n}){const o=t,l=e.ref(!0),a=Kl(),r=n,i=e.computed(()=>`#${o.href}-body`),s=u=>{u.preventDefault(),u.stopPropagation(),l.value=!l.value,c.value=!l.value,l.value||r("expand"),!o.noUrlChange&&(l.value?history.replaceState(null,"",window.location.pathname+window.location.search):window.location.hash=i.value)},c=e.ref(!1);return e.watch(()=>o.initiallyExpanded,u=>{u!==void 0&&(c.value=u,l.value=!u)},{immediate:!0}),e.watch(()=>a.value.hash,u=>{u===i.value&&l.value&&(c.value=!0,l.value=!1)},{immediate:!0}),(u,d)=>(e.openBlock(),e.createElementBlock("details",{id:u.href,open:c.value},[e.createElementVNode("summary",{class:e.normalizeClass(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button",{collapsed:l.value}]),onClick:s},[e.createElementVNode("span",dp,[u.arrow?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value?Gf:Qf),{key:0,class:"arrow"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(u.clickableText)+" ",1),e.renderSlot(u.$slots,"additionalButtonText",{},void 0,!0)]),u.$slots.buttonRight?(e.openBlock(),e.createElementBlock("span",mp,[e.renderSlot(u.$slots,"buttonRight",{collapsed:l.value},void 0,!0)])):e.createCommentVNode("",!0)],2),u.$slots.content?(e.openBlock(),e.createElementBlock("div",{key:0,id:u.href+"-body"},[e.createElementVNode("div",null,[e.renderSlot(u.$slots,"content",{},void 0,!0)])],8,fp)):e.createCommentVNode("",!0)],8,up))}}),ht=D(pp,[["__scopeId","data-v-6b6ffd9a"]]),gp={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},hp=["aria-hidden","aria-label"],Ep=["fill","width","height"],yp={d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"},kp={key:0};function _p(t,n,o,l,a,r){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-right-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",yp,[o.title?(e.openBlock(),e.createElementBlock("title",kp,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,Ep))],16,hp)}const qn=D(gp,[["render",_p]]),vp={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Cp=["aria-hidden","aria-label"],Np=["fill","width","height"],Sp={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},bp={key:0};function wp(t,n,o,l,a,r){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-down-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",Sp,[o.title?(e.openBlock(),e.createElementBlock("title",bp,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,Np))],16,Cp)}const Xn=D(vp,[["render",wp]]),Lp=["id","open"],Tp={key:0,class:"chevron"},Bp=["id"],Vp=e.defineComponent({__name:"CollapsibleV2",props:{href:{default:Math.random().toString(36).substring(2,5)},title:{},arrow:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},noUrlChange:{type:Boolean,default:!1}},emits:["expand"],setup(t,{emit:n}){const o=t,l=e.ref(!0),a=Kl(),r=n,i=e.computed(()=>`#${o.href}-body`),s=u=>{if(u.preventDefault(),l.value=!l.value,c.value=!l.value,l.value||r("expand"),o.noUrlChange)return;const d=window.location.pathname+window.location.search+(l.value?"":i.value);try{window.history.pushState(null,"",d)}catch{try{l.value?window.history.replaceState(null,"",window.location.pathname+window.location.search):window.location.hash=i.value}catch{}}},c=e.ref(!1);return e.watch(()=>o.initiallyExpanded,u=>{u!==void 0&&(c.value=u,l.value=!u)},{immediate:!0}),e.watch(()=>a.value.hash,u=>{u===i.value&&l.value&&(c.value=!0,l.value=!1)},{immediate:!0}),(u,d)=>(e.openBlock(),e.createElementBlock("details",{id:u.href,open:c.value},[e.createElementVNode("summary",{class:e.normalizeClass(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button",{collapsed:l.value}]),onClick:s},[e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(u.title)+" ",1),e.renderSlot(u.$slots,"additional",{},void 0,!0)]),e.renderSlot(u.$slots,"right",{},void 0,!0),u.arrow?(e.openBlock(),e.createElementBlock("span",Tp,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value?qn:Xn)))])):e.createCommentVNode("",!0)],2),u.$slots.content?(e.openBlock(),e.createElementBlock("div",{key:0,id:u.href+"-body"},[e.createElementVNode("div",null,[e.renderSlot(u.$slots,"content",{},void 0,!0)])],8,Bp)):e.createCommentVNode("",!0)],8,Lp))}}),Et=D(Vp,[["__scopeId","data-v-d0f1d871"]]),Ip=["href"],Ap={class:"top-row"},Dp={class:"icon-content"},$p=["src","alt"],Op={class:"text-content"},Pp={key:0,class:"description"},Rp={class:"footer"},Mp={class:"bottom-row"},xp={class:"left"},Fp={key:0},Up={key:1},Hp=e.defineComponent({__name:"SubgroupCard",props:{iconB64Svg:{},text:{},routePath:{},totalCount:{default:0},description:{default:""},href:{default:void 0},isActive:{type:Boolean,default:!1},blueprintsCount:{default:0}},emits:["navigate"],setup(t,{emit:n}){const o=t,l=n,a=e.computed(()=>o.href===void 0?`${o.routePath}/${ve(o.text)}`:o.href);return(r,i)=>(e.openBlock(),e.createElementBlock("a",{href:a.value,onClick:i[0]||(i[0]=e.withModifiers(s=>l("navigate",a.value),["prevent"]))},[e.createElementVNode("div",{class:e.normalizeClass(["plugin",{"is-active":r.isActive}])},[e.createElementVNode("div",Ap,[e.createElementVNode("div",Dp,[e.createElementVNode("img",{src:r.iconB64Svg,alt:`${r.text} icon`},null,8,$p)]),e.createElementVNode("div",Op,[e.createElementVNode("h6",null,e.toDisplayString(r.text),1),r.description?(e.openBlock(),e.createElementBlock("p",Pp,e.toDisplayString(r.description),1)):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Rp,[i[3]||(i[3]=e.createElementVNode("hr",null,null,-1)),e.createElementVNode("div",Mp,[e.createElementVNode("div",xp,[o.totalCount?(e.openBlock(),e.createElementBlock("p",Fp,[e.createTextVNode(e.toDisplayString(o.totalCount??0)+" ",1),i[1]||(i[1]=e.createElementVNode("span",null,"Tasks",-1))])):e.createCommentVNode("",!0),o.blueprintsCount?(e.openBlock(),e.createElementBlock("p",Up,[e.createTextVNode(e.toDisplayString(o.blueprintsCount??0)+" ",1),i[2]||(i[2]=e.createElementVNode("span",null,"Blueprints",-1))])):e.createCommentVNode("",!0)]),e.createVNode(qn)])])],2)],8,Ip))}}),Yl=D(Hp,[["__scopeId","data-v-5d4d2b8b"]]),zp=["href"],Wp={class:"element-card"},jp={class:"top-row"},Gp={class:"text-capitalize"},Kp={key:0},Yp={class:"plugin-info"},qp={class:"plugin-class"},Xp=e.defineComponent({__name:"ElementCard",props:{iconB64Svg:{},text:{},routePath:{},pluginClass:{},href:{},title:{}},emits:["navigate"],setup(t,{emit:n}){const o=t,l=n,a=e.computed(()=>o.href===void 0?`${o.routePath}/${ve(o.text)}`:o.href);return(r,i)=>(e.openBlock(),e.createElementBlock("a",{href:a.value,onClick:i[0]||(i[0]=e.withModifiers(s=>l("navigate",a.value),["prevent"]))},[e.createElementVNode("div",Wp,[e.createElementVNode("div",jp,[e.createElementVNode("h6",Gp,e.toDisplayString(r.text),1),e.createVNode(qn)]),r.title?(e.openBlock(),e.createElementBlock("div",Kp,[e.renderSlot(r.$slots,"markdown",{content:r.title.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Yp,[e.createElementVNode("code",qp,e.toDisplayString(r.pluginClass),1)])])],8,zp))}}),ql=D(Xp,[["__scopeId","data-v-a3504373"]]),Zp={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Jp=["aria-hidden","aria-label"],Qp=["fill","width","height"],eg={d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"},tg={key:0};function ng(t,n,o,l,a,r){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon content-copy-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",eg,[o.title?(e.openBlock(),e.createElementBlock("title",tg,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,Qp))],16,Jp)}const og=D(Zp,[["render",ng]]),lg={key:0,class:"language"},rg=["innerHTML"],ag=e.defineComponent({__name:"SchemaToCode",props:{highlighter:{},code:{default:""},language:{default:null},filename:{default:null},highlights:{default:()=>[]},meta:{default:null},theme:{default:"github-dark"}},setup(t){const n={ContentCopy:e.shallowRef(og),Check:e.shallowRef($l)},o=t,l=e.ref(!1),a=e.ref(),r=e.shallowRef(n.ContentCopy.value),i=e.ref(),s=e.ref(),c=e.computed(()=>o.highlighter.codeToHtml(o.code,{lang:o.language,theme:o.theme}));function u(){l.value=!0,a.value&&e.nextTick(()=>{i.value&&s.value&&Dr.createPopper(i.value,s.value,{placement:"left"})})}function d(){clearTimeout(a.value),navigator.clipboard.writeText(o.code.trimEnd()),r.value=n.Check.value,a.value=setTimeout(()=>{r.value=n.ContentCopy.value,a.value=void 0},2e3)}return(p,h)=>(e.openBlock(),e.createElementBlock("div",{class:"code-block",onMouseover:u,onMouseleave:h[0]||(h[0]=_=>l.value=!1)},[p.language&&!l.value?(e.openBlock(),e.createElementBlock("div",lg,e.toDisplayString(p.language),1)):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("button",{ref_key:"copyButton",ref:i,class:"copy"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{onClick:d}))],512),a.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"copyTooltip",ref:s,id:"copied-tooltip",role:"tooltip"},[...h[1]||(h[1]=[e.createTextVNode(" Copied! ",-1),e.createElementVNode("div",{id:"arrow","data-popper-arrow":""},null,-1)])],512)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{innerHTML:c.value},null,8,rg)],32))}}),xt=D(ag,[["__scopeId","data-v-a899f6a1"]]);function Tt(t){if(t.type)return Array.isArray(t.type)?t.type:[t.type];if(t.$ref){const o=t.$ref.split("/");return["#"+o[o.length-1]]}}function Xl(t){const n=t.split("_")[0];return n.substring(n.lastIndexOf(".")+1)}function Zn(t){if(t.enum)return t.enum;if(t.items?.enum)return t.items.enum;if(t.additionalProperties?.enum)return t.additionalProperties.enum}function Zl(t){return t.allOf&&(t=t.allOf.reduce((n,o)=>({...n,...o}),{...t}),delete t.allOf),t}function at(t){const n={},o=a=>{const r=Tt(a);if(r&&r.length>0)return r;if(a.anyOf)return a.anyOf.flatMap(Tt).filter(i=>i!==void 0).filter(w.Utils.distinctFilter)},l=o(t);if(l?n.types=l:n.types=["object"],n.types.includes("array")&&t.items){const a=o(t.items);a&&t.items.anyOf&&(n.types=n.types.filter(r=>r!=="array").concat(a))}return t.additionalProperties?n.subType=Tt(t.additionalProperties)?.[0]:t.items&&(n.subType=Tt(t.items)?.[0]),n}function Jl(t,n,o=new Set){if(!n)return[];const l=at(t),a=[];if(l.types.forEach(r=>{if(r.startsWith("#")){const i=r.slice(1);n[i]&&!o.has(i)&&!a.includes(i)&&a.push(i)}}),l.subType?.startsWith("#")){const r=l.subType.slice(1);n[r]&&!o.has(r)&&!a.includes(r)&&a.push(r)}return a.map(r=>{const i=n[r];return{key:r,title:i?.title??r.split("_")[0],properties:i?.properties??{}}})}function Ql(t){return t.$dynamic===!0?!0:t.$dynamic===!1?!1:t.anyOf?.some(n=>n.$dynamic===!0)??!1}const ig={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},sg=["aria-hidden","aria-label"],cg=["fill","width","height"],ug={d:"M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z"},dg={key:0};function mg(t,n,o,l,a,r){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon file-document-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",ug,[o.title?(e.openBlock(),e.createElementBlock("title",dg,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,cg))],16,sg)}const fg=D(ig,[["render",mg]]),pg={class:"me-3"},gg={class:"d-flex flex-column"},hg=e.defineComponent({name:"Alert",__name:"Alert",props:{type:{}},setup(t){const n=t,o=e.computed(()=>{switch(n.type){case"success":return fg;case"info":return At;case"warning":return Kt;case"danger":return gn;default:return At}});return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass("doc-alert alert alert-"+l.type),role:"alert"},[e.createElementVNode("div",pg,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{class:"alert-icon"}))]),e.createElementVNode("div",gg,[e.renderSlot(l.$slots,"default",{},void 0,!0)])],2))}}),er=D(hg,[["__scopeId","data-v-f7fd8bc1"]]),Eg={name:"EyeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},yg=["aria-hidden","aria-label"],kg=["fill","width","height"],_g={d:"M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z"},vg={key:0};function Cg(t,n,o,l,a,r){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon eye-outline-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",_g,[o.title?(e.openBlock(),e.createElementBlock("title",vg,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,kg))],16,yg)}const tr=D(Eg,[["render",Cg]]),Ng={class:"property-detail"},Sg={key:0},bg=["href"],wg={class:"d-flex fw-bold type-box rounded fs-7 px-2 py-1"},Lg={class:"ref-type"},Tg={key:1,class:"type-box rounded fs-7 px-2 py-1"},Bg={key:1},Vg={class:"border rounded px-2 py-1"},Ig={key:2},Ag={class:"border rounded px-2 py-1"},Dg={key:3},$g={class:"border rounded px-2 py-1"},Og={key:4},Pg={class:"border rounded px-2 py-1"},Rg={key:5},Mg={class:"border rounded px-2 py-1"},xg={key:6},Fg={class:"border rounded px-2 py-1"},Ug={key:7},Hg={class:"border rounded px-2 py-1"},zg={key:8},Wg={class:"border rounded px-2 py-1"},jg={key:9},Gg={class:"border rounded px-2 py-1"},Kg={key:10},Yg={class:"border rounded px-2 py-1"},qg={key:11},Xg={class:"border rounded px-2 py-1"},Zg={key:12},Jg={class:"border rounded px-2 py-1"},Qg={key:13},e1={class:"d-flex flex-wrap justify-content-end gap-7 p-0"},t1={key:14},n1={class:"property-description markdown"},o1={key:2},l1=e.defineComponent({__name:"PropertyDetail",props:{property:{}},setup(t){const n=t,o=e.ref(at(n.property).subType),l=e.ref(Zn(n.property)),a=w.sanitizeForMarkdown;return(r,i)=>(e.openBlock(),e.createElementBlock("div",Ng,[o.value?(e.openBlock(),e.createElementBlock("div",Sg,[i[1]||(i[1]=e.createElementVNode("span",null," SubType ",-1)),o.value.startsWith("#")?(e.openBlock(),e.createElementBlock("a",{key:0,href:o.value,onClick:i[0]||(i[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("button",wg,[e.createElementVNode("span",Lg,e.toDisplayString(e.unref(Xl)(o.value)),1),e.createVNode(tr)])],8,bg)):(e.openBlock(),e.createElementBlock("span",Tg,e.toDisplayString(o.value),1))])):e.createCommentVNode("",!0),r.property.default!==void 0?(e.openBlock(),e.createElementBlock("div",Bg,[i[2]||(i[2]=e.createElementVNode("span",null," Default ",-1)),e.createElementVNode("code",Vg,e.toDisplayString(r.property.default),1)])):e.createCommentVNode("",!0),r.property.pattern!==void 0?(e.openBlock(),e.createElementBlock("div",Ig,[i[3]||(i[3]=e.createElementVNode("span",null," Validation RegExp ",-1)),e.createElementVNode("code",Ag,e.toDisplayString(r.property.pattern),1)])):e.createCommentVNode("",!0),r.property.unit!==void 0&&r.property.unit.trim().length>0?(e.openBlock(),e.createElementBlock("div",Dg,[i[4]||(i[4]=e.createElementVNode("span",null," Unit ",-1)),e.createElementVNode("code",$g,e.toDisplayString(r.property.unit),1)])):e.createCommentVNode("",!0),r.property.minLength!==void 0?(e.openBlock(),e.createElementBlock("div",Og,[i[5]||(i[5]=e.createElementVNode("span",null," Min length ",-1)),e.createElementVNode("code",Pg,e.toDisplayString(r.property.minLength),1)])):e.createCommentVNode("",!0),r.property.maxLength!==void 0?(e.openBlock(),e.createElementBlock("div",Rg,[i[6]||(i[6]=e.createElementVNode("span",null," Max length ",-1)),e.createElementVNode("code",Mg,e.toDisplayString(r.property.maxLength),1)])):e.createCommentVNode("",!0),r.property.minItems!==void 0?(e.openBlock(),e.createElementBlock("div",xg,[i[7]||(i[7]=e.createElementVNode("span",null," Min items ",-1)),e.createElementVNode("code",Fg,e.toDisplayString(r.property.minItems),1)])):e.createCommentVNode("",!0),r.property.maxItems!==void 0?(e.openBlock(),e.createElementBlock("div",Ug,[i[8]||(i[8]=e.createElementVNode("span",null," Max items ",-1)),e.createElementVNode("code",Hg,e.toDisplayString(r.property.maxItems),1)])):e.createCommentVNode("",!0),r.property.minimum!==void 0?(e.openBlock(),e.createElementBlock("div",zg,[i[9]||(i[9]=e.createElementVNode("span",null," Minimum ",-1)),e.createElementVNode("code",Wg," >= "+e.toDisplayString(r.property.minimum),1)])):e.createCommentVNode("",!0),r.property.exclusiveMinimum!==void 0?(e.openBlock(),e.createElementBlock("div",jg,[i[10]||(i[10]=e.createElementVNode("span",null," Minimum ",-1)),e.createElementVNode("code",Gg," > "+e.toDisplayString(r.property.minimum),1)])):e.createCommentVNode("",!0),r.property.maximum!==void 0?(e.openBlock(),e.createElementBlock("div",Kg,[i[11]||(i[11]=e.createElementVNode("span",null," Maximum ",-1)),e.createElementVNode("code",Yg," <= "+e.toDisplayString(r.property.maximum),1)])):e.createCommentVNode("",!0),r.property.exclusiveMaximum!==void 0?(e.openBlock(),e.createElementBlock("div",qg,[i[12]||(i[12]=e.createElementVNode("span",null," Maximum ",-1)),e.createElementVNode("code",Xg," < "+e.toDisplayString(r.property.maximum),1)])):e.createCommentVNode("",!0),r.property.format!==void 0?(e.openBlock(),e.createElementBlock("div",Zg,[i[13]||(i[13]=e.createElementVNode("span",null," Format ",-1)),e.createElementVNode("code",Jg,e.toDisplayString(r.property.format),1)])):e.createCommentVNode("",!0),l.value!==void 0?(e.openBlock(),e.createElementBlock("div",Qg,[i[14]||(i[14]=e.createElementVNode("span",null," Possible Values ",-1)),e.createElementVNode("div",e1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(s,c)=>(e.openBlock(),e.createElementBlock("code",{class:"border rounded px-2 py-1",key:c},e.toDisplayString(s),1))),128))])])):e.createCommentVNode("",!0),r.property.title!==void 0||r.property.description!==void 0?(e.openBlock(),e.createElementBlock("div",t1,[e.createElementVNode("div",n1,[r.property.title!==void 0?e.renderSlot(r.$slots,"markdown",{key:0,content:e.unref(a)(r.property.title)},void 0,!0):e.createCommentVNode("",!0),r.property.description!==void 0?e.renderSlot(r.$slots,"markdown",{key:1,content:e.unref(a)(r.property.description)},void 0,!0):e.createCommentVNode("",!0),r.property.$internalStorageURI?(e.openBlock(),e.createElementBlock("div",o1,[e.createVNode(er,{type:"info"},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]))}}),r1=D(l1,[["__scopeId","data-v-e4c1ea43"]]),a1={name:"ChevronUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},i1=["aria-hidden","aria-label"],s1=["fill","width","height"],c1={d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"},u1={key:0};function d1(t,n,o,l,a,r){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon chevron-up-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",c1,[o.title?(e.openBlock(),e.createElementBlock("title",u1,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,s1))],16,i1)}const nr=D(a1,[["render",d1]]),m1={name:"SnowflakeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},f1=["aria-hidden","aria-label"],p1=["fill","width","height"],g1={d:"M20.79,13.95L18.46,14.57L16.46,13.44V10.56L18.46,9.43L20.79,10.05L21.31,8.12L19.54,7.65L20,5.88L18.07,5.36L17.45,7.69L15.45,8.82L13,7.38V5.12L14.71,3.41L13.29,2L12,3.29L10.71,2L9.29,3.41L11,5.12V7.38L8.5,8.82L6.5,7.69L5.92,5.36L4,5.88L4.47,7.65L2.7,8.12L3.22,10.05L5.55,9.43L7.55,10.56V13.45L5.55,14.58L3.22,13.96L2.7,15.89L4.47,16.36L4,18.12L5.93,18.64L6.55,16.31L8.55,15.18L11,16.62V18.88L9.29,20.59L10.71,22L12,20.71L13.29,22L14.7,20.59L13,18.88V16.62L15.5,15.17L17.5,16.3L18.12,18.63L20,18.12L19.53,16.35L21.3,15.88L20.79,13.95M9.5,10.56L12,9.11L14.5,10.56V13.44L12,14.89L9.5,13.44V10.56Z"},h1={key:0};function E1(t,n,o,l,a,r){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon snowflake-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",g1,[o.title?(e.openBlock(),e.createElementBlock("title",h1,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,p1))],16,f1)}const or=D(m1,[["render",E1]]),y1={name:"AlphaBBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},k1=["aria-hidden","aria-label"],_1=["fill","width","height"],v1={d:"M5,3H19A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V5A2,2 0 0,1 5,3M15,10.5V9A2,2 0 0,0 13,7H9V17H13A2,2 0 0,0 15,15V13.5C15,12.7 14.3,12 13.5,12C14.3,12 15,11.3 15,10.5M13,15H11V13H13V15M13,11H11V9H13V11Z"},C1={key:0};function N1(t,n,o,l,a,r){return e.openBlock(),e.createElementBlock("span",e.mergeProps(t.$attrs,{"aria-hidden":o.title?null:"true","aria-label":o.title,class:"material-design-icon alpha-b-box-icon",role:"img",onClick:n[0]||(n[0]=i=>t.$emit("click",i))}),[(e.openBlock(),e.createElementBlock("svg",{fill:o.fillColor,class:"material-design-icon__svg",width:o.size,height:o.size,viewBox:"0 0 24 24"},[e.createElementVNode("path",v1,[o.title?(e.openBlock(),e.createElementBlock("title",C1,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0)])],8,_1))],16,k1)}const lr=D(y1,[["render",N1]]),S1={class:"border overflow-hidden"},b1={class:"d-flex flex-grow-1 align-items-center justify-content-between"},w1={class:"d-flex gap-2"},L1={class:"d-flex flex-wrap justify-content-end gap-2"},T1=["href"],B1={class:"ref-type"},V1={key:1,class:"type-box rounded fs-7 px-2 py-1"},I1=e.defineComponent({__name:"CollapsibleProperties",props:{href:{default:Math.random().toString(36).substring(2,5)},sectionName:{},properties:{default:void 0},showDynamic:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},forceInclude:{default:()=>[]},noUrlChange:{type:Boolean,default:!1}},emits:["expand"],setup(t,{emit:n}){const o=t,l=n,a=e.ref(!1);e.watch(a,i=>{i&&l("expand")});function r(i){const s=[],c=[];for(const p in i)typeof i[p]=="object"&&(i[p]=Zl(i[p]),i[p].$required?s.push(p):c.push(p));const u=[...s.sort(),...c.sort()],d={};return u.forEach(p=>{(!i[p].$deprecated||o.forceInclude?.includes(p))&&(d[p]=i[p])}),d}return(i,s)=>(e.openBlock(),e.createBlock(ht,{class:"section-collapsible","clickable-text":i.sectionName,href:i.href,onExpand:s[2]||(s[2]=c=>l("expand")),"initially-expanded":i.initiallyExpanded||a.value,"no-url-change":i.noUrlChange},e.createSlots({_:2},[Object.keys(i.properties??{}).length>0?{name:"content",fn:e.withCtx(()=>[e.createElementVNode("div",S1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r(i.properties),(c,u)=>(e.openBlock(),e.createBlock(ht,{class:"property",key:u,arrow:!1,"clickable-text":u,href:i.href+"_"+u,onExpand:s[1]||(s[1]=d=>a.value=!0),"no-url-change":i.noUrlChange},{additionalButtonText:e.withCtx(()=>[c.$required?(e.openBlock(),e.createBlock(j,{key:0,class:"d-flex",title:"Required"},{default:e.withCtx(()=>[...s[3]||(s[3]=[e.createElementVNode("span",{class:"text-danger"}," *",-1)])]),_:1})):e.createCommentVNode("",!0)]),buttonRight:e.withCtx(({collapsed:d})=>[e.createElementVNode("span",b1,[e.createElementVNode("span",w1,[i.showDynamic&&!e.unref(Ql)(c)?(e.openBlock(),e.createBlock(j,{key:0,class:"d-flex",title:"Non-dynamic"},{default:e.withCtx(()=>[e.createVNode(or,{class:"text-info"})]),_:1})):e.createCommentVNode("",!0),c.$beta?(e.openBlock(),e.createBlock(j,{key:1,class:"d-flex",title:"Beta"},{default:e.withCtx(()=>[e.createVNode(lr,{class:"text-warning"})]),_:1})):e.createCommentVNode("",!0),c.$deprecated?(e.openBlock(),e.createBlock(j,{key:2,class:"d-flex",title:"Deprecated"},{default:e.withCtx(()=>[e.createVNode(Kt,{class:"text-warning"})]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("span",L1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(at)(c).types,p=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:p},[p.startsWith("#")?(e.openBlock(),e.createElementBlock("a",{key:0,class:"d-flex fw-bold ref-type-box rounded fs-7 px-2 py-1",href:p,onClick:s[0]||(s[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("span",B1,e.toDisplayString(e.unref(Xl)(p)),1),e.createVNode(tr)],8,T1)):(e.openBlock(),e.createElementBlock("span",V1,e.toDisplayString(p),1))],64))),128)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d?Xn:nr),{class:"arrow"}))])])]),content:e.withCtx(()=>[e.createVNode(r1,{property:c},{markdown:e.withCtx(({content:d})=>[e.renderSlot(i.$slots,"markdown",{content:d},void 0,!0)]),_:3},8,["property"])]),_:2},1032,["clickable-text","href","no-url-change"]))),128))])]),key:"0"}:void 0]),1032,["clickable-text","href","initially-expanded","no-url-change"]))}}),Bt=D(I1,[["__scopeId","data-v-a477e27c"]]),A1={class:"d-flex flex-column gap-6"},D1={class:"d-flex flex-column gap-3"},$1={key:0,class:"alert alert-info mb-2",role:"alert"},O1={key:1,class:"plugin-title markdown"},P1={key:2,class:"markdown"},R1={class:"d-flex flex-column gap-4"},M1={class:"d-flex flex-column gap-3"},x1={class:"markdown"},F1={key:0,class:"w-100 align-self-center"},U1={class:"markdown"},H1={class:"markdown"},z1={class:"markdown"},W1={class:"d-flex flex-column gap-7 ps-3"},j1={class:"markdown"},G1=e.defineComponent({__name:"SchemaToHtml",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1},forceIncludeProperties:{default:()=>[]},noUrlChange:{type:Boolean,default:!1}},async setup(t){let n,o;const l=t,a=e.ref(!1),r=e.ref(new Set),i=e.ref(0),s=async()=>{const v=window.location.hash.slice(1);if(!v||!l.schema.definitions){r.value.clear();return}const k=v.replace(/-body$/,""),E=Object.keys(l.schema.definitions).find(f=>k===f||k.startsWith(f+"_"));if(E){a.value=!0,i.value+=1,r.value.clear(),r.value.add(E),await e.nextTick();let f=0;const y=30,T=()=>{const S=document.getElementById(k);S?S.scrollIntoView({behavior:"smooth",block:"start"}):f<y&&(f++,requestAnimationFrame(T))};requestAnimationFrame(T)}else r.value.clear()};e.watch([()=>l.schema,()=>l.pluginType],([v,k],[E,f])=>{(v!==E||k!==f)&&l.schema.definitions&&s()});const c=v=>v?.full?v.code:`id: "${l.pluginType.split(".").reverse()[0]?.toLowerCase()}"
32
32
  type: "${l.pluginType}"
33
- `.concat(v.code),u=e.ref(),d=e.computed(()=>l.schema.properties?.$examples),p=e.computed(()=>Object.fromEntries(l.schema.properties?.$metrics?.map(v=>[v.name,{...v,name:void 0}]))),{getHighlighterCore:h}=([n,o]=e.withAsyncContext(()=>Promise.resolve().then(()=>require("./shikiToolset-BJ-YtZfq.cjs"))),n=await n,o(),n);u.value=([n,o]=e.withAsyncContext(()=>h()),n=await n,o(),n);const _="github-"+(l.darkMode?"dark":"light");return e.onMounted(()=>{s(),window.addEventListener("hashchange",s)}),e.onUnmounted(()=>{window.removeEventListener("hashchange",s)}),(v,k)=>(e.openBlock(),e.createElementBlock("div",A1,[e.createElementVNode("div",D1,[v.schema.properties?.$beta?(e.openBlock(),e.createElementBlock("div",$1,[...k[0]||(k[0]=[e.createElementVNode("p",null," This plugin is currently in beta. While it is considered safe for use, please be aware that its API could change in ways that are not compatible with earlier versions in future releases, or it might become unsupported. ",-1)])])):e.createCommentVNode("",!0),v.schema.properties?.title?(e.openBlock(),e.createElementBlock("div",O1,[e.renderSlot(v.$slots,"markdown",{content:v.schema.properties.title.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):e.createCommentVNode("",!0),v.schema.properties?.description?(e.openBlock(),e.createElementBlock("div",P1,[e.renderSlot(v.$slots,"markdown",{content:v.schema.properties.description.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(xt,{highlighter:u.value,language:"yaml",theme:_,code:`type: "${v.pluginType}"`,key:v.pluginType},null,8,["highlighter","code"]))]),(e.openBlock(),e.createElementBlock("div",{class:"d-flex flex-column gap-3",key:v.pluginType},[d.value?(e.openBlock(),e.createBlock(ht,{key:0,class:"plugin-section","clickable-text":"Examples",href:"examples","no-url-change":v.noUrlChange},{content:e.withCtx(()=>[e.createElementVNode("div",R1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(E,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:v.pluginType+"-"+f},[e.createElementVNode("div",M1,[e.createElementVNode("div",x1,[E.title?e.renderSlot(v.$slots,"markdown",{key:0,content:E.title.replace(/ *:(?![ /])/g,": ")},void 0,!0):e.createCommentVNode("",!0)]),E.code?(e.openBlock(),e.createBlock(xt,{key:0,highlighter:u.value,language:E.lang??"yaml",theme:_,code:c(E)},null,8,["highlighter","language","code"])):e.createCommentVNode("",!0)]),f<d.value.length-1?(e.openBlock(),e.createElementBlock("hr",F1)):e.createCommentVNode("",!0)],64))),128))])]),_:3},8,["no-url-change"])):e.createCommentVNode("",!0),v.schema.properties?.properties?(e.openBlock(),e.createBlock(Bt,{key:1,class:"plugin-section",properties:v.schema.properties.properties,"section-name":"Properties",href:"properties","initially-expanded":v.propsInitiallyExpanded,"force-include":v.forceIncludeProperties,"no-url-change":v.noUrlChange},{markdown:e.withCtx(({content:E})=>[e.createElementVNode("div",U1,[e.renderSlot(v.$slots,"markdown",{content:E},void 0,!0)])]),_:3},8,["properties","initially-expanded","force-include","no-url-change"])):e.createCommentVNode("",!0),v.schema.outputs?.properties&&Object.keys(v.schema.outputs.properties).length>0?(e.openBlock(),e.createBlock(Bt,{key:2,class:"plugin-section",properties:v.schema.outputs.properties,"section-name":"Outputs",href:"outputs","show-dynamic":!1,"no-url-change":v.noUrlChange},{markdown:e.withCtx(({content:E})=>[e.createElementVNode("div",H1,[e.renderSlot(v.$slots,"markdown",{content:E},void 0,!0)])]),_:3},8,["properties","no-url-change"])):e.createCommentVNode("",!0),v.schema.properties?.$metrics?(e.openBlock(),e.createBlock(Bt,{key:3,class:"plugin-section",properties:p.value,"section-name":"Metrics",href:"metrics","show-dynamic":!1,"no-url-change":v.noUrlChange},{markdown:e.withCtx(({content:E})=>[e.createElementVNode("div",z1,[e.renderSlot(v.$slots,"markdown",{content:E},void 0,!0)])]),_:3},8,["properties","no-url-change"])):e.createCommentVNode("",!0),v.schema.definitions&&Object.keys(v.schema.definitions).length>0?(e.openBlock(),e.createBlock(ht,{class:"plugin-section","clickable-text":"Definitions",href:"definitions","initially-expanded":a.value,key:`definitions-${v.pluginType}-${i.value}`,"no-url-change":v.noUrlChange},{content:e.withCtx(()=>[e.createElementVNode("div",W1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.entries(v.schema.definitions),([E,f])=>(e.openBlock(),e.createBlock(Bt,{properties:f.properties,"section-name":f.title??E.split("_")[0],href:E,"show-dynamic":!1,"initially-expanded":r.value.has(E),key:v.pluginType+"-"+E,class:"plugin-section nested-button-py-2",onExpand:y=>{a.value=!0,r.value.add(E)},"no-url-change":v.noUrlChange},{markdown:e.withCtx(({content:y})=>[e.createElementVNode("div",j1,[e.renderSlot(v.$slots,"markdown",{content:y},void 0,!0)])]),_:3},8,["properties","section-name","href","initially-expanded","onExpand","no-url-change"]))),128))])]),_:3},8,["initially-expanded","no-url-change"])):e.createCommentVNode("",!0)]))]))}}),K1=D(G1,[["__scopeId","data-v-af023a1d"]]),Y1={key:0},q1={class:"type-box rounded fs-7 px-2 py-1"},X1={key:1},Z1={class:"border rounded px-2 py-1"},J1={key:2},Q1={class:"border rounded px-2 py-1"},eh={key:3},th={class:"border rounded px-2 py-1"},nh={key:4},oh={class:"border rounded px-2 py-1"},lh={key:5},rh={class:"border rounded px-2 py-1"},ah={key:6},ih={class:"border rounded px-2 py-1"},sh={key:7},ch={class:"border rounded px-2 py-1"},uh={key:8},dh={class:"border rounded px-2 py-1"},mh={key:9},fh={class:"border rounded px-2 py-1"},ph={key:10},gh={class:"border rounded px-2 py-1"},hh={key:11},Eh={class:"border rounded px-2 py-1"},yh={key:12},kh={class:"border rounded px-2 py-1"},_h={key:13},vh={class:"values-wrapper d-flex flex-wrap justify-content-end gap-7 p-0"},Ch=e.defineComponent({__name:"PropertyMeta",props:{property:{},subtype:{},enumValues:{}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[n.subtype&&!n.subtype.startsWith("#")?(e.openBlock(),e.createElementBlock("div",Y1,[o[0]||(o[0]=e.createElementVNode("span",null,"SubType",-1)),e.createElementVNode("span",q1,e.toDisplayString(n.subtype),1)])):e.createCommentVNode("",!0),n.property.default!==void 0?(e.openBlock(),e.createElementBlock("div",X1,[o[1]||(o[1]=e.createElementVNode("span",null,"Default",-1)),e.createElementVNode("code",Z1,e.toDisplayString(n.property.default),1)])):e.createCommentVNode("",!0),n.property.pattern!==void 0?(e.openBlock(),e.createElementBlock("div",J1,[o[2]||(o[2]=e.createElementVNode("span",null,"Validation RegExp",-1)),e.createElementVNode("code",Q1,e.toDisplayString(n.property.pattern),1)])):e.createCommentVNode("",!0),n.property.unit!==void 0&&n.property.unit.trim().length>0?(e.openBlock(),e.createElementBlock("div",eh,[o[3]||(o[3]=e.createElementVNode("span",null,"Unit",-1)),e.createElementVNode("code",th,e.toDisplayString(n.property.unit),1)])):e.createCommentVNode("",!0),n.property.minLength!==void 0?(e.openBlock(),e.createElementBlock("div",nh,[o[4]||(o[4]=e.createElementVNode("span",null,"Min length",-1)),e.createElementVNode("code",oh,e.toDisplayString(n.property.minLength),1)])):e.createCommentVNode("",!0),n.property.maxLength!==void 0?(e.openBlock(),e.createElementBlock("div",lh,[o[5]||(o[5]=e.createElementVNode("span",null,"Max length",-1)),e.createElementVNode("code",rh,e.toDisplayString(n.property.maxLength),1)])):e.createCommentVNode("",!0),n.property.minItems!==void 0?(e.openBlock(),e.createElementBlock("div",ah,[o[6]||(o[6]=e.createElementVNode("span",null,"Min items",-1)),e.createElementVNode("code",ih,e.toDisplayString(n.property.minItems),1)])):e.createCommentVNode("",!0),n.property.maxItems!==void 0?(e.openBlock(),e.createElementBlock("div",sh,[o[7]||(o[7]=e.createElementVNode("span",null,"Max items",-1)),e.createElementVNode("code",ch,e.toDisplayString(n.property.maxItems),1)])):e.createCommentVNode("",!0),n.property.minimum!==void 0?(e.openBlock(),e.createElementBlock("div",uh,[o[8]||(o[8]=e.createElementVNode("span",null,"Minimum",-1)),e.createElementVNode("code",dh,">= "+e.toDisplayString(n.property.minimum),1)])):e.createCommentVNode("",!0),n.property.exclusiveMinimum!==void 0?(e.openBlock(),e.createElementBlock("div",mh,[o[9]||(o[9]=e.createElementVNode("span",null,"Minimum",-1)),e.createElementVNode("code",fh,"> "+e.toDisplayString(n.property.minimum),1)])):e.createCommentVNode("",!0),n.property.maximum!==void 0?(e.openBlock(),e.createElementBlock("div",ph,[o[10]||(o[10]=e.createElementVNode("span",null,"Maximum",-1)),e.createElementVNode("code",gh,"<= "+e.toDisplayString(n.property.maximum),1)])):e.createCommentVNode("",!0),n.property.exclusiveMaximum!==void 0?(e.openBlock(),e.createElementBlock("div",hh,[o[11]||(o[11]=e.createElementVNode("span",null,"Maximum",-1)),e.createElementVNode("code",Eh,"< "+e.toDisplayString(n.property.maximum),1)])):e.createCommentVNode("",!0),n.property.format!==void 0?(e.openBlock(),e.createElementBlock("div",yh,[o[12]||(o[12]=e.createElementVNode("span",null,"Format",-1)),e.createElementVNode("code",kh,e.toDisplayString(n.property.format),1)])):e.createCommentVNode("",!0),n.enumValues!==void 0?(e.openBlock(),e.createElementBlock("div",_h,[o[13]||(o[13]=e.createElementVNode("span",null,"Possible Values",-1)),e.createElementVNode("div",vh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.enumValues,(l,a)=>(e.openBlock(),e.createElementBlock("code",{class:"border rounded px-2 py-1",key:a},e.toDisplayString(l),1))),128))])])):e.createCommentVNode("",!0)],64))}}),rr=D(Ch,[["__scopeId","data-v-2d5ac2ae"]]),Nh={class:"d-flex flex-grow-1 align-items-center"},Sh=e.defineComponent({__name:"PropertyBadges",props:{property:{},showDynamic:{type:Boolean,default:!0},sectionClass:{default:""}},setup(t){function n(o){return at(o).types.filter(a=>!a.startsWith("#"))}return(o,l)=>(e.openBlock(),e.createElementBlock("span",Nh,[e.createElementVNode("span",{class:e.normalizeClass(["d-flex gap-2 flex-wrap align-items-center",o.sectionClass])},[o.property&&o.property.$required?(e.openBlock(),e.createBlock(j,{key:0,class:"d-flex align-items-center",title:"Required"},{default:e.withCtx(()=>[...l[0]||(l[0]=[e.createElementVNode("span",{class:"text-danger"},"*",-1)])]),_:1})):e.createCommentVNode("",!0),o.showDynamic&&o.property&&!e.unref(Ql)(o.property)?(e.openBlock(),e.createBlock(j,{key:1,class:"d-flex",title:"Non-dynamic"},{default:e.withCtx(()=>[e.createVNode(or,{class:"text-info"})]),_:1})):e.createCommentVNode("",!0),o.property&&o.property.$beta?(e.openBlock(),e.createBlock(j,{key:2,class:"d-flex",title:"Beta"},{default:e.withCtx(()=>[e.createVNode(lr,{class:"text-warning"})]),_:1})):e.createCommentVNode("",!0),o.property&&o.property.$deprecated?(e.openBlock(),e.createBlock(j,{key:3,class:"d-flex",title:"Deprecated"},{default:e.withCtx(()=>[e.createVNode(Kt,{class:"text-warning"})]),_:1})):e.createCommentVNode("",!0),o.property?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:4},e.renderList(n(o.property),a=>(e.openBlock(),e.createElementBlock("span",{key:a,class:"type-box rounded fs-7 px-2 py-1"},e.toDisplayString(a),1))),128)):e.createCommentVNode("",!0)],2)]))}}),ar=D(Sh,[["__scopeId","data-v-f088032b"]]),bh={class:"def-content"},wh={class:"d-flex align-items-center justify-content-between gap-2"},Lh={key:0,class:"property-desc mt-2"},Th={key:1,class:"mt-3 nested-defs"},Bh=e.defineComponent({__name:"DefinitionCollapsible",props:{definition:{},definitions:{default:void 0},visitedKeys:{default:()=>new Set},depth:{default:0},maxDepth:{default:3},section:{default:"properties"}},setup(t){const n=t,o=w.sanitizeForMarkdown,l=s=>{const c=at(s).subType;return c&&!c.startsWith("#")?c:void 0},a=s=>Zn(s),r=s=>{const c=n.definitions,u=n.depth,d=n.maxDepth,p=n.visitedKeys;return!c||u>=d?[]:Jl(s,c,p)},i=e.computed(()=>{const s=new Set(n.visitedKeys);return s.add(n.definition.key),s});return(s,c)=>{const u=e.resolveComponent("DefinitionCollapsible",!0);return e.openBlock(),e.createBlock(Et,{title:s.definition.title,href:`def-${s.definition.key}`,class:e.normalizeClass(["def-collapsible",`section-${s.section}`]),arrow:"","no-url-change":""},{content:e.withCtx(()=>[e.createElementVNode("div",bh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.definition.properties,(d,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"def-property"},[e.createElementVNode("div",wh,[e.createElementVNode("span",null,e.toDisplayString(p),1),e.createVNode(ar,{property:d,"show-dynamic":!1,"section-class":"section-properties"},null,8,["property"])]),e.createVNode(rr,{property:d,subtype:l(d),"enum-values":a(d)},null,8,["property","subtype","enum-values"]),d.title!==void 0||d.description!==void 0?(e.openBlock(),e.createElementBlock("div",Lh,[d.title?e.renderSlot(s.$slots,"markdown",{key:0,content:e.unref(o)(d.title)},void 0,!0):e.createCommentVNode("",!0),d.description?e.renderSlot(s.$slots,"markdown",{key:1,content:e.unref(o)(d.description)},void 0,!0):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),s.depth<s.maxDepth&&r(d).length?(e.openBlock(),e.createElementBlock("div",Th,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r(d),h=>(e.openBlock(),e.createBlock(u,{key:`${s.definition.key}-${h.key}`,definition:h,definitions:s.definitions,"visited-keys":i.value,depth:s.depth+1,"max-depth":s.maxDepth},{markdown:e.withCtx(({content:_})=>[e.renderSlot(s.$slots,"markdown",{content:_},void 0,!0)]),_:3},8,["definition","definitions","visited-keys","depth","max-depth"]))),128))])):e.createCommentVNode("",!0)]))),128))])]),_:3},8,["title","href","class"])}}}),Vh=D(Bh,[["__scopeId","data-v-577c29ff"]]),Ih={class:"property-detail"},Ah={key:0},Dh={class:"property-description markdown"},$h={key:2},Oh={key:3,class:"mt-3"},Ph=e.defineComponent({__name:"PropertyDetailV2",props:{property:{},definitions:{default:void 0},visitedKeys:{default:()=>new Set},depth:{default:0},maxDepth:{default:3},section:{default:"properties"}},setup(t){const n=t,o=e.computed(()=>at(n.property).subType),l=e.computed(()=>Zn(n.property)),a=e.computed(()=>{const s=n.definitions,c=n.depth,u=n.maxDepth,d=n.property,p=n.visitedKeys;return!s||c>=u?[]:Jl(d,s,p)}),r=e.computed(()=>{const s=new Set(n.visitedKeys);return a.value.forEach(c=>s.add(c.key)),s}),i=w.sanitizeForMarkdown;return(s,c)=>(e.openBlock(),e.createElementBlock("div",Ih,[e.createVNode(rr,{property:s.property,subtype:o.value,"enum-values":l.value},null,8,["property","subtype","enum-values"]),s.property.title!==void 0||s.property.description!==void 0||s.depth<s.maxDepth&&a.value.length>0?(e.openBlock(),e.createElementBlock("div",Ah,[e.createElementVNode("div",Dh,[s.property.title!==void 0?e.renderSlot(s.$slots,"markdown",{key:0,content:e.unref(i)(s.property.title)},void 0,!0):e.createCommentVNode("",!0),s.property.description!==void 0?e.renderSlot(s.$slots,"markdown",{key:1,content:e.unref(i)(s.property.description)},void 0,!0):e.createCommentVNode("",!0),s.property.$internalStorageURI?(e.openBlock(),e.createElementBlock("div",$h,[e.createVNode(er,{type:"info"},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):e.createCommentVNode("",!0),s.depth<s.maxDepth&&a.value.length>0?(e.openBlock(),e.createElementBlock("div",Oh,[c[0]||(c[0]=e.createElementVNode("div",{class:"definitions-header"}," Definitions ",-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,u=>(e.openBlock(),e.createBlock(Vh,{key:`${u.key}-${s.depth}`,definition:u,definitions:s.definitions,"visited-keys":r.value,depth:s.depth+1,"max-depth":s.maxDepth,section:s.section},{markdown:e.withCtx(({content:d})=>[e.renderSlot(s.$slots,"markdown",{content:d},void 0,!0)]),_:3},8,["definition","definitions","visited-keys","depth","max-depth","section"]))),128))])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]))}}),Rh=D(Ph,[["__scopeId","data-v-023aa8d8"]]),Mh={class:"border overflow-hidden"},xh=e.defineComponent({__name:"CollapsiblePropertiesV2",props:{href:{default:Math.random().toString(36).substring(2,5)},sectionName:{},properties:{default:void 0},showDynamic:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},forceInclude:{default:()=>[]},noUrlChange:{type:Boolean,default:!1},definitions:{default:void 0}},emits:["expand"],setup(t,{emit:n}){const o=t,l=n,a=e.computed(()=>{const s=o.sectionName.toLowerCase();return s==="properties"?"section-properties":s==="outputs"?"section-outputs":s==="metrics"?"section-metrics":""}),r=e.ref(!1);e.watch(r,s=>{s&&l("expand")});function i(s){const c=[],u=[];for(const h in s)typeof s[h]=="object"&&(s[h]=Zl(s[h]),s[h].$required?c.push(h):u.push(h));const d=[...c.sort(),...u.sort()],p={};return d.forEach(h=>{(!s[h].$deprecated||o.forceInclude?.includes(h))&&(p[h]=s[h])}),p}return(s,c)=>(e.openBlock(),e.createBlock(Et,{class:"section-collapsible",title:s.sectionName,href:s.href,onExpand:c[1]||(c[1]=u=>l("expand")),"initially-expanded":s.initiallyExpanded||r.value,"no-url-change":s.noUrlChange},e.createSlots({_:2},[Object.keys(s.properties??{}).length>0?{name:"content",fn:e.withCtx(()=>[e.createElementVNode("div",Mh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i(s.properties),(u,d)=>(e.openBlock(),e.createBlock(Et,{class:e.normalizeClass(["property",a.value]),key:d,title:d,href:s.href+"_"+d,onExpand:c[0]||(c[0]=p=>r.value=!0),"no-url-change":s.noUrlChange},{right:e.withCtx(()=>[e.createVNode(ar,{property:u,"show-dynamic":s.showDynamic},null,8,["property","show-dynamic"])]),content:e.withCtx(()=>[e.createVNode(Rh,{property:u,definitions:s.definitions,section:s.sectionName.toLowerCase()},{markdown:e.withCtx(({content:p})=>[e.renderSlot(s.$slots,"markdown",{content:p},void 0,!0)]),_:3},8,["property","definitions","section"])]),_:2},1032,["title","href","no-url-change","class"]))),128))])]),key:"0"}:void 0]),1032,["title","href","initially-expanded","no-url-change"]))}}),fn=D(xh,[["__scopeId","data-v-a2ba9447"]]),Fh={class:"d-flex flex-column gap-6"},Uh={class:"d-flex flex-column"},Hh={key:0,class:"alert alert-info mb-2",role:"alert"},zh={key:1,class:"plugin-title markdown"},Wh={key:2,class:"markdown"},jh={class:"d-flex flex-column gap-4"},Gh={class:"d-flex flex-column"},Kh={class:"markdown"},Yh={key:0,class:"w-100 align-self-center"},qh={class:"markdown"},Xh={class:"markdown"},Zh={class:"markdown"},Jh=e.defineComponent({__name:"SchemaToHtmlV2",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1},forceIncludeProperties:{default:()=>[]},noUrlChange:{type:Boolean,default:!1}},async setup(t){let n,o;const l=t,a=d=>d?.full?d.code:`id: "${l.pluginType.split(".").reverse()[0]?.toLowerCase()}"
33
+ `.concat(v.code),u=e.ref(),d=e.computed(()=>l.schema.properties?.$examples),p=e.computed(()=>Object.fromEntries(l.schema.properties?.$metrics?.map(v=>[v.name,{...v,name:void 0}]))),{getHighlighterCore:h}=([n,o]=e.withAsyncContext(()=>Promise.resolve().then(()=>require("./shikiToolset-BJ-YtZfq.cjs"))),n=await n,o(),n);u.value=([n,o]=e.withAsyncContext(()=>h()),n=await n,o(),n);const _="github-"+(l.darkMode?"dark":"light");return e.onMounted(()=>{s(),window.addEventListener("hashchange",s)}),e.onUnmounted(()=>{window.removeEventListener("hashchange",s)}),(v,k)=>(e.openBlock(),e.createElementBlock("div",A1,[e.createElementVNode("div",D1,[v.schema.properties?.$beta?(e.openBlock(),e.createElementBlock("div",$1,[...k[0]||(k[0]=[e.createElementVNode("p",null," This plugin is currently in beta. While it is considered safe for use, please be aware that its API could change in ways that are not compatible with earlier versions in future releases, or it might become unsupported. ",-1)])])):e.createCommentVNode("",!0),v.schema.properties?.title?(e.openBlock(),e.createElementBlock("div",O1,[e.renderSlot(v.$slots,"markdown",{content:v.schema.properties.title.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):e.createCommentVNode("",!0),v.schema.properties?.description?(e.openBlock(),e.createElementBlock("div",P1,[e.renderSlot(v.$slots,"markdown",{content:v.schema.properties.description.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(xt,{highlighter:u.value,language:"yaml",theme:_,code:`type: "${v.pluginType}"`,key:v.pluginType},null,8,["highlighter","code"]))]),(e.openBlock(),e.createElementBlock("div",{class:"d-flex flex-column gap-3",key:v.pluginType},[d.value?(e.openBlock(),e.createBlock(ht,{key:0,class:"plugin-section","clickable-text":"Examples",href:"examples","no-url-change":v.noUrlChange},{content:e.withCtx(()=>[e.createElementVNode("div",R1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(E,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:v.pluginType+"-"+f},[e.createElementVNode("div",M1,[e.createElementVNode("div",x1,[E.title?e.renderSlot(v.$slots,"markdown",{key:0,content:E.title.replace(/ *:(?![ /])/g,": ")},void 0,!0):e.createCommentVNode("",!0)]),E.code?(e.openBlock(),e.createBlock(xt,{key:0,highlighter:u.value,language:E.lang??"yaml",theme:_,code:c(E)},null,8,["highlighter","language","code"])):e.createCommentVNode("",!0)]),f<d.value.length-1?(e.openBlock(),e.createElementBlock("hr",F1)):e.createCommentVNode("",!0)],64))),128))])]),_:3},8,["no-url-change"])):e.createCommentVNode("",!0),v.schema.properties?.properties?(e.openBlock(),e.createBlock(Bt,{key:1,class:"plugin-section",properties:v.schema.properties.properties,"section-name":"Properties",href:"properties","initially-expanded":v.propsInitiallyExpanded,"force-include":v.forceIncludeProperties,"no-url-change":v.noUrlChange},{markdown:e.withCtx(({content:E})=>[e.createElementVNode("div",U1,[e.renderSlot(v.$slots,"markdown",{content:E},void 0,!0)])]),_:3},8,["properties","initially-expanded","force-include","no-url-change"])):e.createCommentVNode("",!0),v.schema.outputs?.properties&&Object.keys(v.schema.outputs.properties).length>0?(e.openBlock(),e.createBlock(Bt,{key:2,class:"plugin-section",properties:v.schema.outputs.properties,"section-name":"Outputs",href:"outputs","show-dynamic":!1,"no-url-change":v.noUrlChange},{markdown:e.withCtx(({content:E})=>[e.createElementVNode("div",H1,[e.renderSlot(v.$slots,"markdown",{content:E},void 0,!0)])]),_:3},8,["properties","no-url-change"])):e.createCommentVNode("",!0),v.schema.properties?.$metrics?(e.openBlock(),e.createBlock(Bt,{key:3,class:"plugin-section",properties:p.value,"section-name":"Metrics",href:"metrics","show-dynamic":!1,"no-url-change":v.noUrlChange},{markdown:e.withCtx(({content:E})=>[e.createElementVNode("div",z1,[e.renderSlot(v.$slots,"markdown",{content:E},void 0,!0)])]),_:3},8,["properties","no-url-change"])):e.createCommentVNode("",!0),v.schema.definitions&&Object.keys(v.schema.definitions).length>0?(e.openBlock(),e.createBlock(ht,{class:"plugin-section","clickable-text":"Definitions",href:"definitions","initially-expanded":a.value,key:`definitions-${v.pluginType}-${i.value}`,"no-url-change":v.noUrlChange},{content:e.withCtx(()=>[e.createElementVNode("div",W1,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.entries(v.schema.definitions),([E,f])=>(e.openBlock(),e.createBlock(Bt,{properties:f.properties,"section-name":f.title??E.split("_")[0],href:E,"show-dynamic":!1,"initially-expanded":r.value.has(E),key:v.pluginType+"-"+E,class:"plugin-section nested-button-py-2",onExpand:y=>{a.value=!0,r.value.add(E)},"no-url-change":v.noUrlChange},{markdown:e.withCtx(({content:y})=>[e.createElementVNode("div",j1,[e.renderSlot(v.$slots,"markdown",{content:y},void 0,!0)])]),_:3},8,["properties","section-name","href","initially-expanded","onExpand","no-url-change"]))),128))])]),_:3},8,["initially-expanded","no-url-change"])):e.createCommentVNode("",!0)]))]))}}),K1=D(G1,[["__scopeId","data-v-af023a1d"]]),Y1={key:0},q1={class:"type-box rounded fs-7 px-2 py-1"},X1={key:1},Z1={class:"border rounded px-2 py-1"},J1={key:2},Q1={class:"border rounded px-2 py-1"},eh={key:3},th={class:"border rounded px-2 py-1"},nh={key:4},oh={class:"border rounded px-2 py-1"},lh={key:5},rh={class:"border rounded px-2 py-1"},ah={key:6},ih={class:"border rounded px-2 py-1"},sh={key:7},ch={class:"border rounded px-2 py-1"},uh={key:8},dh={class:"border rounded px-2 py-1"},mh={key:9},fh={class:"border rounded px-2 py-1"},ph={key:10},gh={class:"border rounded px-2 py-1"},hh={key:11},Eh={class:"border rounded px-2 py-1"},yh={key:12},kh={class:"border rounded px-2 py-1"},_h={key:13},vh={class:"values-wrapper d-flex flex-wrap justify-content-end gap-7 p-0"},Ch=e.defineComponent({__name:"PropertyMeta",props:{property:{},subtype:{},enumValues:{}},setup(t){return(n,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[n.subtype&&!n.subtype.startsWith("#")?(e.openBlock(),e.createElementBlock("div",Y1,[o[0]||(o[0]=e.createElementVNode("span",null,"SubType",-1)),e.createElementVNode("span",q1,e.toDisplayString(n.subtype),1)])):e.createCommentVNode("",!0),n.property.default!==void 0?(e.openBlock(),e.createElementBlock("div",X1,[o[1]||(o[1]=e.createElementVNode("span",null,"Default",-1)),e.createElementVNode("code",Z1,e.toDisplayString(n.property.default),1)])):e.createCommentVNode("",!0),n.property.pattern!==void 0?(e.openBlock(),e.createElementBlock("div",J1,[o[2]||(o[2]=e.createElementVNode("span",null,"Validation RegExp",-1)),e.createElementVNode("code",Q1,e.toDisplayString(n.property.pattern),1)])):e.createCommentVNode("",!0),n.property.unit!==void 0&&n.property.unit.trim().length>0?(e.openBlock(),e.createElementBlock("div",eh,[o[3]||(o[3]=e.createElementVNode("span",null,"Unit",-1)),e.createElementVNode("code",th,e.toDisplayString(n.property.unit),1)])):e.createCommentVNode("",!0),n.property.minLength!==void 0?(e.openBlock(),e.createElementBlock("div",nh,[o[4]||(o[4]=e.createElementVNode("span",null,"Min length",-1)),e.createElementVNode("code",oh,e.toDisplayString(n.property.minLength),1)])):e.createCommentVNode("",!0),n.property.maxLength!==void 0?(e.openBlock(),e.createElementBlock("div",lh,[o[5]||(o[5]=e.createElementVNode("span",null,"Max length",-1)),e.createElementVNode("code",rh,e.toDisplayString(n.property.maxLength),1)])):e.createCommentVNode("",!0),n.property.minItems!==void 0?(e.openBlock(),e.createElementBlock("div",ah,[o[6]||(o[6]=e.createElementVNode("span",null,"Min items",-1)),e.createElementVNode("code",ih,e.toDisplayString(n.property.minItems),1)])):e.createCommentVNode("",!0),n.property.maxItems!==void 0?(e.openBlock(),e.createElementBlock("div",sh,[o[7]||(o[7]=e.createElementVNode("span",null,"Max items",-1)),e.createElementVNode("code",ch,e.toDisplayString(n.property.maxItems),1)])):e.createCommentVNode("",!0),n.property.minimum!==void 0?(e.openBlock(),e.createElementBlock("div",uh,[o[8]||(o[8]=e.createElementVNode("span",null,"Minimum",-1)),e.createElementVNode("code",dh,">= "+e.toDisplayString(n.property.minimum),1)])):e.createCommentVNode("",!0),n.property.exclusiveMinimum!==void 0?(e.openBlock(),e.createElementBlock("div",mh,[o[9]||(o[9]=e.createElementVNode("span",null,"Minimum",-1)),e.createElementVNode("code",fh,"> "+e.toDisplayString(n.property.minimum),1)])):e.createCommentVNode("",!0),n.property.maximum!==void 0?(e.openBlock(),e.createElementBlock("div",ph,[o[10]||(o[10]=e.createElementVNode("span",null,"Maximum",-1)),e.createElementVNode("code",gh,"<= "+e.toDisplayString(n.property.maximum),1)])):e.createCommentVNode("",!0),n.property.exclusiveMaximum!==void 0?(e.openBlock(),e.createElementBlock("div",hh,[o[11]||(o[11]=e.createElementVNode("span",null,"Maximum",-1)),e.createElementVNode("code",Eh,"< "+e.toDisplayString(n.property.maximum),1)])):e.createCommentVNode("",!0),n.property.format!==void 0?(e.openBlock(),e.createElementBlock("div",yh,[o[12]||(o[12]=e.createElementVNode("span",null,"Format",-1)),e.createElementVNode("code",kh,e.toDisplayString(n.property.format),1)])):e.createCommentVNode("",!0),n.enumValues!==void 0?(e.openBlock(),e.createElementBlock("div",_h,[o[13]||(o[13]=e.createElementVNode("span",null,"Possible Values",-1)),e.createElementVNode("div",vh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.enumValues,(l,a)=>(e.openBlock(),e.createElementBlock("code",{class:"border rounded px-2 py-1",key:a},e.toDisplayString(l),1))),128))])])):e.createCommentVNode("",!0)],64))}}),rr=D(Ch,[["__scopeId","data-v-2d5ac2ae"]]),Nh={class:"d-flex flex-grow-1 align-items-center"},Sh=e.defineComponent({__name:"PropertyBadges",props:{property:{},showDynamic:{type:Boolean,default:!0},sectionClass:{default:""}},setup(t){function n(o){return at(o).types.filter(a=>!a.startsWith("#"))}return(o,l)=>(e.openBlock(),e.createElementBlock("span",Nh,[e.createElementVNode("span",{class:e.normalizeClass(["d-flex gap-2 flex-wrap align-items-center",o.sectionClass])},[o.property&&o.property.$required?(e.openBlock(),e.createBlock(j,{key:0,class:"d-flex align-items-center",title:"Required"},{default:e.withCtx(()=>[...l[0]||(l[0]=[e.createElementVNode("span",{class:"text-danger"},"*",-1)])]),_:1})):e.createCommentVNode("",!0),o.showDynamic&&o.property&&!e.unref(Ql)(o.property)?(e.openBlock(),e.createBlock(j,{key:1,class:"d-flex",title:"Non-dynamic"},{default:e.withCtx(()=>[e.createVNode(or,{class:"text-info"})]),_:1})):e.createCommentVNode("",!0),o.property&&o.property.$beta?(e.openBlock(),e.createBlock(j,{key:2,class:"d-flex",title:"Beta"},{default:e.withCtx(()=>[e.createVNode(lr,{class:"text-warning"})]),_:1})):e.createCommentVNode("",!0),o.property&&o.property.$deprecated?(e.openBlock(),e.createBlock(j,{key:3,class:"d-flex",title:"Deprecated"},{default:e.withCtx(()=>[e.createVNode(Kt,{class:"text-warning"})]),_:1})):e.createCommentVNode("",!0),o.property?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:4},e.renderList(n(o.property),a=>(e.openBlock(),e.createElementBlock("span",{key:a,class:"type-box rounded fs-7 px-2 py-1"},e.toDisplayString(a),1))),128)):e.createCommentVNode("",!0)],2)]))}}),ar=D(Sh,[["__scopeId","data-v-f088032b"]]),bh={class:"def-content"},wh={class:"d-flex align-items-center justify-content-between gap-2"},Lh={key:0,class:"property-desc mt-2"},Th={key:1,class:"mt-3 nested-defs"},Bh=e.defineComponent({__name:"DefinitionCollapsible",props:{definition:{},definitions:{default:void 0},visitedKeys:{default:()=>new Set},depth:{default:0},maxDepth:{default:3},section:{default:"properties"}},setup(t){const n=t,o=w.sanitizeForMarkdown,l=s=>{const c=at(s).subType;return c&&!c.startsWith("#")?c:void 0},a=s=>Zn(s),r=s=>{const c=n.definitions,u=n.depth,d=n.maxDepth,p=n.visitedKeys;return!c||u>=d?[]:Jl(s,c,p)},i=e.computed(()=>{const s=new Set(n.visitedKeys);return s.add(n.definition.key),s});return(s,c)=>{const u=e.resolveComponent("DefinitionCollapsible",!0);return e.openBlock(),e.createBlock(Et,{title:s.definition.title,href:`def-${s.definition.key}`,class:e.normalizeClass(["def-collapsible",`section-${s.section}`]),arrow:"","no-url-change":""},{content:e.withCtx(()=>[e.createElementVNode("div",bh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.definition.properties,(d,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"def-property"},[e.createElementVNode("div",wh,[e.createElementVNode("span",null,e.toDisplayString(p),1),e.createVNode(ar,{property:d,"show-dynamic":!1,"section-class":"section-properties"},null,8,["property"])]),e.createVNode(rr,{property:d,subtype:l(d),"enum-values":a(d)},null,8,["property","subtype","enum-values"]),d.title!==void 0||d.description!==void 0?(e.openBlock(),e.createElementBlock("div",Lh,[d.title?e.renderSlot(s.$slots,"markdown",{key:0,content:e.unref(o)(d.title)},void 0,!0):e.createCommentVNode("",!0),d.description?e.renderSlot(s.$slots,"markdown",{key:1,content:e.unref(o)(d.description)},void 0,!0):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),s.depth<s.maxDepth&&r(d).length?(e.openBlock(),e.createElementBlock("div",Th,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r(d),h=>(e.openBlock(),e.createBlock(u,{key:`${s.definition.key}-${h.key}`,definition:h,definitions:s.definitions,"visited-keys":i.value,depth:s.depth+1,"max-depth":s.maxDepth},{markdown:e.withCtx(({content:_})=>[e.renderSlot(s.$slots,"markdown",{content:_},void 0,!0)]),_:3},8,["definition","definitions","visited-keys","depth","max-depth"]))),128))])):e.createCommentVNode("",!0)]))),128))])]),_:3},8,["title","href","class"])}}}),Vh=D(Bh,[["__scopeId","data-v-577c29ff"]]),Ih={class:"property-detail"},Ah={key:0},Dh={class:"property-description markdown"},$h={key:2},Oh={key:3,class:"mt-3"},Ph=e.defineComponent({__name:"PropertyDetailV2",props:{property:{},definitions:{default:void 0},visitedKeys:{default:()=>new Set},depth:{default:0},maxDepth:{default:3},section:{default:"properties"}},setup(t){const n=t,o=e.computed(()=>at(n.property).subType),l=e.computed(()=>Zn(n.property)),a=e.computed(()=>{const s=n.definitions,c=n.depth,u=n.maxDepth,d=n.property,p=n.visitedKeys;return!s||c>=u?[]:Jl(d,s,p)}),r=e.computed(()=>{const s=new Set(n.visitedKeys);return a.value.forEach(c=>s.add(c.key)),s}),i=w.sanitizeForMarkdown;return(s,c)=>(e.openBlock(),e.createElementBlock("div",Ih,[e.createVNode(rr,{property:s.property,subtype:o.value,"enum-values":l.value},null,8,["property","subtype","enum-values"]),s.property.title!==void 0||s.property.description!==void 0||s.depth<s.maxDepth&&a.value.length>0?(e.openBlock(),e.createElementBlock("div",Ah,[e.createElementVNode("div",Dh,[s.property.title!==void 0?e.renderSlot(s.$slots,"markdown",{key:0,content:e.unref(i)(s.property.title)},void 0,!0):e.createCommentVNode("",!0),s.property.description!==void 0?e.renderSlot(s.$slots,"markdown",{key:1,content:e.unref(i)(s.property.description)},void 0,!0):e.createCommentVNode("",!0),s.property.$internalStorageURI?(e.openBlock(),e.createElementBlock("div",$h,[e.createVNode(er,{type:"info"},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"markdown",{content:"Pebble expression referencing an Internal Storage URI e.g. `{{ outputs.mytask.uri }}`."},void 0,!0)]),_:3})])):e.createCommentVNode("",!0),s.depth<s.maxDepth&&a.value.length>0?(e.openBlock(),e.createElementBlock("div",Oh,[c[0]||(c[0]=e.createElementVNode("div",{class:"definitions-header"}," Definitions ",-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,u=>(e.openBlock(),e.createBlock(Vh,{key:`${u.key}-${s.depth}`,definition:u,definitions:s.definitions,"visited-keys":r.value,depth:s.depth+1,"max-depth":s.maxDepth,section:s.section},{markdown:e.withCtx(({content:d})=>[e.renderSlot(s.$slots,"markdown",{content:d},void 0,!0)]),_:3},8,["definition","definitions","visited-keys","depth","max-depth","section"]))),128))])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]))}}),Rh=D(Ph,[["__scopeId","data-v-023aa8d8"]]),Mh={class:"border overflow-hidden"},xh=e.defineComponent({__name:"CollapsiblePropertiesV2",props:{href:{default:Math.random().toString(36).substring(2,5)},sectionName:{},properties:{default:void 0},showDynamic:{type:Boolean,default:!0},initiallyExpanded:{type:Boolean,default:!1},forceInclude:{default:()=>[]},noUrlChange:{type:Boolean,default:!1},definitions:{default:void 0}},emits:["expand"],setup(t,{emit:n}){const o=t,l=n,a=e.computed(()=>{const s=o.sectionName.toLowerCase();return s==="properties"?"section-properties":s==="outputs"?"section-outputs":s==="metrics"?"section-metrics":""}),r=e.ref(!1);e.watch(r,s=>{s&&l("expand")});function i(s){const c=[],u=[];for(const h in s)typeof s[h]=="object"&&(s[h]=Zl(s[h]),s[h].$required?c.push(h):u.push(h));const d=[...c.sort(),...u.sort()],p={};return d.forEach(h=>{(!s[h].$deprecated||o.forceInclude?.includes(h))&&(p[h]=s[h])}),p}return(s,c)=>(e.openBlock(),e.createBlock(Et,{class:"section-collapsible",title:s.sectionName,href:s.href,onExpand:c[1]||(c[1]=u=>l("expand")),"initially-expanded":s.initiallyExpanded||r.value,"no-url-change":s.noUrlChange},e.createSlots({_:2},[Object.keys(s.properties??{}).length>0?{name:"content",fn:e.withCtx(()=>[e.createElementVNode("div",Mh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i(s.properties),(u,d)=>(e.openBlock(),e.createBlock(Et,{class:e.normalizeClass(["property",a.value]),key:d,title:d,href:s.href+"_"+d,onExpand:c[0]||(c[0]=p=>r.value=!0),"no-url-change":s.noUrlChange},{right:e.withCtx(()=>[e.createVNode(ar,{property:u,"show-dynamic":s.showDynamic},null,8,["property","show-dynamic"])]),content:e.withCtx(()=>[e.createVNode(Rh,{property:u,definitions:s.definitions,section:s.sectionName.toLowerCase()},{markdown:e.withCtx(({content:p})=>[e.renderSlot(s.$slots,"markdown",{content:p},void 0,!0)]),_:3},8,["property","definitions","section"])]),_:2},1032,["title","href","no-url-change","class"]))),128))])]),key:"0"}:void 0]),1032,["title","href","initially-expanded","no-url-change"]))}}),fn=D(xh,[["__scopeId","data-v-a2ba9447"]]),Fh={class:"d-flex flex-column gap-6"},Uh={class:"d-flex flex-column"},Hh={key:0,class:"alert alert-info mb-2",role:"alert"},zh={key:1,class:"markdown"},Wh={class:"d-flex flex-column gap-4"},jh={class:"d-flex flex-column"},Gh={class:"markdown"},Kh={key:0,class:"w-100 align-self-center"},Yh={class:"markdown"},qh={class:"markdown"},Xh={class:"markdown"},Zh=e.defineComponent({__name:"SchemaToHtmlV2",props:{schema:{},pluginType:{},darkMode:{type:Boolean,default:!0},propsInitiallyExpanded:{type:Boolean,default:!1},forceIncludeProperties:{default:()=>[]},noUrlChange:{type:Boolean,default:!1}},async setup(t){let n,o;const l=t,a=d=>d?.full?d.code:`id: "${l.pluginType.split(".").reverse()[0]?.toLowerCase()}"
34
34
  type: "${l.pluginType}"
35
- `.concat(d.code),r=e.ref(),i=e.computed(()=>l.schema.properties?.$examples),s=e.computed(()=>Object.fromEntries(l.schema.properties?.$metrics?.map(d=>[d.name,{...d,name:void 0}]))),{getHighlighterCore:c}=([n,o]=e.withAsyncContext(()=>Promise.resolve().then(()=>require("./shikiToolset-BJ-YtZfq.cjs"))),n=await n,o(),n);r.value=([n,o]=e.withAsyncContext(()=>c()),n=await n,o(),n);const u="github-"+(l.darkMode?"dark":"light");return(d,p)=>(e.openBlock(),e.createElementBlock("div",Fh,[e.createElementVNode("div",Uh,[d.schema.properties?.$beta?(e.openBlock(),e.createElementBlock("div",Hh,[...p[0]||(p[0]=[e.createElementVNode("p",null," This plugin is currently in beta. While it is considered safe for use, please be aware that its API could change in ways that are not compatible with earlier versions in future releases, or it might become unsupported. ",-1)])])):e.createCommentVNode("",!0),d.schema.properties?.title?(e.openBlock(),e.createElementBlock("div",zh,[e.renderSlot(d.$slots,"markdown",{content:d.schema.properties.title.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):e.createCommentVNode("",!0),d.schema.properties?.description?(e.openBlock(),e.createElementBlock("div",Wh,[e.renderSlot(d.$slots,"markdown",{content:d.schema.properties.description.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(xt,{highlighter:r.value,language:"yaml",theme:u,code:`type: "${d.pluginType}"`,key:d.pluginType},null,8,["highlighter","code"]))]),(e.openBlock(),e.createElementBlock("div",{class:"d-flex flex-column",key:d.pluginType},[i.value?(e.openBlock(),e.createBlock(Et,{key:0,class:"plugin-section",title:"Examples",href:"examples","no-url-change":d.noUrlChange},{content:e.withCtx(()=>[e.createElementVNode("div",jh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(h,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d.pluginType+"-"+_},[e.createElementVNode("div",Gh,[e.createElementVNode("div",Kh,[h.title?e.renderSlot(d.$slots,"markdown",{key:0,content:h.title.replace(/ *:(?![ /])/g,": ")},void 0,!0):e.createCommentVNode("",!0)]),h.code?(e.openBlock(),e.createBlock(xt,{key:0,highlighter:r.value,language:h.lang??"yaml",theme:u,code:a(h)},null,8,["highlighter","language","code"])):e.createCommentVNode("",!0)]),_<i.value.length-1?(e.openBlock(),e.createElementBlock("hr",Yh)):e.createCommentVNode("",!0)],64))),128))])]),_:3},8,["no-url-change"])):e.createCommentVNode("",!0),d.schema.properties?.properties?(e.openBlock(),e.createBlock(fn,{key:1,class:"plugin-section",properties:d.schema.properties.properties,"section-name":"Properties",href:"properties","initially-expanded":d.propsInitiallyExpanded,"force-include":d.forceIncludeProperties,definitions:d.schema.definitions,"no-url-change":d.noUrlChange},{markdown:e.withCtx(({content:h})=>[e.createElementVNode("div",qh,[e.renderSlot(d.$slots,"markdown",{content:h},void 0,!0)])]),_:3},8,["properties","initially-expanded","force-include","definitions","no-url-change"])):e.createCommentVNode("",!0),d.schema.outputs?.properties&&Object.keys(d.schema.outputs.properties).length>0?(e.openBlock(),e.createBlock(fn,{key:2,class:"plugin-section",properties:d.schema.outputs.properties,"section-name":"Outputs",href:"outputs","show-dynamic":!1,definitions:d.schema.definitions,"no-url-change":d.noUrlChange},{markdown:e.withCtx(({content:h})=>[e.createElementVNode("div",Xh,[e.renderSlot(d.$slots,"markdown",{content:h},void 0,!0)])]),_:3},8,["properties","definitions","no-url-change"])):e.createCommentVNode("",!0),d.schema.properties?.$metrics?(e.openBlock(),e.createBlock(fn,{key:3,class:"plugin-section",properties:s.value,"section-name":"Metrics",href:"metrics","show-dynamic":!1,definitions:d.schema.definitions,"no-url-change":d.noUrlChange},{markdown:e.withCtx(({content:h})=>[e.createElementVNode("div",Zh,[e.renderSlot(d.$slots,"markdown",{content:h},void 0,!0)])]),_:3},8,["properties","definitions","no-url-change"])):e.createCommentVNode("",!0)]))]))}}),Qh=D(Jh,[["__scopeId","data-v-e72c2f7b"]]),eE={class:"d-flex flex-column gap-4"},tE={key:0,class:"pb-2"},nE={class:"row g-4 last"},oE=["id"],lE={class:"row g-4 last"},rE={key:2,class:"description"},aE={key:0,class:"gradient-overlay"},iE={key:0,class:"more-wrap text-center"},sE=e.defineComponent({__name:"PluginIndex",props:{plugins:{},pluginName:{},routePath:{},icons:{},subGroup:{},activeId:{},subgroupBlueprintCounts:{},metadataMap:{},schemas:{}},emits:["navigate"],setup(t,{emit:n}){const o=t,l=b=>o.metadataMap?.[b.subGroup??b.group],a=b=>l(b)?.description??b.description,r=b=>l(b)?.title??b.title??De(b),i=e.computed(()=>o.plugins.find(b=>o.subGroup===void 0?!0:ve(De(b))===o.subGroup)),s=e.computed(()=>i.value?.longDescription??i.value?.description),c=e.computed(()=>o.plugins.filter(b=>b.name.toLowerCase()===o.pluginName.toLowerCase()&&b.subGroup!==void 0)),u=b=>{let I=b.split(".");return I?.[I.length-1]},d=b=>`${o.routePath}/${b}`;function p(b){const I=Ht(b);return Object.values(I).reduce((N,M)=>N+M.length,0)}const{elementsByType:h}=Qo(i),_=e.ref(null),v=e.ref(null),k=e.ref(!1),{height:E}=qo(_),{height:f}=qo(v),y=e.computed(()=>f.value>E.value+2),T=()=>{k.value=!k.value},S=n;return(b,I)=>(e.openBlock(),e.createElementBlock("div",eE,[b.subGroup===void 0&&b.plugins.length>1?(e.openBlock(),e.createElementBlock("div",tE,[e.createElementVNode("div",nE,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,N=>(e.openBlock(),e.createElementBlock("div",{class:"col-md-4 col-lg-6 col-xl-6 col-xxl-4",key:e.unref(De)(N)},[e.createVNode(Yl,{id:e.unref(ve)(e.unref(De)(N)),"icon-b64-svg":"data:image/svg+xml;base64,"+(b.icons[N.subGroup]??b.icons[N.group]),text:r(N),description:a(N),href:`${b.routePath}/${e.unref(ve)(e.unref(De)(N))}`,"route-path":b.routePath,"plugin-group":N.group??N.name,"total-count":p(N),"blueprints-count":o.subgroupBlueprintCounts?.[`${e.unref(ve)(N.group??N.name)}-${e.unref(ve)(e.unref(De)(N))}`]??0,"is-active":b.activeId?.toLowerCase()===e.unref(ve)(e.unref(De)(N)),class:"text-capitalize h-100",onNavigate:I[0]||(I[0]=M=>S("navigate",M))},null,8,["id","icon-b64-svg","text","description","href","route-path","plugin-group","total-count","blueprints-count","is-active"])]))),128))])])):i.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(h),(N,M)=>(e.openBlock(),e.createElementBlock("div",{class:"d-flex flex-column elements-section pb-3",key:M},[e.createElementVNode("h4",{id:`section-${e.unref(ve)(M)}`,class:"text-capitalize"},e.toDisplayString(M),9,oE),e.createElementVNode("div",lE,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N,U=>(e.openBlock(),e.createElementBlock("div",{class:"col-md-4 col-lg-6 col-xl-6 col-xxl-4",key:U},[e.createVNode(ql,{id:e.unref(ve)(U),"icon-b64-svg":"data:image/svg+xml;base64,"+(b.icons[U]??b.icons[i.value.subGroup??i.value.group]??b.icons[i.value.group]),text:u(U),"plugin-class":U,href:d(U),"route-path":b.routePath,title:b.schemas?.[U]?.title,class:"h-100",onNavigate:I[1]||(I[1]=Q=>S("navigate",Q))},{markdown:e.withCtx(({content:Q})=>[e.renderSlot(b.$slots,"markdown",{content:Q},void 0,!0)]),_:3},8,["id","icon-b64-svg","text","plugin-class","href","route-path","title"])]))),128))])]))),128)):e.createCommentVNode("",!0),s.value!==void 0&&i.value?.longDescription?(e.openBlock(),e.createElementBlock("div",rE,[I[2]||(I[2]=e.createElementVNode("h4",{id:"how-to-use-this-plugin"}," How to use this plugin ",-1)),e.createElementVNode("div",{ref_key:"contentWrap",ref:_,class:e.normalizeClass(["markdown-container",{expanded:k.value}])},[e.createElementVNode("div",{ref_key:"contentInner",ref:v,class:"markdown-inner"},[e.renderSlot(b.$slots,"markdown",{content:s.value.replace(/ *:(?![ /])/g,": ")},void 0,!0)],512),y.value&&!k.value?(e.openBlock(),e.createElementBlock("div",aE)):e.createCommentVNode("",!0)],2),y.value||k.value?(e.openBlock(),e.createElementBlock("div",iE,[e.createElementVNode("button",{class:"more-btn",onClick:T},[e.createTextVNode(e.toDisplayString(k.value?"See less":"See more")+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k.value?nr:Xn)))])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))}}),cE=D(sE,[["__scopeId","data-v-535305bd"]]),uE=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,dE=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,mE=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function fE(t,n){if(t==="__proto__"||t==="constructor"&&n&&typeof n=="object"&&"prototype"in n){pE(t);return}return n}function pE(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function gE(t,n={}){if(typeof t!="string")return t;if(t[0]==='"'&&t[t.length-1]==='"'&&t.indexOf("\\")===-1)return t.slice(1,-1);const o=t.trim();if(o.length<=9)switch(o.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!mE.test(t)){if(n.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(uE.test(t)||dE.test(t)){if(n.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,fE)}return JSON.parse(t)}catch(l){if(n.strict)throw l;return t}}const hE=/\d/,EE=["-","_","/","."];function yE(t=""){if(!hE.test(t))return t!==t.toLowerCase()}function ir(t,n){const o=EE,l=[];if(!t||typeof t!="string")return l;let a="",r,i;for(const s of t){const c=o.includes(s);if(c===!0){l.push(a),a="",r=void 0;continue}const u=yE(s);if(i===!1){if(r===!1&&u===!0){l.push(a),a=s,r=u;continue}if(r===!0&&u===!1&&a.length>1){const d=a.at(-1);l.push(a.slice(0,Math.max(0,a.length-1))),a=d+s,r=u;continue}}a+=s,r=u,i=c}return l.push(a),l}function kE(t){return t?t[0].toUpperCase()+t.slice(1):""}function sr(t,n){return t?(Array.isArray(t)?t:ir(t)).map(o=>kE(o)).join(""):""}function _E(t,n){return t?(Array.isArray(t)?t:ir(t)).map(o=>o.toLowerCase()).join("-"):""}class kt{constructor(n,o,l){this.normal=o,this.property=n,l&&(this.space=l)}}kt.prototype.normal={};kt.prototype.property={};kt.prototype.space=void 0;function cr(t,n){const o={},l={};for(const a of t)Object.assign(o,a.property),Object.assign(l,a.normal);return new kt(o,l,n)}function Tn(t){return t.toLowerCase()}class ye{constructor(n,o){this.attribute=o,this.property=n}}ye.prototype.attribute="";ye.prototype.booleanish=!1;ye.prototype.boolean=!1;ye.prototype.commaOrSpaceSeparated=!1;ye.prototype.commaSeparated=!1;ye.prototype.defined=!1;ye.prototype.mustUseProperty=!1;ye.prototype.number=!1;ye.prototype.overloadedBoolean=!1;ye.prototype.property="";ye.prototype.spaceSeparated=!1;ye.prototype.space=void 0;let vE=0;const F=Ze(),se=Ze(),Bn=Ze(),V=Ze(),J=Ze(),ot=Ze(),_e=Ze();function Ze(){return 2**++vE}const Vn=Object.freeze(Object.defineProperty({__proto__:null,boolean:F,booleanish:se,commaOrSpaceSeparated:_e,commaSeparated:ot,number:V,overloadedBoolean:Bn,spaceSeparated:J},Symbol.toStringTag,{value:"Module"})),pn=Object.keys(Vn);class Jn extends ye{constructor(n,o,l,a){let r=-1;if(super(n,o),Xo(this,"space",a),typeof l=="number")for(;++r<pn.length;){const i=pn[r];Xo(this,pn[r],(l&Vn[i])===Vn[i])}}}Jn.prototype.defined=!0;function Xo(t,n,o){o&&(t[n]=o)}function it(t){const n={},o={};for(const[l,a]of Object.entries(t.properties)){const r=new Jn(l,t.transform(t.attributes||{},l),a,t.space);t.mustUseProperty&&t.mustUseProperty.includes(l)&&(r.mustUseProperty=!0),n[l]=r,o[Tn(l)]=l,o[Tn(r.attribute)]=l}return new kt(n,o,t.space)}const ur=it({properties:{ariaActiveDescendant:null,ariaAtomic:se,ariaAutoComplete:null,ariaBusy:se,ariaChecked:se,ariaColCount:V,ariaColIndex:V,ariaColSpan:V,ariaControls:J,ariaCurrent:null,ariaDescribedBy:J,ariaDetails:null,ariaDisabled:se,ariaDropEffect:J,ariaErrorMessage:null,ariaExpanded:se,ariaFlowTo:J,ariaGrabbed:se,ariaHasPopup:null,ariaHidden:se,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:J,ariaLevel:V,ariaLive:null,ariaModal:se,ariaMultiLine:se,ariaMultiSelectable:se,ariaOrientation:null,ariaOwns:J,ariaPlaceholder:null,ariaPosInSet:V,ariaPressed:se,ariaReadOnly:se,ariaRelevant:null,ariaRequired:se,ariaRoleDescription:J,ariaRowCount:V,ariaRowIndex:V,ariaRowSpan:V,ariaSelected:se,ariaSetSize:V,ariaSort:null,ariaValueMax:V,ariaValueMin:V,ariaValueNow:V,ariaValueText:null,role:null},transform(t,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function dr(t,n){return n in t?t[n]:n}function mr(t,n){return dr(t,n.toLowerCase())}const CE=it({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ot,acceptCharset:J,accessKey:J,action:null,allow:null,allowFullScreen:F,allowPaymentRequest:F,allowUserMedia:F,alt:null,as:null,async:F,autoCapitalize:null,autoComplete:J,autoFocus:F,autoPlay:F,blocking:J,capture:null,charSet:null,checked:F,cite:null,className:J,cols:V,colSpan:null,content:null,contentEditable:se,controls:F,controlsList:J,coords:V|ot,crossOrigin:null,data:null,dateTime:null,decoding:null,default:F,defer:F,dir:null,dirName:null,disabled:F,download:Bn,draggable:se,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:F,formTarget:null,headers:J,height:V,hidden:Bn,high:V,href:null,hrefLang:null,htmlFor:J,httpEquiv:J,id:null,imageSizes:null,imageSrcSet:null,inert:F,inputMode:null,integrity:null,is:null,isMap:F,itemId:null,itemProp:J,itemRef:J,itemScope:F,itemType:J,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:F,low:V,manifest:null,max:null,maxLength:V,media:null,method:null,min:null,minLength:V,multiple:F,muted:F,name:null,nonce:null,noModule:F,noValidate:F,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:F,optimum:V,pattern:null,ping:J,placeholder:null,playsInline:F,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:F,referrerPolicy:null,rel:J,required:F,reversed:F,rows:V,rowSpan:V,sandbox:J,scope:null,scoped:F,seamless:F,selected:F,shadowRootClonable:F,shadowRootDelegatesFocus:F,shadowRootMode:null,shape:null,size:V,sizes:null,slot:null,span:V,spellCheck:se,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V,step:null,style:null,tabIndex:V,target:null,title:null,translate:null,type:null,typeMustMatch:F,useMap:null,value:se,width:V,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:J,axis:null,background:null,bgColor:null,border:V,borderColor:null,bottomMargin:V,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:F,declare:F,event:null,face:null,frame:null,frameBorder:null,hSpace:V,leftMargin:V,link:null,longDesc:null,lowSrc:null,marginHeight:V,marginWidth:V,noResize:F,noHref:F,noShade:F,noWrap:F,object:null,profile:null,prompt:null,rev:null,rightMargin:V,rules:null,scheme:null,scrolling:se,standby:null,summary:null,text:null,topMargin:V,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:F,disableRemotePlayback:F,prefix:null,property:null,results:V,security:null,unselectable:null},space:"html",transform:mr}),NE=it({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:_e,accentHeight:V,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V,amplitude:V,arabicForm:null,ascent:V,attributeName:null,attributeType:null,azimuth:V,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V,by:null,calcMode:null,capHeight:V,className:J,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:V,diffuseConstant:V,direction:null,display:null,dur:null,divisor:V,dominantBaseline:null,download:F,dx:null,dy:null,edgeMode:null,editable:null,elevation:V,enableBackground:null,end:null,event:null,exponent:V,externalResourcesRequired:null,fill:null,fillOpacity:V,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ot,g2:ot,glyphName:ot,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V,horizOriginX:V,horizOriginY:V,id:null,ideographic:V,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V,k:V,k1:V,k2:V,k3:V,k4:V,kernelMatrix:_e,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:V,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:V,overlineThickness:V,paintOrder:null,panose1:null,path:null,pathLength:V,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:J,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V,pointsAtY:V,pointsAtZ:V,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_e,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_e,rev:_e,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_e,requiredFeatures:_e,requiredFonts:_e,requiredFormats:_e,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:V,specularExponent:V,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V,strikethroughThickness:V,string:null,stroke:null,strokeDashArray:_e,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V,strokeOpacity:V,strokeWidth:null,style:null,surfaceScale:V,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_e,tabIndex:V,tableValues:null,target:null,targetX:V,targetY:V,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_e,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:V,underlineThickness:V,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V,values:null,vAlphabetic:V,vMathematical:V,vectorEffect:null,vHanging:V,vIdeographic:V,version:null,vertAdvY:V,vertOriginX:V,vertOriginY:V,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:dr}),fr=it({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,n){return"xlink:"+n.slice(5).toLowerCase()}}),pr=it({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:mr}),gr=it({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,n){return"xml:"+n.slice(3).toLowerCase()}}),SE=/[A-Z]/g,Zo=/-[a-z]/g,bE=/^data[-\w.:]+$/i;function wE(t,n){const o=Tn(n);let l=n,a=ye;if(o in t.normal)return t.property[t.normal[o]];if(o.length>4&&o.slice(0,4)==="data"&&bE.test(n)){if(n.charAt(4)==="-"){const r=n.slice(5).replace(Zo,TE);l="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{const r=n.slice(4);if(!Zo.test(r)){let i=r.replace(SE,LE);i.charAt(0)!=="-"&&(i="-"+i),n="data"+i}}a=Jn}return new a(l,n)}function LE(t){return"-"+t.toLowerCase()}function TE(t){return t.charAt(1).toUpperCase()}const BE=cr([ur,CE,fr,pr,gr],"html");cr([ur,NE,fr,pr,gr],"svg");const Qn=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],VE=["p","h1","h2","h3","h4","h5","h6","li"];function Ft(t,n){return t.type===n||typeof t.type=="object"&&t.type.tag===n||t.tag===n}function eo(t){return Ft(t,"text")||Ft(t,Symbol.for("v-txt"))}function hr(t){return Array.isArray(t.children)||typeof t.children=="string"?t.children:typeof t.children?.default=="function"?t.children.default():[]}function Ut(t){if(!t)return"";if(Array.isArray(t))return t.map(Ut).join("");if(eo(t))return t.value||t.children||"";const n=hr(t);return Array.isArray(n)?n.map(Ut).filter(Boolean).join(""):""}function Er(t,n=[]){if(Array.isArray(t))return t.flatMap(l=>Er(l,n));let o=t;return n.some(l=>l==="*"||Ft(t,l))&&(o=hr(t)||t,!Array.isArray(o)&&VE.some(l=>Ft(t,l))&&(o=[o])),o}function yr(t,n=[]){return t=Array.isArray(t)?t:[t],n.length?t.flatMap(o=>yr(Er(o,[n[0]]),n.slice(1))).filter(o=>!(eo(o)&&Ut(o).trim()==="")):t}function kr(t,n=[]){return typeof n=="string"&&(n=n.split(/[,\s]/).map(o=>o.trim()).filter(Boolean)),n.length?yr(t,n).reduce((o,l)=>(eo(l)?typeof o[o.length-1]=="string"?o[o.length-1]+=l.children:o.push(l.children):o.push(l),o),[]):t}function IE(t,n){return n.reduce((o,l)=>{const a=AE(t,l);return a!==void 0&&(o[l]=a),o},{})}function AE(t,n){return n.split(".").reduce((o,l)=>o&&o[l],t)}const In="default",_r=/^@|^v-on:/,vr=/^:|^v-bind:/,DE=/^v-model/,$E=["select","textarea","input"],OE=["math","svg"],PE=Object.fromEntries(["p","a","blockquote","code","pre","code","em","h1","h2","h3","h4","h5","h6","hr","img","ul","ol","li","strong","table","thead","tbody","td","th","tr","script"].map(t=>[t,`prose-${t}`])),RE=["script","base"],ME=e.defineComponent({name:"MDCRenderer",props:{body:{type:Object,required:!0},data:{type:Object,default:()=>({})},class:{type:[String,Object],default:void 0},tag:{type:[String,Boolean],default:void 0},prose:{type:Boolean,default:void 0},components:{type:Object,default:()=>({})},unwrap:{type:[Boolean,String],default:!1}},async setup(t){const o=e.getCurrentInstance()?.appContext?.app?.$nuxt,l=o?.$route||o?._route,{mdc:a}=o?.$config?.public||{},r=e.computed(()=>({...a?.components?.prose&&t.prose!==!1?PE:{},...a?.components?.map||{},...e.toRaw(t.data?.mdc?.components||{}),...t.components})),i=e.computed(()=>{const u=(t.body?.children||[]).map(d=>d.tag||d.type).filter(d=>!Qn.includes(d));return Array.from(new Set(u)).sort().join(".")}),s=e.reactive({...t.data});e.watch(()=>t.data,u=>{Object.assign(s,u)}),await qE(t.body,{tags:r.value});function c(u,d){const p=u.split(".").length-1;return u.split(".").reduce((h,_,v)=>v==p&&h?(h[_]=d,h[_]):typeof h=="object"?h[_]:void 0,s)}return{tags:r,contentKey:i,route:l,runtimeData:s,updateRuntimeData:c}},render(t){const{tags:n,tag:o,body:l,data:a,contentKey:r,route:i,unwrap:s,runtimeData:c,updateRuntimeData:u}=t;if(!l)return null;const d={...a,tags:n,$route:i,runtimeData:c,updateRuntimeData:u},p=o!==!1?An(o||d.component?.name||d.component||"div"):void 0;return p?e.h(p,{...d.component?.props,class:t.class,...this.$attrs,key:r},{default:h}):h?.();function h(){const _=Cr(l,e.h,{documentMeta:d,parentScope:d,resolveComponent:An});return _?.default?s?kr(_.default(),typeof s=="string"?s.split(" "):["*"]):_.default():null}}});function xE(t,n,o,l){const{documentMeta:a,parentScope:r,resolveComponent:i}=o;if(t.type==="text")return n(e.Text,t.value);if(t.type==="comment")return n(e.Comment,null,t.value);const s=t.tag,c=Sr(t,a.tags);if(t.tag==="binding")return FE(t,n,a,r);const u=Nr(c)?h=>h:i;if(RE.includes(c))return n("pre",{class:"mdc-renderer-dangerous-tag"},"<"+c+">"+Ut(t)+"</"+c+">");const d=u(c);typeof d=="object"&&(d.tag=s);const p=UE(t,a);return l&&(p.key=l),n(d,p,Cr(t,n,{documentMeta:a,parentScope:{...r,...p},resolveComponent:u}))}function Cr(t,n,o){const{documentMeta:l,parentScope:a,resolveComponent:r}=o,s=(t.children||[]).reduce((u,d)=>{if(!KE(d))return u[In].children.push(d),u;const p=GE(d);return u[p]=u[p]||{props:{},children:[]},d.type==="element"&&(u[p].props=d.props,u[p].children.push(...d.children||[])),u},{[In]:{props:{},children:[]}});return Object.entries(s).reduce((u,[d,{props:p,children:h}])=>(h.length&&(u[d]=(_={})=>{const v=IE(_,Object.keys(p||{}));let k=h.map((E,f)=>xE(E,n,{documentMeta:l,parentScope:{...a,...v},resolveComponent:r},String(E.props?.key||f)));return p?.unwrap&&(k=kr(k,p.unwrap)),YE(k)}),u),{})}function FE(t,n,o,l={}){const a={...o.runtimeData,...l,$document:o,$doc:o},r=/\.|\[(\d+)\]/,s=(t.props?.value.trim().split(r).filter(Boolean)).reduce((u,d)=>{if(u&&d in u)return typeof u[d]=="function"?u[d]():u[d]},a),c=t.props?.defaultValue;return n(e.Text,s??c??"")}function UE(t,n){const{tag:o="",props:l={}}=t;return Object.keys(l).reduce(function(a,r){if(r==="__ignoreMap")return a;const i=l[r];if(DE.test(r))return HE(r,i,a,n,{native:$E.includes(o)});if(r==="v-bind")return zE(r,i,a,n);if(_r.test(r))return WE(r,i,a,n);if(vr.test(r))return jE(r,i,a,n);const{attribute:s}=wE(BE,r);return Array.isArray(i)&&i.every(c=>typeof c=="string")?(a[s]=i.join(" "),a):(a[s]=i,a)},{})}function HE(t,n,o,l,{native:a}){const r=t.match(/^v-model:([^=]+)/)?.[1]||"modelValue",i=a?"value":r,s=a?"onInput":`onUpdate:${r}`;return o[i]=Xt(n,l.runtimeData),o[s]=c=>{l.updateRuntimeData(n,a?c.target?.value:c)},o}function zE(t,n,o,l){const a=Xt(n,l);return o=Object.assign(o,a),o}function WE(t,n,o,l){return t=t.replace(_r,""),o.on=o.on||{},o.on[t]=()=>Xt(n,l),o}function jE(t,n,o,l){return t=t.replace(vr,""),o[t]=Xt(n,l),o}const An=t=>{if(typeof t=="string"){if(Qn.includes(t))return t;const n=e.resolveComponent(sr(t),!1);return!t||n?.name==="AsyncComponentWrapper"||typeof n=="string"?n:"setup"in n?e.defineAsyncComponent(()=>new Promise(o=>o(n))):n}return t};function Xt(t,n){const o=t.split(".").reduce((l,a)=>typeof l=="object"?l[a]:void 0,n);return typeof o>"u"?gE(t):o}function GE(t){let n="";for(const o of Object.keys(t.props||{}))if(!(!o.startsWith("#")&&!o.startsWith("v-slot:"))){n=o.split(/[:#]/,2)[1];break}return n||In}function KE(t){return t.tag==="template"}function Nr(t){return OE.includes(t)}function YE(t){const n=[];for(const o of t){const l=n[n.length-1];o.type===e.Text&&l?.type===e.Text?l.children=l.children+o.children:n.push(o)}return n}async function qE(t,n){if(!t)return;const o=Array.from(new Set(l(t,n)));await Promise.all(o.map(async a=>{if(a?.render||a?.ssrRender||a?.__ssrInlineRender)return;const r=An(a);r?.__asyncLoader&&!r.__asyncResolved&&await r.__asyncLoader()}));function l(a,r){const i=a.tag;if(a.type==="text"||i==="binding"||a.type==="comment")return[];const s=Sr(a,r.tags);if(Nr(s))return[];const c=[];a.type!=="root"&&!Qn.includes(s)&&c.push(s);for(const u of a.children||[])c.push(...l(u,r));return c}}function Sr(t,n){const o=t.tag;return!o||typeof t.props?.__ignoreMap<"u"?o:n[o]||n[sr(o)]||n[_E(t.tag)]||o}const XE=e.defineComponent({__name:"MDCRenderer",setup(t){return(n,o)=>(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(ME,e.mergeProps(n.$attrs,{prose:!0}),null,16)]),_:1}))}});exports.CLUSTER_PREFIX=w.CLUSTER_PREFIX;exports.EVENTS=w.EVENTS;exports.NODE_SIZES=w.NODE_SIZES;exports.SECTIONS=w.SECTIONS;exports.Utils=w.Utils;exports.VueFlowUtils=w.VueFlowUtils;exports.Collapsible=ht;exports.CollapsibleV2=Et;exports.DependenciesNode=Uc;exports.ElementCard=ql;exports.LOG_LEVELS=ti;exports.MDCRenderer=XE;exports.PluginIndex=cE;exports.RotatingDotsIcon=el;exports.STATES=z;exports.SchemaToHtml=K1;exports.SchemaToHtmlV2=Qh;exports.State=ne;exports.Status=xf;exports.SubgroupCard=Yl;exports.TaskIcon=Un;exports.Topology=Pf;exports.YamlUtils=Or;exports.buildPluginMappings=ii;exports.cssVariable=Ce;exports.extractPluginElements=Ht;exports.filterPluginsWithoutDeprecated=ai;exports.getMDCParser=ni;exports.isEntryAPluginElementPredicate=Dn;exports.slugify=ve;exports.subGroupName=De;exports.usePluginElementCounts=Qo;
35
+ `.concat(d.code),r=e.ref(),i=e.computed(()=>l.schema.properties?.$examples),s=e.computed(()=>Object.fromEntries(l.schema.properties?.$metrics?.map(d=>[d.name,{...d,name:void 0}]))),{getHighlighterCore:c}=([n,o]=e.withAsyncContext(()=>Promise.resolve().then(()=>require("./shikiToolset-BJ-YtZfq.cjs"))),n=await n,o(),n);r.value=([n,o]=e.withAsyncContext(()=>c()),n=await n,o(),n);const u="github-"+(l.darkMode?"dark":"light");return(d,p)=>(e.openBlock(),e.createElementBlock("div",Fh,[e.createElementVNode("div",Uh,[d.schema.properties?.$beta?(e.openBlock(),e.createElementBlock("div",Hh,[...p[0]||(p[0]=[e.createElementVNode("p",null," This plugin is currently in beta. While it is considered safe for use, please be aware that its API could change in ways that are not compatible with earlier versions in future releases, or it might become unsupported. ",-1)])])):e.createCommentVNode("",!0),d.schema.properties?.description?(e.openBlock(),e.createElementBlock("div",zh,[e.renderSlot(d.$slots,"markdown",{content:d.schema.properties.description.replace(/ *:(?![ /])/g,": ")},void 0,!0)])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(xt,{highlighter:r.value,language:"yaml",theme:u,code:`type: "${d.pluginType}"`,key:d.pluginType},null,8,["highlighter","code"]))]),(e.openBlock(),e.createElementBlock("div",{class:"d-flex flex-column",key:d.pluginType},[i.value?(e.openBlock(),e.createBlock(Et,{key:0,class:"plugin-section",title:"Examples",href:"examples","no-url-change":d.noUrlChange},{content:e.withCtx(()=>[e.createElementVNode("div",Wh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(h,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d.pluginType+"-"+_},[e.createElementVNode("div",jh,[e.createElementVNode("div",Gh,[h.title?e.renderSlot(d.$slots,"markdown",{key:0,content:h.title.replace(/ *:(?![ /])/g,": ")},void 0,!0):e.createCommentVNode("",!0)]),h.code?(e.openBlock(),e.createBlock(xt,{key:0,highlighter:r.value,language:h.lang??"yaml",theme:u,code:a(h)},null,8,["highlighter","language","code"])):e.createCommentVNode("",!0)]),_<i.value.length-1?(e.openBlock(),e.createElementBlock("hr",Kh)):e.createCommentVNode("",!0)],64))),128))])]),_:3},8,["no-url-change"])):e.createCommentVNode("",!0),d.schema.properties?.properties?(e.openBlock(),e.createBlock(fn,{key:1,class:"plugin-section",properties:d.schema.properties.properties,"section-name":"Properties",href:"properties","initially-expanded":d.propsInitiallyExpanded,"force-include":d.forceIncludeProperties,definitions:d.schema.definitions,"no-url-change":d.noUrlChange},{markdown:e.withCtx(({content:h})=>[e.createElementVNode("div",Yh,[e.renderSlot(d.$slots,"markdown",{content:h},void 0,!0)])]),_:3},8,["properties","initially-expanded","force-include","definitions","no-url-change"])):e.createCommentVNode("",!0),d.schema.outputs?.properties&&Object.keys(d.schema.outputs.properties).length>0?(e.openBlock(),e.createBlock(fn,{key:2,class:"plugin-section",properties:d.schema.outputs.properties,"section-name":"Outputs",href:"outputs","show-dynamic":!1,definitions:d.schema.definitions,"no-url-change":d.noUrlChange},{markdown:e.withCtx(({content:h})=>[e.createElementVNode("div",qh,[e.renderSlot(d.$slots,"markdown",{content:h},void 0,!0)])]),_:3},8,["properties","definitions","no-url-change"])):e.createCommentVNode("",!0),d.schema.properties?.$metrics?(e.openBlock(),e.createBlock(fn,{key:3,class:"plugin-section",properties:s.value,"section-name":"Metrics",href:"metrics","show-dynamic":!1,definitions:d.schema.definitions,"no-url-change":d.noUrlChange},{markdown:e.withCtx(({content:h})=>[e.createElementVNode("div",Xh,[e.renderSlot(d.$slots,"markdown",{content:h},void 0,!0)])]),_:3},8,["properties","definitions","no-url-change"])):e.createCommentVNode("",!0)]))]))}}),Jh=D(Zh,[["__scopeId","data-v-1fe47a0f"]]),Qh={class:"d-flex flex-column gap-4"},eE={key:0,class:"pb-2"},tE={class:"row g-4 last"},nE=["id"],oE={class:"row g-4 last"},lE={key:2,class:"description"},rE={key:0,class:"gradient-overlay"},aE={key:0,class:"more-wrap text-center"},iE=e.defineComponent({__name:"PluginIndex",props:{plugins:{},pluginName:{},routePath:{},icons:{},subGroup:{},activeId:{},subgroupBlueprintCounts:{},metadataMap:{},schemas:{}},emits:["navigate"],setup(t,{emit:n}){const o=t,l=b=>o.metadataMap?.[b.subGroup??b.group],a=b=>l(b)?.description??b.description,r=b=>l(b)?.title??b.title??De(b),i=e.computed(()=>o.plugins.find(b=>o.subGroup===void 0?!0:ve(De(b))===o.subGroup)),s=e.computed(()=>i.value?.longDescription??i.value?.description),c=e.computed(()=>o.plugins.filter(b=>b.name.toLowerCase()===o.pluginName.toLowerCase()&&b.subGroup!==void 0)),u=b=>{let I=b.split(".");return I?.[I.length-1]},d=b=>`${o.routePath}/${b}`;function p(b){const I=Ht(b);return Object.values(I).reduce((N,M)=>N+M.length,0)}const{elementsByType:h}=Qo(i),_=e.ref(null),v=e.ref(null),k=e.ref(!1),{height:E}=qo(_),{height:f}=qo(v),y=e.computed(()=>f.value>E.value+2),T=()=>{k.value=!k.value},S=n;return(b,I)=>(e.openBlock(),e.createElementBlock("div",Qh,[b.subGroup===void 0&&b.plugins.length>1?(e.openBlock(),e.createElementBlock("div",eE,[e.createElementVNode("div",tE,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,N=>(e.openBlock(),e.createElementBlock("div",{class:"col-md-4 col-lg-6 col-xl-6 col-xxl-4",key:e.unref(De)(N)},[e.createVNode(Yl,{id:e.unref(ve)(e.unref(De)(N)),"icon-b64-svg":"data:image/svg+xml;base64,"+(b.icons[N.subGroup]??b.icons[N.group]),text:r(N),description:a(N),href:`${b.routePath}/${e.unref(ve)(e.unref(De)(N))}`,"route-path":b.routePath,"plugin-group":N.group??N.name,"total-count":p(N),"blueprints-count":o.subgroupBlueprintCounts?.[`${e.unref(ve)(N.group??N.name)}-${e.unref(ve)(e.unref(De)(N))}`]??0,"is-active":b.activeId?.toLowerCase()===e.unref(ve)(e.unref(De)(N)),class:"text-capitalize h-100",onNavigate:I[0]||(I[0]=M=>S("navigate",M))},null,8,["id","icon-b64-svg","text","description","href","route-path","plugin-group","total-count","blueprints-count","is-active"])]))),128))])])):i.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(h),(N,M)=>(e.openBlock(),e.createElementBlock("div",{class:"d-flex flex-column elements-section pb-3",key:M},[e.createElementVNode("h4",{id:`section-${e.unref(ve)(M)}`,class:"text-capitalize"},e.toDisplayString(M),9,nE),e.createElementVNode("div",oE,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N,U=>(e.openBlock(),e.createElementBlock("div",{class:"col-md-4 col-lg-6 col-xl-6 col-xxl-4",key:U},[e.createVNode(ql,{id:e.unref(ve)(U),"icon-b64-svg":"data:image/svg+xml;base64,"+(b.icons[U]??b.icons[i.value.subGroup??i.value.group]??b.icons[i.value.group]),text:u(U),"plugin-class":U,href:d(U),"route-path":b.routePath,title:b.schemas?.[U]?.title,class:"h-100",onNavigate:I[1]||(I[1]=Q=>S("navigate",Q))},{markdown:e.withCtx(({content:Q})=>[e.renderSlot(b.$slots,"markdown",{content:Q},void 0,!0)]),_:3},8,["id","icon-b64-svg","text","plugin-class","href","route-path","title"])]))),128))])]))),128)):e.createCommentVNode("",!0),s.value!==void 0&&i.value?.longDescription?(e.openBlock(),e.createElementBlock("div",lE,[I[2]||(I[2]=e.createElementVNode("h4",{id:"how-to-use-this-plugin"}," How to use this plugin ",-1)),e.createElementVNode("div",{ref_key:"contentWrap",ref:_,class:e.normalizeClass(["markdown-container",{expanded:k.value}])},[e.createElementVNode("div",{ref_key:"contentInner",ref:v,class:"markdown-inner"},[e.renderSlot(b.$slots,"markdown",{content:s.value.replace(/ *:(?![ /])/g,": ")},void 0,!0)],512),y.value&&!k.value?(e.openBlock(),e.createElementBlock("div",rE)):e.createCommentVNode("",!0)],2),y.value||k.value?(e.openBlock(),e.createElementBlock("div",aE,[e.createElementVNode("button",{class:"more-btn",onClick:T},[e.createTextVNode(e.toDisplayString(k.value?"See less":"See more")+" ",1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k.value?nr:Xn)))])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))}}),sE=D(iE,[["__scopeId","data-v-535305bd"]]),cE=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,uE=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,dE=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function mE(t,n){if(t==="__proto__"||t==="constructor"&&n&&typeof n=="object"&&"prototype"in n){fE(t);return}return n}function fE(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function pE(t,n={}){if(typeof t!="string")return t;if(t[0]==='"'&&t[t.length-1]==='"'&&t.indexOf("\\")===-1)return t.slice(1,-1);const o=t.trim();if(o.length<=9)switch(o.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!dE.test(t)){if(n.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(cE.test(t)||uE.test(t)){if(n.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,mE)}return JSON.parse(t)}catch(l){if(n.strict)throw l;return t}}const gE=/\d/,hE=["-","_","/","."];function EE(t=""){if(!gE.test(t))return t!==t.toLowerCase()}function ir(t,n){const o=hE,l=[];if(!t||typeof t!="string")return l;let a="",r,i;for(const s of t){const c=o.includes(s);if(c===!0){l.push(a),a="",r=void 0;continue}const u=EE(s);if(i===!1){if(r===!1&&u===!0){l.push(a),a=s,r=u;continue}if(r===!0&&u===!1&&a.length>1){const d=a.at(-1);l.push(a.slice(0,Math.max(0,a.length-1))),a=d+s,r=u;continue}}a+=s,r=u,i=c}return l.push(a),l}function yE(t){return t?t[0].toUpperCase()+t.slice(1):""}function sr(t,n){return t?(Array.isArray(t)?t:ir(t)).map(o=>yE(o)).join(""):""}function kE(t,n){return t?(Array.isArray(t)?t:ir(t)).map(o=>o.toLowerCase()).join("-"):""}class kt{constructor(n,o,l){this.normal=o,this.property=n,l&&(this.space=l)}}kt.prototype.normal={};kt.prototype.property={};kt.prototype.space=void 0;function cr(t,n){const o={},l={};for(const a of t)Object.assign(o,a.property),Object.assign(l,a.normal);return new kt(o,l,n)}function Tn(t){return t.toLowerCase()}class ye{constructor(n,o){this.attribute=o,this.property=n}}ye.prototype.attribute="";ye.prototype.booleanish=!1;ye.prototype.boolean=!1;ye.prototype.commaOrSpaceSeparated=!1;ye.prototype.commaSeparated=!1;ye.prototype.defined=!1;ye.prototype.mustUseProperty=!1;ye.prototype.number=!1;ye.prototype.overloadedBoolean=!1;ye.prototype.property="";ye.prototype.spaceSeparated=!1;ye.prototype.space=void 0;let _E=0;const F=Ze(),se=Ze(),Bn=Ze(),V=Ze(),J=Ze(),ot=Ze(),_e=Ze();function Ze(){return 2**++_E}const Vn=Object.freeze(Object.defineProperty({__proto__:null,boolean:F,booleanish:se,commaOrSpaceSeparated:_e,commaSeparated:ot,number:V,overloadedBoolean:Bn,spaceSeparated:J},Symbol.toStringTag,{value:"Module"})),pn=Object.keys(Vn);class Jn extends ye{constructor(n,o,l,a){let r=-1;if(super(n,o),Xo(this,"space",a),typeof l=="number")for(;++r<pn.length;){const i=pn[r];Xo(this,pn[r],(l&Vn[i])===Vn[i])}}}Jn.prototype.defined=!0;function Xo(t,n,o){o&&(t[n]=o)}function it(t){const n={},o={};for(const[l,a]of Object.entries(t.properties)){const r=new Jn(l,t.transform(t.attributes||{},l),a,t.space);t.mustUseProperty&&t.mustUseProperty.includes(l)&&(r.mustUseProperty=!0),n[l]=r,o[Tn(l)]=l,o[Tn(r.attribute)]=l}return new kt(n,o,t.space)}const ur=it({properties:{ariaActiveDescendant:null,ariaAtomic:se,ariaAutoComplete:null,ariaBusy:se,ariaChecked:se,ariaColCount:V,ariaColIndex:V,ariaColSpan:V,ariaControls:J,ariaCurrent:null,ariaDescribedBy:J,ariaDetails:null,ariaDisabled:se,ariaDropEffect:J,ariaErrorMessage:null,ariaExpanded:se,ariaFlowTo:J,ariaGrabbed:se,ariaHasPopup:null,ariaHidden:se,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:J,ariaLevel:V,ariaLive:null,ariaModal:se,ariaMultiLine:se,ariaMultiSelectable:se,ariaOrientation:null,ariaOwns:J,ariaPlaceholder:null,ariaPosInSet:V,ariaPressed:se,ariaReadOnly:se,ariaRelevant:null,ariaRequired:se,ariaRoleDescription:J,ariaRowCount:V,ariaRowIndex:V,ariaRowSpan:V,ariaSelected:se,ariaSetSize:V,ariaSort:null,ariaValueMax:V,ariaValueMin:V,ariaValueNow:V,ariaValueText:null,role:null},transform(t,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function dr(t,n){return n in t?t[n]:n}function mr(t,n){return dr(t,n.toLowerCase())}const vE=it({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ot,acceptCharset:J,accessKey:J,action:null,allow:null,allowFullScreen:F,allowPaymentRequest:F,allowUserMedia:F,alt:null,as:null,async:F,autoCapitalize:null,autoComplete:J,autoFocus:F,autoPlay:F,blocking:J,capture:null,charSet:null,checked:F,cite:null,className:J,cols:V,colSpan:null,content:null,contentEditable:se,controls:F,controlsList:J,coords:V|ot,crossOrigin:null,data:null,dateTime:null,decoding:null,default:F,defer:F,dir:null,dirName:null,disabled:F,download:Bn,draggable:se,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:F,formTarget:null,headers:J,height:V,hidden:Bn,high:V,href:null,hrefLang:null,htmlFor:J,httpEquiv:J,id:null,imageSizes:null,imageSrcSet:null,inert:F,inputMode:null,integrity:null,is:null,isMap:F,itemId:null,itemProp:J,itemRef:J,itemScope:F,itemType:J,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:F,low:V,manifest:null,max:null,maxLength:V,media:null,method:null,min:null,minLength:V,multiple:F,muted:F,name:null,nonce:null,noModule:F,noValidate:F,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:F,optimum:V,pattern:null,ping:J,placeholder:null,playsInline:F,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:F,referrerPolicy:null,rel:J,required:F,reversed:F,rows:V,rowSpan:V,sandbox:J,scope:null,scoped:F,seamless:F,selected:F,shadowRootClonable:F,shadowRootDelegatesFocus:F,shadowRootMode:null,shape:null,size:V,sizes:null,slot:null,span:V,spellCheck:se,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V,step:null,style:null,tabIndex:V,target:null,title:null,translate:null,type:null,typeMustMatch:F,useMap:null,value:se,width:V,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:J,axis:null,background:null,bgColor:null,border:V,borderColor:null,bottomMargin:V,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:F,declare:F,event:null,face:null,frame:null,frameBorder:null,hSpace:V,leftMargin:V,link:null,longDesc:null,lowSrc:null,marginHeight:V,marginWidth:V,noResize:F,noHref:F,noShade:F,noWrap:F,object:null,profile:null,prompt:null,rev:null,rightMargin:V,rules:null,scheme:null,scrolling:se,standby:null,summary:null,text:null,topMargin:V,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:F,disableRemotePlayback:F,prefix:null,property:null,results:V,security:null,unselectable:null},space:"html",transform:mr}),CE=it({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:_e,accentHeight:V,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V,amplitude:V,arabicForm:null,ascent:V,attributeName:null,attributeType:null,azimuth:V,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V,by:null,calcMode:null,capHeight:V,className:J,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:V,diffuseConstant:V,direction:null,display:null,dur:null,divisor:V,dominantBaseline:null,download:F,dx:null,dy:null,edgeMode:null,editable:null,elevation:V,enableBackground:null,end:null,event:null,exponent:V,externalResourcesRequired:null,fill:null,fillOpacity:V,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ot,g2:ot,glyphName:ot,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V,horizOriginX:V,horizOriginY:V,id:null,ideographic:V,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V,k:V,k1:V,k2:V,k3:V,k4:V,kernelMatrix:_e,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:V,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:V,overlineThickness:V,paintOrder:null,panose1:null,path:null,pathLength:V,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:J,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V,pointsAtY:V,pointsAtZ:V,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_e,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_e,rev:_e,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_e,requiredFeatures:_e,requiredFonts:_e,requiredFormats:_e,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:V,specularExponent:V,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V,strikethroughThickness:V,string:null,stroke:null,strokeDashArray:_e,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V,strokeOpacity:V,strokeWidth:null,style:null,surfaceScale:V,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_e,tabIndex:V,tableValues:null,target:null,targetX:V,targetY:V,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_e,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:V,underlineThickness:V,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V,values:null,vAlphabetic:V,vMathematical:V,vectorEffect:null,vHanging:V,vIdeographic:V,version:null,vertAdvY:V,vertOriginX:V,vertOriginY:V,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:dr}),fr=it({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,n){return"xlink:"+n.slice(5).toLowerCase()}}),pr=it({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:mr}),gr=it({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,n){return"xml:"+n.slice(3).toLowerCase()}}),NE=/[A-Z]/g,Zo=/-[a-z]/g,SE=/^data[-\w.:]+$/i;function bE(t,n){const o=Tn(n);let l=n,a=ye;if(o in t.normal)return t.property[t.normal[o]];if(o.length>4&&o.slice(0,4)==="data"&&SE.test(n)){if(n.charAt(4)==="-"){const r=n.slice(5).replace(Zo,LE);l="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{const r=n.slice(4);if(!Zo.test(r)){let i=r.replace(NE,wE);i.charAt(0)!=="-"&&(i="-"+i),n="data"+i}}a=Jn}return new a(l,n)}function wE(t){return"-"+t.toLowerCase()}function LE(t){return t.charAt(1).toUpperCase()}const TE=cr([ur,vE,fr,pr,gr],"html");cr([ur,CE,fr,pr,gr],"svg");const Qn=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],BE=["p","h1","h2","h3","h4","h5","h6","li"];function Ft(t,n){return t.type===n||typeof t.type=="object"&&t.type.tag===n||t.tag===n}function eo(t){return Ft(t,"text")||Ft(t,Symbol.for("v-txt"))}function hr(t){return Array.isArray(t.children)||typeof t.children=="string"?t.children:typeof t.children?.default=="function"?t.children.default():[]}function Ut(t){if(!t)return"";if(Array.isArray(t))return t.map(Ut).join("");if(eo(t))return t.value||t.children||"";const n=hr(t);return Array.isArray(n)?n.map(Ut).filter(Boolean).join(""):""}function Er(t,n=[]){if(Array.isArray(t))return t.flatMap(l=>Er(l,n));let o=t;return n.some(l=>l==="*"||Ft(t,l))&&(o=hr(t)||t,!Array.isArray(o)&&BE.some(l=>Ft(t,l))&&(o=[o])),o}function yr(t,n=[]){return t=Array.isArray(t)?t:[t],n.length?t.flatMap(o=>yr(Er(o,[n[0]]),n.slice(1))).filter(o=>!(eo(o)&&Ut(o).trim()==="")):t}function kr(t,n=[]){return typeof n=="string"&&(n=n.split(/[,\s]/).map(o=>o.trim()).filter(Boolean)),n.length?yr(t,n).reduce((o,l)=>(eo(l)?typeof o[o.length-1]=="string"?o[o.length-1]+=l.children:o.push(l.children):o.push(l),o),[]):t}function VE(t,n){return n.reduce((o,l)=>{const a=IE(t,l);return a!==void 0&&(o[l]=a),o},{})}function IE(t,n){return n.split(".").reduce((o,l)=>o&&o[l],t)}const In="default",_r=/^@|^v-on:/,vr=/^:|^v-bind:/,AE=/^v-model/,DE=["select","textarea","input"],$E=["math","svg"],OE=Object.fromEntries(["p","a","blockquote","code","pre","code","em","h1","h2","h3","h4","h5","h6","hr","img","ul","ol","li","strong","table","thead","tbody","td","th","tr","script"].map(t=>[t,`prose-${t}`])),PE=["script","base"],RE=e.defineComponent({name:"MDCRenderer",props:{body:{type:Object,required:!0},data:{type:Object,default:()=>({})},class:{type:[String,Object],default:void 0},tag:{type:[String,Boolean],default:void 0},prose:{type:Boolean,default:void 0},components:{type:Object,default:()=>({})},unwrap:{type:[Boolean,String],default:!1}},async setup(t){const o=e.getCurrentInstance()?.appContext?.app?.$nuxt,l=o?.$route||o?._route,{mdc:a}=o?.$config?.public||{},r=e.computed(()=>({...a?.components?.prose&&t.prose!==!1?OE:{},...a?.components?.map||{},...e.toRaw(t.data?.mdc?.components||{}),...t.components})),i=e.computed(()=>{const u=(t.body?.children||[]).map(d=>d.tag||d.type).filter(d=>!Qn.includes(d));return Array.from(new Set(u)).sort().join(".")}),s=e.reactive({...t.data});e.watch(()=>t.data,u=>{Object.assign(s,u)}),await YE(t.body,{tags:r.value});function c(u,d){const p=u.split(".").length-1;return u.split(".").reduce((h,_,v)=>v==p&&h?(h[_]=d,h[_]):typeof h=="object"?h[_]:void 0,s)}return{tags:r,contentKey:i,route:l,runtimeData:s,updateRuntimeData:c}},render(t){const{tags:n,tag:o,body:l,data:a,contentKey:r,route:i,unwrap:s,runtimeData:c,updateRuntimeData:u}=t;if(!l)return null;const d={...a,tags:n,$route:i,runtimeData:c,updateRuntimeData:u},p=o!==!1?An(o||d.component?.name||d.component||"div"):void 0;return p?e.h(p,{...d.component?.props,class:t.class,...this.$attrs,key:r},{default:h}):h?.();function h(){const _=Cr(l,e.h,{documentMeta:d,parentScope:d,resolveComponent:An});return _?.default?s?kr(_.default(),typeof s=="string"?s.split(" "):["*"]):_.default():null}}});function ME(t,n,o,l){const{documentMeta:a,parentScope:r,resolveComponent:i}=o;if(t.type==="text")return n(e.Text,t.value);if(t.type==="comment")return n(e.Comment,null,t.value);const s=t.tag,c=Sr(t,a.tags);if(t.tag==="binding")return xE(t,n,a,r);const u=Nr(c)?h=>h:i;if(PE.includes(c))return n("pre",{class:"mdc-renderer-dangerous-tag"},"<"+c+">"+Ut(t)+"</"+c+">");const d=u(c);typeof d=="object"&&(d.tag=s);const p=FE(t,a);return l&&(p.key=l),n(d,p,Cr(t,n,{documentMeta:a,parentScope:{...r,...p},resolveComponent:u}))}function Cr(t,n,o){const{documentMeta:l,parentScope:a,resolveComponent:r}=o,s=(t.children||[]).reduce((u,d)=>{if(!GE(d))return u[In].children.push(d),u;const p=jE(d);return u[p]=u[p]||{props:{},children:[]},d.type==="element"&&(u[p].props=d.props,u[p].children.push(...d.children||[])),u},{[In]:{props:{},children:[]}});return Object.entries(s).reduce((u,[d,{props:p,children:h}])=>(h.length&&(u[d]=(_={})=>{const v=VE(_,Object.keys(p||{}));let k=h.map((E,f)=>ME(E,n,{documentMeta:l,parentScope:{...a,...v},resolveComponent:r},String(E.props?.key||f)));return p?.unwrap&&(k=kr(k,p.unwrap)),KE(k)}),u),{})}function xE(t,n,o,l={}){const a={...o.runtimeData,...l,$document:o,$doc:o},r=/\.|\[(\d+)\]/,s=(t.props?.value.trim().split(r).filter(Boolean)).reduce((u,d)=>{if(u&&d in u)return typeof u[d]=="function"?u[d]():u[d]},a),c=t.props?.defaultValue;return n(e.Text,s??c??"")}function FE(t,n){const{tag:o="",props:l={}}=t;return Object.keys(l).reduce(function(a,r){if(r==="__ignoreMap")return a;const i=l[r];if(AE.test(r))return UE(r,i,a,n,{native:DE.includes(o)});if(r==="v-bind")return HE(r,i,a,n);if(_r.test(r))return zE(r,i,a,n);if(vr.test(r))return WE(r,i,a,n);const{attribute:s}=bE(TE,r);return Array.isArray(i)&&i.every(c=>typeof c=="string")?(a[s]=i.join(" "),a):(a[s]=i,a)},{})}function UE(t,n,o,l,{native:a}){const r=t.match(/^v-model:([^=]+)/)?.[1]||"modelValue",i=a?"value":r,s=a?"onInput":`onUpdate:${r}`;return o[i]=Xt(n,l.runtimeData),o[s]=c=>{l.updateRuntimeData(n,a?c.target?.value:c)},o}function HE(t,n,o,l){const a=Xt(n,l);return o=Object.assign(o,a),o}function zE(t,n,o,l){return t=t.replace(_r,""),o.on=o.on||{},o.on[t]=()=>Xt(n,l),o}function WE(t,n,o,l){return t=t.replace(vr,""),o[t]=Xt(n,l),o}const An=t=>{if(typeof t=="string"){if(Qn.includes(t))return t;const n=e.resolveComponent(sr(t),!1);return!t||n?.name==="AsyncComponentWrapper"||typeof n=="string"?n:"setup"in n?e.defineAsyncComponent(()=>new Promise(o=>o(n))):n}return t};function Xt(t,n){const o=t.split(".").reduce((l,a)=>typeof l=="object"?l[a]:void 0,n);return typeof o>"u"?pE(t):o}function jE(t){let n="";for(const o of Object.keys(t.props||{}))if(!(!o.startsWith("#")&&!o.startsWith("v-slot:"))){n=o.split(/[:#]/,2)[1];break}return n||In}function GE(t){return t.tag==="template"}function Nr(t){return $E.includes(t)}function KE(t){const n=[];for(const o of t){const l=n[n.length-1];o.type===e.Text&&l?.type===e.Text?l.children=l.children+o.children:n.push(o)}return n}async function YE(t,n){if(!t)return;const o=Array.from(new Set(l(t,n)));await Promise.all(o.map(async a=>{if(a?.render||a?.ssrRender||a?.__ssrInlineRender)return;const r=An(a);r?.__asyncLoader&&!r.__asyncResolved&&await r.__asyncLoader()}));function l(a,r){const i=a.tag;if(a.type==="text"||i==="binding"||a.type==="comment")return[];const s=Sr(a,r.tags);if(Nr(s))return[];const c=[];a.type!=="root"&&!Qn.includes(s)&&c.push(s);for(const u of a.children||[])c.push(...l(u,r));return c}}function Sr(t,n){const o=t.tag;return!o||typeof t.props?.__ignoreMap<"u"?o:n[o]||n[sr(o)]||n[kE(t.tag)]||o}const qE=e.defineComponent({__name:"MDCRenderer",setup(t){return(n,o)=>(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.createVNode(RE,e.mergeProps(n.$attrs,{prose:!0}),null,16)]),_:1}))}});exports.CLUSTER_PREFIX=w.CLUSTER_PREFIX;exports.EVENTS=w.EVENTS;exports.NODE_SIZES=w.NODE_SIZES;exports.SECTIONS=w.SECTIONS;exports.Utils=w.Utils;exports.VueFlowUtils=w.VueFlowUtils;exports.Collapsible=ht;exports.CollapsibleV2=Et;exports.DependenciesNode=Uc;exports.ElementCard=ql;exports.LOG_LEVELS=ti;exports.MDCRenderer=qE;exports.PluginIndex=sE;exports.RotatingDotsIcon=el;exports.STATES=z;exports.SchemaToHtml=K1;exports.SchemaToHtmlV2=Jh;exports.State=ne;exports.Status=xf;exports.SubgroupCard=Yl;exports.TaskIcon=Un;exports.Topology=Pf;exports.YamlUtils=Or;exports.buildPluginMappings=ii;exports.cssVariable=Ce;exports.extractPluginElements=Ht;exports.filterPluginsWithoutDeprecated=ai;exports.getMDCParser=ni;exports.isEntryAPluginElementPredicate=Dn;exports.slugify=ve;exports.subGroupName=De;exports.usePluginElementCounts=Qo;
36
36
  //# sourceMappingURL=kestra-index.cjs.js.map