From 869c4d1a280a99261f29263cc602a8109ffdd113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Mon, 8 Mar 2021 12:22:58 +0100 Subject: [PATCH] Fix docs base url --- docs/assets/display.27947ee2.js | 1 + docs/assets/{display.deb1a9ae.js => display.344ee7da.js} | 2 +- docs/assets/{display.c54cb56f.js => display.57d7b574.js} | 2 +- docs/assets/display.6be413a8.js | 1 - docs/assets/display.bd126a56.js | 1 + docs/assets/display.f7737d43.js | 1 - docs/assets/edit.492a1056.js | 1 + docs/assets/{edit.20e0e14c.js => edit.4ace5dcb.js} | 2 +- docs/assets/edit.5ae242b9.js | 1 - docs/assets/edit.772205fb.js | 1 + docs/assets/edit.9fccf2dd.js | 1 - docs/assets/index.039d73cc.js | 1 + docs/assets/index.35b9a0ae.js | 1 - docs/index.html | 8 ++++---- vite.config.js | 2 +- 15 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 docs/assets/display.27947ee2.js rename docs/assets/{display.deb1a9ae.js => display.344ee7da.js} (57%) rename docs/assets/{display.c54cb56f.js => display.57d7b574.js} (85%) delete mode 100644 docs/assets/display.6be413a8.js create mode 100644 docs/assets/display.bd126a56.js delete mode 100644 docs/assets/display.f7737d43.js create mode 100644 docs/assets/edit.492a1056.js rename docs/assets/{edit.20e0e14c.js => edit.4ace5dcb.js} (68%) delete mode 100644 docs/assets/edit.5ae242b9.js create mode 100644 docs/assets/edit.772205fb.js delete mode 100644 docs/assets/edit.9fccf2dd.js create mode 100644 docs/assets/index.039d73cc.js delete mode 100644 docs/assets/index.35b9a0ae.js diff --git a/docs/assets/display.27947ee2.js b/docs/assets/display.27947ee2.js new file mode 100644 index 0000000..74364ad --- /dev/null +++ b/docs/assets/display.27947ee2.js @@ -0,0 +1 @@ +var a=Object.assign;import{z as s,m as t,b as e,A as l,E as i,f as r}from"./index.039d73cc.js";/* empty css */import"./vendor.9babb3f5.js";var d=s({name:"sb-image-display",model:t,props:a(a({},e),{data:{type:null,default:l}}),setup:a=>()=>i("figure",{class:"sb-image"},[i("img",{class:"sb-image__content",src:a.data.src,alt:a.data.alt},null),i(r,{block:a.data.description},null)])});export default d; diff --git a/docs/assets/display.deb1a9ae.js b/docs/assets/display.344ee7da.js similarity index 57% rename from docs/assets/display.deb1a9ae.js rename to docs/assets/display.344ee7da.js index 777c446..9d3dc59 100644 --- a/docs/assets/display.deb1a9ae.js +++ b/docs/assets/display.344ee7da.js @@ -1 +1 @@ -var e=Object.assign;import{H as a,m as t,b as n,I as s,J as l}from"./index.35b9a0ae.js";import"./vendor.9babb3f5.js";var o=a({name:"sb-missing-block",model:t,props:e(e({name:String},n),{data:{type:null,default:null},eventUpdate:{type:Function,default:()=>{}},eventAppendBlock:{type:Function,default:()=>{}},eventRemoveBlock:{type:Function,default:()=>{}}}),setup:e=>()=>s("div",{class:"sb-missing-block"},[l("Missing block: "),e.name])});export default o; +var e=Object.assign;import{H as t,m as n,b as a,I as s,J as l}from"./index.039d73cc.js";import"./vendor.9babb3f5.js";var o=t({name:"sb-missing-block",model:n,props:e(e({name:String},a),{data:{type:null,default:null},eventUpdate:{type:Function,default:()=>{}},eventAppendBlock:{type:Function,default:()=>{}},eventRemoveBlock:{type:Function,default:()=>{}}}),setup:e=>()=>s("div",{class:"sb-missing-block"},[l("Missing block: "),e.name])});export default o; diff --git a/docs/assets/display.c54cb56f.js b/docs/assets/display.57d7b574.js similarity index 85% rename from docs/assets/display.c54cb56f.js rename to docs/assets/display.57d7b574.js index 1a3e787..fa07949 100644 --- a/docs/assets/display.c54cb56f.js +++ b/docs/assets/display.57d7b574.js @@ -1 +1 @@ -var a=Object.assign;import{d as s,m as t,b as e,g as l,c as o,a as d,f as r}from"./index.35b9a0ae.js";/* empty css */import"./vendor.9babb3f5.js";var i=s({name:"sb-layout-display",model:t,props:a(a({},e),{data:{type:null,default:l}}),setup(a){const s=o((()=>({"sb-layout":!0,[`sb-layout_${a.data.orientation}`]:!0})));return()=>d("div",{class:s.value},[...a.data.children.map((a=>d(r,{key:a.id,block:a},null)))])}});export default i; +var a=Object.assign;import{d as s,m as t,b as e,g as l,c as o,a as d,f as r}from"./index.039d73cc.js";/* empty css */import"./vendor.9babb3f5.js";var i=s({name:"sb-layout-display",model:t,props:a(a({},e),{data:{type:null,default:l}}),setup(a){const s=o((()=>({"sb-layout":!0,[`sb-layout_${a.data.orientation}`]:!0})));return()=>d("div",{class:s.value},[...a.data.children.map((a=>d(r,{key:a.id,block:a},null)))])}});export default i; diff --git a/docs/assets/display.6be413a8.js b/docs/assets/display.6be413a8.js deleted file mode 100644 index 1094272..0000000 --- a/docs/assets/display.6be413a8.js +++ /dev/null @@ -1 +0,0 @@ -var a=Object.assign;import{k as s,m as r,b as e,l as t,s as p,t as l,y as b}from"./index.35b9a0ae.js";/* empty css */import"./vendor.9babb3f5.js";var n=s({name:"sb-paragraph-display",model:r,props:a(a({},e),{data:{type:Object,default:t}}),setup(a){const s=p((()=>({"sb-paragraph":!0,[`sb-paragraph_align-${a.data.align}`]:!0})));return()=>l("p",b({class:s.value},{innerHTML:a.data.value}),null)}});export default n; diff --git a/docs/assets/display.bd126a56.js b/docs/assets/display.bd126a56.js new file mode 100644 index 0000000..dbd0128 --- /dev/null +++ b/docs/assets/display.bd126a56.js @@ -0,0 +1 @@ +var a=Object.assign;import{k as s,m as r,b as t,l as e,s as p,t as l,y as n}from"./index.039d73cc.js";/* empty css */import"./vendor.9babb3f5.js";var b=s({name:"sb-paragraph-display",model:r,props:a(a({},t),{data:{type:Object,default:e}}),setup(a){const s=p((()=>({"sb-paragraph":!0,[`sb-paragraph_align-${a.data.align}`]:!0})));return()=>l("p",n({class:s.value},{innerHTML:a.data.value}),null)}});export default b; diff --git a/docs/assets/display.f7737d43.js b/docs/assets/display.f7737d43.js deleted file mode 100644 index d6fe244..0000000 --- a/docs/assets/display.f7737d43.js +++ /dev/null @@ -1 +0,0 @@ -var a=Object.assign;import{z as s,m as e,b as t,A as l,E as i,f as r}from"./index.35b9a0ae.js";/* empty css */import"./vendor.9babb3f5.js";var d=s({name:"sb-image-display",model:e,props:a(a({},t),{data:{type:null,default:l}}),setup:a=>()=>i("figure",{class:"sb-image"},[i("img",{class:"sb-image__content",src:a.data.src,alt:a.data.alt},null),i(r,{block:a.data.description},null)])});export default d; diff --git a/docs/assets/edit.492a1056.js b/docs/assets/edit.492a1056.js new file mode 100644 index 0000000..451be30 --- /dev/null +++ b/docs/assets/edit.492a1056.js @@ -0,0 +1 @@ +var a=Object.assign;import{k as e,m as n,b as t,l,n as o,o as u,u as s,p as i,q as r,s as p,t as d,S as c,v,x as f}from"./index.039d73cc.js";/* empty css */import"./vendor.9babb3f5.js";var g=e({name:"sb-paragraph-edit",model:n,props:a(a({},t),{data:{type:null,default:l},onUpdate:{type:Function,default:()=>{}},onAppendBlock:{type:Function,default:()=>{}},onRemoveSelf:{type:Function,default:()=>{}},onActivateNext:{type:Function,default:()=>{}},onActivatePrevious:{type:Function,default:()=>{}}}),setup(a){const e=o({value:a.data.value,align:a.data.align,focused:!1}),n=u(null),{isActive:t,activate:g}=s(a.blockId),b=()=>{n.value&&t.value&&n.value.focus()};i((()=>{b(),n.value&&(n.value.innerHTML=e.value)})),r(t,b),r((()=>a.data),(()=>{e.value=a.data.value,e.align=a.data.align,n.value&&(n.value.innerHTML=e.value)}));const y=a=>{e.value=a.target.innerHTML},h=p((()=>({"sb-paragraph":!0,"sb-paragraph_focused":e.focused,[`sb-paragraph_align-${e.align}`]:!0}))),m=n=>{a.onUpdate({value:e.value,align:n.target.value})},A=()=>{e.focused=!0,g()},k=()=>{e.focused=!1,a.onUpdate({value:e.value,align:e.align})},w=e=>{if("Enter"===e.key&&!e.shiftKey){const n=""+ +new Date;a.onAppendBlock({id:n,name:"sb-paragraph",data:l()}),g(n),e.preventDefault()}},x=t=>{"Backspace"===t.key&&""===e.value&&a.onRemoveSelf();const l=window.getSelection().focusNode,o=Array.from(n.value.childNodes),u=o.indexOf(l);if(l===n.value||0===u||u===o.length-1)switch(t.key){case"ArrowDown":a.onActivateNext();break;case"ArrowUp":a.onActivatePrevious()}};return()=>d("div",{class:h.value},[d(c,null,{default:()=>[d(v,{value:e.align,onChange:m},{default:()=>[d("option",null,[f("left")]),d("option",null,[f("center")]),d("option",null,[f("right")])]})]}),d("p",{class:"sb-paragraph__input",ref:n,contenteditable:!0,onInput:y,onFocus:A,onBlur:k,onKeydown:w,onKeyup:x},null)])}});export default g; diff --git a/docs/assets/edit.20e0e14c.js b/docs/assets/edit.4ace5dcb.js similarity index 68% rename from docs/assets/edit.20e0e14c.js rename to docs/assets/edit.4ace5dcb.js index eeebcc2..f0a794b 100644 --- a/docs/assets/edit.20e0e14c.js +++ b/docs/assets/edit.4ace5dcb.js @@ -1 +1 @@ -var a=Object.assign;import{z as e,m as t,b as s,A as l,B as n,C as i,D as d,E as r,S as o,e as c,F as u,G as p,f}from"./index.35b9a0ae.js";/* empty css */import"./vendor.9babb3f5.js";var m=e({name:"sb-image-edit",model:t,props:a(a({},s),{onUpdate:{type:Function,default:()=>{}},data:{type:null,default:l}}),setup(e){const t=n({src:e.data.src,alt:e.data.alt,description:e.data.description}),s=i(null);d((()=>e.data),(()=>{t.src=e.data.src,t.alt=e.data.alt,t.description=e.data.description}));const l=()=>{s.value&&s.value.click()},m=()=>{if(s.value&&s.value.files&&s.value.files.length){const a=new FileReader;a.addEventListener("load",(()=>{e.onUpdate({src:a.result,alt:e.data.alt,description:e.data.description})})),a.readAsDataURL(s.value.files[0])}};return()=>r("figure",{class:"sb-image"},[r(o,null,{default:()=>[t.src?r(c,{onClick:l},{default:()=>[u("Change Image")]}):null,r("input",{type:"file",ref:s,style:"display: none;",onInput:m},null)]}),t.src?r(p,null,[r("img",{src:t.src,alt:t.alt,class:"sb-image__content"},null),r(f,{block:t.description,onUpdate:t=>{return s=t,void e.onUpdate(a(a({},e.data),{description:s}));var s}},null)]):r(c,{onClick:l},{default:()=>[u("Select Image")]})])}});export default m; +var a=Object.assign;import{z as e,m as t,b as s,A as l,B as n,C as d,D as i,E as r,S as c,e as o,F as u,G as p,f}from"./index.039d73cc.js";/* empty css */import"./vendor.9babb3f5.js";var m=e({name:"sb-image-edit",model:t,props:a(a({},s),{onUpdate:{type:Function,default:()=>{}},data:{type:null,default:l}}),setup(e){const t=n({src:e.data.src,alt:e.data.alt,description:e.data.description}),s=d(null);i((()=>e.data),(()=>{t.src=e.data.src,t.alt=e.data.alt,t.description=e.data.description}));const l=()=>{s.value&&s.value.click()},m=()=>{if(s.value&&s.value.files&&s.value.files.length){const a=new FileReader;a.addEventListener("load",(()=>{e.onUpdate({src:a.result,alt:e.data.alt,description:e.data.description})})),a.readAsDataURL(s.value.files[0])}};return()=>r("figure",{class:"sb-image"},[r(c,null,{default:()=>[t.src?r(o,{onClick:l},{default:()=>[u("Change Image")]}):null,r("input",{type:"file",ref:s,style:"display: none;",onInput:m},null)]}),t.src?r(p,null,[r("img",{src:t.src,alt:t.alt,class:"sb-image__content"},null),r(f,{block:t.description,onUpdate:t=>{return s=t,void e.onUpdate(a(a({},e.data),{description:s}));var s}},null)]):r(o,{onClick:l},{default:()=>[u("Select Image")]})])}});export default m; diff --git a/docs/assets/edit.5ae242b9.js b/docs/assets/edit.5ae242b9.js deleted file mode 100644 index 23e5e2d..0000000 --- a/docs/assets/edit.5ae242b9.js +++ /dev/null @@ -1 +0,0 @@ -var a=Object.assign;import{k as e,m as n,b as t,l,n as o,o as u,u as s,p as i,q as r,s as p,t as d,S as v,v as c,x as f}from"./index.35b9a0ae.js";/* empty css */import"./vendor.9babb3f5.js";var g=e({name:"sb-paragraph-edit",model:n,props:a(a({},t),{data:{type:null,default:l},onUpdate:{type:Function,default:()=>{}},onAppendBlock:{type:Function,default:()=>{}},onRemoveSelf:{type:Function,default:()=>{}},onActivateNext:{type:Function,default:()=>{}},onActivatePrevious:{type:Function,default:()=>{}}}),setup(a){const e=o({value:a.data.value,align:a.data.align,focused:!1}),n=u(null),{isActive:t,activate:g}=s(a.blockId),b=()=>{n.value&&t.value&&n.value.focus()};i((()=>{b(),n.value&&(n.value.innerHTML=e.value)})),r(t,b),r((()=>a.data),(()=>{e.value=a.data.value,e.align=a.data.align,n.value&&(n.value.innerHTML=e.value)}));const y=a=>{e.value=a.target.innerHTML},h=p((()=>({"sb-paragraph":!0,"sb-paragraph_focused":e.focused,[`sb-paragraph_align-${e.align}`]:!0}))),m=n=>{a.onUpdate({value:e.value,align:n.target.value})},A=()=>{e.focused=!0,g()},k=()=>{e.focused=!1,a.onUpdate({value:e.value,align:e.align})},w=e=>{if("Enter"===e.key&&!e.shiftKey){const n=""+ +new Date;a.onAppendBlock({id:n,name:"sb-paragraph",data:l()}),g(n),e.preventDefault()}},x=t=>{"Backspace"===t.key&&""===e.value&&a.onRemoveSelf();const l=window.getSelection().focusNode,o=Array.from(n.value.childNodes),u=o.indexOf(l);if(l===n.value||0===u||u===o.length-1)switch(t.key){case"ArrowDown":a.onActivateNext();break;case"ArrowUp":a.onActivatePrevious()}};return()=>d("div",{class:h.value},[d(v,null,{default:()=>[d(c,{value:e.align,onChange:m},{default:()=>[d("option",null,[f("left")]),d("option",null,[f("center")]),d("option",null,[f("right")])]})]}),d("p",{class:"sb-paragraph__input",ref:n,contenteditable:!0,onInput:y,onFocus:A,onBlur:k,onKeydown:w,onKeyup:x},null)])}});export default g; diff --git a/docs/assets/edit.772205fb.js b/docs/assets/edit.772205fb.js new file mode 100644 index 0000000..1dba703 --- /dev/null +++ b/docs/assets/edit.772205fb.js @@ -0,0 +1 @@ +var e=Object.assign;import{d as n,m as i,b as l,g as t,u as a,r as d,w as r,c,a as o,S as s,e as h,f as p,h as u,i as v,j as b}from"./index.039d73cc.js";/* empty css */import"./vendor.9babb3f5.js";var f=n({name:"sb-layout-edit",model:i,props:e(e({},l),{onUpdate:{type:Function,default:()=>{}},data:{type:null,default:t}}),setup(n){const{activate:i}=a(n.id),l=d({orientation:n.data.orientation,children:[...n.data.children]});r((()=>n.data),(()=>{l.orientation=n.data.orientation,l.children=[...n.data.children]}));const t=c((()=>({"sb-layout":!0,[`sb-layout_${l.orientation}`]:!0}))),f=()=>{console.log("toggle"),n.onUpdate({orientation:"vertical"===l.orientation?"horizontal":"vertical"})},m=e=>{l.children=[...l.children,e],n.onUpdate({children:[...l.children]}),i(e.id)},U=(e,t)=>{l.children=[...l.children.slice(0,e+1),t,...l.children.slice(e+1)],n.onUpdate({children:[...l.children]}),i(t.id)},y=e=>{l.children=[...l.children.slice(0,e),...l.children.slice(e+1)],n.onUpdate({children:[...l.children]});const t=Math.max(e-1,0);i(l.children[t].id)},g=e=>{const n=Math.max(Math.min(l.children.length-1,e),0);i(l.children[n].id)};return()=>o("div",{class:t.value},[o(s,null,{default:()=>[o(h,{type:"button",onClick:f},{default:()=>[l.orientation]})]}),...l.children.map(((i,t)=>o(p,u({key:i.id},{"data-order":t,block:i,onUpdate:t=>((i,t)=>{const a=l.children.indexOf(i);-1!==a&&n.onUpdate({children:[...l.children.slice(0,a),e(e({},i),t),...l.children.slice(a+1)]})})(i,t),onRemoveSelf:()=>y(t),onPrependBlock:e=>U(t-1,e),onAppendBlock:e=>U(t,e),onActivatePrevious:e=>g(t-1),onActivateNext:e=>g(t+1)}),{"context-toolbar":()=>o(v,{onMoveBackward:()=>(e=>{if(0===e)return;const i=l.children[e],t=l.children[e-1];l.children=[...l.children.slice(0,e-1),i,t,...l.children.slice(e+1)],n.onUpdate({children:[...l.children]})})(t),onMoveForward:()=>(e=>{if(e===l.children.length-1)return;const i=l.children[e],t=l.children[e+1];l.children=[...l.children.slice(0,e),t,i,...l.children.slice(e+2)],n.onUpdate({children:[...l.children]})})(t),onRemove:()=>y(t),sortable:n.sortable},null)}))),o(b,{onInsertBlock:m},null)])}});export default f; diff --git a/docs/assets/edit.9fccf2dd.js b/docs/assets/edit.9fccf2dd.js deleted file mode 100644 index 38b60c5..0000000 --- a/docs/assets/edit.9fccf2dd.js +++ /dev/null @@ -1 +0,0 @@ -var e=Object.assign;import{d as n,m as i,b as l,g as t,u as a,r as d,w as r,c as o,a as c,S as s,e as h,f as p,h as u,i as v,j as b}from"./index.35b9a0ae.js";/* empty css */import"./vendor.9babb3f5.js";var f=n({name:"sb-layout-edit",model:i,props:e(e({},l),{onUpdate:{type:Function,default:()=>{}},data:{type:null,default:t}}),setup(n){const{activate:i}=a(n.id),l=d({orientation:n.data.orientation,children:[...n.data.children]});r((()=>n.data),(()=>{l.orientation=n.data.orientation,l.children=[...n.data.children]}));const t=o((()=>({"sb-layout":!0,[`sb-layout_${l.orientation}`]:!0}))),f=()=>{console.log("toggle"),n.onUpdate({orientation:"vertical"===l.orientation?"horizontal":"vertical"})},m=e=>{l.children=[...l.children,e],n.onUpdate({children:[...l.children]}),i(e.id)},U=(e,t)=>{l.children=[...l.children.slice(0,e+1),t,...l.children.slice(e+1)],n.onUpdate({children:[...l.children]}),i(t.id)},y=e=>{l.children=[...l.children.slice(0,e),...l.children.slice(e+1)],n.onUpdate({children:[...l.children]});const t=Math.max(e-1,0);i(l.children[t].id)},g=e=>{const n=Math.max(Math.min(l.children.length-1,e),0);i(l.children[n].id)};return()=>c("div",{class:t.value},[c(s,null,{default:()=>[c(h,{type:"button",onClick:f},{default:()=>[l.orientation]})]}),...l.children.map(((i,t)=>c(p,u({key:i.id},{"data-order":t,block:i,onUpdate:t=>((i,t)=>{const a=l.children.indexOf(i);-1!==a&&n.onUpdate({children:[...l.children.slice(0,a),e(e({},i),t),...l.children.slice(a+1)]})})(i,t),onRemoveSelf:()=>y(t),onPrependBlock:e=>U(t-1,e),onAppendBlock:e=>U(t,e),onActivatePrevious:e=>g(t-1),onActivateNext:e=>g(t+1)}),{"context-toolbar":()=>c(v,{onMoveBackward:()=>(e=>{if(0===e)return;const i=l.children[e],t=l.children[e-1];l.children=[...l.children.slice(0,e-1),i,t,...l.children.slice(e+1)],n.onUpdate({children:[...l.children]})})(t),onMoveForward:()=>(e=>{if(e===l.children.length-1)return;const i=l.children[e],t=l.children[e+1];l.children=[...l.children.slice(0,e),t,i,...l.children.slice(e+2)],n.onUpdate({children:[...l.children]})})(t),onRemove:()=>y(t),sortable:n.sortable},null)}))),c(b,{onInsertBlock:m},null)])}});export default f; diff --git a/docs/assets/index.039d73cc.js b/docs/assets/index.039d73cc.js new file mode 100644 index 0000000..19905dc --- /dev/null +++ b/docs/assets/index.039d73cc.js @@ -0,0 +1 @@ +var t=Object.assign;import{d as e,a as n,r as o,b as r,o as s,c as l,e as c,f as i,g as a}from"./vendor.9babb3f5.js";var u,f;!function(t=".",e="__import__"){try{self[e]=new Function("u","return import(u)")}catch(n){const o=new URL(t,location),r=t=>{URL.revokeObjectURL(t.src),t.remove()};self[e]=t=>new Promise(((n,s)=>{const l=new URL(t,o);if(self[e].moduleMap[l])return n(self[e].moduleMap[l]);const c=new Blob([`import * as m from '${l}';`,`${e}.moduleMap['${l}']=m;`],{type:"text/javascript"}),i=Object.assign(document.createElement("script"),{type:"module",src:URL.createObjectURL(c),onerror(){s(new Error(`Failed to import: ${t}`)),r(i)},onload(){n(self[e].moduleMap[l]),r(i)}});document.head.appendChild(i)})),self[e].moduleMap={}}}("/schlechtenburg/assets/"),(f=u||(u={})).Edit="edit",f.Display="display";const p=Symbol("Schlechtenburg mode"),d={prop:"block",event:"update"},h={id:{type:String,default:()=>""+ +new Date},data:{type:Object,default:()=>({})}};function _(t,e){const n=Object.create(null),o=t.split(",");for(let r=0;r!!n[t.toLowerCase()]:t=>!!n[t]}const v=_("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl");function g(t){if(j(t)){const e={};for(let n=0;n{if(t){const n=t.split(b);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function w(t){let e="";if(F(t))e=t;else if(j(t))for(let n=0;n{},x=/^on[^a-z]/,R=t=>x.test(t),C=Object.assign,E=Object.prototype.hasOwnProperty,O=(t,e)=>E.call(t,e),j=Array.isArray,$=t=>"[object Map]"===N(t),P=t=>"function"==typeof t,F=t=>"string"==typeof t,I=t=>"symbol"==typeof t,M=t=>null!==t&&"object"==typeof t,A=Object.prototype.toString,N=t=>A.call(t),T=t=>F(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,U=(t,e)=>t!==e&&(t==t||e==e),D=new WeakMap,z=[];let B;const V=Symbol(""),L=Symbol("");function W(t,e=k){(function(t){return t&&!0===t._isEffect})(t)&&(t=t.raw);const n=function(t,e){const n=function(){if(!n.active)return e.scheduler?void 0:t();if(!z.includes(n)){q(n);try{return H.push(J),J=!0,z.push(n),B=n,t()}finally{z.pop(),Q(),B=z[z.length-1]}}};return n.id=K++,n.allowRecurse=!!e.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=t,n.deps=[],n.options=e,n}(t,e);return e.lazy||n(),n}let K=0;function q(t){const{deps:e}=t;if(e.length){for(let n=0;n{t&&t.forEach((t=>{(t!==B||t.allowRecurse)&&c.add(t)}))};if("clear"===e)l.forEach(i);else if("length"===n&&j(t))l.forEach(((t,e)=>{("length"===e||e>=o)&&i(t)}));else switch(void 0!==n&&i(l.get(n)),e){case"add":j(t)?T(n)&&i(l.get("length")):(i(l.get(V)),$(t)&&i(l.get(L)));break;case"delete":j(t)||(i(l.get(V)),$(t)&&i(l.get(L)));break;case"set":$(t)&&i(l.get(V))}c.forEach((t=>{t.options.scheduler?t.options.scheduler(t):t()}))}const Z=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(I)),tt=st(),et=st(!1,!0),nt=st(!0),ot=st(!0,!0),rt={};function st(t=!1,e=!1){return function(n,o,r){if("__v_isReactive"===o)return!t;if("__v_isReadonly"===o)return t;if("__v_raw"===o&&r===(t?Ft:Pt).get(n))return n;const s=j(n);if(!t&&s&&O(rt,o))return Reflect.get(rt,o,r);const l=Reflect.get(n,o,r);if(I(o)?Z.has(o):"__proto__"===o||"__v_isRef"===o)return l;if(t||X(n,0,o),e)return l;if(Vt(l)){return!s||!T(o)?l.value:l}return M(l)?t?At(l):Mt(l):l}}["includes","indexOf","lastIndexOf"].forEach((t=>{const e=Array.prototype[t];rt[t]=function(...t){const n=zt(this);for(let e=0,r=this.length;e{const e=Array.prototype[t];rt[t]=function(...t){G();const n=e.apply(this,t);return Q(),n}}));function lt(t=!1){return function(e,n,o,r){const s=e[n];if(!t&&(o=zt(o),!j(e)&&Vt(s)&&!Vt(o)))return s.value=o,!0;const l=j(e)&&T(n)?Number(n)!0,deleteProperty:(t,e)=>!0},at=C({},ct,{get:et,set:lt(!0)});C({},it,{get:ot});const ut=t=>M(t)?Mt(t):t,ft=t=>M(t)?At(t):t,pt=t=>t,dt=t=>Reflect.getPrototypeOf(t);function ht(t,e,n=!1,o=!1){const r=zt(t=t.__v_raw),s=zt(e);e!==s&&!n&&X(r,0,e),!n&&X(r,0,s);const{has:l}=dt(r),c=n?ft:o?pt:ut;return l.call(r,e)?c(t.get(e)):l.call(r,s)?c(t.get(s)):void 0}function _t(t,e=!1){const n=this.__v_raw,o=zt(n),r=zt(t);return t!==r&&!e&&X(o,0,t),!e&&X(o,0,r),t===r?n.has(t):n.has(t)||n.has(r)}function vt(t,e=!1){return t=t.__v_raw,!e&&X(zt(t),0,V),Reflect.get(t,"size",t)}function gt(t){t=zt(t);const e=zt(this),n=dt(e).has.call(e,t);return e.add(t),n||Y(e,"add",t,t),this}function yt(t,e){e=zt(e);const n=zt(this),{has:o,get:r}=dt(n);let s=o.call(n,t);s||(t=zt(t),s=o.call(n,t));const l=r.call(n,t);return n.set(t,e),s?U(e,l)&&Y(n,"set",t,e):Y(n,"add",t,e),this}function bt(t){const e=zt(this),{has:n,get:o}=dt(e);let r=n.call(e,t);r||(t=zt(t),r=n.call(e,t)),o&&o.call(e,t);const s=e.delete(t);return r&&Y(e,"delete",t,void 0),s}function mt(){const t=zt(this),e=0!==t.size,n=t.clear();return e&&Y(t,"clear",void 0,void 0),n}function wt(t,e){return function(n,o){const r=this,s=r.__v_raw,l=zt(s),c=t?ft:e?pt:ut;return!t&&X(l,0,V),s.forEach(((t,e)=>n.call(o,c(t),c(e),r)))}}function kt(t,e,n){return function(...o){const r=this.__v_raw,s=zt(r),l=$(s),c="entries"===t||t===Symbol.iterator&&l,i="keys"===t&&l,a=r[t](...o),u=e?ft:n?pt:ut;return!e&&X(s,0,i?L:V),{next(){const{value:t,done:e}=a.next();return e?{value:t,done:e}:{value:c?[u(t[0]),u(t[1])]:u(t),done:e}},[Symbol.iterator](){return this}}}}function St(t){return function(...e){return"delete"!==t&&this}}const xt={get(t){return ht(this,t)},get size(){return vt(this)},has:_t,add:gt,set:yt,delete:bt,clear:mt,forEach:wt(!1,!1)},Rt={get(t){return ht(this,t,!1,!0)},get size(){return vt(this)},has:_t,add:gt,set:yt,delete:bt,clear:mt,forEach:wt(!1,!0)},Ct={get(t){return ht(this,t,!0)},get size(){return vt(this,!0)},has(t){return _t.call(this,t,!0)},add:St("add"),set:St("set"),delete:St("delete"),clear:St("clear"),forEach:wt(!0,!1)};function Et(t,e){const n=e?Rt:t?Ct:xt;return(e,o,r)=>"__v_isReactive"===o?!t:"__v_isReadonly"===o?t:"__v_raw"===o?e:Reflect.get(O(n,o)&&o in e?n:e,o,r)}["keys","values","entries",Symbol.iterator].forEach((t=>{xt[t]=kt(t,!1,!1),Ct[t]=kt(t,!0,!1),Rt[t]=kt(t,!1,!0)}));const Ot={get:Et(!1,!1)},jt={get:Et(!1,!0)},$t={get:Et(!0,!1)},Pt=new WeakMap,Ft=new WeakMap;function It(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>N(t).slice(8,-1))(t))}function Mt(t){return t&&t.__v_isReadonly?t:Nt(t,!1,ct,Ot)}function At(t){return Nt(t,!0,it,$t)}function Nt(t,e,n,o){if(!M(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const r=e?Ft:Pt,s=r.get(t);if(s)return s;const l=It(t);if(0===l)return t;const c=new Proxy(t,2===l?o:n);return r.set(t,c),c}function Tt(t){return Ut(t)?Tt(t.__v_raw):!(!t||!t.__v_isReactive)}function Ut(t){return!(!t||!t.__v_isReadonly)}function Dt(t){return Tt(t)||Ut(t)}function zt(t){return t&&zt(t.__v_raw)||t}const Bt=t=>M(t)?Mt(t):t;function Vt(t){return Boolean(t&&!0===t.__v_isRef)}function Lt(t){return function(t,e=!1){if(Vt(t))return t;return new Wt(t,e)}(t)}class Wt{constructor(t,e=!1){this._rawValue=t,this._shallow=e,this.__v_isRef=!0,this._value=e?t:Bt(t)}get value(){return X(zt(this),0,"value"),this._value}set value(t){U(zt(t),this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:Bt(t),Y(zt(this),"set","value",t))}}class Kt{constructor(t,e,n){this._setter=e,this._dirty=!0,this.__v_isRef=!0,this.effect=W(t,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,Y(zt(this),"set","value"))}}),this.__v_isReadonly=n}get value(){return this._dirty&&(this._value=this.effect(),this._dirty=!1),X(zt(this),0,"value"),this._value}set value(t){this._setter(t)}}function qt(t,e,n,o){let r;try{r=o?t(...o):t()}catch(s){Ht(s,e,n)}return r}function Jt(t,e,n,o){if(P(t)){const s=qt(t,e,n,o);return s&&(M(r=s)&&P(r.then)&&P(r.catch))&&s.catch((t=>{Ht(t,e,n)})),s}var r;const s=[];for(let l=0;lnull==t.id?1/0:t.id;function de(t){Qt=!1,Gt=!0,fe(t),Xt.sort(((t,e)=>pe(t)-pe(e)));try{for(Yt=0;Ytpe(t)-pe(e))),re=0;re_e+=t;const ge=(ye="um",(t,e=Je)=>function(t,e,n=Je,o=!1){if(n){const r=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;G(),He(n);const r=Jt(e,n,t,o);return He(null),Q(),r});return o?r.unshift(s):r.push(s),s}}(ye,t,e));var ye;const be={};function me(t,e,n){return we(t,e,n)}function we(t,e,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:l}=k,c=Je){let i,a,u=!1;if(Vt(t)?(i=()=>t.value,u=!!t._shallow):Tt(t)?(i=()=>t,o=!0):i=j(t)?()=>t.map((t=>Vt(t)?t.value:Tt(t)?Se(t):P(t)?qt(t,c,2):void 0)):P(t)?e?()=>qt(t,c,2):()=>{if(!c||!c.isUnmounted)return a&&a(),qt(t,c,3,[f])}:S,e&&o){const t=i;i=()=>Se(t())}const f=t=>{a=_.options.onStop=()=>{qt(t,c,4)}};let p=j(t)?[]:be;const d=()=>{if(_.active)if(e){const t=_();(o||u||U(t,p))&&(a&&a(),Jt(e,c,3,[t,p===be?void 0:p,f]),p=t)}else _()};let h;d.allowRecurse=!!e,h="sync"===r?d:"post"===r?()=>Ee(d,c&&c.suspense):()=>{!c||c.isMounted?function(t){ue(t,te,Zt,ee)}(d):d()};const _=W(i,{lazy:!0,onTrack:s,onTrigger:l,scheduler:h});return Ge(_,c),e?n?d():p=_():"post"===r?Ee(_,c&&c.suspense):_(),()=>{var t;(t=_).active&&(q(t),t.options.onStop&&t.options.onStop(),t.active=!1),c&&((t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)})(c.effects,_)}}function ke(t,e,n){const o=this.proxy;return we(F(t)?()=>o[t]:t.bind(o),e.bind(o),n,this)}function Se(t,e=new Set){if(!M(t)||e.has(t))return t;if(e.add(t),Vt(t))Se(t.value,e);else if(j(t))for(let n=0;n{Se(t,e)}));else for(const n in t)Se(t[n],e);return t}function xe(t){return P(t)?{setup:t,name:t.name}:t}function Re(t){P(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:l=!0,onError:c}=t;let i,a=null,u=0;const f=()=>{let t;return a||(t=a=e().catch((t=>{if(t=t instanceof Error?t:new Error(String(t)),c)return new Promise(((e,n)=>{c(t,(()=>e((u++,a=null,f()))),(()=>n(t)),u+1)}));throw t})).then((e=>t!==a&&a?a:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),i=e,e))))};return xe({__asyncLoader:f,name:"AsyncComponentWrapper",setup(){const t=Je;if(i)return()=>Ce(i,t);const e=e=>{a=null,Ht(e,t,13,!o)};if(l&&t.suspense)return f().then((e=>()=>Ce(e,t))).catch((t=>(e(t),()=>o?Ae(o,{error:t}):null)));const c=Lt(!1),u=Lt(),p=Lt(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=s&&setTimeout((()=>{if(!c.value&&!u.value){const t=new Error(`Async component timed out after ${s}ms.`);e(t),u.value=t}}),s),f().then((()=>{c.value=!0})).catch((t=>{e(t),u.value=t})),()=>c.value&&i?Ce(i,t):u.value&&o?Ae(o,{error:u.value}):n&&!p.value?Ae(n):void 0}})}function Ce(t,{vnode:{ref:e,props:n,children:o}}){const r=Ae(t,n,o);return r.ref=e,r}const Ee=function(t,e){e&&e.pendingBranch?j(t)?e.effects.push(...t):e.effects.push(t):ue(t,oe,ne,re)},Oe=Symbol(),je=Symbol(void 0),$e=Symbol(void 0),Pe=Symbol(void 0);function Fe(t){return!!t&&!0===t.__v_isVNode}const Ie=({key:t})=>null!=t?t:null,Me=({ref:t})=>null!=t?F(t)||Vt(t)||P(t)?{i:null,r:t}:t:null,Ae=function(t,e=null,n=null,o=0,r=null,s=!1){t&&t!==Oe||(t=Pe);if(Fe(t)){const o=Ne(t,e,!0);return n&&De(o,n),o}l=t,P(l)&&"__vccOpts"in l&&(t=t.__vccOpts);var l;if(e){(Dt(e)||"__vInternal"in e)&&(e=C({},e));let{class:t,style:n}=e;t&&!F(t)&&(e.class=w(t)),M(n)&&(Dt(n)&&!j(n)&&(n=C({},n)),e.style=g(n))}const c=F(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:M(t)?4:P(t)?2:0,i={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Ie(e),ref:e&&Me(e),scopeId:null,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};if(De(i,n),128&c){const{content:t,fallback:e}=function(t){const{shapeFlag:e,children:n}=t;let o,r;return 32&e?(o=he(n.default),r=he(n.fallback)):(o=he(n),r=Ue(null)),{content:o,fallback:r}}(i);i.ssContent=t,i.ssFallback=e}0;return i};function Ne(t,e,n=!1){const{props:o,ref:r,patchFlag:s}=t,l=e?ze(o||{},e):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&Ie(l),ref:e&&e.ref?n&&r?j(r)?r.concat(Me(e)):[r,Me(e)]:Me(e):r,scopeId:t.scopeId,children:t.children,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==je?-1===s?16:16|s:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ne(t.ssContent),ssFallback:t.ssFallback&&Ne(t.ssFallback),el:t.el,anchor:t.anchor}}function Te(t=" ",e=0){return Ae($e,null,t,e)}function Ue(t){return null==t||"boolean"==typeof t?Ae(Pe):j(t)?Ae(je,null,t):"object"==typeof t?null===t.el?t:Ne(t):Ae($e,null,String(t))}function De(t,e){let n=0;const{shapeFlag:o}=t;if(null==e)e=null;else if(j(e))n=16;else if("object"==typeof e){if(1&o||64&o){const n=e.default;return void(n&&(n._c&&ve(1),De(t,n()),n._c&&ve(-1)))}{n=32;const t=e._;t||"__vInternal"in e||(e._ctx=null)}}else P(e)?(e={default:e,_ctx:null},n=32):(e=String(e),64&o?(n=16,e=[Te(e)]):n=8);t.children=e,t.shapeFlag|=n}function ze(...t){const e=C({},t[0]);for(let n=1;n1)return n&&P(e)?e():e}}function Le(t,e,n){const o=n.appContext.config.optionMergeStrategies,{mixins:r,extends:s}=e;s&&Le(t,s,n),r&&r.forEach((e=>Le(t,e,n)));for(const l in e)o&&O(o,l)?t[l]=o[l](t[l],e[l],n.proxy,l):t[l]=e[l]}const We=t=>t&&(t.proxy?t.proxy:We(t.parent)),Ke=C(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>We(t.parent),$root:t=>t.root&&t.root.proxy,$emit:t=>t.emit,$options:t=>function(t){const e=t.type,{__merged:n,mixins:o,extends:r}=e;if(n)return n;const s=t.appContext.mixins;if(!s.length&&!o&&!r)return e;const l={};return s.forEach((e=>Le(l,e,t))),Le(l,e,t),e.__merged=l}(t),$forceUpdate:t=>()=>{return e=t.update,void(Xt.length&&Xt.includes(e,Gt&&e.allowRecurse?Yt+1:Yt)||e===ce||(Xt.push(e),ae()));var e},$nextTick:t=>ie.bind(t.proxy),$watch:t=>ke.bind(t)}),qe={get({_:t},e){const{ctx:n,setupState:o,data:r,props:s,accessCache:l,type:c,appContext:i}=t;if("__v_skip"===e)return!0;let a;if("$"!==e[0]){const c=l[e];if(void 0!==c)switch(c){case 0:return o[e];case 1:return r[e];case 3:return n[e];case 2:return s[e]}else{if(o!==k&&O(o,e))return l[e]=0,o[e];if(r!==k&&O(r,e))return l[e]=1,r[e];if((a=t.propsOptions[0])&&O(a,e))return l[e]=2,s[e];if(n!==k&&O(n,e))return l[e]=3,n[e];l[e]=4}}const u=Ke[e];let f,p;return u?("$attrs"===e&&X(t,0,e),u(t)):(f=c.__cssModules)&&(f=f[e])?f:n!==k&&O(n,e)?(l[e]=3,n[e]):(p=i.config.globalProperties,O(p,e)?p[e]:void 0)},set({_:t},e,n){const{data:o,setupState:r,ctx:s}=t;if(r!==k&&O(r,e))r[e]=n;else if(o!==k&&O(o,e))o[e]=n;else if(e in t.props)return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:o,appContext:r,propsOptions:s}},l){let c;return void 0!==n[l]||t!==k&&O(t,l)||e!==k&&O(e,l)||(c=s[0])&&O(c,l)||O(o,l)||O(Ke,l)||O(r.config.globalProperties,l)}};C({},qe,{get(t,e){if(e!==Symbol.unscopables)return qe.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!v(e)});let Je=null;const He=t=>{Je=t};function Ge(t,e=Je){e&&(e.effects||(e.effects=[])).push(t)}function Qe(t){const e=function(t){let e,n;return P(t)?(e=t,n=S):(e=t.get,n=t.set),new Kt(e,n,P(t)||!t.set)}(t);return Ge(e.effect),e}const Xe=Symbol("Schlechtenburg active block");function Ye(t){const e=Ve(Xe,Lt(null)),n=Qe((()=>e.value===t)),o=n=>{e.value=void 0!==n?n:t};return{activeBlockId:e,isActive:n,activate:o,requestActivation:()=>{e.value||o()}}}const Ze=Symbol("Schlechtenburg block library");function tn(){const t=Ve(p,Lt(u.Edit)),e=Ve(Ze,Mt({}));return{mode:t,customBlocks:e,getBlock:t=>e[t]}}const en=Symbol("Schlechtenburg block dimensions"),nn=Symbol("Schlechtenburg editor dimensions");function on(t,e){const n=Lt(null);Be(e,n);const o=()=>{if(!t.value)return;const e=t.value.getBoundingClientRect();n.value={width:e.width,height:e.height,left:t.value.offsetLeft,top:t.value.offsetTop}},r=new ResizeObserver(o),s=new MutationObserver(o);return me(t,(()=>{t.value&&(r.observe(t.value),s.observe(t.value,{attributes:!0,childList:!1,subtree:!1}))})),{triggerSizeCalculation:o,dimensions:n}}function rn(){return{editorDimensions:Ve(nn,Lt(null)),blockDimensions:Ve(en,Lt(null))}}const sn=Symbol("Schlechtenburg block tree"),ln=Symbol("Schlechtenburg block tree"),cn=Symbol("Schlechtenburg block tree");function an(){const t=Ve(sn,null),e=Ve(ln,(t=>{})),n=Ve(cn,(t=>{})),o=Mt({id:"",name:"",icon:"",children:[]});Be(ln,(t=>{o.children.find((e=>e.id===t.id))||(o.children=[...o.children,t])})),Be(cn,(({id:t})=>{o.children=o.children.filter((e=>e.id!==t))}));return ge((()=>{o.id&&n(o)})),{blockTree:t,register:t=>{if(!t.id)throw new Error(`Cannot register a block without an id: ${JSON.stringify(t)}`);o.id=t.id,o.name=t.name,e(o)}}}const un=xe({name:"sb-button",inheritAttrs:!1,setup:(e,n)=>()=>Ae("button",t(t({},n.attrs),{class:(n.attrs.class||"")+" sb-button"}),[n.slots.default()])});const fn=xe({name:"sb-context-menu",props:{onClose:{type:Function,default:()=>{}},onOpen:{type:Function,default:()=>{}}},setup(t,e){const n=Lt(!1),o=()=>{n.value=!0},r=()=>{n.value=!1},s=t=>{"Escape"===t.key&&r()},l=()=>{n.value?r():o()};return me(n,((t,e)=>{t!==e&&(t?setTimeout((()=>{document.body.addEventListener("click",r),document.body.addEventListener("keypress",s)})):(document.body.removeEventListener("click",r),document.body.removeEventListener("keypress",s)))})),()=>Ae("div",{class:"sb-context"},[e.slots.context({opened:n,toggle:l,close:r,open:o})||Ae(un,{onClick:l},{default:()=>[Te("Menu")]}),Ae("dialog",{class:"sb-context-menu",open:!!n.value||void 0,onClose:r,onClick:t=>{t.stopPropagation()}},[e.slots.default({opened:n,toggle:l,close:r,open:o})||null])])}});const pn=xe({name:"sb-main-menu",setup(){const{blockTree:t}=an(),{activate:e,activeBlockId:n}=Ye(),o=(t,r)=>Ae("li",{class:{"sb-tree-block-select__block":!0,"sb-tree-block-select__block_active":n.value===t.id}},[Ae("button",{class:"sb-tree-block-select__block-name",onClick:()=>{e(t.id),r()},onMouseEnter:()=>e(t.id)},[t.name]),t.children.length?Ae("ul",{class:"sb-tree-block-select__list"},[t.children.map((t=>o(t,r)))]):null]);return()=>t.value?Ae(fn,{class:"sb-tree-block-select"},{context:({toggle:t})=>Ae(un,{onClick:t},{default:()=>[Te("Tree")]}),default:({close:e})=>Ae("ul",{class:"sb-tree-block-select__list sb-tree-block-select__list_base"},[o(t.value,e)])}):""}});const dn=xe({name:"sb-main-menu",props:{block:{type:null,required:!0}},setup:(t,e)=>()=>Ae("div",{class:"sb-main-menu"},[Ae(pn,{block:t.block},null)])});const hn=xe({name:"sb-block-toolbar",props:{block:{type:null,required:!0}},setup:(t,e)=>()=>Ae("div",{class:"sb-block-toolbar"},null)});let _n;const vn={},gn=function(t,e){if(!e)return t();if(void 0===_n){const t=document.createElement("link").relList;_n=t&&t.supports&&t.supports("modulepreload")?"modulepreload":"preload"}return Promise.all(e.map((t=>{if(t in vn)return;vn[t]=!0;const e=t.endsWith(".css"),n=e?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${t}"]${n}`))return;const o=document.createElement("link");return o.rel=e?"stylesheet":_n,e||(o.as="script",o.crossOrigin=""),o.href=t,document.head.appendChild(o),e?new Promise(((t,e)=>{o.addEventListener("load",t),o.addEventListener("error",e)})):void 0}))).then((()=>t()))};var yn={name:"sb-missing-block",edit:Re((()=>gn((()=>__import__("./display.344ee7da.js")),["/schlechtenburg/assets/display.344ee7da.js","/schlechtenburg/assets/display.08a50fb3.css","/schlechtenburg/assets/vendor.9babb3f5.js"]))),display:Re((()=>gn((()=>__import__("./display.344ee7da.js")),["/schlechtenburg/assets/display.344ee7da.js","/schlechtenburg/assets/display.08a50fb3.css","/schlechtenburg/assets/vendor.9babb3f5.js"])))};const bn=xe({name:"sb-block",props:{block:{type:null,required:!0},sortable:{type:String,default:null},onUpdate:{type:Function,default:()=>{}},onPrependBlock:{type:Function,default:()=>{}},onAppendBlock:{type:Function,default:()=>{}},onRemoveSelf:{type:Function,default:()=>{}},onMoveBackward:{type:Function,default:()=>{}},onMoveForward:{type:Function,default:()=>{}}},setup(e,n){const o=Lt(null),{mode:r,getBlock:s}=tn(),{isActive:l,activate:c,isHighlighted:i}=Ye(e.block.id),a=Qe((()=>({"sb-block":!0,"sb-block_active":l.value}))),{triggerSizeCalculation:f}=on(o,en);me((()=>e.block.data),f);const{register:p}=an();p(e.block),me(e.block,(()=>{p(e.block)}));const d=n=>{e.onUpdate(t(t({},e.block),{data:t(t({},e.block.data),n)}))};return()=>{var t;const l=null==(t=s(e.block.name))?void 0:t[r.value];if(!l){const t=yn[r.value];return Ae(t,{name:e.block.name,blockId:e.block.id},null)}return r.value===u.Display?Ae(l,{data:e.block.data,blockId:e.block.id},null):Ae("div",{ref:o,class:a.value},[Ae("div",{class:"sb-block__edit-cover"},null),n.slots["context-toolbar"]?n.slots["context-toolbar"]():null,Ae(l,ze({data:e.block.data,blockId:e.block.id,onUpdate:d,onPrependBlock:e.onPrependBlock,onAppendBlock:e.onAppendBlock,onRemoveSelf:e.onRemoveSelf,onActivatePrevious:e.onActivatePrevious,onActivateNext:e.onActivateNext,onClick:t=>{t.stopPropagation(),c()}},n.attrs),null)])}}});const mn=xe({name:"schlechtenburg-main",model:d,props:{customBlocks:{type:Array,default:()=>[]},block:{type:Object,required:!0},onUpdate:{type:Function,default:()=>{}},mode:{type:String,validator:t=>Object.values(u).includes(t),default:u.Edit}},setup(e){const n=Lt(null);on(n,nn);const o=Lt(e.mode);Be(p,o);const r=Lt(null);Be(Xe,r);const s=Lt(null);Be(sn,s),Be(ln,(t=>{s.value=t})),Be(cn,(()=>{s.value=null}));const l=Nt(t({},e.customBlocks.reduce(((e,n)=>t(t({},e),{[n.name]:n})),{})),!1,at,jt);return Be(Ze,l),()=>Ae("div",{class:"sb-main",ref:n},[o.value===u.Edit?Ae(je,null,[Ae(dn,{block:e.block},null),Ae(hn,{block:e.block},null)]):null,Ae(bn,{block:e.block,onUpdate:e.onUpdate},null)])}});const wn=xe({name:"sb-modal",props:{open:{type:Boolean,default:!1},onClose:{type:Function,default:()=>{}}},setup(t,e){const n=Qe((()=>({"sb-modal":!0,"sb-modal_open":t.open})));return()=>Ae("div",{class:n.value},[Ae("div",{class:"sb-modal__overlay",onClick:e=>{e.stopPropagation(),t.onClose()}},[Ae("div",{class:"sb-modal__content"},[e.slots.default()])])])}});const kn=xe({name:"sb-block-picker",props:{},setup(t,e){const n=Lt(!1),{customBlocks:o}=tn(),r=Qe((()=>Object.keys(o).map((t=>o[t])))),s=t=>()=>{n.value=!1,e.emit("picked-block",{name:t.name,id:""+ +new Date,data:t.getDefaultData()})};return()=>Ae("div",{class:"sb-block-picker"},[Ae(un,{class:"sb-block-picker__add-button",type:"button",onClick:t=>{n.value=!0,t.stopPropagation()}},{default:()=>[Te("+")]}),Ae(wn,{open:n.value,onClick:t=>t.stopPropagation(),onClose:()=>{n.value=!1}},{default:()=>[...r.value.map((t=>Ae(un,{type:"button",onClick:s(t)},{default:()=>[t.name]})))]})])}});var Sn="object"==typeof global&&global&&global.Object===Object&&global,xn="object"==typeof self&&self&&self.Object===Object&&self,Rn=Sn||xn||Function("return this")(),Cn=Rn.Symbol,En=Object.prototype,On=En.hasOwnProperty,jn=En.toString,$n=Cn?Cn.toStringTag:void 0;var Pn=Object.prototype.toString;var Fn=Cn?Cn.toStringTag:void 0;function In(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Fn&&Fn in Object(t)?function(t){var e=On.call(t,$n),n=t[$n];try{t[$n]=void 0;var o=!0}catch(s){}var r=jn.call(t);return o&&(e?t[$n]=n:delete t[$n]),r}(t):function(t){return Pn.call(t)}(t)}function Mn(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var An=/^\s+|\s+$/g,Nn=/^[-+]0x[0-9a-f]+$/i,Tn=/^0b[01]+$/i,Un=/^0o[0-7]+$/i,Dn=parseInt;function zn(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&"[object Symbol]"==In(t)}(t))return NaN;if(Mn(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Mn(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(An,"");var n=Tn.test(t);return n||Un.test(t)?Dn(t.slice(2),n?2:8):Nn.test(t)?NaN:+t}var Bn=function(){return Rn.Date.now()},Vn=Math.max,Ln=Math.min;function Wn(t,e,n){var o,r,s,l,c,i,a=0,u=!1,f=!1,p=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function d(e){var n=o,s=r;return o=r=void 0,a=e,l=t.apply(s,n)}function h(t){return a=t,c=setTimeout(v,e),u?d(t):l}function _(t){var n=t-i;return void 0===i||n>=e||n<0||f&&t-a>=s}function v(){var t=Bn();if(_(t))return g(t);c=setTimeout(v,function(t){var n=e-(t-i);return f?Ln(n,s-(t-a)):n}(t))}function g(t){return c=void 0,p&&o?d(t):(o=r=void 0,l)}function y(){var t=Bn(),n=_(t);if(o=arguments,r=this,i=t,n){if(void 0===c)return h(i);if(f)return clearTimeout(c),c=setTimeout(v,e),d(i)}return void 0===c&&(c=setTimeout(v,e)),l}return e=zn(e)||0,Mn(n)&&(u=!!n.leading,s=(f="maxWait"in n)?Vn(zn(n.maxWait)||0,e):s,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==c&&clearTimeout(c),a=0,o=i=r=c=void 0},y.flush=function(){return void 0===c?l:g(Bn())},y}const Kn=xe({name:"sb-block-ordering",props:{sortable:{type:String,default:null},onRemove:{type:Function,default:()=>{}},onMoveUp:{type:Function,default:()=>{}},onMoveDown:{type:Function,default:()=>{}}},setup(t){const e=Mt({top:"",right:""}),n=Qe((()=>({"sb-block-ordering":!0,[`sb-block-ordering_${t.sortable}`]:!!t.sortable}))),{editorDimensions:o,blockDimensions:r}=rn(),s=Wn((()=>{if(!o.value||!r.value)return;const t=o.value.width-r.value.left;e.top=`${r.value.top}px`,e.right=`${t}px`}));return me(o,s),me(r,s),me((()=>t.sortable),s),()=>Ae("div",{class:n.value,style:e,onClick:t=>t.stopPropagation()},[Ae(un,{onClick:t.onMoveUp},{default:()=>["vertical"===t.sortable?"↑":"←"]}),Ae(un,{onClick:t.onRemove},{default:()=>[Te("x")]}),Ae(un,{onClick:t.onMoveDown},{default:()=>["vertical"===t.sortable?"↓":"→"]})])}});const qn=xe({name:"sb-block-placeholder",setup:(t,e)=>()=>Ae("div",{class:"sb-block-placeholder"},[Ae(kn,{onPickedBlock:t=>e.emit("insert-block",t)},null)])});const Jn=xe({name:"sb-toolbar",setup(t,e){const n=Mt({bottom:"",left:"",maxWidth:""}),{editorDimensions:o,blockDimensions:r}=rn(),s=Wn((()=>{if(!o.value||!r.value)return;const t=o.value.height-r.value.top;n.bottom=`${t}px`,n.left=`${r.value.left}px`,n.maxWidth=`${r.value.width}px`}));return me(o,s),me(r,s),()=>{var t,o;return Ae("div",{class:"sb-toolbar",style:n,onClick:t=>t.stopPropagation()},[null==(o=null==(t=e.slots)?void 0:t.default)?void 0:o.call(t)])}}});const Hn=xe({name:"sb-select",inheritAttrs:!1,setup:(t,e)=>()=>Ae("div",{class:"sb-select"},[Ae("select",ze({class:"sb-select__input"},e.attrs),[e.slots.default()])])});function Gn(t,e){const n=Object.create(null),o=t.split(",");for(let r=0;r!!n[t.toLowerCase()]:t=>!!n[t]}const Qn=Gn("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl");function Xn(t){if(ao(t)){const e={};for(let n=0;n{if(t){const n=t.split(Zn);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function eo(t){let e="";if(po(t))e=t;else if(ao(t))for(let n=0;n{},ro=/^on[^a-z]/,so=t=>ro.test(t),lo=Object.assign,co=Object.prototype.hasOwnProperty,io=(t,e)=>co.call(t,e),ao=Array.isArray,uo=t=>"[object Map]"===go(t),fo=t=>"function"==typeof t,po=t=>"string"==typeof t,ho=t=>"symbol"==typeof t,_o=t=>null!==t&&"object"==typeof t,vo=Object.prototype.toString,go=t=>vo.call(t),yo=t=>po(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,bo=(t,e)=>t!==e&&(t==t||e==e),mo=new WeakMap,wo=[];let ko;const So=Symbol(""),xo=Symbol("");function Ro(t,e=no){(function(t){return t&&!0===t._isEffect})(t)&&(t=t.raw);const n=function(t,e){const n=function(){if(!n.active)return e.scheduler?void 0:t();if(!wo.includes(n)){Eo(n);try{return jo.push(Oo),Oo=!0,wo.push(n),ko=n,t()}finally{wo.pop(),$o(),ko=wo[wo.length-1]}}};return n.id=Co++,n.allowRecurse=!!e.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=t,n.deps=[],n.options=e,n}(t,e);return e.lazy||n(),n}let Co=0;function Eo(t){const{deps:e}=t;if(e.length){for(let n=0;n{t&&t.forEach((t=>{(t!==ko||t.allowRecurse)&&c.add(t)}))};if("clear"===e)l.forEach(i);else if("length"===n&&ao(t))l.forEach(((t,e)=>{("length"===e||e>=o)&&i(t)}));else switch(void 0!==n&&i(l.get(n)),e){case"add":ao(t)?yo(n)&&i(l.get("length")):(i(l.get(So)),uo(t)&&i(l.get(xo)));break;case"delete":ao(t)||(i(l.get(So)),uo(t)&&i(l.get(xo)));break;case"set":uo(t)&&i(l.get(So))}c.forEach((t=>{t.options.scheduler?t.options.scheduler(t):t()}))}const Io=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(ho)),Mo=Do(),Ao=Do(!1,!0),No=Do(!0),To=Do(!0,!0),Uo={};function Do(t=!1,e=!1){return function(n,o,r){if("__v_isReactive"===o)return!t;if("__v_isReadonly"===o)return t;if("__v_raw"===o&&r===(t?ur:ar).get(n))return n;const s=ao(n);if(!t&&s&&io(Uo,o))return Reflect.get(Uo,o,r);const l=Reflect.get(n,o,r);if(ho(o)?Io.has(o):"__proto__"===o||"__v_isRef"===o)return l;if(t||Po(n,0,o),e)return l;if(mr(l)){return!s||!yo(o)?l.value:l}return _o(l)?t?dr(l):pr(l):l}}["includes","indexOf","lastIndexOf"].forEach((t=>{const e=Array.prototype[t];Uo[t]=function(...t){const n=yr(this);for(let e=0,r=this.length;e{const e=Array.prototype[t];Uo[t]=function(...t){jo.push(Oo),Oo=!1;const n=e.apply(this,t);return $o(),n}}));function zo(t=!1){return function(e,n,o,r){const s=e[n];if(!t&&(o=yr(o),!ao(e)&&mr(s)&&!mr(o)))return s.value=o,!0;const l=ao(e)&&yo(n)?Number(n)!0,deleteProperty:(t,e)=>!0};lo({},Bo,{get:Ao,set:zo(!0)}),lo({},Vo,{get:To});const Lo=t=>_o(t)?pr(t):t,Wo=t=>_o(t)?dr(t):t,Ko=t=>t,qo=t=>Reflect.getPrototypeOf(t);function Jo(t,e,n=!1,o=!1){const r=yr(t=t.__v_raw),s=yr(e);e!==s&&!n&&Po(r,0,e),!n&&Po(r,0,s);const{has:l}=qo(r),c=n?Wo:o?Ko:Lo;return l.call(r,e)?c(t.get(e)):l.call(r,s)?c(t.get(s)):void 0}function Ho(t,e=!1){const n=this.__v_raw,o=yr(n),r=yr(t);return t!==r&&!e&&Po(o,0,t),!e&&Po(o,0,r),t===r?n.has(t):n.has(t)||n.has(r)}function Go(t,e=!1){return t=t.__v_raw,!e&&Po(yr(t),0,So),Reflect.get(t,"size",t)}function Qo(t){t=yr(t);const e=yr(this),n=qo(e).has.call(e,t);return e.add(t),n||Fo(e,"add",t,t),this}function Xo(t,e){e=yr(e);const n=yr(this),{has:o,get:r}=qo(n);let s=o.call(n,t);s||(t=yr(t),s=o.call(n,t));const l=r.call(n,t);return n.set(t,e),s?bo(e,l)&&Fo(n,"set",t,e):Fo(n,"add",t,e),this}function Yo(t){const e=yr(this),{has:n,get:o}=qo(e);let r=n.call(e,t);r||(t=yr(t),r=n.call(e,t)),o&&o.call(e,t);const s=e.delete(t);return r&&Fo(e,"delete",t,void 0),s}function Zo(){const t=yr(this),e=0!==t.size,n=t.clear();return e&&Fo(t,"clear",void 0,void 0),n}function tr(t,e){return function(n,o){const r=this,s=r.__v_raw,l=yr(s),c=t?Wo:e?Ko:Lo;return!t&&Po(l,0,So),s.forEach(((t,e)=>n.call(o,c(t),c(e),r)))}}function er(t,e,n){return function(...o){const r=this.__v_raw,s=yr(r),l=uo(s),c="entries"===t||t===Symbol.iterator&&l,i="keys"===t&&l,a=r[t](...o),u=e?Wo:n?Ko:Lo;return!e&&Po(s,0,i?xo:So),{next(){const{value:t,done:e}=a.next();return e?{value:t,done:e}:{value:c?[u(t[0]),u(t[1])]:u(t),done:e}},[Symbol.iterator](){return this}}}}function nr(t){return function(...e){return"delete"!==t&&this}}const or={get(t){return Jo(this,t)},get size(){return Go(this)},has:Ho,add:Qo,set:Xo,delete:Yo,clear:Zo,forEach:tr(!1,!1)},rr={get(t){return Jo(this,t,!1,!0)},get size(){return Go(this)},has:Ho,add:Qo,set:Xo,delete:Yo,clear:Zo,forEach:tr(!1,!0)},sr={get(t){return Jo(this,t,!0)},get size(){return Go(this,!0)},has(t){return Ho.call(this,t,!0)},add:nr("add"),set:nr("set"),delete:nr("delete"),clear:nr("clear"),forEach:tr(!0,!1)};function lr(t,e){const n=e?rr:t?sr:or;return(e,o,r)=>"__v_isReactive"===o?!t:"__v_isReadonly"===o?t:"__v_raw"===o?e:Reflect.get(io(n,o)&&o in e?n:e,o,r)}["keys","values","entries",Symbol.iterator].forEach((t=>{or[t]=er(t,!1,!1),sr[t]=er(t,!0,!1),rr[t]=er(t,!1,!0)}));const cr={get:lr(!1,!1)},ir={get:lr(!0,!1)},ar=new WeakMap,ur=new WeakMap;function fr(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>go(t).slice(8,-1))(t))}function pr(t){return t&&t.__v_isReadonly?t:hr(t,!1,Bo,cr)}function dr(t){return hr(t,!0,Vo,ir)}function hr(t,e,n,o){if(!_o(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const r=e?ur:ar,s=r.get(t);if(s)return s;const l=fr(t);if(0===l)return t;const c=new Proxy(t,2===l?o:n);return r.set(t,c),c}function _r(t){return vr(t)?_r(t.__v_raw):!(!t||!t.__v_isReactive)}function vr(t){return!(!t||!t.__v_isReadonly)}function gr(t){return _r(t)||vr(t)}function yr(t){return t&&yr(t.__v_raw)||t}const br=t=>_o(t)?pr(t):t;function mr(t){return Boolean(t&&!0===t.__v_isRef)}function wr(t){return function(t,e=!1){if(mr(t))return t;return new kr(t,e)}(t)}class kr{constructor(t,e=!1){this._rawValue=t,this._shallow=e,this.__v_isRef=!0,this._value=e?t:br(t)}get value(){return Po(yr(this),0,"value"),this._value}set value(t){bo(yr(t),this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:br(t),Fo(yr(this),"set","value",t))}}class Sr{constructor(t,e,n){this._setter=e,this._dirty=!0,this.__v_isRef=!0,this.effect=Ro(t,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,Fo(yr(this),"set","value"))}}),this.__v_isReadonly=n}get value(){return this._dirty&&(this._value=this.effect(),this._dirty=!1),Po(yr(this),0,"value"),this._value}set value(t){this._setter(t)}}function xr(t,e,n,o){let r;try{r=o?t(...o):t()}catch(s){Cr(s,e,n)}return r}function Rr(t,e,n,o){if(fo(t)){const s=xr(t,e,n,o);return s&&(_o(r=s)&&fo(r.then)&&fo(r.catch))&&s.catch((t=>{Cr(t,e,n)})),s}var r;const s=[];for(let l=0;lnull==t.id?1/0:t.id;function Kr(t){Or=!1,Er=!0,Lr(t),jr.sort(((t,e)=>Wr(t)-Wr(e)));try{for($r=0;$rWr(t)-Wr(e))),Nr=0;NrJr+=t;const Gr={};function Qr(t,e,n){return Xr(t,e,n)}function Xr(t,e,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:l}=no,c=ws){let i,a,u=!1;if(mr(t)?(i=()=>t.value,u=!!t._shallow):_r(t)?(i=()=>t,o=!0):i=ao(t)?()=>t.map((t=>mr(t)?t.value:_r(t)?Zr(t):fo(t)?xr(t,c,2):void 0)):fo(t)?e?()=>xr(t,c,2):()=>{if(!c||!c.isUnmounted)return a&&a(),xr(t,c,3,[f])}:oo,e&&o){const t=i;i=()=>Zr(t())}const f=t=>{a=_.options.onStop=()=>{xr(t,c,4)}};let p=ao(t)?[]:Gr;const d=()=>{if(_.active)if(e){const t=_();(o||u||bo(t,p))&&(a&&a(),Rr(e,c,3,[t,p===Gr?void 0:p,f]),p=t)}else _()};let h;d.allowRecurse=!!e,h="sync"===r?d:"post"===r?()=>os(d,c&&c.suspense):()=>{!c||c.isMounted?function(t){Vr(t,Fr,Pr,Ir)}(d):d()};const _=Ro(i,{lazy:!0,onTrack:s,onTrigger:l,scheduler:h});return ks(_,c),e?n?d():p=_():"post"===r?os(_,c&&c.suspense):_(),()=>{var t;(t=_).active&&(Eo(t),t.options.onStop&&t.options.onStop(),t.active=!1),c&&((t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)})(c.effects,_)}}function Yr(t,e,n){const o=this.proxy;return Xr(po(t)?()=>o[t]:t.bind(o),e.bind(o),n,this)}function Zr(t,e=new Set){if(!_o(t)||e.has(t))return t;if(e.add(t),mr(t))Zr(t.value,e);else if(ao(t))for(let n=0;n{Zr(t,e)}));else for(const n in t)Zr(t[n],e);return t}function ts(t){return fo(t)?{setup:t,name:t.name}:t}function es(t){fo(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:l=!0,onError:c}=t;let i,a=null,u=0;const f=()=>{let t;return a||(t=a=e().catch((t=>{if(t=t instanceof Error?t:new Error(String(t)),c)return new Promise(((e,n)=>{c(t,(()=>e((u++,a=null,f()))),(()=>n(t)),u+1)}));throw t})).then((e=>t!==a&&a?a:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),i=e,e))))};return ts({__asyncLoader:f,name:"AsyncComponentWrapper",setup(){const t=ws;if(i)return()=>ns(i,t);const e=e=>{a=null,Cr(e,t,13,!o)};if(l&&t.suspense)return f().then((e=>()=>ns(e,t))).catch((t=>(e(t),()=>o?fs(o,{error:t}):null)));const c=wr(!1),u=wr(),p=wr(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=s&&setTimeout((()=>{if(!c.value&&!u.value){const t=new Error(`Async component timed out after ${s}ms.`);e(t),u.value=t}}),s),f().then((()=>{c.value=!0})).catch((t=>{e(t),u.value=t})),()=>c.value&&i?ns(i,t):u.value&&o?fs(o,{error:u.value}):n&&!p.value?fs(n):void 0}})}function ns(t,{vnode:{ref:e,props:n,children:o}}){const r=fs(t,n,o);return r.ref=e,r}const os=function(t,e){e&&e.pendingBranch?ao(t)?e.effects.push(...t):e.effects.push(t):Vr(t,Ar,Mr,Nr)},rs=Symbol(),ss=Symbol(void 0),ls=Symbol(void 0),cs=Symbol(void 0);function is(t){return!!t&&!0===t.__v_isVNode}const as=({key:t})=>null!=t?t:null,us=({ref:t})=>null!=t?po(t)||mr(t)||fo(t)?{i:null,r:t}:t:null,fs=function(t,e=null,n=null,o=0,r=null,s=!1){t&&t!==rs||(t=cs);if(is(t)){const o=ps(t,e,!0);return n&&_s(o,n),o}l=t,fo(l)&&"__vccOpts"in l&&(t=t.__vccOpts);var l;if(e){(gr(e)||"__vInternal"in e)&&(e=lo({},e));let{class:t,style:n}=e;t&&!po(t)&&(e.class=eo(t)),_o(n)&&(gr(n)&&!ao(n)&&(n=lo({},n)),e.style=Xn(n))}const c=po(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:_o(t)?4:fo(t)?2:0,i={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&as(e),ref:e&&us(e),scopeId:null,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};if(_s(i,n),128&c){const{content:t,fallback:e}=function(t){const{shapeFlag:e,children:n}=t;let o,r;return 32&e?(o=qr(n.default),r=qr(n.fallback)):(o=qr(n),r=hs(null)),{content:o,fallback:r}}(i);i.ssContent=t,i.ssFallback=e}0;return i};function ps(t,e,n=!1){const{props:o,ref:r,patchFlag:s}=t,l=e?vs(o||{},e):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&as(l),ref:e&&e.ref?n&&r?ao(r)?r.concat(us(e)):[r,us(e)]:us(e):r,scopeId:t.scopeId,children:t.children,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ss?-1===s?16:16|s:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ps(t.ssContent),ssFallback:t.ssFallback&&ps(t.ssFallback),el:t.el,anchor:t.anchor}}function ds(t=" ",e=0){return fs(ls,null,t,e)}function hs(t){return null==t||"boolean"==typeof t?fs(cs):ao(t)?fs(ss,null,t):"object"==typeof t?null===t.el?t:ps(t):fs(ls,null,String(t))}function _s(t,e){let n=0;const{shapeFlag:o}=t;if(null==e)e=null;else if(ao(e))n=16;else if("object"==typeof e){if(1&o||64&o){const n=e.default;return void(n&&(n._c&&Hr(1),_s(t,n()),n._c&&Hr(-1)))}{n=32;const t=e._;t||"__vInternal"in e||(e._ctx=null)}}else fo(e)?(e={default:e,_ctx:null},n=32):(e=String(e),64&o?(n=16,e=[ds(e)]):n=8);t.children=e,t.shapeFlag|=n}function vs(...t){const e=lo({},t[0]);for(let n=1;ngs(t,e,n)));for(const l in e)o&&io(o,l)?t[l]=o[l](t[l],e[l],n.proxy,l):t[l]=e[l]}const ys=t=>t&&(t.proxy?t.proxy:ys(t.parent)),bs=lo(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>ys(t.parent),$root:t=>t.root&&t.root.proxy,$emit:t=>t.emit,$options:t=>function(t){const e=t.type,{__merged:n,mixins:o,extends:r}=e;if(n)return n;const s=t.appContext.mixins;if(!s.length&&!o&&!r)return e;const l={};return s.forEach((e=>gs(l,e,t))),gs(l,e,t),e.__merged=l}(t),$forceUpdate:t=>()=>{return e=t.update,void(jr.length&&jr.includes(e,Er&&e.allowRecurse?$r+1:$r)||e===Dr||(jr.push(e),Br()));var e},$nextTick:t=>zr.bind(t.proxy),$watch:t=>Yr.bind(t)}),ms={get({_:t},e){const{ctx:n,setupState:o,data:r,props:s,accessCache:l,type:c,appContext:i}=t;if("__v_skip"===e)return!0;let a;if("$"!==e[0]){const c=l[e];if(void 0!==c)switch(c){case 0:return o[e];case 1:return r[e];case 3:return n[e];case 2:return s[e]}else{if(o!==no&&io(o,e))return l[e]=0,o[e];if(r!==no&&io(r,e))return l[e]=1,r[e];if((a=t.propsOptions[0])&&io(a,e))return l[e]=2,s[e];if(n!==no&&io(n,e))return l[e]=3,n[e];l[e]=4}}const u=bs[e];let f,p;return u?("$attrs"===e&&Po(t,0,e),u(t)):(f=c.__cssModules)&&(f=f[e])?f:n!==no&&io(n,e)?(l[e]=3,n[e]):(p=i.config.globalProperties,io(p,e)?p[e]:void 0)},set({_:t},e,n){const{data:o,setupState:r,ctx:s}=t;if(r!==no&&io(r,e))r[e]=n;else if(o!==no&&io(o,e))o[e]=n;else if(e in t.props)return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:o,appContext:r,propsOptions:s}},l){let c;return void 0!==n[l]||t!==no&&io(t,l)||e!==no&&io(e,l)||(c=s[0])&&io(c,l)||io(o,l)||io(bs,l)||io(r.config.globalProperties,l)}};lo({},ms,{get(t,e){if(e!==Symbol.unscopables)return ms.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!Qn(e)});let ws=null;function ks(t,e=ws){e&&(e.effects||(e.effects=[])).push(t)}function Ss(t){const e=function(t){let e,n;return fo(t)?(e=t,n=oo):(e=t.get,n=t.set),new Sr(e,n,fo(t)||!t.set)}(t);return ks(e.effect),e}const xs=()=>({orientation:"vertical",children:[]});var Rs={name:"sb-layout",getDefaultData:xs,edit:es((()=>gn((()=>__import__("./edit.772205fb.js")),["/schlechtenburg/assets/edit.772205fb.js","/schlechtenburg/assets/style.b876754e.css","/schlechtenburg/assets/vendor.9babb3f5.js"]))),display:es((()=>gn((()=>__import__("./display.57d7b574.js")),["/schlechtenburg/assets/display.57d7b574.js","/schlechtenburg/assets/style.b876754e.css","/schlechtenburg/assets/vendor.9babb3f5.js"])))};var Cs={name:"sb-heading",getDefaultData:()=>({}),edit:e((()=>gn((()=>__import__("./edit.bd5075df.js")),void 0))),display:e((()=>gn((()=>__import__("./edit.bd5075df.js")),void 0)))};function Es(t,e){const n=Object.create(null),o=t.split(",");for(let r=0;r!!n[t.toLowerCase()]:t=>!!n[t]}const Os=Es("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl");function js(t){if(Bs(t)){const e={};for(let n=0;n{if(t){const n=t.split(Ps);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function Is(t){let e="";if(Ws(t))e=t;else if(Bs(t))for(let n=0;n{},Ns=/^on[^a-z]/,Ts=t=>Ns.test(t),Us=Object.assign,Ds=Object.prototype.hasOwnProperty,zs=(t,e)=>Ds.call(t,e),Bs=Array.isArray,Vs=t=>"[object Map]"===Hs(t),Ls=t=>"function"==typeof t,Ws=t=>"string"==typeof t,Ks=t=>"symbol"==typeof t,qs=t=>null!==t&&"object"==typeof t,Js=Object.prototype.toString,Hs=t=>Js.call(t),Gs=t=>Ws(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,Qs=(t,e)=>t!==e&&(t==t||e==e),Xs=new WeakMap,Ys=[];let Zs;const tl=Symbol(""),el=Symbol("");function nl(t,e=Ms){(function(t){return t&&!0===t._isEffect})(t)&&(t=t.raw);const n=function(t,e){const n=function(){if(!n.active)return e.scheduler?void 0:t();if(!Ys.includes(n)){rl(n);try{return ll.push(sl),sl=!0,Ys.push(n),Zs=n,t()}finally{Ys.pop(),il(),Zs=Ys[Ys.length-1]}}};return n.id=ol++,n.allowRecurse=!!e.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=t,n.deps=[],n.options=e,n}(t,e);return e.lazy||n(),n}let ol=0;function rl(t){const{deps:e}=t;if(e.length){for(let n=0;n{t&&t.forEach((t=>{(t!==Zs||t.allowRecurse)&&c.add(t)}))};if("clear"===e)l.forEach(i);else if("length"===n&&Bs(t))l.forEach(((t,e)=>{("length"===e||e>=o)&&i(t)}));else switch(void 0!==n&&i(l.get(n)),e){case"add":Bs(t)?Gs(n)&&i(l.get("length")):(i(l.get(tl)),Vs(t)&&i(l.get(el)));break;case"delete":Bs(t)||(i(l.get(tl)),Vs(t)&&i(l.get(el)));break;case"set":Vs(t)&&i(l.get(tl))}c.forEach((t=>{t.options.scheduler?t.options.scheduler(t):t()}))}const fl=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(Ks)),pl=gl(),dl=gl(!1,!0),hl=gl(!0),_l=gl(!0,!0),vl={};function gl(t=!1,e=!1){return function(n,o,r){if("__v_isReactive"===o)return!t;if("__v_isReadonly"===o)return t;if("__v_raw"===o&&r===(t?Vl:Bl).get(n))return n;const s=Bs(n);if(!t&&s&&zs(vl,o))return Reflect.get(vl,o,r);const l=Reflect.get(n,o,r);if(Ks(o)?fl.has(o):"__proto__"===o||"__v_isRef"===o)return l;if(t||al(n,0,o),e)return l;if(Yl(l)){return!s||!Gs(o)?l.value:l}return qs(l)?t?Kl(l):Wl(l):l}}["includes","indexOf","lastIndexOf"].forEach((t=>{const e=Array.prototype[t];vl[t]=function(...t){const n=Ql(this);for(let e=0,r=this.length;e{const e=Array.prototype[t];vl[t]=function(...t){cl();const n=e.apply(this,t);return il(),n}}));function yl(t=!1){return function(e,n,o,r){const s=e[n];if(!t&&(o=Ql(o),!Bs(e)&&Yl(s)&&!Yl(o)))return s.value=o,!0;const l=Bs(e)&&Gs(n)?Number(n)!0,deleteProperty:(t,e)=>!0};Us({},bl,{get:dl,set:yl(!0)}),Us({},ml,{get:_l});const wl=t=>qs(t)?Wl(t):t,kl=t=>qs(t)?Kl(t):t,Sl=t=>t,xl=t=>Reflect.getPrototypeOf(t);function Rl(t,e,n=!1,o=!1){const r=Ql(t=t.__v_raw),s=Ql(e);e!==s&&!n&&al(r,0,e),!n&&al(r,0,s);const{has:l}=xl(r),c=n?kl:o?Sl:wl;return l.call(r,e)?c(t.get(e)):l.call(r,s)?c(t.get(s)):void 0}function Cl(t,e=!1){const n=this.__v_raw,o=Ql(n),r=Ql(t);return t!==r&&!e&&al(o,0,t),!e&&al(o,0,r),t===r?n.has(t):n.has(t)||n.has(r)}function El(t,e=!1){return t=t.__v_raw,!e&&al(Ql(t),0,tl),Reflect.get(t,"size",t)}function Ol(t){t=Ql(t);const e=Ql(this),n=xl(e).has.call(e,t);return e.add(t),n||ul(e,"add",t,t),this}function jl(t,e){e=Ql(e);const n=Ql(this),{has:o,get:r}=xl(n);let s=o.call(n,t);s||(t=Ql(t),s=o.call(n,t));const l=r.call(n,t);return n.set(t,e),s?Qs(e,l)&&ul(n,"set",t,e):ul(n,"add",t,e),this}function $l(t){const e=Ql(this),{has:n,get:o}=xl(e);let r=n.call(e,t);r||(t=Ql(t),r=n.call(e,t)),o&&o.call(e,t);const s=e.delete(t);return r&&ul(e,"delete",t,void 0),s}function Pl(){const t=Ql(this),e=0!==t.size,n=t.clear();return e&&ul(t,"clear",void 0,void 0),n}function Fl(t,e){return function(n,o){const r=this,s=r.__v_raw,l=Ql(s),c=t?kl:e?Sl:wl;return!t&&al(l,0,tl),s.forEach(((t,e)=>n.call(o,c(t),c(e),r)))}}function Il(t,e,n){return function(...o){const r=this.__v_raw,s=Ql(r),l=Vs(s),c="entries"===t||t===Symbol.iterator&&l,i="keys"===t&&l,a=r[t](...o),u=e?kl:n?Sl:wl;return!e&&al(s,0,i?el:tl),{next(){const{value:t,done:e}=a.next();return e?{value:t,done:e}:{value:c?[u(t[0]),u(t[1])]:u(t),done:e}},[Symbol.iterator](){return this}}}}function Ml(t){return function(...e){return"delete"!==t&&this}}const Al={get(t){return Rl(this,t)},get size(){return El(this)},has:Cl,add:Ol,set:jl,delete:$l,clear:Pl,forEach:Fl(!1,!1)},Nl={get(t){return Rl(this,t,!1,!0)},get size(){return El(this)},has:Cl,add:Ol,set:jl,delete:$l,clear:Pl,forEach:Fl(!1,!0)},Tl={get(t){return Rl(this,t,!0)},get size(){return El(this,!0)},has(t){return Cl.call(this,t,!0)},add:Ml("add"),set:Ml("set"),delete:Ml("delete"),clear:Ml("clear"),forEach:Fl(!0,!1)};function Ul(t,e){const n=e?Nl:t?Tl:Al;return(e,o,r)=>"__v_isReactive"===o?!t:"__v_isReadonly"===o?t:"__v_raw"===o?e:Reflect.get(zs(n,o)&&o in e?n:e,o,r)}["keys","values","entries",Symbol.iterator].forEach((t=>{Al[t]=Il(t,!1,!1),Tl[t]=Il(t,!0,!1),Nl[t]=Il(t,!1,!0)}));const Dl={get:Ul(!1,!1)},zl={get:Ul(!0,!1)},Bl=new WeakMap,Vl=new WeakMap;function Ll(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>Hs(t).slice(8,-1))(t))}function Wl(t){return t&&t.__v_isReadonly?t:ql(t,!1,bl,Dl)}function Kl(t){return ql(t,!0,ml,zl)}function ql(t,e,n,o){if(!qs(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const r=e?Vl:Bl,s=r.get(t);if(s)return s;const l=Ll(t);if(0===l)return t;const c=new Proxy(t,2===l?o:n);return r.set(t,c),c}function Jl(t){return Hl(t)?Jl(t.__v_raw):!(!t||!t.__v_isReactive)}function Hl(t){return!(!t||!t.__v_isReadonly)}function Gl(t){return Jl(t)||Hl(t)}function Ql(t){return t&&Ql(t.__v_raw)||t}const Xl=t=>qs(t)?Wl(t):t;function Yl(t){return Boolean(t&&!0===t.__v_isRef)}function Zl(t){return function(t,e=!1){if(Yl(t))return t;return new tc(t,e)}(t)}class tc{constructor(t,e=!1){this._rawValue=t,this._shallow=e,this.__v_isRef=!0,this._value=e?t:Xl(t)}get value(){return al(Ql(this),0,"value"),this._value}set value(t){Qs(Ql(t),this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:Xl(t),ul(Ql(this),"set","value",t))}}class ec{constructor(t,e,n){this._setter=e,this._dirty=!0,this.__v_isRef=!0,this.effect=nl(t,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,ul(Ql(this),"set","value"))}}),this.__v_isReadonly=n}get value(){return this._dirty&&(this._value=this.effect(),this._dirty=!1),al(Ql(this),0,"value"),this._value}set value(t){this._setter(t)}}function nc(t,e,n,o){let r;try{r=o?t(...o):t()}catch(s){rc(s,e,n)}return r}function oc(t,e,n,o){if(Ls(t)){const s=nc(t,e,n,o);return s&&(qs(r=s)&&Ls(r.then)&&Ls(r.catch))&&s.catch((t=>{rc(t,e,n)})),s}var r;const s=[];for(let l=0;lnull==t.id?1/0:t.id;function Sc(t){lc=!1,sc=!0,wc(t),cc.sort(((t,e)=>kc(t)-kc(e)));try{for(ic=0;ickc(t)-kc(e))),hc=0;hcRc+=t;const Ec=(t=>(e,n=ti)=>function(t,e,n=ti,o=!1){if(n){const r=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;cl(),ei(n);const r=oc(e,n,t,o);return ei(null),il(),r});return o?r.unshift(s):r.push(s),s}}(t,e,n))("m"),Oc={};function jc(t,e,n){return $c(t,e,n)}function $c(t,e,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:l}=Ms,c=ti){let i,a,u=!1;if(Yl(t)?(i=()=>t.value,u=!!t._shallow):Jl(t)?(i=()=>t,o=!0):i=Bs(t)?()=>t.map((t=>Yl(t)?t.value:Jl(t)?Fc(t):Ls(t)?nc(t,c,2):void 0)):Ls(t)?e?()=>nc(t,c,2):()=>{if(!c||!c.isUnmounted)return a&&a(),nc(t,c,3,[f])}:As,e&&o){const t=i;i=()=>Fc(t())}const f=t=>{a=_.options.onStop=()=>{nc(t,c,4)}};let p=Bs(t)?[]:Oc;const d=()=>{if(_.active)if(e){const t=_();(o||u||Qs(t,p))&&(a&&a(),oc(e,c,3,[t,p===Oc?void 0:p,f]),p=t)}else _()};let h;d.allowRecurse=!!e,h="sync"===r?d:"post"===r?()=>Nc(d,c&&c.suspense):()=>{!c||c.isMounted?function(t){mc(t,uc,ac,fc)}(d):d()};const _=nl(i,{lazy:!0,onTrack:s,onTrigger:l,scheduler:h});return ni(_,c),e?n?d():p=_():"post"===r?Nc(_,c&&c.suspense):_(),()=>{var t;(t=_).active&&(rl(t),t.options.onStop&&t.options.onStop(),t.active=!1),c&&((t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)})(c.effects,_)}}function Pc(t,e,n){const o=this.proxy;return $c(Ws(t)?()=>o[t]:t.bind(o),e.bind(o),n,this)}function Fc(t,e=new Set){if(!qs(t)||e.has(t))return t;if(e.add(t),Yl(t))Fc(t.value,e);else if(Bs(t))for(let n=0;n{Fc(t,e)}));else for(const n in t)Fc(t[n],e);return t}function Ic(t){return Ls(t)?{setup:t,name:t.name}:t}function Mc(t){Ls(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:l=!0,onError:c}=t;let i,a=null,u=0;const f=()=>{let t;return a||(t=a=e().catch((t=>{if(t=t instanceof Error?t:new Error(String(t)),c)return new Promise(((e,n)=>{c(t,(()=>e((u++,a=null,f()))),(()=>n(t)),u+1)}));throw t})).then((e=>t!==a&&a?a:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),i=e,e))))};return Ic({__asyncLoader:f,name:"AsyncComponentWrapper",setup(){const t=ti;if(i)return()=>Ac(i,t);const e=e=>{a=null,rc(e,t,13,!o)};if(l&&t.suspense)return f().then((e=>()=>Ac(e,t))).catch((t=>(e(t),()=>o?Wc(o,{error:t}):null)));const c=Zl(!1),u=Zl(),p=Zl(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=s&&setTimeout((()=>{if(!c.value&&!u.value){const t=new Error(`Async component timed out after ${s}ms.`);e(t),u.value=t}}),s),f().then((()=>{c.value=!0})).catch((t=>{e(t),u.value=t})),()=>c.value&&i?Ac(i,t):u.value&&o?Wc(o,{error:u.value}):n&&!p.value?Wc(n):void 0}})}function Ac(t,{vnode:{ref:e,props:n,children:o}}){const r=Wc(t,n,o);return r.ref=e,r}const Nc=function(t,e){e&&e.pendingBranch?Bs(t)?e.effects.push(...t):e.effects.push(t):mc(t,dc,pc,hc)},Tc=Symbol(),Uc=Symbol(void 0),Dc=Symbol(void 0),zc=Symbol(void 0);function Bc(t){return!!t&&!0===t.__v_isVNode}const Vc=({key:t})=>null!=t?t:null,Lc=({ref:t})=>null!=t?Ws(t)||Yl(t)||Ls(t)?{i:null,r:t}:t:null,Wc=function(t,e=null,n=null,o=0,r=null,s=!1){t&&t!==Tc||(t=zc);if(Bc(t)){const o=Kc(t,e,!0);return n&&Hc(o,n),o}l=t,Ls(l)&&"__vccOpts"in l&&(t=t.__vccOpts);var l;if(e){(Gl(e)||"__vInternal"in e)&&(e=Us({},e));let{class:t,style:n}=e;t&&!Ws(t)&&(e.class=Is(t)),qs(n)&&(Gl(n)&&!Bs(n)&&(n=Us({},n)),e.style=js(n))}const c=Ws(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:qs(t)?4:Ls(t)?2:0,i={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Vc(e),ref:e&&Lc(e),scopeId:null,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};if(Hc(i,n),128&c){const{content:t,fallback:e}=function(t){const{shapeFlag:e,children:n}=t;let o,r;return 32&e?(o=xc(n.default),r=xc(n.fallback)):(o=xc(n),r=Jc(null)),{content:o,fallback:r}}(i);i.ssContent=t,i.ssFallback=e}0;return i};function Kc(t,e,n=!1){const{props:o,ref:r,patchFlag:s}=t,l=e?Gc(o||{},e):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&Vc(l),ref:e&&e.ref?n&&r?Bs(r)?r.concat(Lc(e)):[r,Lc(e)]:Lc(e):r,scopeId:t.scopeId,children:t.children,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Uc?-1===s?16:16|s:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Kc(t.ssContent),ssFallback:t.ssFallback&&Kc(t.ssFallback),el:t.el,anchor:t.anchor}}function qc(t=" ",e=0){return Wc(Dc,null,t,e)}function Jc(t){return null==t||"boolean"==typeof t?Wc(zc):Bs(t)?Wc(Uc,null,t):"object"==typeof t?null===t.el?t:Kc(t):Wc(Dc,null,String(t))}function Hc(t,e){let n=0;const{shapeFlag:o}=t;if(null==e)e=null;else if(Bs(e))n=16;else if("object"==typeof e){if(1&o||64&o){const n=e.default;return void(n&&(n._c&&Cc(1),Hc(t,n()),n._c&&Cc(-1)))}{n=32;const t=e._;t||"__vInternal"in e||(e._ctx=null)}}else Ls(e)?(e={default:e,_ctx:null},n=32):(e=String(e),64&o?(n=16,e=[qc(e)]):n=8);t.children=e,t.shapeFlag|=n}function Gc(...t){const e=Us({},t[0]);for(let n=1;nQc(t,e,n)));for(const l in e)o&&zs(o,l)?t[l]=o[l](t[l],e[l],n.proxy,l):t[l]=e[l]}const Xc=t=>t&&(t.proxy?t.proxy:Xc(t.parent)),Yc=Us(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Xc(t.parent),$root:t=>t.root&&t.root.proxy,$emit:t=>t.emit,$options:t=>function(t){const e=t.type,{__merged:n,mixins:o,extends:r}=e;if(n)return n;const s=t.appContext.mixins;if(!s.length&&!o&&!r)return e;const l={};return s.forEach((e=>Qc(l,e,t))),Qc(l,e,t),e.__merged=l}(t),$forceUpdate:t=>()=>{return e=t.update,void(cc.length&&cc.includes(e,sc&&e.allowRecurse?ic+1:ic)||e===gc||(cc.push(e),bc()));var e},$nextTick:t=>yc.bind(t.proxy),$watch:t=>Pc.bind(t)}),Zc={get({_:t},e){const{ctx:n,setupState:o,data:r,props:s,accessCache:l,type:c,appContext:i}=t;if("__v_skip"===e)return!0;let a;if("$"!==e[0]){const c=l[e];if(void 0!==c)switch(c){case 0:return o[e];case 1:return r[e];case 3:return n[e];case 2:return s[e]}else{if(o!==Ms&&zs(o,e))return l[e]=0,o[e];if(r!==Ms&&zs(r,e))return l[e]=1,r[e];if((a=t.propsOptions[0])&&zs(a,e))return l[e]=2,s[e];if(n!==Ms&&zs(n,e))return l[e]=3,n[e];l[e]=4}}const u=Yc[e];let f,p;return u?("$attrs"===e&&al(t,0,e),u(t)):(f=c.__cssModules)&&(f=f[e])?f:n!==Ms&&zs(n,e)?(l[e]=3,n[e]):(p=i.config.globalProperties,zs(p,e)?p[e]:void 0)},set({_:t},e,n){const{data:o,setupState:r,ctx:s}=t;if(r!==Ms&&zs(r,e))r[e]=n;else if(o!==Ms&&zs(o,e))o[e]=n;else if(e in t.props)return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:o,appContext:r,propsOptions:s}},l){let c;return void 0!==n[l]||t!==Ms&&zs(t,l)||e!==Ms&&zs(e,l)||(c=s[0])&&zs(c,l)||zs(o,l)||zs(Yc,l)||zs(r.config.globalProperties,l)}};Us({},Zc,{get(t,e){if(e!==Symbol.unscopables)return Zc.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!Os(e)});let ti=null;const ei=t=>{ti=t};function ni(t,e=ti){e&&(e.effects||(e.effects=[])).push(t)}function oi(t){const e=function(t){let e,n;return Ls(t)?(e=t,n=As):(e=t.get,n=t.set),new ec(e,n,Ls(t)||!t.set)}(t);return ni(e.effect),e}const ri=()=>({value:"",align:"left"});var si={name:"sb-paragraph",getDefaultData:ri,edit:Mc((()=>gn((()=>__import__("./edit.492a1056.js")),["/schlechtenburg/assets/edit.492a1056.js","/schlechtenburg/assets/style.3e24e605.css","/schlechtenburg/assets/vendor.9babb3f5.js"]))),display:Mc((()=>gn((()=>__import__("./display.bd126a56.js")),["/schlechtenburg/assets/display.bd126a56.js","/schlechtenburg/assets/style.3e24e605.css","/schlechtenburg/assets/vendor.9babb3f5.js"])))};function li(t,e){const n=Object.create(null),o=t.split(",");for(let r=0;r!!n[t.toLowerCase()]:t=>!!n[t]}const ci=li("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl");function ii(t){if(mi(t)){const e={};for(let n=0;n{if(t){const n=t.split(ui);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function pi(t){let e="";if(Si(t))e=t;else if(mi(t))for(let n=0;n{},_i=/^on[^a-z]/,vi=t=>_i.test(t),gi=Object.assign,yi=Object.prototype.hasOwnProperty,bi=(t,e)=>yi.call(t,e),mi=Array.isArray,wi=t=>"[object Map]"===Ei(t),ki=t=>"function"==typeof t,Si=t=>"string"==typeof t,xi=t=>"symbol"==typeof t,Ri=t=>null!==t&&"object"==typeof t,Ci=Object.prototype.toString,Ei=t=>Ci.call(t),Oi=t=>Si(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,ji=(t,e)=>t!==e&&(t==t||e==e),$i=new WeakMap,Pi=[];let Fi;const Ii=Symbol(""),Mi=Symbol("");function Ai(t,e=di){(function(t){return t&&!0===t._isEffect})(t)&&(t=t.raw);const n=function(t,e){const n=function(){if(!n.active)return e.scheduler?void 0:t();if(!Pi.includes(n)){Ti(n);try{return Di.push(Ui),Ui=!0,Pi.push(n),Fi=n,t()}finally{Pi.pop(),zi(),Fi=Pi[Pi.length-1]}}};return n.id=Ni++,n.allowRecurse=!!e.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=t,n.deps=[],n.options=e,n}(t,e);return e.lazy||n(),n}let Ni=0;function Ti(t){const{deps:e}=t;if(e.length){for(let n=0;n{t&&t.forEach((t=>{(t!==Fi||t.allowRecurse)&&c.add(t)}))};if("clear"===e)l.forEach(i);else if("length"===n&&mi(t))l.forEach(((t,e)=>{("length"===e||e>=o)&&i(t)}));else switch(void 0!==n&&i(l.get(n)),e){case"add":mi(t)?Oi(n)&&i(l.get("length")):(i(l.get(Ii)),wi(t)&&i(l.get(Mi)));break;case"delete":mi(t)||(i(l.get(Ii)),wi(t)&&i(l.get(Mi)));break;case"set":wi(t)&&i(l.get(Ii))}c.forEach((t=>{t.options.scheduler?t.options.scheduler(t):t()}))}const Li=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(xi)),Wi=Gi(),Ki=Gi(!1,!0),qi=Gi(!0),Ji=Gi(!0,!0),Hi={};function Gi(t=!1,e=!1){return function(n,o,r){if("__v_isReactive"===o)return!t;if("__v_isReadonly"===o)return t;if("__v_raw"===o&&r===(t?ma:ba).get(n))return n;const s=mi(n);if(!t&&s&&bi(Hi,o))return Reflect.get(Hi,o,r);const l=Reflect.get(n,o,r);if(xi(o)?Li.has(o):"__proto__"===o||"__v_isRef"===o)return l;if(t||Bi(n,0,o),e)return l;if($a(l)){return!s||!Oi(o)?l.value:l}return Ri(l)?t?Sa(l):ka(l):l}}["includes","indexOf","lastIndexOf"].forEach((t=>{const e=Array.prototype[t];Hi[t]=function(...t){const n=Oa(this);for(let e=0,r=this.length;e{const e=Array.prototype[t];Hi[t]=function(...t){Di.push(Ui),Ui=!1;const n=e.apply(this,t);return zi(),n}}));function Qi(t=!1){return function(e,n,o,r){const s=e[n];if(!t&&(o=Oa(o),!mi(e)&&$a(s)&&!$a(o)))return s.value=o,!0;const l=mi(e)&&Oi(n)?Number(n)!0,deleteProperty:(t,e)=>!0};gi({},Xi,{get:Ki,set:Qi(!0)}),gi({},Yi,{get:Ji});const Zi=t=>Ri(t)?ka(t):t,ta=t=>Ri(t)?Sa(t):t,ea=t=>t,na=t=>Reflect.getPrototypeOf(t);function oa(t,e,n=!1,o=!1){const r=Oa(t=t.__v_raw),s=Oa(e);e!==s&&!n&&Bi(r,0,e),!n&&Bi(r,0,s);const{has:l}=na(r),c=n?ta:o?ea:Zi;return l.call(r,e)?c(t.get(e)):l.call(r,s)?c(t.get(s)):void 0}function ra(t,e=!1){const n=this.__v_raw,o=Oa(n),r=Oa(t);return t!==r&&!e&&Bi(o,0,t),!e&&Bi(o,0,r),t===r?n.has(t):n.has(t)||n.has(r)}function sa(t,e=!1){return t=t.__v_raw,!e&&Bi(Oa(t),0,Ii),Reflect.get(t,"size",t)}function la(t){t=Oa(t);const e=Oa(this),n=na(e).has.call(e,t);return e.add(t),n||Vi(e,"add",t,t),this}function ca(t,e){e=Oa(e);const n=Oa(this),{has:o,get:r}=na(n);let s=o.call(n,t);s||(t=Oa(t),s=o.call(n,t));const l=r.call(n,t);return n.set(t,e),s?ji(e,l)&&Vi(n,"set",t,e):Vi(n,"add",t,e),this}function ia(t){const e=Oa(this),{has:n,get:o}=na(e);let r=n.call(e,t);r||(t=Oa(t),r=n.call(e,t)),o&&o.call(e,t);const s=e.delete(t);return r&&Vi(e,"delete",t,void 0),s}function aa(){const t=Oa(this),e=0!==t.size,n=t.clear();return e&&Vi(t,"clear",void 0,void 0),n}function ua(t,e){return function(n,o){const r=this,s=r.__v_raw,l=Oa(s),c=t?ta:e?ea:Zi;return!t&&Bi(l,0,Ii),s.forEach(((t,e)=>n.call(o,c(t),c(e),r)))}}function fa(t,e,n){return function(...o){const r=this.__v_raw,s=Oa(r),l=wi(s),c="entries"===t||t===Symbol.iterator&&l,i="keys"===t&&l,a=r[t](...o),u=e?ta:n?ea:Zi;return!e&&Bi(s,0,i?Mi:Ii),{next(){const{value:t,done:e}=a.next();return e?{value:t,done:e}:{value:c?[u(t[0]),u(t[1])]:u(t),done:e}},[Symbol.iterator](){return this}}}}function pa(t){return function(...e){return"delete"!==t&&this}}const da={get(t){return oa(this,t)},get size(){return sa(this)},has:ra,add:la,set:ca,delete:ia,clear:aa,forEach:ua(!1,!1)},ha={get(t){return oa(this,t,!1,!0)},get size(){return sa(this)},has:ra,add:la,set:ca,delete:ia,clear:aa,forEach:ua(!1,!0)},_a={get(t){return oa(this,t,!0)},get size(){return sa(this,!0)},has(t){return ra.call(this,t,!0)},add:pa("add"),set:pa("set"),delete:pa("delete"),clear:pa("clear"),forEach:ua(!0,!1)};function va(t,e){const n=e?ha:t?_a:da;return(e,o,r)=>"__v_isReactive"===o?!t:"__v_isReadonly"===o?t:"__v_raw"===o?e:Reflect.get(bi(n,o)&&o in e?n:e,o,r)}["keys","values","entries",Symbol.iterator].forEach((t=>{da[t]=fa(t,!1,!1),_a[t]=fa(t,!0,!1),ha[t]=fa(t,!1,!0)}));const ga={get:va(!1,!1)},ya={get:va(!0,!1)},ba=new WeakMap,ma=new WeakMap;function wa(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>Ei(t).slice(8,-1))(t))}function ka(t){return t&&t.__v_isReadonly?t:xa(t,!1,Xi,ga)}function Sa(t){return xa(t,!0,Yi,ya)}function xa(t,e,n,o){if(!Ri(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const r=e?ma:ba,s=r.get(t);if(s)return s;const l=wa(t);if(0===l)return t;const c=new Proxy(t,2===l?o:n);return r.set(t,c),c}function Ra(t){return Ca(t)?Ra(t.__v_raw):!(!t||!t.__v_isReactive)}function Ca(t){return!(!t||!t.__v_isReadonly)}function Ea(t){return Ra(t)||Ca(t)}function Oa(t){return t&&Oa(t.__v_raw)||t}const ja=t=>Ri(t)?ka(t):t;function $a(t){return Boolean(t&&!0===t.__v_isRef)}function Pa(t){return function(t,e=!1){if($a(t))return t;return new Fa(t,e)}(t)}class Fa{constructor(t,e=!1){this._rawValue=t,this._shallow=e,this.__v_isRef=!0,this._value=e?t:ja(t)}get value(){return Bi(Oa(this),0,"value"),this._value}set value(t){ji(Oa(t),this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:ja(t),Vi(Oa(this),"set","value",t))}}function Ia(t,e,n,o){let r;try{r=o?t(...o):t()}catch(s){Aa(s,e,n)}return r}function Ma(t,e,n,o){if(ki(t)){const s=Ia(t,e,n,o);return s&&(Ri(r=s)&&ki(r.then)&&ki(r.catch))&&s.catch((t=>{Aa(t,e,n)})),s}var r;const s=[];for(let l=0;lnull==t.id?1/0:t.id;function tu(t){Ta=!1,Na=!0,Ya(t),Ua.sort(((t,e)=>Za(t)-Za(e)));try{for(Da=0;DaZa(t)-Za(e))),Ka=0;Kanu+=t;const ru={};function su(t,e,n){return lu(t,e,n)}function lu(t,e,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:l}=di,c=ju){let i,a,u=!1;if($a(t)?(i=()=>t.value,u=!!t._shallow):Ra(t)?(i=()=>t,o=!0):i=mi(t)?()=>t.map((t=>$a(t)?t.value:Ra(t)?iu(t):ki(t)?Ia(t,c,2):void 0)):ki(t)?e?()=>Ia(t,c,2):()=>{if(!c||!c.isUnmounted)return a&&a(),Ia(t,c,3,[f])}:hi,e&&o){const t=i;i=()=>iu(t())}const f=t=>{a=_.options.onStop=()=>{Ia(t,c,4)}};let p=mi(t)?[]:ru;const d=()=>{if(_.active)if(e){const t=_();(o||u||ji(t,p))&&(a&&a(),Ma(e,c,3,[t,p===ru?void 0:p,f]),p=t)}else _()};let h;d.allowRecurse=!!e,h="sync"===r?d:"post"===r?()=>pu(d,c&&c.suspense):()=>{!c||c.isMounted?function(t){Xa(t,Ba,za,Va)}(d):d()};const _=Ai(i,{lazy:!0,onTrack:s,onTrigger:l,scheduler:h});return function(t,e=ju){e&&(e.effects||(e.effects=[])).push(t)}(_,c),e?n?d():p=_():"post"===r?pu(_,c&&c.suspense):_(),()=>{var t;(t=_).active&&(Ti(t),t.options.onStop&&t.options.onStop(),t.active=!1),c&&((t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)})(c.effects,_)}}function cu(t,e,n){const o=this.proxy;return lu(Si(t)?()=>o[t]:t.bind(o),e.bind(o),n,this)}function iu(t,e=new Set){if(!Ri(t)||e.has(t))return t;if(e.add(t),$a(t))iu(t.value,e);else if(mi(t))for(let n=0;n{iu(t,e)}));else for(const n in t)iu(t[n],e);return t}function au(t){return ki(t)?{setup:t,name:t.name}:t}function uu(t){ki(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:l=!0,onError:c}=t;let i,a=null,u=0;const f=()=>{let t;return a||(t=a=e().catch((t=>{if(t=t instanceof Error?t:new Error(String(t)),c)return new Promise(((e,n)=>{c(t,(()=>e((u++,a=null,f()))),(()=>n(t)),u+1)}));throw t})).then((e=>t!==a&&a?a:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),i=e,e))))};return au({__asyncLoader:f,name:"AsyncComponentWrapper",setup(){const t=ju;if(i)return()=>fu(i,t);const e=e=>{a=null,Aa(e,t,13,!o)};if(l&&t.suspense)return f().then((e=>()=>fu(e,t))).catch((t=>(e(t),()=>o?mu(o,{error:t}):null)));const c=Pa(!1),u=Pa(),p=Pa(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=s&&setTimeout((()=>{if(!c.value&&!u.value){const t=new Error(`Async component timed out after ${s}ms.`);e(t),u.value=t}}),s),f().then((()=>{c.value=!0})).catch((t=>{e(t),u.value=t})),()=>c.value&&i?fu(i,t):u.value&&o?mu(o,{error:u.value}):n&&!p.value?mu(n):void 0}})}function fu(t,{vnode:{ref:e,props:n,children:o}}){const r=mu(t,n,o);return r.ref=e,r}const pu=function(t,e){e&&e.pendingBranch?mi(t)?e.effects.push(...t):e.effects.push(t):Xa(t,Wa,La,Ka)},du=Symbol(),hu=Symbol(void 0),_u=Symbol(void 0),vu=Symbol(void 0);function gu(t){return!!t&&!0===t.__v_isVNode}const yu=({key:t})=>null!=t?t:null,bu=({ref:t})=>null!=t?Si(t)||$a(t)||ki(t)?{i:null,r:t}:t:null,mu=function(t,e=null,n=null,o=0,r=null,s=!1){t&&t!==du||(t=vu);if(gu(t)){const o=wu(t,e,!0);return n&&xu(o,n),o}l=t,ki(l)&&"__vccOpts"in l&&(t=t.__vccOpts);var l;if(e){(Ea(e)||"__vInternal"in e)&&(e=gi({},e));let{class:t,style:n}=e;t&&!Si(t)&&(e.class=pi(t)),Ri(n)&&(Ea(n)&&!mi(n)&&(n=gi({},n)),e.style=ii(n))}const c=Si(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:Ri(t)?4:ki(t)?2:0,i={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&yu(e),ref:e&&bu(e),scopeId:null,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};if(xu(i,n),128&c){const{content:t,fallback:e}=function(t){const{shapeFlag:e,children:n}=t;let o,r;return 32&e?(o=eu(n.default),r=eu(n.fallback)):(o=eu(n),r=Su(null)),{content:o,fallback:r}}(i);i.ssContent=t,i.ssFallback=e}0;return i};function wu(t,e,n=!1){const{props:o,ref:r,patchFlag:s}=t,l=e?function(...t){const e=gi({},t[0]);for(let n=1;nRu(t,e,n)));for(const l in e)o&&bi(o,l)?t[l]=o[l](t[l],e[l],n.proxy,l):t[l]=e[l]}const Cu=t=>t&&(t.proxy?t.proxy:Cu(t.parent)),Eu=gi(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Cu(t.parent),$root:t=>t.root&&t.root.proxy,$emit:t=>t.emit,$options:t=>function(t){const e=t.type,{__merged:n,mixins:o,extends:r}=e;if(n)return n;const s=t.appContext.mixins;if(!s.length&&!o&&!r)return e;const l={};return s.forEach((e=>Ru(l,e,t))),Ru(l,e,t),e.__merged=l}(t),$forceUpdate:t=>()=>{return e=t.update,void(Ua.length&&Ua.includes(e,Na&&e.allowRecurse?Da+1:Da)||e===Ha||(Ua.push(e),Qa()));var e},$nextTick:t=>Ga.bind(t.proxy),$watch:t=>cu.bind(t)}),Ou={get({_:t},e){const{ctx:n,setupState:o,data:r,props:s,accessCache:l,type:c,appContext:i}=t;if("__v_skip"===e)return!0;let a;if("$"!==e[0]){const c=l[e];if(void 0!==c)switch(c){case 0:return o[e];case 1:return r[e];case 3:return n[e];case 2:return s[e]}else{if(o!==di&&bi(o,e))return l[e]=0,o[e];if(r!==di&&bi(r,e))return l[e]=1,r[e];if((a=t.propsOptions[0])&&bi(a,e))return l[e]=2,s[e];if(n!==di&&bi(n,e))return l[e]=3,n[e];l[e]=4}}const u=Eu[e];let f,p;return u?("$attrs"===e&&Bi(t,0,e),u(t)):(f=c.__cssModules)&&(f=f[e])?f:n!==di&&bi(n,e)?(l[e]=3,n[e]):(p=i.config.globalProperties,bi(p,e)?p[e]:void 0)},set({_:t},e,n){const{data:o,setupState:r,ctx:s}=t;if(r!==di&&bi(r,e))r[e]=n;else if(o!==di&&bi(o,e))o[e]=n;else if(e in t.props)return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:o,appContext:r,propsOptions:s}},l){let c;return void 0!==n[l]||t!==di&&bi(t,l)||e!==di&&bi(e,l)||(c=s[0])&&bi(c,l)||bi(o,l)||bi(Eu,l)||bi(r.config.globalProperties,l)}};gi({},Ou,{get(t,e){if(e!==Symbol.unscopables)return Ou.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!ci(e)});let ju=null;const $u=()=>({src:"",alt:"",description:{value:"",align:"left"}});var Pu={name:"sb-image",getDefaultData:$u,edit:uu((()=>gn((()=>__import__("./edit.4ace5dcb.js")),["/schlechtenburg/assets/edit.4ace5dcb.js","/schlechtenburg/assets/style.d3f26b5f.css","/schlechtenburg/assets/vendor.9babb3f5.js"]))),display:uu((()=>gn((()=>__import__("./display.27947ee2.js")),["/schlechtenburg/assets/display.27947ee2.js","/schlechtenburg/assets/style.d3f26b5f.css","/schlechtenburg/assets/vendor.9babb3f5.js"]))),getChildren:t=>[t.data.description]};a(n({name:"App",setup(){const t=o("edit"),e=r({name:"none",id:"0",data:null});s((async()=>{const t=await fetch("/initial-data.json"),n=await t.json();e.name=n.name,e.id=n.id,e.data=n.data}));const n=l((()=>{switch(t.value){case u.Edit:return c(mn,{block:e,onUpdate:t=>{e.data=t.data},customBlocks:[Rs,Cs,Pu,si],key:"edit",mode:u.Edit},null);case u.Display:return c(mn,{block:e,customBlocks:[Rs,Cs,Pu,si],key:"display",mode:u.Display},null);case"data":return c("pre",null,[c("code",null,[JSON.stringify(e,null,2)])])}}));return()=>c("div",{id:"app"},[c("select",{value:t.value,onChange:e=>{t.value=e.target.value}},[c("option",null,[i("edit")]),c("option",null,[i("display")]),c("option",null,[i("data")])]),c(n.value,null,null)])}})).mount("#app");export{$u as A,ka as B,Pa as C,su as D,mu as E,ku as F,hu as G,xe as H,Ae as I,Te as J,Jn as S,fs as a,h as b,Ss as c,ts as d,un as e,bn as f,xs as g,vs as h,Kn as i,qn as j,Ic as k,ri as l,d as m,Wl as n,Zl as o,Ec as p,jc as q,pr as r,oi as s,Wc as t,Ye as u,Hn as v,Qr as w,qc as x,Gc as y,au as z}; diff --git a/docs/assets/index.35b9a0ae.js b/docs/assets/index.35b9a0ae.js deleted file mode 100644 index cc82a9e..0000000 --- a/docs/assets/index.35b9a0ae.js +++ /dev/null @@ -1 +0,0 @@ -var t=Object.assign;import{d as e,a as n,r as o,b as r,o as s,c as l,e as c,f as i,g as a}from"./vendor.9babb3f5.js";var u,f;!function(t=".",e="__import__"){try{self[e]=new Function("u","return import(u)")}catch(n){const o=new URL(t,location),r=t=>{URL.revokeObjectURL(t.src),t.remove()};self[e]=t=>new Promise(((n,s)=>{const l=new URL(t,o);if(self[e].moduleMap[l])return n(self[e].moduleMap[l]);const c=new Blob([`import * as m from '${l}';`,`${e}.moduleMap['${l}']=m;`],{type:"text/javascript"}),i=Object.assign(document.createElement("script"),{type:"module",src:URL.createObjectURL(c),onerror(){s(new Error(`Failed to import: ${t}`)),r(i)},onload(){n(self[e].moduleMap[l]),r(i)}});document.head.appendChild(i)})),self[e].moduleMap={}}}("/assets/"),(f=u||(u={})).Edit="edit",f.Display="display";const p=Symbol("Schlechtenburg mode"),d={prop:"block",event:"update"},h={id:{type:String,default:()=>""+ +new Date},data:{type:Object,default:()=>({})}};function _(t,e){const n=Object.create(null),o=t.split(",");for(let r=0;r!!n[t.toLowerCase()]:t=>!!n[t]}const v=_("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl");function g(t){if(j(t)){const e={};for(let n=0;n{if(t){const n=t.split(b);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function w(t){let e="";if(F(t))e=t;else if(j(t))for(let n=0;n{},x=/^on[^a-z]/,R=t=>x.test(t),C=Object.assign,E=Object.prototype.hasOwnProperty,O=(t,e)=>E.call(t,e),j=Array.isArray,$=t=>"[object Map]"===N(t),P=t=>"function"==typeof t,F=t=>"string"==typeof t,I=t=>"symbol"==typeof t,M=t=>null!==t&&"object"==typeof t,A=Object.prototype.toString,N=t=>A.call(t),T=t=>F(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,U=(t,e)=>t!==e&&(t==t||e==e),D=new WeakMap,z=[];let B;const V=Symbol(""),L=Symbol("");function W(t,e=k){(function(t){return t&&!0===t._isEffect})(t)&&(t=t.raw);const n=function(t,e){const n=function(){if(!n.active)return e.scheduler?void 0:t();if(!z.includes(n)){q(n);try{return H.push(J),J=!0,z.push(n),B=n,t()}finally{z.pop(),Q(),B=z[z.length-1]}}};return n.id=K++,n.allowRecurse=!!e.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=t,n.deps=[],n.options=e,n}(t,e);return e.lazy||n(),n}let K=0;function q(t){const{deps:e}=t;if(e.length){for(let n=0;n{t&&t.forEach((t=>{(t!==B||t.allowRecurse)&&c.add(t)}))};if("clear"===e)l.forEach(i);else if("length"===n&&j(t))l.forEach(((t,e)=>{("length"===e||e>=o)&&i(t)}));else switch(void 0!==n&&i(l.get(n)),e){case"add":j(t)?T(n)&&i(l.get("length")):(i(l.get(V)),$(t)&&i(l.get(L)));break;case"delete":j(t)||(i(l.get(V)),$(t)&&i(l.get(L)));break;case"set":$(t)&&i(l.get(V))}c.forEach((t=>{t.options.scheduler?t.options.scheduler(t):t()}))}const Z=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(I)),tt=st(),et=st(!1,!0),nt=st(!0),ot=st(!0,!0),rt={};function st(t=!1,e=!1){return function(n,o,r){if("__v_isReactive"===o)return!t;if("__v_isReadonly"===o)return t;if("__v_raw"===o&&r===(t?Ft:Pt).get(n))return n;const s=j(n);if(!t&&s&&O(rt,o))return Reflect.get(rt,o,r);const l=Reflect.get(n,o,r);if(I(o)?Z.has(o):"__proto__"===o||"__v_isRef"===o)return l;if(t||X(n,0,o),e)return l;if(Vt(l)){return!s||!T(o)?l.value:l}return M(l)?t?At(l):Mt(l):l}}["includes","indexOf","lastIndexOf"].forEach((t=>{const e=Array.prototype[t];rt[t]=function(...t){const n=zt(this);for(let e=0,r=this.length;e{const e=Array.prototype[t];rt[t]=function(...t){G();const n=e.apply(this,t);return Q(),n}}));function lt(t=!1){return function(e,n,o,r){const s=e[n];if(!t&&(o=zt(o),!j(e)&&Vt(s)&&!Vt(o)))return s.value=o,!0;const l=j(e)&&T(n)?Number(n)!0,deleteProperty:(t,e)=>!0},at=C({},ct,{get:et,set:lt(!0)});C({},it,{get:ot});const ut=t=>M(t)?Mt(t):t,ft=t=>M(t)?At(t):t,pt=t=>t,dt=t=>Reflect.getPrototypeOf(t);function ht(t,e,n=!1,o=!1){const r=zt(t=t.__v_raw),s=zt(e);e!==s&&!n&&X(r,0,e),!n&&X(r,0,s);const{has:l}=dt(r),c=n?ft:o?pt:ut;return l.call(r,e)?c(t.get(e)):l.call(r,s)?c(t.get(s)):void 0}function _t(t,e=!1){const n=this.__v_raw,o=zt(n),r=zt(t);return t!==r&&!e&&X(o,0,t),!e&&X(o,0,r),t===r?n.has(t):n.has(t)||n.has(r)}function vt(t,e=!1){return t=t.__v_raw,!e&&X(zt(t),0,V),Reflect.get(t,"size",t)}function gt(t){t=zt(t);const e=zt(this),n=dt(e).has.call(e,t);return e.add(t),n||Y(e,"add",t,t),this}function yt(t,e){e=zt(e);const n=zt(this),{has:o,get:r}=dt(n);let s=o.call(n,t);s||(t=zt(t),s=o.call(n,t));const l=r.call(n,t);return n.set(t,e),s?U(e,l)&&Y(n,"set",t,e):Y(n,"add",t,e),this}function bt(t){const e=zt(this),{has:n,get:o}=dt(e);let r=n.call(e,t);r||(t=zt(t),r=n.call(e,t)),o&&o.call(e,t);const s=e.delete(t);return r&&Y(e,"delete",t,void 0),s}function mt(){const t=zt(this),e=0!==t.size,n=t.clear();return e&&Y(t,"clear",void 0,void 0),n}function wt(t,e){return function(n,o){const r=this,s=r.__v_raw,l=zt(s),c=t?ft:e?pt:ut;return!t&&X(l,0,V),s.forEach(((t,e)=>n.call(o,c(t),c(e),r)))}}function kt(t,e,n){return function(...o){const r=this.__v_raw,s=zt(r),l=$(s),c="entries"===t||t===Symbol.iterator&&l,i="keys"===t&&l,a=r[t](...o),u=e?ft:n?pt:ut;return!e&&X(s,0,i?L:V),{next(){const{value:t,done:e}=a.next();return e?{value:t,done:e}:{value:c?[u(t[0]),u(t[1])]:u(t),done:e}},[Symbol.iterator](){return this}}}}function St(t){return function(...e){return"delete"!==t&&this}}const xt={get(t){return ht(this,t)},get size(){return vt(this)},has:_t,add:gt,set:yt,delete:bt,clear:mt,forEach:wt(!1,!1)},Rt={get(t){return ht(this,t,!1,!0)},get size(){return vt(this)},has:_t,add:gt,set:yt,delete:bt,clear:mt,forEach:wt(!1,!0)},Ct={get(t){return ht(this,t,!0)},get size(){return vt(this,!0)},has(t){return _t.call(this,t,!0)},add:St("add"),set:St("set"),delete:St("delete"),clear:St("clear"),forEach:wt(!0,!1)};function Et(t,e){const n=e?Rt:t?Ct:xt;return(e,o,r)=>"__v_isReactive"===o?!t:"__v_isReadonly"===o?t:"__v_raw"===o?e:Reflect.get(O(n,o)&&o in e?n:e,o,r)}["keys","values","entries",Symbol.iterator].forEach((t=>{xt[t]=kt(t,!1,!1),Ct[t]=kt(t,!0,!1),Rt[t]=kt(t,!1,!0)}));const Ot={get:Et(!1,!1)},jt={get:Et(!1,!0)},$t={get:Et(!0,!1)},Pt=new WeakMap,Ft=new WeakMap;function It(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>N(t).slice(8,-1))(t))}function Mt(t){return t&&t.__v_isReadonly?t:Nt(t,!1,ct,Ot)}function At(t){return Nt(t,!0,it,$t)}function Nt(t,e,n,o){if(!M(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const r=e?Ft:Pt,s=r.get(t);if(s)return s;const l=It(t);if(0===l)return t;const c=new Proxy(t,2===l?o:n);return r.set(t,c),c}function Tt(t){return Ut(t)?Tt(t.__v_raw):!(!t||!t.__v_isReactive)}function Ut(t){return!(!t||!t.__v_isReadonly)}function Dt(t){return Tt(t)||Ut(t)}function zt(t){return t&&zt(t.__v_raw)||t}const Bt=t=>M(t)?Mt(t):t;function Vt(t){return Boolean(t&&!0===t.__v_isRef)}function Lt(t){return function(t,e=!1){if(Vt(t))return t;return new Wt(t,e)}(t)}class Wt{constructor(t,e=!1){this._rawValue=t,this._shallow=e,this.__v_isRef=!0,this._value=e?t:Bt(t)}get value(){return X(zt(this),0,"value"),this._value}set value(t){U(zt(t),this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:Bt(t),Y(zt(this),"set","value",t))}}class Kt{constructor(t,e,n){this._setter=e,this._dirty=!0,this.__v_isRef=!0,this.effect=W(t,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,Y(zt(this),"set","value"))}}),this.__v_isReadonly=n}get value(){return this._dirty&&(this._value=this.effect(),this._dirty=!1),X(zt(this),0,"value"),this._value}set value(t){this._setter(t)}}function qt(t,e,n,o){let r;try{r=o?t(...o):t()}catch(s){Ht(s,e,n)}return r}function Jt(t,e,n,o){if(P(t)){const s=qt(t,e,n,o);return s&&(M(r=s)&&P(r.then)&&P(r.catch))&&s.catch((t=>{Ht(t,e,n)})),s}var r;const s=[];for(let l=0;lnull==t.id?1/0:t.id;function de(t){Qt=!1,Gt=!0,fe(t),Xt.sort(((t,e)=>pe(t)-pe(e)));try{for(Yt=0;Ytpe(t)-pe(e))),re=0;re_e+=t;const ge=(ye="um",(t,e=Je)=>function(t,e,n=Je,o=!1){if(n){const r=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;G(),He(n);const r=Jt(e,n,t,o);return He(null),Q(),r});return o?r.unshift(s):r.push(s),s}}(ye,t,e));var ye;const be={};function me(t,e,n){return we(t,e,n)}function we(t,e,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:l}=k,c=Je){let i,a,u=!1;if(Vt(t)?(i=()=>t.value,u=!!t._shallow):Tt(t)?(i=()=>t,o=!0):i=j(t)?()=>t.map((t=>Vt(t)?t.value:Tt(t)?Se(t):P(t)?qt(t,c,2):void 0)):P(t)?e?()=>qt(t,c,2):()=>{if(!c||!c.isUnmounted)return a&&a(),qt(t,c,3,[f])}:S,e&&o){const t=i;i=()=>Se(t())}const f=t=>{a=_.options.onStop=()=>{qt(t,c,4)}};let p=j(t)?[]:be;const d=()=>{if(_.active)if(e){const t=_();(o||u||U(t,p))&&(a&&a(),Jt(e,c,3,[t,p===be?void 0:p,f]),p=t)}else _()};let h;d.allowRecurse=!!e,h="sync"===r?d:"post"===r?()=>Ee(d,c&&c.suspense):()=>{!c||c.isMounted?function(t){ue(t,te,Zt,ee)}(d):d()};const _=W(i,{lazy:!0,onTrack:s,onTrigger:l,scheduler:h});return Ge(_,c),e?n?d():p=_():"post"===r?Ee(_,c&&c.suspense):_(),()=>{var t;(t=_).active&&(q(t),t.options.onStop&&t.options.onStop(),t.active=!1),c&&((t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)})(c.effects,_)}}function ke(t,e,n){const o=this.proxy;return we(F(t)?()=>o[t]:t.bind(o),e.bind(o),n,this)}function Se(t,e=new Set){if(!M(t)||e.has(t))return t;if(e.add(t),Vt(t))Se(t.value,e);else if(j(t))for(let n=0;n{Se(t,e)}));else for(const n in t)Se(t[n],e);return t}function xe(t){return P(t)?{setup:t,name:t.name}:t}function Re(t){P(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:l=!0,onError:c}=t;let i,a=null,u=0;const f=()=>{let t;return a||(t=a=e().catch((t=>{if(t=t instanceof Error?t:new Error(String(t)),c)return new Promise(((e,n)=>{c(t,(()=>e((u++,a=null,f()))),(()=>n(t)),u+1)}));throw t})).then((e=>t!==a&&a?a:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),i=e,e))))};return xe({__asyncLoader:f,name:"AsyncComponentWrapper",setup(){const t=Je;if(i)return()=>Ce(i,t);const e=e=>{a=null,Ht(e,t,13,!o)};if(l&&t.suspense)return f().then((e=>()=>Ce(e,t))).catch((t=>(e(t),()=>o?Ae(o,{error:t}):null)));const c=Lt(!1),u=Lt(),p=Lt(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=s&&setTimeout((()=>{if(!c.value&&!u.value){const t=new Error(`Async component timed out after ${s}ms.`);e(t),u.value=t}}),s),f().then((()=>{c.value=!0})).catch((t=>{e(t),u.value=t})),()=>c.value&&i?Ce(i,t):u.value&&o?Ae(o,{error:u.value}):n&&!p.value?Ae(n):void 0}})}function Ce(t,{vnode:{ref:e,props:n,children:o}}){const r=Ae(t,n,o);return r.ref=e,r}const Ee=function(t,e){e&&e.pendingBranch?j(t)?e.effects.push(...t):e.effects.push(t):ue(t,oe,ne,re)},Oe=Symbol(),je=Symbol(void 0),$e=Symbol(void 0),Pe=Symbol(void 0);function Fe(t){return!!t&&!0===t.__v_isVNode}const Ie=({key:t})=>null!=t?t:null,Me=({ref:t})=>null!=t?F(t)||Vt(t)||P(t)?{i:null,r:t}:t:null,Ae=function(t,e=null,n=null,o=0,r=null,s=!1){t&&t!==Oe||(t=Pe);if(Fe(t)){const o=Ne(t,e,!0);return n&&De(o,n),o}l=t,P(l)&&"__vccOpts"in l&&(t=t.__vccOpts);var l;if(e){(Dt(e)||"__vInternal"in e)&&(e=C({},e));let{class:t,style:n}=e;t&&!F(t)&&(e.class=w(t)),M(n)&&(Dt(n)&&!j(n)&&(n=C({},n)),e.style=g(n))}const c=F(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:M(t)?4:P(t)?2:0,i={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Ie(e),ref:e&&Me(e),scopeId:null,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};if(De(i,n),128&c){const{content:t,fallback:e}=function(t){const{shapeFlag:e,children:n}=t;let o,r;return 32&e?(o=he(n.default),r=he(n.fallback)):(o=he(n),r=Ue(null)),{content:o,fallback:r}}(i);i.ssContent=t,i.ssFallback=e}0;return i};function Ne(t,e,n=!1){const{props:o,ref:r,patchFlag:s}=t,l=e?ze(o||{},e):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&Ie(l),ref:e&&e.ref?n&&r?j(r)?r.concat(Me(e)):[r,Me(e)]:Me(e):r,scopeId:t.scopeId,children:t.children,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==je?-1===s?16:16|s:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ne(t.ssContent),ssFallback:t.ssFallback&&Ne(t.ssFallback),el:t.el,anchor:t.anchor}}function Te(t=" ",e=0){return Ae($e,null,t,e)}function Ue(t){return null==t||"boolean"==typeof t?Ae(Pe):j(t)?Ae(je,null,t):"object"==typeof t?null===t.el?t:Ne(t):Ae($e,null,String(t))}function De(t,e){let n=0;const{shapeFlag:o}=t;if(null==e)e=null;else if(j(e))n=16;else if("object"==typeof e){if(1&o||64&o){const n=e.default;return void(n&&(n._c&&ve(1),De(t,n()),n._c&&ve(-1)))}{n=32;const t=e._;t||"__vInternal"in e||(e._ctx=null)}}else P(e)?(e={default:e,_ctx:null},n=32):(e=String(e),64&o?(n=16,e=[Te(e)]):n=8);t.children=e,t.shapeFlag|=n}function ze(...t){const e=C({},t[0]);for(let n=1;n1)return n&&P(e)?e():e}}function Le(t,e,n){const o=n.appContext.config.optionMergeStrategies,{mixins:r,extends:s}=e;s&&Le(t,s,n),r&&r.forEach((e=>Le(t,e,n)));for(const l in e)o&&O(o,l)?t[l]=o[l](t[l],e[l],n.proxy,l):t[l]=e[l]}const We=t=>t&&(t.proxy?t.proxy:We(t.parent)),Ke=C(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>We(t.parent),$root:t=>t.root&&t.root.proxy,$emit:t=>t.emit,$options:t=>function(t){const e=t.type,{__merged:n,mixins:o,extends:r}=e;if(n)return n;const s=t.appContext.mixins;if(!s.length&&!o&&!r)return e;const l={};return s.forEach((e=>Le(l,e,t))),Le(l,e,t),e.__merged=l}(t),$forceUpdate:t=>()=>{return e=t.update,void(Xt.length&&Xt.includes(e,Gt&&e.allowRecurse?Yt+1:Yt)||e===ce||(Xt.push(e),ae()));var e},$nextTick:t=>ie.bind(t.proxy),$watch:t=>ke.bind(t)}),qe={get({_:t},e){const{ctx:n,setupState:o,data:r,props:s,accessCache:l,type:c,appContext:i}=t;if("__v_skip"===e)return!0;let a;if("$"!==e[0]){const c=l[e];if(void 0!==c)switch(c){case 0:return o[e];case 1:return r[e];case 3:return n[e];case 2:return s[e]}else{if(o!==k&&O(o,e))return l[e]=0,o[e];if(r!==k&&O(r,e))return l[e]=1,r[e];if((a=t.propsOptions[0])&&O(a,e))return l[e]=2,s[e];if(n!==k&&O(n,e))return l[e]=3,n[e];l[e]=4}}const u=Ke[e];let f,p;return u?("$attrs"===e&&X(t,0,e),u(t)):(f=c.__cssModules)&&(f=f[e])?f:n!==k&&O(n,e)?(l[e]=3,n[e]):(p=i.config.globalProperties,O(p,e)?p[e]:void 0)},set({_:t},e,n){const{data:o,setupState:r,ctx:s}=t;if(r!==k&&O(r,e))r[e]=n;else if(o!==k&&O(o,e))o[e]=n;else if(e in t.props)return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:o,appContext:r,propsOptions:s}},l){let c;return void 0!==n[l]||t!==k&&O(t,l)||e!==k&&O(e,l)||(c=s[0])&&O(c,l)||O(o,l)||O(Ke,l)||O(r.config.globalProperties,l)}};C({},qe,{get(t,e){if(e!==Symbol.unscopables)return qe.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!v(e)});let Je=null;const He=t=>{Je=t};function Ge(t,e=Je){e&&(e.effects||(e.effects=[])).push(t)}function Qe(t){const e=function(t){let e,n;return P(t)?(e=t,n=S):(e=t.get,n=t.set),new Kt(e,n,P(t)||!t.set)}(t);return Ge(e.effect),e}const Xe=Symbol("Schlechtenburg active block");function Ye(t){const e=Ve(Xe,Lt(null)),n=Qe((()=>e.value===t)),o=n=>{e.value=void 0!==n?n:t};return{activeBlockId:e,isActive:n,activate:o,requestActivation:()=>{e.value||o()}}}const Ze=Symbol("Schlechtenburg block library");function tn(){const t=Ve(p,Lt(u.Edit)),e=Ve(Ze,Mt({}));return{mode:t,customBlocks:e,getBlock:t=>e[t]}}const en=Symbol("Schlechtenburg block dimensions"),nn=Symbol("Schlechtenburg editor dimensions");function on(t,e){const n=Lt(null);Be(e,n);const o=()=>{if(!t.value)return;const e=t.value.getBoundingClientRect();n.value={width:e.width,height:e.height,left:t.value.offsetLeft,top:t.value.offsetTop}},r=new ResizeObserver(o),s=new MutationObserver(o);return me(t,(()=>{t.value&&(r.observe(t.value),s.observe(t.value,{attributes:!0,childList:!1,subtree:!1}))})),{triggerSizeCalculation:o,dimensions:n}}function rn(){return{editorDimensions:Ve(nn,Lt(null)),blockDimensions:Ve(en,Lt(null))}}const sn=Symbol("Schlechtenburg block tree"),ln=Symbol("Schlechtenburg block tree"),cn=Symbol("Schlechtenburg block tree");function an(){const t=Ve(sn,null),e=Ve(ln,(t=>{})),n=Ve(cn,(t=>{})),o=Mt({id:"",name:"",icon:"",children:[]});Be(ln,(t=>{o.children.find((e=>e.id===t.id))||(o.children=[...o.children,t])})),Be(cn,(({id:t})=>{o.children=o.children.filter((e=>e.id!==t))}));return ge((()=>{o.id&&n(o)})),{blockTree:t,register:t=>{if(!t.id)throw new Error(`Cannot register a block without an id: ${JSON.stringify(t)}`);o.id=t.id,o.name=t.name,e(o)}}}const un=xe({name:"sb-button",inheritAttrs:!1,setup:(e,n)=>()=>Ae("button",t(t({},n.attrs),{class:(n.attrs.class||"")+" sb-button"}),[n.slots.default()])});const fn=xe({name:"sb-context-menu",props:{onClose:{type:Function,default:()=>{}},onOpen:{type:Function,default:()=>{}}},setup(t,e){const n=Lt(!1),o=()=>{n.value=!0},r=()=>{n.value=!1},s=t=>{"Escape"===t.key&&r()},l=()=>{n.value?r():o()};return me(n,((t,e)=>{t!==e&&(t?setTimeout((()=>{document.body.addEventListener("click",r),document.body.addEventListener("keypress",s)})):(document.body.removeEventListener("click",r),document.body.removeEventListener("keypress",s)))})),()=>Ae("div",{class:"sb-context"},[e.slots.context({opened:n,toggle:l,close:r,open:o})||Ae(un,{onClick:l},{default:()=>[Te("Menu")]}),Ae("dialog",{class:"sb-context-menu",open:!!n.value||void 0,onClose:r,onClick:t=>{t.stopPropagation()}},[e.slots.default({opened:n,toggle:l,close:r,open:o})||null])])}});const pn=xe({name:"sb-main-menu",setup(){const{blockTree:t}=an(),{activate:e,activeBlockId:n}=Ye(),o=(t,r)=>Ae("li",{class:{"sb-tree-block-select__block":!0,"sb-tree-block-select__block_active":n.value===t.id}},[Ae("button",{class:"sb-tree-block-select__block-name",onClick:()=>{e(t.id),r()},onMouseEnter:()=>e(t.id)},[t.name]),t.children.length?Ae("ul",{class:"sb-tree-block-select__list"},[t.children.map((t=>o(t,r)))]):null]);return()=>t.value?Ae(fn,{class:"sb-tree-block-select"},{context:({toggle:t})=>Ae(un,{onClick:t},{default:()=>[Te("Tree")]}),default:({close:e})=>Ae("ul",{class:"sb-tree-block-select__list sb-tree-block-select__list_base"},[o(t.value,e)])}):""}});const dn=xe({name:"sb-main-menu",props:{block:{type:null,required:!0}},setup:(t,e)=>()=>Ae("div",{class:"sb-main-menu"},[Ae(pn,{block:t.block},null)])});const hn=xe({name:"sb-block-toolbar",props:{block:{type:null,required:!0}},setup:(t,e)=>()=>Ae("div",{class:"sb-block-toolbar"},null)});let _n;const vn={},gn=function(t,e){if(!e)return t();if(void 0===_n){const t=document.createElement("link").relList;_n=t&&t.supports&&t.supports("modulepreload")?"modulepreload":"preload"}return Promise.all(e.map((t=>{if(t in vn)return;vn[t]=!0;const e=t.endsWith(".css"),n=e?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${t}"]${n}`))return;const o=document.createElement("link");return o.rel=e?"stylesheet":_n,e||(o.as="script",o.crossOrigin=""),o.href=t,document.head.appendChild(o),e?new Promise(((t,e)=>{o.addEventListener("load",t),o.addEventListener("error",e)})):void 0}))).then((()=>t()))};var yn={name:"sb-missing-block",edit:Re((()=>gn((()=>__import__("./display.deb1a9ae.js")),["/assets/display.deb1a9ae.js","/assets/display.08a50fb3.css","/assets/vendor.9babb3f5.js"]))),display:Re((()=>gn((()=>__import__("./display.deb1a9ae.js")),["/assets/display.deb1a9ae.js","/assets/display.08a50fb3.css","/assets/vendor.9babb3f5.js"])))};const bn=xe({name:"sb-block",props:{block:{type:null,required:!0},sortable:{type:String,default:null},onUpdate:{type:Function,default:()=>{}},onPrependBlock:{type:Function,default:()=>{}},onAppendBlock:{type:Function,default:()=>{}},onRemoveSelf:{type:Function,default:()=>{}},onMoveBackward:{type:Function,default:()=>{}},onMoveForward:{type:Function,default:()=>{}}},setup(e,n){const o=Lt(null),{mode:r,getBlock:s}=tn(),{isActive:l,activate:c,isHighlighted:i}=Ye(e.block.id),a=Qe((()=>({"sb-block":!0,"sb-block_active":l.value}))),{triggerSizeCalculation:f}=on(o,en);me((()=>e.block.data),f);const{register:p}=an();p(e.block),me(e.block,(()=>{p(e.block)}));const d=n=>{e.onUpdate(t(t({},e.block),{data:t(t({},e.block.data),n)}))};return()=>{var t;const l=null==(t=s(e.block.name))?void 0:t[r.value];if(!l){const t=yn[r.value];return Ae(t,{name:e.block.name,blockId:e.block.id},null)}return r.value===u.Display?Ae(l,{data:e.block.data,blockId:e.block.id},null):Ae("div",{ref:o,class:a.value},[Ae("div",{class:"sb-block__edit-cover"},null),n.slots["context-toolbar"]?n.slots["context-toolbar"]():null,Ae(l,ze({data:e.block.data,blockId:e.block.id,onUpdate:d,onPrependBlock:e.onPrependBlock,onAppendBlock:e.onAppendBlock,onRemoveSelf:e.onRemoveSelf,onActivatePrevious:e.onActivatePrevious,onActivateNext:e.onActivateNext,onClick:t=>{t.stopPropagation(),c()}},n.attrs),null)])}}});const mn=xe({name:"schlechtenburg-main",model:d,props:{customBlocks:{type:Array,default:()=>[]},block:{type:Object,required:!0},onUpdate:{type:Function,default:()=>{}},mode:{type:String,validator:t=>Object.values(u).includes(t),default:u.Edit}},setup(e){const n=Lt(null);on(n,nn);const o=Lt(e.mode);Be(p,o);const r=Lt(null);Be(Xe,r);const s=Lt(null);Be(sn,s),Be(ln,(t=>{s.value=t})),Be(cn,(()=>{s.value=null}));const l=Nt(t({},e.customBlocks.reduce(((e,n)=>t(t({},e),{[n.name]:n})),{})),!1,at,jt);return Be(Ze,l),()=>Ae("div",{class:"sb-main",ref:n},[o.value===u.Edit?Ae(je,null,[Ae(dn,{block:e.block},null),Ae(hn,{block:e.block},null)]):null,Ae(bn,{block:e.block,onUpdate:e.onUpdate},null)])}});const wn=xe({name:"sb-modal",props:{open:{type:Boolean,default:!1},onClose:{type:Function,default:()=>{}}},setup(t,e){const n=Qe((()=>({"sb-modal":!0,"sb-modal_open":t.open})));return()=>Ae("div",{class:n.value},[Ae("div",{class:"sb-modal__overlay",onClick:e=>{e.stopPropagation(),t.onClose()}},[Ae("div",{class:"sb-modal__content"},[e.slots.default()])])])}});const kn=xe({name:"sb-block-picker",props:{},setup(t,e){const n=Lt(!1),{customBlocks:o}=tn(),r=Qe((()=>Object.keys(o).map((t=>o[t])))),s=t=>()=>{n.value=!1,e.emit("picked-block",{name:t.name,id:""+ +new Date,data:t.getDefaultData()})};return()=>Ae("div",{class:"sb-block-picker"},[Ae(un,{class:"sb-block-picker__add-button",type:"button",onClick:t=>{n.value=!0,t.stopPropagation()}},{default:()=>[Te("+")]}),Ae(wn,{open:n.value,onClick:t=>t.stopPropagation(),onClose:()=>{n.value=!1}},{default:()=>[...r.value.map((t=>Ae(un,{type:"button",onClick:s(t)},{default:()=>[t.name]})))]})])}});var Sn="object"==typeof global&&global&&global.Object===Object&&global,xn="object"==typeof self&&self&&self.Object===Object&&self,Rn=Sn||xn||Function("return this")(),Cn=Rn.Symbol,En=Object.prototype,On=En.hasOwnProperty,jn=En.toString,$n=Cn?Cn.toStringTag:void 0;var Pn=Object.prototype.toString;var Fn=Cn?Cn.toStringTag:void 0;function In(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Fn&&Fn in Object(t)?function(t){var e=On.call(t,$n),n=t[$n];try{t[$n]=void 0;var o=!0}catch(s){}var r=jn.call(t);return o&&(e?t[$n]=n:delete t[$n]),r}(t):function(t){return Pn.call(t)}(t)}function Mn(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var An=/^\s+|\s+$/g,Nn=/^[-+]0x[0-9a-f]+$/i,Tn=/^0b[01]+$/i,Un=/^0o[0-7]+$/i,Dn=parseInt;function zn(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&"[object Symbol]"==In(t)}(t))return NaN;if(Mn(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Mn(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(An,"");var n=Tn.test(t);return n||Un.test(t)?Dn(t.slice(2),n?2:8):Nn.test(t)?NaN:+t}var Bn=function(){return Rn.Date.now()},Vn=Math.max,Ln=Math.min;function Wn(t,e,n){var o,r,s,l,c,i,a=0,u=!1,f=!1,p=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function d(e){var n=o,s=r;return o=r=void 0,a=e,l=t.apply(s,n)}function h(t){return a=t,c=setTimeout(v,e),u?d(t):l}function _(t){var n=t-i;return void 0===i||n>=e||n<0||f&&t-a>=s}function v(){var t=Bn();if(_(t))return g(t);c=setTimeout(v,function(t){var n=e-(t-i);return f?Ln(n,s-(t-a)):n}(t))}function g(t){return c=void 0,p&&o?d(t):(o=r=void 0,l)}function y(){var t=Bn(),n=_(t);if(o=arguments,r=this,i=t,n){if(void 0===c)return h(i);if(f)return clearTimeout(c),c=setTimeout(v,e),d(i)}return void 0===c&&(c=setTimeout(v,e)),l}return e=zn(e)||0,Mn(n)&&(u=!!n.leading,s=(f="maxWait"in n)?Vn(zn(n.maxWait)||0,e):s,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==c&&clearTimeout(c),a=0,o=i=r=c=void 0},y.flush=function(){return void 0===c?l:g(Bn())},y}const Kn=xe({name:"sb-block-ordering",props:{sortable:{type:String,default:null},onRemove:{type:Function,default:()=>{}},onMoveUp:{type:Function,default:()=>{}},onMoveDown:{type:Function,default:()=>{}}},setup(t){const e=Mt({top:"",right:""}),n=Qe((()=>({"sb-block-ordering":!0,[`sb-block-ordering_${t.sortable}`]:!!t.sortable}))),{editorDimensions:o,blockDimensions:r}=rn(),s=Wn((()=>{if(!o.value||!r.value)return;const t=o.value.width-r.value.left;e.top=`${r.value.top}px`,e.right=`${t}px`}));return me(o,s),me(r,s),me((()=>t.sortable),s),()=>Ae("div",{class:n.value,style:e,onClick:t=>t.stopPropagation()},[Ae(un,{onClick:t.onMoveUp},{default:()=>["vertical"===t.sortable?"↑":"←"]}),Ae(un,{onClick:t.onRemove},{default:()=>[Te("x")]}),Ae(un,{onClick:t.onMoveDown},{default:()=>["vertical"===t.sortable?"↓":"→"]})])}});const qn=xe({name:"sb-block-placeholder",setup:(t,e)=>()=>Ae("div",{class:"sb-block-placeholder"},[Ae(kn,{onPickedBlock:t=>e.emit("insert-block",t)},null)])});const Jn=xe({name:"sb-toolbar",setup(t,e){const n=Mt({bottom:"",left:"",maxWidth:""}),{editorDimensions:o,blockDimensions:r}=rn(),s=Wn((()=>{if(!o.value||!r.value)return;const t=o.value.height-r.value.top;n.bottom=`${t}px`,n.left=`${r.value.left}px`,n.maxWidth=`${r.value.width}px`}));return me(o,s),me(r,s),()=>{var t,o;return Ae("div",{class:"sb-toolbar",style:n,onClick:t=>t.stopPropagation()},[null==(o=null==(t=e.slots)?void 0:t.default)?void 0:o.call(t)])}}});const Hn=xe({name:"sb-select",inheritAttrs:!1,setup:(t,e)=>()=>Ae("div",{class:"sb-select"},[Ae("select",ze({class:"sb-select__input"},e.attrs),[e.slots.default()])])});function Gn(t,e){const n=Object.create(null),o=t.split(",");for(let r=0;r!!n[t.toLowerCase()]:t=>!!n[t]}const Qn=Gn("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl");function Xn(t){if(ao(t)){const e={};for(let n=0;n{if(t){const n=t.split(Zn);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function eo(t){let e="";if(po(t))e=t;else if(ao(t))for(let n=0;n{},ro=/^on[^a-z]/,so=t=>ro.test(t),lo=Object.assign,co=Object.prototype.hasOwnProperty,io=(t,e)=>co.call(t,e),ao=Array.isArray,uo=t=>"[object Map]"===go(t),fo=t=>"function"==typeof t,po=t=>"string"==typeof t,ho=t=>"symbol"==typeof t,_o=t=>null!==t&&"object"==typeof t,vo=Object.prototype.toString,go=t=>vo.call(t),yo=t=>po(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,bo=(t,e)=>t!==e&&(t==t||e==e),mo=new WeakMap,wo=[];let ko;const So=Symbol(""),xo=Symbol("");function Ro(t,e=no){(function(t){return t&&!0===t._isEffect})(t)&&(t=t.raw);const n=function(t,e){const n=function(){if(!n.active)return e.scheduler?void 0:t();if(!wo.includes(n)){Eo(n);try{return jo.push(Oo),Oo=!0,wo.push(n),ko=n,t()}finally{wo.pop(),$o(),ko=wo[wo.length-1]}}};return n.id=Co++,n.allowRecurse=!!e.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=t,n.deps=[],n.options=e,n}(t,e);return e.lazy||n(),n}let Co=0;function Eo(t){const{deps:e}=t;if(e.length){for(let n=0;n{t&&t.forEach((t=>{(t!==ko||t.allowRecurse)&&c.add(t)}))};if("clear"===e)l.forEach(i);else if("length"===n&&ao(t))l.forEach(((t,e)=>{("length"===e||e>=o)&&i(t)}));else switch(void 0!==n&&i(l.get(n)),e){case"add":ao(t)?yo(n)&&i(l.get("length")):(i(l.get(So)),uo(t)&&i(l.get(xo)));break;case"delete":ao(t)||(i(l.get(So)),uo(t)&&i(l.get(xo)));break;case"set":uo(t)&&i(l.get(So))}c.forEach((t=>{t.options.scheduler?t.options.scheduler(t):t()}))}const Io=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(ho)),Mo=Do(),Ao=Do(!1,!0),No=Do(!0),To=Do(!0,!0),Uo={};function Do(t=!1,e=!1){return function(n,o,r){if("__v_isReactive"===o)return!t;if("__v_isReadonly"===o)return t;if("__v_raw"===o&&r===(t?ur:ar).get(n))return n;const s=ao(n);if(!t&&s&&io(Uo,o))return Reflect.get(Uo,o,r);const l=Reflect.get(n,o,r);if(ho(o)?Io.has(o):"__proto__"===o||"__v_isRef"===o)return l;if(t||Po(n,0,o),e)return l;if(mr(l)){return!s||!yo(o)?l.value:l}return _o(l)?t?dr(l):pr(l):l}}["includes","indexOf","lastIndexOf"].forEach((t=>{const e=Array.prototype[t];Uo[t]=function(...t){const n=yr(this);for(let e=0,r=this.length;e{const e=Array.prototype[t];Uo[t]=function(...t){jo.push(Oo),Oo=!1;const n=e.apply(this,t);return $o(),n}}));function zo(t=!1){return function(e,n,o,r){const s=e[n];if(!t&&(o=yr(o),!ao(e)&&mr(s)&&!mr(o)))return s.value=o,!0;const l=ao(e)&&yo(n)?Number(n)!0,deleteProperty:(t,e)=>!0};lo({},Bo,{get:Ao,set:zo(!0)}),lo({},Vo,{get:To});const Lo=t=>_o(t)?pr(t):t,Wo=t=>_o(t)?dr(t):t,Ko=t=>t,qo=t=>Reflect.getPrototypeOf(t);function Jo(t,e,n=!1,o=!1){const r=yr(t=t.__v_raw),s=yr(e);e!==s&&!n&&Po(r,0,e),!n&&Po(r,0,s);const{has:l}=qo(r),c=n?Wo:o?Ko:Lo;return l.call(r,e)?c(t.get(e)):l.call(r,s)?c(t.get(s)):void 0}function Ho(t,e=!1){const n=this.__v_raw,o=yr(n),r=yr(t);return t!==r&&!e&&Po(o,0,t),!e&&Po(o,0,r),t===r?n.has(t):n.has(t)||n.has(r)}function Go(t,e=!1){return t=t.__v_raw,!e&&Po(yr(t),0,So),Reflect.get(t,"size",t)}function Qo(t){t=yr(t);const e=yr(this),n=qo(e).has.call(e,t);return e.add(t),n||Fo(e,"add",t,t),this}function Xo(t,e){e=yr(e);const n=yr(this),{has:o,get:r}=qo(n);let s=o.call(n,t);s||(t=yr(t),s=o.call(n,t));const l=r.call(n,t);return n.set(t,e),s?bo(e,l)&&Fo(n,"set",t,e):Fo(n,"add",t,e),this}function Yo(t){const e=yr(this),{has:n,get:o}=qo(e);let r=n.call(e,t);r||(t=yr(t),r=n.call(e,t)),o&&o.call(e,t);const s=e.delete(t);return r&&Fo(e,"delete",t,void 0),s}function Zo(){const t=yr(this),e=0!==t.size,n=t.clear();return e&&Fo(t,"clear",void 0,void 0),n}function tr(t,e){return function(n,o){const r=this,s=r.__v_raw,l=yr(s),c=t?Wo:e?Ko:Lo;return!t&&Po(l,0,So),s.forEach(((t,e)=>n.call(o,c(t),c(e),r)))}}function er(t,e,n){return function(...o){const r=this.__v_raw,s=yr(r),l=uo(s),c="entries"===t||t===Symbol.iterator&&l,i="keys"===t&&l,a=r[t](...o),u=e?Wo:n?Ko:Lo;return!e&&Po(s,0,i?xo:So),{next(){const{value:t,done:e}=a.next();return e?{value:t,done:e}:{value:c?[u(t[0]),u(t[1])]:u(t),done:e}},[Symbol.iterator](){return this}}}}function nr(t){return function(...e){return"delete"!==t&&this}}const or={get(t){return Jo(this,t)},get size(){return Go(this)},has:Ho,add:Qo,set:Xo,delete:Yo,clear:Zo,forEach:tr(!1,!1)},rr={get(t){return Jo(this,t,!1,!0)},get size(){return Go(this)},has:Ho,add:Qo,set:Xo,delete:Yo,clear:Zo,forEach:tr(!1,!0)},sr={get(t){return Jo(this,t,!0)},get size(){return Go(this,!0)},has(t){return Ho.call(this,t,!0)},add:nr("add"),set:nr("set"),delete:nr("delete"),clear:nr("clear"),forEach:tr(!0,!1)};function lr(t,e){const n=e?rr:t?sr:or;return(e,o,r)=>"__v_isReactive"===o?!t:"__v_isReadonly"===o?t:"__v_raw"===o?e:Reflect.get(io(n,o)&&o in e?n:e,o,r)}["keys","values","entries",Symbol.iterator].forEach((t=>{or[t]=er(t,!1,!1),sr[t]=er(t,!0,!1),rr[t]=er(t,!1,!0)}));const cr={get:lr(!1,!1)},ir={get:lr(!0,!1)},ar=new WeakMap,ur=new WeakMap;function fr(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>go(t).slice(8,-1))(t))}function pr(t){return t&&t.__v_isReadonly?t:hr(t,!1,Bo,cr)}function dr(t){return hr(t,!0,Vo,ir)}function hr(t,e,n,o){if(!_o(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const r=e?ur:ar,s=r.get(t);if(s)return s;const l=fr(t);if(0===l)return t;const c=new Proxy(t,2===l?o:n);return r.set(t,c),c}function _r(t){return vr(t)?_r(t.__v_raw):!(!t||!t.__v_isReactive)}function vr(t){return!(!t||!t.__v_isReadonly)}function gr(t){return _r(t)||vr(t)}function yr(t){return t&&yr(t.__v_raw)||t}const br=t=>_o(t)?pr(t):t;function mr(t){return Boolean(t&&!0===t.__v_isRef)}function wr(t){return function(t,e=!1){if(mr(t))return t;return new kr(t,e)}(t)}class kr{constructor(t,e=!1){this._rawValue=t,this._shallow=e,this.__v_isRef=!0,this._value=e?t:br(t)}get value(){return Po(yr(this),0,"value"),this._value}set value(t){bo(yr(t),this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:br(t),Fo(yr(this),"set","value",t))}}class Sr{constructor(t,e,n){this._setter=e,this._dirty=!0,this.__v_isRef=!0,this.effect=Ro(t,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,Fo(yr(this),"set","value"))}}),this.__v_isReadonly=n}get value(){return this._dirty&&(this._value=this.effect(),this._dirty=!1),Po(yr(this),0,"value"),this._value}set value(t){this._setter(t)}}function xr(t,e,n,o){let r;try{r=o?t(...o):t()}catch(s){Cr(s,e,n)}return r}function Rr(t,e,n,o){if(fo(t)){const s=xr(t,e,n,o);return s&&(_o(r=s)&&fo(r.then)&&fo(r.catch))&&s.catch((t=>{Cr(t,e,n)})),s}var r;const s=[];for(let l=0;lnull==t.id?1/0:t.id;function Kr(t){Or=!1,Er=!0,Lr(t),jr.sort(((t,e)=>Wr(t)-Wr(e)));try{for($r=0;$rWr(t)-Wr(e))),Nr=0;NrJr+=t;const Gr={};function Qr(t,e,n){return Xr(t,e,n)}function Xr(t,e,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:l}=no,c=ws){let i,a,u=!1;if(mr(t)?(i=()=>t.value,u=!!t._shallow):_r(t)?(i=()=>t,o=!0):i=ao(t)?()=>t.map((t=>mr(t)?t.value:_r(t)?Zr(t):fo(t)?xr(t,c,2):void 0)):fo(t)?e?()=>xr(t,c,2):()=>{if(!c||!c.isUnmounted)return a&&a(),xr(t,c,3,[f])}:oo,e&&o){const t=i;i=()=>Zr(t())}const f=t=>{a=_.options.onStop=()=>{xr(t,c,4)}};let p=ao(t)?[]:Gr;const d=()=>{if(_.active)if(e){const t=_();(o||u||bo(t,p))&&(a&&a(),Rr(e,c,3,[t,p===Gr?void 0:p,f]),p=t)}else _()};let h;d.allowRecurse=!!e,h="sync"===r?d:"post"===r?()=>os(d,c&&c.suspense):()=>{!c||c.isMounted?function(t){Vr(t,Fr,Pr,Ir)}(d):d()};const _=Ro(i,{lazy:!0,onTrack:s,onTrigger:l,scheduler:h});return ks(_,c),e?n?d():p=_():"post"===r?os(_,c&&c.suspense):_(),()=>{var t;(t=_).active&&(Eo(t),t.options.onStop&&t.options.onStop(),t.active=!1),c&&((t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)})(c.effects,_)}}function Yr(t,e,n){const o=this.proxy;return Xr(po(t)?()=>o[t]:t.bind(o),e.bind(o),n,this)}function Zr(t,e=new Set){if(!_o(t)||e.has(t))return t;if(e.add(t),mr(t))Zr(t.value,e);else if(ao(t))for(let n=0;n{Zr(t,e)}));else for(const n in t)Zr(t[n],e);return t}function ts(t){return fo(t)?{setup:t,name:t.name}:t}function es(t){fo(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:l=!0,onError:c}=t;let i,a=null,u=0;const f=()=>{let t;return a||(t=a=e().catch((t=>{if(t=t instanceof Error?t:new Error(String(t)),c)return new Promise(((e,n)=>{c(t,(()=>e((u++,a=null,f()))),(()=>n(t)),u+1)}));throw t})).then((e=>t!==a&&a?a:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),i=e,e))))};return ts({__asyncLoader:f,name:"AsyncComponentWrapper",setup(){const t=ws;if(i)return()=>ns(i,t);const e=e=>{a=null,Cr(e,t,13,!o)};if(l&&t.suspense)return f().then((e=>()=>ns(e,t))).catch((t=>(e(t),()=>o?fs(o,{error:t}):null)));const c=wr(!1),u=wr(),p=wr(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=s&&setTimeout((()=>{if(!c.value&&!u.value){const t=new Error(`Async component timed out after ${s}ms.`);e(t),u.value=t}}),s),f().then((()=>{c.value=!0})).catch((t=>{e(t),u.value=t})),()=>c.value&&i?ns(i,t):u.value&&o?fs(o,{error:u.value}):n&&!p.value?fs(n):void 0}})}function ns(t,{vnode:{ref:e,props:n,children:o}}){const r=fs(t,n,o);return r.ref=e,r}const os=function(t,e){e&&e.pendingBranch?ao(t)?e.effects.push(...t):e.effects.push(t):Vr(t,Ar,Mr,Nr)},rs=Symbol(),ss=Symbol(void 0),ls=Symbol(void 0),cs=Symbol(void 0);function is(t){return!!t&&!0===t.__v_isVNode}const as=({key:t})=>null!=t?t:null,us=({ref:t})=>null!=t?po(t)||mr(t)||fo(t)?{i:null,r:t}:t:null,fs=function(t,e=null,n=null,o=0,r=null,s=!1){t&&t!==rs||(t=cs);if(is(t)){const o=ps(t,e,!0);return n&&_s(o,n),o}l=t,fo(l)&&"__vccOpts"in l&&(t=t.__vccOpts);var l;if(e){(gr(e)||"__vInternal"in e)&&(e=lo({},e));let{class:t,style:n}=e;t&&!po(t)&&(e.class=eo(t)),_o(n)&&(gr(n)&&!ao(n)&&(n=lo({},n)),e.style=Xn(n))}const c=po(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:_o(t)?4:fo(t)?2:0,i={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&as(e),ref:e&&us(e),scopeId:null,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};if(_s(i,n),128&c){const{content:t,fallback:e}=function(t){const{shapeFlag:e,children:n}=t;let o,r;return 32&e?(o=qr(n.default),r=qr(n.fallback)):(o=qr(n),r=hs(null)),{content:o,fallback:r}}(i);i.ssContent=t,i.ssFallback=e}0;return i};function ps(t,e,n=!1){const{props:o,ref:r,patchFlag:s}=t,l=e?vs(o||{},e):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&as(l),ref:e&&e.ref?n&&r?ao(r)?r.concat(us(e)):[r,us(e)]:us(e):r,scopeId:t.scopeId,children:t.children,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ss?-1===s?16:16|s:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ps(t.ssContent),ssFallback:t.ssFallback&&ps(t.ssFallback),el:t.el,anchor:t.anchor}}function ds(t=" ",e=0){return fs(ls,null,t,e)}function hs(t){return null==t||"boolean"==typeof t?fs(cs):ao(t)?fs(ss,null,t):"object"==typeof t?null===t.el?t:ps(t):fs(ls,null,String(t))}function _s(t,e){let n=0;const{shapeFlag:o}=t;if(null==e)e=null;else if(ao(e))n=16;else if("object"==typeof e){if(1&o||64&o){const n=e.default;return void(n&&(n._c&&Hr(1),_s(t,n()),n._c&&Hr(-1)))}{n=32;const t=e._;t||"__vInternal"in e||(e._ctx=null)}}else fo(e)?(e={default:e,_ctx:null},n=32):(e=String(e),64&o?(n=16,e=[ds(e)]):n=8);t.children=e,t.shapeFlag|=n}function vs(...t){const e=lo({},t[0]);for(let n=1;ngs(t,e,n)));for(const l in e)o&&io(o,l)?t[l]=o[l](t[l],e[l],n.proxy,l):t[l]=e[l]}const ys=t=>t&&(t.proxy?t.proxy:ys(t.parent)),bs=lo(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>ys(t.parent),$root:t=>t.root&&t.root.proxy,$emit:t=>t.emit,$options:t=>function(t){const e=t.type,{__merged:n,mixins:o,extends:r}=e;if(n)return n;const s=t.appContext.mixins;if(!s.length&&!o&&!r)return e;const l={};return s.forEach((e=>gs(l,e,t))),gs(l,e,t),e.__merged=l}(t),$forceUpdate:t=>()=>{return e=t.update,void(jr.length&&jr.includes(e,Er&&e.allowRecurse?$r+1:$r)||e===Dr||(jr.push(e),Br()));var e},$nextTick:t=>zr.bind(t.proxy),$watch:t=>Yr.bind(t)}),ms={get({_:t},e){const{ctx:n,setupState:o,data:r,props:s,accessCache:l,type:c,appContext:i}=t;if("__v_skip"===e)return!0;let a;if("$"!==e[0]){const c=l[e];if(void 0!==c)switch(c){case 0:return o[e];case 1:return r[e];case 3:return n[e];case 2:return s[e]}else{if(o!==no&&io(o,e))return l[e]=0,o[e];if(r!==no&&io(r,e))return l[e]=1,r[e];if((a=t.propsOptions[0])&&io(a,e))return l[e]=2,s[e];if(n!==no&&io(n,e))return l[e]=3,n[e];l[e]=4}}const u=bs[e];let f,p;return u?("$attrs"===e&&Po(t,0,e),u(t)):(f=c.__cssModules)&&(f=f[e])?f:n!==no&&io(n,e)?(l[e]=3,n[e]):(p=i.config.globalProperties,io(p,e)?p[e]:void 0)},set({_:t},e,n){const{data:o,setupState:r,ctx:s}=t;if(r!==no&&io(r,e))r[e]=n;else if(o!==no&&io(o,e))o[e]=n;else if(e in t.props)return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:o,appContext:r,propsOptions:s}},l){let c;return void 0!==n[l]||t!==no&&io(t,l)||e!==no&&io(e,l)||(c=s[0])&&io(c,l)||io(o,l)||io(bs,l)||io(r.config.globalProperties,l)}};lo({},ms,{get(t,e){if(e!==Symbol.unscopables)return ms.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!Qn(e)});let ws=null;function ks(t,e=ws){e&&(e.effects||(e.effects=[])).push(t)}function Ss(t){const e=function(t){let e,n;return fo(t)?(e=t,n=oo):(e=t.get,n=t.set),new Sr(e,n,fo(t)||!t.set)}(t);return ks(e.effect),e}const xs=()=>({orientation:"vertical",children:[]});var Rs={name:"sb-layout",getDefaultData:xs,edit:es((()=>gn((()=>__import__("./edit.9fccf2dd.js")),["/assets/edit.9fccf2dd.js","/assets/style.b876754e.css","/assets/vendor.9babb3f5.js"]))),display:es((()=>gn((()=>__import__("./display.c54cb56f.js")),["/assets/display.c54cb56f.js","/assets/style.b876754e.css","/assets/vendor.9babb3f5.js"])))};var Cs={name:"sb-heading",getDefaultData:()=>({}),edit:e((()=>gn((()=>__import__("./edit.bd5075df.js")),void 0))),display:e((()=>gn((()=>__import__("./edit.bd5075df.js")),void 0)))};function Es(t,e){const n=Object.create(null),o=t.split(",");for(let r=0;r!!n[t.toLowerCase()]:t=>!!n[t]}const Os=Es("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl");function js(t){if(Bs(t)){const e={};for(let n=0;n{if(t){const n=t.split(Ps);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function Is(t){let e="";if(Ws(t))e=t;else if(Bs(t))for(let n=0;n{},Ns=/^on[^a-z]/,Ts=t=>Ns.test(t),Us=Object.assign,Ds=Object.prototype.hasOwnProperty,zs=(t,e)=>Ds.call(t,e),Bs=Array.isArray,Vs=t=>"[object Map]"===Hs(t),Ls=t=>"function"==typeof t,Ws=t=>"string"==typeof t,Ks=t=>"symbol"==typeof t,qs=t=>null!==t&&"object"==typeof t,Js=Object.prototype.toString,Hs=t=>Js.call(t),Gs=t=>Ws(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,Qs=(t,e)=>t!==e&&(t==t||e==e),Xs=new WeakMap,Ys=[];let Zs;const tl=Symbol(""),el=Symbol("");function nl(t,e=Ms){(function(t){return t&&!0===t._isEffect})(t)&&(t=t.raw);const n=function(t,e){const n=function(){if(!n.active)return e.scheduler?void 0:t();if(!Ys.includes(n)){rl(n);try{return ll.push(sl),sl=!0,Ys.push(n),Zs=n,t()}finally{Ys.pop(),il(),Zs=Ys[Ys.length-1]}}};return n.id=ol++,n.allowRecurse=!!e.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=t,n.deps=[],n.options=e,n}(t,e);return e.lazy||n(),n}let ol=0;function rl(t){const{deps:e}=t;if(e.length){for(let n=0;n{t&&t.forEach((t=>{(t!==Zs||t.allowRecurse)&&c.add(t)}))};if("clear"===e)l.forEach(i);else if("length"===n&&Bs(t))l.forEach(((t,e)=>{("length"===e||e>=o)&&i(t)}));else switch(void 0!==n&&i(l.get(n)),e){case"add":Bs(t)?Gs(n)&&i(l.get("length")):(i(l.get(tl)),Vs(t)&&i(l.get(el)));break;case"delete":Bs(t)||(i(l.get(tl)),Vs(t)&&i(l.get(el)));break;case"set":Vs(t)&&i(l.get(tl))}c.forEach((t=>{t.options.scheduler?t.options.scheduler(t):t()}))}const fl=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(Ks)),pl=gl(),dl=gl(!1,!0),hl=gl(!0),_l=gl(!0,!0),vl={};function gl(t=!1,e=!1){return function(n,o,r){if("__v_isReactive"===o)return!t;if("__v_isReadonly"===o)return t;if("__v_raw"===o&&r===(t?Vl:Bl).get(n))return n;const s=Bs(n);if(!t&&s&&zs(vl,o))return Reflect.get(vl,o,r);const l=Reflect.get(n,o,r);if(Ks(o)?fl.has(o):"__proto__"===o||"__v_isRef"===o)return l;if(t||al(n,0,o),e)return l;if(Yl(l)){return!s||!Gs(o)?l.value:l}return qs(l)?t?Kl(l):Wl(l):l}}["includes","indexOf","lastIndexOf"].forEach((t=>{const e=Array.prototype[t];vl[t]=function(...t){const n=Ql(this);for(let e=0,r=this.length;e{const e=Array.prototype[t];vl[t]=function(...t){cl();const n=e.apply(this,t);return il(),n}}));function yl(t=!1){return function(e,n,o,r){const s=e[n];if(!t&&(o=Ql(o),!Bs(e)&&Yl(s)&&!Yl(o)))return s.value=o,!0;const l=Bs(e)&&Gs(n)?Number(n)!0,deleteProperty:(t,e)=>!0};Us({},bl,{get:dl,set:yl(!0)}),Us({},ml,{get:_l});const wl=t=>qs(t)?Wl(t):t,kl=t=>qs(t)?Kl(t):t,Sl=t=>t,xl=t=>Reflect.getPrototypeOf(t);function Rl(t,e,n=!1,o=!1){const r=Ql(t=t.__v_raw),s=Ql(e);e!==s&&!n&&al(r,0,e),!n&&al(r,0,s);const{has:l}=xl(r),c=n?kl:o?Sl:wl;return l.call(r,e)?c(t.get(e)):l.call(r,s)?c(t.get(s)):void 0}function Cl(t,e=!1){const n=this.__v_raw,o=Ql(n),r=Ql(t);return t!==r&&!e&&al(o,0,t),!e&&al(o,0,r),t===r?n.has(t):n.has(t)||n.has(r)}function El(t,e=!1){return t=t.__v_raw,!e&&al(Ql(t),0,tl),Reflect.get(t,"size",t)}function Ol(t){t=Ql(t);const e=Ql(this),n=xl(e).has.call(e,t);return e.add(t),n||ul(e,"add",t,t),this}function jl(t,e){e=Ql(e);const n=Ql(this),{has:o,get:r}=xl(n);let s=o.call(n,t);s||(t=Ql(t),s=o.call(n,t));const l=r.call(n,t);return n.set(t,e),s?Qs(e,l)&&ul(n,"set",t,e):ul(n,"add",t,e),this}function $l(t){const e=Ql(this),{has:n,get:o}=xl(e);let r=n.call(e,t);r||(t=Ql(t),r=n.call(e,t)),o&&o.call(e,t);const s=e.delete(t);return r&&ul(e,"delete",t,void 0),s}function Pl(){const t=Ql(this),e=0!==t.size,n=t.clear();return e&&ul(t,"clear",void 0,void 0),n}function Fl(t,e){return function(n,o){const r=this,s=r.__v_raw,l=Ql(s),c=t?kl:e?Sl:wl;return!t&&al(l,0,tl),s.forEach(((t,e)=>n.call(o,c(t),c(e),r)))}}function Il(t,e,n){return function(...o){const r=this.__v_raw,s=Ql(r),l=Vs(s),c="entries"===t||t===Symbol.iterator&&l,i="keys"===t&&l,a=r[t](...o),u=e?kl:n?Sl:wl;return!e&&al(s,0,i?el:tl),{next(){const{value:t,done:e}=a.next();return e?{value:t,done:e}:{value:c?[u(t[0]),u(t[1])]:u(t),done:e}},[Symbol.iterator](){return this}}}}function Ml(t){return function(...e){return"delete"!==t&&this}}const Al={get(t){return Rl(this,t)},get size(){return El(this)},has:Cl,add:Ol,set:jl,delete:$l,clear:Pl,forEach:Fl(!1,!1)},Nl={get(t){return Rl(this,t,!1,!0)},get size(){return El(this)},has:Cl,add:Ol,set:jl,delete:$l,clear:Pl,forEach:Fl(!1,!0)},Tl={get(t){return Rl(this,t,!0)},get size(){return El(this,!0)},has(t){return Cl.call(this,t,!0)},add:Ml("add"),set:Ml("set"),delete:Ml("delete"),clear:Ml("clear"),forEach:Fl(!0,!1)};function Ul(t,e){const n=e?Nl:t?Tl:Al;return(e,o,r)=>"__v_isReactive"===o?!t:"__v_isReadonly"===o?t:"__v_raw"===o?e:Reflect.get(zs(n,o)&&o in e?n:e,o,r)}["keys","values","entries",Symbol.iterator].forEach((t=>{Al[t]=Il(t,!1,!1),Tl[t]=Il(t,!0,!1),Nl[t]=Il(t,!1,!0)}));const Dl={get:Ul(!1,!1)},zl={get:Ul(!0,!1)},Bl=new WeakMap,Vl=new WeakMap;function Ll(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>Hs(t).slice(8,-1))(t))}function Wl(t){return t&&t.__v_isReadonly?t:ql(t,!1,bl,Dl)}function Kl(t){return ql(t,!0,ml,zl)}function ql(t,e,n,o){if(!qs(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const r=e?Vl:Bl,s=r.get(t);if(s)return s;const l=Ll(t);if(0===l)return t;const c=new Proxy(t,2===l?o:n);return r.set(t,c),c}function Jl(t){return Hl(t)?Jl(t.__v_raw):!(!t||!t.__v_isReactive)}function Hl(t){return!(!t||!t.__v_isReadonly)}function Gl(t){return Jl(t)||Hl(t)}function Ql(t){return t&&Ql(t.__v_raw)||t}const Xl=t=>qs(t)?Wl(t):t;function Yl(t){return Boolean(t&&!0===t.__v_isRef)}function Zl(t){return function(t,e=!1){if(Yl(t))return t;return new tc(t,e)}(t)}class tc{constructor(t,e=!1){this._rawValue=t,this._shallow=e,this.__v_isRef=!0,this._value=e?t:Xl(t)}get value(){return al(Ql(this),0,"value"),this._value}set value(t){Qs(Ql(t),this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:Xl(t),ul(Ql(this),"set","value",t))}}class ec{constructor(t,e,n){this._setter=e,this._dirty=!0,this.__v_isRef=!0,this.effect=nl(t,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,ul(Ql(this),"set","value"))}}),this.__v_isReadonly=n}get value(){return this._dirty&&(this._value=this.effect(),this._dirty=!1),al(Ql(this),0,"value"),this._value}set value(t){this._setter(t)}}function nc(t,e,n,o){let r;try{r=o?t(...o):t()}catch(s){rc(s,e,n)}return r}function oc(t,e,n,o){if(Ls(t)){const s=nc(t,e,n,o);return s&&(qs(r=s)&&Ls(r.then)&&Ls(r.catch))&&s.catch((t=>{rc(t,e,n)})),s}var r;const s=[];for(let l=0;lnull==t.id?1/0:t.id;function Sc(t){lc=!1,sc=!0,wc(t),cc.sort(((t,e)=>kc(t)-kc(e)));try{for(ic=0;ickc(t)-kc(e))),hc=0;hcRc+=t;const Ec=(t=>(e,n=ti)=>function(t,e,n=ti,o=!1){if(n){const r=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;cl(),ei(n);const r=oc(e,n,t,o);return ei(null),il(),r});return o?r.unshift(s):r.push(s),s}}(t,e,n))("m"),Oc={};function jc(t,e,n){return $c(t,e,n)}function $c(t,e,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:l}=Ms,c=ti){let i,a,u=!1;if(Yl(t)?(i=()=>t.value,u=!!t._shallow):Jl(t)?(i=()=>t,o=!0):i=Bs(t)?()=>t.map((t=>Yl(t)?t.value:Jl(t)?Fc(t):Ls(t)?nc(t,c,2):void 0)):Ls(t)?e?()=>nc(t,c,2):()=>{if(!c||!c.isUnmounted)return a&&a(),nc(t,c,3,[f])}:As,e&&o){const t=i;i=()=>Fc(t())}const f=t=>{a=_.options.onStop=()=>{nc(t,c,4)}};let p=Bs(t)?[]:Oc;const d=()=>{if(_.active)if(e){const t=_();(o||u||Qs(t,p))&&(a&&a(),oc(e,c,3,[t,p===Oc?void 0:p,f]),p=t)}else _()};let h;d.allowRecurse=!!e,h="sync"===r?d:"post"===r?()=>Nc(d,c&&c.suspense):()=>{!c||c.isMounted?function(t){mc(t,uc,ac,fc)}(d):d()};const _=nl(i,{lazy:!0,onTrack:s,onTrigger:l,scheduler:h});return ni(_,c),e?n?d():p=_():"post"===r?Nc(_,c&&c.suspense):_(),()=>{var t;(t=_).active&&(rl(t),t.options.onStop&&t.options.onStop(),t.active=!1),c&&((t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)})(c.effects,_)}}function Pc(t,e,n){const o=this.proxy;return $c(Ws(t)?()=>o[t]:t.bind(o),e.bind(o),n,this)}function Fc(t,e=new Set){if(!qs(t)||e.has(t))return t;if(e.add(t),Yl(t))Fc(t.value,e);else if(Bs(t))for(let n=0;n{Fc(t,e)}));else for(const n in t)Fc(t[n],e);return t}function Ic(t){return Ls(t)?{setup:t,name:t.name}:t}function Mc(t){Ls(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:l=!0,onError:c}=t;let i,a=null,u=0;const f=()=>{let t;return a||(t=a=e().catch((t=>{if(t=t instanceof Error?t:new Error(String(t)),c)return new Promise(((e,n)=>{c(t,(()=>e((u++,a=null,f()))),(()=>n(t)),u+1)}));throw t})).then((e=>t!==a&&a?a:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),i=e,e))))};return Ic({__asyncLoader:f,name:"AsyncComponentWrapper",setup(){const t=ti;if(i)return()=>Ac(i,t);const e=e=>{a=null,rc(e,t,13,!o)};if(l&&t.suspense)return f().then((e=>()=>Ac(e,t))).catch((t=>(e(t),()=>o?Wc(o,{error:t}):null)));const c=Zl(!1),u=Zl(),p=Zl(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=s&&setTimeout((()=>{if(!c.value&&!u.value){const t=new Error(`Async component timed out after ${s}ms.`);e(t),u.value=t}}),s),f().then((()=>{c.value=!0})).catch((t=>{e(t),u.value=t})),()=>c.value&&i?Ac(i,t):u.value&&o?Wc(o,{error:u.value}):n&&!p.value?Wc(n):void 0}})}function Ac(t,{vnode:{ref:e,props:n,children:o}}){const r=Wc(t,n,o);return r.ref=e,r}const Nc=function(t,e){e&&e.pendingBranch?Bs(t)?e.effects.push(...t):e.effects.push(t):mc(t,dc,pc,hc)},Tc=Symbol(),Uc=Symbol(void 0),Dc=Symbol(void 0),zc=Symbol(void 0);function Bc(t){return!!t&&!0===t.__v_isVNode}const Vc=({key:t})=>null!=t?t:null,Lc=({ref:t})=>null!=t?Ws(t)||Yl(t)||Ls(t)?{i:null,r:t}:t:null,Wc=function(t,e=null,n=null,o=0,r=null,s=!1){t&&t!==Tc||(t=zc);if(Bc(t)){const o=Kc(t,e,!0);return n&&Hc(o,n),o}l=t,Ls(l)&&"__vccOpts"in l&&(t=t.__vccOpts);var l;if(e){(Gl(e)||"__vInternal"in e)&&(e=Us({},e));let{class:t,style:n}=e;t&&!Ws(t)&&(e.class=Is(t)),qs(n)&&(Gl(n)&&!Bs(n)&&(n=Us({},n)),e.style=js(n))}const c=Ws(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:qs(t)?4:Ls(t)?2:0,i={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Vc(e),ref:e&&Lc(e),scopeId:null,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};if(Hc(i,n),128&c){const{content:t,fallback:e}=function(t){const{shapeFlag:e,children:n}=t;let o,r;return 32&e?(o=xc(n.default),r=xc(n.fallback)):(o=xc(n),r=Jc(null)),{content:o,fallback:r}}(i);i.ssContent=t,i.ssFallback=e}0;return i};function Kc(t,e,n=!1){const{props:o,ref:r,patchFlag:s}=t,l=e?Gc(o||{},e):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&Vc(l),ref:e&&e.ref?n&&r?Bs(r)?r.concat(Lc(e)):[r,Lc(e)]:Lc(e):r,scopeId:t.scopeId,children:t.children,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Uc?-1===s?16:16|s:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Kc(t.ssContent),ssFallback:t.ssFallback&&Kc(t.ssFallback),el:t.el,anchor:t.anchor}}function qc(t=" ",e=0){return Wc(Dc,null,t,e)}function Jc(t){return null==t||"boolean"==typeof t?Wc(zc):Bs(t)?Wc(Uc,null,t):"object"==typeof t?null===t.el?t:Kc(t):Wc(Dc,null,String(t))}function Hc(t,e){let n=0;const{shapeFlag:o}=t;if(null==e)e=null;else if(Bs(e))n=16;else if("object"==typeof e){if(1&o||64&o){const n=e.default;return void(n&&(n._c&&Cc(1),Hc(t,n()),n._c&&Cc(-1)))}{n=32;const t=e._;t||"__vInternal"in e||(e._ctx=null)}}else Ls(e)?(e={default:e,_ctx:null},n=32):(e=String(e),64&o?(n=16,e=[qc(e)]):n=8);t.children=e,t.shapeFlag|=n}function Gc(...t){const e=Us({},t[0]);for(let n=1;nQc(t,e,n)));for(const l in e)o&&zs(o,l)?t[l]=o[l](t[l],e[l],n.proxy,l):t[l]=e[l]}const Xc=t=>t&&(t.proxy?t.proxy:Xc(t.parent)),Yc=Us(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Xc(t.parent),$root:t=>t.root&&t.root.proxy,$emit:t=>t.emit,$options:t=>function(t){const e=t.type,{__merged:n,mixins:o,extends:r}=e;if(n)return n;const s=t.appContext.mixins;if(!s.length&&!o&&!r)return e;const l={};return s.forEach((e=>Qc(l,e,t))),Qc(l,e,t),e.__merged=l}(t),$forceUpdate:t=>()=>{return e=t.update,void(cc.length&&cc.includes(e,sc&&e.allowRecurse?ic+1:ic)||e===gc||(cc.push(e),bc()));var e},$nextTick:t=>yc.bind(t.proxy),$watch:t=>Pc.bind(t)}),Zc={get({_:t},e){const{ctx:n,setupState:o,data:r,props:s,accessCache:l,type:c,appContext:i}=t;if("__v_skip"===e)return!0;let a;if("$"!==e[0]){const c=l[e];if(void 0!==c)switch(c){case 0:return o[e];case 1:return r[e];case 3:return n[e];case 2:return s[e]}else{if(o!==Ms&&zs(o,e))return l[e]=0,o[e];if(r!==Ms&&zs(r,e))return l[e]=1,r[e];if((a=t.propsOptions[0])&&zs(a,e))return l[e]=2,s[e];if(n!==Ms&&zs(n,e))return l[e]=3,n[e];l[e]=4}}const u=Yc[e];let f,p;return u?("$attrs"===e&&al(t,0,e),u(t)):(f=c.__cssModules)&&(f=f[e])?f:n!==Ms&&zs(n,e)?(l[e]=3,n[e]):(p=i.config.globalProperties,zs(p,e)?p[e]:void 0)},set({_:t},e,n){const{data:o,setupState:r,ctx:s}=t;if(r!==Ms&&zs(r,e))r[e]=n;else if(o!==Ms&&zs(o,e))o[e]=n;else if(e in t.props)return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:o,appContext:r,propsOptions:s}},l){let c;return void 0!==n[l]||t!==Ms&&zs(t,l)||e!==Ms&&zs(e,l)||(c=s[0])&&zs(c,l)||zs(o,l)||zs(Yc,l)||zs(r.config.globalProperties,l)}};Us({},Zc,{get(t,e){if(e!==Symbol.unscopables)return Zc.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!Os(e)});let ti=null;const ei=t=>{ti=t};function ni(t,e=ti){e&&(e.effects||(e.effects=[])).push(t)}function oi(t){const e=function(t){let e,n;return Ls(t)?(e=t,n=As):(e=t.get,n=t.set),new ec(e,n,Ls(t)||!t.set)}(t);return ni(e.effect),e}const ri=()=>({value:"",align:"left"});var si={name:"sb-paragraph",getDefaultData:ri,edit:Mc((()=>gn((()=>__import__("./edit.5ae242b9.js")),["/assets/edit.5ae242b9.js","/assets/style.3e24e605.css","/assets/vendor.9babb3f5.js"]))),display:Mc((()=>gn((()=>__import__("./display.6be413a8.js")),["/assets/display.6be413a8.js","/assets/style.3e24e605.css","/assets/vendor.9babb3f5.js"])))};function li(t,e){const n=Object.create(null),o=t.split(",");for(let r=0;r!!n[t.toLowerCase()]:t=>!!n[t]}const ci=li("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl");function ii(t){if(mi(t)){const e={};for(let n=0;n{if(t){const n=t.split(ui);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function pi(t){let e="";if(Si(t))e=t;else if(mi(t))for(let n=0;n{},_i=/^on[^a-z]/,vi=t=>_i.test(t),gi=Object.assign,yi=Object.prototype.hasOwnProperty,bi=(t,e)=>yi.call(t,e),mi=Array.isArray,wi=t=>"[object Map]"===Ei(t),ki=t=>"function"==typeof t,Si=t=>"string"==typeof t,xi=t=>"symbol"==typeof t,Ri=t=>null!==t&&"object"==typeof t,Ci=Object.prototype.toString,Ei=t=>Ci.call(t),Oi=t=>Si(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,ji=(t,e)=>t!==e&&(t==t||e==e),$i=new WeakMap,Pi=[];let Fi;const Ii=Symbol(""),Mi=Symbol("");function Ai(t,e=di){(function(t){return t&&!0===t._isEffect})(t)&&(t=t.raw);const n=function(t,e){const n=function(){if(!n.active)return e.scheduler?void 0:t();if(!Pi.includes(n)){Ti(n);try{return Di.push(Ui),Ui=!0,Pi.push(n),Fi=n,t()}finally{Pi.pop(),zi(),Fi=Pi[Pi.length-1]}}};return n.id=Ni++,n.allowRecurse=!!e.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=t,n.deps=[],n.options=e,n}(t,e);return e.lazy||n(),n}let Ni=0;function Ti(t){const{deps:e}=t;if(e.length){for(let n=0;n{t&&t.forEach((t=>{(t!==Fi||t.allowRecurse)&&c.add(t)}))};if("clear"===e)l.forEach(i);else if("length"===n&&mi(t))l.forEach(((t,e)=>{("length"===e||e>=o)&&i(t)}));else switch(void 0!==n&&i(l.get(n)),e){case"add":mi(t)?Oi(n)&&i(l.get("length")):(i(l.get(Ii)),wi(t)&&i(l.get(Mi)));break;case"delete":mi(t)||(i(l.get(Ii)),wi(t)&&i(l.get(Mi)));break;case"set":wi(t)&&i(l.get(Ii))}c.forEach((t=>{t.options.scheduler?t.options.scheduler(t):t()}))}const Li=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(xi)),Wi=Gi(),Ki=Gi(!1,!0),qi=Gi(!0),Ji=Gi(!0,!0),Hi={};function Gi(t=!1,e=!1){return function(n,o,r){if("__v_isReactive"===o)return!t;if("__v_isReadonly"===o)return t;if("__v_raw"===o&&r===(t?ma:ba).get(n))return n;const s=mi(n);if(!t&&s&&bi(Hi,o))return Reflect.get(Hi,o,r);const l=Reflect.get(n,o,r);if(xi(o)?Li.has(o):"__proto__"===o||"__v_isRef"===o)return l;if(t||Bi(n,0,o),e)return l;if($a(l)){return!s||!Oi(o)?l.value:l}return Ri(l)?t?Sa(l):ka(l):l}}["includes","indexOf","lastIndexOf"].forEach((t=>{const e=Array.prototype[t];Hi[t]=function(...t){const n=Oa(this);for(let e=0,r=this.length;e{const e=Array.prototype[t];Hi[t]=function(...t){Di.push(Ui),Ui=!1;const n=e.apply(this,t);return zi(),n}}));function Qi(t=!1){return function(e,n,o,r){const s=e[n];if(!t&&(o=Oa(o),!mi(e)&&$a(s)&&!$a(o)))return s.value=o,!0;const l=mi(e)&&Oi(n)?Number(n)!0,deleteProperty:(t,e)=>!0};gi({},Xi,{get:Ki,set:Qi(!0)}),gi({},Yi,{get:Ji});const Zi=t=>Ri(t)?ka(t):t,ta=t=>Ri(t)?Sa(t):t,ea=t=>t,na=t=>Reflect.getPrototypeOf(t);function oa(t,e,n=!1,o=!1){const r=Oa(t=t.__v_raw),s=Oa(e);e!==s&&!n&&Bi(r,0,e),!n&&Bi(r,0,s);const{has:l}=na(r),c=n?ta:o?ea:Zi;return l.call(r,e)?c(t.get(e)):l.call(r,s)?c(t.get(s)):void 0}function ra(t,e=!1){const n=this.__v_raw,o=Oa(n),r=Oa(t);return t!==r&&!e&&Bi(o,0,t),!e&&Bi(o,0,r),t===r?n.has(t):n.has(t)||n.has(r)}function sa(t,e=!1){return t=t.__v_raw,!e&&Bi(Oa(t),0,Ii),Reflect.get(t,"size",t)}function la(t){t=Oa(t);const e=Oa(this),n=na(e).has.call(e,t);return e.add(t),n||Vi(e,"add",t,t),this}function ca(t,e){e=Oa(e);const n=Oa(this),{has:o,get:r}=na(n);let s=o.call(n,t);s||(t=Oa(t),s=o.call(n,t));const l=r.call(n,t);return n.set(t,e),s?ji(e,l)&&Vi(n,"set",t,e):Vi(n,"add",t,e),this}function ia(t){const e=Oa(this),{has:n,get:o}=na(e);let r=n.call(e,t);r||(t=Oa(t),r=n.call(e,t)),o&&o.call(e,t);const s=e.delete(t);return r&&Vi(e,"delete",t,void 0),s}function aa(){const t=Oa(this),e=0!==t.size,n=t.clear();return e&&Vi(t,"clear",void 0,void 0),n}function ua(t,e){return function(n,o){const r=this,s=r.__v_raw,l=Oa(s),c=t?ta:e?ea:Zi;return!t&&Bi(l,0,Ii),s.forEach(((t,e)=>n.call(o,c(t),c(e),r)))}}function fa(t,e,n){return function(...o){const r=this.__v_raw,s=Oa(r),l=wi(s),c="entries"===t||t===Symbol.iterator&&l,i="keys"===t&&l,a=r[t](...o),u=e?ta:n?ea:Zi;return!e&&Bi(s,0,i?Mi:Ii),{next(){const{value:t,done:e}=a.next();return e?{value:t,done:e}:{value:c?[u(t[0]),u(t[1])]:u(t),done:e}},[Symbol.iterator](){return this}}}}function pa(t){return function(...e){return"delete"!==t&&this}}const da={get(t){return oa(this,t)},get size(){return sa(this)},has:ra,add:la,set:ca,delete:ia,clear:aa,forEach:ua(!1,!1)},ha={get(t){return oa(this,t,!1,!0)},get size(){return sa(this)},has:ra,add:la,set:ca,delete:ia,clear:aa,forEach:ua(!1,!0)},_a={get(t){return oa(this,t,!0)},get size(){return sa(this,!0)},has(t){return ra.call(this,t,!0)},add:pa("add"),set:pa("set"),delete:pa("delete"),clear:pa("clear"),forEach:ua(!0,!1)};function va(t,e){const n=e?ha:t?_a:da;return(e,o,r)=>"__v_isReactive"===o?!t:"__v_isReadonly"===o?t:"__v_raw"===o?e:Reflect.get(bi(n,o)&&o in e?n:e,o,r)}["keys","values","entries",Symbol.iterator].forEach((t=>{da[t]=fa(t,!1,!1),_a[t]=fa(t,!0,!1),ha[t]=fa(t,!1,!0)}));const ga={get:va(!1,!1)},ya={get:va(!0,!1)},ba=new WeakMap,ma=new WeakMap;function wa(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>Ei(t).slice(8,-1))(t))}function ka(t){return t&&t.__v_isReadonly?t:xa(t,!1,Xi,ga)}function Sa(t){return xa(t,!0,Yi,ya)}function xa(t,e,n,o){if(!Ri(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const r=e?ma:ba,s=r.get(t);if(s)return s;const l=wa(t);if(0===l)return t;const c=new Proxy(t,2===l?o:n);return r.set(t,c),c}function Ra(t){return Ca(t)?Ra(t.__v_raw):!(!t||!t.__v_isReactive)}function Ca(t){return!(!t||!t.__v_isReadonly)}function Ea(t){return Ra(t)||Ca(t)}function Oa(t){return t&&Oa(t.__v_raw)||t}const ja=t=>Ri(t)?ka(t):t;function $a(t){return Boolean(t&&!0===t.__v_isRef)}function Pa(t){return function(t,e=!1){if($a(t))return t;return new Fa(t,e)}(t)}class Fa{constructor(t,e=!1){this._rawValue=t,this._shallow=e,this.__v_isRef=!0,this._value=e?t:ja(t)}get value(){return Bi(Oa(this),0,"value"),this._value}set value(t){ji(Oa(t),this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:ja(t),Vi(Oa(this),"set","value",t))}}function Ia(t,e,n,o){let r;try{r=o?t(...o):t()}catch(s){Aa(s,e,n)}return r}function Ma(t,e,n,o){if(ki(t)){const s=Ia(t,e,n,o);return s&&(Ri(r=s)&&ki(r.then)&&ki(r.catch))&&s.catch((t=>{Aa(t,e,n)})),s}var r;const s=[];for(let l=0;lnull==t.id?1/0:t.id;function tu(t){Ta=!1,Na=!0,Ya(t),Ua.sort(((t,e)=>Za(t)-Za(e)));try{for(Da=0;DaZa(t)-Za(e))),Ka=0;Kanu+=t;const ru={};function su(t,e,n){return lu(t,e,n)}function lu(t,e,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:l}=di,c=ju){let i,a,u=!1;if($a(t)?(i=()=>t.value,u=!!t._shallow):Ra(t)?(i=()=>t,o=!0):i=mi(t)?()=>t.map((t=>$a(t)?t.value:Ra(t)?iu(t):ki(t)?Ia(t,c,2):void 0)):ki(t)?e?()=>Ia(t,c,2):()=>{if(!c||!c.isUnmounted)return a&&a(),Ia(t,c,3,[f])}:hi,e&&o){const t=i;i=()=>iu(t())}const f=t=>{a=_.options.onStop=()=>{Ia(t,c,4)}};let p=mi(t)?[]:ru;const d=()=>{if(_.active)if(e){const t=_();(o||u||ji(t,p))&&(a&&a(),Ma(e,c,3,[t,p===ru?void 0:p,f]),p=t)}else _()};let h;d.allowRecurse=!!e,h="sync"===r?d:"post"===r?()=>pu(d,c&&c.suspense):()=>{!c||c.isMounted?function(t){Xa(t,Ba,za,Va)}(d):d()};const _=Ai(i,{lazy:!0,onTrack:s,onTrigger:l,scheduler:h});return function(t,e=ju){e&&(e.effects||(e.effects=[])).push(t)}(_,c),e?n?d():p=_():"post"===r?pu(_,c&&c.suspense):_(),()=>{var t;(t=_).active&&(Ti(t),t.options.onStop&&t.options.onStop(),t.active=!1),c&&((t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)})(c.effects,_)}}function cu(t,e,n){const o=this.proxy;return lu(Si(t)?()=>o[t]:t.bind(o),e.bind(o),n,this)}function iu(t,e=new Set){if(!Ri(t)||e.has(t))return t;if(e.add(t),$a(t))iu(t.value,e);else if(mi(t))for(let n=0;n{iu(t,e)}));else for(const n in t)iu(t[n],e);return t}function au(t){return ki(t)?{setup:t,name:t.name}:t}function uu(t){ki(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:o,delay:r=200,timeout:s,suspensible:l=!0,onError:c}=t;let i,a=null,u=0;const f=()=>{let t;return a||(t=a=e().catch((t=>{if(t=t instanceof Error?t:new Error(String(t)),c)return new Promise(((e,n)=>{c(t,(()=>e((u++,a=null,f()))),(()=>n(t)),u+1)}));throw t})).then((e=>t!==a&&a?a:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),i=e,e))))};return au({__asyncLoader:f,name:"AsyncComponentWrapper",setup(){const t=ju;if(i)return()=>fu(i,t);const e=e=>{a=null,Aa(e,t,13,!o)};if(l&&t.suspense)return f().then((e=>()=>fu(e,t))).catch((t=>(e(t),()=>o?mu(o,{error:t}):null)));const c=Pa(!1),u=Pa(),p=Pa(!!r);return r&&setTimeout((()=>{p.value=!1}),r),null!=s&&setTimeout((()=>{if(!c.value&&!u.value){const t=new Error(`Async component timed out after ${s}ms.`);e(t),u.value=t}}),s),f().then((()=>{c.value=!0})).catch((t=>{e(t),u.value=t})),()=>c.value&&i?fu(i,t):u.value&&o?mu(o,{error:u.value}):n&&!p.value?mu(n):void 0}})}function fu(t,{vnode:{ref:e,props:n,children:o}}){const r=mu(t,n,o);return r.ref=e,r}const pu=function(t,e){e&&e.pendingBranch?mi(t)?e.effects.push(...t):e.effects.push(t):Xa(t,Wa,La,Ka)},du=Symbol(),hu=Symbol(void 0),_u=Symbol(void 0),vu=Symbol(void 0);function gu(t){return!!t&&!0===t.__v_isVNode}const yu=({key:t})=>null!=t?t:null,bu=({ref:t})=>null!=t?Si(t)||$a(t)||ki(t)?{i:null,r:t}:t:null,mu=function(t,e=null,n=null,o=0,r=null,s=!1){t&&t!==du||(t=vu);if(gu(t)){const o=wu(t,e,!0);return n&&xu(o,n),o}l=t,ki(l)&&"__vccOpts"in l&&(t=t.__vccOpts);var l;if(e){(Ea(e)||"__vInternal"in e)&&(e=gi({},e));let{class:t,style:n}=e;t&&!Si(t)&&(e.class=pi(t)),Ri(n)&&(Ea(n)&&!mi(n)&&(n=gi({},n)),e.style=ii(n))}const c=Si(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:Ri(t)?4:ki(t)?2:0,i={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&yu(e),ref:e&&bu(e),scopeId:null,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:c,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};if(xu(i,n),128&c){const{content:t,fallback:e}=function(t){const{shapeFlag:e,children:n}=t;let o,r;return 32&e?(o=eu(n.default),r=eu(n.fallback)):(o=eu(n),r=Su(null)),{content:o,fallback:r}}(i);i.ssContent=t,i.ssFallback=e}0;return i};function wu(t,e,n=!1){const{props:o,ref:r,patchFlag:s}=t,l=e?function(...t){const e=gi({},t[0]);for(let n=1;nRu(t,e,n)));for(const l in e)o&&bi(o,l)?t[l]=o[l](t[l],e[l],n.proxy,l):t[l]=e[l]}const Cu=t=>t&&(t.proxy?t.proxy:Cu(t.parent)),Eu=gi(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Cu(t.parent),$root:t=>t.root&&t.root.proxy,$emit:t=>t.emit,$options:t=>function(t){const e=t.type,{__merged:n,mixins:o,extends:r}=e;if(n)return n;const s=t.appContext.mixins;if(!s.length&&!o&&!r)return e;const l={};return s.forEach((e=>Ru(l,e,t))),Ru(l,e,t),e.__merged=l}(t),$forceUpdate:t=>()=>{return e=t.update,void(Ua.length&&Ua.includes(e,Na&&e.allowRecurse?Da+1:Da)||e===Ha||(Ua.push(e),Qa()));var e},$nextTick:t=>Ga.bind(t.proxy),$watch:t=>cu.bind(t)}),Ou={get({_:t},e){const{ctx:n,setupState:o,data:r,props:s,accessCache:l,type:c,appContext:i}=t;if("__v_skip"===e)return!0;let a;if("$"!==e[0]){const c=l[e];if(void 0!==c)switch(c){case 0:return o[e];case 1:return r[e];case 3:return n[e];case 2:return s[e]}else{if(o!==di&&bi(o,e))return l[e]=0,o[e];if(r!==di&&bi(r,e))return l[e]=1,r[e];if((a=t.propsOptions[0])&&bi(a,e))return l[e]=2,s[e];if(n!==di&&bi(n,e))return l[e]=3,n[e];l[e]=4}}const u=Eu[e];let f,p;return u?("$attrs"===e&&Bi(t,0,e),u(t)):(f=c.__cssModules)&&(f=f[e])?f:n!==di&&bi(n,e)?(l[e]=3,n[e]):(p=i.config.globalProperties,bi(p,e)?p[e]:void 0)},set({_:t},e,n){const{data:o,setupState:r,ctx:s}=t;if(r!==di&&bi(r,e))r[e]=n;else if(o!==di&&bi(o,e))o[e]=n;else if(e in t.props)return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:o,appContext:r,propsOptions:s}},l){let c;return void 0!==n[l]||t!==di&&bi(t,l)||e!==di&&bi(e,l)||(c=s[0])&&bi(c,l)||bi(o,l)||bi(Eu,l)||bi(r.config.globalProperties,l)}};gi({},Ou,{get(t,e){if(e!==Symbol.unscopables)return Ou.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!ci(e)});let ju=null;const $u=()=>({src:"",alt:"",description:{value:"",align:"left"}});var Pu={name:"sb-image",getDefaultData:$u,edit:uu((()=>gn((()=>__import__("./edit.20e0e14c.js")),["/assets/edit.20e0e14c.js","/assets/style.d3f26b5f.css","/assets/vendor.9babb3f5.js"]))),display:uu((()=>gn((()=>__import__("./display.f7737d43.js")),["/assets/display.f7737d43.js","/assets/style.d3f26b5f.css","/assets/vendor.9babb3f5.js"]))),getChildren:t=>[t.data.description]};a(n({name:"App",setup(){const t=o("edit"),e=r({name:"none",id:"0",data:null});s((async()=>{const t=await fetch("/initial-data.json"),n=await t.json();e.name=n.name,e.id=n.id,e.data=n.data}));const n=l((()=>{switch(t.value){case u.Edit:return c(mn,{block:e,onUpdate:t=>{e.data=t.data},customBlocks:[Rs,Cs,Pu,si],key:"edit",mode:u.Edit},null);case u.Display:return c(mn,{block:e,customBlocks:[Rs,Cs,Pu,si],key:"display",mode:u.Display},null);case"data":return c("pre",null,[c("code",null,[JSON.stringify(e,null,2)])])}}));return()=>c("div",{id:"app"},[c("select",{value:t.value,onChange:e=>{t.value=e.target.value}},[c("option",null,[i("edit")]),c("option",null,[i("display")]),c("option",null,[i("data")])]),c(n.value,null,null)])}})).mount("#app");export{$u as A,ka as B,Pa as C,su as D,mu as E,ku as F,hu as G,xe as H,Ae as I,Te as J,Jn as S,fs as a,h as b,Ss as c,ts as d,un as e,bn as f,xs as g,vs as h,Kn as i,qn as j,Ic as k,ri as l,d as m,Wl as n,Zl as o,Ec as p,jc as q,pr as r,oi as s,Wc as t,Ye as u,Hn as v,Qr as w,qc as x,Gc as y,au as z}; diff --git a/docs/index.html b/docs/index.html index e94ab01..aa4bb52 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2,12 +2,12 @@ - + Vite App - - - + + +
diff --git a/vite.config.js b/vite.config.js index cee531e..a5a9c6e 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,7 +1,7 @@ import vueJsx from '@vitejs/plugin-vue-jsx'; export default { - base: './', + base: '/schlechtenburg/', plugins: [ vueJsx({}), ],