ablok-components 0.1.140 → 0.1.141

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -323,7 +323,7 @@ const S3 = /* @__PURE__ */ NS(RS, [["render", PS]]), VS = ["type", "disabled"],
323
323
  };
324
324
  }
325
325
  });
326
- const GS = { class: "input-group input__input-group" }, WS = ["type", "id", "name", "placeholder", "pattern", "disabled", "read-only", "required", "maxlength", "true-value", "false-value", "aria-label", "role", "autocomplete"], $S = ["for", "innerHTML"], _3 = /* @__PURE__ */ LA({
326
+ const GS = { class: "input-group input__input-group" }, WS = ["type", "id", "name", "placeholder", "pattern", "disabled", "readonly", "required", "maxlength", "true-value", "false-value", "aria-label", "role", "autocomplete"], $S = ["for", "innerHTML"], _3 = /* @__PURE__ */ LA({
327
327
  __name: "base-input",
328
328
  props: {
329
329
  modelValue: {
@@ -413,7 +413,7 @@ const GS = { class: "input-group input__input-group" }, WS = ["type", "id", "nam
413
413
  placeholder: t.placeholder,
414
414
  pattern: t.pattern,
415
415
  disabled: t.disabled,
416
- "read-only": t.readOnly,
416
+ readonly: t.readOnly,
417
417
  required: t.required,
418
418
  maxlength: t.maxlength,
419
419
  "true-value": t.trueValue,
@@ -29117,7 +29117,7 @@ const X3 = /* @__PURE__ */ LA({
29117
29117
  whatsapp: !0,
29118
29118
  mailto: !0,
29119
29119
  clipboard: !0,
29120
- x: !0
29120
+ bluesky: !0
29121
29121
  }
29122
29122
  }
29123
29123
  },
@@ -29156,15 +29156,15 @@ const X3 = /* @__PURE__ */ LA({
29156
29156
  R("span", PG, be(a.$t("sharing.facebook")), 1)
29157
29157
  ], 8, KG)
29158
29158
  ])) : JA("", !0),
29159
- t.services.x ? (q(), Z("div", VG, [
29159
+ t.services.bluesky ? (q(), Z("div", VG, [
29160
29160
  R("a", {
29161
29161
  class: "link-sharing__link btn btn-primary",
29162
- href: `https://x.com/share?text=${t.subject}&url=${n.value}`,
29162
+ href: `https://bsky.app/intent/compose?text=${r.value}${r.value ? "%20" : ""}${t.url}`,
29163
29163
  target: "_blank",
29164
29164
  rel: "noopener"
29165
29165
  }, [
29166
- MA(c, { symbol: "x-logo" }),
29167
- R("span", WG, be(a.$t("sharing.x")), 1)
29166
+ MA(c, { symbol: "bluesky-logo" }),
29167
+ R("span", WG, be(a.$t("sharing.bluesky")), 1)
29168
29168
  ], 8, GG)
29169
29169
  ])) : JA("", !0),
29170
29170
  t.services.instagram ? (q(), Z("div", $G, [
@@ -1,4 +1,4 @@
1
- (function(IA,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("vue"),require("@popperjs/core")):typeof define=="function"&&define.amd?define(["exports","vue","@popperjs/core"],h):(IA=typeof globalThis<"u"?globalThis:IA||self,h(IA.AblokComponents={},IA.Vue,IA.core))})(this,function(IA,h,uh){"use strict";const fE={class:"icon",preserveAspectRatio:"xMaxYMin"},dE=["xlink:href"],hE=h.defineComponent({__name:"svg-icon",props:{basePath:{type:String,default:"/symbol-defs.svg"},prefix:{type:String,default:"icon-"},symbol:{type:String,default:""},size:{type:String,default:"default"}},setup(t){return(A,e)=>(h.openBlock(),h.createElementBlock("i",{class:h.normalizeClass(["svg-icon",{[`svg-icon--${t.size}`]:t.size}])},[(h.openBlock(),h.createElementBlock("svg",fE,[h.createElementVNode("use",{"xlink:href":`${t.basePath}#${t.prefix}${t.symbol}`,"xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0",y:"0"},null,8,dE)]))],2))}}),JG="",pE={class:"loading-spinner d-block"},gE=h.createElementVNode("span",{class:"loading-spinner__animation"},[h.createElementVNode("svg",{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 100"},[h.createElementVNode("path",{d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"},[h.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})])])],-1),BE=h.defineComponent({__name:"loading-spinner",props:{color:{type:String,default:"#fff"}},setup(t){return(A,e)=>(h.openBlock(),h.createElementBlock("span",pE,[gE,h.renderSlot(A.$slots,"default")]))}}),XG="",mE=["src","alt"],wE=h.defineComponent({__name:"base-image",props:{src:{type:String,default:'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>',required:!0},alt:{type:String,default:""},spinner:{type:Boolean,default:!1},zoom:{type:Boolean,default:!1}},setup(t){const A=h.ref(!1);return(e,n)=>{const r=h.resolveComponent("loading-spinner");return t.src?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(["base-image",{"base-image--zoom":t.zoom}])},[t.spinner&&!A.value?(h.openBlock(),h.createBlock(r,{key:0})):h.createCommentVNode("",!0),h.createElementVNode("img",{class:h.normalizeClass(["",{"opacity-0":!A.value,"opacity-1":A.value}]),src:t.src,alt:t.alt,onLoad:n[0]||(n[0]=()=>A.value=!0)},null,42,mE)],2)):h.createCommentVNode("",!0)}}}),YG="",CE=h.defineComponent({__name:"base-headline",props:{tag:{},size:{},variant:{},text:{},className:{}},setup(t){const A=t,e=h.computed(()=>A.tag||"p");return(n,r)=>(h.openBlock(),h.createBlock(h.resolveDynamicComponent(e.value),{class:h.normalizeClass(["headline",`${n.size} headline--${n.size}${n.className||""}`])},{default:h.withCtx(()=>[h.renderSlot(n.$slots,"default",{},()=>[h.createTextVNode(h.toDisplayString(n.text),1)])]),_:3},8,["class"]))}}),yE=["innerHTML"],EE=h.defineComponent({__name:"base-paragraph",props:{size:{},variant:{},text:{},className:{}},setup(t){return(A,e)=>(h.openBlock(),h.createElementBlock("p",{class:h.normalizeClass(["base-paragraph",`${A.size||""} ${A.className||""}`]),innerHTML:A.text},null,10,yE))}});function me(){return(new Date().valueOf()+Math.random()).toString(36).replace(".","")}const QE={class:"accordion-item"},FE=["id"],bE=["data-bs-target","aria-controls"],UE={class:"flex-grow-1"},vE=["id","aria-labelledby","data-bs-parent"],IE={class:"accordion-body"},SE=["innerHTML"],TE=h.defineComponent({__name:"accordion-item",props:{id:{type:String,default:()=>me()},modelValue:{type:Boolean,default:!1},title:{type:String,default:"Accordion Title"},body:{type:String,default:"<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nisi aut, nobis inventore repudiandae quo laboriosam. Dicta placeat ullam harum optio expedita. Harum fugiat suscipit sapiente quos, molestias neque eaque omnis?</p>"},parent:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A;function r(){n("update:modelValue",!e.modelValue)}return(i,s)=>(h.openBlock(),h.createElementBlock("div",QE,[h.createElementVNode("div",{class:"accordion-header",id:`heading${t.id}`},[h.createElementVNode("button",{class:h.normalizeClass(["accordion-button",!t.modelValue&&"collapsed"]),type:"button","data-bs-toggle":"collapse","data-bs-target":`#target${t.id}`,"aria-expanded":"true","aria-controls":`target${t.id}`,onClick:r},[h.renderSlot(i.$slots,"toggle",{},()=>[h.createElementVNode("span",UE,h.toDisplayString(t.title),1)])],10,bE)],8,FE),h.createElementVNode("div",{class:h.normalizeClass(["accordion-collapse collapse",t.modelValue&&"show"]),id:`target${t.id}`,"aria-labelledby":`heading${t.id}`,"data-bs-parent":t.parent},[h.createElementVNode("div",IE,[h.renderSlot(i.$slots,"body",{},()=>[h.createElementVNode("article",{innerHTML:t.body},null,8,SE)])])],10,vE)]))}}),zG="",_E=(t,A)=>{const e=t.__vccOpts||t;for(const[n,r]of A)e[n]=r;return e},xE={},OE={class:"accordion"};function LE(t,A){return h.openBlock(),h.createElementBlock("div",OE,[h.renderSlot(t.$slots,"default")])}const HE=_E(xE,[["render",LE]]),kE=["type","disabled"],DE=h.defineComponent({__name:"base-button",props:{type:{type:null},caption:{type:String},variant:{type:String},color:{type:String,default:"primary"},size:{type:String},icon:{type:String},disabled:{type:Boolean,default:!1},pending:{type:Boolean,default:!1},success:{type:Boolean,default:!1},error:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},circle:{type:Boolean,default:!1}},setup(t){const A=t,e=h.computed(()=>A.caption&&!A.circle);return(n,r)=>{const i=h.resolveComponent("loading-spinner"),s=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("button",{type:t.type,disabled:t.disabled,class:h.normalizeClass(["btn",{disabled:t.disabled,pending:t.pending,rounded:t.rounded,"rounded-circle":t.circle,[`btn-${t.color}`]:!t.outlined,[`btn-outline-${t.color}`]:t.outlined,"x-large":t.size==="x-large",large:t.size==="large",small:t.size==="small","x-small":t.size==="x-small"}])},[t.pending?h.renderSlot(n.$slots,"pending-icon",{key:0},()=>[h.createVNode(i)]):h.createCommentVNode("",!0),h.renderSlot(n.$slots,"default",{},()=>[t.icon?(h.openBlock(),h.createBlock(s,{key:0,symbol:t.icon,class:"base-button__caption"},null,8,["symbol"])):h.createCommentVNode("",!0),e.value?(h.openBlock(),h.createElementBlock("span",{key:1,class:h.normalizeClass(["base-button__caption",{"icon-padding":t.icon}])},h.toDisplayString(t.caption),3)):h.createCommentVNode("",!0)])],10,kE)}}}),qG="",NE={class:"input-group input__input-group"},ME=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","true-value","false-value","aria-label","role","autocomplete"],RE=["for","innerHTML"],KE=h.defineComponent({__name:"base-input",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},role:{type:String,default:"presentation"},autocomplete:{type:String,default:"off"}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=h.computed({get(){return e.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input",`input--${t.type}`])},[h.createElementVNode("div",NE,[h.renderSlot(i.$slots,"input-prepend",{slotScope:"props"}),h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:t.type==="color"?"text":t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength,"true-value":t.trueValue,"false-value":t.falseValue,class:h.normalizeClass(["form-control",{"form-check-input":t.type==="checkbox"}]),"aria-label":t.label,role:t.role,autocomplete:t.autocomplete},null,10,ME),[[h.vModelDynamic,r.value]]),h.renderSlot(i.$slots,"input-append",{slotScope:"props"})]),h.renderSlot(i.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id,class:h.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,RE)):h.createCommentVNode("",!0)])],2))}}),ZG="",PE={class:"input input--textarea"},VE=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","aria-label"],GE=["for","innerHTML"],WE=h.defineComponent({__name:"input-textarea",props:{modelValue:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},checked:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=h.computed({get(){return e.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",PE,[h.renderSlot(i.$slots,"input-prepend"),h.withDirectives(h.createElementVNode("textarea",{"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength,class:h.normalizeClass(["form-control",{}]),"aria-label":t.label},null,8,VE),[[h.vModelText,r.value]]),h.renderSlot(i.$slots,"input-append"),h.renderSlot(i.$slots,"label",{},()=>[h.createElementVNode("label",{for:t.id,class:h.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,GE)])]))}}),$E=["value","id","name","required","disabled","true-value","false-value"],JE=["for","innerHTML"],XE=h.createElementVNode("span",{class:"input__error"},"error",-1),YE=h.defineComponent({__name:"input-checkbox",props:{id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:[Boolean,Array]},value:{type:[String,Object]},checked:{type:Boolean},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1}},emits:["update:modelValue","update:checked"],setup(t,{emit:A}){const e=t,n=A,r=h.computed({get(){return e.modelValue||e.checked},set(i){n("update:checked",i),n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",{class:"form-check input input--checkbox",onClick:s[1]||(s[1]=h.withModifiers(a=>i.void,["stop"]))},[h.withDirectives(h.createElementVNode("input",{ref:"input","onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),value:t.value,id:t.id,name:t.name,type:"checkbox",required:t.required,disabled:t.disabled,class:"form-check-input","true-value":t.trueValue,"false-value":t.falseValue},null,8,$E),[[h.vModelCheckbox,r.value]]),h.createElementVNode("label",{class:"input__label form-check-label",for:t.id,innerHTML:t.label},null,8,JE),XE]))}}),jG=`:root,*:before,*:after{--border-color: #ced4da;--border-radius: .25rem}.input--checkbox{flex-flow:row;gap:.5rem}.input--checkbox input{order:0}
1
+ (function(IA,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("vue"),require("@popperjs/core")):typeof define=="function"&&define.amd?define(["exports","vue","@popperjs/core"],h):(IA=typeof globalThis<"u"?globalThis:IA||self,h(IA.AblokComponents={},IA.Vue,IA.core))})(this,function(IA,h,uh){"use strict";const fE={class:"icon",preserveAspectRatio:"xMaxYMin"},dE=["xlink:href"],hE=h.defineComponent({__name:"svg-icon",props:{basePath:{type:String,default:"/symbol-defs.svg"},prefix:{type:String,default:"icon-"},symbol:{type:String,default:""},size:{type:String,default:"default"}},setup(t){return(A,e)=>(h.openBlock(),h.createElementBlock("i",{class:h.normalizeClass(["svg-icon",{[`svg-icon--${t.size}`]:t.size}])},[(h.openBlock(),h.createElementBlock("svg",fE,[h.createElementVNode("use",{"xlink:href":`${t.basePath}#${t.prefix}${t.symbol}`,"xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0",y:"0"},null,8,dE)]))],2))}}),JG="",pE={class:"loading-spinner d-block"},gE=h.createElementVNode("span",{class:"loading-spinner__animation"},[h.createElementVNode("svg",{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 100"},[h.createElementVNode("path",{d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"},[h.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})])])],-1),BE=h.defineComponent({__name:"loading-spinner",props:{color:{type:String,default:"#fff"}},setup(t){return(A,e)=>(h.openBlock(),h.createElementBlock("span",pE,[gE,h.renderSlot(A.$slots,"default")]))}}),XG="",mE=["src","alt"],wE=h.defineComponent({__name:"base-image",props:{src:{type:String,default:'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>',required:!0},alt:{type:String,default:""},spinner:{type:Boolean,default:!1},zoom:{type:Boolean,default:!1}},setup(t){const A=h.ref(!1);return(e,n)=>{const r=h.resolveComponent("loading-spinner");return t.src?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(["base-image",{"base-image--zoom":t.zoom}])},[t.spinner&&!A.value?(h.openBlock(),h.createBlock(r,{key:0})):h.createCommentVNode("",!0),h.createElementVNode("img",{class:h.normalizeClass(["",{"opacity-0":!A.value,"opacity-1":A.value}]),src:t.src,alt:t.alt,onLoad:n[0]||(n[0]=()=>A.value=!0)},null,42,mE)],2)):h.createCommentVNode("",!0)}}}),YG="",CE=h.defineComponent({__name:"base-headline",props:{tag:{},size:{},variant:{},text:{},className:{}},setup(t){const A=t,e=h.computed(()=>A.tag||"p");return(n,r)=>(h.openBlock(),h.createBlock(h.resolveDynamicComponent(e.value),{class:h.normalizeClass(["headline",`${n.size} headline--${n.size}${n.className||""}`])},{default:h.withCtx(()=>[h.renderSlot(n.$slots,"default",{},()=>[h.createTextVNode(h.toDisplayString(n.text),1)])]),_:3},8,["class"]))}}),yE=["innerHTML"],EE=h.defineComponent({__name:"base-paragraph",props:{size:{},variant:{},text:{},className:{}},setup(t){return(A,e)=>(h.openBlock(),h.createElementBlock("p",{class:h.normalizeClass(["base-paragraph",`${A.size||""} ${A.className||""}`]),innerHTML:A.text},null,10,yE))}});function me(){return(new Date().valueOf()+Math.random()).toString(36).replace(".","")}const QE={class:"accordion-item"},FE=["id"],bE=["data-bs-target","aria-controls"],UE={class:"flex-grow-1"},vE=["id","aria-labelledby","data-bs-parent"],IE={class:"accordion-body"},SE=["innerHTML"],TE=h.defineComponent({__name:"accordion-item",props:{id:{type:String,default:()=>me()},modelValue:{type:Boolean,default:!1},title:{type:String,default:"Accordion Title"},body:{type:String,default:"<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nisi aut, nobis inventore repudiandae quo laboriosam. Dicta placeat ullam harum optio expedita. Harum fugiat suscipit sapiente quos, molestias neque eaque omnis?</p>"},parent:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A;function r(){n("update:modelValue",!e.modelValue)}return(i,s)=>(h.openBlock(),h.createElementBlock("div",QE,[h.createElementVNode("div",{class:"accordion-header",id:`heading${t.id}`},[h.createElementVNode("button",{class:h.normalizeClass(["accordion-button",!t.modelValue&&"collapsed"]),type:"button","data-bs-toggle":"collapse","data-bs-target":`#target${t.id}`,"aria-expanded":"true","aria-controls":`target${t.id}`,onClick:r},[h.renderSlot(i.$slots,"toggle",{},()=>[h.createElementVNode("span",UE,h.toDisplayString(t.title),1)])],10,bE)],8,FE),h.createElementVNode("div",{class:h.normalizeClass(["accordion-collapse collapse",t.modelValue&&"show"]),id:`target${t.id}`,"aria-labelledby":`heading${t.id}`,"data-bs-parent":t.parent},[h.createElementVNode("div",IE,[h.renderSlot(i.$slots,"body",{},()=>[h.createElementVNode("article",{innerHTML:t.body},null,8,SE)])])],10,vE)]))}}),zG="",_E=(t,A)=>{const e=t.__vccOpts||t;for(const[n,r]of A)e[n]=r;return e},xE={},OE={class:"accordion"};function LE(t,A){return h.openBlock(),h.createElementBlock("div",OE,[h.renderSlot(t.$slots,"default")])}const HE=_E(xE,[["render",LE]]),kE=["type","disabled"],DE=h.defineComponent({__name:"base-button",props:{type:{type:null},caption:{type:String},variant:{type:String},color:{type:String,default:"primary"},size:{type:String},icon:{type:String},disabled:{type:Boolean,default:!1},pending:{type:Boolean,default:!1},success:{type:Boolean,default:!1},error:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},circle:{type:Boolean,default:!1}},setup(t){const A=t,e=h.computed(()=>A.caption&&!A.circle);return(n,r)=>{const i=h.resolveComponent("loading-spinner"),s=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("button",{type:t.type,disabled:t.disabled,class:h.normalizeClass(["btn",{disabled:t.disabled,pending:t.pending,rounded:t.rounded,"rounded-circle":t.circle,[`btn-${t.color}`]:!t.outlined,[`btn-outline-${t.color}`]:t.outlined,"x-large":t.size==="x-large",large:t.size==="large",small:t.size==="small","x-small":t.size==="x-small"}])},[t.pending?h.renderSlot(n.$slots,"pending-icon",{key:0},()=>[h.createVNode(i)]):h.createCommentVNode("",!0),h.renderSlot(n.$slots,"default",{},()=>[t.icon?(h.openBlock(),h.createBlock(s,{key:0,symbol:t.icon,class:"base-button__caption"},null,8,["symbol"])):h.createCommentVNode("",!0),e.value?(h.openBlock(),h.createElementBlock("span",{key:1,class:h.normalizeClass(["base-button__caption",{"icon-padding":t.icon}])},h.toDisplayString(t.caption),3)):h.createCommentVNode("",!0)])],10,kE)}}}),qG="",NE={class:"input-group input__input-group"},ME=["type","id","name","placeholder","pattern","disabled","readonly","required","maxlength","true-value","false-value","aria-label","role","autocomplete"],RE=["for","innerHTML"],KE=h.defineComponent({__name:"base-input",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1},role:{type:String,default:"presentation"},autocomplete:{type:String,default:"off"}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=h.computed({get(){return e.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input",`input--${t.type}`])},[h.createElementVNode("div",NE,[h.renderSlot(i.$slots,"input-prepend",{slotScope:"props"}),h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:t.type==="color"?"text":t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,readonly:t.readOnly,required:t.required,maxlength:t.maxlength,"true-value":t.trueValue,"false-value":t.falseValue,class:h.normalizeClass(["form-control",{"form-check-input":t.type==="checkbox"}]),"aria-label":t.label,role:t.role,autocomplete:t.autocomplete},null,10,ME),[[h.vModelDynamic,r.value]]),h.renderSlot(i.$slots,"input-append",{slotScope:"props"})]),h.renderSlot(i.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id,class:h.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,RE)):h.createCommentVNode("",!0)])],2))}}),ZG="",PE={class:"input input--textarea"},VE=["type","id","name","placeholder","pattern","disabled","read-only","required","maxlength","aria-label"],GE=["for","innerHTML"],WE=h.defineComponent({__name:"input-textarea",props:{modelValue:{type:String,default:""},type:{type:String,default:"text"},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null},checked:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=h.computed({get(){return e.modelValue},set(i){n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",PE,[h.renderSlot(i.$slots,"input-prepend"),h.withDirectives(h.createElementVNode("textarea",{"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength,class:h.normalizeClass(["form-control",{}]),"aria-label":t.label},null,8,VE),[[h.vModelText,r.value]]),h.renderSlot(i.$slots,"input-append"),h.renderSlot(i.$slots,"label",{},()=>[h.createElementVNode("label",{for:t.id,class:h.normalizeClass(["input__label",{"form-check-label":t.type==="checkbox"}]),innerHTML:`${t.label}${t.required?" *":""}`},null,10,GE)])]))}}),$E=["value","id","name","required","disabled","true-value","false-value"],JE=["for","innerHTML"],XE=h.createElementVNode("span",{class:"input__error"},"error",-1),YE=h.defineComponent({__name:"input-checkbox",props:{id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:[Boolean,Array]},value:{type:[String,Object]},checked:{type:Boolean},trueValue:{type:null,default:!0},falseValue:{type:null,default:!1}},emits:["update:modelValue","update:checked"],setup(t,{emit:A}){const e=t,n=A,r=h.computed({get(){return e.modelValue||e.checked},set(i){n("update:checked",i),n("update:modelValue",i)}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",{class:"form-check input input--checkbox",onClick:s[1]||(s[1]=h.withModifiers(a=>i.void,["stop"]))},[h.withDirectives(h.createElementVNode("input",{ref:"input","onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),value:t.value,id:t.id,name:t.name,type:"checkbox",required:t.required,disabled:t.disabled,class:"form-check-input","true-value":t.trueValue,"false-value":t.falseValue},null,8,$E),[[h.vModelCheckbox,r.value]]),h.createElementVNode("label",{class:"input__label form-check-label",for:t.id,innerHTML:t.label},null,8,JE),XE]))}}),jG=`:root,*:before,*:after{--border-color: #ced4da;--border-radius: .25rem}.input--checkbox{flex-flow:row;gap:.5rem}.input--checkbox input{order:0}
2
2
  `,zE={class:"input-group input__input-group"},qE=["id","name","placeholder","pattern","disabled","read-only","required","aria-label"],ZE=["for","innerHTML"],jE=h.defineComponent({__name:"input-datetime",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=h.computed({get(){const i=e.modelValue&&new Date(`${e.modelValue}Z`),s=i&&new Date(i.getTime()+new Date().getTimezoneOffset()*-60*1e3).toISOString();return s&&s.replace("Z","")},set(i){const s=i&&new Date(i);i=s&&s.toISOString(),n("update:modelValue",i&&i.replace("Z",""))}});return(i,s)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input",`input--${t.type}`])},[h.createElementVNode("div",zE,[h.renderSlot(i.$slots,"input-prepend",{slotScope:"props"}),h.withDirectives(h.createElementVNode("input",{"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),type:"datetime-local",id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,disabled:t.disabled,"read-only":t.readOnly,required:t.required,class:"form-control","aria-label":t.label},null,8,qE),[[h.vModelText,r.value]]),h.renderSlot(i.$slots,"input-append",{slotScope:"props"})]),h.renderSlot(i.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id,class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,ZE)):h.createCommentVNode("",!0)])],2))}}),AQ={class:"check-group"},eQ=["id","name","value","disabled","read-only","required"],tQ=["for","innerHTML"],nQ=h.defineComponent({__name:"check-group",props:{modelValue:{type:null,default:()=>[]},options:{type:Array,required:!0},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},label:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A;h.ref([]);const r=h.computed({get(){return e.modelValue},set(s){n("update:modelValue",s)}}),i=h.computed(()=>e.options&&e.options.map(s=>(s=typeof s=="string"?{text:s,value:s}:s,{...s,active:e.modelValue&&e.modelValue.includes(s.value)})));return(s,a)=>(h.openBlock(),h.createElementBlock("div",AQ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(i.value,(c,u)=>(h.openBlock(),h.createElementBlock("div",{key:u,class:"form-check"},[h.withDirectives(h.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":a[0]||(a[0]=f=>r.value=f),id:`${t.id}-${u}`,name:t.name,class:"form-check-input",value:c.value||c,disabled:t.disabled,"read-only":t.readOnly,required:t.required},null,8,eQ),[[h.vModelCheckbox,r.value]]),h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${u}`,innerHTML:c.text},null,8,tQ)]))),128))]))}}),A3="",rQ={class:"input radio-group"},iQ=["id","name","value","checked","disabled","read-only","required","onChange"],sQ=["for","innerHTML"],oQ=["for"],aQ=h.defineComponent({__name:"radio-group",props:{modelValue:{default:!1},options:{type:Array,default:[]},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(t,{emit:A}){const e=t,n=A;h.ref(e.options.map(i=>i.value===e.modelValue));function r(i){console.log("asdfa",i),n("update:modelValue",i)}return h.onBeforeMount(()=>{}),(i,s)=>(h.openBlock(),h.createElementBlock("div",rQ,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.options,(a,c)=>(h.openBlock(),h.createElementBlock("div",{key:c,class:"form-check"},[h.createElementVNode("input",{type:"radio",id:`${t.id}-${c}`,name:t.name,class:"form-check-input",value:a.value||a,checked:a.value?a.value===t.modelValue:a===t.modelValue,disabled:t.disabled,"read-only":t.readOnly,required:t.required,onChange:u=>r(a)},null,40,iQ),h.createElementVNode("label",{class:"form-check-label",for:`${t.id}-${c}`,innerHTML:t.label},null,8,sQ)]))),128)),h.renderSlot(i.$slots,"label",{},()=>[t.label?(h.openBlock(),h.createElementBlock("label",{key:0,for:t.id},h.toDisplayString(t.label),9,oQ)):h.createCommentVNode("",!0)])]))}}),e3="",lQ=["id","name","multiple","accept","disabled"],cQ={class:"input__input-group input-group"},uQ=["value","id","name","disabled"],fQ=["for","disabled"],dQ=h.createElementVNode("span",{class:"btn btn-outline-dark"},"Select File",-1),hQ=["for"],pQ=["innerHTML"],gQ=h.defineComponent({__name:"input-file",props:{modelValue:{type:Array,default:[]},name:{type:String,default:()=>me()},id:{type:String,default:()=>me()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null},multiple:{type:Boolean,default:!1},accept:{type:String}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A;function r(c){const u=c.target&&c.target.files;u&&(s.splice(0,s.length),Array.from(u).forEach(f=>{s.push(f)}))}const i=h.ref(),s=h.reactive([]),a=h.computed(()=>s&&s.map(c=>c.name));return h.computed(()=>s.map(c=>URL.createObjectURL(c))),h.watch(()=>e.modelValue,(c,u)=>{c.length===0&&(i.value.value=null)},{deep:!0}),h.watch(()=>s,(c,u)=>{n("update:modelValue",c)},{deep:!0}),(c,u)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["input input-file","input-file--primary"])},[h.createElementVNode("input",{ref_key:"input",ref:i,type:"file",id:t.id,name:t.name,class:"d-none",onChange:r,multiple:t.multiple,accept:t.accept,disabled:t.disabled},null,40,lQ),h.createElementVNode("div",cQ,[h.renderSlot(c.$slots,"input-prepend"),h.createElementVNode("input",{type:"text",value:a.value,id:t.id,name:t.name,class:"form-control",disabled:t.disabled},null,8,uQ),h.renderSlot(c.$slots,"input-append",{},()=>[h.createElementVNode("label",{for:t.id,disabled:t.disabled},[h.renderSlot(c.$slots,"button",{},()=>[dQ])],8,fQ)])]),h.createElementVNode("label",{for:t.id},[h.renderSlot(c.$slots,"label",{},()=>[h.createElementVNode("span",{class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,pQ)])],8,hQ)]))}});function Me(t){this.content=t}Me.prototype={constructor:Me,find:function(t){for(var A=0;A<this.content.length;A+=2)if(this.content[A]===t)return A;return-1},get:function(t){var A=this.find(t);return A==-1?void 0:this.content[A+1]},update:function(t,A,e){var n=e&&e!=t?this.remove(e):this,r=n.find(t),i=n.content.slice();return r==-1?i.push(e||t,A):(i[r+1]=A,e&&(i[r]=e)),new Me(i)},remove:function(t){var A=this.find(t);if(A==-1)return this;var e=this.content.slice();return e.splice(A,2),new Me(e)},addToStart:function(t,A){return new Me([t,A].concat(this.remove(t).content))},addToEnd:function(t,A){var e=this.remove(t).content.slice();return e.push(t,A),new Me(e)},addBefore:function(t,A,e){var n=this.remove(A),r=n.content.slice(),i=n.find(t);return r.splice(i==-1?r.length:i,0,A,e),new Me(r)},forEach:function(t){for(var A=0;A<this.content.length;A+=2)t(this.content[A],this.content[A+1])},prepend:function(t){return t=Me.from(t),t.size?new Me(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Me.from(t),t.size?new Me(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var A=this;t=Me.from(t);for(var e=0;e<t.content.length;e+=2)A=A.remove(t.content[e]);return A},toObject:function(){var t={};return this.forEach(function(A,e){t[A]=e}),t},get size(){return this.content.length>>1}},Me.from=function(t){if(t instanceof Me)return t;var A=[];if(t)for(var e in t)A.push(e,t[e]);return new Me(A)};function fh(t,A,e){for(let n=0;;n++){if(n==t.childCount||n==A.childCount)return t.childCount==A.childCount?null:e;let r=t.child(n),i=A.child(n);if(r==i){e+=r.nodeSize;continue}if(!r.sameMarkup(i))return e;if(r.isText&&r.text!=i.text){for(let s=0;r.text[s]==i.text[s];s++)e++;return e}if(r.content.size||i.content.size){let s=fh(r.content,i.content,e+1);if(s!=null)return s}e+=r.nodeSize}}function dh(t,A,e,n){for(let r=t.childCount,i=A.childCount;;){if(r==0||i==0)return r==i?null:{a:e,b:n};let s=t.child(--r),a=A.child(--i),c=s.nodeSize;if(s==a){e-=c,n-=c;continue}if(!s.sameMarkup(a))return{a:e,b:n};if(s.isText&&s.text!=a.text){let u=0,f=Math.min(s.text.length,a.text.length);for(;u<f&&s.text[s.text.length-u-1]==a.text[a.text.length-u-1];)u++,e--,n--;return{a:e,b:n}}if(s.content.size||a.content.size){let u=dh(s.content,a.content,e-1,n-1);if(u)return u}e-=c,n-=c}}class Y{constructor(A,e){if(this.content=A,this.size=e||0,e==null)for(let n=0;n<A.length;n++)this.size+=A[n].nodeSize}nodesBetween(A,e,n,r=0,i){for(let s=0,a=0;a<e;s++){let c=this.content[s],u=a+c.nodeSize;if(u>A&&n(c,r+a,i||null,s)!==!1&&c.content.size){let f=a+1;c.nodesBetween(Math.max(0,A-f),Math.min(c.content.size,e-f),n,r+f)}a=u}}descendants(A){this.nodesBetween(0,this.size,A)}textBetween(A,e,n,r){let i="",s=!0;return this.nodesBetween(A,e,(a,c)=>{let u=a.isText?a.text.slice(Math.max(A,c)-c,e-c):a.isLeaf?r?typeof r=="function"?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&u||a.isTextblock)&&n&&(s?s=!1:i+=n),i+=u},0),i}append(A){if(!A.size)return this;if(!this.size)return A;let e=this.lastChild,n=A.firstChild,r=this.content.slice(),i=0;for(e.isText&&e.sameMarkup(n)&&(r[r.length-1]=e.withText(e.text+n.text),i=1);i<A.content.length;i++)r.push(A.content[i]);return new Y(r,this.size+A.size)}cut(A,e=this.size){if(A==0&&e==this.size)return this;let n=[],r=0;if(e>A)for(let i=0,s=0;s<e;i++){let a=this.content[i],c=s+a.nodeSize;c>A&&((s<A||c>e)&&(a.isText?a=a.cut(Math.max(0,A-s),Math.min(a.text.length,e-s)):a=a.cut(Math.max(0,A-s-1),Math.min(a.content.size,e-s-1))),n.push(a),r+=a.nodeSize),s=c}return new Y(n,r)}cutByIndex(A,e){return A==e?Y.empty:A==0&&e==this.content.length?this:new Y(this.content.slice(A,e))}replaceChild(A,e){let n=this.content[A];if(n==e)return this;let r=this.content.slice(),i=this.size+e.nodeSize-n.nodeSize;return r[A]=e,new Y(r,i)}addToStart(A){return new Y([A].concat(this.content),this.size+A.nodeSize)}addToEnd(A){return new Y(this.content.concat(A),this.size+A.nodeSize)}eq(A){if(this.content.length!=A.content.length)return!1;for(let e=0;e<this.content.length;e++)if(!this.content[e].eq(A.content[e]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(A){let e=this.content[A];if(!e)throw new RangeError("Index "+A+" out of range for "+this);return e}maybeChild(A){return this.content[A]||null}forEach(A){for(let e=0,n=0;e<this.content.length;e++){let r=this.content[e];A(r,n,e),n+=r.nodeSize}}findDiffStart(A,e=0){return fh(this,A,e)}findDiffEnd(A,e=this.size,n=A.size){return dh(this,A,e,n)}findIndex(A,e=-1){if(A==0)return ko(0,A);if(A==this.size)return ko(this.content.length,A);if(A>this.size||A<0)throw new RangeError(`Position ${A} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),s=r+i.nodeSize;if(s>=A)return s==A||e>0?ko(n+1,s):ko(n,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(A=>A.toJSON()):null}static fromJSON(A,e){if(!e)return Y.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new Y(e.map(A.nodeFromJSON))}static fromArray(A){if(!A.length)return Y.empty;let e,n=0;for(let r=0;r<A.length;r++){let i=A[r];n+=i.nodeSize,r&&i.isText&&A[r-1].sameMarkup(i)?(e||(e=A.slice(0,r)),e[e.length-1]=i.withText(e[e.length-1].text+i.text)):e&&e.push(i)}return new Y(e||A,n)}static from(A){if(!A)return Y.empty;if(A instanceof Y)return A;if(Array.isArray(A))return this.fromArray(A);if(A.attrs)return new Y([A],A.nodeSize);throw new RangeError("Can not convert "+A+" to a Fragment"+(A.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Y.empty=new Y([],0);const gc={index:0,offset:0};function ko(t,A){return gc.index=t,gc.offset=A,gc}function Do(t,A){if(t===A)return!0;if(!(t&&typeof t=="object")||!(A&&typeof A=="object"))return!1;let e=Array.isArray(t);if(Array.isArray(A)!=e)return!1;if(e){if(t.length!=A.length)return!1;for(let n=0;n<t.length;n++)if(!Do(t[n],A[n]))return!1}else{for(let n in t)if(!(n in A)||!Do(t[n],A[n]))return!1;for(let n in A)if(!(n in t))return!1}return!0}let ZA=class ah{constructor(A,e){this.type=A,this.attrs=e}addToSet(A){let e,n=!1;for(let r=0;r<A.length;r++){let i=A[r];if(this.eq(i))return A;if(this.type.excludes(i.type))e||(e=A.slice(0,r));else{if(i.type.excludes(this.type))return A;!n&&i.type.rank>this.type.rank&&(e||(e=A.slice(0,r)),e.push(this),n=!0),e&&e.push(i)}}return e||(e=A.slice()),n||e.push(this),e}removeFromSet(A){for(let e=0;e<A.length;e++)if(this.eq(A[e]))return A.slice(0,e).concat(A.slice(e+1));return A}isInSet(A){for(let e=0;e<A.length;e++)if(this.eq(A[e]))return!0;return!1}eq(A){return this==A||this.type==A.type&&Do(this.attrs,A.attrs)}toJSON(){let A={type:this.type.name};for(let e in this.attrs){A.attrs=this.attrs;break}return A}static fromJSON(A,e){if(!e)throw new RangeError("Invalid input for Mark.fromJSON");let n=A.marks[e.type];if(!n)throw new RangeError(`There is no mark type ${e.type} in this schema`);return n.create(e.attrs)}static sameSet(A,e){if(A==e)return!0;if(A.length!=e.length)return!1;for(let n=0;n<A.length;n++)if(!A[n].eq(e[n]))return!1;return!0}static setFrom(A){if(!A||Array.isArray(A)&&A.length==0)return ah.none;if(A instanceof ah)return[A];let e=A.slice();return e.sort((n,r)=>n.type.rank-r.type.rank),e}};ZA.none=[];class No extends Error{}class j{constructor(A,e,n){this.content=A,this.openStart=e,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(A,e){let n=ph(this.content,A+this.openStart,e);return n&&new j(n,this.openStart,this.openEnd)}removeBetween(A,e){return new j(hh(this.content,A+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(A){return this.content.eq(A.content)&&this.openStart==A.openStart&&this.openEnd==A.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let A={content:this.content.toJSON()};return this.openStart>0&&(A.openStart=this.openStart),this.openEnd>0&&(A.openEnd=this.openEnd),A}static fromJSON(A,e){if(!e)return j.empty;let n=e.openStart||0,r=e.openEnd||0;if(typeof n!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new j(Y.fromJSON(A,e.content),n,r)}static maxOpen(A,e=!0){let n=0,r=0;for(let i=A.firstChild;i&&!i.isLeaf&&(e||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=A.lastChild;i&&!i.isLeaf&&(e||!i.type.spec.isolating);i=i.lastChild)r++;return new j(A,n,r)}}j.empty=new j(Y.empty,0,0);function hh(t,A,e){let{index:n,offset:r}=t.findIndex(A),i=t.maybeChild(n),{index:s,offset:a}=t.findIndex(e);if(r==A||i.isText){if(a!=e&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,A).append(t.cut(e))}if(n!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(n,i.copy(hh(i.content,A-r-1,e-r-1)))}function ph(t,A,e,n){let{index:r,offset:i}=t.findIndex(A),s=t.maybeChild(r);if(i==A||s.isText)return n&&!n.canReplace(r,r,e)?null:t.cut(0,A).append(e).append(t.cut(A));let a=ph(s.content,A-i-1,e);return a&&t.replaceChild(r,s.copy(a))}function BQ(t,A,e){if(e.openStart>t.depth)throw new No("Inserted content deeper than insertion position");if(t.depth-e.openStart!=A.depth-e.openEnd)throw new No("Inconsistent open depths");return gh(t,A,e,0)}function gh(t,A,e,n){let r=t.index(n),i=t.node(n);if(r==A.index(n)&&n<t.depth-e.openStart){let s=gh(t,A,e,n+1);return i.copy(i.content.replaceChild(r,s))}else if(e.content.size)if(!e.openStart&&!e.openEnd&&t.depth==n&&A.depth==n){let s=t.parent,a=s.content;return Gr(s,a.cut(0,t.parentOffset).append(e.content).append(a.cut(A.parentOffset)))}else{let{start:s,end:a}=mQ(e,t);return Gr(i,mh(t,s,a,A,n))}else return Gr(i,Mo(t,A,n))}function Bh(t,A){if(!A.type.compatibleContent(t.type))throw new No("Cannot join "+A.type.name+" onto "+t.type.name)}function Bc(t,A,e){let n=t.node(e);return Bh(n,A.node(e)),n}function Vr(t,A){let e=A.length-1;e>=0&&t.isText&&t.sameMarkup(A[e])?A[e]=t.withText(A[e].text+t.text):A.push(t)}function Qs(t,A,e,n){let r=(A||t).node(e),i=0,s=A?A.index(e):r.childCount;t&&(i=t.index(e),t.depth>e?i++:t.textOffset&&(Vr(t.nodeAfter,n),i++));for(let a=i;a<s;a++)Vr(r.child(a),n);A&&A.depth==e&&A.textOffset&&Vr(A.nodeBefore,n)}function Gr(t,A){return t.type.checkContent(A),t.copy(A)}function mh(t,A,e,n,r){let i=t.depth>r&&Bc(t,A,r+1),s=n.depth>r&&Bc(e,n,r+1),a=[];return Qs(null,t,r,a),i&&s&&A.index(r)==e.index(r)?(Bh(i,s),Vr(Gr(i,mh(t,A,e,n,r+1)),a)):(i&&Vr(Gr(i,Mo(t,A,r+1)),a),Qs(A,e,r,a),s&&Vr(Gr(s,Mo(e,n,r+1)),a)),Qs(n,null,r,a),new Y(a)}function Mo(t,A,e){let n=[];if(Qs(null,t,e,n),t.depth>e){let r=Bc(t,A,e+1);Vr(Gr(r,Mo(t,A,e+1)),n)}return Qs(A,null,e,n),new Y(n)}function mQ(t,A){let e=A.depth-t.openStart,r=A.node(e).copy(t.content);for(let i=e-1;i>=0;i--)r=A.node(i).copy(Y.from(r));return{start:r.resolveNoCache(t.openStart+e),end:r.resolveNoCache(r.content.size-t.openEnd-e)}}class Fs{constructor(A,e,n){this.pos=A,this.path=e,this.parentOffset=n,this.depth=e.length/3-1}resolveDepth(A){return A==null?this.depth:A<0?this.depth+A:A}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(A){return this.path[this.resolveDepth(A)*3]}index(A){return this.path[this.resolveDepth(A)*3+1]}indexAfter(A){return A=this.resolveDepth(A),this.index(A)+(A==this.depth&&!this.textOffset?0:1)}start(A){return A=this.resolveDepth(A),A==0?0:this.path[A*3-1]+1}end(A){return A=this.resolveDepth(A),this.start(A)+this.node(A).content.size}before(A){if(A=this.resolveDepth(A),!A)throw new RangeError("There is no position before the top-level node");return A==this.depth+1?this.pos:this.path[A*3-1]}after(A){if(A=this.resolveDepth(A),!A)throw new RangeError("There is no position after the top-level node");return A==this.depth+1?this.pos:this.path[A*3-1]+this.path[A*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let A=this.parent,e=this.index(this.depth);if(e==A.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=A.child(e);return n?A.child(e).cut(n):r}get nodeBefore(){let A=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(A).cut(0,e):A==0?null:this.parent.child(A-1)}posAtIndex(A,e){e=this.resolveDepth(e);let n=this.path[e*3],r=e==0?0:this.path[e*3-1]+1;for(let i=0;i<A;i++)r+=n.child(i).nodeSize;return r}marks(){let A=this.parent,e=this.index();if(A.content.size==0)return ZA.none;if(this.textOffset)return A.child(e).marks;let n=A.maybeChild(e-1),r=A.maybeChild(e);if(!n){let a=n;n=r,r=a}let i=n.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!r||!i[s].isInSet(r.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(A){let e=this.parent.maybeChild(this.index());if(!e||!e.isInline)return null;let n=e.marks,r=A.parent.maybeChild(A.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(A){for(let e=this.depth;e>0;e--)if(this.start(e)<=A&&this.end(e)>=A)return e;return 0}blockRange(A=this,e){if(A.pos<this.pos)return A.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==A.pos?1:0);n>=0;n--)if(A.pos<=this.end(n)&&(!e||e(this.node(n))))return new Ro(this,A,n);return null}sameParent(A){return this.pos-this.parentOffset==A.pos-A.parentOffset}max(A){return A.pos>this.pos?A:this}min(A){return A.pos<this.pos?A:this}toString(){let A="";for(let e=1;e<=this.depth;e++)A+=(A?"/":"")+this.node(e).type.name+"_"+this.index(e-1);return A+":"+this.parentOffset}static resolve(A,e){if(!(e>=0&&e<=A.content.size))throw new RangeError("Position "+e+" out of range");let n=[],r=0,i=e;for(let s=A;;){let{index:a,offset:c}=s.content.findIndex(i),u=i-c;if(n.push(s,a,r+c),!u||(s=s.child(a),s.isText))break;i=u-1,r+=c+1}return new Fs(e,n,i)}static resolveCached(A,e){for(let r=0;r<mc.length;r++){let i=mc[r];if(i.pos==e&&i.doc==A)return i}let n=mc[wc]=Fs.resolve(A,e);return wc=(wc+1)%wQ,n}}let mc=[],wc=0,wQ=12;class Ro{constructor(A,e,n){this.$from=A,this.$to=e,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const CQ=Object.create(null);let Wr=class lh{constructor(A,e,n,r=ZA.none){this.type=A,this.attrs=e,this.marks=r,this.content=n||Y.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(A){return this.content.child(A)}maybeChild(A){return this.content.maybeChild(A)}forEach(A){this.content.forEach(A)}nodesBetween(A,e,n,r=0){this.content.nodesBetween(A,e,n,r,this)}descendants(A){this.nodesBetween(0,this.content.size,A)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(A,e,n,r){return this.content.textBetween(A,e,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(A){return this==A||this.sameMarkup(A)&&this.content.eq(A.content)}sameMarkup(A){return this.hasMarkup(A.type,A.attrs,A.marks)}hasMarkup(A,e,n){return this.type==A&&Do(this.attrs,e||A.defaultAttrs||CQ)&&ZA.sameSet(this.marks,n||ZA.none)}copy(A=null){return A==this.content?this:new lh(this.type,this.attrs,A,this.marks)}mark(A){return A==this.marks?this:new lh(this.type,this.attrs,this.content,A)}cut(A,e=this.content.size){return A==0&&e==this.content.size?this:this.copy(this.content.cut(A,e))}slice(A,e=this.content.size,n=!1){if(A==e)return j.empty;let r=this.resolve(A),i=this.resolve(e),s=n?0:r.sharedDepth(e),a=r.start(s),u=r.node(s).content.cut(r.pos-a,i.pos-a);return new j(u,r.depth-s,i.depth-s)}replace(A,e,n){return BQ(this.resolve(A),this.resolve(e),n)}nodeAt(A){for(let e=this;;){let{index:n,offset:r}=e.content.findIndex(A);if(e=e.maybeChild(n),!e)return null;if(r==A||e.isText)return e;A-=r+1}}childAfter(A){let{index:e,offset:n}=this.content.findIndex(A);return{node:this.content.maybeChild(e),index:e,offset:n}}childBefore(A){if(A==0)return{node:null,index:0,offset:0};let{index:e,offset:n}=this.content.findIndex(A);if(n<A)return{node:this.content.child(e),index:e,offset:n};let r=this.content.child(e-1);return{node:r,index:e-1,offset:n-r.nodeSize}}resolve(A){return Fs.resolveCached(this,A)}resolveNoCache(A){return Fs.resolve(this,A)}rangeHasMark(A,e,n){let r=!1;return e>A&&this.nodesBetween(A,e,i=>(n.isInSet(i.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let A=this.type.name;return this.content.size&&(A+="("+this.content.toStringInner()+")"),wh(this.marks,A)}contentMatchAt(A){let e=this.type.contentMatch.matchFragment(this.content,0,A);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(A,e,n=Y.empty,r=0,i=n.childCount){let s=this.contentMatchAt(A).matchFragment(n,r,i),a=s&&s.matchFragment(this.content,e);if(!a||!a.validEnd)return!1;for(let c=r;c<i;c++)if(!this.type.allowsMarks(n.child(c).marks))return!1;return!0}canReplaceWith(A,e,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(A).matchType(n),s=i&&i.matchFragment(this.content,e);return s?s.validEnd:!1}canAppend(A){return A.content.size?this.canReplace(this.childCount,this.childCount,A.content):this.type.compatibleContent(A.type)}check(){this.type.checkContent(this.content);let A=ZA.none;for(let e=0;e<this.marks.length;e++)A=this.marks[e].addToSet(A);if(!ZA.sameSet(A,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let A={type:this.type.name};for(let e in this.attrs){A.attrs=this.attrs;break}return this.content.size&&(A.content=this.content.toJSON()),this.marks.length&&(A.marks=this.marks.map(e=>e.toJSON())),A}static fromJSON(A,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=e.marks.map(A.markFromJSON)}if(e.type=="text"){if(typeof e.text!="string")throw new RangeError("Invalid text node in JSON");return A.text(e.text,n)}let r=Y.fromJSON(A,e.content);return A.nodeType(e.type).create(e.attrs,r,n)}};Wr.prototype.text=void 0;class Ko extends Wr{constructor(A,e,n,r){if(super(A,e,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):wh(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(A,e){return this.text.slice(A,e)}get nodeSize(){return this.text.length}mark(A){return A==this.marks?this:new Ko(this.type,this.attrs,this.text,A)}withText(A){return A==this.text?this:new Ko(this.type,this.attrs,A,this.marks)}cut(A=0,e=this.text.length){return A==0&&e==this.text.length?this:this.withText(this.text.slice(A,e))}eq(A){return this.sameMarkup(A)&&this.text==A.text}toJSON(){let A=super.toJSON();return A.text=this.text,A}}function wh(t,A){for(let e=t.length-1;e>=0;e--)A=t[e].type.name+"("+A+")";return A}class $r{constructor(A){this.validEnd=A,this.next=[],this.wrapCache=[]}static parse(A,e){let n=new yQ(A,e);if(n.next==null)return $r.empty;let r=Ch(n);n.next&&n.err("Unexpected trailing text");let i=IQ(vQ(r));return SQ(i,n),i}matchType(A){for(let e=0;e<this.next.length;e++)if(this.next[e].type==A)return this.next[e].next;return null}matchFragment(A,e=0,n=A.childCount){let r=this;for(let i=e;r&&i<n;i++)r=r.matchType(A.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let A=0;A<this.next.length;A++){let{type:e}=this.next[A];if(!(e.isText||e.hasRequiredAttrs()))return e}return null}compatible(A){for(let e=0;e<this.next.length;e++)for(let n=0;n<A.next.length;n++)if(this.next[e].type==A.next[n].type)return!0;return!1}fillBefore(A,e=!1,n=0){let r=[this];function i(s,a){let c=s.matchFragment(A,n);if(c&&(!e||c.validEnd))return Y.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:f,next:p}=s.next[u];if(!(f.isText||f.hasRequiredAttrs())&&r.indexOf(p)==-1){r.push(p);let g=i(p,a.concat(f));if(g)return g}}return null}return i(this,[])}findWrapping(A){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==A)return this.wrapCache[n+1];let e=this.computeWrapping(A);return this.wrapCache.push(A,e),e}computeWrapping(A){let e=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(A)){let s=[];for(let a=r;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:a,next:c}=i.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in e)&&(!r.type||c.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),e[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(A){if(A>=this.next.length)throw new RangeError(`There's no ${A}th edge in this content match`);return this.next[A]}toString(){let A=[];function e(n){A.push(n);for(let r=0;r<n.next.length;r++)A.indexOf(n.next[r].next)==-1&&e(n.next[r].next)}return e(this),A.map((n,r)=>{let i=r+(n.validEnd?"*":" ")+" ";for(let s=0;s<n.next.length;s++)i+=(s?", ":"")+n.next[s].type.name+"->"+A.indexOf(n.next[s].next);return i}).join(`
3
3
  `)}}$r.empty=new $r(!0);class yQ{constructor(A,e){this.string=A,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=A.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(A){return this.next==A&&(this.pos++||!0)}err(A){throw new SyntaxError(A+" (in content expression '"+this.string+"')")}}function Ch(t){let A=[];do A.push(EQ(t));while(t.eat("|"));return A.length==1?A[0]:{type:"choice",exprs:A}}function EQ(t){let A=[];do A.push(QQ(t));while(t.next&&t.next!=")"&&t.next!="|");return A.length==1?A[0]:{type:"seq",exprs:A}}function QQ(t){let A=UQ(t);for(;;)if(t.eat("+"))A={type:"plus",expr:A};else if(t.eat("*"))A={type:"star",expr:A};else if(t.eat("?"))A={type:"opt",expr:A};else if(t.eat("{"))A=FQ(t,A);else break;return A}function yh(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let A=Number(t.next);return t.pos++,A}function FQ(t,A){let e=yh(t),n=e;return t.eat(",")&&(t.next!="}"?n=yh(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:e,max:n,expr:A}}function bQ(t,A){let e=t.nodeTypes,n=e[A];if(n)return[n];let r=[];for(let i in e){let s=e[i];s.groups.indexOf(A)>-1&&r.push(s)}return r.length==0&&t.err("No node type or group '"+A+"' found"),r}function UQ(t){if(t.eat("(")){let A=Ch(t);return t.eat(")")||t.err("Missing closing paren"),A}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let A=bQ(t,t.next).map(e=>(t.inline==null?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}));return t.pos++,A.length==1?A[0]:{type:"choice",exprs:A}}}function vQ(t){let A=[[]];return r(i(t,0),e()),A;function e(){return A.push([])-1}function n(s,a,c){let u={term:c,to:a};return A[s].push(u),u}function r(s,a){s.forEach(c=>c.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((c,u)=>c.concat(i(u,a)),[]);if(s.type=="seq")for(let c=0;;c++){let u=i(s.exprs[c],a);if(c==s.exprs.length-1)return u;r(u,a=e())}else if(s.type=="star"){let c=e();return n(a,c),r(i(s.expr,c),c),[n(c)]}else if(s.type=="plus"){let c=e();return r(i(s.expr,a),c),r(i(s.expr,c),c),[n(c)]}else{if(s.type=="opt")return[n(a)].concat(i(s.expr,a));if(s.type=="range"){let c=a;for(let u=0;u<s.min;u++){let f=e();r(i(s.expr,c),f),c=f}if(s.max==-1)r(i(s.expr,c),c);else for(let u=s.min;u<s.max;u++){let f=e();n(c,f),r(i(s.expr,c),f),c=f}return[n(c)]}else{if(s.type=="name")return[n(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function Eh(t,A){return A-t}function Qh(t,A){let e=[];return n(A),e.sort(Eh);function n(r){let i=t[r];if(i.length==1&&!i[0].term)return n(i[0].to);e.push(r);for(let s=0;s<i.length;s++){let{term:a,to:c}=i[s];!a&&e.indexOf(c)==-1&&n(c)}}}function IQ(t){let A=Object.create(null);return e(Qh(t,0));function e(n){let r=[];n.forEach(s=>{t[s].forEach(({term:a,to:c})=>{if(!a)return;let u;for(let f=0;f<r.length;f++)r[f][0]==a&&(u=r[f][1]);Qh(t,c).forEach(f=>{u||r.push([a,u=[]]),u.indexOf(f)==-1&&u.push(f)})})});let i=A[n.join(",")]=new $r(n.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(Eh);i.next.push({type:r[s][0],next:A[a.join(",")]||e(a)})}return i}}function SQ(t,A){for(let e=0,n=[t];e<n.length;e++){let r=n[e],i=!r.validEnd,s=[];for(let a=0;a<r.next.length;a++){let{type:c,next:u}=r.next[a];s.push(c.name),i&&!(c.isText||c.hasRequiredAttrs())&&(i=!1),n.indexOf(u)==-1&&n.push(u)}i&&A.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Fh(t){let A=Object.create(null);for(let e in t){let n=t[e];if(!n.hasDefault)return null;A[e]=n.default}return A}function bh(t,A){let e=Object.create(null);for(let n in t){let r=A&&A[n];if(r===void 0){let i=t[n];if(i.hasDefault)r=i.default;else throw new RangeError("No value supplied for attribute "+n)}e[n]=r}return e}function Uh(t){let A=Object.create(null);if(t)for(let e in t)A[e]=new TQ(t[e]);return A}let vh=class uE{constructor(A,e,n){this.name=A,this.schema=e,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=Uh(n.attrs),this.defaultAttrs=Fh(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||A=="text"),this.isText=A=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==$r.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let A in this.attrs)if(this.attrs[A].isRequired)return!0;return!1}compatibleContent(A){return this==A||this.contentMatch.compatible(A.contentMatch)}computeAttrs(A){return!A&&this.defaultAttrs?this.defaultAttrs:bh(this.attrs,A)}create(A=null,e,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Wr(this,this.computeAttrs(A),Y.from(e),ZA.setFrom(n))}createChecked(A=null,e,n){return e=Y.from(e),this.checkContent(e),new Wr(this,this.computeAttrs(A),e,ZA.setFrom(n))}createAndFill(A=null,e,n){if(A=this.computeAttrs(A),e=Y.from(e),e.size){let s=this.contentMatch.fillBefore(e);if(!s)return null;e=s.append(e)}let r=this.contentMatch.matchFragment(e),i=r&&r.fillBefore(Y.empty,!0);return i?new Wr(this,A,e.append(i),ZA.setFrom(n)):null}validContent(A){let e=this.contentMatch.matchFragment(A);if(!e||!e.validEnd)return!1;for(let n=0;n<A.childCount;n++)if(!this.allowsMarks(A.child(n).marks))return!1;return!0}checkContent(A){if(!this.validContent(A))throw new RangeError(`Invalid content for node ${this.name}: ${A.toString().slice(0,50)}`)}allowsMarkType(A){return this.markSet==null||this.markSet.indexOf(A)>-1}allowsMarks(A){if(this.markSet==null)return!0;for(let e=0;e<A.length;e++)if(!this.allowsMarkType(A[e].type))return!1;return!0}allowedMarks(A){if(this.markSet==null)return A;let e;for(let n=0;n<A.length;n++)this.allowsMarkType(A[n].type)?e&&e.push(A[n]):e||(e=A.slice(0,n));return e?e.length?e:ZA.none:A}static compile(A,e){let n=Object.create(null);A.forEach((i,s)=>n[i]=new uE(i,e,s));let r=e.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let i in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}};class TQ{constructor(A){this.hasDefault=Object.prototype.hasOwnProperty.call(A,"default"),this.default=A.default}get isRequired(){return!this.hasDefault}}class Po{constructor(A,e,n,r){this.name=A,this.rank=e,this.schema=n,this.spec=r,this.attrs=Uh(r.attrs),this.excluded=null;let i=Fh(this.attrs);this.instance=i?new ZA(this,i):null}create(A=null){return!A&&this.instance?this.instance:new ZA(this,bh(this.attrs,A))}static compile(A,e){let n=Object.create(null),r=0;return A.forEach((i,s)=>n[i]=new Po(i,r++,e,s)),n}removeFromSet(A){for(var e=0;e<A.length;e++)A[e].type==this&&(A=A.slice(0,e).concat(A.slice(e+1)),e--);return A}isInSet(A){for(let e=0;e<A.length;e++)if(A[e].type==this)return A[e]}excludes(A){return this.excluded.indexOf(A)>-1}}class _Q{constructor(A){this.linebreakReplacement=null,this.cached=Object.create(null);let e=this.spec={};for(let r in A)e[r]=A[r];e.nodes=Me.from(A.nodes),e.marks=Me.from(A.marks||{}),this.nodes=vh.compile(this.spec.nodes,this),this.marks=Po.compile(this.spec.marks,this);let n=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let i=this.nodes[r],s=i.spec.content||"",a=i.spec.marks;if(i.contentMatch=n[s]||(n[s]=$r.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=a=="_"?null:a?Ih(this,a.split(" ")):a==""||!i.inlineContent?[]:null}for(let r in this.marks){let i=this.marks[r],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:Ih(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(A,e=null,n,r){if(typeof A=="string")A=this.nodeType(A);else if(A instanceof vh){if(A.schema!=this)throw new RangeError("Node type from different schema used ("+A.name+")")}else throw new RangeError("Invalid node type: "+A);return A.createChecked(e,n,r)}text(A,e){let n=this.nodes.text;return new Ko(n,n.defaultAttrs,A,ZA.setFrom(e))}mark(A,e){return typeof A=="string"&&(A=this.marks[A]),A.create(e)}nodeFromJSON(A){return Wr.fromJSON(this,A)}markFromJSON(A){return ZA.fromJSON(this,A)}nodeType(A){let e=this.nodes[A];if(!e)throw new RangeError("Unknown node type: "+A);return e}}function Ih(t,A){let e=[];for(let n=0;n<A.length;n++){let r=A[n],i=t.marks[r],s=i;if(i)e.push(i);else for(let a in t.marks){let c=t.marks[a];(r=="_"||c.spec.group&&c.spec.group.split(" ").indexOf(r)>-1)&&e.push(s=c)}if(!s)throw new SyntaxError("Unknown mark type: '"+A[n]+"'")}return e}function xQ(t){return t.tag!=null}function OQ(t){return t.style!=null}class Fi{constructor(A,e){this.schema=A,this.rules=e,this.tags=[],this.styles=[],e.forEach(n=>{xQ(n)?this.tags.push(n):OQ(n)&&this.styles.push(n)}),this.normalizeLists=!this.tags.some(n=>{if(!/^(ul|ol)\b/.test(n.tag)||!n.node)return!1;let r=A.nodes[n.node];return r.contentMatch.matchType(r)})}parse(A,e={}){let n=new xh(this,e,!1);return n.addAll(A,e.from,e.to),n.finish()}parseSlice(A,e={}){let n=new xh(this,e,!0);return n.addAll(A,e.from,e.to),j.maxOpen(n.finish())}matchTag(A,e,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let i=this.tags[r];if(kQ(A,i.tag)&&(i.namespace===void 0||A.namespaceURI==i.namespace)&&(!i.context||e.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(A);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(A,e,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let s=this.styles[i],a=s.style;if(!(a.indexOf(A)!=0||s.context&&!n.matchesContext(s.context)||a.length>A.length&&(a.charCodeAt(A.length)!=61||a.slice(A.length+1)!=e))){if(s.getAttrs){let c=s.getAttrs(e);if(c===!1)continue;s.attrs=c||void 0}return s}}}static schemaRules(A){let e=[];function n(r){let i=r.priority==null?50:r.priority,s=0;for(;s<e.length;s++){let a=e[s];if((a.priority==null?50:a.priority)<i)break}e.splice(s,0,r)}for(let r in A.marks){let i=A.marks[r].spec.parseDOM;i&&i.forEach(s=>{n(s=Oh(s)),s.mark||s.ignore||s.clearMark||(s.mark=r)})}for(let r in A.nodes){let i=A.nodes[r].spec.parseDOM;i&&i.forEach(s=>{n(s=Oh(s)),s.node||s.ignore||s.mark||(s.node=r)})}return e}static fromSchema(A){return A.cached.domParser||(A.cached.domParser=new Fi(A,Fi.schemaRules(A)))}}const Sh={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},LQ={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Th={ol:!0,ul:!0},Vo=1,Go=2,bs=4;function _h(t,A,e){return A!=null?(A?Vo:0)|(A==="full"?Go:0):t&&t.whitespace=="pre"?Vo|Go:e&~bs}class Wo{constructor(A,e,n,r,i,s,a){this.type=A,this.attrs=e,this.marks=n,this.pendingMarks=r,this.solid=i,this.options=a,this.content=[],this.activeMarks=ZA.none,this.stashMarks=[],this.match=s||(a&bs?null:A.contentMatch)}findWrapping(A){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(Y.from(A));if(e)this.match=this.type.contentMatch.matchFragment(e);else{let n=this.type.contentMatch,r;return(r=n.findWrapping(A.type))?(this.match=n,r):null}}return this.match.findWrapping(A.type)}finish(A){if(!(this.options&Vo)){let n=this.content[this.content.length-1],r;if(n&&n.isText&&(r=/[ \t\r\n\u000c]+$/.exec(n.text))){let i=n;n.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-r[0].length))}}let e=Y.from(this.content);return!A&&this.match&&(e=e.append(this.match.fillBefore(Y.empty,!0))),this.type?this.type.create(this.attrs,e,this.marks):e}popFromStashMark(A){for(let e=this.stashMarks.length-1;e>=0;e--)if(A.eq(this.stashMarks[e]))return this.stashMarks.splice(e,1)[0]}applyPending(A){for(let e=0,n=this.pendingMarks;e<n.length;e++){let r=n[e];(this.type?this.type.allowsMarkType(r.type):DQ(r.type,A))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}}inlineContext(A){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:A.parentNode&&!Sh.hasOwnProperty(A.parentNode.nodeName.toLowerCase())}}class xh{constructor(A,e,n){this.parser=A,this.options=e,this.isOpen=n,this.open=0;let r=e.topNode,i,s=_h(null,e.preserveWhitespace,0)|(n?bs:0);r?i=new Wo(r.type,r.attrs,ZA.none,ZA.none,!0,e.topMatch||r.type.contentMatch,s):n?i=new Wo(null,null,ZA.none,ZA.none,!0,null,s):i=new Wo(A.schema.topNodeType,null,ZA.none,ZA.none,!0,null,s),this.nodes=[i],this.find=e.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(A){A.nodeType==3?this.addTextNode(A):A.nodeType==1&&this.addElement(A)}withStyleRules(A,e){let n=A.style;if(!n||!n.length)return e();let r=this.readStyles(A.style);if(!r)return;let[i,s]=r,a=this.top;for(let c=0;c<s.length;c++)this.removePendingMark(s[c],a);for(let c=0;c<i.length;c++)this.addPendingMark(i[c]);e();for(let c=0;c<i.length;c++)this.removePendingMark(i[c],a);for(let c=0;c<s.length;c++)this.addPendingMark(s[c])}addTextNode(A){let e=A.nodeValue,n=this.top;if(n.options&Go||n.inlineContext(A)||/[^ \t\r\n\u000c]/.test(e)){if(n.options&Vo)n.options&Go?e=e.replace(/\r\n?/g,`
4
4
  `):e=e.replace(/\r?\n|\r/g," ");else if(e=e.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(e)&&this.open==this.nodes.length-1){let r=n.content[n.content.length-1],i=A.previousSibling;(!r||i&&i.nodeName=="BR"||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(e=e.slice(1))}e&&this.insertNode(this.parser.schema.text(e)),this.findInText(A)}else this.findInside(A)}addElement(A,e){let n=A.nodeName.toLowerCase(),r;Th.hasOwnProperty(n)&&this.parser.normalizeLists&&HQ(A);let i=this.options.ruleFromNode&&this.options.ruleFromNode(A)||(r=this.parser.matchTag(A,this,e));if(i?i.ignore:LQ.hasOwnProperty(n))this.findInside(A),this.ignoreFallback(A);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(A=i.skip);let s,a=this.top,c=this.needsBlock;if(Sh.hasOwnProperty(n))a.content.length&&a.content[0].isInline&&this.open&&(this.open--,a=this.top),s=!0,a.type||(this.needsBlock=!0);else if(!A.firstChild){this.leafFallback(A);return}i&&i.skip?this.addAll(A):this.withStyleRules(A,()=>this.addAll(A)),s&&this.sync(a),this.needsBlock=c}else this.withStyleRules(A,()=>{this.addElementByRule(A,i,i.consuming===!1?r:void 0)})}leafFallback(A){A.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(A.ownerDocument.createTextNode(`
@@ -180,4 +180,4 @@ function print() { __p += __j.call(arguments, '') }
180
180
  content: "" !important;
181
181
  display: none !important;
182
182
  }`,XD=function(t){YD(t,"."+Gf+$D+IC+`
183
- .`+Wf+JD+IC)},YD=function(t,A){var e=t.ownerDocument;if(e){var n=e.createElement("style");n.textContent=A,t.appendChild(n)}},SC=function(){function t(){}return t.getOrigin=function(A){var e=t._link;return e?(e.href=A,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},t.isSameOrigin=function(A){return t.getOrigin(A)===t._origin},t.setContext=function(A){t._link=A.document.createElement("a"),t._origin=t.getOrigin(A.location.href)},t._origin="about:blank",t}(),zD=function(){function t(A,e){this.context=A,this._options=e,this._cache={}}return t.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(Jf(A)||AN(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),e},t.prototype.match=function(A){return this._cache[A]},t.prototype.loadImage=function(A){return lt(this,void 0,void 0,function(){var e,n,r,i,s=this;return Ze(this,function(a){switch(a.label){case 0:return e=SC.isSameOrigin(A),n=!$f(A)&&this._options.useCORS===!0&&Ve.SUPPORT_CORS_IMAGES&&!e,r=!$f(A)&&!e&&!Jf(A)&&typeof this._options.proxy=="string"&&Ve.SUPPORT_CORS_XHR&&!n,!e&&this._options.allowTaint===!1&&!$f(A)&&!Jf(A)&&!r&&!n?[2]:(i=A,r?[4,this.proxy(i)]:[3,2]);case 1:i=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(c,u){var f=new Image;f.onload=function(){return c(f)},f.onerror=u,(eN(i)||n)&&(f.crossOrigin="anonymous"),f.src=i,f.complete===!0&&setTimeout(function(){return c(f)},500),s._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,a.sent()]}})})},t.prototype.has=function(A){return typeof this._cache[A]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(A){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise(function(i,s){var a=Ve.SUPPORT_RESPONSE_TYPE?"blob":"text",c=new XMLHttpRequest;c.onload=function(){if(c.status===200)if(a==="text")i(c.response);else{var p=new FileReader;p.addEventListener("load",function(){return i(p.result)},!1),p.addEventListener("error",function(g){return s(g)},!1),p.readAsDataURL(c.response)}else s("Failed to proxy resource "+r+" with status code "+c.status)},c.onerror=s;var u=n.indexOf("?")>-1?"&":"?";if(c.open("GET",""+n+u+"url="+encodeURIComponent(A)+"&responseType="+a),a!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=a),e._options.imageTimeout){var f=e._options.imageTimeout;c.timeout=f,c.ontimeout=function(){return s("Timed out ("+f+"ms) proxying "+r)}}c.send()})},t}(),qD=/^data:image\/svg\+xml/i,ZD=/^data:image\/.*;base64,/i,jD=/^data:image\/.*/i,AN=function(t){return Ve.SUPPORT_SVG_DRAWING||!tN(t)},$f=function(t){return jD.test(t)},eN=function(t){return ZD.test(t)},Jf=function(t){return t.substr(0,4)==="blob"},tN=function(t){return t.substr(-3).toLowerCase()==="svg"||qD.test(t)},Z=function(){function t(A,e){this.type=0,this.x=A,this.y=e}return t.prototype.add=function(A,e){return new t(this.x+A,this.y+e)},t}(),ns=function(t,A,e){return new Z(t.x+(A.x-t.x)*e,t.y+(A.y-t.y)*e)},Cl=function(){function t(A,e,n,r){this.type=1,this.start=A,this.startControl=e,this.endControl=n,this.end=r}return t.prototype.subdivide=function(A,e){var n=ns(this.start,this.startControl,A),r=ns(this.startControl,this.endControl,A),i=ns(this.endControl,this.end,A),s=ns(n,r,A),a=ns(r,i,A),c=ns(s,a,A);return e?new t(this.start,n,s,c):new t(c,a,i,this.end)},t.prototype.add=function(A,e){return new t(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Wt=function(t){return t.type===1},nN=function(){function t(A){var e=A.styles,n=A.bounds,r=lo(e.borderTopLeftRadius,n.width,n.height),i=r[0],s=r[1],a=lo(e.borderTopRightRadius,n.width,n.height),c=a[0],u=a[1],f=lo(e.borderBottomRightRadius,n.width,n.height),p=f[0],g=f[1],m=lo(e.borderBottomLeftRadius,n.width,n.height),w=m[0],F=m[1],b=[];b.push((i+c)/n.width),b.push((w+p)/n.width),b.push((s+F)/n.height),b.push((u+g)/n.height);var v=Math.max.apply(Math,b);v>1&&(i/=v,s/=v,c/=v,u/=v,p/=v,g/=v,w/=v,F/=v);var _=n.width-c,S=n.height-g,E=n.width-p,L=n.height-F,U=e.borderTopWidth,D=e.borderRightWidth,P=e.borderBottomWidth,N=e.borderLeftWidth,sA=se(e.paddingTop,A.bounds.width),mA=se(e.paddingRight,A.bounds.width),nA=se(e.paddingBottom,A.bounds.width),cA=se(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?ue(n.left+N/3,n.top+U/3,i-N/3,s-U/3,JA.TOP_LEFT):new Z(n.left+N/3,n.top+U/3),this.topRightBorderDoubleOuterBox=i>0||s>0?ue(n.left+_,n.top+U/3,c-D/3,u-U/3,JA.TOP_RIGHT):new Z(n.left+n.width-D/3,n.top+U/3),this.bottomRightBorderDoubleOuterBox=p>0||g>0?ue(n.left+E,n.top+S,p-D/3,g-P/3,JA.BOTTOM_RIGHT):new Z(n.left+n.width-D/3,n.top+n.height-P/3),this.bottomLeftBorderDoubleOuterBox=w>0||F>0?ue(n.left+N/3,n.top+L,w-N/3,F-P/3,JA.BOTTOM_LEFT):new Z(n.left+N/3,n.top+n.height-P/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?ue(n.left+N*2/3,n.top+U*2/3,i-N*2/3,s-U*2/3,JA.TOP_LEFT):new Z(n.left+N*2/3,n.top+U*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?ue(n.left+_,n.top+U*2/3,c-D*2/3,u-U*2/3,JA.TOP_RIGHT):new Z(n.left+n.width-D*2/3,n.top+U*2/3),this.bottomRightBorderDoubleInnerBox=p>0||g>0?ue(n.left+E,n.top+S,p-D*2/3,g-P*2/3,JA.BOTTOM_RIGHT):new Z(n.left+n.width-D*2/3,n.top+n.height-P*2/3),this.bottomLeftBorderDoubleInnerBox=w>0||F>0?ue(n.left+N*2/3,n.top+L,w-N*2/3,F-P*2/3,JA.BOTTOM_LEFT):new Z(n.left+N*2/3,n.top+n.height-P*2/3),this.topLeftBorderStroke=i>0||s>0?ue(n.left+N/2,n.top+U/2,i-N/2,s-U/2,JA.TOP_LEFT):new Z(n.left+N/2,n.top+U/2),this.topRightBorderStroke=i>0||s>0?ue(n.left+_,n.top+U/2,c-D/2,u-U/2,JA.TOP_RIGHT):new Z(n.left+n.width-D/2,n.top+U/2),this.bottomRightBorderStroke=p>0||g>0?ue(n.left+E,n.top+S,p-D/2,g-P/2,JA.BOTTOM_RIGHT):new Z(n.left+n.width-D/2,n.top+n.height-P/2),this.bottomLeftBorderStroke=w>0||F>0?ue(n.left+N/2,n.top+L,w-N/2,F-P/2,JA.BOTTOM_LEFT):new Z(n.left+N/2,n.top+n.height-P/2),this.topLeftBorderBox=i>0||s>0?ue(n.left,n.top,i,s,JA.TOP_LEFT):new Z(n.left,n.top),this.topRightBorderBox=c>0||u>0?ue(n.left+_,n.top,c,u,JA.TOP_RIGHT):new Z(n.left+n.width,n.top),this.bottomRightBorderBox=p>0||g>0?ue(n.left+E,n.top+S,p,g,JA.BOTTOM_RIGHT):new Z(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=w>0||F>0?ue(n.left,n.top+L,w,F,JA.BOTTOM_LEFT):new Z(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||s>0?ue(n.left+N,n.top+U,Math.max(0,i-N),Math.max(0,s-U),JA.TOP_LEFT):new Z(n.left+N,n.top+U),this.topRightPaddingBox=c>0||u>0?ue(n.left+Math.min(_,n.width-D),n.top+U,_>n.width+D?0:Math.max(0,c-D),Math.max(0,u-U),JA.TOP_RIGHT):new Z(n.left+n.width-D,n.top+U),this.bottomRightPaddingBox=p>0||g>0?ue(n.left+Math.min(E,n.width-N),n.top+Math.min(S,n.height-P),Math.max(0,p-D),Math.max(0,g-P),JA.BOTTOM_RIGHT):new Z(n.left+n.width-D,n.top+n.height-P),this.bottomLeftPaddingBox=w>0||F>0?ue(n.left+N,n.top+Math.min(L,n.height-P),Math.max(0,w-N),Math.max(0,F-P),JA.BOTTOM_LEFT):new Z(n.left+N,n.top+n.height-P),this.topLeftContentBox=i>0||s>0?ue(n.left+N+cA,n.top+U+sA,Math.max(0,i-(N+cA)),Math.max(0,s-(U+sA)),JA.TOP_LEFT):new Z(n.left+N+cA,n.top+U+sA),this.topRightContentBox=c>0||u>0?ue(n.left+Math.min(_,n.width+N+cA),n.top+U+sA,_>n.width+N+cA?0:c-N+cA,u-(U+sA),JA.TOP_RIGHT):new Z(n.left+n.width-(D+mA),n.top+U+sA),this.bottomRightContentBox=p>0||g>0?ue(n.left+Math.min(E,n.width-(N+cA)),n.top+Math.min(S,n.height+U+sA),Math.max(0,p-(D+mA)),g-(P+nA),JA.BOTTOM_RIGHT):new Z(n.left+n.width-(D+mA),n.top+n.height-(P+nA)),this.bottomLeftContentBox=w>0||F>0?ue(n.left+N+cA,n.top+L,Math.max(0,w-(N+cA)),F-(P+nA),JA.BOTTOM_LEFT):new Z(n.left+N+cA,n.top+n.height-(P+nA))}return t}(),JA;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(JA||(JA={}));var ue=function(t,A,e,n,r){var i=4*((Math.sqrt(2)-1)/3),s=e*i,a=n*i,c=t+e,u=A+n;switch(r){case JA.TOP_LEFT:return new Cl(new Z(t,u),new Z(t,u-a),new Z(c-s,A),new Z(c,A));case JA.TOP_RIGHT:return new Cl(new Z(t,A),new Z(t+s,A),new Z(c,u-a),new Z(c,u));case JA.BOTTOM_RIGHT:return new Cl(new Z(c,A),new Z(c,A+a),new Z(t+s,u),new Z(t,u));case JA.BOTTOM_LEFT:default:return new Cl(new Z(c,u),new Z(c-s,u),new Z(t,A+a),new Z(t,A))}},yl=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},rN=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},El=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},iN=function(){function t(A,e,n){this.offsetX=A,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}return t}(),Ql=function(){function t(A,e){this.path=A,this.target=e,this.type=1}return t}(),sN=function(){function t(A){this.opacity=A,this.type=2,this.target=6}return t}(),oN=function(t){return t.type===0},TC=function(t){return t.type===1},aN=function(t){return t.type===2},_C=function(t,A){return t.length===A.length?t.some(function(e,n){return e===A[n]}):!1},lN=function(t,A,e,n,r){return t.map(function(i,s){switch(s){case 0:return i.add(A,e);case 1:return i.add(A+n,e);case 2:return i.add(A+n,e+r);case 3:return i.add(A,e+r)}return i})},xC=function(){function t(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),OC=function(){function t(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new nN(this.container),this.container.styles.opacity<1&&this.effects.push(new sN(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new iN(n,r,i))}if(this.container.styles.overflowX!==0){var s=yl(this.curves),a=El(this.curves);_C(s,a)?this.effects.push(new Ql(s,6)):(this.effects.push(new Ql(s,2)),this.effects.push(new Ql(a,4)))}}return t.prototype.getEffects=function(A){for(var e=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(c){return!TC(c)});if(e||n.container.styles.position!==0||!n.parent){if(r.unshift.apply(r,i),e=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var s=yl(n.curves),a=El(n.curves);_C(s,a)||r.unshift(new Ql(a,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(c){return Se(c.target,A)})},t}(),Xf=function(t,A,e,n){t.container.elements.forEach(function(r){var i=Se(r.flags,4),s=Se(r.flags,2),a=new OC(r,t);Se(r.styles.display,2048)&&n.push(a);var c=Se(r.flags,8)?[]:n;if(i||s){var u=i||r.styles.isPositioned()?e:A,f=new xC(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var p=r.styles.zIndex.order;if(p<0){var g=0;u.negativeZIndex.some(function(w,F){return p>w.element.container.styles.zIndex.order?(g=F,!1):g>0}),u.negativeZIndex.splice(g,0,f)}else if(p>0){var m=0;u.positiveZIndex.some(function(w,F){return p>=w.element.container.styles.zIndex.order?(m=F+1,!1):m>0}),u.positiveZIndex.splice(m,0,f)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(f)}else r.styles.isFloating()?u.nonPositionedFloats.push(f):u.nonPositionedInlineLevel.push(f);Xf(a,f,i?f:e,c)}else r.styles.isInlineLevel()?A.inlineLevel.push(a):A.nonInlineLevel.push(a),Xf(a,A,e,c);Se(r.flags,8)&&LC(r,c)})},LC=function(t,A){for(var e=t instanceof Df?t.start:1,n=t instanceof Df?t.reversed:!1,r=0;r<A.length;r++){var i=A[r];i.container instanceof iC&&typeof i.container.value=="number"&&i.container.value!==0&&(e=i.container.value),i.listValue=go(e,i.container.styles.listStyleType,!0),e+=n?-1:1}},cN=function(t){var A=new OC(t,null),e=new xC(A),n=[];return Xf(A,e,e,n),LC(A.container,n),e},HC=function(t,A){switch(A){case 0:return $t(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return $t(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return $t(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return $t(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},uN=function(t,A){switch(A){case 0:return $t(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return $t(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return $t(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return $t(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},fN=function(t,A){switch(A){case 0:return $t(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return $t(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return $t(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return $t(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},dN=function(t,A){switch(A){case 0:return Fl(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Fl(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Fl(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return Fl(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},Fl=function(t,A){var e=[];return Wt(t)?e.push(t.subdivide(.5,!1)):e.push(t),Wt(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},$t=function(t,A,e,n){var r=[];return Wt(t)?r.push(t.subdivide(.5,!1)):r.push(t),Wt(e)?r.push(e.subdivide(.5,!0)):r.push(e),Wt(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),Wt(A)?r.push(A.subdivide(.5,!1).reverse()):r.push(A),r},kC=function(t){var A=t.bounds,e=t.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},bl=function(t){var A=t.styles,e=t.bounds,n=se(A.paddingLeft,e.width),r=se(A.paddingRight,e.width),i=se(A.paddingTop,e.width),s=se(A.paddingBottom,e.width);return e.add(n+A.borderLeftWidth,i+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+n+r),-(A.borderTopWidth+A.borderBottomWidth+i+s))},hN=function(t,A){return t===0?A.bounds:t===2?bl(A):kC(A)},pN=function(t,A){return t===0?A.bounds:t===2?bl(A):kC(A)},Yf=function(t,A,e){var n=hN(is(t.styles.backgroundOrigin,A),t),r=pN(is(t.styles.backgroundClip,A),t),i=gN(is(t.styles.backgroundSize,A),e,n),s=i[0],a=i[1],c=lo(is(t.styles.backgroundPosition,A),n.width-s,n.height-a),u=BN(is(t.styles.backgroundRepeat,A),c,i,n,r),f=Math.round(n.left+c[0]),p=Math.round(n.top+c[1]);return[u,f,p,s,a]},rs=function(t){return jA(t)&&t.value===ji.AUTO},Ul=function(t){return typeof t=="number"},gN=function(t,A,e){var n=A[0],r=A[1],i=A[2],s=t[0],a=t[1];if(!s)return[0,0];if(Ue(s)&&a&&Ue(a))return[se(s,e.width),se(a,e.height)];var c=Ul(i);if(jA(s)&&(s.value===ji.CONTAIN||s.value===ji.COVER)){if(Ul(i)){var u=e.width/e.height;return u<i!=(s.value===ji.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.height]}var f=Ul(n),p=Ul(r),g=f||p;if(rs(s)&&(!a||rs(a))){if(f&&p)return[n,r];if(!c&&!g)return[e.width,e.height];if(g&&c){var m=f?n:r*i,w=p?r:n/i;return[m,w]}var F=f?n:e.width,b=p?r:e.height;return[F,b]}if(c){var v=0,_=0;return Ue(s)?v=se(s,e.width):Ue(a)&&(_=se(a,e.height)),rs(s)?v=_*i:(!a||rs(a))&&(_=v/i),[v,_]}var S=null,E=null;if(Ue(s)?S=se(s,e.width):a&&Ue(a)&&(E=se(a,e.height)),S!==null&&(!a||rs(a))&&(E=f&&p?S/n*r:e.height),E!==null&&rs(s)&&(S=f&&p?E/r*n:e.width),S!==null&&E!==null)return[S,E];throw new Error("Unable to calculate background-size for element")},is=function(t,A){var e=t[A];return typeof e>"u"?t[0]:e},BN=function(t,A,e,n,r){var i=A[0],s=A[1],a=e[0],c=e[1];switch(t){case 2:return[new Z(Math.round(n.left),Math.round(n.top+s)),new Z(Math.round(n.left+n.width),Math.round(n.top+s)),new Z(Math.round(n.left+n.width),Math.round(c+n.top+s)),new Z(Math.round(n.left),Math.round(c+n.top+s))];case 3:return[new Z(Math.round(n.left+i),Math.round(n.top)),new Z(Math.round(n.left+i+a),Math.round(n.top)),new Z(Math.round(n.left+i+a),Math.round(n.height+n.top)),new Z(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new Z(Math.round(n.left+i),Math.round(n.top+s)),new Z(Math.round(n.left+i+a),Math.round(n.top+s)),new Z(Math.round(n.left+i+a),Math.round(n.top+s+c)),new Z(Math.round(n.left+i),Math.round(n.top+s+c))];default:return[new Z(Math.round(r.left),Math.round(r.top)),new Z(Math.round(r.left+r.width),Math.round(r.top)),new Z(Math.round(r.left+r.width),Math.round(r.height+r.top)),new Z(Math.round(r.left),Math.round(r.height+r.top))]}},mN="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",DC="Hidden Text",wN=function(){function t(A){this._data={},this._document=A}return t.prototype.parseMetrics=function(A,e){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;n.style.visibility="hidden",n.style.fontFamily=A,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",s.appendChild(n),r.src=mN,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=A,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(DC)),n.appendChild(i),n.appendChild(r);var a=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(DC)),n.style.lineHeight="normal",r.style.verticalAlign="super";var c=r.offsetTop-n.offsetTop+2;return s.removeChild(n),{baseline:a,middle:c}},t.prototype.getMetrics=function(A,e){var n=A+" "+e;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(A,e)),this._data[n]},t}(),NC=function(){function t(A,e){this.context=A,this.options=e}return t}(),CN=1e4,yN=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new wN(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return A.prototype.applyEffects=function(e){for(var n=this;this._activeEffects.length;)this.popEffect();e.forEach(function(r){return n.applyEffect(r)})},A.prototype.applyEffect=function(e){this.ctx.save(),aN(e)&&(this.ctx.globalAlpha=e.opacity),oN(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),TC(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(e){return lt(this,void 0,void 0,function(){var n;return Ze(this,function(r){switch(r.label){case 0:return n=e.element.container.styles,n.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(e){return lt(this,void 0,void 0,function(){return Ze(this,function(n){switch(n.label){case 0:if(Se(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(e)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(e,n,r){var i=this;if(n===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+r);else{var s=kf(e.text);s.reduce(function(a,c){return i.ctx.fillText(c,a,e.bounds.top+r),a+i.ctx.measureText(c).width},e.bounds.left)}},A.prototype.createFontStyle=function(e){var n=e.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),r=UN(e.fontFamily).join(", "),i=ao(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,n,e.fontWeight,i,r].join(" "),r,i]},A.prototype.renderTextNode=function(e,n){return lt(this,void 0,void 0,function(){var r,i,s,a,c,u,f,p,g=this;return Ze(this,function(m){return r=this.createFontStyle(n),i=r[0],s=r[1],a=r[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",c=this.fontMetrics.getMetrics(s,a),u=c.baseline,f=c.middle,p=n.paintOrder,e.textBounds.forEach(function(w){p.forEach(function(F){switch(F){case 0:g.ctx.fillStyle=De(n.color),g.renderTextWithLetterSpacing(w,n.letterSpacing,u);var b=n.textShadow;b.length&&w.text.trim().length&&(b.slice(0).reverse().forEach(function(v){g.ctx.shadowColor=De(v.color),g.ctx.shadowOffsetX=v.offsetX.number*g.options.scale,g.ctx.shadowOffsetY=v.offsetY.number*g.options.scale,g.ctx.shadowBlur=v.blur.number,g.renderTextWithLetterSpacing(w,n.letterSpacing,u)}),g.ctx.shadowColor="",g.ctx.shadowOffsetX=0,g.ctx.shadowOffsetY=0,g.ctx.shadowBlur=0),n.textDecorationLine.length&&(g.ctx.fillStyle=De(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(v){switch(v){case 1:g.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top+u),w.bounds.width,1);break;case 2:g.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top),w.bounds.width,1);break;case 3:g.ctx.fillRect(w.bounds.left,Math.ceil(w.bounds.top+f),w.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&w.text.trim().length&&(g.ctx.strokeStyle=De(n.webkitTextStrokeColor),g.ctx.lineWidth=n.webkitTextStrokeWidth,g.ctx.lineJoin=window.chrome?"miter":"round",g.ctx.strokeText(w.text,w.bounds.left,w.bounds.top+u)),g.ctx.strokeStyle="",g.ctx.lineWidth=0,g.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(e,n,r){if(r&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=bl(e),s=El(n);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c,_,_,u,f,p,g,E,m,w,L,F,b,v,_,S,E,L;return Ze(this,function(U){switch(U.label){case 0:this.applyEffects(e.getEffects(4)),n=e.container,r=e.curves,i=n.styles,s=0,a=n.textNodes,U.label=1;case 1:return s<a.length?(c=a[s],[4,this.renderTextNode(c,i)]):[3,4];case 2:U.sent(),U.label=3;case 3:return s++,[3,1];case 4:if(!(n instanceof tC))return[3,8];U.label=5;case 5:return U.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return _=U.sent(),this.renderReplacedElement(n,r,_),[3,8];case 7:return U.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof nC&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof rC))return[3,12];U.label=9;case 9:return U.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return _=U.sent(),this.renderReplacedElement(n,r,_),[3,12];case 11:return U.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof lC&&n.tree?(u=new A(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,u.render(n.tree)]):[3,14];case 13:f=U.sent(),n.width&&n.height&&this.ctx.drawImage(f,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),U.label=14;case 14:if(n instanceof Nf&&(p=Math.min(n.bounds.width,n.bounds.height),n.type===hl?n.checked&&(this.ctx.save(),this.path([new Z(n.bounds.left+p*.39363,n.bounds.top+p*.79),new Z(n.bounds.left+p*.16,n.bounds.top+p*.5549),new Z(n.bounds.left+p*.27347,n.bounds.top+p*.44071),new Z(n.bounds.left+p*.39694,n.bounds.top+p*.5649),new Z(n.bounds.left+p*.72983,n.bounds.top+p*.23),new Z(n.bounds.left+p*.84,n.bounds.top+p*.34085),new Z(n.bounds.left+p*.39363,n.bounds.top+p*.79)]),this.ctx.fillStyle=De(sC),this.ctx.fill(),this.ctx.restore()):n.type===pl&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+p/2,n.bounds.top+p/2,p/4,0,Math.PI*2,!0),this.ctx.fillStyle=De(sC),this.ctx.fill(),this.ctx.restore())),EN(n)&&n.value.length){switch(g=this.createFontStyle(i),E=g[0],m=g[1],w=this.fontMetrics.getMetrics(E,m).baseline,this.ctx.font=E,this.ctx.fillStyle=De(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=FN(n.styles.textAlign),L=bl(n),F=0,n.styles.textAlign){case 1:F+=L.width/2;break;case 2:F+=L.width;break}b=L.add(F,0,0,-L.height/2+1),this.ctx.save(),this.path([new Z(L.left,L.top),new Z(L.left+L.width,L.top),new Z(L.left+L.width,L.top+L.height),new Z(L.left,L.top+L.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ho(n.value,b),i.letterSpacing,w),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Se(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(v=n.styles.listStyleImage,v.type!==0)return[3,18];_=void 0,S=v.url,U.label=15;case 15:return U.trys.push([15,17,,18]),[4,this.context.cache.match(S)];case 16:return _=U.sent(),this.ctx.drawImage(_,n.bounds.left-(_.width+10),n.bounds.top),[3,18];case 17:return U.sent(),this.context.logger.error("Error loading list-style-image "+S),[3,18];case 18:return[3,20];case 19:e.listValue&&n.styles.listStyleType!==-1&&(E=this.createFontStyle(i)[0],this.ctx.font=E,this.ctx.fillStyle=De(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",L=new Wn(n.bounds.left,n.bounds.top+se(n.styles.paddingTop,n.bounds.width),n.bounds.width,Dw(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ho(e.listValue,L),i.letterSpacing,Dw(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),U.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(e){return lt(this,void 0,void 0,function(){var n,r,v,i,s,v,a,c,v,u,f,v,p,g,v,m,w,v,F,b,v;return Ze(this,function(_){switch(_.label){case 0:if(Se(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:_.sent(),n=0,r=e.negativeZIndex,_.label=2;case 2:return n<r.length?(v=r[n],[4,this.renderStack(v)]):[3,5];case 3:_.sent(),_.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:_.sent(),i=0,s=e.nonInlineLevel,_.label=7;case 7:return i<s.length?(v=s[i],[4,this.renderNode(v)]):[3,10];case 8:_.sent(),_.label=9;case 9:return i++,[3,7];case 10:a=0,c=e.nonPositionedFloats,_.label=11;case 11:return a<c.length?(v=c[a],[4,this.renderStack(v)]):[3,14];case 12:_.sent(),_.label=13;case 13:return a++,[3,11];case 14:u=0,f=e.nonPositionedInlineLevel,_.label=15;case 15:return u<f.length?(v=f[u],[4,this.renderStack(v)]):[3,18];case 16:_.sent(),_.label=17;case 17:return u++,[3,15];case 18:p=0,g=e.inlineLevel,_.label=19;case 19:return p<g.length?(v=g[p],[4,this.renderNode(v)]):[3,22];case 20:_.sent(),_.label=21;case 21:return p++,[3,19];case 22:m=0,w=e.zeroOrAutoZIndexOrTransformedOrOpacity,_.label=23;case 23:return m<w.length?(v=w[m],[4,this.renderStack(v)]):[3,26];case 24:_.sent(),_.label=25;case 25:return m++,[3,23];case 26:F=0,b=e.positiveZIndex,_.label=27;case 27:return F<b.length?(v=b[F],[4,this.renderStack(v)]):[3,30];case 28:_.sent(),_.label=29;case 29:return F++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},A.prototype.formatPath=function(e){var n=this;e.forEach(function(r,i){var s=Wt(r)?r.start:r;i===0?n.ctx.moveTo(s.x,s.y):n.ctx.lineTo(s.x,s.y),Wt(r)&&n.ctx.bezierCurveTo(r.startControl.x,r.startControl.y,r.endControl.x,r.endControl.y,r.end.x,r.end.y)})},A.prototype.renderRepeat=function(e,n,r,i){this.path(e),this.ctx.fillStyle=n,this.ctx.translate(r,i),this.ctx.fill(),this.ctx.translate(-r,-i)},A.prototype.resizeImage=function(e,n,r){var i;if(e.width===n&&e.height===r)return e;var s=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,a=s.createElement("canvas");a.width=Math.max(1,n),a.height=Math.max(1,r);var c=a.getContext("2d");return c.drawImage(e,0,0,e.width,e.height,0,0,n,r),a},A.prototype.renderBackgroundImage=function(e){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c;return Ze(this,function(u){switch(u.label){case 0:n=e.styles.backgroundImage.length-1,r=function(f){var p,g,m,sA,RA,HA,cA,LA,P,w,sA,RA,HA,cA,LA,F,b,v,_,S,E,L,U,D,P,N,sA,mA,nA,cA,LA,oe,RA,HA,rA,BA,XA,kA,GA,KA,Ae,ee;return Ze(this,function(zA){switch(zA.label){case 0:if(f.type!==0)return[3,5];p=void 0,g=f.url,zA.label=1;case 1:return zA.trys.push([1,3,,4]),[4,i.context.cache.match(g)];case 2:return p=zA.sent(),[3,4];case 3:return zA.sent(),i.context.logger.error("Error loading background-image "+g),[3,4];case 4:return p&&(m=Yf(e,n,[p.width,p.height,p.width/p.height]),sA=m[0],RA=m[1],HA=m[2],cA=m[3],LA=m[4],P=i.ctx.createPattern(i.resizeImage(p,cA,LA),"repeat"),i.renderRepeat(sA,P,RA,HA)),[3,6];case 5:oH(f)?(w=Yf(e,n,[null,null,null]),sA=w[0],RA=w[1],HA=w[2],cA=w[3],LA=w[4],F=tH(f.angle,cA,LA),b=F[0],v=F[1],_=F[2],S=F[3],E=F[4],L=document.createElement("canvas"),L.width=cA,L.height=LA,U=L.getContext("2d"),D=U.createLinearGradient(v,S,_,E),Uw(f.stops,b).forEach(function(he){return D.addColorStop(he.stop,De(he.color))}),U.fillStyle=D,U.fillRect(0,0,cA,LA),cA>0&&LA>0&&(P=i.ctx.createPattern(L,"repeat"),i.renderRepeat(sA,P,RA,HA))):aH(f)&&(N=Yf(e,n,[null,null,null]),sA=N[0],mA=N[1],nA=N[2],cA=N[3],LA=N[4],oe=f.position.length===0?[yf]:f.position,RA=se(oe[0],cA),HA=se(oe[oe.length-1],LA),rA=nH(f,RA,HA,cA,LA),BA=rA[0],XA=rA[1],BA>0&&XA>0&&(kA=i.ctx.createRadialGradient(mA+RA,nA+HA,0,mA+RA,nA+HA,BA),Uw(f.stops,BA*2).forEach(function(he){return kA.addColorStop(he.stop,De(he.color))}),i.path(sA),i.ctx.fillStyle=kA,BA!==XA?(GA=e.bounds.left+.5*e.bounds.width,KA=e.bounds.top+.5*e.bounds.height,Ae=XA/BA,ee=1/Ae,i.ctx.save(),i.ctx.translate(GA,KA),i.ctx.transform(1,0,0,Ae,0,0),i.ctx.translate(-GA,-KA),i.ctx.fillRect(mA,ee*(nA-KA)+KA,cA,LA*ee),i.ctx.restore()):i.ctx.fill())),zA.label=6;case 6:return n--,[2]}})},i=this,s=0,a=e.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return s<a.length?(c=a[s],[5,r(c)]):[3,4];case 2:u.sent(),u.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(e,n,r){return lt(this,void 0,void 0,function(){return Ze(this,function(i){return this.path(HC(r,n)),this.ctx.fillStyle=De(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,n,r,i){return lt(this,void 0,void 0,function(){var s,a;return Ze(this,function(c){switch(c.label){case 0:return n<3?[4,this.renderSolidBorder(e,r,i)]:[3,2];case 1:return c.sent(),[2];case 2:return s=uN(i,r),this.path(s),this.ctx.fillStyle=De(e),this.ctx.fill(),a=fN(i,r),this.path(a),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c,u,f,p=this;return Ze(this,function(g){switch(g.label){case 0:return this.applyEffects(e.getEffects(2)),n=e.container.styles,r=!Ir(n.backgroundColor)||n.backgroundImage.length,i=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],s=QN(is(n.backgroundClip,0),e.curves),r||n.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Ir(n.backgroundColor)||(this.ctx.fillStyle=De(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:g.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(m){p.ctx.save();var w=yl(e.curves),F=m.inset?0:CN,b=lN(w,-F+(m.inset?1:-1)*m.spread.number,(m.inset?1:-1)*m.spread.number,m.spread.number*(m.inset?-2:2),m.spread.number*(m.inset?-2:2));m.inset?(p.path(w),p.ctx.clip(),p.mask(b)):(p.mask(w),p.ctx.clip(),p.path(b)),p.ctx.shadowOffsetX=m.offsetX.number+F,p.ctx.shadowOffsetY=m.offsetY.number,p.ctx.shadowColor=De(m.color),p.ctx.shadowBlur=m.blur.number,p.ctx.fillStyle=m.inset?De(m.color):"rgba(0,0,0,1)",p.ctx.fill(),p.ctx.restore()}),g.label=2;case 2:a=0,c=0,u=i,g.label=3;case 3:return c<u.length?(f=u[c],f.style!==0&&!Ir(f.color)&&f.width>0?f.style!==2?[3,5]:[4,this.renderDashedDottedBorder(f.color,f.width,a,e.curves,2)]:[3,11]):[3,13];case 4:return g.sent(),[3,11];case 5:return f.style!==3?[3,7]:[4,this.renderDashedDottedBorder(f.color,f.width,a,e.curves,3)];case 6:return g.sent(),[3,11];case 7:return f.style!==4?[3,9]:[4,this.renderDoubleBorder(f.color,f.width,a,e.curves)];case 8:return g.sent(),[3,11];case 9:return[4,this.renderSolidBorder(f.color,a,e.curves)];case 10:g.sent(),g.label=11;case 11:a++,g.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(e,n,r,i,s){return lt(this,void 0,void 0,function(){var a,c,u,f,p,g,m,w,F,b,v,_,S,E,L,U,L,U;return Ze(this,function(D){return this.ctx.save(),a=dN(i,r),c=HC(i,r),s===2&&(this.path(c),this.ctx.clip()),Wt(c[0])?(u=c[0].start.x,f=c[0].start.y):(u=c[0].x,f=c[0].y),Wt(c[1])?(p=c[1].end.x,g=c[1].end.y):(p=c[1].x,g=c[1].y),r===0||r===2?m=Math.abs(u-p):m=Math.abs(f-g),this.ctx.beginPath(),s===3?this.formatPath(a):this.formatPath(c.slice(0,2)),w=n<3?n*3:n*2,F=n<3?n*2:n,s===3&&(w=n,F=n),b=!0,m<=w*2?b=!1:m<=w*2+F?(v=m/(2*w+F),w*=v,F*=v):(_=Math.floor((m+F)/(w+F)),S=(m-_*w)/(_-1),E=(m-(_+1)*w)/_,F=E<=0||Math.abs(F-S)<Math.abs(F-E)?S:E),b&&(s===3?this.ctx.setLineDash([0,w+F]):this.ctx.setLineDash([w,F])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=De(e),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(Wt(c[0])&&(L=c[3],U=c[0],this.ctx.beginPath(),this.formatPath([new Z(L.end.x,L.end.y),new Z(U.start.x,U.start.y)]),this.ctx.stroke()),Wt(c[1])&&(L=c[1],U=c[2],this.ctx.beginPath(),this.formatPath([new Z(L.end.x,L.end.y),new Z(U.start.x,U.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(e){return lt(this,void 0,void 0,function(){var n;return Ze(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=De(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=cN(e),[4,this.renderStack(n)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(NC),EN=function(t){return t instanceof aC||t instanceof oC?!0:t instanceof Nf&&t.type!==pl&&t.type!==hl},QN=function(t,A){switch(t){case 0:return yl(A);case 2:return rN(A);case 1:default:return El(A)}},FN=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},bN=["-apple-system","system-ui"],UN=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(A){return bN.indexOf(A)===-1}):t},vN=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return A.prototype.render=function(e){return lt(this,void 0,void 0,function(){var n,r;return Ze(this,function(i){switch(i.label){case 0:return n=Hf(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,IN(n)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=De(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(r,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A}(NC),IN=function(t){return new Promise(function(A,e){var n=new Image;n.onload=function(){A(n)},n.onerror=e,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},SN=function(){function t(A){var e=A.id,n=A.enabled;this.id=e,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,La([this.id,this.getTime()+"ms"],A))},t.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.instances={},t}(),TN=function(){function t(A,e){var n;this.windowBounds=e,this.instanceName="#"+t.instanceCount++,this.logger=new SN({id:this.instanceName,enabled:A.logging}),this.cache=(n=A.cache)!==null&&n!==void 0?n:new zD(this,A)}return t.instanceCount=1,t}(),_N=function(t,A){return A===void 0&&(A={}),xN(t,A)};typeof window<"u"&&SC.setContext(window);var xN=function(t,A){return lt(void 0,void 0,void 0,function(){var e,n,r,i,s,a,c,u,f,p,g,m,w,F,b,v,_,S,E,L,D,U,D,P,N,sA,mA,nA,cA,LA,oe,RA,HA,rA,BA,XA,kA,GA,KA,Ae;return Ze(this,function(ee){switch(ee.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(e=t.ownerDocument,!e)throw new Error("Element is not attached to a Document");if(n=e.defaultView,!n)throw new Error("Document is not attached to a Window");return r={allowTaint:(P=A.allowTaint)!==null&&P!==void 0?P:!1,imageTimeout:(N=A.imageTimeout)!==null&&N!==void 0?N:15e3,proxy:A.proxy,useCORS:(sA=A.useCORS)!==null&&sA!==void 0?sA:!1},i=ju({logging:(mA=A.logging)!==null&&mA!==void 0?mA:!0,cache:A.cache},r),s={windowWidth:(nA=A.windowWidth)!==null&&nA!==void 0?nA:n.innerWidth,windowHeight:(cA=A.windowHeight)!==null&&cA!==void 0?cA:n.innerHeight,scrollX:(LA=A.scrollX)!==null&&LA!==void 0?LA:n.pageXOffset,scrollY:(oe=A.scrollY)!==null&&oe!==void 0?oe:n.pageYOffset},a=new Wn(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),c=new TN(i,a),u=(RA=A.foreignObjectRendering)!==null&&RA!==void 0?RA:!1,f={allowTaint:(HA=A.allowTaint)!==null&&HA!==void 0?HA:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:u,copyStyles:u},c.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),p=new vC(c,t,f),g=p.clonedReferenceElement,g?[4,p.toIFrame(e,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=ee.sent(),w=Rf(g)||OD(g)?lO(g.ownerDocument):Ha(c,g),F=w.width,b=w.height,v=w.left,_=w.top,S=ON(c,g,A.backgroundColor),E={canvas:A.canvas,backgroundColor:S,scale:(BA=(rA=A.scale)!==null&&rA!==void 0?rA:n.devicePixelRatio)!==null&&BA!==void 0?BA:1,x:((XA=A.x)!==null&&XA!==void 0?XA:0)+v,y:((kA=A.y)!==null&&kA!==void 0?kA:0)+_,width:(GA=A.width)!==null&&GA!==void 0?GA:Math.ceil(F),height:(KA=A.height)!==null&&KA!==void 0?KA:Math.ceil(b)},u?(c.logger.debug("Document cloned, using foreign object rendering"),D=new vN(c,E),[4,D.render(g)]):[3,3];case 2:return L=ee.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+v+","+_+" with size "+F+"x"+b+" using computed rendering"),c.logger.debug("Starting DOM parsing"),U=uC(c,g),S===U.styles.backgroundColor&&(U.styles.backgroundColor=Jn.TRANSPARENT),c.logger.debug("Starting renderer for element at "+E.x+","+E.y+" with size "+E.width+"x"+E.height),D=new yN(c,E),[4,D.render(U)];case 4:L=ee.sent(),ee.label=5;case 5:return(!((Ae=A.removeContainer)!==null&&Ae!==void 0)||Ae)&&(vC.destroy(m)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,L]}})})},ON=function(t,A,e){var n=A.ownerDocument,r=n.documentElement?co(t,getComputedStyle(n.documentElement).backgroundColor):Jn.TRANSPARENT,i=n.body?co(t,getComputedStyle(n.body).backgroundColor):Jn.TRANSPARENT,s=typeof e=="string"?co(t,e):e===null?Jn.TRANSPARENT:4294967295;return A===n.documentElement?Ir(r)?Ir(i)?s:i:r:s};const LN=h.defineComponent({__name:"dom-renderer",props:{modelValue:{type:String,default:""},fixedWidth:{type:Number,default:0},renderUpdates:{type:Boolean,default:!1},exportToSvg:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},debug:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=h.ref(),i=h.ref(""),s=h.ref();async function a(){if(r.value){const u=r.value,p=(await _N(u.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,width:u.offsetWidth,height:u.offsetHeight,...e.options})).toDataURL();if(n("update:modelValue",p),e.debug){const g=new Image;g.src=p,document.body.appendChild(g)}return p}return""}const c=vm.debounce(async()=>{i.value=await a()},300,{trailing:!0,leading:!1});return h.onMounted(()=>{const u=r.value;e.renderUpdates&&(s.value=new MutationObserver(async f=>{c()}),s.value.observe(u,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),setTimeout(()=>{c()},500)}),(u,f)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["dom-renderer",{"off-screen":!t.debug}]),ref_key:"renderer",ref:r,style:h.normalizeStyle(t.fixedWidth>0?{width:`${t.fixedWidth}px`}:{})},[h.renderSlot(u.$slots,"default")],6))}}),HN={class:"link-sharing"},kN={key:0,class:"link-sharing__links container"},DN={class:"row"},NN={key:0,class:"col-12 col-md-6"},MN=["href"],RN={class:"caption"},KN={key:1,class:"col-12 col-md-6"},PN=["href"],VN={class:"caption"},GN={key:2,class:"col-12 col-md-6"},WN={class:"caption"},$N={key:3,class:"col-12 col-md-6"},JN=["href"],XN={class:"caption"},YN={key:4,class:"col-12 col-md-6"},zN=["href"],qN={class:"caption"},ZN={key:5,class:"col-12 col-md-6"},jN={class:"caption"},AM={key:6,class:"col-12 col-md-6"},eM=["href"],tM={class:"caption"},nM={key:1,class:"link-sharing__instructions pt-5"},rM={class:"row"},iM={class:"col-12 text-center py-0"},sM={class:"mb-5"},oM=t=>t.replace(/<(?:.|\n)*?>/gm,""),aM=h.defineComponent({__name:"link-sharing",props:{url:{type:String,default:""},subject:{type:String,default:""},hashtags:Array,text:{type:String,default:""},media:{type:String,default:""},services:{type:Object,default:{facebook:!0,instagram:!0,linkedin:!0,whatsapp:!0,mailto:!0,clipboard:!0,x:!0}}},setup(t){const A=t,e=h.ref(!1),n=h.computed(()=>encodeURIComponent(A.url));h.computed(()=>encodeURIComponent(A.media));const r=h.computed(()=>oM(A.text)),i=h.computed(()=>!!(navigator&&navigator.userAgent&&/Mobi|Android/i.test(navigator.userAgent)));async function s(){const a=document.createElement("textarea");document.body.appendChild(a),a.value=A.url,a.select(),a.setSelectionRange(0,99999),navigator.clipboard.writeText(a.value),document.body.removeChild(a)}return(a,c)=>{const u=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",HN,[e.value?(h.openBlock(),h.createElementBlock("div",nM,[h.createElementVNode("div",rM,[h.createElementVNode("div",iM,[h.createElementVNode("div",sM,[h.createElementVNode("p",null,h.toDisplayString(a.$t("sharing.instructions",{service:"Instagram"})),1),h.createElementVNode("p",null,[h.createElementVNode("strong",null,h.toDisplayString(t.hashtags),1)])])])])])):(h.openBlock(),h.createElementBlock("div",kN,[h.createElementVNode("div",DN,[t.services.facebook?(h.openBlock(),h.createElementBlock("div",NN,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.facebook.com/sharer.php?u=${n.value}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"facebook"}),h.createElementVNode("span",RN,h.toDisplayString(a.$t("sharing.facebook")),1)],8,MN)])):h.createCommentVNode("",!0),t.services.x?(h.openBlock(),h.createElementBlock("div",KN,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://x.com/share?text=${t.subject}&url=${n.value}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"x-logo"}),h.createElementVNode("span",VN,h.toDisplayString(a.$t("sharing.x")),1)],8,PN)])):h.createCommentVNode("",!0),t.services.instagram?(h.openBlock(),h.createElementBlock("div",GN,[h.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:c[0]||(c[0]=h.withModifiers(f=>e.value=!e.value,["prevent"]))},[h.createVNode(u,{symbol:"instagram"}),h.createElementVNode("span",WN,h.toDisplayString(a.$t("sharing.instagram")),1)])])):h.createCommentVNode("",!0),t.services.linkedin?(h.openBlock(),h.createElementBlock("div",$N,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.linkedin.com/shareArticle?mini=true&url=${n.value}&title=${t.subject}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"linkedin"}),h.createElementVNode("span",XN,h.toDisplayString(a.$t("sharing.linkedin")),1)],8,JN)])):h.createCommentVNode("",!0),t.services.whatsapp&&i.value?(h.openBlock(),h.createElementBlock("div",YN,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`whatsapp://send?text=${n.value}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"whatsapp"}),h.createElementVNode("span",qN,h.toDisplayString(a.$t("sharing.whatsapp")),1)],8,zN)])):h.createCommentVNode("",!0),t.services.clipboard?(h.openBlock(),h.createElementBlock("div",ZN,[h.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:h.withModifiers(s,["prevent","stop"])},[h.createVNode(u,{symbol:"copy"}),h.createElementVNode("span",jN,h.toDisplayString(a.$t("sharing.clipboard")),1)])])):h.createCommentVNode("",!0),t.services.mailto?(h.openBlock(),h.createElementBlock("div",AM,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`mailto:?subject=${t.subject}&body=${r.value}%0D%0A${t.url}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"mail"}),h.createElementVNode("span",tM,h.toDisplayString(a.$t("sharing.mailto")),1)],8,eM)])):h.createCommentVNode("",!0)])]))])}}}),F3="",lM={class:"base-form"},cM=h.defineComponent({__name:"base-form",props:{id:{},name:{},variant:{},disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function A(r){console.log("input",r)}function e(r){console.log("reset",r)}function n(r){console.log("submit",r)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",lM,[h.createElementVNode("form",{ref:"form",onInput:A,onReset:e,onSubmit:h.withModifiers(n,["prevent"])},[h.renderSlot(r.$slots,"default")],544)]))}}),b3="",uM={class:"modal-dialog__content d-flex flex-column"},fM={class:"modal-dialog__header d-flex p-3 border-bottom"},dM={key:0,class:"modal-dialog__title",id:"exampleModalLabel"},hM={class:"modal-dialog__body"},pM={key:0,class:"modal-dialog__footer d-flex p-3 border-top"},gM=h.defineComponent({__name:"modal-dialog",props:{modelValue:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},size:{type:String,default:"md"},dismiss:{type:Boolean,default:!0},title:{type:String,default:""},footer:{type:Boolean,default:!0},classes:{type:String,default:""}},emits:["update:modelValue","confirm","cancel"],setup(t,{expose:A,emit:e}){const n=t,r=e,i=h.ref();function s(){var g,m;document.documentElement.style.setProperty("--scroll-position",`${Math.round(document.documentElement.scrollTop)}px`),n.modal?(g=i.value)==null||g.showModal():(m=i.value)==null||m.show(),r("update:modelValue",!0)}function a(){const g=i.value&&new KeyframeEffect(i.value,[{translate:"0 -100%",opacity:"0"}],{duration:320,easing:"ease",direction:"normal"}),m=new Animation(g,document.timeline);m.play(),m.addEventListener("finish",()=>{var w;(w=i.value)==null||w.close(),c()}),r("update:modelValue",!1)}function c(){const g=getComputedStyle(document.documentElement).getPropertyValue("--scroll-position");document.documentElement.scrollTo({top:parseInt(g,10),behavior:"instant"}),r("update:modelValue",!1)}function u(g){s(),r("confirm",g)}function f(){a(),r("cancel")}function p(g){const m=g.target;m&&m.nodeName==="DIALOG"&&a()}return h.watch(()=>n.modelValue,(g,m)=>{g&&g!==m?s():m&&a()},{immediate:!0}),h.onMounted(()=>{var g;(g=i.value)==null||g.addEventListener("cancel",m=>{m.preventDefault(),a()}),n.dismiss&&document.addEventListener("click",p),n.modelValue&&s()}),h.onBeforeUnmount(()=>{n.dismiss&&document.removeEventListener("click",p)}),A({show:s,close:a,confirm:u,cancel:f}),(g,m)=>(h.openBlock(),h.createElementBlock("dialog",{ref_key:"dialog",ref:i,class:h.normalizeClass(["modal-dialog",{[`modal-dialog--${t.size}`]:t.size}]),onClose:c},[h.createElementVNode("div",uM,[h.createElementVNode("div",fM,[t.title?(h.openBlock(),h.createElementBlock("h5",dM,h.toDisplayString(t.title),1)):h.createCommentVNode("",!0),h.createElementVNode("button",{type:"button",class:"btn-close ms-auto border-radius-none","aria-label":"Close",onClick:a})]),h.createElementVNode("div",hM,[h.renderSlot(g.$slots,"default")]),t.footer?(h.openBlock(),h.createElementBlock("div",pM,[h.renderSlot(g.$slots,"footer"),h.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:a},h.toDisplayString(g.$t("common.close")),1)])):h.createCommentVNode("",!0)])],34))}}),U3="",BM=["onDragenter","onDragover","onDragleave","onDragend","onDrop","innerHTML"],mM=["onDragstart","onDrag","onDragenter","onDragover","onDragleave","onDragend","onDrop"],wM={key:0,class:"sortable-list__drag-handle"},CM={type:"button",class:"btn"},yM={key:0,class:"sortable-list__item"},EM=h.defineComponent({__name:"sortable-list",props:{modelValue:{type:Array,default:()=>[]},config:{type:Object,default:null},messages:{type:Object,default:{}},vertical:{type:Boolean,default:!0},showDragHandle:{type:Boolean,default:!1},showPreview:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=h.ref(!1),r=h.ref(null),i=h.ref(null),s=A,a=h.computed({get(){return e.modelValue},set(_){s("update:modelValue",_)}}),c=h.computed(()=>{var _;return(_=document.querySelector(".is-drag-item"))==null?void 0:_.outerHTML}),u=h.useSlots(),f=h.computed(()=>u["list-append"]);function p(_,S){_.dataTransfer&&(_.dataTransfer.dropEffect="move",_.dataTransfer.effectAllowed="move",_.dataTransfer.setData("index",S.toLocaleString()),n.value=!0,r.value=S)}function g(_,S){n.value=!1,r.value=null,i.value=null}function m(_,S){}function w(_,S){i.value=r.value!==S?S:null}function F(_,S){}function b(_,S){}function v(_,S){if(_.dataTransfer){_.preventDefault();const E=Number(_.dataTransfer.getData("index")),L=S,U=[...a.value];(L||L===0)&&(E||E===0)&&U.splice(L,0,U.splice(E,1)[0]),a.value=U}}return(_,S)=>{const E=h.resolveComponent("svg-icon");return h.openBlock(),h.createBlock(h.TransitionGroup,{name:"list",tag:"ul",class:h.normalizeClass(["sortable-list p-0 d-flex gap-2",{"flex-column":t.vertical,"flex-row flex-wrap":!t.vertical}]),onDragover:S[0]||(S[0]=h.withModifiers(()=>{},["prevent"])),onDragenter:S[1]||(S[1]=h.withModifiers(()=>{},["prevent"]))},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,(L,U)=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:U},[t.showPreview&&n.value&&i.value===U?(h.openBlock(),h.createElementBlock("li",{key:0,class:"sortable-list__item is-drop-target",onDragenter:D=>w(D,U),onDragover:D=>void 0,onDragleave:D=>void 0,onDragend:D=>g(),onDrop:D=>v(D,U),innerHTML:c.value},null,40,BM)):h.createCommentVNode("",!0),h.createElementVNode("li",{class:h.normalizeClass(["sortable-list__item d-flex",{"is-drag-item":n.value&&r.value===U,"is-drop-target":n.value&&i.value===U&&!t.showPreview,"align-items-center gap-2":t.vertical}]),draggable:!0,onDragstart:D=>p(D,U),onDrag:D=>void 0,onDragenter:D=>w(D,U),onDragover:D=>void 0,onDragleave:D=>void 0,onDragend:D=>g(),onDrop:D=>v(D,U)},[t.showDragHandle?(h.openBlock(),h.createElementBlock("div",wM,[h.createElementVNode("button",CM,[h.createVNode(E,{symbol:"drag"})])])):h.createCommentVNode("",!0),h.createElementVNode("div",{class:h.normalizeClass(["sortable-list__item-content",{"flex-grow-1":t.vertical}])},[h.renderSlot(_.$slots,"list-item",{item:L,index:U},()=>[h.createTextVNode(h.toDisplayString(L),1)])],2)],42,mM)],64))),128)),f.value?(h.openBlock(),h.createElementBlock("li",yM,[h.renderSlot(_.$slots,"list-append")])):h.createCommentVNode("",!0)]),_:3},8,["class"])}}}),v3="";IA.Accordion=HE,IA.AccordionItem=TE,IA.AssetUploader=Jx,IA.AutoSuggest=h_,IA.BaseButton=DE,IA.BaseCamera=L_,IA.BaseCarousel=km,IA.BaseForm=cM,IA.BaseHeadline=CE,IA.BaseImage=wE,IA.BaseInput=KE,IA.BaseParagraph=EE,IA.CheckGroup=nQ,IA.DomRenderer=LN,IA.FileUpload=Dx,IA.InputCheckbox=YE,IA.InputColor=AS,IA.InputDatetime=jE,IA.InputDropdown=l_,IA.InputFile=gQ,IA.InputTextarea=WE,IA.LinkSharing=aM,IA.LoadingSpinner=BE,IA.MediaThumbnails=jx,IA.ModalDialog=gM,IA.ProgressSteps=aO,IA.RadioGroup=aQ,IA.RteEditor=z1,IA.SortableList=EM,IA.SvgIcon=hE,IA.UploadGroup=Hm,Object.defineProperty(IA,Symbol.toStringTag,{value:"Module"})});
183
+ .`+Wf+JD+IC)},YD=function(t,A){var e=t.ownerDocument;if(e){var n=e.createElement("style");n.textContent=A,t.appendChild(n)}},SC=function(){function t(){}return t.getOrigin=function(A){var e=t._link;return e?(e.href=A,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},t.isSameOrigin=function(A){return t.getOrigin(A)===t._origin},t.setContext=function(A){t._link=A.document.createElement("a"),t._origin=t.getOrigin(A.location.href)},t._origin="about:blank",t}(),zD=function(){function t(A,e){this.context=A,this._options=e,this._cache={}}return t.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(Jf(A)||AN(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),e},t.prototype.match=function(A){return this._cache[A]},t.prototype.loadImage=function(A){return lt(this,void 0,void 0,function(){var e,n,r,i,s=this;return Ze(this,function(a){switch(a.label){case 0:return e=SC.isSameOrigin(A),n=!$f(A)&&this._options.useCORS===!0&&Ve.SUPPORT_CORS_IMAGES&&!e,r=!$f(A)&&!e&&!Jf(A)&&typeof this._options.proxy=="string"&&Ve.SUPPORT_CORS_XHR&&!n,!e&&this._options.allowTaint===!1&&!$f(A)&&!Jf(A)&&!r&&!n?[2]:(i=A,r?[4,this.proxy(i)]:[3,2]);case 1:i=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(c,u){var f=new Image;f.onload=function(){return c(f)},f.onerror=u,(eN(i)||n)&&(f.crossOrigin="anonymous"),f.src=i,f.complete===!0&&setTimeout(function(){return c(f)},500),s._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,a.sent()]}})})},t.prototype.has=function(A){return typeof this._cache[A]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(A){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise(function(i,s){var a=Ve.SUPPORT_RESPONSE_TYPE?"blob":"text",c=new XMLHttpRequest;c.onload=function(){if(c.status===200)if(a==="text")i(c.response);else{var p=new FileReader;p.addEventListener("load",function(){return i(p.result)},!1),p.addEventListener("error",function(g){return s(g)},!1),p.readAsDataURL(c.response)}else s("Failed to proxy resource "+r+" with status code "+c.status)},c.onerror=s;var u=n.indexOf("?")>-1?"&":"?";if(c.open("GET",""+n+u+"url="+encodeURIComponent(A)+"&responseType="+a),a!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=a),e._options.imageTimeout){var f=e._options.imageTimeout;c.timeout=f,c.ontimeout=function(){return s("Timed out ("+f+"ms) proxying "+r)}}c.send()})},t}(),qD=/^data:image\/svg\+xml/i,ZD=/^data:image\/.*;base64,/i,jD=/^data:image\/.*/i,AN=function(t){return Ve.SUPPORT_SVG_DRAWING||!tN(t)},$f=function(t){return jD.test(t)},eN=function(t){return ZD.test(t)},Jf=function(t){return t.substr(0,4)==="blob"},tN=function(t){return t.substr(-3).toLowerCase()==="svg"||qD.test(t)},Z=function(){function t(A,e){this.type=0,this.x=A,this.y=e}return t.prototype.add=function(A,e){return new t(this.x+A,this.y+e)},t}(),ns=function(t,A,e){return new Z(t.x+(A.x-t.x)*e,t.y+(A.y-t.y)*e)},Cl=function(){function t(A,e,n,r){this.type=1,this.start=A,this.startControl=e,this.endControl=n,this.end=r}return t.prototype.subdivide=function(A,e){var n=ns(this.start,this.startControl,A),r=ns(this.startControl,this.endControl,A),i=ns(this.endControl,this.end,A),s=ns(n,r,A),a=ns(r,i,A),c=ns(s,a,A);return e?new t(this.start,n,s,c):new t(c,a,i,this.end)},t.prototype.add=function(A,e){return new t(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Wt=function(t){return t.type===1},nN=function(){function t(A){var e=A.styles,n=A.bounds,r=lo(e.borderTopLeftRadius,n.width,n.height),i=r[0],s=r[1],a=lo(e.borderTopRightRadius,n.width,n.height),c=a[0],u=a[1],f=lo(e.borderBottomRightRadius,n.width,n.height),p=f[0],g=f[1],m=lo(e.borderBottomLeftRadius,n.width,n.height),w=m[0],F=m[1],b=[];b.push((i+c)/n.width),b.push((w+p)/n.width),b.push((s+F)/n.height),b.push((u+g)/n.height);var v=Math.max.apply(Math,b);v>1&&(i/=v,s/=v,c/=v,u/=v,p/=v,g/=v,w/=v,F/=v);var _=n.width-c,S=n.height-g,E=n.width-p,L=n.height-F,U=e.borderTopWidth,D=e.borderRightWidth,P=e.borderBottomWidth,N=e.borderLeftWidth,sA=se(e.paddingTop,A.bounds.width),mA=se(e.paddingRight,A.bounds.width),nA=se(e.paddingBottom,A.bounds.width),cA=se(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?ue(n.left+N/3,n.top+U/3,i-N/3,s-U/3,JA.TOP_LEFT):new Z(n.left+N/3,n.top+U/3),this.topRightBorderDoubleOuterBox=i>0||s>0?ue(n.left+_,n.top+U/3,c-D/3,u-U/3,JA.TOP_RIGHT):new Z(n.left+n.width-D/3,n.top+U/3),this.bottomRightBorderDoubleOuterBox=p>0||g>0?ue(n.left+E,n.top+S,p-D/3,g-P/3,JA.BOTTOM_RIGHT):new Z(n.left+n.width-D/3,n.top+n.height-P/3),this.bottomLeftBorderDoubleOuterBox=w>0||F>0?ue(n.left+N/3,n.top+L,w-N/3,F-P/3,JA.BOTTOM_LEFT):new Z(n.left+N/3,n.top+n.height-P/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?ue(n.left+N*2/3,n.top+U*2/3,i-N*2/3,s-U*2/3,JA.TOP_LEFT):new Z(n.left+N*2/3,n.top+U*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?ue(n.left+_,n.top+U*2/3,c-D*2/3,u-U*2/3,JA.TOP_RIGHT):new Z(n.left+n.width-D*2/3,n.top+U*2/3),this.bottomRightBorderDoubleInnerBox=p>0||g>0?ue(n.left+E,n.top+S,p-D*2/3,g-P*2/3,JA.BOTTOM_RIGHT):new Z(n.left+n.width-D*2/3,n.top+n.height-P*2/3),this.bottomLeftBorderDoubleInnerBox=w>0||F>0?ue(n.left+N*2/3,n.top+L,w-N*2/3,F-P*2/3,JA.BOTTOM_LEFT):new Z(n.left+N*2/3,n.top+n.height-P*2/3),this.topLeftBorderStroke=i>0||s>0?ue(n.left+N/2,n.top+U/2,i-N/2,s-U/2,JA.TOP_LEFT):new Z(n.left+N/2,n.top+U/2),this.topRightBorderStroke=i>0||s>0?ue(n.left+_,n.top+U/2,c-D/2,u-U/2,JA.TOP_RIGHT):new Z(n.left+n.width-D/2,n.top+U/2),this.bottomRightBorderStroke=p>0||g>0?ue(n.left+E,n.top+S,p-D/2,g-P/2,JA.BOTTOM_RIGHT):new Z(n.left+n.width-D/2,n.top+n.height-P/2),this.bottomLeftBorderStroke=w>0||F>0?ue(n.left+N/2,n.top+L,w-N/2,F-P/2,JA.BOTTOM_LEFT):new Z(n.left+N/2,n.top+n.height-P/2),this.topLeftBorderBox=i>0||s>0?ue(n.left,n.top,i,s,JA.TOP_LEFT):new Z(n.left,n.top),this.topRightBorderBox=c>0||u>0?ue(n.left+_,n.top,c,u,JA.TOP_RIGHT):new Z(n.left+n.width,n.top),this.bottomRightBorderBox=p>0||g>0?ue(n.left+E,n.top+S,p,g,JA.BOTTOM_RIGHT):new Z(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=w>0||F>0?ue(n.left,n.top+L,w,F,JA.BOTTOM_LEFT):new Z(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||s>0?ue(n.left+N,n.top+U,Math.max(0,i-N),Math.max(0,s-U),JA.TOP_LEFT):new Z(n.left+N,n.top+U),this.topRightPaddingBox=c>0||u>0?ue(n.left+Math.min(_,n.width-D),n.top+U,_>n.width+D?0:Math.max(0,c-D),Math.max(0,u-U),JA.TOP_RIGHT):new Z(n.left+n.width-D,n.top+U),this.bottomRightPaddingBox=p>0||g>0?ue(n.left+Math.min(E,n.width-N),n.top+Math.min(S,n.height-P),Math.max(0,p-D),Math.max(0,g-P),JA.BOTTOM_RIGHT):new Z(n.left+n.width-D,n.top+n.height-P),this.bottomLeftPaddingBox=w>0||F>0?ue(n.left+N,n.top+Math.min(L,n.height-P),Math.max(0,w-N),Math.max(0,F-P),JA.BOTTOM_LEFT):new Z(n.left+N,n.top+n.height-P),this.topLeftContentBox=i>0||s>0?ue(n.left+N+cA,n.top+U+sA,Math.max(0,i-(N+cA)),Math.max(0,s-(U+sA)),JA.TOP_LEFT):new Z(n.left+N+cA,n.top+U+sA),this.topRightContentBox=c>0||u>0?ue(n.left+Math.min(_,n.width+N+cA),n.top+U+sA,_>n.width+N+cA?0:c-N+cA,u-(U+sA),JA.TOP_RIGHT):new Z(n.left+n.width-(D+mA),n.top+U+sA),this.bottomRightContentBox=p>0||g>0?ue(n.left+Math.min(E,n.width-(N+cA)),n.top+Math.min(S,n.height+U+sA),Math.max(0,p-(D+mA)),g-(P+nA),JA.BOTTOM_RIGHT):new Z(n.left+n.width-(D+mA),n.top+n.height-(P+nA)),this.bottomLeftContentBox=w>0||F>0?ue(n.left+N+cA,n.top+L,Math.max(0,w-(N+cA)),F-(P+nA),JA.BOTTOM_LEFT):new Z(n.left+N+cA,n.top+n.height-(P+nA))}return t}(),JA;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(JA||(JA={}));var ue=function(t,A,e,n,r){var i=4*((Math.sqrt(2)-1)/3),s=e*i,a=n*i,c=t+e,u=A+n;switch(r){case JA.TOP_LEFT:return new Cl(new Z(t,u),new Z(t,u-a),new Z(c-s,A),new Z(c,A));case JA.TOP_RIGHT:return new Cl(new Z(t,A),new Z(t+s,A),new Z(c,u-a),new Z(c,u));case JA.BOTTOM_RIGHT:return new Cl(new Z(c,A),new Z(c,A+a),new Z(t+s,u),new Z(t,u));case JA.BOTTOM_LEFT:default:return new Cl(new Z(c,u),new Z(c-s,u),new Z(t,A+a),new Z(t,A))}},yl=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},rN=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},El=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},iN=function(){function t(A,e,n){this.offsetX=A,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}return t}(),Ql=function(){function t(A,e){this.path=A,this.target=e,this.type=1}return t}(),sN=function(){function t(A){this.opacity=A,this.type=2,this.target=6}return t}(),oN=function(t){return t.type===0},TC=function(t){return t.type===1},aN=function(t){return t.type===2},_C=function(t,A){return t.length===A.length?t.some(function(e,n){return e===A[n]}):!1},lN=function(t,A,e,n,r){return t.map(function(i,s){switch(s){case 0:return i.add(A,e);case 1:return i.add(A+n,e);case 2:return i.add(A+n,e+r);case 3:return i.add(A,e+r)}return i})},xC=function(){function t(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),OC=function(){function t(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new nN(this.container),this.container.styles.opacity<1&&this.effects.push(new sN(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new iN(n,r,i))}if(this.container.styles.overflowX!==0){var s=yl(this.curves),a=El(this.curves);_C(s,a)?this.effects.push(new Ql(s,6)):(this.effects.push(new Ql(s,2)),this.effects.push(new Ql(a,4)))}}return t.prototype.getEffects=function(A){for(var e=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(c){return!TC(c)});if(e||n.container.styles.position!==0||!n.parent){if(r.unshift.apply(r,i),e=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var s=yl(n.curves),a=El(n.curves);_C(s,a)||r.unshift(new Ql(a,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(c){return Se(c.target,A)})},t}(),Xf=function(t,A,e,n){t.container.elements.forEach(function(r){var i=Se(r.flags,4),s=Se(r.flags,2),a=new OC(r,t);Se(r.styles.display,2048)&&n.push(a);var c=Se(r.flags,8)?[]:n;if(i||s){var u=i||r.styles.isPositioned()?e:A,f=new xC(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var p=r.styles.zIndex.order;if(p<0){var g=0;u.negativeZIndex.some(function(w,F){return p>w.element.container.styles.zIndex.order?(g=F,!1):g>0}),u.negativeZIndex.splice(g,0,f)}else if(p>0){var m=0;u.positiveZIndex.some(function(w,F){return p>=w.element.container.styles.zIndex.order?(m=F+1,!1):m>0}),u.positiveZIndex.splice(m,0,f)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(f)}else r.styles.isFloating()?u.nonPositionedFloats.push(f):u.nonPositionedInlineLevel.push(f);Xf(a,f,i?f:e,c)}else r.styles.isInlineLevel()?A.inlineLevel.push(a):A.nonInlineLevel.push(a),Xf(a,A,e,c);Se(r.flags,8)&&LC(r,c)})},LC=function(t,A){for(var e=t instanceof Df?t.start:1,n=t instanceof Df?t.reversed:!1,r=0;r<A.length;r++){var i=A[r];i.container instanceof iC&&typeof i.container.value=="number"&&i.container.value!==0&&(e=i.container.value),i.listValue=go(e,i.container.styles.listStyleType,!0),e+=n?-1:1}},cN=function(t){var A=new OC(t,null),e=new xC(A),n=[];return Xf(A,e,e,n),LC(A.container,n),e},HC=function(t,A){switch(A){case 0:return $t(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return $t(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return $t(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return $t(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},uN=function(t,A){switch(A){case 0:return $t(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return $t(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return $t(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return $t(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},fN=function(t,A){switch(A){case 0:return $t(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return $t(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return $t(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return $t(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},dN=function(t,A){switch(A){case 0:return Fl(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Fl(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Fl(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return Fl(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},Fl=function(t,A){var e=[];return Wt(t)?e.push(t.subdivide(.5,!1)):e.push(t),Wt(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},$t=function(t,A,e,n){var r=[];return Wt(t)?r.push(t.subdivide(.5,!1)):r.push(t),Wt(e)?r.push(e.subdivide(.5,!0)):r.push(e),Wt(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),Wt(A)?r.push(A.subdivide(.5,!1).reverse()):r.push(A),r},kC=function(t){var A=t.bounds,e=t.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},bl=function(t){var A=t.styles,e=t.bounds,n=se(A.paddingLeft,e.width),r=se(A.paddingRight,e.width),i=se(A.paddingTop,e.width),s=se(A.paddingBottom,e.width);return e.add(n+A.borderLeftWidth,i+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+n+r),-(A.borderTopWidth+A.borderBottomWidth+i+s))},hN=function(t,A){return t===0?A.bounds:t===2?bl(A):kC(A)},pN=function(t,A){return t===0?A.bounds:t===2?bl(A):kC(A)},Yf=function(t,A,e){var n=hN(is(t.styles.backgroundOrigin,A),t),r=pN(is(t.styles.backgroundClip,A),t),i=gN(is(t.styles.backgroundSize,A),e,n),s=i[0],a=i[1],c=lo(is(t.styles.backgroundPosition,A),n.width-s,n.height-a),u=BN(is(t.styles.backgroundRepeat,A),c,i,n,r),f=Math.round(n.left+c[0]),p=Math.round(n.top+c[1]);return[u,f,p,s,a]},rs=function(t){return jA(t)&&t.value===ji.AUTO},Ul=function(t){return typeof t=="number"},gN=function(t,A,e){var n=A[0],r=A[1],i=A[2],s=t[0],a=t[1];if(!s)return[0,0];if(Ue(s)&&a&&Ue(a))return[se(s,e.width),se(a,e.height)];var c=Ul(i);if(jA(s)&&(s.value===ji.CONTAIN||s.value===ji.COVER)){if(Ul(i)){var u=e.width/e.height;return u<i!=(s.value===ji.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.height]}var f=Ul(n),p=Ul(r),g=f||p;if(rs(s)&&(!a||rs(a))){if(f&&p)return[n,r];if(!c&&!g)return[e.width,e.height];if(g&&c){var m=f?n:r*i,w=p?r:n/i;return[m,w]}var F=f?n:e.width,b=p?r:e.height;return[F,b]}if(c){var v=0,_=0;return Ue(s)?v=se(s,e.width):Ue(a)&&(_=se(a,e.height)),rs(s)?v=_*i:(!a||rs(a))&&(_=v/i),[v,_]}var S=null,E=null;if(Ue(s)?S=se(s,e.width):a&&Ue(a)&&(E=se(a,e.height)),S!==null&&(!a||rs(a))&&(E=f&&p?S/n*r:e.height),E!==null&&rs(s)&&(S=f&&p?E/r*n:e.width),S!==null&&E!==null)return[S,E];throw new Error("Unable to calculate background-size for element")},is=function(t,A){var e=t[A];return typeof e>"u"?t[0]:e},BN=function(t,A,e,n,r){var i=A[0],s=A[1],a=e[0],c=e[1];switch(t){case 2:return[new Z(Math.round(n.left),Math.round(n.top+s)),new Z(Math.round(n.left+n.width),Math.round(n.top+s)),new Z(Math.round(n.left+n.width),Math.round(c+n.top+s)),new Z(Math.round(n.left),Math.round(c+n.top+s))];case 3:return[new Z(Math.round(n.left+i),Math.round(n.top)),new Z(Math.round(n.left+i+a),Math.round(n.top)),new Z(Math.round(n.left+i+a),Math.round(n.height+n.top)),new Z(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new Z(Math.round(n.left+i),Math.round(n.top+s)),new Z(Math.round(n.left+i+a),Math.round(n.top+s)),new Z(Math.round(n.left+i+a),Math.round(n.top+s+c)),new Z(Math.round(n.left+i),Math.round(n.top+s+c))];default:return[new Z(Math.round(r.left),Math.round(r.top)),new Z(Math.round(r.left+r.width),Math.round(r.top)),new Z(Math.round(r.left+r.width),Math.round(r.height+r.top)),new Z(Math.round(r.left),Math.round(r.height+r.top))]}},mN="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",DC="Hidden Text",wN=function(){function t(A){this._data={},this._document=A}return t.prototype.parseMetrics=function(A,e){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;n.style.visibility="hidden",n.style.fontFamily=A,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",s.appendChild(n),r.src=mN,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=A,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(DC)),n.appendChild(i),n.appendChild(r);var a=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(DC)),n.style.lineHeight="normal",r.style.verticalAlign="super";var c=r.offsetTop-n.offsetTop+2;return s.removeChild(n),{baseline:a,middle:c}},t.prototype.getMetrics=function(A,e){var n=A+" "+e;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(A,e)),this._data[n]},t}(),NC=function(){function t(A,e){this.context=A,this.options=e}return t}(),CN=1e4,yN=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new wN(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return A.prototype.applyEffects=function(e){for(var n=this;this._activeEffects.length;)this.popEffect();e.forEach(function(r){return n.applyEffect(r)})},A.prototype.applyEffect=function(e){this.ctx.save(),aN(e)&&(this.ctx.globalAlpha=e.opacity),oN(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),TC(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(e){return lt(this,void 0,void 0,function(){var n;return Ze(this,function(r){switch(r.label){case 0:return n=e.element.container.styles,n.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(e){return lt(this,void 0,void 0,function(){return Ze(this,function(n){switch(n.label){case 0:if(Se(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(e)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(e,n,r){var i=this;if(n===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+r);else{var s=kf(e.text);s.reduce(function(a,c){return i.ctx.fillText(c,a,e.bounds.top+r),a+i.ctx.measureText(c).width},e.bounds.left)}},A.prototype.createFontStyle=function(e){var n=e.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),r=UN(e.fontFamily).join(", "),i=ao(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,n,e.fontWeight,i,r].join(" "),r,i]},A.prototype.renderTextNode=function(e,n){return lt(this,void 0,void 0,function(){var r,i,s,a,c,u,f,p,g=this;return Ze(this,function(m){return r=this.createFontStyle(n),i=r[0],s=r[1],a=r[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",c=this.fontMetrics.getMetrics(s,a),u=c.baseline,f=c.middle,p=n.paintOrder,e.textBounds.forEach(function(w){p.forEach(function(F){switch(F){case 0:g.ctx.fillStyle=De(n.color),g.renderTextWithLetterSpacing(w,n.letterSpacing,u);var b=n.textShadow;b.length&&w.text.trim().length&&(b.slice(0).reverse().forEach(function(v){g.ctx.shadowColor=De(v.color),g.ctx.shadowOffsetX=v.offsetX.number*g.options.scale,g.ctx.shadowOffsetY=v.offsetY.number*g.options.scale,g.ctx.shadowBlur=v.blur.number,g.renderTextWithLetterSpacing(w,n.letterSpacing,u)}),g.ctx.shadowColor="",g.ctx.shadowOffsetX=0,g.ctx.shadowOffsetY=0,g.ctx.shadowBlur=0),n.textDecorationLine.length&&(g.ctx.fillStyle=De(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(v){switch(v){case 1:g.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top+u),w.bounds.width,1);break;case 2:g.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top),w.bounds.width,1);break;case 3:g.ctx.fillRect(w.bounds.left,Math.ceil(w.bounds.top+f),w.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&w.text.trim().length&&(g.ctx.strokeStyle=De(n.webkitTextStrokeColor),g.ctx.lineWidth=n.webkitTextStrokeWidth,g.ctx.lineJoin=window.chrome?"miter":"round",g.ctx.strokeText(w.text,w.bounds.left,w.bounds.top+u)),g.ctx.strokeStyle="",g.ctx.lineWidth=0,g.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(e,n,r){if(r&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=bl(e),s=El(n);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c,_,_,u,f,p,g,E,m,w,L,F,b,v,_,S,E,L;return Ze(this,function(U){switch(U.label){case 0:this.applyEffects(e.getEffects(4)),n=e.container,r=e.curves,i=n.styles,s=0,a=n.textNodes,U.label=1;case 1:return s<a.length?(c=a[s],[4,this.renderTextNode(c,i)]):[3,4];case 2:U.sent(),U.label=3;case 3:return s++,[3,1];case 4:if(!(n instanceof tC))return[3,8];U.label=5;case 5:return U.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return _=U.sent(),this.renderReplacedElement(n,r,_),[3,8];case 7:return U.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof nC&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof rC))return[3,12];U.label=9;case 9:return U.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return _=U.sent(),this.renderReplacedElement(n,r,_),[3,12];case 11:return U.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof lC&&n.tree?(u=new A(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,u.render(n.tree)]):[3,14];case 13:f=U.sent(),n.width&&n.height&&this.ctx.drawImage(f,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),U.label=14;case 14:if(n instanceof Nf&&(p=Math.min(n.bounds.width,n.bounds.height),n.type===hl?n.checked&&(this.ctx.save(),this.path([new Z(n.bounds.left+p*.39363,n.bounds.top+p*.79),new Z(n.bounds.left+p*.16,n.bounds.top+p*.5549),new Z(n.bounds.left+p*.27347,n.bounds.top+p*.44071),new Z(n.bounds.left+p*.39694,n.bounds.top+p*.5649),new Z(n.bounds.left+p*.72983,n.bounds.top+p*.23),new Z(n.bounds.left+p*.84,n.bounds.top+p*.34085),new Z(n.bounds.left+p*.39363,n.bounds.top+p*.79)]),this.ctx.fillStyle=De(sC),this.ctx.fill(),this.ctx.restore()):n.type===pl&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+p/2,n.bounds.top+p/2,p/4,0,Math.PI*2,!0),this.ctx.fillStyle=De(sC),this.ctx.fill(),this.ctx.restore())),EN(n)&&n.value.length){switch(g=this.createFontStyle(i),E=g[0],m=g[1],w=this.fontMetrics.getMetrics(E,m).baseline,this.ctx.font=E,this.ctx.fillStyle=De(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=FN(n.styles.textAlign),L=bl(n),F=0,n.styles.textAlign){case 1:F+=L.width/2;break;case 2:F+=L.width;break}b=L.add(F,0,0,-L.height/2+1),this.ctx.save(),this.path([new Z(L.left,L.top),new Z(L.left+L.width,L.top),new Z(L.left+L.width,L.top+L.height),new Z(L.left,L.top+L.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ho(n.value,b),i.letterSpacing,w),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Se(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(v=n.styles.listStyleImage,v.type!==0)return[3,18];_=void 0,S=v.url,U.label=15;case 15:return U.trys.push([15,17,,18]),[4,this.context.cache.match(S)];case 16:return _=U.sent(),this.ctx.drawImage(_,n.bounds.left-(_.width+10),n.bounds.top),[3,18];case 17:return U.sent(),this.context.logger.error("Error loading list-style-image "+S),[3,18];case 18:return[3,20];case 19:e.listValue&&n.styles.listStyleType!==-1&&(E=this.createFontStyle(i)[0],this.ctx.font=E,this.ctx.fillStyle=De(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",L=new Wn(n.bounds.left,n.bounds.top+se(n.styles.paddingTop,n.bounds.width),n.bounds.width,Dw(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ho(e.listValue,L),i.letterSpacing,Dw(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),U.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(e){return lt(this,void 0,void 0,function(){var n,r,v,i,s,v,a,c,v,u,f,v,p,g,v,m,w,v,F,b,v;return Ze(this,function(_){switch(_.label){case 0:if(Se(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:_.sent(),n=0,r=e.negativeZIndex,_.label=2;case 2:return n<r.length?(v=r[n],[4,this.renderStack(v)]):[3,5];case 3:_.sent(),_.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:_.sent(),i=0,s=e.nonInlineLevel,_.label=7;case 7:return i<s.length?(v=s[i],[4,this.renderNode(v)]):[3,10];case 8:_.sent(),_.label=9;case 9:return i++,[3,7];case 10:a=0,c=e.nonPositionedFloats,_.label=11;case 11:return a<c.length?(v=c[a],[4,this.renderStack(v)]):[3,14];case 12:_.sent(),_.label=13;case 13:return a++,[3,11];case 14:u=0,f=e.nonPositionedInlineLevel,_.label=15;case 15:return u<f.length?(v=f[u],[4,this.renderStack(v)]):[3,18];case 16:_.sent(),_.label=17;case 17:return u++,[3,15];case 18:p=0,g=e.inlineLevel,_.label=19;case 19:return p<g.length?(v=g[p],[4,this.renderNode(v)]):[3,22];case 20:_.sent(),_.label=21;case 21:return p++,[3,19];case 22:m=0,w=e.zeroOrAutoZIndexOrTransformedOrOpacity,_.label=23;case 23:return m<w.length?(v=w[m],[4,this.renderStack(v)]):[3,26];case 24:_.sent(),_.label=25;case 25:return m++,[3,23];case 26:F=0,b=e.positiveZIndex,_.label=27;case 27:return F<b.length?(v=b[F],[4,this.renderStack(v)]):[3,30];case 28:_.sent(),_.label=29;case 29:return F++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},A.prototype.formatPath=function(e){var n=this;e.forEach(function(r,i){var s=Wt(r)?r.start:r;i===0?n.ctx.moveTo(s.x,s.y):n.ctx.lineTo(s.x,s.y),Wt(r)&&n.ctx.bezierCurveTo(r.startControl.x,r.startControl.y,r.endControl.x,r.endControl.y,r.end.x,r.end.y)})},A.prototype.renderRepeat=function(e,n,r,i){this.path(e),this.ctx.fillStyle=n,this.ctx.translate(r,i),this.ctx.fill(),this.ctx.translate(-r,-i)},A.prototype.resizeImage=function(e,n,r){var i;if(e.width===n&&e.height===r)return e;var s=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,a=s.createElement("canvas");a.width=Math.max(1,n),a.height=Math.max(1,r);var c=a.getContext("2d");return c.drawImage(e,0,0,e.width,e.height,0,0,n,r),a},A.prototype.renderBackgroundImage=function(e){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c;return Ze(this,function(u){switch(u.label){case 0:n=e.styles.backgroundImage.length-1,r=function(f){var p,g,m,sA,RA,HA,cA,LA,P,w,sA,RA,HA,cA,LA,F,b,v,_,S,E,L,U,D,P,N,sA,mA,nA,cA,LA,oe,RA,HA,rA,BA,XA,kA,GA,KA,Ae,ee;return Ze(this,function(zA){switch(zA.label){case 0:if(f.type!==0)return[3,5];p=void 0,g=f.url,zA.label=1;case 1:return zA.trys.push([1,3,,4]),[4,i.context.cache.match(g)];case 2:return p=zA.sent(),[3,4];case 3:return zA.sent(),i.context.logger.error("Error loading background-image "+g),[3,4];case 4:return p&&(m=Yf(e,n,[p.width,p.height,p.width/p.height]),sA=m[0],RA=m[1],HA=m[2],cA=m[3],LA=m[4],P=i.ctx.createPattern(i.resizeImage(p,cA,LA),"repeat"),i.renderRepeat(sA,P,RA,HA)),[3,6];case 5:oH(f)?(w=Yf(e,n,[null,null,null]),sA=w[0],RA=w[1],HA=w[2],cA=w[3],LA=w[4],F=tH(f.angle,cA,LA),b=F[0],v=F[1],_=F[2],S=F[3],E=F[4],L=document.createElement("canvas"),L.width=cA,L.height=LA,U=L.getContext("2d"),D=U.createLinearGradient(v,S,_,E),Uw(f.stops,b).forEach(function(he){return D.addColorStop(he.stop,De(he.color))}),U.fillStyle=D,U.fillRect(0,0,cA,LA),cA>0&&LA>0&&(P=i.ctx.createPattern(L,"repeat"),i.renderRepeat(sA,P,RA,HA))):aH(f)&&(N=Yf(e,n,[null,null,null]),sA=N[0],mA=N[1],nA=N[2],cA=N[3],LA=N[4],oe=f.position.length===0?[yf]:f.position,RA=se(oe[0],cA),HA=se(oe[oe.length-1],LA),rA=nH(f,RA,HA,cA,LA),BA=rA[0],XA=rA[1],BA>0&&XA>0&&(kA=i.ctx.createRadialGradient(mA+RA,nA+HA,0,mA+RA,nA+HA,BA),Uw(f.stops,BA*2).forEach(function(he){return kA.addColorStop(he.stop,De(he.color))}),i.path(sA),i.ctx.fillStyle=kA,BA!==XA?(GA=e.bounds.left+.5*e.bounds.width,KA=e.bounds.top+.5*e.bounds.height,Ae=XA/BA,ee=1/Ae,i.ctx.save(),i.ctx.translate(GA,KA),i.ctx.transform(1,0,0,Ae,0,0),i.ctx.translate(-GA,-KA),i.ctx.fillRect(mA,ee*(nA-KA)+KA,cA,LA*ee),i.ctx.restore()):i.ctx.fill())),zA.label=6;case 6:return n--,[2]}})},i=this,s=0,a=e.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return s<a.length?(c=a[s],[5,r(c)]):[3,4];case 2:u.sent(),u.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(e,n,r){return lt(this,void 0,void 0,function(){return Ze(this,function(i){return this.path(HC(r,n)),this.ctx.fillStyle=De(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,n,r,i){return lt(this,void 0,void 0,function(){var s,a;return Ze(this,function(c){switch(c.label){case 0:return n<3?[4,this.renderSolidBorder(e,r,i)]:[3,2];case 1:return c.sent(),[2];case 2:return s=uN(i,r),this.path(s),this.ctx.fillStyle=De(e),this.ctx.fill(),a=fN(i,r),this.path(a),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return lt(this,void 0,void 0,function(){var n,r,i,s,a,c,u,f,p=this;return Ze(this,function(g){switch(g.label){case 0:return this.applyEffects(e.getEffects(2)),n=e.container.styles,r=!Ir(n.backgroundColor)||n.backgroundImage.length,i=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],s=QN(is(n.backgroundClip,0),e.curves),r||n.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Ir(n.backgroundColor)||(this.ctx.fillStyle=De(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:g.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(m){p.ctx.save();var w=yl(e.curves),F=m.inset?0:CN,b=lN(w,-F+(m.inset?1:-1)*m.spread.number,(m.inset?1:-1)*m.spread.number,m.spread.number*(m.inset?-2:2),m.spread.number*(m.inset?-2:2));m.inset?(p.path(w),p.ctx.clip(),p.mask(b)):(p.mask(w),p.ctx.clip(),p.path(b)),p.ctx.shadowOffsetX=m.offsetX.number+F,p.ctx.shadowOffsetY=m.offsetY.number,p.ctx.shadowColor=De(m.color),p.ctx.shadowBlur=m.blur.number,p.ctx.fillStyle=m.inset?De(m.color):"rgba(0,0,0,1)",p.ctx.fill(),p.ctx.restore()}),g.label=2;case 2:a=0,c=0,u=i,g.label=3;case 3:return c<u.length?(f=u[c],f.style!==0&&!Ir(f.color)&&f.width>0?f.style!==2?[3,5]:[4,this.renderDashedDottedBorder(f.color,f.width,a,e.curves,2)]:[3,11]):[3,13];case 4:return g.sent(),[3,11];case 5:return f.style!==3?[3,7]:[4,this.renderDashedDottedBorder(f.color,f.width,a,e.curves,3)];case 6:return g.sent(),[3,11];case 7:return f.style!==4?[3,9]:[4,this.renderDoubleBorder(f.color,f.width,a,e.curves)];case 8:return g.sent(),[3,11];case 9:return[4,this.renderSolidBorder(f.color,a,e.curves)];case 10:g.sent(),g.label=11;case 11:a++,g.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(e,n,r,i,s){return lt(this,void 0,void 0,function(){var a,c,u,f,p,g,m,w,F,b,v,_,S,E,L,U,L,U;return Ze(this,function(D){return this.ctx.save(),a=dN(i,r),c=HC(i,r),s===2&&(this.path(c),this.ctx.clip()),Wt(c[0])?(u=c[0].start.x,f=c[0].start.y):(u=c[0].x,f=c[0].y),Wt(c[1])?(p=c[1].end.x,g=c[1].end.y):(p=c[1].x,g=c[1].y),r===0||r===2?m=Math.abs(u-p):m=Math.abs(f-g),this.ctx.beginPath(),s===3?this.formatPath(a):this.formatPath(c.slice(0,2)),w=n<3?n*3:n*2,F=n<3?n*2:n,s===3&&(w=n,F=n),b=!0,m<=w*2?b=!1:m<=w*2+F?(v=m/(2*w+F),w*=v,F*=v):(_=Math.floor((m+F)/(w+F)),S=(m-_*w)/(_-1),E=(m-(_+1)*w)/_,F=E<=0||Math.abs(F-S)<Math.abs(F-E)?S:E),b&&(s===3?this.ctx.setLineDash([0,w+F]):this.ctx.setLineDash([w,F])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=De(e),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(Wt(c[0])&&(L=c[3],U=c[0],this.ctx.beginPath(),this.formatPath([new Z(L.end.x,L.end.y),new Z(U.start.x,U.start.y)]),this.ctx.stroke()),Wt(c[1])&&(L=c[1],U=c[2],this.ctx.beginPath(),this.formatPath([new Z(L.end.x,L.end.y),new Z(U.start.x,U.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(e){return lt(this,void 0,void 0,function(){var n;return Ze(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=De(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=cN(e),[4,this.renderStack(n)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(NC),EN=function(t){return t instanceof aC||t instanceof oC?!0:t instanceof Nf&&t.type!==pl&&t.type!==hl},QN=function(t,A){switch(t){case 0:return yl(A);case 2:return rN(A);case 1:default:return El(A)}},FN=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},bN=["-apple-system","system-ui"],UN=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(A){return bN.indexOf(A)===-1}):t},vN=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return A.prototype.render=function(e){return lt(this,void 0,void 0,function(){var n,r;return Ze(this,function(i){switch(i.label){case 0:return n=Hf(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,IN(n)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=De(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(r,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A}(NC),IN=function(t){return new Promise(function(A,e){var n=new Image;n.onload=function(){A(n)},n.onerror=e,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},SN=function(){function t(A){var e=A.id,n=A.enabled;this.id=e,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,La([this.id,this.getTime()+"ms"],A))},t.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.instances={},t}(),TN=function(){function t(A,e){var n;this.windowBounds=e,this.instanceName="#"+t.instanceCount++,this.logger=new SN({id:this.instanceName,enabled:A.logging}),this.cache=(n=A.cache)!==null&&n!==void 0?n:new zD(this,A)}return t.instanceCount=1,t}(),_N=function(t,A){return A===void 0&&(A={}),xN(t,A)};typeof window<"u"&&SC.setContext(window);var xN=function(t,A){return lt(void 0,void 0,void 0,function(){var e,n,r,i,s,a,c,u,f,p,g,m,w,F,b,v,_,S,E,L,D,U,D,P,N,sA,mA,nA,cA,LA,oe,RA,HA,rA,BA,XA,kA,GA,KA,Ae;return Ze(this,function(ee){switch(ee.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(e=t.ownerDocument,!e)throw new Error("Element is not attached to a Document");if(n=e.defaultView,!n)throw new Error("Document is not attached to a Window");return r={allowTaint:(P=A.allowTaint)!==null&&P!==void 0?P:!1,imageTimeout:(N=A.imageTimeout)!==null&&N!==void 0?N:15e3,proxy:A.proxy,useCORS:(sA=A.useCORS)!==null&&sA!==void 0?sA:!1},i=ju({logging:(mA=A.logging)!==null&&mA!==void 0?mA:!0,cache:A.cache},r),s={windowWidth:(nA=A.windowWidth)!==null&&nA!==void 0?nA:n.innerWidth,windowHeight:(cA=A.windowHeight)!==null&&cA!==void 0?cA:n.innerHeight,scrollX:(LA=A.scrollX)!==null&&LA!==void 0?LA:n.pageXOffset,scrollY:(oe=A.scrollY)!==null&&oe!==void 0?oe:n.pageYOffset},a=new Wn(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),c=new TN(i,a),u=(RA=A.foreignObjectRendering)!==null&&RA!==void 0?RA:!1,f={allowTaint:(HA=A.allowTaint)!==null&&HA!==void 0?HA:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:u,copyStyles:u},c.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),p=new vC(c,t,f),g=p.clonedReferenceElement,g?[4,p.toIFrame(e,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=ee.sent(),w=Rf(g)||OD(g)?lO(g.ownerDocument):Ha(c,g),F=w.width,b=w.height,v=w.left,_=w.top,S=ON(c,g,A.backgroundColor),E={canvas:A.canvas,backgroundColor:S,scale:(BA=(rA=A.scale)!==null&&rA!==void 0?rA:n.devicePixelRatio)!==null&&BA!==void 0?BA:1,x:((XA=A.x)!==null&&XA!==void 0?XA:0)+v,y:((kA=A.y)!==null&&kA!==void 0?kA:0)+_,width:(GA=A.width)!==null&&GA!==void 0?GA:Math.ceil(F),height:(KA=A.height)!==null&&KA!==void 0?KA:Math.ceil(b)},u?(c.logger.debug("Document cloned, using foreign object rendering"),D=new vN(c,E),[4,D.render(g)]):[3,3];case 2:return L=ee.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+v+","+_+" with size "+F+"x"+b+" using computed rendering"),c.logger.debug("Starting DOM parsing"),U=uC(c,g),S===U.styles.backgroundColor&&(U.styles.backgroundColor=Jn.TRANSPARENT),c.logger.debug("Starting renderer for element at "+E.x+","+E.y+" with size "+E.width+"x"+E.height),D=new yN(c,E),[4,D.render(U)];case 4:L=ee.sent(),ee.label=5;case 5:return(!((Ae=A.removeContainer)!==null&&Ae!==void 0)||Ae)&&(vC.destroy(m)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,L]}})})},ON=function(t,A,e){var n=A.ownerDocument,r=n.documentElement?co(t,getComputedStyle(n.documentElement).backgroundColor):Jn.TRANSPARENT,i=n.body?co(t,getComputedStyle(n.body).backgroundColor):Jn.TRANSPARENT,s=typeof e=="string"?co(t,e):e===null?Jn.TRANSPARENT:4294967295;return A===n.documentElement?Ir(r)?Ir(i)?s:i:r:s};const LN=h.defineComponent({__name:"dom-renderer",props:{modelValue:{type:String,default:""},fixedWidth:{type:Number,default:0},renderUpdates:{type:Boolean,default:!1},exportToSvg:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},debug:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=h.ref(),i=h.ref(""),s=h.ref();async function a(){if(r.value){const u=r.value,p=(await _N(u.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,width:u.offsetWidth,height:u.offsetHeight,...e.options})).toDataURL();if(n("update:modelValue",p),e.debug){const g=new Image;g.src=p,document.body.appendChild(g)}return p}return""}const c=vm.debounce(async()=>{i.value=await a()},300,{trailing:!0,leading:!1});return h.onMounted(()=>{const u=r.value;e.renderUpdates&&(s.value=new MutationObserver(async f=>{c()}),s.value.observe(u,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),setTimeout(()=>{c()},500)}),(u,f)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["dom-renderer",{"off-screen":!t.debug}]),ref_key:"renderer",ref:r,style:h.normalizeStyle(t.fixedWidth>0?{width:`${t.fixedWidth}px`}:{})},[h.renderSlot(u.$slots,"default")],6))}}),HN={class:"link-sharing"},kN={key:0,class:"link-sharing__links container"},DN={class:"row"},NN={key:0,class:"col-12 col-md-6"},MN=["href"],RN={class:"caption"},KN={key:1,class:"col-12 col-md-6"},PN=["href"],VN={class:"caption"},GN={key:2,class:"col-12 col-md-6"},WN={class:"caption"},$N={key:3,class:"col-12 col-md-6"},JN=["href"],XN={class:"caption"},YN={key:4,class:"col-12 col-md-6"},zN=["href"],qN={class:"caption"},ZN={key:5,class:"col-12 col-md-6"},jN={class:"caption"},AM={key:6,class:"col-12 col-md-6"},eM=["href"],tM={class:"caption"},nM={key:1,class:"link-sharing__instructions pt-5"},rM={class:"row"},iM={class:"col-12 text-center py-0"},sM={class:"mb-5"},oM=t=>t.replace(/<(?:.|\n)*?>/gm,""),aM=h.defineComponent({__name:"link-sharing",props:{url:{type:String,default:""},subject:{type:String,default:""},hashtags:Array,text:{type:String,default:""},media:{type:String,default:""},services:{type:Object,default:{facebook:!0,instagram:!0,linkedin:!0,whatsapp:!0,mailto:!0,clipboard:!0,bluesky:!0}}},setup(t){const A=t,e=h.ref(!1),n=h.computed(()=>encodeURIComponent(A.url));h.computed(()=>encodeURIComponent(A.media));const r=h.computed(()=>oM(A.text)),i=h.computed(()=>!!(navigator&&navigator.userAgent&&/Mobi|Android/i.test(navigator.userAgent)));async function s(){const a=document.createElement("textarea");document.body.appendChild(a),a.value=A.url,a.select(),a.setSelectionRange(0,99999),navigator.clipboard.writeText(a.value),document.body.removeChild(a)}return(a,c)=>{const u=h.resolveComponent("svg-icon");return h.openBlock(),h.createElementBlock("div",HN,[e.value?(h.openBlock(),h.createElementBlock("div",nM,[h.createElementVNode("div",rM,[h.createElementVNode("div",iM,[h.createElementVNode("div",sM,[h.createElementVNode("p",null,h.toDisplayString(a.$t("sharing.instructions",{service:"Instagram"})),1),h.createElementVNode("p",null,[h.createElementVNode("strong",null,h.toDisplayString(t.hashtags),1)])])])])])):(h.openBlock(),h.createElementBlock("div",kN,[h.createElementVNode("div",DN,[t.services.facebook?(h.openBlock(),h.createElementBlock("div",NN,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.facebook.com/sharer.php?u=${n.value}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"facebook"}),h.createElementVNode("span",RN,h.toDisplayString(a.$t("sharing.facebook")),1)],8,MN)])):h.createCommentVNode("",!0),t.services.bluesky?(h.openBlock(),h.createElementBlock("div",KN,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://bsky.app/intent/compose?text=${r.value}${r.value?"%20":""}${t.url}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"bluesky-logo"}),h.createElementVNode("span",VN,h.toDisplayString(a.$t("sharing.bluesky")),1)],8,PN)])):h.createCommentVNode("",!0),t.services.instagram?(h.openBlock(),h.createElementBlock("div",GN,[h.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:c[0]||(c[0]=h.withModifiers(f=>e.value=!e.value,["prevent"]))},[h.createVNode(u,{symbol:"instagram"}),h.createElementVNode("span",WN,h.toDisplayString(a.$t("sharing.instagram")),1)])])):h.createCommentVNode("",!0),t.services.linkedin?(h.openBlock(),h.createElementBlock("div",$N,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.linkedin.com/shareArticle?mini=true&url=${n.value}&title=${t.subject}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"linkedin"}),h.createElementVNode("span",XN,h.toDisplayString(a.$t("sharing.linkedin")),1)],8,JN)])):h.createCommentVNode("",!0),t.services.whatsapp&&i.value?(h.openBlock(),h.createElementBlock("div",YN,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`whatsapp://send?text=${n.value}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"whatsapp"}),h.createElementVNode("span",qN,h.toDisplayString(a.$t("sharing.whatsapp")),1)],8,zN)])):h.createCommentVNode("",!0),t.services.clipboard?(h.openBlock(),h.createElementBlock("div",ZN,[h.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:h.withModifiers(s,["prevent","stop"])},[h.createVNode(u,{symbol:"copy"}),h.createElementVNode("span",jN,h.toDisplayString(a.$t("sharing.clipboard")),1)])])):h.createCommentVNode("",!0),t.services.mailto?(h.openBlock(),h.createElementBlock("div",AM,[h.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`mailto:?subject=${t.subject}&body=${r.value}%0D%0A${t.url}`,target:"_blank",rel:"noopener"},[h.createVNode(u,{symbol:"mail"}),h.createElementVNode("span",tM,h.toDisplayString(a.$t("sharing.mailto")),1)],8,eM)])):h.createCommentVNode("",!0)])]))])}}}),F3="",lM={class:"base-form"},cM=h.defineComponent({__name:"base-form",props:{id:{},name:{},variant:{},disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function A(r){console.log("input",r)}function e(r){console.log("reset",r)}function n(r){console.log("submit",r)}return(r,i)=>(h.openBlock(),h.createElementBlock("div",lM,[h.createElementVNode("form",{ref:"form",onInput:A,onReset:e,onSubmit:h.withModifiers(n,["prevent"])},[h.renderSlot(r.$slots,"default")],544)]))}}),b3="",uM={class:"modal-dialog__content d-flex flex-column"},fM={class:"modal-dialog__header d-flex p-3 border-bottom"},dM={key:0,class:"modal-dialog__title",id:"exampleModalLabel"},hM={class:"modal-dialog__body"},pM={key:0,class:"modal-dialog__footer d-flex p-3 border-top"},gM=h.defineComponent({__name:"modal-dialog",props:{modelValue:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},size:{type:String,default:"md"},dismiss:{type:Boolean,default:!0},title:{type:String,default:""},footer:{type:Boolean,default:!0},classes:{type:String,default:""}},emits:["update:modelValue","confirm","cancel"],setup(t,{expose:A,emit:e}){const n=t,r=e,i=h.ref();function s(){var g,m;document.documentElement.style.setProperty("--scroll-position",`${Math.round(document.documentElement.scrollTop)}px`),n.modal?(g=i.value)==null||g.showModal():(m=i.value)==null||m.show(),r("update:modelValue",!0)}function a(){const g=i.value&&new KeyframeEffect(i.value,[{translate:"0 -100%",opacity:"0"}],{duration:320,easing:"ease",direction:"normal"}),m=new Animation(g,document.timeline);m.play(),m.addEventListener("finish",()=>{var w;(w=i.value)==null||w.close(),c()}),r("update:modelValue",!1)}function c(){const g=getComputedStyle(document.documentElement).getPropertyValue("--scroll-position");document.documentElement.scrollTo({top:parseInt(g,10),behavior:"instant"}),r("update:modelValue",!1)}function u(g){s(),r("confirm",g)}function f(){a(),r("cancel")}function p(g){const m=g.target;m&&m.nodeName==="DIALOG"&&a()}return h.watch(()=>n.modelValue,(g,m)=>{g&&g!==m?s():m&&a()},{immediate:!0}),h.onMounted(()=>{var g;(g=i.value)==null||g.addEventListener("cancel",m=>{m.preventDefault(),a()}),n.dismiss&&document.addEventListener("click",p),n.modelValue&&s()}),h.onBeforeUnmount(()=>{n.dismiss&&document.removeEventListener("click",p)}),A({show:s,close:a,confirm:u,cancel:f}),(g,m)=>(h.openBlock(),h.createElementBlock("dialog",{ref_key:"dialog",ref:i,class:h.normalizeClass(["modal-dialog",{[`modal-dialog--${t.size}`]:t.size}]),onClose:c},[h.createElementVNode("div",uM,[h.createElementVNode("div",fM,[t.title?(h.openBlock(),h.createElementBlock("h5",dM,h.toDisplayString(t.title),1)):h.createCommentVNode("",!0),h.createElementVNode("button",{type:"button",class:"btn-close ms-auto border-radius-none","aria-label":"Close",onClick:a})]),h.createElementVNode("div",hM,[h.renderSlot(g.$slots,"default")]),t.footer?(h.openBlock(),h.createElementBlock("div",pM,[h.renderSlot(g.$slots,"footer"),h.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:a},h.toDisplayString(g.$t("common.close")),1)])):h.createCommentVNode("",!0)])],34))}}),U3="",BM=["onDragenter","onDragover","onDragleave","onDragend","onDrop","innerHTML"],mM=["onDragstart","onDrag","onDragenter","onDragover","onDragleave","onDragend","onDrop"],wM={key:0,class:"sortable-list__drag-handle"},CM={type:"button",class:"btn"},yM={key:0,class:"sortable-list__item"},EM=h.defineComponent({__name:"sortable-list",props:{modelValue:{type:Array,default:()=>[]},config:{type:Object,default:null},messages:{type:Object,default:{}},vertical:{type:Boolean,default:!0},showDragHandle:{type:Boolean,default:!1},showPreview:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=h.ref(!1),r=h.ref(null),i=h.ref(null),s=A,a=h.computed({get(){return e.modelValue},set(_){s("update:modelValue",_)}}),c=h.computed(()=>{var _;return(_=document.querySelector(".is-drag-item"))==null?void 0:_.outerHTML}),u=h.useSlots(),f=h.computed(()=>u["list-append"]);function p(_,S){_.dataTransfer&&(_.dataTransfer.dropEffect="move",_.dataTransfer.effectAllowed="move",_.dataTransfer.setData("index",S.toLocaleString()),n.value=!0,r.value=S)}function g(_,S){n.value=!1,r.value=null,i.value=null}function m(_,S){}function w(_,S){i.value=r.value!==S?S:null}function F(_,S){}function b(_,S){}function v(_,S){if(_.dataTransfer){_.preventDefault();const E=Number(_.dataTransfer.getData("index")),L=S,U=[...a.value];(L||L===0)&&(E||E===0)&&U.splice(L,0,U.splice(E,1)[0]),a.value=U}}return(_,S)=>{const E=h.resolveComponent("svg-icon");return h.openBlock(),h.createBlock(h.TransitionGroup,{name:"list",tag:"ul",class:h.normalizeClass(["sortable-list p-0 d-flex gap-2",{"flex-column":t.vertical,"flex-row flex-wrap":!t.vertical}]),onDragover:S[0]||(S[0]=h.withModifiers(()=>{},["prevent"])),onDragenter:S[1]||(S[1]=h.withModifiers(()=>{},["prevent"]))},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,(L,U)=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:U},[t.showPreview&&n.value&&i.value===U?(h.openBlock(),h.createElementBlock("li",{key:0,class:"sortable-list__item is-drop-target",onDragenter:D=>w(D,U),onDragover:D=>void 0,onDragleave:D=>void 0,onDragend:D=>g(),onDrop:D=>v(D,U),innerHTML:c.value},null,40,BM)):h.createCommentVNode("",!0),h.createElementVNode("li",{class:h.normalizeClass(["sortable-list__item d-flex",{"is-drag-item":n.value&&r.value===U,"is-drop-target":n.value&&i.value===U&&!t.showPreview,"align-items-center gap-2":t.vertical}]),draggable:!0,onDragstart:D=>p(D,U),onDrag:D=>void 0,onDragenter:D=>w(D,U),onDragover:D=>void 0,onDragleave:D=>void 0,onDragend:D=>g(),onDrop:D=>v(D,U)},[t.showDragHandle?(h.openBlock(),h.createElementBlock("div",wM,[h.createElementVNode("button",CM,[h.createVNode(E,{symbol:"drag"})])])):h.createCommentVNode("",!0),h.createElementVNode("div",{class:h.normalizeClass(["sortable-list__item-content",{"flex-grow-1":t.vertical}])},[h.renderSlot(_.$slots,"list-item",{item:L,index:U},()=>[h.createTextVNode(h.toDisplayString(L),1)])],2)],42,mM)],64))),128)),f.value?(h.openBlock(),h.createElementBlock("li",yM,[h.renderSlot(_.$slots,"list-append")])):h.createCommentVNode("",!0)]),_:3},8,["class"])}}}),v3="";IA.Accordion=HE,IA.AccordionItem=TE,IA.AssetUploader=Jx,IA.AutoSuggest=h_,IA.BaseButton=DE,IA.BaseCamera=L_,IA.BaseCarousel=km,IA.BaseForm=cM,IA.BaseHeadline=CE,IA.BaseImage=wE,IA.BaseInput=KE,IA.BaseParagraph=EE,IA.CheckGroup=nQ,IA.DomRenderer=LN,IA.FileUpload=Dx,IA.InputCheckbox=YE,IA.InputColor=AS,IA.InputDatetime=jE,IA.InputDropdown=l_,IA.InputFile=gQ,IA.InputTextarea=WE,IA.LinkSharing=aM,IA.LoadingSpinner=BE,IA.MediaThumbnails=jx,IA.ModalDialog=gM,IA.ProgressSteps=aO,IA.RadioGroup=aQ,IA.RteEditor=z1,IA.SortableList=EM,IA.SvgIcon=hE,IA.UploadGroup=Hm,Object.defineProperty(IA,Symbol.toStringTag,{value:"Module"})});
@@ -39,7 +39,7 @@ declare const _sfc_main: import('./vue/dist/vue.esm-bundler.js').DefineComponent
39
39
  whatsapp: boolean;
40
40
  mailto: boolean;
41
41
  clipboard: boolean;
42
- x: boolean;
42
+ bluesky: boolean;
43
43
  };
44
44
  };
45
45
  }, {}, unknown, {}, {}, import('./vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('./vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {}, string, import('./vue/dist/vue.esm-bundler.js').PublicProps, Readonly<import('./vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
@@ -82,7 +82,7 @@ declare const _sfc_main: import('./vue/dist/vue.esm-bundler.js').DefineComponent
82
82
  whatsapp: boolean;
83
83
  mailto: boolean;
84
84
  clipboard: boolean;
85
- x: boolean;
85
+ bluesky: boolean;
86
86
  };
87
87
  };
88
88
  }>>, {
@@ -771,6 +771,9 @@
771
771
  <symbol id="icon-x-logo" viewBox="0 0 31 32">
772
772
  <path d="M18.625 13.543l11.651-13.543h-2.761l-10.116 11.759-8.080-11.759h-9.319l12.218 17.782-12.218 14.202h2.761l10.683-12.418 8.533 12.418h9.319l-12.671-18.441zM14.844 17.938l-11.088-15.86h4.241l19.52 27.921h-4.241l-8.432-12.061z"></path>
773
773
  </symbol>
774
+ <symbol id="icon-bluesky-logo" viewBox="0 0 32 32">
775
+ <path d="M7.503,3.019 C10.942,5.952 14.642,11.898 16,15.089 C17.358,11.898 21.058,5.952 24.497,3.019 C26.979,0.903 31,-0.734 31,4.476 C31,5.516 30.475,13.217 30.167,14.467 C29.096,18.813 25.194,19.921 21.723,19.251 C27.79,20.423 29.333,24.308 26,28.193 C19.67,35.571 16.901,26.342 16.192,23.977 C16.062,23.543 16.001,23.34 16,23.513 C15.999,23.34 15.938,23.543 15.808,23.977 C15.099,26.342 12.331,35.571 6,28.193 C2.667,24.308 4.21,20.423 10.277,19.251 C6.806,19.921 2.904,18.813 1.833,14.467 C1.525,13.217 1,5.516 1,4.476 C1,-0.734 5.021,0.903 7.503,3.019 z" />
776
+ </symbol>
774
777
  <symbol id="icon-type" viewBox="0 0 32 32">
775
778
  <path d="M4.819 4.076c-0.316 0.099-0.536 0.272-0.673 0.528-0.117 0.22-0.119 0.259-0.135 2.609-0.009 1.529 0.005 2.46 0.040 2.592 0.141 0.524 0.527 0.809 1.144 0.849 0.647 0.041 1.071-0.145 1.312-0.577 0.132-0.236 0.133-0.245 0.151-1.824l0.016-1.587h7.993v18.667h-1.459c-1.549 0-1.781 0.029-2.112 0.265-0.296 0.211-0.403 0.492-0.403 1.068 0 0.441 0.017 0.537 0.133 0.744 0.147 0.263 0.392 0.453 0.687 0.535 0.263 0.073 8.711 0.073 8.973 0 0.295-0.081 0.54-0.272 0.687-0.535 0.116-0.208 0.133-0.301 0.132-0.744-0.001-0.577-0.108-0.86-0.401-1.068-0.331-0.236-0.563-0.265-2.112-0.265h-1.459v-18.667h8v1.48c0 0.827 0.024 1.565 0.055 1.673 0.143 0.513 0.528 0.796 1.14 0.835 0.647 0.041 1.071-0.145 1.312-0.577l0.133-0.237v-2.507c0-2.489-0.001-2.508-0.119-2.729-0.141-0.263-0.359-0.429-0.693-0.531-0.353-0.105-22.004-0.103-22.343 0.003z"></path>
776
779
  </symbol>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ablok-components",
3
3
  "private": false,
4
- "version": "0.1.140",
4
+ "version": "0.1.141",
5
5
  "scripts": {
6
6
  "dev": "vite --host",
7
7
  "build": "vue-tsc --noEmit && vite build",